@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,1654 @@
1
+ "use client";
2
+ import { t as __exportAll } from "./rolldown-runtime-hi7ti5xiuxsegr96.js";
3
+ import { i as mergeProps, n as useRenderElement, o as EMPTY_ARRAY, s as EMPTY_OBJECT } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
4
+ import { _ as FocusGuard, a as FloatingPortal, f as DROPDOWN_COLLISION_AVOIDANCE, h as ownerVisuallyHidden, i as PopupTriggerMap, m as POPUP_COLLISION_AVOIDANCE, t as FloatingRootStore } from "./FloatingRootStore-men6ufp3a2b296fh.js";
5
+ import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
6
+ import { n as useTimeout } from "./useTimeout-f0ayn2l2l9aop4l8.js";
7
+ import { $ as getTarget, A as popupTransitionStateMapping, B as side$3, F as align$3, H as transitionStatusMapping, I as anchorHidden$2, L as closed$5, M as triggerOpenStateMapping, N as popupOpen$2, P as pressed$1, Q as contains, R as endingStyle$3, V as startingStyle$3, X as activeElement, Z as closest, a as getPreviousTabbable, at as stopEvent, i as getNextTabbable, j as pressableTriggerOpenStateMapping, k as popupStateMapping, n as enableFocusInside, o as getTabbableNearElement, s as isOutsideEvent, t as disableFocusInside, v as ownerDocument, z as open$5 } from "./vendor-utils-io8z5lsfxq8m2dcc.js";
8
+ import { E as isHTMLElement, w as getWindow } from "./vendor-floating-ui-fqblx3wa0r71mjoo.js";
9
+ import { a as clearSafePolygonPointerEventsMutation, i as applySafePolygonPointerEventsMutation, n as useHoverReferenceInteraction, o as useHoverInteractionSharedState, r as useHoverFloatingInteraction, t as safePolygon } from "./safePolygon-ep4133qogeu5vjf3.js";
10
+ import { t as createChangeEventDetails } from "./createBaseUIEventDetails-nvee6bghv2reeqdb.js";
11
+ import { N as triggerHover, P as triggerPress, S as listNavigation, T as outsidePress, d as imperativeAction, u as focusOut, x as linkPress } from "./reason-parts-hssx64rmlxyn6gw5.js";
12
+ import { t as addEventListener } from "./addEventListener-ku3x23446prmd1kz.js";
13
+ import { t as mergeCleanups } from "./mergeCleanups-nw73c6jfwl5tyhw4.js";
14
+ import { t as useValueAsRef } from "./useValueAsRef-dv0tmfr1xlpzdlru.js";
15
+ import { t as useStableCallback } from "./useStableCallback-le5qgj6p9l04729n.js";
16
+ import { n as useAnimationFrame } from "./useAnimationFrame-k9lqdj9quln3sd85.js";
17
+ import { g as useDismiss, i as attachPreventUnmountOnClose, m as useUnmountAfterClose, v as getNodeChildren } from "./popupStoreUtils-czfnxn051xakask5.js";
18
+ import { t as useId$1 } from "./useId-82z8yqlmc1hy1c5t.js";
19
+ import { a as useFloatingTree, i as useFloatingParentNodeId, n as FloatingTree, r as useFloatingNodeId, t as FloatingNode } from "./FloatingTree-kiyzavvaum442o1s.js";
20
+ import { n as useAnimationsFinished, t as useOpenChangeComplete } from "./useOpenChangeComplete-edtabjwqmechsyv6.js";
21
+ import { t as useClick } from "./useClick-pcbkcc7r620v1smu.js";
22
+ import { t as useTransitionStatus } from "./useTransitionStatus-disysoblzgk34w14.js";
23
+ import { t as useFloatingRootContext } from "./useFloatingRootContext-k676b6m7f80bdapd.js";
24
+ import { t as useBaseUiId } from "./useBaseUiId-nk4k7nj9h1cy76ny.js";
25
+ import { i as useAnchorPositioningWithHook, n as getDisabledMountTransitionStyles, t as usePositioner, u as useBaseUIFloating } from "./usePositioner-mzvgnazldqvy44z2.js";
26
+ import { n as useDirection } from "./DirectionContext-kpby968j030psajn.js";
27
+ import { t as inertValue } from "./inertValue-n09gkjvwwa1kddov.js";
28
+ import { t as getCssDimensions } from "./getCssDimensions-gckwdrp86f73cv51.js";
29
+ import { t as adaptiveOrigin } from "./adaptiveOriginMiddleware-m9tqzw58wya9sdds.js";
30
+ import { t as useControlled } from "./useControlled-i3srnkxy598s0au9.js";
31
+ import { t as useButton } from "./useButton-lklvdzuhvj22bx07.js";
32
+ import { t as CompositeRoot } from "./CompositeRoot-dnlkb27uw4g5aocf.js";
33
+ import { t as CompositeItem } from "./CompositeItem-kepwg8jtvgap06o6.js";
34
+ import * as React$1 from "react";
35
+ import { jsx, jsxs } from "react/jsx-runtime";
36
+ import * as ReactDOM from "react-dom";
37
+ //#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/navigation-menu/root/NavigationMenuRootContext.mjs
38
+ const NavigationMenuRootContext = /*#__PURE__*/ React$1.createContext(void 0);
39
+ NavigationMenuRootContext.displayName = "NavigationMenuRootContext";
40
+ NavigationMenuRootContext.displayName = "NavigationMenuRootContext";
41
+ function useNavigationMenuRootContext(optional) {
42
+ const context = React$1.useContext(NavigationMenuRootContext);
43
+ if (context === void 0 && !optional) throw new Error("Base UI: NavigationMenuRootContext is missing. Navigation Menu parts must be placed within <NavigationMenu.Root>.");
44
+ return context;
45
+ }
46
+ const NavigationMenuTreeContext = /*#__PURE__*/ React$1.createContext(void 0);
47
+ NavigationMenuTreeContext.displayName = "NavigationMenuTreeContext";
48
+ function useNavigationMenuTreeContext() {
49
+ return React$1.useContext(NavigationMenuTreeContext);
50
+ }
51
+ //#endregion
52
+ //#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/navigation-menu/positioner/NavigationMenuPositionerCssVars.mjs
53
+ var NavigationMenuPositionerCssVars_exports = /* @__PURE__ */ __exportAll({
54
+ anchorHeight: () => anchorHeight,
55
+ anchorWidth: () => anchorWidth,
56
+ availableHeight: () => availableHeight,
57
+ availableWidth: () => availableWidth,
58
+ positionerHeight: () => positionerHeight,
59
+ positionerWidth: () => positionerWidth,
60
+ transformOrigin: () => transformOrigin
61
+ });
62
+ /**
63
+ * The available width between the trigger and the edge of the viewport.
64
+ * @type {number}
65
+ */
66
+ const availableWidth = "--available-width";
67
+ /**
68
+ * The available height between the trigger and the edge of the viewport.
69
+ * @type {number}
70
+ */
71
+ const availableHeight = "--available-height";
72
+ /**
73
+ * The anchor's width.
74
+ * @type {number}
75
+ */
76
+ const anchorWidth = "--anchor-width";
77
+ /**
78
+ * The anchor's height.
79
+ * @type {number}
80
+ */
81
+ const anchorHeight = "--anchor-height";
82
+ /**
83
+ * The coordinates that this element is anchored to. Used for animations and transitions.
84
+ * @type {string}
85
+ */
86
+ const transformOrigin = "--transform-origin";
87
+ /**
88
+ * The fixed width of the positioner element.
89
+ * @type {number}
90
+ */
91
+ const positionerWidth = "--positioner-width";
92
+ /**
93
+ * The fixed height of the positioner element.
94
+ * @type {number}
95
+ */
96
+ const positionerHeight = "--positioner-height";
97
+ //#endregion
98
+ //#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/navigation-menu/popup/NavigationMenuPopupCssVars.mjs
99
+ var NavigationMenuPopupCssVars_exports = /* @__PURE__ */ __exportAll({
100
+ popupHeight: () => popupHeight,
101
+ popupWidth: () => popupWidth
102
+ });
103
+ /**
104
+ * The fixed width of the popup element.
105
+ * @type {number}
106
+ */
107
+ const popupWidth = "--popup-width";
108
+ /**
109
+ * The fixed height of the popup element.
110
+ * @type {number}
111
+ */
112
+ const popupHeight = "--popup-height";
113
+ //#endregion
114
+ //#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/navigation-menu/utils/setSharedFixedSize.mjs
115
+ function setSharedFixedSize(popupElement, positionerElement, width, height) {
116
+ popupElement.style.setProperty(popupWidth, `${width}px`);
117
+ popupElement.style.setProperty(popupHeight, `${height}px`);
118
+ positionerElement.style.setProperty(positionerWidth, `${width}px`);
119
+ positionerElement.style.setProperty(positionerHeight, `${height}px`);
120
+ }
121
+ //#endregion
122
+ //#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/navigation-menu/root/NavigationMenuRoot.mjs
123
+ const blockedReturnFocusReasons = /* @__PURE__ */ new Set([
124
+ triggerHover,
125
+ outsidePress,
126
+ focusOut
127
+ ]);
128
+ function getPositionerFixedSize(positionerElement) {
129
+ const width = parseFloat(positionerElement.style.getPropertyValue("--positioner-width")) || 0;
130
+ const height = parseFloat(positionerElement.style.getPropertyValue("--positioner-height")) || 0;
131
+ if (width <= 0 || height <= 0) return null;
132
+ return {
133
+ width,
134
+ height
135
+ };
136
+ }
137
+ /**
138
+ * Groups all parts of the navigation menu.
139
+ * Renders a `<nav>` element at the root, or `<div>` element when nested.
140
+ *
141
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
142
+ */
143
+ const NavigationMenuRoot = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuRoot(componentProps, forwardedRef) {
144
+ const { defaultValue = null, value: valueParam, onValueChange, actionsRef, delay = 50, closeDelay = 50, orientation = "horizontal", onOpenChangeComplete } = componentProps;
145
+ const nested = useFloatingParentNodeId() != null;
146
+ const parentRootContext = useNavigationMenuRootContext(true);
147
+ const [value, setValueUnwrapped] = useControlled({
148
+ controlled: valueParam,
149
+ default: defaultValue,
150
+ name: "NavigationMenu",
151
+ state: "value"
152
+ });
153
+ const open = value != null;
154
+ const closeReasonRef = React$1.useRef(void 0);
155
+ const rootRef = React$1.useRef(null);
156
+ const [positionerElement, setPositionerElement] = React$1.useState(null);
157
+ const [popupElement, setPopupElement] = React$1.useState(null);
158
+ const [viewportElement, setViewportElement] = React$1.useState(null);
159
+ const [viewportTargetElement, setViewportTargetElement] = React$1.useState(null);
160
+ const [activationDirection, setActivationDirection] = React$1.useState(null);
161
+ const [floatingRootContext, setFloatingRootContext] = React$1.useState(void 0);
162
+ const [viewportInert, setViewportInert] = React$1.useState(false);
163
+ const prevTriggerElementRef = React$1.useRef(null);
164
+ const currentContentRef = React$1.useRef(null);
165
+ const beforeInsideRef = React$1.useRef(null);
166
+ const afterInsideRef = React$1.useRef(null);
167
+ const beforeOutsideRef = React$1.useRef(null);
168
+ const afterOutsideRef = React$1.useRef(null);
169
+ const popupAutoSizeResetRef = React$1.useRef({
170
+ abortController: null,
171
+ owner: null
172
+ });
173
+ const [preventUnmountOnClose, setPreventUnmountOnClose] = React$1.useState(false);
174
+ const { mounted, transitionStatus, preventUnmountingOnClose, forceUnmount: handleUnmount } = useUnmountAfterClose({
175
+ open,
176
+ ref: { current: popupElement },
177
+ preventUnmountOnClose,
178
+ setPreventUnmountOnClose,
179
+ onUnmount() {
180
+ const doc = ownerDocument(rootRef.current);
181
+ const activeEl = activeElement(doc);
182
+ if (!(closeReasonRef.current ? blockedReturnFocusReasons.has(closeReasonRef.current) : false) && isHTMLElement(prevTriggerElementRef.current) && (activeEl === ownerDocument(popupElement).body || contains(popupElement, activeEl)) && popupElement) {
183
+ prevTriggerElementRef.current.focus({ preventScroll: true });
184
+ prevTriggerElementRef.current = void 0;
185
+ }
186
+ onOpenChangeComplete?.(false);
187
+ setActivationDirection(null);
188
+ setFloatingRootContext(void 0);
189
+ currentContentRef.current = null;
190
+ closeReasonRef.current = void 0;
191
+ }
192
+ });
193
+ useOpenChangeComplete({
194
+ enabled: mounted && !open && !preventUnmountingOnClose,
195
+ open,
196
+ ref: { current: viewportTargetElement },
197
+ onComplete() {
198
+ if (!open) handleUnmount();
199
+ }
200
+ });
201
+ useIsoLayoutEffect(() => {
202
+ if (open) return;
203
+ if (!positionerElement || !popupElement) return;
204
+ const closeTransitionSize = getPositionerFixedSize(positionerElement);
205
+ if (!closeTransitionSize) return;
206
+ setSharedFixedSize(popupElement, positionerElement, closeTransitionSize.width, closeTransitionSize.height);
207
+ }, [
208
+ open,
209
+ popupElement,
210
+ positionerElement
211
+ ]);
212
+ React$1.useEffect(() => {
213
+ setViewportInert(false);
214
+ }, [value]);
215
+ const setValue = useStableCallback((nextValue, eventDetails) => {
216
+ if (nextValue == null) closeReasonRef.current = eventDetails.reason;
217
+ const changeEventDetails = eventDetails;
218
+ const shouldPreventUnmountOnClose = attachPreventUnmountOnClose(changeEventDetails);
219
+ if (nextValue !== value) onValueChange?.(nextValue, changeEventDetails);
220
+ if (eventDetails.isCanceled) return;
221
+ if (nextValue == null) {
222
+ if (value != null) setPreventUnmountOnClose(shouldPreventUnmountOnClose());
223
+ setActivationDirection(null);
224
+ setFloatingRootContext(void 0);
225
+ }
226
+ setValueUnwrapped(nextValue);
227
+ if (nested && nextValue == null && eventDetails.reason === "link-press" && parentRootContext) parentRootContext.setValue(null, eventDetails);
228
+ });
229
+ React$1.useImperativeHandle(actionsRef, () => ({
230
+ unmount: handleUnmount,
231
+ close: () => setValue(null, createChangeEventDetails(imperativeAction))
232
+ }), [handleUnmount, setValue]);
233
+ const contextActivationDirection = open ? activationDirection : null;
234
+ const contextValue = React$1.useMemo(() => ({
235
+ open,
236
+ value,
237
+ setValue,
238
+ mounted,
239
+ transitionStatus,
240
+ positionerElement,
241
+ setPositionerElement,
242
+ popupElement,
243
+ setPopupElement,
244
+ viewportElement,
245
+ setViewportElement,
246
+ viewportTargetElement,
247
+ setViewportTargetElement,
248
+ activationDirection: contextActivationDirection,
249
+ setActivationDirection,
250
+ floatingRootContext,
251
+ setFloatingRootContext,
252
+ currentContentRef,
253
+ nested,
254
+ rootRef,
255
+ beforeInsideRef,
256
+ afterInsideRef,
257
+ beforeOutsideRef,
258
+ afterOutsideRef,
259
+ prevTriggerElementRef,
260
+ popupAutoSizeResetRef,
261
+ delay,
262
+ closeDelay,
263
+ orientation,
264
+ viewportInert,
265
+ setViewportInert
266
+ }), [
267
+ open,
268
+ value,
269
+ setValue,
270
+ mounted,
271
+ transitionStatus,
272
+ positionerElement,
273
+ popupElement,
274
+ viewportElement,
275
+ viewportTargetElement,
276
+ contextActivationDirection,
277
+ floatingRootContext,
278
+ nested,
279
+ delay,
280
+ closeDelay,
281
+ orientation,
282
+ viewportInert
283
+ ]);
284
+ const jsx$1 = /*#__PURE__*/ jsx(NavigationMenuRootContext.Provider, {
285
+ value: contextValue,
286
+ children: /*#__PURE__*/ jsx(TreeContext, {
287
+ componentProps,
288
+ forwardedRef,
289
+ children: componentProps.children
290
+ })
291
+ });
292
+ if (!nested) return /*#__PURE__*/ jsx(FloatingTree, { children: jsx$1 });
293
+ return jsx$1;
294
+ });
295
+ NavigationMenuRoot.displayName = "NavigationMenuRoot";
296
+ function TreeContext(props) {
297
+ const { className, render, defaultValue, value: valueParam, onValueChange, actionsRef, delay, closeDelay, orientation, onOpenChangeComplete, style, ...elementProps } = props.componentProps;
298
+ const nodeId = useFloatingNodeId();
299
+ const { rootRef, nested, open } = useNavigationMenuRootContext();
300
+ const state = {
301
+ open,
302
+ nested
303
+ };
304
+ const element = useRenderElement(nested ? "div" : "nav", props.componentProps, {
305
+ state,
306
+ ref: [props.forwardedRef, rootRef],
307
+ props: elementProps
308
+ });
309
+ return /*#__PURE__*/ jsx(NavigationMenuTreeContext.Provider, {
310
+ value: nodeId,
311
+ children: /*#__PURE__*/ jsx(FloatingNode, {
312
+ id: nodeId,
313
+ children: element
314
+ })
315
+ });
316
+ }
317
+ //#endregion
318
+ //#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/navigation-menu/utils/constants.mjs
319
+ const NAVIGATION_MENU_TRIGGER_IDENTIFIER = "data-base-ui-navigation-menu-trigger";
320
+ //#endregion
321
+ //#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/navigation-menu/list/NavigationMenuDismissContext.mjs
322
+ const NavigationMenuDismissContext = /*#__PURE__*/ React$1.createContext(void 0);
323
+ NavigationMenuDismissContext.displayName = "NavigationMenuDismissContext";
324
+ function useNavigationMenuDismissContext() {
325
+ return React$1.useContext(NavigationMenuDismissContext);
326
+ }
327
+ //#endregion
328
+ //#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/floating-ui-react/utils/getEmptyRootContext.mjs
329
+ function getEmptyRootContext() {
330
+ return new FloatingRootStore({
331
+ open: false,
332
+ transitionStatus: void 0,
333
+ floatingElement: null,
334
+ referenceElement: null,
335
+ triggerElements: new PopupTriggerMap(),
336
+ floatingId: void 0,
337
+ syncOnly: false,
338
+ nested: false,
339
+ onOpenChange: void 0
340
+ });
341
+ }
342
+ //#endregion
343
+ //#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/navigation-menu/list/NavigationMenuList.mjs
344
+ /**
345
+ * Contains a list of navigation menu items.
346
+ * Renders a `<ul>` element.
347
+ *
348
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
349
+ */
350
+ const NavigationMenuList = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuList(componentProps, forwardedRef) {
351
+ const { render, className, style, ...elementProps } = componentProps;
352
+ const nodeId = useNavigationMenuTreeContext();
353
+ const { orientation, open, floatingRootContext, positionerElement, value, closeDelay, viewportElement, nested } = useNavigationMenuRootContext();
354
+ const fallbackContext = React$1.useMemo(() => getEmptyRootContext(), []);
355
+ const context = floatingRootContext || fallbackContext;
356
+ const interactionsEnabled = positionerElement != null || value == null;
357
+ useHoverFloatingInteraction(context, {
358
+ enabled: Boolean(floatingRootContext) && (positionerElement != null || viewportElement != null || value == null),
359
+ closeDelay,
360
+ nodeId
361
+ });
362
+ const dismiss = useDismiss(context, {
363
+ enabled: interactionsEnabled,
364
+ outsidePressEvent: "intentional",
365
+ outsidePress(event) {
366
+ const target = getTarget(event);
367
+ return closest(target, `[${NAVIGATION_MENU_TRIGGER_IDENTIFIER}]`) === null;
368
+ }
369
+ });
370
+ const dismissProps = floatingRootContext ? dismiss : void 0;
371
+ const state = { open };
372
+ const defaultProps = nested ? EMPTY_OBJECT : { onKeyDown(event) {
373
+ if (orientation === "horizontal" && (event.key === "ArrowLeft" || event.key === "ArrowRight") || orientation === "vertical" && (event.key === "ArrowUp" || event.key === "ArrowDown")) event.stopPropagation();
374
+ } };
375
+ const props = [
376
+ dismissProps?.floating || EMPTY_OBJECT,
377
+ defaultProps,
378
+ elementProps
379
+ ];
380
+ const element = useRenderElement("ul", componentProps, {
381
+ state,
382
+ ref: forwardedRef,
383
+ props,
384
+ enabled: nested
385
+ });
386
+ if (nested) return /*#__PURE__*/ jsx(NavigationMenuDismissContext.Provider, {
387
+ value: dismissProps,
388
+ children: element
389
+ });
390
+ return /*#__PURE__*/ jsx(NavigationMenuDismissContext.Provider, {
391
+ value: dismissProps,
392
+ children: /*#__PURE__*/ jsx(CompositeRoot, {
393
+ render,
394
+ className,
395
+ style,
396
+ state,
397
+ refs: [forwardedRef],
398
+ props,
399
+ loopFocus: false,
400
+ orientation,
401
+ tag: "ul"
402
+ })
403
+ });
404
+ });
405
+ NavigationMenuList.displayName = "NavigationMenuList";
406
+ //#endregion
407
+ //#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/navigation-menu/item/NavigationMenuItemContext.mjs
408
+ const NavigationMenuItemContext = /*#__PURE__*/ React$1.createContext(void 0);
409
+ NavigationMenuItemContext.displayName = "NavigationMenuItemContext";
410
+ function useNavigationMenuItemContext() {
411
+ const value = React$1.useContext(NavigationMenuItemContext);
412
+ if (!value) throw new Error("Base UI: NavigationMenuItem parts must be used within a <NavigationMenu.Item>.");
413
+ return value;
414
+ }
415
+ //#endregion
416
+ //#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/navigation-menu/item/NavigationMenuItem.mjs
417
+ /**
418
+ * An individual navigation menu item.
419
+ * Renders a `<li>` element.
420
+ *
421
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
422
+ */
423
+ const NavigationMenuItem = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuItem(componentProps, forwardedRef) {
424
+ const { render, className, style, value: valueProp, ...elementProps } = componentProps;
425
+ const fallbackValue = useBaseUiId();
426
+ const value = valueProp ?? fallbackValue;
427
+ const element = useRenderElement("li", componentProps, {
428
+ ref: forwardedRef,
429
+ props: elementProps
430
+ });
431
+ const contextValue = React$1.useMemo(() => ({ value }), [value]);
432
+ return /*#__PURE__*/ jsx(NavigationMenuItemContext.Provider, {
433
+ value: contextValue,
434
+ children: element
435
+ });
436
+ });
437
+ NavigationMenuItem.displayName = "NavigationMenuItem";
438
+ //#endregion
439
+ //#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/navigation-menu/content/NavigationMenuContentDataAttributes.mjs
440
+ var NavigationMenuContentDataAttributes_exports = /* @__PURE__ */ __exportAll({
441
+ activationDirection: () => activationDirection,
442
+ closed: () => closed$4,
443
+ endingStyle: () => endingStyle$2,
444
+ open: () => open$4,
445
+ startingStyle: () => startingStyle$2
446
+ });
447
+ /**
448
+ * Present when the popup is open.
449
+ */
450
+ const open$4 = open$5;
451
+ /**
452
+ * Present when the popup is closed.
453
+ */
454
+ const closed$4 = closed$5;
455
+ /**
456
+ * Present when the content begins animating in.
457
+ */
458
+ const startingStyle$2 = startingStyle$3;
459
+ /**
460
+ * Present when the content is animating out.
461
+ */
462
+ const endingStyle$2 = endingStyle$3;
463
+ /**
464
+ * Which direction another trigger was activated from.
465
+ * @type {'left' | 'right' | 'up' | 'down'}
466
+ */
467
+ const activationDirection = "data-activation-direction";
468
+ //#endregion
469
+ //#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/navigation-menu/content/NavigationMenuContent.mjs
470
+ const stateAttributesMapping = {
471
+ ...popupStateMapping,
472
+ ...transitionStatusMapping,
473
+ activationDirection(value) {
474
+ if (!value) return null;
475
+ return { [activationDirection]: value };
476
+ }
477
+ };
478
+ /**
479
+ * A container for the content of the navigation menu item that is moved into the popup
480
+ * when the item is active.
481
+ * Renders a `<div>` element.
482
+ *
483
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
484
+ */
485
+ const NavigationMenuContent = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuContent(componentProps, forwardedRef) {
486
+ const { render, className, style, keepMounted = false, ...elementProps } = componentProps;
487
+ const { mounted: popupMounted, viewportElement, value, activationDirection, currentContentRef, viewportTargetElement } = useNavigationMenuRootContext();
488
+ const { value: itemValue } = useNavigationMenuItemContext();
489
+ const nodeId = useNavigationMenuTreeContext();
490
+ const open = popupMounted && value === itemValue;
491
+ const ref = React$1.useRef(null);
492
+ const [hasMountedInPortal, setHasMountedInPortal] = React$1.useState(false);
493
+ const [focusInside, setFocusInside] = React$1.useState(false);
494
+ const { mounted, setMounted, transitionStatus } = useTransitionStatus(open);
495
+ if (mounted && !popupMounted) setMounted(false);
496
+ useOpenChangeComplete({
497
+ ref,
498
+ open,
499
+ onComplete() {
500
+ if (!open) setMounted(false);
501
+ }
502
+ });
503
+ useIsoLayoutEffect(() => {
504
+ if (open && ref.current) currentContentRef.current = ref.current;
505
+ }, [open, currentContentRef]);
506
+ const state = {
507
+ open,
508
+ transitionStatus,
509
+ activationDirection
510
+ };
511
+ const handleCurrentContentRef = useStableCallback((node) => {
512
+ if (node && open) currentContentRef.current = node;
513
+ });
514
+ const commonProps = {
515
+ onFocus(event) {
516
+ if (getTarget(event.nativeEvent)?.hasAttribute("data-base-ui-focus-guard")) return;
517
+ setFocusInside(true);
518
+ },
519
+ onBlur(event) {
520
+ if (!contains(event.currentTarget, event.relatedTarget)) setFocusInside(false);
521
+ }
522
+ };
523
+ const defaultProps = !open && mounted ? {
524
+ style: {
525
+ position: "absolute",
526
+ top: 0,
527
+ left: 0
528
+ },
529
+ inert: inertValue(!focusInside),
530
+ ...commonProps
531
+ } : commonProps;
532
+ const portalContainer = viewportTargetElement || viewportElement;
533
+ const hidden = keepMounted && !mounted;
534
+ const shouldRenderInline = keepMounted && !portalContainer && !hasMountedInPortal;
535
+ if (keepMounted && portalContainer && !hasMountedInPortal) setHasMountedInPortal(true);
536
+ if (shouldRenderInline) return /*#__PURE__*/ jsx(CompositeRoot, {
537
+ render,
538
+ className,
539
+ style,
540
+ state,
541
+ refs: [forwardedRef],
542
+ props: [
543
+ defaultProps,
544
+ { hidden: true },
545
+ elementProps
546
+ ],
547
+ stateAttributesMapping
548
+ });
549
+ if (!portalContainer || !mounted && !keepMounted) return null;
550
+ return /*#__PURE__*/ ReactDOM.createPortal(/*#__PURE__*/ jsx(FloatingNode, {
551
+ id: nodeId,
552
+ children: /*#__PURE__*/ jsx(CompositeRoot, {
553
+ render,
554
+ className,
555
+ style,
556
+ state,
557
+ refs: [
558
+ forwardedRef,
559
+ ref,
560
+ handleCurrentContentRef
561
+ ],
562
+ props: [
563
+ defaultProps,
564
+ hidden ? { hidden: true } : EMPTY_OBJECT,
565
+ elementProps
566
+ ],
567
+ stateAttributesMapping
568
+ })
569
+ }), portalContainer);
570
+ });
571
+ NavigationMenuContent.displayName = "NavigationMenuContent";
572
+ //#endregion
573
+ //#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/navigation-menu/utils/isOutsideMenuEvent.mjs
574
+ function isOutsideMenuEvent({ currentTarget, relatedTarget }, params) {
575
+ const { popupElement, rootRef, tree, nodeId } = params;
576
+ const nodeChildrenContains = tree ? getNodeChildren(tree.nodesRef.current, nodeId).some((node) => contains(node.context?.elements.floating, relatedTarget)) : false;
577
+ if (!popupElement) return !contains(rootRef.current, relatedTarget) && !nodeChildrenContains;
578
+ return !contains(popupElement, currentTarget) && !contains(popupElement, relatedTarget) && !contains(rootRef.current, relatedTarget) && !nodeChildrenContains;
579
+ }
580
+ //#endregion
581
+ //#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/navigation-menu/trigger/NavigationMenuTrigger.mjs
582
+ const DEFAULT_SIZE = {
583
+ width: 0,
584
+ height: 0
585
+ };
586
+ /**
587
+ * Opens the navigation menu popup when hovered or clicked, revealing the
588
+ * associated content.
589
+ * Renders a `<button>` element.
590
+ *
591
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
592
+ */
593
+ const NavigationMenuTrigger = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuTrigger(componentProps, forwardedRef) {
594
+ const { render, className, style, nativeButton = true, disabled = false, ...elementProps } = componentProps;
595
+ const { value, setValue, mounted, open, positionerElement, setActivationDirection, setFloatingRootContext, popupElement, viewportElement, transitionStatus, rootRef, beforeOutsideRef, afterOutsideRef, afterInsideRef, beforeInsideRef, prevTriggerElementRef, popupAutoSizeResetRef, currentContentRef, delay, closeDelay, orientation, setViewportInert, nested } = useNavigationMenuRootContext();
596
+ const { value: itemValue } = useNavigationMenuItemContext();
597
+ const nodeId = useNavigationMenuTreeContext();
598
+ const tree = useFloatingTree();
599
+ const dismissProps = useNavigationMenuDismissContext();
600
+ const direction = useDirection();
601
+ const stickIfOpenTimeout = useTimeout();
602
+ const mutationFrame = useAnimationFrame();
603
+ const resizeFrame = useAnimationFrame();
604
+ const sizeFrame = useAnimationFrame();
605
+ const [triggerElement, setTriggerElement] = React$1.useState(null);
606
+ const [stickIfOpen, setStickIfOpen] = React$1.useState(true);
607
+ const [pointerType, setPointerType] = React$1.useState("");
608
+ const triggerElementRef = React$1.useRef(null);
609
+ const prevSizeRef = React$1.useRef(DEFAULT_SIZE);
610
+ const skipAutoSizeSyncRef = React$1.useRef(false);
611
+ const isActiveItem = open && value === itemValue;
612
+ const isActiveItemRef = useValueAsRef(isActiveItem);
613
+ const interactionsEnabled = (positionerElement != null || value == null) && !disabled;
614
+ const hoverFloatingElement = positionerElement || viewportElement;
615
+ const hoverInteractionsEnabled = (hoverFloatingElement != null || value == null) && !disabled;
616
+ const runOnceAnimationsFinish = useAnimationsFinished(popupElement);
617
+ const handleTriggerElement = React$1.useCallback((element) => {
618
+ triggerElementRef.current = element;
619
+ setTriggerElement(element);
620
+ }, []);
621
+ const cancelAutoSizeReset = useStableCallback((force = false) => {
622
+ if (!force && popupAutoSizeResetRef.current.owner !== itemValue) return;
623
+ popupAutoSizeResetRef.current.abortController?.abort();
624
+ popupAutoSizeResetRef.current.abortController = null;
625
+ popupAutoSizeResetRef.current.owner = null;
626
+ });
627
+ useIsoLayoutEffect(() => {
628
+ if (isActiveItem) return;
629
+ mutationFrame.cancel();
630
+ sizeFrame.cancel();
631
+ cancelAutoSizeReset();
632
+ }, [
633
+ isActiveItem,
634
+ mutationFrame,
635
+ sizeFrame,
636
+ cancelAutoSizeReset
637
+ ]);
638
+ function setAutoSizes(element) {
639
+ element.style.setProperty(popupWidth, "auto");
640
+ element.style.setProperty(popupHeight, "auto");
641
+ }
642
+ function clearFixedSizes(popup, positioner) {
643
+ popup.style.removeProperty(popupWidth);
644
+ popup.style.removeProperty(popupHeight);
645
+ positioner.style.removeProperty(positionerWidth);
646
+ positioner.style.removeProperty(positionerHeight);
647
+ }
648
+ function scheduleAutoSizeReset(popup) {
649
+ cancelAutoSizeReset(true);
650
+ const abortController = new AbortController();
651
+ popupAutoSizeResetRef.current.abortController = abortController;
652
+ popupAutoSizeResetRef.current.owner = itemValue;
653
+ runOnceAnimationsFinish(() => {
654
+ popupAutoSizeResetRef.current.abortController = null;
655
+ popupAutoSizeResetRef.current.owner = null;
656
+ setAutoSizes(popup);
657
+ }, abortController.signal);
658
+ }
659
+ const handleValueChange = useStableCallback((popup, positioner, currentWidth, currentHeight) => {
660
+ cancelAutoSizeReset(true);
661
+ clearFixedSizes(popup, positioner);
662
+ const { width, height } = getCssDimensions(popup);
663
+ const measuredWidth = width || prevSizeRef.current.width;
664
+ const measuredHeight = height || prevSizeRef.current.height;
665
+ if (currentHeight === 0 || currentWidth === 0) {
666
+ currentWidth = measuredWidth;
667
+ currentHeight = measuredHeight;
668
+ }
669
+ popup.style.setProperty(popupWidth, `${currentWidth}px`);
670
+ popup.style.setProperty(popupHeight, `${currentHeight}px`);
671
+ positioner.style.setProperty(positionerWidth, `${measuredWidth}px`);
672
+ positioner.style.setProperty(positionerHeight, `${measuredHeight}px`);
673
+ sizeFrame.request(() => {
674
+ if (!isActiveItemRef.current) return;
675
+ popup.style.setProperty(popupWidth, `${measuredWidth}px`);
676
+ popup.style.setProperty(popupHeight, `${measuredHeight}px`);
677
+ scheduleAutoSizeReset(popup);
678
+ });
679
+ });
680
+ const handleInterruptedMutationResize = useStableCallback((popup, positioner, currentWidth, currentHeight) => {
681
+ sizeFrame.cancel();
682
+ mutationFrame.cancel();
683
+ cancelAutoSizeReset(true);
684
+ if (currentWidth === 0 || currentHeight === 0) return;
685
+ setSharedFixedSize(popup, positioner, currentWidth, currentHeight);
686
+ mutationFrame.request(() => {
687
+ mutationFrame.request(() => {
688
+ clearFixedSizes(popup, positioner);
689
+ const { width, height } = getCssDimensions(popup);
690
+ const measuredWidth = width || currentWidth;
691
+ const measuredHeight = height || currentHeight;
692
+ setSharedFixedSize(popup, positioner, currentWidth, currentHeight);
693
+ sizeFrame.request(() => {
694
+ if (!isActiveItemRef.current) return;
695
+ setSharedFixedSize(popup, positioner, measuredWidth, measuredHeight);
696
+ scheduleAutoSizeReset(popup);
697
+ });
698
+ });
699
+ });
700
+ });
701
+ const syncCurrentSize = useStableCallback((popup, positioner) => {
702
+ sizeFrame.cancel();
703
+ cancelAutoSizeReset(true);
704
+ clearFixedSizes(popup, positioner);
705
+ const { width, height } = getCssDimensions(popup);
706
+ if (width === 0 || height === 0) return;
707
+ prevSizeRef.current = {
708
+ width,
709
+ height
710
+ };
711
+ setAutoSizes(popup);
712
+ positioner.style.setProperty(positionerWidth, `${width}px`);
713
+ positioner.style.setProperty(positionerHeight, `${height}px`);
714
+ });
715
+ const getMutationBaseline = useStableCallback((popup) => {
716
+ const popupWidth$1 = popup.style.getPropertyValue(popupWidth);
717
+ const popupHeight$1 = popup.style.getPropertyValue(popupHeight);
718
+ if (!(popupWidth$1 !== "" && popupWidth$1 !== "auto" && popupHeight$1 !== "" && popupHeight$1 !== "auto")) return {
719
+ size: prevSizeRef.current,
720
+ syncPositioner: false
721
+ };
722
+ return {
723
+ size: {
724
+ width: popup.offsetWidth || prevSizeRef.current.width,
725
+ height: popup.offsetHeight || prevSizeRef.current.height
726
+ },
727
+ syncPositioner: true
728
+ };
729
+ });
730
+ React$1.useEffect(() => {
731
+ if (!open) {
732
+ stickIfOpenTimeout.clear();
733
+ mutationFrame.cancel();
734
+ resizeFrame.cancel();
735
+ sizeFrame.cancel();
736
+ cancelAutoSizeReset(true);
737
+ skipAutoSizeSyncRef.current = false;
738
+ setPointerType("");
739
+ }
740
+ }, [
741
+ stickIfOpenTimeout,
742
+ open,
743
+ mutationFrame,
744
+ resizeFrame,
745
+ sizeFrame,
746
+ cancelAutoSizeReset
747
+ ]);
748
+ React$1.useEffect(() => {
749
+ if (!mounted) prevSizeRef.current = DEFAULT_SIZE;
750
+ }, [mounted]);
751
+ useIsoLayoutEffect(() => {
752
+ if (!popupElement || typeof ResizeObserver !== "function") return;
753
+ const resizeObserver = new ResizeObserver(() => {
754
+ prevSizeRef.current = {
755
+ width: popupElement.offsetWidth,
756
+ height: popupElement.offsetHeight
757
+ };
758
+ });
759
+ resizeObserver.observe(popupElement);
760
+ return () => {
761
+ resizeObserver.disconnect();
762
+ };
763
+ }, [popupElement]);
764
+ React$1.useEffect(() => {
765
+ if (!open || !isActiveItem || !popupElement || !positionerElement) return;
766
+ const popup = popupElement;
767
+ const positioner = positionerElement;
768
+ const win = getWindow(positioner);
769
+ function handleResize() {
770
+ resizeFrame.cancel();
771
+ resizeFrame.request(() => syncCurrentSize(popup, positioner));
772
+ }
773
+ const unsubscribe = addEventListener(win, "resize", handleResize);
774
+ return () => {
775
+ resizeFrame.cancel();
776
+ unsubscribe();
777
+ };
778
+ }, [
779
+ open,
780
+ isActiveItem,
781
+ popupElement,
782
+ positionerElement,
783
+ resizeFrame,
784
+ syncCurrentSize
785
+ ]);
786
+ React$1.useEffect(() => {
787
+ const observedElement = currentContentRef.current;
788
+ if (!observedElement || !popupElement || !positionerElement || !isActiveItem || typeof MutationObserver !== "function") return;
789
+ const mutationObserver = new MutationObserver(() => {
790
+ if (transitionStatus === "starting" || popupElement.hasAttribute("data-starting-style")) {
791
+ syncCurrentSize(popupElement, positionerElement);
792
+ return;
793
+ }
794
+ const { size, syncPositioner } = getMutationBaseline(popupElement);
795
+ if (syncPositioner) {
796
+ handleInterruptedMutationResize(popupElement, positionerElement, size.width, size.height);
797
+ return;
798
+ }
799
+ handleValueChange(popupElement, positionerElement, size.width, size.height);
800
+ });
801
+ mutationObserver.observe(observedElement, {
802
+ childList: true,
803
+ subtree: true,
804
+ characterData: true,
805
+ attributes: true,
806
+ attributeFilter: ["hidden"]
807
+ });
808
+ return () => {
809
+ mutationObserver.disconnect();
810
+ };
811
+ }, [
812
+ currentContentRef,
813
+ popupElement,
814
+ positionerElement,
815
+ isActiveItem,
816
+ transitionStatus,
817
+ getMutationBaseline,
818
+ handleInterruptedMutationResize,
819
+ handleValueChange,
820
+ syncCurrentSize
821
+ ]);
822
+ useIsoLayoutEffect(() => {
823
+ if (isActiveItemRef.current && open && popupElement && positionerElement) {
824
+ if (skipAutoSizeSyncRef.current) {
825
+ skipAutoSizeSyncRef.current = false;
826
+ return;
827
+ }
828
+ const { width, height } = getCssDimensions(popupElement);
829
+ handleValueChange(popupElement, positionerElement, width, height);
830
+ }
831
+ }, [
832
+ currentContentRef,
833
+ handleValueChange,
834
+ isActiveItemRef,
835
+ open,
836
+ popupElement,
837
+ positionerElement,
838
+ transitionStatus
839
+ ]);
840
+ function handleOpenChange(nextOpen, eventDetails) {
841
+ const isHover = eventDetails.reason === triggerHover;
842
+ if (!interactionsEnabled) return;
843
+ if (pointerType === "touch" && isHover) return;
844
+ if (!nextOpen && value !== itemValue) return;
845
+ function changeState() {
846
+ if (isHover) {
847
+ setStickIfOpen(true);
848
+ stickIfOpenTimeout.clear();
849
+ stickIfOpenTimeout.start(500, () => {
850
+ setStickIfOpen(false);
851
+ });
852
+ }
853
+ if (nextOpen) setValue(itemValue, eventDetails);
854
+ else {
855
+ setValue(null, eventDetails);
856
+ setPointerType("");
857
+ }
858
+ }
859
+ if (isHover) ReactDOM.flushSync(changeState);
860
+ else changeState();
861
+ }
862
+ const context = useFloatingRootContext({
863
+ open,
864
+ onOpenChange: handleOpenChange,
865
+ elements: {
866
+ reference: triggerElement,
867
+ floating: hoverFloatingElement
868
+ }
869
+ });
870
+ const hoverInteractionState = useHoverInteractionSharedState(context);
871
+ const shouldBlockSafePolygonPointerEvents = pointerType !== "touch";
872
+ React$1.useEffect(() => {
873
+ if (!open) {
874
+ context.context.dataRef.current.openEvent = void 0;
875
+ hoverInteractionState.pointerType = void 0;
876
+ hoverInteractionState.interactedInside = false;
877
+ hoverInteractionState.restTimeoutPending = false;
878
+ hoverInteractionState.openChangeTimeout.clear();
879
+ hoverInteractionState.restTimeout.clear();
880
+ }
881
+ return () => {
882
+ clearSafePolygonPointerEventsMutation(hoverInteractionState);
883
+ };
884
+ }, [
885
+ context,
886
+ hoverInteractionState,
887
+ open
888
+ ]);
889
+ const getInlineHandleCloseContext = useStableCallback(() => {
890
+ if (!nested || positionerElement || !triggerElementRef.current || !hoverFloatingElement) return null;
891
+ return getHandleCloseContext(triggerElementRef.current, hoverFloatingElement, nodeId);
892
+ });
893
+ function getScope() {
894
+ if (nested && positionerElement) return null;
895
+ return closest(triggerElementRef.current, "ul");
896
+ }
897
+ const hoverProps = useHoverReferenceInteraction(context, {
898
+ enabled: hoverInteractionsEnabled,
899
+ move: false,
900
+ handleClose: safePolygon({
901
+ blockPointerEvents: shouldBlockSafePolygonPointerEvents,
902
+ getScope
903
+ }),
904
+ restMs: mounted && positionerElement ? 0 : delay,
905
+ delay: { close: closeDelay },
906
+ triggerElementRef,
907
+ getHandleCloseContext: getInlineHandleCloseContext
908
+ });
909
+ const hover = React$1.useMemo(() => hoverProps ? { reference: hoverProps } : void 0, [hoverProps]);
910
+ const click = useClick(context, {
911
+ enabled: interactionsEnabled,
912
+ stickIfOpen,
913
+ toggle: isActiveItem
914
+ });
915
+ const referenceProps = React$1.useMemo(() => mergeProps(click.reference, hover?.reference), [click.reference, hover]);
916
+ useIsoLayoutEffect(() => {
917
+ if (isActiveItem) {
918
+ setFloatingRootContext(context);
919
+ prevTriggerElementRef.current = triggerElement;
920
+ }
921
+ }, [
922
+ isActiveItem,
923
+ context,
924
+ setFloatingRootContext,
925
+ prevTriggerElementRef,
926
+ triggerElement
927
+ ]);
928
+ function handleActivation(event) {
929
+ ReactDOM.flushSync(() => {
930
+ const currentTarget = event.currentTarget;
931
+ const prevTriggerRect = prevTriggerElementRef.current?.getBoundingClientRect();
932
+ if (mounted && prevTriggerRect && triggerElement) {
933
+ const nextTriggerRect = triggerElement.getBoundingClientRect();
934
+ const isMovingRight = nextTriggerRect.left > prevTriggerRect.left;
935
+ const isMovingDown = nextTriggerRect.top > prevTriggerRect.top;
936
+ if (orientation === "horizontal" && nextTriggerRect.left !== prevTriggerRect.left) setActivationDirection(isMovingRight ? "right" : "left");
937
+ else if (orientation === "vertical" && nextTriggerRect.top !== prevTriggerRect.top) setActivationDirection(isMovingDown ? "down" : "up");
938
+ }
939
+ if (event.type !== "click" && value != null) context.context.dataRef.current.openEvent = void 0;
940
+ if (pointerType === "touch" && event.type !== "click") return;
941
+ if (value != null && event.type !== "keydown") setValue(itemValue, createChangeEventDetails(event.type === "mouseenter" ? triggerHover : triggerPress, event.nativeEvent));
942
+ if (event.type === "mouseenter" && shouldBlockSafePolygonPointerEvents && (!nested || !positionerElement) && hoverFloatingElement) {
943
+ const applyPointerEventsMutation = () => {
944
+ const scopeElement = getScope() ?? currentTarget.ownerDocument.body;
945
+ applySafePolygonPointerEventsMutation(hoverInteractionState, {
946
+ scopeElement,
947
+ referenceElement: currentTarget,
948
+ floatingElement: hoverFloatingElement
949
+ });
950
+ };
951
+ if (value != null && value !== itemValue) queueMicrotask(applyPointerEventsMutation);
952
+ else applyPointerEventsMutation();
953
+ }
954
+ });
955
+ }
956
+ const handleOpenEvent = useStableCallback((event) => {
957
+ if (disabled) return;
958
+ if (!popupElement || !positionerElement) {
959
+ handleActivation(event);
960
+ return;
961
+ }
962
+ const { width, height } = getCssDimensions(popupElement);
963
+ const shouldSkipAutoSizeSync = value != null && value !== itemValue && (event.type === "click" || pointerType !== "touch");
964
+ handleActivation(event);
965
+ if (shouldSkipAutoSizeSync) skipAutoSizeSyncRef.current = true;
966
+ handleValueChange(popupElement, positionerElement, width, height);
967
+ });
968
+ const state = {
969
+ open: isActiveItem,
970
+ disabled
971
+ };
972
+ function handleSetPointerType(event) {
973
+ setPointerType(event.pointerType);
974
+ }
975
+ function handleTriggerPointerDown(event) {
976
+ handleSetPointerType(event);
977
+ clearSafePolygonPointerEventsMutation(hoverInteractionState);
978
+ }
979
+ const defaultProps = {
980
+ tabIndex: 0,
981
+ onMouseEnter: handleOpenEvent,
982
+ onClick: handleOpenEvent,
983
+ onPointerEnter: handleSetPointerType,
984
+ onPointerDown: handleTriggerPointerDown,
985
+ "aria-expanded": isActiveItem,
986
+ "aria-controls": isActiveItem ? popupElement?.id : void 0,
987
+ [NAVIGATION_MENU_TRIGGER_IDENTIFIER]: "",
988
+ onFocus() {
989
+ if (!isActiveItem) return;
990
+ setViewportInert(false);
991
+ },
992
+ onMouseLeave() {
993
+ if (value == null) clearSafePolygonPointerEventsMutation(hoverInteractionState);
994
+ },
995
+ onKeyDown(event) {
996
+ if (nested) return;
997
+ const verticalOpenKey = direction === "rtl" ? "ArrowLeft" : "ArrowRight";
998
+ const openHorizontal = orientation === "horizontal" && event.key === "ArrowDown";
999
+ const openVertical = orientation === "vertical" && event.key === verticalOpenKey;
1000
+ if (openHorizontal || openVertical) {
1001
+ setValue(itemValue, createChangeEventDetails(listNavigation, event.nativeEvent));
1002
+ handleOpenEvent(event);
1003
+ stopEvent(event);
1004
+ }
1005
+ },
1006
+ onBlur(event) {
1007
+ if (positionerElement && popupElement && isOutsideMenuEvent({
1008
+ currentTarget: event.currentTarget,
1009
+ relatedTarget: event.relatedTarget
1010
+ }, {
1011
+ popupElement,
1012
+ rootRef,
1013
+ tree,
1014
+ nodeId
1015
+ })) setValue(null, createChangeEventDetails(focusOut, event.nativeEvent));
1016
+ }
1017
+ };
1018
+ const { getButtonProps, buttonRef } = useButton({
1019
+ disabled,
1020
+ focusableWhenDisabled: true,
1021
+ native: nativeButton
1022
+ });
1023
+ const referenceElement = hoverFloatingElement;
1024
+ return /*#__PURE__*/ jsxs(React$1.Fragment, { children: [/*#__PURE__*/ jsx(CompositeItem, {
1025
+ tag: "button",
1026
+ render,
1027
+ className,
1028
+ style,
1029
+ state,
1030
+ stateAttributesMapping: pressableTriggerOpenStateMapping,
1031
+ refs: [
1032
+ forwardedRef,
1033
+ handleTriggerElement,
1034
+ buttonRef
1035
+ ],
1036
+ props: [
1037
+ referenceProps,
1038
+ dismissProps?.reference || EMPTY_ARRAY,
1039
+ defaultProps,
1040
+ elementProps,
1041
+ getButtonProps
1042
+ ]
1043
+ }), isActiveItem && /*#__PURE__*/ jsxs(React$1.Fragment, { children: [
1044
+ /*#__PURE__*/ jsx(FocusGuard, {
1045
+ ref: beforeOutsideRef,
1046
+ onFocus: (event) => {
1047
+ if (referenceElement && isOutsideEvent(event, referenceElement)) beforeInsideRef.current?.focus();
1048
+ else getPreviousTabbable(triggerElement)?.focus();
1049
+ }
1050
+ }),
1051
+ /*#__PURE__*/ jsx("span", {
1052
+ "aria-owns": viewportElement?.id,
1053
+ style: ownerVisuallyHidden
1054
+ }),
1055
+ /*#__PURE__*/ jsx(FocusGuard, {
1056
+ ref: afterOutsideRef,
1057
+ onFocus: (event) => {
1058
+ if (referenceElement && isOutsideEvent(event, referenceElement)) {
1059
+ ReactDOM.flushSync(() => {
1060
+ setViewportInert(false);
1061
+ });
1062
+ (afterInsideRef.current || triggerElement)?.focus();
1063
+ } else {
1064
+ let nextTabbable = getNextTabbable(triggerElement);
1065
+ if (nested && !positionerElement && referenceElement && nextTabbable && contains(referenceElement, nextTabbable)) nextTabbable = getTabbableNearElement(afterInsideRef.current, 1);
1066
+ nextTabbable?.focus();
1067
+ if ((!nested || positionerElement) && !contains(rootRef.current, nextTabbable)) setValue(null, createChangeEventDetails("focus-out", event.nativeEvent));
1068
+ }
1069
+ }
1070
+ })
1071
+ ] })] });
1072
+ });
1073
+ NavigationMenuTrigger.displayName = "NavigationMenuTrigger";
1074
+ function getPlacementFromElements(domReferenceElement, floatingElement) {
1075
+ const referenceRect = domReferenceElement.getBoundingClientRect();
1076
+ const floatingRect = floatingElement.getBoundingClientRect();
1077
+ const referenceCenterX = referenceRect.left + referenceRect.width / 2;
1078
+ const referenceCenterY = referenceRect.top + referenceRect.height / 2;
1079
+ const floatingCenterX = floatingRect.left + floatingRect.width / 2;
1080
+ const floatingCenterY = floatingRect.top + floatingRect.height / 2;
1081
+ const deltaX = floatingCenterX - referenceCenterX;
1082
+ const deltaY = floatingCenterY - referenceCenterY;
1083
+ if (Math.abs(deltaX) >= Math.abs(deltaY)) return deltaX >= 0 ? "right" : "left";
1084
+ return deltaY >= 0 ? "bottom" : "top";
1085
+ }
1086
+ function getHandleCloseContext(domReferenceElement, floatingElement, nodeId) {
1087
+ return {
1088
+ placement: getPlacementFromElements(domReferenceElement, floatingElement),
1089
+ elements: {
1090
+ domReference: domReferenceElement,
1091
+ floating: floatingElement
1092
+ },
1093
+ nodeId
1094
+ };
1095
+ }
1096
+ //#endregion
1097
+ //#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/navigation-menu/portal/NavigationMenuPortalContext.mjs
1098
+ const NavigationMenuPortalContext = /*#__PURE__*/ React$1.createContext(void 0);
1099
+ NavigationMenuPortalContext.displayName = "NavigationMenuPortalContext";
1100
+ function useNavigationMenuPortalContext() {
1101
+ const value = React$1.useContext(NavigationMenuPortalContext);
1102
+ if (value === void 0) throw new Error("Base UI: <NavigationMenu.Portal> is missing.");
1103
+ return value;
1104
+ }
1105
+ //#endregion
1106
+ //#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/navigation-menu/portal/NavigationMenuPortal.mjs
1107
+ /**
1108
+ * A portal element that moves the popup to a different part of the DOM.
1109
+ * By default, the portal element is appended to `<body>`.
1110
+ * Renders a `<div>` element.
1111
+ *
1112
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
1113
+ */
1114
+ const NavigationMenuPortal = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuPortal(props, forwardedRef) {
1115
+ const { keepMounted = false, ...portalProps } = props;
1116
+ const { mounted } = useNavigationMenuRootContext();
1117
+ if (!(mounted || keepMounted)) return null;
1118
+ return /*#__PURE__*/ jsx(NavigationMenuPortalContext.Provider, {
1119
+ value: keepMounted,
1120
+ children: /*#__PURE__*/ jsx(FloatingPortal, {
1121
+ ref: forwardedRef,
1122
+ ...portalProps
1123
+ })
1124
+ });
1125
+ });
1126
+ NavigationMenuPortal.displayName = "NavigationMenuPortal";
1127
+ //#endregion
1128
+ //#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/navigation-menu/utils/useNavigationMenuAnchorPositioning.mjs
1129
+ function useFloatingWithFallbackStore(options) {
1130
+ const fallbackStore = useFloatingRootContext(options);
1131
+ return useBaseUIFloating({
1132
+ ...options,
1133
+ rootContext: options.rootContext || fallbackStore
1134
+ });
1135
+ }
1136
+ /**
1137
+ * Positioning path for the Navigation Menu, whose active trigger supplies its root store after the
1138
+ * positioner has already rendered.
1139
+ */
1140
+ function useNavigationMenuAnchorPositioning(params) {
1141
+ return useAnchorPositioningWithHook(params, useFloatingWithFallbackStore);
1142
+ }
1143
+ //#endregion
1144
+ //#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/navigation-menu/positioner/NavigationMenuPositionerContext.mjs
1145
+ const NavigationMenuPositionerContext = /*#__PURE__*/ React$1.createContext(void 0);
1146
+ NavigationMenuPositionerContext.displayName = "NavigationMenuPositionerContext";
1147
+ function useNavigationMenuPositionerContext(optional = false) {
1148
+ const context = React$1.useContext(NavigationMenuPositionerContext);
1149
+ if (!context && !optional) throw new Error("Base UI: NavigationMenuPositionerContext is missing. NavigationMenuPositioner parts must be placed within <NavigationMenu.Positioner>.");
1150
+ return context;
1151
+ }
1152
+ //#endregion
1153
+ //#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/navigation-menu/positioner/NavigationMenuPositioner.mjs
1154
+ const EMPTY_ROOT_CONTEXT$1 = getEmptyRootContext();
1155
+ /**
1156
+ * Positions the navigation menu against the currently active trigger.
1157
+ * Renders a `<div>` element.
1158
+ *
1159
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
1160
+ */
1161
+ const NavigationMenuPositioner = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuPositioner(componentProps, forwardedRef) {
1162
+ const { open, mounted, positionerElement, setPositionerElement, floatingRootContext, nested, transitionStatus } = useNavigationMenuRootContext();
1163
+ const { className, render, anchor, positionMethod = "absolute", side = "bottom", align = "center", sideOffset = 0, alignOffset = 0, collisionBoundary = "clipping-ancestors", collisionPadding = 5, collisionAvoidance = nested ? POPUP_COLLISION_AVOIDANCE : DROPDOWN_COLLISION_AVOIDANCE, arrowPadding = 5, sticky = false, disableAnchorTracking = false, style, ...elementProps } = componentProps;
1164
+ const keepMounted = useNavigationMenuPortalContext();
1165
+ const nodeId = useNavigationMenuTreeContext();
1166
+ const initialInstantTimeout = useTimeout();
1167
+ const resizeTimeout = useTimeout();
1168
+ const [instant, setInstant] = React$1.useState(open);
1169
+ const needsInitialInstantResetRef = React$1.useRef(open);
1170
+ React$1.useEffect(() => {
1171
+ if (!positionerElement) return;
1172
+ function onFocus(event) {
1173
+ if (positionerElement && isOutsideEvent(event)) (event.type === "focusin" ? enableFocusInside : disableFocusInside)(positionerElement);
1174
+ }
1175
+ return mergeCleanups(addEventListener(positionerElement, "focusin", onFocus, true), addEventListener(positionerElement, "focusout", onFocus, true));
1176
+ }, [positionerElement]);
1177
+ const domReference = (floatingRootContext || EMPTY_ROOT_CONTEXT$1).useState("domReferenceElement");
1178
+ const positioning = useNavigationMenuAnchorPositioning({
1179
+ anchor: anchor ?? domReference,
1180
+ positionMethod,
1181
+ mounted,
1182
+ side,
1183
+ sideOffset,
1184
+ align,
1185
+ alignOffset,
1186
+ arrowPadding,
1187
+ collisionBoundary,
1188
+ collisionPadding,
1189
+ sticky,
1190
+ disableAnchorTracking,
1191
+ keepMounted,
1192
+ floatingRootContext,
1193
+ collisionAvoidance,
1194
+ shift: { rootBoundary: "layoutViewport" },
1195
+ nodeId,
1196
+ adaptiveOrigin
1197
+ });
1198
+ const state = {
1199
+ open,
1200
+ side: positioning.side,
1201
+ align: positioning.align,
1202
+ anchorHidden: positioning.anchorHidden,
1203
+ instant
1204
+ };
1205
+ React$1.useEffect(() => {
1206
+ if (!open) return;
1207
+ if (needsInitialInstantResetRef.current) initialInstantTimeout.start(0, () => {
1208
+ needsInitialInstantResetRef.current = false;
1209
+ if (!resizeTimeout.isStarted()) setInstant(false);
1210
+ });
1211
+ function handleResize() {
1212
+ ReactDOM.flushSync(() => {
1213
+ setInstant(true);
1214
+ });
1215
+ resizeTimeout.start(100, () => {
1216
+ setInstant(false);
1217
+ });
1218
+ }
1219
+ const win = getWindow(positionerElement);
1220
+ return addEventListener(win, "resize", handleResize);
1221
+ }, [
1222
+ open,
1223
+ initialInstantTimeout,
1224
+ resizeTimeout,
1225
+ positionerElement
1226
+ ]);
1227
+ const element = usePositioner(componentProps, state, {
1228
+ styles: positioning.positionerStyles,
1229
+ transitionStatus,
1230
+ props: elementProps,
1231
+ refs: [forwardedRef, setPositionerElement],
1232
+ hidden: !mounted,
1233
+ inert: !open
1234
+ });
1235
+ return /*#__PURE__*/ jsx(NavigationMenuPositionerContext.Provider, {
1236
+ value: positioning,
1237
+ children: element
1238
+ });
1239
+ });
1240
+ NavigationMenuPositioner.displayName = "NavigationMenuPositioner";
1241
+ //#endregion
1242
+ //#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/navigation-menu/viewport/NavigationMenuViewport.mjs
1243
+ const EMPTY_ROOT_CONTEXT = getEmptyRootContext();
1244
+ function Guards({ children }) {
1245
+ const { beforeInsideRef, beforeOutsideRef, afterInsideRef, afterOutsideRef, positionerElement, viewportElement, floatingRootContext } = useNavigationMenuRootContext();
1246
+ const hasPositioner = Boolean(useNavigationMenuPositionerContext(true));
1247
+ const referenceElement = positionerElement || viewportElement;
1248
+ if (!floatingRootContext && !hasPositioner) return children;
1249
+ return /*#__PURE__*/ jsxs(React$1.Fragment, { children: [
1250
+ /*#__PURE__*/ jsx(FocusGuard, {
1251
+ ref: beforeInsideRef,
1252
+ onFocus: (event) => {
1253
+ if (referenceElement && isOutsideEvent(event, referenceElement)) getNextTabbable(referenceElement)?.focus();
1254
+ else beforeOutsideRef.current?.focus();
1255
+ }
1256
+ }),
1257
+ children,
1258
+ /*#__PURE__*/ jsx(FocusGuard, {
1259
+ ref: afterInsideRef,
1260
+ onFocus: (event) => {
1261
+ if (referenceElement && isOutsideEvent(event, referenceElement)) getPreviousTabbable(referenceElement)?.focus();
1262
+ else afterOutsideRef.current?.focus();
1263
+ }
1264
+ })
1265
+ ] });
1266
+ }
1267
+ /**
1268
+ * The clipping viewport of the navigation menu's current content.
1269
+ * Renders a `<div>` element.
1270
+ *
1271
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
1272
+ */
1273
+ const NavigationMenuViewport = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuViewport(componentProps, forwardedRef) {
1274
+ const { render, className, style, children, id: idProp, ...elementProps } = componentProps;
1275
+ const id = useId$1(idProp);
1276
+ const { setViewportElement, setViewportTargetElement, floatingRootContext, prevTriggerElementRef, viewportInert, setViewportInert } = useNavigationMenuRootContext();
1277
+ const positioning = useNavigationMenuPositionerContext(true);
1278
+ const hasPositioner = Boolean(positioning);
1279
+ const domReference = (floatingRootContext || EMPTY_ROOT_CONTEXT).useState("domReferenceElement");
1280
+ useIsoLayoutEffect(() => {
1281
+ if (domReference) prevTriggerElementRef.current = domReference;
1282
+ }, [domReference, prevTriggerElementRef]);
1283
+ const element = useRenderElement("div", componentProps, {
1284
+ ref: [forwardedRef, setViewportElement],
1285
+ props: [{
1286
+ id,
1287
+ onBlur(event) {
1288
+ const relatedTarget = event.relatedTarget;
1289
+ const currentTarget = event.currentTarget;
1290
+ if (relatedTarget && !contains(currentTarget, relatedTarget) && relatedTarget !== domReference) setViewportInert(true);
1291
+ },
1292
+ ...!hasPositioner && viewportInert && { inert: inertValue(true) },
1293
+ children: hasPositioner ? children : /*#__PURE__*/ jsx(Guards, { children: /*#__PURE__*/ jsx("div", {
1294
+ ref: setViewportTargetElement,
1295
+ children
1296
+ }) })
1297
+ }, elementProps]
1298
+ });
1299
+ return hasPositioner ? /*#__PURE__*/ jsx(Guards, { children: element }) : element;
1300
+ });
1301
+ NavigationMenuViewport.displayName = "NavigationMenuViewport";
1302
+ //#endregion
1303
+ //#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/navigation-menu/backdrop/NavigationMenuBackdrop.mjs
1304
+ /**
1305
+ * A backdrop for the navigation menu popup.
1306
+ * Renders a `<div>` element.
1307
+ *
1308
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
1309
+ */
1310
+ const NavigationMenuBackdrop = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuBackdrop(componentProps, forwardedRef) {
1311
+ const { render, className, style, ...elementProps } = componentProps;
1312
+ const { open, mounted, transitionStatus } = useNavigationMenuRootContext();
1313
+ return useRenderElement("div", componentProps, {
1314
+ state: {
1315
+ open,
1316
+ transitionStatus
1317
+ },
1318
+ ref: forwardedRef,
1319
+ props: [{
1320
+ role: "presentation",
1321
+ hidden: !mounted,
1322
+ style: {
1323
+ userSelect: "none",
1324
+ WebkitUserSelect: "none"
1325
+ }
1326
+ }, elementProps],
1327
+ stateAttributesMapping: popupTransitionStateMapping
1328
+ });
1329
+ });
1330
+ NavigationMenuBackdrop.displayName = "NavigationMenuBackdrop";
1331
+ //#endregion
1332
+ //#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/navigation-menu/popup/NavigationMenuPopup.mjs
1333
+ /**
1334
+ * A container for the navigation menu contents.
1335
+ * Renders a `<nav>` element.
1336
+ *
1337
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
1338
+ */
1339
+ const NavigationMenuPopup = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuPopup(componentProps, forwardedRef) {
1340
+ const { render, className, style, id: idProp, ...elementProps } = componentProps;
1341
+ const { open, transitionStatus, setPopupElement } = useNavigationMenuRootContext();
1342
+ const positioning = useNavigationMenuPositionerContext();
1343
+ const direction = useDirection();
1344
+ const id = useBaseUiId(idProp);
1345
+ const state = {
1346
+ open,
1347
+ transitionStatus,
1348
+ side: positioning.side,
1349
+ align: positioning.align,
1350
+ anchorHidden: positioning.anchorHidden
1351
+ };
1352
+ let isPhysicalLeft = positioning.side === "left";
1353
+ if (direction === "rtl") isPhysicalLeft = isPhysicalLeft || positioning.side === "inline-end";
1354
+ else isPhysicalLeft = isPhysicalLeft || positioning.side === "inline-start";
1355
+ const isOriginSide = positioning.side === "top" || isPhysicalLeft;
1356
+ return useRenderElement("nav", componentProps, {
1357
+ state,
1358
+ ref: [forwardedRef, setPopupElement],
1359
+ props: [
1360
+ {
1361
+ id,
1362
+ tabIndex: -1,
1363
+ style: isOriginSide ? {
1364
+ position: "absolute",
1365
+ [positioning.side === "top" ? "bottom" : "top"]: "0",
1366
+ [isPhysicalLeft ? "right" : "left"]: "0"
1367
+ } : {}
1368
+ },
1369
+ getDisabledMountTransitionStyles(transitionStatus),
1370
+ elementProps
1371
+ ],
1372
+ stateAttributesMapping: popupTransitionStateMapping
1373
+ });
1374
+ });
1375
+ NavigationMenuPopup.displayName = "NavigationMenuPopup";
1376
+ //#endregion
1377
+ //#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/navigation-menu/arrow/NavigationMenuArrow.mjs
1378
+ /**
1379
+ * Displays an element pointing toward the navigation menu's current anchor.
1380
+ * Renders a `<div>` element.
1381
+ *
1382
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
1383
+ */
1384
+ const NavigationMenuArrow = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuArrow(componentProps, forwardedRef) {
1385
+ const { render, className, style, ...elementProps } = componentProps;
1386
+ const { open, transitionStatus } = useNavigationMenuRootContext();
1387
+ const { arrowRef, side, align, arrowUncentered, arrowStyles } = useNavigationMenuPositionerContext();
1388
+ return useRenderElement("div", componentProps, {
1389
+ state: {
1390
+ open,
1391
+ side,
1392
+ align,
1393
+ uncentered: arrowUncentered
1394
+ },
1395
+ ref: [forwardedRef, arrowRef],
1396
+ props: [
1397
+ {
1398
+ style: arrowStyles,
1399
+ "aria-hidden": true
1400
+ },
1401
+ getDisabledMountTransitionStyles(transitionStatus),
1402
+ elementProps
1403
+ ],
1404
+ stateAttributesMapping: popupStateMapping
1405
+ });
1406
+ });
1407
+ NavigationMenuArrow.displayName = "NavigationMenuArrow";
1408
+ //#endregion
1409
+ //#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/navigation-menu/link/NavigationMenuLink.mjs
1410
+ /**
1411
+ * A link in the navigation menu that can be used to navigate to a different page or section.
1412
+ * Renders an `<a>` element.
1413
+ *
1414
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
1415
+ */
1416
+ const NavigationMenuLink = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuLink(componentProps, forwardedRef) {
1417
+ const { className, render, active = false, closeOnClick = false, style, ...elementProps } = componentProps;
1418
+ const { setValue, popupElement, positionerElement, rootRef } = useNavigationMenuRootContext();
1419
+ const nodeId = useNavigationMenuTreeContext();
1420
+ const tree = useFloatingTree();
1421
+ return /*#__PURE__*/ jsx(CompositeItem, {
1422
+ tag: "a",
1423
+ render,
1424
+ className,
1425
+ style,
1426
+ state: { active },
1427
+ refs: [forwardedRef],
1428
+ props: [{
1429
+ "aria-current": active ? "page" : void 0,
1430
+ tabIndex: void 0,
1431
+ onClick(event) {
1432
+ if (closeOnClick) setValue(null, createChangeEventDetails(linkPress, event.nativeEvent));
1433
+ },
1434
+ onBlur(event) {
1435
+ if (positionerElement && popupElement && isOutsideMenuEvent({
1436
+ currentTarget: event.currentTarget,
1437
+ relatedTarget: event.relatedTarget
1438
+ }, {
1439
+ popupElement,
1440
+ rootRef,
1441
+ tree,
1442
+ nodeId
1443
+ })) setValue(null, createChangeEventDetails(focusOut, event.nativeEvent));
1444
+ }
1445
+ }, elementProps]
1446
+ });
1447
+ });
1448
+ NavigationMenuLink.displayName = "NavigationMenuLink";
1449
+ //#endregion
1450
+ //#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/navigation-menu/icon/NavigationMenuIcon.mjs
1451
+ /**
1452
+ * An icon that indicates that the trigger button opens a menu.
1453
+ *
1454
+ * Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
1455
+ */
1456
+ const NavigationMenuIcon = /*#__PURE__*/ React$1.forwardRef(function NavigationMenuIcon(componentProps, forwardedRef) {
1457
+ const { render, className, style, ...elementProps } = componentProps;
1458
+ const { value: itemValue } = useNavigationMenuItemContext();
1459
+ const { open, value } = useNavigationMenuRootContext();
1460
+ return useRenderElement("span", componentProps, {
1461
+ state: { open: open && value === itemValue },
1462
+ ref: forwardedRef,
1463
+ props: [{
1464
+ "aria-hidden": true,
1465
+ children: "▼"
1466
+ }, elementProps],
1467
+ stateAttributesMapping: triggerOpenStateMapping
1468
+ });
1469
+ });
1470
+ NavigationMenuIcon.displayName = "NavigationMenuIcon";
1471
+ //#endregion
1472
+ //#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/navigation-menu/index.parts.mjs
1473
+ var index_parts_exports = /* @__PURE__ */ __exportAll({
1474
+ Arrow: () => NavigationMenuArrow,
1475
+ Backdrop: () => NavigationMenuBackdrop,
1476
+ Content: () => NavigationMenuContent,
1477
+ Icon: () => NavigationMenuIcon,
1478
+ Item: () => NavigationMenuItem,
1479
+ Link: () => NavigationMenuLink,
1480
+ List: () => NavigationMenuList,
1481
+ Popup: () => NavigationMenuPopup,
1482
+ Portal: () => NavigationMenuPortal,
1483
+ Positioner: () => NavigationMenuPositioner,
1484
+ Root: () => NavigationMenuRoot,
1485
+ Trigger: () => NavigationMenuTrigger,
1486
+ Viewport: () => NavigationMenuViewport
1487
+ });
1488
+ //#endregion
1489
+ //#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/navigation-menu/trigger/NavigationMenuTriggerDataAttributes.mjs
1490
+ var NavigationMenuTriggerDataAttributes_exports = /* @__PURE__ */ __exportAll({
1491
+ disabled: () => disabled,
1492
+ popupOpen: () => popupOpen$1,
1493
+ pressed: () => pressed
1494
+ });
1495
+ /**
1496
+ * Present when the corresponding navigation menu is open.
1497
+ */
1498
+ const popupOpen$1 = popupOpen$2;
1499
+ /**
1500
+ * Present when the trigger is pressed.
1501
+ */
1502
+ const pressed = pressed$1;
1503
+ /**
1504
+ * Present when the trigger is disabled.
1505
+ */
1506
+ const disabled = "data-disabled";
1507
+ //#endregion
1508
+ //#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/navigation-menu/positioner/NavigationMenuPositionerDataAttributes.mjs
1509
+ var NavigationMenuPositionerDataAttributes_exports = /* @__PURE__ */ __exportAll({
1510
+ align: () => align$2,
1511
+ anchorHidden: () => anchorHidden$1,
1512
+ closed: () => closed$3,
1513
+ instant: () => instant,
1514
+ open: () => open$3,
1515
+ side: () => side$2
1516
+ });
1517
+ /**
1518
+ * Present when the popup is open.
1519
+ */
1520
+ const open$3 = open$5;
1521
+ /**
1522
+ * Present when the popup is closed.
1523
+ */
1524
+ const closed$3 = closed$5;
1525
+ /**
1526
+ * Present when the anchor is hidden.
1527
+ */
1528
+ const anchorHidden$1 = anchorHidden$2;
1529
+ /**
1530
+ * Indicates which side the popup is positioned relative to the trigger.
1531
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
1532
+ */
1533
+ const side$2 = side$3;
1534
+ /**
1535
+ * Indicates how the popup is aligned relative to the specified side.
1536
+ * @type {'start' | 'center' | 'end'}
1537
+ */
1538
+ const align$2 = align$3;
1539
+ /**
1540
+ * Present if animations should be instant.
1541
+ */
1542
+ const instant = "data-instant";
1543
+ //#endregion
1544
+ //#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/navigation-menu/backdrop/NavigationMenuBackdropDataAttributes.mjs
1545
+ var NavigationMenuBackdropDataAttributes_exports = /* @__PURE__ */ __exportAll({
1546
+ closed: () => closed$2,
1547
+ endingStyle: () => endingStyle$1,
1548
+ open: () => open$2,
1549
+ startingStyle: () => startingStyle$1
1550
+ });
1551
+ /**
1552
+ * Present when the popup is open.
1553
+ */
1554
+ const open$2 = open$5;
1555
+ /**
1556
+ * Present when the popup is closed.
1557
+ */
1558
+ const closed$2 = closed$5;
1559
+ /**
1560
+ * Present when the popup begins animating in.
1561
+ */
1562
+ const startingStyle$1 = startingStyle$3;
1563
+ /**
1564
+ * Present when the popup is animating out.
1565
+ */
1566
+ const endingStyle$1 = endingStyle$3;
1567
+ //#endregion
1568
+ //#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/navigation-menu/popup/NavigationMenuPopupDataAttributes.mjs
1569
+ var NavigationMenuPopupDataAttributes_exports = /* @__PURE__ */ __exportAll({
1570
+ align: () => align$1,
1571
+ anchorHidden: () => anchorHidden,
1572
+ closed: () => closed$1,
1573
+ endingStyle: () => endingStyle,
1574
+ open: () => open$1,
1575
+ side: () => side$1,
1576
+ startingStyle: () => startingStyle
1577
+ });
1578
+ /**
1579
+ * Present when the popup is open.
1580
+ */
1581
+ const open$1 = open$5;
1582
+ /**
1583
+ * Present when the popup is closed.
1584
+ */
1585
+ const closed$1 = closed$5;
1586
+ /**
1587
+ * Present when the popup begins animating in.
1588
+ */
1589
+ const startingStyle = startingStyle$3;
1590
+ /**
1591
+ * Present when the popup is animating out.
1592
+ */
1593
+ const endingStyle = endingStyle$3;
1594
+ /**
1595
+ * Present when the anchor is hidden.
1596
+ */
1597
+ const anchorHidden = anchorHidden$2;
1598
+ /**
1599
+ * Indicates which side the popup is positioned relative to the trigger.
1600
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
1601
+ */
1602
+ const side$1 = side$3;
1603
+ /**
1604
+ * Indicates how the popup is aligned relative to the specified side.
1605
+ * @type {'start' | 'center' | 'end'}
1606
+ */
1607
+ const align$1 = align$3;
1608
+ //#endregion
1609
+ //#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/navigation-menu/arrow/NavigationMenuArrowDataAttributes.mjs
1610
+ var NavigationMenuArrowDataAttributes_exports = /* @__PURE__ */ __exportAll({
1611
+ align: () => align,
1612
+ closed: () => closed,
1613
+ open: () => open,
1614
+ side: () => side,
1615
+ uncentered: () => uncentered
1616
+ });
1617
+ /**
1618
+ * Present when the popup is open.
1619
+ */
1620
+ const open = open$5;
1621
+ /**
1622
+ * Present when the popup is closed.
1623
+ */
1624
+ const closed = closed$5;
1625
+ /**
1626
+ * Indicates which side the popup is positioned relative to the trigger.
1627
+ * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
1628
+ */
1629
+ const side = side$3;
1630
+ /**
1631
+ * Indicates how the popup is aligned relative to specified side.
1632
+ * @type {'start' | 'center' | 'end'}
1633
+ */
1634
+ const align = align$3;
1635
+ /**
1636
+ * Present when the popup arrow is uncentered.
1637
+ */
1638
+ const uncentered = "data-uncentered";
1639
+ //#endregion
1640
+ //#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/navigation-menu/link/NavigationMenuLinkDataAttributes.mjs
1641
+ var NavigationMenuLinkDataAttributes_exports = /* @__PURE__ */ __exportAll({ active: () => active });
1642
+ /**
1643
+ * Present when the link is the currently active page.
1644
+ */
1645
+ const active = "data-active";
1646
+ //#endregion
1647
+ //#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/navigation-menu/icon/NavigationMenuIconDataAttributes.mjs
1648
+ var NavigationMenuIconDataAttributes_exports = /* @__PURE__ */ __exportAll({ popupOpen: () => popupOpen });
1649
+ /**
1650
+ * Present when the navigation menu is open and the item is active.
1651
+ */
1652
+ const popupOpen = popupOpen$2;
1653
+ //#endregion
1654
+ export { NavigationMenuBackdropDataAttributes_exports as a, index_parts_exports as c, NavigationMenuPositionerCssVars_exports as d, NavigationMenuPopupDataAttributes_exports as i, NavigationMenuContentDataAttributes_exports as l, NavigationMenuLinkDataAttributes_exports as n, NavigationMenuPositionerDataAttributes_exports as o, NavigationMenuArrowDataAttributes_exports as r, NavigationMenuTriggerDataAttributes_exports as s, NavigationMenuIconDataAttributes_exports as t, NavigationMenuPopupCssVars_exports as u };