@eldrajs/ui 0.2.9 → 0.3.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.
Files changed (120) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +113 -122
  3. package/dist/{VariantPicker-Da41_oGA.js → VariantPicker-C-9sMXGI.js} +1188 -798
  4. package/dist/components/accordion/Accordion.vue.d.ts +1 -2
  5. package/dist/components/accordion/AccordionItem.vue.d.ts +1 -1
  6. package/dist/components/accordion/types.d.ts +6 -7
  7. package/dist/components/avatar/Avatar.vue.d.ts +1 -1
  8. package/dist/components/avatar/types.d.ts +6 -4
  9. package/dist/components/badge/types.d.ts +6 -4
  10. package/dist/components/breadcrumb/types.d.ts +5 -2
  11. package/dist/components/button/Button.vue.d.ts +3 -3
  12. package/dist/components/button/ButtonGroup.vue.d.ts +0 -1
  13. package/dist/components/button/types.d.ts +7 -6
  14. package/dist/components/card/ContentCard.vue.d.ts +1 -1
  15. package/dist/components/card/FeatureCard.vue.d.ts +1 -1
  16. package/dist/components/card/stretchedLink.d.ts +3 -3
  17. package/dist/components/card/types.d.ts +6 -4
  18. package/dist/components/carousel/types.d.ts +7 -3
  19. package/dist/components/checkbox/Checkbox.vue.d.ts +3 -3
  20. package/dist/components/checkbox/CheckboxGroup.vue.d.ts +1 -1
  21. package/dist/components/checkbox/types.d.ts +10 -4
  22. package/dist/components/chip/Chip.vue.d.ts +1 -1
  23. package/dist/components/chip/ChipGroup.vue.d.ts +0 -1
  24. package/dist/components/chip/types.d.ts +5 -6
  25. package/dist/components/container/Container.vue.d.ts +0 -1
  26. package/dist/components/container/types.d.ts +0 -4
  27. package/dist/components/dialog/Dialog.vue.d.ts +2 -2
  28. package/dist/components/dialog/types.d.ts +5 -2
  29. package/dist/components/drawer/Drawer.vue.d.ts +1 -1
  30. package/dist/components/drawer/types.d.ts +5 -2
  31. package/dist/components/empty-state/EmptyState.vue.d.ts +1 -1
  32. package/dist/components/empty-state/types.d.ts +7 -6
  33. package/dist/components/field-wrapper/FieldWrapper.vue.d.ts +1 -1
  34. package/dist/components/field-wrapper/types.d.ts +5 -2
  35. package/dist/components/filter-panel/FilterPanel.vue.d.ts +4 -4
  36. package/dist/components/filter-panel/facets/shared.d.ts +4 -4
  37. package/dist/components/filter-panel/types.d.ts +5 -2
  38. package/dist/components/form-layout/FormLayout.vue.d.ts +1 -1
  39. package/dist/components/form-layout/types.d.ts +5 -2
  40. package/dist/components/icon/Icon.vue.d.ts +1 -2
  41. package/dist/components/icon/types.d.ts +0 -4
  42. package/dist/components/image/types.d.ts +3 -2
  43. package/dist/components/input/Input.vue.d.ts +6 -6
  44. package/dist/components/input/classes.d.ts +25 -19
  45. package/dist/components/input/types.d.ts +5 -2
  46. package/dist/components/lightbox/Lightbox.vue.d.ts +1 -1
  47. package/dist/components/lightbox/types.d.ts +5 -2
  48. package/dist/components/link/Link.vue.d.ts +1 -1
  49. package/dist/components/link/types.d.ts +5 -2
  50. package/dist/components/load-more/types.d.ts +4 -3
  51. package/dist/components/logo-item/LogoItem.vue.d.ts +1 -1
  52. package/dist/components/logo-item/types.d.ts +2 -1
  53. package/dist/components/nav-menu/NavMenu.vue.d.ts +1 -1
  54. package/dist/components/nav-menu/navLinks.d.ts +1 -1
  55. package/dist/components/nav-menu/types.d.ts +3 -3
  56. package/dist/components/pagination/types.d.ts +5 -2
  57. package/dist/components/popover/Popover.vue.d.ts +1 -1
  58. package/dist/components/popover/types.d.ts +5 -6
  59. package/dist/components/price/types.d.ts +3 -2
  60. package/dist/components/product-card/ProductCard.vue.d.ts +1 -1
  61. package/dist/components/product-card/types.d.ts +3 -2
  62. package/dist/components/quantity-stepper/QuantityStepper.vue.d.ts +4 -4
  63. package/dist/components/quantity-stepper/types.d.ts +5 -2
  64. package/dist/components/radio/Radio.vue.d.ts +3 -3
  65. package/dist/components/radio/RadioGroup.vue.d.ts +3 -3
  66. package/dist/components/radio/recipes.d.ts +11 -7
  67. package/dist/components/radio/types.d.ts +11 -5
  68. package/dist/components/range-slider/RangeSlider.vue.d.ts +1 -1
  69. package/dist/components/range-slider/types.d.ts +5 -2
  70. package/dist/components/rating/Rating.vue.d.ts +1 -1
  71. package/dist/components/rating/types.d.ts +3 -2
  72. package/dist/components/search-bar/SearchBar.vue.d.ts +3 -3
  73. package/dist/components/search-bar/SearchResultsPanel.vue.d.ts +1 -1
  74. package/dist/components/search-bar/types.d.ts +5 -2
  75. package/dist/components/search-modal/SearchModal.vue.d.ts +2 -2
  76. package/dist/components/search-modal/types.d.ts +7 -4
  77. package/dist/components/section/Section.vue.d.ts +0 -1
  78. package/dist/components/section/types.d.ts +0 -4
  79. package/dist/components/select/MultiSelect.vue.d.ts +5 -5
  80. package/dist/components/select/Select.vue.d.ts +4 -4
  81. package/dist/components/select/SelectPanel.vue.d.ts +2 -2
  82. package/dist/components/select/panelParts.d.ts +21 -20
  83. package/dist/components/select/types.d.ts +10 -4
  84. package/dist/components/site-form/SiteForm.vue.d.ts +1 -1
  85. package/dist/components/site-form/types.d.ts +6 -2
  86. package/dist/components/skeleton/Skeleton.vue.d.ts +2 -2
  87. package/dist/components/skeleton/types.d.ts +4 -4
  88. package/dist/components/switch/Switch.vue.d.ts +2 -2
  89. package/dist/components/switch/types.d.ts +5 -2
  90. package/dist/components/tabler-icon/TablerIcon.vue.d.ts +2 -3
  91. package/dist/components/tabler-icon/types.d.ts +0 -4
  92. package/dist/components/tabs/Tab.vue.d.ts +1 -1
  93. package/dist/components/tabs/TabPanel.vue.d.ts +1 -3
  94. package/dist/components/tabs/Tabs.vue.d.ts +1 -1
  95. package/dist/components/tabs/types.d.ts +13 -11
  96. package/dist/components/textarea/Textarea.vue.d.ts +4 -4
  97. package/dist/components/textarea/types.d.ts +5 -2
  98. package/dist/components/toast/types.d.ts +9 -3
  99. package/dist/components/tooltip/types.d.ts +4 -3
  100. package/dist/components/unit-input/UnitInput.vue.d.ts +7 -7
  101. package/dist/components/unit-input/types.d.ts +5 -2
  102. package/dist/components/variant-picker/VariantPicker.vue.d.ts +1 -1
  103. package/dist/components/variant-picker/types.d.ts +3 -2
  104. package/dist/components/visually-hidden/VisuallyHidden.vue.d.ts +0 -1
  105. package/dist/components/visually-hidden/types.d.ts +0 -4
  106. package/dist/components.css +1422 -2310
  107. package/dist/composables/useEldraScope.d.ts +7 -9
  108. package/dist/index.d.ts +5 -6
  109. package/dist/index.js +1357 -880
  110. package/dist/style.css +1427 -2315
  111. package/dist/tailwind.css +11 -2234
  112. package/dist/theme.css +108 -0
  113. package/dist/tokens.css +1 -0
  114. package/dist/utilities.css +2160 -0
  115. package/dist/utils/mergeClass.d.ts +3 -0
  116. package/dist/utils/tagRecipe.d.ts +3 -3
  117. package/dist/vee-validate.js +1 -1
  118. package/package.json +4 -3
  119. package/dist/scoped.css +0 -4623
  120. package/dist/utils/cx.d.ts +0 -31
@@ -18,10 +18,10 @@ declare const __VLS_base: import('vue').DefineComponent<SwitchProps, {}, {}, {},
18
18
  "onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
19
19
  onChange?: ((checked: boolean) => any) | undefined;
20
20
  }>, {
21
- size: SwitchSize;
22
21
  name: string;
23
- classes: Partial<Record<import('./types.js').SwitchPart, string>>;
22
+ size: SwitchSize;
24
23
  modelValue: boolean;
24
+ classes: Partial<Record<import('./types.js').SwitchPart, string>>;
25
25
  error: string;
26
26
  id: string;
27
27
  disabled: boolean;
@@ -1,5 +1,5 @@
1
1
  /** The parts a consumer can restyle through `classes`, named as the spec's anatomy names them. */
2
- export type SwitchPart = 'root' | 'track' | 'thumb' | 'label' | 'description' | 'trackStart' | 'trackEnd' | 'requiredMark' | 'error' | 'errorIcon';
2
+ export type SwitchPart = 'track' | 'thumb' | 'label' | 'description' | 'trackStart' | 'trackEnd' | 'requiredMark' | 'error' | 'errorIcon';
3
3
  /** What the `thumb`, `trackStart` and `trackEnd` slots are handed. Their content is decorative
4
4
  * (`aria-hidden`): the switch's name and `aria-checked` carry the meaning. */
5
5
  export interface SwitchSlotProps {
@@ -39,6 +39,9 @@ export interface SwitchProps {
39
39
  id?: string;
40
40
  /** Native form field name, carried by the hidden mirror `<input type="checkbox">`. */
41
41
  name?: string;
42
- /** Per-part class overrides, merged with `tailwind-merge`. */
42
+ /**
43
+ * Per-part classes, appended to the part's own (a consumer class wins by cascade layer). The
44
+ * root (the `<button>`) is styled with `class`.
45
+ */
43
46
  classes?: Partial<Record<SwitchPart, string>>;
44
47
  }
@@ -1,9 +1,8 @@
1
1
  import { TablerIconProps } from './types.js';
2
2
  declare const __VLS_export: import('vue').DefineComponent<TablerIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TablerIconProps> & Readonly<{}>, {
3
- size: import('../../index.js').IconSize;
4
- label: string;
5
3
  name: string | null;
6
- classes: Partial<Record<"root", string>>;
4
+ label: string;
5
+ size: import('../../index.js').IconSize;
7
6
  strokeWidth: number;
8
7
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
8
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,4 @@
1
1
  import { IconSize } from '../icon/types.js';
2
- /** The parts a consumer can restyle through `classes`. */
3
- export type TablerIconPart = 'root';
4
2
  export interface TablerIconProps {
5
3
  /** A `tabler-icon` field value: Tabler's kebab-case name (`cash-register`), which Studio and the MCP store, or the older export name (`IconCashRegister`) that content saved before 17 Oct 2026 may hold. Empty renders nothing. */
6
4
  name?: string | null;
@@ -10,6 +8,4 @@ export interface TablerIconProps {
10
8
  label?: string;
11
9
  /** The outline stroke width. Defaults to the spec's 1.75; a filled icon has no stroke. */
12
10
  strokeWidth?: number;
13
- /** Per-part class overrides, merged with `tailwind-merge`. */
14
- classes?: Partial<Record<TablerIconPart, string>>;
15
11
  }
@@ -7,7 +7,7 @@ declare const __VLS_template: () => {
7
7
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
8
8
  declare const __VLS_base: import('vue').DefineComponent<TabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabProps> & Readonly<{}>, {
9
9
  title: string;
10
- classes: Partial<Record<import('./types.js').TabPart, string>>;
10
+ classes: Partial<Record<"indicator", string>>;
11
11
  disabled: boolean;
12
12
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -5,9 +5,7 @@ declare const __VLS_template: () => {
5
5
  };
6
6
  };
7
7
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
8
- declare const __VLS_base: import('vue').DefineComponent<TabPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabPanelProps> & Readonly<{}>, {
9
- classes: Partial<Record<"panel", string>>;
10
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_base: import('vue').DefineComponent<TabPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabPanelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
10
  declare const _default: typeof __VLS_export;
13
11
  export default _default;
@@ -14,8 +14,8 @@ declare const __VLS_base: import('vue').DefineComponent<TabsProps, {}, {}, {}, {
14
14
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
15
  onChange?: ((value: string) => any) | undefined;
16
16
  }>, {
17
- classes: Partial<Record<import('./types.js').TabsPart, string>>;
18
17
  modelValue: string;
18
+ classes: Partial<Record<import('./types.js').TabsPart, string>>;
19
19
  variant: import('./types.js').TabsVariant;
20
20
  items: import('./types.js').TabsItem[];
21
21
  activation: import('./types.js').TabsActivation;
@@ -1,9 +1,9 @@
1
1
  /** The parts a consumer can restyle through `Tabs`' `classes`, named as the spec's anatomy names
2
2
  * them. `tab`, `indicator` and `panel` are drawn by the `Tab`/`TabPanel` children — in items mode
3
3
  * `Tabs` forwards its own `classes.tab`/`.indicator`/`.panel` down to the children it renders; in
4
- * slots mode a consumer restyles a single `Tab`/`TabPanel` through that component's own `classes`
5
- * instead (see `TabPart`/`TabPanelPart` below). */
6
- export type TabsPart = 'root' | 'list' | 'tab' | 'indicator' | 'panel';
4
+ * slots mode a consumer restyles a single `Tab`/`TabPanel` through that component's own `class`
5
+ * (and a `Tab`'s `classes.indicator`) instead. */
6
+ export type TabsPart = 'list' | 'tab' | 'indicator' | 'panel';
7
7
  /** Underline (default): a bar under the selected tab, sitting on the list's hairline. Pills: a
8
8
  * filled, fully-rounded button — the fill itself is the "indicator". */
9
9
  export type TabsVariant = 'underline' | 'pills';
@@ -40,11 +40,15 @@ export interface TabsProps {
40
40
  * `tabs` slot (for `Tab`s) and the default slot (for `TabPanel`s) instead for panel content
41
41
  * richer than plain text. */
42
42
  items?: TabsItem[];
43
- /** Per-part class overrides, merged with `tailwind-merge`. */
43
+ /**
44
+ * Per-part classes, appended to the part's own (they win by cascade layer). Style the root
45
+ * itself with `class`.
46
+ */
44
47
  classes?: Partial<Record<TabsPart, string>>;
45
48
  }
46
- /** The parts a consumer can restyle through a standalone `<Tab>`'s `classes`. */
47
- export type TabPart = 'tab' | 'indicator';
49
+ /** The part a consumer can restyle through a standalone `<Tab>`'s `classes`; the tab itself takes
50
+ * `class`. */
51
+ export type TabPart = 'indicator';
48
52
  export interface TabProps {
49
53
  /** This tab's value — what `Tabs`' `modelValue` holds when it is selected, and what
50
54
  * `aria-controls`/the matching `TabPanel`'s `value` are keyed by. */
@@ -59,14 +63,12 @@ export interface TabProps {
59
63
  * not disabled. Defaults to `false`.
60
64
  */
61
65
  disabled?: boolean;
62
- /** Per-part class overrides, merged with `tailwind-merge`. */
66
+ /** Per-part classes, appended to the part's own (they win by cascade layer). */
63
67
  classes?: Partial<Record<TabPart, string>>;
64
68
  }
65
- /** The one part a consumer can restyle through a standalone `<TabPanel>`'s `classes`. */
66
- export type TabPanelPart = 'panel';
69
+ /** `TabPanel` has no inner parts: style the panel itself with `class`. */
70
+ export type TabPanelPart = never;
67
71
  export interface TabPanelProps {
68
72
  /** The `Tab` this panel belongs to — must match that tab's own `value`. */
69
73
  value: string;
70
- /** Per-part class overrides, merged with `tailwind-merge`. */
71
- classes?: Partial<Record<TabPanelPart, string>>;
72
74
  }
@@ -11,20 +11,20 @@ declare const __VLS_base: import('vue').DefineComponent<TextareaProps, {
11
11
  control: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
12
12
  focus: () => void | undefined;
13
13
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- clear: () => any;
15
14
  input: (value: string) => any;
16
15
  "update:modelValue": (value: string) => any;
16
+ clear: () => any;
17
17
  change: (value: string) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<TextareaProps> & Readonly<{
19
- onClear?: (() => any) | undefined;
20
19
  onInput?: ((value: string) => any) | undefined;
21
20
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
+ onClear?: (() => any) | undefined;
22
22
  onChange?: ((value: string) => any) | undefined;
23
23
  }>, {
24
- counter: boolean;
25
24
  name: string;
26
- classes: Partial<Record<import('./types.js').TextareaPart, string>>;
25
+ counter: boolean;
27
26
  modelValue: string;
27
+ classes: Partial<Record<import('./types.js').TextareaPart, string>>;
28
28
  required: boolean;
29
29
  placeholder: string;
30
30
  id: string;
@@ -1,5 +1,5 @@
1
1
  /** The parts a consumer can restyle through `classes`, named as the spec's anatomy names them. */
2
- export type TextareaPart = 'root' | 'prefix' | 'control' | 'clearButton' | 'suffix' | 'foot' | 'counter';
2
+ export type TextareaPart = 'prefix' | 'control' | 'clearButton' | 'suffix' | 'foot' | 'counter';
3
3
  export interface TextareaProps {
4
4
  /** The text (two-way). */
5
5
  modelValue?: string;
@@ -36,6 +36,9 @@ export interface TextareaProps {
36
36
  name?: string;
37
37
  /** `aria-describedby` ids, error id first. Comes from the `FieldWrapper` otherwise. */
38
38
  describedBy?: string;
39
- /** Per-part class overrides, merged with `tailwind-merge`. */
39
+ /**
40
+ * Per-part classes, appended to the part's own (they win by cascade layer). Style the root with
41
+ * `class`.
42
+ */
40
43
  classes?: Partial<Record<TextareaPart, string>>;
41
44
  }
@@ -16,7 +16,7 @@ export type ToastAction = {
16
16
  onActivate: () => void;
17
17
  };
18
18
  /** The parts a consumer can restyle through `classes` (spec "Toast" -> Anatomy). */
19
- export type ToastPart = 'root' | 'icon' | 'title' | 'text' | 'action' | 'close';
19
+ export type ToastPart = 'icon' | 'title' | 'text' | 'action' | 'close';
20
20
  export interface ToastProps {
21
21
  /** Icon, colour and auto-dismiss timing (see `useToast`'s `DEFAULT_DURATION`). Default
22
22
  * `"success"`. Also on the root as `data-variant`, for a consumer's per-variant selector. */
@@ -34,7 +34,10 @@ export interface ToastProps {
34
34
  closable?: boolean;
35
35
  /** Message overrides (only `dismissNotification` applies here). See `useMessages`. */
36
36
  messages?: Partial<UiMessages>;
37
- /** Per-part class overrides, merged with `tailwind-merge`. */
37
+ /**
38
+ * Per-part classes, appended to the part's own (they win by cascade layer). Style the toast
39
+ * itself with `class`.
40
+ */
38
41
  classes?: Partial<Record<ToastPart, string>>;
39
42
  }
40
43
  /** The parts a consumer can restyle through `classes` (`Toaster`'s own anatomy: the fixed region
@@ -80,6 +83,9 @@ export interface ToasterProps {
80
83
  /** Message overrides, passed through to every `Toast` this renders and to the region's own
81
84
  * `aria-label`. See `useMessages`. */
82
85
  messages?: Partial<UiMessages>;
83
- /** Per-part class overrides, merged with `tailwind-merge`. */
86
+ /**
87
+ * Per-part classes, appended to the part's own (they win by cascade layer). `root` is a part
88
+ * here: the region is teleported, so a `class` on `Toaster` has no element to land on.
89
+ */
84
90
  classes?: Partial<Record<ToasterPart, string>>;
85
91
  }
@@ -8,8 +8,9 @@ export type TooltipAlign = 'start' | 'center' | 'end';
8
8
  * has a visible label (`aria-describedby`).
9
9
  */
10
10
  export type TooltipRole = 'label' | 'description';
11
- /** The parts a consumer can restyle through `classes`, named as the spec's anatomy names them. */
12
- export type TooltipPart = 'root' | 'bubble' | 'arrow';
11
+ /** The parts a consumer can restyle through `classes`, named as the spec's anatomy names them. The
12
+ * root is styled with `class`. */
13
+ export type TooltipPart = 'bubble' | 'arrow';
13
14
  /**
14
15
  * The default slot's first element is the trigger `Tooltip` names or describes. **It must be a
15
16
  * plain element, or a component whose focusable root receives `$attrs`** — an `aria-labelledby` or
@@ -41,6 +42,6 @@ export interface TooltipProps {
41
42
  * `label`.
42
43
  */
43
44
  role?: TooltipRole;
44
- /** Per-part class overrides, merged with `tailwind-merge`. */
45
+ /** Per-part classes, appended to the part's own (they win by cascade layer). */
45
46
  classes?: Partial<Record<TooltipPart, string>>;
46
47
  }
@@ -11,23 +11,23 @@ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
11
11
  declare const __VLS_base: import('vue').DefineComponent<UnitInputProps, {
12
12
  formatValue: typeof formatValue;
13
13
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- blur: (event: FocusEvent) => any;
15
- clear: () => any;
16
14
  "update:modelValue": (value: number | null) => any;
15
+ clear: () => any;
16
+ blur: (event: FocusEvent) => any;
17
17
  focus: (event: FocusEvent) => any;
18
18
  "update:formattedValue": (value: string) => any;
19
19
  }, string, import('vue').PublicProps, Readonly<UnitInputProps> & Readonly<{
20
- onBlur?: ((event: FocusEvent) => any) | undefined;
21
- onClear?: (() => any) | undefined;
22
20
  "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
21
+ onClear?: (() => any) | undefined;
22
+ onBlur?: ((event: FocusEvent) => any) | undefined;
23
23
  onFocus?: ((event: FocusEvent) => any) | undefined;
24
24
  "onUpdate:formattedValue"?: ((value: string) => any) | undefined;
25
25
  }>, {
26
- size: import('../../index.js').InputSize;
27
- label: string;
28
26
  name: string;
29
- classes: Partial<Record<import('./types.js').UnitInputPart, string>>;
27
+ label: string;
28
+ size: import('../../index.js').InputSize;
30
29
  modelValue: string | number | null;
30
+ classes: Partial<Record<import('./types.js').UnitInputPart, string>>;
31
31
  required: boolean;
32
32
  unit: string;
33
33
  max: number;
@@ -7,7 +7,7 @@ import { InputSize } from '../input/types.js';
7
7
  * `UnitInputProps.label`), so the field box is one element deeper than `Input`'s — the decorations
8
8
  * are positioned against `field`, never against a `root` that may also hold a label.
9
9
  */
10
- export type UnitInputPart = 'root' | 'label' | 'field' | 'leadingIcon' | 'control' | 'suffix' | 'dragHandle' | 'clearButton';
10
+ export type UnitInputPart = 'label' | 'field' | 'leadingIcon' | 'control' | 'suffix' | 'dragHandle' | 'clearButton';
11
11
  export interface UnitInputProps {
12
12
  /**
13
13
  * The value (two-way), as a **number** — never the string in the field. A numeric string is
@@ -63,6 +63,9 @@ export interface UnitInputProps {
63
63
  readonly?: boolean;
64
64
  /** Native `disabled`. */
65
65
  disabled?: boolean;
66
- /** Per-part class overrides, merged with `tailwind-merge`. */
66
+ /**
67
+ * Per-part classes, appended to the part's own (they win by cascade layer). Style the root with
68
+ * `class`.
69
+ */
67
70
  classes?: Partial<Record<UnitInputPart, string>>;
68
71
  }
@@ -6,10 +6,10 @@ declare const __VLS_export: import('vue').DefineComponent<VariantPickerProps, {}
6
6
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
7
7
  onChange?: ((value: string) => any) | undefined;
8
8
  }>, {
9
- classes: Partial<Record<import('./types.js').VariantPickerPart, string>>;
10
9
  type: import('./types.js').VariantPickerType;
11
10
  legend: string;
12
11
  modelValue: string;
12
+ classes: Partial<Record<import('./types.js').VariantPickerPart, string>>;
13
13
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /** The parts a consumer can restyle through `classes`, named as the spec's anatomy names them. */
2
- export type VariantPickerPart = 'root' | 'legend' | 'legendValue' | 'options' | 'option' | 'radio' | 'label' | 'swatch' | 'soldOutLine';
2
+ export type VariantPickerPart = 'legend' | 'legendValue' | 'options' | 'option' | 'radio' | 'label' | 'swatch' | 'soldOutLine';
3
3
  /** Pills for text values (sizes, capacities), swatches for colours and glazes. */
4
4
  export type VariantPickerType = 'pills' | 'swatches';
5
5
  /**
@@ -44,6 +44,7 @@ export interface VariantPickerProps {
44
44
  type?: VariantPickerType;
45
45
  /** The options. `swatch` colours are the one allowed per-item colour, set as an inline style. */
46
46
  options: VariantPickerOption[];
47
- /** Per-part class overrides, merged with `tailwind-merge`. */
47
+ /** Per-part classes, appended to the kit's own (they win by cascade layer). The root is styled
48
+ * with `class`. */
48
49
  classes?: Partial<Record<VariantPickerPart, string>>;
49
50
  }
@@ -6,7 +6,6 @@ declare const __VLS_template: () => {
6
6
  };
7
7
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
8
8
  declare const __VLS_base: import('vue').DefineComponent<VisuallyHiddenProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VisuallyHiddenProps> & Readonly<{}>, {
9
- classes: Partial<Record<"root", string>>;
10
9
  focusable: boolean;
11
10
  as: string;
12
11
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,5 +1,3 @@
1
- /** The parts a consumer can restyle through `classes`. */
2
- export type VisuallyHiddenPart = 'root';
3
1
  export interface VisuallyHiddenProps {
4
2
  /** The element to render. Defaults to `span`. */
5
3
  as?: string;
@@ -9,6 +7,4 @@ export interface VisuallyHiddenProps {
9
7
  * control's name).
10
8
  */
11
9
  focusable?: boolean;
12
- /** Per-part class overrides, merged with `tailwind-merge`. */
13
- classes?: Partial<Record<VisuallyHiddenPart, string>>;
14
10
  }