@mihcm/ai-ui 0.14.1

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 (166) hide show
  1. package/README.md +100 -0
  2. package/dist/coverage.d.ts +17 -0
  3. package/dist/coverage.d.ts.map +1 -0
  4. package/dist/coverage.js +320 -0
  5. package/dist/coverage.js.map +1 -0
  6. package/dist/index.d.ts +5 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +5 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/renderer.d.ts +36 -0
  11. package/dist/renderer.d.ts.map +1 -0
  12. package/dist/renderer.js +413 -0
  13. package/dist/renderer.js.map +1 -0
  14. package/dist/schemas/Accordion.d.ts +25 -0
  15. package/dist/schemas/Accordion.d.ts.map +1 -0
  16. package/dist/schemas/Accordion.js +26 -0
  17. package/dist/schemas/Accordion.js.map +1 -0
  18. package/dist/schemas/Alert.d.ts +24 -0
  19. package/dist/schemas/Alert.d.ts.map +1 -0
  20. package/dist/schemas/Alert.js +20 -0
  21. package/dist/schemas/Alert.js.map +1 -0
  22. package/dist/schemas/AlertDialog.d.ts +29 -0
  23. package/dist/schemas/AlertDialog.d.ts.map +1 -0
  24. package/dist/schemas/AlertDialog.js +22 -0
  25. package/dist/schemas/AlertDialog.js.map +1 -0
  26. package/dist/schemas/Avatar.d.ts +29 -0
  27. package/dist/schemas/Avatar.d.ts.map +1 -0
  28. package/dist/schemas/Avatar.js +21 -0
  29. package/dist/schemas/Avatar.js.map +1 -0
  30. package/dist/schemas/AvatarGroup.d.ts +22 -0
  31. package/dist/schemas/AvatarGroup.d.ts.map +1 -0
  32. package/dist/schemas/AvatarGroup.js +23 -0
  33. package/dist/schemas/AvatarGroup.js.map +1 -0
  34. package/dist/schemas/Badge.d.ts +23 -0
  35. package/dist/schemas/Badge.d.ts.map +1 -0
  36. package/dist/schemas/Badge.js +19 -0
  37. package/dist/schemas/Badge.js.map +1 -0
  38. package/dist/schemas/Banner.d.ts +23 -0
  39. package/dist/schemas/Banner.d.ts.map +1 -0
  40. package/dist/schemas/Banner.js +20 -0
  41. package/dist/schemas/Banner.js.map +1 -0
  42. package/dist/schemas/Breadcrumb.d.ts +20 -0
  43. package/dist/schemas/Breadcrumb.d.ts.map +1 -0
  44. package/dist/schemas/Breadcrumb.js +25 -0
  45. package/dist/schemas/Breadcrumb.js.map +1 -0
  46. package/dist/schemas/Button.d.ts +40 -0
  47. package/dist/schemas/Button.d.ts.map +1 -0
  48. package/dist/schemas/Button.js +26 -0
  49. package/dist/schemas/Button.js.map +1 -0
  50. package/dist/schemas/Card.d.ts +21 -0
  51. package/dist/schemas/Card.d.ts.map +1 -0
  52. package/dist/schemas/Card.js +22 -0
  53. package/dist/schemas/Card.js.map +1 -0
  54. package/dist/schemas/Checkbox.d.ts +18 -0
  55. package/dist/schemas/Checkbox.d.ts.map +1 -0
  56. package/dist/schemas/Checkbox.js +19 -0
  57. package/dist/schemas/Checkbox.js.map +1 -0
  58. package/dist/schemas/Dialog.d.ts +24 -0
  59. package/dist/schemas/Dialog.d.ts.map +1 -0
  60. package/dist/schemas/Dialog.js +20 -0
  61. package/dist/schemas/Dialog.js.map +1 -0
  62. package/dist/schemas/DropdownMenu.d.ts +25 -0
  63. package/dist/schemas/DropdownMenu.d.ts.map +1 -0
  64. package/dist/schemas/DropdownMenu.js +29 -0
  65. package/dist/schemas/DropdownMenu.js.map +1 -0
  66. package/dist/schemas/EmptyState.d.ts +16 -0
  67. package/dist/schemas/EmptyState.d.ts.map +1 -0
  68. package/dist/schemas/EmptyState.js +17 -0
  69. package/dist/schemas/EmptyState.js.map +1 -0
  70. package/dist/schemas/Input.d.ts +42 -0
  71. package/dist/schemas/Input.d.ts.map +1 -0
  72. package/dist/schemas/Input.js +31 -0
  73. package/dist/schemas/Input.js.map +1 -0
  74. package/dist/schemas/Label.d.ts +24 -0
  75. package/dist/schemas/Label.d.ts.map +1 -0
  76. package/dist/schemas/Label.js +21 -0
  77. package/dist/schemas/Label.js.map +1 -0
  78. package/dist/schemas/Link.d.ts +30 -0
  79. package/dist/schemas/Link.d.ts.map +1 -0
  80. package/dist/schemas/Link.js +22 -0
  81. package/dist/schemas/Link.js.map +1 -0
  82. package/dist/schemas/Pagination.d.ts +19 -0
  83. package/dist/schemas/Pagination.d.ts.map +1 -0
  84. package/dist/schemas/Pagination.js +20 -0
  85. package/dist/schemas/Pagination.js.map +1 -0
  86. package/dist/schemas/Progress.d.ts +27 -0
  87. package/dist/schemas/Progress.d.ts.map +1 -0
  88. package/dist/schemas/Progress.js +20 -0
  89. package/dist/schemas/Progress.js.map +1 -0
  90. package/dist/schemas/RadioGroup.d.ts +25 -0
  91. package/dist/schemas/RadioGroup.d.ts.map +1 -0
  92. package/dist/schemas/RadioGroup.js +26 -0
  93. package/dist/schemas/RadioGroup.js.map +1 -0
  94. package/dist/schemas/SectionHeader.d.ts +160 -0
  95. package/dist/schemas/SectionHeader.d.ts.map +1 -0
  96. package/dist/schemas/SectionHeader.js +52 -0
  97. package/dist/schemas/SectionHeader.js.map +1 -0
  98. package/dist/schemas/Select.d.ts +38 -0
  99. package/dist/schemas/Select.d.ts.map +1 -0
  100. package/dist/schemas/Select.js +36 -0
  101. package/dist/schemas/Select.js.map +1 -0
  102. package/dist/schemas/Separator.d.ts +16 -0
  103. package/dist/schemas/Separator.d.ts.map +1 -0
  104. package/dist/schemas/Separator.js +14 -0
  105. package/dist/schemas/Separator.js.map +1 -0
  106. package/dist/schemas/Sheet.d.ts +28 -0
  107. package/dist/schemas/Sheet.d.ts.map +1 -0
  108. package/dist/schemas/Sheet.js +20 -0
  109. package/dist/schemas/Sheet.js.map +1 -0
  110. package/dist/schemas/Stack.d.ts +58 -0
  111. package/dist/schemas/Stack.d.ts.map +1 -0
  112. package/dist/schemas/Stack.js +80 -0
  113. package/dist/schemas/Stack.js.map +1 -0
  114. package/dist/schemas/StatCard.d.ts +30 -0
  115. package/dist/schemas/StatCard.d.ts.map +1 -0
  116. package/dist/schemas/StatCard.js +26 -0
  117. package/dist/schemas/StatCard.js.map +1 -0
  118. package/dist/schemas/StatusBadge.d.ts +25 -0
  119. package/dist/schemas/StatusBadge.d.ts.map +1 -0
  120. package/dist/schemas/StatusBadge.js +20 -0
  121. package/dist/schemas/StatusBadge.js.map +1 -0
  122. package/dist/schemas/Switch.d.ts +23 -0
  123. package/dist/schemas/Switch.d.ts.map +1 -0
  124. package/dist/schemas/Switch.js +20 -0
  125. package/dist/schemas/Switch.js.map +1 -0
  126. package/dist/schemas/Table.d.ts +20 -0
  127. package/dist/schemas/Table.d.ts.map +1 -0
  128. package/dist/schemas/Table.js +24 -0
  129. package/dist/schemas/Table.js.map +1 -0
  130. package/dist/schemas/Tabs.d.ts +21 -0
  131. package/dist/schemas/Tabs.d.ts.map +1 -0
  132. package/dist/schemas/Tabs.js +25 -0
  133. package/dist/schemas/Tabs.js.map +1 -0
  134. package/dist/schemas/Tag.d.ts +29 -0
  135. package/dist/schemas/Tag.d.ts.map +1 -0
  136. package/dist/schemas/Tag.js +21 -0
  137. package/dist/schemas/Tag.js.map +1 -0
  138. package/dist/schemas/Text.d.ts +51 -0
  139. package/dist/schemas/Text.d.ts.map +1 -0
  140. package/dist/schemas/Text.js +21 -0
  141. package/dist/schemas/Text.js.map +1 -0
  142. package/dist/schemas/Textarea.d.ts +25 -0
  143. package/dist/schemas/Textarea.d.ts.map +1 -0
  144. package/dist/schemas/Textarea.js +24 -0
  145. package/dist/schemas/Textarea.js.map +1 -0
  146. package/dist/schemas/TitleBar.d.ts +18 -0
  147. package/dist/schemas/TitleBar.d.ts.map +1 -0
  148. package/dist/schemas/TitleBar.js +19 -0
  149. package/dist/schemas/TitleBar.js.map +1 -0
  150. package/dist/schemas/Toggle.d.ts +28 -0
  151. package/dist/schemas/Toggle.d.ts.map +1 -0
  152. package/dist/schemas/Toggle.js +22 -0
  153. package/dist/schemas/Toggle.js.map +1 -0
  154. package/dist/schemas/index.d.ts +694 -0
  155. package/dist/schemas/index.d.ts.map +1 -0
  156. package/dist/schemas/index.js +160 -0
  157. package/dist/schemas/index.js.map +1 -0
  158. package/dist/schemas/shared.d.ts +4 -0
  159. package/dist/schemas/shared.d.ts.map +1 -0
  160. package/dist/schemas/shared.js +23 -0
  161. package/dist/schemas/shared.js.map +1 -0
  162. package/dist/tools.d.ts +1293 -0
  163. package/dist/tools.d.ts.map +1 -0
  164. package/dist/tools.js +40 -0
  165. package/dist/tools.js.map +1 -0
  166. package/package.json +59 -0
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the EmptyState props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/EmptyState`.
5
+ */
6
+ export const emptyStateDescriptorSchema = z.object({
7
+ component: z.literal('EmptyState'),
8
+ props: z
9
+ .object({
10
+ title: z.string().min(1).max(120),
11
+ description: z.string().max(300).optional(),
12
+ actionLabel: z.string().max(60).optional(),
13
+ actionId: z.string().max(60).optional(),
14
+ })
15
+ .strict(),
16
+ });
17
+ //# sourceMappingURL=EmptyState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.js","sourceRoot":"","sources":["../../src/schemas/EmptyState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAClC,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QAC3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC1C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KACxC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Input props an AI model is allowed to produce.
4
+ * MUST stay in sync with `@mihcm/ui/Input`.
5
+ *
6
+ * Notes:
7
+ * - The model cannot supply value/onChange — those are wired by the host
8
+ * via a stable `name` token. We never let a model define event handlers
9
+ * or default values that could leak into form submissions.
10
+ * - `placeholder` length capped to keep tooltips/labels sane.
11
+ * - `type` constrained to the safe subset; password/hidden are off-limits
12
+ * for AI-generated forms by default.
13
+ */
14
+ export declare const inputDescriptorSchema: z.ZodObject<{
15
+ component: z.ZodLiteral<"Input">;
16
+ props: z.ZodObject<{
17
+ name: z.ZodString;
18
+ placeholder: z.ZodOptional<z.ZodString>;
19
+ type: z.ZodOptional<z.ZodEnum<{
20
+ number: "number";
21
+ text: "text";
22
+ email: "email";
23
+ tel: "tel";
24
+ url: "url";
25
+ search: "search";
26
+ }>>;
27
+ variant: z.ZodOptional<z.ZodEnum<{
28
+ default: "default";
29
+ destructive: "destructive";
30
+ }>>;
31
+ size: z.ZodOptional<z.ZodEnum<{
32
+ sm: "sm";
33
+ md: "md";
34
+ lg: "lg";
35
+ }>>;
36
+ invalid: z.ZodOptional<z.ZodBoolean>;
37
+ required: z.ZodOptional<z.ZodBoolean>;
38
+ accessibilityLabel: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strict>;
40
+ }, z.core.$strip>;
41
+ export type InputDescriptor = z.infer<typeof inputDescriptorSchema>;
42
+ //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/schemas/Input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Input props an AI model is allowed to produce.
4
+ * MUST stay in sync with `@mihcm/ui/Input`.
5
+ *
6
+ * Notes:
7
+ * - The model cannot supply value/onChange — those are wired by the host
8
+ * via a stable `name` token. We never let a model define event handlers
9
+ * or default values that could leak into form submissions.
10
+ * - `placeholder` length capped to keep tooltips/labels sane.
11
+ * - `type` constrained to the safe subset; password/hidden are off-limits
12
+ * for AI-generated forms by default.
13
+ */
14
+ export const inputDescriptorSchema = z.object({
15
+ component: z.literal('Input'),
16
+ props: z
17
+ .object({
18
+ /** Stable token the host uses to wire `value`/`onChange`. Required. */
19
+ name: z.string().min(1).max(64),
20
+ placeholder: z.string().max(120).optional(),
21
+ type: z.enum(['text', 'email', 'tel', 'url', 'number', 'search']).optional(),
22
+ variant: z.enum(['default', 'destructive']).optional(),
23
+ size: z.enum(['sm', 'md', 'lg']).optional(),
24
+ invalid: z.boolean().optional(),
25
+ required: z.boolean().optional(),
26
+ // Accessibility — the model gets to supply a human label, host wires it.
27
+ accessibilityLabel: z.string().min(1).max(120).optional(),
28
+ })
29
+ .strict(),
30
+ });
31
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../src/schemas/Input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7B,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,uEAAuE;QACvE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QAC3C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC5E,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE;QACtD,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC3C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC/B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAChC,yEAAyE;QACzE,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC1D,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Label props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/Label`.
5
+ *
6
+ * Labels pair with Input/Checkbox/Switch. The `htmlFor` prop links
7
+ * the label to the form field by name — the host wires the actual
8
+ * DOM id association.
9
+ */
10
+ export declare const labelDescriptorSchema: z.ZodObject<{
11
+ component: z.ZodLiteral<"Label">;
12
+ props: z.ZodObject<{
13
+ children: z.ZodString;
14
+ htmlFor: z.ZodOptional<z.ZodString>;
15
+ tone: z.ZodOptional<z.ZodEnum<{
16
+ default: "default";
17
+ destructive: "destructive";
18
+ muted: "muted";
19
+ }>>;
20
+ required: z.ZodOptional<z.ZodBoolean>;
21
+ }, z.core.$strict>;
22
+ }, z.core.$strip>;
23
+ export type LabelDescriptor = z.infer<typeof labelDescriptorSchema>;
24
+ //# sourceMappingURL=Label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../src/schemas/Label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAUhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Label props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/Label`.
5
+ *
6
+ * Labels pair with Input/Checkbox/Switch. The `htmlFor` prop links
7
+ * the label to the form field by name — the host wires the actual
8
+ * DOM id association.
9
+ */
10
+ export const labelDescriptorSchema = z.object({
11
+ component: z.literal('Label'),
12
+ props: z
13
+ .object({
14
+ children: z.string().min(1).max(120),
15
+ htmlFor: z.string().min(1).max(64).optional(),
16
+ tone: z.enum(['default', 'muted', 'destructive']).optional(),
17
+ required: z.boolean().optional(),
18
+ })
19
+ .strict(),
20
+ });
21
+ //# sourceMappingURL=Label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.js","sourceRoot":"","sources":["../../src/schemas/Label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7B,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACpC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC7C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC5D,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Link descriptor. The href is data only; hosts should allowlist destinations
4
+ * at the product boundary before rendering model-authored navigation.
5
+ */
6
+ export declare const linkDescriptorSchema: z.ZodObject<{
7
+ component: z.ZodLiteral<"Link">;
8
+ props: z.ZodObject<{
9
+ children: z.ZodString;
10
+ href: z.ZodString;
11
+ variant: z.ZodOptional<z.ZodEnum<{
12
+ accent: "accent";
13
+ muted: "muted";
14
+ inline: "inline";
15
+ foreground: "foreground";
16
+ nav: "nav";
17
+ standalone: "standalone";
18
+ button: "button";
19
+ }>>;
20
+ size: z.ZodOptional<z.ZodEnum<{
21
+ sm: "sm";
22
+ md: "md";
23
+ lg: "lg";
24
+ }>>;
25
+ external: z.ZodOptional<z.ZodBoolean>;
26
+ showExternalIndicator: z.ZodOptional<z.ZodBoolean>;
27
+ }, z.core.$strict>;
28
+ }, z.core.$strip>;
29
+ export type LinkDescriptor = z.infer<typeof linkDescriptorSchema>;
30
+ //# sourceMappingURL=Link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/schemas/Link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAc/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import { safeHrefSchema } from './shared.js';
3
+ /**
4
+ * Link descriptor. The href is data only; hosts should allowlist destinations
5
+ * at the product boundary before rendering model-authored navigation.
6
+ */
7
+ export const linkDescriptorSchema = z.object({
8
+ component: z.literal('Link'),
9
+ props: z
10
+ .object({
11
+ children: z.string().min(1).max(160),
12
+ href: safeHrefSchema,
13
+ variant: z
14
+ .enum(['inline', 'accent', 'muted', 'foreground', 'nav', 'standalone', 'button'])
15
+ .optional(),
16
+ size: z.enum(['sm', 'md', 'lg']).optional(),
17
+ external: z.boolean().optional(),
18
+ showExternalIndicator: z.boolean().optional(),
19
+ })
20
+ .strict(),
21
+ });
22
+ //# sourceMappingURL=Link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.js","sourceRoot":"","sources":["../../src/schemas/Link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC5B,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACpC,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC;aACP,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;aAChF,QAAQ,EAAE;QACb,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC3C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAChC,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAC9C,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Pagination props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/Pagination`.
5
+ *
6
+ * The model supplies totalPages and currentPage. The renderer computes
7
+ * visible page numbers (with ellipsis) and renders the full Pagination
8
+ * composable tree.
9
+ */
10
+ export declare const paginationDescriptorSchema: z.ZodObject<{
11
+ component: z.ZodLiteral<"Pagination">;
12
+ props: z.ZodObject<{
13
+ totalPages: z.ZodNumber;
14
+ currentPage: z.ZodNumber;
15
+ siblingCount: z.ZodOptional<z.ZodNumber>;
16
+ }, z.core.$strict>;
17
+ }, z.core.$strip>;
18
+ export type PaginationDescriptor = z.infer<typeof paginationDescriptorSchema>;
19
+ //# sourceMappingURL=Pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../src/schemas/Pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B;;;;;;;iBASrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Pagination props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/Pagination`.
5
+ *
6
+ * The model supplies totalPages and currentPage. The renderer computes
7
+ * visible page numbers (with ellipsis) and renders the full Pagination
8
+ * composable tree.
9
+ */
10
+ export const paginationDescriptorSchema = z.object({
11
+ component: z.literal('Pagination'),
12
+ props: z
13
+ .object({
14
+ totalPages: z.number().int().min(1).max(9999),
15
+ currentPage: z.number().int().min(1),
16
+ siblingCount: z.number().int().min(0).max(3).optional(),
17
+ })
18
+ .strict(),
19
+ });
20
+ //# sourceMappingURL=Pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../src/schemas/Pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAClC,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;QAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACpC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;KACxD,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Progress props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/Progress`.
5
+ */
6
+ export declare const progressDescriptorSchema: z.ZodObject<{
7
+ component: z.ZodLiteral<"Progress">;
8
+ props: z.ZodObject<{
9
+ value: z.ZodOptional<z.ZodNumber>;
10
+ tone: z.ZodOptional<z.ZodEnum<{
11
+ success: "success";
12
+ warning: "warning";
13
+ accent: "accent";
14
+ primary: "primary";
15
+ danger: "danger";
16
+ }>>;
17
+ size: z.ZodOptional<z.ZodEnum<{
18
+ sm: "sm";
19
+ md: "md";
20
+ lg: "lg";
21
+ }>>;
22
+ label: z.ZodOptional<z.ZodString>;
23
+ showValue: z.ZodOptional<z.ZodBoolean>;
24
+ }, z.core.$strict>;
25
+ }, z.core.$strip>;
26
+ export type ProgressDescriptor = z.infer<typeof progressDescriptorSchema>;
27
+ //# sourceMappingURL=Progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/schemas/Progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;iBAanC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Progress props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/Progress`.
5
+ */
6
+ export const progressDescriptorSchema = z.object({
7
+ component: z.literal('Progress'),
8
+ props: z
9
+ .object({
10
+ value: z.number().min(0).max(100).optional(),
11
+ tone: z
12
+ .enum(['primary', 'accent', 'success', 'warning', 'danger'])
13
+ .optional(),
14
+ size: z.enum(['sm', 'md', 'lg']).optional(),
15
+ label: z.string().min(1).max(120).optional(),
16
+ showValue: z.boolean().optional(),
17
+ })
18
+ .strict(),
19
+ });
20
+ //# sourceMappingURL=Progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.js","sourceRoot":"","sources":["../../src/schemas/Progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAChC,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QAC5C,IAAI,EAAE,CAAC;aACJ,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;aAC3D,QAAQ,EAAE;QACb,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QAC5C,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the RadioGroup props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/RadioGroup`.
5
+ *
6
+ * The model supplies options and an optional default. The host wires up
7
+ * the actual state management.
8
+ */
9
+ export declare const radioGroupDescriptorSchema: z.ZodObject<{
10
+ component: z.ZodLiteral<"RadioGroup">;
11
+ props: z.ZodObject<{
12
+ options: z.ZodArray<z.ZodObject<{
13
+ value: z.ZodString;
14
+ label: z.ZodString;
15
+ }, z.core.$strip>>;
16
+ defaultValue: z.ZodOptional<z.ZodString>;
17
+ orientation: z.ZodOptional<z.ZodEnum<{
18
+ horizontal: "horizontal";
19
+ vertical: "vertical";
20
+ }>>;
21
+ disabled: z.ZodOptional<z.ZodBoolean>;
22
+ }, z.core.$strict>;
23
+ }, z.core.$strip>;
24
+ export type RadioGroupDescriptor = z.infer<typeof radioGroupDescriptorSchema>;
25
+ //# sourceMappingURL=RadioGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/schemas/RadioGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAkBrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the RadioGroup props an AI model is allowed to
4
+ * produce. MUST stay in sync with `@mihcm/ui/RadioGroup`.
5
+ *
6
+ * The model supplies options and an optional default. The host wires up
7
+ * the actual state management.
8
+ */
9
+ export const radioGroupDescriptorSchema = z.object({
10
+ component: z.literal('RadioGroup'),
11
+ props: z
12
+ .object({
13
+ options: z
14
+ .array(z.object({
15
+ value: z.string().min(1).max(64),
16
+ label: z.string().min(1).max(200),
17
+ }))
18
+ .min(2)
19
+ .max(20),
20
+ defaultValue: z.string().min(1).max(64).optional(),
21
+ orientation: z.enum(['horizontal', 'vertical']).optional(),
22
+ disabled: z.boolean().optional(),
23
+ })
24
+ .strict(),
25
+ });
26
+ //# sourceMappingURL=RadioGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../src/schemas/RadioGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAClC,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,OAAO,EAAE,CAAC;aACP,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;YAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;SAClC,CAAC,CACH;aACA,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,EAAE,CAAC;QACV,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAClD,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC1D,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,160 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the SectionHeader props an AI model is allowed
4
+ * to produce. MUST stay in sync with `@mihcm/ui/SectionHeader`.
5
+ *
6
+ * The `action` slot is **not** exposed to the model — actions belong on
7
+ * subsequent Stack children, not as a nested descriptor inside this
8
+ * header (it complicates the union, and the docs-site composition rules
9
+ * already say "wrap with a Stack" for action-bearing sections).
10
+ */
11
+ export declare const sectionHeaderDescriptorSchema: z.ZodObject<{
12
+ component: z.ZodLiteral<"SectionHeader">;
13
+ props: z.ZodObject<{
14
+ title: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ padding: z.ZodOptional<z.ZodEnum<{
17
+ sm: "sm";
18
+ md: "md";
19
+ lg: "lg";
20
+ xl: "xl";
21
+ none: "none";
22
+ xs: "xs";
23
+ }>>;
24
+ paddingX: z.ZodOptional<z.ZodEnum<{
25
+ sm: "sm";
26
+ md: "md";
27
+ lg: "lg";
28
+ xl: "xl";
29
+ none: "none";
30
+ xs: "xs";
31
+ }>>;
32
+ paddingY: z.ZodOptional<z.ZodEnum<{
33
+ sm: "sm";
34
+ md: "md";
35
+ lg: "lg";
36
+ xl: "xl";
37
+ none: "none";
38
+ xs: "xs";
39
+ }>>;
40
+ paddingTop: z.ZodOptional<z.ZodEnum<{
41
+ sm: "sm";
42
+ md: "md";
43
+ lg: "lg";
44
+ xl: "xl";
45
+ none: "none";
46
+ xs: "xs";
47
+ }>>;
48
+ paddingRight: z.ZodOptional<z.ZodEnum<{
49
+ sm: "sm";
50
+ md: "md";
51
+ lg: "lg";
52
+ xl: "xl";
53
+ none: "none";
54
+ xs: "xs";
55
+ }>>;
56
+ paddingBottom: z.ZodOptional<z.ZodEnum<{
57
+ sm: "sm";
58
+ md: "md";
59
+ lg: "lg";
60
+ xl: "xl";
61
+ none: "none";
62
+ xs: "xs";
63
+ }>>;
64
+ paddingLeft: z.ZodOptional<z.ZodEnum<{
65
+ sm: "sm";
66
+ md: "md";
67
+ lg: "lg";
68
+ xl: "xl";
69
+ none: "none";
70
+ xs: "xs";
71
+ }>>;
72
+ margin: z.ZodOptional<z.ZodEnum<{
73
+ sm: "sm";
74
+ md: "md";
75
+ lg: "lg";
76
+ xl: "xl";
77
+ none: "none";
78
+ xs: "xs";
79
+ }>>;
80
+ marginX: z.ZodOptional<z.ZodEnum<{
81
+ sm: "sm";
82
+ md: "md";
83
+ lg: "lg";
84
+ xl: "xl";
85
+ none: "none";
86
+ xs: "xs";
87
+ }>>;
88
+ marginY: z.ZodOptional<z.ZodEnum<{
89
+ sm: "sm";
90
+ md: "md";
91
+ lg: "lg";
92
+ xl: "xl";
93
+ none: "none";
94
+ xs: "xs";
95
+ }>>;
96
+ marginTop: z.ZodOptional<z.ZodEnum<{
97
+ sm: "sm";
98
+ md: "md";
99
+ lg: "lg";
100
+ xl: "xl";
101
+ none: "none";
102
+ xs: "xs";
103
+ }>>;
104
+ marginRight: z.ZodOptional<z.ZodEnum<{
105
+ sm: "sm";
106
+ md: "md";
107
+ lg: "lg";
108
+ xl: "xl";
109
+ none: "none";
110
+ xs: "xs";
111
+ }>>;
112
+ marginBottom: z.ZodOptional<z.ZodEnum<{
113
+ sm: "sm";
114
+ md: "md";
115
+ lg: "lg";
116
+ xl: "xl";
117
+ none: "none";
118
+ xs: "xs";
119
+ }>>;
120
+ marginLeft: z.ZodOptional<z.ZodEnum<{
121
+ sm: "sm";
122
+ md: "md";
123
+ lg: "lg";
124
+ xl: "xl";
125
+ none: "none";
126
+ xs: "xs";
127
+ }>>;
128
+ surface: z.ZodOptional<z.ZodEnum<{
129
+ success: "success";
130
+ destructive: "destructive";
131
+ warning: "warning";
132
+ accent: "accent";
133
+ muted: "muted";
134
+ transparent: "transparent";
135
+ card: "card";
136
+ primary: "primary";
137
+ }>>;
138
+ border: z.ZodOptional<z.ZodEnum<{
139
+ none: "none";
140
+ top: "top";
141
+ bottom: "bottom";
142
+ y: "y";
143
+ full: "full";
144
+ }>>;
145
+ radius: z.ZodOptional<z.ZodEnum<{
146
+ sm: "sm";
147
+ md: "md";
148
+ lg: "lg";
149
+ xl: "xl";
150
+ none: "none";
151
+ }>>;
152
+ shadow: z.ZodOptional<z.ZodEnum<{
153
+ sm: "sm";
154
+ md: "md";
155
+ none: "none";
156
+ }>>;
157
+ }, z.core.$strict>;
158
+ }, z.core.$strip>;
159
+ export type SectionHeaderDescriptor = z.infer<typeof sectionHeaderDescriptorSchema>;
160
+ //# sourceMappingURL=SectionHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../src/schemas/SectionHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ const sectionHeaderSpaceSchema = z.enum(['none', 'xs', 'sm', 'md', 'lg', 'xl']);
3
+ const sectionHeaderSurfaceSchema = z.enum([
4
+ 'transparent',
5
+ 'card',
6
+ 'muted',
7
+ 'primary',
8
+ 'accent',
9
+ 'success',
10
+ 'warning',
11
+ 'destructive',
12
+ ]);
13
+ const sectionHeaderBorderSchema = z.enum(['none', 'top', 'bottom', 'y', 'full']);
14
+ const sectionHeaderRadiusSchema = z.enum(['none', 'sm', 'md', 'lg', 'xl']);
15
+ const sectionHeaderShadowSchema = z.enum(['none', 'sm', 'md']);
16
+ /**
17
+ * Zod schema describing the SectionHeader props an AI model is allowed
18
+ * to produce. MUST stay in sync with `@mihcm/ui/SectionHeader`.
19
+ *
20
+ * The `action` slot is **not** exposed to the model — actions belong on
21
+ * subsequent Stack children, not as a nested descriptor inside this
22
+ * header (it complicates the union, and the docs-site composition rules
23
+ * already say "wrap with a Stack" for action-bearing sections).
24
+ */
25
+ export const sectionHeaderDescriptorSchema = z.object({
26
+ component: z.literal('SectionHeader'),
27
+ props: z
28
+ .object({
29
+ title: z.string().min(1).max(160),
30
+ description: z.string().min(1).max(400).optional(),
31
+ padding: sectionHeaderSpaceSchema.optional(),
32
+ paddingX: sectionHeaderSpaceSchema.optional(),
33
+ paddingY: sectionHeaderSpaceSchema.optional(),
34
+ paddingTop: sectionHeaderSpaceSchema.optional(),
35
+ paddingRight: sectionHeaderSpaceSchema.optional(),
36
+ paddingBottom: sectionHeaderSpaceSchema.optional(),
37
+ paddingLeft: sectionHeaderSpaceSchema.optional(),
38
+ margin: sectionHeaderSpaceSchema.optional(),
39
+ marginX: sectionHeaderSpaceSchema.optional(),
40
+ marginY: sectionHeaderSpaceSchema.optional(),
41
+ marginTop: sectionHeaderSpaceSchema.optional(),
42
+ marginRight: sectionHeaderSpaceSchema.optional(),
43
+ marginBottom: sectionHeaderSpaceSchema.optional(),
44
+ marginLeft: sectionHeaderSpaceSchema.optional(),
45
+ surface: sectionHeaderSurfaceSchema.optional(),
46
+ border: sectionHeaderBorderSchema.optional(),
47
+ radius: sectionHeaderRadiusSchema.optional(),
48
+ shadow: sectionHeaderShadowSchema.optional(),
49
+ })
50
+ .strict(),
51
+ });
52
+ //# sourceMappingURL=SectionHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeader.js","sourceRoot":"","sources":["../../src/schemas/SectionHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAChF,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,aAAa;IACb,MAAM;IACN,OAAO;IACP,SAAS;IACT,QAAQ;IACR,SAAS;IACT,SAAS;IACT,aAAa;CACd,CAAC,CAAC;AACH,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;AACjF,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3E,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAE/D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IACrC,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;QAClD,OAAO,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC5C,QAAQ,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC7C,QAAQ,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC7C,UAAU,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC/C,YAAY,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QACjD,aAAa,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAClD,WAAW,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAChD,MAAM,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC3C,OAAO,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC5C,OAAO,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC5C,SAAS,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC9C,WAAW,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAChD,YAAY,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QACjD,UAAU,EAAE,wBAAwB,CAAC,QAAQ,EAAE;QAC/C,OAAO,EAAE,0BAA0B,CAAC,QAAQ,EAAE;QAC9C,MAAM,EAAE,yBAAyB,CAAC,QAAQ,EAAE;QAC5C,MAAM,EAAE,yBAAyB,CAAC,QAAQ,EAAE;QAC5C,MAAM,EAAE,yBAAyB,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Zod schema describing the Select props an AI model is allowed to produce.
4
+ * MUST stay in sync with `@mihcm/ui/Select`.
5
+ *
6
+ * Notes:
7
+ * - The model cannot supply value/onChange — those are wired by the host
8
+ * via a stable `name` token.
9
+ * - `options` is the flat list an AI model provides; the host renders them
10
+ * as SelectItem (and groups them via the optional `group` field).
11
+ */
12
+ export declare const selectDescriptorSchema: z.ZodObject<{
13
+ component: z.ZodLiteral<"Select">;
14
+ props: z.ZodObject<{
15
+ name: z.ZodString;
16
+ placeholder: z.ZodOptional<z.ZodString>;
17
+ options: z.ZodArray<z.ZodObject<{
18
+ value: z.ZodString;
19
+ label: z.ZodString;
20
+ group: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>>;
22
+ defaultValue: z.ZodOptional<z.ZodString>;
23
+ variant: z.ZodOptional<z.ZodEnum<{
24
+ default: "default";
25
+ destructive: "destructive";
26
+ }>>;
27
+ size: z.ZodOptional<z.ZodEnum<{
28
+ sm: "sm";
29
+ md: "md";
30
+ lg: "lg";
31
+ }>>;
32
+ disabled: z.ZodOptional<z.ZodBoolean>;
33
+ required: z.ZodOptional<z.ZodBoolean>;
34
+ accessibilityLabel: z.ZodOptional<z.ZodString>;
35
+ }, z.core.$strict>;
36
+ }, z.core.$strip>;
37
+ export type SelectDescriptor = z.infer<typeof selectDescriptorSchema>;
38
+ //# sourceMappingURL=Select.d.ts.map