@lotte-innovate/ui-component-test 0.1.91 → 0.1.93

Sign up to get free protection for your applications and to get access to all the features.
Files changed (490) hide show
  1. package/dist/globals.css +2 -2
  2. package/dist/lib/Typography/Header/index.mjs +1 -1
  3. package/dist/lib/Typography/Header/index.mjs.map +1 -1
  4. package/dist/lib/Typography/Text/index.mjs +1 -1
  5. package/dist/lib/Typography/Text/index.mjs.map +1 -1
  6. package/dist/lib/components/Accordion/index.mjs +1 -1
  7. package/dist/lib/components/Accordion/index.mjs.map +1 -1
  8. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +1 -1
  9. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -1
  10. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +1 -1
  11. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -1
  12. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +1 -1
  13. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -1
  14. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +1 -1
  15. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -1
  16. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +1 -1
  17. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -1
  18. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +1 -1
  19. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -1
  20. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +1 -1
  21. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -1
  22. package/dist/lib/components/AlertDialog/index.d.ts +0 -1
  23. package/dist/lib/components/AspectRatio/index.mjs +1 -1
  24. package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
  25. package/dist/lib/components/Avatar/index.mjs +1 -1
  26. package/dist/lib/components/Avatar/index.mjs.map +1 -1
  27. package/dist/lib/components/Badge/index.mjs +1 -1
  28. package/dist/lib/components/Badge/index.mjs.map +1 -1
  29. package/dist/lib/components/BarChart/index.mjs +1 -1
  30. package/dist/lib/components/BarChart/index.mjs.map +1 -1
  31. package/dist/lib/components/BubbleChart/index.mjs +1 -1
  32. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  33. package/dist/lib/components/Button/index.mjs +1 -1
  34. package/dist/lib/components/Button/index.mjs.map +1 -1
  35. package/dist/lib/components/Callout/CalloutIcon.mjs +1 -1
  36. package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -1
  37. package/dist/lib/components/Callout/CalloutRoot.mjs +1 -1
  38. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
  39. package/dist/lib/components/Callout/CalloutText.mjs +1 -1
  40. package/dist/lib/components/Callout/CalloutText.mjs.map +1 -1
  41. package/dist/lib/components/Callout/index.d.ts +0 -1
  42. package/dist/lib/components/Card/index.mjs +1 -1
  43. package/dist/lib/components/Card/index.mjs.map +1 -1
  44. package/dist/lib/components/Checkbox/index.mjs +1 -1
  45. package/dist/lib/components/Checkbox/index.mjs.map +1 -1
  46. package/dist/lib/components/CheckboxCard/index.mjs +1 -1
  47. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
  48. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +1 -1
  49. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -1
  50. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
  51. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
  52. package/dist/lib/components/CheckboxGroup/index.d.ts +1 -2
  53. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +1 -1
  54. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -1
  55. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +1 -1
  56. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -1
  57. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs +1 -1
  58. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
  59. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +1 -1
  60. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -1
  61. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +1 -1
  62. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -1
  63. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +1 -1
  64. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -1
  65. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +1 -1
  66. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -1
  67. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +1 -1
  68. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -1
  69. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +1 -1
  70. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -1
  71. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +1 -1
  72. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
  73. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +1 -1
  74. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -1
  75. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +1 -1
  76. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -1
  77. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +1 -1
  78. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
  79. package/dist/lib/components/ContextMenu/index.d.ts +0 -1
  80. package/dist/lib/components/DataList/DataListItem.mjs +1 -1
  81. package/dist/lib/components/DataList/DataListItem.mjs.map +1 -1
  82. package/dist/lib/components/DataList/DataListLabel.mjs +1 -1
  83. package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -1
  84. package/dist/lib/components/DataList/DataListRoot.mjs +1 -1
  85. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
  86. package/dist/lib/components/DataList/DataListValue.mjs +1 -1
  87. package/dist/lib/components/DataList/DataListValue.mjs.map +1 -1
  88. package/dist/lib/components/DataList/index.d.ts +0 -1
  89. package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
  90. package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -1
  91. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
  92. package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -1
  93. package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
  94. package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -1
  95. package/dist/lib/components/Dialog/DialogDescription.mjs +1 -1
  96. package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -1
  97. package/dist/lib/components/Dialog/DialogRoot.mjs +1 -1
  98. package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -1
  99. package/dist/lib/components/Dialog/DialogSlot.mjs +1 -1
  100. package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -1
  101. package/dist/lib/components/Dialog/DialogTitle.mjs +1 -1
  102. package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -1
  103. package/dist/lib/components/Dialog/DialogTrigger.mjs +1 -1
  104. package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
  105. package/dist/lib/components/Dialog/index.d.ts +1 -2
  106. package/dist/lib/components/DoughnutChart/index.mjs +1 -1
  107. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
  108. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs +1 -1
  109. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
  110. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +1 -1
  111. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -1
  112. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +1 -1
  113. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -1
  114. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +1 -1
  115. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -1
  116. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +1 -1
  117. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  118. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -1
  119. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -1
  120. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +1 -1
  121. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -1
  122. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +1 -1
  123. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -1
  124. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +1 -1
  125. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  126. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +1 -1
  127. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
  128. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs +1 -1
  129. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
  130. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +1 -1
  131. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -1
  132. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
  133. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -1
  134. package/dist/lib/components/DropdownMenu/index.d.ts +1 -2
  135. package/dist/lib/components/HoverCard/HoverCardContent.mjs +1 -1
  136. package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -1
  137. package/dist/lib/components/HoverCard/HoverCardRoot.mjs +1 -1
  138. package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -1
  139. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs +1 -1
  140. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
  141. package/dist/lib/components/HoverCard/index.d.ts +1 -2
  142. package/dist/lib/components/IconButton/index.mjs +1 -1
  143. package/dist/lib/components/IconButton/index.mjs.map +1 -1
  144. package/dist/lib/components/Inset/index.mjs +1 -1
  145. package/dist/lib/components/Inset/index.mjs.map +1 -1
  146. package/dist/lib/components/Label/index.mjs +1 -1
  147. package/dist/lib/components/Label/index.mjs.map +1 -1
  148. package/dist/lib/components/LineChart/index.mjs +1 -1
  149. package/dist/lib/components/LineChart/index.mjs.map +1 -1
  150. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +1 -1
  151. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -1
  152. package/dist/lib/components/Menubar/MenubarContent.mjs +1 -1
  153. package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -1
  154. package/dist/lib/components/Menubar/MenubarItem.mjs +1 -1
  155. package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -1
  156. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +1 -1
  157. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -1
  158. package/dist/lib/components/Menubar/MenubarMenu.mjs +1 -1
  159. package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
  160. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +1 -1
  161. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -1
  162. package/dist/lib/components/Menubar/MenubarRadioItem.mjs +1 -1
  163. package/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -1
  164. package/dist/lib/components/Menubar/MenubarRoot.mjs +1 -1
  165. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
  166. package/dist/lib/components/Menubar/MenubarSeparator.mjs +1 -1
  167. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
  168. package/dist/lib/components/Menubar/MenubarSub.mjs +1 -1
  169. package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
  170. package/dist/lib/components/Menubar/MenubarSubContent.mjs +1 -1
  171. package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -1
  172. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs +1 -1
  173. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -1
  174. package/dist/lib/components/Menubar/MenubarTrigger.mjs +1 -1
  175. package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -1
  176. package/dist/lib/components/Menubar/index.d.ts +0 -1
  177. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +1 -1
  178. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -1
  179. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +1 -1
  180. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
  181. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs +1 -1
  182. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
  183. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +1 -1
  184. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -1
  185. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +1 -1
  186. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -1
  187. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +1 -1
  188. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -1
  189. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +1 -1
  190. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -1
  191. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +1 -1
  192. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -1
  193. package/dist/lib/components/NavigationMenu/index.d.ts +0 -1
  194. package/dist/lib/components/PieChart/index.mjs +1 -1
  195. package/dist/lib/components/PieChart/index.mjs.map +1 -1
  196. package/dist/lib/components/Popover/PopoverClose.mjs +1 -1
  197. package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -1
  198. package/dist/lib/components/Popover/PopoverContent.mjs +1 -1
  199. package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -1
  200. package/dist/lib/components/Popover/PopoverRoot.mjs +1 -1
  201. package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -1
  202. package/dist/lib/components/Popover/PopoverTrigger.mjs +1 -1
  203. package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
  204. package/dist/lib/components/Popover/index.d.ts +1 -2
  205. package/dist/lib/components/Progress/index.mjs +1 -1
  206. package/dist/lib/components/Progress/index.mjs.map +1 -1
  207. package/dist/lib/components/RadarChart/index.mjs +1 -1
  208. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  209. package/dist/lib/components/Radio/index.mjs +1 -1
  210. package/dist/lib/components/Radio/index.mjs.map +1 -1
  211. package/dist/lib/components/RadioCards/RadioCardsItem.mjs +1 -1
  212. package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -1
  213. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +1 -1
  214. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
  215. package/dist/lib/components/RadioCards/index.d.ts +0 -1
  216. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +1 -1
  217. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -1
  218. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +1 -1
  219. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
  220. package/dist/lib/components/RadioGroup/index.d.ts +0 -1
  221. package/dist/lib/components/ScrollArea/index.mjs +1 -1
  222. package/dist/lib/components/ScrollArea/index.mjs.map +1 -1
  223. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs +1 -1
  224. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
  225. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
  226. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
  227. package/dist/lib/components/SegmentedControl/index.d.ts +1 -2
  228. package/dist/lib/components/Select/index.mjs +1 -1
  229. package/dist/lib/components/Select/index.mjs.map +1 -1
  230. package/dist/lib/components/Separator/index.mjs +1 -1
  231. package/dist/lib/components/Separator/index.mjs.map +1 -1
  232. package/dist/lib/components/Skeleton/index.mjs +1 -1
  233. package/dist/lib/components/Skeleton/index.mjs.map +1 -1
  234. package/dist/lib/components/Slider/index.mjs +1 -1
  235. package/dist/lib/components/Slider/index.mjs.map +1 -1
  236. package/dist/lib/components/Spinner/index.mjs +1 -1
  237. package/dist/lib/components/Spinner/index.mjs.map +1 -1
  238. package/dist/lib/components/TabNav/index.mjs +1 -1
  239. package/dist/lib/components/TabNav/index.mjs.map +1 -1
  240. package/dist/lib/components/Table/index.mjs +1 -1
  241. package/dist/lib/components/Table/index.mjs.map +1 -1
  242. package/dist/lib/components/Tabs/index.mjs +1 -1
  243. package/dist/lib/components/Tabs/index.mjs.map +1 -1
  244. package/dist/lib/components/TextArea/index.mjs +1 -1
  245. package/dist/lib/components/TextArea/index.mjs.map +1 -1
  246. package/dist/lib/components/TextField/index.mjs +1 -1
  247. package/dist/lib/components/TextField/index.mjs.map +1 -1
  248. package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
  249. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
  250. package/dist/lib/components/Toast/ToastDescription.mjs +1 -1
  251. package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -1
  252. package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
  253. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
  254. package/dist/lib/components/Toast/ToastTitle.mjs +1 -1
  255. package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -1
  256. package/dist/lib/components/Toast/index.d.ts +0 -1
  257. package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
  258. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
  259. package/dist/lib/components/Toggle/index.mjs +1 -1
  260. package/dist/lib/components/Toggle/index.mjs.map +1 -1
  261. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +1 -1
  262. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -1
  263. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +1 -1
  264. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
  265. package/dist/lib/components/ToggleGroup/index.d.ts +0 -1
  266. package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
  267. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
  268. package/dist/lib/components/Tooltip/index.mjs +1 -1
  269. package/dist/lib/components/Tooltip/index.mjs.map +1 -1
  270. package/dist/lib/constants.d.ts +2 -2
  271. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs +1 -1
  272. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +1 -1
  273. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs +1 -1
  274. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.map +1 -1
  275. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  276. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  277. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
  278. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
  279. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
  280. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
  281. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
  282. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
  283. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
  284. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
  285. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  286. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  287. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs +1 -1
  288. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +1 -1
  289. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs +1 -1
  290. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.map +1 -1
  291. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs +1 -1
  292. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.map +1 -1
  293. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  294. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  295. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs +1 -1
  296. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -1
  297. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs +1 -1
  298. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +1 -1
  299. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs +1 -1
  300. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.map +1 -1
  301. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  302. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  303. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs +1 -1
  304. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -1
  305. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs +1 -1
  306. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.map +1 -1
  307. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  308. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  309. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
  310. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
  311. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
  312. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
  313. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-menu/dist/index.mjs +2 -0
  314. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -0
  315. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
  316. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
  317. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  318. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  319. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs +1 -1
  320. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.map +1 -1
  321. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +1 -1
  322. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -1
  323. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +1 -1
  324. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +1 -1
  325. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +1 -1
  326. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -1
  327. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +1 -1
  328. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +1 -1
  329. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs +1 -1
  330. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.map +1 -1
  331. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +1 -1
  332. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -1
  333. package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs +1 -1
  334. package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.map +1 -1
  335. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +1 -1
  336. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -1
  337. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs +1 -1
  338. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.map +1 -1
  339. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  340. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  341. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs +1 -1
  342. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -1
  343. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs +1 -1
  344. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -1
  345. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs +1 -1
  346. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +1 -1
  347. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs +1 -1
  348. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.map +1 -1
  349. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  350. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  351. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +1 -1
  352. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +1 -1
  353. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  354. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  355. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs +1 -1
  356. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.map +1 -1
  357. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  358. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  359. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  360. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  361. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs +1 -1
  362. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.map +1 -1
  363. package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs +1 -1
  364. package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.map +1 -1
  365. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs +1 -1
  366. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.map +1 -1
  367. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +1 -1
  368. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.map +1 -1
  369. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  370. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  371. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs +1 -1
  372. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -1
  373. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +1 -1
  374. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +1 -1
  375. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +1 -1
  376. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +1 -1
  377. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +1 -1
  378. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -1
  379. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs +1 -1
  380. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs.map +1 -1
  381. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +1 -1
  382. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -1
  383. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs +1 -1
  384. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs.map +1 -1
  385. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +1 -1
  386. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -1
  387. package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs +1 -1
  388. package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs.map +1 -1
  389. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +1 -1
  390. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -1
  391. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +1 -1
  392. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -1
  393. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +1 -1
  394. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -1
  395. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +1 -1
  396. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -1
  397. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +1 -1
  398. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -1
  399. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +1 -1
  400. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -1
  401. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +1 -1
  402. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -1
  403. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +1 -1
  404. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -1
  405. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +1 -1
  406. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -1
  407. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs +1 -1
  408. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs.map +1 -1
  409. package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs +1 -1
  410. package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs.map +1 -1
  411. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs +2 -0
  412. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -0
  413. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  414. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  415. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
  416. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
  417. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
  418. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
  419. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
  420. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
  421. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs +2 -0
  422. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +1 -0
  423. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +2 -0
  424. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -0
  425. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +1 -1
  426. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -1
  427. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
  428. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
  429. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  430. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  431. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-radio-group/dist/index.mjs +2 -0
  432. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +1 -0
  433. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs +2 -0
  434. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -0
  435. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs +2 -0
  436. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs.map +1 -0
  437. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs +2 -0
  438. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs.map +1 -0
  439. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs +2 -0
  440. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +1 -0
  441. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs +2 -0
  442. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -0
  443. package/dist/node_modules/chart.js/dist/chart.mjs +3 -3
  444. package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -1
  445. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs +3 -3
  446. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs.map +1 -1
  447. package/dist/tsconfig.tsbuildinfo +1 -1
  448. package/package.json +7 -1
  449. package/dist/_virtual/jsx-runtime.mjs +0 -2
  450. package/dist/_virtual/jsx-runtime.mjs.map +0 -1
  451. package/dist/_virtual/jsx-runtime2.mjs +0 -2
  452. package/dist/_virtual/jsx-runtime2.mjs.map +0 -1
  453. package/dist/_virtual/react-jsx-runtime.development.mjs +0 -2
  454. package/dist/_virtual/react-jsx-runtime.development.mjs.map +0 -1
  455. package/dist/_virtual/react-jsx-runtime.production.min.mjs +0 -2
  456. package/dist/_virtual/react-jsx-runtime.production.min.mjs.map +0 -1
  457. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -2
  458. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.map +0 -1
  459. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -2
  460. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.map +0 -1
  461. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +0 -2
  462. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.map +0 -1
  463. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -2
  464. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.map +0 -1
  465. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -2
  466. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.map +0 -1
  467. package/dist/node_modules/@kurkle/color/dist/color.esm.mjs +0 -8
  468. package/dist/node_modules/@kurkle/color/dist/color.esm.mjs.map +0 -1
  469. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +0 -2
  470. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +0 -1
  471. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs +0 -2
  472. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +0 -1
  473. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs +0 -2
  474. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +0 -1
  475. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +0 -2
  476. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +0 -1
  477. package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs +0 -2
  478. package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.map +0 -1
  479. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs +0 -2
  480. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.map +0 -1
  481. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs +0 -2
  482. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +0 -1
  483. package/dist/node_modules/chart.js/auto/auto.mjs +0 -2
  484. package/dist/node_modules/chart.js/auto/auto.mjs.map +0 -1
  485. package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +0 -11
  486. package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs.map +0 -1
  487. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +0 -11
  488. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs.map +0 -1
  489. package/dist/node_modules/react/jsx-runtime.mjs +0 -2
  490. package/dist/node_modules/react/jsx-runtime.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as r}from"../../react-context/dist/index.mjs";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs";import{useControllableState as o}from"../../react-use-controllable-state/dist/index.mjs";import{usePrevious as s}from"../../react-use-previous/dist/index.mjs";import{useSize as i}from"../../react-use-size/dist/index.mjs";import{Presence as a}from"../../react-presence/dist/index.mjs";import{Primitive as c}from"../../react-primitive/dist/index.mjs";import{j as d}from"../../../../_virtual/jsx-runtime.mjs";var l="Checkbox",[m,u]=r(l),[p,f]=m(l),b=e.forwardRef(((r,s)=>{const{__scopeCheckbox:i,name:a,checked:l,defaultChecked:m,required:u,disabled:f,value:b="on",onCheckedChange:x,...h}=r,[y,C]=e.useState(null),E=t(s,(e=>C(e))),w=e.useRef(!1),g=!y||Boolean(y.closest("form")),[R=!1,_]=o({prop:l,defaultProp:m,onChange:x}),D=e.useRef(R);return e.useEffect((()=>{const e=y?.form;if(e){const t=()=>_(D.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[y,_]),d.jsxs(p,{scope:i,state:R,disabled:f,children:[d.jsx(c.button,{type:"button",role:"checkbox","aria-checked":k(R)?"mixed":R,"aria-required":u,"data-state":j(R),"data-disabled":f?"":void 0,disabled:f,value:b,...h,ref:E,onKeyDown:n(r.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:n(r.onClick,(e=>{_((e=>!!k(e)||!e)),g&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())}))}),g&&d.jsx(v,{control:y,bubbles:!w.current,name:a,value:b,checked:R,required:u,disabled:f,style:{transform:"translateX(-100%)"}})]})}));b.displayName=l;var x="CheckboxIndicator",h=e.forwardRef(((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,s=f(x,r);return d.jsx(a,{present:n||k(s.state)||!0===s.state,children:d.jsx(c.span,{"data-state":j(s.state),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})}));h.displayName=x;var v=t=>{const{control:r,checked:n,bubbles:o=!0,...a}=t,c=e.useRef(null),l=s(n),m=i(r);return e.useEffect((()=>{const e=c.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==n&&r){const t=new Event("click",{bubbles:o});e.indeterminate=k(n),r.call(e,!k(n)&&n),e.dispatchEvent(t)}}),[l,n,o]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:!k(n)&&n,...a,tabIndex:-1,ref:c,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function k(e){return"indeterminate"===e}function j(e){return k(e)?"indeterminate":e?"checked":"unchecked"}var y=b,C=h;export{b as Checkbox,h as CheckboxIndicator,C as Indicator,y as Root,u as createCheckboxScope};
1
+ import*as e from"react";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as r}from"../../react-context/dist/index.mjs";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs";import{useControllableState as o}from"../../react-use-controllable-state/dist/index.mjs";import{usePrevious as s}from"../../react-use-previous/dist/index.mjs";import{useSize as i}from"../../react-use-size/dist/index.mjs";import{Presence as a}from"../../react-presence/dist/index.mjs";import{Primitive as c}from"../../react-primitive/dist/index.mjs";import{jsxs as d,jsx as u}from"react/jsx-runtime";var m="Checkbox",[l,p]=r(m),[f,b]=l(m),h=e.forwardRef(((r,s)=>{const{__scopeCheckbox:i,name:a,checked:m,defaultChecked:l,required:p,disabled:b,value:h="on",onCheckedChange:k,form:v,...j}=r,[E,w]=e.useState(null),g=t(s,(e=>w(e))),R=e.useRef(!1),D=!E||(v||!!E.closest("form")),[P=!1,_]=o({prop:m,defaultProp:l,onChange:k}),q=e.useRef(P);return e.useEffect((()=>{const e=E?.form;if(e){const t=()=>_(q.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[E,_]),d(f,{scope:i,state:P,disabled:b,children:[u(c.button,{type:"button",role:"checkbox","aria-checked":y(P)?"mixed":P,"aria-required":p,"data-state":C(P),"data-disabled":b?"":void 0,disabled:b,value:h,...j,ref:g,onKeyDown:n(r.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:n(r.onClick,(e=>{_((e=>!!y(e)||!e)),D&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())}))}),D&&u(x,{control:E,bubbles:!R.current,name:a,value:h,checked:P,required:p,disabled:b,form:v,style:{transform:"translateX(-100%)"},defaultChecked:!y(l)&&l})]})}));h.displayName=m;var k="CheckboxIndicator",v=e.forwardRef(((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,s=b(k,r);return u(a,{present:n||y(s.state)||!0===s.state,children:u(c.span,{"data-state":C(s.state),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})}));v.displayName=k;var x=t=>{const{control:r,checked:n,bubbles:o=!0,defaultChecked:a,...c}=t,d=e.useRef(null),m=s(n),l=i(r);e.useEffect((()=>{const e=d.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(m!==n&&r){const t=new Event("click",{bubbles:o});e.indeterminate=y(n),r.call(e,!y(n)&&n),e.dispatchEvent(t)}}),[m,n,o]);const p=e.useRef(!y(n)&&n);return u("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a??p.current,...c,tabIndex:-1,ref:d,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function y(e){return"indeterminate"===e}function C(e){return y(e)?"indeterminate":e?"checked":"unchecked"}var j=h,E=v;export{h as Checkbox,v as CheckboxIndicator,E as Indicator,j as Root,p as createCheckboxScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-checkbox/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/checkbox/src/Checkbox.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar CHECKBOX_NAME = \"Checkbox\";\nvar [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\nvar [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);\nvar Checkbox = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCheckbox,\n name,\n checked: checkedProp,\n defaultChecked,\n required,\n disabled,\n value = \"on\",\n onCheckedChange,\n ...checkboxProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? Boolean(button.closest(\"form\")) : true;\n const [checked = false, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n const initialCheckedStateRef = React.useRef(checked);\n React.useEffect(() => {\n const form = button?.form;\n if (form) {\n const reset = () => setChecked(initialCheckedStateRef.current);\n form.addEventListener(\"reset\", reset);\n return () => form.removeEventListener(\"reset\", reset);\n }\n }, [button, setChecked]);\n return /* @__PURE__ */ jsxs(CheckboxProvider, { scope: __scopeCheckbox, state: checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...checkboxProps,\n ref: composedRefs,\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onClick: composeEventHandlers(props.onClick, (event) => {\n setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n BubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n style: { transform: \"translateX(-100%)\" }\n }\n )\n ] });\n }\n);\nCheckbox.displayName = CHECKBOX_NAME;\nvar INDICATOR_NAME = \"CheckboxIndicator\";\nvar CheckboxIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || isIndeterminate(context.state) || context.state === true, children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.state),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef,\n style: { pointerEvents: \"none\", ...props.style }\n }\n ) });\n }\n);\nCheckboxIndicator.displayName = INDICATOR_NAME;\nvar BubbleInput = (props) => {\n const { control, checked, bubbles = true, ...inputProps } = props;\n const ref = React.useRef(null);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, \"checked\");\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n input.indeterminate = isIndeterminate(checked);\n setChecked.call(input, isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: isIndeterminate(checked) ? false : checked,\n ...inputProps,\n tabIndex: -1,\n ref,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n};\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nvar Root = Checkbox;\nvar Indicator = CheckboxIndicator;\nexport {\n Checkbox,\n CheckboxIndicator,\n Indicator,\n Root,\n createCheckboxScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["CHECKBOX_NAME","createCheckboxContext","createCheckboxScope","createContextScope","CheckboxProvider","useCheckboxContext","Checkbox","React","forwardRef","props","forwardedRef","__scopeCheckbox","name","checked","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","checkboxProps","button","setButton","useState","composedRefs","useComposedRefs","node","hasConsumerStoppedPropagationRef","useRef","isFormControl","Boolean","closest","setChecked","useControllableState","prop","defaultProp","onChange","initialCheckedStateRef","useEffect","form","reset","current","addEventListener","removeEventListener","jsxs","scope","state","children","jsx","Primitive","type","role","isIndeterminate","getState","ref","onKeyDown","composeEventHandlers","event","key","preventDefault","onClick","prevChecked","isPropagationStopped","stopPropagation","BubbleInput","control","bubbles","style","transform","displayName","INDICATOR_NAME","CheckboxIndicator","forceMount","indicatorProps","context","Presence","present","span","pointerEvents","inputProps","usePrevious","controlSize","useSize","input","inputProto","window","HTMLInputElement","prototype","Object","getOwnPropertyDescriptor","set","Event","indeterminate","call","dispatchEvent","tabIndex","position","opacity","margin","Root","Indicator"],"mappings":"soBAaA,IAAIA,EAAgB,YACfC,EAAuBC,GAAuBC,EAAmBH,IACjEI,EAAkBC,GAAsBJ,EAAsBD,GAC/DM,EAAWC,EAAMC,YACnB,CAACC,EAAOC,KACN,MAAMC,gBACJA,EAAeC,KACfA,EACAC,QAASC,EAAWC,eACpBA,EAAcC,SACdA,EAAQC,SACRA,EAAQC,MACRA,EAAQ,KAAIC,gBACZA,KACGC,GACDX,GACGY,EAAQC,GAAaf,EAAMgB,SAAS,MACrCC,EAAeC,EAAgBf,GAAegB,GAASJ,EAAUI,KACjEC,EAAmCpB,EAAMqB,QAAO,GAChDC,GAAgBR,GAASS,QAAQT,EAAOU,QAAQ,UAC/ClB,GAAU,EAAOmB,GAAcC,EAAqB,CACzDC,KAAMpB,EACNqB,YAAapB,EACbqB,SAAUjB,IAENkB,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EAAU4B,KACV,CACE,aAAcxB,EAASqB,EAAQ5B,OAC/B,gBAAiB4B,EAAQzD,SAAW,QAAK,KACtCwD,EACHnB,IAAK5C,EACLyD,MAAO,CAAEW,cAAe,UAAWrE,EAAM0D,UAEzC,IAGRI,EAAkBF,YAAcC,EAChC,IAAIN,EAAevD,IACjB,MAAMwD,QAAEA,EAAOpD,QAAEA,EAAOqD,QAAEA,GAAU,KAASa,GAAetE,EACtD6C,EAAM/C,EAAMqB,OAAO,MACnBiC,EAAcmB,EAAYnE,GAC1BoE,EAAcC,EAAQjB,GAa5B,OAZA1D,EAAM+B,WAAU,KACd,MAAM6C,EAAQ7B,EAAIb,QACZ2C,EAAaC,OAAOC,iBAAiBC,UAErCvD,EADawD,OAAOC,yBAAyBL,EAAY,WACjCM,IAC9B,GAAI7B,IAAgBhD,GAAWmB,EAAY,CACzC,MAAMyB,EAAQ,IAAIkC,MAAM,QAAS,CAAEzB,YACnCiB,EAAMS,cAAgBxC,EAAgBvC,GACtCmB,EAAW6D,KAAKV,GAAO/B,EAAgBvC,IAAmBA,GAC1DsE,EAAMW,cAAcrC,EACrB,IACA,CAACI,EAAahD,EAASqD,IACHlB,EAAGA,IACxB,QACA,CACEE,KAAM,WACN,eAAe,EACfnC,gBAAgBqC,EAAgBvC,IAAmBA,KAChDkE,EACHgB,UAAW,EACXzC,MACAa,MAAO,IACF1D,EAAM0D,SACNc,EACHe,SAAU,WACVlB,cAAe,OACfmB,QAAS,EACTC,OAAQ,IAGb,EAEH,SAAS9C,EAAgBvC,GACvB,MAAmB,kBAAZA,CACT,CACA,SAASwC,EAASxC,GAChB,OAAOuC,EAAgBvC,GAAW,gBAAkBA,EAAU,UAAY,WAC5E,CACG,IAACsF,EAAO7F,EACP8F,EAAY7B"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-checkbox/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/checkbox/src/Checkbox.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar CHECKBOX_NAME = \"Checkbox\";\nvar [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);\nvar [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);\nvar Checkbox = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCheckbox,\n name,\n checked: checkedProp,\n defaultChecked,\n required,\n disabled,\n value = \"on\",\n onCheckedChange,\n form,\n ...checkboxProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? form || !!button.closest(\"form\") : true;\n const [checked = false, setChecked] = useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n const initialCheckedStateRef = React.useRef(checked);\n React.useEffect(() => {\n const form2 = button?.form;\n if (form2) {\n const reset = () => setChecked(initialCheckedStateRef.current);\n form2.addEventListener(\"reset\", reset);\n return () => form2.removeEventListener(\"reset\", reset);\n }\n }, [button, setChecked]);\n return /* @__PURE__ */ jsxs(CheckboxProvider, { scope: __scopeCheckbox, state: checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"checkbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n \"aria-required\": required,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...checkboxProps,\n ref: composedRefs,\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onClick: composeEventHandlers(props.onClick, (event) => {\n setChecked((prevChecked) => isIndeterminate(prevChecked) ? true : !prevChecked);\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n BubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n form,\n style: { transform: \"translateX(-100%)\" },\n defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked\n }\n )\n ] });\n }\n);\nCheckbox.displayName = CHECKBOX_NAME;\nvar INDICATOR_NAME = \"CheckboxIndicator\";\nvar CheckboxIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCheckbox, forceMount, ...indicatorProps } = props;\n const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || isIndeterminate(context.state) || context.state === true, children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.state),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef,\n style: { pointerEvents: \"none\", ...props.style }\n }\n ) });\n }\n);\nCheckboxIndicator.displayName = INDICATOR_NAME;\nvar BubbleInput = (props) => {\n const { control, checked, bubbles = true, defaultChecked, ...inputProps } = props;\n const ref = React.useRef(null);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, \"checked\");\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n input.indeterminate = isIndeterminate(checked);\n setChecked.call(input, isIndeterminate(checked) ? false : checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: defaultChecked ?? defaultCheckedRef.current,\n ...inputProps,\n tabIndex: -1,\n ref,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n};\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nvar Root = Checkbox;\nvar Indicator = CheckboxIndicator;\nexport {\n Checkbox,\n CheckboxIndicator,\n Indicator,\n Root,\n createCheckboxScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["CHECKBOX_NAME","createCheckboxContext","createCheckboxScope","createContextScope","CheckboxProvider","useCheckboxContext","Checkbox","React","forwardRef","props","forwardedRef","__scopeCheckbox","name","checked","checkedProp","defaultChecked","required","disabled","value","onCheckedChange","form","checkboxProps","button","setButton","useState","composedRefs","useComposedRefs","node","hasConsumerStoppedPropagationRef","useRef","isFormControl","closest","setChecked","useControllableState","prop","defaultProp","onChange","initialCheckedStateRef","useEffect","form2","reset","current","addEventListener","removeEventListener","jsxs","scope","state","children","jsx","Primitive","type","role","isIndeterminate","getState","ref","onKeyDown","composeEventHandlers","event","key","preventDefault","onClick","prevChecked","isPropagationStopped","stopPropagation","BubbleInput","control","bubbles","style","transform","displayName","INDICATOR_NAME","CheckboxIndicator","forceMount","indicatorProps","context","Presence","present","span","pointerEvents","inputProps","usePrevious","controlSize","useSize","input","inputProto","window","HTMLInputElement","prototype","Object","getOwnPropertyDescriptor","set","Event","indeterminate","call","dispatchEvent","defaultCheckedRef","tabIndex","position","opacity","margin","Root","Indicator"],"mappings":"+nBAaA,IAAIA,EAAgB,YACfC,EAAuBC,GAAu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AAM6B,EAAoBxF,EAAMsB,QAAOuB,EAAgBvC,IAAmBA,GAC1E,OAAuBmC,EACrB,QACA,CACEE,KAAM,WACN,eAAe,EACfnC,eAAgBA,GAAkBgF,EAAkBtD,WACjDsC,EACHiB,UAAW,EACX1C,MACAa,MAAO,IACF1D,EAAM0D,SACNc,EACHgB,SAAU,WACVnB,cAAe,OACfoB,QAAS,EACTC,OAAQ,IAGb,EAEH,SAAS/C,EAAgBvC,GACvB,MAAmB,kBAAZA,CACT,CACA,SAASwC,EAASxC,GAChB,OAAOuC,EAAgBvC,GAAW,gBAAkBA,EAAU,UAAY,WAC5E,CACG,IAACuF,EAAO9F,EACP+F,EAAY9B"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{composeEventHandlers as t}from"../../primitive/dist/index.mjs";import{createContextScope as n}from"../../react-context/dist/index.mjs";import{useControllableState as r}from"../../react-use-controllable-state/dist/index.mjs";import{useLayoutEffect as i}from"../../react-use-layout-effect/dist/index.mjs";import{useComposedRefs as o}from"../../react-compose-refs/dist/index.mjs";import{Primitive as a}from"../../react-primitive/dist/index.mjs";import{Presence as s}from"../../react-presence/dist/index.mjs";import{useId as d}from"../../react-id/dist/index.mjs";import{j as l}from"../../../../_virtual/jsx-runtime.mjs";var c="Collapsible",[p,m]=n(c),[u,f]=p(c),b=e.forwardRef(((t,n)=>{const{__scopeCollapsible:i,open:o,defaultOpen:s,disabled:c,onOpenChange:p,...m}=t,[f=!1,b]=r({prop:o,defaultProp:s,onChange:p});return l.jsx(u,{scope:i,disabled:c,contentId:d(),open:f,onOpenToggle:e.useCallback((()=>b((e=>!e))),[b]),children:l.jsx(a.div,{"data-state":h(f),"data-disabled":c?"":void 0,...m,ref:n})})}));b.displayName=c;var x="CollapsibleTrigger",j=e.forwardRef(((e,n)=>{const{__scopeCollapsible:r,...i}=e,o=f(x,r);return l.jsx(a.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":h(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:n,onClick:t(e.onClick,o.onOpenToggle)})}));j.displayName=x;var v="CollapsibleContent",y=e.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,i=f(v,e.__scopeCollapsible);return l.jsx(s,{present:n||i.open,children:({present:e})=>l.jsx(C,{...r,ref:t,present:e})})}));y.displayName=v;var C=e.forwardRef(((t,n)=>{const{__scopeCollapsible:r,present:s,children:d,...c}=t,p=f(v,r),[m,u]=e.useState(s),b=e.useRef(null),x=o(n,b),j=e.useRef(0),y=j.current,C=e.useRef(0),g=C.current,R=p.open||m,_=e.useRef(R),N=e.useRef();return e.useEffect((()=>{const e=requestAnimationFrame((()=>_.current=!1));return()=>cancelAnimationFrame(e)}),[]),i((()=>{const e=b.current;if(e){N.current=N.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();j.current=t.height,C.current=t.width,_.current||(e.style.transitionDuration=N.current.transitionDuration,e.style.animationName=N.current.animationName),u(s)}}),[p.open,s]),l.jsx(a.div,{"data-state":h(p.open),"data-disabled":p.disabled?"":void 0,id:p.contentId,hidden:!R,...c,ref:x,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:R&&d})}));function h(e){return e?"open":"closed"}var g=b,R=j,_=y;export{b as Collapsible,y as CollapsibleContent,j as CollapsibleTrigger,_ as Content,g as Root,R as Trigger,m as createCollapsibleScope};
1
+ import*as e from"react";import{composeEventHandlers as t}from"../../primitive/dist/index.mjs";import{createContextScope as n}from"../../react-context/dist/index.mjs";import{useControllableState as r}from"../../react-use-controllable-state/dist/index.mjs";import{useLayoutEffect as i}from"../../react-use-layout-effect/dist/index.mjs";import{useComposedRefs as o}from"../../react-compose-refs/dist/index.mjs";import{Primitive as a}from"../../react-primitive/dist/index.mjs";import{Presence as s}from"../../react-presence/dist/index.mjs";import{useId as d}from"../../react-id/dist/index.mjs";import{jsx as l}from"react/jsx-runtime";var c="Collapsible",[p,m]=n(c),[u,f]=p(c),b=e.forwardRef(((t,n)=>{const{__scopeCollapsible:i,open:o,defaultOpen:s,disabled:c,onOpenChange:p,...m}=t,[f=!1,b]=r({prop:o,defaultProp:s,onChange:p});return l(u,{scope:i,disabled:c,contentId:d(),open:f,onOpenToggle:e.useCallback((()=>b((e=>!e))),[b]),children:l(a.div,{"data-state":g(f),"data-disabled":c?"":void 0,...m,ref:n})})}));b.displayName=c;var x="CollapsibleTrigger",v=e.forwardRef(((e,n)=>{const{__scopeCollapsible:r,...i}=e,o=f(x,r);return l(a.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":g(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:n,onClick:t(e.onClick,o.onOpenToggle)})}));v.displayName=x;var y="CollapsibleContent",C=e.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,i=f(y,e.__scopeCollapsible);return l(s,{present:n||i.open,children:({present:e})=>l(h,{...r,ref:t,present:e})})}));C.displayName=y;var h=e.forwardRef(((t,n)=>{const{__scopeCollapsible:r,present:s,children:d,...c}=t,p=f(y,r),[m,u]=e.useState(s),b=e.useRef(null),x=o(n,b),v=e.useRef(0),C=v.current,h=e.useRef(0),R=h.current,j=p.open||m,N=e.useRef(j),_=e.useRef();return e.useEffect((()=>{const e=requestAnimationFrame((()=>N.current=!1));return()=>cancelAnimationFrame(e)}),[]),i((()=>{const e=b.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();v.current=t.height,h.current=t.width,N.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),u(s)}}),[p.open,s]),l(a.div,{"data-state":g(p.open),"data-disabled":p.disabled?"":void 0,id:p.contentId,hidden:!j,...c,ref:x,style:{"--radix-collapsible-content-height":C?`${C}px`:void 0,"--radix-collapsible-content-width":R?`${R}px`:void 0,...t.style},children:j&&d})}));function g(e){return e?"open":"closed"}var R=b,j=v,N=C;export{b as Collapsible,C as CollapsibleContent,v as CollapsibleTrigger,N as Content,R as Root,j as Trigger,m as createCollapsibleScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collapsible/src/Collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef();\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["COLLAPSIBLE_NAME","createCollapsibleContext","createCollapsibleScope","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","React","forwardRef","props","forwardedRef","__scopeCollapsible","open","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","setOpen","useControllableState","prop","defaultProp","onChange","jsx","scope","contentId","useId","onOpenToggle","useCallback","prevOpen","children","Primitive","div","getState","ref","displayName","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","button","type","onClick","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","Presence","present","CollapsibleContentImpl","isPresent","setIsPresent","useState","useRef","composedRefs","useComposedRefs","heightRef","height","current","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","useEffect","rAF","requestAnimationFrame","cancelAnimationFrame","useLayoutEffect","node","transitionDuration","style","animationName","rect","getBoundingClientRect","id","hidden","Root","Trigger","Content"],"mappings":"uoBAaA,IAAIA,EAAmB,eAClBC,EAA0BC,GAA0BC,EAAmBH,IACvEI,EAAqBC,GAAyBJ,EAAyBD,GACxEM,EAAcC,EAAMC,YACtB,CAACC,EAAOC,KACN,MAAMC,mBACJA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,SACXA,EAAQC,aACRA,KACGC,GACDR,GACGG,GAAO,EAAOM,GAAWC,EAAqB,CACnDC,KAAMP,EACNQ,YAAaP,EACbQ,SAAUN,IAEZ,OAAuBO,EAAGA,IACxBnB,EACA,CACEoB,MAAOb,EACPI,WACAU,UAAWC,IACXd,OACAe,aAAcpB,EAAMqB,aAAY,IAAMV,GAASW,IAAcA,KAAW,CAACX,IACzEY,SAA0BP,EAAGA,IAC3BQ,EAAUC,IACV,CACE,aAAcC,EAASrB,GACvB,gBAAiBG,EAAW,QAAK,KAC9BE,EACHiB,IAAKxB,KAIZ,IAGLJ,EAAY6B,YAAcnC,EAC1B,IAAIoC,EAAe,qBACfC,EAAqB9B,EAAMC,YAC7B,CAACC,EAAOC,KACN,MAAMC,mBAAEA,KAAuB2B,GAAiB7B,EAC1C8B,EAAUlC,EAAsB+B,EAAczB,GACpD,OAAuBY,EAAGA,IACxBQ,EAAUS,OACV,CACEC,KAAM,SACN,gBAAiBF,EAAQd,UACzB,gBAAiBc,EAAQ3B,OAAQ,EACjC,aAAcqB,EAASM,EAAQ3B,MAC/B,gBAAiB2B,EAAQxB,SAAW,QAAK,EACzCA,SAAUwB,EAAQxB,YACfuB,EACHJ,IAAKxB,EACLgC,QAASC,EAAqBlC,EAAMiC,QAASH,EAAQZ,eAExD,IAGLU,EAAmBF,YAAcC,EACjC,IAAIQ,EAAe,qBACfC,EAAqBtC,EAAMC,YAC7B,CAACC,EAAOC,KACN,MAAMoC,WAAEA,KAAeC,GAAiBtC,EAClC8B,EAAUlC,EAAsBuC,EAAcnC,EAAME,oBAC1D,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K1B,EAAGA,IACxBQ,EAAUC,IACV,CACE,aAAcC,EAASM,EAAQ3B,MAC/B,gBAAiB2B,EAAQxB,SAAW,QAAK,EACzC6D,GAAIrC,EAAQd,UACZoD,QAASf,KACNf,EACHb,IAAKqB,EACLiB,MAAO,CACL,qCAAwCd,EAAS,GAAGA,WAAa,EACjE,oCAAuCG,EAAQ,GAAGA,WAAY,KAC3DpD,EAAM+D,OAEX1C,SAAUgC,GAAUhC,GAEvB,IAEH,SAASG,EAASrB,GAChB,OAAOA,EAAO,OAAS,QACzB,CACG,IAACkE,EAAOxE,EACPyE,EAAU1C,EACV2C,EAAUnC"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-collapsible/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collapsible/src/Collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef();\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["COLLAPSIBLE_NAME","createCollapsibleContext","createCollapsibleScope","createContextScope","CollapsibleProvider","useCollapsibleContext","Collapsible","React","forwardRef","props","forwardedRef","__scopeCollapsible","open","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","setOpen","useControllableState","prop","defaultProp","onChange","jsx","scope","contentId","useId","onOpenToggle","useCallback","prevOpen","children","Primitive","div","getState","ref","displayName","TRIGGER_NAME","CollapsibleTrigger","triggerProps","context","button","type","onClick","composeEventHandlers","CONTENT_NAME","CollapsibleContent","forceMount","contentProps","Presence","present","CollapsibleContentImpl","isPresent","setIsPresent","useState","useRef","composedRefs","useComposedRefs","heightRef","height","current","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","useEffect","rAF","requestAnimationFrame","cancelAnimationFrame","useLayoutEffect","node","transitionDuration","style","animationName","rect","getBoundingClientRect","id","hidden","Root","Trigger","Content"],"mappings":"snBAaA,IAAIA,EAAmB,eAClBC,EAA0BC,GAA0BC,EAAmBH,IACvEI,EAAqBC,GAAyBJ,EAAyBD,GACxEM,EAAcC,EAAMC,YACtB,CAACC,EAAOC,KACN,MAAMC,mBACJA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,SACXA,EAAQC,aACRA,KACGC,GACDR,GACGG,GAAO,EAAOM,GAAWC,EAAqB,CACnDC,KAAMP,EACNQ,YAAaP,EACbQ,SAAUN,IAEZ,OAAuBO,EACrBnB,EACA,CACEoB,MAAOb,EACPI,WACAU,UAAWC,IACXd,OACAe,aAAcpB,EAAMqB,aAAY,IAAMV,GAASW,IAAcA,KAAW,CAACX,IACzEY,SAA0BP,EACxBQ,EAAUC,IACV,CACE,aAAcC,EAASrB,GACvB,gBAAiBG,EAAW,QAAK,KAC9BE,EACHiB,IAAKxB,KAIZ,IAGLJ,EAAY6B,YAAcnC,EAC1B,IAAIoC,EAAe,qBACfC,EAAqB9B,EAAMC,YAC7B,CAACC,EAAOC,KACN,MAAMC,mBAAEA,KAAuB2B,GAAiB7B,EAC1C8B,EAAUlC,EAAsB+B,EAAczB,GACpD,OAAuBY,EACrBQ,EAAUS,OACV,CACEC,KAAM,SACN,gBAAiBF,EAAQd,UACzB,gBAAiBc,EAAQ3B,OAAQ,EACjC,aAAcqB,EAASM,EAAQ3B,MAC/B,gBAAiB2B,EAAQxB,SAAW,QAAK,EACzCA,SAAUwB,EAAQxB,YACfuB,EACHJ,IAAKxB,EACLgC,QAASC,EAAqBlC,EAAMiC,QAASH,EAA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QAAUe,EAAKb,MACnBE,EAA6BJ,UAChCW,EAAKE,MAAMD,mBAAqBP,EAAkBL,QAAQY,mBAC1DD,EAAKE,MAAMC,cAAgBT,EAAkBL,QAAQc,eAEvDrB,EAAaH,EACd,IACA,CAACV,EAAQ3B,KAAMqC,IACK1B,EACrBQ,EAAUC,IACV,CACE,aAAcC,EAASM,EAAQ3B,MAC/B,gBAAiB2B,EAAQxB,SAAW,QAAK,EACzC6D,GAAIrC,EAAQd,UACZoD,QAASf,KACNf,EACHb,IAAKqB,EACLiB,MAAO,CACL,qCAAwCd,EAAS,GAAGA,WAAa,EACjE,oCAAuCG,EAAQ,GAAGA,WAAY,KAC3DpD,EAAM+D,OAEX1C,SAAUgC,GAAUhC,GAEvB,IAEH,SAASG,EAASrB,GAChB,OAAOA,EAAO,OAAS,QACzB,CACG,IAACkE,EAAOxE,EACPyE,EAAU1C,EACV2C,EAAUnC"}
@@ -1,2 +1,2 @@
1
- import e from"react";import{createContextScope as r}from"../../react-context/dist/index.mjs";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs";import{Slot as o}from"../../react-slot/dist/index.mjs";import{j as n}from"../../../../_virtual/jsx-runtime.mjs";function c(c){const l=c+"CollectionProvider",[i,s]=r(l),[f,m]=i(l,{collectionRef:{current:null},itemMap:new Map}),a=r=>{const{scope:t,children:o}=r,c=e.useRef(null),l=e.useRef(new Map).current;return n.jsx(f,{scope:t,itemMap:l,collectionRef:c,children:o})};a.displayName=l;const u=c+"CollectionSlot",d=e.forwardRef(((e,r)=>{const{scope:c,children:l}=e,i=m(u,c),s=t(r,i.collectionRef);return n.jsx(o,{ref:s,children:l})}));d.displayName=u;const p=c+"CollectionItemSlot",x="data-radix-collection-item",R=e.forwardRef(((r,c)=>{const{scope:l,children:i,...s}=r,f=e.useRef(null),a=t(c,f),u=m(p,l);return e.useEffect((()=>(u.itemMap.set(f,{ref:f,...s}),()=>{u.itemMap.delete(f)}))),n.jsx(o,{[x]:"",ref:a,children:i})}));return R.displayName=p,[{Provider:a,Slot:d,ItemSlot:R},function(r){const t=m(c+"CollectionConsumer",r);return e.useCallback((()=>{const e=t.collectionRef.current;if(!e)return[];const r=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(t.itemMap.values()).sort(((e,t)=>r.indexOf(e.ref.current)-r.indexOf(t.ref.current)))}),[t.collectionRef,t.itemMap])},s]}export{c as createCollection};
1
+ import e from"react";import{createContextScope as r}from"../node_modules/@radix-ui/react-context/dist/index.mjs";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs";import{Slot as o}from"../../react-slot/dist/index.mjs";import{jsx as n}from"react/jsx-runtime";function c(c){const i=c+"CollectionProvider",[l,s]=r(i),[f,m]=l(i,{collectionRef:{current:null},itemMap:new Map}),a=r=>{const{scope:t,children:o}=r,c=e.useRef(null),i=e.useRef(new Map).current;return n(f,{scope:t,itemMap:i,collectionRef:c,children:o})};a.displayName=i;const u=c+"CollectionSlot",d=e.forwardRef(((e,r)=>{const{scope:c,children:i}=e,l=m(u,c),s=t(r,l.collectionRef);return n(o,{ref:s,children:i})}));d.displayName=u;const p=c+"CollectionItemSlot",x="data-radix-collection-item",R=e.forwardRef(((r,c)=>{const{scope:i,children:l,...s}=r,f=e.useRef(null),a=t(c,f),u=m(p,i);return e.useEffect((()=>(u.itemMap.set(f,{ref:f,...s}),()=>{u.itemMap.delete(f)}))),n(o,{[x]:"",ref:a,children:l})}));return R.displayName=p,[{Provider:a,Slot:d,ItemSlot:R},function(r){const t=m(c+"CollectionConsumer",r);return e.useCallback((()=>{const e=t.collectionRef.current;if(!e)return[];const r=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(t.itemMap.values()).sort(((e,t)=>r.indexOf(e.ref.current)-r.indexOf(t.ref.current)))}),[t.collectionRef,t.itemMap])},s]}export{c as createCollection};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collection/src/Collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","collectionRef","current","itemMap","Map","CollectionProvider","props","scope","children","ref","React","useRef","jsx","displayName","COLLECTION_SLOT_NAME","CollectionSlot","forwardRef","forwardedRef","context","composedRefs","useComposedRefs","Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useEffect","set","delete","Provider","ItemSlot","useCallback","collectionNode","orderedNodes","Array","from","querySelectorAll","values","sort","a","b","indexOf"],"mappings":"uRAQA,SAASA,EAAiBC,GACxB,MAAMC,EAAgBD,EAAO,sBACtBE,EAAyBC,GAAyBC,EAAmBH,IACrEI,EAAwBC,GAAwBJ,EACrDD,EACA,CAAEM,cAAe,CAAEC,QAAS,MAAQC,QAAyB,IAAIC,MAE7DC,EAAsBC,IAC1B,MAAMC,MAAEA,EAAKC,SAAEA,GAAaF,EACtBG,EAAMC,EAAMC,OAAO,MACnBR,EAAUO,EAAMC,OAAuB,IAAIP,KAAOF,QACxD,OAAuBU,EAAGA,IAACb,EAAwB,CAAEQ,QAAOJ,UAASF,cAAeQ,EAAKD,YAAW,EAEtGH,EAAmBQ,YAAclB,EACjC,MAAMmB,EAAuBpB,EAAO,iBAC9BqB,EAAiBL,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-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collection/src/Collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","collectionRef","current","itemMap","Map","CollectionProvider","props","scope","children","ref","React","useRef","jsx","displayName","COLLECTION_SLOT_NAME","CollectionSlot","forwardRef","forwardedRef","context","composedRefs","useComposedRefs","Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useEffect","set","delete","Provider","ItemSlot","useCallback","collectionNode","orderedNodes","Array","from","querySelectorAll","values","sort","a","b","indexOf"],"mappings":"0RAQA,SAASA,EAAiBC,GACxB,MAAMC,EAAgBD,EAAO,sBACtBE,EAAyBC,GAAyBC,EAAmBH,IACrEI,EAAwBC,GAAwBJ,EACrDD,EACA,CAAEM,cAAe,CAAEC,QAAS,MAAQC,QAAyB,IAAIC,MAE7DC,EAAsBC,IAC1B,MAAMC,MAAEA,EAAKC,SAAEA,GAAaF,EACtBG,EAAMC,EAAMC,OAAO,MACnBR,EAAUO,EAAMC,OAAuB,IAAIP,KAAOF,QACxD,OAAuBU,EAAIb,EAAwB,CAAEQ,QAAOJ,UAASF,cAAeQ,EAAKD,YAAW,EAEtGH,EAAmBQ,YAAclB,EACjC,MAAMmB,EAAuBpB,EAAO,iBAC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from"react/jsx-runtime";function o(o,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const r=n?.[o]||t;return e.useMemo((()=>({[`__scope${o}`]:{...n,[o]:r}})),[n,r])}};return s.scopeName=o,[function(n,r){const s=e.createContext(r),u=c.length;function i(n){const{scope:r,children:c,...i}=n,m=r?.[o][u]||s,p=e.useMemo((()=>i),Object.values(i));return t(m.Provider,{value:p,children:c})}return c=[...c,r],i.displayName=n+"Provider",[i,function(t,c){const i=c?.[o][u]||s,m=e.useContext(i);if(m)return m;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},n(s,...r)]}function n(...t){const o=t[0];if(1===t.length)return o;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=n.reduce(((e,{useScope:o,scopeName:n})=>({...e,...o(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return n.scopeName=o.scopeName,n}export{o as createContextScope};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function Provider(props) {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n function Provider(props) {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName][index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName][index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","defaultContext","React","createContext","scope","contexts","useMemo","rootComponentName","BaseContext","index","length","Provider","props","children","context","Context","value","Object","values","jsx","displayName","consumerName","useContext","Error","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAmBA,SAASA,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKC,GAClCC,EAAMC,cAAcF,KAE7B,OAAO,SAAkBG,GACvB,MAAMC,EAAWD,IAAQT,IAAcI,EACvC,OAAOG,EAAMI,SACX,KAAA,CAAS,CAAC,UAAUX,KAAc,IAAKS,EAAOT,CAACA,GAAYU,MAC3D,CAACD,EAAOC,GAEhB,CAAK,EAGH,OADAP,EAAYH,UAAYA,EACjB,CAjCP,SAAwBY,EAAmBN,GACzC,MAAMO,EAAcN,EAAMC,cAAcF,GAClCQ,EAAQZ,EAAgBa,OAE9B,SAASC,EAASC,GAChB,MAAMR,MAAEA,EAAKS,SAAEA,KAAaC,GAAYF,EAClCG,EAAUX,IAAQT,GAAWc,IAAUD,EACvCQ,EAAQd,EAAMI,SAAQ,IAAMQ,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIJ,EAAQJ,SAAU,CAAEK,QAAOH,YACvD,CASD,OAfAhB,EAAkB,IAAIA,EAAiBI,GAcvCU,EAASS,YAAcb,EAAoB,WACpC,CAACI,EARR,SAAqBU,EAAcjB,GACjC,MAAMW,EAAUX,IAAQT,GAAWc,IAAUD,EACvCM,EAAUZ,EAAMoB,WAAWP,GACjC,GAAID,EAAS,OAAOA,EACpB,QAAuB,IAAnBb,EAA2B,OAAOA,EACtC,MAAM,IAAIsB,MAAM,KAAKF,6BAAwCd,MAC9D,EAGF,EAcuBiB,EAAqB1B,KAAgBF,GAC/D,CACA,SAAS4B,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOf,OAAc,OAAOgB,EAChC,MAAM5B,EAAc,KAClB,MAAM6B,EAAaF,EAAOzB,KAAK4B,IAAkB,CAC/CC,SAAUD,IACVjC,UAAWiC,EAAajC,cAE1B,OAAO,SAA2BmC,GAChC,MAAMC,EAAaJ,EAAWK,QAAO,CAACC,GAAeJ,WAAUlC,gBAGtD,IAAKsC,KAFOJ,EAASC,GACI,UAAUnC,QAEzC,CAAE,GACL,OAAOO,EAAMI,SAAQ,MAAS,CAAC,UAAUoB,EAAU/B,aAAcoC,KAAe,CAACA,GACvF,CAAK,EAGH,OADAjC,EAAYH,UAAY+B,EAAU/B,UAC3BG,CACT"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{j as t}from"../../../../_virtual/jsx-runtime.mjs";function n(n,r){const o=e.createContext(r);function c(n){const{children:r,...c}=n,s=e.useMemo((()=>c),Object.values(c));return t.jsx(o.Provider,{value:s,children:r})}return c.displayName=n+"Provider",[c,function(t){const c=e.useContext(o);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]}function r(n,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(r){const o=r?.[n]||t;return e.useMemo((()=>({[`__scope${n}`]:{...r,[n]:o}})),[r,o])}};return s.scopeName=n,[function(r,o){const s=e.createContext(o),u=c.length;function i(r){const{scope:o,children:c,...i}=r,a=o?.[n][u]||s,m=e.useMemo((()=>i),Object.values(i));return t.jsx(a.Provider,{value:m,children:c})}return c=[...c,o],i.displayName=r+"Provider",[i,function(t,c){const i=c?.[n][u]||s,a=e.useContext(i);if(a)return a;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${r}\``)}]},o(s,...r)]}function o(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}export{n as createContext,r as createContextScope};
1
+ import*as e from"react";import{jsx as t}from"react/jsx-runtime";function o(o,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const r=n?.[o]||t;return e.useMemo((()=>({[`__scope${o}`]:{...n,[o]:r}})),[n,r])}};return s.scopeName=o,[function(n,r){const s=e.createContext(r),u=c.length;c=[...c,r];const i=n=>{const{scope:r,children:c,...i}=n,m=r?.[o]?.[u]||s,p=e.useMemo((()=>i),Object.values(i));return t(m.Provider,{value:p,children:c})};return i.displayName=n+"Provider",[i,function(t,c){const i=c?.[o]?.[u]||s,m=e.useContext(i);if(m)return m;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},n(s,...r)]}function n(...t){const o=t[0];if(1===t.length)return o;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=n.reduce(((e,{useScope:o,scopeName:n})=>({...e,...o(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return n.scopeName=o.scopeName,n}export{o as createContextScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function Provider(props) {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n function Provider(props) {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName][index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName][index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","createContext","Provider","props","children","context","value","useMemo","Object","values","jsx","displayName","consumerName","useContext","Error","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","scope","contexts","BaseContext","index","length","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"iFAGA,SAASA,EAAeC,EAAmBC,GACzC,MAAMC,EAAUC,EAAMC,cAAcH,GACpC,SAASI,EAASC,GAChB,MAAMC,SAAEA,KAAaC,GAAYF,EAC3BG,EAAQN,EAAMO,SAAQ,IAAMF,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAAA,IAAIX,EAAQG,SAAU,CAAEI,QAAOF,YACvD,CAQD,OADAF,EAASS,YAAcd,EAAoB,WACpC,CAACK,EAPR,SAAqBU,GACnB,MAAMP,EAAUL,EAAMa,WAAWd,GACjC,GAAIM,EAAS,OAAOA,EACpB,QAAuB,IAAnBP,EAA2B,OAAOA,EACtC,MAAM,IAAIgB,MAAM,KAAKF,6BAAwCf,MAC9D,EAGH,CACA,SAASkB,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKvB,GAClCE,EAAMC,cAAcH,KAE7B,OAAO,SAAkBwB,GACvB,MAAMC,EAAWD,IAAQN,IAAcI,EACvC,OAAOpB,EAAMO,SACX,KAAA,CAAS,CAAC,UAAUS,KAAc,IAAKM,EAAON,CAACA,GAAYO,MAC3D,CAACD,EAAOC,GAEhB,CAAK,EAGH,OADAJ,EAAYH,UAAYA,EACjB,CAjCP,SAAwBnB,EAAmBC,GACzC,MAAM0B,EAAcxB,EAAMC,cAAcH,GAClC2B,EAAQP,EAAgBQ,OAE9B,SAASxB,EAASC,GAChB,MAAMmB,MAAEA,EAAKlB,SAAEA,KAAaC,GAAYF,EAClCJ,EAAUuB,IAAQN,GAAWS,IAAUD,EACvClB,EAAQN,EAAMO,SAAQ,IAAMF,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAAA,IAAIX,EAAQG,SAAU,CAAEI,QAAOF,YACvD,CASD,OAfAc,EAAkB,IAAIA,EAAiBpB,GAcvCI,EAASS,YAAcd,EAAoB,WACpC,CAACK,EARR,SAAqBU,EAAcU,GACjC,MAAMvB,EAAUuB,IAAQN,GAAWS,IAAUD,EACvCnB,EAAUL,EAAMa,WAAWd,GACjC,GAAIM,EAAS,OAAOA,EACpB,QAAuB,IAAnBP,EAA2B,OAAOA,EACtC,MAAM,IAAIgB,MAAM,KAAKF,6BAAwCf,MAC9D,EAGF,EAcuB8B,EAAqBR,KAAgBF,GAC/D,CACA,SAASU,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOF,OAAc,OAAOG,EAChC,MAAMV,EAAc,KAClB,MAAMW,EAAaF,EAAOP,KAAKU,IAAkB,CAC/CC,SAAUD,IACVf,UAAWe,EAAaf,cAE1B,OAAO,SAA2BiB,GAChC,MAAMC,EAAaJ,EAAWK,QAAO,CAACC,GAAeJ,WAAUhB,gBAGtD,IAAKoB,KAFOJ,EAASC,GACI,UAAUjB,QAEzC,CAAE,GACL,OAAOhB,EAAMO,SAAQ,MAAS,CAAC,UAAUsB,EAAUb,aAAckB,KAAe,CAACA,GACvF,CAAK,EAGH,OADAf,EAAYH,UAAYa,EAAUb,UAC3BG,CACT"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","defaultContext","React","createContext","scope","contexts","useMemo","rootComponentName","BaseContext","index","length","Provider","props","children","context","Context","value","Object","values","jsx","displayName","consumerName","useContext","Error","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAmBA,SAASA,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKC,GAClCC,EAAMC,cAAcF,KAE7B,OAAO,SAAkBG,GACvB,MAAMC,EAAWD,IAAQT,IAAcI,EACvC,OAAOG,EAAMI,SACX,KAAA,CAAS,CAAC,UAAUX,KAAc,IAAKS,EAAOT,CAACA,GAAYU,MAC3D,CAACD,EAAOC,GAEhB,CAAK,EAGH,OADAP,EAAYH,UAAYA,EACjB,CAjCP,SAAwBY,EAAmBN,GACzC,MAAMO,EAAcN,EAAMC,cAAcF,GAClCQ,EAAQZ,EAAgBa,OAC9Bb,EAAkB,IAAIA,EAAiBI,GACvC,MAAMU,EAAYC,IAChB,MAAMR,MAAEA,EAAKS,SAAEA,KAAaC,GAAYF,EAClCG,EAAUX,IAAQT,KAAac,IAAUD,EACzCQ,EAAQd,EAAMI,SAAQ,IAAMQ,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIJ,EAAQJ,SAAU,CAAEK,QAAOH,YAAW,EAUnE,OARAF,EAASS,YAAcb,EAAoB,WAQpC,CAACI,EAPR,SAAqBU,EAAcjB,GACjC,MAAMW,EAAUX,IAAQT,KAAac,IAAUD,EACzCM,EAAUZ,EAAMoB,WAAWP,GACjC,GAAID,EAAS,OAAOA,EACpB,QAAuB,IAAnBb,EAA2B,OAAOA,EACtC,MAAM,IAAIsB,MAAM,KAAKF,6BAAwCd,MAC9D,EAEF,EAcuBiB,EAAqB1B,KAAgBF,GAC/D,CACA,SAAS4B,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOf,OAAc,OAAOgB,EAChC,MAAM5B,EAAc,KAClB,MAAM6B,EAAaF,EAAOzB,KAAK4B,IAAkB,CAC/CC,SAAUD,IACVjC,UAAWiC,EAAajC,cAE1B,OAAO,SAA2BmC,GAChC,MAAMC,EAAaJ,EAAWK,QAAO,CAACC,GAAeJ,WAAUlC,gBAGtD,IAAKsC,KAFOJ,EAASC,GACI,UAAUnC,QAEzC,CAAE,GACL,OAAOO,EAAMI,SAAQ,MAAS,CAAC,UAAUoB,EAAU/B,aAAcoC,KAAe,CAACA,GACvF,CAAK,EAGH,OADAjC,EAAYH,UAAY+B,EAAU/B,UAC3BG,CACT"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{composeEventHandlers as t}from"../../primitive/dist/index.mjs";import{createContextScope as n}from"../../react-context/dist/index.mjs";import{Primitive as r}from"../../react-primitive/dist/index.mjs";import{createMenuScope as o,Anchor as a,Content as i,Group as s,Label as u,Item as d,CheckboxItem as p,RadioGroup as c,RadioItem as x,ItemIndicator as l,Separator as m,Arrow as f,SubTrigger as C,SubContent as h,Root as v,Portal as g,Sub as M}from"../../react-menu/dist/index.mjs";import{useCallbackRef as _}from"../../react-use-callback-ref/dist/index.mjs";import{useControllableState as w}from"../../react-use-controllable-state/dist/index.mjs";import{j}from"../../../../_virtual/jsx-runtime.mjs";var R="ContextMenu",[b,y]=n(R,[o]),P=o(),[N,I]=b(R),O=t=>{const{__scopeContextMenu:n,children:r,onOpenChange:o,dir:a,modal:i=!0}=t,[s,u]=e.useState(!1),d=P(n),p=_(o),c=e.useCallback((e=>{u(e),p(e)}),[p]);return j.jsx(N,{scope:n,open:s,onOpenChange:c,modal:i,children:j.jsx(v,{...d,dir:a,open:s,onOpenChange:c,modal:i,children:r})})};O.displayName=R;var S="ContextMenuTrigger",T=e.forwardRef(((n,o)=>{const{__scopeContextMenu:i,disabled:s=!1,...u}=n,d=I(S,i),p=P(i),c=e.useRef({x:0,y:0}),x=e.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...c.current})}),l=e.useRef(0),m=e.useCallback((()=>window.clearTimeout(l.current)),[]),f=e=>{c.current={x:e.clientX,y:e.clientY},d.onOpenChange(!0)};return e.useEffect((()=>m),[m]),e.useEffect((()=>{s&&m()}),[s,m]),j.jsxs(j.Fragment,{children:[j.jsx(a,{...p,virtualRef:x}),j.jsx(r.span,{"data-state":d.open?"open":"closed","data-disabled":s?"":void 0,...u,ref:o,style:{WebkitTouchCallout:"none",...n.style},onContextMenu:s?n.onContextMenu:t(n.onContextMenu,(e=>{m(),f(e),e.preventDefault()})),onPointerDown:s?n.onPointerDown:t(n.onPointerDown,J((e=>{m(),l.current=window.setTimeout((()=>f(e)),700)}))),onPointerMove:s?n.onPointerMove:t(n.onPointerMove,J(m)),onPointerCancel:s?n.onPointerCancel:t(n.onPointerCancel,J(m)),onPointerUp:s?n.onPointerUp:t(n.onPointerUp,J(m))})]})}));T.displayName=S;var k=e=>{const{__scopeContextMenu:t,...n}=e,r=P(t);return j.jsx(g,{...r,...n})};k.displayName="ContextMenuPortal";var D="ContextMenuContent",A=e.forwardRef(((t,n)=>{const{__scopeContextMenu:r,...o}=t,a=I(D,r),s=P(r),u=e.useRef(!1);return j.jsx(i,{...s,...o,ref:n,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),!e.defaultPrevented&&u.current&&e.preventDefault(),u.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||a.modal||(u.current=!0)},style:{...t.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));A.displayName=D;var G=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(s,{...o,...r,ref:t})}));G.displayName="ContextMenuGroup";var F=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(u,{...o,...r,ref:t})}));F.displayName="ContextMenuLabel";var U=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(d,{...o,...r,ref:t})}));U.displayName="ContextMenuItem";var E=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(p,{...o,...r,ref:t})}));E.displayName="ContextMenuCheckboxItem";var L=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(c,{...o,...r,ref:t})}));L.displayName="ContextMenuRadioGroup";var B=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(x,{...o,...r,ref:t})}));B.displayName="ContextMenuRadioItem";var W=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(l,{...o,...r,ref:t})}));W.displayName="ContextMenuItemIndicator";var X=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(m,{...o,...r,ref:t})}));X.displayName="ContextMenuSeparator";var Y=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(f,{...o,...r,ref:t})}));Y.displayName="ContextMenuArrow";var q=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,i=P(t),[s,u]=w({prop:o,defaultProp:a,onChange:r});return j.jsx(M,{...i,open:s,onOpenChange:u,children:n})};q.displayName="ContextMenuSub";var z=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(C,{...o,...r,ref:t})}));z.displayName="ContextMenuSubTrigger";var H=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=P(n);return j.jsx(h,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));function J(e){return t=>"mouse"!==t.pointerType?e(t):void 0}H.displayName="ContextMenuSubContent";var K=O,Q=T,V=k,Z=A,$=G,ee=F,te=U,ne=E,re=L,oe=B,ae=W,ie=X,se=q,ue=z,de=H;export{ne as CheckboxItem,Z as Content,O as ContextMenu,Y as ContextMenuArrow,E as ContextMenuCheckboxItem,A as ContextMenuContent,G as ContextMenuGroup,U as ContextMenuItem,W as ContextMenuItemIndicator,F as ContextMenuLabel,k as ContextMenuPortal,L as ContextMenuRadioGroup,B as ContextMenuRadioItem,X as ContextMenuSeparator,q as ContextMenuSub,H as ContextMenuSubContent,z as ContextMenuSubTrigger,T as ContextMenuTrigger,$ as Group,te as Item,ae as ItemIndicator,ee as Label,V as Portal,re as RadioGroup,oe as RadioItem,K as Root,ie as Separator,se as Sub,de as SubContent,ue as SubTrigger,Q as Trigger,y as createContextMenuScope};
1
+ import*as e from"react";import{composeEventHandlers as t}from"../../primitive/dist/index.mjs";import{createContextScope as n}from"../node_modules/@radix-ui/react-context/dist/index.mjs";import{Primitive as r}from"../../react-primitive/dist/index.mjs";import{createMenuScope as o,Anchor as a,Content as i,Group as s,Label as d,Item as u,CheckboxItem as p,RadioGroup as c,RadioItem as l,ItemIndicator as x,Separator as m,Arrow as f,SubTrigger as C,SubContent as h,Root as v,Portal as M,Sub as g}from"../node_modules/@radix-ui/react-menu/dist/index.mjs";import{useCallbackRef as _}from"../../react-use-callback-ref/dist/index.mjs";import{useControllableState as w}from"../../react-use-controllable-state/dist/index.mjs";import{jsxs as R,Fragment as b,jsx as y}from"react/jsx-runtime";var P="ContextMenu",[N,I]=n(P,[o]),O=o(),[S,j]=N(P),T=t=>{const{__scopeContextMenu:n,children:r,onOpenChange:o,dir:a,modal:i=!0}=t,[s,d]=e.useState(!1),u=O(n),p=_(o),c=e.useCallback((e=>{d(e),p(e)}),[p]);return y(S,{scope:n,open:s,onOpenChange:c,modal:i,children:y(v,{...u,dir:a,open:s,onOpenChange:c,modal:i,children:r})})};T.displayName=P;var k="ContextMenuTrigger",D=e.forwardRef(((n,o)=>{const{__scopeContextMenu:i,disabled:s=!1,...d}=n,u=j(k,i),p=O(i),c=e.useRef({x:0,y:0}),l=e.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...c.current})}),x=e.useRef(0),m=e.useCallback((()=>window.clearTimeout(x.current)),[]),f=e=>{c.current={x:e.clientX,y:e.clientY},u.onOpenChange(!0)};return e.useEffect((()=>m),[m]),e.useEffect((()=>{s&&m()}),[s,m]),R(b,{children:[y(a,{...p,virtualRef:l}),y(r.span,{"data-state":u.open?"open":"closed","data-disabled":s?"":void 0,...d,ref:o,style:{WebkitTouchCallout:"none",...n.style},onContextMenu:s?n.onContextMenu:t(n.onContextMenu,(e=>{m(),f(e),e.preventDefault()})),onPointerDown:s?n.onPointerDown:t(n.onPointerDown,Q((e=>{m(),x.current=window.setTimeout((()=>f(e)),700)}))),onPointerMove:s?n.onPointerMove:t(n.onPointerMove,Q(m)),onPointerCancel:s?n.onPointerCancel:t(n.onPointerCancel,Q(m)),onPointerUp:s?n.onPointerUp:t(n.onPointerUp,Q(m))})]})}));D.displayName=k;var A=e=>{const{__scopeContextMenu:t,...n}=e,r=O(t);return y(M,{...r,...n})};A.displayName="ContextMenuPortal";var G="ContextMenuContent",U=e.forwardRef(((t,n)=>{const{__scopeContextMenu:r,...o}=t,a=j(G,r),s=O(r),d=e.useRef(!1);return y(i,{...s,...o,ref:n,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),!e.defaultPrevented&&d.current&&e.preventDefault(),d.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||a.modal||(d.current=!0)},style:{...t.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));U.displayName=G;var E=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(s,{...o,...r,ref:t})}));E.displayName="ContextMenuGroup";var F=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(d,{...o,...r,ref:t})}));F.displayName="ContextMenuLabel";var L=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(u,{...o,...r,ref:t})}));L.displayName="ContextMenuItem";var B=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(p,{...o,...r,ref:t})}));B.displayName="ContextMenuCheckboxItem";var W=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(c,{...o,...r,ref:t})}));W.displayName="ContextMenuRadioGroup";var X=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(l,{...o,...r,ref:t})}));X.displayName="ContextMenuRadioItem";var Y=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(x,{...o,...r,ref:t})}));Y.displayName="ContextMenuItemIndicator";var q=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(m,{...o,...r,ref:t})}));q.displayName="ContextMenuSeparator";var z=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(f,{...o,...r,ref:t})}));z.displayName="ContextMenuArrow";var H=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:a}=e,i=O(t),[s,d]=w({prop:o,defaultProp:a,onChange:r});return y(g,{...i,open:s,onOpenChange:d,children:n})};H.displayName="ContextMenuSub";var J=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(C,{...o,...r,ref:t})}));J.displayName="ContextMenuSubTrigger";var K=e.forwardRef(((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=O(n);return y(h,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));function Q(e){return t=>"mouse"!==t.pointerType?e(t):void 0}K.displayName="ContextMenuSubContent";var V=T,Z=D,$=A,ee=U,te=E,ne=F,re=L,oe=B,ae=W,ie=X,se=Y,de=q,ue=H,pe=J,ce=K;export{oe as CheckboxItem,ee as Content,T as ContextMenu,z as ContextMenuArrow,B as ContextMenuCheckboxItem,U as ContextMenuContent,E as ContextMenuGroup,L as ContextMenuItem,Y as ContextMenuItemIndicator,F as ContextMenuLabel,A as ContextMenuPortal,W as ContextMenuRadioGroup,X as ContextMenuRadioItem,q as ContextMenuSeparator,H as ContextMenuSub,K as ContextMenuSubContent,J as ContextMenuSubTrigger,D as ContextMenuTrigger,te as Group,re as Item,se as ItemIndicator,ne as Label,$ as Portal,ae as RadioGroup,ie as RadioItem,V as Root,de as Separator,ue as Sub,ce as SubContent,pe as SubTrigger,Z as Trigger,I as createContextMenuScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-context-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/context-menu/src/ContextMenu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar CONTEXT_MENU_NAME = \"ContextMenu\";\nvar [createContextMenuContext, createContextMenuScope] = createContextScope(CONTEXT_MENU_NAME, [\n createMenuScope\n]);\nvar useMenuScope = createMenuScope();\nvar [ContextMenuProvider, useContextMenuContext] = createContextMenuContext(CONTEXT_MENU_NAME);\nvar ContextMenu = (props) => {\n const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;\n const [open, setOpen] = React.useState(false);\n const menuScope = useMenuScope(__scopeContextMenu);\n const handleOpenChangeProp = useCallbackRef(onOpenChange);\n const handleOpenChange = React.useCallback(\n (open2) => {\n setOpen(open2);\n handleOpenChangeProp(open2);\n },\n [handleOpenChangeProp]\n );\n return /* @__PURE__ */ jsx(\n ContextMenuProvider,\n {\n scope: __scopeContextMenu,\n open,\n onOpenChange: handleOpenChange,\n modal,\n children: /* @__PURE__ */ jsx(\n MenuPrimitive.Root,\n {\n ...menuScope,\n dir,\n open,\n onOpenChange: handleOpenChange,\n modal,\n children\n }\n )\n }\n );\n};\nContextMenu.displayName = CONTEXT_MENU_NAME;\nvar TRIGGER_NAME = \"ContextMenuTrigger\";\nvar ContextMenuTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, disabled = false, ...triggerProps } = props;\n const context = useContextMenuContext(TRIGGER_NAME, __scopeContextMenu);\n const menuScope = useMenuScope(__scopeContextMenu);\n const pointRef = React.useRef({ x: 0, y: 0 });\n const virtualRef = React.useRef({\n getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...pointRef.current })\n });\n const longPressTimerRef = React.useRef(0);\n const clearLongPress = React.useCallback(\n () => window.clearTimeout(longPressTimerRef.current),\n []\n );\n const handleOpen = (event) => {\n pointRef.current = { x: event.clientX, y: event.clientY };\n context.onOpenChange(true);\n };\n React.useEffect(() => clearLongPress, [clearLongPress]);\n React.useEffect(() => void (disabled && clearLongPress()), [disabled, clearLongPress]);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { ...menuScope, virtualRef }),\n /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n ...triggerProps,\n ref: forwardedRef,\n style: { WebkitTouchCallout: \"none\", ...props.style },\n onContextMenu: disabled ? props.onContextMenu : composeEventHandlers(props.onContextMenu, (event) => {\n clearLongPress();\n handleOpen(event);\n event.preventDefault();\n }),\n onPointerDown: disabled ? props.onPointerDown : composeEventHandlers(\n props.onPointerDown,\n whenTouchOrPen((event) => {\n clearLongPress();\n longPressTimerRef.current = window.setTimeout(() => handleOpen(event), 700);\n })\n ),\n onPointerMove: disabled ? props.onPointerMove : composeEventHandlers(props.onPointerMove, whenTouchOrPen(clearLongPress)),\n onPointerCancel: disabled ? props.onPointerCancel : composeEventHandlers(props.onPointerCancel, whenTouchOrPen(clearLongPress)),\n onPointerUp: disabled ? props.onPointerUp : composeEventHandlers(props.onPointerUp, whenTouchOrPen(clearLongPress))\n }\n )\n ] });\n }\n);\nContextMenuTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"ContextMenuPortal\";\nvar ContextMenuPortal = (props) => {\n const { __scopeContextMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nContextMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"ContextMenuContent\";\nvar ContextMenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...contentProps } = props;\n const context = useContextMenuContext(CONTENT_NAME, __scopeContextMenu);\n const menuScope = useMenuScope(__scopeContextMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n side: \"right\",\n sideOffset: 2,\n align: \"start\",\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented && hasInteractedOutsideRef.current) {\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented && !context.modal) hasInteractedOutsideRef.current = true;\n },\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-context-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-context-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-context-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-context-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-context-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nContextMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"ContextMenuGroup\";\nvar ContextMenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nContextMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"ContextMenuLabel\";\nvar ContextMenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nContextMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"ContextMenuItem\";\nvar ContextMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nContextMenuItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"ContextMenuCheckboxItem\";\nvar ContextMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n});\nContextMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"ContextMenuRadioGroup\";\nvar ContextMenuRadioGroup = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n});\nContextMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"ContextMenuRadioItem\";\nvar ContextMenuRadioItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n});\nContextMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"ContextMenuItemIndicator\";\nvar ContextMenuItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nContextMenuItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"ContextMenuSeparator\";\nvar ContextMenuSeparator = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n});\nContextMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"ContextMenuArrow\";\nvar ContextMenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nContextMenuArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"ContextMenuSub\";\nvar ContextMenuSub = (props) => {\n const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nContextMenuSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"ContextMenuSubTrigger\";\nvar ContextMenuSubTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...triggerItemProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...triggerItemProps, ref: forwardedRef });\n});\nContextMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"ContextMenuSubContent\";\nvar ContextMenuSubContent = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-context-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-context-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-context-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-context-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-context-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nContextMenuSubContent.displayName = SUB_CONTENT_NAME;\nfunction whenTouchOrPen(handler) {\n return (event) => event.pointerType !== \"mouse\" ? handler(event) : void 0;\n}\nvar Root2 = ContextMenu;\nvar Trigger = ContextMenuTrigger;\nvar Portal2 = ContextMenuPortal;\nvar Content2 = ContextMenuContent;\nvar Group2 = ContextMenuGroup;\nvar Label2 = ContextMenuLabel;\nvar Item2 = ContextMenuItem;\nvar CheckboxItem2 = ContextMenuCheckboxItem;\nvar RadioGroup2 = ContextMenuRadioGroup;\nvar RadioItem2 = ContextMenuRadioItem;\nvar ItemIndicator2 = ContextMenuItemIndicator;\nvar Separator2 = ContextMenuSeparator;\nvar Arrow2 = ContextMenuArrow;\nvar Sub2 = ContextMenuSub;\nvar SubTrigger2 = ContextMenuSubTrigger;\nvar SubContent2 = ContextMenuSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuItemIndicator,\n ContextMenuLabel,\n ContextMenuPortal,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n Group2 as Group,\n Item2 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root2 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createContextMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["CONTEXT_MENU_NAME","createContextMenuContext","createContextMenuScope","createContextScope","createMenuScope","useMenuScope","ContextMenuProvider","useContextMenuContext","ContextMenu","props","__scopeContextMenu","children","onOpenChange","dir","modal","open","setOpen","React","useState","menuScope","handleOpenChangeProp","useCallbackRef","handleOpenChange","useCallback","open2","jsx","scope","MenuPrimitive.Root","displayName","TRIGGER_NAME","ContextMenuTrigger","forwardRef","forwardedRef","disabled","triggerProps","context","pointRef","useRef","x","y","virtualRef","getBoundingClientRect","DOMRect","fromRect","width","height","current","longPressTimerRef","clearLongPress","window","clearTimeout","handleOpen","event","clientX","clientY","useEffect","jsxs","Fragment","MenuPrimitive.Anchor","Primitive","span","ref","style","WebkitTouchCallout","onContextMenu","composeEventHandlers","preventDefault","onPointerDown","whenTouchOrPen","setTimeout","onPointerMove","onPointerCancel","onPointerUp","ContextMenuPortal","portalProps","MenuPrimitive.Portal","CONTENT_NAME","ContextMenuContent","contentProps","hasInteractedOutsideRef","MenuPrimitive.Content","side","sideOffset","align","onCloseAutoFocus","defaultPrevented","onInteractOutside","ContextMenuGroup","groupProps","MenuPrimitive.Group","ContextMenuLabel","labelProps","MenuPrimitive.Label","ContextMenuItem","itemProps","MenuPrimitive.Item","ContextMenuCheckboxItem","checkboxItemProps","MenuPrimitive.CheckboxItem","ContextMenuRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","ContextMenuRadioItem","radioItemProps","MenuPrimitive.RadioItem","ContextMenuItemIndicator","itemIndicatorProps","MenuPrimitive.ItemIndicator","ContextMenuSeparator","separatorProps","MenuPrimitive.Separator","ContextMenuArrow","arrowProps","MenuPrimitive.Arrow","ContextMenuSub","openProp","defaultOpen","useControllableState","prop","defaultProp","onChange","MenuPrimitive.Sub","ContextMenuSubTrigger","triggerItemProps","MenuPrimitive.SubTrigger","ContextMenuSubContent","subContentProps","MenuPrimitive.SubContent","handler","pointerType","Root2","Trigger","Portal2","Content2","Group2","Label2","Item2","CheckboxItem2","RadioGroup2","RadioItem2","ItemIndicator2","Separator2","Sub2","SubTrigger2","SubContent2"],"mappings":"ytBAYA,IAAIA,EAAoB,eACnBC,EAA0BC,GAA0BC,EAAmBH,EAAmB,CAC7FI,IAEEC,EAAeD,KACdE,EAAqBC,GAAyBN,EAAyBD,GACxEQ,EAAeC,IACjB,MAAMC,mBAAEA,EAAkBC,SAAEA,EAAQC,aAAEA,EAAYC,IAAEA,EAAGC,MAAEA,GAAQ,GAASL,GACnEM,EAAMC,GAAWC,EAAMC,UAAS,GACjCC,EAAYd,EAAaK,GACzBU,EAAuBC,EAAeT,GACtCU,EAAmBL,EAAMM,aAC5BC,IACCR,EAAQQ,GACRJ,EAAqBI,EAAM,GAE7B,CAACJ,IAEH,OAAuBK,EAAGA,IACxBnB,EACA,CACEoB,MAAOhB,EACPK,OACAH,aAAcU,EACdR,QACAH,SAA0Bc,EAAGA,IAC3BE,EACA,IACKR,EACHN,MACAE,OACAH,aAAcU,EACdR,QACAH,cAIP,EAEHH,EAAYoB,YAAc5B,EAC1B,IAAI6B,EAAe,qBACfC,EAAqBb,EAAMc,YAC7B,CAACtB,EAAOuB,KACN,MAAMtB,mBAAEA,EAAkBuB,SAAEA,GAAW,KAAUC,GAAiBzB,EAC5D0B,EAAU5B,EAAsBsB,EAAcnB,GAC9CS,EAAYd,EAAaK,GACzB0B,EAAWnB,EAAMoB,OAAO,CAAEC,EAAG,EAAGC,EAAG,IACnCC,EAAavB,EAAMoB,OAAO,CAC9BI,sBAAuB,IAAMC,QAAQC,SAAS,CAAEC,MAAO,EAAGC,OAAQ,KAAMT,EAASU,YAE7EC,EAAoB9B,EAAMoB,OAAO,GACjCW,EAAiB/B,EAAMM,aAC3B,IAAM0B,OAAOC,aAAaH,EAAkBD,UAC5C,IAEIK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,EACbsC,GAAiBnC,EACjBoC,GAAajC,EAEbkC,GAAO5B,EACP6B,GAAcrB,EACdsB,GAAcnB"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-context-menu/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/context-menu/src/ContextMenu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar CONTEXT_MENU_NAME = \"ContextMenu\";\nvar [createContextMenuContext, createContextMenuScope] = createContextScope(CONTEXT_MENU_NAME, [\n createMenuScope\n]);\nvar useMenuScope = createMenuScope();\nvar [ContextMenuProvider, useContextMenuContext] = createContextMenuContext(CONTEXT_MENU_NAME);\nvar ContextMenu = (props) => {\n const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;\n const [open, setOpen] = React.useState(false);\n const menuScope = useMenuScope(__scopeContextMenu);\n const handleOpenChangeProp = useCallbackRef(onOpenChange);\n const handleOpenChange = React.useCallback(\n (open2) => {\n setOpen(open2);\n handleOpenChangeProp(open2);\n },\n [handleOpenChangeProp]\n );\n return /* @__PURE__ */ jsx(\n ContextMenuProvider,\n {\n scope: __scopeContextMenu,\n open,\n onOpenChange: handleOpenChange,\n modal,\n children: /* @__PURE__ */ jsx(\n MenuPrimitive.Root,\n {\n ...menuScope,\n dir,\n open,\n onOpenChange: handleOpenChange,\n modal,\n children\n }\n )\n }\n );\n};\nContextMenu.displayName = CONTEXT_MENU_NAME;\nvar TRIGGER_NAME = \"ContextMenuTrigger\";\nvar ContextMenuTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, disabled = false, ...triggerProps } = props;\n const context = useContextMenuContext(TRIGGER_NAME, __scopeContextMenu);\n const menuScope = useMenuScope(__scopeContextMenu);\n const pointRef = React.useRef({ x: 0, y: 0 });\n const virtualRef = React.useRef({\n getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...pointRef.current })\n });\n const longPressTimerRef = React.useRef(0);\n const clearLongPress = React.useCallback(\n () => window.clearTimeout(longPressTimerRef.current),\n []\n );\n const handleOpen = (event) => {\n pointRef.current = { x: event.clientX, y: event.clientY };\n context.onOpenChange(true);\n };\n React.useEffect(() => clearLongPress, [clearLongPress]);\n React.useEffect(() => void (disabled && clearLongPress()), [disabled, clearLongPress]);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { ...menuScope, virtualRef }),\n /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n ...triggerProps,\n ref: forwardedRef,\n style: { WebkitTouchCallout: \"none\", ...props.style },\n onContextMenu: disabled ? props.onContextMenu : composeEventHandlers(props.onContextMenu, (event) => {\n clearLongPress();\n handleOpen(event);\n event.preventDefault();\n }),\n onPointerDown: disabled ? props.onPointerDown : composeEventHandlers(\n props.onPointerDown,\n whenTouchOrPen((event) => {\n clearLongPress();\n longPressTimerRef.current = window.setTimeout(() => handleOpen(event), 700);\n })\n ),\n onPointerMove: disabled ? props.onPointerMove : composeEventHandlers(props.onPointerMove, whenTouchOrPen(clearLongPress)),\n onPointerCancel: disabled ? props.onPointerCancel : composeEventHandlers(props.onPointerCancel, whenTouchOrPen(clearLongPress)),\n onPointerUp: disabled ? props.onPointerUp : composeEventHandlers(props.onPointerUp, whenTouchOrPen(clearLongPress))\n }\n )\n ] });\n }\n);\nContextMenuTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"ContextMenuPortal\";\nvar ContextMenuPortal = (props) => {\n const { __scopeContextMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nContextMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"ContextMenuContent\";\nvar ContextMenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...contentProps } = props;\n const context = useContextMenuContext(CONTENT_NAME, __scopeContextMenu);\n const menuScope = useMenuScope(__scopeContextMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n side: \"right\",\n sideOffset: 2,\n align: \"start\",\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented && hasInteractedOutsideRef.current) {\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented && !context.modal) hasInteractedOutsideRef.current = true;\n },\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-context-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-context-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-context-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-context-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-context-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nContextMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"ContextMenuGroup\";\nvar ContextMenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nContextMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"ContextMenuLabel\";\nvar ContextMenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nContextMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"ContextMenuItem\";\nvar ContextMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nContextMenuItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"ContextMenuCheckboxItem\";\nvar ContextMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n});\nContextMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"ContextMenuRadioGroup\";\nvar ContextMenuRadioGroup = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n});\nContextMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"ContextMenuRadioItem\";\nvar ContextMenuRadioItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n});\nContextMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"ContextMenuItemIndicator\";\nvar ContextMenuItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nContextMenuItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"ContextMenuSeparator\";\nvar ContextMenuSeparator = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n});\nContextMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"ContextMenuArrow\";\nvar ContextMenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeContextMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nContextMenuArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"ContextMenuSub\";\nvar ContextMenuSub = (props) => {\n const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nContextMenuSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"ContextMenuSubTrigger\";\nvar ContextMenuSubTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...triggerItemProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...triggerItemProps, ref: forwardedRef });\n});\nContextMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"ContextMenuSubContent\";\nvar ContextMenuSubContent = React.forwardRef((props, forwardedRef) => {\n const { __scopeContextMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeContextMenu);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-context-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-context-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-context-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-context-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-context-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nContextMenuSubContent.displayName = SUB_CONTENT_NAME;\nfunction whenTouchOrPen(handler) {\n return (event) => event.pointerType !== \"mouse\" ? handler(event) : void 0;\n}\nvar Root2 = ContextMenu;\nvar Trigger = ContextMenuTrigger;\nvar Portal2 = ContextMenuPortal;\nvar Content2 = ContextMenuContent;\nvar Group2 = ContextMenuGroup;\nvar Label2 = ContextMenuLabel;\nvar Item2 = ContextMenuItem;\nvar CheckboxItem2 = ContextMenuCheckboxItem;\nvar RadioGroup2 = ContextMenuRadioGroup;\nvar RadioItem2 = ContextMenuRadioItem;\nvar ItemIndicator2 = ContextMenuItemIndicator;\nvar Separator2 = ContextMenuSeparator;\nvar Arrow2 = ContextMenuArrow;\nvar Sub2 = ContextMenuSub;\nvar SubTrigger2 = ContextMenuSubTrigger;\nvar SubContent2 = ContextMenuSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuItemIndicator,\n ContextMenuLabel,\n ContextMenuPortal,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n Group2 as Group,\n Item2 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root2 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createContextMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["CONTEXT_MENU_NAME","createContextMenuContext","createContextMenuScope","createContextScope","createMenuScope","useMenuScope","ContextMenuProvider","useContextMenuContext","ContextMenu","props","__scopeContextMenu","children","onOpenChange","dir","modal","open","setOpen","React","useState","menuScope","handleOpenChangeProp","useCallbackRef","handleOpenChange","useCallback","open2","jsx","scope","MenuPrimitive.Root","displayName","TRIGGER_NAME","ContextMenuTrigger","forwardRef","forwardedRef","disabled","triggerProps","context","pointRef","useRef","x","y","virtualRef","getBoundingClientRect","DOMRect","fromRect","width","height","current","longPressTimerRef","clearLongPress","window","clearTimeout","handleOpen","event","clientX","clientY","useEffect","jsxs","Fragment","MenuPrimitive.Anchor","Primitive","span","ref","style","WebkitTouchCallout","onContextMenu","composeEventHandlers","preventDefault","onPointerDown","whenTouchOrPen","setTimeout","onPointerMove","onPointerCancel","onPointerUp","ContextMenuPortal","portalProps","MenuPrimitive.Portal","CONTENT_NAME","ContextMenuContent","contentProps","hasInteractedOutsideRef","MenuPrimitive.Content","side","sideOffset","align","onCloseAutoFocus","defaultPrevented","onInteractOutside","ContextMenuGroup","groupProps","MenuPrimitive.Group","ContextMenuLabel","labelProps","MenuPrimitive.Label","ContextMenuItem","itemProps","MenuPrimitive.Item","ContextMenuCheckboxItem","checkboxItemProps","MenuPrimitive.CheckboxItem","ContextMenuRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","ContextMenuRadioItem","radioItemProps","MenuPrimitive.RadioItem","ContextMenuItemIndicator","itemIndicatorProps","MenuPrimitive.ItemIndicator","ContextMenuSeparator","separatorProps","MenuPrimitive.Separator","ContextMenuArrow","arrowProps","MenuPrimitive.Arrow","ContextMenuSub","openProp","defaultOpen","useControllableState","prop","defaultProp","onChange","MenuPrimitive.Sub","ContextMenuSubTrigger","triggerItemProps","MenuPrimitive.SubTrigger","ContextMenuSubContent","subContentProps","MenuPrimitive.SubContent","handler","pointerType","Root2","Trigger","Portal2","Content2","Group2","Label2","Item2","CheckboxItem2","RadioGroup2","RadioItem2","ItemIndicator2","Separator2","Sub2","SubTrigger2","SubContent2"],"mappings":"6wBAYA,IAAIA,EAAoB,eACnBC,EAA0BC,GAA0BC,EAAmBH,EAAmB,CAC7FI,IAEEC,EAAeD,KACdE,EAAqBC,GAAyBN,EAAyBD,GACxEQ,EAAeC,IACjB,MAAMC,mBAAEA,EAAkBC,SAAEA,EAAQC,aAAEA,EAAYC,IAAEA,EAAGC,MAAEA,GAAQ,GAASL,GACnEM,EAAMC,GAAWC,EAAMC,UAAS,GACjCC,EAAYd,EAAaK,GACzBU,EAAuBC,EAAeT,GACtCU,EAAmBL,EAAMM,aAC5BC,IACCR,EAAQQ,GACRJ,EAAqBI,EAAM,GAE7B,CAACJ,IAEH,OAAuBK,EACrBnB,EACA,CACEoB,MAAOhB,EACPK,OACAH,aAAcU,EACdR,QACAH,SAA0Bc,EACxBE,EACA,IACKR,EACHN,MACAE,OACAH,aAAcU,EACdR,QACAH,cAIP,EAEHH,EAAYoB,YAAc5B,EAC1B,IAAI6B,EAAe,qBACfC,EAAqBb,EAAMc,YAC7B,CAACtB,EAAOuB,KACN,MAAMtB,mBAAEA,EAAkBuB,SAAEA,GAAW,KAAUC,GAAiBzB,EAC5D0B,EAAU5B,EAAsBs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AHAyE,EAAsBjG,YAxBC,wBA4BpB,IAACsG,EAAQ1H,EACR2H,EAAUrG,EACVsG,EAAU3D,EACV4D,GAAWxD,EACXyD,GAAS/C,EACTgD,GAAS7C,EACT8C,GAAQ3C,EACR4C,GAAgBzC,EAChB0C,GAAcvC,EACdwC,GAAarC,EACbsC,GAAiBnC,EACjBoC,GAAajC,EAEbkC,GAAO5B,EACP6B,GAAcrB,EACdsB,GAAcnB"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{jsx as t}from"react/jsx-runtime";function o(o,r=[]){let c=[];const s=()=>{const t=c.map((t=>e.createContext(t)));return function(n){const r=n?.[o]||t;return e.useMemo((()=>({[`__scope${o}`]:{...n,[o]:r}})),[n,r])}};return s.scopeName=o,[function(n,r){const s=e.createContext(r),u=c.length;function i(n){const{scope:r,children:c,...i}=n,m=r?.[o][u]||s,p=e.useMemo((()=>i),Object.values(i));return t(m.Provider,{value:p,children:c})}return c=[...c,r],i.displayName=n+"Provider",[i,function(t,c){const i=c?.[o][u]||s,m=e.useContext(i);if(m)return m;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},n(s,...r)]}function n(...t){const o=t[0];if(1===t.length)return o;const n=()=>{const n=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const r=n.reduce(((e,{useScope:o,scopeName:n})=>({...e,...o(t)[`__scope${n}`]})),{});return e.useMemo((()=>({[`__scope${o.scopeName}`]:r})),[r])}};return n.scopeName=o.scopeName,n}export{o as createContextScope};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/createContext.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n function Provider(props) {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n function Provider(props) {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName][index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n }\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName][index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n Provider.displayName = rootComponentName + \"Provider\";\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContextScope","scopeName","createContextScopeDeps","defaultContexts","createScope","scopeContexts","map","defaultContext","React","createContext","scope","contexts","useMemo","rootComponentName","BaseContext","index","length","Provider","props","children","context","Context","value","Object","values","jsx","displayName","consumerName","useContext","Error","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","useScope","overrideScopes","nextScopes","reduce","nextScopes2"],"mappings":"gEAmBA,SAASA,EAAmBC,EAAWC,EAAyB,IAC9D,IAAIC,EAAkB,GAqBtB,MAAMC,EAAc,KAClB,MAAMC,EAAgBF,EAAgBG,KAAKC,GAClCC,EAAMC,cAAcF,KAE7B,OAAO,SAAkBG,GACvB,MAAMC,EAAWD,IAAQT,IAAcI,EACvC,OAAOG,EAAMI,SACX,KAAA,CAAS,CAAC,UAAUX,KAAc,IAAKS,EAAOT,CAACA,GAAYU,MAC3D,CAACD,EAAOC,GAEhB,CAAK,EAGH,OADAP,EAAYH,UAAYA,EACjB,CAjCP,SAAwBY,EAAmBN,GACzC,MAAMO,EAAcN,EAAMC,cAAcF,GAClCQ,EAAQZ,EAAgBa,OAE9B,SAASC,EAASC,GAChB,MAAMR,MAAEA,EAAKS,SAAEA,KAAaC,GAAYF,EAClCG,EAAUX,IAAQT,GAAWc,IAAUD,EACvCQ,EAAQd,EAAMI,SAAQ,IAAMQ,GAASG,OAAOC,OAAOJ,IACzD,OAAuBK,EAAIJ,EAAQJ,SAAU,CAAEK,QAAOH,YACvD,CASD,OAfAhB,EAAkB,IAAIA,EAAiBI,GAcvCU,EAASS,YAAcb,EAAoB,WACpC,CAACI,EARR,SAAqBU,EAAcjB,GACjC,MAAMW,EAAUX,IAAQT,GAAWc,IAAUD,EACvCM,EAAUZ,EAAMoB,WAAWP,GACjC,GAAID,EAAS,OAAOA,EACpB,QAAuB,IAAnBb,EAA2B,OAAOA,EACtC,MAAM,IAAIsB,MAAM,KAAKF,6BAAwCd,MAC9D,EAGF,EAcuBiB,EAAqB1B,KAAgBF,GAC/D,CACA,SAAS4B,KAAwBC,GAC/B,MAAMC,EAAYD,EAAO,GACzB,GAAsB,IAAlBA,EAAOf,OAAc,OAAOgB,EAChC,MAAM5B,EAAc,KAClB,MAAM6B,EAAaF,EAAOzB,KAAK4B,IAAkB,CAC/CC,SAAUD,IACVjC,UAAWiC,EAAajC,cAE1B,OAAO,SAA2BmC,GAChC,MAAMC,EAAaJ,EAAWK,QAAO,CAACC,GAAeJ,WAAUlC,gBAGtD,IAAKsC,KAFOJ,EAASC,GACI,UAAUnC,QAEzC,CAAE,GACL,OAAOO,EAAMI,SAAQ,MAAS,CAAC,UAAUoB,EAAU/B,aAAcoC,KAAe,CAACA,GACvF,CAAK,EAGH,OADAjC,EAAYH,UAAY+B,EAAU/B,UAC3BG,CACT"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{composeEventHandlers as t}from"../../../../../primitive/dist/index.mjs";import{Primitive as n,dispatchDiscreteCustomEvent as r}from"../../../../../react-primitive/dist/index.mjs";import{useComposedRefs as s}from"../../../../../react-compose-refs/dist/index.mjs";import{useCallbackRef as i}from"../../../../../react-use-callback-ref/dist/index.mjs";import{useEscapeKeydown as o}from"../../../../../react-use-escape-keydown/dist/index.mjs";import{jsx as a}from"react/jsx-runtime";var u,c="dismissableLayer.update",d="dismissableLayer.pointerDownOutside",l="dismissableLayer.focusOutside",m=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=e.forwardRef(((r,f)=>{const{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:w,onInteractOutside:h,onDismiss:D,...C}=r,L=e.useContext(m),[P,O]=e.useState(null),x=P?.ownerDocument??globalThis?.document,[,g]=e.useState({}),W=s(f,(e=>O(e))),j=Array.from(L.layers),[k]=[...L.layersWithOutsidePointerEventsDisabled].slice(-1),R=j.indexOf(k),T=P?j.indexOf(P):-1,B=L.layersWithOutsidePointerEventsDisabled.size>0,F=T>=R,S=function(t,n=globalThis?.document){const r=i(t),s=e.useRef(!1),o=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!s.current){let t=function(){E(d,r,s,{discrete:!0})};const s={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);s.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}}),[n,r]),{onPointerDownCapture:()=>s.current=!0}}((e=>{const t=e.target,n=[...L.branches].some((e=>e.contains(t)));F&&!n&&(b?.(e),h?.(e),e.defaultPrevented||D?.())}),x),z=function(t,n=globalThis?.document){const r=i(t),s=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!s.current){E(l,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}((e=>{const t=e.target;[...L.branches].some((e=>e.contains(t)))||(w?.(e),h?.(e),e.defaultPrevented||D?.())}),x);return o((e=>{T===L.layers.size-1&&(y?.(e),!e.defaultPrevented&&D&&(e.preventDefault(),D()))}),x),e.useEffect((()=>{if(P)return v&&(0===L.layersWithOutsidePointerEventsDisabled.size&&(u=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),L.layersWithOutsidePointerEventsDisabled.add(P)),L.layers.add(P),p(),()=>{v&&1===L.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=u)}}),[P,x,v,L]),e.useEffect((()=>()=>{P&&(L.layers.delete(P),L.layersWithOutsidePointerEventsDisabled.delete(P),p())}),[P,L]),e.useEffect((()=>{const e=()=>g({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)}),[]),a(n.div,{...C,ref:W,style:{pointerEvents:B?F?"auto":"none":void 0,...r.style},onFocusCapture:t(r.onFocusCapture,z.onFocusCapture),onBlurCapture:t(r.onBlurCapture,z.onBlurCapture),onPointerDownCapture:t(r.onPointerDownCapture,S.onPointerDownCapture)})}));f.displayName="DismissableLayer";var v=e.forwardRef(((t,r)=>{const i=e.useContext(m),o=e.useRef(null),u=s(r,o);return e.useEffect((()=>{const e=o.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}}),[i.branches]),a(n.div,{...t,ref:u})}));function p(){const e=new CustomEvent(c);document.dispatchEvent(e)}function E(e,t,n,{discrete:s}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),s?r(i,o):i.dispatchEvent(o)}v.displayName="DismissableLayerBranch";export{f as DismissableLayer,v as DismissableLayerBranch};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dismissable-layer/src/DismissableLayer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["originalBodyPointerEvents","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","DismissableLayerContext","React","createContext","layers","Set","layersWithOutsidePointerEventsDisabled","branches","DismissableLayer","forwardRef","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","useContext","node","setNode","useState","ownerDocument","globalThis","document","force","composedRefs","useComposedRefs","node2","Array","from","highestLayerWithOutsidePointerEventsDisabled","slice","highestLayerWithOutsidePointerEventsDisabledIndex","indexOf","index","isBodyPointerEventsDisabled","size","isPointerEventsEnabled","pointerDownOutside","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","useRef","handleClickRef","useEffect","handlePointerDown","event","target","current","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","discrete","originalEvent","pointerType","removeEventListener","addEventListener","once","timerId","window","setTimeout","clearTimeout","onPointerDownCapture","usePointerDownOutside","isPointerDownOnBranch","some","branch","contains","defaultPrevented","focusOutside","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","onFocusCapture","onBlurCapture","useFocusOutside","useEscapeKeydown","preventDefault","body","style","pointerEvents","add","dispatchUpdate","delete","handleUpdate","jsx","Primitive","div","ref","composeEventHandlers","displayName","DismissableLayerBranch","CustomEvent","dispatchEvent","name","handler","detail","bubbles","cancelable","dispatchDiscreteCustomEvent"],"mappings":"6fAUA,IAIIA,EAHAC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAEhBC,EAA0BC,EAAMC,cAAc,CAChDC,OAAwB,IAAIC,IAC5BC,uCAAwD,IAAID,IAC5DE,SAA0B,IAAIF,MAE5BG,EAAmBN,EAAMO,YAC3B,CAACC,EAAOC,KACN,MAAMC,4BACJA,GAA8B,EAAKC,gBACnCA,EAAeC,qBACfA,EAAoBC,eACpBA,EAAcC,kBACdA,EAAiBC,UACjBA,KACGC,GACDR,EACES,EAAUjB,EAAMkB,WAAWnB,IAC1BoB,EAAMC,GAAWpB,EAAMqB,SAAS,MACjCC,EAAgBH,GAAMG,eAAiBC,YAAYC,UAChD,CAAAC,GAASzB,EAAMqB,SAAS,CAAE,GAC7BK,EAAeC,EAAgBlB,GAAemB,GAAUR,EAAQQ,KAChE1B,EAAS2B,MAAMC,KAAKb,EAAQf,SAC3B6B,GAAgD,IAAId,EAAQb,wCAAwC4B,OAAO,GAC5GC,EAAoD/B,EAAOgC,QAAQH,GACnEI,EAAQhB,EAAOjB,EAAOgC,QAAQf,IAAS,EACvCiB,EAA8BnB,EAAQb,uCAAuCiC,KAAO,EACpFC,EAAyBH,GAASF,EAClCM,EA4FV,SAA+B3B,EAAsBU,EAAgBC,YAAYC,UAC/E,MAAMgB,EAA2BC,EAAe7B,GAC1C8B,EAA8B1C,EAAM2C,QAAO,GAC3CC,EAAiB5C,EAAM2C,QAAO,SAoCpC,OAlCA3C,EAAM6C,WAAU,KACd,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EAAMkE,eAAgBJ,EAAaI,gBACxEC,cAAee,EAAqBlF,EAAMmE,cAAeL,EAAaK,eACtEZ,qBAAsB2B,EACpBlF,EAAMuD,qBACNxB,EAAmBwB,uBAGxB,IAGLzD,EAAiBqF,YA1GY,mBA2G7B,IACIC,EAAyB5F,EAAMO,YAAW,CAACC,EAAOC,KACpD,MAAMQ,EAAUjB,EAAMkB,WAAWnB,GAC3B0F,EAAMzF,EAAM2C,OAAO,MACnBjB,EAAeC,EAAgBlB,EAAcgF,GAUnD,OATAzF,EAAM6C,WAAU,KACd,MAAM1B,EAAOsE,EAAIxC,QACjB,GAAI9B,EAEF,OADAF,EAAQZ,SAAS6E,IAAI/D,GACd,KACLF,EAAQZ,SAAS+E,OAAOjE,EAAK,CAEhC,GACA,CAACF,EAAQZ,WACWiF,EAAIC,EAAUC,IAAK,IAAKhF,EAAOiF,IAAK/D,GAAe,IAmE5E,SAASyD,IACP,MAAMpC,EAAQ,IAAI8C,YAAYjG,GAC9B4B,SAASsE,cAAc/C,EACzB,CACA,SAASI,EAA6B4C,EAAMC,EAASC,GAAQ5C,SAAEA,IAC7D,MAAML,EAASiD,EAAO3C,cAAcN,OAC9BD,EAAQ,IAAI8C,YAAYE,EAAM,CAAEG,SAAS,EAAOC,YAAY,EAAMF,WACpED,GAAShD,EAAOS,iBAAiBsC,EAAMC,EAAS,CAAEtC,MAAM,IACxDL,EACF+C,EAA4BpD,EAAQD,GAEpCC,EAAO8C,cAAc/C,EAEzB,CA9EA6C,EAAuBD,YAhBL"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";var t=0;function n(){e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??o()),document.body.insertAdjacentElement("beforeend",e[1]??o()),t++,()=>{1===t&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),t--}}),[])}function o(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}export{n as useFocusGuards};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/focus-guards/src/FocusGuards.tsx\nimport * as React from \"react\";\nvar count = 0;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n const edgeGuards = document.querySelectorAll(\"[data-radix-focus-guard]\");\n document.body.insertAdjacentElement(\"afterbegin\", edgeGuards[0] ?? createFocusGuard());\n document.body.insertAdjacentElement(\"beforeend\", edgeGuards[1] ?? createFocusGuard());\n count++;\n return () => {\n if (count === 1) {\n document.querySelectorAll(\"[data-radix-focus-guard]\").forEach((node) => node.remove());\n }\n count--;\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-radix-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.cssText = \"outline: none; opacity: 0; position: fixed; pointer-events: none\";\n return element;\n}\nvar Root = FocusGuards;\nexport {\n FocusGuards,\n Root,\n useFocusGuards\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["count","useFocusGuards","React","useEffect","edgeGuards","document","querySelectorAll","body","insertAdjacentElement","createFocusGuard","forEach","node","remove","element","createElement","setAttribute","tabIndex","style","cssText"],"mappings":"wBAIA,IAAIA,EAAQ,EAKZ,SAASC,IACPC,EAAMC,WAAU,KACd,MAAMC,EAAaC,SAASC,iBAAiB,4BAI7C,OAHAD,SAASE,KAAKC,sBAAsB,aAAcJ,EAAW,IAAMK,KACnEJ,SAASE,KAAKC,sBAAsB,YAAaJ,EAAW,IAAMK,KAClET,IACO,KACS,IAAVA,GACFK,SAASC,iBAAiB,4BAA4BI,SAASC,GAASA,EAAKC,WAE/EZ,GAAO,CACR,GACA,GACL,CACA,SAASS,IACP,MAAMI,EAAUR,SAASS,cAAc,QAIvC,OAHAD,EAAQE,aAAa,yBAA0B,IAC/CF,EAAQG,SAAW,EACnBH,EAAQI,MAAMC,QAAU,mEACjBL,CACT"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{composeEventHandlers as n}from"../../../../../primitive/dist/index.mjs";import{createCollection as t}from"../../../../../react-collection/dist/index.mjs";import{useComposedRefs as r,composeRefs as o}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as c}from"../../react-context/dist/index.mjs";import{useDirection as a}from"../../../../../react-direction/dist/index.mjs";import{DismissableLayer as i}from"../../react-dismissable-layer/dist/index.mjs";import{useFocusGuards as s}from"../../react-focus-guards/dist/index.mjs";import{FocusScope as u}from"../../../../../react-focus-scope/dist/index.mjs";import{useId as d}from"../../../../../react-id/dist/index.mjs";import{createPopperScope as l,Anchor as f,Content as p,Arrow as m,Root as h}from"../../../../../react-popper/dist/index.mjs";import{Portal as v}from"../../react-portal/dist/index.mjs";import{Presence as g}from"../../react-presence/dist/index.mjs";import{Primitive as _,dispatchDiscreteCustomEvent as w}from"../../../../../react-primitive/dist/index.mjs";import{createRovingFocusGroupScope as M,Root as y,Item as C}from"../../../../../react-roving-focus/dist/index.mjs";import{Slot as b}from"../../../../../react-slot/dist/index.mjs";import{useCallbackRef as R}from"../../../../../react-use-callback-ref/dist/index.mjs";import{hideOthers as k}from"aria-hidden";import{RemoveScroll as x}from"react-remove-scroll";import{jsx as P}from"react/jsx-runtime";var D=["Enter"," "],E=["ArrowUp","PageDown","End"],O=["ArrowDown","PageUp","Home",...E],I={ltr:[...D,"ArrowRight"],rtl:[...D,"ArrowLeft"]},T={ltr:["ArrowLeft"],rtl:["ArrowRight"]},S="Menu",[F,L,K]=t(S),[j,A]=c(S,[K,l,M]),N=l(),G=M(),[V,U]=j(S),[B,X]=j(S),Y=n=>{const{__scopeMenu:t,open:r=!1,children:o,dir:c,onOpenChange:i,modal:s=!0}=n,u=N(t),[d,l]=e.useState(null),f=e.useRef(!1),p=R(i),m=a(c);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})}}),[]),P(h,{...u,children:P(V,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:l,children:P(B,{scope:t,onClose:e.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:o})})})};Y.displayName=S;var z=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return P(f,{...o,...r,ref:n})}));z.displayName="MenuAnchor";var H="MenuPortal",[W,Z]=j(H,{forceMount:void 0}),q=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,c=U(H,n);return P(W,{scope:n,forceMount:t,children:P(g,{present:t||c.open,children:P(v,{asChild:!0,container:o,children:r})})})};q.displayName=H;var J="MenuContent",[Q,$]=j(J),ee=e.forwardRef(((e,n)=>{const t=Z(J,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,c=U(J,e.__scopeMenu),a=X(J,e.__scopeMenu);return P(F.Provider,{scope:e.__scopeMenu,children:P(g,{present:r||c.open,children:P(F.Slot,{scope:e.__scopeMenu,children:a.modal?P(ne,{...o,ref:n}):P(te,{...o,ref:n})})})})})),ne=e.forwardRef(((t,o)=>{const c=U(J,t.__scopeMenu),a=e.useRef(null),i=r(o,a);return e.useEffect((()=>{const e=a.current;if(e)return k(e)}),[]),P(re,{...t,ref:i,trapFocus:c.open,disableOutsidePointerEvents:c.open,disableOutsideScroll:!0,onFocusOutside:n(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>c.onOpenChange(!1)})})),te=e.forwardRef(((e,n)=>{const t=U(J,e.__scopeMenu);return P(re,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})})),re=e.forwardRef(((t,o)=>{const{__scopeMenu:c,loop:a=!1,trapFocus:d,onOpenAutoFocus:l,onCloseAutoFocus:f,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:_,onInteractOutside:w,onDismiss:M,disableOutsideScroll:C,...R}=t,k=U(J,c),D=X(J,c),I=N(c),T=G(c),S=L(c),[F,K]=e.useState(null),j=e.useRef(null),A=r(o,j,k.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=C?x:e.Fragment,q=C?{as:b,allowPinchZoom:!0}:void 0,$=e=>{const n=B.current+e,t=S().filter((e=>!e.disabled)),r=document.activeElement,o=t.find((e=>e.ref.current===r))?.textValue,c=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0])),o=r?n[0]:n,c=t?e.indexOf(t):-1;let a=(i=e,s=Math.max(c,0),i.map(((e,n)=>i[(s+n)%i.length])));var i,s;1===o.length&&(a=a.filter((e=>e!==t)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==t?u:void 0}(t.map((e=>e.textValue)),n,o),a=t.find((e=>e.textValue===c))?.ref.current;!function e(n){B.current=n,window.clearTimeout(V.current),""!==n&&(V.current=window.setTimeout((()=>e("")),1e3))}(n),a&&setTimeout((()=>a.focus()))};e.useEffect((()=>()=>window.clearTimeout(V.current)),[]),s();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,c=n.length-1;e<n.length;c=e++){const a=n[e].x,i=n[e].y,s=n[c].x,u=n[c].y;i>r!=u>r&&t<(s-a)*(r-i)/(u-i)+a&&(o=!o)}return o}(t,n)}(e,z.current?.area)),[]);return P(Q,{scope:c,searchRef:B,onItemEnter:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),onItemLeave:e.useCallback((e=>{ee(e)||(j.current?.focus(),K(null))}),[ee]),onTriggerLeave:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:e.useCallback((e=>{z.current=e}),[]),children:P(Z,{...q,children:P(u,{asChild:!0,trapped:d,onMountAutoFocus:n(l,(e=>{e.preventDefault(),j.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:f,children:P(i,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:_,onInteractOutside:w,onDismiss:M,children:P(y,{asChild:!0,...T,dir:D.dir,orientation:"vertical",loop:a,currentTabStopId:F,onCurrentTabStopIdChange:K,onEntryFocus:n(h,(e=>{D.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:P(p,{role:"menu","aria-orientation":"vertical","data-state":Ie(k.open),"data-radix-menu-content":"",dir:D.dir,...I,...R,ref:A,style:{outline:"none",...R.style},onKeyDown:n(R.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=j.current;if(e.target!==o)return;if(!O.includes(e.key))return;e.preventDefault();const c=S().filter((e=>!e.disabled)).map((e=>e.ref.current));E.includes(e.key)&&c.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(c)})),onBlur:n(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(V.current),B.current="")})),onPointerMove:n(t.onPointerMove,Fe((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 P(_.div,{role:"group",...r,ref:n})}));oe.displayName="MenuGroup";var ce=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return P(_.div,{...r,ref:n})}));ce.displayName="MenuLabel";var ae="MenuItem",ie="menu.itemSelect",se=e.forwardRef(((t,o)=>{const{disabled:c=!1,onSelect:a,...i}=t,s=e.useRef(null),u=X(ae,t.__scopeMenu),d=$(ae,t.__scopeMenu),l=r(o,s),f=e.useRef(!1);return P(ue,{...i,ref:l,disabled:c,onClick:n(t.onClick,(()=>{const e=s.current;if(!c&&e){const n=new CustomEvent(ie,{bubbles:!0,cancelable:!0});e.addEventListener(ie,(e=>a?.(e)),{once:!0}),w(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;c||n&&" "===e.key||D.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));se.displayName=ae;var ue=e.forwardRef(((t,o)=>{const{__scopeMenu:c,disabled:a=!1,textValue:i,...s}=t,u=$(ae,c),d=G(c),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())}),[s.children]),P(F.ItemSlot,{scope:c,disabled:a,textValue:i??h,children:P(C,{asChild:!0,...d,focusable:!a,children:P(_.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:f,onPointerMove:n(t.onPointerMove,Fe((e=>{if(a)u.onItemLeave(e);else if(u.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:n(t.onPointerLeave,Fe((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,...c}=e;return P(_e,{scope:e.__scopeMenu,checked:r,children:P(se,{role:"menuitemcheckbox","aria-checked":Te(r)?"mixed":r,...c,ref:t,"data-state":Se(r),onSelect:n(c.onSelect,(()=>o?.(!!Te(r)||!r)),{checkForDefaultPrevented:!1})})})}));de.displayName="MenuCheckboxItem";var le="MenuRadioGroup",[fe,pe]=j(le,{value:void 0,onValueChange:()=>{}}),me=e.forwardRef(((e,n)=>{const{value:t,onValueChange:r,...o}=e,c=R(r);return P(fe,{scope:e.__scopeMenu,value:t,onValueChange:c,children:P(oe,{...o,ref:n})})}));me.displayName=le;var he="MenuRadioItem",ve=e.forwardRef(((e,t)=>{const{value:r,...o}=e,c=pe(he,e.__scopeMenu),a=r===c.value;return P(_e,{scope:e.__scopeMenu,checked:a,children:P(se,{role:"menuitemradio","aria-checked":a,...o,ref:t,"data-state":Se(a),onSelect:n(o.onSelect,(()=>c.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));ve.displayName=he;var ge="MenuItemIndicator",[_e,we]=j(ge,{checked:!1}),Me=e.forwardRef(((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,c=we(ge,t);return P(g,{present:r||Te(c.checked)||!0===c.checked,children:P(_.span,{...o,ref:n,"data-state":Se(c.checked)})})}));Me.displayName=ge;var ye=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return P(_.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})}));ye.displayName="MenuSeparator";var Ce=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return P(m,{...o,...r,ref:n})}));Ce.displayName="MenuArrow";var be="MenuSub",[Re,ke]=j(be),xe=n=>{const{__scopeMenu:t,children:r,open:o=!1,onOpenChange:c}=n,a=U(be,t),i=N(t),[s,u]=e.useState(null),[l,f]=e.useState(null),p=R(c);return e.useEffect((()=>(!1===a.open&&p(!1),()=>p(!1))),[a.open,p]),P(h,{...i,children:P(V,{scope:t,open:o,onOpenChange:p,content:l,onContentChange:f,children:P(Re,{scope:t,contentId:d(),triggerId:d(),trigger:s,onTriggerChange:u,children:r})})})};xe.displayName=be;var Pe="MenuSubTrigger",De=e.forwardRef(((t,r)=>{const c=U(Pe,t.__scopeMenu),a=X(Pe,t.__scopeMenu),i=ke(Pe,t.__scopeMenu),s=$(Pe,t.__scopeMenu),u=e.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:l}=s,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]),P(z,{asChild:!0,...f,children:P(ue,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":i.contentId,"data-state":Ie(c.open),...t,ref:o(r,i.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),c.open||c.onOpenChange(!0))},onPointerMove:n(t.onPointerMove,Fe((e=>{s.onItemEnter(e),e.defaultPrevented||t.disabled||c.open||u.current||(s.onPointerGraceIntentChange(null),u.current=window.setTimeout((()=>{c.onOpenChange(!0),p()}),100))}))),onPointerLeave:n(t.onPointerLeave,Fe((e=>{p();const n=c.content?.getBoundingClientRect();if(n){const t=c.content?.dataset.side,r="right"===t,o=r?-5:5,a=n[r?"left":"right"],i=n[r?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:a,y:n.top},{x:i,y:n.top},{x:i,y:n.bottom},{x:a,y:n.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout((()=>s.onPointerGraceIntentChange(null)),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}}))),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==s.searchRef.current;t.disabled||n&&" "===e.key||I[a.dir].includes(e.key)&&(c.onOpenChange(!0),c.content?.focus(),e.preventDefault())}))})})}));De.displayName=Pe;var Ee="MenuSubContent",Oe=e.forwardRef(((t,o)=>{const c=Z(J,t.__scopeMenu),{forceMount:a=c.forceMount,...i}=t,s=U(J,t.__scopeMenu),u=X(J,t.__scopeMenu),d=ke(Ee,t.__scopeMenu),l=e.useRef(null),f=r(o,l);return P(F.Provider,{scope:t.__scopeMenu,children:P(g,{present:a||s.open,children:P(F.Slot,{scope:t.__scopeMenu,children:P(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&&s.onOpenChange(!1)})),onEscapeKeyDown:n(t.onEscapeKeyDown,(e=>{u.onClose(),e.preventDefault()})),onKeyDown:n(t.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),t=T[u.dir].includes(e.key);n&&t&&(s.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())}))})})})})}));function Ie(e){return e?"open":"closed"}function Te(e){return"indeterminate"===e}function Se(e){return Te(e)?"indeterminate":e?"checked":"unchecked"}function Fe(e){return n=>"mouse"===n.pointerType?e(n):void 0}Oe.displayName=Ee;var Le=Y,Ke=z,je=q,Ae=ee,Ne=oe,Ge=ce,Ve=se,Ue=de,Be=me,Xe=ve,Ye=Me,ze=ye,He=Ce,We=xe,Ze=De,qe=Oe;export{Ke 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,Ce as MenuArrow,de as MenuCheckboxItem,ee as MenuContent,oe as MenuGroup,se as MenuItem,Me as MenuItemIndicator,ce as MenuLabel,q as MenuPortal,me as MenuRadioGroup,ve as MenuRadioItem,ye as MenuSeparator,xe as MenuSub,Oe as MenuSubContent,De as MenuSubTrigger,je as Portal,Be as RadioGroup,Xe as RadioItem,Le as Root,ze as Separator,We as Sub,qe as SubContent,Ze as SubTrigger,A as createMenuScope};
2
+ //# sourceMappingURL=index.mjs.map