@slotted/react 0.1.0-beta.20 → 0.1.0-beta.22

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.
Files changed (62) hide show
  1. package/dist/docs/chart.json +1 -0
  2. package/dist/docs/chart.md +1 -1
  3. package/dist/docs/drawer.examples.md +1 -1
  4. package/dist/docs/drawer.json +2 -1
  5. package/dist/docs/drawer.md +1 -1
  6. package/dist/docs/markdown.json +1 -1
  7. package/dist/docs/markdown.md +1 -1
  8. package/dist/docs/skills/theme-app/SKILL.md +6 -2
  9. package/dist/docs/stat-card.json +7 -0
  10. package/dist/docs/stat-card.md +1 -0
  11. package/dist/docs/tag.json +10 -9
  12. package/dist/docs/tag.md +5 -5
  13. package/dist/index.js +1 -1
  14. package/dist/{stat-card-Dv9oJAbF.js → stat-card-BpKP2yxe.js} +55 -49
  15. package/dist/stat-card.js +1 -1
  16. package/dist/styles/action-sheet.css +1 -1
  17. package/dist/styles/cascader.css +2 -2
  18. package/dist/styles/chart.css +1 -1
  19. package/dist/styles/color-picker.css +1 -1
  20. package/dist/styles/column-manager.css +2 -2
  21. package/dist/styles/combobox.css +1 -1
  22. package/dist/styles/currency-field.css +1 -1
  23. package/dist/styles/data-grid.css +14 -14
  24. package/dist/styles/date-field.css +1 -1
  25. package/dist/styles/date-picker.css +2 -2
  26. package/dist/styles/date-range-picker.css +2 -2
  27. package/dist/styles/datetime-field.css +1 -1
  28. package/dist/styles/datetime-picker.css +2 -2
  29. package/dist/styles/datetime-range-picker.css +2 -2
  30. package/dist/styles/detail-panel.css +1 -1
  31. package/dist/styles/drawer.css +1 -1
  32. package/dist/styles/entity-picker.css +3 -3
  33. package/dist/styles/event-calendar.css +1 -1
  34. package/dist/styles/filter-bar.css +12 -12
  35. package/dist/styles/import-export-center.css +14 -14
  36. package/dist/styles/index.css +23 -23
  37. package/dist/styles/multi-select.css +2 -2
  38. package/dist/styles/number-field.css +1 -1
  39. package/dist/styles/page-header.css +1 -1
  40. package/dist/styles/page.css +1 -1
  41. package/dist/styles/saved-views.css +1 -1
  42. package/dist/styles/select.css +2 -2
  43. package/dist/styles/table.css +14 -14
  44. package/dist/styles/tag.css +1 -1
  45. package/dist/styles/tags-input.css +2 -2
  46. package/dist/styles/text-field.css +1 -1
  47. package/dist/styles/textarea.css +1 -1
  48. package/dist/styles/time-field.css +1 -1
  49. package/dist/styles/time-picker.css +2 -2
  50. package/dist/styles/time-range-picker.css +2 -2
  51. package/dist/styles/transfer.css +1 -1
  52. package/dist/styles/wizard.css +1 -1
  53. package/dist/styles.css +1 -1
  54. package/dist/types/stat-card/index.d.ts +1 -1
  55. package/dist/types/stat-card/index.d.ts.map +1 -1
  56. package/dist/types/stat-card/stat-card-value.d.ts +3 -2
  57. package/dist/types/stat-card/stat-card-value.d.ts.map +1 -1
  58. package/dist/types/stat-card/stat-card.types.d.ts +7 -0
  59. package/dist/types/stat-card/stat-card.types.d.ts.map +1 -1
  60. package/dist/types/tag/tag.types.d.ts +1 -1
  61. package/dist/types/tag/tag.types.d.ts.map +1 -1
  62. package/package.json +6 -6
@@ -996,6 +996,7 @@
996
996
  "--slotted-chart-label-size",
997
997
  "--slotted-chart-line-width",
998
998
  "--slotted-chart-marker-size",
999
+ "--slotted-chart-overlay-backdrop-filter",
999
1000
  "--slotted-chart-plot-block-size",
1000
1001
  "--slotted-chart-plot-block-size-lg",
1001
1002
  "--slotted-chart-plot-block-size-sm",
@@ -185,7 +185,7 @@ Excerpt — not a complete module
185
185
 
186
186
  ## Tokens
187
187
 
188
- `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
188
+ `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-medium`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-chart-area-opacity`, `--slotted-chart-axis-color`, `--slotted-chart-band-color`, `--slotted-chart-bar-radius`, `--slotted-chart-card-padding-block`, `--slotted-chart-card-padding-inline`, `--slotted-chart-card-radius`, `--slotted-chart-color-1`, `--slotted-chart-color-2`, `--slotted-chart-color-3`, `--slotted-chart-color-4`, `--slotted-chart-color-5`, `--slotted-chart-color-6`, `--slotted-chart-color-7`, `--slotted-chart-color-8`, `--slotted-chart-crosshair-color`, `--slotted-chart-focus-color`, `--slotted-chart-gap`, `--slotted-chart-grid-color`, `--slotted-chart-inset`, `--slotted-chart-label-color`, `--slotted-chart-label-size`, `--slotted-chart-line-width`, `--slotted-chart-marker-size`, `--slotted-chart-overlay-backdrop-filter`, `--slotted-chart-plot-block-size`, `--slotted-chart-plot-block-size-lg`, `--slotted-chart-plot-block-size-sm`, `--slotted-chart-radius`, `--slotted-chart-reference-color`, `--slotted-chart-sequential-color`, `--slotted-chart-skeleton-hole`, `--slotted-chart-surface`, `--slotted-chart-tooltip-surface`, `--slotted-control-border-color`, `--slotted-control-font-size-sm`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-sm`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-data-1`, `--slotted-data-2`, `--slotted-data-3`, `--slotted-data-4`, `--slotted-data-5`, `--slotted-data-6`, `--slotted-data-7`, `--slotted-data-8`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-2xl`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-sm`, `--slotted-font-size-xl`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-2xl`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-line-height-xs`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-radius-xs`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface`, `--slotted-surface-raised`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-info-text`, `--slotted-tone-secondary-subtle-hover`, `--slotted-tone-secondary-surface`, `--slotted-tone-secondary-text`, `--slotted-tone-success-text`, `--slotted-tone-warning-text`, `--slotted-z-index-overlay`, `--slotted-z-index-popover`
189
189
 
190
190
  ## Examples
191
191
 
@@ -163,7 +163,7 @@ Excerpt — not a complete module
163
163
 
164
164
  ### A bottom sheet as a phone draws one
165
165
 
166
- The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.
166
+ The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-easing-enter going up, and in --slotted-drawer-slide-exit-duration and --slotted-easing-exit going down. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.
167
167
 
168
168
  Example
169
169
 
@@ -473,6 +473,7 @@
473
473
  "--slotted-drawer-extent-md",
474
474
  "--slotted-drawer-extent-sm",
475
475
  "--slotted-drawer-extent-xl",
476
+ "--slotted-drawer-footer-backdrop-filter",
476
477
  "--slotted-drawer-footer-surface",
477
478
  "--slotted-drawer-radius",
478
479
  "--slotted-drawer-radius-expanded",
@@ -582,7 +583,7 @@
582
583
  {
583
584
  "id": "sheet",
584
585
  "title": "A bottom sheet as a phone draws one",
585
- "note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.",
586
+ "note": "The sheet measures what it holds — the default size on top and bottom — stops at forty rems on a wide layer, and is moved by the platform’s own scroll, so the finger, the fling and the landing on a stop run on the compositor. The opening, the close and a tap on the grabber travel in --slotted-drawer-slide-duration and --slotted-easing-enter going up, and in --slotted-drawer-slide-exit-duration and --slotted-easing-exit going down. The sheet and its content are one scroll: pushing up lifts the sheet to the top of the screen and, without letting go, goes on through the list under the header, which sticks there; pulling down from the top of the list brings the sheet down. A fling out of the list stops at its top and never closes the sheet. A tap on the grabber walks the stops.",
586
587
  "language": "tsx",
587
588
  "source": "import { useState } from 'react';\n\nimport { Button } from '@slotted/react/button';\nimport {\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerPanel,\n DrawerResizer,\n DrawerTitle,\n DrawerTrigger,\n} from '@slotted/react/drawer';\nimport { FieldGroup, FieldGroupContent, FieldGroupLegend } from '@slotted/react/field-group';\nimport { Inline } from '@slotted/react/inline';\nimport { Radio, RadioGroup } from '@slotted/react/radio-group';\nimport { Text } from '@slotted/react/typography';\n\nconst WINDOWS = [\n { value: 'morning', label: 'Thursday 8 October, 8 AM to noon' },\n { value: 'afternoon', label: 'Thursday 8 October, 1 to 5 PM' },\n { value: 'friday', label: 'Friday 9 October, 8 AM to noon' },\n];\n\nexport default function DrawerSheet() {\n const [open, setOpen] = useState(false);\n const [pickup, setPickup] = useState('morning');\n const [draft, setDraft] = useState(pickup);\n\n return (\n <Inline align=\"center\" gap={3}>\n <Text size=\"sm\">Pickup: {WINDOWS.find((window) => window.value === pickup)?.label}</Text>\n <Drawer\n open={open}\n onOpenChange={(next) => {\n if (next) setDraft(pickup);\n setOpen(next);\n }}\n side=\"bottom\"\n >\n <DrawerTrigger\n render={(props) => (\n <Button {...props} size=\"sm\" tone=\"secondary\" variant=\"outline\">\n Reschedule\n </Button>\n )}\n />\n <DrawerPanel>\n <DrawerResizer />\n <DrawerHeader>\n <DrawerTitle>Reschedule pickup</DrawerTitle>\n <DrawerDescription>Shipment SH-4471, UPS Ground from Reno, NV.</DrawerDescription>\n <DrawerClose />\n </DrawerHeader>\n <DrawerBody>\n <FieldGroup>\n <FieldGroupLegend>Pickup window</FieldGroupLegend>\n <FieldGroupContent>\n <RadioGroup value={draft} onValueChange={setDraft}>\n {WINDOWS.map((window) => (\n <Radio key={window.value} value={window.value}>\n {window.label}\n </Radio>\n ))}\n </RadioGroup>\n </FieldGroupContent>\n </FieldGroup>\n </DrawerBody>\n <DrawerFooter>\n <Button variant=\"ghost\" tone=\"secondary\" onClick={() => setOpen(false)}>\n Cancel\n </Button>\n <Button\n onClick={() => {\n setPickup(draft);\n setOpen(false);\n }}\n >\n Reschedule\n </Button>\n </DrawerFooter>\n </DrawerPanel>\n </Drawer>\n </Inline>\n );\n}\n",
588
589
  "verdict": "example"
@@ -181,7 +181,7 @@ export default function DrawerBasic() {
181
181
 
182
182
  ## Tokens
183
183
 
184
- `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-floor`, `--slotted-drawer-sheet-height`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
184
+ `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-icon-size-md`, `--slotted-control-inner-size-md`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-drawer-backdrop-filter`, `--slotted-drawer-body-color`, `--slotted-drawer-border-color`, `--slotted-drawer-close-active-background`, `--slotted-drawer-close-color`, `--slotted-drawer-close-hover-background`, `--slotted-drawer-color`, `--slotted-drawer-description-color`, `--slotted-drawer-extent`, `--slotted-drawer-extent-lg`, `--slotted-drawer-extent-md`, `--slotted-drawer-extent-sm`, `--slotted-drawer-extent-xl`, `--slotted-drawer-footer-backdrop-filter`, `--slotted-drawer-footer-surface`, `--slotted-drawer-radius`, `--slotted-drawer-radius-expanded`, `--slotted-drawer-resizer-line-active-color`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-rule-color`, `--slotted-drawer-scrim`, `--slotted-drawer-sheet-floor`, `--slotted-drawer-sheet-height`, `--slotted-drawer-sheet-inline-size`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-surface`, `--slotted-drawer-title-color`, `--slotted-drawer-title-font-family`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-lg`, `--slotted-font-size-md`, `--slotted-font-size-xl`, `--slotted-font-weight-semibold`, `--slotted-line-height-lg`, `--slotted-line-height-md`, `--slotted-radius-full`, `--slotted-radius-lg`, `--slotted-radius-sm`, `--slotted-scrim`, `--slotted-shadow-lg`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-7`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-overlay`
185
185
 
186
186
  ## Examples
187
187
 
@@ -123,7 +123,7 @@
123
123
  "type": "string",
124
124
  "defaultValue": "—",
125
125
  "appliesTo": "Markdown",
126
- "description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; tables, images and HTML need an adapter"
126
+ "description": "The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; images and HTML need an adapter"
127
127
  },
128
128
  {
129
129
  "name": "size",
@@ -41,7 +41,7 @@ const tree = fromMarkedTokens(marked.lexer(source));
41
41
  | Name | Type | Default | Applies to | Description |
42
42
  | --- | --- | --- | --- | --- |
43
43
  | `tree` | `MarkdownNode \| null` | — | Markdown | The document in mdast; never HTML |
44
- | `source` | `string` | — | Markdown | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; tables, images and HTML need an adapter |
44
+ | `source` | `string` | — | Markdown | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, GFM tables, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; images and HTML need an adapter |
45
45
  | `size` | `'md' \| 'lg' \| 'xl'` | lg | Markdown | The region’s type step, from prose |
46
46
  | `flow` | `'tight' \| 'normal' \| 'loose'` | normal | Markdown | The space between blocks, from prose |
47
47
  | `status` | `'ready' \| 'error'` | ready | Markdown | error replaces the document with the error part |
@@ -79,8 +79,12 @@ has.
79
79
  `--slotted-page-footer-background` with
80
80
  `--slotted-page-footer-backdrop-filter`, and
81
81
  `--slotted-detail-panel-footer-background` with
82
- `--slotted-detail-panel-footer-backdrop-filter`, and a dialog's panel
83
- `--slotted-dialog-surface` with `--slotted-dialog-backdrop-filter`.
82
+ `--slotted-detail-panel-footer-backdrop-filter`, and a drawer's footer
83
+ `--slotted-drawer-footer-surface` with
84
+ `--slotted-drawer-footer-backdrop-filter`, and a dialog's panel
85
+ `--slotted-dialog-surface` with `--slotted-dialog-backdrop-filter`. The
86
+ chart's tooltip, menu and help read one filter,
87
+ `--slotted-chart-overlay-backdrop-filter`.
84
88
 
85
89
  ## 4. Restyle a control
86
90
 
@@ -256,6 +256,13 @@
256
256
  "appliesTo": "StatCard, StatCardValue, StatCardDelta",
257
257
  "description": "How a number is written. On the root, the default for the value and the delta"
258
258
  },
259
+ {
260
+ "name": "emphasis",
261
+ "type": "'none' | 'whole'",
262
+ "defaultValue": "'none'",
263
+ "appliesTo": "StatCardValue",
264
+ "description": "whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way"
265
+ },
259
266
  {
260
267
  "name": "messages",
261
268
  "type": "Partial<StatCardMessages>",
@@ -80,6 +80,7 @@ Excerpt — not a complete module
80
80
  | `tone` | `'neutral' \| 'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | — | StatCard, StatCardDelta | An explicit tone, which wins over the derived one. On the root it is what the trend hands its sparkline |
81
81
  | `locale` | `string` | — | StatCard | BCP 47, for every number the card formats; the language in force when absent |
82
82
  | `formatOptions` | `Intl.NumberFormatOptions` | — | StatCard, StatCardValue, StatCardDelta | How a number is written. On the root, the default for the value and the delta |
83
+ | `emphasis` | `'none' \| 'whole'` | 'none' | StatCardValue | whole draws the symbol, the decimals and the suffix of a numeric value in the unit part, so the whole units carry the figure; the text is the formatter’s either way |
83
84
  | `messages` | `Partial<StatCardMessages>` | — | StatCard | Words laid over the language in force, key by key: up, down and flat, heard before the delta; empty, shown in place of a missing value |
84
85
  | `value` | `number \| string` | — | StatCardValue, StatCardDelta | A number the card formats, or text as written. On a delta, unset means the root’s delta |
85
86
  | `format` | `'percent' \| 'decimal'` | percent | StatCardDelta | percent reads the value as a fraction; decimal reads it as it is. The sign is shown except on nought |
@@ -18,7 +18,8 @@
18
18
  "variant": [
19
19
  "solid",
20
20
  "soft",
21
- "outline"
21
+ "outline",
22
+ "dashed"
22
23
  ],
23
24
  "size": [
24
25
  "sm",
@@ -189,10 +190,10 @@
189
190
  },
190
191
  {
191
192
  "name": "variant",
192
- "type": "'solid' | 'soft' | 'outline'",
193
+ "type": "'solid' | 'soft' | 'outline' | 'dashed'",
193
194
  "defaultValue": "soft",
194
195
  "appliesTo": "Tag",
195
- "description": "How that colour is painted: filled, tinted, or an edge alone. A selected tag fills whatever its variant"
196
+ "description": "How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
196
197
  },
197
198
  {
198
199
  "name": "size",
@@ -329,10 +330,10 @@
329
330
  },
330
331
  {
331
332
  "name": "variant",
332
- "type": "'solid' | 'soft' | 'outline'",
333
+ "type": "'solid' | 'soft' | 'outline' | 'dashed'",
333
334
  "defaultValue": "soft",
334
335
  "appliesTo": "TagButton",
335
- "description": "How that colour is painted: filled, tinted, or an edge alone. A selected tag fills whatever its variant"
336
+ "description": "How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
336
337
  },
337
338
  {
338
339
  "name": "size",
@@ -427,10 +428,10 @@
427
428
  },
428
429
  {
429
430
  "name": "variant",
430
- "type": "'solid' | 'soft' | 'outline'",
431
+ "type": "'solid' | 'soft' | 'outline' | 'dashed'",
431
432
  "defaultValue": "soft",
432
433
  "appliesTo": "TagLink",
433
- "description": "How that colour is painted: filled, tinted, or an edge alone. A selected tag fills whatever its variant"
434
+ "description": "How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
434
435
  },
435
436
  {
436
437
  "name": "size",
@@ -525,10 +526,10 @@
525
526
  },
526
527
  {
527
528
  "name": "variant",
528
- "type": "'solid' | 'soft' | 'outline'",
529
+ "type": "'solid' | 'soft' | 'outline' | 'dashed'",
529
530
  "defaultValue": "soft",
530
531
  "appliesTo": "TagToggle",
531
- "description": "How that colour is painted: filled, tinted, or an edge alone. A selected tag fills whatever its variant"
532
+ "description": "How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant"
532
533
  },
533
534
  {
534
535
  "name": "size",
package/dist/docs/tag.md CHANGED
@@ -18,7 +18,7 @@ Excerpt — not a complete module
18
18
  | Name | Type | Default | Applies to | Description |
19
19
  | --- | --- | --- | --- | --- |
20
20
  | `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | Tag | Which of the five semantic colours the tag speaks in |
21
- | `variant` | `'solid' \| 'soft' \| 'outline'` | soft | Tag | How that colour is painted: filled, tinted, or an edge alone. A selected tag fills whatever its variant |
21
+ | `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | Tag | How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
22
22
  | `size` | `'sm' \| 'md' \| 'lg'` | md | Tag | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
23
23
  | `shape` | `'pill' \| 'square'` | pill | Tag | A rounded chip, or a rectangle with the small corner radius |
24
24
  | `start` | `ReactNode` | — | Tag | A glyph or an avatar before the words, wrapped in the start part, which sizes and centres it |
@@ -40,7 +40,7 @@ Excerpt — not a complete module
40
40
  | Name | Type | Default | Applies to | Description |
41
41
  | --- | --- | --- | --- | --- |
42
42
  | `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagButton | Which of the five semantic colours the tag speaks in |
43
- | `variant` | `'solid' \| 'soft' \| 'outline'` | soft | TagButton | How that colour is painted: filled, tinted, or an edge alone. A selected tag fills whatever its variant |
43
+ | `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagButton | How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
44
44
  | `size` | `'sm' \| 'md' \| 'lg'` | md | TagButton | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
45
45
  | `shape` | `'pill' \| 'square'` | pill | TagButton | A rounded chip, or a rectangle with the small corner radius |
46
46
  | `start` | `ReactNode` | — | TagButton | A glyph or an avatar before the words, wrapped in the start part, which sizes and centres it |
@@ -56,7 +56,7 @@ Excerpt — not a complete module
56
56
  | Name | Type | Default | Applies to | Description |
57
57
  | --- | --- | --- | --- | --- |
58
58
  | `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagLink | Which of the five semantic colours the tag speaks in |
59
- | `variant` | `'solid' \| 'soft' \| 'outline'` | soft | TagLink | How that colour is painted: filled, tinted, or an edge alone. A selected tag fills whatever its variant |
59
+ | `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagLink | How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
60
60
  | `size` | `'sm' \| 'md' \| 'lg'` | md | TagLink | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
61
61
  | `shape` | `'pill' \| 'square'` | pill | TagLink | A rounded chip, or a rectangle with the small corner radius |
62
62
  | `start` | `ReactNode` | — | TagLink | A glyph or an avatar before the words, wrapped in the start part, which sizes and centres it |
@@ -72,7 +72,7 @@ Excerpt — not a complete module
72
72
  | Name | Type | Default | Applies to | Description |
73
73
  | --- | --- | --- | --- | --- |
74
74
  | `tone` | `'accent' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'danger'` | secondary | TagToggle | Which of the five semantic colours the tag speaks in |
75
- | `variant` | `'solid' \| 'soft' \| 'outline'` | soft | TagToggle | How that colour is painted: filled, tinted, or an edge alone. A selected tag fills whatever its variant |
75
+ | `variant` | `'solid' \| 'soft' \| 'outline' \| 'dashed'` | soft | TagToggle | How that colour is painted: filled, tinted, an edge alone, or that edge in dashes. A selected tag fills whatever its variant |
76
76
  | `size` | `'sm' \| 'md' \| 'lg'` | md | TagToggle | Type, glyph and gap come from the control scale, so a tag shrinks with density beside the controls it sits with |
77
77
  | `shape` | `'pill' \| 'square'` | pill | TagToggle | A rounded chip, or a rectangle with the small corner radius |
78
78
  | `start` | `ReactNode` | — | TagToggle | A glyph or an avatar before the words, wrapped in the start part, which sizes and centres it |
@@ -90,7 +90,7 @@ Excerpt — not a complete module
90
90
  | Axis | Values | Default |
91
91
  | --- | --- | --- |
92
92
  | `tone` | `accent`, `secondary`, `info`, `success`, `warning`, `danger` | `secondary` |
93
- | `variant` | `solid`, `soft`, `outline` | `soft` |
93
+ | `variant` | `solid`, `soft`, `outline`, `dashed` | `soft` |
94
94
  | `size` | `sm`, `md`, `lg` | `md` |
95
95
  | `shape` | `pill`, `square` | `pill` |
96
96
  | `orientation` | `horizontal`, `vertical` | `horizontal` |
package/dist/index.js CHANGED
@@ -110,7 +110,7 @@ import { S as Pp, _ as Fp, a as Ip, b as Lp, c as Rp, d as zp, f as Bp, g as Vp,
110
110
  import { n as nm, r as rm, t as im } from "./slider-Bp1QjJKu.js";
111
111
  import { n as am, r as om, t as sm } from "./sparkline-CYU4_lCD.js";
112
112
  import { t as cm } from "./stack-BbgvuQ7m.js";
113
- import { _ as lm, a as um, c as dm, d as fm, f as pm, g as mm, h as hm, i as gm, l as _m, m as vm, n as ym, o as bm, p as xm, r as Sm, s as Cm, t as wm, u as Tm, v as Em } from "./stat-card-Dv9oJAbF.js";
113
+ import { _ as lm, a as um, c as dm, d as fm, f as pm, g as mm, h as hm, i as gm, l as _m, m as vm, n as ym, o as bm, p as xm, r as Sm, s as Cm, t as wm, u as Tm, v as Em } from "./stat-card-BpKP2yxe.js";
114
114
  import { i as Dm, n as Om, r as km, t as Am } from "./status-indicator-DkV95RZc.js";
115
115
  import { a as jm, c as Mm, i as Nm, l as Pm, n as Fm, o as Im, r as Lm, s as Rm, t as zm } from "./stepper-DHdrANZI.js";
116
116
  import { i as Bm, n as Vm, r as Hm, t as Um } from "./switch-DmLzDbTb.js";
@@ -7,28 +7,29 @@ import { keyedProps as c } from "@slotted/core/selector-key";
7
7
  import { createContext as l, useContext as u, useId as d, useMemo as f } from "react";
8
8
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
9
9
  import { statCardMessages as g } from "@slotted/core/i18n";
10
+ import { figureRuns as _ } from "@slotted/core/number";
10
11
  //#region src/stat-card/stat-card-context.tsx
11
- var _ = l(null), v = _.Provider;
12
- function y() {
13
- let e = u(_);
12
+ var v = l(null), y = v.Provider;
13
+ function b() {
14
+ let e = u(v);
14
15
  if (e === null) throw Error("A stat-card part must be rendered inside <StatCard>.");
15
16
  return e;
16
17
  }
17
- function b(e) {
18
+ function x(e) {
18
19
  return e === void 0 || Number.isNaN(e) || e === 0 ? "flat" : e > 0 ? "up" : "down";
19
20
  }
20
- function x(e, t) {
21
+ function S(e, t) {
21
22
  return e === "flat" || t === "none" ? "neutral" : e === "up" == (t === "up") ? "success" : "danger";
22
23
  }
23
24
  //#endregion
24
25
  //#region src/stat-card/stat-card-defaults.tsx
25
- var S = l({});
26
- function C() {
27
- return u(S);
26
+ var C = l({});
27
+ function w() {
28
+ return u(C);
28
29
  }
29
- function w({ children: e, ...t }) {
30
- let n = C();
31
- return /* @__PURE__ */ m(S.Provider, {
30
+ function T({ children: e, ...t }) {
31
+ let n = w();
32
+ return /* @__PURE__ */ m(C.Provider, {
32
33
  value: {
33
34
  fill: t.fill ?? n.fill,
34
35
  formatOptions: t.formatOptions ?? n.formatOptions,
@@ -41,15 +42,15 @@ function w({ children: e, ...t }) {
41
42
  }
42
43
  //#endregion
43
44
  //#region src/stat-card/stat-card.tsx
44
- function T({ children: n, delta: r, fill: i, formatOptions: a, goodWhen: o, layout: s, loading: l = !1, locale: u, messages: p, render: h, size: _, status: y = "ready", tone: S, ...w }) {
45
- let T = C(), E = e(), D = t(g, p), O = d(), k = {
45
+ function E({ children: n, delta: r, fill: i, formatOptions: a, goodWhen: o, layout: s, loading: l = !1, locale: u, messages: p, render: h, size: _, status: v = "ready", tone: b, ...C }) {
46
+ let T = w(), E = e(), D = t(g, p), O = d(), k = {
46
47
  fill: i ?? T.fill ?? "outline",
47
48
  goodWhen: o ?? T.goodWhen ?? "up",
48
49
  layout: s ?? T.layout ?? "inline",
49
50
  size: _ ?? T.size ?? "md",
50
51
  locale: u ?? E,
51
52
  formatOptions: a ?? T.formatOptions
52
- }, A = S ?? (r === void 0 ? void 0 : x(b(r), k.goodWhen)), j = f(() => ({
53
+ }, A = b ?? (r === void 0 ? void 0 : S(x(r), k.goodWhen)), j = f(() => ({
53
54
  delta: r,
54
55
  formatOptions: k.formatOptions,
55
56
  goodWhen: k.goodWhen,
@@ -58,7 +59,7 @@ function T({ children: n, delta: r, fill: i, formatOptions: a, goodWhen: o, layo
58
59
  locale: k.locale,
59
60
  t: D,
60
61
  size: k.size,
61
- status: y,
62
+ status: v,
62
63
  tone: A
63
64
  }), [
64
65
  r,
@@ -69,13 +70,13 @@ function T({ children: n, delta: r, fill: i, formatOptions: a, goodWhen: o, layo
69
70
  k.locale,
70
71
  D,
71
72
  k.size,
72
- y,
73
+ v,
73
74
  A
74
75
  ]), M = c({
75
76
  "aria-labelledby": O,
76
- ...w,
77
+ ...C,
77
78
  "aria-busy": l || void 0,
78
- children: /* @__PURE__ */ m(v, {
79
+ children: /* @__PURE__ */ m(y, {
79
80
  value: j,
80
81
  children: /* @__PURE__ */ m("div", {
81
82
  "data-part": "body",
@@ -89,7 +90,7 @@ function T({ children: n, delta: r, fill: i, formatOptions: a, goodWhen: o, layo
89
90
  "data-loading": l || void 0,
90
91
  "data-part": "root",
91
92
  "data-size": k.size,
92
- "data-status": y,
93
+ "data-status": v,
93
94
  "data-tone": A,
94
95
  "data-ui": "stat-card",
95
96
  role: "group"
@@ -98,8 +99,8 @@ function T({ children: n, delta: r, fill: i, formatOptions: a, goodWhen: o, layo
98
99
  }
99
100
  //#endregion
100
101
  //#region src/stat-card/stat-card-delta.tsx
101
- function E({ children: e, format: t = "percent", formatOptions: o, goodWhen: s, render: l, tone: u, value: d, ...g }) {
102
- let _ = y(), v = d ?? _.delta, S = b(v), C = u ?? x(S, s ?? _.goodWhen), w = f(() => {
102
+ function D({ children: e, format: t = "percent", formatOptions: o, goodWhen: s, render: l, tone: u, value: d, ...g }) {
103
+ let _ = b(), v = d ?? _.delta, y = x(v), C = u ?? S(y, s ?? _.goodWhen), w = f(() => {
103
104
  if (typeof v == "number") return new Intl.NumberFormat(_.locale, {
104
105
  signDisplay: "exceptZero",
105
106
  ...t === "percent" ? {
@@ -135,30 +136,30 @@ function E({ children: e, format: t = "percent", formatOptions: o, goodWhen: s,
135
136
  "data-part": "indicator",
136
137
  "data-part-indicator": "",
137
138
  children: /* @__PURE__ */ m(r, {
138
- directional: S !== "flat",
139
- children: /* @__PURE__ */ m(n, { name: S === "flat" ? "minus" : "trending-up" })
139
+ directional: y !== "flat",
140
+ children: /* @__PURE__ */ m(n, { name: y === "flat" ? "minus" : "trending-up" })
140
141
  })
141
142
  }),
142
- /* @__PURE__ */ h(a, { children: [_.t(S), " "] }),
143
+ /* @__PURE__ */ h(a, { children: [_.t(y), " "] }),
143
144
  e ?? w
144
145
  ] }),
145
146
  "data-part": "delta",
146
147
  "data-tone": C,
147
- "data-trend": S
148
+ "data-trend": y
148
149
  });
149
150
  return l === void 0 ? /* @__PURE__ */ m("span", { ...T }) : l(T);
150
151
  }
151
152
  //#endregion
152
153
  //#region src/stat-card/stat-card-parts.tsx
153
- function D({ render: e, ...t }) {
154
+ function O({ render: e, ...t }) {
154
155
  let n = c({
155
156
  ...t,
156
157
  "data-part": "header"
157
158
  });
158
159
  return e === void 0 ? /* @__PURE__ */ m("div", { ...n }) : e(n);
159
160
  }
160
- function O({ children: e, render: t, ...n }) {
161
- let { labelId: r, loading: a } = y(), o = c({
161
+ function k({ children: e, render: t, ...n }) {
162
+ let { labelId: r, loading: a } = b(), o = c({
162
163
  id: r,
163
164
  ...n,
164
165
  children: a && e === void 0 ? /* @__PURE__ */ m(i, { inlineSize: "8em" }) : e,
@@ -166,36 +167,36 @@ function O({ children: e, render: t, ...n }) {
166
167
  });
167
168
  return t === void 0 ? /* @__PURE__ */ m("span", { ...o }) : t(o);
168
169
  }
169
- function k({ render: e, ...t }) {
170
+ function A({ render: e, ...t }) {
170
171
  let n = c({
171
172
  ...t,
172
173
  "data-part": "status"
173
174
  });
174
175
  return e === void 0 ? /* @__PURE__ */ m("span", { ...n }) : e(n);
175
176
  }
176
- function A({ render: e, ...t }) {
177
+ function j({ render: e, ...t }) {
177
178
  let n = c({
178
179
  ...t,
179
180
  "data-part": "action"
180
181
  });
181
182
  return e === void 0 ? /* @__PURE__ */ m("span", { ...n }) : e(n);
182
183
  }
183
- function j({ render: e, ...t }) {
184
+ function M({ render: e, ...t }) {
184
185
  let n = c({
185
186
  ...t,
186
187
  "data-part": "figure"
187
188
  });
188
189
  return e === void 0 ? /* @__PURE__ */ m("div", { ...n }) : e(n);
189
190
  }
190
- function M({ render: e, ...t }) {
191
+ function N({ render: e, ...t }) {
191
192
  let n = c({
192
193
  ...t,
193
194
  "data-part": "unit"
194
195
  });
195
196
  return e === void 0 ? /* @__PURE__ */ m("span", { ...n }) : e(n);
196
197
  }
197
- function N({ children: e, render: t, ...n }) {
198
- let { loading: r, status: a } = y();
198
+ function P({ children: e, render: t, ...n }) {
199
+ let { loading: r, status: a } = b();
199
200
  if (!r && a !== "ready") return null;
200
201
  let o = c({
201
202
  ...n,
@@ -204,15 +205,15 @@ function N({ children: e, render: t, ...n }) {
204
205
  });
205
206
  return t === void 0 ? /* @__PURE__ */ m("p", { ...o }) : t(o);
206
207
  }
207
- function P({ render: e, ...t }) {
208
+ function F({ render: e, ...t }) {
208
209
  let n = c({
209
210
  ...t,
210
211
  "data-part": "period"
211
212
  });
212
213
  return e === void 0 ? /* @__PURE__ */ m("span", { ...n }) : e(n);
213
214
  }
214
- function F({ children: e, render: t, ...n }) {
215
- let { loading: r, status: a } = y(), l = s();
215
+ function I({ children: e, render: t, ...n }) {
216
+ let { loading: r, status: a } = b(), l = s();
216
217
  if (!r && a !== "ready") return null;
217
218
  let u = c({
218
219
  ...n,
@@ -225,8 +226,8 @@ function F({ children: e, render: t, ...n }) {
225
226
  });
226
227
  return t === void 0 ? /* @__PURE__ */ m("div", { ...u }) : t(u);
227
228
  }
228
- function I({ render: e, ...t }) {
229
- let { loading: n, status: r } = y();
229
+ function L({ render: e, ...t }) {
230
+ let { loading: n, status: r } = b();
230
231
  if (n || r === "ready") return null;
231
232
  let i = c({
232
233
  ...t,
@@ -236,17 +237,22 @@ function I({ render: e, ...t }) {
236
237
  }
237
238
  //#endregion
238
239
  //#region src/stat-card/stat-card-value.tsx
239
- function L({ children: e, formatOptions: t, render: n, value: r, ...a }) {
240
- let o = y(), s = t ?? o.formatOptions, l = f(() => typeof r == "number" ? new Intl.NumberFormat(o.locale, s).format(r) : r, [
241
- r,
242
- o.locale,
243
- s
244
- ]), u = o.loading ? /* @__PURE__ */ m(i, { inlineSize: "5ch" }) : o.status === "ready" ? e ?? l : o.t("empty"), d = c({
245
- ...a,
246
- children: u,
240
+ function R({ children: e, emphasis: t = "none", formatOptions: n, render: r, value: a, ...o }) {
241
+ let s = b(), l = n ?? s.formatOptions, u = f(() => {
242
+ if (typeof a != "number") return a;
243
+ let e = new Intl.NumberFormat(s.locale, l);
244
+ return t === "none" ? e.format(a) : _(e.formatToParts(a)).map((e, t) => e.secondary ? /* @__PURE__ */ m(N, { children: e.text }, t) : e.text);
245
+ }, [
246
+ a,
247
+ s.locale,
248
+ l,
249
+ t
250
+ ]), d = s.loading ? /* @__PURE__ */ m(i, { inlineSize: "5ch" }) : s.status === "ready" ? e ?? u : s.t("empty"), p = c({
251
+ ...o,
252
+ children: d,
247
253
  "data-part": "value"
248
254
  });
249
- return n === void 0 ? /* @__PURE__ */ m("span", { ...d }) : n(d);
255
+ return r === void 0 ? /* @__PURE__ */ m("span", { ...p }) : r(p);
250
256
  }
251
257
  //#endregion
252
- export { b as _, D as a, P as c, M as d, E as f, x as g, C as h, j as i, k as l, w as m, A as n, O as o, T as p, N as r, I as s, L as t, F as u, y as v };
258
+ export { x as _, O as a, F as c, N as d, D as f, S as g, w as h, M as i, A as l, T as m, j as n, k as o, E as p, P as r, L as s, R as t, I as u, b as v };
package/dist/stat-card.js CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./stat-card-Dv9oJAbF.js";
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _ } from "./stat-card-BpKP2yxe.js";
2
2
  export { f as StatCard, u as StatCardAction, p as StatCardComparison, l as StatCardDefaultsProvider, i as StatCardDelta, s as StatCardFigure, t as StatCardHeader, d as StatCardLabel, m as StatCardMessage, n as StatCardPeriod, c as StatCardStatus, g as StatCardTrend, r as StatCardUnit, h as StatCardValue, a as toneOf, e as trendOf, _ as useStatCard, o as useStatCardDefaults };