@k8ordo/ui 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/README.md +73 -182
  2. package/dist/{integrations/_shared → catalog}/icon-map.d.mts +4 -2
  3. package/dist/catalog/icon-map.mjs +212 -0
  4. package/dist/catalog/icon-names.d.mts +1 -0
  5. package/dist/{integrations/_shared → catalog}/icon-names.mjs +3 -1
  6. package/dist/catalog/index.d.mts +1289 -0
  7. package/dist/catalog/index.mjs +419 -0
  8. package/dist/catalog/render.css +34 -0
  9. package/dist/catalog/render.d.mts +72 -0
  10. package/dist/catalog/render.mjs +631 -0
  11. package/dist/catalog/render.module.mjs +11 -0
  12. package/dist/{integrations/_shared → catalog}/schemas.d.mts +120 -132
  13. package/dist/{integrations/_shared → catalog}/schemas.mjs +189 -131
  14. package/dist/catalog/to-tree.d.mts +4 -0
  15. package/dist/catalog/to-tree.mjs +17 -0
  16. package/dist/components/_internal/checked-values.d.mts +1 -0
  17. package/dist/components/_internal/checked-values.mjs +5 -0
  18. package/dist/components/_internal/field-message.css +25 -0
  19. package/dist/components/_internal/field-message.d.mts +10 -0
  20. package/dist/components/_internal/field-message.mjs +22 -0
  21. package/dist/components/_internal/field-message.module.mjs +9 -0
  22. package/dist/components/_internal/focus-ring.css +1 -1
  23. package/dist/components/_internal/high-contrast.css +1 -0
  24. package/dist/components/{observers/in-view → _internal}/in-view.mjs +1 -1
  25. package/dist/components/{observers/resize → _internal}/resize.mjs +1 -1
  26. package/dist/components/ai/_internal/attachment-preview.mjs +1 -1
  27. package/dist/components/ai/_internal/collapsible.mjs +1 -1
  28. package/dist/components/ai/attachment/attachment.d.mts +1 -1
  29. package/dist/components/ai/attachment/index.d.mts +1 -1
  30. package/dist/components/ai/conversation/conversation.mjs +4 -4
  31. package/dist/components/ai/index.d.mts +2 -2
  32. package/dist/components/ai/message/index.d.mts +2 -2
  33. package/dist/components/ai/message/message.d.mts +2 -2
  34. package/dist/components/ai/message/message.mjs +9 -9
  35. package/dist/components/ai/prompt-input/prompt-input.mjs +4 -4
  36. package/dist/components/ai/source/index.d.mts +2 -2
  37. package/dist/components/ai/source/source.d.mts +2 -2
  38. package/dist/components/ai/source/source.mjs +1 -1
  39. package/dist/components/ai/tool-invocation/approval-bar.mjs +11 -22
  40. package/dist/components/ai/tool-invocation/tool-invocation.d.mts +2 -2
  41. package/dist/components/buttons/button/button.css +1 -1
  42. package/dist/components/buttons/button/button.d.mts +34 -37
  43. package/dist/components/buttons/button/button.mjs +37 -24
  44. package/dist/components/buttons/button/button.module.mjs +0 -1
  45. package/dist/components/buttons/button/index.d.mts +2 -2
  46. package/dist/components/buttons/copy-button/copy-button.mjs +4 -4
  47. package/dist/components/buttons/icon-button/icon-button.css +3 -3
  48. package/dist/components/buttons/icon-button/icon-button.d.mts +37 -43
  49. package/dist/components/buttons/icon-button/icon-button.mjs +73 -63
  50. package/dist/components/buttons/icon-button/icon-button.module.mjs +2 -2
  51. package/dist/components/buttons/icon-button/index.d.mts +2 -2
  52. package/dist/components/buttons/toolbar/toolbar.css +5 -1
  53. package/dist/components/buttons/toolbar/toolbar.mjs +1 -1
  54. package/dist/components/data-display/accordion/accordion-button.d.mts +4 -1
  55. package/dist/components/data-display/accordion/accordion-button.mjs +4 -4
  56. package/dist/components/data-display/accordion/index.d.mts +3 -3
  57. package/dist/components/data-display/card/card-action.d.mts +6 -0
  58. package/dist/components/data-display/card/card-action.mjs +21 -0
  59. package/dist/components/data-display/card/card.css +24 -0
  60. package/dist/components/data-display/card/card.d.mts +26 -3
  61. package/dist/components/data-display/card/card.mjs +46 -6
  62. package/dist/components/data-display/card/card.module.mjs +4 -1
  63. package/dist/components/data-display/card/index.d.mts +2 -2
  64. package/dist/components/data-display/carousel/carousel.mjs +2 -2
  65. package/dist/components/data-display/code/code.css +4 -0
  66. package/dist/components/data-display/code-block/code-block.mjs +1 -1
  67. package/dist/components/data-display/data-table/data-table.css +0 -3
  68. package/dist/components/data-display/data-table/data-table.mjs +25 -26
  69. package/dist/components/data-display/tree/tree.d.mts +1 -1
  70. package/dist/components/data-display/tree/tree.mjs +6 -5
  71. package/dist/components/feedback/alert/alert.d.mts +2 -7
  72. package/dist/components/feedback/alert/alert.mjs +11 -11
  73. package/dist/components/feedback/alert/index.d.mts +2 -2
  74. package/dist/components/feedback/callout/callout.mjs +2 -2
  75. package/dist/components/feedback/progress/progress.mjs +1 -1
  76. package/dist/components/feedback/toast/context.d.mts +4 -5
  77. package/dist/components/feedback/toast/index.d.mts +2 -2
  78. package/dist/components/feedback/toast/provider.d.mts +7 -2
  79. package/dist/components/feedback/toast/provider.mjs +7 -2
  80. package/dist/components/feedback/toast/toast.d.mts +2 -3
  81. package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
  82. package/dist/components/form/autocomplete/autocomplete.mjs +12 -9
  83. package/dist/components/form/calendar/calendar.mjs +3 -5
  84. package/dist/components/form/checkbox/checkbox.d.mts +3 -1
  85. package/dist/components/form/checkbox/checkbox.mjs +44 -45
  86. package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -2
  87. package/dist/components/form/checkbox-card/checkbox-card.mjs +13 -6
  88. package/dist/components/form/checkbox-group/checkbox-group.d.mts +15 -20
  89. package/dist/components/form/checkbox-group/checkbox-group.mjs +18 -26
  90. package/dist/components/form/checkbox-group/index.d.mts +2 -34
  91. package/dist/components/form/checkbox-group/index.mjs +1 -8
  92. package/dist/components/form/color-picker/color-picker.css +3 -5
  93. package/dist/components/form/color-picker/color-picker.d.mts +0 -1
  94. package/dist/components/form/color-picker/color-picker.mjs +4 -4
  95. package/dist/components/form/combobox/combobox.d.mts +0 -1
  96. package/dist/components/form/combobox/combobox.mjs +9 -8
  97. package/dist/components/form/date-picker/date-picker.css +0 -5
  98. package/dist/components/form/date-picker/date-picker.mjs +21 -22
  99. package/dist/components/form/file-field/file-field.d.mts +6 -3
  100. package/dist/components/form/file-field/file-field.mjs +41 -18
  101. package/dist/components/form/file-field/index.d.mts +4 -1
  102. package/dist/components/form/form/form.mjs +0 -1
  103. package/dist/components/form/form-control/form-control.css +0 -15
  104. package/dist/components/form/form-control/form-control.d.mts +3 -4
  105. package/dist/components/form/form-control/form-control.mjs +44 -46
  106. package/dist/components/form/form-control/form-control.module.mjs +0 -3
  107. package/dist/components/form/number-field/number-field.d.mts +2 -2
  108. package/dist/components/form/number-field/number-field.mjs +13 -52
  109. package/dist/components/form/password-input/password-input.mjs +1 -1
  110. package/dist/components/form/radio/radio.mjs +4 -2
  111. package/dist/components/form/radio-card/radio-card.mjs +9 -2
  112. package/dist/components/form/range-slider/range-slider.d.mts +4 -2
  113. package/dist/components/form/range-slider/range-slider.mjs +2 -4
  114. package/dist/components/form/select/select.css +6 -4
  115. package/dist/components/form/select/select.d.mts +5 -0
  116. package/dist/components/form/select/select.mjs +10 -7
  117. package/dist/components/form/slider/slider.d.mts +2 -2
  118. package/dist/components/form/slider/slider.mjs +3 -6
  119. package/dist/components/form/switch/switch.d.mts +3 -0
  120. package/dist/components/form/switch/switch.mjs +43 -31
  121. package/dist/components/form/text-field/index.d.mts +2 -2
  122. package/dist/components/form/text-field/text-field.css +4 -0
  123. package/dist/components/form/text-field/text-field.d.mts +1 -1
  124. package/dist/components/form/textarea/textarea.d.mts +0 -1
  125. package/dist/components/form/textarea/textarea.mjs +1 -1
  126. package/dist/components/icons/base.d.mts +0 -1
  127. package/dist/components/icons/base.mjs +1 -2
  128. package/dist/components/icons/clipboard-check.d.mts +3 -0
  129. package/dist/components/icons/clipboard-check.mjs +18 -0
  130. package/dist/components/icons/git-pull-request.d.mts +3 -0
  131. package/dist/components/icons/git-pull-request.mjs +20 -0
  132. package/dist/components/icons/index.d.mts +9 -7
  133. package/dist/components/icons/index.mjs +30 -28
  134. package/dist/components/index.d.mts +58 -66
  135. package/dist/components/index.mjs +13 -19
  136. package/dist/components/layout/resizable-panels/resizable-panels.mjs +3 -3
  137. package/dist/components/navigation/anchor/anchor.css +3 -3
  138. package/dist/components/navigation/anchor/anchor.mjs +20 -7
  139. package/dist/components/navigation/anchor/anchor.module.mjs +1 -1
  140. package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +6 -4
  141. package/dist/components/navigation/breadcrumb/breadcrumb.mjs +3 -2
  142. package/dist/components/navigation/pagination/pagination.d.mts +2 -2
  143. package/dist/components/navigation/pagination/pagination.mjs +2 -2
  144. package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
  145. package/dist/components/navigation/stepper/stepper.mjs +3 -3
  146. package/dist/components/navigation/tabs/index.d.mts +10 -5
  147. package/dist/components/navigation/tabs/tabs.d.mts +11 -6
  148. package/dist/components/navigation/tabs/tabs.mjs +24 -27
  149. package/dist/components/overlays/_internal/modal-header.css +38 -0
  150. package/dist/components/overlays/_internal/modal-header.d.mts +7 -0
  151. package/dist/components/overlays/_internal/modal-header.mjs +32 -0
  152. package/dist/components/overlays/_internal/modal-header.module.mjs +10 -0
  153. package/dist/components/overlays/command-palette/command-palette.d.mts +2 -2
  154. package/dist/components/overlays/command-palette/command-palette.mjs +9 -8
  155. package/dist/components/overlays/context-menu/context-menu.mjs +3 -3
  156. package/dist/components/overlays/context-menu/index.d.mts +27 -2
  157. package/dist/components/overlays/dialog/dialog.css +3 -21
  158. package/dist/components/overlays/dialog/dialog.d.mts +20 -9
  159. package/dist/components/overlays/dialog/dialog.mjs +35 -73
  160. package/dist/components/overlays/dialog/dialog.module.mjs +1 -3
  161. package/dist/components/overlays/dialog/index.d.mts +2 -15
  162. package/dist/components/overlays/dialog/index.mjs +1 -8
  163. package/dist/components/overlays/drawer/drawer.css +4 -26
  164. package/dist/components/overlays/drawer/drawer.d.mts +7 -2
  165. package/dist/components/overlays/drawer/drawer.mjs +24 -37
  166. package/dist/components/overlays/drawer/drawer.module.mjs +2 -6
  167. package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +35 -5
  168. package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +29 -11
  169. package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -1
  170. package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -1
  171. package/dist/components/overlays/dropdown-menu/index.d.mts +34 -4
  172. package/dist/components/overlays/dropdown-menu/shared.css +1 -0
  173. package/dist/components/overlays/dropdown-menu/sub-menu.mjs +4 -4
  174. package/dist/components/overlays/list-box/hooks.mjs +2 -2
  175. package/dist/components/overlays/list-box/index.d.mts +2 -25
  176. package/dist/components/overlays/list-box/index.mjs +1 -9
  177. package/dist/components/overlays/list-box/list-box.d.mts +11 -16
  178. package/dist/components/overlays/list-box/list-box.mjs +23 -16
  179. package/dist/components/overlays/modal/modal.d.mts +8 -7
  180. package/dist/components/overlays/modal/modal.mjs +23 -32
  181. package/dist/components/overlays/popover/anchor-positioning.d.mts +3 -16
  182. package/dist/components/overlays/popover/anchor-positioning.mjs +14 -6
  183. package/dist/components/overlays/popover/hooks.d.mts +0 -2
  184. package/dist/components/overlays/popover/hooks.mjs +0 -2
  185. package/dist/components/overlays/popover/index.d.mts +19 -2
  186. package/dist/components/overlays/popover/index.mjs +7 -2
  187. package/dist/components/overlays/popover/popover.css +6 -0
  188. package/dist/components/overlays/popover/popover.d.mts +15 -2
  189. package/dist/components/overlays/popover/popover.mjs +28 -13
  190. package/dist/components/overlays/popover/popover.module.mjs +2 -1
  191. package/dist/components/overlays/tooltip/bridge.css +1 -1
  192. package/dist/components/overlays/tooltip/tooltip.mjs +5 -5
  193. package/dist/helpers/index.mjs +1 -1
  194. package/dist/i18n/en.mjs +1 -2
  195. package/dist/i18n/index.d.mts +3 -4
  196. package/dist/i18n/index.mjs +1 -2
  197. package/dist/i18n/ja.mjs +1 -2
  198. package/dist/i18n/messages.d.mts +2 -4
  199. package/dist/i18n/usage.d.mts +2 -1
  200. package/dist/i18n/usage.mjs +3 -3
  201. package/dist/index.d.mts +30 -36
  202. package/dist/index.mjs +4 -10
  203. package/dist/internal/iso-date.mjs +1 -1
  204. package/dist/styles/index.css +79 -225
  205. package/dist/styles/tailwind.css +1 -1
  206. package/dist/styles/tokens.css +281 -0
  207. package/dist/styles/tokens.d.mts +1 -1
  208. package/dist/styles/tokens.mjs +1 -1
  209. package/dist/types/index.d.mts +2 -2
  210. package/dist/types/variables.d.mts +4 -2
  211. package/docs/GUIDE.md +141 -66
  212. package/docs/llms.txt +38 -11
  213. package/docs/props.generated.json +752 -481
  214. package/docs/references/ai-chat.md +87 -39
  215. package/docs/references/color.md +15 -15
  216. package/docs/references/components.md +568 -499
  217. package/docs/references/generative-ui.md +373 -185
  218. package/docs/references/interaction-design.md +6 -5
  219. package/docs/references/spatial-design.md +8 -8
  220. package/docs/references/types.md +22 -25
  221. package/package.json +37 -70
  222. package/dist/components/form/date-field/date-field.css +0 -31
  223. package/dist/components/form/date-field/date-field.d.mts +0 -7
  224. package/dist/components/form/date-field/date-field.mjs +0 -19
  225. package/dist/components/form/date-field/date-field.module.mjs +0 -4
  226. package/dist/components/form/date-field/index.d.mts +0 -2
  227. package/dist/components/form/date-field/index.mjs +0 -1
  228. package/dist/components/observers/in-view/index.d.mts +0 -2
  229. package/dist/components/observers/in-view/index.mjs +0 -1
  230. package/dist/components/observers/resize/index.d.mts +0 -2
  231. package/dist/components/observers/resize/index.mjs +0 -1
  232. package/dist/components/overlays/_internal/modal-dialog-context.d.mts +0 -11
  233. package/dist/components/overlays/_internal/modal-dialog-context.mjs +0 -12
  234. package/dist/components/providers/index.d.mts +0 -3
  235. package/dist/components/providers/index.mjs +0 -3
  236. package/dist/components/providers/portal-root.d.mts +0 -8
  237. package/dist/components/providers/portal-root.mjs +0 -11
  238. package/dist/components/providers/ui-provider.d.mts +0 -2
  239. package/dist/components/providers/ui-provider.mjs +0 -6
  240. package/dist/integrations/_shared/icon-map.mjs +0 -208
  241. package/dist/integrations/_shared/icon-names.d.mts +0 -1
  242. package/dist/integrations/_shared/openui-defs.d.mts +0 -15
  243. package/dist/integrations/_shared/openui-defs.mjs +0 -230
  244. package/dist/integrations/_shared/renderers.css +0 -50
  245. package/dist/integrations/_shared/renderers.d.mts +0 -88
  246. package/dist/integrations/_shared/renderers.mjs +0 -880
  247. package/dist/integrations/_shared/renderers.module.mjs +0 -13
  248. package/dist/integrations/ai-sdk/index.d.mts +0 -3
  249. package/dist/integrations/ai-sdk/index.mjs +0 -1
  250. package/dist/integrations/ai-sdk/map-parts.d.mts +0 -44
  251. package/dist/integrations/ai-sdk/map-parts.mjs +0 -56
  252. package/dist/integrations/json-render/catalog.d.mts +0 -1359
  253. package/dist/integrations/json-render/catalog.mjs +0 -373
  254. package/dist/integrations/json-render/registry.d.mts +0 -26
  255. package/dist/integrations/json-render/registry.mjs +0 -192
  256. package/dist/integrations/openui/form-views.d.mts +0 -24
  257. package/dist/integrations/openui/form-views.mjs +0 -89
  258. package/dist/integrations/openui/library.d.mts +0 -202
  259. package/dist/integrations/openui/library.mjs +0 -83
  260. package/dist/integrations/openui/prompt.d.mts +0 -2
  261. package/dist/integrations/openui/prompt.mjs +0 -18
  262. /package/dist/components/{observers → _internal}/fragment-instance.d.mts +0 -0
  263. /package/dist/components/{observers/in-view → _internal}/in-view.d.mts +0 -0
  264. /package/dist/components/{observers/resize → _internal}/resize.d.mts +0 -0
@@ -1,1359 +0,0 @@
1
- import { z } from "zod";
2
- import { Spec, UIElement } from "@json-render/core";
3
- /**
4
- * `@k8ordo/ui/json-render`(サーバー安全)
5
- *
6
- * LLM が生成してよい部品の契約(Zod スキーマのみ)。React に依存しないので
7
- * RSC のサーバーコンポーネントから import して `catalog.prompt()` で
8
- * システムプロンプトを生成できる。
9
- *
10
- * 実際の描画は `@k8ordo/ui/json-render/registry`('use client')。
11
- */
12
- export declare const catalog: import("@json-render/core").Catalog<{
13
- spec: import("@json-render/core").SchemaType<"object", {
14
- root: import("@json-render/core").SchemaType<"string", unknown>;
15
- elements: import("@json-render/core").SchemaType<"record", import("@json-render/core").SchemaType<"object", {
16
- type: import("@json-render/core").SchemaType<"ref", string>;
17
- props: import("@json-render/core").SchemaType<"propsOf", string>;
18
- children: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>>;
19
- slots: {
20
- optional: true;
21
- kind: "record";
22
- inner?: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>> | undefined;
23
- };
24
- visible: {
25
- optional: true;
26
- kind: "any";
27
- inner?: unknown;
28
- };
29
- repeat: {
30
- optional: true;
31
- kind: "any";
32
- inner?: unknown;
33
- };
34
- }>>;
35
- }>;
36
- catalog: import("@json-render/core").SchemaType<"object", {
37
- components: import("@json-render/core").SchemaType<"map", {
38
- props: import("@json-render/core").SchemaType<"zod", unknown>;
39
- slots: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>>;
40
- description: import("@json-render/core").SchemaType<"string", unknown>;
41
- example: import("@json-render/core").SchemaType<"any", unknown>;
42
- }>;
43
- actions: import("@json-render/core").SchemaType<"map", {
44
- params: import("@json-render/core").SchemaType<"zod", unknown>;
45
- description: import("@json-render/core").SchemaType<"string", unknown>;
46
- }>;
47
- }>;
48
- }, {
49
- components: {
50
- Stack: {
51
- props: z.ZodObject<{
52
- direction: z.ZodOptional<z.ZodEnum<{
53
- column: "column";
54
- row: "row";
55
- }>>;
56
- gap: z.ZodOptional<z.ZodEnum<{
57
- lg: "lg";
58
- md: "md";
59
- none: "none";
60
- sm: "sm";
61
- xl: "xl";
62
- }>>;
63
- padding: z.ZodOptional<z.ZodEnum<{
64
- lg: "lg";
65
- md: "md";
66
- none: "none";
67
- sm: "sm";
68
- xl: "xl";
69
- }>>;
70
- align: z.ZodOptional<z.ZodEnum<{
71
- center: "center";
72
- end: "end";
73
- start: "start";
74
- stretch: "stretch";
75
- }>>;
76
- justify: z.ZodOptional<z.ZodEnum<{
77
- between: "between";
78
- center: "center";
79
- end: "end";
80
- start: "start";
81
- }>>;
82
- }, z.core.$strip>;
83
- slots: string[];
84
- description: string;
85
- };
86
- Grid: {
87
- props: z.ZodObject<{
88
- cols: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<"auto-fill">, z.ZodLiteral<"auto-fit">]>>;
89
- minItemSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<24>, z.ZodLiteral<32>, z.ZodLiteral<40>, z.ZodLiteral<48>, z.ZodLiteral<64>, z.ZodLiteral<80>]>>;
90
- gap: z.ZodOptional<z.ZodEnum<{
91
- lg: "lg";
92
- md: "md";
93
- none: "none";
94
- sm: "sm";
95
- xl: "xl";
96
- }>>;
97
- }, z.core.$strip>;
98
- slots: string[];
99
- description: string;
100
- };
101
- Button: {
102
- props: z.ZodObject<{
103
- label: z.ZodString;
104
- variant: z.ZodOptional<z.ZodEnum<{
105
- outline: "outline";
106
- skeleton: "skeleton";
107
- solid: "solid";
108
- }>>;
109
- color: z.ZodOptional<z.ZodEnum<{
110
- base: "base";
111
- primary: "primary";
112
- secondary: "secondary";
113
- }>>;
114
- size: z.ZodOptional<z.ZodEnum<{
115
- lg: "lg";
116
- md: "md";
117
- sm: "sm";
118
- }>>;
119
- fullWidth: z.ZodOptional<z.ZodBoolean>;
120
- href: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strip>;
122
- description: string;
123
- };
124
- Card: {
125
- props: z.ZodObject<{
126
- width: z.ZodOptional<z.ZodEnum<{
127
- fit: "fit";
128
- full: "full";
129
- }>>;
130
- variant: z.ZodOptional<z.ZodEnum<{
131
- outline: "outline";
132
- shadow: "shadow";
133
- }>>;
134
- interactive: z.ZodOptional<z.ZodBoolean>;
135
- size: z.ZodOptional<z.ZodEnum<{
136
- lg: "lg";
137
- md: "md";
138
- sm: "sm";
139
- }>>;
140
- }, z.core.$strip>;
141
- slots: string[];
142
- description: string;
143
- };
144
- Badge: {
145
- props: z.ZodObject<{
146
- label: z.ZodString;
147
- tone: z.ZodOptional<z.ZodEnum<{
148
- error: "error";
149
- info: "info";
150
- neutral: "neutral";
151
- success: "success";
152
- warning: "warning";
153
- }>>;
154
- variant: z.ZodOptional<z.ZodEnum<{
155
- outline: "outline";
156
- solid: "solid";
157
- }>>;
158
- size: z.ZodOptional<z.ZodEnum<{
159
- lg: "lg";
160
- md: "md";
161
- sm: "sm";
162
- }>>;
163
- }, z.core.$strip>;
164
- description: string;
165
- };
166
- Heading: {
167
- props: z.ZodObject<{
168
- label: z.ZodString;
169
- level: z.ZodOptional<z.ZodEnum<{
170
- h1: "h1";
171
- h2: "h2";
172
- h3: "h3";
173
- h4: "h4";
174
- h5: "h5";
175
- h6: "h6";
176
- }>>;
177
- lineClamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
178
- }, z.core.$strip>;
179
- description: string;
180
- };
181
- Alert: {
182
- props: z.ZodObject<{
183
- tone: z.ZodEnum<{
184
- error: "error";
185
- info: "info";
186
- success: "success";
187
- warning: "warning";
188
- }>;
189
- message: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
190
- }, z.core.$strip>;
191
- description: string;
192
- };
193
- Callout: {
194
- props: z.ZodObject<{
195
- tone: z.ZodEnum<{
196
- error: "error";
197
- info: "info";
198
- success: "success";
199
- warning: "warning";
200
- }>;
201
- label: z.ZodOptional<z.ZodString>;
202
- content: z.ZodString;
203
- }, z.core.$strip>;
204
- description: string;
205
- };
206
- Spinner: {
207
- props: z.ZodObject<{
208
- label: z.ZodOptional<z.ZodString>;
209
- size: z.ZodOptional<z.ZodEnum<{
210
- lg: "lg";
211
- md: "md";
212
- sm: "sm";
213
- }>>;
214
- }, z.core.$strip>;
215
- description: string;
216
- };
217
- Separator: {
218
- props: z.ZodObject<{
219
- orientation: z.ZodOptional<z.ZodEnum<{
220
- horizontal: "horizontal";
221
- vertical: "vertical";
222
- }>>;
223
- color: z.ZodOptional<z.ZodEnum<{
224
- base: "base";
225
- mute: "mute";
226
- subtle: "subtle";
227
- }>>;
228
- }, z.core.$strip>;
229
- description: string;
230
- };
231
- TextField: {
232
- props: z.ZodObject<{
233
- name: z.ZodString;
234
- placeholder: z.ZodOptional<z.ZodString>;
235
- defaultValue: z.ZodOptional<z.ZodString>;
236
- invalid: z.ZodOptional<z.ZodBoolean>;
237
- disabled: z.ZodOptional<z.ZodBoolean>;
238
- readOnly: z.ZodOptional<z.ZodBoolean>;
239
- }, z.core.$strip>;
240
- description: string;
241
- };
242
- Checkbox: {
243
- props: z.ZodObject<{
244
- name: z.ZodString;
245
- label: z.ZodString;
246
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
247
- disabled: z.ZodOptional<z.ZodBoolean>;
248
- }, z.core.$strip>;
249
- description: string;
250
- };
251
- Switch: {
252
- props: z.ZodObject<{
253
- name: z.ZodString;
254
- label: z.ZodString;
255
- defaultChecked: z.ZodOptional<z.ZodBoolean>;
256
- disabled: z.ZodOptional<z.ZodBoolean>;
257
- invalid: z.ZodOptional<z.ZodBoolean>;
258
- required: z.ZodOptional<z.ZodBoolean>;
259
- }, z.core.$strip>;
260
- description: string;
261
- };
262
- Select: {
263
- props: z.ZodObject<{
264
- name: z.ZodString;
265
- options: z.ZodArray<z.ZodObject<{
266
- value: z.ZodString;
267
- label: z.ZodString;
268
- }, z.core.$strip>>;
269
- defaultValue: z.ZodOptional<z.ZodString>;
270
- invalid: z.ZodOptional<z.ZodBoolean>;
271
- disabled: z.ZodOptional<z.ZodBoolean>;
272
- }, z.core.$strip>;
273
- description: string;
274
- };
275
- Tabs: {
276
- props: z.ZodObject<{
277
- label: z.ZodOptional<z.ZodString>;
278
- tabs: z.ZodArray<z.ZodObject<{
279
- label: z.ZodString;
280
- content: z.ZodString;
281
- }, z.core.$strip>>;
282
- }, z.core.$strip>;
283
- description: string;
284
- };
285
- Accordion: {
286
- props: z.ZodObject<{
287
- items: z.ZodArray<z.ZodObject<{
288
- title: z.ZodString;
289
- content: z.ZodString;
290
- defaultOpen: z.ZodOptional<z.ZodBoolean>;
291
- }, z.core.$strip>>;
292
- }, z.core.$strip>;
293
- description: string;
294
- };
295
- Stepper: {
296
- props: z.ZodObject<{
297
- label: z.ZodString;
298
- steps: z.ZodArray<z.ZodObject<{
299
- label: z.ZodString;
300
- description: z.ZodOptional<z.ZodString>;
301
- }, z.core.$strip>>;
302
- current: z.ZodInt;
303
- orientation: z.ZodOptional<z.ZodEnum<{
304
- horizontal: "horizontal";
305
- vertical: "vertical";
306
- }>>;
307
- }, z.core.$strip>;
308
- description: string;
309
- };
310
- Breadcrumb: {
311
- props: z.ZodObject<{
312
- size: z.ZodOptional<z.ZodEnum<{
313
- lg: "lg";
314
- md: "md";
315
- sm: "sm";
316
- }>>;
317
- items: z.ZodArray<z.ZodObject<{
318
- label: z.ZodString;
319
- href: z.ZodOptional<z.ZodString>;
320
- current: z.ZodOptional<z.ZodBoolean>;
321
- }, z.core.$strip>>;
322
- }, z.core.$strip>;
323
- description: string;
324
- };
325
- DataTable: {
326
- props: z.ZodObject<{
327
- label: z.ZodString;
328
- columns: z.ZodArray<z.ZodObject<{
329
- label: z.ZodString;
330
- align: z.ZodOptional<z.ZodEnum<{
331
- center: "center";
332
- left: "left";
333
- right: "right";
334
- }>>;
335
- sortable: z.ZodOptional<z.ZodBoolean>;
336
- }, z.core.$strip>>;
337
- rows: z.ZodArray<z.ZodArray<z.ZodString>>;
338
- selectable: z.ZodOptional<z.ZodBoolean>;
339
- }, z.core.$strip>;
340
- description: string;
341
- };
342
- Tree: {
343
- props: z.ZodObject<{
344
- label: z.ZodString;
345
- items: z.ZodArray<z.ZodObject<{
346
- id: z.ZodString;
347
- label: z.ZodString;
348
- parentId: z.ZodOptional<z.ZodString>;
349
- expanded: z.ZodOptional<z.ZodBoolean>;
350
- }, z.core.$strip>>;
351
- }, z.core.$strip>;
352
- description: string;
353
- };
354
- SideNav: {
355
- props: z.ZodObject<{
356
- label: z.ZodString;
357
- groups: z.ZodArray<z.ZodObject<{
358
- title: z.ZodString;
359
- links: z.ZodArray<z.ZodObject<{
360
- label: z.ZodString;
361
- href: z.ZodString;
362
- current: z.ZodOptional<z.ZodBoolean>;
363
- }, z.core.$strip>>;
364
- }, z.core.$strip>>;
365
- }, z.core.$strip>;
366
- description: string;
367
- };
368
- Table: {
369
- props: z.ZodObject<{
370
- caption: z.ZodOptional<z.ZodString>;
371
- columns: z.ZodArray<z.ZodObject<{
372
- label: z.ZodString;
373
- align: z.ZodOptional<z.ZodEnum<{
374
- center: "center";
375
- left: "left";
376
- right: "right";
377
- }>>;
378
- }, z.core.$strip>>;
379
- rows: z.ZodArray<z.ZodArray<z.ZodString>>;
380
- }, z.core.$strip>;
381
- description: string;
382
- };
383
- Anchor: {
384
- props: z.ZodObject<{
385
- label: z.ZodString;
386
- href: z.ZodString;
387
- openInNewTab: z.ZodOptional<z.ZodBoolean>;
388
- }, z.core.$strip>;
389
- description: string;
390
- };
391
- Avatar: {
392
- props: z.ZodObject<{
393
- src: z.ZodOptional<z.ZodString>;
394
- alt: z.ZodOptional<z.ZodString>;
395
- name: z.ZodOptional<z.ZodString>;
396
- fallback: z.ZodOptional<z.ZodString>;
397
- size: z.ZodOptional<z.ZodEnum<{
398
- lg: "lg";
399
- md: "md";
400
- sm: "sm";
401
- }>>;
402
- }, z.core.$strip>;
403
- description: string;
404
- };
405
- Code: {
406
- props: z.ZodObject<{
407
- code: z.ZodString;
408
- }, z.core.$strip>;
409
- description: string;
410
- };
411
- Kbd: {
412
- props: z.ZodObject<{
413
- keys: z.ZodArray<z.ZodString>;
414
- }, z.core.$strip>;
415
- description: string;
416
- };
417
- EmptyState: {
418
- props: z.ZodObject<{
419
- title: z.ZodString;
420
- description: z.ZodOptional<z.ZodString>;
421
- icon: z.ZodOptional<z.ZodEnum<{
422
- "arrow-down": "arrow-down";
423
- "arrow-left": "arrow-left";
424
- "arrow-right": "arrow-right";
425
- "arrow-up": "arrow-up";
426
- bell: "bell";
427
- blend: "blend";
428
- "book-text": "book-text";
429
- bookmark: "bookmark";
430
- bot: "bot";
431
- "bot-message": "bot-message";
432
- calendar: "calendar";
433
- check: "check";
434
- "chevron-down": "chevron-down";
435
- "chevron-left": "chevron-left";
436
- "chevron-right": "chevron-right";
437
- "chevron-up": "chevron-up";
438
- "chevrons-up-down": "chevrons-up-down";
439
- "circle-alert": "circle-alert";
440
- "circle-check": "circle-check";
441
- "circle-help": "circle-help";
442
- "circle-x": "circle-x";
443
- clock: "clock";
444
- code: "code";
445
- "color-scale": "color-scale";
446
- contrast: "contrast";
447
- copy: "copy";
448
- download: "download";
449
- ellipsis: "ellipsis";
450
- "ellipsis-vertical": "ellipsis-vertical";
451
- "external-link": "external-link";
452
- eye: "eye";
453
- "eye-closed": "eye-closed";
454
- file: "file";
455
- "file-text": "file-text";
456
- filter: "filter";
457
- flask: "flask";
458
- folder: "folder";
459
- "folder-open": "folder-open";
460
- "git-fork": "git-fork";
461
- globe: "globe";
462
- grid: "grid";
463
- "grip-vertical": "grip-vertical";
464
- heart: "heart";
465
- history: "history";
466
- home: "home";
467
- image: "image";
468
- info: "info";
469
- lightbulb: "lightbulb";
470
- link: "link";
471
- list: "list";
472
- lock: "lock";
473
- "lock-open": "lock-open";
474
- "log-in": "log-in";
475
- "log-out": "log-out";
476
- mail: "mail";
477
- "map-pin": "map-pin";
478
- maximize: "maximize";
479
- menu: "menu";
480
- "message-circle": "message-circle";
481
- minimize: "minimize";
482
- minus: "minus";
483
- monitor: "monitor";
484
- moon: "moon";
485
- package: "package";
486
- "paint-bucket": "paint-bucket";
487
- palette: "palette";
488
- "panel-left": "panel-left";
489
- paperclip: "paperclip";
490
- pause: "pause";
491
- pencil: "pencil";
492
- pin: "pin";
493
- play: "play";
494
- plus: "plus";
495
- presentation: "presentation";
496
- redo: "redo";
497
- refresh: "refresh";
498
- rocket: "rocket";
499
- rss: "rss";
500
- search: "search";
501
- send: "send";
502
- settings: "settings";
503
- share: "share";
504
- "shield-check": "shield-check";
505
- smile: "smile";
506
- sparkles: "sparkles";
507
- square: "square";
508
- squircle: "squircle";
509
- star: "star";
510
- sun: "sun";
511
- table: "table";
512
- tag: "tag";
513
- "text-horizontal": "text-horizontal";
514
- "text-vertical": "text-vertical";
515
- "thumbs-down": "thumbs-down";
516
- "thumbs-up": "thumbs-up";
517
- trash: "trash";
518
- "triangle-alert": "triangle-alert";
519
- undo: "undo";
520
- upload: "upload";
521
- user: "user";
522
- users: "users";
523
- x: "x";
524
- }>>;
525
- }, z.core.$strip>;
526
- description: string;
527
- };
528
- Carousel: {
529
- props: z.ZodObject<{
530
- label: z.ZodString;
531
- slideSize: z.ZodOptional<z.ZodEnum<{
532
- full: "full";
533
- lg: "lg";
534
- md: "md";
535
- sm: "sm";
536
- }>>;
537
- }, z.core.$strip>;
538
- slots: string[];
539
- description: string;
540
- };
541
- Progress: {
542
- props: z.ZodObject<{
543
- value: z.ZodOptional<z.ZodNumber>;
544
- max: z.ZodOptional<z.ZodNumber>;
545
- min: z.ZodOptional<z.ZodNumber>;
546
- label: z.ZodOptional<z.ZodString>;
547
- }, z.core.$strip>;
548
- description: string;
549
- };
550
- Skeleton: {
551
- props: z.ZodObject<{
552
- shape: z.ZodOptional<z.ZodEnum<{
553
- circle: "circle";
554
- rect: "rect";
555
- }>>;
556
- size: z.ZodOptional<z.ZodEnum<{
557
- lg: "lg";
558
- md: "md";
559
- sm: "sm";
560
- }>>;
561
- animate: z.ZodOptional<z.ZodBoolean>;
562
- }, z.core.$strip>;
563
- description: string;
564
- };
565
- Icon: {
566
- props: z.ZodObject<{
567
- name: z.ZodEnum<{
568
- "arrow-down": "arrow-down";
569
- "arrow-left": "arrow-left";
570
- "arrow-right": "arrow-right";
571
- "arrow-up": "arrow-up";
572
- bell: "bell";
573
- blend: "blend";
574
- "book-text": "book-text";
575
- bookmark: "bookmark";
576
- bot: "bot";
577
- "bot-message": "bot-message";
578
- calendar: "calendar";
579
- check: "check";
580
- "chevron-down": "chevron-down";
581
- "chevron-left": "chevron-left";
582
- "chevron-right": "chevron-right";
583
- "chevron-up": "chevron-up";
584
- "chevrons-up-down": "chevrons-up-down";
585
- "circle-alert": "circle-alert";
586
- "circle-check": "circle-check";
587
- "circle-help": "circle-help";
588
- "circle-x": "circle-x";
589
- clock: "clock";
590
- code: "code";
591
- "color-scale": "color-scale";
592
- contrast: "contrast";
593
- copy: "copy";
594
- download: "download";
595
- ellipsis: "ellipsis";
596
- "ellipsis-vertical": "ellipsis-vertical";
597
- "external-link": "external-link";
598
- eye: "eye";
599
- "eye-closed": "eye-closed";
600
- file: "file";
601
- "file-text": "file-text";
602
- filter: "filter";
603
- flask: "flask";
604
- folder: "folder";
605
- "folder-open": "folder-open";
606
- "git-fork": "git-fork";
607
- globe: "globe";
608
- grid: "grid";
609
- "grip-vertical": "grip-vertical";
610
- heart: "heart";
611
- history: "history";
612
- home: "home";
613
- image: "image";
614
- info: "info";
615
- lightbulb: "lightbulb";
616
- link: "link";
617
- list: "list";
618
- lock: "lock";
619
- "lock-open": "lock-open";
620
- "log-in": "log-in";
621
- "log-out": "log-out";
622
- mail: "mail";
623
- "map-pin": "map-pin";
624
- maximize: "maximize";
625
- menu: "menu";
626
- "message-circle": "message-circle";
627
- minimize: "minimize";
628
- minus: "minus";
629
- monitor: "monitor";
630
- moon: "moon";
631
- package: "package";
632
- "paint-bucket": "paint-bucket";
633
- palette: "palette";
634
- "panel-left": "panel-left";
635
- paperclip: "paperclip";
636
- pause: "pause";
637
- pencil: "pencil";
638
- pin: "pin";
639
- play: "play";
640
- plus: "plus";
641
- presentation: "presentation";
642
- redo: "redo";
643
- refresh: "refresh";
644
- rocket: "rocket";
645
- rss: "rss";
646
- search: "search";
647
- send: "send";
648
- settings: "settings";
649
- share: "share";
650
- "shield-check": "shield-check";
651
- smile: "smile";
652
- sparkles: "sparkles";
653
- square: "square";
654
- squircle: "squircle";
655
- star: "star";
656
- sun: "sun";
657
- table: "table";
658
- tag: "tag";
659
- "text-horizontal": "text-horizontal";
660
- "text-vertical": "text-vertical";
661
- "thumbs-down": "thumbs-down";
662
- "thumbs-up": "thumbs-up";
663
- trash: "trash";
664
- "triangle-alert": "triangle-alert";
665
- undo: "undo";
666
- upload: "upload";
667
- user: "user";
668
- users: "users";
669
- x: "x";
670
- }>;
671
- size: z.ZodOptional<z.ZodEnum<{
672
- lg: "lg";
673
- md: "md";
674
- sm: "sm";
675
- }>>;
676
- }, z.core.$strip>;
677
- description: string;
678
- };
679
- ChevronIcon: {
680
- props: z.ZodObject<{
681
- direction: z.ZodEnum<{
682
- down: "down";
683
- left: "left";
684
- right: "right";
685
- up: "up";
686
- }>;
687
- size: z.ZodOptional<z.ZodEnum<{
688
- lg: "lg";
689
- md: "md";
690
- sm: "sm";
691
- }>>;
692
- }, z.core.$strip>;
693
- description: string;
694
- };
695
- StatusIcon: {
696
- props: z.ZodObject<{
697
- status: z.ZodEnum<{
698
- error: "error";
699
- info: "info";
700
- success: "success";
701
- warning: "warning";
702
- }>;
703
- size: z.ZodOptional<z.ZodEnum<{
704
- lg: "lg";
705
- md: "md";
706
- sm: "sm";
707
- }>>;
708
- }, z.core.$strip>;
709
- description: string;
710
- };
711
- IconButton: {
712
- props: z.ZodObject<{
713
- icon: z.ZodEnum<{
714
- "arrow-down": "arrow-down";
715
- "arrow-left": "arrow-left";
716
- "arrow-right": "arrow-right";
717
- "arrow-up": "arrow-up";
718
- bell: "bell";
719
- blend: "blend";
720
- "book-text": "book-text";
721
- bookmark: "bookmark";
722
- bot: "bot";
723
- "bot-message": "bot-message";
724
- calendar: "calendar";
725
- check: "check";
726
- "chevron-down": "chevron-down";
727
- "chevron-left": "chevron-left";
728
- "chevron-right": "chevron-right";
729
- "chevron-up": "chevron-up";
730
- "chevrons-up-down": "chevrons-up-down";
731
- "circle-alert": "circle-alert";
732
- "circle-check": "circle-check";
733
- "circle-help": "circle-help";
734
- "circle-x": "circle-x";
735
- clock: "clock";
736
- code: "code";
737
- "color-scale": "color-scale";
738
- contrast: "contrast";
739
- copy: "copy";
740
- download: "download";
741
- ellipsis: "ellipsis";
742
- "ellipsis-vertical": "ellipsis-vertical";
743
- "external-link": "external-link";
744
- eye: "eye";
745
- "eye-closed": "eye-closed";
746
- file: "file";
747
- "file-text": "file-text";
748
- filter: "filter";
749
- flask: "flask";
750
- folder: "folder";
751
- "folder-open": "folder-open";
752
- "git-fork": "git-fork";
753
- globe: "globe";
754
- grid: "grid";
755
- "grip-vertical": "grip-vertical";
756
- heart: "heart";
757
- history: "history";
758
- home: "home";
759
- image: "image";
760
- info: "info";
761
- lightbulb: "lightbulb";
762
- link: "link";
763
- list: "list";
764
- lock: "lock";
765
- "lock-open": "lock-open";
766
- "log-in": "log-in";
767
- "log-out": "log-out";
768
- mail: "mail";
769
- "map-pin": "map-pin";
770
- maximize: "maximize";
771
- menu: "menu";
772
- "message-circle": "message-circle";
773
- minimize: "minimize";
774
- minus: "minus";
775
- monitor: "monitor";
776
- moon: "moon";
777
- package: "package";
778
- "paint-bucket": "paint-bucket";
779
- palette: "palette";
780
- "panel-left": "panel-left";
781
- paperclip: "paperclip";
782
- pause: "pause";
783
- pencil: "pencil";
784
- pin: "pin";
785
- play: "play";
786
- plus: "plus";
787
- presentation: "presentation";
788
- redo: "redo";
789
- refresh: "refresh";
790
- rocket: "rocket";
791
- rss: "rss";
792
- search: "search";
793
- send: "send";
794
- settings: "settings";
795
- share: "share";
796
- "shield-check": "shield-check";
797
- smile: "smile";
798
- sparkles: "sparkles";
799
- square: "square";
800
- squircle: "squircle";
801
- star: "star";
802
- sun: "sun";
803
- table: "table";
804
- tag: "tag";
805
- "text-horizontal": "text-horizontal";
806
- "text-vertical": "text-vertical";
807
- "thumbs-down": "thumbs-down";
808
- "thumbs-up": "thumbs-up";
809
- trash: "trash";
810
- "triangle-alert": "triangle-alert";
811
- undo: "undo";
812
- upload: "upload";
813
- user: "user";
814
- users: "users";
815
- x: "x";
816
- }>;
817
- label: z.ZodString;
818
- size: z.ZodOptional<z.ZodEnum<{
819
- lg: "lg";
820
- md: "md";
821
- sm: "sm";
822
- }>>;
823
- color: z.ZodOptional<z.ZodEnum<{
824
- base: "base";
825
- primary: "primary";
826
- secondary: "secondary";
827
- transparent: "transparent";
828
- }>>;
829
- }, z.core.$strip>;
830
- description: string;
831
- };
832
- CopyButton: {
833
- props: z.ZodObject<{
834
- value: z.ZodString;
835
- label: z.ZodOptional<z.ZodString>;
836
- iconOnly: z.ZodOptional<z.ZodBoolean>;
837
- size: z.ZodOptional<z.ZodEnum<{
838
- lg: "lg";
839
- md: "md";
840
- sm: "sm";
841
- }>>;
842
- }, z.core.$strip>;
843
- description: string;
844
- };
845
- Textarea: {
846
- props: z.ZodObject<{
847
- name: z.ZodString;
848
- placeholder: z.ZodOptional<z.ZodString>;
849
- defaultValue: z.ZodOptional<z.ZodString>;
850
- invalid: z.ZodOptional<z.ZodBoolean>;
851
- disabled: z.ZodOptional<z.ZodBoolean>;
852
- readOnly: z.ZodOptional<z.ZodBoolean>;
853
- rows: z.ZodOptional<z.ZodInt>;
854
- autoResize: z.ZodOptional<z.ZodBoolean>;
855
- }, z.core.$strip>;
856
- description: string;
857
- };
858
- PasswordInput: {
859
- props: z.ZodObject<{
860
- name: z.ZodString;
861
- placeholder: z.ZodOptional<z.ZodString>;
862
- defaultValue: z.ZodOptional<z.ZodString>;
863
- invalid: z.ZodOptional<z.ZodBoolean>;
864
- disabled: z.ZodOptional<z.ZodBoolean>;
865
- }, z.core.$strip>;
866
- description: string;
867
- };
868
- NumberField: {
869
- props: z.ZodObject<{
870
- name: z.ZodString;
871
- defaultValue: z.ZodOptional<z.ZodNumber>;
872
- min: z.ZodOptional<z.ZodNumber>;
873
- max: z.ZodOptional<z.ZodNumber>;
874
- step: z.ZodOptional<z.ZodNumber>;
875
- invalid: z.ZodOptional<z.ZodBoolean>;
876
- disabled: z.ZodOptional<z.ZodBoolean>;
877
- }, z.core.$strip>;
878
- description: string;
879
- };
880
- Slider: {
881
- props: z.ZodObject<{
882
- name: z.ZodString;
883
- defaultValue: z.ZodOptional<z.ZodNumber>;
884
- step: z.ZodOptional<z.ZodNumber>;
885
- invalid: z.ZodOptional<z.ZodBoolean>;
886
- disabled: z.ZodOptional<z.ZodBoolean>;
887
- min: z.ZodOptional<z.ZodNumber>;
888
- max: z.ZodOptional<z.ZodNumber>;
889
- }, z.core.$strip>;
890
- description: string;
891
- };
892
- RangeSlider: {
893
- props: z.ZodObject<{
894
- name: z.ZodString;
895
- label: z.ZodString;
896
- defaultValue: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
897
- min: z.ZodOptional<z.ZodNumber>;
898
- max: z.ZodOptional<z.ZodNumber>;
899
- step: z.ZodOptional<z.ZodNumber>;
900
- invalid: z.ZodOptional<z.ZodBoolean>;
901
- disabled: z.ZodOptional<z.ZodBoolean>;
902
- }, z.core.$strip>;
903
- description: string;
904
- };
905
- DateField: {
906
- props: z.ZodObject<{
907
- name: z.ZodString;
908
- label: z.ZodString;
909
- defaultValue: z.ZodOptional<z.ZodISODate>;
910
- min: z.ZodOptional<z.ZodISODate>;
911
- max: z.ZodOptional<z.ZodISODate>;
912
- invalid: z.ZodOptional<z.ZodBoolean>;
913
- disabled: z.ZodOptional<z.ZodBoolean>;
914
- required: z.ZodOptional<z.ZodBoolean>;
915
- }, z.core.$strip>;
916
- description: string;
917
- };
918
- DatePicker: {
919
- props: z.ZodObject<{
920
- name: z.ZodString;
921
- label: z.ZodString;
922
- defaultValue: z.ZodOptional<z.ZodISODate>;
923
- min: z.ZodOptional<z.ZodISODate>;
924
- max: z.ZodOptional<z.ZodISODate>;
925
- invalid: z.ZodOptional<z.ZodBoolean>;
926
- disabled: z.ZodOptional<z.ZodBoolean>;
927
- required: z.ZodOptional<z.ZodBoolean>;
928
- }, z.core.$strip>;
929
- description: string;
930
- };
931
- Calendar: {
932
- props: z.ZodObject<{
933
- name: z.ZodString;
934
- defaultValue: z.ZodOptional<z.ZodISODate>;
935
- min: z.ZodOptional<z.ZodISODate>;
936
- max: z.ZodOptional<z.ZodISODate>;
937
- }, z.core.$strip>;
938
- description: string;
939
- };
940
- ColorPicker: {
941
- props: z.ZodObject<{
942
- name: z.ZodString;
943
- label: z.ZodString;
944
- defaultValue: z.ZodOptional<z.ZodString>;
945
- swatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
946
- value: z.ZodString;
947
- label: z.ZodString;
948
- }, z.core.$strip>>>;
949
- invalid: z.ZodOptional<z.ZodBoolean>;
950
- disabled: z.ZodOptional<z.ZodBoolean>;
951
- required: z.ZodOptional<z.ZodBoolean>;
952
- }, z.core.$strip>;
953
- description: string;
954
- };
955
- Radio: {
956
- props: z.ZodObject<{
957
- name: z.ZodString;
958
- label: z.ZodString;
959
- options: z.ZodArray<z.ZodObject<{
960
- value: z.ZodString;
961
- label: z.ZodString;
962
- }, z.core.$strip>>;
963
- defaultValue: z.ZodOptional<z.ZodString>;
964
- disabled: z.ZodOptional<z.ZodBoolean>;
965
- }, z.core.$strip>;
966
- description: string;
967
- };
968
- RadioCard: {
969
- props: z.ZodObject<{
970
- name: z.ZodString;
971
- label: z.ZodString;
972
- options: z.ZodArray<z.ZodObject<{
973
- value: z.ZodString;
974
- label: z.ZodString;
975
- description: z.ZodOptional<z.ZodString>;
976
- disabled: z.ZodOptional<z.ZodBoolean>;
977
- }, z.core.$strip>>;
978
- defaultValue: z.ZodOptional<z.ZodString>;
979
- invalid: z.ZodOptional<z.ZodBoolean>;
980
- disabled: z.ZodOptional<z.ZodBoolean>;
981
- }, z.core.$strip>;
982
- description: string;
983
- };
984
- CheckboxCard: {
985
- props: z.ZodObject<{
986
- name: z.ZodString;
987
- options: z.ZodArray<z.ZodObject<{
988
- value: z.ZodString;
989
- label: z.ZodString;
990
- description: z.ZodOptional<z.ZodString>;
991
- disabled: z.ZodOptional<z.ZodBoolean>;
992
- }, z.core.$strip>>;
993
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
994
- invalid: z.ZodOptional<z.ZodBoolean>;
995
- disabled: z.ZodOptional<z.ZodBoolean>;
996
- label: z.ZodString;
997
- }, z.core.$strip>;
998
- description: string;
999
- };
1000
- Pagination: {
1001
- props: z.ZodObject<{
1002
- name: z.ZodString;
1003
- totalPages: z.ZodNumber;
1004
- defaultPage: z.ZodOptional<z.ZodNumber>;
1005
- prevLabel: z.ZodOptional<z.ZodString>;
1006
- nextLabel: z.ZodOptional<z.ZodString>;
1007
- disabled: z.ZodOptional<z.ZodBoolean>;
1008
- }, z.core.$strip>;
1009
- description: string;
1010
- };
1011
- Form: {
1012
- props: z.ZodObject<{
1013
- action: z.ZodOptional<z.ZodString>;
1014
- }, z.core.$strip>;
1015
- slots: string[];
1016
- description: string;
1017
- };
1018
- Modal: {
1019
- props: z.ZodObject<{
1020
- triggerLabel: z.ZodString;
1021
- title: z.ZodString;
1022
- side: z.ZodOptional<z.ZodEnum<{
1023
- bottom: "bottom";
1024
- center: "center";
1025
- left: "left";
1026
- right: "right";
1027
- }>>;
1028
- }, z.core.$strip>;
1029
- slots: string[];
1030
- description: string;
1031
- };
1032
- Dialog: {
1033
- props: z.ZodObject<{
1034
- triggerLabel: z.ZodString;
1035
- title: z.ZodString;
1036
- }, z.core.$strip>;
1037
- slots: string[];
1038
- description: string;
1039
- };
1040
- Drawer: {
1041
- props: z.ZodObject<{
1042
- triggerLabel: z.ZodString;
1043
- title: z.ZodString;
1044
- side: z.ZodOptional<z.ZodEnum<{
1045
- left: "left";
1046
- right: "right";
1047
- }>>;
1048
- }, z.core.$strip>;
1049
- slots: string[];
1050
- description: string;
1051
- };
1052
- Popover: {
1053
- props: z.ZodObject<{
1054
- triggerLabel: z.ZodString;
1055
- }, z.core.$strip>;
1056
- slots: string[];
1057
- description: string;
1058
- };
1059
- Tooltip: {
1060
- props: z.ZodObject<{
1061
- triggerLabel: z.ZodString;
1062
- content: z.ZodString;
1063
- }, z.core.$strip>;
1064
- description: string;
1065
- };
1066
- Toolbar: {
1067
- props: z.ZodObject<{
1068
- label: z.ZodString;
1069
- items: z.ZodArray<z.ZodObject<{
1070
- label: z.ZodString;
1071
- icon: z.ZodOptional<z.ZodEnum<{
1072
- "arrow-down": "arrow-down";
1073
- "arrow-left": "arrow-left";
1074
- "arrow-right": "arrow-right";
1075
- "arrow-up": "arrow-up";
1076
- bell: "bell";
1077
- blend: "blend";
1078
- "book-text": "book-text";
1079
- bookmark: "bookmark";
1080
- bot: "bot";
1081
- "bot-message": "bot-message";
1082
- calendar: "calendar";
1083
- check: "check";
1084
- "chevron-down": "chevron-down";
1085
- "chevron-left": "chevron-left";
1086
- "chevron-right": "chevron-right";
1087
- "chevron-up": "chevron-up";
1088
- "chevrons-up-down": "chevrons-up-down";
1089
- "circle-alert": "circle-alert";
1090
- "circle-check": "circle-check";
1091
- "circle-help": "circle-help";
1092
- "circle-x": "circle-x";
1093
- clock: "clock";
1094
- code: "code";
1095
- "color-scale": "color-scale";
1096
- contrast: "contrast";
1097
- copy: "copy";
1098
- download: "download";
1099
- ellipsis: "ellipsis";
1100
- "ellipsis-vertical": "ellipsis-vertical";
1101
- "external-link": "external-link";
1102
- eye: "eye";
1103
- "eye-closed": "eye-closed";
1104
- file: "file";
1105
- "file-text": "file-text";
1106
- filter: "filter";
1107
- flask: "flask";
1108
- folder: "folder";
1109
- "folder-open": "folder-open";
1110
- "git-fork": "git-fork";
1111
- globe: "globe";
1112
- grid: "grid";
1113
- "grip-vertical": "grip-vertical";
1114
- heart: "heart";
1115
- history: "history";
1116
- home: "home";
1117
- image: "image";
1118
- info: "info";
1119
- lightbulb: "lightbulb";
1120
- link: "link";
1121
- list: "list";
1122
- lock: "lock";
1123
- "lock-open": "lock-open";
1124
- "log-in": "log-in";
1125
- "log-out": "log-out";
1126
- mail: "mail";
1127
- "map-pin": "map-pin";
1128
- maximize: "maximize";
1129
- menu: "menu";
1130
- "message-circle": "message-circle";
1131
- minimize: "minimize";
1132
- minus: "minus";
1133
- monitor: "monitor";
1134
- moon: "moon";
1135
- package: "package";
1136
- "paint-bucket": "paint-bucket";
1137
- palette: "palette";
1138
- "panel-left": "panel-left";
1139
- paperclip: "paperclip";
1140
- pause: "pause";
1141
- pencil: "pencil";
1142
- pin: "pin";
1143
- play: "play";
1144
- plus: "plus";
1145
- presentation: "presentation";
1146
- redo: "redo";
1147
- refresh: "refresh";
1148
- rocket: "rocket";
1149
- rss: "rss";
1150
- search: "search";
1151
- send: "send";
1152
- settings: "settings";
1153
- share: "share";
1154
- "shield-check": "shield-check";
1155
- smile: "smile";
1156
- sparkles: "sparkles";
1157
- square: "square";
1158
- squircle: "squircle";
1159
- star: "star";
1160
- sun: "sun";
1161
- table: "table";
1162
- tag: "tag";
1163
- "text-horizontal": "text-horizontal";
1164
- "text-vertical": "text-vertical";
1165
- "thumbs-down": "thumbs-down";
1166
- "thumbs-up": "thumbs-up";
1167
- trash: "trash";
1168
- "triangle-alert": "triangle-alert";
1169
- undo: "undo";
1170
- upload: "upload";
1171
- user: "user";
1172
- users: "users";
1173
- x: "x";
1174
- }>>;
1175
- }, z.core.$strip>>;
1176
- orientation: z.ZodOptional<z.ZodEnum<{
1177
- horizontal: "horizontal";
1178
- vertical: "vertical";
1179
- }>>;
1180
- }, z.core.$strip>;
1181
- description: string;
1182
- };
1183
- DropdownMenu: {
1184
- props: z.ZodObject<{
1185
- triggerLabel: z.ZodString;
1186
- items: z.ZodArray<z.ZodObject<{
1187
- label: z.ZodString;
1188
- }, z.core.$strip>>;
1189
- }, z.core.$strip>;
1190
- description: string;
1191
- };
1192
- Toast: {
1193
- props: z.ZodObject<{
1194
- triggerLabel: z.ZodString;
1195
- tone: z.ZodEnum<{
1196
- error: "error";
1197
- info: "info";
1198
- success: "success";
1199
- warning: "warning";
1200
- }>;
1201
- message: z.ZodString;
1202
- }, z.core.$strip>;
1203
- description: string;
1204
- };
1205
- ListBox: {
1206
- props: z.ZodObject<{
1207
- name: z.ZodString;
1208
- options: z.ZodArray<z.ZodObject<{
1209
- value: z.ZodString;
1210
- label: z.ZodString;
1211
- }, z.core.$strip>>;
1212
- defaultValue: z.ZodOptional<z.ZodString>;
1213
- label: z.ZodOptional<z.ZodString>;
1214
- }, z.core.$strip>;
1215
- description: string;
1216
- };
1217
- CheckboxGroup: {
1218
- props: z.ZodObject<{
1219
- name: z.ZodString;
1220
- options: z.ZodArray<z.ZodObject<{
1221
- value: z.ZodString;
1222
- label: z.ZodString;
1223
- }, z.core.$strip>>;
1224
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
1225
- label: z.ZodString;
1226
- }, z.core.$strip>;
1227
- description: string;
1228
- };
1229
- Combobox: {
1230
- props: z.ZodObject<{
1231
- name: z.ZodString;
1232
- label: z.ZodString;
1233
- options: z.ZodArray<z.ZodObject<{
1234
- value: z.ZodString;
1235
- label: z.ZodString;
1236
- }, z.core.$strip>>;
1237
- defaultValue: z.ZodOptional<z.ZodString>;
1238
- placeholder: z.ZodOptional<z.ZodString>;
1239
- invalid: z.ZodOptional<z.ZodBoolean>;
1240
- disabled: z.ZodOptional<z.ZodBoolean>;
1241
- required: z.ZodOptional<z.ZodBoolean>;
1242
- }, z.core.$strip>;
1243
- description: string;
1244
- };
1245
- Autocomplete: {
1246
- props: z.ZodObject<{
1247
- name: z.ZodString;
1248
- options: z.ZodArray<z.ZodObject<{
1249
- value: z.ZodString;
1250
- label: z.ZodString;
1251
- }, z.core.$strip>>;
1252
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
1253
- invalid: z.ZodOptional<z.ZodBoolean>;
1254
- disabled: z.ZodOptional<z.ZodBoolean>;
1255
- }, z.core.$strip>;
1256
- description: string;
1257
- };
1258
- FileField: {
1259
- props: z.ZodObject<{
1260
- triggerLabel: z.ZodOptional<z.ZodString>;
1261
- multiple: z.ZodOptional<z.ZodBoolean>;
1262
- maxFiles: z.ZodOptional<z.ZodNumber>;
1263
- clearable: z.ZodOptional<z.ZodBoolean>;
1264
- dropzone: z.ZodOptional<z.ZodBoolean>;
1265
- }, z.core.$strip>;
1266
- description: string;
1267
- };
1268
- FormControl: {
1269
- props: z.ZodObject<{
1270
- label: z.ZodString;
1271
- fieldType: z.ZodOptional<z.ZodEnum<{
1272
- password: "password";
1273
- text: "text";
1274
- textarea: "textarea";
1275
- }>>;
1276
- name: z.ZodString;
1277
- placeholder: z.ZodOptional<z.ZodString>;
1278
- defaultValue: z.ZodOptional<z.ZodString>;
1279
- helpText: z.ZodOptional<z.ZodString>;
1280
- errorText: z.ZodOptional<z.ZodString>;
1281
- required: z.ZodOptional<z.ZodBoolean>;
1282
- invalid: z.ZodOptional<z.ZodBoolean>;
1283
- }, z.core.$strip>;
1284
- description: string;
1285
- };
1286
- };
1287
- actions: {};
1288
- }>;
1289
- /**
1290
- * LLM が破りやすい制約を `catalog.prompt({ customRules })` に注入するための
1291
- * 横断ルール集。json-render のシステムプロンプト本文に追記される。
1292
- *
1293
- * @example
1294
- * const systemPrompt = catalog.prompt({ customRules: [...uiRules] });
1295
- */
1296
- export declare const uiRules: readonly string[];
1297
- type ComponentSchemas = (typeof catalog)['data']['components'];
1298
- export type ComponentName = keyof ComponentSchemas;
1299
- export type ComponentProps<K extends ComponentName> = z.infer<ComponentSchemas[K]['props']>;
1300
- /**
1301
- * @k8ordo/ui のコンポーネントだけで構成された型付き spec の要素。
1302
- * `type` と `props` がコンポーネントごとに検査される。
1303
- */
1304
- export type UISpecElement = { [K in ComponentName]: Omit<UIElement, 'type' | 'props'> & {
1305
- type: K;
1306
- props: ComponentProps<K>;
1307
- }; }[ComponentName];
1308
- /**
1309
- * @k8ordo/ui のコンポーネントだけで構成された型付き spec。
1310
- * `satisfies UISpec` で書くと component 名・props の typo がコンパイルエラーに
1311
- * なり、エディタ補完も効く。上流の `Spec` へキャストなしで代入できる。
1312
- *
1313
- * @example
1314
- * const spec = {
1315
- * root: 'root',
1316
- * elements: {
1317
- * root: { type: 'Stack', props: { direction: 'column' }, children: ['b'] },
1318
- * b: { type: 'Button', props: { label: 'OK' } },
1319
- * },
1320
- * } satisfies UISpec;
1321
- */
1322
- export type UISpec = {
1323
- root: string;
1324
- elements: Record<string, UISpecElement>;
1325
- state?: Spec['state'];
1326
- };
1327
- export type GeneratedSpecIssue = {
1328
- /** 問題のあった要素キー(spec 全体の問題なら未指定)。 */
1329
- elementKey?: string;
1330
- /** 人間(および LLM)向けの説明。 */
1331
- message: string;
1332
- };
1333
- export type ValidateGeneratedSpecResult = {
1334
- ok: true;
1335
- spec: UISpec;
1336
- fixes: string[];
1337
- } | {
1338
- ok: false;
1339
- issues: GeneratedSpecIssue[];
1340
- repairPrompt: string;
1341
- };
1342
- /**
1343
- * LLM が生成した spec を検証し、描画可能なら型付き spec を、壊れていれば
1344
- * そのまま LLM に投げ返せる修復プロンプトを返す。
1345
- *
1346
- * 内部では (1) 機械修正(`autoFixSpec`)→ (2) 構造検証(`validateSpec`)→
1347
- * (3) 要素ごとに catalog の Zod スキーマで props 検証(未知キーの検出を含む)、
1348
- * を行う。`catalog.validate()` は使わない(現行の上流バージョンでは正常な spec を
1349
- * 誤って弾き、props 検証も実質無効になるため)。
1350
- *
1351
- * @example
1352
- * const result = validateGeneratedSpec(JSON.parse(llmOutput));
1353
- * if (result.ok) {
1354
- * return <JsonRenderUI spec={result.spec} />;
1355
- * }
1356
- * const retried = await llm(result.repairPrompt);
1357
- */
1358
- export declare const validateGeneratedSpec: (input: unknown) => ValidateGeneratedSpecResult;
1359
- export {};