@fldr/ui 0.0.0-stage → 0.1.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 (577) 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/bash-jpzh6zbf5237424t.js +3 -0
  128. package/dist/chunks/breadcrumbs-z1jo40oxlw8e4eh4.js +159 -0
  129. package/dist/chunks/button-group-biv43ksvaipc3p5n.js +59 -0
  130. package/dist/chunks/button-hzvowfkbathmx8yg.js +274 -0
  131. package/dist/chunks/chart-dgh98nbzo2sux2bs.js +3985 -0
  132. package/dist/chunks/checkbox-eifiwbw34xwsikvf.js +211 -0
  133. package/dist/chunks/clamp-rcpupxvhqrn8uuyf.js +7 -0
  134. package/dist/chunks/clipboard-text-oukrnke1s3kebk3y.js +209 -0
  135. package/dist/chunks/cloudflare-logo-d8mid9xr190h78cu.js +186 -0
  136. package/dist/chunks/code-nj2nu6qzxhz6qnkk.js +96 -0
  137. package/dist/chunks/collapsible-ic6813hc4yv5s5hv.js +185 -0
  138. package/dist/chunks/combobox-mzvobpvalz2gnpli.js +321 -0
  139. package/dist/chunks/command-palette-d45ueqbuxygu87ir.js +507 -0
  140. package/dist/chunks/composite-c11t1ok72s3cggjc.js +90 -0
  141. package/dist/chunks/constants-l10cgj6pyqg27jod.js +5 -0
  142. package/dist/chunks/core-n0de50o00ej2ecfe.js +7177 -0
  143. package/dist/chunks/createBaseUIEventDetails-nvee6bghv2reeqdb.js +50 -0
  144. package/dist/chunks/createItems-n07tfwx89cdoar18.js +323 -0
  145. package/dist/chunks/createToastManager-cxjmn4jx3ejh85fs.js +1225 -0
  146. package/dist/chunks/css-j501gxq1am2gnikh.js +4 -0
  147. package/dist/chunks/date-picker-ija2bz17ai6ypnao.js +6865 -0
  148. package/dist/chunks/date-range-picker-oivlshld01jbel29.js +336 -0
  149. package/dist/chunks/dialog-g7wavhkdv2gplwq9.js +173 -0
  150. package/dist/chunks/diff-g2re0kj6fh27rgg5.js +4 -0
  151. package/dist/chunks/dropdown-m5a8nwer5hpvnkfk.js +384 -0
  152. package/dist/chunks/empty-e0onzpyokyl6h9bp.js +96 -0
  153. package/dist/chunks/engine-hzmefiqm63hu0c7i.js +10 -0
  154. package/dist/chunks/engine-javascript-e9xj8hhz9xfqhpnu.js +3118 -0
  155. package/dist/chunks/engine-oniguruma-ias56ildu01gf939.js +389 -0
  156. package/dist/chunks/error-lbnic2b20qr3mukp.js +6 -0
  157. package/dist/chunks/field-fowmq5smvp17pnqe.js +75 -0
  158. package/dist/chunks/flow-fak0fyldoaozd32s.js +10290 -0
  159. package/dist/chunks/formatNumber-b4kjdsebslm2b3t0.js +21 -0
  160. package/dist/chunks/getCssDimensions-gckwdrp86f73cv51.js +21 -0
  161. package/dist/chunks/getElementTransform-cz3jyftv0x5io95f.js +38 -0
  162. package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
  163. package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
  164. package/dist/chunks/getPseudoElementBounds-csuw8kwsoeyxd5tv.js +37 -0
  165. package/dist/chunks/github-light-hir7yctc38258pwt.js +5 -0
  166. package/dist/chunks/graphql-n9vlzkvcp2j19p7a.js +16 -0
  167. package/dist/chunks/grid-nwiczrab3r4w0zr2.js +118 -0
  168. package/dist/chunks/hcl-ohpfnrffs96hzyj5.js +4 -0
  169. package/dist/chunks/html-nimj6ljkkifnc9ni.js +12 -0
  170. package/dist/chunks/index.parts-db9pzsm9rrs9tp0t.js +200 -0
  171. package/dist/chunks/index.parts-ggacwr0yakuemead.js +24 -0
  172. package/dist/chunks/index.parts-pcg3pmf3yyro841t.js +13 -0
  173. package/dist/chunks/inertValue-n09gkjvwwa1kddov.js +9 -0
  174. package/dist/chunks/inline-copy-text-izxpvnrtebcqlquf.js +104 -0
  175. package/dist/chunks/input-group-h9fepskc84e1h11n.js +457 -0
  176. package/dist/chunks/input-kfi46426y22ocoo4.js +85 -0
  177. package/dist/chunks/input-m2tfec2viezoz9hh.js +146 -0
  178. package/dist/chunks/isElementDisabled-dyqutxpzdfppbohx.js +7 -0
  179. package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
  180. package/dist/chunks/javascript-b6fq9bl50fdj6813.js +4 -0
  181. package/dist/chunks/json-h2g0z143t3cs13d7.js +4 -0
  182. package/dist/chunks/jsonc-jxlzvingck161eej.js +4 -0
  183. package/dist/chunks/jsx-jp7a33937sef92sn.js +4 -0
  184. package/dist/chunks/label-f18fnpbv85jddo4q.js +76 -0
  185. package/dist/chunks/layer-card-lsmeuqic9i1isv2b.js +74 -0
  186. package/dist/chunks/layer-dialog-ejtz9s7bbfhjk1md.js +414 -0
  187. package/dist/chunks/link-h84bkh8eem39p529.js +112 -0
  188. package/dist/chunks/link-provider-kbwllpbo24fvgioj.js +60 -0
  189. package/dist/chunks/loader-kv5nk8j8tsuesxqo.js +87 -0
  190. package/dist/chunks/locale-provider-j4ii538ntyok36r6.js +50 -0
  191. package/dist/chunks/markdown-eybeqjr58vfygtz1.js +4 -0
  192. package/dist/chunks/menubar-gzlyhmmc4i24prn1.js +106 -0
  193. package/dist/chunks/mergeCleanups-nw73c6jfwl5tyhw4.js +15 -0
  194. package/dist/chunks/meter-poh8jpe0qtq6mvee.js +35 -0
  195. package/dist/chunks/pagination-lmogkvvtu19mnr7f.js +296 -0
  196. package/dist/chunks/popover-nqrt3ykqv6sic8pz.js +206 -0
  197. package/dist/chunks/popupHandle-dk3ixgc8flr7v971.js +177 -0
  198. package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
  199. package/dist/chunks/portal-provider-eveknxf26oudn7pp.js +63 -0
  200. package/dist/chunks/python-nrpnmxq4r6yp6fcd.js +4 -0
  201. package/dist/chunks/radio-nf717i5ypsga9zdh.js +204 -0
  202. package/dist/chunks/reason-parts-hssx64rmlxyn6gw5.js +40 -0
  203. package/dist/chunks/resolve-variant-l6x5ksfrjtu4m66l.js +35 -0
  204. package/dist/chunks/resolveAriaLabelledBy-knaucrjrjwnk7tvs.js +10 -0
  205. package/dist/chunks/resolveValueLabel-ntacnb58mhka5gg0.js +70 -0
  206. package/dist/chunks/rolldown-runtime-hi7ti5xiuxsegr96.js +18 -0
  207. package/dist/chunks/safePolygon-ep4133qogeu5vjf3.js +661 -0
  208. package/dist/chunks/safeReact-ek77ilng4ekk7mgz.js +18 -0
  209. package/dist/chunks/scrollable-k784b35i80aolmvg.js +29 -0
  210. package/dist/chunks/select-lnekz415wm4v6d6m.js +279 -0
  211. package/dist/chunks/sensitive-input-dvwlnntm7rdudwp0.js +252 -0
  212. package/dist/chunks/serializeValue-d1otz2i7h5tygrwf.js +13 -0
  213. package/dist/chunks/shellscript-i4m7lo8wi0f5bl8b.js +4 -0
  214. package/dist/chunks/sidebar-mhlgvpawixxoey2k.js +1466 -0
  215. package/dist/chunks/skeleton-line-kmhnp0lx3rxhioxa.js +74 -0
  216. package/dist/chunks/slider-e395gihi5cjd62ss.js +87 -0
  217. package/dist/chunks/sql-hqp2eekl7qhmxe92.js +4 -0
  218. package/dist/chunks/stringifyLocale-gbxouqj7ol627jxh.js +9 -0
  219. package/dist/chunks/styles-eb8bvypmayf578jf.js +35 -0
  220. package/dist/chunks/surface-jr8x5hy0gucjk5ig.js +30 -0
  221. package/dist/chunks/switch-nc8thi7ogd51m3gi.js +202 -0
  222. package/dist/chunks/table-ngl1b5yc8mcur662.js +238 -0
  223. package/dist/chunks/table-of-contents-gkjv9ck8etbz64ej.js +234 -0
  224. package/dist/chunks/tabs-o59bv7348nh2gppm.js +280 -0
  225. package/dist/chunks/tag-input-lbx9yzt33d4wu07o.js +156 -0
  226. package/dist/chunks/text-nqum95flcp07ac9s.js +126 -0
  227. package/dist/chunks/toast-ljpenshot856xqq4.js +341 -0
  228. package/dist/chunks/toml-oyqrgosuct25x413.js +4 -0
  229. package/dist/chunks/toolbar-kh6pc12ii7b6dv1x.js +141 -0
  230. package/dist/chunks/tooltip-bcymn9bfyz29fvji.js +92 -0
  231. package/dist/chunks/tsx-pem8x69upvmibv6l.js +4 -0
  232. package/dist/chunks/typescript-pe5y016phdwbgws7.js +4 -0
  233. package/dist/chunks/unwrap-lazy-element-hzbdkmujhd7iksau.js +45 -0
  234. package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
  235. package/dist/chunks/useAnchoredPopupScrollLock-msm8tzkewysnunut.js +31 -0
  236. package/dist/chunks/useAnimationFrame-k9lqdj9quln3sd85.js +87 -0
  237. package/dist/chunks/useAriaLabelledBy-j3j9jqlr9ukyk08s.js +36 -0
  238. package/dist/chunks/useBaseUiId-nk4k7nj9h1cy76ny.js +13 -0
  239. package/dist/chunks/useButton-lklvdzuhvj22bx07.js +186 -0
  240. package/dist/chunks/useClick-pcbkcc7r620v1smu.js +87 -0
  241. package/dist/chunks/useCollapsiblePanel-lrfsgx21ds36cwlp.js +415 -0
  242. package/dist/chunks/useCompositeItem-2juex3zh9gyrs8e9.js +31 -0
  243. package/dist/chunks/useCompositeListItem-ekwo2j2rjkggg7xj.js +54 -0
  244. package/dist/chunks/useControlled-i3srnkxy598s0au9.js +52 -0
  245. package/dist/chunks/useFieldValidation-oe16jiigp971yrzr.js +224 -0
  246. package/dist/chunks/useFloatingRootContext-k676b6m7f80bdapd.js +51 -0
  247. package/dist/chunks/useFocus-mn7a9t9v6fnlb4mf.js +124 -0
  248. package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
  249. package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
  250. package/dist/chunks/useLabel-me6zzfvkypo458pi.js +58 -0
  251. package/dist/chunks/useLabelableId-bjeh6q3pgrqjb7er.js +56 -0
  252. package/dist/chunks/useListNavigation-hpddbd0cc9pvt461.js +441 -0
  253. package/dist/chunks/useOnMount-gxggz1m0n869s6r0.js +12 -0
  254. package/dist/chunks/useOpenChangeComplete-edtabjwqmechsyv6.js +129 -0
  255. package/dist/chunks/usePopupHandleStore-gawjmfjf1xdgiph3.js +27 -0
  256. package/dist/chunks/usePopupViewport-l6w01iohvzloghy8.js +367 -0
  257. package/dist/chunks/usePositioner-mzvgnazldqvy44z2.js +580 -0
  258. package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
  259. package/dist/chunks/usePreviousValue-o6swt5tb7xhpdu4e.js +21 -0
  260. package/dist/chunks/useRegisterFieldControl-m1stc9l9y4cndf0k.js +40 -0
  261. package/dist/chunks/useRegisteredLabelId-b7u9ygya03448zzn.js +16 -0
  262. package/dist/chunks/useRender-h9ktka9xt4obdv6y.js +13 -0
  263. package/dist/chunks/useRenderDialogRoot-bsqrqpc1ddau7xg4.js +312 -0
  264. package/dist/chunks/useRenderElement-nkklxbq1rp7h2kw0.js +436 -0
  265. package/dist/chunks/useScrollLock-le7ajwlt7oh6fzxi.js +877 -0
  266. package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
  267. package/dist/chunks/useStableCallback-le5qgj6p9l04729n.js +38 -0
  268. package/dist/chunks/useSwipeDismiss-e8tfxzlp05p86mgb.js +697 -0
  269. package/dist/chunks/useTimeout-f0ayn2l2l9aop4l8.js +43 -0
  270. package/dist/chunks/useTransitionStatus-disysoblzgk34w14.js +74 -0
  271. package/dist/chunks/useTriggerFocusGuards-dyd3hb1m8en8ct50.js +40 -0
  272. package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
  273. package/dist/chunks/useTypeahead-kfdsw1ksl5bgvvzl.js +111 -0
  274. package/dist/chunks/useValueAsRef-dv0tmfr1xlpzdlru.js +27 -0
  275. package/dist/chunks/useValueChanged-fjssa2v6d4w8y332.js +15 -0
  276. package/dist/chunks/utils-o44zfmzz9z7uyj1v.js +18 -0
  277. package/dist/chunks/valueToPercent-djk2mqnihth2uvf6.js +7 -0
  278. package/dist/chunks/vendor-floating-ui-fqblx3wa0r71mjoo.js +1458 -0
  279. package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
  280. package/dist/chunks/vendor-utils-io8z5lsfxq8m2dcc.js +660 -0
  281. package/dist/chunks/vesper-g839e590k3dxnwh3.js +5 -0
  282. package/dist/chunks/visuallyHidden-kzzs9hbe93is3rci.js +25 -0
  283. package/dist/chunks/wasm-cpasy0o9lsjrm39j.js +8 -0
  284. package/dist/chunks/yaml-kzk5ddyekbyha04v.js +4 -0
  285. package/dist/code/server.d.ts +96 -0
  286. package/dist/code/server.js +151 -0
  287. package/dist/code.d.ts +82 -0
  288. package/dist/code.js +373 -0
  289. package/dist/command-line/cli.js +1705 -0
  290. package/dist/command-line/commands/add.js +282 -0
  291. package/dist/command-line/commands/ai.js +22 -0
  292. package/dist/command-line/commands/blocks.js +61 -0
  293. package/dist/command-line/commands/doc.js +167 -0
  294. package/dist/command-line/commands/init.js +95 -0
  295. package/dist/command-line/commands/ls.js +53 -0
  296. package/dist/command-line/commands/theme.js +850 -0
  297. package/dist/components/autocomplete.d.ts +2 -0
  298. package/dist/components/autocomplete.js +3 -0
  299. package/dist/components/badge.d.ts +2 -0
  300. package/dist/components/badge.js +3 -0
  301. package/dist/components/banner.d.ts +2 -0
  302. package/dist/components/banner.js +3 -0
  303. package/dist/components/breadcrumbs.d.ts +2 -0
  304. package/dist/components/breadcrumbs.js +3 -0
  305. package/dist/components/button-group.d.ts +2 -0
  306. package/dist/components/button-group.js +3 -0
  307. package/dist/components/button.d.ts +3 -0
  308. package/dist/components/button.js +3 -0
  309. package/dist/components/chart.d.ts +2 -0
  310. package/dist/components/chart.js +3 -0
  311. package/dist/components/checkbox.d.ts +2 -0
  312. package/dist/components/checkbox.js +3 -0
  313. package/dist/components/clipboard-text.d.ts +2 -0
  314. package/dist/components/clipboard-text.js +3 -0
  315. package/dist/components/cloudflare-logo.d.ts +2 -0
  316. package/dist/components/cloudflare-logo.js +3 -0
  317. package/dist/components/code.d.ts +2 -0
  318. package/dist/components/code.js +3 -0
  319. package/dist/components/collapsible.d.ts +2 -0
  320. package/dist/components/collapsible.js +3 -0
  321. package/dist/components/combobox.d.ts +2 -0
  322. package/dist/components/combobox.js +3 -0
  323. package/dist/components/command-palette.d.ts +2 -0
  324. package/dist/components/command-palette.js +3 -0
  325. package/dist/components/date-picker.d.ts +2 -0
  326. package/dist/components/date-picker.js +3 -0
  327. package/dist/components/date-range-picker.d.ts +2 -0
  328. package/dist/components/date-range-picker.js +3 -0
  329. package/dist/components/dialog.d.ts +2 -0
  330. package/dist/components/dialog.js +3 -0
  331. package/dist/components/dropdown.d.ts +2 -0
  332. package/dist/components/dropdown.js +3 -0
  333. package/dist/components/empty.d.ts +2 -0
  334. package/dist/components/empty.js +3 -0
  335. package/dist/components/field.d.ts +2 -0
  336. package/dist/components/field.js +3 -0
  337. package/dist/components/flow.d.ts +2 -0
  338. package/dist/components/flow.js +3 -0
  339. package/dist/components/grid.d.ts +2 -0
  340. package/dist/components/grid.js +3 -0
  341. package/dist/components/inline-copy-text.d.ts +2 -0
  342. package/dist/components/inline-copy-text.js +3 -0
  343. package/dist/components/input-group.d.ts +2 -0
  344. package/dist/components/input-group.js +3 -0
  345. package/dist/components/input.d.ts +4 -0
  346. package/dist/components/input.js +5 -0
  347. package/dist/components/label.d.ts +2 -0
  348. package/dist/components/label.js +3 -0
  349. package/dist/components/layer-card.d.ts +2 -0
  350. package/dist/components/layer-card.js +3 -0
  351. package/dist/components/layer-dialog.d.ts +2 -0
  352. package/dist/components/layer-dialog.js +3 -0
  353. package/dist/components/link.d.ts +67 -0
  354. package/dist/components/link.js +3 -0
  355. package/dist/components/loader.d.ts +2 -0
  356. package/dist/components/loader.js +4 -0
  357. package/dist/components/menubar.d.ts +2 -0
  358. package/dist/components/menubar.js +3 -0
  359. package/dist/components/meter.d.ts +2 -0
  360. package/dist/components/meter.js +3 -0
  361. package/dist/components/pagination.d.ts +2 -0
  362. package/dist/components/pagination.js +3 -0
  363. package/dist/components/popover.d.ts +2 -0
  364. package/dist/components/popover.js +3 -0
  365. package/dist/components/radio.d.ts +2 -0
  366. package/dist/components/radio.js +3 -0
  367. package/dist/components/select.d.ts +2 -0
  368. package/dist/components/select.js +3 -0
  369. package/dist/components/sensitive-input.d.ts +2 -0
  370. package/dist/components/sensitive-input.js +3 -0
  371. package/dist/components/sidebar.d.ts +2 -0
  372. package/dist/components/sidebar.js +3 -0
  373. package/dist/components/slider.d.ts +2 -0
  374. package/dist/components/slider.js +3 -0
  375. package/dist/components/surface.d.ts +2 -0
  376. package/dist/components/surface.js +3 -0
  377. package/dist/components/switch.d.ts +2 -0
  378. package/dist/components/switch.js +3 -0
  379. package/dist/components/table-of-contents.d.ts +2 -0
  380. package/dist/components/table-of-contents.js +3 -0
  381. package/dist/components/table.d.ts +2 -0
  382. package/dist/components/table.js +3 -0
  383. package/dist/components/tabs.d.ts +2 -0
  384. package/dist/components/tabs.js +3 -0
  385. package/dist/components/tag-input.d.ts +2 -0
  386. package/dist/components/tag-input.js +3 -0
  387. package/dist/components/text.d.ts +2 -0
  388. package/dist/components/text.js +3 -0
  389. package/dist/components/toast.d.ts +2 -0
  390. package/dist/components/toast.js +4 -0
  391. package/dist/components/toolbar.d.ts +2 -0
  392. package/dist/components/toolbar.js +3 -0
  393. package/dist/components/tooltip.d.ts +2 -0
  394. package/dist/components/tooltip.js +3 -0
  395. package/dist/config-BKj6nyHa.d.ts +620 -0
  396. package/dist/field-DIjlHM8W.d.ts +91 -0
  397. package/dist/index-2jvVmJ8P.d.ts +46 -0
  398. package/dist/index-5PpauI_2.d.ts +85 -0
  399. package/dist/index-AMEc1MEg.d.ts +180 -0
  400. package/dist/index-AUC5xRcO.d.ts +236 -0
  401. package/dist/index-B7epkoHc.d.ts +72 -0
  402. package/dist/index-B9-RdY6D.d.ts +75 -0
  403. package/dist/index-B9niVl3r.d.ts +140 -0
  404. package/dist/index-BD-gTiEv.d.ts +71 -0
  405. package/dist/index-BK1tZgmP.d.ts +426 -0
  406. package/dist/index-BVgXnR1V.d.ts +137 -0
  407. package/dist/index-BW1HVU7T.d.ts +119 -0
  408. package/dist/index-BWe6haHU.d.ts +64 -0
  409. package/dist/index-BkTAB4wj.d.ts +673 -0
  410. package/dist/index-Bwhwpw_j.d.ts +189 -0
  411. package/dist/index-BzE0aNpx.d.ts +143 -0
  412. package/dist/index-C7RoG_CH.d.ts +57 -0
  413. package/dist/index-CE09bLNb.d.ts +72 -0
  414. package/dist/index-CJRe-8P-.d.ts +174 -0
  415. package/dist/index-CReGk3Dc.d.ts +91 -0
  416. package/dist/index-CU_lnxg7.d.ts +287 -0
  417. package/dist/index-CYoiniZ4.d.ts +135 -0
  418. package/dist/index-ClS-eFxE.d.ts +104 -0
  419. package/dist/index-CzIWigmH.d.ts +62 -0
  420. package/dist/index-CzTgKPh-.d.ts +105 -0
  421. package/dist/index-D2Gvly0i.d.ts +96 -0
  422. package/dist/index-DIV3riUd.d.ts +148 -0
  423. package/dist/index-DL1-uSuH.d.ts +1 -0
  424. package/dist/index-DYYiDxZs.d.ts +243 -0
  425. package/dist/index-DjSGDESy.d.ts +222 -0
  426. package/dist/index-Dmbgjww7.d.ts +157 -0
  427. package/dist/index-DwNMa4LN.d.ts +166 -0
  428. package/dist/index-Dx7hOWUc.d.ts +93 -0
  429. package/dist/index-DxOyYZaJ.d.ts +251 -0
  430. package/dist/index-NnHba-T1.d.ts +136 -0
  431. package/dist/index-RP_rt8vB.d.ts +140 -0
  432. package/dist/index-T1sSoiWG.d.ts +184 -0
  433. package/dist/index-aahL-0Zw.d.ts +60 -0
  434. package/dist/index-bBPKMepR.d.ts +73 -0
  435. package/dist/index-g-eFm1Bq.d.ts +877 -0
  436. package/dist/index-gYC6cQVO.d.ts +105 -0
  437. package/dist/index-lOWfpkxK.d.ts +118 -0
  438. package/dist/index-pjdgauIH.d.ts +170 -0
  439. package/dist/index-yK3Hayg_.d.ts +40 -0
  440. package/dist/index.d.ts +108 -0
  441. package/dist/index.js +207 -0
  442. package/dist/input-BeWEb-jD.d.ts +122 -0
  443. package/dist/input-group-8gEtPiKw.d.ts +100 -0
  444. package/dist/layer-card-BNIn9pqy.d.ts +56 -0
  445. package/dist/link-provider-tz-NJp9x.d.ts +67 -0
  446. package/dist/locale-provider-CHMCQ0-J.d.ts +40 -0
  447. package/dist/panda.d.ts +25 -0
  448. package/dist/panda.js +32 -0
  449. package/dist/portal-provider-BAqPpq_a.d.ts +55 -0
  450. package/dist/primitives/accordion.d.ts +1 -0
  451. package/dist/primitives/accordion.js +3 -0
  452. package/dist/primitives/alert-dialog.d.ts +1 -0
  453. package/dist/primitives/alert-dialog.js +8 -0
  454. package/dist/primitives/autocomplete.d.ts +1 -0
  455. package/dist/primitives/autocomplete.js +6 -0
  456. package/dist/primitives/avatar.d.ts +1 -0
  457. package/dist/primitives/avatar.js +3 -0
  458. package/dist/primitives/button.d.ts +1 -0
  459. package/dist/primitives/button.js +3 -0
  460. package/dist/primitives/checkbox-group.d.ts +1 -0
  461. package/dist/primitives/checkbox-group.js +4 -0
  462. package/dist/primitives/checkbox.d.ts +1 -0
  463. package/dist/primitives/checkbox.js +4 -0
  464. package/dist/primitives/collapsible.d.ts +1 -0
  465. package/dist/primitives/collapsible.js +5 -0
  466. package/dist/primitives/combobox.d.ts +1 -0
  467. package/dist/primitives/combobox.js +6 -0
  468. package/dist/primitives/context-menu.d.ts +1 -0
  469. package/dist/primitives/context-menu.js +6 -0
  470. package/dist/primitives/csp-provider.d.ts +1 -0
  471. package/dist/primitives/csp-provider.js +3 -0
  472. package/dist/primitives/dialog.d.ts +1 -0
  473. package/dist/primitives/dialog.js +9 -0
  474. package/dist/primitives/direction-provider.d.ts +1 -0
  475. package/dist/primitives/direction-provider.js +4 -0
  476. package/dist/primitives/drawer.d.ts +1 -0
  477. package/dist/primitives/drawer.js +6 -0
  478. package/dist/primitives/field.d.ts +1 -0
  479. package/dist/primitives/field.js +4 -0
  480. package/dist/primitives/fieldset.d.ts +1 -0
  481. package/dist/primitives/fieldset.js +3 -0
  482. package/dist/primitives/form.d.ts +1 -0
  483. package/dist/primitives/form.js +3 -0
  484. package/dist/primitives/input.d.ts +1 -0
  485. package/dist/primitives/input.js +4 -0
  486. package/dist/primitives/menu.d.ts +1 -0
  487. package/dist/primitives/menu.js +6 -0
  488. package/dist/primitives/menubar.d.ts +1 -0
  489. package/dist/primitives/menubar.js +3 -0
  490. package/dist/primitives/meter.d.ts +1 -0
  491. package/dist/primitives/meter.js +3 -0
  492. package/dist/primitives/navigation-menu.d.ts +1 -0
  493. package/dist/primitives/navigation-menu.js +3 -0
  494. package/dist/primitives/number-field.d.ts +1 -0
  495. package/dist/primitives/number-field.js +3 -0
  496. package/dist/primitives/otp-field.d.ts +3 -0
  497. package/dist/primitives/otp-field.js +4 -0
  498. package/dist/primitives/popover.d.ts +1 -0
  499. package/dist/primitives/popover.js +3 -0
  500. package/dist/primitives/preview-card.d.ts +1 -0
  501. package/dist/primitives/preview-card.js +3 -0
  502. package/dist/primitives/progress.d.ts +1 -0
  503. package/dist/primitives/progress.js +3 -0
  504. package/dist/primitives/radio-group.d.ts +1 -0
  505. package/dist/primitives/radio-group.js +4 -0
  506. package/dist/primitives/radio.d.ts +1 -0
  507. package/dist/primitives/radio.js +4 -0
  508. package/dist/primitives/scroll-area.d.ts +1 -0
  509. package/dist/primitives/scroll-area.js +4 -0
  510. package/dist/primitives/select.d.ts +1 -0
  511. package/dist/primitives/select.js +5 -0
  512. package/dist/primitives/separator.d.ts +1 -0
  513. package/dist/primitives/separator.js +4 -0
  514. package/dist/primitives/slider.d.ts +1 -0
  515. package/dist/primitives/slider.js +4 -0
  516. package/dist/primitives/switch.d.ts +1 -0
  517. package/dist/primitives/switch.js +4 -0
  518. package/dist/primitives/tabs.d.ts +1 -0
  519. package/dist/primitives/tabs.js +4 -0
  520. package/dist/primitives/toast.d.ts +1 -0
  521. package/dist/primitives/toast.js +5 -0
  522. package/dist/primitives/toggle-group.d.ts +1 -0
  523. package/dist/primitives/toggle-group.js +3 -0
  524. package/dist/primitives/toggle.d.ts +1 -0
  525. package/dist/primitives/toggle.js +3 -0
  526. package/dist/primitives/toolbar.d.ts +1 -0
  527. package/dist/primitives/toolbar.js +3 -0
  528. package/dist/primitives/tooltip.d.ts +1 -0
  529. package/dist/primitives/tooltip.js +4 -0
  530. package/dist/primitives.d.ts +42 -0
  531. package/dist/primitives.js +71 -0
  532. package/dist/registry.d.ts +2 -0
  533. package/dist/registry.js +1 -0
  534. package/dist/scripts/theme-generator/config.d.ts +2 -0
  535. package/dist/scripts/theme-generator/config.js +487 -0
  536. package/dist/scripts/theme-generator/types.d.ts +2 -0
  537. package/dist/scripts/theme-generator/types.js +1 -0
  538. package/dist/styles/kumo-binding.css +490 -0
  539. package/dist/styles/kumo-standalone.css +2 -0
  540. package/dist/styles/kumo.css +153 -0
  541. package/dist/styles/theme-fedramp.css +31 -0
  542. package/dist/styles/theme-fldr.css +67 -0
  543. package/dist/styles/theme-kumo.css +464 -0
  544. package/dist/text-CRRU2g-u.d.ts +183 -0
  545. package/dist/theming.d.ts +185 -0
  546. package/dist/theming.js +241 -0
  547. package/dist/tooltip-D_vhi1PN.d.ts +105 -0
  548. package/dist/types-C6in2C8V.d.ts +135 -0
  549. package/dist/types-CdzJnnIl.d.ts +193 -0
  550. package/dist/types-Cl4HuOrB.d.ts +84 -0
  551. package/dist/utils.d.ts +4 -0
  552. package/dist/utils.js +7 -0
  553. package/package.json +483 -3
  554. package/scripts/component-registry/cache.ts +123 -0
  555. package/scripts/component-registry/discovery.ts +560 -0
  556. package/scripts/component-registry/example-cleanup.ts +168 -0
  557. package/scripts/component-registry/index.test.ts +1075 -0
  558. package/scripts/component-registry/index.ts +1065 -0
  559. package/scripts/component-registry/markdown-generator.ts +222 -0
  560. package/scripts/component-registry/metadata.ts +1030 -0
  561. package/scripts/component-registry/props-filter.ts +312 -0
  562. package/scripts/component-registry/schema-generator.ts +333 -0
  563. package/scripts/component-registry/sub-components.ts +393 -0
  564. package/scripts/component-registry/types.ts +158 -0
  565. package/scripts/component-registry/utils.ts +280 -0
  566. package/scripts/component-registry/variant-parser.ts +262 -0
  567. package/scripts/css-build.ts +106 -0
  568. package/scripts/format-generated.ts +12 -0
  569. package/scripts/generate-globe-land-mask.mjs +80 -0
  570. package/scripts/generate-primitives.ts +196 -0
  571. package/scripts/publish-fldr.ts +78 -0
  572. package/scripts/theme-generator/config.ts +666 -0
  573. package/scripts/theme-generator/generate-css.test.ts +30 -0
  574. package/scripts/theme-generator/generate-css.ts +352 -0
  575. package/scripts/theme-generator/index.ts +165 -0
  576. package/scripts/theme-generator/migrate.ts +560 -0
  577. package/scripts/theme-generator/types.ts +92 -0
@@ -0,0 +1,914 @@
1
+ "use client";
2
+ import { t as __exportAll } from "./rolldown-runtime-hi7ti5xiuxsegr96.js";
3
+ import { n as useRenderElement } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
4
+ import { b as fastComponentRef, i as PopupTriggerMap, m as POPUP_COLLISION_AVOIDANCE, n as ReactStore, y as fastComponent } from "./FloatingRootStore-men6ufp3a2b296fh.js";
5
+ import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
6
+ import { A as popupTransitionStateMapping, B as side$3, F as align$3, I as anchorHidden$1, L as closed$4, M as triggerOpenStateMapping, N as popupOpen$1, R as endingStyle$2, V as startingStyle$2, k as popupStateMapping, z as open$4 } from "./vendor-utils-io8z5lsfxq8m2dcc.js";
7
+ import { T as isElement } from "./vendor-floating-ui-fqblx3wa0r71mjoo.js";
8
+ import { n as useHoverReferenceInteraction, r as useHoverFloatingInteraction, t as safePolygon } from "./safePolygon-ep4133qogeu5vjf3.js";
9
+ import { t as createChangeEventDetails } from "./createBaseUIEventDetails-nvee6bghv2reeqdb.js";
10
+ import { d as imperativeAction } from "./reason-parts-hssx64rmlxyn6gw5.js";
11
+ import { c as useOpenStateTransitions, f as useTriggerDataForwarding, g as useDismiss, l as usePopupInteractionProps, n as PopupHandleAttachment, r as applyPopupOpenChange, s as useImplicitActiveTrigger, t as FOCUSABLE_POPUP_PROPS, u as usePopupRootStore } from "./popupStoreUtils-czfnxn051xakask5.js";
12
+ import { n as FloatingTree, r as useFloatingNodeId, t as FloatingNode } from "./FloatingTree-kiyzavvaum442o1s.js";
13
+ import { t as useOpenChangeComplete } from "./useOpenChangeComplete-edtabjwqmechsyv6.js";
14
+ import { t as BasePopupHandle } from "./popupHandle-dk3ixgc8flr7v971.js";
15
+ import { n as createInitialPopupStoreState, r as popupStoreSelectors, t as NullStore } from "./NullStore-my62xo2vfcfkerri.js";
16
+ import { t as usePopupHandleStore } from "./usePopupHandleStore-gawjmfjf1xdgiph3.js";
17
+ import { t as useFocus } from "./useFocus-mn7a9t9v6fnlb4mf.js";
18
+ import { t as useBaseUiId } from "./useBaseUiId-nk4k7nj9h1cy76ny.js";
19
+ import { t as FloatingPortalLite } from "./FloatingPortalLite-j7dsy7gokbxdoe1i.js";
20
+ import { n as getDisabledMountTransitionStyles, r as useAnchorPositioning, t as usePositioner } from "./usePositioner-mzvgnazldqvy44z2.js";
21
+ import { n as usePopupViewport, t as popupViewportStateMapping } from "./usePopupViewport-l6w01iohvzloghy8.js";
22
+ import * as React$1 from "react";
23
+ import { jsx, jsxs } from "react/jsx-runtime";
24
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/utils/popups/inlineRect.mjs
25
+ function createRect(left, top, right, bottom) {
26
+ return {
27
+ left,
28
+ top,
29
+ right,
30
+ bottom,
31
+ x: left,
32
+ y: top,
33
+ width: right - left,
34
+ height: bottom - top
35
+ };
36
+ }
37
+ function copyRect(rect) {
38
+ return {
39
+ left: rect.left,
40
+ top: rect.top,
41
+ right: rect.right,
42
+ bottom: rect.bottom,
43
+ width: rect.width,
44
+ height: rect.height
45
+ };
46
+ }
47
+ function getLineRects(rects) {
48
+ const lines = [];
49
+ let previousRect;
50
+ let left = Number.POSITIVE_INFINITY;
51
+ let top = Number.POSITIVE_INFINITY;
52
+ let right = Number.NEGATIVE_INFINITY;
53
+ let bottom = Number.NEGATIVE_INFINITY;
54
+ for (const rect of Array.from(rects).sort((a, b) => a.top - b.top)) {
55
+ left = Math.min(left, rect.left);
56
+ top = Math.min(top, rect.top);
57
+ right = Math.max(right, rect.right);
58
+ bottom = Math.max(bottom, rect.bottom);
59
+ if (!previousRect || rect.top - previousRect.top > previousRect.height / 2) lines.push(copyRect(rect));
60
+ else {
61
+ const line = lines[lines.length - 1];
62
+ line.left = Math.min(line.left, rect.left);
63
+ line.right = Math.max(line.right, rect.right);
64
+ line.bottom = Math.max(line.bottom, rect.bottom);
65
+ line.width = line.right - line.left;
66
+ line.height = line.bottom - line.top;
67
+ }
68
+ previousRect = rect;
69
+ }
70
+ return {
71
+ lines,
72
+ fallback: createRect(left, top, right, bottom)
73
+ };
74
+ }
75
+ function findLineIndex(lines, x, y) {
76
+ return lines.findIndex((lineRect) => x > lineRect.left - 2 && x < lineRect.right + 2 && y > lineRect.top - 2 && y < lineRect.bottom + 2);
77
+ }
78
+ function createClientRect(rect) {
79
+ return createRect(rect.left, rect.top, rect.right, rect.bottom);
80
+ }
81
+ function getInlineRectCoords(element, clientX, clientY) {
82
+ const { lines } = getLineRects(element.getClientRects());
83
+ if (lines.length < 2) return;
84
+ const lineIndex = findLineIndex(lines, clientX, clientY);
85
+ return {
86
+ x: clientX,
87
+ y: clientY,
88
+ lineIndex: lineIndex === -1 ? void 0 : lineIndex,
89
+ element
90
+ };
91
+ }
92
+ function getInlineReferenceRect(reference, placement, coords) {
93
+ const { lines, fallback } = getLineRects(reference.getClientRects());
94
+ if (lines.length < 2) return null;
95
+ const x = coords?.x;
96
+ const y = coords?.y;
97
+ const side = placement[0];
98
+ if (coords?.lineIndex != null && lines[coords.lineIndex]) return createClientRect(lines[coords.lineIndex]);
99
+ if (x != null && y != null) {
100
+ const lineIndex = findLineIndex(lines, x, y);
101
+ if (lineIndex !== -1) return createClientRect(lines[lineIndex]);
102
+ }
103
+ if (lines.length === 2 && lines[0].left > lines[1].right && x != null && y != null) return fallback;
104
+ if (side === "t" || side === "b") {
105
+ const firstRect = lines[0];
106
+ const lastRect = lines[lines.length - 1];
107
+ const targetRect = side === "t" ? firstRect : lastRect;
108
+ return createRect(targetRect.left, firstRect.top, targetRect.right, lastRect.bottom);
109
+ }
110
+ const isLeft = side === "l";
111
+ let left = lines[0].left;
112
+ let right = lines[0].right;
113
+ let edge = isLeft ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
114
+ let targetFirstRect = lines[0];
115
+ let targetLastRect = lines[0];
116
+ for (const rect of lines) {
117
+ left = Math.min(left, rect.left);
118
+ right = Math.max(right, rect.right);
119
+ const nextEdge = isLeft ? rect.left : rect.right;
120
+ if (isLeft && nextEdge < edge || !isLeft && nextEdge > edge) {
121
+ edge = nextEdge;
122
+ targetFirstRect = rect;
123
+ targetLastRect = rect;
124
+ } else if (nextEdge === edge) targetLastRect = rect;
125
+ }
126
+ return createRect(left, targetFirstRect.top, right, targetLastRect.bottom);
127
+ }
128
+ function getContextElement(reference) {
129
+ if ("contextElement" in reference && reference.contextElement) return reference.contextElement;
130
+ return isElement(reference) ? reference : void 0;
131
+ }
132
+ function getInlineRectTriggerProps(coordsRef, isOpen) {
133
+ function updateCoords(event) {
134
+ updateInlineRectCoords(coordsRef, event.currentTarget, event.clientX, event.clientY);
135
+ }
136
+ function updateCoordsIfClosed(event) {
137
+ if (!isOpen) updateCoords(event);
138
+ }
139
+ return {
140
+ onFocus() {
141
+ coordsRef.current = void 0;
142
+ },
143
+ onMouseEnter: updateCoordsIfClosed,
144
+ onMouseMove: updateCoordsIfClosed
145
+ };
146
+ }
147
+ function updateInlineRectCoords(coordsRef, element, clientX, clientY) {
148
+ const nextCoords = getInlineRectCoords(element, clientX, clientY);
149
+ coordsRef.current = nextCoords;
150
+ return nextCoords;
151
+ }
152
+ function createInlineMiddleware(coordsRef) {
153
+ return {
154
+ name: "inline",
155
+ async fn(state) {
156
+ const reference = state.elements.reference;
157
+ if (typeof reference?.getClientRects !== "function") return {};
158
+ const contextElement = getContextElement(reference);
159
+ const coords = coordsRef.current;
160
+ const currentCoords = coords?.element === reference || coords?.element === contextElement ? coords : void 0;
161
+ const rect = getInlineReferenceRect(reference, state.placement, currentCoords);
162
+ if (!rect || typeof state.platform.getElementRects !== "function") return {};
163
+ const resetRects = await state.platform.getElementRects({
164
+ reference: {
165
+ contextElement,
166
+ getBoundingClientRect() {
167
+ return rect;
168
+ }
169
+ },
170
+ floating: state.elements.floating,
171
+ strategy: state.strategy
172
+ });
173
+ if (state.rects.reference.x === resetRects.reference.x && state.rects.reference.y === resetRects.reference.y && state.rects.reference.width === resetRects.reference.width && state.rects.reference.height === resetRects.reference.height) return {};
174
+ return { reset: { rects: resetRects } };
175
+ }
176
+ };
177
+ }
178
+ //#endregion
179
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/root/PreviewCardContext.mjs
180
+ const PreviewCardRootContext = /*#__PURE__*/ React$1.createContext(void 0);
181
+ PreviewCardRootContext.displayName = "PreviewCardRootContext";
182
+ function usePreviewCardRootContext(optional) {
183
+ const context = React$1.useContext(PreviewCardRootContext);
184
+ if (context === void 0 && !optional) throw new Error("Base UI: PreviewCardRootContext is missing. PreviewCard parts must be placed within <PreviewCard.Root>.");
185
+ return context;
186
+ }
187
+ //#endregion
188
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/store/PreviewCardStore.mjs
189
+ const selectors = {
190
+ ...popupStoreSelectors,
191
+ instantType: (state) => state.instantType,
192
+ adaptiveOrigin: (state) => state.adaptiveOrigin,
193
+ closeDelay: (state) => state.closeDelay
194
+ };
195
+ /**
196
+ * The store view that detached handle-backed triggers read from. Both the real `PreviewCardStore`
197
+ * and the inert fallback store satisfy it, so a trigger can read from whichever store the handle
198
+ * currently exposes. Narrowed to the trigger-data members a trigger uses; it exposes no popup-open
199
+ * mutator, so the inert fallback can be a plain `NullStore`.
200
+ */
201
+ var PreviewCardStore = class extends ReactStore {
202
+ constructor(initialState, floatingId, nested) {
203
+ const triggerElements = new PopupTriggerMap();
204
+ super(createInitialState(initialState, triggerElements, floatingId, nested), createInitialContext(triggerElements), selectors);
205
+ }
206
+ setOpen = (nextOpen, eventDetails) => {
207
+ const { inlineRectCoordsRef } = this.context;
208
+ applyPopupOpenChange(this, nextOpen, eventDetails, { onBeforeDispatch() {
209
+ const event = eventDetails.event;
210
+ if (nextOpen && eventDetails.reason === "trigger-hover" && eventDetails.trigger && "clientX" in event && "clientY" in event && inlineRectCoordsRef.current?.element !== eventDetails.trigger) updateInlineRectCoords(inlineRectCoordsRef, eventDetails.trigger, event.clientX, event.clientY);
211
+ } });
212
+ };
213
+ };
214
+ /**
215
+ * Creates the inert fallback store used by detached handle-backed triggers while no
216
+ * `PreviewCard.Root` is attached. It preserves a preview-card-specific trigger registry in context
217
+ * so detached triggers can register before migrating to the live root store.
218
+ */
219
+ function createNullPreviewCardStore() {
220
+ const triggerElements = new PopupTriggerMap();
221
+ return new NullStore(Object.freeze(createInitialState(void 0, triggerElements)), Object.freeze(createInitialContext(triggerElements)), selectors);
222
+ }
223
+ function createInitialState(initialState, triggerElements, floatingId, nested = false) {
224
+ return {
225
+ ...createInitialPopupStoreState(triggerElements, floatingId, nested),
226
+ instantType: void 0,
227
+ adaptiveOrigin: void 0,
228
+ closeDelay: 300,
229
+ ...initialState
230
+ };
231
+ }
232
+ function createInitialContext(triggerElements) {
233
+ return {
234
+ popupRef: /*#__PURE__*/ React$1.createRef(),
235
+ onOpenChange: void 0,
236
+ onOpenChangeComplete: void 0,
237
+ triggerElements,
238
+ inlineRectCoordsRef: { current: void 0 }
239
+ };
240
+ }
241
+ //#endregion
242
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/root/PreviewCardRoot.mjs
243
+ function PreviewCardRootComponent(props) {
244
+ const { open: openProp, defaultOpen = false, onOpenChange, onOpenChangeComplete, actionsRef, handle, triggerId: triggerIdProp, defaultTriggerId: defaultTriggerIdProp = null, children } = props;
245
+ const store = usePopupRootStore((floatingId, nested) => new PreviewCardStore({
246
+ open: defaultOpen,
247
+ openProp,
248
+ activeTriggerId: defaultTriggerIdProp,
249
+ triggerIdProp
250
+ }, floatingId, nested));
251
+ store.useControlledProp("openProp", openProp);
252
+ store.useControlledProp("triggerIdProp", triggerIdProp);
253
+ store.useContextCallback("onOpenChange", onOpenChange);
254
+ store.useContextCallback("onOpenChangeComplete", onOpenChangeComplete);
255
+ const open = store.useState("open");
256
+ const activeTriggerId = store.useState("activeTriggerId");
257
+ const mounted = store.useState("mounted");
258
+ const payload = store.useState("payload");
259
+ useImplicitActiveTrigger(store, { closeOnActiveTriggerUnmount: true });
260
+ const { forceUnmount } = useOpenStateTransitions(open, store, () => {
261
+ store.context.inlineRectCoordsRef.current = void 0;
262
+ });
263
+ useIsoLayoutEffect(() => {
264
+ if (open) {
265
+ if (activeTriggerId == null) store.set("payload", void 0);
266
+ }
267
+ }, [
268
+ store,
269
+ activeTriggerId,
270
+ open
271
+ ]);
272
+ React$1.useImperativeHandle(actionsRef, () => ({
273
+ unmount: forceUnmount,
274
+ close: () => store.setOpen(false, createChangeEventDetails(imperativeAction))
275
+ }), [forceUnmount, store]);
276
+ const shouldRenderInteractions = open || mounted || handle != null;
277
+ return /*#__PURE__*/ jsxs(PreviewCardRootContext.Provider, {
278
+ value: store,
279
+ children: [
280
+ handle && /*#__PURE__*/ jsx(PopupHandleAttachment, {
281
+ handle,
282
+ store
283
+ }),
284
+ shouldRenderInteractions && /*#__PURE__*/ jsx(PreviewCardInteractions, { store }),
285
+ typeof children === "function" ? children({ payload }) : children
286
+ ]
287
+ });
288
+ }
289
+ function PreviewCardInteractions({ store }) {
290
+ const floatingRootContext = store.useState("floatingRootContext");
291
+ const dismiss = useDismiss(floatingRootContext);
292
+ usePopupInteractionProps(store, {
293
+ activeTriggerProps: dismiss.reference,
294
+ inactiveTriggerProps: dismiss.trigger,
295
+ popupProps: dismiss.floating
296
+ });
297
+ return null;
298
+ }
299
+ /**
300
+ * Groups all parts of the preview card.
301
+ * Doesn't render its own HTML element.
302
+ *
303
+ * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card)
304
+ */
305
+ const PreviewCardRoot = fastComponent(function PreviewCardRoot(props) {
306
+ if (usePreviewCardRootContext(true)) return /*#__PURE__*/ jsx(PreviewCardRootComponent, { ...props });
307
+ return /*#__PURE__*/ jsx(FloatingTree, { children: /*#__PURE__*/ jsx(PreviewCardRootComponent, { ...props }) });
308
+ });
309
+ PreviewCardRoot.displayName = "PreviewCardRoot";
310
+ //#endregion
311
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/portal/PreviewCardPortalContext.mjs
312
+ const PreviewCardPortalContext = /*#__PURE__*/ React$1.createContext(void 0);
313
+ PreviewCardPortalContext.displayName = "PreviewCardPortalContext";
314
+ function usePreviewCardPortalContext() {
315
+ const value = React$1.useContext(PreviewCardPortalContext);
316
+ if (value === void 0) throw new Error("Base UI: <PreviewCard.Portal> is missing.");
317
+ return value;
318
+ }
319
+ //#endregion
320
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/portal/PreviewCardPortal.mjs
321
+ /**
322
+ * A portal element that moves the popup to a different part of the DOM.
323
+ * By default, the portal element is appended to `<body>`.
324
+ * Renders a `<div>` element.
325
+ *
326
+ * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card)
327
+ */
328
+ const PreviewCardPortal = /*#__PURE__*/ React$1.forwardRef(function PreviewCardPortal(props, forwardedRef) {
329
+ const { keepMounted = false, ...portalProps } = props;
330
+ if (!(usePreviewCardRootContext().useState("mounted") || keepMounted)) return null;
331
+ return /*#__PURE__*/ jsx(PreviewCardPortalContext.Provider, {
332
+ value: keepMounted,
333
+ children: /*#__PURE__*/ jsx(FloatingPortalLite, {
334
+ ref: forwardedRef,
335
+ ...portalProps
336
+ })
337
+ });
338
+ });
339
+ PreviewCardPortal.displayName = "PreviewCardPortal";
340
+ //#endregion
341
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/trigger/PreviewCardTrigger.mjs
342
+ /**
343
+ * A link that opens the preview card.
344
+ * Renders an `<a>` element.
345
+ *
346
+ * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card)
347
+ */
348
+ const PreviewCardTrigger = fastComponentRef(function PreviewCardTrigger(componentProps, forwardedRef) {
349
+ const { render, className, delay, closeDelay, id: idProp, payload, handle, style, ...elementProps } = componentProps;
350
+ const rootContext = usePreviewCardRootContext(true);
351
+ const store = usePopupHandleStore(handle) ?? rootContext;
352
+ if (!store) throw new Error("Base UI: <PreviewCard.Trigger> must be either used within a <PreviewCard.Root> component or provided with a handle.");
353
+ const thisTriggerId = useBaseUiId(idProp);
354
+ const isTriggerActive = store.useState("isTriggerActive", thisTriggerId);
355
+ const isOpenedByThisTrigger = store.useState("isOpenedByTrigger", thisTriggerId);
356
+ const floatingRootContext = store.useState("floatingRootContext");
357
+ const inlineRectCoordsRef = store.context.inlineRectCoordsRef;
358
+ const triggerElementRef = React$1.useRef(null);
359
+ const delayWithDefault = delay ?? 600;
360
+ const closeDelayWithDefault = closeDelay ?? 300;
361
+ const { registerTrigger, isMountedByThisTrigger } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {
362
+ payload,
363
+ closeDelay: closeDelayWithDefault
364
+ });
365
+ const hoverProps = useHoverReferenceInteraction(floatingRootContext, {
366
+ mouseOnly: true,
367
+ move: false,
368
+ handleClose: safePolygon(),
369
+ delay: () => ({
370
+ open: delayWithDefault,
371
+ close: closeDelayWithDefault
372
+ }),
373
+ triggerElementRef,
374
+ isActiveTrigger: isTriggerActive,
375
+ isClosing: () => store.select("transitionStatus") === "ending"
376
+ });
377
+ const focusProps = useFocus(floatingRootContext, { delay: delayWithDefault });
378
+ const state = { open: isOpenedByThisTrigger };
379
+ const rootTriggerProps = store.useState("triggerProps", isMountedByThisTrigger);
380
+ const inlineRectTriggerProps = getInlineRectTriggerProps(inlineRectCoordsRef, isOpenedByThisTrigger);
381
+ return useRenderElement("a", componentProps, {
382
+ state,
383
+ ref: [
384
+ forwardedRef,
385
+ registerTrigger,
386
+ triggerElementRef
387
+ ],
388
+ props: [
389
+ hoverProps,
390
+ focusProps.reference,
391
+ rootTriggerProps,
392
+ inlineRectTriggerProps,
393
+ { id: thisTriggerId },
394
+ elementProps
395
+ ],
396
+ stateAttributesMapping: triggerOpenStateMapping
397
+ });
398
+ });
399
+ PreviewCardTrigger.displayName = "PreviewCardTrigger";
400
+ //#endregion
401
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/positioner/PreviewCardPositionerContext.mjs
402
+ const PreviewCardPositionerContext = /*#__PURE__*/ React$1.createContext(void 0);
403
+ PreviewCardPositionerContext.displayName = "PreviewCardPositionerContext";
404
+ function usePreviewCardPositionerContext() {
405
+ const context = React$1.useContext(PreviewCardPositionerContext);
406
+ if (context === void 0) throw new Error("Base UI: PreviewCardPositionerContext is missing. PreviewCardPositioner parts must be placed within <PreviewCard.Positioner>.");
407
+ return context;
408
+ }
409
+ //#endregion
410
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/positioner/PreviewCardPositioner.mjs
411
+ /**
412
+ * Positions the popup against the trigger.
413
+ * Renders a `<div>` element.
414
+ *
415
+ * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card)
416
+ */
417
+ const PreviewCardPositioner = /*#__PURE__*/ React$1.forwardRef(function PreviewCardPositioner(componentProps, forwardedRef) {
418
+ const { render, className, anchor, positionMethod = "absolute", side = "bottom", align = "center", sideOffset = 0, alignOffset = 0, collisionBoundary = "clipping-ancestors", collisionPadding = 5, arrowPadding = 5, sticky = false, disableAnchorTracking = false, collisionAvoidance = POPUP_COLLISION_AVOIDANCE, style, ...elementProps } = componentProps;
419
+ const store = usePreviewCardRootContext();
420
+ const keepMounted = usePreviewCardPortalContext();
421
+ const nodeId = useFloatingNodeId();
422
+ const open = store.useState("open");
423
+ const mounted = store.useState("mounted");
424
+ const floatingRootContext = store.useState("floatingRootContext");
425
+ const instantType = store.useState("instantType");
426
+ const transitionStatus = store.useState("transitionStatus");
427
+ const adaptiveOrigin = store.useState("adaptiveOrigin");
428
+ const inlineRectCoordsRef = store.context.inlineRectCoordsRef;
429
+ const positioning = useAnchorPositioning({
430
+ anchor,
431
+ floatingRootContext,
432
+ positionMethod,
433
+ mounted,
434
+ side,
435
+ sideOffset,
436
+ align,
437
+ alignOffset,
438
+ arrowPadding,
439
+ collisionBoundary,
440
+ collisionPadding,
441
+ sticky,
442
+ disableAnchorTracking,
443
+ keepMounted,
444
+ nodeId,
445
+ collisionAvoidance,
446
+ adaptiveOrigin,
447
+ inline: createInlineMiddleware(inlineRectCoordsRef)
448
+ });
449
+ const updatePosition = positioning.update;
450
+ useIsoLayoutEffect(() => {
451
+ if (open && mounted) updatePosition();
452
+ }, [
453
+ open,
454
+ mounted,
455
+ updatePosition
456
+ ]);
457
+ const state = {
458
+ open,
459
+ side: positioning.side,
460
+ align: positioning.align,
461
+ anchorHidden: positioning.anchorHidden,
462
+ instant: instantType
463
+ };
464
+ const element = usePositioner(componentProps, state, {
465
+ styles: positioning.positionerStyles,
466
+ transitionStatus,
467
+ props: elementProps,
468
+ refs: [forwardedRef, store.useStateSetter("positionerElement")],
469
+ hidden: !mounted,
470
+ inert: !open
471
+ });
472
+ return /*#__PURE__*/ jsx(PreviewCardPositionerContext.Provider, {
473
+ value: positioning,
474
+ children: /*#__PURE__*/ jsx(FloatingNode, {
475
+ id: nodeId,
476
+ children: element
477
+ })
478
+ });
479
+ });
480
+ PreviewCardPositioner.displayName = "PreviewCardPositioner";
481
+ //#endregion
482
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/popup/PreviewCardPopup.mjs
483
+ /**
484
+ * A container for the preview card contents.
485
+ * Renders a `<div>` element.
486
+ *
487
+ * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card)
488
+ */
489
+ const PreviewCardPopup = /*#__PURE__*/ React$1.forwardRef(function PreviewCardPopup(componentProps, forwardedRef) {
490
+ const { className, render, style, ...elementProps } = componentProps;
491
+ const store = usePreviewCardRootContext();
492
+ const { side, align } = usePreviewCardPositionerContext();
493
+ const open = store.useState("open");
494
+ const instantType = store.useState("instantType");
495
+ const transitionStatus = store.useState("transitionStatus");
496
+ const popupProps = store.useState("popupProps");
497
+ const floatingContext = store.useState("floatingRootContext");
498
+ const closeDelay = store.useState("closeDelay");
499
+ useOpenChangeComplete({
500
+ open,
501
+ ref: store.context.popupRef,
502
+ onComplete() {
503
+ if (open) store.context.onOpenChangeComplete?.(true);
504
+ }
505
+ });
506
+ useHoverFloatingInteraction(floatingContext, { closeDelay });
507
+ return useRenderElement("div", componentProps, {
508
+ state: {
509
+ open,
510
+ side,
511
+ align,
512
+ instant: instantType,
513
+ transitionStatus
514
+ },
515
+ ref: [
516
+ forwardedRef,
517
+ store.context.popupRef,
518
+ store.useStateSetter("popupElement")
519
+ ],
520
+ props: [
521
+ FOCUSABLE_POPUP_PROPS,
522
+ popupProps,
523
+ getDisabledMountTransitionStyles(transitionStatus),
524
+ elementProps
525
+ ],
526
+ stateAttributesMapping: popupTransitionStateMapping
527
+ });
528
+ });
529
+ PreviewCardPopup.displayName = "PreviewCardPopup";
530
+ //#endregion
531
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/arrow/PreviewCardArrow.mjs
532
+ /**
533
+ * Displays an element positioned against the preview card anchor.
534
+ * Renders a `<div>` element.
535
+ *
536
+ * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card)
537
+ */
538
+ const PreviewCardArrow = /*#__PURE__*/ React$1.forwardRef(function PreviewCardArrow(componentProps, forwardedRef) {
539
+ const { render, className, style, ...elementProps } = componentProps;
540
+ const store = usePreviewCardRootContext();
541
+ const { arrowRef, side, align, arrowUncentered, arrowStyles } = usePreviewCardPositionerContext();
542
+ const state = {
543
+ open: store.useState("open"),
544
+ side,
545
+ align,
546
+ uncentered: arrowUncentered
547
+ };
548
+ return useRenderElement("div", componentProps, {
549
+ state,
550
+ ref: [arrowRef, forwardedRef],
551
+ props: [{
552
+ style: arrowStyles,
553
+ "aria-hidden": true
554
+ }, elementProps],
555
+ stateAttributesMapping: popupStateMapping
556
+ });
557
+ });
558
+ PreviewCardArrow.displayName = "PreviewCardArrow";
559
+ //#endregion
560
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/backdrop/PreviewCardBackdrop.mjs
561
+ /**
562
+ * A presentational overlay displayed beneath the popup.
563
+ * Renders a `<div>` element.
564
+ *
565
+ * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card)
566
+ */
567
+ const PreviewCardBackdrop = /*#__PURE__*/ React$1.forwardRef(function PreviewCardBackdrop(componentProps, forwardedRef) {
568
+ const { render, className, style, ...elementProps } = componentProps;
569
+ const store = usePreviewCardRootContext();
570
+ const open = store.useState("open");
571
+ const mounted = store.useState("mounted");
572
+ const state = {
573
+ open,
574
+ transitionStatus: store.useState("transitionStatus")
575
+ };
576
+ return useRenderElement("div", componentProps, {
577
+ state,
578
+ ref: [forwardedRef],
579
+ props: [{
580
+ role: "presentation",
581
+ hidden: !mounted,
582
+ style: {
583
+ pointerEvents: "none",
584
+ userSelect: "none",
585
+ WebkitUserSelect: "none"
586
+ }
587
+ }, elementProps],
588
+ stateAttributesMapping: popupTransitionStateMapping
589
+ });
590
+ });
591
+ PreviewCardBackdrop.displayName = "PreviewCardBackdrop";
592
+ //#endregion
593
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/viewport/PreviewCardViewport.mjs
594
+ /**
595
+ * A viewport for displaying content transitions.
596
+ * This component is only required if one popup can be opened by multiple triggers, its content
597
+ * changes based on the trigger, and switching between them is animated.
598
+ * Renders a `<div>` element.
599
+ *
600
+ * Documentation: [Base UI Preview Card](https://base-ui.com/react/components/preview-card)
601
+ */
602
+ const PreviewCardViewport = /*#__PURE__*/ React$1.forwardRef(function PreviewCardViewport(componentProps, forwardedRef) {
603
+ const { render, className, style, children, ...elementProps } = componentProps;
604
+ const store = usePreviewCardRootContext();
605
+ const positioner = usePreviewCardPositionerContext();
606
+ const instantType = store.useState("instantType");
607
+ const { children: childrenToRender, state: viewportState } = usePopupViewport({
608
+ store,
609
+ side: positioner.side,
610
+ children
611
+ });
612
+ const state = {
613
+ activationDirection: viewportState.activationDirection,
614
+ transitioning: viewportState.transitioning,
615
+ instant: instantType
616
+ };
617
+ return useRenderElement("div", componentProps, {
618
+ state,
619
+ ref: forwardedRef,
620
+ props: [elementProps, { children: childrenToRender }],
621
+ stateAttributesMapping: popupViewportStateMapping
622
+ });
623
+ });
624
+ PreviewCardViewport.displayName = "PreviewCardViewport";
625
+ //#endregion
626
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/store/PreviewCardHandle.mjs
627
+ /**
628
+ * Controls a PreviewCard imperatively and associates detached `PreviewCard.Trigger` components with
629
+ * a `PreviewCard.Root`. Create one with `PreviewCard.createHandle()` and pass it to the `handle`
630
+ * prop of the root and of any triggers rendered outside of it.
631
+ *
632
+ * The imperative methods take effect only while a root using this handle is mounted; calls made
633
+ * before a root attaches (or after it unmounts) are ignored.
634
+ */
635
+ var PreviewCardHandle = class extends BasePopupHandle {
636
+ constructor() {
637
+ super(createNullPreviewCardStore(), "PreviewCard");
638
+ }
639
+ /**
640
+ * Opens the preview card and associates it with the trigger with the given id.
641
+ *
642
+ * This method should only be called in an event handler or an effect (not during rendering).
643
+ *
644
+ * @param triggerId ID of the trigger to associate with the preview card. The trigger must be a
645
+ * matching `PreviewCard.Trigger` with this handle passed as a prop.
646
+ */
647
+ open(triggerId) {
648
+ this.openByTrigger(triggerId);
649
+ }
650
+ /**
651
+ * Closes the preview card.
652
+ *
653
+ * This method should only be called in an event handler or an effect (not during rendering).
654
+ */
655
+ close() {
656
+ this.closePopup();
657
+ }
658
+ /**
659
+ * Whether the preview card is currently open. Returns `false` while no root is attached to the handle.
660
+ */
661
+ get isOpen() {
662
+ return this.attachedStore?.select("open") ?? false;
663
+ }
664
+ };
665
+ /**
666
+ * Creates a new handle to connect a PreviewCard.Root with detached PreviewCard.Trigger components.
667
+ */
668
+ function createPreviewCardHandle() {
669
+ return new PreviewCardHandle();
670
+ }
671
+ //#endregion
672
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/index.parts.mjs
673
+ var index_parts_exports = /* @__PURE__ */ __exportAll({
674
+ Arrow: () => PreviewCardArrow,
675
+ Backdrop: () => PreviewCardBackdrop,
676
+ Handle: () => PreviewCardHandle,
677
+ Popup: () => PreviewCardPopup,
678
+ Portal: () => PreviewCardPortal,
679
+ Positioner: () => PreviewCardPositioner,
680
+ Root: () => PreviewCardRoot,
681
+ Trigger: () => PreviewCardTrigger,
682
+ Viewport: () => PreviewCardViewport,
683
+ createHandle: () => createPreviewCardHandle
684
+ });
685
+ //#endregion
686
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/trigger/PreviewCardTriggerDataAttributes.mjs
687
+ var PreviewCardTriggerDataAttributes_exports = /* @__PURE__ */ __exportAll({ popupOpen: () => popupOpen });
688
+ /**
689
+ * Present when the corresponding preview card is open.
690
+ */
691
+ const popupOpen = popupOpen$1;
692
+ //#endregion
693
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/positioner/PreviewCardPositionerCssVars.mjs
694
+ var PreviewCardPositionerCssVars_exports = /* @__PURE__ */ __exportAll({
695
+ anchorHeight: () => anchorHeight,
696
+ anchorWidth: () => anchorWidth,
697
+ availableHeight: () => availableHeight,
698
+ availableWidth: () => availableWidth,
699
+ positionerHeight: () => positionerHeight,
700
+ positionerWidth: () => positionerWidth,
701
+ transformOrigin: () => transformOrigin
702
+ });
703
+ /**
704
+ * The available width between the trigger and the edge of the viewport.
705
+ * @type {number}
706
+ */
707
+ const availableWidth = "--available-width";
708
+ /**
709
+ * The available height between the trigger and the edge of the viewport.
710
+ * @type {number}
711
+ */
712
+ const availableHeight = "--available-height";
713
+ /**
714
+ * The anchor's width.
715
+ * @type {number}
716
+ */
717
+ const anchorWidth = "--anchor-width";
718
+ /**
719
+ * The anchor's height.
720
+ * @type {number}
721
+ */
722
+ const anchorHeight = "--anchor-height";
723
+ /**
724
+ * The coordinates that this element is anchored to. Used for animations and transitions.
725
+ * @type {string}
726
+ */
727
+ const transformOrigin = "--transform-origin";
728
+ /**
729
+ * The width of the preview card's positioner.
730
+ * It is important to set `width` to this value when using CSS to animate size changes.
731
+ * @type {number}
732
+ */
733
+ const positionerWidth = "--positioner-width";
734
+ /**
735
+ * The height of the preview card's positioner.
736
+ * It is important to set `height` to this value when using CSS to animate size changes.
737
+ * @type {number}
738
+ */
739
+ const positionerHeight = "--positioner-height";
740
+ //#endregion
741
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/positioner/PreviewCardPositionerDataAttributes.mjs
742
+ var PreviewCardPositionerDataAttributes_exports = /* @__PURE__ */ __exportAll({
743
+ align: () => align$2,
744
+ anchorHidden: () => anchorHidden,
745
+ closed: () => closed$3,
746
+ open: () => open$3,
747
+ side: () => side$2
748
+ });
749
+ /**
750
+ * Present when the preview card is open.
751
+ */
752
+ const open$3 = open$4;
753
+ /**
754
+ * Present when the preview card is closed.
755
+ */
756
+ const closed$3 = closed$4;
757
+ /**
758
+ * Present when the anchor is hidden.
759
+ */
760
+ const anchorHidden = anchorHidden$1;
761
+ /**
762
+ * Indicates which side the popup is positioned relative to the trigger.
763
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
764
+ */
765
+ const side$2 = side$3;
766
+ /**
767
+ * Indicates how the popup is aligned relative to specified side.
768
+ * @type {'start' | 'center' | 'end'}
769
+ */
770
+ const align$2 = align$3;
771
+ //#endregion
772
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/popup/PreviewCardPopupDataAttributes.mjs
773
+ var PreviewCardPopupDataAttributes_exports = /* @__PURE__ */ __exportAll({
774
+ align: () => align$1,
775
+ closed: () => closed$2,
776
+ endingStyle: () => endingStyle$1,
777
+ open: () => open$2,
778
+ side: () => side$1,
779
+ startingStyle: () => startingStyle$1
780
+ });
781
+ /**
782
+ * Present when the preview card is open.
783
+ */
784
+ const open$2 = open$4;
785
+ /**
786
+ * Present when the preview card is closed.
787
+ */
788
+ const closed$2 = closed$4;
789
+ /**
790
+ * Present when the preview card begins animating in.
791
+ */
792
+ const startingStyle$1 = startingStyle$2;
793
+ /**
794
+ * Present when the preview card is animating out.
795
+ */
796
+ const endingStyle$1 = endingStyle$2;
797
+ /**
798
+ * Indicates which side the popup is positioned relative to the trigger.
799
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
800
+ */
801
+ const side$1 = side$3;
802
+ /**
803
+ * Indicates how the popup is aligned relative to specified side.
804
+ * @type {'start' | 'center' | 'end'}
805
+ */
806
+ const align$1 = align$3;
807
+ //#endregion
808
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/arrow/PreviewCardArrowDataAttributes.mjs
809
+ var PreviewCardArrowDataAttributes_exports = /* @__PURE__ */ __exportAll({
810
+ align: () => align,
811
+ closed: () => closed$1,
812
+ open: () => open$1,
813
+ side: () => side,
814
+ uncentered: () => uncentered
815
+ });
816
+ /**
817
+ * Present when the preview card is open.
818
+ */
819
+ const open$1 = open$4;
820
+ /**
821
+ * Present when the preview card is closed.
822
+ */
823
+ const closed$1 = closed$4;
824
+ /**
825
+ * Indicates which side the popup is positioned relative to the trigger.
826
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
827
+ */
828
+ const side = side$3;
829
+ /**
830
+ * Indicates how the popup is aligned relative to specified side.
831
+ * @type {'start' | 'center' | 'end'}
832
+ */
833
+ const align = align$3;
834
+ /**
835
+ * Present when the preview card arrow is uncentered.
836
+ */
837
+ const uncentered = "data-uncentered";
838
+ //#endregion
839
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/backdrop/PreviewCardBackdropDataAttributes.mjs
840
+ var PreviewCardBackdropDataAttributes_exports = /* @__PURE__ */ __exportAll({
841
+ closed: () => closed,
842
+ endingStyle: () => endingStyle,
843
+ open: () => open,
844
+ startingStyle: () => startingStyle
845
+ });
846
+ /**
847
+ * Present when the preview card is open.
848
+ */
849
+ const open = open$4;
850
+ /**
851
+ * Present when the preview card is closed.
852
+ */
853
+ const closed = closed$4;
854
+ /**
855
+ * Present when the preview card begins animating in.
856
+ */
857
+ const startingStyle = startingStyle$2;
858
+ /**
859
+ * Present when the preview card is animating out.
860
+ */
861
+ const endingStyle = endingStyle$2;
862
+ //#endregion
863
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/viewport/PreviewCardViewportCssVars.mjs
864
+ var PreviewCardViewportCssVars_exports = /* @__PURE__ */ __exportAll({
865
+ popupHeight: () => popupHeight,
866
+ popupWidth: () => popupWidth
867
+ });
868
+ /**
869
+ * The width of the parent popup.
870
+ * This variable is placed on the 'previous' container and stores the width of the popup when the previous content was rendered.
871
+ * It can be used to freeze the dimensions of the popup when animating between different content.
872
+ */
873
+ const popupWidth = "--popup-width";
874
+ /**
875
+ * The height of the parent popup.
876
+ * This variable is placed on the 'previous' container and stores the height of the popup when the previous content was rendered.
877
+ * It can be used to freeze the dimensions of the popup when animating between different content.
878
+ */
879
+ const popupHeight = "--popup-height";
880
+ //#endregion
881
+ //#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/preview-card/viewport/PreviewCardViewportDataAttributes.mjs
882
+ var PreviewCardViewportDataAttributes_exports = /* @__PURE__ */ __exportAll({
883
+ activationDirection: () => activationDirection,
884
+ current: () => current,
885
+ instant: () => instant,
886
+ previous: () => previous,
887
+ transitioning: () => transitioning
888
+ });
889
+ /**
890
+ * Applied to the direct child of the viewport when no transitions are present or the new content when it's entering.
891
+ */
892
+ const current = "data-current";
893
+ /**
894
+ * Applied to the direct child of the viewport that contains the exiting content when transitions are present.
895
+ */
896
+ const previous = "data-previous";
897
+ /**
898
+ * Indicates the direction from which the popup was activated.
899
+ * This can be used to create directional animations based on how the popup was triggered.
900
+ * Contains space-separated values for both horizontal and vertical axes.
901
+ * @type {`${'left' | 'right' | ''} ${'down' | 'up' | ''}`}
902
+ */
903
+ const activationDirection = "data-activation-direction";
904
+ /**
905
+ * Indicates that the viewport is currently transitioning between old and new content.
906
+ */
907
+ const transitioning = "data-transitioning";
908
+ /**
909
+ * Present if animations should be instant.
910
+ * @type {'dismiss' | 'focus'}
911
+ */
912
+ const instant = "data-instant";
913
+ //#endregion
914
+ export { PreviewCardPopupDataAttributes_exports as a, PreviewCardTriggerDataAttributes_exports as c, PreviewCardArrowDataAttributes_exports as i, index_parts_exports as l, PreviewCardViewportCssVars_exports as n, PreviewCardPositionerDataAttributes_exports as o, PreviewCardBackdropDataAttributes_exports as r, PreviewCardPositionerCssVars_exports as s, PreviewCardViewportDataAttributes_exports as t };