@lotte-innovate/ui-component-test 0.1.73 → 0.1.75

Sign up to get free protection for your applications and to get access to all the features.
Files changed (983) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +2 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/index.js +2 -0
  4. package/dist/_virtual/index2.js +2 -0
  5. package/dist/_virtual/index2.js.map +1 -0
  6. package/dist/_virtual/jsx-runtime.js +2 -0
  7. package/dist/_virtual/jsx-runtime.js.map +1 -0
  8. package/dist/_virtual/jsx-runtime2.js +2 -0
  9. package/dist/_virtual/jsx-runtime2.js.map +1 -0
  10. package/dist/_virtual/react-jsx-runtime.development.js +2 -0
  11. package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
  12. package/dist/_virtual/react-jsx-runtime.production.min.js +2 -0
  13. package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
  14. package/dist/dist/lib/Typography/Header/index.js +2 -0
  15. package/dist/dist/lib/Typography/Text/index.js +2 -0
  16. package/dist/dist/lib/color/alpha.js +2 -0
  17. package/dist/dist/lib/color/constants.js +2 -0
  18. package/dist/dist/lib/color/light.js +2 -0
  19. package/dist/dist/lib/components/Accordion/index.js +2 -0
  20. package/dist/dist/lib/components/AlertDialog/AlertDialogAction.js +2 -0
  21. package/dist/dist/lib/components/AlertDialog/AlertDialogCancel.js +2 -0
  22. package/dist/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -0
  23. package/dist/dist/lib/components/AlertDialog/AlertDialogDescription.js +2 -0
  24. package/dist/dist/lib/components/AlertDialog/AlertDialogRoot.js +2 -0
  25. package/dist/dist/lib/components/AlertDialog/AlertDialogTitle.js +2 -0
  26. package/dist/dist/lib/components/AlertDialog/AlertDialogTrigger.js +2 -0
  27. package/dist/dist/lib/components/AlertDialog/index.js +2 -0
  28. package/dist/dist/lib/components/AspectRatio/index.js +2 -0
  29. package/dist/dist/lib/components/Avatar/index.js +2 -0
  30. package/dist/dist/lib/components/Badge/index.js +2 -0
  31. package/dist/dist/lib/components/BarChart/index.js +2 -0
  32. package/dist/dist/lib/components/BubbleChart/index.js +2 -0
  33. package/dist/dist/lib/components/Button/index.js +2 -0
  34. package/dist/dist/lib/components/Callout/CalloutIcon.js +2 -0
  35. package/dist/dist/lib/components/Callout/CalloutRoot.js +2 -0
  36. package/dist/dist/lib/components/Callout/CalloutText.js +2 -0
  37. package/dist/dist/lib/components/Callout/index.js +2 -0
  38. package/dist/dist/lib/components/Card/index.js +2 -0
  39. package/dist/dist/lib/components/Checkbox/index.js +2 -0
  40. package/dist/dist/lib/components/CheckboxCard/index.js +2 -0
  41. package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +2 -0
  42. package/dist/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +2 -0
  43. package/dist/dist/lib/components/CheckboxGroup/index.js +2 -0
  44. package/dist/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -0
  45. package/dist/dist/lib/components/ContextMenu/ContextMenuContent.js +2 -0
  46. package/dist/dist/lib/components/ContextMenu/ContextMenuGroup.js +2 -0
  47. package/dist/dist/lib/components/ContextMenu/ContextMenuItem.js +2 -0
  48. package/dist/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +2 -0
  49. package/dist/dist/lib/components/ContextMenu/ContextMenuLabel.js +2 -0
  50. package/dist/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +2 -0
  51. package/dist/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -0
  52. package/dist/dist/lib/components/ContextMenu/ContextMenuRoot.js +2 -0
  53. package/dist/dist/lib/components/ContextMenu/ContextMenuSeparator.js +2 -0
  54. package/dist/dist/lib/components/ContextMenu/ContextMenuSubContent.js +2 -0
  55. package/dist/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +2 -0
  56. package/dist/dist/lib/components/ContextMenu/ContextMenuTrigger.js +2 -0
  57. package/dist/dist/lib/components/ContextMenu/index.js +2 -0
  58. package/dist/dist/lib/components/DataList/DataListItem.js +2 -0
  59. package/dist/dist/lib/components/DataList/DataListLabel.js +2 -0
  60. package/dist/dist/lib/components/DataList/DataListRoot.js +2 -0
  61. package/dist/dist/lib/components/DataList/DataListValue.js +2 -0
  62. package/dist/dist/lib/components/DataList/index.js +2 -0
  63. package/dist/dist/lib/components/Dialog/DialogAction.js +2 -0
  64. package/dist/dist/lib/components/Dialog/DialogCancel.js +2 -0
  65. package/dist/dist/lib/components/Dialog/DialogContent.js +2 -0
  66. package/dist/dist/lib/components/Dialog/DialogDescription.js +2 -0
  67. package/dist/dist/lib/components/Dialog/DialogRoot.js +2 -0
  68. package/dist/dist/lib/components/Dialog/DialogSlot.js +2 -0
  69. package/dist/dist/lib/components/Dialog/DialogTitle.js +2 -0
  70. package/dist/dist/lib/components/Dialog/DialogTrigger.js +2 -0
  71. package/dist/dist/lib/components/Dialog/index.js +2 -0
  72. package/dist/dist/lib/components/DoughnutChart/index.js +2 -0
  73. package/dist/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +2 -0
  74. package/dist/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +2 -0
  75. package/dist/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -0
  76. package/dist/dist/lib/components/DropdownMenu/DropdownMenuContent.js +2 -0
  77. package/dist/dist/lib/components/DropdownMenu/DropdownMenuItem.js +2 -0
  78. package/dist/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +2 -0
  79. package/dist/dist/lib/components/DropdownMenu/DropdownMenuLable.js +2 -0
  80. package/dist/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -0
  81. package/dist/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +2 -0
  82. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +2 -0
  83. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSub.js +2 -0
  84. package/dist/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +2 -0
  85. package/dist/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +2 -0
  86. package/dist/dist/lib/components/DropdownMenu/index.js +2 -0
  87. package/dist/dist/lib/components/HoverCard/HoverCardContent.js +2 -0
  88. package/dist/dist/lib/components/HoverCard/HoverCardRoot.js +2 -0
  89. package/dist/dist/lib/components/HoverCard/HoverCardTrigger.js +2 -0
  90. package/dist/dist/lib/components/HoverCard/index.js +2 -0
  91. package/dist/dist/lib/components/IconButton/index.js +2 -0
  92. package/dist/dist/lib/components/Inset/index.js +2 -0
  93. package/dist/dist/lib/components/Label/index.js +2 -0
  94. package/dist/dist/lib/components/LineChart/index.js +2 -0
  95. package/dist/dist/lib/components/Menubar/MenubarCheckboxItem.js +2 -0
  96. package/dist/dist/lib/components/Menubar/MenubarContent.js +2 -0
  97. package/dist/dist/lib/components/Menubar/MenubarItem.js +2 -0
  98. package/dist/dist/lib/components/Menubar/MenubarItemIndicator.js +2 -0
  99. package/dist/dist/lib/components/Menubar/MenubarMenu.js +2 -0
  100. package/dist/dist/lib/components/Menubar/MenubarRadioGroup.js +2 -0
  101. package/dist/dist/lib/components/Menubar/MenubarRadioItem.js +2 -0
  102. package/dist/dist/lib/components/Menubar/MenubarRoot.js +2 -0
  103. package/dist/dist/lib/components/Menubar/MenubarSeparator.js +2 -0
  104. package/dist/dist/lib/components/Menubar/MenubarSub.js +2 -0
  105. package/dist/dist/lib/components/Menubar/MenubarSubContent.js +2 -0
  106. package/dist/dist/lib/components/Menubar/MenubarSubTrigger.js +2 -0
  107. package/dist/dist/lib/components/Menubar/MenubarTrigger.js +2 -0
  108. package/dist/dist/lib/components/Menubar/index.js +2 -0
  109. package/dist/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -0
  110. package/dist/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +2 -0
  111. package/dist/dist/lib/components/NavigationMenu/NavigationMenuItem.js +2 -0
  112. package/dist/dist/lib/components/NavigationMenu/NavigationMenuLink.js +2 -0
  113. package/dist/dist/lib/components/NavigationMenu/NavigationMenuList.js +2 -0
  114. package/dist/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +2 -0
  115. package/dist/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +2 -0
  116. package/dist/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +2 -0
  117. package/dist/dist/lib/components/NavigationMenu/index.js +2 -0
  118. package/dist/dist/lib/components/PieChart/index.js +2 -0
  119. package/dist/dist/lib/components/Popover/PopoverClose.js +2 -0
  120. package/dist/dist/lib/components/Popover/PopoverContent.js +2 -0
  121. package/dist/dist/lib/components/Popover/PopoverRoot.js +2 -0
  122. package/dist/dist/lib/components/Popover/PopoverTrigger.js +2 -0
  123. package/dist/dist/lib/components/Popover/index.js +2 -0
  124. package/dist/dist/lib/components/Progress/index.js +2 -0
  125. package/dist/dist/lib/components/RadarChart/index.js +2 -0
  126. package/dist/dist/lib/components/Radio/index.js +2 -0
  127. package/dist/dist/lib/components/RadioCards/RadioCardsItem.js +2 -0
  128. package/dist/dist/lib/components/RadioCards/RadioCardsRoot.js +2 -0
  129. package/dist/dist/lib/components/RadioCards/index.js +2 -0
  130. package/dist/dist/lib/components/RadioGroup/RadioGroupItem.js +2 -0
  131. package/dist/dist/lib/components/RadioGroup/RadioGroupRoot.js +2 -0
  132. package/dist/dist/lib/components/RadioGroup/index.js +2 -0
  133. package/dist/dist/lib/components/ScrollArea/index.js +2 -0
  134. package/dist/dist/lib/components/SegmentedControl/SegmentedControlItem.js +2 -0
  135. package/dist/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +2 -0
  136. package/dist/dist/lib/components/SegmentedControl/index.js +2 -0
  137. package/dist/dist/lib/components/Select/index.js +2 -0
  138. package/dist/dist/lib/components/Separator/index.js +2 -0
  139. package/dist/dist/lib/components/Skeleton/index.js +2 -0
  140. package/dist/dist/lib/components/Slider/index.js +2 -0
  141. package/dist/dist/lib/components/Spinner/index.js +2 -0
  142. package/dist/dist/lib/components/TabNav/index.js +2 -0
  143. package/dist/dist/lib/components/Table/index.js +2 -0
  144. package/dist/dist/lib/components/Tabs/index.js +2 -0
  145. package/dist/dist/lib/components/TextArea/index.js +2 -0
  146. package/dist/dist/lib/components/TextField/index.js +2 -0
  147. package/dist/dist/lib/components/Toast/ToastActionButton.js +2 -0
  148. package/dist/dist/lib/components/Toast/ToastDescription.js +2 -0
  149. package/dist/dist/lib/components/Toast/ToastRoot.js +2 -0
  150. package/dist/dist/lib/components/Toast/ToastTitle.js +2 -0
  151. package/dist/dist/lib/components/Toast/index.js +2 -0
  152. package/dist/dist/lib/components/Toggle/ToggleWithText.js +2 -0
  153. package/dist/dist/lib/components/Toggle/index.js +2 -0
  154. package/dist/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -0
  155. package/dist/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +2 -0
  156. package/dist/dist/lib/components/ToggleGroup/index.js +2 -0
  157. package/dist/dist/lib/components/ToggleSwitch/index.js +2 -0
  158. package/dist/dist/lib/components/Tooltip/index.js +2 -0
  159. package/dist/dist/lib/constants.js +2 -0
  160. package/dist/dist/lib/index.js +2 -0
  161. package/dist/dist/lib/index.js.map +1 -0
  162. package/dist/dist/lib/utils/useDarkMode.js +2 -0
  163. package/dist/dist/lib/utils/utils.js +2 -0
  164. package/dist/lib/Typography/Header/index.d.ts +13 -0
  165. package/dist/lib/Typography/Header/index.js +55 -2
  166. package/dist/lib/Typography/Text/index.d.ts +15 -0
  167. package/dist/lib/Typography/Text/index.js +44 -2
  168. package/dist/lib/Typography/index.d.ts +2 -0
  169. package/dist/lib/Typography/index.js +2 -0
  170. package/dist/lib/color/alpha.d.ts +784 -0
  171. package/dist/lib/color/alpha.js +784 -2
  172. package/dist/lib/color/constants.d.ts +29 -0
  173. package/dist/lib/color/constants.js +296 -2
  174. package/dist/lib/color/dark.d.ts +392 -0
  175. package/dist/lib/color/dark.js +392 -0
  176. package/dist/lib/color/krdsColors.d.ts +309 -0
  177. package/dist/lib/color/krdsColors.js +309 -0
  178. package/dist/lib/color/light.d.ts +392 -0
  179. package/dist/lib/color/light.js +393 -2
  180. package/dist/lib/components/Accordion/index.d.ts +22 -0
  181. package/dist/lib/components/Accordion/index.js +64 -2
  182. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +14 -0
  183. package/dist/lib/components/AlertDialog/AlertDialogAction.js +61 -2
  184. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +13 -0
  185. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +60 -2
  186. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +11 -0
  187. package/dist/lib/components/AlertDialog/AlertDialogContent.js +51 -2
  188. package/dist/lib/components/AlertDialog/AlertDialogDescription.d.ts +10 -0
  189. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +47 -2
  190. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +16 -0
  191. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +46 -2
  192. package/dist/lib/components/AlertDialog/AlertDialogTitle.d.ts +10 -0
  193. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +47 -2
  194. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +17 -0
  195. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +55 -2
  196. package/dist/lib/components/AlertDialog/index.d.ts +10 -0
  197. package/dist/lib/components/AlertDialog/index.js +17 -2
  198. package/dist/lib/components/AspectRatio/index.d.ts +10 -0
  199. package/dist/lib/components/AspectRatio/index.js +42 -2
  200. package/dist/lib/components/Avatar/index.d.ts +21 -0
  201. package/dist/lib/components/Avatar/index.js +58 -2
  202. package/dist/lib/components/Badge/index.d.ts +18 -0
  203. package/dist/lib/components/Badge/index.js +54 -2
  204. package/dist/lib/components/BarChart/index.d.ts +37 -0
  205. package/dist/lib/components/BarChart/index.js +63 -2
  206. package/dist/lib/components/BubbleChart/index.d.ts +28 -0
  207. package/dist/lib/components/BubbleChart/index.js +73 -2
  208. package/dist/lib/components/Button/index.d.ts +16 -0
  209. package/dist/lib/components/Button/index.js +56 -2
  210. package/dist/lib/components/Callout/CalloutIcon.d.ts +13 -0
  211. package/dist/lib/components/Callout/CalloutIcon.js +57 -2
  212. package/dist/lib/components/Callout/CalloutRoot.d.ts +18 -0
  213. package/dist/lib/components/Callout/CalloutRoot.js +72 -2
  214. package/dist/lib/components/Callout/CalloutText.d.ts +10 -0
  215. package/dist/lib/components/Callout/CalloutText.js +52 -2
  216. package/dist/lib/components/Callout/index.d.ts +6 -0
  217. package/dist/lib/components/Callout/index.js +9 -2
  218. package/dist/lib/components/Card/index.d.ts +14 -0
  219. package/dist/lib/components/Card/index.js +64 -2
  220. package/dist/lib/components/Checkbox/index.d.ts +17 -0
  221. package/dist/lib/components/Checkbox/index.js +89 -2
  222. package/dist/lib/components/CheckboxCard/index.d.ts +20 -0
  223. package/dist/lib/components/CheckboxCard/index.js +58 -2
  224. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +5 -0
  225. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +33 -2
  226. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +17 -0
  227. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +34 -2
  228. package/dist/lib/components/CheckboxGroup/index.d.ts +5 -0
  229. package/dist/lib/components/CheckboxGroup/index.js +4 -2
  230. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +4 -0
  231. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +42 -2
  232. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +11 -0
  233. package/dist/lib/components/ContextMenu/ContextMenuContent.js +56 -2
  234. package/dist/lib/components/ContextMenu/ContextMenuGroup.d.ts +4 -0
  235. package/dist/lib/components/ContextMenu/ContextMenuGroup.js +30 -2
  236. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +13 -0
  237. package/dist/lib/components/ContextMenu/ContextMenuItem.js +59 -2
  238. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +10 -0
  239. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +50 -2
  240. package/dist/lib/components/ContextMenu/ContextMenuLabel.d.ts +11 -0
  241. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +48 -2
  242. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +8 -0
  243. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +31 -2
  244. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +4 -0
  245. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +44 -2
  246. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +13 -0
  247. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +42 -2
  248. package/dist/lib/components/ContextMenu/ContextMenuSeparator.d.ts +3 -0
  249. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +31 -2
  250. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +11 -0
  251. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +54 -2
  252. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +4 -0
  253. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +40 -2
  254. package/dist/lib/components/ContextMenu/ContextMenuTrigger.d.ts +4 -0
  255. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +31 -2
  256. package/dist/lib/components/ContextMenu/index.d.ts +16 -0
  257. package/dist/lib/components/ContextMenu/index.js +29 -2
  258. package/dist/lib/components/DataList/DataListItem.d.ts +9 -0
  259. package/dist/lib/components/DataList/DataListItem.js +43 -2
  260. package/dist/lib/components/DataList/DataListLabel.d.ts +10 -0
  261. package/dist/lib/components/DataList/DataListLabel.js +49 -2
  262. package/dist/lib/components/DataList/DataListRoot.d.ts +14 -0
  263. package/dist/lib/components/DataList/DataListRoot.js +54 -2
  264. package/dist/lib/components/DataList/DataListValue.d.ts +11 -0
  265. package/dist/lib/components/DataList/DataListValue.js +51 -2
  266. package/dist/lib/components/DataList/index.d.ts +7 -0
  267. package/dist/lib/components/DataList/index.js +6 -2
  268. package/dist/lib/components/Dialog/DialogAction.d.ts +13 -0
  269. package/dist/lib/components/Dialog/DialogAction.js +59 -2
  270. package/dist/lib/components/Dialog/DialogCancel.d.ts +11 -0
  271. package/dist/lib/components/Dialog/DialogCancel.js +55 -2
  272. package/dist/lib/components/Dialog/DialogContent.d.ts +11 -0
  273. package/dist/lib/components/Dialog/DialogContent.js +57 -2
  274. package/dist/lib/components/Dialog/DialogDescription.d.ts +9 -0
  275. package/dist/lib/components/Dialog/DialogDescription.js +47 -2
  276. package/dist/lib/components/Dialog/DialogRoot.d.ts +15 -0
  277. package/dist/lib/components/Dialog/DialogRoot.js +37 -2
  278. package/dist/lib/components/Dialog/DialogSlot.d.ts +9 -0
  279. package/dist/lib/components/Dialog/DialogSlot.js +46 -2
  280. package/dist/lib/components/Dialog/DialogTitle.d.ts +11 -0
  281. package/dist/lib/components/Dialog/DialogTitle.js +47 -2
  282. package/dist/lib/components/Dialog/DialogTrigger.d.ts +3 -0
  283. package/dist/lib/components/Dialog/DialogTrigger.js +30 -2
  284. package/dist/lib/components/Dialog/index.d.ts +14 -0
  285. package/dist/lib/components/Dialog/index.js +19 -2
  286. package/dist/lib/components/DoughnutChart/index.d.ts +22 -0
  287. package/dist/lib/components/DoughnutChart/index.js +65 -2
  288. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +3 -0
  289. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +30 -2
  290. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +11 -0
  291. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +60 -2
  292. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +7 -0
  293. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +41 -2
  294. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +11 -0
  295. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +56 -2
  296. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +15 -0
  297. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +58 -2
  298. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +10 -0
  299. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +48 -2
  300. package/dist/lib/components/DropdownMenu/DropdownMenuLable.d.ts +10 -0
  301. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +45 -2
  302. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +6 -0
  303. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +41 -2
  304. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +15 -0
  305. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +38 -2
  306. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +3 -0
  307. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +31 -2
  308. package/dist/lib/components/DropdownMenu/DropdownMenuSub.d.ts +3 -0
  309. package/dist/lib/components/DropdownMenu/DropdownMenuSub.js +30 -2
  310. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +4 -0
  311. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +40 -2
  312. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +14 -0
  313. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +53 -2
  314. package/dist/lib/components/DropdownMenu/index.d.ts +19 -0
  315. package/dist/lib/components/DropdownMenu/index.js +29 -2
  316. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +14 -0
  317. package/dist/lib/components/HoverCard/HoverCardContent.js +61 -2
  318. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +11 -0
  319. package/dist/lib/components/HoverCard/HoverCardRoot.js +38 -2
  320. package/dist/lib/components/HoverCard/HoverCardTrigger.d.ts +3 -0
  321. package/dist/lib/components/HoverCard/HoverCardTrigger.js +30 -2
  322. package/dist/lib/components/HoverCard/index.d.ts +9 -0
  323. package/dist/lib/components/HoverCard/index.js +9 -2
  324. package/dist/lib/components/IconButton/index.d.ts +15 -0
  325. package/dist/lib/components/IconButton/index.js +63 -2
  326. package/dist/lib/components/Inset/index.d.ts +10 -0
  327. package/dist/lib/components/Inset/index.js +50 -2
  328. package/dist/lib/components/Label/index.d.ts +17 -0
  329. package/dist/lib/components/Label/index.js +53 -2
  330. package/dist/lib/components/LineChart/index.d.ts +43 -0
  331. package/dist/lib/components/LineChart/index.js +61 -2
  332. package/dist/lib/components/Menubar/MenubarCheckboxItem.d.ts +4 -0
  333. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +38 -2
  334. package/dist/lib/components/Menubar/MenubarContent.d.ts +11 -0
  335. package/dist/lib/components/Menubar/MenubarContent.js +60 -2
  336. package/dist/lib/components/Menubar/MenubarItem.d.ts +13 -0
  337. package/dist/lib/components/Menubar/MenubarItem.js +54 -2
  338. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +10 -0
  339. package/dist/lib/components/Menubar/MenubarItemIndicator.js +49 -2
  340. package/dist/lib/components/Menubar/MenubarMenu.d.ts +5 -0
  341. package/dist/lib/components/Menubar/MenubarMenu.js +30 -2
  342. package/dist/lib/components/Menubar/MenubarRadioGroup.d.ts +8 -0
  343. package/dist/lib/components/Menubar/MenubarRadioGroup.js +31 -2
  344. package/dist/lib/components/Menubar/MenubarRadioItem.d.ts +4 -0
  345. package/dist/lib/components/Menubar/MenubarRadioItem.js +40 -2
  346. package/dist/lib/components/Menubar/MenubarRoot.d.ts +19 -0
  347. package/dist/lib/components/Menubar/MenubarRoot.js +61 -2
  348. package/dist/lib/components/Menubar/MenubarSeparator.d.ts +3 -0
  349. package/dist/lib/components/Menubar/MenubarSeparator.js +31 -2
  350. package/dist/lib/components/Menubar/MenubarSub.d.ts +3 -0
  351. package/dist/lib/components/Menubar/MenubarSub.js +30 -2
  352. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +10 -0
  353. package/dist/lib/components/Menubar/MenubarSubContent.js +51 -2
  354. package/dist/lib/components/Menubar/MenubarSubTrigger.d.ts +4 -0
  355. package/dist/lib/components/Menubar/MenubarSubTrigger.js +41 -2
  356. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +12 -0
  357. package/dist/lib/components/Menubar/MenubarTrigger.js +57 -2
  358. package/dist/lib/components/Menubar/index.d.ts +18 -0
  359. package/dist/lib/components/Menubar/index.js +29 -2
  360. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +11 -0
  361. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +48 -2
  362. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +3 -0
  363. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -2
  364. package/dist/lib/components/NavigationMenu/NavigationMenuItem.d.ts +3 -0
  365. package/dist/lib/components/NavigationMenu/NavigationMenuItem.js +30 -2
  366. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +13 -0
  367. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +51 -2
  368. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +12 -0
  369. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +47 -2
  370. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +14 -0
  371. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +43 -2
  372. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +13 -0
  373. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +58 -2
  374. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +12 -0
  375. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +53 -2
  376. package/dist/lib/components/NavigationMenu/index.d.ts +11 -0
  377. package/dist/lib/components/NavigationMenu/index.js +10 -2
  378. package/dist/lib/components/PieChart/index.d.ts +22 -0
  379. package/dist/lib/components/PieChart/index.js +65 -2
  380. package/dist/lib/components/Popover/PopoverClose.d.ts +9 -0
  381. package/dist/lib/components/Popover/PopoverClose.js +48 -2
  382. package/dist/lib/components/Popover/PopoverContent.d.ts +11 -0
  383. package/dist/lib/components/Popover/PopoverContent.js +65 -2
  384. package/dist/lib/components/Popover/PopoverRoot.d.ts +12 -0
  385. package/dist/lib/components/Popover/PopoverRoot.js +36 -2
  386. package/dist/lib/components/Popover/PopoverTrigger.d.ts +3 -0
  387. package/dist/lib/components/Popover/PopoverTrigger.js +30 -2
  388. package/dist/lib/components/Popover/index.d.ts +10 -0
  389. package/dist/lib/components/Popover/index.js +11 -2
  390. package/dist/lib/components/Progress/index.d.ts +13 -0
  391. package/dist/lib/components/Progress/index.js +56 -2
  392. package/dist/lib/components/RadarChart/index.d.ts +32 -0
  393. package/dist/lib/components/RadarChart/index.js +76 -2
  394. package/dist/lib/components/Radio/index.d.ts +13 -0
  395. package/dist/lib/components/Radio/index.js +53 -2
  396. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +10 -0
  397. package/dist/lib/components/RadioCards/RadioCardsItem.js +54 -2
  398. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +13 -0
  399. package/dist/lib/components/RadioCards/RadioCardsRoot.js +46 -2
  400. package/dist/lib/components/RadioCards/index.d.ts +5 -0
  401. package/dist/lib/components/RadioCards/index.js +7 -2
  402. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +13 -0
  403. package/dist/lib/components/RadioGroup/RadioGroupItem.js +46 -2
  404. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +15 -0
  405. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +53 -2
  406. package/dist/lib/components/RadioGroup/index.d.ts +5 -0
  407. package/dist/lib/components/RadioGroup/index.js +7 -2
  408. package/dist/lib/components/ScrollArea/index.d.ts +9 -0
  409. package/dist/lib/components/ScrollArea/index.js +36 -2
  410. package/dist/lib/components/SegmentedControl/SegmentedControlItem.d.ts +6 -0
  411. package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +35 -2
  412. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +14 -0
  413. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +47 -2
  414. package/dist/lib/components/SegmentedControl/index.d.ts +5 -0
  415. package/dist/lib/components/SegmentedControl/index.js +7 -2
  416. package/dist/lib/components/Select/index.d.ts +34 -0
  417. package/dist/lib/components/Select/index.js +92 -2
  418. package/dist/lib/components/Separator/index.d.ts +11 -0
  419. package/dist/lib/components/Separator/index.js +47 -2
  420. package/dist/lib/components/Skeleton/index.d.ts +14 -0
  421. package/dist/lib/components/Skeleton/index.js +42 -2
  422. package/dist/lib/components/Slider/index.d.ts +14 -0
  423. package/dist/lib/components/Slider/index.js +49 -2
  424. package/dist/lib/components/Spinner/index.d.ts +15 -0
  425. package/dist/lib/components/Spinner/index.js +47 -2
  426. package/dist/lib/components/TabNav/index.d.ts +15 -0
  427. package/dist/lib/components/TabNav/index.js +50 -2
  428. package/dist/lib/components/Table/index.d.ts +30 -0
  429. package/dist/lib/components/Table/index.js +98 -2
  430. package/dist/lib/components/Tabs/index.d.ts +22 -0
  431. package/dist/lib/components/Tabs/index.js +65 -2
  432. package/dist/lib/components/TextArea/index.d.ts +16 -0
  433. package/dist/lib/components/TextArea/index.js +58 -2
  434. package/dist/lib/components/TextField/index.d.ts +21 -0
  435. package/dist/lib/components/TextField/index.js +56 -2
  436. package/dist/lib/components/Toast/ToastActionButton.d.ts +14 -0
  437. package/dist/lib/components/Toast/ToastActionButton.js +67 -2
  438. package/dist/lib/components/Toast/ToastDescription.d.ts +13 -0
  439. package/dist/lib/components/Toast/ToastDescription.js +53 -2
  440. package/dist/lib/components/Toast/ToastRoot.d.ts +27 -0
  441. package/dist/lib/components/Toast/ToastRoot.js +90 -2
  442. package/dist/lib/components/Toast/ToastTitle.d.ts +13 -0
  443. package/dist/lib/components/Toast/ToastTitle.js +53 -2
  444. package/dist/lib/components/Toast/index.d.ts +7 -0
  445. package/dist/lib/components/Toast/index.js +11 -2
  446. package/dist/lib/components/Toggle/ToggleWithText.d.ts +21 -0
  447. package/dist/lib/components/Toggle/ToggleWithText.js +58 -2
  448. package/dist/lib/components/Toggle/index.d.ts +21 -0
  449. package/dist/lib/components/Toggle/index.js +58 -2
  450. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +17 -0
  451. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +54 -2
  452. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +15 -0
  453. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +48 -2
  454. package/dist/lib/components/ToggleGroup/index.d.ts +5 -0
  455. package/dist/lib/components/ToggleGroup/index.js +7 -2
  456. package/dist/lib/components/ToggleSwitch/index.d.ts +13 -0
  457. package/dist/lib/components/ToggleSwitch/index.js +71 -2
  458. package/dist/lib/components/Tooltip/index.d.ts +19 -0
  459. package/dist/lib/components/Tooltip/index.js +49 -2
  460. package/dist/lib/components/index.d.ts +50 -0
  461. package/dist/lib/components/index.js +52 -0
  462. package/dist/lib/constants.d.ts +655 -0
  463. package/dist/lib/constants.js +914 -2
  464. package/dist/lib/index.d.ts +2 -0
  465. package/dist/lib/index.js +2 -2
  466. package/dist/lib/types.d.ts +81 -0
  467. package/dist/lib/types.js +1 -0
  468. package/dist/lib/utils/useDarkMode.d.ts +1 -0
  469. package/dist/lib/utils/useDarkMode.js +49 -2
  470. package/dist/lib/utils/utils.d.ts +2 -0
  471. package/dist/lib/utils/utils.js +10 -2
  472. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +2 -0
  473. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js.map +1 -0
  474. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +2 -0
  475. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js.map +1 -0
  476. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js +2 -0
  477. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js.map +1 -0
  478. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +2 -0
  479. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js.map +1 -0
  480. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +2 -0
  481. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js.map +1 -0
  482. package/dist/node_modules/@kurkle/color/dist/color.esm.js +8 -0
  483. package/dist/node_modules/@kurkle/color/dist/color.esm.js.map +1 -0
  484. package/dist/node_modules/@radix-ui/number/dist/index.mjs.js +2 -0
  485. package/dist/node_modules/@radix-ui/number/dist/index.mjs.js.map +1 -0
  486. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js +2 -0
  487. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.js.map +1 -0
  488. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js +2 -0
  489. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.js.map +1 -0
  490. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js +2 -0
  491. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.js.map +1 -0
  492. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js +2 -0
  493. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.js.map +1 -0
  494. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.js +2 -0
  495. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.js.map +1 -0
  496. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js +2 -0
  497. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.js.map +1 -0
  498. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js +2 -0
  499. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.js.map +1 -0
  500. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js +2 -0
  501. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.js.map +1 -0
  502. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js +2 -0
  503. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.js.map +1 -0
  504. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js +2 -0
  505. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.js.map +1 -0
  506. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js +2 -0
  507. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.js.map +1 -0
  508. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.js +2 -0
  509. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.js.map +1 -0
  510. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js +2 -0
  511. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.js.map +1 -0
  512. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js +2 -0
  513. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.js.map +1 -0
  514. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js +2 -0
  515. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.js.map +1 -0
  516. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js +2 -0
  517. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.js.map +1 -0
  518. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js +2 -0
  519. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.js.map +1 -0
  520. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js +2 -0
  521. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.js.map +1 -0
  522. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js +2 -0
  523. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.js.map +1 -0
  524. package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js +2 -0
  525. package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js.map +1 -0
  526. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js +2 -0
  527. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.js.map +1 -0
  528. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js +2 -0
  529. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.js.map +1 -0
  530. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js +2 -0
  531. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.js.map +1 -0
  532. package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.js +2 -0
  533. package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.js.map +1 -0
  534. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js +2 -0
  535. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.js.map +1 -0
  536. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js +2 -0
  537. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.js.map +1 -0
  538. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js +2 -0
  539. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.js.map +1 -0
  540. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js +2 -0
  541. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.js.map +1 -0
  542. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js +2 -0
  543. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.js.map +1 -0
  544. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js +2 -0
  545. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.js.map +1 -0
  546. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js +2 -0
  547. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.js.map +1 -0
  548. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js +2 -0
  549. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.js.map +1 -0
  550. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.js +2 -0
  551. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.js.map +1 -0
  552. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js +2 -0
  553. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.js.map +1 -0
  554. package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.js +2 -0
  555. package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.js.map +1 -0
  556. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js +2 -0
  557. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.js.map +1 -0
  558. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js +2 -0
  559. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.js.map +1 -0
  560. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js +2 -0
  561. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.js.map +1 -0
  562. package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.js +2 -0
  563. package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.js.map +1 -0
  564. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js +2 -0
  565. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.js.map +1 -0
  566. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js +2 -0
  567. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.js.map +1 -0
  568. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js +2 -0
  569. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.js.map +1 -0
  570. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js +2 -0
  571. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.js.map +1 -0
  572. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js +2 -0
  573. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.js.map +1 -0
  574. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js +2 -0
  575. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.js.map +1 -0
  576. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js +2 -0
  577. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.js.map +1 -0
  578. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js +2 -0
  579. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.js.map +1 -0
  580. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js +2 -0
  581. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.js.map +1 -0
  582. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js +2 -0
  583. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.js.map +1 -0
  584. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.js +2 -0
  585. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.js.map +1 -0
  586. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.js +2 -0
  587. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.js.map +1 -0
  588. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.js +2 -0
  589. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.js.map +1 -0
  590. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.js +2 -0
  591. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.js.map +1 -0
  592. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.js +2 -0
  593. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.js.map +1 -0
  594. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.js +2 -0
  595. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.js.map +1 -0
  596. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.js +2 -0
  597. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.js.map +1 -0
  598. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.js +2 -0
  599. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.js.map +1 -0
  600. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.js +2 -0
  601. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.js.map +1 -0
  602. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.js +2 -0
  603. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.js.map +1 -0
  604. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.js +2 -0
  605. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.js.map +1 -0
  606. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.js +2 -0
  607. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.js.map +1 -0
  608. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.js +2 -0
  609. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.js.map +1 -0
  610. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.js +2 -0
  611. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.js.map +1 -0
  612. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.js +2 -0
  613. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.js.map +1 -0
  614. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.js +2 -0
  615. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.js.map +1 -0
  616. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.js +2 -0
  617. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.js.map +1 -0
  618. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.js +2 -0
  619. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.js.map +1 -0
  620. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.js +2 -0
  621. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.js.map +1 -0
  622. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.js +2 -0
  623. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.js.map +1 -0
  624. package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.js +2 -0
  625. package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.js.map +1 -0
  626. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.js +2 -0
  627. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.js.map +1 -0
  628. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.js +2 -0
  629. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.js.map +1 -0
  630. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.js +2 -0
  631. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.js.map +1 -0
  632. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.js +2 -0
  633. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.js.map +1 -0
  634. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.js +2 -0
  635. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.js.map +1 -0
  636. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.js +2 -0
  637. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.js.map +1 -0
  638. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.js +2 -0
  639. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.js.map +1 -0
  640. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.js +2 -0
  641. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.js.map +1 -0
  642. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.js +2 -0
  643. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.js.map +1 -0
  644. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.js +2 -0
  645. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.js.map +1 -0
  646. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.js +2 -0
  647. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.js.map +1 -0
  648. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.js +2 -0
  649. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.js.map +1 -0
  650. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js +2 -0
  651. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.js.map +1 -0
  652. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.js +2 -0
  653. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.js.map +1 -0
  654. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.js +2 -0
  655. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.js.map +1 -0
  656. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.js +2 -0
  657. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.js.map +1 -0
  658. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.js +2 -0
  659. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.js.map +1 -0
  660. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.js +2 -0
  661. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.js.map +1 -0
  662. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.js +2 -0
  663. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.js.map +1 -0
  664. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.js +2 -0
  665. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.js.map +1 -0
  666. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.js +2 -0
  667. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.js.map +1 -0
  668. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.js +2 -0
  669. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.js.map +1 -0
  670. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.js +2 -0
  671. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.js.map +1 -0
  672. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.js +2 -0
  673. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.js.map +1 -0
  674. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.js +2 -0
  675. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.js.map +1 -0
  676. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.js +2 -0
  677. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.js.map +1 -0
  678. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.js +2 -0
  679. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.js.map +1 -0
  680. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.js +2 -0
  681. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.js.map +1 -0
  682. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.js +2 -0
  683. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.js.map +1 -0
  684. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.js +2 -0
  685. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.js.map +1 -0
  686. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.js +2 -0
  687. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.js.map +1 -0
  688. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.js +2 -0
  689. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.js.map +1 -0
  690. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.js +2 -0
  691. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.js.map +1 -0
  692. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.js +2 -0
  693. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.js.map +1 -0
  694. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js +2 -0
  695. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js.map +1 -0
  696. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.js +2 -0
  697. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.js.map +1 -0
  698. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.js +2 -0
  699. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.js.map +1 -0
  700. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.js +2 -0
  701. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.js.map +1 -0
  702. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.js +2 -0
  703. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.js.map +1 -0
  704. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js +2 -0
  705. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js.map +1 -0
  706. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js +2 -0
  707. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js.map +1 -0
  708. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js +2 -0
  709. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js.map +1 -0
  710. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.js +2 -0
  711. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.js.map +1 -0
  712. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js +2 -0
  713. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.js.map +1 -0
  714. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js +2 -0
  715. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.js.map +1 -0
  716. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js +2 -0
  717. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js.map +1 -0
  718. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.js +2 -0
  719. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.js.map +1 -0
  720. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js +2 -0
  721. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js.map +1 -0
  722. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js +2 -0
  723. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.js.map +1 -0
  724. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js +2 -0
  725. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.js.map +1 -0
  726. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.js +2 -0
  727. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.js.map +1 -0
  728. package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js +2 -0
  729. package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js.map +1 -0
  730. package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.js +2 -0
  731. package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.js.map +1 -0
  732. package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.js +2 -0
  733. package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.js.map +1 -0
  734. package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.js +2 -0
  735. package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.js.map +1 -0
  736. package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js +2 -0
  737. package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js.map +1 -0
  738. package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.js +2 -0
  739. package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.js.map +1 -0
  740. package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.js +2 -0
  741. package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.js.map +1 -0
  742. package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.js +2 -0
  743. package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.js.map +1 -0
  744. package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.js +2 -0
  745. package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.js.map +1 -0
  746. package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.js +2 -0
  747. package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.js.map +1 -0
  748. package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js +2 -0
  749. package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js.map +1 -0
  750. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.js +2 -0
  751. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.js.map +1 -0
  752. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.js +2 -0
  753. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.js.map +1 -0
  754. package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.js +2 -0
  755. package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.js.map +1 -0
  756. package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.js +2 -0
  757. package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.js.map +1 -0
  758. package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.js +2 -0
  759. package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.js.map +1 -0
  760. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.js +2 -0
  761. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.js.map +1 -0
  762. package/dist/node_modules/aria-hidden/dist/es2015/index.js +2 -0
  763. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  764. package/dist/node_modules/chart.js/auto/auto.js +2 -0
  765. package/dist/node_modules/chart.js/auto/auto.js.map +1 -0
  766. package/dist/node_modules/chart.js/dist/chart.js +8 -0
  767. package/dist/node_modules/chart.js/dist/chart.js.map +1 -0
  768. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +8 -0
  769. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js.map +1 -0
  770. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +8 -0
  771. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js.map +1 -0
  772. package/dist/node_modules/class-variance-authority/dist/index.mjs.js +2 -0
  773. package/dist/node_modules/class-variance-authority/dist/index.mjs.js.map +1 -0
  774. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js +2 -0
  775. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.js.map +1 -0
  776. package/dist/node_modules/classnames/index.js +7 -0
  777. package/dist/node_modules/classnames/index.js.map +1 -0
  778. package/dist/node_modules/clsx/dist/clsx.mjs.js +2 -0
  779. package/dist/node_modules/clsx/dist/clsx.mjs.js.map +1 -0
  780. package/dist/node_modules/get-nonce/dist/es2015/index.js +2 -0
  781. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  782. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +11 -0
  783. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
  784. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +11 -0
  785. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  786. package/dist/node_modules/react/jsx-runtime.js +2 -0
  787. package/dist/node_modules/react/jsx-runtime.js.map +1 -0
  788. package/dist/node_modules/react-chartjs-2/dist/index.js +2 -0
  789. package/dist/node_modules/react-chartjs-2/dist/index.js.map +1 -0
  790. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +2 -0
  791. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  792. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +2 -0
  793. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  794. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +2 -0
  795. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  796. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +2 -0
  797. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  798. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +2 -0
  799. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  800. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +2 -0
  801. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  802. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +2 -0
  803. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  804. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +2 -0
  805. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  806. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +2 -0
  807. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  808. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +2 -0
  809. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  810. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +2 -0
  811. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  812. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +2 -0
  813. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  814. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +2 -0
  815. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  816. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.js +2 -0
  817. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.js.map +1 -0
  818. package/dist/node_modules/tslib/tslib.es6.js +2 -0
  819. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  820. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +2 -0
  821. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  822. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +2 -0
  823. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  824. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +2 -0
  825. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  826. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +2 -0
  827. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  828. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +2 -0
  829. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  830. package/package.json +2 -13
  831. /package/dist/{lib → _virtual}/index.js.map +0 -0
  832. /package/dist/{lib → dist/lib}/Typography/Header/index.js.map +0 -0
  833. /package/dist/{lib → dist/lib}/Typography/Text/index.js.map +0 -0
  834. /package/dist/{lib → dist/lib}/color/alpha.js.map +0 -0
  835. /package/dist/{lib → dist/lib}/color/constants.js.map +0 -0
  836. /package/dist/{lib → dist/lib}/color/light.js.map +0 -0
  837. /package/dist/{lib → dist/lib}/components/Accordion/index.js.map +0 -0
  838. /package/dist/{lib → dist/lib}/components/AlertDialog/AlertDialogAction.js.map +0 -0
  839. /package/dist/{lib → dist/lib}/components/AlertDialog/AlertDialogCancel.js.map +0 -0
  840. /package/dist/{lib → dist/lib}/components/AlertDialog/AlertDialogContent.js.map +0 -0
  841. /package/dist/{lib → dist/lib}/components/AlertDialog/AlertDialogDescription.js.map +0 -0
  842. /package/dist/{lib → dist/lib}/components/AlertDialog/AlertDialogRoot.js.map +0 -0
  843. /package/dist/{lib → dist/lib}/components/AlertDialog/AlertDialogTitle.js.map +0 -0
  844. /package/dist/{lib → dist/lib}/components/AlertDialog/AlertDialogTrigger.js.map +0 -0
  845. /package/dist/{lib → dist/lib}/components/AlertDialog/index.js.map +0 -0
  846. /package/dist/{lib → dist/lib}/components/AspectRatio/index.js.map +0 -0
  847. /package/dist/{lib → dist/lib}/components/Avatar/index.js.map +0 -0
  848. /package/dist/{lib → dist/lib}/components/Badge/index.js.map +0 -0
  849. /package/dist/{lib → dist/lib}/components/BarChart/index.js.map +0 -0
  850. /package/dist/{lib → dist/lib}/components/BubbleChart/index.js.map +0 -0
  851. /package/dist/{lib → dist/lib}/components/Button/index.js.map +0 -0
  852. /package/dist/{lib → dist/lib}/components/Callout/CalloutIcon.js.map +0 -0
  853. /package/dist/{lib → dist/lib}/components/Callout/CalloutRoot.js.map +0 -0
  854. /package/dist/{lib → dist/lib}/components/Callout/CalloutText.js.map +0 -0
  855. /package/dist/{lib → dist/lib}/components/Callout/index.js.map +0 -0
  856. /package/dist/{lib → dist/lib}/components/Card/index.js.map +0 -0
  857. /package/dist/{lib → dist/lib}/components/Checkbox/index.js.map +0 -0
  858. /package/dist/{lib → dist/lib}/components/CheckboxCard/index.js.map +0 -0
  859. /package/dist/{lib → dist/lib}/components/CheckboxGroup/CheckboxGroupItem.js.map +0 -0
  860. /package/dist/{lib → dist/lib}/components/CheckboxGroup/CheckboxGroupRoot.js.map +0 -0
  861. /package/dist/{lib → dist/lib}/components/CheckboxGroup/index.js.map +0 -0
  862. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuCheckboxItem.js.map +0 -0
  863. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuContent.js.map +0 -0
  864. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuGroup.js.map +0 -0
  865. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuItem.js.map +0 -0
  866. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuItemIndicator.js.map +0 -0
  867. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuLabel.js.map +0 -0
  868. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuRadioGroup.js.map +0 -0
  869. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuRadioItem.js.map +0 -0
  870. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuRoot.js.map +0 -0
  871. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuSeparator.js.map +0 -0
  872. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuSubContent.js.map +0 -0
  873. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuSubTrigger.js.map +0 -0
  874. /package/dist/{lib → dist/lib}/components/ContextMenu/ContextMenuTrigger.js.map +0 -0
  875. /package/dist/{lib → dist/lib}/components/ContextMenu/index.js.map +0 -0
  876. /package/dist/{lib → dist/lib}/components/DataList/DataListItem.js.map +0 -0
  877. /package/dist/{lib → dist/lib}/components/DataList/DataListLabel.js.map +0 -0
  878. /package/dist/{lib → dist/lib}/components/DataList/DataListRoot.js.map +0 -0
  879. /package/dist/{lib → dist/lib}/components/DataList/DataListValue.js.map +0 -0
  880. /package/dist/{lib → dist/lib}/components/DataList/index.js.map +0 -0
  881. /package/dist/{lib → dist/lib}/components/Dialog/DialogAction.js.map +0 -0
  882. /package/dist/{lib → dist/lib}/components/Dialog/DialogCancel.js.map +0 -0
  883. /package/dist/{lib → dist/lib}/components/Dialog/DialogContent.js.map +0 -0
  884. /package/dist/{lib → dist/lib}/components/Dialog/DialogDescription.js.map +0 -0
  885. /package/dist/{lib → dist/lib}/components/Dialog/DialogRoot.js.map +0 -0
  886. /package/dist/{lib → dist/lib}/components/Dialog/DialogSlot.js.map +0 -0
  887. /package/dist/{lib → dist/lib}/components/Dialog/DialogTitle.js.map +0 -0
  888. /package/dist/{lib → dist/lib}/components/Dialog/DialogTrigger.js.map +0 -0
  889. /package/dist/{lib → dist/lib}/components/Dialog/index.js.map +0 -0
  890. /package/dist/{lib → dist/lib}/components/DoughnutChart/index.js.map +0 -0
  891. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdonMenuRadioGroup.js.map +0 -0
  892. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdonMenuSubContent.js.map +0 -0
  893. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuCheckboxItem.js.map +0 -0
  894. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuContent.js.map +0 -0
  895. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuItem.js.map +0 -0
  896. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuItemIndicator.js.map +0 -0
  897. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuLable.js.map +0 -0
  898. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuRadioItem.js.map +0 -0
  899. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuRoot.js.map +0 -0
  900. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuSeparator.js.map +0 -0
  901. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuSub.js.map +0 -0
  902. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuSubTrigger.js.map +0 -0
  903. /package/dist/{lib → dist/lib}/components/DropdownMenu/DropdownMenuTrigger.js.map +0 -0
  904. /package/dist/{lib → dist/lib}/components/DropdownMenu/index.js.map +0 -0
  905. /package/dist/{lib → dist/lib}/components/HoverCard/HoverCardContent.js.map +0 -0
  906. /package/dist/{lib → dist/lib}/components/HoverCard/HoverCardRoot.js.map +0 -0
  907. /package/dist/{lib → dist/lib}/components/HoverCard/HoverCardTrigger.js.map +0 -0
  908. /package/dist/{lib → dist/lib}/components/HoverCard/index.js.map +0 -0
  909. /package/dist/{lib → dist/lib}/components/IconButton/index.js.map +0 -0
  910. /package/dist/{lib → dist/lib}/components/Inset/index.js.map +0 -0
  911. /package/dist/{lib → dist/lib}/components/Label/index.js.map +0 -0
  912. /package/dist/{lib → dist/lib}/components/LineChart/index.js.map +0 -0
  913. /package/dist/{lib → dist/lib}/components/Menubar/MenubarCheckboxItem.js.map +0 -0
  914. /package/dist/{lib → dist/lib}/components/Menubar/MenubarContent.js.map +0 -0
  915. /package/dist/{lib → dist/lib}/components/Menubar/MenubarItem.js.map +0 -0
  916. /package/dist/{lib → dist/lib}/components/Menubar/MenubarItemIndicator.js.map +0 -0
  917. /package/dist/{lib → dist/lib}/components/Menubar/MenubarMenu.js.map +0 -0
  918. /package/dist/{lib → dist/lib}/components/Menubar/MenubarRadioGroup.js.map +0 -0
  919. /package/dist/{lib → dist/lib}/components/Menubar/MenubarRadioItem.js.map +0 -0
  920. /package/dist/{lib → dist/lib}/components/Menubar/MenubarRoot.js.map +0 -0
  921. /package/dist/{lib → dist/lib}/components/Menubar/MenubarSeparator.js.map +0 -0
  922. /package/dist/{lib → dist/lib}/components/Menubar/MenubarSub.js.map +0 -0
  923. /package/dist/{lib → dist/lib}/components/Menubar/MenubarSubContent.js.map +0 -0
  924. /package/dist/{lib → dist/lib}/components/Menubar/MenubarSubTrigger.js.map +0 -0
  925. /package/dist/{lib → dist/lib}/components/Menubar/MenubarTrigger.js.map +0 -0
  926. /package/dist/{lib → dist/lib}/components/Menubar/index.js.map +0 -0
  927. /package/dist/{lib → dist/lib}/components/NavigationMenu/NavigationMenuContent.js.map +0 -0
  928. /package/dist/{lib → dist/lib}/components/NavigationMenu/NavigationMenuIndicator.js.map +0 -0
  929. /package/dist/{lib → dist/lib}/components/NavigationMenu/NavigationMenuItem.js.map +0 -0
  930. /package/dist/{lib → dist/lib}/components/NavigationMenu/NavigationMenuLink.js.map +0 -0
  931. /package/dist/{lib → dist/lib}/components/NavigationMenu/NavigationMenuList.js.map +0 -0
  932. /package/dist/{lib → dist/lib}/components/NavigationMenu/NavigationMenuRoot.js.map +0 -0
  933. /package/dist/{lib → dist/lib}/components/NavigationMenu/NavigationMenuTrigger.js.map +0 -0
  934. /package/dist/{lib → dist/lib}/components/NavigationMenu/NavigationMenuViewport.js.map +0 -0
  935. /package/dist/{lib → dist/lib}/components/NavigationMenu/index.js.map +0 -0
  936. /package/dist/{lib → dist/lib}/components/PieChart/index.js.map +0 -0
  937. /package/dist/{lib → dist/lib}/components/Popover/PopoverClose.js.map +0 -0
  938. /package/dist/{lib → dist/lib}/components/Popover/PopoverContent.js.map +0 -0
  939. /package/dist/{lib → dist/lib}/components/Popover/PopoverRoot.js.map +0 -0
  940. /package/dist/{lib → dist/lib}/components/Popover/PopoverTrigger.js.map +0 -0
  941. /package/dist/{lib → dist/lib}/components/Popover/index.js.map +0 -0
  942. /package/dist/{lib → dist/lib}/components/Progress/index.js.map +0 -0
  943. /package/dist/{lib → dist/lib}/components/RadarChart/index.js.map +0 -0
  944. /package/dist/{lib → dist/lib}/components/Radio/index.js.map +0 -0
  945. /package/dist/{lib → dist/lib}/components/RadioCards/RadioCardsItem.js.map +0 -0
  946. /package/dist/{lib → dist/lib}/components/RadioCards/RadioCardsRoot.js.map +0 -0
  947. /package/dist/{lib → dist/lib}/components/RadioCards/index.js.map +0 -0
  948. /package/dist/{lib → dist/lib}/components/RadioGroup/RadioGroupItem.js.map +0 -0
  949. /package/dist/{lib → dist/lib}/components/RadioGroup/RadioGroupRoot.js.map +0 -0
  950. /package/dist/{lib → dist/lib}/components/RadioGroup/index.js.map +0 -0
  951. /package/dist/{lib → dist/lib}/components/ScrollArea/index.js.map +0 -0
  952. /package/dist/{lib → dist/lib}/components/SegmentedControl/SegmentedControlItem.js.map +0 -0
  953. /package/dist/{lib → dist/lib}/components/SegmentedControl/SegmentedControlRoot.js.map +0 -0
  954. /package/dist/{lib → dist/lib}/components/SegmentedControl/index.js.map +0 -0
  955. /package/dist/{lib → dist/lib}/components/Select/index.js.map +0 -0
  956. /package/dist/{lib → dist/lib}/components/Separator/index.js.map +0 -0
  957. /package/dist/{lib → dist/lib}/components/Skeleton/index.js.map +0 -0
  958. /package/dist/{lib → dist/lib}/components/Slider/index.js.map +0 -0
  959. /package/dist/{lib → dist/lib}/components/Spinner/index.js.map +0 -0
  960. /package/dist/{lib → dist/lib}/components/TabNav/index.js.map +0 -0
  961. /package/dist/{lib → dist/lib}/components/Table/index.js.map +0 -0
  962. /package/dist/{lib → dist/lib}/components/Tabs/index.js.map +0 -0
  963. /package/dist/{lib → dist/lib}/components/TextArea/index.js.map +0 -0
  964. /package/dist/{lib → dist/lib}/components/TextField/index.js.map +0 -0
  965. /package/dist/{lib → dist/lib}/components/Toast/ToastActionButton.js.map +0 -0
  966. /package/dist/{lib → dist/lib}/components/Toast/ToastDescription.js.map +0 -0
  967. /package/dist/{lib → dist/lib}/components/Toast/ToastRoot.js.map +0 -0
  968. /package/dist/{lib → dist/lib}/components/Toast/ToastTitle.js.map +0 -0
  969. /package/dist/{lib → dist/lib}/components/Toast/index.js.map +0 -0
  970. /package/dist/{lib → dist/lib}/components/Toggle/ToggleWithText.js.map +0 -0
  971. /package/dist/{lib → dist/lib}/components/Toggle/index.js.map +0 -0
  972. /package/dist/{lib → dist/lib}/components/ToggleGroup/ToggleGroupItem.js.map +0 -0
  973. /package/dist/{lib → dist/lib}/components/ToggleGroup/ToggleGroupRoot.js.map +0 -0
  974. /package/dist/{lib → dist/lib}/components/ToggleGroup/index.js.map +0 -0
  975. /package/dist/{lib → dist/lib}/components/ToggleSwitch/index.js.map +0 -0
  976. /package/dist/{lib → dist/lib}/components/Tooltip/index.js.map +0 -0
  977. /package/dist/{lib → dist/lib}/constants.js.map +0 -0
  978. /package/dist/{lib → dist/lib}/utils/useDarkMode.js.map +0 -0
  979. /package/dist/{lib → dist/lib}/utils/utils.js.map +0 -0
  980. /package/dist/{lib/globals.css → globals.css} +0 -0
  981. /package/dist/{lib/tailwind.config.d.ts → tailwind.config.d.ts} +0 -0
  982. /package/dist/{lib/tailwind.config.js → tailwind.config.js} +0 -0
  983. /package/dist/{lib/tsconfig.tsbuildinfo → tsconfig.tsbuildinfo} +0 -0
@@ -0,0 +1,2 @@
1
+ import*as t from"react";import{useLayoutEffect as e}from"../../react-use-layout-effect/dist/index.mjs.js";var r=t["useId".toString()]||(()=>{}),o=0;function s(s){const[a,i]=t.useState(r());return e((()=>{s||i((t=>t??String(o++)))}),[s]),s||(a?`radix-${a}`:"")}export{s as useId};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\"useId\".toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","toString","count","useId","deterministicId","id","setId","useState","useLayoutEffect","reactId","String"],"mappings":"0GAGA,IAAIA,EAAaC,EAAM,QAAQC,aAAgB,MAAY,GACvDC,EAAQ,EACZ,SAASC,EAAMC,GACb,MAAOC,EAAIC,GAASN,EAAMO,SAASR,KAInC,OAHAS,GAAgB,KACTJ,GAAiBE,GAAOG,GAAYA,GAAWC,OAAOR,MAAS,GACnE,CAACE,IACGA,IAAoBC,EAAK,SAASA,IAAO,GAClD"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{Primitive as t}from"../../react-primitive/dist/index.mjs.js";import{j as r}from"../../../../_virtual/jsx-runtime.js";var a=e.forwardRef(((e,a)=>r.jsx(t.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));a.displayName="Label";var o=a;export{a as Label,o as Root};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-label/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/label/src/Label.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Label\";\nvar Label = React.forwardRef((props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.label,\n {\n ...props,\n ref: forwardedRef,\n onMouseDown: (event) => {\n const target = event.target;\n if (target.closest(\"button, input, select, textarea\")) return;\n props.onMouseDown?.(event);\n if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n }\n }\n );\n});\nLabel.displayName = NAME;\nvar Root = Label;\nexport {\n Label,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Label","React","forwardRef","props","forwardedRef","jsx","Primitive","label","ref","onMouseDown","event","target","closest","defaultPrevented","detail","preventDefault","displayName","Root"],"mappings":"oJAMA,IACIA,EAAQC,EAAMC,YAAW,CAACC,EAAOC,IACZC,EAAGA,IACxBC,EAAUC,MACV,IACKJ,EACHK,IAAKJ,EACLK,YAAcC,IACGA,EAAMC,OACVC,QAAQ,qCACnBT,EAAMM,cAAcC,IACfA,EAAMG,kBAAoBH,EAAMI,OAAS,GAAGJ,EAAMK,iBAAgB,MAK/Ef,EAAMgB,YAhBK,QAiBR,IAACC,EAAOjB"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs.js";import{createCollection as t}from"../../react-collection/dist/index.mjs.js";import{useComposedRefs as r,composeRefs as o}from"../../react-compose-refs/dist/index.mjs.js";import{createContextScope as s}from"../../react-context/dist/index.mjs.js";import{useDirection as c}from"../../react-direction/dist/index.mjs.js";import{DismissableLayer as i}from"../../react-dismissable-layer/dist/index.mjs.js";import{useFocusGuards as a}from"../../react-focus-guards/dist/index.mjs.js";import{FocusScope as u}from"../../react-focus-scope/dist/index.mjs.js";import{useId as d}from"../../react-id/dist/index.mjs.js";import{createPopperScope as l,Anchor as f,Content as p,Arrow as m,Root as h}from"../../react-popper/dist/index.mjs.js";import{Portal as v}from"../../react-portal/dist/index.mjs.js";import{Presence as g}from"../../react-presence/dist/index.mjs.js";import{Primitive as x,dispatchDiscreteCustomEvent as j}from"../../react-primitive/dist/index.mjs.js";import{createRovingFocusGroupScope as _,Root as w,Item as M}from"../../react-roving-focus/dist/index.mjs.js";import{Slot as y}from"../../react-slot/dist/index.mjs.js";import{useCallbackRef as C}from"../../react-use-callback-ref/dist/index.mjs.js";import{hideOthers as b}from"../../../aria-hidden/dist/es2015/index.js";import R from"../../../react-remove-scroll/dist/es2015/Combination.js";import{j as k}from"../../../../_virtual/jsx-runtime.js";var P=["Enter"," "],D=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...D],O={ltr:[...P,"ArrowRight"],rtl:[...P,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[S,F,L]=t(T),[K,A]=s(T,[L,l,_]),N=l(),G=_(),[V,U]=K(T),[B,X]=K(T),Y=n=>{const{__scopeMenu:t,open:r=!1,children:o,dir:s,onOpenChange:i,modal:a=!0}=n,u=N(t),[d,l]=e.useState(null),f=e.useRef(!1),p=C(i),m=c(s);return e.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}}),[]),k.jsx(h,{...u,children:k.jsx(V,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:l,children:k.jsx(B,{scope:t,onClose:e.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:m,modal:a,children:o})})})};Y.displayName=T;var z=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return k.jsx(f,{...o,...r,ref:n})}));z.displayName="MenuAnchor";var H="MenuPortal",[W,Z]=K(H,{forceMount:void 0}),q=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,s=U(H,n);return k.jsx(W,{scope:n,forceMount:t,children:k.jsx(g,{present:t||s.open,children:k.jsx(v,{asChild:!0,container:o,children:r})})})};q.displayName=H;var J="MenuContent",[Q,$]=K(J),ee=e.forwardRef(((e,n)=>{const t=Z(J,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,s=U(J,e.__scopeMenu),c=X(J,e.__scopeMenu);return k.jsx(S.Provider,{scope:e.__scopeMenu,children:k.jsx(g,{present:r||s.open,children:k.jsx(S.Slot,{scope:e.__scopeMenu,children:c.modal?k.jsx(ne,{...o,ref:n}):k.jsx(te,{...o,ref:n})})})})})),ne=e.forwardRef(((t,o)=>{const s=U(J,t.__scopeMenu),c=e.useRef(null),i=r(o,c);return e.useEffect((()=>{const e=c.current;if(e)return b(e)}),[]),k.jsx(re,{...t,ref:i,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:n(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})})),te=e.forwardRef(((e,n)=>{const t=U(J,e.__scopeMenu);return k.jsx(re,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})})),re=e.forwardRef(((t,o)=>{const{__scopeMenu:s,loop:c=!1,trapFocus:d,onOpenAutoFocus:l,onCloseAutoFocus:f,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:j,onDismiss:_,disableOutsideScroll:M,...C}=t,b=U(J,s),P=X(J,s),O=N(s),I=G(s),T=F(s),[S,L]=e.useState(null),K=e.useRef(null),A=r(o,K,b.onContentChange),V=e.useRef(0),B=e.useRef(""),Y=e.useRef(0),z=e.useRef(null),H=e.useRef("right"),W=e.useRef(0),Z=M?R:e.Fragment,q=M?{as:y,allowPinchZoom:!0}:void 0,$=e=>{const n=B.current+e,t=T().filter((e=>!e.disabled)),r=document.activeElement,o=t.find((e=>e.ref.current===r))?.textValue,s=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0])),o=r?n[0]:n,s=t?e.indexOf(t):-1;let c=(i=e,a=Math.max(s,0),i.map(((e,n)=>i[(a+n)%i.length])));var i,a;1===o.length&&(c=c.filter((e=>e!==t)));const u=c.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==t?u:void 0}(t.map((e=>e.textValue)),n,o),c=t.find((e=>e.textValue===s))?.ref.current;!function e(n){B.current=n,window.clearTimeout(V.current),""!==n&&(V.current=window.setTimeout((()=>e("")),1e3))}(n),c&&setTimeout((()=>c.focus()))};e.useEffect((()=>()=>window.clearTimeout(V.current)),[]),a();const ee=e.useCallback((e=>H.current===z.current?.side&&function(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return function(e,n){const{x:t,y:r}=e;let o=!1;for(let e=0,s=n.length-1;e<n.length;s=e++){const c=n[e].x,i=n[e].y,a=n[s].x,u=n[s].y;i>r!=u>r&&t<(a-c)*(r-i)/(u-i)+c&&(o=!o)}return o}(t,n)}(e,z.current?.area)),[]);return k.jsx(Q,{scope:s,searchRef:B,onItemEnter:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),onItemLeave:e.useCallback((e=>{ee(e)||(K.current?.focus(),L(null))}),[ee]),onTriggerLeave:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:e.useCallback((e=>{z.current=e}),[]),children:k.jsx(Z,{...q,children:k.jsx(u,{asChild:!0,trapped:d,onMountAutoFocus:n(l,(e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:f,children:k.jsx(i,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:j,onDismiss:_,children:k.jsx(w,{asChild:!0,...I,dir:P.dir,orientation:"vertical",loop:c,currentTabStopId:S,onCurrentTabStopIdChange:L,onEntryFocus:n(h,(e=>{P.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:k.jsx(p,{role:"menu","aria-orientation":"vertical","data-state":Oe(b.open),"data-radix-menu-content":"",dir:P.dir,...O,...C,ref:A,style:{outline:"none",...C.style},onKeyDown:n(C.onKeyDown,(e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&$(e.key));const o=K.current;if(e.target!==o)return;if(!E.includes(e.key))return;e.preventDefault();const s=T().filter((e=>!e.disabled)).map((e=>e.ref.current));D.includes(e.key)&&s.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(s)})),onBlur:n(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(V.current),B.current="")})),onPointerMove:n(t.onPointerMove,Se((e=>{const n=e.target,t=W.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>W.current?"right":"left";H.current=n,W.current=e.clientX}})))})})})})})})}));ee.displayName=J;var oe=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{role:"group",...r,ref:n})}));oe.displayName="MenuGroup";var se=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{...r,ref:n})}));se.displayName="MenuLabel";var ce="MenuItem",ie="menu.itemSelect",ae=e.forwardRef(((t,o)=>{const{disabled:s=!1,onSelect:c,...i}=t,a=e.useRef(null),u=X(ce,t.__scopeMenu),d=$(ce,t.__scopeMenu),l=r(o,a),f=e.useRef(!1);return k.jsx(ue,{...i,ref:l,disabled:s,onClick:n(t.onClick,(()=>{const e=a.current;if(!s&&e){const n=new CustomEvent(ie,{bubbles:!0,cancelable:!0});e.addEventListener(ie,(e=>c?.(e)),{once:!0}),j(e,n),n.defaultPrevented?f.current=!1:u.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),f.current=!0},onPointerUp:n(t.onPointerUp,(e=>{f.current||e.currentTarget?.click()})),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==d.searchRef.current;s||n&&" "===e.key||P.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));ae.displayName=ce;var ue=e.forwardRef(((t,o)=>{const{__scopeMenu:s,disabled:c=!1,textValue:i,...a}=t,u=$(ce,s),d=G(s),l=e.useRef(null),f=r(o,l),[p,m]=e.useState(!1),[h,v]=e.useState("");return e.useEffect((()=>{const e=l.current;e&&v((e.textContent??"").trim())}),[a.children]),k.jsx(S.ItemSlot,{scope:s,disabled:c,textValue:i??h,children:k.jsx(M,{asChild:!0,...d,focusable:!c,children:k.jsx(x.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...a,ref:f,onPointerMove:n(t.onPointerMove,Se((e=>{if(c)u.onItemLeave(e);else if(u.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:n(t.onPointerLeave,Se((e=>u.onItemLeave(e)))),onFocus:n(t.onFocus,(()=>m(!0))),onBlur:n(t.onBlur,(()=>m(!1)))})})})})),de=e.forwardRef(((e,t)=>{const{checked:r=!1,onCheckedChange:o,...s}=e;return k.jsx(xe,{scope:e.__scopeMenu,checked:r,children:k.jsx(ae,{role:"menuitemcheckbox","aria-checked":Ie(r)?"mixed":r,...s,ref:t,"data-state":Te(r),onSelect:n(s.onSelect,(()=>o?.(!!Ie(r)||!r)),{checkForDefaultPrevented:!1})})})}));de.displayName="MenuCheckboxItem";var le="MenuRadioGroup",[fe,pe]=K(le,{value:void 0,onValueChange:()=>{}}),me=e.forwardRef(((e,n)=>{const{value:t,onValueChange:r,...o}=e,s=C(r);return k.jsx(fe,{scope:e.__scopeMenu,value:t,onValueChange:s,children:k.jsx(oe,{...o,ref:n})})}));me.displayName=le;var he="MenuRadioItem",ve=e.forwardRef(((e,t)=>{const{value:r,...o}=e,s=pe(he,e.__scopeMenu),c=r===s.value;return k.jsx(xe,{scope:e.__scopeMenu,checked:c,children:k.jsx(ae,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":Te(c),onSelect:n(o.onSelect,(()=>s.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));ve.displayName=he;var ge="MenuItemIndicator",[xe,je]=K(ge,{checked:!1}),_e=e.forwardRef(((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,s=je(ge,t);return k.jsx(g,{present:r||Ie(s.checked)||!0===s.checked,children:k.jsx(x.span,{...o,ref:n,"data-state":Te(s.checked)})})}));_e.displayName=ge;var we=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})}));we.displayName="MenuSeparator";var Me=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return k.jsx(m,{...o,...r,ref:n})}));Me.displayName="MenuArrow";var ye="MenuSub",[Ce,be]=K(ye),Re=n=>{const{__scopeMenu:t,children:r,open:o=!1,onOpenChange:s}=n,c=U(ye,t),i=N(t),[a,u]=e.useState(null),[l,f]=e.useState(null),p=C(s);return e.useEffect((()=>(!1===c.open&&p(!1),()=>p(!1))),[c.open,p]),k.jsx(h,{...i,children:k.jsx(V,{scope:t,open:o,onOpenChange:p,content:l,onContentChange:f,children:k.jsx(Ce,{scope:t,contentId:d(),triggerId:d(),trigger:a,onTriggerChange:u,children:r})})})};Re.displayName=ye;var ke="MenuSubTrigger",Pe=e.forwardRef(((t,r)=>{const s=U(ke,t.__scopeMenu),c=X(ke,t.__scopeMenu),i=be(ke,t.__scopeMenu),a=$(ke,t.__scopeMenu),u=e.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:l}=a,f={__scopeMenu:t.__scopeMenu},p=e.useCallback((()=>{u.current&&window.clearTimeout(u.current),u.current=null}),[]);return e.useEffect((()=>p),[p]),e.useEffect((()=>{const e=d.current;return()=>{window.clearTimeout(e),l(null)}}),[d,l]),k.jsx(z,{asChild:!0,...f,children:k.jsx(ue,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":i.contentId,"data-state":Oe(s.open),...t,ref:o(r,i.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:n(t.onPointerMove,Se((e=>{a.onItemEnter(e),e.defaultPrevented||t.disabled||s.open||u.current||(a.onPointerGraceIntentChange(null),u.current=window.setTimeout((()=>{s.onOpenChange(!0),p()}),100))}))),onPointerLeave:n(t.onPointerLeave,Se((e=>{p();const n=s.content?.getBoundingClientRect();if(n){const t=s.content?.dataset.side,r="right"===t,o=r?-5:5,c=n[r?"left":"right"],i=n[r?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:n.top},{x:i,y:n.top},{x:i,y:n.bottom},{x:c,y:n.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==a.searchRef.current;t.disabled||n&&" "===e.key||O[c.dir].includes(e.key)&&(s.onOpenChange(!0),s.content?.focus(),e.preventDefault())}))})})}));Pe.displayName=ke;var De="MenuSubContent",Ee=e.forwardRef(((t,o)=>{const s=Z(J,t.__scopeMenu),{forceMount:c=s.forceMount,...i}=t,a=U(J,t.__scopeMenu),u=X(J,t.__scopeMenu),d=be(De,t.__scopeMenu),l=e.useRef(null),f=r(o,l);return k.jsx(S.Provider,{scope:t.__scopeMenu,children:k.jsx(g,{present:c||a.open,children:k.jsx(S.Slot,{scope:t.__scopeMenu,children:k.jsx(re,{id:d.contentId,"aria-labelledby":d.triggerId,...i,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:n(t.onFocusOutside,(e=>{e.target!==d.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:n(t.onEscapeKeyDown,(e=>{u.onClose(),e.preventDefault()})),onKeyDown:n(t.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),t=I[u.dir].includes(e.key);n&&t&&(a.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())}))})})})})}));function Oe(e){return e?"open":"closed"}function Ie(e){return"indeterminate"===e}function Te(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}function Se(e){return n=>"mouse"===n.pointerType?e(n):void 0}Ee.displayName=De;var Fe=Y,Le=z,Ke=q,Ae=ee,Ne=oe,Ge=se,Ve=ae,Ue=de,Be=me,Xe=ve,Ye=_e,ze=we,He=Me,We=Re,Ze=Pe,qe=Ee;export{Le as Anchor,He as Arrow,Ue as CheckboxItem,Ae as Content,Ne as Group,Ve as Item,Ye as ItemIndicator,Ge as Label,Y as Menu,z as MenuAnchor,Me as MenuArrow,de as MenuCheckboxItem,ee as MenuContent,oe as MenuGroup,ae as MenuItem,_e as MenuItemIndicator,se as MenuLabel,q as MenuPortal,me as MenuRadioGroup,ve as MenuRadioItem,we as MenuSeparator,Re as MenuSub,Ee as MenuSubContent,Pe as MenuSubTrigger,Ke as Portal,Be as RadioGroup,Xe as RadioItem,Fe as Root,ze as Separator,We as Sub,qe as SubContent,Ze as SubTrigger,A as createMenuScope};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/menu/src/Menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs, composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SELECTION_KEYS = [\"Enter\", \" \"];\nvar FIRST_KEYS = [\"ArrowDown\", \"PageUp\", \"Home\"];\nvar LAST_KEYS = [\"ArrowUp\", \"PageDown\", \"End\"];\nvar FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nvar SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, \"ArrowRight\"],\n rtl: [...SELECTION_KEYS, \"ArrowLeft\"]\n};\nvar SUB_CLOSE_KEYS = {\n ltr: [\"ArrowLeft\"],\n rtl: [\"ArrowRight\"]\n};\nvar MENU_NAME = \"Menu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);\nvar [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [\n createCollectionScope,\n createPopperScope,\n createRovingFocusGroupScope\n]);\nvar usePopperScope = createPopperScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);\nvar [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);\nvar Menu = (props) => {\n const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;\n const popperScope = usePopperScope(__scopeMenu);\n const [content, setContent] = React.useState(null);\n const isUsingKeyboardRef = React.useRef(false);\n const handleOpenChange = useCallbackRef(onOpenChange);\n const direction = useDirection(dir);\n React.useEffect(() => {\n const handleKeyDown = () => {\n isUsingKeyboardRef.current = true;\n document.addEventListener(\"pointerdown\", handlePointer, { capture: true, once: true });\n document.addEventListener(\"pointermove\", handlePointer, { capture: true, once: true });\n };\n const handlePointer = () => isUsingKeyboardRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n document.removeEventListener(\"pointerdown\", handlePointer, { capture: true });\n document.removeEventListener(\"pointermove\", handlePointer, { capture: true });\n };\n }, []);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuRootProvider,\n {\n scope: __scopeMenu,\n onClose: React.useCallback(() => handleOpenChange(false), [handleOpenChange]),\n isUsingKeyboardRef,\n dir: direction,\n modal,\n children\n }\n )\n }\n ) });\n};\nMenu.displayName = MENU_NAME;\nvar ANCHOR_NAME = \"MenuAnchor\";\nvar MenuAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...anchorProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nMenuAnchor.displayName = ANCHOR_NAME;\nvar PORTAL_NAME = \"MenuPortal\";\nvar [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar MenuPortal = (props) => {\n const { __scopeMenu, forceMount, children, container } = props;\n const context = useMenuContext(PORTAL_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"MenuContent\";\nvar [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME);\nvar MenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });\n }\n);\nvar MenuRootContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const content = ref.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true,\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n ),\n onDismiss: () => context.onOpenChange(false)\n }\n );\n }\n);\nvar MenuRootContentNonModal = React.forwardRef((props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: () => context.onOpenChange(false)\n }\n );\n});\nvar MenuContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeMenu,\n loop = false,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEntryFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n disableOutsideScroll,\n ...contentProps\n } = props;\n const context = useMenuContext(CONTENT_NAME, __scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const getItems = useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = React.useState(null);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);\n const timerRef = React.useRef(0);\n const searchRef = React.useRef(\"\");\n const pointerGraceTimerRef = React.useRef(0);\n const pointerGraceIntentRef = React.useRef(null);\n const pointerDirRef = React.useRef(\"right\");\n const lastPointerXRef = React.useRef(0);\n const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot, allowPinchZoom: true } : void 0;\n const handleTypeaheadSearch = (key) => {\n const search = searchRef.current + key;\n const items = getItems().filter((item) => !item.disabled);\n const currentItem = document.activeElement;\n const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;\n const values = items.map((item) => item.textValue);\n const nextMatch = getNextMatch(values, search, currentMatch);\n const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n if (newItem) {\n setTimeout(() => newItem.focus());\n }\n };\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n useFocusGuards();\n const isPointerMovingToSubmenu = React.useCallback((event) => {\n const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;\n return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentProvider,\n {\n scope: __scopeMenu,\n searchRef,\n onItemEnter: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n onItemLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) return;\n contentRef.current?.focus();\n setCurrentItemId(null);\n },\n [isPointerMovingToSubmenu]\n ),\n onTriggerLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n pointerGraceTimerRef,\n onPointerGraceIntentChange: React.useCallback((intent) => {\n pointerGraceIntentRef.current = intent;\n }, []),\n children: /* @__PURE__ */ jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: trapFocus,\n onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, (event) => {\n event.preventDefault();\n contentRef.current?.focus({ preventScroll: true });\n }),\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: composeEventHandlers(onEntryFocus, (event) => {\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n }),\n preventScrollOnEntryFocus: true,\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir,\n ...popperScope,\n ...contentProps,\n ref: composedRefs,\n style: { outline: \"none\", ...contentProps.style },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const target = event.target;\n const isKeyDownInside = target.closest(\"[data-radix-menu-content]\") === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n }\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item) => !item.disabled);\n const candidateNodes = items.map((item) => item.ref.current);\n if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n focusFirst(candidateNodes);\n }),\n onBlur: composeEventHandlers(props.onBlur, (event) => {\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = \"\";\n }\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX;\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? \"right\" : \"left\";\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n })\n )\n }\n )\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"MenuGroup\";\nvar MenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...groupProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", ...groupProps, ref: forwardedRef });\n }\n);\nMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"MenuLabel\";\nvar MenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...labelProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...labelProps, ref: forwardedRef });\n }\n);\nMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"MenuItem\";\nvar ITEM_SELECT = \"menu.itemSelect\";\nvar MenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { disabled = false, onSelect, ...itemProps } = props;\n const ref = React.useRef(null);\n const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = React.useRef(false);\n const handleSelect = () => {\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });\n menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });\n dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) {\n isPointerDownRef.current = false;\n } else {\n rootContext.onClose();\n }\n }\n };\n return /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n ...itemProps,\n ref: composedRefs,\n disabled,\n onClick: composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event) => {\n props.onPointerDown?.(event);\n isPointerDownRef.current = true;\n },\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n if (!isPointerDownRef.current) event.currentTarget?.click();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (disabled || isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n event.preventDefault();\n }\n })\n }\n );\n }\n);\nMenuItem.displayName = ITEM_NAME;\nvar MenuItemImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;\n const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = React.useState(false);\n const [textContent, setTextContent] = React.useState(\"\");\n React.useEffect(() => {\n const menuItem = ref.current;\n if (menuItem) {\n setTextContent((menuItem.textContent ?? \"\").trim());\n }\n }, [itemProps.children]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeMenu,\n disabled,\n textValue: textValue ?? textContent,\n children: /* @__PURE__ */ jsx(RovingFocusGroup.Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n ...itemProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n if (disabled) {\n contentContext.onItemLeave(event);\n } else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus({ preventScroll: true });\n }\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => contentContext.onItemLeave(event))\n ),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n );\n }\n);\nvar CHECKBOX_ITEM_NAME = \"MenuCheckboxItem\";\nvar MenuCheckboxItem = React.forwardRef(\n (props, forwardedRef) => {\n const { checked = false, onCheckedChange, ...checkboxItemProps } = props;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemcheckbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n ...checkboxItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n checkboxItemProps.onSelect,\n () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"MenuRadioGroup\";\nvar [RadioGroupProvider, useRadioGroupContext] = createMenuContext(\n RADIO_GROUP_NAME,\n { value: void 0, onValueChange: () => {\n } }\n);\nvar MenuRadioGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { value, onValueChange, ...groupProps } = props;\n const handleValueChange = useCallbackRef(onValueChange);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });\n }\n);\nMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"MenuRadioItem\";\nvar MenuRadioItem = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...radioItemProps } = props;\n const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemradio\",\n \"aria-checked\": checked,\n ...radioItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n radioItemProps.onSelect,\n () => context.onValueChange?.(value),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar ITEM_INDICATOR_NAME = \"MenuItemIndicator\";\nvar [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(\n ITEM_INDICATOR_NAME,\n { checked: false }\n);\nvar MenuItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;\n const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...itemIndicatorProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(indicatorContext.checked)\n }\n )\n }\n );\n }\n);\nMenuItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SEPARATOR_NAME = \"MenuSeparator\";\nvar MenuSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n ...separatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"MenuArrow\";\nvar MenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nMenuArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"MenuSub\";\nvar [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);\nvar MenuSub = (props) => {\n const { __scopeMenu, children, open = false, onOpenChange } = props;\n const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const handleOpenChange = useCallbackRef(onOpenChange);\n React.useEffect(() => {\n if (parentMenuContext.open === false) handleOpenChange(false);\n return () => handleOpenChange(false);\n }, [parentMenuContext.open, handleOpenChange]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuSubProvider,\n {\n scope: __scopeMenu,\n contentId: useId(),\n triggerId: useId(),\n trigger,\n onTriggerChange: setTrigger,\n children\n }\n )\n }\n ) });\n};\nMenuSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"MenuSubTrigger\";\nvar MenuSubTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = React.useRef(null);\n const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;\n const scope = { __scopeMenu: props.__scopeMenu };\n const clearOpenTimer = React.useCallback(() => {\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n React.useEffect(() => clearOpenTimer, [clearOpenTimer]);\n React.useEffect(() => {\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return () => {\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [pointerGraceTimerRef, onPointerGraceIntentChange]);\n return /* @__PURE__ */ jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": subContext.contentId,\n \"data-state\": getOpenState(context.open),\n ...props,\n ref: composeRefs(forwardedRef, subContext.onTriggerChange),\n onClick: (event) => {\n props.onClick?.(event);\n if (props.disabled || event.defaultPrevented) return;\n event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(() => {\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => {\n clearOpenTimer();\n const contentRect = context.content?.getBoundingClientRect();\n if (contentRect) {\n const side = context.content?.dataset.side;\n const rightSide = side === \"right\";\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? \"left\" : \"right\"];\n const contentFarEdge = contentRect[rightSide ? \"right\" : \"left\"];\n contentContext.onPointerGraceIntentChange({\n area: [\n // Apply a bleed on clientX to ensure that our exit point is\n // consistently within polygon bounds\n { x: event.clientX + bleed, y: event.clientY },\n { x: contentNearEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.bottom },\n { x: contentNearEdge, y: contentRect.bottom }\n ],\n side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(\n () => contentContext.onPointerGraceIntentChange(null),\n 300\n );\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return;\n contentContext.onPointerGraceIntentChange(null);\n }\n })\n ),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (props.disabled || isTypingAhead && event.key === \" \") return;\n if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n context.onOpenChange(true);\n context.content?.focus();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"MenuSubContent\";\nvar MenuSubContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...subContentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId,\n ...subContentProps,\n ref: composedRefs,\n align: \"start\",\n side: rootContext.dir === \"rtl\" ? \"left\" : \"right\",\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event) => {\n if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();\n event.preventDefault();\n },\n onCloseAutoFocus: (event) => event.preventDefault(),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n rootContext.onClose();\n event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n context.onOpenChange(false);\n subContext.trigger?.focus();\n event.preventDefault();\n }\n })\n }\n ) }) }) });\n }\n);\nMenuSubContent.displayName = SUB_CONTENT_NAME;\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nfunction focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nfunction getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find(\n (value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : void 0;\n}\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = { x: event.clientX, y: event.clientY };\n return isPointInPolygon(cursorPos, area);\n}\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\nvar Root3 = Menu;\nvar Anchor2 = MenuAnchor;\nvar Portal = MenuPortal;\nvar Content2 = MenuContent;\nvar Group = MenuGroup;\nvar Label = MenuLabel;\nvar Item2 = MenuItem;\nvar CheckboxItem = MenuCheckboxItem;\nvar RadioGroup = MenuRadioGroup;\nvar RadioItem = MenuRadioItem;\nvar ItemIndicator = MenuItemIndicator;\nvar Separator = MenuSeparator;\nvar Arrow2 = MenuArrow;\nvar Sub = MenuSub;\nvar SubTrigger = MenuSubTrigger;\nvar SubContent = MenuSubContent;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n CheckboxItem,\n Content2 as Content,\n Group,\n Item2 as Item,\n ItemIndicator,\n Label,\n Menu,\n MenuAnchor,\n MenuArrow,\n MenuCheckboxItem,\n MenuContent,\n MenuGroup,\n MenuItem,\n MenuItemIndicator,\n MenuLabel,\n MenuPortal,\n MenuRadioGroup,\n MenuRadioItem,\n MenuSeparator,\n MenuSub,\n MenuSubContent,\n MenuSubTrigger,\n Portal,\n RadioGroup,\n RadioItem,\n Root3 as Root,\n Separator,\n Sub,\n SubContent,\n SubTrigger,\n createMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["SELECTION_KEYS","LAST_KEYS","FIRST_LAST_KEYS","SUB_OPEN_KEYS","ltr","rtl","SUB_CLOSE_KEYS","MENU_NAME","Collection","useCollection","createCollectionScope","createCollection","createMenuContext","createMenuScope","createContextScope","createPopperScope","createRovingFocusGroupScope","usePopperScope","useRovingFocusGroupScope","MenuProvider","useMenuContext","MenuRootProvider","useMenuRootContext","Menu","props","__scopeMenu","open","children","dir","onOpenChange","modal","popperScope","content","setContent","React","useState","isUsingKeyboardRef","useRef","handleOpenChange","useCallbackRef","direction","useDirection","useEffect","handleKeyDown","current","document","addEventListener","handlePointer","capture","once","removeEventListener","jsx","PopperPrimitive.Root","scope","onContentChange","onClose","useCallback","displayName","MenuAnchor","forwardRef","forwardedRef","anchorProps","PopperPrimitive.Anchor","ref","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","MenuPortal","container","context","Presence","present","PortalPrimitive","asChild","CONTENT_NAME","MenuContentProvider","useMenuContentContext","MenuContent","portalContext","contentProps","rootContext","Provider","Slot","MenuRootContentModal","MenuRootContentNonModal","composedRefs","useComposedRefs","hideOthers","MenuContentImpl","trapFocus","disableOutsidePointerEvents","disableOutsideScroll","onFocusOutside","composeEventHandlers","event","preventDefault","checkForDefaultPrevented","onDismiss","loop","onOpenAutoFocus","onCloseAutoFocus","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onInteractOutside","rovingFocusGroupScope","getItems","currentItemId","setCurrentItemId","contentRef","timerRef","searchRef","pointerGraceTimerRef","pointerGraceIntentRef","pointerDirRef","lastPointerXRef","ScrollLockWrapper","RemoveScroll","Fragment","scrollLockWrapperProps","as","allowPinchZoom","handleTypeaheadSearch","key","search","items","filter","item","disabled","currentItem","activeElement","currentMatch","find","textValue","nextMatch","values","isRepeated","length","Array","from","every","char","normalizedSearch","currentMatchIndex","indexOf","wrappedValues","array","startIndex","Math","max","map","_","index","v","value","toLowerCase","startsWith","getNextMatch","newItem","updateSearch","window","clearTimeout","setTimeout","focus","useFocusGuards","isPointerMovingToSubmenu","side","area","cursorPos","x","clientX","y","clientY","point","polygon","inside","i","j","xi","yi","xj","yj","isPointInPolygon","isPointerInGraceArea","onItemEnter","onItemLeave","onTriggerLeave","onPointerGraceIntentChange","intent","FocusScope","trapped","onMountAutoFocus","preventScroll","onUnmountAutoFocus","DismissableLayer","RovingFocusGroup.Root","orientation","currentTabStopId","onCurrentTabStopIdChange","preventScrollOnEntryFocus","PopperPrimitive.Content","role","getOpenState","style","outline","onKeyDown","isKeyDownInside","target","closest","currentTarget","isModifierKey","ctrlKey","altKey","metaKey","isCharacterKey","includes","candidateNodes","reverse","candidates","PREVIOUSLY_FOCUSED_ELEMENT","candidate","focusFirst","onBlur","contains","onPointerMove","whenMouse","pointerXHasChanged","newDir","MenuGroup","groupProps","Primitive","div","MenuLabel","labelProps","ITEM_NAME","ITEM_SELECT","MenuItem","onSelect","itemProps","contentContext","isPointerDownRef","MenuItemImpl","onClick","menuItem","itemSelectEvent","CustomEvent","bubbles","cancelable","dispatchDiscreteCustomEvent","defaultPrevented","onPointerDown","onPointerUp","click","isTypingAhead","isFocused","setIsFocused","textContent","setTextContent","trim","ItemSlot","RovingFocusGroup.Item","focusable","onPointerLeave","onFocus","MenuCheckboxItem","checked","onCheckedChange","checkboxItemProps","ItemIndicatorProvider","isIndeterminate","getCheckedState","RADIO_GROUP_NAME","RadioGroupProvider","useRadioGroupContext","onValueChange","MenuRadioGroup","handleValueChange","RADIO_ITEM_NAME","MenuRadioItem","radioItemProps","ITEM_INDICATOR_NAME","useItemIndicatorContext","MenuItemIndicator","itemIndicatorProps","indicatorContext","span","MenuSeparator","separatorProps","MenuArrow","arrowProps","PopperPrimitive.Arrow","SUB_NAME","MenuSubProvider","useMenuSubContext","MenuSub","parentMenuContext","trigger","setTrigger","contentId","useId","triggerId","onTriggerChange","SUB_TRIGGER_NAME","MenuSubTrigger","subContext","openTimerRef","clearOpenTimer","pointerGraceTimer","id","composeRefs","contentRect","getBoundingClientRect","dataset","rightSide","bleed","contentNearEdge","contentFarEdge","top","bottom","SUB_CONTENT_NAME","MenuSubContent","subContentProps","align","isCloseKey","handler","pointerType","Root3","Anchor2","Portal","Content2","Group","Label","Item2","CheckboxItem","RadioGroup","RadioItem","ItemIndicator","Separator","Arrow2","Sub","SubTrigger","SubContent"],"mappings":"q9CAyBA,IAAIA,EAAiB,CAAC,QAAS,KAE3BC,EAAY,CAAC,UAAW,WAAY,OACpCC,EAAkB,CAFJ,YAAa,SAAU,UAEAD,GACrCE,EAAgB,CAClBC,IAAK,IAAIJ,EAAgB,cACzBK,IAAK,IAAIL,EAAgB,cAEvBM,EAAiB,CACnBF,IAAK,CAAC,aACNC,IAAK,CAAC,eAEJE,EAAY,QACXC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAmBC,GAAmBC,EAAmBP,EAAW,CACvEG,EACAK,EACAC,IAEEC,EAAiBF,IACjBG,EAA2BF,KAC1BG,EAAcC,GAAkBR,EAAkBL,IAClDc,EAAkBC,GAAsBV,EAAkBL,GAC3DgB,EAAQC,IACV,MAAMC,YAAEA,EAAWC,KAAEA,GAAO,EAAKC,SAAEA,EAAQC,IAAEA,EAAGC,aAAEA,EAAYC,MAAEA,GAAQ,GAASN,EAC3EO,EAAcd,EAAeQ,IAC5BO,EAASC,GAAcC,EAAMC,SAAS,MACvCC,EAAqBF,EAAMG,QAAO,GAClCC,EAAmBC,EAAeV,GAClCW,EAAYC,EAAab,GAe/B,OAdAM,EAAMQ,WAAU,KACd,MAAMC,EAAgB,KACpBP,EAAmBQ,SAAU,EAC7BC,SAASC,iBAAiB,cAAeC,EAAe,CAAEC,SAAS,EAAMC,MAAM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,GACvB,OAAOI,GAAgBJ,GAAW,gBAAkBA,EAAU,UAAY,WAC5E,CA0CA,SAASxC,GAAUmG,GACjB,OAAQtO,GAAgC,UAAtBA,EAAMuO,YAA0BD,EAAQtO,QAAS,CACrE,CArDAkO,GAAexQ,YAAcuQ,GAsD1B,IAACO,GAAQhT,EACRiT,GAAU9Q,EACV+Q,GAASrQ,EACTsQ,GAAW5P,GACX6P,GAAQtG,GACRuG,GAAQnG,GACRoG,GAAQhG,GACRiG,GAAerE,GACfsE,GAAa3D,GACb4D,GAAYzD,GACZ0D,GAAgBtD,GAChBuD,GAAYnD,GACZoD,GAASlD,GACTmD,GAAM7C,GACN8C,GAAarC,GACbsC,GAAarB"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{createCollection as r}from"../../react-collection/dist/index.mjs.js";import{useDirection as a}from"../../react-direction/dist/index.mjs.js";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs.js";import{useComposedRefs as o}from"../../react-compose-refs/dist/index.mjs.js";import{createContextScope as t}from"../../react-context/dist/index.mjs.js";import{useId as i}from"../../react-id/dist/index.mjs.js";import{createMenuScope as s,Anchor as u,Content as d,Group as l,Label as p,Item as c,CheckboxItem as f,RadioGroup as m,RadioItem as b,ItemIndicator as v,Separator as g,Arrow as x,SubTrigger as h,SubContent as j,Root as M,Portal as w,Sub as _}from"../../react-menu/dist/index.mjs.js";import{createRovingFocusGroupScope as y,Root as R,Item as C}from"../../react-roving-focus/dist/index.mjs.js";import{Primitive as I}from"../../react-primitive/dist/index.mjs.js";import{useControllableState as O}from"../../react-use-controllable-state/dist/index.mjs.js";import{j as N}from"../../../../_virtual/jsx-runtime.js";var A="Menubar",[S,D,T]=r(A),[k,P]=t(A,[T,y]),E=s(),F=y(),[K,B]=k(A),L=e.forwardRef(((r,n)=>{const{__scopeMenubar:o,value:t,onValueChange:i,defaultValue:s,loop:u=!0,dir:d,...l}=r,p=a(d),c=F(o),[f="",m]=O({prop:t,onChange:i,defaultProp:s}),[b,v]=e.useState(null);return N.jsx(K,{scope:o,value:f,onMenuOpen:e.useCallback((e=>{m(e),v(e)}),[m]),onMenuClose:e.useCallback((()=>m("")),[m]),onMenuToggle:e.useCallback((e=>{m((r=>Boolean(r)?"":e)),v(e)}),[m]),dir:p,loop:u,children:N.jsx(S.Provider,{scope:o,children:N.jsx(S.Slot,{scope:o,children:N.jsx(R,{asChild:!0,...c,orientation:"horizontal",loop:u,dir:p,currentTabStopId:b,onCurrentTabStopIdChange:v,children:N.jsx(I.div,{role:"menubar",...l,ref:n})})})})})}));L.displayName=A;var G="MenubarMenu",[V,U]=k(G),z=r=>{const{__scopeMenubar:a,value:n,...o}=r,t=i(),s=n||t||"LEGACY_REACT_AUTO_VALUE",u=B(G,a),d=E(a),l=e.useRef(null),p=e.useRef(!1),c=u.value===s;return e.useEffect((()=>{c||(p.current=!1)}),[c]),N.jsx(V,{scope:a,value:s,triggerId:i(),triggerRef:l,contentId:i(),wasKeyboardTriggerOpenRef:p,children:N.jsx(M,{...d,open:c,onOpenChange:e=>{e||u.onMenuClose()},modal:!1,dir:u.dir,...o})})};z.displayName=G;var Y="MenubarTrigger",q=e.forwardRef(((r,a)=>{const{__scopeMenubar:t,disabled:i=!1,...s}=r,d=F(t),l=E(t),p=B(Y,t),c=U(Y,t),f=e.useRef(null),m=o(a,f,c.triggerRef),[b,v]=e.useState(!1),g=p.value===c.value;return N.jsx(S.ItemSlot,{scope:t,value:c.value,disabled:i,children:N.jsx(C,{asChild:!0,...d,focusable:!i,tabStopId:c.value,children:N.jsx(u,{asChild:!0,...l,children:N.jsx(I.button,{type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?c.contentId:void 0,"data-highlighted":b?"":void 0,"data-state":g?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:m,onPointerDown:n(r.onPointerDown,(e=>{i||0!==e.button||!1!==e.ctrlKey||(p.onMenuOpen(c.value),g||e.preventDefault())})),onPointerEnter:n(r.onPointerEnter,(()=>{Boolean(p.value)&&!g&&(p.onMenuOpen(c.value),f.current?.focus())})),onKeyDown:n(r.onKeyDown,(e=>{i||(["Enter"," "].includes(e.key)&&p.onMenuToggle(c.value),"ArrowDown"===e.key&&p.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(e.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,e.preventDefault()))})),onFocus:n(r.onFocus,(()=>v(!0))),onBlur:n(r.onBlur,(()=>v(!1)))})})})})}));q.displayName=Y;var H=e=>{const{__scopeMenubar:r,...a}=e,n=E(r);return N.jsx(w,{...n,...a})};H.displayName="MenubarPortal";var J="MenubarContent",Q=e.forwardRef(((r,a)=>{const{__scopeMenubar:o,align:t="start",...i}=r,s=E(o),u=B(J,o),l=U(J,o),p=D(o),c=e.useRef(!1);return N.jsx(d,{id:l.contentId,"aria-labelledby":l.triggerId,"data-radix-menubar-content":"",...s,...i,ref:a,align:t,onCloseAutoFocus:n(r.onCloseAutoFocus,(e=>{Boolean(u.value)||c.current||l.triggerRef.current?.focus(),c.current=!1,e.preventDefault()})),onFocusOutside:n(r.onFocusOutside,(e=>{const r=e.target;p().some((e=>e.ref.current?.contains(r)))&&e.preventDefault()})),onInteractOutside:n(r.onInteractOutside,(()=>{c.current=!0})),onEntryFocus:e=>{l.wasKeyboardTriggerOpenRef.current||e.preventDefault()},onKeyDown:n(r.onKeyDown,(e=>{if(["ArrowRight","ArrowLeft"].includes(e.key)){const n=e.target,o=n.hasAttribute("data-radix-menubar-subtrigger"),t=n.closest("[data-radix-menubar-content]")!==e.currentTarget,i=("rtl"===u.dir?"ArrowRight":"ArrowLeft")===e.key;if(!i&&o)return;if(t&&i)return;let s=p().filter((e=>!e.disabled)).map((e=>e.value));i&&s.reverse();const d=s.indexOf(l.value);s=u.loop?(a=d+1,(r=s).map(((e,n)=>r[(a+n)%r.length]))):s.slice(d+1);const[c]=s;c&&u.onMenuOpen(c)}var r,a}),{checkForDefaultPrevented:!1}),style:{...r.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})}));Q.displayName=J;var W=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(l,{...o,...n,ref:r})}));W.displayName="MenubarGroup";var X=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(p,{...o,...n,ref:r})}));X.displayName="MenubarLabel";var Z=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(c,{...o,...n,ref:r})}));Z.displayName="MenubarItem";var $=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(f,{...o,...n,ref:r})}));$.displayName="MenubarCheckboxItem";var ee=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(m,{...o,...n,ref:r})}));ee.displayName="MenubarRadioGroup";var re=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(b,{...o,...n,ref:r})}));re.displayName="MenubarRadioItem";var ae=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(v,{...o,...n,ref:r})}));ae.displayName="MenubarItemIndicator";var ne=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(g,{...o,...n,ref:r})}));ne.displayName="MenubarSeparator";var oe=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(x,{...o,...n,ref:r})}));oe.displayName="MenubarArrow";var te=e=>{const{__scopeMenubar:r,children:a,open:n,onOpenChange:o,defaultOpen:t}=e,i=E(r),[s=!1,u]=O({prop:n,defaultProp:t,onChange:o});return N.jsx(_,{...i,open:s,onOpenChange:u,children:a})};te.displayName="MenubarSub";var ie=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(h,{"data-radix-menubar-subtrigger":"",...o,...n,ref:r})}));ie.displayName="MenubarSubTrigger";var se=e.forwardRef(((e,r)=>{const{__scopeMenubar:a,...n}=e,o=E(a);return N.jsx(j,{...o,"data-radix-menubar-content":"",...n,ref:r,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})}));se.displayName="MenubarSubContent";var ue=L,de=z,le=q,pe=H,ce=Q,fe=Z,me=$,be=ee,ve=re,ge=ae,xe=ne,he=te,je=ie,Me=se;export{me as CheckboxItem,ce as Content,fe as Item,ge as ItemIndicator,de as Menu,L as Menubar,oe as MenubarArrow,$ as MenubarCheckboxItem,Q as MenubarContent,W as MenubarGroup,Z as MenubarItem,ae as MenubarItemIndicator,X as MenubarLabel,z as MenubarMenu,H as MenubarPortal,ee as MenubarRadioGroup,re as MenubarRadioItem,ne as MenubarSeparator,te as MenubarSub,se as MenubarSubContent,ie as MenubarSubTrigger,q as MenubarTrigger,pe as Portal,be as RadioGroup,ve as RadioItem,ue as Root,xe as Separator,he as Sub,Me as SubContent,je as SubTrigger,le as Trigger,P as createMenubarScope};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-menubar/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/menubar/src/Menubar.tsx\nimport * as React from \"react\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { jsx } from \"react/jsx-runtime\";\nvar MENUBAR_NAME = \"Menubar\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENUBAR_NAME);\nvar [createMenubarContext, createMenubarScope] = createContextScope(MENUBAR_NAME, [\n createCollectionScope,\n createRovingFocusGroupScope\n]);\nvar useMenuScope = createMenuScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenubarContextProvider, useMenubarContext] = createMenubarContext(MENUBAR_NAME);\nvar Menubar = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeMenubar,\n value: valueProp,\n onValueChange,\n defaultValue,\n loop = true,\n dir,\n ...menubarProps\n } = props;\n const direction = useDirection(dir);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenubar);\n const [value = \"\", setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue\n });\n const [currentTabStopId, setCurrentTabStopId] = React.useState(null);\n return /* @__PURE__ */ jsx(\n MenubarContextProvider,\n {\n scope: __scopeMenubar,\n value,\n onMenuOpen: React.useCallback(\n (value2) => {\n setValue(value2);\n setCurrentTabStopId(value2);\n },\n [setValue]\n ),\n onMenuClose: React.useCallback(() => setValue(\"\"), [setValue]),\n onMenuToggle: React.useCallback(\n (value2) => {\n setValue((prevValue) => Boolean(prevValue) ? \"\" : value2);\n setCurrentTabStopId(value2);\n },\n [setValue]\n ),\n dir: direction,\n loop,\n children: /* @__PURE__ */ jsx(Collection.Provider, { scope: __scopeMenubar, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeMenubar, children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n orientation: \"horizontal\",\n loop,\n dir: direction,\n currentTabStopId,\n onCurrentTabStopIdChange: setCurrentTabStopId,\n children: /* @__PURE__ */ jsx(Primitive.div, { role: \"menubar\", ...menubarProps, ref: forwardedRef })\n }\n ) }) })\n }\n );\n }\n);\nMenubar.displayName = MENUBAR_NAME;\nvar MENU_NAME = \"MenubarMenu\";\nvar [MenubarMenuProvider, useMenubarMenuContext] = createMenubarContext(MENU_NAME);\nvar MenubarMenu = (props) => {\n const { __scopeMenubar, value: valueProp, ...menuProps } = props;\n const autoValue = useId();\n const value = valueProp || autoValue || \"LEGACY_REACT_AUTO_VALUE\";\n const context = useMenubarContext(MENU_NAME, __scopeMenubar);\n const menuScope = useMenuScope(__scopeMenubar);\n const triggerRef = React.useRef(null);\n const wasKeyboardTriggerOpenRef = React.useRef(false);\n const open = context.value === value;\n React.useEffect(() => {\n if (!open) wasKeyboardTriggerOpenRef.current = false;\n }, [open]);\n return /* @__PURE__ */ jsx(\n MenubarMenuProvider,\n {\n scope: __scopeMenubar,\n value,\n triggerId: useId(),\n triggerRef,\n contentId: useId(),\n wasKeyboardTriggerOpenRef,\n children: /* @__PURE__ */ jsx(\n MenuPrimitive.Root,\n {\n ...menuScope,\n open,\n onOpenChange: (open2) => {\n if (!open2) context.onMenuClose();\n },\n modal: false,\n dir: context.dir,\n ...menuProps\n }\n )\n }\n );\n};\nMenubarMenu.displayName = MENU_NAME;\nvar TRIGGER_NAME = \"MenubarTrigger\";\nvar MenubarTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, disabled = false, ...triggerProps } = props;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenubar);\n const menuScope = useMenuScope(__scopeMenubar);\n const context = useMenubarContext(TRIGGER_NAME, __scopeMenubar);\n const menuContext = useMenubarMenuContext(TRIGGER_NAME, __scopeMenubar);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, menuContext.triggerRef);\n const [isFocused, setIsFocused] = React.useState(false);\n const open = context.value === menuContext.value;\n return /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeMenubar, value: menuContext.value, disabled, children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Item,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n focusable: !disabled,\n tabStopId: menuContext.value,\n children: /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"menuitem\",\n id: menuContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": open,\n \"aria-controls\": open ? menuContext.contentId : void 0,\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"data-state\": open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n ...triggerProps,\n ref: composedRefs,\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onMenuOpen(menuContext.value);\n if (!open) event.preventDefault();\n }\n }),\n onPointerEnter: composeEventHandlers(props.onPointerEnter, () => {\n const menubarOpen = Boolean(context.value);\n if (menubarOpen && !open) {\n context.onMenuOpen(menuContext.value);\n ref.current?.focus();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if ([\"Enter\", \" \"].includes(event.key)) context.onMenuToggle(menuContext.value);\n if (event.key === \"ArrowDown\") context.onMenuOpen(menuContext.value);\n if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) {\n menuContext.wasKeyboardTriggerOpenRef.current = true;\n event.preventDefault();\n }\n }),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n ) });\n }\n);\nMenubarTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"MenubarPortal\";\nvar MenubarPortal = (props) => {\n const { __scopeMenubar, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nMenubarPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"MenubarContent\";\nvar MenubarContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, align = \"start\", ...contentProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n const context = useMenubarContext(CONTENT_NAME, __scopeMenubar);\n const menuContext = useMenubarMenuContext(CONTENT_NAME, __scopeMenubar);\n const getItems = useCollection(__scopeMenubar);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n id: menuContext.contentId,\n \"aria-labelledby\": menuContext.triggerId,\n \"data-radix-menubar-content\": \"\",\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n align,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n const menubarOpen = Boolean(context.value);\n if (!menubarOpen && !hasInteractedOutsideRef.current) {\n menuContext.triggerRef.current?.focus();\n }\n hasInteractedOutsideRef.current = false;\n event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n const target = event.target;\n const isMenubarTrigger = getItems().some((item) => item.ref.current?.contains(target));\n if (isMenubarTrigger) event.preventDefault();\n }),\n onInteractOutside: composeEventHandlers(props.onInteractOutside, () => {\n hasInteractedOutsideRef.current = true;\n }),\n onEntryFocus: (event) => {\n if (!menuContext.wasKeyboardTriggerOpenRef.current) event.preventDefault();\n },\n onKeyDown: composeEventHandlers(\n props.onKeyDown,\n (event) => {\n if ([\"ArrowRight\", \"ArrowLeft\"].includes(event.key)) {\n const target = event.target;\n const targetIsSubTrigger = target.hasAttribute(\"data-radix-menubar-subtrigger\");\n const isKeyDownInsideSubMenu = target.closest(\"[data-radix-menubar-content]\") !== event.currentTarget;\n const prevMenuKey = context.dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\";\n const isPrevKey = prevMenuKey === event.key;\n const isNextKey = !isPrevKey;\n if (isNextKey && targetIsSubTrigger) return;\n if (isKeyDownInsideSubMenu && isPrevKey) return;\n const items = getItems().filter((item) => !item.disabled);\n let candidateValues = items.map((item) => item.value);\n if (isPrevKey) candidateValues.reverse();\n const currentIndex = candidateValues.indexOf(menuContext.value);\n candidateValues = context.loop ? wrapArray(candidateValues, currentIndex + 1) : candidateValues.slice(currentIndex + 1);\n const [nextValue] = candidateValues;\n if (nextValue) context.onMenuOpen(nextValue);\n }\n },\n { checkForDefaultPrevented: false }\n ),\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-menubar-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-menubar-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-menubar-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-menubar-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-menubar-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nMenubarContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"MenubarGroup\";\nvar MenubarGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nMenubarGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"MenubarLabel\";\nvar MenubarLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nMenubarLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"MenubarItem\";\nvar MenubarItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nMenubarItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"MenubarCheckboxItem\";\nvar MenubarCheckboxItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n }\n);\nMenubarCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"MenubarRadioGroup\";\nvar MenubarRadioGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n }\n);\nMenubarRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"MenubarRadioItem\";\nvar MenubarRadioItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n }\n);\nMenubarRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"MenubarItemIndicator\";\nvar MenubarItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeMenubar, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nMenubarItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"MenubarSeparator\";\nvar MenubarSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n }\n);\nMenubarSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"MenubarArrow\";\nvar MenubarArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nMenubarArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"MenubarSub\";\nvar MenubarSub = (props) => {\n const { __scopeMenubar, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nMenubarSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"MenubarSubTrigger\";\nvar MenubarSubTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubTrigger,\n {\n \"data-radix-menubar-subtrigger\": \"\",\n ...menuScope,\n ...subTriggerProps,\n ref: forwardedRef\n }\n );\n }\n);\nMenubarSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"MenubarSubContent\";\nvar MenubarSubContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenubar, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeMenubar);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n \"data-radix-menubar-content\": \"\",\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-menubar-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-menubar-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-menubar-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-menubar-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-menubar-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nMenubarSubContent.displayName = SUB_CONTENT_NAME;\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root3 = Menubar;\nvar Menu = MenubarMenu;\nvar Trigger = MenubarTrigger;\nvar Portal2 = MenubarPortal;\nvar Content2 = MenubarContent;\nvar Group2 = MenubarGroup;\nvar Label2 = MenubarLabel;\nvar Item3 = MenubarItem;\nvar CheckboxItem2 = MenubarCheckboxItem;\nvar RadioGroup2 = MenubarRadioGroup;\nvar RadioItem2 = MenubarRadioItem;\nvar ItemIndicator2 = MenubarItemIndicator;\nvar Separator2 = MenubarSeparator;\nvar Arrow2 = MenubarArrow;\nvar Sub2 = MenubarSub;\nvar SubTrigger2 = MenubarSubTrigger;\nvar SubContent2 = MenubarSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n Group2 as Group,\n Item3 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Menu,\n Menubar,\n MenubarArrow,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarItemIndicator,\n MenubarLabel,\n MenubarMenu,\n MenubarPortal,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root3 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createMenubarScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["MENUBAR_NAME","Collection","useCollection","createCollectionScope","createCollection","createMenubarContext","createMenubarScope","createContextScope","createRovingFocusGroupScope","useMenuScope","createMenuScope","useRovingFocusGroupScope","MenubarContextProvider","useMenubarContext","Menubar","React","forwardRef","props","forwardedRef","__scopeMenubar","value","valueProp","onValueChange","defaultValue","loop","dir","menubarProps","direction","useDirection","rovingFocusGroupScope","setValue","useControllableState","prop","onChange","defaultProp","currentTabStopId","setCurrentTabStopId","useState","jsx","scope","onMenuOpen","useCallback","value2","onMenuClose","onMenuToggle","prevValue","Boolean","children","Provider","Slot","RovingFocusGroup.Root","asChild","orientation","onCurrentTabStopIdChange","Primitive","div","role","ref","displayName","MENU_NAME","MenubarMenuProvider","useMenubarMenuContext","MenubarMenu","menuProps","autoValue","useId","context","menuScope","triggerRef","useRef","wasKeyboardTriggerOpenRef","open","useEffect","current","triggerId","contentId","MenuPrimitive.Root","onOpenChange","open2","modal","TRIGGER_NAME","MenubarTrigger","disabled","triggerProps","menuContext","composedRefs","useComposedRefs","isFocused","setIsFocused","ItemSlot","RovingFocusGroup.Item","focusable","tabStopId","MenuPrimitive.Anchor","button","type","id","onPointerDown","composeEventHandlers","event","ctrlKey","preventDefault","onPointerEnter","focus","onKeyDown","includes","key","onFocus","onBlur","MenubarPortal","portalProps","MenuPrimitive.Portal","CONTENT_NAME","MenubarContent","align","contentProps","getItems","hasInteractedOutsideRef","MenuPrimitive.Content","onCloseAutoFocus","onFocusOutside","target","some","item","contains","onInteractOutside","onEntryFocus","targetIsSubTrigger","hasAttribute","isKeyDownInsideSubMenu","closest","currentTarget","isPrevKey","candidateValues","filter","map","reverse","currentIndex","indexOf","startIndex","array","_","index","length","slice","nextValue","checkForDefaultPrevented","style","MenubarGroup","groupProps","MenuPrimitive.Group","MenubarLabel","labelProps","MenuPrimitive.Label","MenubarItem","itemProps","MenuPrimitive.Item","MenubarCheckboxItem","checkboxItemProps","MenuPrimitive.CheckboxItem","MenubarRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","MenubarRadioItem","radioItemProps","MenuPrimitive.RadioItem","MenubarItemIndicator","itemIndicatorProps","MenuPrimitive.ItemIndicator","MenubarSeparator","separatorProps","MenuPrimitive.Separator","MenubarArrow","arrowProps","MenuPrimitive.Arrow","MenubarSub","openProp","defaultOpen","setOpen","MenuPrimitive.Sub","MenubarSubTrigger","subTriggerProps","MenuPrimitive.SubTrigger","MenubarSubContent","subContentProps","MenuPrimitive.SubContent","Root3","Menu","Trigger","Portal2","Content2","Item3","CheckboxItem2","RadioGroup2","RadioItem2","ItemIndicator2","Separator2","Sub2","SubTrigger2","SubContent2"],"mappings":"qiCAiBA,IAAIA,EAAe,WACdC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAsBC,GAAsBC,EAAmBP,EAAc,CAChFG,EACAK,IAEEC,EAAeC,IACfC,EAA2BH,KAC1BI,EAAwBC,GAAqBR,EAAqBL,GACnEc,EAAUC,EAAMC,YAClB,CAACC,EAAOC,KACN,MAAMC,eACJA,EACAC,MAAOC,EAASC,cAChBA,EAAaC,aACbA,EAAYC,KACZA,GAAO,EAAIC,IACXA,KACGC,GACDT,EACEU,EAAYC,EAAaH,GACzBI,EAAwBlB,EAAyBQ,IAChDC,EAAQ,GAAIU,GAAYC,EAAqB,CAClDC,KAAMX,EACNY,SAAUX,EACVY,YAAaX,KAERY,EAAkBC,GAAuBrB,EAAMsB,SAAS,MAC/D,OAAuBC,EAAGA,IACxB1B,EACA,CACE2B,MAAOpB,EACPC,QACAoB,WAAYzB,EAAM0B,aACfC,IACCZ,EAASY,GACTN,EAAoBM,EAAO,GAE7B,CAACZ,IAEHa,YAAa5B,E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GAC/B,OAAuBmB,EAAGA,IACxBmJ,EACA,IACKtH,EACH,6BAA8B,MAC3BqH,EACH/H,IAAKvC,EACLiI,MAAO,IACFlI,EAAMkI,MAGP,2CAA4C,uCAC5C,0CAA2C,sCAC3C,2CAA4C,uCAC5C,gCAAiC,mCACjC,iCAAkC,sCAIzC,IAGLoC,GAAkB7H,YA3BK,oBA+BpB,IAACgI,GAAQ5K,EACR6K,GAAO7H,EACP8H,GAAU3G,EACV4G,GAAUhF,EACViF,GAAW7E,EAGX8E,GAAQrC,EACRsC,GAAgBnC,EAChBoC,GAAcjC,GACdkC,GAAa/B,GACbgC,GAAiB7B,GACjB8B,GAAa3B,GAEb4B,GAAOtB,GACPuB,GAAclB,GACdmB,GAAchB"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import t from"react-dom";import{createContextScope as n}from"../../react-context/dist/index.mjs.js";import{composeEventHandlers as o}from"../../primitive/dist/index.mjs.js";import{Primitive as r,dispatchDiscreteCustomEvent as i}from"../../react-primitive/dist/index.mjs.js";import{useControllableState as a}from"../../react-use-controllable-state/dist/index.mjs.js";import{useComposedRefs as s,composeRefs as u}from"../../react-compose-refs/dist/index.mjs.js";import{useDirection as c}from"../../react-direction/dist/index.mjs.js";import{Presence as l}from"../../react-presence/dist/index.mjs.js";import{useId as d}from"../../react-id/dist/index.mjs.js";import{createCollection as f}from"../../react-collection/dist/index.mjs.js";import{DismissableLayer as v}from"../../react-dismissable-layer/dist/index.mjs.js";import{usePrevious as m}from"../../react-use-previous/dist/index.mjs.js";import{useLayoutEffect as p}from"../../react-use-layout-effect/dist/index.mjs.js";import{useCallbackRef as w}from"../../react-use-callback-ref/dist/index.mjs.js";import{Root as g}from"../../react-visually-hidden/dist/index.mjs.js";import{j as x}from"../../../../_virtual/jsx-runtime.js";var h="NavigationMenu",[R,j,C]=f(h),[E,M,y]=f(h),[b,N]=n(h,[C,y]),[T,_]=b(h),[P,I]=b(h),L=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:o,value:i,onValueChange:u,defaultValue:l,delayDuration:d=200,skipDelayDuration:f=300,orientation:v="horizontal",dir:m,...p}=t,[w,g]=e.useState(null),h=s(n,(e=>g(e))),R=c(m),j=e.useRef(0),C=e.useRef(0),E=e.useRef(0),[M,y]=e.useState(!0),[b="",N]=a({prop:i,onChange:e=>{const t=f>0;""!==e?(window.clearTimeout(E.current),t&&y(!1)):(window.clearTimeout(E.current),E.current=window.setTimeout((()=>y(!0)),f)),u?.(e)},defaultProp:l}),T=e.useCallback((()=>{window.clearTimeout(C.current),C.current=window.setTimeout((()=>N("")),150)}),[N]),_=e.useCallback((e=>{window.clearTimeout(C.current),N(e)}),[N]),P=e.useCallback((e=>{b===e?window.clearTimeout(C.current):j.current=window.setTimeout((()=>{window.clearTimeout(C.current),N(e)}),d)}),[b,N,d]);return e.useEffect((()=>()=>{window.clearTimeout(j.current),window.clearTimeout(C.current),window.clearTimeout(E.current)}),[]),x.jsx(F,{scope:o,isRootMenu:!0,value:b,dir:R,orientation:v,rootNavigationMenu:w,onTriggerEnter:e=>{window.clearTimeout(j.current),M?P(e):_(e)},onTriggerLeave:()=>{window.clearTimeout(j.current),T()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:T,onItemSelect:e=>{N((t=>t===e?"":e))},onItemDismiss:()=>N(""),children:x.jsx(r.nav,{"aria-label":"Main","data-orientation":v,dir:R,...p,ref:h})})}));L.displayName=h;var D="NavigationMenuSub",k=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:s,orientation:u="horizontal",...c}=e,l=_(D,n),[d="",f]=a({prop:o,onChange:i,defaultProp:s});return x.jsx(F,{scope:n,isRootMenu:!1,value:d,dir:l.dir,orientation:u,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:x.jsx(r.div,{"data-orientation":u,...c,ref:t})})}));k.displayName=D;var F=t=>{const{scope:n,isRootMenu:o,rootNavigationMenu:r,dir:i,orientation:a,children:s,value:u,onItemSelect:c,onItemDismiss:l,onTriggerEnter:f,onTriggerLeave:v,onContentEnter:p,onContentLeave:g}=t,[h,j]=e.useState(null),[C,E]=e.useState(new Map),[M,y]=e.useState(null);return x.jsx(T,{scope:n,isRootMenu:o,rootNavigationMenu:r,value:u,previousValue:m(u),baseId:d(),dir:i,orientation:a,viewport:h,onViewportChange:j,indicatorTrack:M,onIndicatorTrackChange:y,onTriggerEnter:w(f),onTriggerLeave:w(v),onContentEnter:w(p),onContentLeave:w(g),onItemSelect:w(c),onItemDismiss:w(l),onViewportContentChange:e.useCallback(((e,t)=>{E((n=>(n.set(e,t),new Map(n))))}),[]),onViewportContentRemove:e.useCallback((e=>{E((t=>t.has(e)?(t.delete(e),new Map(t)):t))}),[]),children:x.jsx(R.Provider,{scope:n,children:x.jsx(P,{scope:n,items:C,children:s})})})},S="NavigationMenuList",A=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,i=_(S,n),a=x.jsx(r.ul,{"data-orientation":i.orientation,...o,ref:t});return x.jsx(r.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:x.jsx(R.Slot,{scope:n,children:i.isRootMenu?x.jsx(oe,{asChild:!0,children:a}):a})})}));A.displayName=S;var K="NavigationMenuItem",[O,V]=b(K),z=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:o,value:i,...a}=t,s=d(),u=i||s||"LEGACY_REACT_AUTO_VALUE",c=e.useRef(null),l=e.useRef(null),f=e.useRef(null),v=e.useRef((()=>{})),m=e.useRef(!1),p=e.useCallback(((e="start")=>{if(c.current){v.current();const t=ae(c.current);t.length&&se("start"===e?t:t.reverse())}}),[]),w=e.useCallback((()=>{if(c.current){const e=ae(c.current);e.length&&(v.current=function(e){return e.forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})),()=>{e.forEach((e=>{const t=e.dataset.tabindex;e.setAttribute("tabindex",t)}))}}(e))}}),[]);return x.jsx(O,{scope:o,value:u,triggerRef:l,contentRef:c,focusProxyRef:f,wasEscapeCloseRef:m,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:w,onContentFocusOutside:w,children:x.jsx(r.li,{...a,ref:n})})}));z.displayName=K;var $="NavigationMenuTrigger",U=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:i,disabled:a,...u}=t,c=_($,t.__scopeNavigationMenu),l=V($,t.__scopeNavigationMenu),d=e.useRef(null),f=s(d,l.triggerRef,n),v=le(c.baseId,l.value),m=de(c.baseId,l.value),p=e.useRef(!1),w=e.useRef(!1),h=l.value===c.value;return x.jsxs(x.Fragment,{children:[x.jsx(R.ItemSlot,{scope:i,value:l.value,children:x.jsx(ie,{asChild:!0,children:x.jsx(r.button,{id:v,disabled:a,"data-disabled":a?"":void 0,"data-state":ce(h),"aria-expanded":h,"aria-controls":m,...u,ref:f,onPointerEnter:o(t.onPointerEnter,(()=>{w.current=!1,l.wasEscapeCloseRef.current=!1})),onPointerMove:o(t.onPointerMove,fe((()=>{a||w.current||l.wasEscapeCloseRef.current||p.current||(c.onTriggerEnter(l.value),p.current=!0)}))),onPointerLeave:o(t.onPointerLeave,fe((()=>{a||(c.onTriggerLeave(),p.current=!1)}))),onClick:o(t.onClick,(()=>{c.onItemSelect(l.value),w.current=h})),onKeyDown:o(t.onKeyDown,(e=>{const t={horizontal:"ArrowDown",vertical:"rtl"===c.dir?"ArrowLeft":"ArrowRight"}[c.orientation];h&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())}))})})}),h&&x.jsxs(x.Fragment,{children:[x.jsx(g,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{const t=l.contentRef.current,n=e.relatedTarget,o=n===d.current,r=t?.contains(n);!o&&r||l.onFocusProxyEnter(o?"start":"end")}}),c.viewport&&x.jsx("span",{"aria-owns":m})]})]})}));U.displayName=$;var B="navigationMenu.linkSelect",H=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,active:a,onSelect:s,...u}=e;return x.jsx(ie,{asChild:!0,children:x.jsx(r.a,{"data-active":a?"":void 0,"aria-current":a?"page":void 0,...u,ref:t,onClick:o(e.onClick,(e=>{const t=e.target,n=new CustomEvent(B,{bubbles:!0,cancelable:!0});if(t.addEventListener(B,(e=>s?.(e)),{once:!0}),i(t,n),!n.defaultPrevented&&!e.metaKey){const e=new CustomEvent(Q,{bubbles:!0,cancelable:!0});i(t,e)}}),{checkForDefaultPrevented:!1})})})}));H.displayName="NavigationMenuLink";var W="NavigationMenuIndicator",G=e.forwardRef(((e,n)=>{const{forceMount:o,...r}=e,i=_(W,e.__scopeNavigationMenu),a=Boolean(i.value);return i.indicatorTrack?t.createPortal(x.jsx(l,{present:o||a,children:x.jsx(Y,{...r,ref:n})}),i.indicatorTrack):null}));G.displayName=W;var Y=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:o,...i}=t,a=_(W,o),s=j(o),[u,c]=e.useState(null),[l,d]=e.useState(null),f="horizontal"===a.orientation,v=Boolean(a.value);e.useEffect((()=>{const e=s(),t=e.find((e=>e.value===a.value))?.ref.current;t&&c(t)}),[s,a.value]);const m=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return ue(u,m),ue(a.indicatorTrack,m),l?x.jsx(r.div,{"aria-hidden":!0,"data-state":v?"visible":"hidden","data-orientation":a.orientation,...i,ref:n,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...i.style}}):null})),q="NavigationMenuContent",X=e.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,i=_(q,e.__scopeNavigationMenu),a=V(q,e.__scopeNavigationMenu),u=s(a.contentRef,t),c=a.value===i.value,d={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return i.viewport?x.jsx(J,{forceMount:n,...d,ref:u}):x.jsx(l,{present:n||c,children:x.jsx(Z,{"data-state":ce(c),...d,ref:u,onPointerEnter:o(e.onPointerEnter,i.onContentEnter),onPointerLeave:o(e.onPointerLeave,fe(i.onContentLeave)),style:{pointerEvents:!c&&i.isRootMenu?"none":void 0,...d.style}})})}));X.displayName=q;var J=e.forwardRef(((e,t)=>{const n=_(q,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:r}=n;return p((()=>{o(e.value,{ref:t,...e})}),[e,t,o]),p((()=>()=>r(e.value)),[e.value,r]),null})),Q="navigationMenu.rootContentDismiss",Z=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:a,focusProxyRef:u,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:d,...f}=t,m=_(q,r),p=e.useRef(null),w=s(p,n),g=le(m.baseId,i),h=de(m.baseId,i),R=j(r),C=e.useRef(null),{onItemDismiss:E}=m;e.useEffect((()=>{const e=p.current;if(m.isRootMenu&&e){const t=()=>{E(),l(),e.contains(document.activeElement)&&a.current?.focus()};return e.addEventListener(Q,t),()=>e.removeEventListener(Q,t)}}),[m.isRootMenu,t.value,a,E,l]);const M=e.useMemo((()=>{const e=R().map((e=>e.value));"rtl"===m.dir&&e.reverse();const t=e.indexOf(m.value),n=e.indexOf(m.previousValue),o=i===m.value,r=n===e.indexOf(i);if(!o&&!r)return C.current;const a=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(r&&-1!==t)return t>n?"to-start":"to-end"}return null})();return C.current=a,a}),[m.previousValue,m.value,m.dir,R,i]);return x.jsx(oe,{asChild:!0,children:x.jsx(v,{id:h,"aria-labelledby":g,"data-motion":M,"data-orientation":m.orientation,...f,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{const e=new Event(Q,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(e)},onFocusOutside:o(t.onFocusOutside,(e=>{d();const t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()})),onPointerDownOutside:o(t.onPointerDownOutside,(e=>{const t=e.target,n=R().some((e=>e.ref.current?.contains(t))),o=m.isRootMenu&&m.viewport?.contains(t);(n||o||!m.isRootMenu)&&e.preventDefault()})),onKeyDown:o(t.onKeyDown,(e=>{const t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){const t=ae(e.currentTarget),n=document.activeElement,o=t.findIndex((e=>e===n));se(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length))?e.preventDefault():u.current?.focus()}})),onEscapeKeyDown:o(t.onEscapeKeyDown,(e=>{c.current=!0}))})})})),ee="NavigationMenuViewport",te=e.forwardRef(((e,t)=>{const{forceMount:n,...o}=e,r=_(ee,e.__scopeNavigationMenu),i=Boolean(r.value);return x.jsx(l,{present:n||i,children:x.jsx(ne,{...o,ref:t})})}));te.displayName=ee;var ne=e.forwardRef(((t,n)=>{const{__scopeNavigationMenu:i,children:a,...c}=t,d=_(ee,i),f=s(n,d.onViewportChange),v=I(q,t.__scopeNavigationMenu),[m,p]=e.useState(null),[w,g]=e.useState(null),h=m?m?.width+"px":void 0,R=m?m?.height+"px":void 0,j=Boolean(d.value),C=j?d.value:d.previousValue;return ue(w,(()=>{w&&p({width:w.offsetWidth,height:w.offsetHeight})})),x.jsx(r.div,{"data-state":ce(j),"data-orientation":d.orientation,...c,ref:f,style:{pointerEvents:!j&&d.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":R,...c.style},onPointerEnter:o(t.onPointerEnter,d.onContentEnter),onPointerLeave:o(t.onPointerLeave,fe(d.onContentLeave)),children:Array.from(v.items).map((([e,{ref:t,forceMount:n,...o}])=>{const r=C===e;return x.jsx(l,{present:n||r,children:x.jsx(Z,{...o,ref:u(t,(e=>{r&&e&&g(e)}))})},e)}))})})),oe=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,i=_("FocusGroup",n);return x.jsx(E.Provider,{scope:n,children:x.jsx(E.Slot,{scope:n,children:x.jsx(r.div,{dir:i.dir,...o,ref:t})})})})),re=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ie=e.forwardRef(((e,t)=>{const{__scopeNavigationMenu:n,...i}=e,a=M(n),s=_("FocusGroupItem",n);return x.jsx(E.ItemSlot,{scope:n,children:x.jsx(r.button,{...i,ref:t,onKeyDown:o(e.onKeyDown,(e=>{if(["Home","End",...re].includes(e.key)){let t=a().map((e=>e.ref.current));if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),re.includes(e.key)){const n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout((()=>se(t))),e.preventDefault()}}))})})}));function ae(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function se(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}function ue(e,t){const n=w(t);p((()=>{let t=0;if(e){const o=new ResizeObserver((()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)}));return o.observe(e),()=>{window.cancelAnimationFrame(t),o.unobserve(e)}}}),[e,n])}function ce(e){return e?"open":"closed"}function le(e,t){return`${e}-trigger-${t}`}function de(e,t){return`${e}-content-${t}`}function fe(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ve=L,me=A,pe=z,we=U,ge=H,xe=G,he=X,Re=te;export{he as Content,xe as Indicator,pe as Item,ge as Link,me as List,L as NavigationMenu,X as NavigationMenuContent,G as NavigationMenuIndicator,z as NavigationMenuItem,H as NavigationMenuLink,A as NavigationMenuList,k as NavigationMenuSub,U as NavigationMenuTrigger,te as NavigationMenuViewport,ve as Root,we as Trigger,Re as Viewport,N as createNavigationMenuScope};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/navigation-menu/src/NavigationMenu.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { composeRefs, useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport * as VisuallyHiddenPrimitive from \"@radix-ui/react-visually-hidden\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar NAVIGATION_MENU_NAME = \"NavigationMenu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(NAVIGATION_MENU_NAME);\nvar [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME);\nvar [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(\n NAVIGATION_MENU_NAME,\n [createCollectionScope, createFocusGroupCollectionScope]\n);\nvar [NavigationMenuProviderImpl, useNavigationMenuContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME);\nvar [ViewportContentProvider, useViewportContentContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME);\nvar NavigationMenu = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeNavigationMenu,\n value: valueProp,\n onValueChange,\n defaultValue,\n delayDuration = 200,\n skipDelayDuration = 300,\n orientation = \"horizontal\",\n dir,\n ...NavigationMenuProps\n } = props;\n const [navigationMenu, setNavigationMenu] = React.useState(null);\n const composedRef = useComposedRefs(forwardedRef, (node) => setNavigationMenu(node));\n const direction = useDirection(dir);\n const openTimerRef = React.useRef(0);\n const closeTimerRef = React.useRef(0);\n const skipDelayTimerRef = React.useRef(0);\n const [isOpenDelayed, setIsOpenDelayed] = React.useState(true);\n const [value = \"\", setValue] = useControllableState({\n prop: valueProp,\n onChange: (value2) => {\n const isOpen = value2 !== \"\";\n const hasSkipDelayDuration = skipDelayDuration > 0;\n if (isOpen) {\n window.clearTimeout(skipDelayTimerRef.current);\n if (hasSkipDelayDuration) setIsOpenDelayed(false);\n } else {\n window.clearTimeout(skipDelayTimerRef.current);\n skipDelayTimerRef.current = window.setTimeout(\n () => setIsOpenDelayed(true),\n skipDelayDuration\n );\n }\n onValueChange?.(value2);\n },\n defaultProp: defaultValue\n });\n const startCloseTimer = React.useCallback(() => {\n window.clearTimeout(closeTimerRef.current);\n closeTimerRef.current = window.setTimeout(() => setValue(\"\"), 150);\n }, [setValue]);\n const handleOpen = React.useCallback(\n (itemValue) => {\n window.clearTimeout(closeTimerRef.current);\n setValue(itemValue);\n },\n [setValue]\n );\n const handleDelayedOpen = React.useCallback(\n (itemValue) => {\n const isOpenItem = value === itemValue;\n if (isOpenItem) {\n window.clearTimeout(closeTimerRef.current);\n } else {\n openTimerRef.current = window.setTimeout(() => {\n window.clearTimeout(closeTimerRef.current);\n setValue(itemValue);\n }, delayDuration);\n }\n },\n [value, setValue, delayDuration]\n );\n React.useEffect(() => {\n return () => {\n window.clearTimeout(openTimerRef.current);\n window.clearTimeout(closeTimerRef.current);\n window.clearTimeout(skipDelayTimerRef.current);\n };\n }, []);\n return /* @__PURE__ */ jsx(\n NavigationMenuProvider,\n {\n scope: __scopeNavigationMenu,\n isRootMenu: true,\n value,\n dir: direction,\n orientation,\n rootNavigationMenu: navigationMenu,\n onTriggerEnter: (itemValue) => {\n window.clearTimeout(openTimerRef.current);\n if (isOpenDelayed) handleDelayedOpen(itemValue);\n else handleOpen(itemValue);\n },\n onTriggerLeave: () => {\n window.clearTimeout(openTimerRef.current);\n startCloseTimer();\n },\n onContentEnter: () => window.clearTimeout(closeTimerRef.current),\n onContentLeave: startCloseTimer,\n onItemSelect: (itemValue) => {\n setValue((prevValue) => prevValue === itemValue ? \"\" : itemValue);\n },\n onItemDismiss: () => setValue(\"\"),\n children: /* @__PURE__ */ jsx(\n Primitive.nav,\n {\n \"aria-label\": \"Main\",\n \"data-orientation\": orientation,\n dir: direction,\n ...NavigationMenuProps,\n ref: composedRef\n }\n )\n }\n );\n }\n);\nNavigationMenu.displayName = NAVIGATION_MENU_NAME;\nvar SUB_NAME = \"NavigationMenuSub\";\nvar NavigationMenuSub = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeNavigationMenu,\n value: valueProp,\n onValueChange,\n defaultValue,\n orientation = \"horizontal\",\n ...subProps\n } = props;\n const context = useNavigationMenuContext(SUB_NAME, __scopeNavigationMenu);\n const [value = \"\", setValue] = useControllableState({\n prop: valueProp,\n onChange: onValueChange,\n defaultProp: defaultValue\n });\n return /* @__PURE__ */ jsx(\n NavigationMenuProvider,\n {\n scope: __scopeNavigationMenu,\n isRootMenu: false,\n value,\n dir: context.dir,\n orientation,\n rootNavigationMenu: context.rootNavigationMenu,\n onTriggerEnter: (itemValue) => setValue(itemValue),\n onItemSelect: (itemValue) => setValue(itemValue),\n onItemDismiss: () => setValue(\"\"),\n children: /* @__PURE__ */ jsx(Primitive.div, { \"data-orientation\": orientation, ...subProps, ref: forwardedRef })\n }\n );\n }\n);\nNavigationMenuSub.displayName = SUB_NAME;\nvar NavigationMenuProvider = (props) => {\n const {\n scope,\n isRootMenu,\n rootNavigationMenu,\n dir,\n orientation,\n children,\n value,\n onItemSelect,\n onItemDismiss,\n onTriggerEnter,\n onTriggerLeave,\n onContentEnter,\n onContentLeave\n } = props;\n const [viewport, setViewport] = React.useState(null);\n const [viewportContent, setViewportContent] = React.useState(/* @__PURE__ */ new Map());\n const [indicatorTrack, setIndicatorTrack] = React.useState(null);\n return /* @__PURE__ */ jsx(\n NavigationMenuProviderImpl,\n {\n scope,\n isRootMenu,\n rootNavigationMenu,\n value,\n previousValue: usePrevious(value),\n baseId: useId(),\n dir,\n orientation,\n viewport,\n onViewportChange: setViewport,\n indicatorTrack,\n onIndicatorTrackChange: setIndicatorTrack,\n onTriggerEnter: useCallbackRef(onTriggerEnter),\n onTriggerLeave: useCallbackRef(onTriggerLeave),\n onContentEnter: useCallbackRef(onContentEnter),\n onContentLeave: useCallbackRef(onContentLeave),\n onItemSelect: useCallbackRef(onItemSelect),\n onItemDismiss: useCallbackRef(onItemDismiss),\n onViewportContentChange: React.useCallback((contentValue, contentData) => {\n setViewportContent((prevContent) => {\n prevContent.set(contentValue, contentData);\n return new Map(prevContent);\n });\n }, []),\n onViewportContentRemove: React.useCallback((contentValue) => {\n setViewportContent((prevContent) => {\n if (!prevContent.has(contentValue)) return prevContent;\n prevContent.delete(contentValue);\n return new Map(prevContent);\n });\n }, []),\n children: /* @__PURE__ */ jsx(Collection.Provider, { scope, children: /* @__PURE__ */ jsx(ViewportContentProvider, { scope, items: viewportContent, children }) })\n }\n );\n};\nvar LIST_NAME = \"NavigationMenuList\";\nvar NavigationMenuList = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, ...listProps } = props;\n const context = useNavigationMenuContext(LIST_NAME, __scopeNavigationMenu);\n const list = /* @__PURE__ */ jsx(Primitive.ul, { \"data-orientation\": context.orientation, ...listProps, ref: forwardedRef });\n return /* @__PURE__ */ jsx(Primitive.div, { style: { position: \"relative\" }, ref: context.onIndicatorTrackChange, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeNavigationMenu, children: context.isRootMenu ? /* @__PURE__ */ jsx(FocusGroup, { asChild: true, children: list }) : list }) });\n }\n);\nNavigationMenuList.displayName = LIST_NAME;\nvar ITEM_NAME = \"NavigationMenuItem\";\nvar [NavigationMenuItemContextProvider, useNavigationMenuItemContext] = createNavigationMenuContext(ITEM_NAME);\nvar NavigationMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, value: valueProp, ...itemProps } = props;\n const autoValue = useId();\n const value = valueProp || autoValue || \"LEGACY_REACT_AUTO_VALUE\";\n const contentRef = React.useRef(null);\n const triggerRef = React.useRef(null);\n const focusProxyRef = React.useRef(null);\n const restoreContentTabOrderRef = React.useRef(() => {\n });\n const wasEscapeCloseRef = React.useRef(false);\n const handleContentEntry = React.useCallback((side = \"start\") => {\n if (contentRef.current) {\n restoreContentTabOrderRef.current();\n const candidates = getTabbableCandidates(contentRef.current);\n if (candidates.length) focusFirst(side === \"start\" ? candidates : candidates.reverse());\n }\n }, []);\n const handleContentExit = React.useCallback(() => {\n if (contentRef.current) {\n const candidates = getTabbableCandidates(contentRef.current);\n if (candidates.length) restoreContentTabOrderRef.current = removeFromTabOrder(candidates);\n }\n }, []);\n return /* @__PURE__ */ jsx(\n NavigationMenuItemContextProvider,\n {\n scope: __scopeNavigationMenu,\n value,\n triggerRef,\n contentRef,\n focusProxyRef,\n wasEscapeCloseRef,\n onEntryKeyDown: handleContentEntry,\n onFocusProxyEnter: handleContentEntry,\n onRootContentClose: handleContentExit,\n onContentFocusOutside: handleContentExit,\n children: /* @__PURE__ */ jsx(Primitive.li, { ...itemProps, ref: forwardedRef })\n }\n );\n }\n);\nNavigationMenuItem.displayName = ITEM_NAME;\nvar TRIGGER_NAME = \"NavigationMenuTrigger\";\nvar NavigationMenuTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeNavigationMenu, disabled, ...triggerProps } = props;\n const context = useNavigationMenuContext(TRIGGER_NAME, props.__scopeNavigationMenu);\n const itemContext = useNavigationMenuItemContext(TRIGGER_NAME, props.__scopeNavigationMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(ref, itemContext.triggerRef, forwardedRef);\n const triggerId = makeTriggerId(context.baseId, itemContext.value);\n const contentId = makeContentId(context.baseId, itemContext.value);\n const hasPointerMoveOpenedRef = React.useRef(false);\n const wasClickCloseRef = React.useRef(false);\n const open = itemContext.value === context.value;\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeNavigationMenu, value: itemContext.value, children: /* @__PURE__ */ jsx(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n id: triggerId,\n disabled,\n \"data-disabled\": disabled ? \"\" : void 0,\n \"data-state\": getOpenState(open),\n \"aria-expanded\": open,\n \"aria-controls\": contentId,\n ...triggerProps,\n ref: composedRefs,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, () => {\n wasClickCloseRef.current = false;\n itemContext.wasEscapeCloseRef.current = false;\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse(() => {\n if (disabled || wasClickCloseRef.current || itemContext.wasEscapeCloseRef.current || hasPointerMoveOpenedRef.current)\n return;\n context.onTriggerEnter(itemContext.value);\n hasPointerMoveOpenedRef.current = true;\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse(() => {\n if (disabled) return;\n context.onTriggerLeave();\n hasPointerMoveOpenedRef.current = false;\n })\n ),\n onClick: composeEventHandlers(props.onClick, () => {\n context.onItemSelect(itemContext.value);\n wasClickCloseRef.current = open;\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const verticalEntryKey = context.dir === \"rtl\" ? \"ArrowLeft\" : \"ArrowRight\";\n const entryKey = { horizontal: \"ArrowDown\", vertical: verticalEntryKey }[context.orientation];\n if (open && event.key === entryKey) {\n itemContext.onEntryKeyDown();\n event.preventDefault();\n }\n })\n }\n ) }) }),\n open && /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n VisuallyHiddenPrimitive.Root,\n {\n \"aria-hidden\": true,\n tabIndex: 0,\n ref: itemContext.focusProxyRef,\n onFocus: (event) => {\n const content = itemContext.contentRef.current;\n const prevFocusedElement = event.relatedTarget;\n const wasTriggerFocused = prevFocusedElement === ref.current;\n const wasFocusFromContent = content?.contains(prevFocusedElement);\n if (wasTriggerFocused || !wasFocusFromContent) {\n itemContext.onFocusProxyEnter(wasTriggerFocused ? \"start\" : \"end\");\n }\n }\n }\n ),\n context.viewport && /* @__PURE__ */ jsx(\"span\", { \"aria-owns\": contentId })\n ] })\n ] });\n});\nNavigationMenuTrigger.displayName = TRIGGER_NAME;\nvar LINK_NAME = \"NavigationMenuLink\";\nvar LINK_SELECT = \"navigationMenu.linkSelect\";\nvar NavigationMenuLink = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, active, onSelect, ...linkProps } = props;\n return /* @__PURE__ */ jsx(FocusGroupItem, { asChild: true, children: /* @__PURE__ */ jsx(\n Primitive.a,\n {\n \"data-active\": active ? \"\" : void 0,\n \"aria-current\": active ? \"page\" : void 0,\n ...linkProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(\n props.onClick,\n (event) => {\n const target = event.target;\n const linkSelectEvent = new CustomEvent(LINK_SELECT, {\n bubbles: true,\n cancelable: true\n });\n target.addEventListener(LINK_SELECT, (event2) => onSelect?.(event2), { once: true });\n dispatchDiscreteCustomEvent(target, linkSelectEvent);\n if (!linkSelectEvent.defaultPrevented && !event.metaKey) {\n const rootContentDismissEvent = new CustomEvent(ROOT_CONTENT_DISMISS, {\n bubbles: true,\n cancelable: true\n });\n dispatchDiscreteCustomEvent(target, rootContentDismissEvent);\n }\n },\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nNavigationMenuLink.displayName = LINK_NAME;\nvar INDICATOR_NAME = \"NavigationMenuIndicator\";\nvar NavigationMenuIndicator = React.forwardRef((props, forwardedRef) => {\n const { forceMount, ...indicatorProps } = props;\n const context = useNavigationMenuContext(INDICATOR_NAME, props.__scopeNavigationMenu);\n const isVisible = Boolean(context.value);\n return context.indicatorTrack ? ReactDOM.createPortal(\n /* @__PURE__ */ jsx(Presence, { present: forceMount || isVisible, children: /* @__PURE__ */ jsx(NavigationMenuIndicatorImpl, { ...indicatorProps, ref: forwardedRef }) }),\n context.indicatorTrack\n ) : null;\n});\nNavigationMenuIndicator.displayName = INDICATOR_NAME;\nvar NavigationMenuIndicatorImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeNavigationMenu, ...indicatorProps } = props;\n const context = useNavigationMenuContext(INDICATOR_NAME, __scopeNavigationMenu);\n const getItems = useCollection(__scopeNavigationMenu);\n const [activeTrigger, setActiveTrigger] = React.useState(\n null\n );\n const [position, setPosition] = React.useState(null);\n const isHorizontal = context.orientation === \"horizontal\";\n const isVisible = Boolean(context.value);\n React.useEffect(() => {\n const items = getItems();\n const triggerNode = items.find((item) => item.value === context.value)?.ref.current;\n if (triggerNode) setActiveTrigger(triggerNode);\n }, [getItems, context.value]);\n const handlePositionChange = () => {\n if (activeTrigger) {\n setPosition({\n size: isHorizontal ? activeTrigger.offsetWidth : activeTrigger.offsetHeight,\n offset: isHorizontal ? activeTrigger.offsetLeft : activeTrigger.offsetTop\n });\n }\n };\n useResizeObserver(activeTrigger, handlePositionChange);\n useResizeObserver(context.indicatorTrack, handlePositionChange);\n return position ? /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-hidden\": true,\n \"data-state\": isVisible ? \"visible\" : \"hidden\",\n \"data-orientation\": context.orientation,\n ...indicatorProps,\n ref: forwardedRef,\n style: {\n position: \"absolute\",\n ...isHorizontal ? {\n left: 0,\n width: position.size + \"px\",\n transform: `translateX(${position.offset}px)`\n } : {\n top: 0,\n height: position.size + \"px\",\n transform: `translateY(${position.offset}px)`\n },\n ...indicatorProps.style\n }\n }\n ) : null;\n});\nvar CONTENT_NAME = \"NavigationMenuContent\";\nvar NavigationMenuContent = React.forwardRef((props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useNavigationMenuContext(CONTENT_NAME, props.__scopeNavigationMenu);\n const itemContext = useNavigationMenuItemContext(CONTENT_NAME, props.__scopeNavigationMenu);\n const composedRefs = useComposedRefs(itemContext.contentRef, forwardedRef);\n const open = itemContext.value === context.value;\n const commonProps = {\n value: itemContext.value,\n triggerRef: itemContext.triggerRef,\n focusProxyRef: itemContext.focusProxyRef,\n wasEscapeCloseRef: itemContext.wasEscapeCloseRef,\n onContentFocusOutside: itemContext.onContentFocusOutside,\n onRootContentClose: itemContext.onRootContentClose,\n ...contentProps\n };\n return !context.viewport ? /* @__PURE__ */ jsx(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx(\n NavigationMenuContentImpl,\n {\n \"data-state\": getOpenState(open),\n ...commonProps,\n ref: composedRefs,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, context.onContentEnter),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse(context.onContentLeave)\n ),\n style: {\n // Prevent interaction when animating out\n pointerEvents: !open && context.isRootMenu ? \"none\" : void 0,\n ...commonProps.style\n }\n }\n ) }) : /* @__PURE__ */ jsx(ViewportContentMounter, { forceMount, ...commonProps, ref: composedRefs });\n});\nNavigationMenuContent.displayName = CONTENT_NAME;\nvar ViewportContentMounter = React.forwardRef((props, forwardedRef) => {\n const context = useNavigationMenuContext(CONTENT_NAME, props.__scopeNavigationMenu);\n const { onViewportContentChange, onViewportContentRemove } = context;\n useLayoutEffect(() => {\n onViewportContentChange(props.value, {\n ref: forwardedRef,\n ...props\n });\n }, [props, forwardedRef, onViewportContentChange]);\n useLayoutEffect(() => {\n return () => onViewportContentRemove(props.value);\n }, [props.value, onViewportContentRemove]);\n return null;\n});\nvar ROOT_CONTENT_DISMISS = \"navigationMenu.rootContentDismiss\";\nvar NavigationMenuContentImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeNavigationMenu,\n value,\n triggerRef,\n focusProxyRef,\n wasEscapeCloseRef,\n onRootContentClose,\n onContentFocusOutside,\n ...contentProps\n } = props;\n const context = useNavigationMenuContext(CONTENT_NAME, __scopeNavigationMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(ref, forwardedRef);\n const triggerId = makeTriggerId(context.baseId, value);\n const contentId = makeContentId(context.baseId, value);\n const getItems = useCollection(__scopeNavigationMenu);\n const prevMotionAttributeRef = React.useRef(null);\n const { onItemDismiss } = context;\n React.useEffect(() => {\n const content = ref.current;\n if (context.isRootMenu && content) {\n const handleClose = () => {\n onItemDismiss();\n onRootContentClose();\n if (content.contains(document.activeElement)) triggerRef.current?.focus();\n };\n content.addEventListener(ROOT_CONTENT_DISMISS, handleClose);\n return () => content.removeEventListener(ROOT_CONTENT_DISMISS, handleClose);\n }\n }, [context.isRootMenu, props.value, triggerRef, onItemDismiss, onRootContentClose]);\n const motionAttribute = React.useMemo(() => {\n const items = getItems();\n const values = items.map((item) => item.value);\n if (context.dir === \"rtl\") values.reverse();\n const index = values.indexOf(context.value);\n const prevIndex = values.indexOf(context.previousValue);\n const isSelected = value === context.value;\n const wasSelected = prevIndex === values.indexOf(value);\n if (!isSelected && !wasSelected) return prevMotionAttributeRef.current;\n const attribute = (() => {\n if (index !== prevIndex) {\n if (isSelected && prevIndex !== -1) return index > prevIndex ? \"from-end\" : \"from-start\";\n if (wasSelected && index !== -1) return index > prevIndex ? \"to-start\" : \"to-end\";\n }\n return null;\n })();\n prevMotionAttributeRef.current = attribute;\n return attribute;\n }, [context.previousValue, context.value, context.dir, getItems, value]);\n return /* @__PURE__ */ jsx(FocusGroup, { asChild: true, children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n id: contentId,\n \"aria-labelledby\": triggerId,\n \"data-motion\": motionAttribute,\n \"data-orientation\": context.orientation,\n ...contentProps,\n ref: composedRefs,\n disableOutsidePointerEvents: false,\n onDismiss: () => {\n const rootContentDismissEvent = new Event(ROOT_CONTENT_DISMISS, {\n bubbles: true,\n cancelable: true\n });\n ref.current?.dispatchEvent(rootContentDismissEvent);\n },\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n onContentFocusOutside();\n const target = event.target;\n if (context.rootNavigationMenu?.contains(target)) event.preventDefault();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const target = event.target;\n const isTrigger = getItems().some((item) => item.ref.current?.contains(target));\n const isRootViewport = context.isRootMenu && context.viewport?.contains(target);\n if (isTrigger || isRootViewport || !context.isRootMenu) event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;\n const isTabKey = event.key === \"Tab\" && !isMetaKey;\n if (isTabKey) {\n const candidates = getTabbableCandidates(event.currentTarget);\n const focusedElement = document.activeElement;\n const index = candidates.findIndex((candidate) => candidate === focusedElement);\n const isMovingBackwards = event.shiftKey;\n const nextCandidates = isMovingBackwards ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length);\n if (focusFirst(nextCandidates)) {\n event.preventDefault();\n } else {\n focusProxyRef.current?.focus();\n }\n }\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n wasEscapeCloseRef.current = true;\n })\n }\n ) });\n});\nvar VIEWPORT_NAME = \"NavigationMenuViewport\";\nvar NavigationMenuViewport = React.forwardRef((props, forwardedRef) => {\n const { forceMount, ...viewportProps } = props;\n const context = useNavigationMenuContext(VIEWPORT_NAME, props.__scopeNavigationMenu);\n const open = Boolean(context.value);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || open, children: /* @__PURE__ */ jsx(NavigationMenuViewportImpl, { ...viewportProps, ref: forwardedRef }) });\n});\nNavigationMenuViewport.displayName = VIEWPORT_NAME;\nvar NavigationMenuViewportImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeNavigationMenu, children, ...viewportImplProps } = props;\n const context = useNavigationMenuContext(VIEWPORT_NAME, __scopeNavigationMenu);\n const composedRefs = useComposedRefs(forwardedRef, context.onViewportChange);\n const viewportContentContext = useViewportContentContext(\n CONTENT_NAME,\n props.__scopeNavigationMenu\n );\n const [size, setSize] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const viewportWidth = size ? size?.width + \"px\" : void 0;\n const viewportHeight = size ? size?.height + \"px\" : void 0;\n const open = Boolean(context.value);\n const activeContentValue = open ? context.value : context.previousValue;\n const handleSizeChange = () => {\n if (content) setSize({ width: content.offsetWidth, height: content.offsetHeight });\n };\n useResizeObserver(content, handleSizeChange);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getOpenState(open),\n \"data-orientation\": context.orientation,\n ...viewportImplProps,\n ref: composedRefs,\n style: {\n // Prevent interaction when animating out\n pointerEvents: !open && context.isRootMenu ? \"none\" : void 0,\n [\"--radix-navigation-menu-viewport-width\"]: viewportWidth,\n [\"--radix-navigation-menu-viewport-height\"]: viewportHeight,\n ...viewportImplProps.style\n },\n onPointerEnter: composeEventHandlers(props.onPointerEnter, context.onContentEnter),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, whenMouse(context.onContentLeave)),\n children: Array.from(viewportContentContext.items).map(([value, { ref, forceMount, ...props2 }]) => {\n const isActive = activeContentValue === value;\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || isActive, children: /* @__PURE__ */ jsx(\n NavigationMenuContentImpl,\n {\n ...props2,\n ref: composeRefs(ref, (node) => {\n if (isActive && node) setContent(node);\n })\n }\n ) }, value);\n })\n }\n );\n});\nvar FOCUS_GROUP_NAME = \"FocusGroup\";\nvar FocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, ...groupProps } = props;\n const context = useNavigationMenuContext(FOCUS_GROUP_NAME, __scopeNavigationMenu);\n return /* @__PURE__ */ jsx(FocusGroupCollection.Provider, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(FocusGroupCollection.Slot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(Primitive.div, { dir: context.dir, ...groupProps, ref: forwardedRef }) }) });\n }\n);\nvar ARROW_KEYS = [\"ArrowRight\", \"ArrowLeft\", \"ArrowUp\", \"ArrowDown\"];\nvar FOCUS_GROUP_ITEM_NAME = \"FocusGroupItem\";\nvar FocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeNavigationMenu, ...groupProps } = props;\n const getItems = useFocusGroupCollection(__scopeNavigationMenu);\n const context = useNavigationMenuContext(FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);\n return /* @__PURE__ */ jsx(FocusGroupCollection.ItemSlot, { scope: __scopeNavigationMenu, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n ...groupProps,\n ref: forwardedRef,\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isFocusNavigationKey = [\"Home\", \"End\", ...ARROW_KEYS].includes(event.key);\n if (isFocusNavigationKey) {\n let candidateNodes = getItems().map((item) => item.ref.current);\n const prevItemKey = context.dir === \"rtl\" ? \"ArrowRight\" : \"ArrowLeft\";\n const prevKeys = [prevItemKey, \"ArrowUp\", \"End\"];\n if (prevKeys.includes(event.key)) candidateNodes.reverse();\n if (ARROW_KEYS.includes(event.key)) {\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction focusFirst(candidates) {\n const previouslyFocusedElement = document.activeElement;\n return candidates.some((candidate) => {\n if (candidate === previouslyFocusedElement) return true;\n candidate.focus();\n return document.activeElement !== previouslyFocusedElement;\n });\n}\nfunction removeFromTabOrder(candidates) {\n candidates.forEach((candidate) => {\n candidate.dataset.tabindex = candidate.getAttribute(\"tabindex\") || \"\";\n candidate.setAttribute(\"tabindex\", \"-1\");\n });\n return () => {\n candidates.forEach((candidate) => {\n const prevTabIndex = candidate.dataset.tabindex;\n candidate.setAttribute(\"tabindex\", prevTabIndex);\n });\n };\n}\nfunction useResizeObserver(element, onResize) {\n const handleResize = useCallbackRef(onResize);\n useLayoutEffect(() => {\n let rAF = 0;\n if (element) {\n const resizeObserver = new ResizeObserver(() => {\n cancelAnimationFrame(rAF);\n rAF = window.requestAnimationFrame(handleResize);\n });\n resizeObserver.observe(element);\n return () => {\n window.cancelAnimationFrame(rAF);\n resizeObserver.unobserve(element);\n };\n }\n }, [element, handleResize]);\n}\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\nfunction makeTriggerId(baseId, value) {\n return `${baseId}-trigger-${value}`;\n}\nfunction makeContentId(baseId, value) {\n return `${baseId}-content-${value}`;\n}\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\nvar Root2 = NavigationMenu;\nvar Sub = NavigationMenuSub;\nvar List = NavigationMenuList;\nvar Item = NavigationMenuItem;\nvar Trigger = NavigationMenuTrigger;\nvar Link = NavigationMenuLink;\nvar Indicator = NavigationMenuIndicator;\nvar Content = NavigationMenuContent;\nvar Viewport = NavigationMenuViewport;\nexport {\n Content,\n Indicator,\n Item,\n Link,\n List,\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuIndicator,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuSub,\n NavigationMenuTrigger,\n NavigationMenuViewport,\n Root2 as Root,\n Sub,\n Trigger,\n Viewport,\n createNavigationMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NAVIGATION_MENU_NAME","Collection","useCollection","createCollectionScope","createCollection","FocusGroupCollection","useFocusGroupCollection","createFocusGroupCollectionScope","createNavigationMenuContext","createNavigationMenuScope","createContextScope","NavigationMenuProviderImpl","useNavigationMenuContext","ViewportContentProvider","useViewportContentContext","NavigationMenu","React","forwardRef","props","forwardedRef","__scopeNavigationMenu","value","valueProp","onValueChange","defaultValue","delayDuration","skipDelayDuration","orientation","dir","NavigationMenuProps","navigationMenu","setNavigationMenu","useState","composedRef","useComposedRefs","node","direction","useDirection","openTimerRef","useRef","closeTimerRef","skipDelayTimerRef","isOpenDelayed","setIsOpenDelayed","setValue","useControllableState","prop","onChange","value2","hasSkipDelayDuration","window","clearTimeout","current","setTimeout","defaultProp","startCloseTimer","useCallback","handleOpen","itemValue","handleDelayedOpen","useEffect","jsx","NavigationMenuProvider","scope","isRootMenu","rootNavigationMenu","onTriggerEnter","onTriggerLeave","onContentEnter","onContentLeave","onItemSelect","prevValue","onItemDismiss","children","Primitive","nav","ref","displayName","SUB_NAME","NavigationMenuSub","subProps","context","div","viewport","setViewport","viewportContent","setViewportContent","Map","indicatorTrack","setIndicatorTrack","previousValue","usePrevious","baseId","useId","onViewportChange","onIndicatorTrackChange","useCallbackRef","onViewportContentChange","contentValue","contentData","prevContent","set","onViewportContentRemove","has","delete","Provider","items","LIST_NAME","NavigationMenuList","listProps","list","ul","style","position","Slot","FocusGroup","asChild","ITEM_NAME","NavigationMenuItemContextProvider","useNavigationMenuItemContext","NavigationMenuItem","itemProps","autoValue","contentRef","triggerRef","focusProxyRef","restoreContentTabOrderRef","wasEscapeCloseRef","handleContentEntry","side","candidates","getTabbableCandidates","length","focusFirst","reverse","handleContentExit","forEach","candidate","dataset","tabindex","getAttribute","setAttribute","prevTabIndex","removeFromTabOrder","onEntryKeyDown","onFocusProxyEnter","onRootContentClose","onContentFocusOutside","li","TRIGGER_NAME","NavigationMenuTrigger","disabled","triggerProps","itemContext","composedRefs","triggerId","makeTriggerId","contentId","makeContentId","hasPointerMoveOpenedRef","wasClickCloseRef","open","jsxs","Fragment","ItemSlot","FocusGroupItem","button","id","getOpenState","onPointerEnter","composeEventHandlers","onPointerMove","whenMouse","onPointerLeave","onClick","onKeyDown","event","entryKey","horizontal","vertical","key","preventDefault","VisuallyHiddenPrimitive.Root","tabIndex","onFocus","content","prevFocusedElement","relatedTarget","wasTriggerFocused","wasFocusFromContent","contains","LINK_SELECT","NavigationMenuLink","active","onSelect","linkProps","a","target","linkSelectEvent","CustomEvent","bubbles","cancelable","addEventListener","event2","once","dispatchDiscreteCustomEvent","defaultPrevented","metaKey","rootContentDismissEvent","ROOT_CONTENT_DISMISS","checkForDefaultPrevented","INDICATOR_NAME","NavigationMenuIndicator","forceMount","indicatorProps","isVisible","Boolean","ReactDOM","createPortal","Presence","present","NavigationMenuIndicatorImpl","getItems","activeTrigger","setActiveTrigger","setPosition","isHorizontal","triggerNode","find","item","handlePositionChange","size","offsetWidth","offsetHeight","offset","offsetLeft","offsetTop","useResizeObserver","left","width","transform","top","height","CONTENT_NAME","NavigationMenuContent","contentProps","commonProps","ViewportContentMounter","NavigationMenuContentImpl","pointerEvents","useLayoutEffect","prevMotionAttributeRef","handleClose","document","activeElement","focus","removeEventListener","motionAttribute","useMemo","values","map","index","indexOf","prevIndex","isSelected","wasSelected","attribute","DismissableLayer","disableOutsidePointerEvents","onDismiss","Event","dispatchEvent","onFocusOutside","onPointerDownOutside","isTrigger","some","isRootViewport","isMetaKey","altKey","ctrlKey","currentTarget","focusedElement","findIndex","shiftKey","slice","onEscapeKeyDown","VIEWPORT_NAME","NavigationMenuViewport","viewportProps","NavigationMenuViewportImpl","viewportImplProps","viewportContentContext","setSize","setContent","viewportWidth","viewportHeight","activeContentValue","Array","from","props2","isActive","composeRefs","groupProps","ARROW_KEYS","includes","candidateNodes","currentIndex","container","nodes","walker","createTreeWalker","NodeFilter","SHOW_ELEMENT","acceptNode","isHiddenInput","tagName","type","hidden","FILTER_SKIP","FILTER_ACCEPT","nextNode","push","currentNode","previouslyFocusedElement","element","onResize","handleResize","rAF","resizeObserver","ResizeObserver","cancelAnimationFrame","requestAnimationFrame","observe","unobserve","handler","pointerType","Root2","List","Item","Trigger","Link","Indicator","Content","Viewport"],"mappings":"6qCAoBA,IAAIA,EAAuB,kBACtBC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAsBC,EAAyBC,GAAmCH,EAAiBJ,IACnGQ,EAA6BC,GAA6BC,EAC7DV,EACA,CAACG,EAAuBI,KAErBI,EAA4BC,GAA4BJ,EAA4BR,IACpFa,EAAyBC,GAA6BN,EAA4BR,GACnFe,EAAiBC,EAAMC,YACzB,CAACC,EAAOC,KACN,MAAMC,sBACJA,EACAC,MAAOC,EAASC,cAChBA,EAAaC,aACbA,EAAYC,cACZA,EAAgB,IAAGC,kBACnBA,EAAoB,IAAGC,YACvBA,EAAc,aAAYC,IAC1BA,KACGC,GACDX,GACGY,EAAgBC,GAAqBf,EAAMgB,SAAS,MACrDC,EAAcC,EAAgBf,GAAegB,GAASJ,EAAkBI,KACxEC,EAAYC,EAAaT,GACzBU,EAAetB,EAAMuB,OAAO,GAC5BC,EAAgBxB,EAAMuB,OAAO,GAC7BE,EAAoBzB,EAAMuB,OAAO,IAChCG,EAAeC,GAAoB3B,EAAMgB,UAAS,IAClDX,EAAQ,GAAIuB,GAAYC,EAAqB,CAClDC,KAAMxB,EACNyB,SAAWC,IACT,MACMC,EAAuBvB,EAAoB,EADvB,KAAXsB,GAGbE,OAAOC,aAAaV,EAAkBW,SAClCH,GAAsBN,GAAiB,KAE3CO,OAAOC,aAAaV,EAAkBW,SACtCX,EAAkBW,QAAUF,OAAOG,YACjC,IAAMV,GAAiB,IACvBjB,IAGJH,IAAgByB,EAAO,EAEzBM,YAAa9B,IAET+B,EAAkBvC,EAAMwC,aAAY,KACxCN,OAAOC,aAAaX,EAAcY,SAClCZ,EAAcY,QAAUF,OAAOG,YAAW,IAAMT,EAAS,KAAK,IAAI,GACjE,CAACA,IAC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ASL,GAAchE,EAAQvE,GAC7B,MAAO,GAAGuE,aAAkBvE,GAC9B,CACA,SAASyI,GAAclE,EAAQvE,GAC7B,MAAO,GAAGuE,aAAkBvE,GAC9B,CACA,SAASuJ,GAAUkK,GACjB,OAAQ9J,GAAgC,UAAtBA,EAAM+J,YAA0BD,EAAQ9J,QAAS,CACrE,CACG,IAACgK,GAAQjU,EAERkU,GAAOrO,EACPsO,GAAO1N,EACP2N,GAAU7L,EACV8L,GAAOpJ,EACPqJ,GAAYjI,EACZkI,GAAUlG,EACVmG,GAAWxD"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{useFloating as t,arrow as r}from"../../../@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.js";import{Root as o}from"../../react-arrow/dist/index.mjs.js";import{useComposedRefs as i}from"../../react-compose-refs/dist/index.mjs.js";import{createContextScope as a}from"../../react-context/dist/index.mjs.js";import{Primitive as n}from"../../react-primitive/dist/index.mjs.js";import{useCallbackRef as s}from"../../react-use-callback-ref/dist/index.mjs.js";import{useLayoutEffect as d}from"../../react-use-layout-effect/dist/index.mjs.js";import{useSize as l}from"../../react-use-size/dist/index.mjs.js";import{j as p}from"../../../../_virtual/jsx-runtime.js";import{autoUpdate as m,shift as c,limitShift as f,flip as h,size as g,hide as u}from"../../../@floating-ui/dom/dist/floating-ui.dom.mjs.js";import{offset as x}from"../../../@floating-ui/core/dist/floating-ui.core.mjs.js";var y="Popper",[w,j]=a(y),[v,b]=w(y),P=t=>{const{__scopePopper:r,children:o}=t,[i,a]=e.useState(null);return p.jsx(v,{scope:r,anchor:i,onAnchorChange:a,children:o})};P.displayName=y;var A="PopperAnchor",S=e.forwardRef(((t,r)=>{const{__scopePopper:o,virtualRef:a,...s}=t,d=b(A,o),l=e.useRef(null),m=i(r,l);return e.useEffect((()=>{d.onAnchorChange(a?.current||l.current)})),a?null:p.jsx(n.div,{...s,ref:m})}));S.displayName=A;var $="PopperContent",[_,O]=w($),C=e.forwardRef(((o,a)=>{const{__scopePopper:y,side:w="bottom",sideOffset:j=0,align:v="center",alignOffset:P=0,arrowPadding:A=0,avoidCollisions:S=!0,collisionBoundary:O=[],collisionPadding:C=0,sticky:H="partial",hideWhenDetached:R=!1,updatePositionStrategy:W="optimized",onPlaced:N,...X}=o,k=b($,y),[D,B]=e.useState(null),F=i(a,(e=>B(e))),[I,L]=e.useState(null),M=l(I),q=M?.width??0,G=M?.height??0,J=w+("center"!==v?"-"+v:""),K="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},Q=Array.isArray(O)?O:[O],T=Q.length>0,U={padding:K,boundary:Q.filter(Y),altBoundary:T},{refs:V,floatingStyles:Z,placement:ee,isPositioned:te,middlewareData:re}=t({strategy:"fixed",placement:J,whileElementsMounted:(...e)=>m(...e,{animationFrame:"always"===W}),elements:{reference:k.anchor},middleware:[x({mainAxis:j+G,alignmentAxis:P}),S&&c({mainAxis:!0,crossAxis:!1,limiter:"partial"===H?f():void 0,...U}),S&&h({...U}),g({...U,apply:({elements:e,rects:t,availableWidth:r,availableHeight:o})=>{const{width:i,height:a}=t.reference,n=e.floating.style;n.setProperty("--radix-popper-available-width",`${r}px`),n.setProperty("--radix-popper-available-height",`${o}px`),n.setProperty("--radix-popper-anchor-width",`${i}px`),n.setProperty("--radix-popper-anchor-height",`${a}px`)}}),I&&r({element:I,padding:A}),z({arrowWidth:q,arrowHeight:G}),R&&u({strategy:"referenceHidden",...U})]}),[oe,ie]=E(ee),ae=s(N);d((()=>{te&&ae?.()}),[te,ae]);const ne=re.arrow?.x,se=re.arrow?.y,de=0!==re.arrow?.centerOffset,[le,pe]=e.useState();return d((()=>{D&&pe(window.getComputedStyle(D).zIndex)}),[D]),p.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:te?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(" "),...re.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:o.dir,children:p.jsx(_,{scope:y,placedSide:oe,onArrowChange:L,arrowX:ne,arrowY:se,shouldHideArrow:de,children:p.jsx(n.div,{"data-side":oe,"data-align":ie,...X,ref:F,style:{...X.style,animation:te?void 0:"none"}})})})}));C.displayName=$;var H="PopperArrow",R={top:"bottom",right:"left",bottom:"top",left:"right"},W=e.forwardRef((function(e,t){const{__scopePopper:r,...i}=e,a=O(H,r),n=R[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[n]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(o,{...i,ref:t,style:{...i.style,display:"block"}})})}));function Y(e){return null!==e}W.displayName=H;var z=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:o,middlewareData:i}=t,a=0!==i.arrow?.centerOffset,n=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[d,l]=E(r),p={start:"0%",center:"50%",end:"100%"}[l],m=(i.arrow?.x??0)+n/2,c=(i.arrow?.y??0)+s/2;let f="",h="";return"bottom"===d?(f=a?p:`${m}px`,h=-s+"px"):"top"===d?(f=a?p:`${m}px`,h=`${o.floating.height+s}px`):"right"===d?(f=-s+"px",h=a?p:`${c}px`):"left"===d&&(f=`${o.floating.width+s}px`,h=a?p:`${c}px`),{data:{x:f,y:h}}}});function E(e){const[t,r="center"]=e.split("-");return[t,r]}var N=P,X=S,k=C,D=W;export{X as Anchor,D as Arrow,k as Content,P as Popper,S as PopperAnchor,W as PopperArrow,C as PopperContent,N as Root,j as createPopperScope};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/Popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","useState","jsx","scope","onAnchorChange","displayName","ANCHOR_NAME","PopperAnchor","forwardRef","forwardedRef","virtualRef","anchorProps","context","ref","useRef","composedRefs","useComposedRefs","useEffect","current","Primitive","div","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","width","arrowHeight","height","desiredPlacement","top","right","bottom","left","boundary","Array","isArray","hasExplicitBoundaries","length","detectOverflowOptions","padding","filter","isNotNull","altBoundary","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","strategy","whileElementsMounted","args","autoUpdate","animationFrame","elements","reference","middleware","offset","mainAxis","alignmentAxis","shift","crossAxis","limiter","limitShift","flip","size","apply","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floating","style","setProperty","floatingUIarrow","element","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","x","arrowY","y","cannotCenterArrow","centerOffset","contentZIndex","setContentZIndex","window","getComputedStyle","zIndex","setFloating","transform","minWidth","join","referenceHidden","visibility","pointerEvents","dir","onArrowChange","shouldHideArrow","animation","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","position","ArrowPrimitive.Root","display","value","options","name","fn","data","isArrowHidden","noArrowAlign","start","center","end","arrowXCenter","arrowYCenter","split","Root2","Anchor","Content","Arrow"],"mappings":"k5BAyBA,IAAIA,EAAc,UACbC,EAAqBC,GAAqBC,EAAmBH,IAC7DI,EAAgBC,GAAoBJ,EAAoBD,GACzDM,EAAUC,IACZ,MAAMC,cAAEA,EAAaC,SAAEA,GAAaF,GAC7BG,EAAQC,GAAaC,EAAMC,SAAS,MAC3C,OAAuBC,EAAGA,IAACV,EAAgB,CAAEW,MAAOP,EAAeE,SAAQM,eAAgBL,EAAWF,Y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9J,EACR+J,EAASlJ,EACTmJ,EAAUlI,EACVmI,EAAQvB"}
@@ -0,0 +1,2 @@
1
+ import*as t from"react";import r from"react-dom";import{Primitive as e}from"../../react-primitive/dist/index.mjs.js";import{useLayoutEffect as o}from"../../react-use-layout-effect/dist/index.mjs.js";import{j as a}from"../../../../_virtual/jsx-runtime.js";var s=t.forwardRef(((s,i)=>{const{container:m,...f}=s,[c,d]=t.useState(!1);o((()=>d(!0)),[]);const n=m||c&&globalThis?.document?.body;return n?r.createPortal(a.jsx(e.div,{...f,ref:i}),n):null}));s.displayName="Portal";export{s as Portal};
2
+ //# sourceMappingURL=index.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/src/Portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Portal","React","forwardRef","props","forwardedRef","container","containerProp","portalProps","mounted","setMounted","useState","useLayoutEffect","globalThis","document","body","ReactDOM","createPortal","jsx","Primitive","div","ref","displayName"],"mappings":"+PAQA,IACIA,EAASC,EAAMC,YAAW,CAACC,EAAOC,KACpC,MAAQC,UAAWC,KAAkBC,GAAgBJ,GAC9CK,EAASC,GAAcR,EAAMS,UAAS,GAC7CC,GAAgB,IAAMF,GAAW,IAAO,IACxC,MAAMJ,EAAYC,GAAiBE,GAAWI,YAAYC,UAAUC,KACpE,OAAOT,EAAYU,EAASC,aAA6BC,EAAGA,IAACC,EAAUC,IAAK,IAAKZ,EAAaa,IAAKhB,IAAiBC,GAAa,IAAI,IAEvIL,EAAOqB,YARW"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import*as n from"react-dom";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs.js";import{useLayoutEffect as r}from"../../react-use-layout-effect/dist/index.mjs.js";var o=o=>{const{present:i,children:s}=o,a=function(t){const[o,i]=e.useState(),s=e.useRef({}),a=e.useRef(t),c=e.useRef("none"),m=t?"mounted":"unmounted",[f,d]=function(n,t){return e.useReducer(((e,n)=>t[e][n]??e),n)}(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=u(s.current);c.current="mounted"===f?e:"none"}),[f]),r((()=>{const e=s.current,n=a.current;if(n!==t){const r=c.current,o=u(e);if(t)d("MOUNT");else if("none"===o||"none"===e?.display)d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=t}}),[t,d]),r((()=>{if(o){const e=e=>{const t=u(s.current).includes(e.animationName);e.target===o&&t&&n.flushSync((()=>d("ANIMATION_END")))},t=e=>{e.target===o&&(c.current=u(s.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}d("ANIMATION_END")}),[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:e.useCallback((e=>{e&&(s.current=getComputedStyle(e)),i(e)}),[])}}(i),c="function"==typeof s?s({present:a.isPresent}):e.Children.only(s),m=t(a.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(c));return"function"==typeof s||a.isPresent?e.cloneElement(c,{ref:m}):null};function u(e){return e?.animationName||"none"}o.displayName="Presence";export{o as Presence};
2
+ //# sourceMappingURL=index.mjs.js.map