@vireo-ai/trellis-ui 0.1.8 → 0.1.10

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 (173) hide show
  1. package/package.json +8 -4
  2. package/packages/client/src/components/app/styles.css +1 -30
  3. package/packages/client/src/components/button/styles.css +1 -122
  4. package/packages/client/src/components/date-picker/styles.css +47 -77
  5. package/packages/client/src/components/field/styles.css +10 -0
  6. package/packages/client/src/components/file-upload/styles.css +0 -28
  7. package/packages/client/src/components/panels/styles.css +43 -0
  8. package/packages/client/src/components/radio/styles.css +26 -21
  9. package/packages/client/src/components/scroll-area/styles.css +0 -4
  10. package/packages/client/src/components/select/styles.css +0 -30
  11. package/packages/client/src/components/sidebar/styles.css +8 -0
  12. package/packages/client/src/components/toast/styles.css +14 -7
  13. package/packages/client/src/styles/components.css +1 -0
  14. package/packages/client/src/styles/generated/theme-fonts.css +5 -0
  15. package/packages/client/src/styles/generated/theme-palette.css +2656 -0
  16. package/packages/client/src/styles/generated/theme-runtime.css +2966 -0
  17. package/packages/client/src/styles/generated-sources.css +1 -1
  18. package/packages/client/src/styles/static.css +1 -0
  19. package/packages/client/src/styles/theme.css +777 -738
  20. package/packages/client/types/cdn.d.ts +1 -4
  21. package/packages/client/types/component-api.d.ts +21 -0
  22. package/packages/client/types/components/accordion/contract.d.ts +3 -2
  23. package/packages/client/types/components/accordion/index.d.ts +28 -42
  24. package/packages/client/types/components/accordion/machine.d.ts +131 -0
  25. package/packages/client/types/components/accordion/runtime-docs.d.ts +2 -0
  26. package/packages/client/types/components/action/contract.d.ts +3 -3
  27. package/packages/client/types/components/app/contract.d.ts +25 -12
  28. package/packages/client/types/components/app/index.d.ts +2 -2
  29. package/packages/client/types/components/badge/contract.d.ts +5 -5
  30. package/packages/client/types/components/box/contract.d.ts +25 -28
  31. package/packages/client/types/components/brand/contract.d.ts +2 -2
  32. package/packages/client/types/components/button/contract.d.ts +5 -5
  33. package/packages/client/types/components/card/contract.d.ts +28 -31
  34. package/packages/client/types/components/checkbox/contract.d.ts +17 -17
  35. package/packages/client/types/components/checkbox/index.d.ts +20 -26
  36. package/packages/client/types/components/checkbox/machine.d.ts +41 -0
  37. package/packages/client/types/components/checkbox/runtime-docs.d.ts +2 -0
  38. package/packages/client/types/components/common.d.ts +53 -235
  39. package/packages/client/types/components/container/contract.d.ts +11 -12
  40. package/packages/client/types/components/date-picker/contract.d.ts +21 -16
  41. package/packages/client/types/components/date-picker/index.d.ts +38 -60
  42. package/packages/client/types/components/date-picker/machine.d.ts +529 -0
  43. package/packages/client/types/components/date-picker/runtime-docs.d.ts +2 -0
  44. package/packages/client/types/components/date-picker/value.d.ts +28 -0
  45. package/packages/client/types/components/dropdown/contract.d.ts +4 -4
  46. package/packages/client/types/components/dropdown/index.d.ts +20 -45
  47. package/packages/client/types/components/dropdown/machine.d.ts +93 -0
  48. package/packages/client/types/components/dropdown/runtime-docs.d.ts +2 -0
  49. package/packages/client/types/components/field/contract.d.ts +10 -6
  50. package/packages/client/types/components/field/index.d.ts +6 -6
  51. package/packages/client/types/components/field/machine.d.ts +13 -0
  52. package/packages/client/types/components/field/runtime-docs.d.ts +2 -0
  53. package/packages/client/types/components/file-upload/contract.d.ts +7 -4
  54. package/packages/client/types/components/file-upload/index.d.ts +34 -31
  55. package/packages/client/types/components/file-upload/machine.d.ts +127 -0
  56. package/packages/client/types/components/file-upload/runtime-docs.d.ts +2 -0
  57. package/packages/client/types/components/flex/contract.d.ts +16 -17
  58. package/packages/client/types/components/frame/contract.d.ts +41 -47
  59. package/packages/client/types/components/frame/index.d.ts +2 -2
  60. package/packages/client/types/components/grid/contract.d.ts +20 -21
  61. package/packages/client/types/components/heading/contract.d.ts +1 -1
  62. package/packages/client/types/components/image/contract.d.ts +3 -3
  63. package/packages/client/types/components/input/contract.d.ts +2 -2
  64. package/packages/client/types/components/input/index.d.ts +15 -12
  65. package/packages/client/types/components/input/machine.d.ts +20 -0
  66. package/packages/client/types/components/layout.d.ts +44 -225
  67. package/packages/client/types/components/menu/contract.d.ts +14 -8
  68. package/packages/client/types/components/modal/contract.d.ts +12 -12
  69. package/packages/client/types/components/modal/index.d.ts +41 -75
  70. package/packages/client/types/components/modal/machine.d.ts +129 -0
  71. package/packages/client/types/components/modal/runtime-docs.d.ts +2 -0
  72. package/packages/client/types/components/overlay/contract.d.ts +3 -3
  73. package/packages/client/types/components/panels/contract.d.ts +39 -0
  74. package/packages/client/types/components/panels/index.d.ts +54 -0
  75. package/packages/client/types/components/panels/machine.d.ts +151 -0
  76. package/packages/client/types/components/panels/runtime-docs.d.ts +2 -0
  77. package/packages/client/types/components/radio/contract.d.ts +11 -11
  78. package/packages/client/types/components/radio/index.d.ts +19 -23
  79. package/packages/client/types/components/radio/machine.d.ts +40 -0
  80. package/packages/client/types/components/radio/runtime-docs.d.ts +2 -0
  81. package/packages/client/types/components/runtime-docs.d.ts +2 -0
  82. package/packages/client/types/components/runtime.d.ts +16 -19
  83. package/packages/client/types/components/scroll-area/contract.d.ts +4 -7
  84. package/packages/client/types/components/scroll-area/index.d.ts +23 -49
  85. package/packages/client/types/components/scroll-area/machine.d.ts +21 -0
  86. package/packages/client/types/components/scroll-area/runtime-docs.d.ts +2 -0
  87. package/packages/client/types/components/section/contract.d.ts +12 -13
  88. package/packages/client/types/components/select/contract.d.ts +19 -15
  89. package/packages/client/types/components/select/index.d.ts +42 -89
  90. package/packages/client/types/components/select/machine.d.ts +476 -0
  91. package/packages/client/types/components/select/runtime-docs.d.ts +2 -0
  92. package/packages/client/types/components/shared/controlled-open.d.ts +11 -0
  93. package/packages/client/types/components/sidebar/contract.d.ts +19 -12
  94. package/packages/client/types/components/sidebar/index.d.ts +51 -88
  95. package/packages/client/types/components/sidebar/machine.d.ts +100 -0
  96. package/packages/client/types/components/sidebar/runtime-docs.d.ts +2 -0
  97. package/packages/client/types/components/slider/contract.d.ts +3 -3
  98. package/packages/client/types/components/slider/index.d.ts +17 -21
  99. package/packages/client/types/components/slider/machine.d.ts +37 -0
  100. package/packages/client/types/components/slider/runtime-docs.d.ts +2 -0
  101. package/packages/client/types/components/stack/contract.d.ts +16 -17
  102. package/packages/client/types/components/surface-manifest.d.ts +9 -0
  103. package/packages/client/types/components/switch/contract.d.ts +11 -11
  104. package/packages/client/types/components/switch/index.d.ts +13 -18
  105. package/packages/client/types/components/switch/machine.d.ts +19 -0
  106. package/packages/client/types/components/switch/runtime-docs.d.ts +2 -0
  107. package/packages/client/types/components/table/contract.d.ts +18 -18
  108. package/packages/client/types/components/tabs/contract.d.ts +10 -5
  109. package/packages/client/types/components/tabs/index.d.ts +33 -51
  110. package/packages/client/types/components/tabs/machine.d.ts +84 -0
  111. package/packages/client/types/components/tabs/runtime-docs.d.ts +2 -0
  112. package/packages/client/types/components/text/contract.d.ts +1 -1
  113. package/packages/client/types/components/textarea/contract.d.ts +2 -2
  114. package/packages/client/types/components/toast/contract.d.ts +5 -4
  115. package/packages/client/types/components/toast/index.d.ts +38 -12
  116. package/packages/client/types/components/toast/machine.d.ts +115 -0
  117. package/packages/client/types/components/toast/runtime-docs.d.ts +2 -0
  118. package/packages/client/types/directives/index.d.ts +3 -1
  119. package/packages/client/types/directives/layout.d.ts +3 -0
  120. package/packages/client/types/directives/request.d.ts +1 -2
  121. package/packages/client/types/directives/transition.d.ts +3 -0
  122. package/packages/client/types/docs/transition-docs.d.ts +30 -0
  123. package/packages/client/types/index.d.ts +8 -40
  124. package/packages/client/types/motion/animate.d.ts +5 -44
  125. package/packages/client/types/motion/controller.d.ts +33 -0
  126. package/packages/client/types/motion/index.d.ts +43 -20
  127. package/packages/client/types/motion/owned.d.ts +5 -0
  128. package/packages/client/types/motion/plan.d.ts +46 -0
  129. package/packages/client/types/motion/recipe.d.ts +56 -0
  130. package/packages/client/types/motion/registry.d.ts +12 -0
  131. package/packages/client/types/motion/resize.d.ts +15 -0
  132. package/packages/client/types/motion/subject.d.ts +10 -0
  133. package/packages/client/types/motion/targets.d.ts +2 -5
  134. package/packages/client/types/motion/view.d.ts +7 -2
  135. package/packages/client/types/runtime/alpine-machine.d.ts +68 -0
  136. package/packages/client/types/runtime/anchored-popover.d.ts +10 -2
  137. package/packages/client/types/runtime/codecs.d.ts +16 -2
  138. package/packages/client/types/runtime/{resizable.d.ts → drag-and-drop/index.d.ts} +4 -2
  139. package/packages/client/types/runtime/engine/request.d.ts +2 -2
  140. package/packages/client/types/runtime/engine/stream.d.ts +11 -5
  141. package/packages/client/types/runtime/focus-scope.d.ts +7 -0
  142. package/packages/client/types/runtime/identity.d.ts +3 -0
  143. package/packages/client/types/runtime/index.d.ts +9 -75
  144. package/packages/client/types/runtime/merge-bindings.d.ts +1 -1
  145. package/packages/client/types/runtime/semantic-observer.d.ts +10 -0
  146. package/packages/client/types/runtime/state-machine/index.d.ts +4 -0
  147. package/packages/client/types/runtime/state-machine/machine.d.ts +83 -0
  148. package/packages/client/types/runtime/state-machine/props-change.d.ts +12 -0
  149. package/packages/client/types/runtime/transition-coordinator.d.ts +52 -0
  150. package/packages/client/types/runtime/ui.d.ts +15 -0
  151. package/packages/client/types/utils/index.d.ts +2 -1
  152. package/packages/client/types/utils/number.d.ts +2 -0
  153. package/packages/client/types/utils/object.d.ts +4 -1
  154. package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +9097 -2595
  155. package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
  156. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +17313 -13281
  157. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
  158. package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +8 -15
  159. package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +8 -15
  160. package/packages/client/types/bindings/disclosure.d.ts +0 -3
  161. package/packages/client/types/bindings/index.d.ts +0 -7
  162. package/packages/client/types/bindings/motion.d.ts +0 -3
  163. package/packages/client/types/bindings/state.d.ts +0 -3
  164. package/packages/client/types/bindings/types.d.ts +0 -33
  165. package/packages/client/types/components/combobox/contract.d.ts +0 -60
  166. package/packages/client/types/components/combobox/index.d.ts +0 -80
  167. package/packages/client/types/components/textarea/index.d.ts +0 -13
  168. package/packages/client/types/motion/presence.d.ts +0 -34
  169. package/packages/client/types/runtime/class-name.d.ts +0 -9
  170. package/packages/client/types/runtime/create.d.ts +0 -8
  171. package/packages/client/types/runtime/machine.d.ts +0 -55
  172. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js +0 -1134
  173. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js.map +0 -1
@@ -1,5 +1,2 @@
1
- import trellisUi, { bool, className, create, createMachine, createResizable, createVisibilityMachine, cx, defineManifest, defineProps, defineStyles, json, mergeBindings, motion, number, oneOf, propsFromSchema, resolveStyle, string, ui } from './index';
1
+ import trellisUi from './index';
2
2
  export default trellisUi;
3
- export { trellisUi, ui };
4
- export { motion };
5
- export { bool, className, create, createMachine, createResizable, createVisibilityMachine, cx, defineManifest, defineProps, defineStyles, json, mergeBindings, number, oneOf, propsFromSchema, resolveStyle, string, };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Build-time entry point for public component Alpine APIs.
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export type { UiAccordionApi } from './components/accordion';
7
+ export type { CheckboxState, UiCheckboxApi } from './components/checkbox';
8
+ export type { UiDatePickerApi } from './components/date-picker';
9
+ export type { UiModalApi, UiModalTriggerApi } from './components/modal';
10
+ export type { UiPanelsApi } from './components/panels';
11
+ export type { UiRadioGroupApi } from './components/radio';
12
+ export type { UiDropdownApi } from './components/dropdown';
13
+ export type { FileTransferStatus, FileUploadMetadata, FileUploadRecord, UiFileUploadApi } from './components/file-upload';
14
+ export type { UiInputApi } from './components/input';
15
+ export type { UiSelectApi } from './components/select';
16
+ export type { UiScrollAreaApi } from './components/scroll-area';
17
+ export type { UiSidebarApi } from './components/sidebar';
18
+ export type { UiSliderApi } from './components/slider';
19
+ export type { UiSwitchApi } from './components/switch';
20
+ export type { UiTabsApi } from './components/tabs';
21
+ export type { ToastDetail, UiToastApi, UiToastOutletApi } from './components/toast';
@@ -1,4 +1,4 @@
1
- import { type PropState } from '../../runtime';
1
+ import { type SchemaToProps } from '../../runtime';
2
2
  import { type HeadingLevel, type Orientation } from '../common';
3
3
  declare const ACCORDION_MODES: readonly ["single", "multiple"];
4
4
  declare const ACCORDION_ORIENTATIONS: readonly ["vertical", "horizontal"];
@@ -8,6 +8,7 @@ declare const ACCORDION_HEADING_AS: readonly ["h1", "h2", "h3", "h4", "h5", "h6"
8
8
  declare const ACCORDION_ITEM_HEADING_AS: readonly ["inherit", "h1", "h2", "h3", "h4", "h5", "h6"];
9
9
  declare const accordionSchema: {
10
10
  mode: import("../../runtime/codecs").OneOfCodec<"single" | "multiple">;
11
+ animate: import("../../runtime/codecs").BoolCodec;
11
12
  collapsible: import("../../runtime/codecs").BoolCodec;
12
13
  disabled: import("../../runtime/codecs").BoolCodec;
13
14
  orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
@@ -26,6 +27,6 @@ type AccordionIconPosition = typeof ACCORDION_ICON_POSITIONS[number];
26
27
  type AccordionItemIconPosition = typeof ACCORDION_ITEM_ICON_POSITIONS[number];
27
28
  type AccordionHeadingAs = HeadingLevel;
28
29
  type AccordionItemHeadingAs = typeof ACCORDION_ITEM_HEADING_AS[number];
29
- type AccordionProps = PropState<typeof accordionSchema>;
30
+ type AccordionProps = SchemaToProps<typeof accordionSchema>;
30
31
  export { ACCORDION_HEADING_AS, ACCORDION_ICON_POSITIONS, ACCORDION_ITEM_HEADING_AS, ACCORDION_ITEM_ICON_POSITIONS, ACCORDION_ORIENTATIONS, ACCORDION_MODES, accordionSchema, };
31
32
  export type { AccordionHeadingAs, AccordionIconPosition, AccordionItemHeadingAs, AccordionItemIconPosition, AccordionOrientation, AccordionProps, AccordionMode, };
@@ -1,46 +1,32 @@
1
1
  import type Alpine from 'alpinejs';
2
- import { type BindingObject, type CollectionNavigation, type TrellisAlpineComponent } from '../../runtime';
3
- import { type AccordionProps, type AccordionMode } from './contract';
4
- type AccordionItem = {
5
- item: HTMLElement;
6
- heading: HTMLElement | null;
7
- trigger: HTMLButtonElement;
8
- content: HTMLElement;
9
- value: string;
10
- isDisabled: boolean;
11
- };
12
- type AccordionData = {
13
- props: AccordionProps;
14
- openValues: Set<string>;
15
- collection: CollectionNavigation | null;
16
- cleanup: Array<() => void>;
17
- root: BindingObject;
18
- items(): AccordionItem[];
19
- itemFromTrigger(trigger: HTMLElement): AccordionItem | null;
20
- initialValues(): string[];
21
- propValues(): string[];
22
- normalizeValues(values: string[]): string[];
23
- applyProps(changedKeys?: string[]): void;
24
- isItemOpen(item: AccordionItem): boolean;
25
- isItemDisabled(item: AccordionItem): boolean;
26
- canCollapseOpenItem(item: AccordionItem): boolean;
27
- toggleItem(item: AccordionItem, event?: Event): void;
28
- setOpenValues(values: string[], dispatch?: boolean): void;
29
- syncAll(): void;
30
- syncRoot(): void;
31
- syncItem(item: AccordionItem): void;
32
- syncContent(content: HTMLElement, open: boolean): void;
33
- setupTriggers(): void;
34
- teardown(): void;
35
- collectionNav(): CollectionNavigation;
36
- handleTriggerKeydown(trigger: HTMLButtonElement, event: KeyboardEvent): void;
37
- focusNext(): void;
38
- focusPrevious(): void;
39
- focusFirst(): void;
40
- focusLast(): void;
41
- dispatchChange(): void;
2
+ import { type AlpineMachine, type BindingObject, type TrellisAlpineComponent } from '../../runtime';
3
+ import { type AccordionMode, type AccordionProps } from './contract';
4
+ import { accordionHooks, type AccordionContext } from './machine';
5
+ /**
6
+ * Public Alpine API for `ui.accordion`.
7
+ *
8
+ * @public
9
+ */
10
+ interface UiAccordionApi {
11
+ /** Open value in single mode, otherwise an empty string. */
12
+ readonly value: string;
13
+ /** Open values in document order. */
14
+ readonly values: readonly string[];
15
+ /** Opens an enabled item. In single mode it replaces the current value. */
16
+ open(value: string): void;
17
+ /** Closes an item when the current mode permits it. */
18
+ close(value: string): void;
19
+ /** Reverses an item's current disclosure state. */
20
+ toggle(value: string, event?: Event): void;
21
+ /** Whether an item belongs to the current open-value set. */
22
+ isOpen(value: string): boolean;
23
+ }
24
+ type AccordionData = AlpineMachine<AccordionContext, AccordionProps, typeof accordionHooks> & UiAccordionApi & {
25
+ readonly root: BindingObject;
26
+ init(): void;
27
+ destroy(): void;
42
28
  };
43
29
  declare const UiAccordion: () => TrellisAlpineComponent<AccordionData>;
44
30
  declare const registerAccordion: (AlpineInstance: Alpine.Alpine) => void;
45
- export { registerAccordion, UiAccordion, };
46
- export type { AccordionData, AccordionItem, AccordionMode };
31
+ export { registerAccordion, UiAccordion };
32
+ export type { AccordionData, AccordionMode, UiAccordionApi };
@@ -0,0 +1,131 @@
1
+ import { type Machine, type MachineScope } from '../../runtime/state-machine';
2
+ import type { AccordionProps } from './contract';
3
+ type AccordionContext = {
4
+ selection: {
5
+ values: string[];
6
+ };
7
+ change: {
8
+ openingValues: string[];
9
+ closingValues: string[];
10
+ };
11
+ collection: {
12
+ values: string[];
13
+ disabledValues: string[];
14
+ };
15
+ };
16
+ type AccordionTransitionData = {
17
+ value: string;
18
+ };
19
+ type AccordionMachineEffects = {
20
+ prepareChange(scope: MachineScope<AccordionContext, AccordionProps>): void;
21
+ finishChange(scope: MachineScope<AccordionContext, AccordionProps>): void;
22
+ syncProps(scope: MachineScope<AccordionContext, AccordionProps>): void;
23
+ syncItems(scope: MachineScope<AccordionContext, AccordionProps>): void;
24
+ };
25
+ type CreateAccordionMachineOptions = {
26
+ props: AccordionProps;
27
+ context: AccordionContext;
28
+ effects: AccordionMachineEffects;
29
+ };
30
+ declare const accordionHooks: readonly [Readonly<{
31
+ name: "opening";
32
+ state: string;
33
+ onDone: string;
34
+ onError: string;
35
+ required?: boolean;
36
+ sends?: Record<string, import("../..").TransitionEventCreator>;
37
+ project?: (snapshot: Readonly<{
38
+ value: import("../..").MachineStateValue;
39
+ tags: readonly string[];
40
+ context: Readonly<AccordionContext>;
41
+ props: Readonly<import("../..").SchemaToProps<{
42
+ mode: import("../../runtime/codecs").OneOfCodec<"single" | "multiple">;
43
+ animate: import("../../runtime/codecs").BoolCodec;
44
+ collapsible: import("../../runtime/codecs").BoolCodec;
45
+ disabled: import("../../runtime/codecs").BoolCodec;
46
+ orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
47
+ defaultValue: import("../../runtime/codecs").StringCodec;
48
+ defaultValues: import("../../runtime/codecs").StringCodec;
49
+ value: import("../../runtime/codecs").StringCodec;
50
+ values: import("../../runtime/codecs").StringCodec;
51
+ loop: import("../../runtime/codecs").BoolCodec;
52
+ iconPosition: import("../../runtime/codecs").OneOfCodec<"leading" | "trailing">;
53
+ headingAs: import("../../runtime/codecs").OneOfCodec<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
54
+ class: import("../../runtime/codecs").StringCodec;
55
+ }>>;
56
+ generations: Readonly<Record<string, number>>;
57
+ }>) => AccordionTransitionData;
58
+ projectEach?: (snapshot: Readonly<{
59
+ value: import("../..").MachineStateValue;
60
+ tags: readonly string[];
61
+ context: Readonly<AccordionContext>;
62
+ props: Readonly<import("../..").SchemaToProps<{
63
+ mode: import("../../runtime/codecs").OneOfCodec<"single" | "multiple">;
64
+ animate: import("../../runtime/codecs").BoolCodec;
65
+ collapsible: import("../../runtime/codecs").BoolCodec;
66
+ disabled: import("../../runtime/codecs").BoolCodec;
67
+ orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
68
+ defaultValue: import("../../runtime/codecs").StringCodec;
69
+ defaultValues: import("../../runtime/codecs").StringCodec;
70
+ value: import("../../runtime/codecs").StringCodec;
71
+ values: import("../../runtime/codecs").StringCodec;
72
+ loop: import("../../runtime/codecs").BoolCodec;
73
+ iconPosition: import("../../runtime/codecs").OneOfCodec<"leading" | "trailing">;
74
+ headingAs: import("../../runtime/codecs").OneOfCodec<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
75
+ class: import("../../runtime/codecs").StringCodec;
76
+ }>>;
77
+ generations: Readonly<Record<string, number>>;
78
+ }>) => readonly AccordionTransitionData[];
79
+ }>, Readonly<{
80
+ name: "closing";
81
+ state: string;
82
+ onDone: string;
83
+ onError: string;
84
+ required?: boolean;
85
+ sends?: Record<string, import("../..").TransitionEventCreator>;
86
+ project?: (snapshot: Readonly<{
87
+ value: import("../..").MachineStateValue;
88
+ tags: readonly string[];
89
+ context: Readonly<AccordionContext>;
90
+ props: Readonly<import("../..").SchemaToProps<{
91
+ mode: import("../../runtime/codecs").OneOfCodec<"single" | "multiple">;
92
+ animate: import("../../runtime/codecs").BoolCodec;
93
+ collapsible: import("../../runtime/codecs").BoolCodec;
94
+ disabled: import("../../runtime/codecs").BoolCodec;
95
+ orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
96
+ defaultValue: import("../../runtime/codecs").StringCodec;
97
+ defaultValues: import("../../runtime/codecs").StringCodec;
98
+ value: import("../../runtime/codecs").StringCodec;
99
+ values: import("../../runtime/codecs").StringCodec;
100
+ loop: import("../../runtime/codecs").BoolCodec;
101
+ iconPosition: import("../../runtime/codecs").OneOfCodec<"leading" | "trailing">;
102
+ headingAs: import("../../runtime/codecs").OneOfCodec<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
103
+ class: import("../../runtime/codecs").StringCodec;
104
+ }>>;
105
+ generations: Readonly<Record<string, number>>;
106
+ }>) => AccordionTransitionData;
107
+ projectEach?: (snapshot: Readonly<{
108
+ value: import("../..").MachineStateValue;
109
+ tags: readonly string[];
110
+ context: Readonly<AccordionContext>;
111
+ props: Readonly<import("../..").SchemaToProps<{
112
+ mode: import("../../runtime/codecs").OneOfCodec<"single" | "multiple">;
113
+ animate: import("../../runtime/codecs").BoolCodec;
114
+ collapsible: import("../../runtime/codecs").BoolCodec;
115
+ disabled: import("../../runtime/codecs").BoolCodec;
116
+ orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
117
+ defaultValue: import("../../runtime/codecs").StringCodec;
118
+ defaultValues: import("../../runtime/codecs").StringCodec;
119
+ value: import("../../runtime/codecs").StringCodec;
120
+ values: import("../../runtime/codecs").StringCodec;
121
+ loop: import("../../runtime/codecs").BoolCodec;
122
+ iconPosition: import("../../runtime/codecs").OneOfCodec<"leading" | "trailing">;
123
+ headingAs: import("../../runtime/codecs").OneOfCodec<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
124
+ class: import("../../runtime/codecs").StringCodec;
125
+ }>>;
126
+ generations: Readonly<Record<string, number>>;
127
+ }>) => readonly AccordionTransitionData[];
128
+ }>];
129
+ declare const createAccordionMachine: ({ props, context, effects, }: CreateAccordionMachineOptions) => Machine<AccordionContext, AccordionProps>;
130
+ export { accordionHooks, createAccordionMachine };
131
+ export type { AccordionContext, AccordionMachineEffects, AccordionTransitionData, CreateAccordionMachineOptions, };
@@ -0,0 +1,2 @@
1
+ declare const accordionRuntimeDocs: import("../../docs/transition-docs").ComponentTransitionDocs;
2
+ export { accordionRuntimeDocs };
@@ -1,14 +1,14 @@
1
- import { type PropState } from '../../runtime';
1
+ import { type SchemaToProps } from '../../runtime';
2
2
  declare const ACTION_METHODS: readonly ["get", "post", "dialog"];
3
3
  declare const actionSchema: {
4
4
  action: import("../../runtime/codecs").StringCodec;
5
- method: import("../../runtime/codecs").OneOfCodec<"get" | "dialog" | "post">;
5
+ method: import("../../runtime/codecs").OneOfCodec<"dialog" | "get" | "post">;
6
6
  enctype: import("../../runtime/codecs").StringCodec;
7
7
  confirm: import("../../runtime/codecs").StringCodec;
8
8
  role: import("../../runtime/codecs").StringCodec;
9
9
  class: import("../../runtime/codecs").StringCodec;
10
10
  };
11
11
  type ActionMethod = typeof ACTION_METHODS[number];
12
- type ActionProps = PropState<typeof actionSchema>;
12
+ type ActionProps = SchemaToProps<typeof actionSchema>;
13
13
  export { ACTION_METHODS, actionSchema };
14
14
  export type { ActionMethod, ActionProps };
@@ -1,34 +1,47 @@
1
- import { type PropState } from '../../runtime';
2
- import { type Surface } from '../common';
1
+ import { type SchemaToProps } from '../../runtime';
2
+ import { type AbsoluteSurfaceReference, type ElevationReference, type SurfaceReference } from '../common';
3
3
  declare const APP_HEIGHTS: readonly ["screen", "min"];
4
4
  declare const APP_SIDEBARS: readonly ["left", "right", "both", "none"];
5
5
  declare const APP_MAIN_SCROLLS: readonly ["auto", "none"];
6
- declare const APP_HEADER_SURFACES: readonly ["none", "app", "chrome", "subtle", "panel", "raised", "overlay", "accent", "inverse"];
6
+ declare const APP_SURFACES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8"];
7
+ declare const APP_REGION_SURFACES: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "7", "8", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8"];
8
+ declare const APP_ELEVATIONS: readonly ["none", "match", "1", "2", "3", "4", "5", "6", "7", "8"];
9
+ declare const appRegionSchema: {
10
+ surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
11
+ elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
12
+ class: import("../../runtime/codecs").StringCodec;
13
+ };
7
14
  declare const appSchema: {
8
15
  id: import("../../runtime/codecs").StringCodec;
9
16
  height: import("../../runtime/codecs").OneOfCodec<"min" | "screen">;
10
17
  sidebar: import("../../runtime/codecs").OneOfCodec<"left" | "right" | "none" | "both">;
18
+ surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8">;
19
+ elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
11
20
  class: import("../../runtime/codecs").StringCodec;
12
21
  };
13
22
  declare const appHeaderSchema: {
14
23
  sticky: import("../../runtime/codecs").BoolCodec;
15
- surface: import("../../runtime/codecs").OneOfCodec<"none" | "subtle" | "accent" | "app" | "chrome" | "panel" | "raised" | "overlay" | "inverse">;
16
24
  divider: import("../../runtime/codecs").BoolCodec;
25
+ surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
26
+ elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
17
27
  class: import("../../runtime/codecs").StringCodec;
18
28
  };
19
29
  declare const appMainSchema: {
20
30
  id: import("../../runtime/codecs").StringCodec;
21
- container: import("../../runtime/codecs").BoolCodec;
22
31
  scroll: import("../../runtime/codecs").OneOfCodec<"none" | "auto">;
23
- class: import("../../runtime/codecs").StringCodec;
24
- };
25
- declare const appPanelSchema: {
32
+ surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
33
+ elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
26
34
  class: import("../../runtime/codecs").StringCodec;
27
35
  };
28
36
  type AppHeight = typeof APP_HEIGHTS[number];
29
- type AppHeaderSurface = Surface;
37
+ type AppSurface = AbsoluteSurfaceReference;
38
+ type AppRegionSurface = SurfaceReference;
39
+ type AppElevation = ElevationReference;
30
40
  type AppMainScroll = typeof APP_MAIN_SCROLLS[number];
31
41
  type AppSidebar = typeof APP_SIDEBARS[number];
32
- type AppProps = PropState<typeof appSchema>;
33
- export { APP_HEADER_SURFACES, APP_HEIGHTS, APP_MAIN_SCROLLS, APP_SIDEBARS, appHeaderSchema, appMainSchema, appPanelSchema, appSchema, };
34
- export type { AppHeaderSurface, AppHeight, AppMainScroll, AppProps, AppSidebar };
42
+ type AppProps = SchemaToProps<typeof appSchema>;
43
+ type AppHeaderProps = SchemaToProps<typeof appHeaderSchema>;
44
+ type AppMainProps = SchemaToProps<typeof appMainSchema>;
45
+ type AppRegionProps = SchemaToProps<typeof appRegionSchema>;
46
+ export { APP_ELEVATIONS, APP_HEIGHTS, APP_MAIN_SCROLLS, APP_REGION_SURFACES, APP_SIDEBARS, APP_SURFACES, appHeaderSchema, appMainSchema, appRegionSchema, appSchema, };
47
+ export type { AppElevation, AppHeaderProps, AppHeight, AppMainProps, AppMainScroll, AppProps, AppRegionProps, AppRegionSurface, AppSidebar, AppSurface, };
@@ -1,2 +1,2 @@
1
- export { APP_HEIGHTS, APP_MAIN_SCROLLS, APP_SIDEBARS, appHeaderSchema, appMainSchema, appPanelSchema, appSchema } from './contract';
2
- export type { AppHeight, AppMainScroll, AppProps, AppSidebar } from './contract';
1
+ export { APP_ELEVATIONS, APP_HEIGHTS, APP_MAIN_SCROLLS, APP_REGION_SURFACES, APP_SIDEBARS, APP_SURFACES, appHeaderSchema, appMainSchema, appRegionSchema, appSchema, } from './contract';
2
+ export type { AppElevation, AppHeaderProps, AppHeight, AppMainProps, AppMainScroll, AppProps, AppRegionProps, AppRegionSurface, AppSidebar, AppSurface, } from './contract';
@@ -1,4 +1,4 @@
1
- import { type PropState } from '../../runtime';
1
+ import { type SchemaToProps } from '../../runtime';
2
2
  import { type CommonButtonType, type ComponentRadius, type ControlSize, type IconVariant } from '../common';
3
3
  declare const BADGE_VARIANTS: readonly ["soft", "surface", "outline", "solid"];
4
4
  declare const BADGE_COLORS: readonly ["neutral", "accent", "success", "warning", "danger"];
@@ -14,7 +14,7 @@ declare const badgeSchema: {
14
14
  radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
15
15
  href: import("../../runtime/codecs").StringCodec;
16
16
  as: import("../../runtime/codecs").OneOfCodec<"button" | "span">;
17
- type: import("../../runtime/codecs").OneOfCodec<"reset" | "submit" | "button">;
17
+ type: import("../../runtime/codecs").OneOfCodec<"button" | "submit" | "reset">;
18
18
  disabled: import("../../runtime/codecs").BoolCodec;
19
19
  icon: import("../../runtime/codecs").StringCodec;
20
20
  iconTrailing: import("../../runtime/codecs").StringCodec;
@@ -23,7 +23,7 @@ declare const badgeSchema: {
23
23
  class: import("../../runtime/codecs").StringCodec;
24
24
  };
25
25
  declare const badgeCloseSchema: {
26
- type: import("../../runtime/codecs").OneOfCodec<"reset" | "submit" | "button">;
26
+ type: import("../../runtime/codecs").OneOfCodec<"button" | "submit" | "reset">;
27
27
  disabled: import("../../runtime/codecs").BoolCodec;
28
28
  icon: import("../../runtime/codecs").StringCodec;
29
29
  iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
@@ -38,7 +38,7 @@ type BadgeRadius = ComponentRadius;
38
38
  type BadgeAs = typeof BADGE_AS_VALUES[number];
39
39
  type BadgeType = CommonButtonType;
40
40
  type BadgeIconVariant = IconVariant;
41
- type BadgeProps = PropState<typeof badgeSchema>;
42
- type BadgeCloseProps = PropState<typeof badgeCloseSchema>;
41
+ type BadgeProps = SchemaToProps<typeof badgeSchema>;
42
+ type BadgeCloseProps = SchemaToProps<typeof badgeCloseSchema>;
43
43
  export { BADGE_AS_VALUES, BADGE_COLORS, BADGE_ICON_VARIANTS, BADGE_RADII, BADGE_SIZES, BADGE_TYPES, BADGE_VARIANTS, badgeCloseSchema, badgeSchema, };
44
44
  export type { BadgeAs, BadgeCloseProps, BadgeColor, BadgeIconVariant, BadgeProps, BadgeRadius, BadgeSize, BadgeType, BadgeVariant, };
@@ -1,52 +1,49 @@
1
- import { type PropState } from '../../runtime';
2
- import { type ComponentRadius, type Elevation, type LayoutSpace, type Surface, type SurfaceTone } from '../common';
1
+ import { type SchemaToProps } from '../../runtime';
2
+ import { type ComponentRadius, type ElevationReference, type LayoutSpace, type SurfaceReference } from '../common';
3
3
  declare const BOX_AS_VALUES: readonly ["div", "section", "article", "aside", "header", "footer", "main", "nav", "form", "ul", "ol", "li", "span"];
4
4
  declare const BOX_LAYOUTS: readonly ["block", "stack", "row", "cluster", "grid", "center"];
5
- declare const BOX_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
5
+ declare const BOX_SPACES: readonly ["0", "0.5", "1", "1.5", "2", "2.5", "3", "3.5", "4", "4.5", "5", "5.5", "6", "6.5", "7", "7.5", "8", "8.5", "9", "9.5", "10", "10.5", "11", "11.5", "12"];
6
6
  declare const BOX_COLUMNS: readonly ["none", "1", "2", "3", "4", "5", "6"];
7
- declare const BOX_SURFACES: readonly ["none", "app", "chrome", "subtle", "panel", "raised", "overlay", "accent", "inverse"];
8
- declare const BOX_TONES: readonly ["solid", "alpha"];
7
+ declare const BOX_SURFACES: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "7", "8", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8"];
9
8
  declare const BOX_RADII: readonly ["none", "xs", "sm", "md", "lg", "full"];
10
- declare const BOX_ELEVATIONS: readonly ["none", "1", "2", "3", "4", "5", "6"];
9
+ declare const BOX_ELEVATIONS: readonly ["none", "match", "1", "2", "3", "4", "5", "6", "7", "8"];
11
10
  declare const BOX_WIDTHS: readonly ["auto", "full", "xs", "sm", "md", "lg", "xl", "prose"];
12
11
  declare const BOX_HEIGHTS: ("xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl")[];
13
12
  declare const BOX_ALIGNS: readonly ["start", "center", "end", "stretch"];
14
13
  declare const BOX_JUSTIFIES: readonly ["start", "center", "end", "between"];
15
14
  declare const boxSchema: {
16
15
  as: import("../../runtime/codecs").OneOfCodec<"article" | "aside" | "div" | "footer" | "form" | "header" | "li" | "main" | "nav" | "ol" | "section" | "span" | "ul">;
17
- layout: import("../../runtime/codecs").OneOfCodec<"grid" | "center" | "stack" | "block" | "row" | "cluster">;
18
- gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
19
- gapX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
20
- gapY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
21
- columns: import("../../runtime/codecs").OneOfCodec<"1" | "none" | "2" | "3" | "4" | "5" | "6">;
22
- padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
23
- paddingX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
24
- paddingY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
25
- margin: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
26
- marginX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
27
- marginY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
28
- surface: import("../../runtime/codecs").OneOfCodec<"none" | "subtle" | "accent" | "app" | "chrome" | "panel" | "raised" | "overlay" | "inverse">;
29
- tone: import("../../runtime/codecs").OneOfCodec<"solid" | "alpha">;
16
+ layout: import("../../runtime/codecs").OneOfCodec<"center" | "grid" | "stack" | "row" | "block" | "cluster">;
17
+ gap: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
18
+ gapX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
19
+ gapY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
20
+ columns: import("../../runtime/codecs").OneOfCodec<"1" | "2" | "none" | "3" | "4" | "5" | "6">;
21
+ padding: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
22
+ paddingX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
23
+ paddingY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
24
+ margin: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
25
+ marginX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
26
+ marginY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
27
+ surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
30
28
  radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
31
- elevation: import("../../runtime/codecs").OneOfCodec<"1" | "none" | "2" | "3" | "4" | "5" | "6">;
29
+ elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
32
30
  width: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl" | "prose">;
33
31
  height: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl">;
34
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start" | "stretch">;
35
- justify: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start" | "between">;
32
+ align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end" | "stretch">;
33
+ justify: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end" | "between">;
36
34
  class: import("../../runtime/codecs").StringCodec;
37
35
  };
38
36
  type BoxAs = typeof BOX_AS_VALUES[number];
39
37
  type BoxLayout = typeof BOX_LAYOUTS[number];
40
38
  type BoxSpace = LayoutSpace;
41
39
  type BoxColumns = typeof BOX_COLUMNS[number];
42
- type BoxSurface = Surface;
43
- type BoxTone = SurfaceTone;
40
+ type BoxSurface = SurfaceReference;
44
41
  type BoxRadius = ComponentRadius;
45
- type BoxElevation = Elevation;
42
+ type BoxElevation = ElevationReference;
46
43
  type BoxWidth = typeof BOX_WIDTHS[number];
47
44
  type BoxHeight = typeof BOX_HEIGHTS[number];
48
45
  type BoxAlign = typeof BOX_ALIGNS[number];
49
46
  type BoxJustify = typeof BOX_JUSTIFIES[number];
50
- type BoxProps = PropState<typeof boxSchema>;
51
- export { BOX_ALIGNS, BOX_AS_VALUES, BOX_COLUMNS, BOX_ELEVATIONS, BOX_HEIGHTS, BOX_JUSTIFIES, BOX_LAYOUTS, BOX_RADII, BOX_SPACES, BOX_SURFACES, BOX_TONES, BOX_WIDTHS, boxSchema, };
52
- export type { BoxAlign, BoxAs, BoxColumns, BoxElevation, BoxHeight, BoxJustify, BoxLayout, BoxProps, BoxRadius, BoxSpace, BoxSurface, BoxTone, BoxWidth, };
47
+ type BoxProps = SchemaToProps<typeof boxSchema>;
48
+ export { BOX_ALIGNS, BOX_AS_VALUES, BOX_COLUMNS, BOX_ELEVATIONS, BOX_HEIGHTS, BOX_JUSTIFIES, BOX_LAYOUTS, BOX_RADII, BOX_SPACES, BOX_SURFACES, BOX_WIDTHS, boxSchema, };
49
+ export type { BoxAlign, BoxAs, BoxColumns, BoxElevation, BoxHeight, BoxJustify, BoxLayout, BoxProps, BoxRadius, BoxSpace, BoxSurface, BoxWidth, };
@@ -1,4 +1,4 @@
1
- import { type PropState } from '../../runtime';
1
+ import { type SchemaToProps } from '../../runtime';
2
2
  import { type ControlSize } from '../common';
3
3
  declare const BRAND_DISPLAY_VALUES: readonly ["full", "logo", "text"];
4
4
  declare const BRAND_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
@@ -13,6 +13,6 @@ declare const brandSchema: {
13
13
  };
14
14
  type BrandDisplay = typeof BRAND_DISPLAY_VALUES[number];
15
15
  type BrandSize = ControlSize;
16
- type BrandProps = PropState<typeof brandSchema>;
16
+ type BrandProps = SchemaToProps<typeof brandSchema>;
17
17
  export { BRAND_DISPLAY_VALUES, BRAND_SIZES, brandSchema, };
18
18
  export type { BrandDisplay, BrandProps, BrandSize, };
@@ -1,4 +1,4 @@
1
- import { type PropState } from '../../runtime';
1
+ import { type SchemaToProps } from '../../runtime';
2
2
  import { BUTTON_TYPES, type Alignment, type CommonButtonType, type ComponentRadius, type ControlSize, type IconVariant } from '../common';
3
3
  declare const BUTTON_VARIANTS: readonly ["ghost", "soft", "surface", "outline", "solid", "link"];
4
4
  declare const BUTTON_COLORS: readonly ["neutral", "accent", "danger"];
@@ -8,11 +8,11 @@ declare const BUTTON_ALIGNS: readonly ["start", "center", "end"];
8
8
  declare const BUTTON_RADII: readonly ["none", "xs", "sm", "md", "lg", "full"];
9
9
  declare const BUTTON_LOADING_MODES: readonly ["auto", "true", "false"];
10
10
  declare const buttonSchema: {
11
- variant: import("../../runtime/codecs").OneOfCodec<"outline" | "link" | "solid" | "ghost" | "soft" | "surface">;
11
+ variant: import("../../runtime/codecs").OneOfCodec<"link" | "outline" | "solid" | "ghost" | "soft" | "surface">;
12
12
  color: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral">;
13
13
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
14
14
  radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
15
- type: import("../../runtime/codecs").OneOfCodec<"reset" | "submit" | "button">;
15
+ type: import("../../runtime/codecs").OneOfCodec<"button" | "submit" | "reset">;
16
16
  href: import("../../runtime/codecs").StringCodec;
17
17
  disabled: import("../../runtime/codecs").BoolCodec;
18
18
  loading: import("../../runtime/codecs").OneOfCodec<"true" | "false" | "auto">;
@@ -20,7 +20,7 @@ declare const buttonSchema: {
20
20
  iconTrailing: import("../../runtime/codecs").StringCodec;
21
21
  iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
22
22
  square: import("../../runtime/codecs").BoolCodec;
23
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
23
+ align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
24
24
  inset: import("../../runtime/codecs").StringCodec;
25
25
  class: import("../../runtime/codecs").StringCodec;
26
26
  };
@@ -32,6 +32,6 @@ type ButtonType = CommonButtonType;
32
32
  type ButtonIconVariant = IconVariant;
33
33
  type ButtonAlign = Alignment;
34
34
  type ButtonLoadingMode = typeof BUTTON_LOADING_MODES[number];
35
- type ButtonProps = PropState<typeof buttonSchema>;
35
+ type ButtonProps = SchemaToProps<typeof buttonSchema>;
36
36
  export { BUTTON_ALIGNS, BUTTON_COLORS, BUTTON_ICON_VARIANTS, BUTTON_LOADING_MODES, BUTTON_RADII, BUTTON_SIZES, BUTTON_TYPES, BUTTON_VARIANTS, buttonSchema, };
37
37
  export type { ButtonAlign, ButtonColor, ButtonIconVariant, ButtonLoadingMode, ButtonProps, ButtonRadius, ButtonSize, ButtonType, ButtonVariant, };