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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (321) hide show
  1. package/dist/lib/Typography/Header/index.mjs +1 -1
  2. package/dist/lib/Typography/Header/index.mjs.map +1 -1
  3. package/dist/lib/Typography/Text/index.mjs +1 -1
  4. package/dist/lib/Typography/Text/index.mjs.map +1 -1
  5. package/dist/lib/components/Accordion/index.mjs +1 -1
  6. package/dist/lib/components/Accordion/index.mjs.map +1 -1
  7. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +1 -1
  8. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -1
  9. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +1 -1
  10. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -1
  11. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +1 -1
  12. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -1
  13. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +1 -1
  14. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -1
  15. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +1 -1
  16. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -1
  17. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +1 -1
  18. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -1
  19. package/dist/lib/components/AspectRatio/index.mjs +1 -1
  20. package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
  21. package/dist/lib/components/Avatar/index.mjs +1 -1
  22. package/dist/lib/components/Avatar/index.mjs.map +1 -1
  23. package/dist/lib/components/Badge/index.mjs +1 -1
  24. package/dist/lib/components/Badge/index.mjs.map +1 -1
  25. package/dist/lib/components/BarChart/index.mjs +1 -1
  26. package/dist/lib/components/BarChart/index.mjs.map +1 -1
  27. package/dist/lib/components/BubbleChart/index.mjs +1 -1
  28. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  29. package/dist/lib/components/Button/index.mjs +1 -1
  30. package/dist/lib/components/Button/index.mjs.map +1 -1
  31. package/dist/lib/components/Callout/CalloutIcon.mjs +1 -1
  32. package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -1
  33. package/dist/lib/components/Callout/CalloutRoot.mjs +1 -1
  34. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
  35. package/dist/lib/components/Callout/CalloutText.mjs +1 -1
  36. package/dist/lib/components/Callout/CalloutText.mjs.map +1 -1
  37. package/dist/lib/components/Card/index.mjs +1 -1
  38. package/dist/lib/components/Card/index.mjs.map +1 -1
  39. package/dist/lib/components/Checkbox/index.mjs +1 -1
  40. package/dist/lib/components/Checkbox/index.mjs.map +1 -1
  41. package/dist/lib/components/CheckboxCard/index.mjs +1 -1
  42. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
  43. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
  44. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
  45. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +1 -1
  46. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -1
  47. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +1 -1
  48. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -1
  49. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +1 -1
  50. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -1
  51. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +1 -1
  52. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -1
  53. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +1 -1
  54. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -1
  55. package/dist/lib/components/DataList/DataListItem.mjs +1 -1
  56. package/dist/lib/components/DataList/DataListItem.mjs.map +1 -1
  57. package/dist/lib/components/DataList/DataListLabel.mjs +1 -1
  58. package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -1
  59. package/dist/lib/components/DataList/DataListRoot.mjs +1 -1
  60. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
  61. package/dist/lib/components/DataList/DataListValue.mjs +1 -1
  62. package/dist/lib/components/DataList/DataListValue.mjs.map +1 -1
  63. package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
  64. package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -1
  65. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
  66. package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -1
  67. package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
  68. package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -1
  69. package/dist/lib/components/Dialog/DialogDescription.mjs +1 -1
  70. package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -1
  71. package/dist/lib/components/Dialog/DialogSlot.mjs +1 -1
  72. package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -1
  73. package/dist/lib/components/Dialog/DialogTitle.mjs +1 -1
  74. package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -1
  75. package/dist/lib/components/DoughnutChart/index.mjs +1 -1
  76. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
  77. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +1 -1
  78. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -1
  79. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +1 -1
  80. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -1
  81. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +1 -1
  82. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  83. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -1
  84. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -1
  85. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +1 -1
  86. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -1
  87. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
  88. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -1
  89. package/dist/lib/components/HoverCard/HoverCardContent.mjs +1 -1
  90. package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -1
  91. package/dist/lib/components/IconButton/index.mjs +1 -1
  92. package/dist/lib/components/IconButton/index.mjs.map +1 -1
  93. package/dist/lib/components/Inset/index.mjs +1 -1
  94. package/dist/lib/components/Inset/index.mjs.map +1 -1
  95. package/dist/lib/components/Label/index.mjs +1 -1
  96. package/dist/lib/components/Label/index.mjs.map +1 -1
  97. package/dist/lib/components/LineChart/index.mjs +1 -1
  98. package/dist/lib/components/LineChart/index.mjs.map +1 -1
  99. package/dist/lib/components/Menubar/MenubarContent.mjs +1 -1
  100. package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -1
  101. package/dist/lib/components/Menubar/MenubarItem.mjs +1 -1
  102. package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -1
  103. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +1 -1
  104. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -1
  105. package/dist/lib/components/Menubar/MenubarRoot.mjs +1 -1
  106. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
  107. package/dist/lib/components/Menubar/MenubarSubContent.mjs +1 -1
  108. package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -1
  109. package/dist/lib/components/Menubar/MenubarTrigger.mjs +1 -1
  110. package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -1
  111. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +1 -1
  112. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -1
  113. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +1 -1
  114. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -1
  115. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +1 -1
  116. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -1
  117. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +1 -1
  118. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -1
  119. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +1 -1
  120. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -1
  121. package/dist/lib/components/PieChart/index.mjs +1 -1
  122. package/dist/lib/components/PieChart/index.mjs.map +1 -1
  123. package/dist/lib/components/Popover/PopoverClose.mjs +1 -1
  124. package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -1
  125. package/dist/lib/components/Popover/PopoverContent.mjs +1 -1
  126. package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -1
  127. package/dist/lib/components/Progress/index.mjs +1 -1
  128. package/dist/lib/components/Progress/index.mjs.map +1 -1
  129. package/dist/lib/components/RadarChart/index.mjs +1 -1
  130. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  131. package/dist/lib/components/Radio/index.mjs +1 -1
  132. package/dist/lib/components/Radio/index.mjs.map +1 -1
  133. package/dist/lib/components/RadioCards/RadioCardsItem.mjs +1 -1
  134. package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -1
  135. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +1 -1
  136. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
  137. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +1 -1
  138. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -1
  139. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +1 -1
  140. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
  141. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
  142. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
  143. package/dist/lib/components/Select/index.mjs +1 -1
  144. package/dist/lib/components/Select/index.mjs.map +1 -1
  145. package/dist/lib/components/Separator/index.mjs +1 -1
  146. package/dist/lib/components/Separator/index.mjs.map +1 -1
  147. package/dist/lib/components/Skeleton/index.mjs +1 -1
  148. package/dist/lib/components/Skeleton/index.mjs.map +1 -1
  149. package/dist/lib/components/Slider/index.mjs +1 -1
  150. package/dist/lib/components/Slider/index.mjs.map +1 -1
  151. package/dist/lib/components/Spinner/index.mjs +1 -1
  152. package/dist/lib/components/Spinner/index.mjs.map +1 -1
  153. package/dist/lib/components/TabNav/index.mjs +1 -1
  154. package/dist/lib/components/TabNav/index.mjs.map +1 -1
  155. package/dist/lib/components/Table/index.mjs +1 -1
  156. package/dist/lib/components/Table/index.mjs.map +1 -1
  157. package/dist/lib/components/Tabs/index.mjs +1 -1
  158. package/dist/lib/components/Tabs/index.mjs.map +1 -1
  159. package/dist/lib/components/TextArea/index.mjs +1 -1
  160. package/dist/lib/components/TextArea/index.mjs.map +1 -1
  161. package/dist/lib/components/TextField/index.mjs +1 -1
  162. package/dist/lib/components/TextField/index.mjs.map +1 -1
  163. package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
  164. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
  165. package/dist/lib/components/Toast/ToastDescription.mjs +1 -1
  166. package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -1
  167. package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
  168. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
  169. package/dist/lib/components/Toast/ToastTitle.mjs +1 -1
  170. package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -1
  171. package/dist/lib/components/Toggle/ToggleWithText.js +1 -1
  172. package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
  173. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
  174. package/dist/lib/components/Toggle/index.mjs +1 -1
  175. package/dist/lib/components/Toggle/index.mjs.map +1 -1
  176. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +1 -1
  177. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -1
  178. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +1 -1
  179. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
  180. package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
  181. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
  182. package/dist/lib/components/Tooltip/index.mjs +1 -1
  183. package/dist/lib/components/Tooltip/index.mjs.map +1 -1
  184. package/dist/lib/utils/utils.mjs +1 -1
  185. package/dist/lib/utils/utils.mjs.map +1 -1
  186. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +1 -1
  187. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -1
  188. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +1 -1
  189. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -1
  190. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +1 -1
  191. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -1
  192. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +1 -1
  193. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +1 -1
  194. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +1 -1
  195. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -1
  196. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +1 -1
  197. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +1 -1
  198. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +1 -1
  199. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -1
  200. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +1 -1
  201. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +1 -1
  202. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +1 -1
  203. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +1 -1
  204. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +1 -1
  205. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +1 -1
  206. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +1 -1
  207. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -1
  208. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +1 -1
  209. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +1 -1
  210. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +1 -1
  211. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -1
  212. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +1 -1
  213. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +1 -1
  214. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +1 -1
  215. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -1
  216. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +1 -1
  217. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -1
  218. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +1 -1
  219. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +1 -1
  220. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +1 -1
  221. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +1 -1
  222. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +1 -1
  223. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +1 -1
  224. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +1 -1
  225. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -1
  226. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +1 -1
  227. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +1 -1
  228. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +1 -1
  229. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +1 -1
  230. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +1 -1
  231. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -1
  232. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +1 -1
  233. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +1 -1
  234. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +1 -1
  235. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -1
  236. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +1 -1
  237. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -1
  238. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +1 -1
  239. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +1 -1
  240. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +1 -1
  241. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -1
  242. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +1 -1
  243. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +1 -1
  244. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +1 -1
  245. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +1 -1
  246. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +1 -1
  247. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +1 -1
  248. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +1 -1
  249. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -1
  250. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +1 -1
  251. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +1 -1
  252. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +1 -1
  253. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +1 -1
  254. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +1 -1
  255. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -1
  256. package/dist/node_modules/chart.js/dist/chart.mjs +2 -2
  257. package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -1
  258. package/dist/tsconfig.tsbuildinfo +1 -1
  259. package/package.json +7 -8
  260. package/dist/_virtual/_commonjsHelpers.mjs +0 -2
  261. package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
  262. package/dist/_virtual/index.mjs +0 -2
  263. package/dist/_virtual/index.mjs.map +0 -1
  264. package/dist/_virtual/index2.mjs +0 -2
  265. package/dist/_virtual/index2.mjs.map +0 -1
  266. package/dist/node_modules/aria-hidden/dist/es2015/index.mjs +0 -2
  267. package/dist/node_modules/aria-hidden/dist/es2015/index.mjs.map +0 -1
  268. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +0 -8
  269. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs.map +0 -1
  270. package/dist/node_modules/class-variance-authority/dist/index.mjs +0 -2
  271. package/dist/node_modules/class-variance-authority/dist/index.mjs.map +0 -1
  272. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs +0 -2
  273. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.map +0 -1
  274. package/dist/node_modules/classnames/index.mjs +0 -7
  275. package/dist/node_modules/classnames/index.mjs.map +0 -1
  276. package/dist/node_modules/clsx/dist/clsx.mjs +0 -2
  277. package/dist/node_modules/clsx/dist/clsx.mjs.map +0 -1
  278. package/dist/node_modules/get-nonce/dist/es2015/index.mjs +0 -2
  279. package/dist/node_modules/get-nonce/dist/es2015/index.mjs.map +0 -1
  280. package/dist/node_modules/react-chartjs-2/dist/index.mjs +0 -2
  281. package/dist/node_modules/react-chartjs-2/dist/index.mjs.map +0 -1
  282. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +0 -2
  283. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs.map +0 -1
  284. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +0 -2
  285. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs.map +0 -1
  286. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs +0 -2
  287. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs.map +0 -1
  288. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +0 -2
  289. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs.map +0 -1
  290. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +0 -2
  291. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs.map +0 -1
  292. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs +0 -2
  293. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs.map +0 -1
  294. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +0 -2
  295. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs.map +0 -1
  296. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +0 -2
  297. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs.map +0 -1
  298. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +0 -2
  299. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs.map +0 -1
  300. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +0 -2
  301. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs.map +0 -1
  302. package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs +0 -2
  303. package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs.map +0 -1
  304. package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs +0 -2
  305. package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs.map +0 -1
  306. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs +0 -2
  307. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs.map +0 -1
  308. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -2
  309. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.map +0 -1
  310. package/dist/node_modules/tslib/tslib.es6.mjs +0 -2
  311. package/dist/node_modules/tslib/tslib.es6.mjs.map +0 -1
  312. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +0 -2
  313. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs.map +0 -1
  314. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +0 -2
  315. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs.map +0 -1
  316. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs +0 -2
  317. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs.map +0 -1
  318. package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs +0 -2
  319. package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs.map +0 -1
  320. package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs +0 -2
  321. package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- import{j as e}from"../../../_virtual/jsx-runtime.mjs";import r,{forwardRef as t,Children as a}from"react";import{cva as i}from"../../../node_modules/class-variance-authority/dist/index.mjs";import{Root as o}from"../../../node_modules/@radix-ui/react-toggle/dist/index.mjs";import{radiusVariants as s,scalingVariants as n,toggleAppearanceStyle as l}from"../../constants.mjs";import{cn as m}from"../../utils/utils.mjs";export{ToggleWithText}from"./ToggleWithText.mjs";var c=function(){return c=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},c.apply(this,arguments)},p=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)r.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(t[a[i]]=e[a[i]])}return t},u=i('grid place-content-center items-center justify-center box-border"',{variants:{radius:c({},s.base),size:{small:"w-6 h-6 p-[6px]",medium:"w-8 h-8 p-2",large:"w-10 h-10 p-[11px]"},scaling:c({},n)},defaultVariants:{radius:"medium",size:"medium",scaling:"100%"}}),d={small:"w-[14px]",medium:"w-4",large:"w-[18px]"},f=t((function(t,i){var s=t.className,n=t.children,f=t.radius,g=t.size,j=void 0===g?"medium":g,x=t.scaling,y=t.color,h=void 0===y?"red":y,v=t.appearance,b=void 0===v?"surface":v,O=p(t,["className","children","radius","size","scaling","color","appearance"]);return e.jsx(o,c({ref:i,className:m(u({radius:f,size:j,scaling:x}),l(b,h,!0,"data-[state=on]:"),s)},O,{children:a.map(n,(function(e){return r.cloneElement(e,{className:d[j]})}))}))}));f.displayName="Toggle";export{d as IconScaling,f as Toggle,f as default};
1
+ import{j as e}from"../../../_virtual/jsx-runtime.mjs";import r,{forwardRef as t,Children as a}from"react";import{cva as i}from"class-variance-authority";import{Root as o}from"../../../node_modules/@radix-ui/react-toggle/dist/index.mjs";import{radiusVariants as s,scalingVariants as n,toggleAppearanceStyle as l}from"../../constants.mjs";import{cn as c}from"../../utils/utils.mjs";export{ToggleWithText}from"./ToggleWithText.mjs";var m=function(){return m=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},m.apply(this,arguments)},p=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)r.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(t[a[i]]=e[a[i]])}return t},u=i('grid place-content-center items-center justify-center box-border"',{variants:{radius:m({},s.base),size:{small:"w-6 h-6 p-[6px]",medium:"w-8 h-8 p-2",large:"w-10 h-10 p-[11px]"},scaling:m({},n)},defaultVariants:{radius:"medium",size:"medium",scaling:"100%"}}),d={small:"w-[14px]",medium:"w-4",large:"w-[18px]"},f=t((function(t,i){var s=t.className,n=t.children,f=t.radius,g=t.size,j=void 0===g?"medium":g,x=t.scaling,y=t.color,h=void 0===y?"red":y,v=t.appearance,b=void 0===v?"surface":v,O=p(t,["className","children","radius","size","scaling","color","appearance"]);return e.jsx(o,m({ref:i,className:c(u({radius:f,size:j,scaling:x}),l(b,h,!0,"data-[state=on]:"),s)},O,{children:a.map(n,(function(e){return r.cloneElement(e,{className:d[j]})}))}))}));f.displayName="Toggle";export{d as IconScaling,f as Toggle,f as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../lib/components/Toggle/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { Children, forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { radiusVariants, scalingVariants, toggleAppearanceStyle } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nexport * from './ToggleWithText';\nvar toggleVariants = cva('grid place-content-center items-center justify-center box-border\"', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'w-6 h-6 p-[6px]',\n medium: 'w-8 h-8 p-2',\n large: 'w-10 h-10 p-[11px]',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n radius: 'medium',\n size: 'medium',\n scaling: '100%',\n },\n});\nexport var IconScaling = {\n small: 'w-[14px]',\n medium: 'w-4',\n large: 'w-[18px]',\n};\nexport var Toggle = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'medium' : _b, scaling = _a.scaling, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'surface' : _d, props = __rest(_a, [\"className\", \"children\", \"radius\", \"size\", \"scaling\", \"color\", \"appearance\"]);\n return (_jsx(TogglePrimitive.Root, __assign({ ref: ref, className: cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: Children.map(children, function (child) {\n return React.cloneElement(child, { className: IconScaling[size] });\n }) })));\n});\nToggle.displayName = 'Toggle';\nexport default Toggle;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleVariants","cva","variants","radius","radiusVariants","size","small","medium","large","scaling","scalingVariants","defaultVariants","IconScaling","Toggle","forwardRef","_a","ref","className","children","_b","_c","color","_d","appearance","props","_jsx","TogglePrimitive.Root","cn","toggleAppearanceStyle","Children","map","child","React","cloneElement","displayName"],"mappings":"2dAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAiBC,EAAI,oEAAqE,CAC1FC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,KAAM,CACFC,MAAO,kBACPC,OAAQ,cACRC,MAAO,sBAEXC,QAAS7B,EAAS,CAAE,EAAE8B,IAE1BC,gBAAiB,CACbR,OAAQ,SACRE,KAAM,SACNI,QAAS,UAGNG,EAAc,CACrBN,MAAO,WACPC,OAAQ,MACRC,MAAO,YAEAK,EAASC,GAAW,SAAUC,EAAIC,GACzC,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUf,EAASY,EAAGZ,OAAQgB,EAAKJ,EAAGV,KAAMA,OAAc,IAAPc,EAAgB,SAAWA,EAAIV,EAAUM,EAAGN,QAASW,EAAKL,EAAGM,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIE,EAAKP,EAAGQ,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIE,EAAQ7B,EAAOoB,EAAI,CAAC,YAAa,WAAY,SAAU,OAAQ,UAAW,QAAS,eAC3V,OAAQU,EAAAA,IAAKC,EAAsB9C,EAAS,CAAEoC,IAAKA,EAAKC,UAAWU,EAAG3B,EAAe,CAAEG,OAAQA,EAAQE,KAAMA,EAAMI,QAASA,IAAYmB,EAAsBL,EAAYF,GAAO,EAAM,oBAAqBJ,IAAcO,EAAO,CAAEN,SAAUW,EAASC,IAAIZ,GAAU,SAAUa,GACtQ,OAAOC,EAAMC,aAAaF,EAAO,CAAEd,UAAWL,EAAYP,IACtE,MACA,IACAQ,EAAOqB,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../lib/components/Toggle/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { Children, forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { radiusVariants, scalingVariants, toggleAppearanceStyle } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nexport * from './ToggleWithText';\nvar toggleVariants = cva('grid place-content-center items-center justify-center box-border\"', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'w-6 h-6 p-[6px]',\n medium: 'w-8 h-8 p-2',\n large: 'w-10 h-10 p-[11px]',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n radius: 'medium',\n size: 'medium',\n scaling: '100%',\n },\n});\nexport var IconScaling = {\n small: 'w-[14px]',\n medium: 'w-4',\n large: 'w-[18px]',\n};\nexport var Toggle = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'medium' : _b, scaling = _a.scaling, _c = _a.color, color = _c === void 0 ? 'red' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'surface' : _d, props = __rest(_a, [\"className\", \"children\", \"radius\", \"size\", \"scaling\", \"color\", \"appearance\"]);\n return (_jsx(TogglePrimitive.Root, __assign({ ref: ref, className: cn(toggleVariants({ radius: radius, size: size, scaling: scaling }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: Children.map(children, function (child) {\n return React.cloneElement(child, { className: IconScaling[size] });\n }) })));\n});\nToggle.displayName = 'Toggle';\nexport default Toggle;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleVariants","cva","variants","radius","radiusVariants","size","small","medium","large","scaling","scalingVariants","defaultVariants","IconScaling","Toggle","forwardRef","_a","ref","className","children","_b","_c","color","_d","appearance","props","_jsx","TogglePrimitive.Root","cn","toggleAppearanceStyle","Children","map","child","React","cloneElement","displayName"],"mappings":"mbAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAiBC,EAAI,oEAAqE,CAC1FC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,MAC1CC,KAAM,CACFC,MAAO,kBACPC,OAAQ,cACRC,MAAO,sBAEXC,QAAS7B,EAAS,CAAE,EAAE8B,IAE1BC,gBAAiB,CACbR,OAAQ,SACRE,KAAM,SACNI,QAAS,UAGNG,EAAc,CACrBN,MAAO,WACPC,OAAQ,MACRC,MAAO,YAEAK,EAASC,GAAW,SAAUC,EAAIC,GACzC,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUf,EAASY,EAAGZ,OAAQgB,EAAKJ,EAAGV,KAAMA,OAAc,IAAPc,EAAgB,SAAWA,EAAIV,EAAUM,EAAGN,QAASW,EAAKL,EAAGM,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIE,EAAKP,EAAGQ,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIE,EAAQ7B,EAAOoB,EAAI,CAAC,YAAa,WAAY,SAAU,OAAQ,UAAW,QAAS,eAC3V,OAAQU,EAAAA,IAAKC,EAAsB9C,EAAS,CAAEoC,IAAKA,EAAKC,UAAWU,EAAG3B,EAAe,CAAEG,OAAQA,EAAQE,KAAMA,EAAMI,QAASA,IAAYmB,EAAsBL,EAAYF,GAAO,EAAM,oBAAqBJ,IAAcO,EAAO,CAAEN,SAAUW,EAASC,IAAIZ,GAAU,SAAUa,GACtQ,OAAOC,EAAMC,aAAaF,EAAO,CAAEd,UAAWL,EAAYP,IACtE,MACA,IACAQ,EAAOqB,YAAc"}
@@ -1,2 +1,2 @@
1
- import{j as e}from"../../../_virtual/jsx-runtime.mjs";import r,{forwardRef as t,useContext as o,Children as a}from"react";import{Item as n}from"../../../node_modules/@radix-ui/react-toggle-group/dist/index.mjs";import{cva as i}from"../../../node_modules/class-variance-authority/dist/index.mjs";import{toggleAppearanceStyle as l}from"../../constants.mjs";import{ToggleGroupContext as s}from"./ToggleGroupRoot.mjs";import{cn as m}from"../../utils/utils.mjs";var p=function(){return p=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e},p.apply(this,arguments)},u=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},c=i("grid place-content-center mr-[-1px] first:rounded-l last:rounded-r",{variants:{size:{small:"w-6 h-6 p-[6px]",medium:"w-8 h-8 p-2",large:"w-10 h-10 p-[11px]"}},defaultVariants:{size:"medium"}}),d={small:"w-[14px]",medium:"w-4",large:"w-[18px]"},f=t((function(t,i){var f=t.className,g=t.children,j=t.value,v=u(t,["className","children","value"]),y=o(s),x=y.size,h=y.color,O=void 0===h?"red":h,w=y.appearance,b=void 0===w?"surface":w;return e.jsx(n,p({ref:i,value:j,className:m(c({size:x}),l(b,O,!0,"data-[state=on]:"),f)},v,{children:a.map(g,(function(e){return r.cloneElement(e,{className:d[null!=x?x:"medium"]})}))}))}));f.displayName="ToggleGroup.Item";export{d as IconScaling,f as ToggleGroupItem,c as toggleGroupItemVariants};
1
+ import{j as r}from"../../../_virtual/jsx-runtime.mjs";import e,{forwardRef as t,useContext as o,Children as a}from"react";import{Item as n}from"../../../node_modules/@radix-ui/react-toggle-group/dist/index.mjs";import{cva as i}from"class-variance-authority";import{toggleAppearanceStyle as l}from"../../constants.mjs";import{ToggleGroupContext as s}from"./ToggleGroupRoot.mjs";import{cn as m}from"../../utils/utils.mjs";var p=function(){return p=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var a in e=arguments[t])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},p.apply(this,arguments)},u=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(r);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(t[o[a]]=r[o[a]])}return t},c=i("grid place-content-center mr-[-1px] first:rounded-l last:rounded-r",{variants:{size:{small:"w-6 h-6 p-[6px]",medium:"w-8 h-8 p-2",large:"w-10 h-10 p-[11px]"}},defaultVariants:{size:"medium"}}),d={small:"w-[14px]",medium:"w-4",large:"w-[18px]"},f=t((function(t,i){var f=t.className,g=t.children,v=t.value,j=u(t,["className","children","value"]),y=o(s),h=y.size,x=y.color,O=void 0===x?"red":x,w=y.appearance,b=void 0===w?"surface":w;return r.jsx(n,p({ref:i,value:v,className:m(c({size:h}),l(b,O,!0,"data-[state=on]:"),f)},j,{children:a.map(g,(function(r){return e.cloneElement(r,{className:d[null!=h?h:"medium"]})}))}))}));f.displayName="ToggleGroup.Item";export{d as IconScaling,f as ToggleGroupItem,c as toggleGroupItemVariants};
2
2
  //# sourceMappingURL=ToggleGroupItem.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleGroupItem.mjs","sources":["../../../../lib/components/ToggleGroup/ToggleGroupItem.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { Children, forwardRef, useContext, } from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { cva } from 'class-variance-authority';\nimport { toggleAppearanceStyle } from '../../../lib/constants';\nimport { ToggleGroupContext } from './ToggleGroupRoot';\nimport { cn } from '../../../lib/utils/utils';\nexport var toggleGroupItemVariants = cva('grid place-content-center mr-[-1px] first:rounded-l last:rounded-r', {\n variants: {\n size: {\n small: 'w-6 h-6 p-[6px]',\n medium: 'w-8 h-8 p-2',\n large: 'w-10 h-10 p-[11px]',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var IconScaling = {\n small: 'w-[14px]',\n medium: 'w-4',\n large: 'w-[18px]',\n};\nexport var ToggleGroupItem = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, value = _a.value, props = __rest(_a, [\"className\", \"children\", \"value\"]);\n var _b = useContext(ToggleGroupContext), size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'surface' : _d;\n return (_jsx(ToggleGroupPrimitive.Item, __assign({ ref: ref, value: value, className: cn(toggleGroupItemVariants({ size: size }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: Children.map(children, function (child) {\n return React.cloneElement(child, { className: IconScaling[size !== null && size !== void 0 ? size : 'medium'] });\n }) })));\n});\nToggleGroupItem.displayName = 'ToggleGroup.Item';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleGroupItemVariants","cva","variants","size","small","medium","large","defaultVariants","IconScaling","ToggleGroupItem","forwardRef","_a","ref","className","children","value","props","_b","useContext","ToggleGroupContext","_c","color","_d","appearance","_jsx","jsx","ToggleGroupPrimitive.Item","cn","toggleAppearanceStyle","Children","map","child","React","cloneElement","displayName"],"mappings":"kdAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IA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,CAAEG,KAAMA,IAASyB,EAAsBL,EAAYF,GAAO,EAAM,oBAAqBR,IAAcG,EAAO,CAAEF,SAAUe,EAASC,IAAIhB,GAAU,SAAUiB,GAChQ,OAAOC,EAAMC,aAAaF,EAAO,CAAElB,UAAWL,EAAYL,QAAmCA,EAAO,WAChH,MACA,IACAM,EAAgByB,YAAc"}
1
+ {"version":3,"file":"ToggleGroupItem.mjs","sources":["../../../../lib/components/ToggleGroup/ToggleGroupItem.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { Children, forwardRef, useContext, } from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { cva } from 'class-variance-authority';\nimport { toggleAppearanceStyle } from '../../../lib/constants';\nimport { ToggleGroupContext } from './ToggleGroupRoot';\nimport { cn } from '../../../lib/utils/utils';\nexport var toggleGroupItemVariants = cva('grid place-content-center mr-[-1px] first:rounded-l last:rounded-r', {\n variants: {\n size: {\n small: 'w-6 h-6 p-[6px]',\n medium: 'w-8 h-8 p-2',\n large: 'w-10 h-10 p-[11px]',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var IconScaling = {\n small: 'w-[14px]',\n medium: 'w-4',\n large: 'w-[18px]',\n};\nexport var ToggleGroupItem = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, value = _a.value, props = __rest(_a, [\"className\", \"children\", \"value\"]);\n var _b = useContext(ToggleGroupContext), size = _b.size, _c = _b.color, color = _c === void 0 ? 'red' : _c, _d = _b.appearance, appearance = _d === void 0 ? 'surface' : _d;\n return (_jsx(ToggleGroupPrimitive.Item, __assign({ ref: ref, value: value, className: cn(toggleGroupItemVariants({ size: size }), toggleAppearanceStyle(appearance, color, true, 'data-[state=on]:'), className) }, props, { children: Children.map(children, function (child) {\n return React.cloneElement(child, { className: IconScaling[size !== null && size !== void 0 ? size : 'medium'] });\n }) })));\n});\nToggleGroupItem.displayName = 'ToggleGroup.Item';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleGroupItemVariants","cva","variants","size","small","medium","large","defaultVariants","IconScaling","ToggleGroupItem","forwardRef","_a","ref","className","children","value","props","_b","useContext","ToggleGroupContext","_c","color","_d","appearance","_jsx","jsx","ToggleGroupPrimitive.Item","cn","toggleAppearanceStyle","Children","map","child","React","cloneElement","displayName"],"mappings":"0aAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQWiB,EAA0BC,EAAI,qEAAsE,CAC3GC,SAAU,CACNC,KAAM,CACFC,MAAO,kBACPC,OAAQ,cACRC,MAAO,uBAGfC,gBAAiB,CACbJ,KAAM,YAGHK,EAAc,CACrBJ,MAAO,WACPC,OAAQ,MACRC,MAAO,YAEAG,EAAkBC,GAAW,SAAUC,EAAIC,GAClD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQJ,EAAGI,MAAOC,EAAQrB,EAAOgB,EAAI,CAAC,YAAa,WAAY,UACjHM,EAAKC,EAAWC,GAAqBhB,EAAOc,EAAGd,KAAMiB,EAAKH,EAAGI,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIE,EAAKL,EAAGM,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EACzK,OAAQE,EAAIC,IAACC,EAA2B9C,EAAS,CAAEgC,IAAKA,EAAKG,MAAOA,EAAOF,UAAWc,EAAG3B,EAAwB,CAAEG,KAAMA,IAASyB,EAAsBL,EAAYF,GAAO,EAAM,oBAAqBR,IAAcG,EAAO,CAAEF,SAAUe,EAASC,IAAIhB,GAAU,SAAUiB,GAChQ,OAAOC,EAAMC,aAAaF,EAAO,CAAElB,UAAWL,EAAYL,QAAmCA,EAAO,WAChH,MACA,IACAM,EAAgByB,YAAc"}
@@ -1,2 +1,2 @@
1
- import{j as r}from"../../../_virtual/jsx-runtime.mjs";import{createContext as e,forwardRef as o}from"react";import{Root as a}from"../../../node_modules/@radix-ui/react-toggle-group/dist/index.mjs";import{cva as t}from"../../../node_modules/class-variance-authority/dist/index.mjs";import{scalingVariants as n}from"../../constants.mjs";import{cn as i}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(r){for(var e,o=1,a=arguments.length;o<a;o++)for(var t in e=arguments[o])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},s.apply(this,arguments)},l=function(r,e){var o={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(o[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(r);t<a.length;t++)e.indexOf(a[t])<0&&Object.prototype.propertyIsEnumerable.call(r,a[t])&&(o[a[t]]=r[a[t]])}return o},c=t("inline-flex",{variants:{scaling:s({},n)},defaultVariants:{scaling:"100%"}}),p=e({size:"medium",color:"red",appearance:"surface"}),m=o((function(e,o){var t=e.className,n=e.children,m=e.scaling,u=e.size,f=e.color,d=e.appearance,g=l(e,["className","children","scaling","size","color","appearance"]),j=(s({},g).type,{size:u,color:f,appearance:d});return r.jsx(p.Provider,{value:j,children:r.jsx(a,s({className:i(c({scaling:m}),t)},g,{ref:o,children:n}))})}));m.displayName="ToggleGroup.Root";export{p as ToggleGroupContext,m as ToggleGroupRoot};
1
+ import{j as r}from"../../../_virtual/jsx-runtime.mjs";import{createContext as e,forwardRef as a}from"react";import{Root as o}from"../../../node_modules/@radix-ui/react-toggle-group/dist/index.mjs";import{cva as t}from"class-variance-authority";import{scalingVariants as n}from"../../constants.mjs";import{cn as i}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(r){for(var e,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},s.apply(this,arguments)},l=function(r,e){var a={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(a[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(r);t<o.length;t++)e.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(r,o[t])&&(a[o[t]]=r[o[t]])}return a},c=t("inline-flex",{variants:{scaling:s({},n)},defaultVariants:{scaling:"100%"}}),p=e({size:"medium",color:"red",appearance:"surface"}),m=a((function(e,a){var t=e.className,n=e.children,m=e.scaling,u=e.size,f=e.color,d=e.appearance,g=l(e,["className","children","scaling","size","color","appearance"]),y=(s({},g).type,{size:u,color:f,appearance:d});return r.jsx(p.Provider,{value:y,children:r.jsx(o,s({className:i(c({scaling:m}),t)},g,{ref:a,children:n}))})}));m.displayName="ToggleGroup.Root";export{p as ToggleGroupContext,m as ToggleGroupRoot};
2
2
  //# sourceMappingURL=ToggleGroupRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleGroupRoot.mjs","sources":["../../../../lib/components/ToggleGroup/ToggleGroupRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nvar toggleVariants = cva('inline-flex', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var ToggleGroupContext = createContext({\n size: 'medium',\n color: 'red',\n appearance: 'surface',\n});\nexport var ToggleGroupRoot = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, color = _a.color, appearance = _a.appearance, props = __rest(_a, [\"className\", \"children\", \"scaling\", \"size\", \"color\", \"appearance\"]);\n var type = __assign({}, props).type;\n var contextValue = { size: size, color: color, appearance: appearance };\n return (_jsx(ToggleGroupContext.Provider, { value: contextValue, children: type === 'single' ? (_jsx(ToggleGroupPrimitive.Root, __assign({ className: cn(toggleVariants({ scaling: scaling }), className) }, props, { ref: ref, children: children }))) : (_jsx(ToggleGroupPrimitive.Root, __assign({ className: cn(toggleVariants({ scaling: scaling }), className) }, props, { ref: ref, children: children }))) }));\n});\nToggleGroupRoot.displayName = 'ToggleGroup.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleVariants","cva","variants","scaling","scalingVariants","defaultVariants","ToggleGroupContext","createContext","size","color","appearance","ToggleGroupRoot","forwardRef","_a","ref","className","children","props","contextValue","type","_jsx","Provider","value","ToggleGroupPrimitive.Root","cn","displayName"],"mappings":"mYAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAiBC,EAAI,cAAe,CACpCC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAqBC,EAAc,CAC1CC,KAAM,SACNC,MAAO,MACPC,WAAY,YAELC,EAAkBC,GAAW,SAAUC,EAAIC,GAClD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUb,EAAUU,EAAGV,QAASK,EAAOK,EAAGL,KAAMC,EAAQI,EAAGJ,MAAOC,EAAaG,EAAGH,WAAYO,EAAQtB,EAAOkB,EAAI,CAAC,YAAa,WAAY,UAAW,OAAQ,QAAS,eAE/MK,GADOtC,EAAS,CAAE,EAAEqC,GAAOE,KACZ,CAAEX,KAAMA,EAAMC,MAAOA,EAAOC,WAAYA,IAC3D,OAAQU,MAAKd,EAAmBe,SAAU,CAAEC,MAAOJ,EAAcF,SAA+BI,EAAAA,IAAKG,EAA2B3C,EAAS,CAAEmC,UAAWS,EAAGxB,EAAe,CAAEG,QAASA,IAAYY,IAAcE,EAAO,CAAEH,IAAKA,EAAKE,SAAUA,MAC9O,IACAL,EAAgBc,YAAc"}
1
+ {"version":3,"file":"ToggleGroupRoot.mjs","sources":["../../../../lib/components/ToggleGroup/ToggleGroupRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nvar toggleVariants = cva('inline-flex', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var ToggleGroupContext = createContext({\n size: 'medium',\n color: 'red',\n appearance: 'surface',\n});\nexport var ToggleGroupRoot = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, color = _a.color, appearance = _a.appearance, props = __rest(_a, [\"className\", \"children\", \"scaling\", \"size\", \"color\", \"appearance\"]);\n var type = __assign({}, props).type;\n var contextValue = { size: size, color: color, appearance: appearance };\n return (_jsx(ToggleGroupContext.Provider, { value: contextValue, children: type === 'single' ? (_jsx(ToggleGroupPrimitive.Root, __assign({ className: cn(toggleVariants({ scaling: scaling }), className) }, props, { ref: ref, children: children }))) : (_jsx(ToggleGroupPrimitive.Root, __assign({ className: cn(toggleVariants({ scaling: scaling }), className) }, props, { ref: ref, children: children }))) }));\n});\nToggleGroupRoot.displayName = 'ToggleGroup.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleVariants","cva","variants","scaling","scalingVariants","defaultVariants","ToggleGroupContext","createContext","size","color","appearance","ToggleGroupRoot","forwardRef","_a","ref","className","children","props","contextValue","type","_jsx","Provider","value","ToggleGroupPrimitive.Root","cn","displayName"],"mappings":"2VAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAiBC,EAAI,cAAe,CACpCC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAqBC,EAAc,CAC1CC,KAAM,SACNC,MAAO,MACPC,WAAY,YAELC,EAAkBC,GAAW,SAAUC,EAAIC,GAClD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUb,EAAUU,EAAGV,QAASK,EAAOK,EAAGL,KAAMC,EAAQI,EAAGJ,MAAOC,EAAaG,EAAGH,WAAYO,EAAQtB,EAAOkB,EAAI,CAAC,YAAa,WAAY,UAAW,OAAQ,QAAS,eAE/MK,GADOtC,EAAS,CAAE,EAAEqC,GAAOE,KACZ,CAAEX,KAAMA,EAAMC,MAAOA,EAAOC,WAAYA,IAC3D,OAAQU,MAAKd,EAAmBe,SAAU,CAAEC,MAAOJ,EAAcF,SAA+BI,EAAAA,IAAKG,EAA2B3C,EAAS,CAAEmC,UAAWS,EAAGxB,EAAe,CAAEG,QAASA,IAAYY,IAAcE,EAAO,CAAEH,IAAKA,EAAKE,SAAUA,MAC9O,IACAL,EAAgBc,YAAc"}
@@ -1,2 +1,2 @@
1
- import{j as e}from"../../../_virtual/jsx-runtime.mjs";import a from"react";import{cva as r}from"../../../node_modules/class-variance-authority/dist/index.mjs";import{cn as s}from"../../utils/utils.mjs";import{scalingVariants as t,radiusVariants as i}from"../../constants.mjs";import{Text as l}from"../../Typography/Text/index.mjs";import{Switch as o}from"../../../node_modules/@radix-ui/themes/dist/esm/components/switch.mjs";import{Theme as n}from"../../../node_modules/@radix-ui/themes/dist/esm/components/theme.mjs";var m=function(){return m=Object.assign||function(e){for(var a,r=1,s=arguments.length;r<s;r++)for(var t in a=arguments[r])Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t]);return e},m.apply(this,arguments)},c=function(e,a){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&a.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(s=Object.getOwnPropertySymbols(e);t<s.length;t++)a.indexOf(s[t])<0&&Object.prototype.propertyIsEnumerable.call(e,s[t])&&(r[s[t]]=e[s[t]])}return r},d=r("",{variants:{scaling:m({},t),radius:m({},i.base),size:{small:"w-[28px] h-[16px]",medium:"w-[35px] h-[20px]",large:"w-[42px] h-[24px]"}},defaultVariants:{radius:"full",size:"medium"}}),p=r("flex items-center justify-start text-slate-12 font-normal dark:text-white",{variants:{size:{small:"text-xs gap-2",medium:"text-sm gap-2",large:"text-base gap-3"},scaling:m({},t)},defaultVariants:{size:"medium",scaling:"100%"}}),u=a.forwardRef((function(a,r){var t=a.className,i=a.color,u=void 0===i?"red":i,f=a.scaling,x=a.size,h=a.appearance,g=void 0===h?"surface":h,j=a.radius;a.tabIndex;var y=a.children,v=c(a,["className","color","scaling","size","appearance","radius","tabIndex","children"]);"medium"!==j&&"large"!==j||(j="full");var b="2";return"small"===x&&(b="1"),"large"===x&&(b="3"),e.jsx(n,{className:"flex",accentColor:u,hasBackground:!1,children:e.jsxs(l,{as:"label",className:s("flex items-center",p({size:x,scaling:f})),children:[e.jsx(o,m({ref:r},v,{variant:g,radius:j,size:b,color:u,className:s(d({scaling:f,radius:j,size:x}),t),"aria-label":"Switch"})),y]})})}));u.displayName="ToggleSwitch";export{u as ToggleSwitch,u as default};
1
+ import{j as e}from"../../../_virtual/jsx-runtime.mjs";import a from"react";import{cva as r}from"class-variance-authority";import{cn as t}from"../../utils/utils.mjs";import{scalingVariants as s,radiusVariants as i}from"../../constants.mjs";import{Text as l}from"../../Typography/Text/index.mjs";import{Switch as o}from"../../../node_modules/@radix-ui/themes/dist/esm/components/switch.mjs";import{Theme as n}from"../../../node_modules/@radix-ui/themes/dist/esm/components/theme.mjs";var m=function(){return m=Object.assign||function(e){for(var a,r=1,t=arguments.length;r<t;r++)for(var s in a=arguments[r])Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s]);return e},m.apply(this,arguments)},c=function(e,a){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(t=Object.getOwnPropertySymbols(e);s<t.length;s++)a.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(r[t[s]]=e[t[s]])}return r},p=r("",{variants:{scaling:m({},s),radius:m({},i.base),size:{small:"w-[28px] h-[16px]",medium:"w-[35px] h-[20px]",large:"w-[42px] h-[24px]"}},defaultVariants:{radius:"full",size:"medium"}}),u=r("flex items-center justify-start text-slate-12 font-normal dark:text-white",{variants:{size:{small:"text-xs gap-2",medium:"text-sm gap-2",large:"text-base gap-3"},scaling:m({},s)},defaultVariants:{size:"medium",scaling:"100%"}}),d=a.forwardRef((function(a,r){var s=a.className,i=a.color,d=void 0===i?"red":i,f=a.scaling,x=a.size,h=a.appearance,g=void 0===h?"surface":h,j=a.radius;a.tabIndex;var y=a.children,v=c(a,["className","color","scaling","size","appearance","radius","tabIndex","children"]);"medium"!==j&&"large"!==j||(j="full");var b="2";return"small"===x&&(b="1"),"large"===x&&(b="3"),e.jsx(n,{className:"flex",accentColor:d,hasBackground:!1,children:e.jsxs(l,{as:"label",className:t("flex items-center",u({size:x,scaling:f})),children:[e.jsx(o,m({ref:r},v,{variant:g,radius:j,size:b,color:d,className:t(p({scaling:f,radius:j,size:x}),s),"aria-label":"Switch"})),y]})})}));d.displayName="ToggleSwitch";export{d as ToggleSwitch,d as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../lib/components/ToggleSwitch/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nimport { Switch as SwitchTheme, Theme } from '@radix-ui/themes';\nimport { Text } from '../../../lib/Typography/Text';\nvar toggleSwitchVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'w-[28px] h-[16px]',\n medium: 'w-[35px] h-[20px]',\n large: 'w-[42px] h-[24px]',\n },\n },\n defaultVariants: {\n radius: 'full',\n size: 'medium',\n },\n});\nvar SwitchLabelVariants = cva('flex items-center justify-start text-slate-12 font-normal dark:text-white', {\n variants: {\n size: {\n small: 'text-xs gap-2',\n medium: 'text-sm gap-2',\n large: 'text-base gap-3',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n size: 'medium',\n scaling: '100%',\n },\n});\nexport var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, _b = _a.color, color = _b === void 0 ? 'red' : _b, scaling = _a.scaling, size = _a.size, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, radius = _a.radius, tabIndex = _a.tabIndex, children = _a.children, switchProps = __rest(_a, [\"className\", \"color\", \"scaling\", \"size\", \"appearance\", \"radius\", \"tabIndex\", \"children\"]);\n if (radius === 'medium' || radius === 'large')\n radius = 'full';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { className: \"flex\", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: \"label\", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className), \"aria-label\": \"Switch\" })), children] }) }));\n});\nToggleSwitch.displayName = 'ToggleSwitch';\nexport default ToggleSwitch;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleSwitchVariants","cva","variants","scaling","scalingVariants","radius","radiusVariants","size","small","medium","large","defaultVariants","SwitchLabelVariants","ToggleSwitch","React","forwardRef","_a","forwardedRef","className","_b","color","_c","appearance","tabIndex","children","switchProps","sizeTheme","_jsx","jsx","Theme","accentColor","hasBackground","_jsxs","Text","as","cn","SwitchTheme","ref","variant","displayName"],"mappings":"mhBAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,C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UAAWiB,EAAGnC,EAAqB,CAAEG,QAASA,EAASE,OAAQA,EAAQE,KAAMA,IAASW,GAAY,aAAc,YAAcM,MACre,IACAX,EAAa0B,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../lib/components/ToggleSwitch/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nimport { Switch as SwitchTheme, Theme } from '@radix-ui/themes';\nimport { Text } from '../../../lib/Typography/Text';\nvar toggleSwitchVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'w-[28px] h-[16px]',\n medium: 'w-[35px] h-[20px]',\n large: 'w-[42px] h-[24px]',\n },\n },\n defaultVariants: {\n radius: 'full',\n size: 'medium',\n },\n});\nvar SwitchLabelVariants = cva('flex items-center justify-start text-slate-12 font-normal dark:text-white', {\n variants: {\n size: {\n small: 'text-xs gap-2',\n medium: 'text-sm gap-2',\n large: 'text-base gap-3',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n size: 'medium',\n scaling: '100%',\n },\n});\nexport var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, _b = _a.color, color = _b === void 0 ? 'red' : _b, scaling = _a.scaling, size = _a.size, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, radius = _a.radius, tabIndex = _a.tabIndex, children = _a.children, switchProps = __rest(_a, [\"className\", \"color\", \"scaling\", \"size\", \"appearance\", \"radius\", \"tabIndex\", \"children\"]);\n if (radius === 'medium' || radius === 'large')\n radius = 'full';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { className: \"flex\", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: \"label\", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className), \"aria-label\": \"Switch\" })), children] }) }));\n});\nToggleSwitch.displayName = 'ToggleSwitch';\nexport default ToggleSwitch;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleSwitchVariants","cva","variants","scaling","scalingVariants","radius","radiusVariants","size","small","medium","large","defaultVariants","SwitchLabelVariants","ToggleSwitch","React","forwardRef","_a","forwardedRef","className","_b","color","_c","appearance","tabIndex","children","switchProps","sizeTheme","_jsx","jsx","Theme","accentColor","hasBackground","_jsxs","Text","as","cn","SwitchTheme","ref","variant","displayName"],"mappings":"2eAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,e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U,IAAAC,EAAWR,EAAGQ,SAAUC,EAAc9B,EAAOqB,EAAI,CAAC,YAAa,QAAS,UAAW,OAAQ,aAAc,SAAU,WAAY,aACpV,WAAXX,GAAkC,UAAXA,IACvBA,EAAS,QACb,IAAIqB,EAAY,IAKhB,MAJa,UAATnB,IACAmB,EAAY,KACH,UAATnB,IACAmB,EAAY,KACRC,EAAIC,IAACC,EAAO,CAAEX,UAAW,OAAQY,YAAaV,EAAOW,eAAe,EAAOP,SAAUQ,EAAAA,KAAMC,EAAM,CAAEC,GAAI,QAAShB,UAAWiB,EAAG,oBAAqBvB,EAAoB,CAAEL,KAAMA,EAAMJ,QAASA,KAAaqB,SAAU,CAACG,EAAIC,IAACQ,EAAaxD,EAAS,CAAEyD,IAAKpB,GAAgBQ,EAAa,CAAEa,QAAShB,EAAYjB,OAAQA,EAAQE,KAAMmB,EAAWN,MAAOA,EAAOF,UAAWiB,EAAGnC,EAAqB,CAAEG,QAASA,EAASE,OAAQA,EAAQE,KAAMA,IAASW,GAAY,aAAc,YAAcM,MACre,IACAX,EAAa0B,YAAc"}
@@ -1,2 +1,2 @@
1
- import{j as e}from"../../../_virtual/jsx-runtime.mjs";import t from"react";import{Provider as a,Root as r,Trigger as n,Content as o,Arrow as s}from"../../../node_modules/@radix-ui/react-tooltip/dist/index.mjs";import{cva as l}from"../../../node_modules/class-variance-authority/dist/index.mjs";import{cn as i}from"../../utils/utils.mjs";import{weightVariants as d,radiusVariants as p,primaryColorStyle as c}from"../../constants.mjs";var m=function(){return m=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},m.apply(this,arguments)},f=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a},x=l("bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]",{variants:{weight:m({},d),radius:m({},p["extra-large"]),color:c()}}),u=t.forwardRef((function(t,l){var d=t.content,p=t.weight,c=t.color,u=t.radius,h=t.children,g=t.defaultOpen,y=t.open,_=t.className,O=t.side,j=t.onOpenChange,w=f(t,["content","weight","color","radius","children","defaultOpen","open","className","side","onOpenChange"]);O||(O="top"),"full"===u&&(u="large");var b=c?"fill-".concat(c,"-9 dark:fill-").concat(c,"Dark-9"):"fill-slate-12 dark:fill-slateDark-12";return e.jsx(a,{children:e.jsxs(r,{open:y,defaultOpen:g,onOpenChange:j,children:[e.jsx(n,{className:"cursor-pointer text-slate-12 dark:text-slateDark-12",asChild:!0,children:h}),e.jsxs(o,m({align:"center"},w,{side:O,className:i("mr-2",x({weight:p,radius:u,color:c}),_),sideOffset:5,children:[d,e.jsx(s,{width:11,height:5,className:b})]}))]})})}));u.displayName="Tooltip";export{u as default};
1
+ import{j as e}from"../../../_virtual/jsx-runtime.mjs";import t from"react";import{Provider as a,Root as r,Trigger as n,Content as o,Arrow as s}from"../../../node_modules/@radix-ui/react-tooltip/dist/index.mjs";import{cva as l}from"class-variance-authority";import{cn as i}from"../../utils/utils.mjs";import{weightVariants as d,radiusVariants as p,primaryColorStyle as c}from"../../constants.mjs";var f=function(){return f=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},m=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a},x=l("bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]",{variants:{weight:f({},d),radius:f({},p["extra-large"]),color:c()}}),h=t.forwardRef((function(t,l){var d=t.content,p=t.weight,c=t.color,h=t.radius,u=t.children,g=t.defaultOpen,y=t.open,O=t.className,_=t.side,j=t.onOpenChange,w=m(t,["content","weight","color","radius","children","defaultOpen","open","className","side","onOpenChange"]);_||(_="top"),"full"===h&&(h="large");var b=c?"fill-".concat(c,"-9 dark:fill-").concat(c,"Dark-9"):"fill-slate-12 dark:fill-slateDark-12";return e.jsx(a,{children:e.jsxs(r,{open:y,defaultOpen:g,onOpenChange:j,children:[e.jsx(n,{className:"cursor-pointer text-slate-12 dark:text-slateDark-12",asChild:!0,children:u}),e.jsxs(o,f({align:"center"},w,{side:_,className:i("mr-2",x({weight:p,radius:h,color:c}),O),sideOffset:5,children:[d,e.jsx(s,{width:11,height:5,className:b})]}))]})})}));h.displayName="Tooltip";export{h as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../lib/components/Tooltip/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// your-tooltip.jsx\nimport React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { primaryColorStyle, radiusVariants, weightVariants } from '../../../lib/constants';\nvar tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]', {\n variants: {\n weight: __assign({}, weightVariants),\n radius: __assign({}, radiusVariants['extra-large']),\n color: primaryColorStyle(),\n },\n});\nvar Tooltip = React.forwardRef(function (_a, ref) {\n var content = _a.content, weight = _a.weight, color = _a.color, radius = _a.radius, children = _a.children, defaultOpen = _a.defaultOpen, open = _a.open, className = _a.className, side = _a.side, onOpenChange = _a.onOpenChange, props = __rest(_a, [\"content\", \"weight\", \"color\", \"radius\", \"children\", \"defaultOpen\", \"open\", \"className\", \"side\", \"onOpenChange\"]);\n if (!side)\n side = 'top';\n if (radius === 'full')\n radius = 'large';\n var arrowColor = color\n ? \"fill-\".concat(color, \"-9 dark:fill-\").concat(color, \"Dark-9\")\n : 'fill-slate-12 dark:fill-slateDark-12';\n return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: \"cursor-pointer text-slate-12 dark:text-slateDark-12\", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: \"center\" }, props, { side: side, className: cn('mr-2', tooltipVariants({ weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));\n});\nTooltip.displayName = 'Tooltip';\nexport default Tooltip;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","tooltipVariants","cva","variants","weight","weightVariants","radius","radiusVariants","color","primaryColorStyle","Tooltip","React","forwardRef","_a","ref","content","children","defaultOpen","open","className","side","onOpenChange","props","arrowColor","concat","_jsx","TooltipPrimitive.Provider","_jsxs","jsxs","TooltipPrimitive.Root","TooltipPrimitive.Trigger","asChild","TooltipPrimitive.Content","align","cn","sideOffset","jsx","TooltipPrimitive.Arrow","width","height","displayName"],"mappings":"0bAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAA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ACN,OAAQiB,EAAAA,IAAKC,EAA2B,CAAEV,SAAUW,EAAKC,KAACC,EAAuB,CAAEX,KAAMA,EAAMD,YAAaA,EAAaI,aAAcA,EAAcL,SAAU,CAACS,MAAKK,EAA0B,CAAEX,UAAW,sDAAuDY,SAAS,EAAMf,SAAUA,IAAaW,EAAKC,KAACI,EAA0BnD,EAAS,CAAEoD,MAAO,UAAYX,EAAO,CAAEF,KAAMA,EAAMD,UAAWe,EAAG,OAAQjC,EAAgB,CAAEG,OAAQA,EAAQE,OAAQA,EAAQE,MAAOA,IAAUW,GAAYgB,WAAY,EAAGnB,SAAU,CAACD,EAASU,EAAIW,IAACC,EAAwB,CAAEC,MAAO,GAAIC,OAAQ,EAAGpB,UAAWI,YACxkB,IACAb,EAAQ8B,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../lib/components/Tooltip/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// your-tooltip.jsx\nimport React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { primaryColorStyle, radiusVariants, weightVariants } from '../../../lib/constants';\nvar tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]', {\n variants: {\n weight: __assign({}, weightVariants),\n radius: __assign({}, radiusVariants['extra-large']),\n color: primaryColorStyle(),\n },\n});\nvar Tooltip = React.forwardRef(function (_a, ref) {\n var content = _a.content, weight = _a.weight, color = _a.color, radius = _a.radius, children = _a.children, defaultOpen = _a.defaultOpen, open = _a.open, className = _a.className, side = _a.side, onOpenChange = _a.onOpenChange, props = __rest(_a, [\"content\", \"weight\", \"color\", \"radius\", \"children\", \"defaultOpen\", \"open\", \"className\", \"side\", \"onOpenChange\"]);\n if (!side)\n side = 'top';\n if (radius === 'full')\n radius = 'large';\n var arrowColor = color\n ? \"fill-\".concat(color, \"-9 dark:fill-\").concat(color, \"Dark-9\")\n : 'fill-slate-12 dark:fill-slateDark-12';\n return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: \"cursor-pointer text-slate-12 dark:text-slateDark-12\", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: \"center\" }, props, { side: side, className: cn('mr-2', tooltipVariants({ weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));\n});\nTooltip.displayName = 'Tooltip';\nexport default Tooltip;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","tooltipVariants","cva","variants","weight","weightVariants","radius","radiusVariants","color","primaryColorStyle","Tooltip","React","forwardRef","_a","ref","content","children","defaultOpen","open","className","side","onOpenChange","props","arrowColor","concat","_jsx","TooltipPrimitive.Provider","_jsxs","jsxs","TooltipPrimitive.Root","TooltipPrimitive.Trigger","asChild","TooltipPrimitive.Content","align","cn","sideOffset","jsx","TooltipPrimitive.Arrow","width","height","displayName"],"mappings":"kZAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAkBC,EAAI,0hBAA2hB,CACjjBC,SAAU,CACNC,OAAQvB,EAAS,CAAE,EAAEwB,GACrBC,OAAQzB,EAAS,CAAA,EAAI0B,EAAe,gBACpCC,MAAOC,OAGXC,EAAUC,EAAMC,YAAW,SAAUC,EAAIC,GACzC,IAAIC,EAAUF,EAAGE,QAASX,EAASS,EAAGT,OAAQI,EAAQK,EAAGL,MAAOF,EAASO,EAAGP,OAAQU,EAAWH,EAAGG,SAAUC,EAAcJ,EAAGI,YAAaC,EAAOL,EAAGK,KAAMC,EAAYN,EAAGM,UAAWC,EAAOP,EAAGO,KAAMC,EAAeR,EAAGQ,aAAcC,EAAQ1B,EAAOiB,EAAI,CAAC,UAAW,SAAU,QAAS,SAAU,WAAY,cAAe,OAAQ,YAAa,OAAQ,iBACnVO,IACDA,EAAO,OACI,SAAXd,IACAA,EAAS,SACb,IAAIiB,EAAaf,EACX,QAAQgB,OAAOhB,EAAO,iBAAiBgB,OAAOhB,EAAO,UACrD,uCACN,OAAQiB,EAAAA,IAAKC,EAA2B,CAAEV,SAAUW,EAAKC,KAACC,EAAuB,CAAEX,KAAMA,EAAMD,YAAaA,EAAaI,aAAcA,EAAcL,SAAU,CAACS,MAAKK,EAA0B,CAAEX,UAAW,sDAAuDY,SAAS,EAAMf,SAAUA,IAAaW,EAAKC,KAACI,EAA0BnD,EAAS,CAAEoD,MAAO,UAAYX,EAAO,CAAEF,KAAMA,EAAMD,UAAWe,EAAG,OAAQjC,EAAgB,CAAEG,OAAQA,EAAQE,OAAQA,EAAQE,MAAOA,IAAUW,GAAYgB,WAAY,EAAGnB,SAAU,CAACD,EAASU,EAAIW,IAACC,EAAwB,CAAEC,MAAO,GAAIC,OAAQ,EAAGpB,UAAWI,YACxkB,IACAb,EAAQ8B,YAAc"}
@@ -1,2 +1,2 @@
1
- import{clsx as o}from"../../node_modules/clsx/dist/clsx.mjs";import{twMerge as e}from"../../node_modules/tailwind-merge/dist/bundle-mjs.mjs";function m(){for(var m=[],r=0;r<arguments.length;r++)m[r]=arguments[r];return e(o(m))}export{m as cn};
1
+ import{clsx as r}from"clsx";import{twMerge as o}from"tailwind-merge";function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(r(t))}export{t as cn};
2
2
  //# sourceMappingURL=utils.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","sources":["../../../lib/utils/utils.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n// tailwind를 merge할 때 발생할 수 있는 클래스 충돌 문제 해결\nexport function cn() {\n var inputs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputs[_i] = arguments[_i];\n }\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","_i","arguments","length","twMerge","clsx"],"mappings":"mJAGO,SAASA,IAEZ,IADA,IAAIC,EAAS,GACJC,EAAK,EAAGA,EAAKC,UAAUC,OAAQF,IACpCD,EAAOC,GAAMC,UAAUD,GAE3B,OAAOG,EAAQC,EAAKL,GACxB"}
1
+ {"version":3,"file":"utils.mjs","sources":["../../../lib/utils/utils.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n// tailwind를 merge할 때 발생할 수 있는 클래스 충돌 문제 해결\nexport function cn() {\n var inputs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputs[_i] = arguments[_i];\n }\n return twMerge(clsx(inputs));\n}\n"],"names":["cn","inputs","_i","arguments","length","twMerge","clsx"],"mappings":"qEAGO,SAASA,IAEZ,IADA,IAAIC,EAAS,GACJC,EAAK,EAAGA,EAAKC,UAAUC,OAAQF,IACpCD,EAAOC,GAAMC,UAAUD,GAE3B,OAAOG,EAAQC,EAAKL,GACxB"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{composeEventHandlers as t}from"../../primitive/dist/index.mjs";import{useComposedRefs as o}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 s}from"../../react-use-controllable-state/dist/index.mjs";import{DismissableLayer as a}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 f from"../../../react-remove-scroll/dist/es2015/Combination.mjs";import{hideOthers as m}from"../../../aria-hidden/dist/es2015/index.mjs";import{Slot as g}from"../../react-slot/dist/index.mjs";import{j as x}from"../../../../_virtual/jsx-runtime.mjs";var j="Dialog",[D,v]=r(j),[h,_]=D(j),y=t=>{const{__scopeDialog:o,children:r,open:n,defaultOpen:a,onOpenChange:c,modal:d=!0}=t,l=e.useRef(null),u=e.useRef(null),[p=!1,f]=s({prop:n,defaultProp:a,onChange:c});return x.jsx(h,{scope:o,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})};y.displayName=j;var R="DialogTrigger",b=e.forwardRef(((e,r)=>{const{__scopeDialog:n,...i}=e,s=_(R,n),a=o(r,s.triggerRef);return x.jsx(u.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":K(s.open),...i,ref:a,onClick:t(e.onClick,s.onOpenToggle)})}));b.displayName=R;var C="DialogPortal",[I,w]=D(C,{forceMount:void 0}),O=t=>{const{__scopeDialog:o,forceMount:r,children:n,container:i}=t,s=_(C,o);return x.jsx(I,{scope:o,forceMount:r,children:e.Children.map(n,(e=>x.jsx(l,{present:r||s.open,children:x.jsx(d,{asChild:!0,container:i,children:e})})))})};O.displayName=C;var F="DialogOverlay",N=e.forwardRef(((e,t)=>{const o=w(F,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,i=_(F,e.__scopeDialog);return i.modal?x.jsx(l,{present:r||i.open,children:x.jsx(E,{...n,ref:t})}):null}));N.displayName=F;var E=e.forwardRef(((e,t)=>{const{__scopeDialog:o,...r}=e,n=_(F,o);return x.jsx(f,{as:g,allowPinchZoom:!0,shards:[n.contentRef],children:x.jsx(u.div,{"data-state":K(n.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),P="DialogContent",A=e.forwardRef(((e,t)=>{const o=w(P,e.__scopeDialog),{forceMount:r=o.forceMount,...n}=e,i=_(P,e.__scopeDialog);return x.jsx(l,{present:r||i.open,children:i.modal?x.jsx(M,{...n,ref:t}):x.jsx(k,{...n,ref:t})})}));A.displayName=P;var M=e.forwardRef(((r,n)=>{const i=_(P,r.__scopeDialog),s=e.useRef(null),a=o(n,i.contentRef,s);return e.useEffect((()=>{const e=s.current;if(e)return m(e)}),[]),x.jsx(T,{...r,ref:a,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:t(r.onCloseAutoFocus,(e=>{e.preventDefault(),i.triggerRef.current?.focus()})),onPointerDownOutside:t(r.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,o=0===t.button&&!0===t.ctrlKey;(2===t.button||o)&&e.preventDefault()})),onFocusOutside:t(r.onFocusOutside,(e=>e.preventDefault()))})})),k=e.forwardRef(((t,o)=>{const r=_(P,t.__scopeDialog),n=e.useRef(!1),i=e.useRef(!1);return x.jsx(T,{...t,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(n.current||r.triggerRef.current?.focus(),e.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const o=e.target,s=r.triggerRef.current?.contains(o);s&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})})),T=e.forwardRef(((t,r)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:d,...l}=t,u=_(P,n),f=e.useRef(null),m=o(r,f);return p(),x.jsxs(x.Fragment,{children:[x.jsx(c,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:d,children:x.jsx(a,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":K(u.open),...l,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(z,{titleId:u.titleId}),x.jsx(G,{contentRef:f,descriptionId:u.descriptionId})]})]})})),$="DialogTitle",W=e.forwardRef(((e,t)=>{const{__scopeDialog:o,...r}=e,n=_($,o);return x.jsx(u.h2,{id:n.titleId,...r,ref:t})}));W.displayName=$;var B="DialogDescription",S=e.forwardRef(((e,t)=>{const{__scopeDialog:o,...r}=e,n=_(B,o);return x.jsx(u.p,{id:n.descriptionId,...r,ref:t})}));S.displayName=B;var q="DialogClose",H=e.forwardRef(((e,o)=>{const{__scopeDialog:r,...n}=e,i=_(q,r);return x.jsx(u.button,{type:"button",...n,ref:o,onClick:t(e.onClick,(()=>i.onOpenChange(!1)))})}));function K(e){return e?"open":"closed"}H.displayName=q;var U="DialogTitleWarning",[V,Z]=n(U,{contentName:P,titleName:$,docsSlug:"dialog"}),z=({titleId:t})=>{const o=Z(U),r=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return e.useEffect((()=>{if(t){document.getElementById(t)||console.error(r)}}),[r,t]),null},G=({contentRef:t,descriptionId:o})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Z("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{const e=t.current?.getAttribute("aria-describedby");if(o&&e){document.getElementById(o)||console.warn(r)}}),[r,t,o]),null},J=y,L=b,Q=O,X=N,Y=A,ee=W,te=S,oe=H;export{oe as Close,Y as Content,te as Description,y as Dialog,H as DialogClose,A as DialogContent,S as DialogDescription,N as DialogOverlay,O as DialogPortal,W as DialogTitle,b as DialogTrigger,X as Overlay,Q as Portal,J as Root,ee as Title,L as Trigger,V as WarningProvider,v as createDialogScope};
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 s}from"../../react-use-controllable-state/dist/index.mjs";import{DismissableLayer as a}from"../../react-dismissable-layer/dist/index.mjs";import{FocusScope as c}from"../../react-focus-scope/dist/index.mjs";import{Portal as l}from"../../react-portal/dist/index.mjs";import{Presence as d}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{j as x}from"../../../../_virtual/jsx-runtime.mjs";var j="Dialog",[D,v]=r(j),[h,_]=D(j),y=o=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:c,modal:l=!0}=o,d=e.useRef(null),u=e.useRef(null),[p=!1,f]=s({prop:n,defaultProp:a,onChange:c});return x.jsx(h,{scope:t,triggerRef:d,contentRef:u,contentId:i(),titleId:i(),descriptionId:i(),open:p,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),modal:l,children:r})};y.displayName=j;var R="DialogTrigger",b=e.forwardRef(((e,r)=>{const{__scopeDialog:n,...i}=e,s=_(R,n),a=t(r,s.triggerRef);return x.jsx(u.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":K(s.open),...i,ref:a,onClick:o(e.onClick,s.onOpenToggle)})}));b.displayName=R;var C="DialogPortal",[I,w]=D(C,{forceMount:void 0}),O=o=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=o,s=_(C,t);return x.jsx(I,{scope:t,forceMount:r,children:e.Children.map(n,(e=>x.jsx(d,{present:r||s.open,children:x.jsx(l,{asChild:!0,container:i,children:e})})))})};O.displayName=C;var F="DialogOverlay",N=e.forwardRef(((e,o)=>{const t=w(F,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,i=_(F,e.__scopeDialog);return i.modal?x.jsx(d,{present:r||i.open,children:x.jsx(E,{...n,ref:o})}):null}));N.displayName=F;var E=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=_(F,t);return x.jsx(f,{as:g,allowPinchZoom:!0,shards:[n.contentRef],children:x.jsx(u.div,{"data-state":K(n.open),...r,ref:o,style:{pointerEvents:"auto",...r.style}})})})),P="DialogContent",A=e.forwardRef(((e,o)=>{const t=w(P,e.__scopeDialog),{forceMount:r=t.forceMount,...n}=e,i=_(P,e.__scopeDialog);return x.jsx(d,{present:r||i.open,children:i.modal?x.jsx(M,{...n,ref:o}):x.jsx(k,{...n,ref:o})})}));A.displayName=P;var M=e.forwardRef(((r,n)=>{const i=_(P,r.__scopeDialog),s=e.useRef(null),a=t(n,i.contentRef,s);return e.useEffect((()=>{const e=s.current;if(e)return m(e)}),[]),x.jsx(T,{...r,ref:a,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()))})})),k=e.forwardRef(((o,t)=>{const r=_(P,o.__scopeDialog),n=e.useRef(!1),i=e.useRef(!1);return x.jsx(T,{...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,s=r.triggerRef.current?.contains(t);s&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})})),T=e.forwardRef(((o,r)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,...d}=o,u=_(P,n),f=e.useRef(null),m=t(r,f);return p(),x.jsxs(x.Fragment,{children:[x.jsx(c,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:l,children:x.jsx(a,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":K(u.open),...d,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(z,{titleId:u.titleId}),x.jsx(G,{contentRef:f,descriptionId:u.descriptionId})]})]})})),$="DialogTitle",W=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=_($,t);return x.jsx(u.h2,{id:n.titleId,...r,ref:o})}));W.displayName=$;var B="DialogDescription",S=e.forwardRef(((e,o)=>{const{__scopeDialog:t,...r}=e,n=_(B,t);return x.jsx(u.p,{id:n.descriptionId,...r,ref:o})}));S.displayName=B;var q="DialogClose",H=e.forwardRef(((e,t)=>{const{__scopeDialog:r,...n}=e,i=_(q,r);return x.jsx(u.button,{type:"button",...n,ref:t,onClick:o(e.onClick,(()=>i.onOpenChange(!1)))})}));function K(e){return e?"open":"closed"}H.displayName=q;var U="DialogTitleWarning",[V,Z]=n(U,{contentName:P,titleName:$,docsSlug:"dialog"}),z=({titleId:o})=>{const t=Z(U),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},G=({contentRef:o,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Z("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},J=y,L=b,Q=O,X=N,Y=A,ee=W,oe=S,te=H;export{te as Close,Y as Content,oe as Description,y as Dialog,H as DialogClose,A as DialogContent,S as DialogDescription,N as DialogOverlay,O as DialogPortal,W as DialogTitle,b as DialogTrigger,X as Overlay,Q as Portal,J as Root,ee as Title,L as Trigger,V as WarningProvider,v as createDialogScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../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","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,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,EAAUvF,EACVwF,EAAU3E,EACV4E,GAAQ/B,EACRgC,GAAc5B,EACd6B,GAAQzB"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../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":"s/BAmBA,IAAIA,EAAc,U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8G,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,EAAUvF,EACVwF,EAAU3E,EACV4E,GAAQ/B,EACRgC,GAAc5B,EACd6B,GAAQzB"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs";import{createCollection as t}from"../../react-collection/dist/index.mjs";import{useComposedRefs as r,composeRefs as o}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as s}from"../../react-context/dist/index.mjs";import{useDirection as c}from"../../react-direction/dist/index.mjs";import{DismissableLayer as i}from"../../react-dismissable-layer/dist/index.mjs";import{useFocusGuards as a}from"../../react-focus-guards/dist/index.mjs";import{FocusScope as u}from"../../react-focus-scope/dist/index.mjs";import{useId as d}from"../../react-id/dist/index.mjs";import{createPopperScope as l,Anchor as f,Content as p,Arrow as m,Root as h}from"../../react-popper/dist/index.mjs";import{Portal as v}from"../../react-portal/dist/index.mjs";import{Presence as g}from"../../react-presence/dist/index.mjs";import{Primitive as x,dispatchDiscreteCustomEvent as _}from"../../react-primitive/dist/index.mjs";import{createRovingFocusGroupScope as w,Root as M,Item as j}from"../../react-roving-focus/dist/index.mjs";import{Slot as y}from"../../react-slot/dist/index.mjs";import{useCallbackRef as C}from"../../react-use-callback-ref/dist/index.mjs";import{hideOthers as b}from"../../../aria-hidden/dist/es2015/index.mjs";import R from"../../../react-remove-scroll/dist/es2015/Combination.mjs";import{j as k}from"../../../../_virtual/jsx-runtime.mjs";var P=["Enter"," "],D=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...D],O={ltr:[...P,"ArrowRight"],rtl:[...P,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[S,F,L]=t(T),[K,A]=s(T,[L,l,w]),N=l(),G=w(),[V,U]=K(T),[B,X]=K(T),Y=n=>{const{__scopeMenu:t,open:r=!1,children:o,dir:s,onOpenChange:i,modal:a=!0}=n,u=N(t),[d,l]=e.useState(null),f=e.useRef(!1),p=C(i),m=c(s);return e.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}}),[]),k.jsx(h,{...u,children:k.jsx(V,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:l,children:k.jsx(B,{scope:t,onClose:e.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:m,modal:a,children:o})})})};Y.displayName=T;var z=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return k.jsx(f,{...o,...r,ref:n})}));z.displayName="MenuAnchor";var H="MenuPortal",[W,Z]=K(H,{forceMount:void 0}),q=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,s=U(H,n);return k.jsx(W,{scope:n,forceMount:t,children:k.jsx(g,{present:t||s.open,children:k.jsx(v,{asChild:!0,container:o,children:r})})})};q.displayName=H;var J="MenuContent",[Q,$]=K(J),ee=e.forwardRef(((e,n)=>{const t=Z(J,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,s=U(J,e.__scopeMenu),c=X(J,e.__scopeMenu);return k.jsx(S.Provider,{scope:e.__scopeMenu,children:k.jsx(g,{present:r||s.open,children:k.jsx(S.Slot,{scope:e.__scopeMenu,children:c.modal?k.jsx(ne,{...o,ref:n}):k.jsx(te,{...o,ref:n})})})})})),ne=e.forwardRef(((t,o)=>{const s=U(J,t.__scopeMenu),c=e.useRef(null),i=r(o,c);return e.useEffect((()=>{const e=c.current;if(e)return b(e)}),[]),k.jsx(re,{...t,ref:i,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:n(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})})),te=e.forwardRef(((e,n)=>{const t=U(J,e.__scopeMenu);return k.jsx(re,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})})),re=e.forwardRef(((t,o)=>{const{__scopeMenu:s,loop:c=!1,trapFocus:d,onOpenAutoFocus:l,onCloseAutoFocus:f,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:_,onDismiss:w,disableOutsideScroll:j,...C}=t,b=U(J,s),P=X(J,s),O=N(s),I=G(s),T=F(s),[S,L]=e.useState(null),K=e.useRef(null),A=r(o,K,b.onContentChange),V=e.useRef(0),B=e.useRef(""),Y=e.useRef(0),z=e.useRef(null),H=e.useRef("right"),W=e.useRef(0),Z=j?R:e.Fragment,q=j?{as:y,allowPinchZoom:!0}:void 0,$=e=>{const n=B.current+e,t=T().filter((e=>!e.disabled)),r=document.activeElement,o=t.find((e=>e.ref.current===r))?.textValue,s=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0])),o=r?n[0]:n,s=t?e.indexOf(t):-1;let c=(i=e,a=Math.max(s,0),i.map(((e,n)=>i[(a+n)%i.length])));var i,a;1===o.length&&(c=c.filter((e=>e!==t)));const u=c.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==t?u:void 0}(t.map((e=>e.textValue)),n,o),c=t.find((e=>e.textValue===s))?.ref.current;!function e(n){B.current=n,window.clearTimeout(V.current),""!==n&&(V.current=window.setTimeout((()=>e("")),1e3))}(n),c&&setTimeout((()=>c.focus()))};e.useEffect((()=>()=>window.clearTimeout(V.current)),[]),a();const ee=e.useCallback((e=>H.current===z.current?.side&&function(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return function(e,n){const{x:t,y:r}=e;let o=!1;for(let e=0,s=n.length-1;e<n.length;s=e++){const c=n[e].x,i=n[e].y,a=n[s].x,u=n[s].y;i>r!=u>r&&t<(a-c)*(r-i)/(u-i)+c&&(o=!o)}return o}(t,n)}(e,z.current?.area)),[]);return k.jsx(Q,{scope:s,searchRef:B,onItemEnter:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),onItemLeave:e.useCallback((e=>{ee(e)||(K.current?.focus(),L(null))}),[ee]),onTriggerLeave:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:e.useCallback((e=>{z.current=e}),[]),children:k.jsx(Z,{...q,children:k.jsx(u,{asChild:!0,trapped:d,onMountAutoFocus:n(l,(e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:f,children:k.jsx(i,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:_,onDismiss:w,children:k.jsx(M,{asChild:!0,...I,dir:P.dir,orientation:"vertical",loop:c,currentTabStopId:S,onCurrentTabStopIdChange:L,onEntryFocus:n(h,(e=>{P.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:k.jsx(p,{role:"menu","aria-orientation":"vertical","data-state":Oe(b.open),"data-radix-menu-content":"",dir:P.dir,...O,...C,ref:A,style:{outline:"none",...C.style},onKeyDown:n(C.onKeyDown,(e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&$(e.key));const o=K.current;if(e.target!==o)return;if(!E.includes(e.key))return;e.preventDefault();const s=T().filter((e=>!e.disabled)).map((e=>e.ref.current));D.includes(e.key)&&s.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(s)})),onBlur:n(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(V.current),B.current="")})),onPointerMove:n(t.onPointerMove,Se((e=>{const n=e.target,t=W.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>W.current?"right":"left";H.current=n,W.current=e.clientX}})))})})})})})})}));ee.displayName=J;var oe=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{role:"group",...r,ref:n})}));oe.displayName="MenuGroup";var se=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{...r,ref:n})}));se.displayName="MenuLabel";var ce="MenuItem",ie="menu.itemSelect",ae=e.forwardRef(((t,o)=>{const{disabled:s=!1,onSelect:c,...i}=t,a=e.useRef(null),u=X(ce,t.__scopeMenu),d=$(ce,t.__scopeMenu),l=r(o,a),f=e.useRef(!1);return k.jsx(ue,{...i,ref:l,disabled:s,onClick:n(t.onClick,(()=>{const e=a.current;if(!s&&e){const n=new CustomEvent(ie,{bubbles:!0,cancelable:!0});e.addEventListener(ie,(e=>c?.(e)),{once:!0}),_(e,n),n.defaultPrevented?f.current=!1:u.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),f.current=!0},onPointerUp:n(t.onPointerUp,(e=>{f.current||e.currentTarget?.click()})),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==d.searchRef.current;s||n&&" "===e.key||P.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));ae.displayName=ce;var ue=e.forwardRef(((t,o)=>{const{__scopeMenu:s,disabled:c=!1,textValue:i,...a}=t,u=$(ce,s),d=G(s),l=e.useRef(null),f=r(o,l),[p,m]=e.useState(!1),[h,v]=e.useState("");return e.useEffect((()=>{const e=l.current;e&&v((e.textContent??"").trim())}),[a.children]),k.jsx(S.ItemSlot,{scope:s,disabled:c,textValue:i??h,children:k.jsx(j,{asChild:!0,...d,focusable:!c,children:k.jsx(x.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...a,ref:f,onPointerMove:n(t.onPointerMove,Se((e=>{if(c)u.onItemLeave(e);else if(u.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:n(t.onPointerLeave,Se((e=>u.onItemLeave(e)))),onFocus:n(t.onFocus,(()=>m(!0))),onBlur:n(t.onBlur,(()=>m(!1)))})})})})),de=e.forwardRef(((e,t)=>{const{checked:r=!1,onCheckedChange:o,...s}=e;return k.jsx(xe,{scope:e.__scopeMenu,checked:r,children:k.jsx(ae,{role:"menuitemcheckbox","aria-checked":Ie(r)?"mixed":r,...s,ref:t,"data-state":Te(r),onSelect:n(s.onSelect,(()=>o?.(!!Ie(r)||!r)),{checkForDefaultPrevented:!1})})})}));de.displayName="MenuCheckboxItem";var le="MenuRadioGroup",[fe,pe]=K(le,{value:void 0,onValueChange:()=>{}}),me=e.forwardRef(((e,n)=>{const{value:t,onValueChange:r,...o}=e,s=C(r);return k.jsx(fe,{scope:e.__scopeMenu,value:t,onValueChange:s,children:k.jsx(oe,{...o,ref:n})})}));me.displayName=le;var he="MenuRadioItem",ve=e.forwardRef(((e,t)=>{const{value:r,...o}=e,s=pe(he,e.__scopeMenu),c=r===s.value;return k.jsx(xe,{scope:e.__scopeMenu,checked:c,children:k.jsx(ae,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":Te(c),onSelect:n(o.onSelect,(()=>s.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));ve.displayName=he;var ge="MenuItemIndicator",[xe,_e]=K(ge,{checked:!1}),we=e.forwardRef(((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,s=_e(ge,t);return k.jsx(g,{present:r||Ie(s.checked)||!0===s.checked,children:k.jsx(x.span,{...o,ref:n,"data-state":Te(s.checked)})})}));we.displayName=ge;var Me=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})}));Me.displayName="MenuSeparator";var je=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return k.jsx(m,{...o,...r,ref:n})}));je.displayName="MenuArrow";var ye="MenuSub",[Ce,be]=K(ye),Re=n=>{const{__scopeMenu:t,children:r,open:o=!1,onOpenChange:s}=n,c=U(ye,t),i=N(t),[a,u]=e.useState(null),[l,f]=e.useState(null),p=C(s);return e.useEffect((()=>(!1===c.open&&p(!1),()=>p(!1))),[c.open,p]),k.jsx(h,{...i,children:k.jsx(V,{scope:t,open:o,onOpenChange:p,content:l,onContentChange:f,children:k.jsx(Ce,{scope:t,contentId:d(),triggerId:d(),trigger:a,onTriggerChange:u,children:r})})})};Re.displayName=ye;var ke="MenuSubTrigger",Pe=e.forwardRef(((t,r)=>{const s=U(ke,t.__scopeMenu),c=X(ke,t.__scopeMenu),i=be(ke,t.__scopeMenu),a=$(ke,t.__scopeMenu),u=e.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:l}=a,f={__scopeMenu:t.__scopeMenu},p=e.useCallback((()=>{u.current&&window.clearTimeout(u.current),u.current=null}),[]);return e.useEffect((()=>p),[p]),e.useEffect((()=>{const e=d.current;return()=>{window.clearTimeout(e),l(null)}}),[d,l]),k.jsx(z,{asChild:!0,...f,children:k.jsx(ue,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":i.contentId,"data-state":Oe(s.open),...t,ref:o(r,i.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:n(t.onPointerMove,Se((e=>{a.onItemEnter(e),e.defaultPrevented||t.disabled||s.open||u.current||(a.onPointerGraceIntentChange(null),u.current=window.setTimeout((()=>{s.onOpenChange(!0),p()}),100))}))),onPointerLeave:n(t.onPointerLeave,Se((e=>{p();const n=s.content?.getBoundingClientRect();if(n){const t=s.content?.dataset.side,r="right"===t,o=r?-5:5,c=n[r?"left":"right"],i=n[r?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:n.top},{x:i,y:n.top},{x:i,y:n.bottom},{x:c,y:n.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==a.searchRef.current;t.disabled||n&&" "===e.key||O[c.dir].includes(e.key)&&(s.onOpenChange(!0),s.content?.focus(),e.preventDefault())}))})})}));Pe.displayName=ke;var De="MenuSubContent",Ee=e.forwardRef(((t,o)=>{const s=Z(J,t.__scopeMenu),{forceMount:c=s.forceMount,...i}=t,a=U(J,t.__scopeMenu),u=X(J,t.__scopeMenu),d=be(De,t.__scopeMenu),l=e.useRef(null),f=r(o,l);return k.jsx(S.Provider,{scope:t.__scopeMenu,children:k.jsx(g,{present:c||a.open,children:k.jsx(S.Slot,{scope:t.__scopeMenu,children:k.jsx(re,{id:d.contentId,"aria-labelledby":d.triggerId,...i,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:n(t.onFocusOutside,(e=>{e.target!==d.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:n(t.onEscapeKeyDown,(e=>{u.onClose(),e.preventDefault()})),onKeyDown:n(t.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),t=I[u.dir].includes(e.key);n&&t&&(a.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())}))})})})})}));function Oe(e){return e?"open":"closed"}function Ie(e){return"indeterminate"===e}function Te(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}function Se(e){return n=>"mouse"===n.pointerType?e(n):void 0}Ee.displayName=De;var Fe=Y,Le=z,Ke=q,Ae=ee,Ne=oe,Ge=se,Ve=ae,Ue=de,Be=me,Xe=ve,Ye=we,ze=Me,He=je,We=Re,Ze=Pe,qe=Ee;export{Le as Anchor,He as Arrow,Ue as CheckboxItem,Ae as Content,Ne as Group,Ve as Item,Ye as ItemIndicator,Ge as Label,Y as Menu,z as MenuAnchor,je as MenuArrow,de as MenuCheckboxItem,ee as MenuContent,oe as MenuGroup,ae as MenuItem,we as MenuItemIndicator,se as MenuLabel,q as MenuPortal,me as MenuRadioGroup,ve as MenuRadioItem,Me as MenuSeparator,Re as MenuSub,Ee as MenuSubContent,Pe as MenuSubTrigger,Ke as Portal,Be as RadioGroup,Xe as RadioItem,Fe as Root,ze as Separator,We as Sub,qe as SubContent,Ze as SubTrigger,A as createMenuScope};
1
+ import*as e from"react";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs";import{createCollection as t}from"../../react-collection/dist/index.mjs";import{useComposedRefs as r,composeRefs as o}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as s}from"../../react-context/dist/index.mjs";import{useDirection as c}from"../../react-direction/dist/index.mjs";import{DismissableLayer as a}from"../../react-dismissable-layer/dist/index.mjs";import{useFocusGuards as i}from"../../react-focus-guards/dist/index.mjs";import{FocusScope as u}from"../../react-focus-scope/dist/index.mjs";import{useId as d}from"../../react-id/dist/index.mjs";import{createPopperScope as l,Anchor as f,Content as p,Arrow as m,Root as h}from"../../react-popper/dist/index.mjs";import{Portal as v}from"../../react-portal/dist/index.mjs";import{Presence as g}from"../../react-presence/dist/index.mjs";import{Primitive as x,dispatchDiscreteCustomEvent as _}from"../../react-primitive/dist/index.mjs";import{createRovingFocusGroupScope as w,Root as M,Item as y}from"../../react-roving-focus/dist/index.mjs";import{Slot as j}from"../../react-slot/dist/index.mjs";import{useCallbackRef as C}from"../../react-use-callback-ref/dist/index.mjs";import{hideOthers as b}from"aria-hidden";import{RemoveScroll as R}from"react-remove-scroll";import{j as k}from"../../../../_virtual/jsx-runtime.mjs";var P=["Enter"," "],D=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...D],O={ltr:[...P,"ArrowRight"],rtl:[...P,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[S,F,L]=t(T),[K,A]=s(T,[L,l,w]),N=l(),G=w(),[V,U]=K(T),[B,X]=K(T),Y=n=>{const{__scopeMenu:t,open:r=!1,children:o,dir:s,onOpenChange:a,modal:i=!0}=n,u=N(t),[d,l]=e.useState(null),f=e.useRef(!1),p=C(a),m=c(s);return e.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}}),[]),k.jsx(h,{...u,children:k.jsx(V,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:l,children:k.jsx(B,{scope:t,onClose:e.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:m,modal:i,children:o})})})};Y.displayName=T;var z=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return k.jsx(f,{...o,...r,ref:n})}));z.displayName="MenuAnchor";var H="MenuPortal",[W,Z]=K(H,{forceMount:void 0}),q=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,s=U(H,n);return k.jsx(W,{scope:n,forceMount:t,children:k.jsx(g,{present:t||s.open,children:k.jsx(v,{asChild:!0,container:o,children:r})})})};q.displayName=H;var J="MenuContent",[Q,$]=K(J),ee=e.forwardRef(((e,n)=>{const t=Z(J,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,s=U(J,e.__scopeMenu),c=X(J,e.__scopeMenu);return k.jsx(S.Provider,{scope:e.__scopeMenu,children:k.jsx(g,{present:r||s.open,children:k.jsx(S.Slot,{scope:e.__scopeMenu,children:c.modal?k.jsx(ne,{...o,ref:n}):k.jsx(te,{...o,ref:n})})})})})),ne=e.forwardRef(((t,o)=>{const s=U(J,t.__scopeMenu),c=e.useRef(null),a=r(o,c);return e.useEffect((()=>{const e=c.current;if(e)return b(e)}),[]),k.jsx(re,{...t,ref:a,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:n(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})})),te=e.forwardRef(((e,n)=>{const t=U(J,e.__scopeMenu);return k.jsx(re,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})})),re=e.forwardRef(((t,o)=>{const{__scopeMenu:s,loop:c=!1,trapFocus:d,onOpenAutoFocus:l,onCloseAutoFocus:f,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:_,onDismiss:w,disableOutsideScroll:y,...C}=t,b=U(J,s),P=X(J,s),O=N(s),I=G(s),T=F(s),[S,L]=e.useState(null),K=e.useRef(null),A=r(o,K,b.onContentChange),V=e.useRef(0),B=e.useRef(""),Y=e.useRef(0),z=e.useRef(null),H=e.useRef("right"),W=e.useRef(0),Z=y?R:e.Fragment,q=y?{as:j,allowPinchZoom:!0}:void 0,$=e=>{const n=B.current+e,t=T().filter((e=>!e.disabled)),r=document.activeElement,o=t.find((e=>e.ref.current===r))?.textValue,s=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0])),o=r?n[0]:n,s=t?e.indexOf(t):-1;let c=(a=e,i=Math.max(s,0),a.map(((e,n)=>a[(i+n)%a.length])));var a,i;1===o.length&&(c=c.filter((e=>e!==t)));const u=c.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==t?u:void 0}(t.map((e=>e.textValue)),n,o),c=t.find((e=>e.textValue===s))?.ref.current;!function e(n){B.current=n,window.clearTimeout(V.current),""!==n&&(V.current=window.setTimeout((()=>e("")),1e3))}(n),c&&setTimeout((()=>c.focus()))};e.useEffect((()=>()=>window.clearTimeout(V.current)),[]),i();const ee=e.useCallback((e=>H.current===z.current?.side&&function(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return function(e,n){const{x:t,y:r}=e;let o=!1;for(let e=0,s=n.length-1;e<n.length;s=e++){const c=n[e].x,a=n[e].y,i=n[s].x,u=n[s].y;a>r!=u>r&&t<(i-c)*(r-a)/(u-a)+c&&(o=!o)}return o}(t,n)}(e,z.current?.area)),[]);return k.jsx(Q,{scope:s,searchRef:B,onItemEnter:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),onItemLeave:e.useCallback((e=>{ee(e)||(K.current?.focus(),L(null))}),[ee]),onTriggerLeave:e.useCallback((e=>{ee(e)&&e.preventDefault()}),[ee]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:e.useCallback((e=>{z.current=e}),[]),children:k.jsx(Z,{...q,children:k.jsx(u,{asChild:!0,trapped:d,onMountAutoFocus:n(l,(e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:f,children:k.jsx(a,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:x,onInteractOutside:_,onDismiss:w,children:k.jsx(M,{asChild:!0,...I,dir:P.dir,orientation:"vertical",loop:c,currentTabStopId:S,onCurrentTabStopIdChange:L,onEntryFocus:n(h,(e=>{P.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:k.jsx(p,{role:"menu","aria-orientation":"vertical","data-state":Oe(b.open),"data-radix-menu-content":"",dir:P.dir,...O,...C,ref:A,style:{outline:"none",...C.style},onKeyDown:n(C.onKeyDown,(e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&$(e.key));const o=K.current;if(e.target!==o)return;if(!E.includes(e.key))return;e.preventDefault();const s=T().filter((e=>!e.disabled)).map((e=>e.ref.current));D.includes(e.key)&&s.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(s)})),onBlur:n(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(V.current),B.current="")})),onPointerMove:n(t.onPointerMove,Se((e=>{const n=e.target,t=W.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>W.current?"right":"left";H.current=n,W.current=e.clientX}})))})})})})})})}));ee.displayName=J;var oe=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{role:"group",...r,ref:n})}));oe.displayName="MenuGroup";var se=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{...r,ref:n})}));se.displayName="MenuLabel";var ce="MenuItem",ae="menu.itemSelect",ie=e.forwardRef(((t,o)=>{const{disabled:s=!1,onSelect:c,...a}=t,i=e.useRef(null),u=X(ce,t.__scopeMenu),d=$(ce,t.__scopeMenu),l=r(o,i),f=e.useRef(!1);return k.jsx(ue,{...a,ref:l,disabled:s,onClick:n(t.onClick,(()=>{const e=i.current;if(!s&&e){const n=new CustomEvent(ae,{bubbles:!0,cancelable:!0});e.addEventListener(ae,(e=>c?.(e)),{once:!0}),_(e,n),n.defaultPrevented?f.current=!1:u.onClose()}})),onPointerDown:e=>{t.onPointerDown?.(e),f.current=!0},onPointerUp:n(t.onPointerUp,(e=>{f.current||e.currentTarget?.click()})),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==d.searchRef.current;s||n&&" "===e.key||P.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));ie.displayName=ce;var ue=e.forwardRef(((t,o)=>{const{__scopeMenu:s,disabled:c=!1,textValue:a,...i}=t,u=$(ce,s),d=G(s),l=e.useRef(null),f=r(o,l),[p,m]=e.useState(!1),[h,v]=e.useState("");return e.useEffect((()=>{const e=l.current;e&&v((e.textContent??"").trim())}),[i.children]),k.jsx(S.ItemSlot,{scope:s,disabled:c,textValue:a??h,children:k.jsx(y,{asChild:!0,...d,focusable:!c,children:k.jsx(x.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...i,ref:f,onPointerMove:n(t.onPointerMove,Se((e=>{if(c)u.onItemLeave(e);else if(u.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:n(t.onPointerLeave,Se((e=>u.onItemLeave(e)))),onFocus:n(t.onFocus,(()=>m(!0))),onBlur:n(t.onBlur,(()=>m(!1)))})})})})),de=e.forwardRef(((e,t)=>{const{checked:r=!1,onCheckedChange:o,...s}=e;return k.jsx(xe,{scope:e.__scopeMenu,checked:r,children:k.jsx(ie,{role:"menuitemcheckbox","aria-checked":Ie(r)?"mixed":r,...s,ref:t,"data-state":Te(r),onSelect:n(s.onSelect,(()=>o?.(!!Ie(r)||!r)),{checkForDefaultPrevented:!1})})})}));de.displayName="MenuCheckboxItem";var le="MenuRadioGroup",[fe,pe]=K(le,{value:void 0,onValueChange:()=>{}}),me=e.forwardRef(((e,n)=>{const{value:t,onValueChange:r,...o}=e,s=C(r);return k.jsx(fe,{scope:e.__scopeMenu,value:t,onValueChange:s,children:k.jsx(oe,{...o,ref:n})})}));me.displayName=le;var he="MenuRadioItem",ve=e.forwardRef(((e,t)=>{const{value:r,...o}=e,s=pe(he,e.__scopeMenu),c=r===s.value;return k.jsx(xe,{scope:e.__scopeMenu,checked:c,children:k.jsx(ie,{role:"menuitemradio","aria-checked":c,...o,ref:t,"data-state":Te(c),onSelect:n(o.onSelect,(()=>s.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));ve.displayName=he;var ge="MenuItemIndicator",[xe,_e]=K(ge,{checked:!1}),we=e.forwardRef(((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,s=_e(ge,t);return k.jsx(g,{present:r||Ie(s.checked)||!0===s.checked,children:k.jsx(x.span,{...o,ref:n,"data-state":Te(s.checked)})})}));we.displayName=ge;var Me=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return k.jsx(x.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})}));Me.displayName="MenuSeparator";var ye=e.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=N(t);return k.jsx(m,{...o,...r,ref:n})}));ye.displayName="MenuArrow";var je="MenuSub",[Ce,be]=K(je),Re=n=>{const{__scopeMenu:t,children:r,open:o=!1,onOpenChange:s}=n,c=U(je,t),a=N(t),[i,u]=e.useState(null),[l,f]=e.useState(null),p=C(s);return e.useEffect((()=>(!1===c.open&&p(!1),()=>p(!1))),[c.open,p]),k.jsx(h,{...a,children:k.jsx(V,{scope:t,open:o,onOpenChange:p,content:l,onContentChange:f,children:k.jsx(Ce,{scope:t,contentId:d(),triggerId:d(),trigger:i,onTriggerChange:u,children:r})})})};Re.displayName=je;var ke="MenuSubTrigger",Pe=e.forwardRef(((t,r)=>{const s=U(ke,t.__scopeMenu),c=X(ke,t.__scopeMenu),a=be(ke,t.__scopeMenu),i=$(ke,t.__scopeMenu),u=e.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:l}=i,f={__scopeMenu:t.__scopeMenu},p=e.useCallback((()=>{u.current&&window.clearTimeout(u.current),u.current=null}),[]);return e.useEffect((()=>p),[p]),e.useEffect((()=>{const e=d.current;return()=>{window.clearTimeout(e),l(null)}}),[d,l]),k.jsx(z,{asChild:!0,...f,children:k.jsx(ue,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":a.contentId,"data-state":Oe(s.open),...t,ref:o(r,a.onTriggerChange),onClick:e=>{t.onClick?.(e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:n(t.onPointerMove,Se((e=>{i.onItemEnter(e),e.defaultPrevented||t.disabled||s.open||u.current||(i.onPointerGraceIntentChange(null),u.current=window.setTimeout((()=>{s.onOpenChange(!0),p()}),100))}))),onPointerLeave:n(t.onPointerLeave,Se((e=>{p();const n=s.content?.getBoundingClientRect();if(n){const t=s.content?.dataset.side,r="right"===t,o=r?-5:5,c=n[r?"left":"right"],a=n[r?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:n.top},{x:a,y:n.top},{x:a,y:n.bottom},{x:c,y:n.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:n(t.onKeyDown,(e=>{const n=""!==i.searchRef.current;t.disabled||n&&" "===e.key||O[c.dir].includes(e.key)&&(s.onOpenChange(!0),s.content?.focus(),e.preventDefault())}))})})}));Pe.displayName=ke;var De="MenuSubContent",Ee=e.forwardRef(((t,o)=>{const s=Z(J,t.__scopeMenu),{forceMount:c=s.forceMount,...a}=t,i=U(J,t.__scopeMenu),u=X(J,t.__scopeMenu),d=be(De,t.__scopeMenu),l=e.useRef(null),f=r(o,l);return k.jsx(S.Provider,{scope:t.__scopeMenu,children:k.jsx(g,{present:c||i.open,children:k.jsx(S.Slot,{scope:t.__scopeMenu,children:k.jsx(re,{id:d.contentId,"aria-labelledby":d.triggerId,...a,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:n(t.onFocusOutside,(e=>{e.target!==d.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:n(t.onEscapeKeyDown,(e=>{u.onClose(),e.preventDefault()})),onKeyDown:n(t.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),t=I[u.dir].includes(e.key);n&&t&&(i.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())}))})})})})}));function Oe(e){return e?"open":"closed"}function Ie(e){return"indeterminate"===e}function Te(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}function Se(e){return n=>"mouse"===n.pointerType?e(n):void 0}Ee.displayName=De;var Fe=Y,Le=z,Ke=q,Ae=ee,Ne=oe,Ge=se,Ve=ie,Ue=de,Be=me,Xe=ve,Ye=we,ze=Me,He=ye,We=Re,Ze=Pe,qe=Ee;export{Le as Anchor,He as Arrow,Ue as CheckboxItem,Ae as Content,Ne as Group,Ve as Item,Ye as ItemIndicator,Ge as Label,Y as Menu,z as MenuAnchor,ye as MenuArrow,de as MenuCheckboxItem,ee as MenuContent,oe as MenuGroup,ie as MenuItem,we as MenuItemIndicator,se as MenuLabel,q as MenuPortal,me as MenuRadioGroup,ve as MenuRadioItem,Me as MenuSeparator,Re as MenuSub,Ee as MenuSubContent,Pe as MenuSubTrigger,Ke as Portal,Be as RadioGroup,Xe as RadioItem,Fe as Root,ze as Separator,We as Sub,qe as SubContent,Ze as SubTrigger,A as createMenuScope};
2
2
  //# sourceMappingURL=index.mjs.map