@vireo-ai/trellis-ui 0.1.9 → 0.1.11

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 (174) hide show
  1. package/package.json +9 -5
  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/tabs/styles.css +199 -0
  13. package/packages/client/src/components/toast/styles.css +14 -7
  14. package/packages/client/src/styles/components.css +2 -0
  15. package/packages/client/src/styles/generated/theme-fonts.css +5 -0
  16. package/packages/client/src/styles/generated/theme-palette.css +2656 -0
  17. package/packages/client/src/styles/generated/theme-runtime.css +2966 -0
  18. package/packages/client/src/styles/generated-sources.css +1 -1
  19. package/packages/client/src/styles/static.css +1 -0
  20. package/packages/client/src/styles/theme.css +777 -738
  21. package/packages/client/types/cdn.d.ts +1 -4
  22. package/packages/client/types/component-api.d.ts +21 -0
  23. package/packages/client/types/components/accordion/contract.d.ts +3 -2
  24. package/packages/client/types/components/accordion/index.d.ts +28 -42
  25. package/packages/client/types/components/accordion/machine.d.ts +131 -0
  26. package/packages/client/types/components/accordion/runtime-docs.d.ts +2 -0
  27. package/packages/client/types/components/action/contract.d.ts +3 -3
  28. package/packages/client/types/components/app/contract.d.ts +25 -12
  29. package/packages/client/types/components/app/index.d.ts +2 -2
  30. package/packages/client/types/components/badge/contract.d.ts +5 -5
  31. package/packages/client/types/components/box/contract.d.ts +25 -28
  32. package/packages/client/types/components/brand/contract.d.ts +2 -2
  33. package/packages/client/types/components/button/contract.d.ts +5 -5
  34. package/packages/client/types/components/card/contract.d.ts +28 -31
  35. package/packages/client/types/components/checkbox/contract.d.ts +17 -17
  36. package/packages/client/types/components/checkbox/index.d.ts +20 -26
  37. package/packages/client/types/components/checkbox/machine.d.ts +41 -0
  38. package/packages/client/types/components/checkbox/runtime-docs.d.ts +2 -0
  39. package/packages/client/types/components/common.d.ts +53 -235
  40. package/packages/client/types/components/container/contract.d.ts +11 -12
  41. package/packages/client/types/components/date-picker/contract.d.ts +21 -16
  42. package/packages/client/types/components/date-picker/index.d.ts +38 -60
  43. package/packages/client/types/components/date-picker/machine.d.ts +529 -0
  44. package/packages/client/types/components/date-picker/runtime-docs.d.ts +2 -0
  45. package/packages/client/types/components/date-picker/value.d.ts +28 -0
  46. package/packages/client/types/components/dropdown/contract.d.ts +4 -4
  47. package/packages/client/types/components/dropdown/index.d.ts +20 -45
  48. package/packages/client/types/components/dropdown/machine.d.ts +93 -0
  49. package/packages/client/types/components/dropdown/runtime-docs.d.ts +2 -0
  50. package/packages/client/types/components/field/contract.d.ts +10 -6
  51. package/packages/client/types/components/field/index.d.ts +6 -6
  52. package/packages/client/types/components/field/machine.d.ts +13 -0
  53. package/packages/client/types/components/field/runtime-docs.d.ts +2 -0
  54. package/packages/client/types/components/file-upload/contract.d.ts +7 -4
  55. package/packages/client/types/components/file-upload/index.d.ts +34 -31
  56. package/packages/client/types/components/file-upload/machine.d.ts +127 -0
  57. package/packages/client/types/components/file-upload/runtime-docs.d.ts +2 -0
  58. package/packages/client/types/components/flex/contract.d.ts +16 -17
  59. package/packages/client/types/components/frame/contract.d.ts +41 -47
  60. package/packages/client/types/components/frame/index.d.ts +2 -2
  61. package/packages/client/types/components/grid/contract.d.ts +20 -21
  62. package/packages/client/types/components/heading/contract.d.ts +1 -1
  63. package/packages/client/types/components/image/contract.d.ts +3 -3
  64. package/packages/client/types/components/input/contract.d.ts +2 -2
  65. package/packages/client/types/components/input/index.d.ts +15 -12
  66. package/packages/client/types/components/input/machine.d.ts +20 -0
  67. package/packages/client/types/components/layout.d.ts +44 -225
  68. package/packages/client/types/components/menu/contract.d.ts +14 -8
  69. package/packages/client/types/components/modal/contract.d.ts +12 -12
  70. package/packages/client/types/components/modal/index.d.ts +41 -75
  71. package/packages/client/types/components/modal/machine.d.ts +129 -0
  72. package/packages/client/types/components/modal/runtime-docs.d.ts +2 -0
  73. package/packages/client/types/components/overlay/contract.d.ts +3 -3
  74. package/packages/client/types/components/panels/contract.d.ts +39 -0
  75. package/packages/client/types/components/panels/index.d.ts +54 -0
  76. package/packages/client/types/components/panels/machine.d.ts +151 -0
  77. package/packages/client/types/components/panels/runtime-docs.d.ts +2 -0
  78. package/packages/client/types/components/radio/contract.d.ts +11 -11
  79. package/packages/client/types/components/radio/index.d.ts +19 -23
  80. package/packages/client/types/components/radio/machine.d.ts +40 -0
  81. package/packages/client/types/components/radio/runtime-docs.d.ts +2 -0
  82. package/packages/client/types/components/runtime-docs.d.ts +2 -0
  83. package/packages/client/types/components/runtime.d.ts +16 -19
  84. package/packages/client/types/components/scroll-area/contract.d.ts +4 -7
  85. package/packages/client/types/components/scroll-area/index.d.ts +23 -49
  86. package/packages/client/types/components/scroll-area/machine.d.ts +21 -0
  87. package/packages/client/types/components/scroll-area/runtime-docs.d.ts +2 -0
  88. package/packages/client/types/components/section/contract.d.ts +12 -13
  89. package/packages/client/types/components/select/contract.d.ts +19 -15
  90. package/packages/client/types/components/select/index.d.ts +42 -89
  91. package/packages/client/types/components/select/machine.d.ts +476 -0
  92. package/packages/client/types/components/select/runtime-docs.d.ts +2 -0
  93. package/packages/client/types/components/shared/controlled-open.d.ts +11 -0
  94. package/packages/client/types/components/sidebar/contract.d.ts +19 -12
  95. package/packages/client/types/components/sidebar/index.d.ts +51 -88
  96. package/packages/client/types/components/sidebar/machine.d.ts +100 -0
  97. package/packages/client/types/components/sidebar/runtime-docs.d.ts +2 -0
  98. package/packages/client/types/components/slider/contract.d.ts +3 -3
  99. package/packages/client/types/components/slider/index.d.ts +17 -21
  100. package/packages/client/types/components/slider/machine.d.ts +37 -0
  101. package/packages/client/types/components/slider/runtime-docs.d.ts +2 -0
  102. package/packages/client/types/components/stack/contract.d.ts +16 -17
  103. package/packages/client/types/components/surface-manifest.d.ts +9 -0
  104. package/packages/client/types/components/switch/contract.d.ts +11 -11
  105. package/packages/client/types/components/switch/index.d.ts +13 -18
  106. package/packages/client/types/components/switch/machine.d.ts +19 -0
  107. package/packages/client/types/components/switch/runtime-docs.d.ts +2 -0
  108. package/packages/client/types/components/table/contract.d.ts +18 -18
  109. package/packages/client/types/components/tabs/contract.d.ts +10 -5
  110. package/packages/client/types/components/tabs/index.d.ts +33 -51
  111. package/packages/client/types/components/tabs/machine.d.ts +85 -0
  112. package/packages/client/types/components/tabs/runtime-docs.d.ts +2 -0
  113. package/packages/client/types/components/text/contract.d.ts +1 -1
  114. package/packages/client/types/components/textarea/contract.d.ts +2 -2
  115. package/packages/client/types/components/toast/contract.d.ts +5 -4
  116. package/packages/client/types/components/toast/index.d.ts +38 -12
  117. package/packages/client/types/components/toast/machine.d.ts +115 -0
  118. package/packages/client/types/components/toast/runtime-docs.d.ts +2 -0
  119. package/packages/client/types/directives/index.d.ts +3 -1
  120. package/packages/client/types/directives/layout.d.ts +3 -0
  121. package/packages/client/types/directives/request.d.ts +1 -2
  122. package/packages/client/types/directives/transition.d.ts +3 -0
  123. package/packages/client/types/docs/transition-docs.d.ts +30 -0
  124. package/packages/client/types/index.d.ts +8 -40
  125. package/packages/client/types/motion/animate.d.ts +5 -44
  126. package/packages/client/types/motion/controller.d.ts +33 -0
  127. package/packages/client/types/motion/index.d.ts +43 -20
  128. package/packages/client/types/motion/owned.d.ts +5 -0
  129. package/packages/client/types/motion/plan.d.ts +46 -0
  130. package/packages/client/types/motion/recipe.d.ts +56 -0
  131. package/packages/client/types/motion/registry.d.ts +12 -0
  132. package/packages/client/types/motion/resize.d.ts +15 -0
  133. package/packages/client/types/motion/subject.d.ts +10 -0
  134. package/packages/client/types/motion/targets.d.ts +2 -5
  135. package/packages/client/types/motion/view.d.ts +7 -2
  136. package/packages/client/types/runtime/alpine-machine.d.ts +69 -0
  137. package/packages/client/types/runtime/anchored-popover.d.ts +10 -2
  138. package/packages/client/types/runtime/codecs.d.ts +16 -2
  139. package/packages/client/types/runtime/{resizable.d.ts → drag-and-drop/index.d.ts} +4 -2
  140. package/packages/client/types/runtime/engine/request.d.ts +2 -2
  141. package/packages/client/types/runtime/engine/stream.d.ts +17 -9
  142. package/packages/client/types/runtime/focus-scope.d.ts +7 -0
  143. package/packages/client/types/runtime/identity.d.ts +3 -0
  144. package/packages/client/types/runtime/index.d.ts +9 -75
  145. package/packages/client/types/runtime/merge-bindings.d.ts +1 -1
  146. package/packages/client/types/runtime/semantic-observer.d.ts +10 -0
  147. package/packages/client/types/runtime/state-machine/index.d.ts +4 -0
  148. package/packages/client/types/runtime/state-machine/machine.d.ts +83 -0
  149. package/packages/client/types/runtime/state-machine/props-change.d.ts +12 -0
  150. package/packages/client/types/runtime/transition-coordinator.d.ts +52 -0
  151. package/packages/client/types/runtime/ui.d.ts +15 -0
  152. package/packages/client/types/utils/index.d.ts +2 -1
  153. package/packages/client/types/utils/number.d.ts +2 -0
  154. package/packages/client/types/utils/object.d.ts +4 -1
  155. package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +8872 -2159
  156. package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
  157. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +17176 -13340
  158. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
  159. package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +8 -13
  160. package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +8 -13
  161. package/packages/client/types/bindings/disclosure.d.ts +0 -3
  162. package/packages/client/types/bindings/index.d.ts +0 -7
  163. package/packages/client/types/bindings/motion.d.ts +0 -3
  164. package/packages/client/types/bindings/state.d.ts +0 -3
  165. package/packages/client/types/bindings/types.d.ts +0 -33
  166. package/packages/client/types/components/combobox/contract.d.ts +0 -60
  167. package/packages/client/types/components/combobox/index.d.ts +0 -80
  168. package/packages/client/types/components/textarea/index.d.ts +0 -13
  169. package/packages/client/types/motion/presence.d.ts +0 -34
  170. package/packages/client/types/runtime/class-name.d.ts +0 -9
  171. package/packages/client/types/runtime/create.d.ts +0 -8
  172. package/packages/client/types/runtime/machine.d.ts +0 -55
  173. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js +0 -1134
  174. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js.map +0 -1
@@ -1,11 +1,10 @@
1
- import { type PropState } from '../../runtime';
2
- import { type Elevation, type LayoutSpace, type Surface, type SurfaceTone } from '../common';
1
+ import { type SchemaToProps } from '../../runtime';
2
+ import { type ElevationReference, type LayoutSpace, type SurfaceReference } from '../common';
3
3
  declare const CARD_AS_VALUES: readonly ["div", "section", "article", "aside", "label"];
4
- declare const CARD_SURFACES: readonly ["none", "app", "chrome", "subtle", "panel", "raised", "overlay", "accent", "inverse"];
5
- declare const CARD_TONES: readonly ["solid", "alpha"];
6
- declare const CARD_ELEVATIONS: readonly ["none", "1", "2", "3", "4", "5", "6"];
4
+ declare const CARD_SURFACES: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "7", "8", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8"];
5
+ declare const CARD_ELEVATIONS: readonly ["none", "match", "1", "2", "3", "4", "5", "6", "7", "8"];
7
6
  declare const CARD_SIZES: readonly ["sm", "md"];
8
- declare const CARD_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
7
+ declare const CARD_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"];
9
8
  declare const CARD_TITLE_AS_VALUES: readonly ["h2", "h3", "h4", "div"];
10
9
  declare const CARD_FOOTER_LAYOUTS: readonly ["row", "stack"];
11
10
  declare const CARD_FOOTER_ALIGNS: readonly ["start", "end", "between", "stretch"];
@@ -14,19 +13,18 @@ declare const cardSchema: {
14
13
  href: import("../../runtime/codecs").StringCodec;
15
14
  label: import("../../runtime/codecs").StringCodec;
16
15
  interactive: import("../../runtime/codecs").BoolCodec;
17
- surface: import("../../runtime/codecs").OneOfCodec<"none" | "subtle" | "accent" | "app" | "chrome" | "panel" | "raised" | "overlay" | "inverse">;
18
- tone: import("../../runtime/codecs").OneOfCodec<"solid" | "alpha">;
19
- elevation: import("../../runtime/codecs").OneOfCodec<"1" | "none" | "2" | "3" | "4" | "5" | "6">;
16
+ surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
17
+ elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
20
18
  size: import("../../runtime/codecs").OneOfCodec<"sm" | "md">;
21
- padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
22
- paddingX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
23
- paddingY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
24
- gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
25
- gapX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
26
- gapY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
27
- margin: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
28
- marginX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
29
- marginY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
19
+ 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">;
20
+ 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">;
21
+ 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">;
22
+ 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">;
23
+ 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">;
24
+ 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">;
25
+ 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">;
26
+ 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">;
27
+ 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">;
30
28
  class: import("../../runtime/codecs").StringCodec;
31
29
  };
32
30
  declare const cardHeaderSchema: {
@@ -47,24 +45,23 @@ declare const cardContentSchema: {
47
45
  };
48
46
  declare const cardFooterSchema: {
49
47
  layout: import("../../runtime/codecs").OneOfCodec<"stack" | "row">;
50
- align: import("../../runtime/codecs").OneOfCodec<"end" | "start" | "stretch" | "between">;
48
+ align: import("../../runtime/codecs").OneOfCodec<"start" | "end" | "stretch" | "between">;
51
49
  class: import("../../runtime/codecs").StringCodec;
52
50
  };
53
51
  type CardAs = typeof CARD_AS_VALUES[number];
54
- type CardSurface = Surface;
55
- type CardTone = SurfaceTone;
56
- type CardElevation = Elevation;
52
+ type CardSurface = SurfaceReference;
53
+ type CardElevation = ElevationReference;
57
54
  type CardSize = typeof CARD_SIZES[number];
58
55
  type CardSpace = LayoutSpace;
59
56
  type CardTitleAs = typeof CARD_TITLE_AS_VALUES[number];
60
57
  type CardFooterLayout = typeof CARD_FOOTER_LAYOUTS[number];
61
58
  type CardFooterAlign = typeof CARD_FOOTER_ALIGNS[number];
62
- type CardProps = PropState<typeof cardSchema>;
63
- type CardHeaderProps = PropState<typeof cardHeaderSchema>;
64
- type CardTitleProps = PropState<typeof cardTitleSchema>;
65
- type CardDescriptionProps = PropState<typeof cardDescriptionSchema>;
66
- type CardActionProps = PropState<typeof cardActionSchema>;
67
- type CardContentProps = PropState<typeof cardContentSchema>;
68
- type CardFooterProps = PropState<typeof cardFooterSchema>;
69
- export { CARD_AS_VALUES, CARD_ELEVATIONS, CARD_FOOTER_ALIGNS, CARD_FOOTER_LAYOUTS, CARD_SIZES, CARD_SPACES, CARD_SURFACES, CARD_TONES, CARD_TITLE_AS_VALUES, cardActionSchema, cardContentSchema, cardDescriptionSchema, cardFooterSchema, cardHeaderSchema, cardSchema, cardTitleSchema, };
70
- export type { CardActionProps, CardAs, CardContentProps, CardDescriptionProps, CardElevation, CardFooterAlign, CardFooterLayout, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSpace, CardSurface, CardTitleAs, CardTitleProps, CardTone, };
59
+ type CardProps = SchemaToProps<typeof cardSchema>;
60
+ type CardHeaderProps = SchemaToProps<typeof cardHeaderSchema>;
61
+ type CardTitleProps = SchemaToProps<typeof cardTitleSchema>;
62
+ type CardDescriptionProps = SchemaToProps<typeof cardDescriptionSchema>;
63
+ type CardActionProps = SchemaToProps<typeof cardActionSchema>;
64
+ type CardContentProps = SchemaToProps<typeof cardContentSchema>;
65
+ type CardFooterProps = SchemaToProps<typeof cardFooterSchema>;
66
+ export { CARD_AS_VALUES, CARD_ELEVATIONS, CARD_FOOTER_ALIGNS, CARD_FOOTER_LAYOUTS, CARD_SIZES, CARD_SPACES, CARD_SURFACES, CARD_TITLE_AS_VALUES, cardActionSchema, cardContentSchema, cardDescriptionSchema, cardFooterSchema, cardHeaderSchema, cardSchema, cardTitleSchema, };
67
+ export type { CardActionProps, CardAs, CardContentProps, CardDescriptionProps, CardElevation, CardFooterAlign, CardFooterLayout, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSpace, CardSurface, CardTitleAs, CardTitleProps, };
@@ -1,4 +1,4 @@
1
- import { type PropState } from '../../runtime';
1
+ import { type SchemaToProps } from '../../runtime';
2
2
  import { type ControlSize, type DefaultVariant, type IndicatorPlacement, type Orientation } from '../common';
3
3
  declare const CHECKBOX_GROUP_ORIENTATIONS: readonly ["vertical", "horizontal"];
4
4
  declare const CHECKBOX_GROUP_VARIANTS: readonly ["default"];
@@ -15,11 +15,11 @@ declare const checkboxControlSchema: {
15
15
  name: import("../../runtime/codecs").StringCodec;
16
16
  label: import("../../runtime/codecs").StringCodec;
17
17
  description: import("../../runtime/codecs").StringCodec;
18
- checked: import("../../runtime/codecs").BoolCodec;
19
- indeterminate: import("../../runtime/codecs").BoolCodec;
20
- disabled: import("../../runtime/codecs").BoolCodec;
21
- required: import("../../runtime/codecs").BoolCodec;
22
- invalid: import("../../runtime/codecs").BoolCodec;
18
+ checked: import("../..").CodecFn<boolean>;
19
+ indeterminate: import("../..").CodecFn<boolean>;
20
+ disabled: import("../..").CodecFn<boolean>;
21
+ required: import("../..").CodecFn<boolean>;
22
+ invalid: import("../..").CodecFn<boolean>;
23
23
  indicator: import("../../runtime/codecs").BoolCodec;
24
24
  placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
25
25
  icon: import("../../runtime/codecs").StringCodec;
@@ -44,11 +44,11 @@ declare const checkboxSchema: {
44
44
  fieldClass: import("../../runtime/codecs").StringCodec;
45
45
  value: import("../../runtime/codecs").StringCodec;
46
46
  name: import("../../runtime/codecs").StringCodec;
47
- checked: import("../../runtime/codecs").BoolCodec;
48
- indeterminate: import("../../runtime/codecs").BoolCodec;
49
- disabled: import("../../runtime/codecs").BoolCodec;
50
- required: import("../../runtime/codecs").BoolCodec;
51
- invalid: import("../../runtime/codecs").BoolCodec;
47
+ checked: import("../..").CodecFn<boolean>;
48
+ indeterminate: import("../..").CodecFn<boolean>;
49
+ disabled: import("../..").CodecFn<boolean>;
50
+ required: import("../..").CodecFn<boolean>;
51
+ invalid: import("../..").CodecFn<boolean>;
52
52
  indicator: import("../../runtime/codecs").BoolCodec;
53
53
  placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
54
54
  icon: import("../../runtime/codecs").StringCodec;
@@ -69,17 +69,17 @@ declare const checkboxGroupSchema: {
69
69
  variant: import("../../runtime/codecs").OneOfCodec<"default">;
70
70
  indicator: import("../../runtime/codecs").BoolCodec;
71
71
  placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
72
- disabled: import("../../runtime/codecs").BoolCodec;
73
- required: import("../../runtime/codecs").BoolCodec;
74
- invalid: import("../../runtime/codecs").BoolCodec;
72
+ disabled: import("../..").CodecFn<boolean>;
73
+ required: import("../..").CodecFn<boolean>;
74
+ invalid: import("../..").CodecFn<boolean>;
75
75
  class: import("../../runtime/codecs").StringCodec;
76
76
  };
77
77
  declare const checkboxIndicatorSchema: {
78
78
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
79
79
  class: import("../../runtime/codecs").StringCodec;
80
80
  };
81
- type CheckboxControlProps = PropState<typeof checkboxControlSchema>;
82
- type CheckboxGroupProps = PropState<typeof checkboxGroupSchema>;
83
- type CheckboxProps = PropState<typeof checkboxSchema>;
81
+ type CheckboxControlProps = SchemaToProps<typeof checkboxControlSchema>;
82
+ type CheckboxGroupProps = SchemaToProps<typeof checkboxGroupSchema>;
83
+ type CheckboxProps = SchemaToProps<typeof checkboxSchema>;
84
84
  export { CHECKBOX_GROUP_ORIENTATIONS, CHECKBOX_GROUP_VARIANTS, CHECKBOX_PLACEMENTS, CHECKBOX_SIZES, CHECKBOX_VARIANTS, checkboxControlSchema, checkboxGroupSchema, checkboxIndicatorSchema, checkboxSchema, };
85
85
  export type { CheckboxControlProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxGroupVariant, CheckboxPlacement, CheckboxProps, CheckboxSize, CheckboxVariant, };
@@ -1,34 +1,28 @@
1
1
  import type Alpine from 'alpinejs';
2
- import { type CleanupStack, type TrellisAlpineComponent } from '../../runtime';
2
+ import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
3
3
  import { type CheckboxControlProps, type CheckboxGroupProps } from './contract';
4
- type CheckboxItem = {
5
- root: HTMLElement;
6
- input: HTMLInputElement;
7
- indicator: HTMLElement | null;
8
- checkedIcon: HTMLElement | null;
9
- indeterminateIcon: HTMLElement | null;
10
- name: string;
11
- disabled: boolean;
12
- required: boolean;
13
- invalid: boolean;
4
+ import { checkboxGroupHooks, checkboxHooks, type CheckboxContext, type CheckboxGroupContext, type CheckboxState } from './machine';
5
+ /**
6
+ * Public Alpine API for `ui.checkbox` and `ui.checkbox.control`.
7
+ *
8
+ * @public
9
+ */
10
+ interface UiCheckboxApi {
11
+ /** Current semantic checkbox state. */
12
+ readonly state: CheckboxState;
13
+ /** Set and commit the semantic checkbox state. */
14
+ setState(state: CheckboxState): void;
15
+ }
16
+ type CheckboxData = AlpineMachine<CheckboxContext, CheckboxControlProps, typeof checkboxHooks> & UiCheckboxApi & {
17
+ init(): void;
18
+ destroy(): void;
14
19
  };
15
- type CheckboxData = {
16
- props: CheckboxControlProps;
17
- listeners: CleanupStack;
18
- input(): HTMLInputElement;
19
- item(): CheckboxItem;
20
- sync(): void;
21
- };
22
- type CheckboxGroupData = {
23
- props: CheckboxGroupProps;
24
- listeners: CleanupStack;
25
- observer: MutationObserver | null;
26
- items(): CheckboxItem[];
27
- sync(): void;
28
- syncItem(item: CheckboxItem): void;
20
+ type CheckboxGroupData = AlpineMachine<CheckboxGroupContext, CheckboxGroupProps, typeof checkboxGroupHooks> & {
21
+ init(): void;
22
+ destroy(): void;
29
23
  };
30
24
  declare const UiCheckbox: () => TrellisAlpineComponent<CheckboxData>;
31
25
  declare const UiCheckboxGroup: () => TrellisAlpineComponent<CheckboxGroupData>;
32
26
  declare const registerCheckbox: (AlpineInstance: Alpine.Alpine) => void;
33
27
  export { registerCheckbox, UiCheckbox, UiCheckboxGroup };
34
- export type { CheckboxData, CheckboxGroupData, CheckboxItem };
28
+ export type { CheckboxData, CheckboxGroupData, CheckboxState, UiCheckboxApi };
@@ -0,0 +1,41 @@
1
+ import { type Machine, type MachineScope } from '../../runtime/state-machine';
2
+ import type { CheckboxControlProps, CheckboxGroupProps } from './contract';
3
+ type CheckboxState = 'unchecked' | 'checked' | 'indeterminate';
4
+ type CheckboxInheritance = {
5
+ name: string;
6
+ disabled: boolean;
7
+ required: boolean;
8
+ invalid: boolean;
9
+ };
10
+ type CheckboxContext = {
11
+ selection: {
12
+ state: CheckboxState;
13
+ };
14
+ inherited: CheckboxInheritance;
15
+ };
16
+ type CheckboxGroupContext = {
17
+ inherited: CheckboxInheritance;
18
+ };
19
+ type CheckboxMachineEffects = {
20
+ sync(scope: MachineScope<CheckboxContext, CheckboxControlProps>): void;
21
+ emitInput(scope: MachineScope<CheckboxContext, CheckboxControlProps>): void;
22
+ emitChange(scope: MachineScope<CheckboxContext, CheckboxControlProps>): void;
23
+ };
24
+ type CheckboxGroupMachineEffects = {
25
+ sync(scope: MachineScope<CheckboxGroupContext, CheckboxGroupProps>): void;
26
+ };
27
+ declare const checkboxHooks: readonly [];
28
+ declare const checkboxGroupHooks: readonly [];
29
+ declare const EMPTY_INHERITANCE: CheckboxInheritance;
30
+ declare const checkboxStateFromProps: (props: CheckboxControlProps) => CheckboxState;
31
+ declare const createCheckboxMachine: ({ props, inherited, effects, }: {
32
+ props: CheckboxControlProps;
33
+ inherited?: CheckboxInheritance;
34
+ effects: CheckboxMachineEffects;
35
+ }) => Machine<CheckboxContext, CheckboxControlProps>;
36
+ declare const createCheckboxGroupMachine: ({ props, effects, }: {
37
+ props: CheckboxGroupProps;
38
+ effects: CheckboxGroupMachineEffects;
39
+ }) => Machine<CheckboxGroupContext, CheckboxGroupProps>;
40
+ export { checkboxGroupHooks, checkboxHooks, checkboxStateFromProps, createCheckboxGroupMachine, createCheckboxMachine, EMPTY_INHERITANCE, };
41
+ export type { CheckboxContext, CheckboxGroupContext, CheckboxGroupMachineEffects, CheckboxInheritance, CheckboxMachineEffects, CheckboxState, };
@@ -0,0 +1,2 @@
1
+ declare const checkboxRuntimeDocs: import("../../docs/transition-docs").ComponentTransitionDocs;
2
+ export { checkboxRuntimeDocs };
@@ -15,239 +15,60 @@ type TypographyColor = typeof TYPOGRAPHY_COLORS[number];
15
15
  type IconColor = typeof ICON_COLORS[number];
16
16
  declare const TYPOGRAPHY_COLOR_CLASSES: {
17
17
  readonly inherit: "text-inherit";
18
- readonly muted: "text-foreground-muted";
19
- readonly subtle: "text-foreground-subtle";
20
- readonly accent: "text-accent-text";
21
- readonly danger: "text-danger-text";
18
+ readonly muted: "text-surface-ink-muted";
19
+ readonly subtle: "text-surface-ink-muted";
20
+ readonly accent: "text-intent-accent-text";
21
+ readonly danger: "text-intent-danger-text";
22
22
  };
23
23
  declare const ICON_COLOR_CLASSES: {
24
24
  readonly inherit: "text-current";
25
- readonly muted: "text-foreground-muted";
26
- readonly subtle: "text-foreground-subtle";
27
- readonly accent: "text-accent-text";
28
- readonly danger: "text-danger-text";
25
+ readonly muted: "text-surface-ink-muted";
26
+ readonly subtle: "text-surface-ink-muted";
27
+ readonly accent: "text-intent-accent-text";
28
+ readonly danger: "text-intent-danger-text";
29
29
  };
30
- declare const LAYOUT_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
30
+ declare const LAYOUT_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"];
31
31
  type LayoutSpace = typeof LAYOUT_SPACES[number];
32
- declare const LAYOUT_GAP_CLASSES: {
33
- readonly '0': "";
34
- readonly '1': "gap-1";
35
- readonly '2': "gap-2";
36
- readonly '3': "gap-3";
37
- readonly '4': "gap-4";
38
- readonly '5': "gap-5";
39
- readonly '6': "gap-6";
40
- readonly '7': "gap-7";
41
- readonly '8': "gap-8";
42
- readonly '9': "gap-9";
43
- };
44
- declare const LAYOUT_GAP_X_CLASSES: {
45
- readonly '0': "";
46
- readonly '1': "gap-x-1";
47
- readonly '2': "gap-x-2";
48
- readonly '3': "gap-x-3";
49
- readonly '4': "gap-x-4";
50
- readonly '5': "gap-x-5";
51
- readonly '6': "gap-x-6";
52
- readonly '7': "gap-x-7";
53
- readonly '8': "gap-x-8";
54
- readonly '9': "gap-x-9";
55
- };
56
- declare const LAYOUT_GAP_Y_CLASSES: {
57
- readonly '0': "";
58
- readonly '1': "gap-y-1";
59
- readonly '2': "gap-y-2";
60
- readonly '3': "gap-y-3";
61
- readonly '4': "gap-y-4";
62
- readonly '5': "gap-y-5";
63
- readonly '6': "gap-y-6";
64
- readonly '7': "gap-y-7";
65
- readonly '8': "gap-y-8";
66
- readonly '9': "gap-y-9";
67
- };
68
- declare const LAYOUT_PADDING_CLASSES: {
69
- readonly '0': "";
70
- readonly '1': "p-1";
71
- readonly '2': "p-2";
72
- readonly '3': "p-3";
73
- readonly '4': "p-4";
74
- readonly '5': "p-5";
75
- readonly '6': "p-6";
76
- readonly '7': "p-7";
77
- readonly '8': "p-8";
78
- readonly '9': "p-9";
79
- };
80
- declare const LAYOUT_PADDING_X_CLASSES: {
81
- readonly '0': "";
82
- readonly '1': "px-1";
83
- readonly '2': "px-2";
84
- readonly '3': "px-3";
85
- readonly '4': "px-4";
86
- readonly '5': "px-5";
87
- readonly '6': "px-6";
88
- readonly '7': "px-7";
89
- readonly '8': "px-8";
90
- readonly '9': "px-9";
91
- };
92
- declare const LAYOUT_PADDING_Y_CLASSES: {
93
- readonly '0': "";
94
- readonly '1': "py-1";
95
- readonly '2': "py-2";
96
- readonly '3': "py-3";
97
- readonly '4': "py-4";
98
- readonly '5': "py-5";
99
- readonly '6': "py-6";
100
- readonly '7': "py-7";
101
- readonly '8': "py-8";
102
- readonly '9': "py-9";
103
- };
104
- declare const LAYOUT_MARGIN_CLASSES: {
105
- readonly '0': "";
106
- readonly '1': "m-1";
107
- readonly '2': "m-2";
108
- readonly '3': "m-3";
109
- readonly '4': "m-4";
110
- readonly '5': "m-5";
111
- readonly '6': "m-6";
112
- readonly '7': "m-7";
113
- readonly '8': "m-8";
114
- readonly '9': "m-9";
115
- };
116
- declare const LAYOUT_MARGIN_X_CLASSES: {
117
- readonly '0': "";
118
- readonly '1': "mx-1";
119
- readonly '2': "mx-2";
120
- readonly '3': "mx-3";
121
- readonly '4': "mx-4";
122
- readonly '5': "mx-5";
123
- readonly '6': "mx-6";
124
- readonly '7': "mx-7";
125
- readonly '8': "mx-8";
126
- readonly '9': "mx-9";
127
- };
128
- declare const LAYOUT_MARGIN_Y_CLASSES: {
129
- readonly '0': "";
130
- readonly '1': "my-1";
131
- readonly '2': "my-2";
132
- readonly '3': "my-3";
133
- readonly '4': "my-4";
134
- readonly '5': "my-5";
135
- readonly '6': "my-6";
136
- readonly '7': "my-7";
137
- readonly '8': "my-8";
138
- readonly '9': "my-9";
139
- };
32
+ declare const LAYOUT_GAP_CLASSES: Record<"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", string>;
33
+ declare const LAYOUT_GAP_X_CLASSES: Record<"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", string>;
34
+ declare const LAYOUT_GAP_Y_CLASSES: Record<"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", string>;
35
+ declare const LAYOUT_PADDING_CLASSES: Record<"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", string>;
36
+ declare const LAYOUT_PADDING_X_CLASSES: Record<"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", string>;
37
+ declare const LAYOUT_PADDING_Y_CLASSES: Record<"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", string>;
38
+ declare const LAYOUT_MARGIN_CLASSES: Record<"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", string>;
39
+ declare const LAYOUT_MARGIN_X_CLASSES: Record<"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", string>;
40
+ declare const LAYOUT_MARGIN_Y_CLASSES: Record<"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", string>;
140
41
  declare const COMPONENT_RADII: readonly ["none", "xs", "sm", "md", "lg", "full"];
141
- declare const SURFACES: readonly ["none", "app", "chrome", "subtle", "panel", "raised", "overlay", "accent", "inverse"];
142
- declare const SURFACE_TONES: readonly ["solid", "alpha"];
143
- declare const ELEVATIONS: readonly ["none", "1", "2", "3", "4", "5", "6"];
144
- type Surface = typeof SURFACES[number];
145
- type SurfaceTone = typeof SURFACE_TONES[number];
146
- type Elevation = typeof ELEVATIONS[number];
147
- declare const SURFACE_CLASSES: {
148
- readonly none: "bg-transparent text-inherit";
149
- readonly app: "bg-app text-foreground";
150
- readonly chrome: "bg-chrome text-foreground";
151
- readonly subtle: "bg-surface-subtle text-foreground";
152
- readonly panel: "bg-surface-panel text-foreground";
153
- readonly raised: "bg-surface-raised text-foreground";
154
- readonly overlay: "bg-surface-overlay text-foreground";
155
- readonly accent: "bg-surface-accent text-surface-accent-fg";
156
- readonly inverse: "bg-surface-inverse text-surface-inverse-fg";
157
- };
158
- declare const SURFACE_TONE_CLASSES: {
159
- readonly solid: "";
160
- readonly alpha: "";
161
- };
162
- declare const SURFACE_ALPHA_COMPOUNDS: readonly [{
163
- readonly when: {
164
- readonly surface: "chrome";
165
- readonly tone: "alpha";
166
- };
167
- readonly class: "bg-chrome-alpha";
168
- }, {
169
- readonly when: {
170
- readonly surface: "panel";
171
- readonly tone: "alpha";
172
- };
173
- readonly class: "bg-surface-panel-alpha";
174
- }, {
175
- readonly when: {
176
- readonly surface: "overlay";
177
- readonly tone: "alpha";
178
- };
179
- readonly class: "bg-surface-overlay-alpha";
180
- }];
42
+ declare const ABSOLUTE_SURFACE_REFERENCES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8"];
43
+ declare const SURFACE_REFERENCES: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "7", "8", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8"];
44
+ declare const ELEVATION_REFERENCES: readonly ["none", "match", "1", "2", "3", "4", "5", "6", "7", "8"];
45
+ type SurfaceReference = typeof SURFACE_REFERENCES[number];
46
+ type AbsoluteSurfaceReference = typeof ABSOLUTE_SURFACE_REFERENCES[number];
47
+ type ElevationReference = typeof ELEVATION_REFERENCES[number];
48
+ declare const elevationReferenceClasses: (property: `--${string}`) => Record<ElevationReference, string>;
181
49
  declare const SURFACE_RADIUS_CLASSES: {
182
50
  readonly none: "";
183
- readonly xs: "rounded-1";
184
- readonly sm: "rounded-2";
185
- readonly md: "rounded-3";
186
- readonly lg: "rounded-4";
187
- readonly full: "rounded-6";
188
- };
189
- declare const ELEVATION_CLASSES: {
190
- readonly none: "shadow-none";
191
- readonly '1': "shadow-1";
192
- readonly '2': "shadow-2";
193
- readonly '3': "shadow-3";
194
- readonly '4': "shadow-4";
195
- readonly '5': "shadow-5";
196
- readonly '6': "shadow-6";
51
+ readonly xs: "rounded-surface-xs";
52
+ readonly sm: "rounded-surface-sm";
53
+ readonly md: "rounded-surface-md";
54
+ readonly lg: "rounded-surface-lg";
55
+ readonly full: "rounded-full";
197
56
  };
198
- declare const CONTROL_RADIUS_BY_SIZE: {
199
- readonly xs: {
200
- readonly none: "";
201
- readonly xs: "rounded-1";
202
- readonly sm: "rounded-1";
203
- readonly md: "rounded-2";
204
- readonly lg: "rounded-3";
205
- readonly full: "rounded-full";
206
- };
207
- readonly sm: {
208
- readonly none: "";
209
- readonly xs: "rounded-1";
210
- readonly sm: "rounded-2";
211
- readonly md: "rounded-2";
212
- readonly lg: "rounded-3";
213
- readonly full: "rounded-full";
214
- };
215
- readonly md: {
216
- readonly none: "";
217
- readonly xs: "rounded-1";
218
- readonly sm: "rounded-2";
219
- readonly md: "rounded-3";
220
- readonly lg: "rounded-4";
221
- readonly full: "rounded-full";
222
- };
223
- readonly lg: {
224
- readonly none: "";
225
- readonly xs: "rounded-2";
226
- readonly sm: "rounded-3";
227
- readonly md: "rounded-4";
228
- readonly lg: "rounded-5";
229
- readonly full: "rounded-full";
230
- };
231
- readonly xlg: {
232
- readonly none: "";
233
- readonly xs: "rounded-2";
234
- readonly sm: "rounded-3";
235
- readonly md: "rounded-4";
236
- readonly lg: "rounded-5";
237
- readonly full: "rounded-full";
238
- };
239
- };
240
- type ControlRadiusCompound = {
241
- when: {
242
- size: typeof CONTROL_SIZES[number];
243
- radius: typeof COMPONENT_RADII[number];
244
- };
245
- class: string;
57
+ declare const CONTROL_RADIUS_CLASSES: {
58
+ readonly none: "";
59
+ readonly xs: "rounded-control-xs";
60
+ readonly sm: "rounded-control-sm";
61
+ readonly md: "rounded-control-md";
62
+ readonly lg: "rounded-control-lg";
63
+ readonly full: "rounded-full";
64
+ };
65
+ declare const CONTROL_TYPOGRAPHY_CLASSES: {
66
+ readonly xs: "font-control text-control-xs [font-weight:var(--font-weight-control-xs)]";
67
+ readonly sm: "font-control text-control-sm [font-weight:var(--font-weight-control-sm)]";
68
+ readonly md: "font-control text-control-md [font-weight:var(--font-weight-control-md)]";
69
+ readonly lg: "font-control text-control-lg [font-weight:var(--font-weight-control-lg)]";
70
+ readonly xlg: "font-control text-control-xlg [font-weight:var(--font-weight-control-xlg)]";
246
71
  };
247
- declare const CONTROL_RADIUS_COMPOUNDS: ControlRadiusCompound[];
248
- declare const CONTROL_ROOT_CLASSES: string[];
249
- declare const CONTROL_MULTILINE_ROOT_CLASSES: string[];
250
- declare const CONTROL_OPEN_CLASSES: string[];
251
72
  declare const CONTROL_SIZE_CLASSES: {
252
73
  xs: string;
253
74
  sm: string;
@@ -269,17 +90,14 @@ declare const CONTROL_MULTILINE_SIZE_CLASSES: {
269
90
  lg: string;
270
91
  xlg: string;
271
92
  };
272
- declare const CONTROL_VARIANT_CLASSES: {
273
- outline: string;
274
- filled: string;
275
- };
276
- declare const CONTROL_INPUT_CLASSES: string[];
277
- declare const CONTROL_ACTION_CLASSES: string[];
278
- declare const CONTROL_NATIVE_CLASSES: string[];
279
- declare const POPOVER_SURFACE_CLASSES: string[];
93
+ declare const FIELD_CONTROL_ROOT_CLASSES: string[];
94
+ declare const FIELD_CONTROL_MULTILINE_ROOT_CLASSES: string[];
95
+ declare const FIELD_CONTROL_INPUT_CLASSES: string[];
96
+ declare const FIELD_CONTROL_ACTION_CLASSES: string[];
97
+ declare const FIELD_CONTROL_NATIVE_CLASSES: string[];
98
+ declare const POPOVER_GEOMETRY_CLASSES: string[];
280
99
  declare const INTERACTIVE_ITEM_CLASSES: string[];
281
- declare const INTERACTIVE_SURFACE_CLASSES: string[];
282
- declare const OPTION_ITEM_CLASSES: (string | string[])[];
100
+ declare const OPTION_ITEM_CLASSES: string[];
283
101
  declare const OPTION_ICON_CLASSES = "size-icon shrink-0 fill-current text-current opacity-70";
284
102
  declare const OPTION_INDICATOR_CLASSES = "ml-auto size-icon shrink-0 fill-current text-current opacity-0 data-selected:opacity-100";
285
103
  type ControlSize = typeof CONTROL_SIZES[number];
@@ -294,5 +112,5 @@ type IndicatorPlacement = typeof INDICATOR_PLACEMENTS[number];
294
112
  type DefaultVariant = typeof DEFAULT_VARIANTS[number];
295
113
  type HeadingLevel = typeof HEADING_LEVELS[number];
296
114
  type ComponentRadius = typeof COMPONENT_RADII[number];
297
- export { ALIGNMENTS, BUTTON_TYPES, COMPONENT_RADII, CONTROL_RADIUS_BY_SIZE, CONTROL_RADIUS_COMPOUNDS, CONTROL_ACTION_CLASSES, CONTROL_INPUT_CLASSES, CONTROL_MIN_SIZE_CLASSES, CONTROL_MULTILINE_ROOT_CLASSES, CONTROL_MULTILINE_SIZE_CLASSES, CONTROL_NATIVE_CLASSES, CONTROL_OPEN_CLASSES, CONTROL_ROOT_CLASSES, CONTROL_SIZES, CONTROL_SIZE_CLASSES, CONTROL_VARIANT_CLASSES, CONTROL_VARIANTS, DEFAULT_VARIANTS, EDGE_POSITIONS, ELEVATION_CLASSES, ELEVATIONS, HEADING_LEVELS, ICON_COLORS, ICON_COLOR_CLASSES, ICON_VARIANTS, INDICATOR_PLACEMENTS, INTERACTIVE_ITEM_CLASSES, INTERACTIVE_SURFACE_CLASSES, LAYOUT_GAP_CLASSES, LAYOUT_GAP_X_CLASSES, LAYOUT_GAP_Y_CLASSES, LAYOUT_MARGIN_CLASSES, LAYOUT_MARGIN_X_CLASSES, LAYOUT_MARGIN_Y_CLASSES, LAYOUT_PADDING_CLASSES, LAYOUT_PADDING_X_CLASSES, LAYOUT_PADDING_Y_CLASSES, LAYOUT_SPACES, OPTION_ICON_CLASSES, OPTION_INDICATOR_CLASSES, OPTION_ITEM_CLASSES, ORIENTATIONS, POPOVER_SURFACE_CLASSES, POSITIONS, SURFACE_ALPHA_COMPOUNDS, SURFACE_CLASSES, SURFACE_RADIUS_CLASSES, SURFACE_TONE_CLASSES, SURFACE_TONES, SURFACES, TYPOGRAPHY_COLOR_CLASSES, TYPOGRAPHY_COLORS, };
298
- export type { Alignment, CommonButtonType, ComponentRadius, ControlSize, ControlVariant, DefaultVariant, EdgePosition, HeadingLevel, IconColor, IconVariant, IndicatorPlacement, LayoutSpace, Orientation, Position, Surface, SurfaceTone, Elevation, TypographyColor, };
115
+ export { ABSOLUTE_SURFACE_REFERENCES, ALIGNMENTS, BUTTON_TYPES, COMPONENT_RADII, CONTROL_RADIUS_CLASSES, CONTROL_MIN_SIZE_CLASSES, CONTROL_MULTILINE_SIZE_CLASSES, CONTROL_SIZES, CONTROL_SIZE_CLASSES, CONTROL_TYPOGRAPHY_CLASSES, CONTROL_VARIANTS, DEFAULT_VARIANTS, EDGE_POSITIONS, ELEVATION_REFERENCES, FIELD_CONTROL_ACTION_CLASSES, FIELD_CONTROL_INPUT_CLASSES, FIELD_CONTROL_MULTILINE_ROOT_CLASSES, FIELD_CONTROL_NATIVE_CLASSES, FIELD_CONTROL_ROOT_CLASSES, elevationReferenceClasses, HEADING_LEVELS, ICON_COLORS, ICON_COLOR_CLASSES, ICON_VARIANTS, INDICATOR_PLACEMENTS, INTERACTIVE_ITEM_CLASSES, LAYOUT_GAP_CLASSES, LAYOUT_GAP_X_CLASSES, LAYOUT_GAP_Y_CLASSES, LAYOUT_MARGIN_CLASSES, LAYOUT_MARGIN_X_CLASSES, LAYOUT_MARGIN_Y_CLASSES, LAYOUT_PADDING_CLASSES, LAYOUT_PADDING_X_CLASSES, LAYOUT_PADDING_Y_CLASSES, LAYOUT_SPACES, OPTION_ICON_CLASSES, OPTION_INDICATOR_CLASSES, OPTION_ITEM_CLASSES, ORIENTATIONS, POPOVER_GEOMETRY_CLASSES, POSITIONS, SURFACE_RADIUS_CLASSES, SURFACE_REFERENCES, TYPOGRAPHY_COLOR_CLASSES, TYPOGRAPHY_COLORS, };
116
+ export type { AbsoluteSurfaceReference, Alignment, CommonButtonType, ComponentRadius, ControlSize, ControlVariant, DefaultVariant, EdgePosition, ElevationReference, HeadingLevel, IconColor, IconVariant, IndicatorPlacement, LayoutSpace, Orientation, Position, SurfaceReference, TypographyColor, };