@lotte-innovate/ui-component-test 0.1.56 → 0.1.58

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) 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.d.ts +1 -1
  6. package/dist/lib/components/Accordion/index.mjs +1 -1
  7. package/dist/lib/components/Accordion/index.mjs.map +1 -1
  8. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +1 -1
  9. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -1
  10. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +1 -1
  11. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -1
  12. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +1 -1
  13. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -1
  14. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +1 -1
  15. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -1
  16. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +1 -1
  17. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -1
  18. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +1 -1
  19. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -1
  20. package/dist/lib/components/AspectRatio/index.mjs +1 -1
  21. package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
  22. package/dist/lib/components/Avatar/index.mjs +1 -1
  23. package/dist/lib/components/Avatar/index.mjs.map +1 -1
  24. package/dist/lib/components/Badge/index.mjs +1 -1
  25. package/dist/lib/components/Badge/index.mjs.map +1 -1
  26. package/dist/lib/components/BarChart/index.d.ts +1 -5
  27. package/dist/lib/components/BarChart/index.mjs +1 -1
  28. package/dist/lib/components/BarChart/index.mjs.map +1 -1
  29. package/dist/lib/components/BubbleChart/index.js +13 -2
  30. package/dist/lib/components/BubbleChart/index.mjs +1 -1
  31. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  32. package/dist/lib/components/Button/index.mjs +1 -1
  33. package/dist/lib/components/Button/index.mjs.map +1 -1
  34. package/dist/lib/components/Callout/CalloutIcon.mjs +1 -1
  35. package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -1
  36. package/dist/lib/components/Callout/CalloutRoot.mjs +1 -1
  37. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
  38. package/dist/lib/components/Callout/CalloutText.mjs +1 -1
  39. package/dist/lib/components/Callout/CalloutText.mjs.map +1 -1
  40. package/dist/lib/components/Card/index.mjs +1 -1
  41. package/dist/lib/components/Card/index.mjs.map +1 -1
  42. package/dist/lib/components/Checkbox/index.mjs +1 -1
  43. package/dist/lib/components/Checkbox/index.mjs.map +1 -1
  44. package/dist/lib/components/CheckboxCard/index.mjs +1 -1
  45. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
  46. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
  47. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
  48. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +1 -1
  49. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -1
  50. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +1 -1
  51. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -1
  52. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +1 -1
  53. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -1
  54. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +1 -1
  55. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -1
  56. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +1 -1
  57. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -1
  58. package/dist/lib/components/DataList/DataListItem.mjs +1 -1
  59. package/dist/lib/components/DataList/DataListItem.mjs.map +1 -1
  60. package/dist/lib/components/DataList/DataListLabel.mjs +1 -1
  61. package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -1
  62. package/dist/lib/components/DataList/DataListRoot.mjs +1 -1
  63. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
  64. package/dist/lib/components/DataList/DataListValue.mjs +1 -1
  65. package/dist/lib/components/DataList/DataListValue.mjs.map +1 -1
  66. package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
  67. package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -1
  68. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
  69. package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -1
  70. package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
  71. package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -1
  72. package/dist/lib/components/Dialog/DialogDescription.mjs +1 -1
  73. package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -1
  74. package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -4
  75. package/dist/lib/components/Dialog/DialogSlot.mjs +1 -1
  76. package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -1
  77. package/dist/lib/components/Dialog/DialogTitle.mjs +1 -1
  78. package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -1
  79. package/dist/lib/components/DoughnutChart/index.mjs +1 -1
  80. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
  81. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +1 -1
  82. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -1
  83. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +1 -1
  84. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -1
  85. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +1 -1
  86. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  87. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -1
  88. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -1
  89. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +1 -1
  90. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -1
  91. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +1 -2
  92. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
  93. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -1
  94. package/dist/lib/components/HoverCard/HoverCardContent.mjs +1 -1
  95. package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -1
  96. package/dist/lib/components/IconButton/index.d.ts +2 -2
  97. package/dist/lib/components/IconButton/index.mjs +1 -1
  98. package/dist/lib/components/IconButton/index.mjs.map +1 -1
  99. package/dist/lib/components/Inset/index.mjs +1 -1
  100. package/dist/lib/components/Inset/index.mjs.map +1 -1
  101. package/dist/lib/components/Label/index.mjs +1 -1
  102. package/dist/lib/components/Label/index.mjs.map +1 -1
  103. package/dist/lib/components/LineChart/index.mjs +1 -1
  104. package/dist/lib/components/LineChart/index.mjs.map +1 -1
  105. package/dist/lib/components/Menubar/MenubarContent.mjs +1 -1
  106. package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -1
  107. package/dist/lib/components/Menubar/MenubarItem.mjs +1 -1
  108. package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -1
  109. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +1 -1
  110. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -1
  111. package/dist/lib/components/Menubar/MenubarRoot.mjs +1 -1
  112. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
  113. package/dist/lib/components/Menubar/MenubarSubContent.mjs +1 -1
  114. package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -1
  115. package/dist/lib/components/Menubar/MenubarTrigger.mjs +1 -1
  116. package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -1
  117. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +1 -1
  118. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -1
  119. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +1 -1
  120. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -1
  121. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +1 -1
  122. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -1
  123. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +1 -1
  124. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -1
  125. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +1 -1
  126. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -1
  127. package/dist/lib/components/PieChart/index.mjs +1 -1
  128. package/dist/lib/components/PieChart/index.mjs.map +1 -1
  129. package/dist/lib/components/Popover/PopoverClose.mjs +1 -1
  130. package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -1
  131. package/dist/lib/components/Popover/PopoverContent.mjs +1 -1
  132. package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -1
  133. package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -2
  134. package/dist/lib/components/Progress/index.mjs +1 -1
  135. package/dist/lib/components/Progress/index.mjs.map +1 -1
  136. package/dist/lib/components/RadarChart/index.js +31 -2
  137. package/dist/lib/components/RadarChart/index.mjs +1 -1
  138. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  139. package/dist/lib/components/Radio/index.mjs +1 -1
  140. package/dist/lib/components/Radio/index.mjs.map +1 -1
  141. package/dist/lib/components/RadioCards/RadioCardsItem.mjs +1 -1
  142. package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -1
  143. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +1 -1
  144. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
  145. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +1 -1
  146. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -1
  147. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +1 -1
  148. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
  149. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
  150. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
  151. package/dist/lib/components/Select/index.mjs +1 -1
  152. package/dist/lib/components/Select/index.mjs.map +1 -1
  153. package/dist/lib/components/Separator/index.mjs +1 -1
  154. package/dist/lib/components/Separator/index.mjs.map +1 -1
  155. package/dist/lib/components/Skeleton/index.mjs +1 -1
  156. package/dist/lib/components/Skeleton/index.mjs.map +1 -1
  157. package/dist/lib/components/Slider/index.mjs +1 -1
  158. package/dist/lib/components/Slider/index.mjs.map +1 -1
  159. package/dist/lib/components/Spinner/index.mjs +1 -1
  160. package/dist/lib/components/Spinner/index.mjs.map +1 -1
  161. package/dist/lib/components/TabNav/index.mjs +1 -1
  162. package/dist/lib/components/TabNav/index.mjs.map +1 -1
  163. package/dist/lib/components/Table/index.mjs +1 -1
  164. package/dist/lib/components/Table/index.mjs.map +1 -1
  165. package/dist/lib/components/Tabs/index.mjs +1 -1
  166. package/dist/lib/components/Tabs/index.mjs.map +1 -1
  167. package/dist/lib/components/TextArea/index.mjs +1 -1
  168. package/dist/lib/components/TextArea/index.mjs.map +1 -1
  169. package/dist/lib/components/TextField/index.mjs +1 -1
  170. package/dist/lib/components/TextField/index.mjs.map +1 -1
  171. package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
  172. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
  173. package/dist/lib/components/Toast/ToastDescription.mjs +1 -1
  174. package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -1
  175. package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
  176. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
  177. package/dist/lib/components/Toast/ToastTitle.mjs +1 -1
  178. package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -1
  179. package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
  180. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
  181. package/dist/lib/components/Toggle/index.mjs +1 -1
  182. package/dist/lib/components/Toggle/index.mjs.map +1 -1
  183. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +1 -1
  184. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -1
  185. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +1 -1
  186. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
  187. package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
  188. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
  189. package/dist/lib/components/Tooltip/index.mjs +1 -1
  190. package/dist/lib/components/Tooltip/index.mjs.map +1 -1
  191. package/dist/lib/utils/utils.mjs +1 -1
  192. package/dist/lib/utils/utils.mjs.map +1 -1
  193. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +1 -1
  194. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -1
  195. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +1 -1
  196. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -1
  197. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +1 -1
  198. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -1
  199. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +1 -1
  200. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +1 -1
  201. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +1 -1
  202. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -1
  203. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +1 -1
  204. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +1 -1
  205. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +1 -1
  206. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -1
  207. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +1 -1
  208. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +1 -1
  209. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +1 -1
  210. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +1 -1
  211. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +1 -1
  212. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +1 -1
  213. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +1 -1
  214. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -1
  215. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +1 -1
  216. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +1 -1
  217. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +1 -1
  218. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -1
  219. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +1 -1
  220. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +1 -1
  221. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +1 -1
  222. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -1
  223. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +1 -1
  224. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -1
  225. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +1 -1
  226. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +1 -1
  227. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +1 -1
  228. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +1 -1
  229. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +1 -1
  230. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +1 -1
  231. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +1 -1
  232. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -1
  233. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +1 -1
  234. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +1 -1
  235. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +1 -1
  236. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +1 -1
  237. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +1 -1
  238. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -1
  239. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +1 -1
  240. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +1 -1
  241. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +1 -1
  242. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -1
  243. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +1 -1
  244. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -1
  245. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +1 -1
  246. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +1 -1
  247. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +1 -1
  248. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -1
  249. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +1 -1
  250. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +1 -1
  251. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +1 -1
  252. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +1 -1
  253. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +1 -1
  254. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +1 -1
  255. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +1 -1
  256. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -1
  257. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +1 -1
  258. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +1 -1
  259. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +1 -1
  260. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +1 -1
  261. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +1 -1
  262. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -1
  263. package/dist/node_modules/chart.js/dist/chart.mjs +2 -2
  264. package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -1
  265. package/dist/tsconfig.tsbuildinfo +1 -1
  266. package/package.json +1 -1
  267. package/dist/_virtual/_commonjsHelpers.mjs +0 -2
  268. package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
  269. package/dist/_virtual/index.mjs +0 -2
  270. package/dist/_virtual/index.mjs.map +0 -1
  271. package/dist/_virtual/index2.mjs +0 -2
  272. package/dist/_virtual/index2.mjs.map +0 -1
  273. package/dist/node_modules/aria-hidden/dist/es2015/index.mjs +0 -2
  274. package/dist/node_modules/aria-hidden/dist/es2015/index.mjs.map +0 -1
  275. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +0 -8
  276. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs.map +0 -1
  277. package/dist/node_modules/class-variance-authority/dist/index.mjs +0 -2
  278. package/dist/node_modules/class-variance-authority/dist/index.mjs.map +0 -1
  279. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs +0 -2
  280. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.map +0 -1
  281. package/dist/node_modules/classnames/index.mjs +0 -7
  282. package/dist/node_modules/classnames/index.mjs.map +0 -1
  283. package/dist/node_modules/clsx/dist/clsx.mjs +0 -2
  284. package/dist/node_modules/clsx/dist/clsx.mjs.map +0 -1
  285. package/dist/node_modules/get-nonce/dist/es2015/index.mjs +0 -2
  286. package/dist/node_modules/get-nonce/dist/es2015/index.mjs.map +0 -1
  287. package/dist/node_modules/react-chartjs-2/dist/index.mjs +0 -2
  288. package/dist/node_modules/react-chartjs-2/dist/index.mjs.map +0 -1
  289. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +0 -2
  290. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs.map +0 -1
  291. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +0 -2
  292. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs.map +0 -1
  293. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs +0 -2
  294. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs.map +0 -1
  295. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +0 -2
  296. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs.map +0 -1
  297. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +0 -2
  298. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs.map +0 -1
  299. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs +0 -2
  300. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs.map +0 -1
  301. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +0 -2
  302. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs.map +0 -1
  303. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +0 -2
  304. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs.map +0 -1
  305. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +0 -2
  306. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs.map +0 -1
  307. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +0 -2
  308. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs.map +0 -1
  309. package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs +0 -2
  310. package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs.map +0 -1
  311. package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs +0 -2
  312. package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs.map +0 -1
  313. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs +0 -2
  314. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs.map +0 -1
  315. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -2
  316. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.map +0 -1
  317. package/dist/node_modules/tslib/tslib.es6.mjs +0 -2
  318. package/dist/node_modules/tslib/tslib.es6.mjs.map +0 -1
  319. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +0 -2
  320. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs.map +0 -1
  321. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +0 -2
  322. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs.map +0 -1
  323. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs +0 -2
  324. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs.map +0 -1
  325. package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs +0 -2
  326. package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs.map +0 -1
  327. package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs +0 -2
  328. package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- import*as t from"react";import e from"../../../../../../_virtual/index.mjs";import{composeRefs as r}from"../../../../react-compose-refs/dist/index.mjs";import{textFieldRootPropDefs as o,textFieldSlotPropDefs as s}from"./text-field.props.mjs";import{extractProps as a}from"../helpers/extract-props.mjs";import{marginPropDefs as l}from"../props/margin.props.mjs";const i=t.forwardRef(((s,i)=>{const n=t.useRef(null),{children:c,className:d,color:m,radius:p,style:f,...u}=a(s,o,l);return t.createElement("div",{"data-accent-color":m,"data-radius":p,style:f,className:e("rt-TextFieldRoot",d),onPointerDown:t=>{const e=t.target;if(e.closest("input, button, a"))return;const r=n.current;if(!r)return;const o=e.closest("\n .rt-TextFieldSlot[data-side='right'],\n .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])\n ")?r.value.length:0;requestAnimationFrame((()=>{try{r.setSelectionRange(o,o)}catch{}r.focus()}))}},t.createElement("input",{spellCheck:"false",...u,ref:r(n,i),className:"rt-reset rt-TextFieldInput"}),c)}));i.displayName="TextField.Root";const n=t.forwardRef(((r,o)=>{const{className:l,color:i,side:n,...c}=a(r,s);return t.createElement("div",{"data-accent-color":i,"data-side":n,...c,ref:o,className:e("rt-TextFieldSlot",l)})}));n.displayName="TextField.Slot";export{i as Root,n as Slot};
1
+ import*as t from"react";import e from"classnames";import{composeRefs as r}from"../../../../react-compose-refs/dist/index.mjs";import{textFieldRootPropDefs as o,textFieldSlotPropDefs as s}from"./text-field.props.mjs";import{extractProps as a}from"../helpers/extract-props.mjs";import{marginPropDefs as l}from"../props/margin.props.mjs";const i=t.forwardRef(((s,i)=>{const n=t.useRef(null),{children:c,className:d,color:m,radius:p,style:f,...u}=a(s,o,l);return t.createElement("div",{"data-accent-color":m,"data-radius":p,style:f,className:e("rt-TextFieldRoot",d),onPointerDown:t=>{const e=t.target;if(e.closest("input, button, a"))return;const r=n.current;if(!r)return;const o=e.closest("\n .rt-TextFieldSlot[data-side='right'],\n .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])\n ")?r.value.length:0;requestAnimationFrame((()=>{try{r.setSelectionRange(o,o)}catch{}r.focus()}))}},t.createElement("input",{spellCheck:"false",...u,ref:r(n,i),className:"rt-reset rt-TextFieldInput"}),c)}));i.displayName="TextField.Root";const n=t.forwardRef(((r,o)=>{const{className:l,color:i,side:n,...c}=a(r,s);return t.createElement("div",{"data-accent-color":i,"data-side":n,...c,ref:o,className:e("rt-TextFieldSlot",l)})}));n.displayName="TextField.Slot";export{i as Root,n as Slot};
2
2
  //# sourceMappingURL=text-field.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/text-field.js"],"sourcesContent":["\"use client\";import*as t from\"react\";import d from\"classnames\";import{composeRefs as F}from\"@radix-ui/react-compose-refs\";import{textFieldRootPropDefs as R,textFieldSlotPropDefs as y}from\"./text-field.props.js\";import{extractProps as m}from\"../helpers/extract-props.js\";import{marginPropDefs as S}from\"../props/margin.props.js\";const u=t.forwardRef((r,s)=>{const e=t.useRef(null),{children:l,className:i,color:p,radius:f,style:x,...P}=m(r,R,S);return t.createElement(\"div\",{\"data-accent-color\":p,\"data-radius\":f,style:x,className:d(\"rt-TextFieldRoot\",i),onPointerDown:T=>{const n=T.target;if(n.closest(\"input, button, a\"))return;const o=e.current;if(!o)return;const a=n.closest(`\n .rt-TextFieldSlot[data-side='right'],\n .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])\n `)?o.value.length:0;requestAnimationFrame(()=>{try{o.setSelectionRange(a,a)}catch{}o.focus()})}},t.createElement(\"input\",{spellCheck:\"false\",...P,ref:F(e,s),className:\"rt-reset rt-TextFieldInput\"}),l)});u.displayName=\"TextField.Root\";const c=t.forwardRef((r,s)=>{const{className:e,color:l,side:i,...p}=m(r,y);return t.createElement(\"div\",{\"data-accent-color\":l,\"data-side\":i,...p,ref:s,className:d(\"rt-TextFieldSlot\",e)})});c.displayName=\"TextField.Slot\";export{u as Root,c as Slot};\n//# sourceMappingURL=text-field.js.map\n"],"names":["u","t","forwardRef","r","s","e","useRef","children","l","className","i","color","p","radius","f","style","x","P","m","R","S","createElement","d","onPointerDown","T","n","target","closest","o","current","a","value","length","requestAnimationFrame","setSelectionRange","focus","spellCheck","ref","F","displayName","c","side","y"],"mappings":"yWAA6U,MAACA,EAAEC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,EAAEJ,EAAEK,OAAO,OAAOC,SAASC,EAAEC,UAAUC,EAAEC,MAAMC,EAAEC,OAAOC,EAAEC,MAAMC,KAAKC,GAAGC,EAAEf,EAAEgB,EAAEC,GAAG,OAAOnB,EAAEoB,cAAc,MAAM,CAAC,oBAAoBT,EAAE,cAAcE,EAAEC,MAAMC,EAAEP,UAAUa,EAAE,mBAAmBZ,GAAGa,cAAcC,IAAI,MAAMC,EAAED,EAAEE,OAAO,GAAGD,EAAEE,QAAQ,oBAAoB,OAAO,MAAMC,EAAEvB,EAAEwB,QAAQ,IAAID,EAAE,OAAO,MAAME,EAAEL,EAAEE,QAAQ,uKAGzpBC,EAAEG,MAAMC,OAAO,EAAEC,uBAAsB,KAAK,IAAIL,EAAEM,kBAAkBJ,EAAEA,EAAE,CAAC,MAAO,CAAAF,EAAEO,OAAK,GAAG,GAAIlC,EAAEoB,cAAc,QAAQ,CAACe,WAAW,WAAWnB,EAAEoB,IAAIC,EAAEjC,EAAED,GAAGK,UAAU,+BAA+BD,EAAC,IAAIR,EAAEuC,YAAY,iBAAsB,MAACC,EAAEvC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMK,UAAUJ,EAAEM,MAAMH,EAAEiC,KAAK/B,KAAKE,GAAGM,EAAEf,EAAEuC,GAAG,OAAOzC,EAAEoB,cAAc,MAAM,CAAC,oBAAoBb,EAAE,YAAYE,KAAKE,EAAEyB,IAAIjC,EAAEK,UAAUa,EAAE,mBAAmBjB,IAAG,IAAImC,EAAED,YAAY"}
1
+ {"version":3,"file":"text-field.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/text-field.js"],"sourcesContent":["\"use client\";import*as t from\"react\";import d from\"classnames\";import{composeRefs as F}from\"@radix-ui/react-compose-refs\";import{textFieldRootPropDefs as R,textFieldSlotPropDefs as y}from\"./text-field.props.js\";import{extractProps as m}from\"../helpers/extract-props.js\";import{marginPropDefs as S}from\"../props/margin.props.js\";const u=t.forwardRef((r,s)=>{const e=t.useRef(null),{children:l,className:i,color:p,radius:f,style:x,...P}=m(r,R,S);return t.createElement(\"div\",{\"data-accent-color\":p,\"data-radius\":f,style:x,className:d(\"rt-TextFieldRoot\",i),onPointerDown:T=>{const n=T.target;if(n.closest(\"input, button, a\"))return;const o=e.current;if(!o)return;const a=n.closest(`\n .rt-TextFieldSlot[data-side='right'],\n .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])\n `)?o.value.length:0;requestAnimationFrame(()=>{try{o.setSelectionRange(a,a)}catch{}o.focus()})}},t.createElement(\"input\",{spellCheck:\"false\",...P,ref:F(e,s),className:\"rt-reset rt-TextFieldInput\"}),l)});u.displayName=\"TextField.Root\";const c=t.forwardRef((r,s)=>{const{className:e,color:l,side:i,...p}=m(r,y);return t.createElement(\"div\",{\"data-accent-color\":l,\"data-side\":i,...p,ref:s,className:d(\"rt-TextFieldSlot\",e)})});c.displayName=\"TextField.Slot\";export{u as Root,c as Slot};\n//# sourceMappingURL=text-field.js.map\n"],"names":["u","t","forwardRef","r","s","e","useRef","children","l","className","i","color","p","radius","f","style","x","P","m","R","S","createElement","d","onPointerDown","T","n","target","closest","o","current","a","value","length","requestAnimationFrame","setSelectionRange","focus","spellCheck","ref","F","displayName","c","side","y"],"mappings":"+UAA6U,MAACA,EAAEC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,EAAEJ,EAAEK,OAAO,OAAOC,SAASC,EAAEC,UAAUC,EAAEC,MAAMC,EAAEC,OAAOC,EAAEC,MAAMC,KAAKC,GAAGC,EAAEf,EAAEgB,EAAEC,GAAG,OAAOnB,EAAEoB,cAAc,MAAM,CAAC,oBAAoBT,EAAE,cAAcE,EAAEC,MAAMC,EAAEP,UAAUa,EAAE,mBAAmBZ,GAAGa,cAAcC,IAAI,MAAMC,EAAED,EAAEE,OAAO,GAAGD,EAAEE,QAAQ,oBAAoB,OAAO,MAAMC,EAAEvB,EAAEwB,QAAQ,IAAID,EAAE,OAAO,MAAME,EAAEL,EAAEE,QAAQ,uKAGzpBC,EAAEG,MAAMC,OAAO,EAAEC,uBAAsB,KAAK,IAAIL,EAAEM,kBAAkBJ,EAAEA,EAAE,CAAC,MAAO,CAAAF,EAAEO,OAAK,GAAG,GAAIlC,EAAEoB,cAAc,QAAQ,CAACe,WAAW,WAAWnB,EAAEoB,IAAIC,EAAEjC,EAAED,GAAGK,UAAU,+BAA+BD,EAAC,IAAIR,EAAEuC,YAAY,iBAAsB,MAACC,EAAEvC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMK,UAAUJ,EAAEM,MAAMH,EAAEiC,KAAK/B,KAAKE,GAAGM,EAAEf,EAAEuC,GAAG,OAAOzC,EAAEoB,cAAc,MAAM,CAAC,oBAAoBb,EAAE,YAAYE,KAAKE,EAAEyB,IAAIjC,EAAEK,UAAUa,EAAE,mBAAmBjB,IAAG,IAAImC,EAAED,YAAY"}
@@ -1,2 +1,2 @@
1
- import*as r from"react";import t from"../../../../../../_virtual/index.mjs";import{Slot as e}from"../../../../react-slot/dist/index.mjs";import{extractProps as s}from"../helpers/extract-props.mjs";import{marginPropDefs as o}from"../props/margin.props.mjs";import{textPropDefs as a}from"./text.props.mjs";const m=r.forwardRef(((m,p)=>{const{children:c,className:i,asChild:l,as:n="span",color:f,...x}=s(m,a,o);return r.createElement(e,{"data-accent-color":f,...x,ref:p,className:t("rt-Text",i)},l?c:r.createElement(n,null,c))}));m.displayName="Text";export{m as Text};
1
+ import*as r from"react";import e from"classnames";import{Slot as s}from"../../../../react-slot/dist/index.mjs";import{extractProps as t}from"../helpers/extract-props.mjs";import{marginPropDefs as a}from"../props/margin.props.mjs";import{textPropDefs as o}from"./text.props.mjs";const m=r.forwardRef(((m,p)=>{const{children:c,className:l,asChild:i,as:n="span",color:f,...x}=t(m,o,a);return r.createElement(s,{"data-accent-color":f,...x,ref:p,className:e("rt-Text",l)},i?c:r.createElement(n,null,c))}));m.displayName="Text";export{m as Text};
2
2
  //# sourceMappingURL=text.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/text.js"],"sourcesContent":["import*as o from\"react\";import x from\"classnames\";import{Slot as i}from\"@radix-ui/react-slot\";import{extractProps as T}from\"../helpers/extract-props.js\";import{marginPropDefs as f}from\"../props/margin.props.js\";import{textPropDefs as l}from\"./text.props.js\";const p=o.forwardRef((t,r)=>{const{children:e,className:s,asChild:m,as:a=\"span\",color:n,...P}=T(t,l,f);return o.createElement(i,{\"data-accent-color\":n,...P,ref:r,className:x(\"rt-Text\",s)},m?e:o.createElement(a,null,e))});p.displayName=\"Text\";export{p as Text};\n//# sourceMappingURL=text.js.map\n"],"names":["p","o","forwardRef","t","r","children","e","className","s","asChild","m","as","a","color","n","P","T","l","f","createElement","i","ref","x","displayName"],"mappings":"gTAAuQ,MAACA,EAAEC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,SAASC,EAAEC,UAAUC,EAAEC,QAAQC,EAAEC,GAAGC,EAAE,OAAOC,MAAMC,KAAKC,GAAGC,EAAEb,EAAEc,EAAEC,GAAG,OAAOjB,EAAEkB,cAAcC,EAAE,CAAC,oBAAoBN,KAAKC,EAAEM,IAAIjB,EAAEG,UAAUe,EAAE,UAAUd,IAAIE,EAAEJ,EAAEL,EAAEkB,cAAcP,EAAE,KAAKN,GAAE,IAAIN,EAAEuB,YAAY"}
1
+ {"version":3,"file":"text.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/text.js"],"sourcesContent":["import*as o from\"react\";import x from\"classnames\";import{Slot as i}from\"@radix-ui/react-slot\";import{extractProps as T}from\"../helpers/extract-props.js\";import{marginPropDefs as f}from\"../props/margin.props.js\";import{textPropDefs as l}from\"./text.props.js\";const p=o.forwardRef((t,r)=>{const{children:e,className:s,asChild:m,as:a=\"span\",color:n,...P}=T(t,l,f);return o.createElement(i,{\"data-accent-color\":n,...P,ref:r,className:x(\"rt-Text\",s)},m?e:o.createElement(a,null,e))});p.displayName=\"Text\";export{p as Text};\n//# sourceMappingURL=text.js.map\n"],"names":["p","o","forwardRef","t","r","children","e","className","s","asChild","m","as","a","color","n","P","T","l","f","createElement","i","ref","x","displayName"],"mappings":"sRAAuQ,MAACA,EAAEC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,SAASC,EAAEC,UAAUC,EAAEC,QAAQC,EAAEC,GAAGC,EAAE,OAAOC,MAAMC,KAAKC,GAAGC,EAAEb,EAAEc,EAAEC,GAAG,OAAOjB,EAAEkB,cAAcC,EAAE,CAAC,oBAAoBN,KAAKC,EAAEM,IAAIjB,EAAEG,UAAUe,EAAE,UAAUd,IAAIE,EAAEJ,EAAEL,EAAEkB,cAAcP,EAAE,KAAKN,GAAE,IAAIN,EAAEuB,YAAY"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import a from"../../../../../../_virtual/index.mjs";import{Provider as o}from"../../../../react-tooltip/dist/index.mjs";import{DirectionProvider as r}from"../../../../react-direction/dist/index.mjs";import{Slot as n}from"../../../../react-slot/dist/index.mjs";import{getMatchingGrayColor as t}from"../helpers/get-matching-gray-color.mjs";import{themePropDefs as c}from"./theme.props.mjs";const s=()=>{},l=e.createContext(void 0);function d(){const a=e.useContext(l);if(void 0===a)throw new Error("`useThemeContext` must be used within a `Theme`");return a}const u=e.forwardRef(((a,n)=>void 0===e.useContext(l)?e.createElement(o,{delayDuration:200},e.createElement(r,{dir:"ltr"},e.createElement(i,{...a,ref:n}))):e.createElement(g,{...a,ref:n})));u.displayName="Theme";const i=e.forwardRef(((a,o)=>{const{appearance:r=c.appearance.default,accentColor:n=c.accentColor.default,grayColor:t=c.grayColor.default,panelBackground:s=c.panelBackground.default,radius:l=c.radius.default,scaling:d=c.scaling.default,hasBackground:u=c.hasBackground.default,...i}=a,[p,f]=e.useState(r);e.useEffect((()=>f(r)),[r]);const[m,C]=e.useState(n);e.useEffect((()=>C(n)),[n]);const[h,k]=e.useState(t);e.useEffect((()=>k(t)),[t]);const[y,B]=e.useState(s);e.useEffect((()=>B(s)),[s]);const[E,x]=e.useState(l);e.useEffect((()=>x(l)),[l]);const[v,R]=e.useState(d);return e.useEffect((()=>R(d)),[d]),e.createElement(g,{...i,ref:o,isRoot:!0,hasBackground:u,appearance:p,accentColor:m,grayColor:h,panelBackground:y,radius:E,scaling:v,onAppearanceChange:f,onAccentColorChange:C,onGrayColorChange:k,onPanelBackgroundChange:B,onRadiusChange:x,onScalingChange:R})}));i.displayName="ThemeRoot";const g=e.forwardRef(((o,r)=>{const d=e.useContext(l),{asChild:u,isRoot:i,hasBackground:g,appearance:p=d?.appearance??c.appearance.default,accentColor:f=d?.accentColor??c.accentColor.default,grayColor:m=d?.resolvedGrayColor??c.grayColor.default,panelBackground:C=d?.panelBackground??c.panelBackground.default,radius:h=d?.radius??c.radius.default,scaling:k=d?.scaling??c.scaling.default,onAppearanceChange:y=s,onAccentColorChange:B=s,onGrayColorChange:E=s,onPanelBackgroundChange:x=s,onRadiusChange:v=s,onScalingChange:R=s,...S}=o,T=u?n:"div",j="auto"===m?t(f):m,w="light"===o.appearance||"dark"===o.appearance,A=void 0===g?i||w:g;return e.createElement(l.Provider,{value:e.useMemo((()=>({appearance:p,accentColor:f,grayColor:m,resolvedGrayColor:j,panelBackground:C,radius:h,scaling:k,onAppearanceChange:y,onAccentColorChange:B,onGrayColorChange:E,onPanelBackgroundChange:x,onRadiusChange:v,onScalingChange:R})),[p,f,m,j,C,h,k,y,B,E,x,v,R])},e.createElement(T,{"data-is-root-theme":i?"true":"false","data-accent-color":f,"data-gray-color":j,"data-has-background":A?"true":"false","data-panel-background":C,"data-radius":h,"data-scaling":k,ref:r,...S,className:a("radix-themes",{light:"light"===p,dark:"dark"===p},S.className)}))}));g.displayName="ThemeImpl";export{u as Theme,d as useThemeContext};
1
+ import*as e from"react";import a from"classnames";import{Provider as o}from"../../../../react-tooltip/dist/index.mjs";import{DirectionProvider as r}from"../../../../react-direction/dist/index.mjs";import{Slot as n}from"../../../../react-slot/dist/index.mjs";import{getMatchingGrayColor as t}from"../helpers/get-matching-gray-color.mjs";import{themePropDefs as c}from"./theme.props.mjs";const s=()=>{},l=e.createContext(void 0);function d(){const a=e.useContext(l);if(void 0===a)throw new Error("`useThemeContext` must be used within a `Theme`");return a}const u=e.forwardRef(((a,n)=>void 0===e.useContext(l)?e.createElement(o,{delayDuration:200},e.createElement(r,{dir:"ltr"},e.createElement(i,{...a,ref:n}))):e.createElement(g,{...a,ref:n})));u.displayName="Theme";const i=e.forwardRef(((a,o)=>{const{appearance:r=c.appearance.default,accentColor:n=c.accentColor.default,grayColor:t=c.grayColor.default,panelBackground:s=c.panelBackground.default,radius:l=c.radius.default,scaling:d=c.scaling.default,hasBackground:u=c.hasBackground.default,...i}=a,[p,f]=e.useState(r);e.useEffect((()=>f(r)),[r]);const[m,C]=e.useState(n);e.useEffect((()=>C(n)),[n]);const[h,k]=e.useState(t);e.useEffect((()=>k(t)),[t]);const[y,B]=e.useState(s);e.useEffect((()=>B(s)),[s]);const[E,x]=e.useState(l);e.useEffect((()=>x(l)),[l]);const[v,R]=e.useState(d);return e.useEffect((()=>R(d)),[d]),e.createElement(g,{...i,ref:o,isRoot:!0,hasBackground:u,appearance:p,accentColor:m,grayColor:h,panelBackground:y,radius:E,scaling:v,onAppearanceChange:f,onAccentColorChange:C,onGrayColorChange:k,onPanelBackgroundChange:B,onRadiusChange:x,onScalingChange:R})}));i.displayName="ThemeRoot";const g=e.forwardRef(((o,r)=>{const d=e.useContext(l),{asChild:u,isRoot:i,hasBackground:g,appearance:p=d?.appearance??c.appearance.default,accentColor:f=d?.accentColor??c.accentColor.default,grayColor:m=d?.resolvedGrayColor??c.grayColor.default,panelBackground:C=d?.panelBackground??c.panelBackground.default,radius:h=d?.radius??c.radius.default,scaling:k=d?.scaling??c.scaling.default,onAppearanceChange:y=s,onAccentColorChange:B=s,onGrayColorChange:E=s,onPanelBackgroundChange:x=s,onRadiusChange:v=s,onScalingChange:R=s,...S}=o,T=u?n:"div",w="auto"===m?t(f):m,A="light"===o.appearance||"dark"===o.appearance,G=void 0===g?i||A:g;return e.createElement(l.Provider,{value:e.useMemo((()=>({appearance:p,accentColor:f,grayColor:m,resolvedGrayColor:w,panelBackground:C,radius:h,scaling:k,onAppearanceChange:y,onAccentColorChange:B,onGrayColorChange:E,onPanelBackgroundChange:x,onRadiusChange:v,onScalingChange:R})),[p,f,m,w,C,h,k,y,B,E,x,v,R])},e.createElement(T,{"data-is-root-theme":i?"true":"false","data-accent-color":f,"data-gray-color":w,"data-has-background":G?"true":"false","data-panel-background":C,"data-radius":h,"data-scaling":k,ref:r,...S,className:a("radix-themes",{light:"light"===p,dark:"dark"===p},S.className)}))}));g.displayName="ThemeImpl";export{u as Theme,d as useThemeContext};
2
2
  //# sourceMappingURL=theme.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/theme.js"],"sourcesContent":["\"use client\";import*as e from\"react\";import E from\"classnames\";import*as G from\"@radix-ui/react-tooltip\";import{DirectionProvider as D}from\"@radix-ui/react-direction\";import{Slot as w}from\"@radix-ui/react-slot\";import{getMatchingGrayColor as N}from\"../helpers/get-matching-gray-color.js\";import{themePropDefs as o}from\"./theme.props.js\";const d=()=>{},b=e.createContext(void 0);function H(){const a=e.useContext(b);if(a===void 0)throw new Error(\"`useThemeContext` must be used within a `Theme`\");return a}const I=e.forwardRef((a,s)=>e.useContext(b)===void 0?e.createElement(G.Provider,{delayDuration:200},e.createElement(D,{dir:\"ltr\"},e.createElement(R,{...a,ref:s}))):e.createElement(A,{...a,ref:s}));I.displayName=\"Theme\";const R=e.forwardRef((a,s)=>{const{appearance:r=o.appearance.default,accentColor:c=o.accentColor.default,grayColor:l=o.grayColor.default,panelBackground:p=o.panelBackground.default,radius:n=o.radius.default,scaling:t=o.scaling.default,hasBackground:m=o.hasBackground.default,...u}=a,[h,i]=e.useState(r);e.useEffect(()=>i(r),[r]);const[T,g]=e.useState(c);e.useEffect(()=>g(c),[c]);const[y,C]=e.useState(l);e.useEffect(()=>C(l),[l]);const[v,f]=e.useState(p);e.useEffect(()=>f(p),[p]);const[k,B]=e.useState(n);e.useEffect(()=>B(n),[n]);const[P,x]=e.useState(t);return e.useEffect(()=>x(t),[t]),e.createElement(A,{...u,ref:s,isRoot:!0,hasBackground:m,appearance:h,accentColor:T,grayColor:y,panelBackground:v,radius:k,scaling:P,onAppearanceChange:i,onAccentColorChange:g,onGrayColorChange:C,onPanelBackgroundChange:f,onRadiusChange:B,onScalingChange:x})});R.displayName=\"ThemeRoot\";const A=e.forwardRef((a,s)=>{const r=e.useContext(b),{asChild:c,isRoot:l,hasBackground:p,appearance:n=r?.appearance??o.appearance.default,accentColor:t=r?.accentColor??o.accentColor.default,grayColor:m=r?.resolvedGrayColor??o.grayColor.default,panelBackground:u=r?.panelBackground??o.panelBackground.default,radius:h=r?.radius??o.radius.default,scaling:i=r?.scaling??o.scaling.default,onAppearanceChange:T=d,onAccentColorChange:g=d,onGrayColorChange:y=d,onPanelBackgroundChange:C=d,onRadiusChange:v=d,onScalingChange:f=d,...k}=a,B=c?w:\"div\",P=m===\"auto\"?N(t):m,x=a.appearance===\"light\"||a.appearance===\"dark\",S=p===void 0?l||x:p;return e.createElement(b.Provider,{value:e.useMemo(()=>({appearance:n,accentColor:t,grayColor:m,resolvedGrayColor:P,panelBackground:u,radius:h,scaling:i,onAppearanceChange:T,onAccentColorChange:g,onGrayColorChange:y,onPanelBackgroundChange:C,onRadiusChange:v,onScalingChange:f}),[n,t,m,P,u,h,i,T,g,y,C,v,f])},e.createElement(B,{\"data-is-root-theme\":l?\"true\":\"false\",\"data-accent-color\":t,\"data-gray-color\":P,\"data-has-background\":S?\"true\":\"false\",\"data-panel-background\":u,\"data-radius\":h,\"data-scaling\":i,ref:s,...k,className:E(\"radix-themes\",{light:n===\"light\",dark:n===\"dark\"},k.className)}))});A.displayName=\"ThemeImpl\";export{I as Theme,H as useThemeContext};\n//# sourceMappingURL=theme.js.map\n"],"names":["d","b","e","createContext","H","a","useContext","Error","I","forwardRef","s","createElement","G.Provider","delayDuration","D","dir","R","ref","A","displayName","appearance","r","o","default","accentColor","c","grayColor","l","panelBackground","p","radius","n","scaling","t","hasBackground","m","u","h","i","useState","useEffect","T","g","y","C","v","f","k","B","P","x","isRoot","onAppearanceChange","onAccentColorChange","onGrayColorChange","onPanelBackgroundChange","onRadiusChange","onScalingChange","asChild","resolvedGrayColor","w","N","S","Provider","value","useMemo","className","E","light","dark"],"mappings":"4ZAAiV,MAAMA,EAAE,OAAOC,EAAEC,EAAEC,mBAAc,GAAQ,SAASC,IAAI,MAAMC,EAAEH,EAAEI,WAAWL,GAAG,QAAO,IAAJI,EAAW,MAAM,IAAIE,MAAM,mDAAmD,OAAOF,CAAC,CAAM,MAACG,EAAEN,EAAEO,YAAW,CAACJ,EAAEK,SAAsB,IAAlBR,EAAEI,WAAWL,GAAYC,EAAES,cAAcC,EAAW,CAACC,cAAc,KAAKX,EAAES,cAAcG,EAAE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AAEC,EAAEG,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,KAAK5C,EAAES,cAAcqC,EAAE,CAAC,qBAAqBrB,EAAE,OAAO,QAAQ,oBAAoBM,EAAE,kBAAkBgB,EAAE,sBAAsBa,EAAE,OAAO,QAAQ,wBAAwB1B,EAAE,cAAcC,EAAE,eAAeC,EAAErB,IAAIP,KAAKqC,EAAEmB,UAAUC,EAAE,eAAe,CAACC,MAAU,UAAJrC,EAAYsC,KAAS,SAAJtC,GAAYgB,EAAEmB,aAAY,IAAIhD,EAAEC,YAAY"}
1
+ {"version":3,"file":"theme.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/theme.js"],"sourcesContent":["\"use client\";import*as e from\"react\";import E from\"classnames\";import*as G from\"@radix-ui/react-tooltip\";import{DirectionProvider as D}from\"@radix-ui/react-direction\";import{Slot as w}from\"@radix-ui/react-slot\";import{getMatchingGrayColor as N}from\"../helpers/get-matching-gray-color.js\";import{themePropDefs as o}from\"./theme.props.js\";const d=()=>{},b=e.createContext(void 0);function H(){const a=e.useContext(b);if(a===void 0)throw new Error(\"`useThemeContext` must be used within a `Theme`\");return a}const I=e.forwardRef((a,s)=>e.useContext(b)===void 0?e.createElement(G.Provider,{delayDuration:200},e.createElement(D,{dir:\"ltr\"},e.createElement(R,{...a,ref:s}))):e.createElement(A,{...a,ref:s}));I.displayName=\"Theme\";const R=e.forwardRef((a,s)=>{const{appearance:r=o.appearance.default,accentColor:c=o.accentColor.default,grayColor:l=o.grayColor.default,panelBackground:p=o.panelBackground.default,radius:n=o.radius.default,scaling:t=o.scaling.default,hasBackground:m=o.hasBackground.default,...u}=a,[h,i]=e.useState(r);e.useEffect(()=>i(r),[r]);const[T,g]=e.useState(c);e.useEffect(()=>g(c),[c]);const[y,C]=e.useState(l);e.useEffect(()=>C(l),[l]);const[v,f]=e.useState(p);e.useEffect(()=>f(p),[p]);const[k,B]=e.useState(n);e.useEffect(()=>B(n),[n]);const[P,x]=e.useState(t);return e.useEffect(()=>x(t),[t]),e.createElement(A,{...u,ref:s,isRoot:!0,hasBackground:m,appearance:h,accentColor:T,grayColor:y,panelBackground:v,radius:k,scaling:P,onAppearanceChange:i,onAccentColorChange:g,onGrayColorChange:C,onPanelBackgroundChange:f,onRadiusChange:B,onScalingChange:x})});R.displayName=\"ThemeRoot\";const A=e.forwardRef((a,s)=>{const r=e.useContext(b),{asChild:c,isRoot:l,hasBackground:p,appearance:n=r?.appearance??o.appearance.default,accentColor:t=r?.accentColor??o.accentColor.default,grayColor:m=r?.resolvedGrayColor??o.grayColor.default,panelBackground:u=r?.panelBackground??o.panelBackground.default,radius:h=r?.radius??o.radius.default,scaling:i=r?.scaling??o.scaling.default,onAppearanceChange:T=d,onAccentColorChange:g=d,onGrayColorChange:y=d,onPanelBackgroundChange:C=d,onRadiusChange:v=d,onScalingChange:f=d,...k}=a,B=c?w:\"div\",P=m===\"auto\"?N(t):m,x=a.appearance===\"light\"||a.appearance===\"dark\",S=p===void 0?l||x:p;return e.createElement(b.Provider,{value:e.useMemo(()=>({appearance:n,accentColor:t,grayColor:m,resolvedGrayColor:P,panelBackground:u,radius:h,scaling:i,onAppearanceChange:T,onAccentColorChange:g,onGrayColorChange:y,onPanelBackgroundChange:C,onRadiusChange:v,onScalingChange:f}),[n,t,m,P,u,h,i,T,g,y,C,v,f])},e.createElement(B,{\"data-is-root-theme\":l?\"true\":\"false\",\"data-accent-color\":t,\"data-gray-color\":P,\"data-has-background\":S?\"true\":\"false\",\"data-panel-background\":u,\"data-radius\":h,\"data-scaling\":i,ref:s,...k,className:E(\"radix-themes\",{light:n===\"light\",dark:n===\"dark\"},k.className)}))});A.displayName=\"ThemeImpl\";export{I as Theme,H as useThemeContext};\n//# sourceMappingURL=theme.js.map\n"],"names":["d","b","e","createContext","H","a","useContext","Error","I","forwardRef","s","createElement","G.Provider","delayDuration","D","dir","R","ref","A","displayName","appearance","r","o","default","accentColor","c","grayColor","l","panelBackground","p","radius","n","scaling","t","hasBackground","m","u","h","i","useState","useEffect","T","g","y","C","v","f","k","B","P","x","isRoot","onAppearanceChange","onAccentColorChange","onGrayColorChange","onPanelBackgroundChange","onRadiusChange","onScalingChange","asChild","resolvedGrayColor","w","N","S","Provider","value","useMemo","className","E","light","dark"],"mappings":"kYAAiV,MAAMA,EAAE,OAAOC,EAAEC,EAAEC,mBAAc,GAAQ,SAASC,IAAI,MAAMC,EAAEH,EAAEI,WAAWL,GAAG,QAAO,IAAJI,EAAW,MAAM,IAAIE,MAAM,mDAAmD,OAAOF,CAAC,CAAM,MAACG,EAAEN,EAAEO,YAAW,CAACJ,EAAEK,SAAsB,IAAlBR,EAAEI,WAAWL,GAAYC,EAAES,cAAcC,EAAW,CAACC,cAAc,KAAKX,EAAES,cAAcG,EAAE,CAACC,IAAI,OAAOb,EAAES,cAAcK,EAAE,IAAIX,EAAEY,IAAIP,MAAMR,EAAES,cAAcO,EAAE,IAAIb,EAAEY,IAAIP,MAAKF,EAAEW,YAAY,QAAQ,MAAMH,EAAEd,EAAEO,YAAW,CAACJ,EAAEK,KAAK,MAAMU,WAAWC,EAAEC,EAAEF,WAAWG,QAAQC,YAAYC,EAAEH,EAAEE,YAAYD,QAAQG,UAAUC,EAAEL,EAAEI,UAAUH,QAAQK,gBAAgBC,EAAEP,EAAEM,gBAAgBL,QAAQO,OAAOC,EAAET,EAAEQ,OAAOP,QAAQS,QAAQC,EAAEX,EAAEU,QAAQT,QAAQW,cAAcC,EAAEb,EAAEY,cAAcX,WAAWa,GAAG/B,GAAGgC,EAAEC,GAAGpC,EAAEqC,SAASlB,GAAGnB,EAAEsC,WAAU,IAAIF,EAAEjB,IAAG,CAACA,IAAI,MAAMoB,EAAEC,GAAGxC,EAAEqC,SAASd,GAAGvB,EAAEsC,WAAU,IAAIE,EAAEjB,IAAG,CAACA,IAAI,MAAMkB,EAAEC,GAAG1C,EAAEqC,SAASZ,GAAGzB,EAAEsC,WAAU,IAAII,EAAEjB,IAAG,CAACA,IAAI,MAAMkB,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,EAAE,MAAMX,EAAM,SAAJd,EAAW0B,EAAE5B,GAAGE,EAAEe,EAAiB,UAAf7C,EAAEe,YAAqC,SAAff,EAAEe,WAAoB0C,OAAM,IAAJjC,EAAWF,GAAGuB,EAAErB,EAAE,OAAO3B,EAAES,cAAcV,EAAE8D,SAAS,CAACC,MAAM9D,EAAE+D,SAAQ,MAAM7C,WAAWW,EAAEP,YAAYS,EAAEP,UAAUS,EAAEwB,kBAAkBV,EAAErB,gBAAgBQ,EAAEN,OAAOO,EAAEL,QAAQM,EAAEc,mBAAmBX,EAAEY,oBAAoBX,EAAEY,kBAAkBX,EAAEY,wBAAwBX,EAAEY,eAAeX,EAAEY,gBAAgBX,KAAI,CAACf,EAAEE,EAAEE,EAAEc,EAAEb,EAAEC,EAAEC,EAAEG,EAAEC,EAAEC,EAAEC,EAAEC,EAAEC,KAAK5C,EAAES,cAAcqC,EAAE,CAAC,qBAAqBrB,EAAE,OAAO,QAAQ,oBAAoBM,EAAE,kBAAkBgB,EAAE,sBAAsBa,EAAE,OAAO,QAAQ,wBAAwB1B,EAAE,cAAcC,EAAE,eAAeC,EAAErB,IAAIP,KAAKqC,EAAEmB,UAAUC,EAAE,eAAe,CAACC,MAAU,UAAJrC,EAAYsC,KAAS,SAAJtC,GAAYgB,EAAEmB,aAAY,IAAIhD,EAAEC,YAAY"}
@@ -1,2 +1,2 @@
1
- import e from"../../../../../../_virtual/index.mjs";import{getResponsiveClassNames as s,getResponsiveStyles as t}from"./get-responsive-styles.mjs";import{isResponsiveObject as a}from"./is-responsive-object.mjs";import{mergeStyles as i}from"./merge-styles.mjs";function l(l,...n){let o,r;const u={...l},m=function(...e){return Object.assign({},...e)}(...n);for(const l in m){let n=u[l];const c=m[l];if(void 0!==c.default&&void 0===n&&(n=c.default),"enum"===c.type&&![c.default,...c.values].includes(n)&&!a(n)&&(n=c.default),u[l]=n,"className"in c&&c.className){delete u[l];const m="responsive"in c;if(!n||a(n)&&!m)continue;if(a(n)&&(void 0!==c.default&&void 0===n.initial&&(n.initial=c.default),"enum"===c.type&&([c.default,...c.values].includes(n.initial)||(n.initial=c.default))),"enum"===c.type){const t=s({allowArbitraryValues:!1,value:n,className:c.className,propValues:c.values,parseValue:c.parseValue});o=e(o,t);continue}if("string"===c.type||"enum | string"===c.type){const s="string"===c.type?[]:c.values,[a,l]=t({className:c.className,customProperties:c.customProperties,propValues:s,parseValue:c.parseValue,value:n});r=i(r,l),o=e(o,a);continue}if("boolean"===c.type&&n){o=e(o,c.className);continue}}}return u.className=e(o,l.className),u.style=i(r,l.style),u}export{l as extractProps};
1
+ import e from"classnames";import{getResponsiveClassNames as s,getResponsiveStyles as t}from"./get-responsive-styles.mjs";import{isResponsiveObject as a}from"./is-responsive-object.mjs";import{mergeStyles as i}from"./merge-styles.mjs";function l(l,...n){let o,r;const u={...l},c=function(...e){return Object.assign({},...e)}(...n);for(const l in c){let n=u[l];const m=c[l];if(void 0!==m.default&&void 0===n&&(n=m.default),"enum"===m.type&&![m.default,...m.values].includes(n)&&!a(n)&&(n=m.default),u[l]=n,"className"in m&&m.className){delete u[l];const c="responsive"in m;if(!n||a(n)&&!c)continue;if(a(n)&&(void 0!==m.default&&void 0===n.initial&&(n.initial=m.default),"enum"===m.type&&([m.default,...m.values].includes(n.initial)||(n.initial=m.default))),"enum"===m.type){const t=s({allowArbitraryValues:!1,value:n,className:m.className,propValues:m.values,parseValue:m.parseValue});o=e(o,t);continue}if("string"===m.type||"enum | string"===m.type){const s="string"===m.type?[]:m.values,[a,l]=t({className:m.className,customProperties:m.customProperties,propValues:s,parseValue:m.parseValue,value:n});r=i(r,l),o=e(o,a);continue}if("boolean"===m.type&&n){o=e(o,m.className);continue}}}return u.className=e(o,l.className),u.style=i(r,l.style),u}export{l as extractProps};
2
2
  //# sourceMappingURL=extract-props.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"extract-props.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js"],"sourcesContent":["import o from\"classnames\";import{getResponsiveClassNames as P,getResponsiveStyles as g}from\"./get-responsive-styles.js\";import{isResponsiveObject as p}from\"./is-responsive-object.js\";import{mergeStyles as c}from\"./merge-styles.js\";function N(...r){return Object.assign({},...r)}function v(r,...m){let t,l;const a={...r},f=N(...m);for(const n in f){let s=a[n];const e=f[n];if(e.default!==void 0&&s===void 0&&(s=e.default),e.type===\"enum\"&&![e.default,...e.values].includes(s)&&!p(s)&&(s=e.default),a[n]=s,\"className\"in e&&e.className){delete a[n];const u=\"responsive\"in e;if(!s||p(s)&&!u)continue;if(p(s)&&(e.default!==void 0&&s.initial===void 0&&(s.initial=e.default),e.type===\"enum\"&&([e.default,...e.values].includes(s.initial)||(s.initial=e.default))),e.type===\"enum\"){const i=P({allowArbitraryValues:!1,value:s,className:e.className,propValues:e.values,parseValue:e.parseValue});t=o(t,i);continue}if(e.type===\"string\"||e.type===\"enum | string\"){const i=e.type===\"string\"?[]:e.values,[d,y]=g({className:e.className,customProperties:e.customProperties,propValues:i,parseValue:e.parseValue,value:s});l=c(l,y),t=o(t,d);continue}if(e.type===\"boolean\"&&s){t=o(t,e.className);continue}}}return a.className=o(t,r.className),a.style=c(l,r.style),a}export{v as extractProps};\n//# sourceMappingURL=extract-props.js.map\n"],"names":["v","r","m","t","l","a","f","Object","assign","N","n","s","e","default","type","values","includes","p","className","u","initial","i","P","allowArbitraryValues","value","propValues","parseValue","o","d","y","g","customProperties","c","style"],"mappings":"oQAAsR,SAASA,EAAEC,KAAKC,GAAG,IAAIC,EAAEC,EAAE,MAAMC,EAAE,IAAIJ,GAAGK,EAAzF,YAAcL,GAAG,OAAOM,OAAOC,OAAO,MAAMP,EAAE,CAA6CQ,IAAKP,GAAG,IAAI,MAAMQ,KAAKJ,EAAE,CAAC,IAAIK,EAAEN,EAAEK,GAAG,MAAME,EAAEN,EAAEI,GAAG,QAAe,IAAZE,EAAEC,cAAsB,IAAJF,IAAaA,EAAEC,EAAEC,SAAkB,SAATD,EAAEE,OAAgB,CAACF,EAAEC,WAAWD,EAAEG,QAAQC,SAASL,KAAKM,EAAEN,KAAKA,EAAEC,EAAEC,SAASR,EAAEK,GAAGC,EAAE,cAAcC,GAAGA,EAAEM,UAAU,QAAQb,EAAEK,GAAG,MAAMS,EAAE,eAAeP,EAAE,IAAID,GAAGM,EAAEN,KAAKQ,EAAE,SAAS,GAAGF,EAAEN,UAAiB,IAAZC,EAAEC,cAA8B,IAAZF,EAAES,UAAmBT,EAAES,QAAQR,EAAEC,SAAkB,SAATD,EAAEE,OAAgB,CAACF,EAAEC,WAAWD,EAAEG,QAAQC,SAASL,EAAES,WAAWT,EAAES,QAAQR,EAAEC,WAAoB,SAATD,EAAEE,KAAc,CAAC,MAAMO,EAAEC,EAAE,CAACC,sBAAqB,EAAGC,MAAMb,EAAEO,UAAUN,EAAEM,UAAUO,WAAWb,EAAEG,OAAOW,WAAWd,EAAEc,aAAavB,EAAEwB,EAAExB,EAAEkB,GAAG,QAAQ,CAAC,GAAY,WAATT,EAAEE,MAA0B,kBAATF,EAAEE,KAAuB,CAAC,MAAMO,EAAW,WAATT,EAAEE,KAAgB,GAAGF,EAAEG,QAAQa,EAAEC,GAAGC,EAAE,CAACZ,UAAUN,EAAEM,UAAUa,iBAAiBnB,EAAEmB,iBAAiBN,WAAWJ,EAAEK,WAAWd,EAAEc,WAAWF,MAAMb,IAAIP,EAAE4B,EAAE5B,EAAEyB,GAAG1B,EAAEwB,EAAExB,EAAEyB,GAAG,QAAQ,CAAC,GAAY,YAAThB,EAAEE,MAAkBH,EAAE,CAACR,EAAEwB,EAAExB,EAAES,EAAEM,WAAW,QAAQ,CAAC,CAAC,CAAC,OAAOb,EAAEa,UAAUS,EAAExB,EAAEF,EAAEiB,WAAWb,EAAE4B,MAAMD,EAAE5B,EAAEH,EAAEgC,OAAO5B,CAAC"}
1
+ {"version":3,"file":"extract-props.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.js"],"sourcesContent":["import o from\"classnames\";import{getResponsiveClassNames as P,getResponsiveStyles as g}from\"./get-responsive-styles.js\";import{isResponsiveObject as p}from\"./is-responsive-object.js\";import{mergeStyles as c}from\"./merge-styles.js\";function N(...r){return Object.assign({},...r)}function v(r,...m){let t,l;const a={...r},f=N(...m);for(const n in f){let s=a[n];const e=f[n];if(e.default!==void 0&&s===void 0&&(s=e.default),e.type===\"enum\"&&![e.default,...e.values].includes(s)&&!p(s)&&(s=e.default),a[n]=s,\"className\"in e&&e.className){delete a[n];const u=\"responsive\"in e;if(!s||p(s)&&!u)continue;if(p(s)&&(e.default!==void 0&&s.initial===void 0&&(s.initial=e.default),e.type===\"enum\"&&([e.default,...e.values].includes(s.initial)||(s.initial=e.default))),e.type===\"enum\"){const i=P({allowArbitraryValues:!1,value:s,className:e.className,propValues:e.values,parseValue:e.parseValue});t=o(t,i);continue}if(e.type===\"string\"||e.type===\"enum | string\"){const i=e.type===\"string\"?[]:e.values,[d,y]=g({className:e.className,customProperties:e.customProperties,propValues:i,parseValue:e.parseValue,value:s});l=c(l,y),t=o(t,d);continue}if(e.type===\"boolean\"&&s){t=o(t,e.className);continue}}}return a.className=o(t,r.className),a.style=c(l,r.style),a}export{v as extractProps};\n//# sourceMappingURL=extract-props.js.map\n"],"names":["v","r","m","t","l","a","f","Object","assign","N","n","s","e","default","type","values","includes","p","className","u","initial","i","P","allowArbitraryValues","value","propValues","parseValue","o","d","y","g","customProperties","c","style"],"mappings":"0OAAsR,SAASA,EAAEC,KAAKC,GAAG,IAAIC,EAAEC,EAAE,MAAMC,EAAE,IAAIJ,GAAGK,EAAzF,YAAcL,GAAG,OAAOM,OAAOC,OAAO,MAAMP,EAAE,CAA6CQ,IAAKP,GAAG,IAAI,MAAMQ,KAAKJ,EAAE,CAAC,IAAIK,EAAEN,EAAEK,GAAG,MAAME,EAAEN,EAAEI,GAAG,QAAe,IAAZE,EAAEC,cAAsB,IAAJF,IAAaA,EAAEC,EAAEC,SAAkB,SAATD,EAAEE,OAAgB,CAACF,EAAEC,WAAWD,EAAEG,QAAQC,SAASL,KAAKM,EAAEN,KAAKA,EAAEC,EAAEC,SAASR,EAAEK,GAAGC,EAAE,cAAcC,GAAGA,EAAEM,UAAU,QAAQb,EAAEK,GAAG,MAAMS,EAAE,eAAeP,EAAE,IAAID,GAAGM,EAAEN,KAAKQ,EAAE,SAAS,GAAGF,EAAEN,UAAiB,IAAZC,EAAEC,cAA8B,IAAZF,EAAES,UAAmBT,EAAES,QAAQR,EAAEC,SAAkB,SAATD,EAAEE,OAAgB,CAACF,EAAEC,WAAWD,EAAEG,QAAQC,SAASL,EAAES,WAAWT,EAAES,QAAQR,EAAEC,WAAoB,SAATD,EAAEE,KAAc,CAAC,MAAMO,EAAEC,EAAE,CAACC,sBAAqB,EAAGC,MAAMb,EAAEO,UAAUN,EAAEM,UAAUO,WAAWb,EAAEG,OAAOW,WAAWd,EAAEc,aAAavB,EAAEwB,EAAExB,EAAEkB,GAAG,QAAQ,CAAC,GAAY,WAATT,EAAEE,MAA0B,kBAATF,EAAEE,KAAuB,CAAC,MAAMO,EAAW,WAATT,EAAEE,KAAgB,GAAGF,EAAEG,QAAQa,EAAEC,GAAGC,EAAE,CAACZ,UAAUN,EAAEM,UAAUa,iBAAiBnB,EAAEmB,iBAAiBN,WAAWJ,EAAEK,WAAWd,EAAEc,WAAWF,MAAMb,IAAIP,EAAE4B,EAAE5B,EAAEyB,GAAG1B,EAAEwB,EAAExB,EAAEyB,GAAG,QAAQ,CAAC,GAAY,YAAThB,EAAEE,MAAkBH,EAAE,CAACR,EAAEwB,EAAExB,EAAES,EAAEM,WAAW,QAAQ,CAAC,CAAC,CAAC,OAAOb,EAAEa,UAAUS,EAAExB,EAAEF,EAAEiB,WAAWb,EAAE4B,MAAMD,EAAE5B,EAAEH,EAAEgC,OAAO5B,CAAC"}
@@ -1,2 +1,2 @@
1
- import r from"../../../../../../_virtual/index.mjs";import{getResponsiveStyles as s}from"./get-responsive-styles.mjs";import{mergeStyles as e}from"./merge-styles.mjs";import{marginPropDefs as m}from"../props/margin.props.mjs";const t=m.m.values;function a(m){const[a,o]=s({className:"rt-r-m",customProperties:["--margin"],propValues:t,value:m.m}),[p,l]=s({className:"rt-r-mx",customProperties:["--margin-left","--margin-right"],propValues:t,value:m.mx}),[i,u]=s({className:"rt-r-my",customProperties:["--margin-top","--margin-bottom"],propValues:t,value:m.my}),[n,g]=s({className:"rt-r-mt",customProperties:["--margin-top"],propValues:t,value:m.mt}),[c,v]=s({className:"rt-r-mr",customProperties:["--margin-right"],propValues:t,value:m.mr}),[f,P]=s({className:"rt-r-mb",customProperties:["--margin-bottom"],propValues:t,value:m.mb}),[y,N]=s({className:"rt-r-ml",customProperties:["--margin-left"],propValues:t,value:m.ml});return[r(a,p,i,n,c,f,y),e(o,l,u,g,v,P,N)]}export{a as getMarginStyles};
1
+ import r from"classnames";import{getResponsiveStyles as s}from"./get-responsive-styles.mjs";import{mergeStyles as e}from"./merge-styles.mjs";import{marginPropDefs as m}from"../props/margin.props.mjs";const t=m.m.values;function a(m){const[a,o]=s({className:"rt-r-m",customProperties:["--margin"],propValues:t,value:m.m}),[p,l]=s({className:"rt-r-mx",customProperties:["--margin-left","--margin-right"],propValues:t,value:m.mx}),[i,u]=s({className:"rt-r-my",customProperties:["--margin-top","--margin-bottom"],propValues:t,value:m.my}),[n,g]=s({className:"rt-r-mt",customProperties:["--margin-top"],propValues:t,value:m.mt}),[c,v]=s({className:"rt-r-mr",customProperties:["--margin-right"],propValues:t,value:m.mr}),[f,P]=s({className:"rt-r-mb",customProperties:["--margin-bottom"],propValues:t,value:m.mb}),[y,N]=s({className:"rt-r-ml",customProperties:["--margin-left"],propValues:t,value:m.ml});return[r(a,p,i,n,c,f,y),e(o,l,u,g,v,P,N)]}export{a as getMarginStyles};
2
2
  //# sourceMappingURL=get-margin-styles.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-margin-styles.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js"],"sourcesContent":["import f from\"classnames\";import{getResponsiveStyles as m}from\"./get-responsive-styles.js\";import{mergeStyles as v}from\"./merge-styles.js\";import{marginPropDefs as y}from\"../props/margin.props.js\";const r=y.m.values;function S(s){const[e,t]=m({className:\"rt-r-m\",customProperties:[\"--margin\"],propValues:r,value:s.m}),[a,o]=m({className:\"rt-r-mx\",customProperties:[\"--margin-left\",\"--margin-right\"],propValues:r,value:s.mx}),[l,i]=m({className:\"rt-r-my\",customProperties:[\"--margin-top\",\"--margin-bottom\"],propValues:r,value:s.my}),[p,u]=m({className:\"rt-r-mt\",customProperties:[\"--margin-top\"],propValues:r,value:s.mt}),[n,c]=m({className:\"rt-r-mr\",customProperties:[\"--margin-right\"],propValues:r,value:s.mr}),[g,P]=m({className:\"rt-r-mb\",customProperties:[\"--margin-bottom\"],propValues:r,value:s.mb}),[N,C]=m({className:\"rt-r-ml\",customProperties:[\"--margin-left\"],propValues:r,value:s.ml});return[f(e,a,l,p,n,g,N),v(t,o,i,u,c,P,C)]}export{S as getMarginStyles};\n//# sourceMappingURL=get-margin-styles.js.map\n"],"names":["r","y","m","values","S","s","e","t","className","customProperties","propValues","value","a","o","mx","l","i","my","p","u","mt","n","c","mr","g","P","mb","N","C","ml","f","v"],"mappings":"kOAAqM,MAAMA,EAAEC,EAAEC,EAAEC,OAAO,SAASC,EAAEC,GAAG,MAAMC,EAAEC,GAAGL,EAAE,CAACM,UAAU,SAASC,iBAAiB,CAAC,YAAYC,WAAWV,EAAEW,MAAMN,EAAEH,KAAKU,EAAEC,GAAGX,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,gBAAgB,kBAAkBC,WAAWV,EAAEW,MAAMN,EAAES,MAAMC,EAAEC,GAAGd,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,eAAe,mBAAmBC,WAAWV,EAAEW,MAAMN,EAAEY,MAAMC,EAAEC,GAAGjB,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,gBAAgBC,WAAWV,EAAEW,MAAMN,EAAEe,MAAMC,EAAEC,GAAGpB,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,kBAAkBC,WAAWV,EAAEW,MAAMN,EAAEkB,MAAMC,EAAEC,GAAGvB,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,mBAAmBC,WAAWV,EAAEW,MAAMN,EAAEqB,MAAMC,EAAEC,GAAG1B,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,iBAAiBC,WAAWV,EAAEW,MAAMN,EAAEwB,KAAK,MAAM,CAACC,EAAExB,EAAEM,EAAEG,EAAEG,EAAEG,EAAEG,EAAEG,GAAGI,EAAExB,EAAEM,EAAEG,EAAEG,EAAEG,EAAEG,EAAEG,GAAG"}
1
+ {"version":3,"file":"get-margin-styles.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.js"],"sourcesContent":["import f from\"classnames\";import{getResponsiveStyles as m}from\"./get-responsive-styles.js\";import{mergeStyles as v}from\"./merge-styles.js\";import{marginPropDefs as y}from\"../props/margin.props.js\";const r=y.m.values;function S(s){const[e,t]=m({className:\"rt-r-m\",customProperties:[\"--margin\"],propValues:r,value:s.m}),[a,o]=m({className:\"rt-r-mx\",customProperties:[\"--margin-left\",\"--margin-right\"],propValues:r,value:s.mx}),[l,i]=m({className:\"rt-r-my\",customProperties:[\"--margin-top\",\"--margin-bottom\"],propValues:r,value:s.my}),[p,u]=m({className:\"rt-r-mt\",customProperties:[\"--margin-top\"],propValues:r,value:s.mt}),[n,c]=m({className:\"rt-r-mr\",customProperties:[\"--margin-right\"],propValues:r,value:s.mr}),[g,P]=m({className:\"rt-r-mb\",customProperties:[\"--margin-bottom\"],propValues:r,value:s.mb}),[N,C]=m({className:\"rt-r-ml\",customProperties:[\"--margin-left\"],propValues:r,value:s.ml});return[f(e,a,l,p,n,g,N),v(t,o,i,u,c,P,C)]}export{S as getMarginStyles};\n//# sourceMappingURL=get-margin-styles.js.map\n"],"names":["r","y","m","values","S","s","e","t","className","customProperties","propValues","value","a","o","mx","l","i","my","p","u","mt","n","c","mr","g","P","mb","N","C","ml","f","v"],"mappings":"wMAAqM,MAAMA,EAAEC,EAAEC,EAAEC,OAAO,SAASC,EAAEC,GAAG,MAAMC,EAAEC,GAAGL,EAAE,CAACM,UAAU,SAASC,iBAAiB,CAAC,YAAYC,WAAWV,EAAEW,MAAMN,EAAEH,KAAKU,EAAEC,GAAGX,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,gBAAgB,kBAAkBC,WAAWV,EAAEW,MAAMN,EAAES,MAAMC,EAAEC,GAAGd,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,eAAe,mBAAmBC,WAAWV,EAAEW,MAAMN,EAAEY,MAAMC,EAAEC,GAAGjB,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,gBAAgBC,WAAWV,EAAEW,MAAMN,EAAEe,MAAMC,EAAEC,GAAGpB,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,kBAAkBC,WAAWV,EAAEW,MAAMN,EAAEkB,MAAMC,EAAEC,GAAGvB,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,mBAAmBC,WAAWV,EAAEW,MAAMN,EAAEqB,MAAMC,EAAEC,GAAG1B,EAAE,CAACM,UAAU,UAAUC,iBAAiB,CAAC,iBAAiBC,WAAWV,EAAEW,MAAMN,EAAEwB,KAAK,MAAM,CAACC,EAAExB,EAAEM,EAAEG,EAAEG,EAAEG,EAAEG,EAAEG,GAAGI,EAAExB,EAAEM,EAAEG,EAAEG,EAAEG,EAAEG,EAAEG,GAAG"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import{composeEventHandlers as o}from"../../../../../primitive/dist/index.mjs";import{useComposedRefs as r}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as t}from"../../../../../react-context/dist/index.mjs";import{DismissableLayer as n}from"../../../../../react-dismissable-layer/dist/index.mjs";import{useFocusGuards as s}from"../../../../../react-focus-guards/dist/index.mjs";import{FocusScope as i}from"../../../../../react-focus-scope/dist/index.mjs";import{useId as a}from"../../../../../react-id/dist/index.mjs";import{createPopperScope as c,Anchor as p,Content as d,Arrow as u,Root as l}from"../../../../../react-popper/dist/index.mjs";import{Portal as f}from"../../../../../react-portal/dist/index.mjs";import{Presence as m}from"../../../../../react-presence/dist/index.mjs";import{Primitive as v}from"../../../../../react-primitive/dist/index.mjs";import{Slot as h}from"../../../../../react-slot/dist/index.mjs";import{useControllableState as x}from"../../../../../react-use-controllable-state/dist/index.mjs";import{hideOthers as g}from"../../../../../../aria-hidden/dist/es2015/index.mjs";import j from"../../../../../../react-remove-scroll/dist/es2015/Combination.mjs";import{j as P}from"../../../../../../../_virtual/jsx-runtime.mjs";var C="Popover",[O,_]=t(C,[c]),R=c(),[w,b]=O(C),A=o=>{const{__scopePopover:r,children:t,open:n,defaultOpen:s,onOpenChange:i,modal:c=!1}=o,p=R(r),d=e.useRef(null),[u,f]=e.useState(!1),[m=!1,v]=x({prop:n,defaultProp:s,onChange:i});return P.jsx(l,{...p,children:P.jsx(w,{scope:r,contentId:a(),triggerRef:d,open:m,onOpenChange:v,onOpenToggle:e.useCallback((()=>v((e=>!e))),[v]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback((()=>f(!0)),[]),onCustomAnchorRemove:e.useCallback((()=>f(!1)),[]),modal:c,children:t})})};A.displayName=C;var y="PopoverAnchor",F=e.forwardRef(((o,r)=>{const{__scopePopover:t,...n}=o,s=b(y,t),i=R(t),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=s;return e.useEffect((()=>(a(),()=>c())),[a,c]),P.jsx(p,{...i,...n,ref:r})}));F.displayName=y;var D="PopoverTrigger",E=e.forwardRef(((e,t)=>{const{__scopePopover:n,...s}=e,i=b(D,n),a=R(n),c=r(t,i.triggerRef),d=P.jsx(v.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":G(i.open),...s,ref:c,onClick:o(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?d:P.jsx(p,{asChild:!0,...a,children:d})}));E.displayName=D;var k="PopoverPortal",[I,N]=O(k,{forceMount:void 0}),M=e=>{const{__scopePopover:o,forceMount:r,children:t,container:n}=e,s=b(k,o);return P.jsx(I,{scope:o,forceMount:r,children:P.jsx(m,{present:r||s.open,children:P.jsx(f,{asChild:!0,container:n,children:t})})})};M.displayName=k;var K="PopoverContent",T=e.forwardRef(((e,o)=>{const r=N(K,e.__scopePopover),{forceMount:t=r.forceMount,...n}=e,s=b(K,e.__scopePopover);return P.jsx(m,{present:t||s.open,children:s.modal?P.jsx(S,{...n,ref:o}):P.jsx(U,{...n,ref:o})})}));T.displayName=K;var S=e.forwardRef(((t,n)=>{const s=b(K,t.__scopePopover),i=e.useRef(null),a=r(n,i),c=e.useRef(!1);return e.useEffect((()=>{const e=i.current;if(e)return g(e)}),[]),P.jsx(j,{as:h,allowPinchZoom:!0,children:P.jsx(Z,{...t,ref:a,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:o(t.onCloseAutoFocus,(e=>{e.preventDefault(),c.current||s.triggerRef.current?.focus()})),onPointerDownOutside:o(t.onPointerDownOutside,(e=>{const o=e.detail.originalEvent,r=0===o.button&&!0===o.ctrlKey,t=2===o.button||r;c.current=t}),{checkForDefaultPrevented:!1}),onFocusOutside:o(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),U=e.forwardRef(((o,r)=>{const t=b(K,o.__scopePopover),n=e.useRef(!1),s=e.useRef(!1);return P.jsx(Z,{...o,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{o.onCloseAutoFocus?.(e),e.defaultPrevented||(n.current||t.triggerRef.current?.focus(),e.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:e=>{o.onInteractOutside?.(e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(s.current=!0));const r=e.target,i=t.triggerRef.current?.contains(r);i&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&s.current&&e.preventDefault()}})})),Z=e.forwardRef(((e,o)=>{const{__scopePopover:r,trapFocus:t,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:p,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:m,...v}=e,h=b(K,r),x=R(r);return s(),P.jsx(i,{asChild:!0,loop:!0,trapped:t,onMountAutoFocus:a,onUnmountAutoFocus:c,children:P.jsx(n,{asChild:!0,disableOutsidePointerEvents:p,onInteractOutside:m,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1),children:P.jsx(d,{"data-state":G(h.open),role:"dialog",id:h.contentId,...x,...v,ref:o,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),q="PopoverClose",z=e.forwardRef(((e,r)=>{const{__scopePopover:t,...n}=e,s=b(q,t);return P.jsx(v.button,{type:"button",...n,ref:r,onClick:o(e.onClick,(()=>s.onOpenChange(!1)))})}));z.displayName=q;var B=e.forwardRef(((e,o)=>{const{__scopePopover:r,...t}=e,n=R(r);return P.jsx(u,{...n,...t,ref:o})}));function G(e){return e?"open":"closed"}B.displayName="PopoverArrow";var H=A,J=E,L=M,Q=T,V=z;export{V as Close,Q as Content,A as Popover,F as PopoverAnchor,B as PopoverArrow,z as PopoverClose,T as PopoverContent,M as PopoverPortal,E as PopoverTrigger,L as Portal,H as Root,J as Trigger,_ as createPopoverScope};
1
+ import*as e from"react";import{composeEventHandlers as o}from"../../../../../primitive/dist/index.mjs";import{useComposedRefs as r}from"../../../../../react-compose-refs/dist/index.mjs";import{createContextScope as t}from"../../../../../react-context/dist/index.mjs";import{DismissableLayer as n}from"../../../../../react-dismissable-layer/dist/index.mjs";import{useFocusGuards as s}from"../../../../../react-focus-guards/dist/index.mjs";import{FocusScope as i}from"../../../../../react-focus-scope/dist/index.mjs";import{useId as a}from"../../../../../react-id/dist/index.mjs";import{createPopperScope as c,Anchor as p,Content as d,Arrow as u,Root as l}from"../../../../../react-popper/dist/index.mjs";import{Portal as f}from"../../../../../react-portal/dist/index.mjs";import{Presence as m}from"../../../../../react-presence/dist/index.mjs";import{Primitive as v}from"../../../../../react-primitive/dist/index.mjs";import{Slot as h}from"../../../../../react-slot/dist/index.mjs";import{useControllableState as x}from"../../../../../react-use-controllable-state/dist/index.mjs";import{hideOthers as g}from"aria-hidden";import{RemoveScroll as j}from"react-remove-scroll";import{j as P}from"../../../../../../../_virtual/jsx-runtime.mjs";var C="Popover",[O,_]=t(C,[c]),R=c(),[w,b]=O(C),A=o=>{const{__scopePopover:r,children:t,open:n,defaultOpen:s,onOpenChange:i,modal:c=!1}=o,p=R(r),d=e.useRef(null),[u,f]=e.useState(!1),[m=!1,v]=x({prop:n,defaultProp:s,onChange:i});return P.jsx(l,{...p,children:P.jsx(w,{scope:r,contentId:a(),triggerRef:d,open:m,onOpenChange:v,onOpenToggle:e.useCallback((()=>v((e=>!e))),[v]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback((()=>f(!0)),[]),onCustomAnchorRemove:e.useCallback((()=>f(!1)),[]),modal:c,children:t})})};A.displayName=C;var y="PopoverAnchor",F=e.forwardRef(((o,r)=>{const{__scopePopover:t,...n}=o,s=b(y,t),i=R(t),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=s;return e.useEffect((()=>(a(),()=>c())),[a,c]),P.jsx(p,{...i,...n,ref:r})}));F.displayName=y;var D="PopoverTrigger",E=e.forwardRef(((e,t)=>{const{__scopePopover:n,...s}=e,i=b(D,n),a=R(n),c=r(t,i.triggerRef),d=P.jsx(v.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":G(i.open),...s,ref:c,onClick:o(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?d:P.jsx(p,{asChild:!0,...a,children:d})}));E.displayName=D;var k="PopoverPortal",[I,N]=O(k,{forceMount:void 0}),M=e=>{const{__scopePopover:o,forceMount:r,children:t,container:n}=e,s=b(k,o);return P.jsx(I,{scope:o,forceMount:r,children:P.jsx(m,{present:r||s.open,children:P.jsx(f,{asChild:!0,container:n,children:t})})})};M.displayName=k;var K="PopoverContent",T=e.forwardRef(((e,o)=>{const r=N(K,e.__scopePopover),{forceMount:t=r.forceMount,...n}=e,s=b(K,e.__scopePopover);return P.jsx(m,{present:t||s.open,children:s.modal?P.jsx(S,{...n,ref:o}):P.jsx(U,{...n,ref:o})})}));T.displayName=K;var S=e.forwardRef(((t,n)=>{const s=b(K,t.__scopePopover),i=e.useRef(null),a=r(n,i),c=e.useRef(!1);return e.useEffect((()=>{const e=i.current;if(e)return g(e)}),[]),P.jsx(j,{as:h,allowPinchZoom:!0,children:P.jsx(Z,{...t,ref:a,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:o(t.onCloseAutoFocus,(e=>{e.preventDefault(),c.current||s.triggerRef.current?.focus()})),onPointerDownOutside:o(t.onPointerDownOutside,(e=>{const o=e.detail.originalEvent,r=0===o.button&&!0===o.ctrlKey,t=2===o.button||r;c.current=t}),{checkForDefaultPrevented:!1}),onFocusOutside:o(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),U=e.forwardRef(((o,r)=>{const t=b(K,o.__scopePopover),n=e.useRef(!1),s=e.useRef(!1);return P.jsx(Z,{...o,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{o.onCloseAutoFocus?.(e),e.defaultPrevented||(n.current||t.triggerRef.current?.focus(),e.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:e=>{o.onInteractOutside?.(e),e.defaultPrevented||(n.current=!0,"pointerdown"===e.detail.originalEvent.type&&(s.current=!0));const r=e.target,i=t.triggerRef.current?.contains(r);i&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&s.current&&e.preventDefault()}})})),Z=e.forwardRef(((e,o)=>{const{__scopePopover:r,trapFocus:t,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:p,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:m,...v}=e,h=b(K,r),x=R(r);return s(),P.jsx(i,{asChild:!0,loop:!0,trapped:t,onMountAutoFocus:a,onUnmountAutoFocus:c,children:P.jsx(n,{asChild:!0,disableOutsidePointerEvents:p,onInteractOutside:m,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1),children:P.jsx(d,{"data-state":G(h.open),role:"dialog",id:h.contentId,...x,...v,ref:o,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),q="PopoverClose",z=e.forwardRef(((e,r)=>{const{__scopePopover:t,...n}=e,s=b(q,t);return P.jsx(v.button,{type:"button",...n,ref:r,onClick:o(e.onClick,(()=>s.onOpenChange(!1)))})}));z.displayName=q;var B=e.forwardRef(((e,o)=>{const{__scopePopover:r,...t}=e,n=R(r);return P.jsx(u,{...n,...t,ref:o})}));function G(e){return e?"open":"closed"}B.displayName="PopoverArrow";var H=A,J=E,L=M,Q=T,V=z;export{V as Close,Q as Content,A as Popover,F as PopoverAnchor,B as PopoverArrow,z as PopoverClose,T as PopoverContent,M as PopoverPortal,E as PopoverTrigger,L as Portal,H as Root,J as Trigger,_ as createPopoverScope};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popover/src/Popover.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar POPOVER_NAME = \"Popover\";\nvar [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);\nvar Popover = (props) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n PopoverProvider,\n {\n scope: __scopePopover,\n contentId: useId(),\n triggerRef,\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n hasCustomAnchor,\n onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),\n onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),\n modal,\n children\n }\n ) });\n};\nPopover.displayName = POPOVER_NAME;\nvar ANCHOR_NAME = \"PopoverAnchor\";\nvar PopoverAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nPopoverAnchor.displayName = ANCHOR_NAME;\nvar TRIGGER_NAME = \"PopoverTrigger\";\nvar PopoverTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n const trigger = /* @__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 return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });\n }\n);\nPopoverTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"PopoverPortal\";\nvar [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar PopoverPortal = (props) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nPopoverPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"PopoverContent\";\nvar PopoverContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nPopoverContent.displayName = CONTENT_NAME;\nvar PopoverContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(\n props.onPointerDownOutside,\n (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\n ),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nvar PopoverContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n PopoverContentImpl,\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 PopoverContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n useFocusGuards();\n return /* @__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 asChild: true,\n disableOutsidePointerEvents,\n onInteractOutside,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n \"data-state\": getState(context.open),\n role: \"dialog\",\n id: context.contentId,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-popover-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-popover-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-popover-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-popover-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-popover-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n )\n }\n )\n }\n );\n }\n);\nvar CLOSE_NAME = \"PopoverClose\";\nvar PopoverClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\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);\nPopoverClose.displayName = CLOSE_NAME;\nvar ARROW_NAME = \"PopoverArrow\";\nvar PopoverArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nPopoverArrow.displayName = ARROW_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Popover;\nvar Anchor2 = PopoverAnchor;\nvar Trigger = PopoverTrigger;\nvar Portal = PopoverPortal;\nvar Content2 = PopoverContent;\nvar Close = PopoverClose;\nvar Arrow2 = PopoverArrow;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n Close,\n Content2 as Content,\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverClose,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n Portal,\n Root2 as Root,\n Trigger,\n createPopoverScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPOVER_NAME","createPopoverContext","createPopoverScope","createContextScope","createPopperScope","usePopperScope","PopoverProvider","usePopoverContext","Popover","props","__scopePopover","children","open","openProp","defaultOpen","onOpenChange","modal","popperScope","triggerRef","React","useRef","hasCustomAnchor","setHasCustomAnchor","useState","setOpen","useControllableState","prop","defaultProp","onChange","jsx","PopperPrimitive.Root","scope","contentId","useId","onOpenToggle","useCallback","prevOpen","onCustomAnchorAdd","onCustomAnchorRemove","displayName","ANCHOR_NAME","PopoverAnchor","forwardRef","forwardedRef","anchorProps","context","useEffect","PopperPrimitive.Anchor","ref","TRIGGER_NAME","PopoverTrigger","triggerProps","composedTriggerRef","useComposedRefs","trigger","Primitive","button","type","getState","onClick","composeEventHandlers","asChild","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","PopoverPortal","container","Presence","present","PortalPrimitive","CONTENT_NAME","PopoverContent","portalContext","contentProps","PopoverContentModal","PopoverContentNonModal","contentRef","composedRefs","isRightClickOutsideRef","content","current","hideOthers","RemoveScroll","as","Slot","allowPinchZoom","PopoverContentImpl","trapFocus","disableOutsidePointerEvents","onCloseAutoFocus","event","preventDefault","focus","onPointerDownOutside","originalEvent","detail","ctrlLeftClick","ctrlKey","isRightClick","checkForDefaultPrevented","onFocusOutside","hasInteractedOutsideRef","hasPointerDownOutsideRef","defaultPrevented","onInteractOutside","target","targetIsTrigger","contains","onOpenAutoFocus","onEscapeKeyDown","useFocusGuards","FocusScope","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","DismissableLayer","onDismiss","PopperPrimitive.Content","role","id","style","CLOSE_NAME","PopoverClose","closeProps","PopoverArrow","arrowProps","PopperPrimitive.Arrow","Root2","Trigger","Portal","Content2","Close"],"mappings":"2xCAqBA,IAAIA,EAAe,WACdC,EAAsBC,GAAsBC,EAAmBH,EAAc,CAChFI,IAEEC,EAAiBD,KAChBE,EAAiBC,GAAqBN,EAAqBD,GAC5DQ,EAAWC,IACb,MAAMC,eACJA,EAAcC,SACdA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,aACXA,EAAYC,MACZA,GAAQ,GACNP,EACEQ,EAAcZ,EAAeK,GAC7BQ,EAAaC,EAAMC,OAAO,OACzBC,EAAiBC,GAAsBH,EAAMI,UAAS,IACtDX,GAAO,EAAOY,GAAWC,EAAqB,CACnDC,KAAMb,EACNc,YAAab,EACbc,SAAUb,IAEZ,OAAuBc,EAAGA,IAACC,EAAsB,IAAKb,EAAaN,SAA0BkB,EAAGA,IAC9FvB,EACA,CACEyB,MAAOrB,EACPsB,UAAWC,IACXf,aACAN,OACAG,aAAcS,EACdU,aAAcf,EAAMgB,aAAY,IAAMX,GAASY,IAAcA,KAAW,CAACZ,IACzEH,kBACAgB,kBAAmBlB,EAAMgB,aAAY,IAAMb,GAAmB,IAAO,IACrEgB,qBAAsBnB,EAAMgB,aAAY,IAAMb,GAAmB,IAAQ,IACzEN,QACAL,cAEA,EAENH,EAAQ+B,YAAcvC,EACtB,IAAIwC,EAAc,gBACdC,EAAgBtB,EAAMuB,YACxB,CAACjC,EAAOkC,KACN,MAAMjC,eAAEA,KAAmBkC,GAAgBnC,EACrCoC,EAAUtC,EAAkBiC,EAAa9B,GACzCO,EAAcZ,EAAeK,IAC7B2B,kBAAEA,EAAiBC,qBAAEA,GAAyBO,EAKpD,OAJA1B,EAAM2B,WAAU,KACdT,IACO,IAAMC,MACZ,CAACD,EAAmBC,IACAT,EAAGA,IAACkB,EAAwB,IAAK9B,KAAgB2B,EAAaI,IAAKL,GAAe,IAG7GF,EAAcF,YAAcC,EAC5B,IAAIS,EAAe,iBACfC,E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d,2CAA4C,uCAC5C,0CAA2C,sCAC3C,2CAA4C,uCAC5C,gCAAiC,mCACjC,iCAAkC,0CAQjD,IAGDC,EAAa,eACbC,EAAezG,EAAMuB,YACvB,CAACjC,EAAOkC,KACN,MAAMjC,eAAEA,KAAmBmH,GAAepH,EACpCoC,EAAUtC,EAAkBoH,EAAYjH,GAC9C,OAAuBmB,EAAGA,IACxB0B,EAAUC,OACV,CACEC,KAAM,YACHoE,EACH7E,IAAKL,EACLgB,QAASC,EAAqBnD,EAAMkD,SAAS,IAAMd,EAAQ9B,cAAa,MAE3E,IAGL6G,EAAarF,YAAcoF,EAC3B,IACIG,EAAe3G,EAAMuB,YACvB,CAACjC,EAAOkC,KACN,MAAMjC,eAAEA,KAAmBqH,GAAetH,EACpCQ,EAAcZ,EAAeK,GACnC,OAAuBmB,EAAGA,IAACmG,EAAuB,IAAK/G,KAAgB8G,EAAY/E,IAAKL,GAAe,IAI3G,SAASe,EAAS9C,GAChB,OAAOA,EAAO,OAAS,QACzB,CAHAkH,EAAavF,YARI,eAYd,IAAC0F,EAAQzH,EAER0H,EAAUhF,EACViF,EAASjE,EACTkE,EAAW5D,EACX6D,EAAQT"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../../../node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popover/src/Popover.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar POPOVER_NAME = \"Popover\";\nvar [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME);\nvar Popover = (props) => {\n const {\n __scopePopover,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = false\n } = props;\n const popperScope = usePopperScope(__scopePopover);\n const triggerRef = React.useRef(null);\n const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n PopoverProvider,\n {\n scope: __scopePopover,\n contentId: useId(),\n triggerRef,\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n hasCustomAnchor,\n onCustomAnchorAdd: React.useCallback(() => setHasCustomAnchor(true), []),\n onCustomAnchorRemove: React.useCallback(() => setHasCustomAnchor(false), []),\n modal,\n children\n }\n ) });\n};\nPopover.displayName = POPOVER_NAME;\nvar ANCHOR_NAME = \"PopoverAnchor\";\nvar PopoverAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...anchorProps } = props;\n const context = usePopoverContext(ANCHOR_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const { onCustomAnchorAdd, onCustomAnchorRemove } = context;\n React.useEffect(() => {\n onCustomAnchorAdd();\n return () => onCustomAnchorRemove();\n }, [onCustomAnchorAdd, onCustomAnchorRemove]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nPopoverAnchor.displayName = ANCHOR_NAME;\nvar TRIGGER_NAME = \"PopoverTrigger\";\nvar PopoverTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...triggerProps } = props;\n const context = usePopoverContext(TRIGGER_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n const trigger = /* @__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 return context.hasCustomAnchor ? trigger : /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });\n }\n);\nPopoverTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"PopoverPortal\";\nvar [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar PopoverPortal = (props) => {\n const { __scopePopover, forceMount, children, container } = props;\n const context = usePopoverContext(PORTAL_NAME, __scopePopover);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nPopoverPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"PopoverContent\";\nvar PopoverContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nPopoverContent.displayName = CONTENT_NAME;\nvar PopoverContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const isRightClickOutsideRef = React.useRef(false);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n PopoverContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n if (!isRightClickOutsideRef.current) context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(\n props.onPointerDownOutside,\n (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n isRightClickOutsideRef.current = isRightClick;\n },\n { checkForDefaultPrevented: false }\n ),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nvar PopoverContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n PopoverContentImpl,\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 PopoverContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopover,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n ...contentProps\n } = props;\n const context = usePopoverContext(CONTENT_NAME, __scopePopover);\n const popperScope = usePopperScope(__scopePopover);\n useFocusGuards();\n return /* @__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 asChild: true,\n disableOutsidePointerEvents,\n onInteractOutside,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n \"data-state\": getState(context.open),\n role: \"dialog\",\n id: context.contentId,\n ...popperScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n ...contentProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-popover-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-popover-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-popover-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-popover-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-popover-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n )\n }\n )\n }\n );\n }\n);\nvar CLOSE_NAME = \"PopoverClose\";\nvar PopoverClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...closeProps } = props;\n const context = usePopoverContext(CLOSE_NAME, __scopePopover);\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);\nPopoverClose.displayName = CLOSE_NAME;\nvar ARROW_NAME = \"PopoverArrow\";\nvar PopoverArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopover, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopePopover);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nPopoverArrow.displayName = ARROW_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Popover;\nvar Anchor2 = PopoverAnchor;\nvar Trigger = PopoverTrigger;\nvar Portal = PopoverPortal;\nvar Content2 = PopoverContent;\nvar Close = PopoverClose;\nvar Arrow2 = PopoverArrow;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n Close,\n Content2 as Content,\n Popover,\n PopoverAnchor,\n PopoverArrow,\n PopoverClose,\n PopoverContent,\n PopoverPortal,\n PopoverTrigger,\n Portal,\n Root2 as Root,\n Trigger,\n createPopoverScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPOVER_NAME","createPopoverContext","createPopoverScope","createContextScope","createPopperScope","usePopperScope","PopoverProvider","usePopoverContext","Popover","props","__scopePopover","children","open","openProp","defaultOpen","onOpenChange","modal","popperScope","triggerRef","React","useRef","hasCustomAnchor","setHasCustomAnchor","useState","setOpen","useControllableState","prop","defaultProp","onChange","jsx","PopperPrimitive.Root","scope","contentId","useId","onOpenToggle","useCallback","prevOpen","onCustomAnchorAdd","onCustomAnchorRemove","displayName","ANCHOR_NAME","PopoverAnchor","forwardRef","forwardedRef","anchorProps","context","useEffect","PopperPrimitive.Anchor","ref","TRIGGER_NAME","PopoverTrigger","triggerProps","composedTriggerRef","useComposedRefs","trigger","Primitive","button","type","getState","onClick","composeEventHandlers","asChild","PORTAL_NAME","PortalProvider","usePortalContext","forceMount","PopoverPortal","container","Presence","present","PortalPrimitive","CONTENT_NAME","PopoverContent","portalContext","contentProps","PopoverContentModal","PopoverContentNonModal","contentRef","composedRefs","isRightClickOutsideRef","content","current","hideOthers","RemoveScroll","as","Slot","allowPinchZoom","PopoverContentImpl","trapFocus","disableOutsidePointerEvents","onCloseAutoFocus","event","preventDefault","focus","onPointerDownOutside","originalEvent","detail","ctrlLeftClick","ctrlKey","isRightClick","checkForDefaultPrevented","onFocusOutside","hasInteractedOutsideRef","hasPointerDownOutsideRef","defaultPrevented","onInteractOutside","target","targetIsTrigger","contains","onOpenAutoFocus","onEscapeKeyDown","useFocusGuards","FocusScope","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","DismissableLayer","onDismiss","PopperPrimitive.Content","role","id","style","CLOSE_NAME","PopoverClose","closeProps","PopoverArrow","arrowProps","PopperPrimitive.Arrow","Root2","Trigger","Portal","Content2","Close"],"mappings":"qtCAqBA,IAAIA,EAAe,WACdC,EAAsBC,GAAsBC,EAAmBH,EAAc,CAChFI,IAEEC,EAAiBD,KAChBE,EAAiBC,GAAqBN,EAAqBD,GAC5DQ,EAAWC,IACb,MAAMC,eACJA,EAAcC,SACdA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,aACXA,EAAYC,MACZA,GAAQ,GACNP,EACEQ,EAAcZ,EAAeK,GAC7BQ,EAAaC,EAAMC,OAAO,OACzBC,EAAiBC,GAAsBH,EAAMI,UAAS,IACtDX,GAAO,EAAOY,GAAWC,EAAqB,CACnDC,KA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