Skip to content

Commit

Permalink
#986. Bump unicorn-ui to v0.0.21. (#994)
Browse files Browse the repository at this point in the history
## Description
Update Props in references to UI components specifically change from
className and wrapperClass to instead use class. Update imports and
removed unused import.

## Related Issue
#986 

## Type of change
- [x] dependency update to prevent breaking changes.
  • Loading branch information
mike-winberry authored Nov 9, 2022
1 parent fa74c73 commit 4a82b91
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
},
"devDependencies": {
"@defense-unicorns/unicorn-ui": "0.0.18",
"@defense-unicorns/unicorn-ui": "^0.0.21",
"@fontsource/roboto": "4.5.8",
"@material/card": "14.0.0",
"@material/data-table": "14.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/ui/lib/components/package-component-accordion.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import type { ZarfComponent } from '$lib/api-types';
import { pkgComponentDeployStore } from '$lib/store';
import { Accordion, IconButton, Typography } from '@defense-unicorns/unicorn-ui';
import { Accordion, IconButton, Typography } from '@ui';
export let idx: number;
export let readOnly: boolean = true;
Expand All @@ -27,7 +27,7 @@
$: componentTitle = `${component.name} ${requiredText}`;
</script>

<Accordion id={`component-accordion-${idx}`} wrapperClass="package-component-accordion">
<Accordion id={`component-accordion-${idx}`} class="package-component-accordion">
<div slot="headerContent" class="component-accordion-header">
<div style="flex: 1">
<Typography variant="subtitle2" element="div" class="component-title" title={componentTitle}>
Expand All @@ -51,7 +51,7 @@
<div style="gap: 5px;">
<IconButton
toggleable
className="deploy-component-toggle"
class="deploy-component-toggle"
iconColor="inherit"
iconContent="toggle_off"
toggledIconColor="primary"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/lib/components/package-details-card.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import Divider from './divider.svelte';
import type { ZarfPackage } from '$lib/api-types';
import { Typography } from '@defense-unicorns/unicorn-ui';
import { Typography } from '@ui';
export let pkg: ZarfPackage;
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/ui/routes/packages/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Hero from '$lib/components/hero.svelte';
import PackageDetails from '$lib/components/package-details-card.svelte';
import Spinner from '$lib/components/spinner.svelte';
import { Button, ButtonIcon, Typography } from '@ui';
import { Button, Typography } from '@ui';
import Icon from '$lib/components/icon.svelte';
</script>

Expand Down

0 comments on commit 4a82b91

Please sign in to comment.