@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 e from"react";import{createContextScope as r}from"../../react-context/dist/index.mjs";import{createCollection as o}from"../../react-collection/dist/index.mjs";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs";import{composeEventHandlers as i}from"../../primitive/dist/index.mjs";import{useControllableState as n}from"../../react-use-controllable-state/dist/index.mjs";import{Primitive as a}from"../../react-primitive/dist/index.mjs";import{createCollapsibleScope as c,Root as s,Trigger as d,Content as l}from"../../react-collapsible/dist/index.mjs";import{useId as p}from"../../react-id/dist/index.mjs";import{useDirection as f}from"../../react-direction/dist/index.mjs";import{j as m}from"../../../../_virtual/jsx-runtime.mjs";var u="Accordion",x=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[j,b,h]=o(u),[v,w]=r(u,[h,c]),A=c(),g=e.forwardRef(((e,r)=>{const{type:o,...t}=e,i=t,n=t;return m.jsx(j.Provider,{scope:e.__scopeAccordion,children:"multiple"===o?m.jsx(k,{...n,ref:r}):m.jsx(R,{...i,ref:r})})}));g.displayName=u;var[_,y]=v(u),[C,I]=v(u,{collapsible:!1}),R=e.forwardRef(((r,o)=>{const{value:t,defaultValue:i,onValueChange:a=(()=>{}),collapsible:c=!1,...s}=r,[d,l]=n({prop:t,defaultProp:i,onChange:a});return m.jsx(_,{scope:r.__scopeAccordion,value:d?[d]:[],onItemOpen:l,onItemClose:e.useCallback((()=>c&&l("")),[c,l]),children:m.jsx(C,{scope:r.__scopeAccordion,collapsible:c,children:m.jsx(O,{...s,ref:o})})})})),k=e.forwardRef(((r,o)=>{const{value:t,defaultValue:i,onValueChange:a=(()=>{}),...c}=r,[s=[],d]=n({prop:t,defaultProp:i,onChange:a}),l=e.useCallback((e=>d(((r=[])=>[...r,e]))),[d]),p=e.useCallback((e=>d(((r=[])=>r.filter((r=>r!==e))))),[d]);return m.jsx(_,{scope:r.__scopeAccordion,value:s,onItemOpen:l,onItemClose:p,children:m.jsx(C,{scope:r.__scopeAccordion,collapsible:!0,children:m.jsx(O,{...c,ref:o})})})})),[D,N]=v(u),O=e.forwardRef(((r,o)=>{const{__scopeAccordion:n,disabled:c,dir:s,orientation:d="vertical",...l}=r,p=e.useRef(null),u=t(p,o),h=b(n),v="ltr"===f(s),w=i(r.onKeyDown,(e=>{if(!x.includes(e.key))return;const r=e.target,o=h().filter((e=>!e.ref.current?.disabled)),t=o.findIndex((e=>e.ref.current===r)),i=o.length;if(-1===t)return;e.preventDefault();let n=t;const a=i-1,c=()=>{n=t+1,n>a&&(n=0)},s=()=>{n=t-1,n<0&&(n=a)};switch(e.key){case"Home":n=0;break;case"End":n=a;break;case"ArrowRight":"horizontal"===d&&(v?c():s());break;case"ArrowDown":"vertical"===d&&c();break;case"ArrowLeft":"horizontal"===d&&(v?s():c());break;case"ArrowUp":"vertical"===d&&s()}const l=n%i;o[l].ref.current?.focus()}));return m.jsx(D,{scope:n,disabled:c,direction:s,orientation:d,children:m.jsx(j.Slot,{scope:n,children:m.jsx(a.div,{...l,"data-orientation":d,ref:u,onKeyDown:c?void 0:w})})})})),V="AccordionItem",[H,P]=v(V),z=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,value:t,...i}=e,n=N(V,o),a=y(V,o),c=A(o),d=p(),l=t&&a.value.includes(t)||!1,f=n.disabled||e.disabled;return m.jsx(H,{scope:o,open:l,disabled:f,triggerId:d,children:m.jsx(s,{"data-orientation":n.orientation,"data-state":q(l),...c,...i,ref:r,disabled:f,open:l,onOpenChange:e=>{e?a.onItemOpen(t):a.onItemClose(t)}})})}));z.displayName=V;var E="AccordionHeader",K=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(E,o);return m.jsx(a.h3,{"data-orientation":i.orientation,"data-state":q(n.open),"data-disabled":n.disabled?"":void 0,...t,ref:r})}));K.displayName=E;var L="AccordionTrigger",S=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(L,o),a=I(L,o),c=A(o);return m.jsx(j.ItemSlot,{scope:o,children:m.jsx(d,{"aria-disabled":n.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:n.triggerId,...c,...t,ref:r})})}));S.displayName=L;var T="AccordionContent",U=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(T,o),a=A(o);return m.jsx(l,{role:"region","aria-labelledby":n.triggerId,"data-orientation":i.orientation,...a,...t,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}));function q(e){return e?"open":"closed"}U.displayName=T;var B=g,F=z,G=K,J=S,M=U;export{g as Accordion,U as AccordionContent,K as AccordionHeader,z as AccordionItem,S as AccordionTrigger,M as Content,G as Header,F as Item,B as Root,J as Trigger,w as createAccordionScope};
1
+ import e from"react";import{createContextScope as r}from"../../react-context/dist/index.mjs";import{createCollection as o}from"../../react-collection/dist/index.mjs";import{useComposedRefs as t}from"../../react-compose-refs/dist/index.mjs";import{composeEventHandlers as i}from"../../primitive/dist/index.mjs";import{useControllableState as n}from"../../react-use-controllable-state/dist/index.mjs";import{Primitive as a}from"../../react-primitive/dist/index.mjs";import{createCollapsibleScope as c,Root as d,Trigger as l,Content as s}from"../../react-collapsible/dist/index.mjs";import{useId as p}from"../../react-id/dist/index.mjs";import{useDirection as f}from"../../react-direction/dist/index.mjs";import{jsx as m}from"react/jsx-runtime";var u="Accordion",b=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[h,v,w]=o(u),[A,g]=r(u,[w,c]),_=c(),x=e.forwardRef(((e,r)=>{const{type:o,...t}=e,i=t,n=t;return m(h.Provider,{scope:e.__scopeAccordion,children:"multiple"===o?m(k,{...n,ref:r}):m(j,{...i,ref:r})})}));x.displayName=u;var[y,C]=A(u),[I,R]=A(u,{collapsible:!1}),j=e.forwardRef(((r,o)=>{const{value:t,defaultValue:i,onValueChange:a=()=>{},collapsible:c=!1,...d}=r,[l,s]=n({prop:t,defaultProp:i,onChange:a});return m(y,{scope:r.__scopeAccordion,value:l?[l]:[],onItemOpen:s,onItemClose:e.useCallback((()=>c&&s("")),[c,s]),children:m(I,{scope:r.__scopeAccordion,collapsible:c,children:m(O,{...d,ref:o})})})})),k=e.forwardRef(((r,o)=>{const{value:t,defaultValue:i,onValueChange:a=()=>{},...c}=r,[d=[],l]=n({prop:t,defaultProp:i,onChange:a}),s=e.useCallback((e=>l(((r=[])=>[...r,e]))),[l]),p=e.useCallback((e=>l(((r=[])=>r.filter((r=>r!==e))))),[l]);return m(y,{scope:r.__scopeAccordion,value:d,onItemOpen:s,onItemClose:p,children:m(I,{scope:r.__scopeAccordion,collapsible:!0,children:m(O,{...c,ref:o})})})})),[D,N]=A(u),O=e.forwardRef(((r,o)=>{const{__scopeAccordion:n,disabled:c,dir:d,orientation:l="vertical",...s}=r,p=e.useRef(null),u=t(p,o),w=v(n),A="ltr"===f(d),g=i(r.onKeyDown,(e=>{if(!b.includes(e.key))return;const r=e.target,o=w().filter((e=>!e.ref.current?.disabled)),t=o.findIndex((e=>e.ref.current===r)),i=o.length;if(-1===t)return;e.preventDefault();let n=t;const a=i-1,c=()=>{n=t+1,n>a&&(n=0)},d=()=>{n=t-1,n<0&&(n=a)};switch(e.key){case"Home":n=0;break;case"End":n=a;break;case"ArrowRight":"horizontal"===l&&(A?c():d());break;case"ArrowDown":"vertical"===l&&c();break;case"ArrowLeft":"horizontal"===l&&(A?d():c());break;case"ArrowUp":"vertical"===l&&d()}const s=n%i;o[s].ref.current?.focus()}));return m(D,{scope:n,disabled:c,direction:d,orientation:l,children:m(h.Slot,{scope:n,children:m(a.div,{...s,"data-orientation":l,ref:u,onKeyDown:c?void 0:g})})})})),V="AccordionItem",[H,P]=A(V),z=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,value:t,...i}=e,n=N(V,o),a=C(V,o),c=_(o),l=p(),s=t&&a.value.includes(t)||!1,f=n.disabled||e.disabled;return m(H,{scope:o,open:s,disabled:f,triggerId:l,children:m(d,{"data-orientation":n.orientation,"data-state":q(s),...c,...i,ref:r,disabled:f,open:s,onOpenChange:e=>{e?a.onItemOpen(t):a.onItemClose(t)}})})}));z.displayName=V;var E="AccordionHeader",K=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(E,o);return m(a.h3,{"data-orientation":i.orientation,"data-state":q(n.open),"data-disabled":n.disabled?"":void 0,...t,ref:r})}));K.displayName=E;var L="AccordionTrigger",S=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(L,o),a=R(L,o),c=_(o);return m(h.ItemSlot,{scope:o,children:m(l,{"aria-disabled":n.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:n.triggerId,...c,...t,ref:r})})}));S.displayName=L;var T="AccordionContent",U=e.forwardRef(((e,r)=>{const{__scopeAccordion:o,...t}=e,i=N(u,o),n=P(T,o),a=_(o);return m(s,{role:"region","aria-labelledby":n.triggerId,"data-orientation":i.orientation,...a,...t,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}));function q(e){return e?"open":"closed"}U.displayName=T;var B=x,F=z,G=K,J=S,M=U;export{x as Accordion,U as AccordionContent,K as AccordionHeader,z as AccordionItem,S as AccordionTrigger,M as Content,G as Header,F as Item,B as Root,J as Trigger,g as createAccordionScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-accordion/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/accordion/src/Accordion.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport { createCollapsibleScope } from \"@radix-ui/react-collapsible\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ACCORDION_NAME = \"Accordion\";\nvar ACCORDION_KEYS = [\"Home\", \"End\", \"ArrowDown\", \"ArrowUp\", \"ArrowLeft\", \"ArrowRight\"];\nvar [Collection, useCollection, createCollectionScope] = createCollection(ACCORDION_NAME);\nvar [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [\n createCollectionScope,\n createCollapsibleScope\n]);\nvar useCollapsibleScope = createCollapsibleScope();\nvar Accordion = React.forwardRef(\n (props, forwardedRef) => {\n const { type, ...accordionProps } = props;\n const singleProps = accordionProps;\n const multipleProps = accordionProps;\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeAccordion, children: type === \"multiple\" ? /* @__PURE__ */ jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });\n }\n);\nAccordion.displayName = ACCORDION_NAME;\nvar [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);\nvar [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(\n ACCORDION_NAME,\n { collapsible: false }\n);\nvar AccordionImplSingle = React.forwardRef(\n (props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n collapsible = false,\n ...accordionSingleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value: value ? [value] : [],\n onItemOpen: setValue,\n onItemClose: React.useCallback(() => collapsible && setValue(\"\"), [collapsible, setValue]),\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })\n }\n );\n }\n);\nvar AccordionImplMultiple = React.forwardRef((props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n ...accordionMultipleProps\n } = props;\n const [value = [], setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const handleItemOpen = React.useCallback(\n (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),\n [setValue]\n );\n const handleItemClose = React.useCallback(\n (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),\n [setValue]\n );\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value,\n onItemOpen: handleItemOpen,\n onItemClose: handleItemClose,\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })\n }\n );\n});\nvar [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);\nvar AccordionImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, disabled, dir, orientation = \"vertical\", ...accordionProps } = props;\n const accordionRef = React.useRef(null);\n const composedRefs = useComposedRefs(accordionRef, forwardedRef);\n const getItems = useCollection(__scopeAccordion);\n const direction = useDirection(dir);\n const isDirectionLTR = direction === \"ltr\";\n const handleKeyDown = composeEventHandlers(props.onKeyDown, (event) => {\n if (!ACCORDION_KEYS.includes(event.key)) return;\n const target = event.target;\n const triggerCollection = getItems().filter((item) => !item.ref.current?.disabled);\n const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);\n const triggerCount = triggerCollection.length;\n if (triggerIndex === -1) return;\n event.preventDefault();\n let nextIndex = triggerIndex;\n const homeIndex = 0;\n const endIndex = triggerCount - 1;\n const moveNext = () => {\n nextIndex = triggerIndex + 1;\n if (nextIndex > endIndex) {\n nextIndex = homeIndex;\n }\n };\n const movePrev = () => {\n nextIndex = triggerIndex - 1;\n if (nextIndex < homeIndex) {\n nextIndex = endIndex;\n }\n };\n switch (event.key) {\n case \"Home\":\n nextIndex = homeIndex;\n break;\n case \"End\":\n nextIndex = endIndex;\n break;\n case \"ArrowRight\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n moveNext();\n } else {\n movePrev();\n }\n }\n break;\n case \"ArrowDown\":\n if (orientation === \"vertical\") {\n moveNext();\n }\n break;\n case \"ArrowLeft\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n movePrev();\n } else {\n moveNext();\n }\n }\n break;\n case \"ArrowUp\":\n if (orientation === \"vertical\") {\n movePrev();\n }\n break;\n }\n const clampedIndex = nextIndex % triggerCount;\n triggerCollection[clampedIndex].ref.current?.focus();\n });\n return /* @__PURE__ */ jsx(\n AccordionImplProvider,\n {\n scope: __scopeAccordion,\n disabled,\n direction: dir,\n orientation,\n children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...accordionProps,\n \"data-orientation\": orientation,\n ref: composedRefs,\n onKeyDown: disabled ? void 0 : handleKeyDown\n }\n ) })\n }\n );\n }\n);\nvar ITEM_NAME = \"AccordionItem\";\nvar [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME);\nvar AccordionItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, value, ...accordionItemProps } = props;\n const accordionContext = useAccordionContext(ITEM_NAME, __scopeAccordion);\n const valueContext = useAccordionValueContext(ITEM_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n const triggerId = useId();\n const open = value && valueContext.value.includes(value) || false;\n const disabled = accordionContext.disabled || props.disabled;\n return /* @__PURE__ */ jsx(\n AccordionItemProvider,\n {\n scope: __scopeAccordion,\n open,\n disabled,\n triggerId,\n children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Root,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(open),\n ...collapsibleScope,\n ...accordionItemProps,\n ref: forwardedRef,\n disabled,\n open,\n onOpenChange: (open2) => {\n if (open2) {\n valueContext.onItemOpen(value);\n } else {\n valueContext.onItemClose(value);\n }\n }\n }\n )\n }\n );\n }\n);\nAccordionItem.displayName = ITEM_NAME;\nvar HEADER_NAME = \"AccordionHeader\";\nvar AccordionHeader = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...headerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);\n return /* @__PURE__ */ jsx(\n Primitive.h3,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(itemContext.open),\n \"data-disabled\": itemContext.disabled ? \"\" : void 0,\n ...headerProps,\n ref: forwardedRef\n }\n );\n }\n);\nAccordionHeader.displayName = HEADER_NAME;\nvar TRIGGER_NAME = \"AccordionTrigger\";\nvar AccordionTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...triggerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Trigger,\n {\n \"aria-disabled\": itemContext.open && !collapsibleContext.collapsible || void 0,\n \"data-orientation\": accordionContext.orientation,\n id: itemContext.triggerId,\n ...collapsibleScope,\n ...triggerProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nAccordionTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"AccordionContent\";\nvar AccordionContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...contentProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(CONTENT_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Content,\n {\n role: \"region\",\n \"aria-labelledby\": itemContext.triggerId,\n \"data-orientation\": accordionContext.orientation,\n ...collapsibleScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n [\"--radix-accordion-content-height\"]: \"var(--radix-collapsible-content-height)\",\n [\"--radix-accordion-content-width\"]: \"var(--radix-collapsible-content-width)\",\n ...props.style\n }\n }\n );\n }\n);\nAccordionContent.displayName = CONTENT_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Accordion;\nvar Item = AccordionItem;\nvar Header = AccordionHeader;\nvar Trigger2 = AccordionTrigger;\nvar Content2 = AccordionContent;\nexport {\n Accordion,\n AccordionContent,\n AccordionHeader,\n AccordionItem,\n AccordionTrigger,\n Content2 as Content,\n Header,\n Item,\n Root2 as Root,\n Trigger2 as Trigger,\n createAccordionScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ACCORDION_NAME","ACCORDION_KEYS","Collection","useCollection","createCollectionScope","createCollection","createAccordionContext","createAccordionScope","createContextScope","createCollapsibleScope","useCollapsibleScope","Accordion","React","forwardRef","props","forwardedRef","type","accordionProps","singleProps","multipleProps","jsx","Provider","scope","__scopeAccordion","children","AccordionImplMultiple","ref","AccordionImplSingle","displayName","AccordionValueProvider","useAccordionValueContext","AccordionCollapsibleProvider","useAccordionCollapsibleContext","collapsible","value","valueProp","defaultValue","onValueChange","accordionSingleProps","setValue","useControllableState","prop","defaultProp","onChange","onItemOpen","onItemClose","useCallback","AccordionImpl","accordionMultipleProps","handleItemOpen","itemValue","prevValue","handleItemClose","filter","value2","AccordionImplProvider","useAccordionContext","disabled","dir","orientation","accordionRef","useRef","composedRefs","useComposedRefs","getItems","isDirectionLTR","useDirection","handleKeyDown","composeEventHandlers","onKeyDown","event","includes","key","target","triggerCollection","item","current","triggerIndex","findIndex","triggerCount","length","preventDefault","nextIndex","endIndex","moveNext","movePrev","clampedIndex","focus","direction","Slot","Primitive","div","ITEM_NAME","AccordionItemProvider","useAccordionItemContext","AccordionItem","accordionItemProps","accordionContext","valueContext","collapsibleScope","triggerId","useId","open","CollapsiblePrimitive.Root","getState","onOpenChange","open2","HEADER_NAME","AccordionHeader","headerProps","itemContext","h3","TRIGGER_NAME","AccordionTrigger","triggerProps","collapsibleContext","ItemSlot","CollapsiblePrimitive.Trigger","id","CONTENT_NAME","AccordionContent","contentProps","CollapsiblePrimitive.Content","role","style","Root2","Item","Header","Trigger2","Content2"],"mappings":"uvBAeA,IAAIA,EAAiB,YACjBC,EAAiB,CAAC,OAAQ,MAAO,YAAa,UAAW,YAAa,eACrEC,EAAYC,EAAeC,GAAyBC,EAAiBL,IACrEM,EAAwBC,GAAwBC,EAAmBR,EAAgB,CACtFI,EACAK,IAEEC,EAAsBD,IACtBE,EAAYC,EAAMC,YACpB,CAACC,EAAOC,KACN,MAAMC,KAAEA,KAASC,GAAmBH,EAC9BI,EAAcD,EACdE,EAAgBF,EACtB,OAAuBG,MAAIlB,EAAWmB,SAAU,CAAEC,MAAOR,EAAMS,iBAAkBC,SAAmB,aAATR,EAAsCI,EAAGA,IAACK,EAAuB,IAAKN,EAAeO,IAAKX,IAAkCK,EAAAA,IAAIO,EAAqB,IAAKT,EAAaQ,IAAKX,KAAkB,IAG7RJ,EAAUiB,YAAc5B,EACxB,IAAK6B,EAAwBC,GAA4BxB,EAAuBN,IAC3E+B,EAA8BC,GAAkC1B,EACnEN,EACA,CAAEiC,aAAa,IAEbN,EAAsBf,EAAMC,YAC9B,CAACC,EAAOC,KACN,MACEmB,MAAOC,EAASC,aAChBA,EAAYC,cACZA,EAAgB,SACfJ,YACDA,GAAc,KACXK,GACDxB,GACGoB,EAAOK,GAAYC,EAAqB,CAC7CC,KAAMN,EACNO,YAAaN,EACbO,SAAUN,IAEZ,OAAuBjB,EAAGA,IACxBS,EACA,CACEP,MAAOR,EAAMS,iBACbW,MAAOA,EAAQ,CAACA,GAAS,GACzBU,WAAYL,EACZM,YAAajC,EAAMkC,aAAY,IAAMb,GAAeM,EAAS,KAAK,CAACN,EAAaM,IAChFf,SAA0BJ,EAAGA,IAACW,EAA8B,CAAET,MAAOR,EAAMS,iBAAkBU,cAAaT,SAA0BJ,EA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EAAwByB,EAAchG,GACpD4E,EAAmBzF,EAAoBa,GAC7C,OAAuBH,EAAGA,IACxBsG,EACA,CACEC,KAAM,SACN,kBAAmBb,EAAYV,UAC/B,mBAAoBH,EAAiBtC,eAClCwC,KACAsB,EACH/F,IAAKX,EACL6G,MAAO,CACL,mCAAsC,0CACtC,kCAAqC,4CAClC9G,EAAM8G,QAGd,IAIL,SAASpB,EAASF,GAChB,OAAOA,EAAO,OAAS,QACzB,CAHAkB,EAAiB5F,YAAc2F,EAI5B,IAACM,EAAQlH,EACRmH,EAAO/B,EACPgC,EAASnB,EACToB,EAAWf,EACXgB,EAAWT"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-accordion/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/accordion/src/Accordion.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport { createCollapsibleScope } from \"@radix-ui/react-collapsible\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ACCORDION_NAME = \"Accordion\";\nvar ACCORDION_KEYS = [\"Home\", \"End\", \"ArrowDown\", \"ArrowUp\", \"ArrowLeft\", \"ArrowRight\"];\nvar [Collection, useCollection, createCollectionScope] = createCollection(ACCORDION_NAME);\nvar [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [\n createCollectionScope,\n createCollapsibleScope\n]);\nvar useCollapsibleScope = createCollapsibleScope();\nvar Accordion = React.forwardRef(\n (props, forwardedRef) => {\n const { type, ...accordionProps } = props;\n const singleProps = accordionProps;\n const multipleProps = accordionProps;\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeAccordion, children: type === \"multiple\" ? /* @__PURE__ */ jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });\n }\n);\nAccordion.displayName = ACCORDION_NAME;\nvar [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);\nvar [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(\n ACCORDION_NAME,\n { collapsible: false }\n);\nvar AccordionImplSingle = React.forwardRef(\n (props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n collapsible = false,\n ...accordionSingleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value: value ? [value] : [],\n onItemOpen: setValue,\n onItemClose: React.useCallback(() => collapsible && setValue(\"\"), [collapsible, setValue]),\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })\n }\n );\n }\n);\nvar AccordionImplMultiple = React.forwardRef((props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n ...accordionMultipleProps\n } = props;\n const [value = [], setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const handleItemOpen = React.useCallback(\n (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),\n [setValue]\n );\n const handleItemClose = React.useCallback(\n (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),\n [setValue]\n );\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value,\n onItemOpen: handleItemOpen,\n onItemClose: handleItemClose,\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })\n }\n );\n});\nvar [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);\nvar AccordionImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, disabled, dir, orientation = \"vertical\", ...accordionProps } = props;\n const accordionRef = React.useRef(null);\n const composedRefs = useComposedRefs(accordionRef, forwardedRef);\n const getItems = useCollection(__scopeAccordion);\n const direction = useDirection(dir);\n const isDirectionLTR = direction === \"ltr\";\n const handleKeyDown = composeEventHandlers(props.onKeyDown, (event) => {\n if (!ACCORDION_KEYS.includes(event.key)) return;\n const target = event.target;\n const triggerCollection = getItems().filter((item) => !item.ref.current?.disabled);\n const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);\n const triggerCount = triggerCollection.length;\n if (triggerIndex === -1) return;\n event.preventDefault();\n let nextIndex = triggerIndex;\n const homeIndex = 0;\n const endIndex = triggerCount - 1;\n const moveNext = () => {\n nextIndex = triggerIndex + 1;\n if (nextIndex > endIndex) {\n nextIndex = homeIndex;\n }\n };\n const movePrev = () => {\n nextIndex = triggerIndex - 1;\n if (nextIndex < homeIndex) {\n nextIndex = endIndex;\n }\n };\n switch (event.key) {\n case \"Home\":\n nextIndex = homeIndex;\n break;\n case \"End\":\n nextIndex = endIndex;\n break;\n case \"ArrowRight\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n moveNext();\n } else {\n movePrev();\n }\n }\n break;\n case \"ArrowDown\":\n if (orientation === \"vertical\") {\n moveNext();\n }\n break;\n case \"ArrowLeft\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n movePrev();\n } else {\n moveNext();\n }\n }\n break;\n case \"ArrowUp\":\n if (orientation === \"vertical\") {\n movePrev();\n }\n break;\n }\n const clampedIndex = nextIndex % triggerCount;\n triggerCollection[clampedIndex].ref.current?.focus();\n });\n return /* @__PURE__ */ jsx(\n AccordionImplProvider,\n {\n scope: __scopeAccordion,\n disabled,\n direction: dir,\n orientation,\n children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...accordionProps,\n \"data-orientation\": orientation,\n ref: composedRefs,\n onKeyDown: disabled ? void 0 : handleKeyDown\n }\n ) })\n }\n );\n }\n);\nvar ITEM_NAME = \"AccordionItem\";\nvar [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME);\nvar AccordionItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, value, ...accordionItemProps } = props;\n const accordionContext = useAccordionContext(ITEM_NAME, __scopeAccordion);\n const valueContext = useAccordionValueContext(ITEM_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n const triggerId = useId();\n const open = value && valueContext.value.includes(value) || false;\n const disabled = accordionContext.disabled || props.disabled;\n return /* @__PURE__ */ jsx(\n AccordionItemProvider,\n {\n scope: __scopeAccordion,\n open,\n disabled,\n triggerId,\n children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Root,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(open),\n ...collapsibleScope,\n ...accordionItemProps,\n ref: forwardedRef,\n disabled,\n open,\n onOpenChange: (open2) => {\n if (open2) {\n valueContext.onItemOpen(value);\n } else {\n valueContext.onItemClose(value);\n }\n }\n }\n )\n }\n );\n }\n);\nAccordionItem.displayName = ITEM_NAME;\nvar HEADER_NAME = \"AccordionHeader\";\nvar AccordionHeader = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...headerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);\n return /* @__PURE__ */ jsx(\n Primitive.h3,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(itemContext.open),\n \"data-disabled\": itemContext.disabled ? \"\" : void 0,\n ...headerProps,\n ref: forwardedRef\n }\n );\n }\n);\nAccordionHeader.displayName = HEADER_NAME;\nvar TRIGGER_NAME = \"AccordionTrigger\";\nvar AccordionTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...triggerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Trigger,\n {\n \"aria-disabled\": itemContext.open && !collapsibleContext.collapsible || void 0,\n \"data-orientation\": accordionContext.orientation,\n id: itemContext.triggerId,\n ...collapsibleScope,\n ...triggerProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nAccordionTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"AccordionContent\";\nvar AccordionContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...contentProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(CONTENT_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Content,\n {\n role: \"region\",\n \"aria-labelledby\": itemContext.triggerId,\n \"data-orientation\": accordionContext.orientation,\n ...collapsibleScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n [\"--radix-accordion-content-height\"]: \"var(--radix-collapsible-content-height)\",\n [\"--radix-accordion-content-width\"]: \"var(--radix-collapsible-content-width)\",\n ...props.style\n }\n }\n );\n }\n);\nAccordionContent.displayName = CONTENT_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Accordion;\nvar Item = AccordionItem;\nvar Header = AccordionHeader;\nvar Trigger2 = AccordionTrigger;\nvar Content2 = AccordionContent;\nexport {\n Accordion,\n AccordionContent,\n AccordionHeader,\n AccordionItem,\n AccordionTrigger,\n Content2 as Content,\n Header,\n Item,\n Root2 as Root,\n Trigger2 as Trigger,\n createAccordionScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ACCORDION_NAME","ACCORDION_KEYS","Collection","useCollection","createCollectionScope","createCollection","createAccordionContext","createAccordionScope","createContextScope","createCollapsibleScope","useCollapsibleScope","Accordion","React","forwardRef","props","forwardedRef","type","accordionProps","singleProps","multipleProps","jsx","Provider","scope","__scopeAccordion","children","AccordionImplMultiple","ref","AccordionImplSingle","displayName","AccordionValueProvider","useAccordionValueContext","AccordionCollapsibleProvider","useAccordionCollapsibleContext","collapsible","value","valueProp","defaultValue","onValueChange","accordionSingleProps","setValue","useControllableState","prop","defaultProp","onChange","onItemOpen","onItemClose","useCallback","AccordionImpl","accordionMultipleProps","handleItemOpen","itemValue","prevValue","handleItemClose","filter","value2","AccordionImplProvider","useAccordionContext","disabled","dir","orientation","accordionRef","useRef","composedRefs","useComposedRefs","getItems","isDirectionLTR","useDirection","handleKeyDown","composeEventHandlers","onKeyDown","event","includes","key","target","triggerCollection","item","current","triggerIndex","findIndex","triggerCount","length","preventDefault","nextIndex","endIndex","moveNext","movePrev","clampedIndex","focus","direction","Slot","Primitive","div","ITEM_NAME","AccordionItemProvider","useAccordionItemContext","AccordionItem","accordionItemProps","accordionContext","valueContext","collapsibleScope","triggerId","useId","open","CollapsiblePrimitive.Root","getState","onOpenChange","open2","HEADER_NAME","AccordionHeader","headerProps","itemContext","h3","TRIGGER_NAME","AccordionTrigger","triggerProps","collapsibleContext","ItemSlot","CollapsiblePrimitive.Trigger","id","CONTENT_NAME","AccordionContent","contentProps","CollapsiblePrimitive.Content","role","style","Root2","Item","Header","Trig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S,QACzB,CAHAkB,EAAiB5F,YAAc2F,EAI5B,IAACM,EAAQlH,EACRmH,EAAO/B,EACPgC,EAASnB,EACToB,EAAWf,EACXgB,EAAWT"}
@@ -1,2 +1,2 @@
1
- import*as 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{createDialogScope as o,Trigger as a,Overlay as i,WarningProvider as s,Content as n,Title as l,Description as c,Close as d,Root as p,Portal as u}from"../../react-dialog/dist/index.mjs";import{composeEventHandlers as f}from"../../primitive/dist/index.mjs";import{Slottable as m}from"../../react-slot/dist/index.mjs";import{j as g}from"../../../../_virtual/jsx-runtime.mjs";var v="AlertDialog",[x,D]=r(v,[o]),y=o(),A=e=>{const{__scopeAlertDialog:r,...t}=e,o=y(r);return g.jsx(p,{...o,...t,modal:!0})};A.displayName=v;var j=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,i=y(t);return g.jsx(a,{...i,...o,ref:r})}));j.displayName="AlertDialogTrigger";var h=e=>{const{__scopeAlertDialog:r,...t}=e,o=y(r);return g.jsx(u,{...o,...t})};h.displayName="AlertDialogPortal";var _=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,a=y(t);return g.jsx(i,{...a,...o,ref:r})}));_.displayName="AlertDialogOverlay";var R="AlertDialogContent",[b,w]=x(R),N=e.forwardRef(((r,o)=>{const{__scopeAlertDialog:a,children:i,...l}=r,c=y(a),d=e.useRef(null),p=t(o,d),u=e.useRef(null);return g.jsx(s,{contentName:R,titleName:O,docsSlug:"alert-dialog",children:g.jsx(b,{scope:a,cancelRef:u,children:g.jsxs(n,{role:"alertdialog",...c,...l,ref:p,onOpenAutoFocus:f(l.onOpenAutoFocus,(e=>{e.preventDefault(),u.current?.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[g.jsx(m,{children:i}),g.jsx(E,{contentRef:d})]})})})}));N.displayName=R;var O="AlertDialogTitle",T=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,a=y(t);return g.jsx(l,{...a,...o,ref:r})}));T.displayName=O;var $="AlertDialogDescription",C=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,a=y(t);return g.jsx(c,{...a,...o,ref:r})}));C.displayName=$;var F=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,a=y(t);return g.jsx(d,{...a,...o,ref:r})}));F.displayName="AlertDialogAction";var I="AlertDialogCancel",P=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:o,...a}=e,{cancelRef:i}=w(I,o),s=y(o),n=t(r,i);return g.jsx(d,{...s,...a,ref:n})}));P.displayName=I;var E=({contentRef:r})=>{const t=`\`${R}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${R}\` by passing a \`${$}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${R}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect((()=>{document.getElementById(r.current?.getAttribute("aria-describedby"))||console.warn(t)}),[t,r]),null},S=A,q=j,B=h,Y=_,k=N,z=F,G=P,H=T,J=C;export{z as Action,A as AlertDialog,F as AlertDialogAction,P as AlertDialogCancel,N as AlertDialogContent,C as AlertDialogDescription,_ as AlertDialogOverlay,h as AlertDialogPortal,T as AlertDialogTitle,j as AlertDialogTrigger,G as Cancel,k as Content,J as Description,Y as Overlay,B as Portal,S as Root,H as Title,q as Trigger,D as createAlertDialogScope};
1
+ import*as 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{createDialogScope as o,Trigger as a,Overlay as i,WarningProvider as n,Content as s,Title as l,Description as c,Close as d,Root as p,Portal as u}from"../node_modules/@radix-ui/react-dialog/dist/index.mjs";import{composeEventHandlers as m}from"../../primitive/dist/index.mjs";import{Slottable as f}from"../../react-slot/dist/index.mjs";import{jsx as g,jsxs as v}from"react/jsx-runtime";var D="AlertDialog",[y,A]=r(D,[o]),_=o(),h=e=>{const{__scopeAlertDialog:r,...t}=e,o=_(r);return g(p,{...o,...t,modal:!0})};h.displayName=D;var R=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,i=_(t);return g(a,{...i,...o,ref:r})}));R.displayName="AlertDialogTrigger";var x=e=>{const{__scopeAlertDialog:r,...t}=e,o=_(r);return g(u,{...o,...t})};x.displayName="AlertDialogPortal";var b=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,a=_(t);return g(i,{...a,...o,ref:r})}));b.displayName="AlertDialogOverlay";var w="AlertDialogContent",[N,j]=y(w),O=e.forwardRef(((r,o)=>{const{__scopeAlertDialog:a,children:i,...l}=r,c=_(a),d=e.useRef(null),p=t(o,d),u=e.useRef(null);return g(n,{contentName:w,titleName:T,docsSlug:"alert-dialog",children:g(N,{scope:a,cancelRef:u,children:v(s,{role:"alertdialog",...c,...l,ref:p,onOpenAutoFocus:m(l.onOpenAutoFocus,(e=>{e.preventDefault(),u.current?.focus({preventScroll:!0})})),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[g(f,{children:i}),g(S,{contentRef:d})]})})})}));O.displayName=w;var T="AlertDialogTitle",$=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,a=_(t);return g(l,{...a,...o,ref:r})}));$.displayName=T;var C="AlertDialogDescription",F=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,a=_(t);return g(c,{...a,...o,ref:r})}));F.displayName=C;var I=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:t,...o}=e,a=_(t);return g(d,{...a,...o,ref:r})}));I.displayName="AlertDialogAction";var P="AlertDialogCancel",E=e.forwardRef(((e,r)=>{const{__scopeAlertDialog:o,...a}=e,{cancelRef:i}=j(P,o),n=_(o),s=t(r,i);return g(d,{...n,...a,ref:s})}));E.displayName=P;var S=({contentRef:r})=>{const t=`\`${w}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${w}\` by passing a \`${C}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${w}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect((()=>{document.getElementById(r.current?.getAttribute("aria-describedby"))||console.warn(t)}),[t,r]),null},q=h,B=R,Y=x,k=b,z=O,G=I,H=E,J=$,K=F;export{G as Action,h as AlertDialog,I as AlertDialogAction,E as AlertDialogCancel,O as AlertDialogContent,F as AlertDialogDescription,b as AlertDialogOverlay,x as AlertDialogPortal,$ as AlertDialogTitle,R as AlertDialogTrigger,H as Cancel,z as Content,K as Description,k as Overlay,Y as Portal,q as Root,J as Title,B as Trigger,A as createAlertDialogScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/alert-dialog/src/AlertDialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Slottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","modal","displayName","AlertDialogTrigger","React","forwardRef","forwardedRef","triggerProps","DialogPrimitive.Trigger","ref","AlertDialogPortal","portalProps","DialogPrimitive.Portal","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","AlertDialogContent","children","contentProps","contentRef","useRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","contentName","titleName","TITLE_NAME","docsSlug","scope","jsxs","DialogPrimitive.Content","role","onOpenAutoFocus","composeEventHandlers","event","preventDefault","current","focus","preventScroll","onPointerDownOutside","onInteractOutside","Slottable","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","MESSAGE","useEffect","document","getElementById","getAttribute","console","warn","Root2","Trigger2","Portal2","Overlay2","Content2","Action","Cancel","Title2","Description2"],"mappings":"oiBAWA,IAAIA,EAAY,eACXC,EAA0BC,GAA0BC,EAAmBH,EAAW,CACrFI,IAEEC,EAAiBD,IACjBE,EAAeC,IACjB,MAAMC,mBAAEA,KAAuBC,GAAqBF,EAC9CG,EAAcL,EAAeG,GACnC,OAAuBG,EAAGA,IAACC,EAAsB,IAAKF,KAAgBD,EAAkBI,OAAO,GAAO,EAExGP,EAAYQ,YAAcd,EAC1B,IACIe,EAAqBC,EAAMC,YAC7B,CAACV,EAAOW,KACN,MAAMV,mBAAEA,KAAuBW,GAAiBZ,E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EACR0E,EAAWjE,EACXkE,EAAU3D,EACV4D,EAAWzD,EACX0D,EAAWpD,EACXqD,EAASlB,EACTmB,EAASf,EACTgB,EAAS3B,EACT4B,EAAexB"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/alert-dialog/src/AlertDialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Slottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createAlertDialogScope","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","modal","displayName","AlertDialogTrigger","React","forwardRef","forwardedRef","triggerProps","DialogPrimitive.Trigger","ref","AlertDialogPortal","portalProps","DialogPrimitive.Portal","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","AlertDialogContent","children","contentProps","contentRef","useRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","contentName","titleName","TITLE_NAME","docsSlug","scope","jsxs","DialogPrimitive.Content","role","onOpenAutoFocus","composeEventHandlers","event","preventDefault","current","focus","preventScroll","onPointerDownOutside","onInteractOutside","Slottable","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","MESSAGE","useEffect","document","getElementById","getAttribute","console","warn","Root2","Trigger2","Portal2","Overlay2","Content2","Action","Cancel","Title2","Description2"],"mappings":"qkBAWA,IAAIA,EAAY,eACXC,EAA0BC,GAA0BC,EAAmBH,EAAW,CACrFI,IAEEC,EAAiBD,IACjBE,EAAeC,IACjB,MAAMC,mBAAEA,KAAuBC,GAAqBF,EAC9CG,EAAcL,EAAeG,GACnC,OAAuBG,EAAIC,EAAsB,IAAKF,KAAgBD,EAAkBI,OAAO,GAAO,EAExGP,EAAYQ,YAAcd,EAC1B,IACIe,EAAqBC,EAAMC,YAC7B,CAACV,EAAOW,KACN,MAAMV,mBAAEA,KAAuBW,GAAiBZ,EAC1CG,EAAcL,EAAeG,GACnC,OAAuBG,EAAIS,EAAyB,IAAKV,KAAgBS,EAAcE,IAAKH,GAAe,IAG/GH,EAAmBD,YARA,qBASnB,IACIQ,EAAqBf,IACvB,MAAMC,mBAAEA,KAAuBe,GAAgBhB,EACzCG,EAAcL,EAAeG,GACnC,OAAuBG,EAAIa,EAAwB,IAAKd,KAAgBa,GAAc,EAExFD,EAAkBR,YANA,oBAOlB,IACIW,EAAqBT,EAAMC,YAC7B,CAACV,EAAOW,KACN,MAAMV,mBAAEA,KAAuBkB,GAAiBnB,EAC1CG,EAAcL,EAAeG,GACnC,OAAuBG,EAAIgB,EAAyB,IAAKjB,KAAgBgB,EAAcL,IAAKH,GAAe,IAG/GO,EAAmBX,YARA,qBASnB,IAAIc,EAAe,sBACdC,EAA4BC,GAAgC7B,EAAyB2B,GACtFG,EAAqBf,EAAMC,YAC7B,CAACV,EAAOW,KACN,MAAMV,mBAAEA,EAAkBwB,SAAEA,KAAaC,GAAiB1B,EACpDG,EAAcL,EAAeG,GAC7B0B,EAAalB,EAAMmB,OAA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AAMC,YAC5B,CAACV,EAAOW,KACN,MAAMV,mBAAEA,KAAuB+D,GAAgBhE,GACzC+B,UAAEA,GAAcR,EAA6BuC,EAAa7D,GAC1DE,EAAcL,EAAeG,GAC7Ba,EAAMgB,EAAgBnB,EAAcoB,GAC1C,OAAuB3B,EAAIyD,EAAuB,IAAK1D,KAAgB6D,EAAalD,OAAM,IAG9FiD,EAAkBxD,YAAcuD,EAChC,IAAIX,EAAqB,EAAGxB,iBAC1B,MAAMsC,EAAU,KAAK5C,gIAEcA,sBAAiCkC,qQAEsFlC,iRAS1J,OANAZ,EAAMyD,WAAU,KACSC,SAASC,eAC9BzC,EAAWkB,SAASwB,aAAa,sBAEdC,QAAQC,KAAKN,EAAQ,GACzC,CAACA,EAAStC,IACN,IAAI,EAET6C,EAAQzE,EACR0E,EAAWjE,EACXkE,EAAU3D,EACV4D,EAAWzD,EACX0D,EAAWpD,EACXqD,EAASlB,EACTmB,EAASf,EACTgB,EAAS3B,EACT4B,EAAexB"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{jsx as t}from"react/jsx-runtime";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(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(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};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-alert-dialog/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":"gEAGA,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,EAAIX,EAAQG,SAAU,CAAEI,QAAOF,YACvD,CAQD,OADAF,EAASS,YA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AsB,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"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{composeEventHandlers as o}from"../../../../../primitive/dist/index.mjs";import{useComposedRefs as t}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as r,createContext as n}from"../../react-context/dist/index.mjs";import{useId as i}from"../../../../../react-id/dist/index.mjs";import{useControllableState as a}from"../../../../../react-use-controllable-state/dist/index.mjs";import{DismissableLayer as s}from"../../react-dismissable-layer/dist/index.mjs";import{FocusScope as c}from"../../../../../react-focus-scope/dist/index.mjs";import{Portal as d}from"../../react-portal/dist/index.mjs";import{Presence as l}from"../../react-presence/dist/index.mjs";import{Primitive as u}from"../../../../../react-primitive/dist/index.mjs";import{useFocusGuards as p}from"../../react-focus-guards/dist/index.mjs";import{RemoveScroll as f}from"react-remove-scroll";import{hideOthers as m}from"aria-hidden";import{Slot as g}from"../../../../../react-slot/dist/index.mjs";import{jsx as D,jsxs as h,Fragment as v}from"react/jsx-runtime";var _="Dialog",[y,R]=r(_),[b,C]=y(_),I=o=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:s,onOpenChange:c,modal:d=!0}=o,l=e.useRef(null),u=e.useRef(null),[p=!1,f]=a({prop:n,defaultProp:s,onChange:c});return D(b,{scope:t,triggerRef:l,contentRef:u,contentId:i(),titleId:i(),descriptionId:i(),open:p,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),modal:d,children:r})};I.displayName=_;var w="DialogTrigger",x=e.forwardRef(((e,r)=>{const{__scopeDialog:n,...i}=e,a=C(w,n),s=t(r,a.triggerRef);return D(u.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":V(a.open),...i,ref:s,onClick:o(e.onClick,a.onOpenToggle)})}));x.displayName=w;var O="DialogPortal",[F,N]=y(O,{forceMount:void 0}),j=o=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=o,a=C(O,t);return D(F,{scope:t,forceMount:r,children:e.Children.map(n,(e=>D(l,{present:r||a.open,children:D(d,{asChild:!0,container:i,children:e})})))})};j.displayName=O;var E="DialogOverlay",P=e.forwardRef(((e,o)=>{const t=N(E,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,i=C(E,e.__scopeDialog);return i.modal?D(l,{present:r||i.open,children:D(A,{...n,ref:o})}):null}));P.displayName=E;var A=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=C(E,t);return D(f,{as:g,allowPinchZoom:!0,shards:[n.contentRef],children:D(u.div,{"data-state":V(n.open),...r,ref:o,style:{pointerEvents:"auto",...r.style}})})})),M="DialogContent",k=e.forwardRef(((e,o)=>{const t=N(M,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,i=C(M,e.__scopeDialog);return D(l,{present:r||i.open,children:i.modal?D(T,{...n,ref:o}):D($,{...n,ref:o})})}));k.displayName=M;var T=e.forwardRef(((r,n)=>{const i=C(M,r.__scopeDialog),a=e.useRef(null),s=t(n,i.contentRef,a);return e.useEffect((()=>{const e=a.current;if(e)return m(e)}),[]),D(W,{...r,ref:s,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:o(r.onCloseAutoFocus,(e=>{e.preventDefault(),i.triggerRef.current?.focus()})),onPointerDownOutside:o(r.onPointerDownOutside,(e=>{const o=e.detail.originalEvent,t=0===o.button&&!0===o.ctrlKey;(2===o.button||t)&&e.preventDefault()})),onFocusOutside:o(r.onFocusOutside,(e=>e.preventDefault()))})})),$=e.forwardRef(((o,t)=>{const r=C(M,o.__scopeDialog),n=e.useRef(!1),i=e.useRef(!1);return D(W,{...o,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{o.onCloseAutoFocus?.(e),e.defaultPrevented||(n.current||r.triggerRef.current?.focus(),e.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:e=>{o.onInteractOutside?.(e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const t=e.target,a=r.triggerRef.current?.contains(t);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})})),W=e.forwardRef(((o,r)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:d,...l}=o,u=C(M,n),f=e.useRef(null),m=t(r,f);return p(),h(v,{children:[D(c,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:d,children:D(s,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":V(u.open),...l,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),h(v,{children:[D(J,{titleId:u.titleId}),D(L,{contentRef:f,descriptionId:u.descriptionId})]})]})})),B="DialogTitle",S=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=C(B,t);return D(u.h2,{id:n.titleId,...r,ref:o})}));S.displayName=B;var q="DialogDescription",H=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=C(q,t);return D(u.p,{id:n.descriptionId,...r,ref:o})}));H.displayName=q;var K="DialogClose",U=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,i=C(K,r);return D(u.button,{type:"button",...n,ref:t,onClick:o(e.onClick,(()=>i.onOpenChange(!1)))})}));function V(e){return e?"open":"closed"}U.displayName=K;var Z="DialogTitleWarning",[z,G]=n(Z,{contentName:M,titleName:B,docsSlug:"dialog"}),J=({titleId:o})=>{const t=G(Z),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return e.useEffect((()=>{if(o){document.getElementById(o)||console.error(r)}}),[r,o]),null},L=({contentRef:o,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${G("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{const e=o.current?.getAttribute("aria-describedby");if(t&&e){document.getElementById(t)||console.warn(r)}}),[r,o,t]),null},Q=I,X=x,Y=j,ee=P,oe=k,te=S,re=H,ne=U;export{ne as Close,oe as Content,re as Description,I as Dialog,U as DialogClose,k as DialogContent,H as DialogDescription,P as DialogOverlay,j as DialogPortal,S as DialogTitle,x as DialogTrigger,ee as Overlay,Y as Portal,Q as Root,te as Title,X as Trigger,z as WarningProvider,R as createDialogScope};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dialog/src/Dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DIALOG_NAME","createDialogContext","createDialogScope","createContextScope","DialogProvider","useDialogContext","Dialog","props","__scopeDialog","children","open","openProp","defaultOpen","onOpenChange","modal","triggerRef","React","useRef","contentRef","setOpen","useControllableState","prop","defaultProp","onChange","jsx","scope","contentId","useId","titleId","descriptionId","onOpenToggle","useCallback","prevOpen","displayName","TRIGGER_NAME","DialogTrigger","forwardRef","forwardedRef","triggerProps","context","composedTriggerRef","useComposedRefs","Primitive","button","type","getState","ref","onClick","composeEventHandlers","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","DialogPortal","container","Children","map","child","Presence","present","PortalPrimitive","asChild","OVERLAY_NAME","DialogOverlay","portalContext","overlayProps","DialogOverlayImpl","RemoveScroll","as","Slot","allowPinchZoom","shards","div","style","pointerEvents","CONTENT_NAME","DialogContent","contentProps","DialogContentModal","DialogContentNonModal","composedRefs","useEffect","content","current","hideOthers","DialogContentImpl","trapFocus","disableOutsidePointerEvents","onCloseAutoFocus","event","preventDefault","focus","onPointerDownOutside","originalEvent","detail","ctrlLeftClick","ctrlKey","onFocusOutside","hasInteractedOutsideRef","hasPointerDownOutsideRef","defaultPrevented","onInteractOutside","target","targetIsTrigger","contains","onOpenAutoFocus","useFocusGuards","jsxs","Fragment","FocusScope","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","DismissableLayer","role","id","onDismiss","TitleWarning","DescriptionWarning","TITLE_NAME","DialogTitle","titleProps","h2","DESCRIPTION_NAME","DialogDescription","descriptionProps","p","CLOSE_NAME","DialogClose","closeProps","TITLE_WARNING_NAME","WarningProvider","useWarningContext","createContext","contentName","titleName","docsSlug","titleWarningContext","MESSAGE","document","getElementById","console","error","describedById","getAttribute","warn","Root","Trigger","Portal","Overlay","Content","Title","Description","Close"],"mappings":"4jCAmBA,IAAIA,EAAc,UACbC,EAAqBC,GAAqBC,EAAmBH,IAC7DI,EAAgBC,GAAoBJ,EAAoBD,GACzDM,EAAUC,IACZ,MAAMC,cACJA,EAAaC,SACbA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,aACXA,EAAYC,MACZA,GAAQ,GACNP,EACEQ,EAAaC,EAAMC,OAAO,MAC1BC,EAAaF,EAAMC,OAAO,OACzBP,GAAO,EAAOS,GAAWC,EAAqB,CACnDC,KAAMV,EACNW,YAAaV,EACbW,SAAUV,IAEZ,OAAuBW,EACrBpB,EACA,CACEqB,MAAOjB,EACPO,aACAG,aACAQ,UAAWC,IACXC,QAASD,IACTE,cAAeF,IACfjB,OACAG,aAAcM,EACdW,aAAcd,EAAMe,aAAY,IAAMZ,GAASa,IAAcA,KAAW,CAACb,IACzEL,QACAL,YAEH,EAEHH,EAAO2B,YAAcjC,EACrB,IAAIkC,EAAe,gBACfC,EAAgBnB,EAAMoB,YACxB,CAAC7B,EAAO8B,KACN,MAAM7B,cAAEA,KAAkB8B,GAAiB/B,EACrCgC,EAAUlC,EAAiB6B,EAAc1B,GACzCgC,EAAqBC,EAAgBJ,EAAcE,EAAQxB,YACjE,OAAuBS,EACrBkB,EAAUC,OACV,CACEC,KAAM,SACN,gBAAiB,SACjB,gBAAiBL,EAAQ7B,KACzB,gBAAiB6B,EAAQb,UACzB,aAAcmB,EAASN,EAAQ7B,SAC5B4B,EACHQ,IAAKN,EACLO,QAASC,EAAqBzC,EA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EAAoBF,gJAE4BE,EAAoBD,WAO9F,OANAzH,EAAMiE,WAAU,KACd,GAAIrD,EAAS,CACMgH,SAASC,eAAejH,IAC1BkH,QAAQC,MAAMJ,EAC9B,IACA,CAACA,EAAS/G,IACN,IAAI,EAGT2F,EAAqB,EAAGrG,aAAYW,oBACtC,MACM8G,EAAU,6EADkBN,EAFL,4BAG0FE,gBAQvH,OAPAvH,EAAMiE,WAAU,KACd,MAAM+D,EAAgB9H,EAAWiE,SAAS8D,aAAa,oBACvD,GAAIpH,GAAiBmH,EAAe,CACXJ,SAASC,eAAehH,IAC1BiH,QAAQI,KAAKP,EACnC,IACA,CAACA,EAASzH,EAAYW,IAClB,IAAI,EAETsH,EAAO7I,EACP8I,EAAUjH,EACVkH,EAAShG,EACTiG,GAAUvF,EACVwF,GAAU3E,EACV4E,GAAQ/B,EACRgC,GAAc5B,EACd6B,GAAQzB"}
@@ -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-alert-dialog/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,MAAMC,EAAqBC,IACzB,GAAIA,EAAMC,SAAWN,EAA4BO,QAAS,CACxD,IAAIC,EAA4C,WAC9CC,EACEtD,EACA2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,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-alert-dialog/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 t from"react";import r from"react-dom";import{Primitive as e}from"../../../../../react-primitive/dist/index.mjs";import{useLayoutEffect as o}from"../../../../../react-use-layout-effect/dist/index.mjs";import{jsx as a}from"react/jsx-runtime";var i=t.forwardRef(((i,m)=>{const{container:s,...c}=i,[f,d]=t.useState(!1);o((()=>d(!0)),[]);const n=s||f&&globalThis?.document?.body;return n?r.createPortal(a(e.div,{...c,ref:m}),n):null}));i.displayName="Portal";export{i as Portal};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/src/Portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Portal","React","forwardRef","props","forwardedRef","container","containerProp","portalProps","mounted","setMounted","useState","useLayoutEffect","globalThis","document","body","ReactDOM","createPortal","jsx","Primitive","div","ref","displayName"],"mappings":"2PAQA,IACIA,EAASC,EAAMC,YAAW,CAACC,EAAOC,KACpC,MAAQC,UAAWC,KAAkBC,GAAgBJ,GAC9CK,EAASC,GAAcR,EAAMS,UAAS,GAC7CC,GAAgB,IAAMF,GAAW,IAAO,IACxC,MAAMJ,EAAYC,GAAiBE,GAAWI,YAAYC,UAAUC,KACpE,OAAOT,EAAYU,EAASC,aAA6BC,EAAIC,EAAUC,IAAK,IAAKZ,EAAaa,IAAKhB,IAAiBC,GAAa,IAAI,IAEvIL,EAAOqB,YARW"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import*as n from"react-dom";import{useComposedRefs as t}from"../../../../../react-compose-refs/dist/index.mjs";import{useLayoutEffect as r}from"../../../../../react-use-layout-effect/dist/index.mjs";var o=o=>{const{present:i,children:s}=o,a=function(t){const[o,i]=e.useState(),s=e.useRef({}),a=e.useRef(t),c=e.useRef("none"),m=t?"mounted":"unmounted",[f,d]=function(n,t){return e.useReducer(((e,n)=>t[e][n]??e),n)}(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=u(s.current);c.current="mounted"===f?e:"none"}),[f]),r((()=>{const e=s.current,n=a.current;if(n!==t){const r=c.current,o=u(e);if(t)d("MOUNT");else if("none"===o||"none"===e?.display)d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=t}}),[t,d]),r((()=>{if(o){const e=e=>{const t=u(s.current).includes(e.animationName);e.target===o&&t&&n.flushSync((()=>d("ANIMATION_END")))},t=e=>{e.target===o&&(c.current=u(s.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}d("ANIMATION_END")}),[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:e.useCallback((e=>{e&&(s.current=getComputedStyle(e)),i(e)}),[])}}(i),c="function"==typeof s?s({present:a.isPresent}):e.Children.only(s),m=t(a.ref,function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(c));return"function"==typeof s||a.isPresent?e.cloneElement(c,{ref:m}):null};function u(e){return e?.animationName||"none"}o.displayName="Presence";export{o as Presence};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/Presence.tsx\nimport * as React2 from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/useStateMachine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Presence\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Presence","props","present","children","presence","node","setNode","React2","useState","stylesRef","useRef","prevPresentRef","prevAnimationNameRef","initialState","state","send","machine","React","useReducer","event","useStateMachine","mounted","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","useEffect","currentAnimationName","getAnimationName","current","useLayoutEffect","styles","wasPresent","prevAnimationName","display","handleAnimationEnd","isCurrentAnimation","includes","animationName","target","ReactDOM","flushSync","handleAnimationStart","addEventListener","removeEventListener","isPresent","ref","useCallback","node2","getComputedStyle","usePresence","child","Children","only","useComposedRefs","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","cloneElement","displayName"],"mappings":"+NAkBG,IAACA,EAAYC,IACd,MAAMC,QAAEA,EAAOC,SAAEA,GAAaF,EACxBG,EAOR,SAAqBF,GACnB,MAAOG,EAAMC,GAAWC,EAAOC,WACzBC,EAAYF,EAAOG,OAAO,CAAE,GAC5BC,EAAiBJ,EAAOG,OAAOR,GAC/BU,EAAuBL,EAAOG,OAAO,QACrCG,EAAeX,EAAU,UAAY,aACpCY,EAAOC,GAvBhB,SAAyBF,EAAcG,GACrC,OAAOC,EAAMC,YAAW,CAACJ,EAAOK,IACZH,EAAQF,GAAOK,IACbL,GACnBD,EACL,CAkBwBO,CAAgBP,EAAc,CAClDQ,QAAS,CACPC,QAAS,YACTC,cAAe,oBAEjBC,iBAAkB,CAChBC,MAAO,UACPC,cAAe,aAEjBC,UAAW,CACTF,MAAO,aAuDX,OApDAlB,EA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,QAASE,EAAS2C,YAAexC,EAAO+C,SAASC,KAAKpD,GAC1G6C,EAAMQ,EAAgBpD,EAAS4C,IAuFvC,SAAuBS,GACrB,IAAIC,EAASC,OAAOC,yBAAyBH,EAAQxD,MAAO,QAAQ4D,IAChEC,EAAUJ,GAAU,mBAAoBA,GAAUA,EAAOK,eAC7D,GAAID,EACF,OAAOL,EAAQT,IAIjB,GAFAU,EAASC,OAAOC,yBAAyBH,EAAS,QAAQI,IAC1DC,EAAUJ,GAAU,mBAAoBA,GAAUA,EAAOK,eACrDD,EACF,OAAOL,EAAQxD,MAAM+C,IAEvB,OAAOS,EAAQxD,MAAM+C,KAAOS,EAAQT,GACtC,CAnG4CgB,CAAcX,IAExD,MADuC,mBAAblD,GACLC,EAAS2C,UAAYxC,EAAO0D,aAAaZ,EAAO,CAAEL,QAAS,IAAI,EAkFtF,SAASlB,EAAiBG,GACxB,OAAOA,GAAQO,eAAiB,MAClC,CAlFAxC,EAASkE,YAAc"}
@@ -1,2 +1,2 @@
1
- import*as r from"react";import{Primitive as i}from"../../react-primitive/dist/index.mjs";import{j as e}from"../../../../_virtual/jsx-runtime.mjs";var t=r.forwardRef(((r,t)=>{const{children:o,width:s=10,height:a=5,...m}=r;return e.jsx(i.svg,{...m,ref:t,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?o:e.jsx("polygon",{points:"0,0 30,0 15,10"})})}));t.displayName="Arrow";var o=t;export{t as Arrow,o as Root};
1
+ import*as r from"react";import{Primitive as e}from"../../react-primitive/dist/index.mjs";import{jsx as i}from"react/jsx-runtime";var t=r.forwardRef(((r,t)=>{const{children:o,width:a=10,height:s=5,...m}=r;return i(e.svg,{...m,ref:t,width:a,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:r.asChild?o:i("polygon",{points:"0,0 30,0 15,10"})})}));t.displayName="Arrow";var o=t;export{t as Arrow,o as Root};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-arrow/dist/index.mjs"],"sourcesContent":["// packages/react/arrow/src/Arrow.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Arrow\";\nvar Arrow = React.forwardRef((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.svg,\n {\n ...arrowProps,\n ref: forwardedRef,\n width,\n height,\n viewBox: \"0 0 30 10\",\n preserveAspectRatio: \"none\",\n children: props.asChild ? children : /* @__PURE__ */ jsx(\"polygon\", { points: \"0,0 30,0 15,10\" })\n }\n );\n});\nArrow.displayName = NAME;\nvar Root = Arrow;\nexport {\n Arrow,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Arrow","React","forwardRef","props","forwardedRef","children","width","height","arrowProps","jsx","Primitive","svg","ref","viewBox","preserveAspectRatio","asChild","points","displayName","Root"],"mappings":"kJAIA,IACIA,EAAQC,EAAMC,YAAW,CAACC,EAAOC,KACnC,MAAMC,SAAEA,EAAQC,MAAEA,EAAQ,GAAEC,OAAEA,EAAS,KAAMC,GAAeL,EAC5D,OAAuBM,EAAGA,IACxBC,EAAUC,IACV,IACKH,EACHI,IAAKR,EACLE,QACAC,SACAM,QAAS,YACTC,oBAAqB,OACrBT,SAAUF,EAAMY,QAAUV,EAA2BI,EAAGA,IAAC,UAAW,CAAEO,OAAQ,oBAEjF,IAEHhB,EAAMiB,YAhBK,QAiBR,IAACC,EAAOlB"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-arrow/dist/index.mjs"],"sourcesContent":["// packages/react/arrow/src/Arrow.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Arrow\";\nvar Arrow = React.forwardRef((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.svg,\n {\n ...arrowProps,\n ref: forwardedRef,\n width,\n height,\n viewBox: \"0 0 30 10\",\n preserveAspectRatio: \"none\",\n children: props.asChild ? children : /* @__PURE__ */ jsx(\"polygon\", { points: \"0,0 30,0 15,10\" })\n }\n );\n});\nArrow.displayName = NAME;\nvar Root = Arrow;\nexport {\n Arrow,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Arrow","React","forwardRef","props","forwardedRef","children","width","height","arrowProps","jsx","Primitive","svg","ref","viewBox","preserveAspectRatio","asChild","points","displayName","Root"],"mappings":"iIAIA,IACIA,EAAQC,EAAMC,YAAW,CAACC,EAAOC,KACnC,MAAMC,SAAEA,EAAQC,MAAEA,EAAQ,GAAEC,OAAEA,EAAS,KAAMC,GAAeL,EAC5D,OAAuBM,EACrBC,EAAUC,IACV,IACKH,EACHI,IAAKR,EACLE,QACAC,SACAM,QAAS,YACTC,oBAAqB,OACrBT,SAAUF,EAAMY,QAAUV,EAA2BI,EAAI,UAAW,CAAEO,OAAQ,oBAEjF,IAEHhB,EAAMiB,YAhBK,QAiBR,IAACC,EAAOlB"}
@@ -1,2 +1,2 @@
1
- import*as t from"react";import{Primitive as r}from"../../react-primitive/dist/index.mjs";import{j as i}from"../../../../_virtual/jsx-runtime.mjs";var o=t.forwardRef(((t,o)=>{const{ratio:a=1,style:e,...s}=t;return i.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:100/a+"%"},"data-radix-aspect-ratio-wrapper":"",children:i.jsx(r.div,{...s,ref:o,style:{...e,position:"absolute",top:0,right:0,bottom:0,left:0}})})}));o.displayName="AspectRatio";var a=o;export{o as AspectRatio,a as Root};
1
+ import*as t from"react";import{Primitive as r}from"../../react-primitive/dist/index.mjs";import{jsx as i}from"react/jsx-runtime";var e=t.forwardRef(((t,e)=>{const{ratio:o=1,style:a,...p}=t;return i("div",{style:{position:"relative",width:"100%",paddingBottom:100/o+"%"},"data-radix-aspect-ratio-wrapper":"",children:i(r.div,{...p,ref:e,style:{...a,position:"absolute",top:0,right:0,bottom:0,left:0}})})}));e.displayName="AspectRatio";var o=e;export{e as AspectRatio,o as Root};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs"],"sourcesContent":["// packages/react/aspect-ratio/src/AspectRatio.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"AspectRatio\";\nvar AspectRatio = React.forwardRef(\n (props, forwardedRef) => {\n const { ratio = 1 / 1, style, ...aspectRatioProps } = props;\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n style: {\n // ensures inner element is contained\n position: \"relative\",\n // ensures padding bottom trick maths works\n width: \"100%\",\n paddingBottom: `${100 / ratio}%`\n },\n \"data-radix-aspect-ratio-wrapper\": \"\",\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...aspectRatioProps,\n ref: forwardedRef,\n style: {\n ...style,\n // ensures children expand in ratio\n position: \"absolute\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n }\n )\n }\n );\n }\n);\nAspectRatio.displayName = NAME;\nvar Root = AspectRatio;\nexport {\n AspectRatio,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AspectRatio","React","forwardRef","props","forwardedRef","ratio","style","aspectRatioProps","jsx","position","width","paddingBottom","children","Primitive","div","ref","top","right","bottom","left","displayName","Root"],"mappings":"kJAIA,IACIA,EAAcC,EAAMC,YACtB,CAACC,EAAOC,KACN,MAAMC,MAAEA,EAAQ,EAAKC,MAAEA,KAAUC,GAAqBJ,EACtD,OAAuBK,EAAGA,IACxB,MACA,CACEF,MAAO,CAELG,SAAU,WAEVC,MAAO,OACPC,cAAkB,IAAMN,EAAT,KAEjB,kCAAmC,GACnCO,SAA0BJ,EAAGA,IAC3BK,EAAUC,IACV,IACKP,EACHQ,IAAKX,EACLE,MAAO,IACFA,EAEHG,SAAU,WACVO,IAAK,EACLC,MAAO,EACPC,OAAQ,EACRC,KAAM,MAKf,IAGLnB,EAAYoB,YAnCD,cAoCR,IAACC,EAAOrB"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs"],"sourcesContent":["// packages/react/aspect-ratio/src/AspectRatio.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"AspectRatio\";\nvar AspectRatio = React.forwardRef(\n (props, forwardedRef) => {\n const { ratio = 1 / 1, style, ...aspectRatioProps } = props;\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n style: {\n // ensures inner element is contained\n position: \"relative\",\n // ensures padding bottom trick maths works\n width: \"100%\",\n paddingBottom: `${100 / ratio}%`\n },\n \"data-radix-aspect-ratio-wrapper\": \"\",\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...aspectRatioProps,\n ref: forwardedRef,\n style: {\n ...style,\n // ensures children expand in ratio\n position: \"absolute\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n }\n }\n )\n }\n );\n }\n);\nAspectRatio.displayName = NAME;\nvar Root = AspectRatio;\nexport {\n AspectRatio,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AspectRatio","React","forwardRef","props","forwardedRef","ratio","style","aspectRatioProps","jsx","position","width","paddingBottom","children","Primitive","div","ref","top","right","bottom","left","displayName","Root"],"mappings":"iIAIA,IACIA,EAAcC,EAAMC,YACtB,CAACC,EAAOC,KACN,MAAMC,MAAEA,EAAQ,EAAKC,MAAEA,KAAUC,GAAqBJ,EACtD,OAAuBK,EACrB,MACA,CACEF,MAAO,CAELG,SAAU,WAEVC,MAAO,OACPC,cAAkB,IAAMN,EAAT,KAEjB,kCAAmC,GACnCO,SAA0BJ,EACxBK,EAAUC,IACV,IACKP,EACHQ,IAAKX,EACLE,MAAO,IACFA,EAEHG,SAAU,WACVO,IAAK,EACLC,MAAO,EACPC,OAAQ,EACRC,KAAM,MAKf,IAGLnB,EAAYoB,YAnCD,cAoCR,IAACC,EAAOrB"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{createContextScope as a}from"../../react-context/dist/index.mjs";import{useCallbackRef as r}from"../../react-use-callback-ref/dist/index.mjs";import{useLayoutEffect as t}from"../../react-use-layout-effect/dist/index.mjs";import{Primitive as o}from"../../react-primitive/dist/index.mjs";import{j as s}from"../../../../_virtual/jsx-runtime.mjs";var i="Avatar",[n,d]=a(i),[m,c]=n(i),u=e.forwardRef(((a,r)=>{const{__scopeAvatar:t,...i}=a,[n,d]=e.useState("idle");return s.jsx(m,{scope:t,imageLoadingStatus:n,onImageLoadingStatusChange:d,children:s.jsx(o.span,{...i,ref:r})})}));u.displayName=i;var f="AvatarImage",l=e.forwardRef(((a,i)=>{const{__scopeAvatar:n,src:d,onLoadingStatusChange:m=(()=>{}),...u}=a,l=c(f,n),p=function(a){const[r,o]=e.useState("idle");return t((()=>{if(!a)return void o("error");let e=!0;const r=new window.Image,t=a=>()=>{e&&o(a)};return o("loading"),r.onload=t("loaded"),r.onerror=t("error"),r.src=a,()=>{e=!1}}),[a]),r}(d),g=r((e=>{m(e),l.onImageLoadingStatusChange(e)}));return t((()=>{"idle"!==p&&g(p)}),[p,g]),"loaded"===p?s.jsx(o.img,{...u,ref:i,src:d}):null}));l.displayName=f;var p="AvatarFallback",g=e.forwardRef(((a,r)=>{const{__scopeAvatar:t,delayMs:i,...n}=a,d=c(p,t),[m,u]=e.useState(void 0===i);return e.useEffect((()=>{if(void 0!==i){const e=window.setTimeout((()=>u(!0)),i);return()=>window.clearTimeout(e)}}),[i]),m&&"loaded"!==d.imageLoadingStatus?s.jsx(o.span,{...n,ref:r}):null}));g.displayName=p;var v=u,j=l,x=g;export{u as Avatar,g as AvatarFallback,l as AvatarImage,x as Fallback,j as Image,v as Root,d as createAvatarScope};
1
+ import*as e from"react";import{createContextScope as a}from"../node_modules/@radix-ui/react-context/dist/index.mjs";import{useCallbackRef as r}from"../../react-use-callback-ref/dist/index.mjs";import{useLayoutEffect as t}from"../../react-use-layout-effect/dist/index.mjs";import{Primitive as o}from"../../react-primitive/dist/index.mjs";import{jsx as i}from"react/jsx-runtime";var n="Avatar",[s,d]=a(n),[m,c]=s(n),u=e.forwardRef(((a,r)=>{const{__scopeAvatar:t,...n}=a,[s,d]=e.useState("idle");return i(m,{scope:t,imageLoadingStatus:s,onImageLoadingStatusChange:d,children:i(o.span,{...n,ref:r})})}));u.displayName=n;var f="AvatarImage",l=e.forwardRef(((a,n)=>{const{__scopeAvatar:s,src:d,onLoadingStatusChange:m=()=>{},...u}=a,l=c(f,s),p=function(a){const[r,o]=e.useState("idle");return t((()=>{if(!a)return void o("error");let e=!0;const r=new window.Image,t=a=>()=>{e&&o(a)};return o("loading"),r.onload=t("loaded"),r.onerror=t("error"),r.src=a,()=>{e=!1}}),[a]),r}(d),g=r((e=>{m(e),l.onImageLoadingStatusChange(e)}));return t((()=>{"idle"!==p&&g(p)}),[p,g]),"loaded"===p?i(o.img,{...u,ref:n,src:d}):null}));l.displayName=f;var p="AvatarFallback",g=e.forwardRef(((a,r)=>{const{__scopeAvatar:t,delayMs:n,...s}=a,d=c(p,t),[m,u]=e.useState(void 0===n);return e.useEffect((()=>{if(void 0!==n){const e=window.setTimeout((()=>u(!0)),n);return()=>window.clearTimeout(e)}}),[n]),m&&"loaded"!==d.imageLoadingStatus?i(o.span,{...s,ref:r}):null}));g.displayName=p;var v=u,w=l,x=g;export{u as Avatar,g as AvatarFallback,l as AvatarImage,x as Fallback,w as Image,v as Root,d as createAvatarScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-avatar/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/avatar/src/Avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction useImageLoadingStatus(src) {\n const [loadingStatus, setLoadingStatus] = React.useState(\"idle\");\n useLayoutEffect(() => {\n if (!src) {\n setLoadingStatus(\"error\");\n return;\n }\n let isMounted = true;\n const image = new window.Image();\n const updateStatus = (status) => () => {\n if (!isMounted) return;\n setLoadingStatus(status);\n };\n setLoadingStatus(\"loading\");\n image.onload = updateStatus(\"loaded\");\n image.onerror = updateStatus(\"error\");\n image.src = src;\n return () => {\n isMounted = false;\n };\n }, [src]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","React","forwardRef","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","useState","jsx","scope","onImageLoadingStatusChange","children","Primitive","span","ref","displayName","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","loadingStatus","setLoadingStatus","useLayoutEffect","isMounted","image","window","Image","updateStatus","status","onload","onerror","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","img","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","useEffect","timerId","setTimeout","clearTimeout","Root","Fallback"],"mappings":"sXASA,IAAIA,EAAc,UACbC,EAAqBC,G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AAMC,cAAEA,EAAaoC,QAAEA,KAAYC,GAAkBvC,EAC/CoB,EAAUxB,EAAiBwC,EAAelC,IACzCsC,EAAWC,GAAgB3C,EAAMQ,cAAqB,IAAZgC,GAOjD,OANAxC,EAAM4C,WAAU,KACd,QAAgB,IAAZJ,EAAoB,CACtB,MAAMK,EAAUjB,OAAOkB,YAAW,IAAMH,GAAa,IAAOH,GAC5D,MAAO,IAAMZ,OAAOmB,aAAaF,EAClC,IACA,CAACL,IACGE,GAA4C,WAA/BpB,EAAQhB,mBAAkDG,EAAGA,IAACI,EAAUC,KAAM,IAAK2B,EAAe1B,IAAKZ,IAAkB,IAAI,IAGrJoC,EAAevB,YAAcsB,EAwB1B,IAACU,EAAOjD,EACP8B,EAAQX,EACR+B,EAAWV"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-avatar/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/avatar/src/Avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction useImageLoadingStatus(src) {\n const [loadingStatus, setLoadingStatus] = React.useState(\"idle\");\n useLayoutEffect(() => {\n if (!src) {\n setLoadingStatus(\"error\");\n return;\n }\n let isMounted = true;\n const image = new window.Image();\n const updateStatus = (status) => () => {\n if (!isMounted) return;\n setLoadingStatus(status);\n };\n setLoadingStatus(\"loading\");\n image.onload = updateStatus(\"loaded\");\n image.onerror = updateStatus(\"error\");\n image.src = src;\n return () => {\n isMounted = false;\n };\n }, [src]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","React","forwardRef","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","useState","jsx","scope","onImageLoadingStatusChange","children","Primitive","span","ref","displayName","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","loadingStatus","setLoadingStatus","useLayoutEffect","isMounted","image","window","Image","updateStatus","status","onload","onerror","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","img","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","useEffect","timerId","setTimeout","clearTimeout","Root","Fallback"],"mappings":"yXASA,IAAIA,EAAc,UACbC,EAAqBC,GAAqBC,EAAmBH,IAC7DI,EAAgBC,GAAoBJ,EAAoBD,GACzDM,EAASC,EAAMC,YACjB,CAACC,EAAOC,KACN,MAAMC,cAAEA,KAAkBC,GAAgBH,GACnCI,EAAoBC,GAAyBP,EAAMQ,SAAS,QACnE,OAAuBC,EACrBZ,EACA,CACEa,MAAON,EACPE,qBACAK,2BAA4BJ,EAC5BK,SAA0BH,EAAII,EAAUC,KAAM,IAAKT,EAAaU,IAAKZ,KAExE,IAGLJ,EAAOiB,YAAcvB,EACrB,IAAIwB,EAAa,cACbC,EAAclB,EAAMC,YACtB,CAACC,EAAOC,KACN,MAAMC,cAAEA,EAAae,IAAEA,EAAGC,sBAAEA,EAAwB,UAC9CC,GAAenB,EACfoB,EAAUxB,EAAiBmB,EAAYb,GACvCE,EA8BV,SAA+Ba,GAC7B,MAAOI,EAAeC,GAAoBxB,EAAMQ,SAAS,QAoBzD,OAnBAiB,GAAgB,KACd,IAAKN,EAEH,YADAK,EAAiB,SAGnB,IAAIE,GAAY,EAChB,MAAMC,EAAQ,IAAIC,OAAOC,MACnBC,EAAgBC,GAAW,KAC1BL,GACLF,EAAiBO,EAAO,EAM1B,OAJAP,EAAiB,WACjBG,EAAMK,OAASF,EAAa,UAC5BH,EAAMM,QAAUH,EAAa,SAC7BH,EAAMR,IAAMA,EACL,KACLO,GAAY,CAAK,CAClB,GACA,CAACP,IACGI,CACT,CApD+BW,CAAsBf,GAC3CgB,EAA4BC,GAAgBL,IAChDX,EAAsBW,GACtBT,EAAQX,2BAA2BoB,EAAO,IAO5C,OALAN,GAAgB,KACa,SAAvBnB,GACF6B,EAA0B7B,EAC3B,GACA,CAACA,EAAoB6B,IACM,WAAvB7B,EAAkDG,EAAII,EAAUwB,IAAK,IAAKhB,EAAYN,IAAKZ,EAAcgB,QAAS,IAAI,IAGjID,EAAYF,YAAcC,EAC1B,IAAIqB,EAAgB,iBAChBC,EAAiBvC,EAAMC,YACzB,CAACC,EAAOC,KACN,MAAMC,cAAEA,EAAaoC,QAAEA,KAAYC,GAAkBvC,EAC/CoB,EAAUxB,EAAiBwC,EAAelC,IACzCsC,EAAWC,GAAgB3C,EAAMQ,cAAqB,IAAZgC,GAOjD,OANAxC,EAAM4C,WAAU,KACd,QAAgB,IAAZJ,EAAoB,CACtB,MAAMK,EAAUjB,OAAOkB,YAAW,IAAMH,GAAa,IAAOH,GAC5D,MAAO,IAAMZ,OAAOmB,aAAaF,EAClC,IACA,CAACL,IACGE,GAA4C,WAA/BpB,EAAQhB,mBAAkDG,EAAII,EAAUC,KAAM,IAAK2B,EAAe1B,IAAKZ,IAAkB,IAAI,IAGrJoC,EAAevB,YAAcsB,EAwB1B,IAACU,EAAOjD,EACP8B,EAAQX,EACR+B,EAAWV"}
@@ -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-avatar/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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