@dillingerstaffing/strand-svelte 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dillingerstaffing/strand-svelte",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Strand UI - Svelte component library built on the Strand Design Language",
5
5
  "author": "Dillinger Staffing <engineering@dillingerstaffing.com> (https://dillingerstaffing.com)",
6
6
  "license": "MIT",
@@ -55,7 +55,7 @@
55
55
  "svelte": "^4.0.0 || ^5.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@dillingerstaffing/strand": "^0.10.0"
58
+ "@dillingerstaffing/strand": "^0.12.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@sveltejs/vite-plugin-svelte": "^5.0.0",
@@ -4,8 +4,8 @@
4
4
  export let label: string
5
5
  /** The large displayed value */
6
6
  export let value: string | number
7
- /** Size variant: sm (compact), md (default), lg (hero) */
8
- export let size: 'sm' | 'md' | 'lg' | undefined = undefined
7
+ /** Size variant: sm (compact), md (default), lg (hero), xl (primary instrument) */
8
+ export let size: 'sm' | 'md' | 'lg' | 'xl' | undefined = undefined
9
9
 
10
10
  $: classes = [
11
11
  'strand-data-readout',
@@ -27,6 +27,11 @@ describe('DataReadout', () => {
27
27
  expect(container.querySelector('.strand-data-readout')).toHaveClass('strand-data-readout--lg')
28
28
  })
29
29
 
30
+ it('applies xl size class', () => {
31
+ const { container } = render(DataReadout, { props: { label: 'L', value: 'V', size: 'xl' } })
32
+ expect(container.querySelector('.strand-data-readout')).toHaveClass('strand-data-readout--xl')
33
+ })
34
+
30
35
  it('does not apply size class for md', () => {
31
36
  const { container } = render(DataReadout, { props: { label: 'L', value: 'V', size: 'md' } })
32
37
  const el = container.querySelector('.strand-data-readout')