@fldr/ui 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. package/CHANGELOG.md +2366 -0
  2. package/LICENSE +21 -0
  3. package/README.md +488 -2
  4. package/ai/USAGE.md +216 -0
  5. package/ai/component-registry.json +8694 -0
  6. package/ai/component-registry.md +11933 -0
  7. package/ai/schemas.ts +1239 -0
  8. package/bin/kumo.js +36 -0
  9. package/dist/.build-complete +1 -0
  10. package/dist/ai/schemas.d.ts +3229 -0
  11. package/dist/ai/schemas.js +5963 -0
  12. package/dist/blocks-source/delete-resource/delete-resource.test.tsx +21 -0
  13. package/dist/blocks-source/delete-resource/delete-resource.tsx +219 -0
  14. package/dist/blocks-source/page-header/page-header.tsx +99 -0
  15. package/dist/blocks-source/resource-list/resource-list.test.tsx +28 -0
  16. package/dist/blocks-source/resource-list/resource-list.tsx +66 -0
  17. package/dist/button-DzavLWXm.d.ts +227 -0
  18. package/dist/catalog.d.ts +380 -0
  19. package/dist/catalog.js +387 -0
  20. package/dist/chunks/AccordionPanelDataAttributes-mmrmkky28u1010l5.js +457 -0
  21. package/dist/chunks/AlertDialogTrigger-l1r1gbxcky1xq889.js +24 -0
  22. package/dist/chunks/AlertDialogTriggerDataAttributes-go49qon601catpgn.js +56 -0
  23. package/dist/chunks/AutocompleteItem-36ysm5nwbsd0snr6.js +70 -0
  24. package/dist/chunks/AutocompleteItemDataAttributes-n5rigpf0s9ylnwi3.js +232 -0
  25. package/dist/chunks/AutocompleteSeparator-bnqeqh7i983d92gx.js +12 -0
  26. package/dist/chunks/AvatarImageDataAttributes-jw70u384c83lhqfp.js +247 -0
  27. package/dist/chunks/ButtonDataAttributes-nceand1fi7lvnmkb.js +35 -0
  28. package/dist/chunks/CSPContext-iv67i0qqhihg8mur.js +11 -0
  29. package/dist/chunks/CSPProvider-finau3a8hnc9o2td.js +24 -0
  30. package/dist/chunks/CheckboxGroup-581mfftu99wvjb3a.js +190 -0
  31. package/dist/chunks/CheckboxGroupContext-jf1bt3znvqlhrql6.js +10 -0
  32. package/dist/chunks/CheckboxGroupDataAttributes-nskqcxts64symbvf.js +10 -0
  33. package/dist/chunks/CheckboxIndicator-i13dmhacfgqo328c.js +414 -0
  34. package/dist/chunks/CheckboxIndicatorDataAttributes-3p29ju7nkczz1l2y.js +85 -0
  35. package/dist/chunks/CollapsiblePanel-md5suzmtnsyz1kab.js +178 -0
  36. package/dist/chunks/CollapsibleRootDataAttributes-bynmgxmt4jikaoha.js +36 -0
  37. package/dist/chunks/ComboboxClear-ioejwvtnmqanph88.js +294 -0
  38. package/dist/chunks/ComboboxClearDataAttributes-lo0enstdmrqpywsy.js +402 -0
  39. package/dist/chunks/ComboboxEmpty-gkt1y5b81a4983v7.js +1950 -0
  40. package/dist/chunks/ComboboxItemIndicatorDataAttributes-iku7l9ig0ve09an4.js +259 -0
  41. package/dist/chunks/ComboboxPopup-n8cbgys9st446j1i.js +205 -0
  42. package/dist/chunks/CompositeItem-kepwg8jtvgap06o6.js +20 -0
  43. package/dist/chunks/CompositeList-gwuaf6d14s4da0j0.js +182 -0
  44. package/dist/chunks/CompositeListContext-bejvmlu39hsfjzgu.js +15 -0
  45. package/dist/chunks/CompositeRoot-dnlkb27uw4g5aocf.js +223 -0
  46. package/dist/chunks/CompositeRootContext-obm54j7y6s86qwhq.js +12 -0
  47. package/dist/chunks/ContextMenuTriggerDataAttributes-xwozccynxv6pk5s0.js +237 -0
  48. package/dist/chunks/DialogBackdropDataAttributes-jwqxd6jla03xh8ke.js +28 -0
  49. package/dist/chunks/DialogCloseDataAttributes-12m7gwh3i6fd7d05.js +76 -0
  50. package/dist/chunks/DialogPopup-n6w7b389e7bs0472.js +133 -0
  51. package/dist/chunks/DialogRoot-hkkqj7vcjpkx8qk8.js +16 -0
  52. package/dist/chunks/DialogTrigger-kpugfkbfswqrus4u.js +142 -0
  53. package/dist/chunks/DialogTriggerDataAttributes-bp9bu13cvwuddh5b.js +18 -0
  54. package/dist/chunks/DialogViewportDataAttributes-mma9emv1edsc1vuy.js +78 -0
  55. package/dist/chunks/DirectionContext-kpby968j030psajn.js +10 -0
  56. package/dist/chunks/DirectionProvider-cg0pwzgdyg6r73r6.js +21 -0
  57. package/dist/chunks/DrawerViewport-mzqpwvqtylnad8ib.js +1532 -0
  58. package/dist/chunks/DrawerViewportDataAttributes-dd9593zm9fl9vcsm.js +1072 -0
  59. package/dist/chunks/FieldControl-hjj2tcqruozadgdi.js +122 -0
  60. package/dist/chunks/FieldDescription-orix2gepowrp5ni4.js +122 -0
  61. package/dist/chunks/FieldItemContext-ohsf45im6xhpay40.js +10 -0
  62. package/dist/chunks/FieldItemDataAttributes-m52srx69pispz49i.js +283 -0
  63. package/dist/chunks/FieldLabel-fjc7tdis7rcbq8o4.js +353 -0
  64. package/dist/chunks/FieldsetLegend-gl9z9eezr0xg9zr7.js +61 -0
  65. package/dist/chunks/FieldsetLegendDataAttributes-fn20251jxjqkpkxm.js +17 -0
  66. package/dist/chunks/FieldsetRootContext-fphwizvcm55ydg94.js +12 -0
  67. package/dist/chunks/FloatingPortalLite-j7dsy7gokbxdoe1i.js +25 -0
  68. package/dist/chunks/FloatingRootStore-men6ufp3a2b296fh.js +840 -0
  69. package/dist/chunks/FloatingTree-kiyzavvaum442o1s.js +115 -0
  70. package/dist/chunks/Form-oz425k7r4abea8o4.js +113 -0
  71. package/dist/chunks/FormContext-jv19engyccpf6xcl.js +18 -0
  72. package/dist/chunks/Input-ozudotydd679ly63.js +20 -0
  73. package/dist/chunks/InputDataAttributes-oy8t6q5y5t8ik02j.js +42 -0
  74. package/dist/chunks/ItemIndicator-cvf8cw5fv5l3cd8j.js +37 -0
  75. package/dist/chunks/LabelableContext-dz4wz3lu3lgqusu7.js +135 -0
  76. package/dist/chunks/ListboxSeparator-skazx18vzzj7i9zp.js +21 -0
  77. package/dist/chunks/MenuClearDataAttributes-fo0pekd36n56mdxu.js +1645 -0
  78. package/dist/chunks/MenuSubmenuTrigger-hm5xbgik6aq95x35.js +1976 -0
  79. package/dist/chunks/MenuSubmenuTriggerDataAttributes-gdfxdjymgmnaxdds.js +372 -0
  80. package/dist/chunks/MenuTrigger-dlfvicsaggss0o9m.js +265 -0
  81. package/dist/chunks/Menubar-ja5int05ihjj0ra4.js +116 -0
  82. package/dist/chunks/MenubarContext-ooz0h08i55c8oip5.js +12 -0
  83. package/dist/chunks/MeterLabel-cykbkvqys5263z05.js +148 -0
  84. package/dist/chunks/NavigationMenuIconDataAttributes-l82pkpm61d0meqxf.js +1654 -0
  85. package/dist/chunks/NullStore-my62xo2vfcfkerri.js +110 -0
  86. package/dist/chunks/NumberFieldScrubAreaCursorDataAttributes-k2lsbk35svshnwf5.js +1493 -0
  87. package/dist/chunks/OTPFieldInputDataAttributes-gvgtu2gg85kgjzwr.js +683 -0
  88. package/dist/chunks/PopoverViewport-peh28i8q4hqfjy97.js +713 -0
  89. package/dist/chunks/PopoverViewportDataAttributes-gplhq9d7ffp9q8u3.js +329 -0
  90. package/dist/chunks/PrehydrationScript-hs2je3mndbxuts7w.js +78 -0
  91. package/dist/chunks/PreviewCardViewportDataAttributes-bgfwmyshey7fx6nr.js +914 -0
  92. package/dist/chunks/ProgressLabelDataAttributes-j8mutcz11ei0ohvj.js +287 -0
  93. package/dist/chunks/RadioGroup-kioqngmmuo7a1lfa.js +163 -0
  94. package/dist/chunks/RadioGroupContext-dr6uihsj7oky0eol.js +10 -0
  95. package/dist/chunks/RadioGroupDataAttributes-dpdr6xe4ve204qwb.js +10 -0
  96. package/dist/chunks/RadioIndicator-bhxqih8wzv7hyrec.js +299 -0
  97. package/dist/chunks/RadioIndicatorDataAttributes-n5yupp5psifu0d4f.js +80 -0
  98. package/dist/chunks/ScrollAreaThumb-hxig41yn4lrurd3o.js +928 -0
  99. package/dist/chunks/ScrollAreaThumbDataAttributes-gup5wfxvqye6jj27.js +137 -0
  100. package/dist/chunks/SelectScrollUpArrowDataAttributes-fce5i1afjkb0necr.js +473 -0
  101. package/dist/chunks/SelectSeparator-nnak70azojox8b2b.js +1632 -0
  102. package/dist/chunks/Separator-fhwve0tfny3tht3a.js +24 -0
  103. package/dist/chunks/SeparatorDataAttributes-ch6e63bas7zflw00.js +11 -0
  104. package/dist/chunks/SliderIndicator-h1o3qbrvr8x0t4t2.js +1171 -0
  105. package/dist/chunks/SliderIndicatorDataAttributes-ff2f1cjealif5nvo.js +240 -0
  106. package/dist/chunks/SwitchRoot-m4t2tq5zn5wibyxk.js +244 -0
  107. package/dist/chunks/SwitchThumbDataAttributes-f95ld864on9y6ptk.js +90 -0
  108. package/dist/chunks/TabsList-n5n93rxr4sy704u8.js +664 -0
  109. package/dist/chunks/TabsListDataAttributes-e03a7kbubuf02z1l.js +183 -0
  110. package/dist/chunks/ToastArrowDataAttributes-jbnvz3kp6a35slgj.js +136 -0
  111. package/dist/chunks/ToggleDataAttributes-jl9ojyvwgrvefke6.js +103 -0
  112. package/dist/chunks/ToggleGroupContext-hg8zbkgqpscqhz83.js +10 -0
  113. package/dist/chunks/ToggleGroupDataAttributes-n1dwona1alvabstl.js +102 -0
  114. package/dist/chunks/ToolbarGroupContext-eawva8xkxb4osbxb.js +10 -0
  115. package/dist/chunks/ToolbarInput-kyxl1be0p3cyuayp.js +174 -0
  116. package/dist/chunks/ToolbarInputDataAttributes-n4a18a4km735du04.js +150 -0
  117. package/dist/chunks/ToolbarRootContext-difqbj720teyt8lu.js +12 -0
  118. package/dist/chunks/TooltipPopup-furysmeyb68uycbz.js +839 -0
  119. package/dist/chunks/TooltipProvider-hyans0ens4axh1y8.js +61 -0
  120. package/dist/chunks/TooltipViewportDataAttributes-gkwbezdq40ssuevg.js +312 -0
  121. package/dist/chunks/adaptiveOriginMiddleware-m9tqzw58wya9sdds.js +51 -0
  122. package/dist/chunks/addEventListener-ku3x23446prmd1kz.js +13 -0
  123. package/dist/chunks/areArraysEqual-nnpg93s9g7aqcaoh.js +15 -0
  124. package/dist/chunks/autocomplete-gdd9aruremdgdvx7.js +152 -0
  125. package/dist/chunks/badge-gca8xfu79ne55d5k.js +165 -0
  126. package/dist/chunks/banner-mo1xl9ww734kgsqh.js +269 -0
  127. package/dist/chunks/breadcrumbs-z1jo40oxlw8e4eh4.js +159 -0
  128. package/dist/chunks/button-group-biv43ksvaipc3p5n.js +59 -0
  129. package/dist/chunks/button-hzvowfkbathmx8yg.js +274 -0
  130. package/dist/chunks/chart-dgh98nbzo2sux2bs.js +3985 -0
  131. package/dist/chunks/checkbox-eifiwbw34xwsikvf.js +211 -0
  132. package/dist/chunks/clamp-rcpupxvhqrn8uuyf.js +7 -0
  133. package/dist/chunks/clipboard-text-oukrnke1s3kebk3y.js +209 -0
  134. package/dist/chunks/cloudflare-logo-d8mid9xr190h78cu.js +186 -0
  135. package/dist/chunks/code-hp2x28uiufmk3elz.js +94 -0
  136. package/dist/chunks/collapsible-ic6813hc4yv5s5hv.js +185 -0
  137. package/dist/chunks/combobox-mzvobpvalz2gnpli.js +321 -0
  138. package/dist/chunks/command-palette-d45ueqbuxygu87ir.js +507 -0
  139. package/dist/chunks/composite-c11t1ok72s3cggjc.js +90 -0
  140. package/dist/chunks/constants-l10cgj6pyqg27jod.js +5 -0
  141. package/dist/chunks/createBaseUIEventDetails-nvee6bghv2reeqdb.js +50 -0
  142. package/dist/chunks/createItems-n07tfwx89cdoar18.js +323 -0
  143. package/dist/chunks/createToastManager-cxjmn4jx3ejh85fs.js +1225 -0
  144. package/dist/chunks/date-picker-ija2bz17ai6ypnao.js +6865 -0
  145. package/dist/chunks/date-range-picker-oivlshld01jbel29.js +336 -0
  146. package/dist/chunks/dialog-g7wavhkdv2gplwq9.js +173 -0
  147. package/dist/chunks/dropdown-m5a8nwer5hpvnkfk.js +384 -0
  148. package/dist/chunks/empty-e0onzpyokyl6h9bp.js +96 -0
  149. package/dist/chunks/engine-hzmefiqm63hu0c7i.js +10 -0
  150. package/dist/chunks/error-lbnic2b20qr3mukp.js +6 -0
  151. package/dist/chunks/field-fowmq5smvp17pnqe.js +75 -0
  152. package/dist/chunks/flow-fak0fyldoaozd32s.js +10290 -0
  153. package/dist/chunks/formatNumber-b4kjdsebslm2b3t0.js +21 -0
  154. package/dist/chunks/getCssDimensions-gckwdrp86f73cv51.js +21 -0
  155. package/dist/chunks/getElementTransform-cz3jyftv0x5io95f.js +38 -0
  156. package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
  157. package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
  158. package/dist/chunks/getPseudoElementBounds-csuw8kwsoeyxd5tv.js +37 -0
  159. package/dist/chunks/grid-nwiczrab3r4w0zr2.js +118 -0
  160. package/dist/chunks/highlighter-mouttug0tu8xg1i8.js +1364 -0
  161. package/dist/chunks/index.parts-db9pzsm9rrs9tp0t.js +200 -0
  162. package/dist/chunks/index.parts-ggacwr0yakuemead.js +24 -0
  163. package/dist/chunks/index.parts-pcg3pmf3yyro841t.js +13 -0
  164. package/dist/chunks/inertValue-n09gkjvwwa1kddov.js +9 -0
  165. package/dist/chunks/inline-copy-text-izxpvnrtebcqlquf.js +104 -0
  166. package/dist/chunks/input-group-h9fepskc84e1h11n.js +457 -0
  167. package/dist/chunks/input-kfi46426y22ocoo4.js +85 -0
  168. package/dist/chunks/input-m2tfec2viezoz9hh.js +146 -0
  169. package/dist/chunks/isElementDisabled-dyqutxpzdfppbohx.js +7 -0
  170. package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
  171. package/dist/chunks/label-f18fnpbv85jddo4q.js +76 -0
  172. package/dist/chunks/layer-card-lsmeuqic9i1isv2b.js +74 -0
  173. package/dist/chunks/layer-dialog-ejtz9s7bbfhjk1md.js +414 -0
  174. package/dist/chunks/link-h84bkh8eem39p529.js +112 -0
  175. package/dist/chunks/link-provider-kbwllpbo24fvgioj.js +60 -0
  176. package/dist/chunks/loader-kv5nk8j8tsuesxqo.js +87 -0
  177. package/dist/chunks/locale-provider-j4ii538ntyok36r6.js +50 -0
  178. package/dist/chunks/menubar-gzlyhmmc4i24prn1.js +106 -0
  179. package/dist/chunks/mergeCleanups-nw73c6jfwl5tyhw4.js +15 -0
  180. package/dist/chunks/meter-poh8jpe0qtq6mvee.js +35 -0
  181. package/dist/chunks/pagination-lmogkvvtu19mnr7f.js +296 -0
  182. package/dist/chunks/popover-nqrt3ykqv6sic8pz.js +206 -0
  183. package/dist/chunks/popupHandle-dk3ixgc8flr7v971.js +177 -0
  184. package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
  185. package/dist/chunks/portal-provider-eveknxf26oudn7pp.js +63 -0
  186. package/dist/chunks/radio-nf717i5ypsga9zdh.js +204 -0
  187. package/dist/chunks/reason-parts-hssx64rmlxyn6gw5.js +40 -0
  188. package/dist/chunks/resolve-variant-l6x5ksfrjtu4m66l.js +35 -0
  189. package/dist/chunks/resolveAriaLabelledBy-knaucrjrjwnk7tvs.js +10 -0
  190. package/dist/chunks/resolveValueLabel-ntacnb58mhka5gg0.js +70 -0
  191. package/dist/chunks/rolldown-runtime-hi7ti5xiuxsegr96.js +18 -0
  192. package/dist/chunks/safePolygon-ep4133qogeu5vjf3.js +661 -0
  193. package/dist/chunks/safeReact-ek77ilng4ekk7mgz.js +18 -0
  194. package/dist/chunks/scrollable-k784b35i80aolmvg.js +29 -0
  195. package/dist/chunks/select-lnekz415wm4v6d6m.js +279 -0
  196. package/dist/chunks/sensitive-input-dvwlnntm7rdudwp0.js +252 -0
  197. package/dist/chunks/serializeValue-d1otz2i7h5tygrwf.js +13 -0
  198. package/dist/chunks/sidebar-mhlgvpawixxoey2k.js +1466 -0
  199. package/dist/chunks/skeleton-line-kmhnp0lx3rxhioxa.js +74 -0
  200. package/dist/chunks/slider-e395gihi5cjd62ss.js +87 -0
  201. package/dist/chunks/stringifyLocale-gbxouqj7ol627jxh.js +9 -0
  202. package/dist/chunks/styles-eb8bvypmayf578jf.js +35 -0
  203. package/dist/chunks/surface-jr8x5hy0gucjk5ig.js +30 -0
  204. package/dist/chunks/switch-nc8thi7ogd51m3gi.js +202 -0
  205. package/dist/chunks/table-ngl1b5yc8mcur662.js +238 -0
  206. package/dist/chunks/table-of-contents-gkjv9ck8etbz64ej.js +234 -0
  207. package/dist/chunks/tabs-o59bv7348nh2gppm.js +280 -0
  208. package/dist/chunks/tag-input-lbx9yzt33d4wu07o.js +156 -0
  209. package/dist/chunks/text-nqum95flcp07ac9s.js +126 -0
  210. package/dist/chunks/toast-ljpenshot856xqq4.js +341 -0
  211. package/dist/chunks/toolbar-kh6pc12ii7b6dv1x.js +141 -0
  212. package/dist/chunks/tooltip-bcymn9bfyz29fvji.js +92 -0
  213. package/dist/chunks/unwrap-lazy-element-hzbdkmujhd7iksau.js +45 -0
  214. package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
  215. package/dist/chunks/useAnchoredPopupScrollLock-msm8tzkewysnunut.js +31 -0
  216. package/dist/chunks/useAnimationFrame-k9lqdj9quln3sd85.js +87 -0
  217. package/dist/chunks/useAriaLabelledBy-j3j9jqlr9ukyk08s.js +36 -0
  218. package/dist/chunks/useBaseUiId-nk4k7nj9h1cy76ny.js +13 -0
  219. package/dist/chunks/useButton-lklvdzuhvj22bx07.js +186 -0
  220. package/dist/chunks/useClick-pcbkcc7r620v1smu.js +87 -0
  221. package/dist/chunks/useCollapsiblePanel-lrfsgx21ds36cwlp.js +415 -0
  222. package/dist/chunks/useCompositeItem-2juex3zh9gyrs8e9.js +31 -0
  223. package/dist/chunks/useCompositeListItem-ekwo2j2rjkggg7xj.js +54 -0
  224. package/dist/chunks/useControlled-i3srnkxy598s0au9.js +52 -0
  225. package/dist/chunks/useFieldValidation-oe16jiigp971yrzr.js +224 -0
  226. package/dist/chunks/useFloatingRootContext-k676b6m7f80bdapd.js +51 -0
  227. package/dist/chunks/useFocus-mn7a9t9v6fnlb4mf.js +124 -0
  228. package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
  229. package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
  230. package/dist/chunks/useLabel-me6zzfvkypo458pi.js +58 -0
  231. package/dist/chunks/useLabelableId-bjeh6q3pgrqjb7er.js +56 -0
  232. package/dist/chunks/useListNavigation-hpddbd0cc9pvt461.js +441 -0
  233. package/dist/chunks/useOnMount-gxggz1m0n869s6r0.js +12 -0
  234. package/dist/chunks/useOpenChangeComplete-edtabjwqmechsyv6.js +129 -0
  235. package/dist/chunks/usePopupHandleStore-gawjmfjf1xdgiph3.js +27 -0
  236. package/dist/chunks/usePopupViewport-l6w01iohvzloghy8.js +367 -0
  237. package/dist/chunks/usePositioner-mzvgnazldqvy44z2.js +580 -0
  238. package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
  239. package/dist/chunks/usePreviousValue-o6swt5tb7xhpdu4e.js +21 -0
  240. package/dist/chunks/useRegisterFieldControl-m1stc9l9y4cndf0k.js +40 -0
  241. package/dist/chunks/useRegisteredLabelId-b7u9ygya03448zzn.js +16 -0
  242. package/dist/chunks/useRender-h9ktka9xt4obdv6y.js +13 -0
  243. package/dist/chunks/useRenderDialogRoot-bsqrqpc1ddau7xg4.js +312 -0
  244. package/dist/chunks/useRenderElement-nkklxbq1rp7h2kw0.js +436 -0
  245. package/dist/chunks/useScrollLock-le7ajwlt7oh6fzxi.js +877 -0
  246. package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
  247. package/dist/chunks/useStableCallback-le5qgj6p9l04729n.js +38 -0
  248. package/dist/chunks/useSwipeDismiss-e8tfxzlp05p86mgb.js +697 -0
  249. package/dist/chunks/useTimeout-f0ayn2l2l9aop4l8.js +43 -0
  250. package/dist/chunks/useTransitionStatus-disysoblzgk34w14.js +74 -0
  251. package/dist/chunks/useTriggerFocusGuards-dyd3hb1m8en8ct50.js +40 -0
  252. package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
  253. package/dist/chunks/useTypeahead-kfdsw1ksl5bgvvzl.js +111 -0
  254. package/dist/chunks/useValueAsRef-dv0tmfr1xlpzdlru.js +27 -0
  255. package/dist/chunks/useValueChanged-fjssa2v6d4w8y332.js +15 -0
  256. package/dist/chunks/utils-o44zfmzz9z7uyj1v.js +18 -0
  257. package/dist/chunks/valueToPercent-djk2mqnihth2uvf6.js +7 -0
  258. package/dist/chunks/vendor-floating-ui-fqblx3wa0r71mjoo.js +1458 -0
  259. package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
  260. package/dist/chunks/vendor-utils-io8z5lsfxq8m2dcc.js +660 -0
  261. package/dist/chunks/visuallyHidden-kzzs9hbe93is3rci.js +25 -0
  262. package/dist/code/server.d.ts +11 -0
  263. package/dist/code/server.js +18 -0
  264. package/dist/code.d.ts +65 -0
  265. package/dist/code.js +232 -0
  266. package/dist/command-line/cli.js +1705 -0
  267. package/dist/command-line/commands/add.js +282 -0
  268. package/dist/command-line/commands/ai.js +22 -0
  269. package/dist/command-line/commands/blocks.js +61 -0
  270. package/dist/command-line/commands/doc.js +167 -0
  271. package/dist/command-line/commands/init.js +95 -0
  272. package/dist/command-line/commands/ls.js +53 -0
  273. package/dist/command-line/commands/theme.js +850 -0
  274. package/dist/components/autocomplete.d.ts +2 -0
  275. package/dist/components/autocomplete.js +3 -0
  276. package/dist/components/badge.d.ts +2 -0
  277. package/dist/components/badge.js +3 -0
  278. package/dist/components/banner.d.ts +2 -0
  279. package/dist/components/banner.js +3 -0
  280. package/dist/components/breadcrumbs.d.ts +2 -0
  281. package/dist/components/breadcrumbs.js +3 -0
  282. package/dist/components/button-group.d.ts +2 -0
  283. package/dist/components/button-group.js +3 -0
  284. package/dist/components/button.d.ts +3 -0
  285. package/dist/components/button.js +3 -0
  286. package/dist/components/chart.d.ts +2 -0
  287. package/dist/components/chart.js +3 -0
  288. package/dist/components/checkbox.d.ts +2 -0
  289. package/dist/components/checkbox.js +3 -0
  290. package/dist/components/clipboard-text.d.ts +2 -0
  291. package/dist/components/clipboard-text.js +3 -0
  292. package/dist/components/cloudflare-logo.d.ts +2 -0
  293. package/dist/components/cloudflare-logo.js +3 -0
  294. package/dist/components/code.d.ts +2 -0
  295. package/dist/components/code.js +3 -0
  296. package/dist/components/collapsible.d.ts +2 -0
  297. package/dist/components/collapsible.js +3 -0
  298. package/dist/components/combobox.d.ts +2 -0
  299. package/dist/components/combobox.js +3 -0
  300. package/dist/components/command-palette.d.ts +2 -0
  301. package/dist/components/command-palette.js +3 -0
  302. package/dist/components/date-picker.d.ts +2 -0
  303. package/dist/components/date-picker.js +3 -0
  304. package/dist/components/date-range-picker.d.ts +2 -0
  305. package/dist/components/date-range-picker.js +3 -0
  306. package/dist/components/dialog.d.ts +2 -0
  307. package/dist/components/dialog.js +3 -0
  308. package/dist/components/dropdown.d.ts +2 -0
  309. package/dist/components/dropdown.js +3 -0
  310. package/dist/components/empty.d.ts +2 -0
  311. package/dist/components/empty.js +3 -0
  312. package/dist/components/field.d.ts +2 -0
  313. package/dist/components/field.js +3 -0
  314. package/dist/components/flow.d.ts +2 -0
  315. package/dist/components/flow.js +3 -0
  316. package/dist/components/grid.d.ts +2 -0
  317. package/dist/components/grid.js +3 -0
  318. package/dist/components/inline-copy-text.d.ts +2 -0
  319. package/dist/components/inline-copy-text.js +3 -0
  320. package/dist/components/input-group.d.ts +2 -0
  321. package/dist/components/input-group.js +3 -0
  322. package/dist/components/input.d.ts +4 -0
  323. package/dist/components/input.js +5 -0
  324. package/dist/components/label.d.ts +2 -0
  325. package/dist/components/label.js +3 -0
  326. package/dist/components/layer-card.d.ts +2 -0
  327. package/dist/components/layer-card.js +3 -0
  328. package/dist/components/layer-dialog.d.ts +2 -0
  329. package/dist/components/layer-dialog.js +3 -0
  330. package/dist/components/link.d.ts +67 -0
  331. package/dist/components/link.js +3 -0
  332. package/dist/components/loader.d.ts +2 -0
  333. package/dist/components/loader.js +4 -0
  334. package/dist/components/menubar.d.ts +2 -0
  335. package/dist/components/menubar.js +3 -0
  336. package/dist/components/meter.d.ts +2 -0
  337. package/dist/components/meter.js +3 -0
  338. package/dist/components/pagination.d.ts +2 -0
  339. package/dist/components/pagination.js +3 -0
  340. package/dist/components/popover.d.ts +2 -0
  341. package/dist/components/popover.js +3 -0
  342. package/dist/components/radio.d.ts +2 -0
  343. package/dist/components/radio.js +3 -0
  344. package/dist/components/select.d.ts +2 -0
  345. package/dist/components/select.js +3 -0
  346. package/dist/components/sensitive-input.d.ts +2 -0
  347. package/dist/components/sensitive-input.js +3 -0
  348. package/dist/components/sidebar.d.ts +2 -0
  349. package/dist/components/sidebar.js +3 -0
  350. package/dist/components/slider.d.ts +2 -0
  351. package/dist/components/slider.js +3 -0
  352. package/dist/components/surface.d.ts +2 -0
  353. package/dist/components/surface.js +3 -0
  354. package/dist/components/switch.d.ts +2 -0
  355. package/dist/components/switch.js +3 -0
  356. package/dist/components/table-of-contents.d.ts +2 -0
  357. package/dist/components/table-of-contents.js +3 -0
  358. package/dist/components/table.d.ts +2 -0
  359. package/dist/components/table.js +3 -0
  360. package/dist/components/tabs.d.ts +2 -0
  361. package/dist/components/tabs.js +3 -0
  362. package/dist/components/tag-input.d.ts +2 -0
  363. package/dist/components/tag-input.js +3 -0
  364. package/dist/components/text.d.ts +2 -0
  365. package/dist/components/text.js +3 -0
  366. package/dist/components/toast.d.ts +2 -0
  367. package/dist/components/toast.js +4 -0
  368. package/dist/components/toolbar.d.ts +2 -0
  369. package/dist/components/toolbar.js +3 -0
  370. package/dist/components/tooltip.d.ts +2 -0
  371. package/dist/components/tooltip.js +3 -0
  372. package/dist/config-BKj6nyHa.d.ts +620 -0
  373. package/dist/field-DIjlHM8W.d.ts +91 -0
  374. package/dist/highlighter-BT3TakhJ.d.ts +13 -0
  375. package/dist/index-2jvVmJ8P.d.ts +46 -0
  376. package/dist/index-5PpauI_2.d.ts +85 -0
  377. package/dist/index-AMEc1MEg.d.ts +180 -0
  378. package/dist/index-AUC5xRcO.d.ts +236 -0
  379. package/dist/index-B7epkoHc.d.ts +72 -0
  380. package/dist/index-B9-RdY6D.d.ts +75 -0
  381. package/dist/index-BD-gTiEv.d.ts +71 -0
  382. package/dist/index-BK1tZgmP.d.ts +426 -0
  383. package/dist/index-BVgXnR1V.d.ts +137 -0
  384. package/dist/index-BW1HVU7T.d.ts +119 -0
  385. package/dist/index-BWe6haHU.d.ts +64 -0
  386. package/dist/index-BkTAB4wj.d.ts +673 -0
  387. package/dist/index-Bwhwpw_j.d.ts +189 -0
  388. package/dist/index-BzE0aNpx.d.ts +143 -0
  389. package/dist/index-C7RoG_CH.d.ts +57 -0
  390. package/dist/index-CE09bLNb.d.ts +72 -0
  391. package/dist/index-CJRe-8P-.d.ts +174 -0
  392. package/dist/index-CNL6VDYZ.d.ts +138 -0
  393. package/dist/index-CReGk3Dc.d.ts +91 -0
  394. package/dist/index-CU_lnxg7.d.ts +287 -0
  395. package/dist/index-CYoiniZ4.d.ts +135 -0
  396. package/dist/index-ClS-eFxE.d.ts +104 -0
  397. package/dist/index-CzIWigmH.d.ts +62 -0
  398. package/dist/index-CzTgKPh-.d.ts +105 -0
  399. package/dist/index-D2Gvly0i.d.ts +96 -0
  400. package/dist/index-DIV3riUd.d.ts +148 -0
  401. package/dist/index-DL1-uSuH.d.ts +1 -0
  402. package/dist/index-DYYiDxZs.d.ts +243 -0
  403. package/dist/index-DjSGDESy.d.ts +222 -0
  404. package/dist/index-Dmbgjww7.d.ts +157 -0
  405. package/dist/index-DwNMa4LN.d.ts +166 -0
  406. package/dist/index-Dx7hOWUc.d.ts +93 -0
  407. package/dist/index-DxOyYZaJ.d.ts +251 -0
  408. package/dist/index-NnHba-T1.d.ts +136 -0
  409. package/dist/index-RP_rt8vB.d.ts +140 -0
  410. package/dist/index-T1sSoiWG.d.ts +184 -0
  411. package/dist/index-aahL-0Zw.d.ts +60 -0
  412. package/dist/index-bBPKMepR.d.ts +73 -0
  413. package/dist/index-g-eFm1Bq.d.ts +877 -0
  414. package/dist/index-gYC6cQVO.d.ts +105 -0
  415. package/dist/index-lOWfpkxK.d.ts +118 -0
  416. package/dist/index-pjdgauIH.d.ts +170 -0
  417. package/dist/index-yK3Hayg_.d.ts +40 -0
  418. package/dist/index.d.ts +108 -0
  419. package/dist/index.js +207 -0
  420. package/dist/input-BeWEb-jD.d.ts +122 -0
  421. package/dist/input-group-8gEtPiKw.d.ts +100 -0
  422. package/dist/layer-card-BNIn9pqy.d.ts +56 -0
  423. package/dist/link-provider-tz-NJp9x.d.ts +67 -0
  424. package/dist/locale-provider-CHMCQ0-J.d.ts +40 -0
  425. package/dist/panda.d.ts +25 -0
  426. package/dist/panda.js +32 -0
  427. package/dist/portal-provider-BAqPpq_a.d.ts +55 -0
  428. package/dist/primitives/accordion.d.ts +1 -0
  429. package/dist/primitives/accordion.js +3 -0
  430. package/dist/primitives/alert-dialog.d.ts +1 -0
  431. package/dist/primitives/alert-dialog.js +8 -0
  432. package/dist/primitives/autocomplete.d.ts +1 -0
  433. package/dist/primitives/autocomplete.js +6 -0
  434. package/dist/primitives/avatar.d.ts +1 -0
  435. package/dist/primitives/avatar.js +3 -0
  436. package/dist/primitives/button.d.ts +1 -0
  437. package/dist/primitives/button.js +3 -0
  438. package/dist/primitives/checkbox-group.d.ts +1 -0
  439. package/dist/primitives/checkbox-group.js +4 -0
  440. package/dist/primitives/checkbox.d.ts +1 -0
  441. package/dist/primitives/checkbox.js +4 -0
  442. package/dist/primitives/collapsible.d.ts +1 -0
  443. package/dist/primitives/collapsible.js +5 -0
  444. package/dist/primitives/combobox.d.ts +1 -0
  445. package/dist/primitives/combobox.js +6 -0
  446. package/dist/primitives/context-menu.d.ts +1 -0
  447. package/dist/primitives/context-menu.js +6 -0
  448. package/dist/primitives/csp-provider.d.ts +1 -0
  449. package/dist/primitives/csp-provider.js +3 -0
  450. package/dist/primitives/dialog.d.ts +1 -0
  451. package/dist/primitives/dialog.js +9 -0
  452. package/dist/primitives/direction-provider.d.ts +1 -0
  453. package/dist/primitives/direction-provider.js +4 -0
  454. package/dist/primitives/drawer.d.ts +1 -0
  455. package/dist/primitives/drawer.js +6 -0
  456. package/dist/primitives/field.d.ts +1 -0
  457. package/dist/primitives/field.js +4 -0
  458. package/dist/primitives/fieldset.d.ts +1 -0
  459. package/dist/primitives/fieldset.js +3 -0
  460. package/dist/primitives/form.d.ts +1 -0
  461. package/dist/primitives/form.js +3 -0
  462. package/dist/primitives/input.d.ts +1 -0
  463. package/dist/primitives/input.js +4 -0
  464. package/dist/primitives/menu.d.ts +1 -0
  465. package/dist/primitives/menu.js +6 -0
  466. package/dist/primitives/menubar.d.ts +1 -0
  467. package/dist/primitives/menubar.js +3 -0
  468. package/dist/primitives/meter.d.ts +1 -0
  469. package/dist/primitives/meter.js +3 -0
  470. package/dist/primitives/navigation-menu.d.ts +1 -0
  471. package/dist/primitives/navigation-menu.js +3 -0
  472. package/dist/primitives/number-field.d.ts +1 -0
  473. package/dist/primitives/number-field.js +3 -0
  474. package/dist/primitives/otp-field.d.ts +3 -0
  475. package/dist/primitives/otp-field.js +4 -0
  476. package/dist/primitives/popover.d.ts +1 -0
  477. package/dist/primitives/popover.js +3 -0
  478. package/dist/primitives/preview-card.d.ts +1 -0
  479. package/dist/primitives/preview-card.js +3 -0
  480. package/dist/primitives/progress.d.ts +1 -0
  481. package/dist/primitives/progress.js +3 -0
  482. package/dist/primitives/radio-group.d.ts +1 -0
  483. package/dist/primitives/radio-group.js +4 -0
  484. package/dist/primitives/radio.d.ts +1 -0
  485. package/dist/primitives/radio.js +4 -0
  486. package/dist/primitives/scroll-area.d.ts +1 -0
  487. package/dist/primitives/scroll-area.js +4 -0
  488. package/dist/primitives/select.d.ts +1 -0
  489. package/dist/primitives/select.js +5 -0
  490. package/dist/primitives/separator.d.ts +1 -0
  491. package/dist/primitives/separator.js +4 -0
  492. package/dist/primitives/slider.d.ts +1 -0
  493. package/dist/primitives/slider.js +4 -0
  494. package/dist/primitives/switch.d.ts +1 -0
  495. package/dist/primitives/switch.js +4 -0
  496. package/dist/primitives/tabs.d.ts +1 -0
  497. package/dist/primitives/tabs.js +4 -0
  498. package/dist/primitives/toast.d.ts +1 -0
  499. package/dist/primitives/toast.js +5 -0
  500. package/dist/primitives/toggle-group.d.ts +1 -0
  501. package/dist/primitives/toggle-group.js +3 -0
  502. package/dist/primitives/toggle.d.ts +1 -0
  503. package/dist/primitives/toggle.js +3 -0
  504. package/dist/primitives/toolbar.d.ts +1 -0
  505. package/dist/primitives/toolbar.js +3 -0
  506. package/dist/primitives/tooltip.d.ts +1 -0
  507. package/dist/primitives/tooltip.js +4 -0
  508. package/dist/primitives.d.ts +42 -0
  509. package/dist/primitives.js +71 -0
  510. package/dist/registry.d.ts +2 -0
  511. package/dist/registry.js +1 -0
  512. package/dist/scripts/theme-generator/config.d.ts +2 -0
  513. package/dist/scripts/theme-generator/config.js +487 -0
  514. package/dist/scripts/theme-generator/types.d.ts +2 -0
  515. package/dist/scripts/theme-generator/types.js +1 -0
  516. package/dist/styles/kumo-binding.css +491 -0
  517. package/dist/styles/kumo-standalone.css +2 -0
  518. package/dist/styles/kumo.css +135 -0
  519. package/dist/styles/theme-code.css +142 -0
  520. package/dist/styles/theme-fedramp.css +31 -0
  521. package/dist/styles/theme-fldr.css +481 -0
  522. package/dist/styles/theme-kumo.css +464 -0
  523. package/dist/text-CRRU2g-u.d.ts +183 -0
  524. package/dist/theming.d.ts +224 -0
  525. package/dist/theming.js +386 -0
  526. package/dist/tooltip-D_vhi1PN.d.ts +105 -0
  527. package/dist/types-CdzJnnIl.d.ts +193 -0
  528. package/dist/types-Cl4HuOrB.d.ts +84 -0
  529. package/dist/utils.d.ts +4 -0
  530. package/dist/utils.js +7 -0
  531. package/package.json +481 -3
  532. package/scripts/component-registry/cache.ts +123 -0
  533. package/scripts/component-registry/discovery.ts +560 -0
  534. package/scripts/component-registry/example-cleanup.ts +168 -0
  535. package/scripts/component-registry/index.test.ts +1075 -0
  536. package/scripts/component-registry/index.ts +1065 -0
  537. package/scripts/component-registry/markdown-generator.ts +222 -0
  538. package/scripts/component-registry/metadata.ts +1030 -0
  539. package/scripts/component-registry/props-filter.ts +312 -0
  540. package/scripts/component-registry/schema-generator.ts +333 -0
  541. package/scripts/component-registry/sub-components.ts +393 -0
  542. package/scripts/component-registry/types.ts +158 -0
  543. package/scripts/component-registry/utils.ts +280 -0
  544. package/scripts/component-registry/variant-parser.ts +262 -0
  545. package/scripts/css-build.ts +107 -0
  546. package/scripts/format-generated.ts +12 -0
  547. package/scripts/generate-globe-land-mask.mjs +80 -0
  548. package/scripts/generate-primitives.ts +196 -0
  549. package/scripts/publish-fldr.ts +120 -0
  550. package/scripts/theme-generator/config.ts +666 -0
  551. package/scripts/theme-generator/generate-css.test.ts +30 -0
  552. package/scripts/theme-generator/generate-css.ts +352 -0
  553. package/scripts/theme-generator/index.ts +175 -0
  554. package/scripts/theme-generator/migrate.ts +560 -0
  555. package/scripts/theme-generator/types.ts +92 -0
package/ai/schemas.ts ADDED
@@ -0,0 +1,1239 @@
1
+ /**
2
+ * Auto-generated Zod schemas for Kumo components
3
+ * DO NOT EDIT - Generated by scripts/component-registry/index.ts
4
+ *
5
+ * These schemas enable runtime validation of AI-generated UI trees.
6
+ */
7
+
8
+ import { z } from "zod";
9
+
10
+ // SafeParseReturnType was removed in Zod v4, but we still want stable typing.
11
+ export type SafeParseResult<T> =
12
+ | { success: true; data: T; error?: never }
13
+ | { success: false; error: z.ZodError<any>; data?: never };
14
+
15
+ // =============================================================================
16
+ // Dynamic Value Schema (for data binding)
17
+ // =============================================================================
18
+
19
+ /**
20
+ * A value that can either be a literal or a reference to the data model.
21
+ * Example: "Hello" or { path: "/user/name" }
22
+ */
23
+ export const DynamicValueSchema = z.union([
24
+ z.string(),
25
+ z.number(),
26
+ z.boolean(),
27
+ z.null(),
28
+ z.object({ path: z.string() }),
29
+ ]);
30
+
31
+ export type DynamicValue<T = unknown> = T | { path: string };
32
+
33
+ // =============================================================================
34
+ // Visibility Condition Schemas
35
+ // =============================================================================
36
+
37
+ /**
38
+ * Visibility conditions for conditional rendering.
39
+ * Components can be shown/hidden based on data, auth, or logic expressions.
40
+ */
41
+
42
+ // Forward declaration for recursive types
43
+ // Note: Numeric comparisons use DynamicValue (not DynamicValue<number>) for Zod compatibility
44
+ export type LogicExpression =
45
+ | { and: LogicExpression[] }
46
+ | { or: LogicExpression[] }
47
+ | { not: LogicExpression }
48
+ | { path: string }
49
+ | { auth: "signedIn" | "signedOut" }
50
+ | { eq: [DynamicValue, DynamicValue] }
51
+ | { neq: [DynamicValue, DynamicValue] }
52
+ | { gt: [DynamicValue, DynamicValue] }
53
+ | { gte: [DynamicValue, DynamicValue] }
54
+ | { lt: [DynamicValue, DynamicValue] }
55
+ | { lte: [DynamicValue, DynamicValue] };
56
+
57
+ // Lazy schema for recursive logic expressions
58
+ const LogicExpressionSchema: z.ZodType<LogicExpression> = z.lazy(() =>
59
+ z.union([
60
+ z.object({ and: z.array(LogicExpressionSchema) }),
61
+ z.object({ or: z.array(LogicExpressionSchema) }),
62
+ z.object({ not: LogicExpressionSchema }),
63
+ z.object({ path: z.string() }),
64
+ z.object({ auth: z.enum(["signedIn", "signedOut"]) }),
65
+ z.object({ eq: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),
66
+ z.object({ neq: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),
67
+ z.object({ gt: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),
68
+ z.object({ gte: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),
69
+ z.object({ lt: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),
70
+ z.object({ lte: z.tuple([DynamicValueSchema, DynamicValueSchema]) }),
71
+ ])
72
+ );
73
+
74
+ export const VisibilityConditionSchema = z.union([
75
+ z.boolean(),
76
+ z.object({ path: z.string() }),
77
+ z.object({ auth: z.enum(["signedIn", "signedOut"]) }),
78
+ LogicExpressionSchema,
79
+ ]);
80
+
81
+ export type VisibilityCondition = z.infer<typeof VisibilityConditionSchema>;
82
+
83
+ // =============================================================================
84
+ // Action Schemas
85
+ // =============================================================================
86
+
87
+ /**
88
+ * Action confirmation dialog configuration
89
+ */
90
+ export const ActionConfirmSchema = z.object({
91
+ title: z.string(),
92
+ message: z.string(),
93
+ variant: z.enum(["default", "danger"]).optional(),
94
+ confirmLabel: z.string().optional(),
95
+ cancelLabel: z.string().optional(),
96
+ });
97
+
98
+ /**
99
+ * Action definition that AI can declare
100
+ */
101
+ export const ActionSchema = z.object({
102
+ name: z.string(),
103
+ params: z.record(z.string(), DynamicValueSchema).optional(),
104
+ confirm: ActionConfirmSchema.optional(),
105
+ onSuccess: z.object({ set: z.record(z.string(), DynamicValueSchema) }).optional(),
106
+ onError: z.object({ set: z.record(z.string(), DynamicValueSchema) }).optional(),
107
+ });
108
+
109
+ export type Action = z.infer<typeof ActionSchema>;
110
+
111
+ // =============================================================================
112
+ // Component Props Schemas
113
+ // =============================================================================
114
+
115
+ export const AutocompletePropsSchema = z.object({
116
+ items: z.array(z.unknown()), // Array of items to display in the dropdown
117
+ value: z.array(z.unknown()).optional(), // The controlled input value
118
+ open: z.boolean().optional(), // Whether the popup is open (controlled)
119
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Autocomplete content (input group, popup content)
120
+ className: z.string().optional(), // Additional CSS classes
121
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content (enables Field wrapper)
122
+ required: z.boolean().optional(), // Whether the field is required
123
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content to display next to the label
124
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text displayed below the field
125
+ error: z.unknown().optional(), // Error message or validation error object
126
+ });
127
+
128
+ export const BadgePropsSchema = z.object({
129
+ variant: z.enum(["primary", "secondary", "error", "warning", "success", "destructive", "info", "beta", "outline", "red", "green", "neutral", "orange", "purple", "teal", "teal-subtle", "blue"]).optional(), // Color variant of the badge. Recommended semantic variants: - `"primary"` — Primary badge - `"secondary"` — Secondary badge - `"error"` — Error badge - `"warning"` — Warning badge - `"success"` — Success badge - `"info"` — Info badge Additional token variants: - `"red"`, `"orange"`, `"green"`, `"teal"`, `"blue"`, `"purple"`, `"neutral"` - `"teal-subtle"`, `"neutral-subtle"` - `"inverted"` - `"outline"` — Bordered badge with the base background - `"beta"` — Dashed-border badge for beta/experimental features
130
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
131
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Content rendered inside the badge.
132
+ appearance: z.enum(["filled", "dot"]).optional(), // Visual appearance of the badge. - `"filled"` — Filled background using the variant color (default) - `"dot"` — Outlined badge with a colored circle dot. Only `success`, `warning`, `error`, and `neutral` variants show a dot. Dot badges do not accept icons.
133
+ icon: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Icon from `@phosphor-icons/react` or a React element. Rendered before children.
134
+ });
135
+
136
+ export const BannerPropsSchema = z.object({
137
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
138
+ id: z.string().optional(),
139
+ lang: z.string().optional(),
140
+ icon: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Icon element rendered before the banner content (e.g. from `@phosphor-icons/react`).
141
+ title: z.string().optional(), // Primary heading text for the banner. Use for i18n string injection.
142
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Secondary description text displayed below the title. Use for i18n string injection.
143
+ action: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Action slot for a CTA button or link. Compact banners render a Kumo `Link` inline with the description; CTAs render at the trailing end. Use `Banner.Action` for accent-aware CTAs that self-style to the banner variant; other nodes are rendered as-is. Multiple actions can be passed in a Fragment. Only used in structured mode (with `title` or `description`).
144
+ text: z.string().optional(),
145
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
146
+ variant: z.enum(["default", "alert", "error", "secondary"]).optional(), // Visual style of the banner. - `"default"` — Informational blue banner for general messages - `"alert"` — Warning yellow banner for cautionary messages - `"error"` — Error red banner for critical issues - `"secondary"` — Neutral banner for secondary messages
147
+ size: z.enum(["base", "sm"]).optional(), // Size of the banner. A `"sm"` banner uses tighter spacing and `text-sm`, renders a Kumo `Link` action inline with the description, and sets its `Banner.Action` children to the `"xs"` size — suited to dialogs and other tight spaces.
148
+ });
149
+
150
+ export const BreadcrumbsPropsSchema = z.object({
151
+ size: z.enum(["sm", "base"]).optional(), // Size of the breadcrumbs. - `"sm"` — Compact breadcrumbs for dense UIs - `"base"` — Default breadcrumbs size
152
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
153
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
154
+ });
155
+
156
+ export const BubbleMapPropsSchema = z.object({
157
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer (passed in for tree-shaking). Requires `MapChart`, `ScatterChart`, `TooltipComponent`, and a renderer registered via `echarts.use([...])`.
158
+ geoJson: z.unknown(), // GeoJSON `FeatureCollection` for the land base.
159
+ mapName: z.string().optional(), // Optional stable ECharts map registry name. Set this when the same GeoJSON is parsed into new object instances across mounts and should reuse one global ECharts registration.
160
+ data: z.array(z.unknown()), // Raw data rows. Coordinates/value/name are read via the accessors below.
161
+ lng: z.unknown(), // Longitude accessor (key of `T` or `(row) => number`).
162
+ lat: z.unknown(), // Latitude accessor (key of `T` or `(row) => number`).
163
+ value: z.unknown(), // Value accessor — drives bubble size.
164
+ name: z.unknown().optional(), // Optional name accessor — used by the default tooltip.
165
+ minRadius: z.number().optional(), // Smallest bubble radius in px. Default: `6`.
166
+ maxRadius: z.number().optional(), // Largest bubble radius in px. Default: `26`.
167
+ bubbleSize: z.unknown().optional(), // Explicit bubble radius `(value) => px`. Overrides the default `minRadius`/`maxRadius` scaling.
168
+ bubbleColor: z.unknown().optional(), // Bubble fill colour — constant or `(row) => color`. Defaults to the chart blue.
169
+ bubbleBorderColor: z.unknown().optional(), // Bubble border colour — constant or `(row) => color`. Default: `transparent`.
170
+ bubbleBorderWidth: z.unknown().optional(), // Bubble border width — constant or `(row) => px`. Default: `0`.
171
+ center: z.unknown().optional(), // Map center as `[longitude, latitude]`. Defaults to auto-fit.
172
+ zoom: z.number().optional(), // Zoom level — multiplies the auto-fit scale. Default: `1.25`.
173
+ roam: z.boolean().optional(), // Enable drag-to-pan and scroll-to-zoom. Default: `false`.
174
+ projection: z.unknown().optional(), // Geographic projection. Defaults to a latitude-clamped Mercator (flat 2D web-map look). Pass another d3-geo projection to override, or `null` for ECharts' raw equirectangular plotting. Use a stable reference (module-level or memoised): a new object each render rebuilds the view and resets a roamed/zoomed map.
175
+ showTooltip: z.boolean().optional(), // Show the tooltip. Default: `true`.
176
+ valueFormat: z.unknown().optional(), // Format the value for the default tooltip. Default: `toLocaleString()`.
177
+ tooltipFormatter: z.unknown().optional(), // Override the tooltip content for a row. Returns an HTML string rendered by ECharts' own tooltip. USE WITH CAUTION: the return value is injected as HTML. Escape any user-provided strings to avoid XSS.
178
+ aspectRatio: z.unknown().optional(), // Container aspect ratio as `width / height` (e.g. `1.7` or `"16 / 9"`). The height derives from the rendered width so the map fills the frame with no letterboxing. Defaults to the projected aspect of the displayed window, so the land fits edge-to-edge. Pass `height` to fix a pixel height instead.
179
+ height: z.number().optional(), // Fixed chart height in pixels. Overrides `aspectRatio` when set. Leave unset to size by aspect ratio (the default) so the map fills the container.
180
+ className: z.string().optional(),
181
+ isDarkMode: z.boolean().optional(),
182
+ });
183
+
184
+ export const ButtonPropsSchema = z.object({
185
+ shape: z.enum(["base", "square", "circle"]).optional(),
186
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(),
187
+ variant: z.enum(["primary", "secondary", "ghost", "destructive", "secondary-destructive", "outline"]).optional(),
188
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
189
+ className: z.string().optional(),
190
+ icon: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Icon from `@phosphor-icons/react` or a React element. Rendered before children.
191
+ loading: z.boolean().optional(), // Shows a loading spinner and disables interaction.
192
+ title: z.string().optional(),
193
+ id: z.string().optional(),
194
+ lang: z.string().optional(),
195
+ disabled: z.boolean().optional(),
196
+ name: z.string().optional(),
197
+ type: z.enum(["submit", "reset", "button"]).optional(),
198
+ value: z.unknown().optional(),
199
+ });
200
+
201
+ export const ButtonGroupPropsSchema = z.object({
202
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`. Use kumo semantic tokens only.
203
+ id: z.string().optional(),
204
+ lang: z.string().optional(),
205
+ title: z.string().optional(),
206
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // The tightly-coupled controls to join. Typically two `Button`s: a primary action and a dropdown trigger (a "split button").
207
+ });
208
+
209
+ export const ChartPropsSchema = z.object({
210
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer. Passed in rather than imported directly so the consumer controls which ECharts modules are bundled (tree-shaking).
211
+ options: z.unknown(), // ECharts option object — passed through to `chart.setOption()`
212
+ optionUpdateBehavior: z.unknown().optional(), // Additional options passed as the second argument to `chart.setOption()`. Defaults to `{ notMerge: false, lazyUpdate: true }`.
213
+ className: z.string().optional(), // Additional CSS classes applied to the chart container `<div>`
214
+ isDarkMode: z.boolean().optional(), // When `true`, initialises ECharts with its built-in dark theme. Changing this value after mount destroys and re-creates the chart instance.
215
+ height: z.number().optional(), // Height of the chart container in pixels. Defaults to `350`.
216
+ aspectRatio: z.unknown().optional(), // Container aspect ratio as `width / height` (e.g. `1.7` or `"16 / 9"`). When set, the height derives from the rendered width via CSS `aspect-ratio` and the `height` prop is ignored — useful for maps so the canvas matches the map's shape and fills the frame with no letterboxing.
217
+ });
218
+
219
+ export const CheckboxPropsSchema = z.object({
220
+ variant: z.enum(["default", "error"]).optional(), // Visual variant: "default" or "error" for validation failures (visual only, no error text)
221
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
222
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content to display next to the label via an info icon
223
+ controlFirst: z.boolean().optional(), // When true (default), checkbox appears before label. When false, label appears before checkbox.
224
+ checked: z.boolean().optional(), // Whether the checkbox is checked (controlled)
225
+ indeterminate: z.boolean().optional(), // Whether the checkbox is in indeterminate state
226
+ disabled: z.boolean().optional(), // Whether the checkbox is disabled
227
+ name: z.string().optional(), // Name for form submission
228
+ required: z.boolean().optional(), // Whether the field is required
229
+ className: z.string().optional(), // Additional class name
230
+ });
231
+
232
+ export const ChoroplethMapPropsSchema = z.object({
233
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer (passed in for tree-shaking). Requires `MapChart`, `VisualMapComponent`, `TooltipComponent`, and a renderer registered via `echarts.use([...])`.
234
+ geoJson: z.unknown(), // GeoJSON `FeatureCollection` whose regions are shaded by value.
235
+ mapName: z.string().optional(), // Optional stable ECharts map registry name. Set this when the same GeoJSON is parsed into new object instances across mounts and should reuse one global ECharts registration.
236
+ data: z.array(z.unknown()), // Raw data rows. The region key and value are read via the accessors below.
237
+ name: z.unknown(), // Region-key accessor (key of `T` or `(row) => string`). Each row is joined to a GeoJSON feature whose `nameProperty` equals this value.
238
+ value: z.unknown(), // Value accessor — drives the region's fill colour.
239
+ nameProperty: z.string().optional(), // GeoJSON feature property to join on. Default: `"name"`. Real-world data is often more reliably matched on an ISO-code property (e.g. `"iso_a2"`).
240
+ colorRange: z.array(z.string()).optional(), // Sequential colour ramp (low → high). Defaults to the Kumo choropleth blues, tuned to stay distinct from the no-data fill. Distributed across the continuous gradient.
241
+ noDataColor: z.string().optional(), // Fill for regions with no matching data row. Defaults to the neutral land grey.
242
+ showLegend: z.boolean().optional(), // Show the visualMap colour legend. Default: `false`.
243
+ showTooltip: z.boolean().optional(), // Show the tooltip. Default: `true`.
244
+ valueFormat: z.unknown().optional(), // Format the value for the default tooltip. Default: `toLocaleString()`.
245
+ tooltipFormatter: z.unknown().optional(), // Override the tooltip content for a row. Returns an HTML string rendered by ECharts' own tooltip. USE WITH CAUTION: the return value is injected as HTML. Escape any user-provided strings to avoid XSS.
246
+ center: z.unknown().optional(), // Map center as `[longitude, latitude]`. Defaults to auto-fit.
247
+ zoom: z.number().optional(), // Zoom level — multiplies the auto-fit scale. Default: `1.25`.
248
+ roam: z.boolean().optional(), // Enable drag-to-pan and scroll-to-zoom. Default: `false`.
249
+ projection: z.unknown().optional(), // Geographic projection. Defaults to a latitude-clamped Mercator (flat 2D web-map look). Pass another d3-geo projection to override, or `null` for ECharts' raw equirectangular plotting. Use a stable reference (module-level or memoised): a new object each render rebuilds the view and resets a roamed/zoomed map.
250
+ aspectRatio: z.unknown().optional(), // Container aspect ratio as `width / height` (e.g. `1.7` or `"16 / 9"`). The height derives from the rendered width so the map fills the frame with no letterboxing. Defaults to the projected aspect of the displayed window, so the regions fit edge-to-edge. Pass `height` to fix a pixel height instead.
251
+ height: z.number().optional(), // Fixed chart height in pixels. Overrides `aspectRatio` when set. Leave unset to size by aspect ratio (the default) so the map fills the container.
252
+ className: z.string().optional(),
253
+ isDarkMode: z.boolean().optional(),
254
+ });
255
+
256
+ export const ClipboardTextPropsSchema = z.object({
257
+ size: z.enum(["sm", "base", "lg"]).optional(), // Size of the clipboard text field. - `"sm"` — Small clipboard text for compact UIs - `"base"` — Default clipboard text size - `"lg"` — Large clipboard text for prominent display
258
+ text: z.string(), // The text to display and copy to clipboard.
259
+ textToCopy: z.string().optional(), // If provided, this text will be copied to clipboard instead of the `text` prop.
260
+ masked: z.boolean().optional(), // Masks the text initially and adds a control to reveal or hide it.
261
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
262
+ tooltip: z.unknown().optional(), // Tooltip config. Shows tooltip on hover, anchored toast on click.
263
+ labels: z.unknown().optional(), // Accessible labels for i18n.
264
+ });
265
+
266
+ export const CloudflareLogoPropsSchema = z.object({
267
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
268
+ className: z.string().optional(),
269
+ height: z.unknown().optional(),
270
+ id: z.string().optional(),
271
+ lang: z.string().optional(),
272
+ media: z.string().optional(),
273
+ method: z.string().optional(),
274
+ name: z.string().optional(),
275
+ target: z.string().optional(),
276
+ type: z.string().optional(),
277
+ width: z.unknown().optional(),
278
+ accentHeight: z.unknown().optional(),
279
+ accumulate: z.enum(["none", "sum"]).optional(),
280
+ additive: z.enum(["replace", "sum"]).optional(),
281
+ alignmentBaseline: z.enum(["auto", "baseline", "before-edge", "text-before-edge", "middle", "central", "after-edge", "text-after-edge", "ideographic", "alphabetic", "hanging", "mathematical", "inherit"]).optional(),
282
+ allowReorder: z.enum(["no", "yes"]).optional(),
283
+ alphabetic: z.unknown().optional(),
284
+ amplitude: z.unknown().optional(),
285
+ arabicForm: z.enum(["initial", "medial", "terminal", "isolated"]).optional(),
286
+ ascent: z.unknown().optional(),
287
+ attributeName: z.string().optional(),
288
+ attributeType: z.string().optional(),
289
+ autoReverse: z.unknown().optional(),
290
+ azimuth: z.unknown().optional(),
291
+ baseFrequency: z.unknown().optional(),
292
+ baselineShift: z.unknown().optional(),
293
+ baseProfile: z.unknown().optional(),
294
+ bbox: z.unknown().optional(),
295
+ begin: z.unknown().optional(),
296
+ bias: z.unknown().optional(),
297
+ by: z.unknown().optional(),
298
+ calcMode: z.unknown().optional(),
299
+ capHeight: z.unknown().optional(),
300
+ clip: z.unknown().optional(),
301
+ clipPath: z.string().optional(),
302
+ clipPathUnits: z.unknown().optional(),
303
+ clipRule: z.unknown().optional(),
304
+ colorInterpolation: z.unknown().optional(),
305
+ colorInterpolationFilters: z.enum(["auto", "sRGB", "linearRGB", "inherit"]).optional(),
306
+ colorProfile: z.unknown().optional(),
307
+ colorRendering: z.unknown().optional(),
308
+ contentScriptType: z.unknown().optional(),
309
+ contentStyleType: z.unknown().optional(),
310
+ cursor: z.unknown().optional(),
311
+ cx: z.unknown().optional(),
312
+ cy: z.unknown().optional(),
313
+ d: z.string().optional(),
314
+ decelerate: z.unknown().optional(),
315
+ descent: z.unknown().optional(),
316
+ diffuseConstant: z.unknown().optional(),
317
+ direction: z.unknown().optional(),
318
+ display: z.unknown().optional(),
319
+ divisor: z.unknown().optional(),
320
+ dominantBaseline: z.enum(["auto", "use-script", "no-change", "reset-size", "ideographic", "alphabetic", "hanging", "mathematical", "central", "middle", "text-after-edge", "text-before-edge", "inherit"]).optional(),
321
+ dur: z.unknown().optional(),
322
+ dx: z.unknown().optional(),
323
+ dy: z.unknown().optional(),
324
+ edgeMode: z.unknown().optional(),
325
+ elevation: z.unknown().optional(),
326
+ enableBackground: z.unknown().optional(),
327
+ end: z.unknown().optional(),
328
+ exponent: z.unknown().optional(),
329
+ externalResourcesRequired: z.unknown().optional(),
330
+ fill: z.string().optional(),
331
+ fillOpacity: z.unknown().optional(),
332
+ fillRule: z.enum(["nonzero", "evenodd", "inherit"]).optional(),
333
+ filter: z.string().optional(),
334
+ filterRes: z.unknown().optional(),
335
+ filterUnits: z.unknown().optional(),
336
+ floodColor: z.unknown().optional(),
337
+ floodOpacity: z.unknown().optional(),
338
+ focusable: z.unknown().optional(),
339
+ fontFamily: z.string().optional(),
340
+ fontSize: z.unknown().optional(),
341
+ fontSizeAdjust: z.unknown().optional(),
342
+ fontStretch: z.unknown().optional(),
343
+ fontStyle: z.unknown().optional(),
344
+ fontVariant: z.unknown().optional(),
345
+ fontWeight: z.unknown().optional(),
346
+ format: z.unknown().optional(),
347
+ fr: z.unknown().optional(),
348
+ from: z.unknown().optional(),
349
+ fx: z.unknown().optional(),
350
+ fy: z.unknown().optional(),
351
+ g1: z.unknown().optional(),
352
+ g2: z.unknown().optional(),
353
+ glyphName: z.unknown().optional(),
354
+ glyphOrientationHorizontal: z.unknown().optional(),
355
+ glyphOrientationVertical: z.unknown().optional(),
356
+ glyphRef: z.unknown().optional(),
357
+ gradientTransform: z.string().optional(),
358
+ gradientUnits: z.string().optional(),
359
+ hanging: z.unknown().optional(),
360
+ horizAdvX: z.unknown().optional(),
361
+ horizOriginX: z.unknown().optional(),
362
+ href: z.string().optional(),
363
+ ideographic: z.unknown().optional(),
364
+ imageRendering: z.unknown().optional(),
365
+ in2: z.unknown().optional(),
366
+ in: z.string().optional(),
367
+ intercept: z.unknown().optional(),
368
+ k1: z.unknown().optional(),
369
+ k2: z.unknown().optional(),
370
+ k3: z.unknown().optional(),
371
+ k4: z.unknown().optional(),
372
+ k: z.unknown().optional(),
373
+ kernelMatrix: z.unknown().optional(),
374
+ kernelUnitLength: z.unknown().optional(),
375
+ kerning: z.unknown().optional(),
376
+ keyPoints: z.unknown().optional(),
377
+ keySplines: z.unknown().optional(),
378
+ keyTimes: z.unknown().optional(),
379
+ lengthAdjust: z.unknown().optional(),
380
+ letterSpacing: z.unknown().optional(),
381
+ lightingColor: z.unknown().optional(),
382
+ limitingConeAngle: z.unknown().optional(),
383
+ local: z.unknown().optional(),
384
+ markerEnd: z.string().optional(),
385
+ markerHeight: z.unknown().optional(),
386
+ markerMid: z.string().optional(),
387
+ markerStart: z.string().optional(),
388
+ markerUnits: z.unknown().optional(),
389
+ markerWidth: z.unknown().optional(),
390
+ mask: z.string().optional(),
391
+ maskContentUnits: z.unknown().optional(),
392
+ maskUnits: z.unknown().optional(),
393
+ mathematical: z.unknown().optional(),
394
+ mode: z.unknown().optional(),
395
+ numOctaves: z.unknown().optional(),
396
+ offset: z.unknown().optional(),
397
+ opacity: z.unknown().optional(),
398
+ operator: z.unknown().optional(),
399
+ order: z.unknown().optional(),
400
+ orient: z.unknown().optional(),
401
+ orientation: z.unknown().optional(),
402
+ origin: z.unknown().optional(),
403
+ overflow: z.unknown().optional(),
404
+ overlinePosition: z.unknown().optional(),
405
+ overlineThickness: z.unknown().optional(),
406
+ paintOrder: z.unknown().optional(),
407
+ panose1: z.unknown().optional(),
408
+ path: z.string().optional(),
409
+ pathLength: z.unknown().optional(),
410
+ patternContentUnits: z.string().optional(),
411
+ patternTransform: z.unknown().optional(),
412
+ patternUnits: z.string().optional(),
413
+ pointerEvents: z.unknown().optional(),
414
+ points: z.string().optional(),
415
+ pointsAtX: z.unknown().optional(),
416
+ pointsAtY: z.unknown().optional(),
417
+ pointsAtZ: z.unknown().optional(),
418
+ preserveAlpha: z.unknown().optional(),
419
+ preserveAspectRatio: z.string().optional(),
420
+ primitiveUnits: z.unknown().optional(),
421
+ r: z.unknown().optional(),
422
+ radius: z.unknown().optional(),
423
+ refX: z.unknown().optional(),
424
+ refY: z.unknown().optional(),
425
+ renderingIntent: z.unknown().optional(),
426
+ repeatCount: z.unknown().optional(),
427
+ repeatDur: z.unknown().optional(),
428
+ requiredExtensions: z.unknown().optional(),
429
+ requiredFeatures: z.unknown().optional(),
430
+ restart: z.unknown().optional(),
431
+ result: z.string().optional(),
432
+ rotate: z.unknown().optional(),
433
+ rx: z.unknown().optional(),
434
+ ry: z.unknown().optional(),
435
+ scale: z.unknown().optional(),
436
+ seed: z.unknown().optional(),
437
+ shapeRendering: z.unknown().optional(),
438
+ slope: z.unknown().optional(),
439
+ spacing: z.unknown().optional(),
440
+ specularConstant: z.unknown().optional(),
441
+ specularExponent: z.unknown().optional(),
442
+ speed: z.unknown().optional(),
443
+ spreadMethod: z.string().optional(),
444
+ startOffset: z.unknown().optional(),
445
+ stdDeviation: z.unknown().optional(),
446
+ stemh: z.unknown().optional(),
447
+ stemv: z.unknown().optional(),
448
+ stitchTiles: z.unknown().optional(),
449
+ stopColor: z.string().optional(),
450
+ stopOpacity: z.unknown().optional(),
451
+ strikethroughPosition: z.unknown().optional(),
452
+ strikethroughThickness: z.unknown().optional(),
453
+ string: z.unknown().optional(),
454
+ stroke: z.string().optional(),
455
+ strokeDasharray: z.unknown().optional(),
456
+ strokeDashoffset: z.unknown().optional(),
457
+ strokeLinecap: z.enum(["butt", "round", "square", "inherit"]).optional(),
458
+ strokeLinejoin: z.enum(["miter", "round", "bevel", "inherit"]).optional(),
459
+ strokeMiterlimit: z.unknown().optional(),
460
+ strokeOpacity: z.unknown().optional(),
461
+ strokeWidth: z.unknown().optional(),
462
+ surfaceScale: z.unknown().optional(),
463
+ systemLanguage: z.unknown().optional(),
464
+ tableValues: z.unknown().optional(),
465
+ targetX: z.unknown().optional(),
466
+ targetY: z.unknown().optional(),
467
+ textAnchor: z.enum(["start", "middle", "end", "inherit"]).optional(),
468
+ textDecoration: z.unknown().optional(),
469
+ textLength: z.unknown().optional(),
470
+ textRendering: z.unknown().optional(),
471
+ to: z.unknown().optional(),
472
+ transform: z.string().optional(),
473
+ u1: z.unknown().optional(),
474
+ u2: z.unknown().optional(),
475
+ underlinePosition: z.unknown().optional(),
476
+ underlineThickness: z.unknown().optional(),
477
+ unicode: z.unknown().optional(),
478
+ unicodeBidi: z.unknown().optional(),
479
+ unicodeRange: z.unknown().optional(),
480
+ unitsPerEm: z.unknown().optional(),
481
+ vAlphabetic: z.unknown().optional(),
482
+ values: z.string().optional(),
483
+ vectorEffect: z.unknown().optional(),
484
+ version: z.string().optional(),
485
+ vertAdvY: z.unknown().optional(),
486
+ vertOriginX: z.unknown().optional(),
487
+ vertOriginY: z.unknown().optional(),
488
+ vHanging: z.unknown().optional(),
489
+ vIdeographic: z.unknown().optional(),
490
+ viewBox: z.string().optional(),
491
+ viewTarget: z.unknown().optional(),
492
+ visibility: z.unknown().optional(),
493
+ vMathematical: z.unknown().optional(),
494
+ widths: z.unknown().optional(),
495
+ wordSpacing: z.unknown().optional(),
496
+ writingMode: z.unknown().optional(),
497
+ x1: z.unknown().optional(),
498
+ x2: z.unknown().optional(),
499
+ x: z.unknown().optional(),
500
+ xChannelSelector: z.string().optional(),
501
+ xHeight: z.unknown().optional(),
502
+ xlinkActuate: z.string().optional(),
503
+ xlinkArcrole: z.string().optional(),
504
+ xlinkHref: z.string().optional(),
505
+ xlinkRole: z.string().optional(),
506
+ xlinkShow: z.string().optional(),
507
+ xlinkTitle: z.string().optional(),
508
+ xlinkType: z.string().optional(),
509
+ xmlBase: z.string().optional(),
510
+ xmlLang: z.string().optional(),
511
+ xmlns: z.string().optional(),
512
+ xmlnsXlink: z.string().optional(),
513
+ xmlSpace: z.string().optional(),
514
+ y1: z.unknown().optional(),
515
+ y2: z.unknown().optional(),
516
+ y: z.unknown().optional(),
517
+ yChannelSelector: z.string().optional(),
518
+ z: z.unknown().optional(),
519
+ zoomAndPan: z.string().optional(),
520
+ variant: z.enum(["glyph", "full"]).optional(), // Logo variant - `glyph`: Cloud icon only - `full`: Cloud icon with "CLOUDFLARE" wordmark below
521
+ });
522
+
523
+ export const CodePropsSchema = z.object({
524
+ lang: z.enum(["ts", "tsx", "jsonc", "bash", "css"]).optional(), // Language hint for the code content. - `"ts"` — TypeScript code - `"tsx"` — TypeScript JSX code - `"jsonc"` — JSON with comments - `"bash"` — Shell/Bash commands - `"css"` — CSS styles
525
+ code: z.string(), // The code string to display.
526
+ values: z.unknown().optional(), // Template values for `{{key}}` interpolation. Values with `highlight: true` are visually emphasized.
527
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
528
+ });
529
+
530
+ export const CollapsiblePropsSchema = z.object({
531
+ className: z.string().optional(), // Additional CSS classes
532
+ onOpenChange: z.unknown().optional(), // Callback when collapsed state changes
533
+ });
534
+
535
+ export const ComboboxPropsSchema = z.object({
536
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Size of the combobox trigger. Matches Input component sizes. - `"xs"` — Extra small for compact UIs (h-5 / 20px) - `"sm"` — Small for secondary fields (h-6.5 / 26px) - `"base"` — Default size (h-9 / 36px) - `"lg"` — Large for prominent fields (h-10 / 40px)
537
+ inputSide: z.enum(["right", "top"]).optional(), // Position of the text input relative to chips in multi-select mode. - `"right"` — Input inline to the right of chips - `"top"` — Input above chips
538
+ items: z.array(z.unknown()), // Array of items to display in the dropdown
539
+ value: z.array(z.unknown()).optional(), // Currently selected value(s)
540
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Combobox content (trigger, content, items)
541
+ className: z.string().optional(), // Additional CSS classes
542
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content for the combobox (enables Field wrapper) - can be a string or any React node
543
+ required: z.boolean().optional(), // Whether the combobox is required
544
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content to display next to the label via an info icon
545
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text displayed below the combobox
546
+ error: z.unknown().optional(), // Error message or validation error object
547
+ onValueChange: z.unknown().optional(), // Callback when selection changes
548
+ multiple: z.boolean().optional(), // Allow multiple selections
549
+ isItemEqualToValue: z.unknown().optional(), // Custom equality function for comparing items
550
+ });
551
+
552
+ export const CommandPalettePropsSchema = z.object({
553
+ open: z.boolean(), // Whether the dialog is open
554
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Child content - typically one or more Panel components
555
+ container: z.unknown().optional(), // Container element for the portal. Use this to render the command palette inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
556
+ });
557
+
558
+ export const DatePickerPropsSchema = z.object({
559
+ className: z.string().optional(), // Additional CSS classes
560
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Child elements
561
+ });
562
+
563
+ export const DateRangePickerPropsSchema = z.object({
564
+ size: z.enum(["sm", "base", "lg"]).optional(), // Calendar size. - `"sm"` — Compact calendar for tight spaces - `"base"` — Default calendar size - `"lg"` — Large calendar for prominent date selection
565
+ variant: z.enum(["default", "subtle"]).optional(), // Visual variant. - `"default"` — Standard appearance with overlay background - `"subtle"` — Minimal background
566
+ timezone: z.string().optional(), // Display timezone string shown in the footer.
567
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
568
+ onStartDateChange: z.unknown().optional(), // Callback when start date changes
569
+ onEndDateChange: z.unknown().optional(), // Callback when end date changes
570
+ });
571
+
572
+ export const DialogPropsSchema = z.object({
573
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
574
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Dialog content (typically Title, Description, Close, and action buttons).
575
+ container: z.unknown().optional(), // Container element for the portal. Use this to render the dialog inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
576
+ size: z.enum(["base", "sm", "lg", "xl"]).optional(), // Dialog width. - `"sm"` — Small (288px) for simple confirmations - `"base"` — Default (384px) - `"lg"` — Large (512px) for complex content - `"xl"` — Extra large (768px) for detailed views
577
+ });
578
+
579
+ export const DropdownMenuPropsSchema = z.object({
580
+ variant: z.enum(["default", "danger"]).optional(), // Visual style of the dropdown item. - `"default"` — Standard item appearance - `"danger"` — Destructive action with red text
581
+ });
582
+
583
+ export const EmptyPropsSchema = z.object({
584
+ size: z.enum(["sm", "base", "lg"]).optional(), // Size of the empty state container. - `"sm"` — Compact empty state for smaller containers - `"base"` — Default empty state size - `"lg"` — Large empty state for prominent placement
585
+ icon: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`).
586
+ title: z.string(), // Primary heading text for the empty state.
587
+ description: z.string().optional(), // Secondary description text displayed below the title.
588
+ commandLine: z.string().optional(), // Shell command displayed in a copyable code block.
589
+ contents: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Additional content (buttons, links) rendered below the description.
590
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
591
+ });
592
+
593
+ export const FieldPropsSchema = z.object({
594
+ controlFirst: z.boolean().optional(), // When `true`, places the control before the label (for checkbox/switch layouts).
595
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // The form control element(s) to wrap (Input, Select, Checkbox, etc.).
596
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // The label content — can be a string or any React node.
597
+ required: z.boolean().optional(), // When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
598
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content displayed next to the label via an info icon.
599
+ error: z.unknown().optional(), // Validation error with a message and a browser `ValidityState` match key.
600
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text displayed below the control (hidden when `error` is present).
601
+ hideLabel: z.boolean().optional(), // When `true`, Field renders layout, description, and error but skips the `<label>` element. Use when the child component provides its own accessible label (e.g. Select uses Base UI's `Select.Label` to avoid hover/focus coupling from native `<label>`).
602
+ });
603
+
604
+ export const GlobeMapPropsSchema = z.object({
605
+ landColor: z.string().optional(), // Stroke color for the hatched land. Defaults to the neutral Kumo map area color.
606
+ landHatchSpacing: z.number().optional(), // Spacing between land hatch lines in view-box pixels. Default: `10`.
607
+ oceanColor: z.string().optional(), // Fill behind the land and graticule. Default: the Kumo base surface.
608
+ markers: z.array(z.unknown()).optional(), // Geographic points drawn above the land. Points fade at the horizon and back-facing points are hidden.
609
+ markerColor: z.string().optional(), // Default marker fill. Defaults to the Kumo chart blue.
610
+ markerRadius: z.number().optional(), // Default marker radius in view-box pixels. Default: `7`.
611
+ defaultRotation: z.array(z.unknown()).optional(), // Initial globe rotation as `[longitude, latitude, roll]`.
612
+ autoRotate: z.boolean().optional(), // Continuously rotate the globe horizontally. Default: `false`.
613
+ autoRotateSpeed: z.number().optional(), // Horizontal auto-rotation speed in degrees per second. Default: `4`.
614
+ showGraticule: z.boolean().optional(), // Draw latitude and longitude guides. Default: `false`.
615
+ showTooltip: z.boolean().optional(), // Show the Kumo-styled marker tooltip. Default: `true`.
616
+ height: z.number().optional(), // Fixed component height. Otherwise the globe uses a square aspect ratio.
617
+ className: z.string().optional(),
618
+ isDarkMode: z.boolean().optional(),
619
+ });
620
+
621
+ export const GridPropsSchema = z.object({
622
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Grid items to render.
623
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
624
+ id: z.string().optional(),
625
+ lang: z.string().optional(),
626
+ title: z.string().optional(),
627
+ mobileDivider: z.boolean().optional(), // Show dividers between grid items on mobile (only works with `"4up"` variant).
628
+ gap: z.enum(["none", "sm", "base", "lg"]).optional(), // Gap size between grid items. - `"none"` — No gap - `"sm"` — 12px gap - `"base"` — Responsive gap (8px → 24px → 32px) - `"lg"` — 32px gap
629
+ variant: z.enum(["2up", "side-by-side", "2-1", "1-2", "1-3up", "3up", "4up", "6up", "1-2-4up"]).optional(), // Responsive column layout variant. - `"2up"` — 1 col → 2 cols at md - `"side-by-side"` — Always 2 cols - `"2-1"` — 66%/33% split at md - `"1-2"` — 33%/66% split at md - `"3up"` — 1 → 2 → 3 cols - `"4up"` — 1 → 2 → 3 → 4 cols - `"6up"` — 2 → 3 → 4 → 6 cols - `"1-2-4up"` — 1 → 2 → 4 cols
630
+ });
631
+
632
+ export const InlineCopyTextPropsSchema = z.object({
633
+ labels: z.unknown().optional(), // Accessible labels for localization.
634
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Content to display. String children are copied unless `value` is provided.
635
+ value: z.string().optional(), // The value to copy. Required when `children` is not a string.
636
+ size: z.unknown().optional(), // Text size. Supported values depend on the text variant.
637
+ bold: z.boolean().optional(), // Whether to use medium font weight. Only applies to body text variants.
638
+ as: z.enum(["h1", "h2", "h3", "h4", "h5", "h6", "p", "span", "label", "dt", "dd", "li", "figcaption", "legend", "pre", "code", "em", "strong", "small", "abbr", "time"]).optional(), // The HTML element to render. Accepts headings (`"h1"`–`"h6"`), block text (`"p"`, `"pre"`), inline text (`"span"`, `"code"`, `"em"`, `"strong"`, `"small"`, `"abbr"`, `"time"`), form-related (`"label"`, `"legend"`), list/definition (`"dt"`, `"dd"`, `"li"`), and `"figcaption"`. - **Optional** for `"heading"` (defaults to `"span"`). Pass the heading element that reflects this text's place in the document outline. - **Required** for deprecated heading variants (`"heading1"`, `"heading2"`, `"heading3"`). - **Optional** for body variants (defaults to `"p"`) and monospace variants (defaults to `"span"`).
639
+ truncate: z.boolean().optional(), // Whether to truncate overflowing text with an ellipsis. Adds `truncate min-w-0` classes.
640
+ disabled: z.boolean().optional(),
641
+ name: z.string().optional(),
642
+ type: z.enum(["submit", "reset", "button"]).optional(),
643
+ className: z.string().optional(),
644
+ id: z.string().optional(),
645
+ lang: z.string().optional(),
646
+ title: z.string().optional(),
647
+ variant: z.unknown().optional(), // Text style variant. Supports every Text variant except heading variants.
648
+ });
649
+
650
+ export const InputPropsSchema = z.object({
651
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content for the input (enables Field wrapper) - can be a string or any React node
652
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content to display next to the label via an info icon
653
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text displayed below the input
654
+ error: z.unknown().optional(), // Error message or validation error object
655
+ passwordManagerIgnore: z.boolean().optional(), // Suppress browser extension password manager overlays on non-credential inputs.
656
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Input size. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default size - `"lg"` — Large for prominent fields
657
+ variant: z.enum(["default", "error"]).optional(), // Visual variant. - `"default"` — Standard input - `"error"` — Error state for validation failures
658
+ });
659
+
660
+ export const InputAreaPropsSchema = z.object({
661
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Input size. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default size - `"lg"` — Large for prominent fields
662
+ variant: z.enum(["default", "error"]).optional(), // Visual variant of the textarea.
663
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content for the textarea (enables Field wrapper) — can be a string or any React node.
664
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content to display next to the label via an info icon.
665
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text displayed below the textarea.
666
+ error: z.unknown().optional(), // Error message or validation error object.
667
+ autoResize: z.boolean().optional(), // Automatically resize the textarea based on its content.
668
+ minRows: z.number().optional(), // Minimum number of rows to display when `autoResize` is enabled.
669
+ maxRows: z.number().optional(), // Maximum number of rows to grow to when `autoResize` is enabled; content beyond this scrolls.
670
+ onValueChange: z.unknown().optional(), // Callback fired with the new string value on every change.
671
+ });
672
+
673
+ export const InputGroupPropsSchema = z.object({
674
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // The label content — can be a string or any React node.
675
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text displayed below the control (hidden when `error` is present).
676
+ error: z.unknown().optional(), // Validation error with a message and a browser `ValidityState` match key.
677
+ required: z.boolean().optional(), // When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
678
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content displayed next to the label via an info icon.
679
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
680
+ className: z.string().optional(),
681
+ id: z.string().optional(),
682
+ lang: z.string().optional(),
683
+ title: z.string().optional(),
684
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(),
685
+ disabled: z.boolean().optional(),
686
+ });
687
+
688
+ export const LabelPropsSchema = z.object({
689
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // The label content — can be a string or any React node.
690
+ showOptional: z.boolean().optional(), // When `true`, shows gray "(optional)" text after the label.
691
+ optionalLabel: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Content shown when `showOptional` is `true`.
692
+ tooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content displayed next to the label via an info icon.
693
+ tooltipAriaLabel: z.string().optional(), // Accessible label for the tooltip button.
694
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
695
+ htmlFor: z.string().optional(), // The id of the form element this label is associated with
696
+ asContent: z.boolean().optional(), // When true, only renders the inline content (indicators, tooltip) without the outer label element with font styling. Useful when composed inside another label element that already provides the text styling.
697
+ });
698
+
699
+ export const LayerCardPropsSchema = z.object({
700
+ render: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
701
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
702
+ className: z.string().optional(),
703
+ id: z.string().optional(),
704
+ lang: z.string().optional(),
705
+ title: z.string().optional(),
706
+ });
707
+
708
+ export const LayerDialogPropsSchema = z.object({
709
+ dismissDisabled: z.boolean().optional(), // Prevent every user-initiated dismissal while dialog work is pending.
710
+ });
711
+
712
+ export const LinkPropsSchema = z.object({
713
+ variant: z.enum(["inline", "current", "plain"]).optional(), // Visual style of the link. - `"inline"` — Inline text link that flows with content - `"current"` — Link that inherits color from parent text - `"plain"` — Link without underline decoration
714
+ to: z.string().optional(),
715
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
716
+ className: z.string().optional(),
717
+ id: z.string().optional(),
718
+ lang: z.string().optional(),
719
+ title: z.string().optional(),
720
+ download: z.unknown().optional(),
721
+ href: z.string().optional(),
722
+ hrefLang: z.string().optional(),
723
+ media: z.string().optional(),
724
+ ping: z.string().optional(),
725
+ target: z.unknown().optional(),
726
+ type: z.string().optional(),
727
+ referrerPolicy: z.enum(["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"]).optional(),
728
+ render: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
729
+ });
730
+
731
+ export const LoaderPropsSchema = z.object({
732
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
733
+ size: z.enum(["sm", "base", "lg"]).optional(), // Size of the spinner. Use a preset name or a custom pixel number. - `"sm"` — 16px, for inline use - `"base"` — 24px, default size - `"lg"` — 32px, for prominent loading states
734
+ });
735
+
736
+ export const MenuBarPropsSchema = z.object({
737
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
738
+ isActive: z.unknown().optional(), // The currently active option value — matched against option index or `id`.
739
+ options: z.array(z.unknown()), // Array of menu option configurations.
740
+ optionIds: z.boolean().optional(), // When true, each option's `id` field is used for matching instead of its array index.
741
+ });
742
+
743
+ export const MeterPropsSchema = z.object({
744
+ customValue: z.string().optional(), // Custom formatted value text (e.g. "750 / 1,000") displayed instead of percentage.
745
+ label: z.string(), // Label text displayed above the meter track.
746
+ showValue: z.boolean().optional(), // Whether to display the percentage value next to the label.
747
+ trackClassName: z.string().optional(), // Additional CSS classes for the track (background bar).
748
+ indicatorClassName: z.string().optional(), // Additional CSS classes for the indicator (filled bar).
749
+ value: z.number().optional(), // Current value of the meter
750
+ max: z.number().optional(), // Maximum value of the meter (default: 100)
751
+ min: z.number().optional(), // Minimum value of the meter (default: 0)
752
+ });
753
+
754
+ export const PaginationPropsSchema = z.object({
755
+ setPage: z.unknown(), // Callback when page changes
756
+ page: z.number().optional(), // Current page number (1-indexed).
757
+ perPage: z.number().optional(), // Number of items displayed per page.
758
+ totalCount: z.number().optional(), // Total number of items across all pages.
759
+ hasNextPage: z.boolean().optional(), // Whether another page exists when the total count is unknown. Ignored when `totalCount` is provided. Unknown totals use sequential controls only.
760
+ className: z.string().optional(), // Additional CSS classes for the container
761
+ labels: z.unknown().optional(), // Labels for internationalization of aria-labels. All labels have English defaults. For visible text like "Showing X of Y", use render props on sub-components: - `Pagination.Info` children for the info text - `Pagination.PageSize` label prop for the "Per page:" text
762
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Compound component children for custom layouts. Use Pagination.Info, Pagination.PageSize, Pagination.Controls, and Pagination.Separator.
763
+ controls: z.enum(["full", "simple"]).optional(),
764
+ text: z.unknown().optional(),
765
+ });
766
+
767
+ export const PopoverPropsSchema = z.object({
768
+ side: z.enum(["top", "bottom", "left", "right"]).optional(), // Which side of the trigger the popover appears on. - `"top"` — Above the trigger - `"bottom"` — Below the trigger - `"left"` — Left of the trigger - `"right"` — Right of the trigger
769
+ });
770
+
771
+ export const RadioPropsSchema = z.object({
772
+ variant: z.enum(["default", "error"]).optional(),
773
+ appearance: z.unknown().optional(), // Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state - `"segmented"` — Compact single-line group for short options Individual items can override default and card appearances. Segmented is group-only and cannot be overridden by individual items.
774
+ legend: z.string().optional(), // Legend text for the group (required for accessibility). For more control over legend styling, omit this prop and use `<Radio.Legend>` as a child instead.
775
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]), // Child Radio.Item components (and optionally a Radio.Legend)
776
+ orientation: z.unknown().optional(), // Layout direction of the radio items
777
+ error: z.string().optional(), // Error message for the group
778
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text for the group
779
+ value: z.unknown().optional(), // The controlled value of the selected radio item.
780
+ disabled: z.boolean().optional(), // Whether all radios in the group are disabled
781
+ controlPosition: z.unknown().optional(), // Position of radio control relative to label: "start" puts radio before label, "end" puts label before radio. Defaults to "start" for default appearance and "end" for card appearance.
782
+ name: z.string().optional(), // Form submission name for the radio group
783
+ className: z.string().optional(), // Additional CSS classes
784
+ defaultValue: z.unknown().optional(), // The uncontrolled initial value of the selected radio item.
785
+ onValueChange: z.unknown().optional(), // Callback fired when the selected value changes. The second argument carries native event details about the interaction.
786
+ });
787
+
788
+ export const SankeyChartPropsSchema = z.object({
789
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer. Passed in rather than imported directly so the consumer controls which ECharts modules are bundled (tree-shaking).
790
+ nodes: z.array(z.unknown()), // Array of nodes in the Sankey diagram
791
+ links: z.array(z.unknown()), // Array of links connecting nodes by index
792
+ height: z.number().optional(), // Height of the chart in pixels
793
+ showNodeValues: z.boolean().optional(), // Show node values above labels (default: true if any node has a value)
794
+ nodeLabelLayout: z.unknown().optional(), // Layout for node labels when showNodeValues is true. - 'stacked': value on top, name below (default) - 'inline': "value name" on a single line (better for small nodes)
795
+ formatValue: z.unknown().optional(), // Format function for node values (default: toLocaleString)
796
+ tooltipFormatter: z.unknown().optional(), // Custom tooltip formatter. Return HTML string or empty string to hide tooltip.
797
+ nodeWidth: z.number().optional(),
798
+ nodePadding: z.number().optional(),
799
+ showTooltip: z.boolean().optional(),
800
+ defaultNodeColor: z.string().optional(),
801
+ left: z.unknown().optional(), // Left padding of the Sankey layout within the chart container. Accepts a number (px) or percentage string. ECharts default: '5%'.
802
+ right: z.unknown().optional(), // Right padding of the Sankey layout within the chart container. Accepts a number (px) or percentage string. ECharts default: '5%'.
803
+ linkColor: z.unknown().optional(), // Link fill style: 'gradient' blends source to target colors, 'gray' uses flat gray
804
+ linkOpacity: z.number().optional(),
805
+ className: z.string().optional(),
806
+ isDarkMode: z.boolean().optional(),
807
+ });
808
+
809
+ export const SelectPropsSchema = z.object({
810
+ align: z.enum(["start", "center", "end"]).optional(), // How to align the popup relative to the specified side.
811
+ alignItemWithTrigger: z.boolean().optional(), // Whether the positioner overlaps the trigger so the selected item's text is aligned with the trigger's value text. This only applies to mouse input and is automatically disabled if there is not enough space.
812
+ alignOffset: z.unknown().optional(), // Additional offset along the alignment axis in pixels. Also accepts a function that returns the offset to read the dimensions of the anchor and positioner elements, along with its side and alignment. The function takes a `data` object parameter with the following properties: - `data.anchor`: the dimensions of the anchor element with properties `width` and `height`. - `data.positioner`: the dimensions of the positioner element with properties `width` and `height`. - `data.side`: which side of the anchor element the positioner is aligned against. - `data.align`: how the positioner is aligned relative to the specified side.
813
+ anchor: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // An element to position the popup against. By default, the popup will be positioned against the trigger.
814
+ arrowPadding: z.number().optional(), // Minimum distance to maintain between the arrow and the edges of the popup. Use it to prevent the arrow element from hanging out of the rounded corners of a popup.
815
+ collisionAvoidance: z.unknown().optional(), // Determines how to handle collisions when positioning the popup. `side` controls overflow on the preferred placement axis (`top`/`bottom` or `left`/`right`): - `'flip'`: keep the requested side when it fits; otherwise try the opposite side (`top` and `bottom`, or `left` and `right`). - `'shift'`: never change side; keep the requested side and move the popup within the clipping boundary so it stays visible. - `'none'`: do not correct side-axis overflow. `align` controls overflow on the alignment axis (`start`/`center`/`end`): - `'flip'`: keep side, but swap `start` and `end` when the requested alignment overflows. - `'shift'`: keep side and requested alignment, then nudge the popup along the alignment axis to fit. - `'none'`: do not correct alignment-axis overflow. `fallbackAxisSide` controls fallback behavior on the perpendicular axis when the preferred axis cannot fit: - `'start'`: allow perpendicular fallback and try the logical start side first (`top` before `bottom`, or `left` before `right` in LTR). - `'end'`: allow perpendicular fallback and try the logical end side first (`bottom` before `top`, or `right` before `left` in LTR). - `'none'`: do not fallback to the perpendicular axis. When `side` is `'shift'`, explicitly setting `align` only supports `'shift'` or `'none'`. If `align` is omitted, it defaults to `'flip'`.
816
+ collisionBoundary: z.unknown().optional(), // An element or a rectangle that delimits the area that the popup is confined to.
817
+ collisionPadding: z.unknown().optional(), // Additional space to maintain from the edge of the collision boundary.
818
+ disableAnchorTracking: z.boolean().optional(), // Whether to disable the popup from tracking any layout shift of its positioning anchor.
819
+ positionMethod: z.enum(["absolute", "fixed"]).optional(), // Determines which CSS `position` property to use.
820
+ side: z.enum(["top", "bottom", "left", "right", "inline-end", "inline-start"]).optional(), // Which side of the anchor element to align the popup against. May automatically change to avoid collisions.
821
+ sideOffset: z.unknown().optional(), // Distance between the anchor and the popup in pixels. Also accepts a function that returns the distance to read the dimensions of the anchor and positioner elements, along with its side and alignment. The function takes a `data` object parameter with the following properties: - `data.anchor`: the dimensions of the anchor element with properties `width` and `height`. - `data.positioner`: the dimensions of the positioner element with properties `width` and `height`. - `data.side`: which side of the anchor element the positioner is aligned against. - `data.align`: how the positioner is aligned relative to the specified side.
822
+ sticky: z.boolean().optional(), // Whether to maintain the popup in the viewport after the anchor element was scrolled out of view.
823
+ className: z.string().optional(), // Additional CSS classes merged via `cn()`.
824
+ render: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Replaces the trigger element while preserving Select behavior. Set the trigger's `id` with Select's `id` prop: Base UI does not see an `id` set here, so clicking the label would not focus the trigger.
825
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Size of the select trigger. Matches Input component sizes.
826
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content for the select. When provided, enables the Field wrapper with a visible label above the select. For accessibility without a visible label, use `aria-label` instead.
827
+ hideLabel: z.boolean().optional(),
828
+ placeholder: z.string().optional(), // Placeholder text shown when no value is selected.
829
+ loading: z.boolean().optional(), // When `true`, shows a skeleton loader in place of the selected value.
830
+ disabled: z.boolean().optional(), // Whether the select is disabled.
831
+ required: z.boolean().optional(), // Whether the select is required. When `false`, shows "(optional)" text.
832
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content displayed next to the label via an info icon.
833
+ value: z.unknown().optional(), // Currently selected value (controlled mode).
834
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // `Select.Option` elements to render in the dropdown.
835
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text displayed below the select.
836
+ error: z.unknown().optional(), // Error message string or validation error object with `match` key.
837
+ onValueChange: z.unknown().optional(), // Callback when selection changes
838
+ defaultValue: z.unknown().optional(), // Initial value for uncontrolled mode
839
+ renderValue: z.unknown().optional(), // A function that returns a ReactNode to format the selected value in the trigger. Required when using object values. Use `placeholder` for the empty state.
840
+ items: z.unknown().optional(), // Data structure of items rendered in the popup. Accepts a plain object map (`{ key: "Label" }`) or an array of `{ label, value }` for object/complex values.
841
+ isItemEqualToValue: z.unknown().optional(), // Custom equality function for comparing items. Required when value is an object, since object identity (`===`) won't match across renders.
842
+ });
843
+
844
+ export const SensitiveInputPropsSchema = z.object({
845
+ alt: z.string().optional(),
846
+ autoComplete: z.unknown().optional(),
847
+ checked: z.boolean().optional(),
848
+ disabled: z.boolean().optional(),
849
+ height: z.unknown().optional(),
850
+ list: z.string().optional(),
851
+ name: z.string().optional(),
852
+ placeholder: z.string().optional(),
853
+ readOnly: z.boolean().optional(),
854
+ required: z.boolean().optional(),
855
+ width: z.unknown().optional(),
856
+ className: z.string().optional(),
857
+ id: z.string().optional(),
858
+ lang: z.string().optional(),
859
+ title: z.string().optional(),
860
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
861
+ value: z.string().optional(), // Controlled value
862
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Size of the input. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default input size - `"lg"` — Large for prominent fields
863
+ variant: z.enum(["default", "error"]).optional(), // Style variant of the input. - `"default"` — Default input appearance - `"error"` — Error state for validation failures
864
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content for the input (enables Field wrapper and sets masked state label) - can be a string or any React node
865
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content to display next to the label via an info icon
866
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text displayed below the input
867
+ error: z.unknown().optional(), // Error message or validation error object
868
+ });
869
+
870
+ export const SidebarPropsSchema = z.object({
871
+ defaultOpen: z.boolean().optional(), // Initial open state when uncontrolled.
872
+ open: z.boolean().optional(), // Controlled open state.
873
+ variant: z.enum(["sidebar", "floating", "inset"]).optional(), // Sidebar layout variant.
874
+ side: z.enum(["left", "right"]).optional(), // Which side the sidebar is on.
875
+ collapsible: z.enum(["icon", "offcanvas", "none"]).optional(),
876
+ resizable: z.boolean().optional(), // Enable drag-to-resize on the sidebar edge.
877
+ defaultWidth: z.number().optional(), // Initial width in pixels when resizable.
878
+ minWidth: z.number().optional(), // Minimum width in pixels when resizing.
879
+ maxWidth: z.number().optional(), // Maximum width in pixels when resizing.
880
+ contained: z.boolean().optional(), // When true, the collapsed sidebar uses absolute positioning instead of fixed, keeping it scoped inside a bounded parent. Useful for demos and embedded sidebars.
881
+ peekable: z.boolean().optional(), // When true, hovering or focusing the collapsed sidebar temporarily expands it. The `state` will be `"peeking"` during the peek. Moving away collapses it back.
882
+ animationDuration: z.number().optional(), // Duration of sidebar expand/collapse animation in milliseconds.
883
+ mobileBreakpoint: z.number().optional(), // Viewport width (in px) below which the sidebar renders as a mobile dialog sheet instead of the desktop aside rail.
884
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Content — typically `<Sidebar>` + main content.
885
+ className: z.string().optional(), // Additional CSS classes for the wrapper div.
886
+ });
887
+
888
+ export const SliderPropsSchema = z.object({
889
+ size: z.enum(["sm", "base"]).optional(),
890
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label displayed above the slider track.
891
+ getAriaLabel: z.unknown().optional(), // Accessible name for each thumb. Use it when there is no visible `label`, or to tell the thumbs of a range slider apart.
892
+ value: z.array(z.unknown()).optional(), // Controlled value. Pass an array to render one thumb per value (a range).
893
+ defaultValue: z.array(z.unknown()).optional(), // Uncontrolled initial value. Pass an array to render one thumb per value (a range).
894
+ onValueChange: z.unknown().optional(), // Called when the value changes while dragging or from the keyboard
895
+ min: z.number().optional(), // Minimum value of the slider (default: 0)
896
+ max: z.number().optional(), // Maximum value of the slider (default: 100)
897
+ step: z.number().optional(), // Amount the value changes per step (default: 1)
898
+ format: z.unknown().optional(), // Formats the value badges, range labels, and the value announced to assistive technology
899
+ disabled: z.boolean().optional(), // Whether the slider is disabled
900
+ });
901
+
902
+ export const SurfacePropsSchema = z.object({
903
+ as: z.unknown().optional(),
904
+ render: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
905
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
906
+ className: z.string().optional(),
907
+ id: z.string().optional(),
908
+ lang: z.string().optional(),
909
+ title: z.string().optional(),
910
+ });
911
+
912
+ export const SwitchPropsSchema = z.object({
913
+ variant: z.enum(["default", "neutral"]).optional(), // Visual variant: "default" (pill, brand color) or "neutral" (squircle, monochrome)
914
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Label content for the switch (Field wrapper is built-in) - can be a string or any React node. Optional when used standalone for visual-only purposes.
915
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Tooltip content to display next to the label via an info icon
916
+ required: z.boolean().optional(), // Whether the switch is required. When explicitly false, shows "(optional)" text after the label.
917
+ controlFirst: z.boolean().optional(), // When true (default), switch appears before label. When false, label appears before switch.
918
+ size: z.enum(["sm", "base", "lg"]).optional(),
919
+ checked: z.boolean().optional(),
920
+ disabled: z.boolean().optional(),
921
+ transitioning: z.boolean().optional(),
922
+ name: z.string().optional(),
923
+ type: z.enum(["submit", "reset", "button"]).optional(),
924
+ value: z.unknown().optional(),
925
+ className: z.string().optional(),
926
+ id: z.string().optional(),
927
+ lang: z.string().optional(),
928
+ title: z.string().optional(),
929
+ onClick: z.unknown(), // Callback when switch is clicked
930
+ });
931
+
932
+ export const TablePropsSchema = z.object({
933
+ layout: z.enum(["auto", "fixed"]).optional(),
934
+ variant: z.enum(["default", "selected"]).optional(),
935
+ sticky: z.enum(["left", "right"]).optional(),
936
+ className: z.string().optional(), // Additional CSS classes
937
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Child elements
938
+ });
939
+
940
+ export const TableOfContentsPropsSchema = z.object({
941
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
942
+ className: z.string().optional(),
943
+ id: z.string().optional(),
944
+ lang: z.string().optional(),
945
+ title: z.string().optional(),
946
+ });
947
+
948
+ export const TabsPropsSchema = z.object({
949
+ tabs: z.array(z.unknown()).optional(), // Array of tab items to render.
950
+ value: z.string().optional(), // Controlled value. When set, component becomes controlled.
951
+ selectedValue: z.string().optional(), // Default selected value for uncontrolled mode. Ignored when `value` is set.
952
+ activateOnFocus: z.boolean().optional(), // When `true`, tabs are activated immediately upon receiving focus via arrow keys. When `false` (default), tabs receive focus but require Enter/Space to activate.
953
+ className: z.string().optional(), // Additional CSS classes for the root element.
954
+ listClassName: z.string().optional(), // Additional CSS classes for the tab list element.
955
+ indicatorClassName: z.string().optional(), // Additional CSS classes for the indicator element.
956
+ labels: z.unknown().optional(), // Labels for internationalization of aria-labels. All labels have English defaults.
957
+ variant: z.enum(["segmented", "underline"]).optional(), // Tab style. - `"segmented"` — Pill-shaped indicator on a filled track - `"underline"` — Underline indicator below tab text
958
+ size: z.enum(["base", "sm"]).optional(), // Tab size. - `"base"` — Default size (h-9, text-base) - `"sm"` — Compact size (h-6.5, text-xs) — matches Input size="sm"
959
+ onValueChange: z.unknown().optional(), // Callback when active tab changes
960
+ });
961
+
962
+ export const TagInputPropsSchema = z.object({
963
+ alt: z.string().optional(),
964
+ autoComplete: z.unknown().optional(),
965
+ checked: z.boolean().optional(),
966
+ height: z.unknown().optional(),
967
+ list: z.string().optional(),
968
+ name: z.string().optional(), // Submits each accepted tag as a separate form value under this name.
969
+ placeholder: z.string().optional(),
970
+ readOnly: z.boolean().optional(), // Prevents adding or removing tags while keeping the input focusable.
971
+ required: z.boolean().optional(), // Requires at least one accepted tag for native form validation. Like a native input, a `readOnly` TagInput is skipped by validation.
972
+ type: z.unknown().optional(),
973
+ width: z.unknown().optional(),
974
+ className: z.string().optional(),
975
+ id: z.string().optional(),
976
+ lang: z.string().optional(),
977
+ title: z.string().optional(),
978
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
979
+ value: z.array(z.string()).optional(),
980
+ validateValue: z.unknown().optional(),
981
+ maxValues: z.number().optional(),
982
+ labels: z.unknown().optional(), // Translated labels for generated input, action, and validation text.
983
+ label: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
984
+ labelTooltip: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
985
+ description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(),
986
+ error: z.unknown().optional(),
987
+ variant: z.enum(["default", "error"]).optional(),
988
+ disabled: z.boolean().optional(),
989
+ });
990
+
991
+ export const TextPropsSchema = z.object({
992
+ variant: z.enum(["heading", "heading1", "heading2", "heading3", "body", "secondary", "success", "error", "mono", "mono-secondary"]).optional(), // Text style variant. Determines color, font, and weight. - `"heading"` — Heading text (16px by default, 20px with `size="lg"`; semibold) - `"heading1"` — Deprecated; use `"heading"` (30px, semibold) - `"heading2"` — Deprecated; use `"heading"` (24px, semibold) - `"heading3"` — Deprecated; use `"heading"` (16px, semibold) - `"body"` — Default body text - `"secondary"` — Muted text for secondary information - `"success"` — Success state text - `"error"` — Error state text - `"mono"` — Monospace text for code - `"mono-secondary"` — Muted monospace text
993
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Text size. Supported values depend on the variant: - `"heading"` — 16px when omitted, or 20px with `"lg"` - Body variants — `"xs"` (12px), `"sm"` (13px), `"base"` (14px), or `"lg"` (16px) - Monospace variants — 13px when omitted, or 14px with `"lg"`
994
+ bold: z.boolean().optional(), // Whether to use bold font weight (only applies to body variants).
995
+ truncate: z.boolean().optional(), // Whether to truncate overflowing text with an ellipsis. Adds `truncate min-w-0` classes.
996
+ as: z.enum(["h1", "h2", "h3", "h4", "h5", "h6", "p", "span", "label", "dt", "dd", "li", "figcaption", "legend", "pre", "code", "em", "strong", "small", "abbr", "time"]).optional(), // The HTML element to render. Accepts headings (`"h1"`–`"h6"`), block text (`"p"`, `"pre"`), inline text (`"span"`, `"code"`, `"em"`, `"strong"`, `"small"`, `"abbr"`, `"time"`), form-related (`"label"`, `"legend"`), list/definition (`"dt"`, `"dd"`, `"li"`), and `"figcaption"`. - **Optional** for `"heading"` (defaults to `"span"`). Pass the heading element that reflects this text's place in the document outline. - **Required** for deprecated heading variants (`"heading1"`, `"heading2"`, `"heading3"`). - **Optional** for body variants (defaults to `"p"`) and monospace variants (defaults to `"span"`).
997
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Text content.
998
+ });
999
+
1000
+ export const TimeseriesChartPropsSchema = z.object({
1001
+ echarts: z.unknown(), // The ECharts core instance imported by the consumer. Passed in rather than imported directly so the consumer controls which ECharts modules are bundled (tree-shaking).
1002
+ type: z.unknown().optional(), // Visual style of each series. Defaults to `"line"`.
1003
+ data: z.array(z.unknown()), // Array of time series data to display on the chart
1004
+ markers: z.array(z.unknown()).optional(), // Vertical reference markers rendered on the time axis.
1005
+ thresholds: z.array(z.unknown()).optional(), // Horizontal threshold lines rendered on the value axis.
1006
+ xAxisName: z.string().optional(), // Label for the x-axis (time axis)
1007
+ xAxisTickCount: z.number().optional(), // Number of ticks to display on the x-axis
1008
+ xAxisHideLabelOverlap: z.boolean().optional(), // Whether overlapping x-axis labels are automatically hidden. Defaults to `true`.
1009
+ xAxisTickFormat: z.unknown().optional(), // Custom formatter for x-axis tick labels. Receives the raw timestamp in milliseconds and returns a display string, overriding ECharts' built-in time formatting.
1010
+ yAxisTickFormat: z.unknown().optional(), // Custom formatter for y-axis tick labels. Receives the raw value and returns a display string. When omitted, ECharts' built-in formatter is used.
1011
+ yAxisTickLabelFormat: z.unknown().optional(),
1012
+ yAxisName: z.string().optional(), // Label for the y-axis (value axis)
1013
+ yAxisTickCount: z.number().optional(), // Number of ticks to display on the y-axis
1014
+ yAxisMinInterval: z.number().optional(), // Minimum interval between y-axis ticks. Set to `1` for discrete count data so ECharts does not render fractional tick marks.
1015
+ tooltipValueFormat: z.unknown().optional(), // Custom formatter for tooltip values. Receives the raw y-value and returns a display string. When omitted, the raw value is shown. Takes precedence over the deprecated `yAxisTickLabelFormat` prop.
1016
+ tooltipTimestampFormat: z.unknown().optional(), // Custom formatter for tooltip timestamps. Receives the raw timestamp in milliseconds and returns a display string. Applies to standard series and marker tooltips. When omitted, timestamps are formatted using the browser's locale and time zone.
1017
+ tooltipFooter: z.string().optional(), // Footer text rendered below the series rows in the tooltip. Intended for brief context such as data freshness or aggregation details. Available for every `TimeseriesChart` configuration.
1018
+ tooltipMode: z.unknown().optional(), // Controls which series are shown in the tooltip. - `"all"` — show all series at the hovered timestamp (default) - `"single"` — show only the series whose value is closest to the cursor
1019
+ tooltipMaxItems: z.number().optional(), // Maximum number of series rows shown in the tooltip when `tooltipMode` is `"all"`. Additional series are hidden with a `+N more` footer. Defaults to `10`.
1020
+ tooltipBoundary: z.array(z.unknown()).optional(), // Constrains the tooltip to stay within a specific element or region. By default the tooltip avoids overflowing any clipping ancestor (scroll containers, viewports, etc.). Pass an `Element` or array of elements to restrict the tooltip to a specific container.
1021
+ tooltipFollowCursor: z.unknown().optional(), // Which axis the tooltip follows the cursor on. - `"both"` — tooltip tracks the cursor on both axes, staying near the pointer at all times. This is the default and matches the behaviour of ECharts' built-in tooltip. - `"x"` — tooltip follows the cursor horizontally but is locked to a fixed vertical position relative to the chart. This keeps the tooltip out of the way of the data and avoids vertical jitter as series values change — the same approach used by Recharts and many dashboard UIs. Only these two modes are offered because the x-axis is always time in a `TimeseriesChart`: y-only tracking and fully-fixed positioning don't produce useful tooltip behaviour for time-series data. Powered by Base UI Tooltip's `trackCursorAxis` under the hood.
1022
+ incomplete: z.unknown().optional(), // Indicates incomplete data periods with optional before/after timestamps in ms
1023
+ enableLegendSelection: z.boolean().optional(), // When `true`, adds a hidden ECharts legend so consumers can drive series visibility imperatively via the `legendSelect` / `legendUnSelect` / `legendToggleSelect` actions (e.g. to build a custom interactive legend). Toggled-off series are also excluded from the tooltip. Requires the consumer to register ECharts' `LegendComponent` (`echarts.use([LegendComponent])`); otherwise the legend actions no-op and, in development, ECharts logs a "component legend is used but not imported" warning.
1024
+ height: z.number().optional(), // Height of the chart in pixels. Defaults to `350`.
1025
+ isDarkMode: z.boolean().optional(), // When `true`, switches the chart to ECharts' built-in dark theme
1026
+ gradient: z.boolean().optional(), // When `true`, renders a vertical gradient fill beneath each line series. The gradient fades from the series' color at the top to transparent at the bottom. Has no effect when `type` is `"bar"`.
1027
+ loading: z.boolean().optional(), // When `true`, hides the chart and displays a skeleton matching the chart type with a subtle shimmer.
1028
+ ariaDescription: z.string().optional(), // Accessible description for screen readers. When provided, it is passed to ECharts' `aria.label.description` and announced when the chart receives focus. Consumers are responsible for writing a meaningful description — see the W3C guidance on complex images for recommendations.
1029
+ optionUpdateBehavior: z.unknown().optional(), // Additional options passed as the second argument to `chart.setOption()`. Defaults to `{ notMerge: false, lazyUpdate: true }`.
1030
+ });
1031
+
1032
+ export const ToastyPropsSchema = z.object({
1033
+ variant: z.enum(["default", "success", "error", "warning", "info"]).optional(),
1034
+ children: z.unknown(), // Application content. Toasts render via a portal above this.
1035
+ container: z.unknown().optional(), // Container element for the portal. Use this to render toasts inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
1036
+ toastManager: z.unknown().optional(), // Optional toast manager created by `createKumoToastManager()`. When provided, allows code outside the React tree (timers, module-load callbacks, query-cache listeners) to dispatch toasts via the same dedupe-aware manager that `useKumoToastManager()` returns inside the tree. Forwarded to the underlying `@base-ui/react/toast` `Toast.Provider` `toastManager` prop — see https://base-ui.com/react/components/toast for the upstream primitive.
1037
+ });
1038
+
1039
+ export const ToolbarPropsSchema = z.object({
1040
+ disabled: z.boolean().optional(),
1041
+ orientation: z.unknown().optional(), // The orientation of the toolbar.
1042
+ loopFocus: z.boolean().optional(), // If `true`, using keyboard navigation will wrap focus to the other end of the toolbar once the end is reached.
1043
+ id: z.string().optional(),
1044
+ lang: z.string().optional(),
1045
+ title: z.string().optional(),
1046
+ className: z.unknown().optional(), // CSS class applied to the element, or a function that returns a class based on the component's state.
1047
+ render: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a `ReactElement` or a function that returns the element to render.
1048
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Toolbar controls rendered as one grouped card.
1049
+ size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Locks every toolbar item to this size.
1050
+ });
1051
+
1052
+ export const TooltipPropsSchema = z.object({
1053
+ side: z.enum(["top", "bottom", "left", "right"]).optional(),
1054
+ className: z.string().optional(), // Additional CSS classes
1055
+ children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Child elements
1056
+ content: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]), // Content to display in the tooltip
1057
+ });
1058
+
1059
+ // =============================================================================
1060
+ // Component Type Union
1061
+ // =============================================================================
1062
+
1063
+ /**
1064
+ * All valid component type names
1065
+ */
1066
+ export type KumoComponentType = "Autocomplete" | "Badge" | "Banner" | "Breadcrumbs" | "BubbleMap" | "Button" | "ButtonGroup" | "Chart" | "Checkbox" | "ChoroplethMap" | "ClipboardText" | "CloudflareLogo" | "Code" | "Collapsible" | "Combobox" | "CommandPalette" | "DatePicker" | "DateRangePicker" | "Dialog" | "DropdownMenu" | "Empty" | "Field" | "GlobeMap" | "Grid" | "InlineCopyText" | "Input" | "InputArea" | "InputGroup" | "Label" | "LayerCard" | "LayerDialog" | "Link" | "Loader" | "MenuBar" | "Meter" | "Pagination" | "Popover" | "Radio" | "SankeyChart" | "Select" | "SensitiveInput" | "Sidebar" | "Slider" | "Surface" | "Switch" | "Table" | "TableOfContents" | "Tabs" | "TagInput" | "Text" | "TimeseriesChart" | "Toasty" | "Toolbar" | "Tooltip";
1067
+
1068
+ export const KumoComponentTypeSchema = z.enum([
1069
+ "Autocomplete",
1070
+ "Badge",
1071
+ "Banner",
1072
+ "Breadcrumbs",
1073
+ "BubbleMap",
1074
+ "Button",
1075
+ "ButtonGroup",
1076
+ "Chart",
1077
+ "Checkbox",
1078
+ "ChoroplethMap",
1079
+ "ClipboardText",
1080
+ "CloudflareLogo",
1081
+ "Code",
1082
+ "Collapsible",
1083
+ "Combobox",
1084
+ "CommandPalette",
1085
+ "DatePicker",
1086
+ "DateRangePicker",
1087
+ "Dialog",
1088
+ "DropdownMenu",
1089
+ "Empty",
1090
+ "Field",
1091
+ "GlobeMap",
1092
+ "Grid",
1093
+ "InlineCopyText",
1094
+ "Input",
1095
+ "InputArea",
1096
+ "InputGroup",
1097
+ "Label",
1098
+ "LayerCard",
1099
+ "LayerDialog",
1100
+ "Link",
1101
+ "Loader",
1102
+ "MenuBar",
1103
+ "Meter",
1104
+ "Pagination",
1105
+ "Popover",
1106
+ "Radio",
1107
+ "SankeyChart",
1108
+ "Select",
1109
+ "SensitiveInput",
1110
+ "Sidebar",
1111
+ "Slider",
1112
+ "Surface",
1113
+ "Switch",
1114
+ "Table",
1115
+ "TableOfContents",
1116
+ "Tabs",
1117
+ "TagInput",
1118
+ "Text",
1119
+ "TimeseriesChart",
1120
+ "Toasty",
1121
+ "Toolbar",
1122
+ "Tooltip",
1123
+ ]);
1124
+
1125
+ /**
1126
+ * Map of component type to its props schema
1127
+ */
1128
+ export const ComponentPropsSchemas = {
1129
+ Autocomplete: AutocompletePropsSchema,
1130
+ Badge: BadgePropsSchema,
1131
+ Banner: BannerPropsSchema,
1132
+ Breadcrumbs: BreadcrumbsPropsSchema,
1133
+ BubbleMap: BubbleMapPropsSchema,
1134
+ Button: ButtonPropsSchema,
1135
+ ButtonGroup: ButtonGroupPropsSchema,
1136
+ Chart: ChartPropsSchema,
1137
+ Checkbox: CheckboxPropsSchema,
1138
+ ChoroplethMap: ChoroplethMapPropsSchema,
1139
+ ClipboardText: ClipboardTextPropsSchema,
1140
+ CloudflareLogo: CloudflareLogoPropsSchema,
1141
+ Code: CodePropsSchema,
1142
+ Collapsible: CollapsiblePropsSchema,
1143
+ Combobox: ComboboxPropsSchema,
1144
+ CommandPalette: CommandPalettePropsSchema,
1145
+ DatePicker: DatePickerPropsSchema,
1146
+ DateRangePicker: DateRangePickerPropsSchema,
1147
+ Dialog: DialogPropsSchema,
1148
+ DropdownMenu: DropdownMenuPropsSchema,
1149
+ Empty: EmptyPropsSchema,
1150
+ Field: FieldPropsSchema,
1151
+ GlobeMap: GlobeMapPropsSchema,
1152
+ Grid: GridPropsSchema,
1153
+ InlineCopyText: InlineCopyTextPropsSchema,
1154
+ Input: InputPropsSchema,
1155
+ InputArea: InputAreaPropsSchema,
1156
+ InputGroup: InputGroupPropsSchema,
1157
+ Label: LabelPropsSchema,
1158
+ LayerCard: LayerCardPropsSchema,
1159
+ LayerDialog: LayerDialogPropsSchema,
1160
+ Link: LinkPropsSchema,
1161
+ Loader: LoaderPropsSchema,
1162
+ MenuBar: MenuBarPropsSchema,
1163
+ Meter: MeterPropsSchema,
1164
+ Pagination: PaginationPropsSchema,
1165
+ Popover: PopoverPropsSchema,
1166
+ Radio: RadioPropsSchema,
1167
+ SankeyChart: SankeyChartPropsSchema,
1168
+ Select: SelectPropsSchema,
1169
+ SensitiveInput: SensitiveInputPropsSchema,
1170
+ Sidebar: SidebarPropsSchema,
1171
+ Slider: SliderPropsSchema,
1172
+ Surface: SurfacePropsSchema,
1173
+ Switch: SwitchPropsSchema,
1174
+ Table: TablePropsSchema,
1175
+ TableOfContents: TableOfContentsPropsSchema,
1176
+ Tabs: TabsPropsSchema,
1177
+ TagInput: TagInputPropsSchema,
1178
+ Text: TextPropsSchema,
1179
+ TimeseriesChart: TimeseriesChartPropsSchema,
1180
+ Toasty: ToastyPropsSchema,
1181
+ Toolbar: ToolbarPropsSchema,
1182
+ Tooltip: TooltipPropsSchema,
1183
+ } as const;
1184
+
1185
+ // =============================================================================
1186
+ // UI Element & Tree Schemas
1187
+ // =============================================================================
1188
+
1189
+ /**
1190
+ * Base UI element structure
1191
+ */
1192
+ export const UIElementBaseSchema = z.object({
1193
+ key: z.string(),
1194
+ type: KumoComponentTypeSchema,
1195
+ props: z.record(z.string(), z.unknown()),
1196
+ children: z.array(z.string()).optional(),
1197
+ parentKey: z.string().nullable().optional(),
1198
+ visible: VisibilityConditionSchema.optional(),
1199
+ action: ActionSchema.optional(),
1200
+ });
1201
+
1202
+ export type UIElement = z.infer<typeof UIElementBaseSchema>;
1203
+
1204
+ /**
1205
+ * Flat UI tree structure (optimized for LLM generation)
1206
+ */
1207
+ export const UITreeSchema = z.object({
1208
+ root: z.string(),
1209
+ elements: z.record(z.string(), UIElementBaseSchema),
1210
+ });
1211
+
1212
+ export type UITree = z.infer<typeof UITreeSchema>;
1213
+
1214
+ // =============================================================================
1215
+ // Validation Helpers
1216
+ // =============================================================================
1217
+
1218
+ /**
1219
+ * Validate an element's props against its component schema
1220
+ */
1221
+ export function validateElementProps(element: UIElement): SafeParseResult<unknown> {
1222
+ const schema = ComponentPropsSchemas[element.type as keyof typeof ComponentPropsSchemas];
1223
+ if (!schema) {
1224
+ return { success: false, error: new z.ZodError([{ code: 'custom', message: `Unknown component type: ${element.type}`, path: ['type'] }]) };
1225
+ }
1226
+ return schema.safeParse(element.props);
1227
+ }
1228
+
1229
+ /**
1230
+ * Validate a complete UI tree
1231
+ */
1232
+ export function validateUITree(tree: unknown): SafeParseResult<UITree> {
1233
+ return UITreeSchema.safeParse(tree);
1234
+ }
1235
+
1236
+ /**
1237
+ * List of all component names (for catalog generation)
1238
+ */
1239
+ export const KUMO_COMPONENT_NAMES = ["Autocomplete", "Badge", "Banner", "Breadcrumbs", "BubbleMap", "Button", "ButtonGroup", "Chart", "Checkbox", "ChoroplethMap", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "GlobeMap", "Grid", "InlineCopyText", "Input", "InputArea", "InputGroup", "Label", "LayerCard", "LayerDialog", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "SankeyChart", "Select", "SensitiveInput", "Sidebar", "Slider", "Surface", "Switch", "Table", "TableOfContents", "Tabs", "TagInput", "Text", "TimeseriesChart", "Toasty", "Toolbar", "Tooltip"] as const;