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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1462) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +2 -0
  2. package/dist/_virtual/_commonjsHelpers.mjs.map +1 -0
  3. package/dist/_virtual/index.mjs +2 -0
  4. package/dist/_virtual/index.mjs.map +1 -0
  5. package/dist/_virtual/index2.mjs +2 -0
  6. package/dist/_virtual/index2.mjs.map +1 -0
  7. package/dist/_virtual/jsx-runtime.mjs +2 -0
  8. package/dist/_virtual/jsx-runtime.mjs.map +1 -0
  9. package/dist/_virtual/jsx-runtime2.mjs +2 -0
  10. package/dist/_virtual/jsx-runtime2.mjs.map +1 -0
  11. package/dist/_virtual/react-jsx-runtime.development.mjs +2 -0
  12. package/dist/_virtual/react-jsx-runtime.development.mjs.map +1 -0
  13. package/dist/_virtual/react-jsx-runtime.production.min.mjs +2 -0
  14. package/dist/_virtual/react-jsx-runtime.production.min.mjs.map +1 -0
  15. package/dist/globals.css +1 -1
  16. package/dist/lib/Typography/Header/index.d.ts +13 -0
  17. package/dist/lib/Typography/Header/index.js +55 -0
  18. package/dist/lib/Typography/Header/index.mjs +2 -0
  19. package/dist/lib/Typography/Header/index.mjs.map +1 -0
  20. package/dist/lib/Typography/Text/index.d.ts +15 -0
  21. package/dist/lib/Typography/Text/index.js +44 -0
  22. package/dist/lib/Typography/Text/index.mjs +2 -0
  23. package/dist/lib/Typography/Text/index.mjs.map +1 -0
  24. package/dist/lib/color/alpha.mjs +2 -0
  25. package/dist/lib/color/alpha.mjs.map +1 -0
  26. package/dist/lib/color/constants.mjs +2 -0
  27. package/dist/lib/color/constants.mjs.map +1 -0
  28. package/dist/lib/color/light.mjs +2 -0
  29. package/dist/lib/color/light.mjs.map +1 -0
  30. package/dist/lib/components/Accordion/index.d.ts +22 -0
  31. package/dist/lib/components/Accordion/index.js +64 -0
  32. package/dist/lib/components/Accordion/index.mjs +2 -0
  33. package/dist/lib/components/Accordion/index.mjs.map +1 -0
  34. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +14 -0
  35. package/dist/lib/components/AlertDialog/AlertDialogAction.js +61 -0
  36. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +2 -0
  37. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -0
  38. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +13 -0
  39. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +60 -0
  40. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +2 -0
  41. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -0
  42. package/dist/lib/components/AlertDialog/AlertDialogContent.js +51 -0
  43. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +2 -0
  44. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -0
  45. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +47 -0
  46. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +2 -0
  47. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -0
  48. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +16 -0
  49. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +2 -0
  50. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -0
  51. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +47 -0
  52. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +2 -0
  53. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -0
  54. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +17 -0
  55. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +55 -0
  56. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +2 -0
  57. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -0
  58. package/dist/lib/components/AlertDialog/index.mjs +2 -0
  59. package/dist/lib/components/AlertDialog/index.mjs.map +1 -0
  60. package/dist/lib/components/AspectRatio/index.js +42 -0
  61. package/dist/lib/components/AspectRatio/index.mjs +2 -0
  62. package/dist/lib/components/AspectRatio/index.mjs.map +1 -0
  63. package/dist/lib/components/Avatar/index.js +58 -0
  64. package/dist/lib/components/Avatar/index.mjs +2 -0
  65. package/dist/lib/components/Avatar/index.mjs.map +1 -0
  66. package/dist/lib/components/Badge/index.d.ts +18 -0
  67. package/dist/lib/components/Badge/index.js +54 -0
  68. package/dist/lib/components/Badge/index.mjs +2 -0
  69. package/dist/lib/components/Badge/index.mjs.map +1 -0
  70. package/dist/lib/components/BarChart/index.d.ts +37 -0
  71. package/dist/lib/components/BarChart/index.js +63 -0
  72. package/dist/lib/components/BarChart/index.mjs +2 -0
  73. package/dist/lib/components/BarChart/index.mjs.map +1 -0
  74. package/dist/lib/components/BubbleChart/index.d.ts +28 -0
  75. package/dist/lib/components/BubbleChart/index.js +73 -0
  76. package/dist/lib/components/BubbleChart/index.mjs +2 -0
  77. package/dist/lib/components/BubbleChart/index.mjs.map +1 -0
  78. package/dist/lib/components/Button/index.d.ts +16 -0
  79. package/dist/lib/components/Button/index.js +56 -0
  80. package/dist/lib/components/Button/index.mjs +2 -0
  81. package/dist/lib/components/Button/index.mjs.map +1 -0
  82. package/dist/lib/components/Callout/CalloutIcon.js +57 -0
  83. package/dist/lib/components/Callout/CalloutIcon.mjs +2 -0
  84. package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -0
  85. package/dist/lib/components/Callout/CalloutRoot.d.ts +18 -0
  86. package/dist/lib/components/Callout/CalloutRoot.js +72 -0
  87. package/dist/lib/components/Callout/CalloutRoot.mjs +2 -0
  88. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -0
  89. package/dist/lib/components/Callout/CalloutText.js +52 -0
  90. package/dist/lib/components/Callout/CalloutText.mjs +2 -0
  91. package/dist/lib/components/Callout/CalloutText.mjs.map +1 -0
  92. package/dist/lib/components/Callout/index.mjs +2 -0
  93. package/dist/lib/components/Callout/index.mjs.map +1 -0
  94. package/dist/lib/components/Card/index.d.ts +14 -0
  95. package/dist/lib/components/Card/index.js +64 -0
  96. package/dist/lib/components/Card/index.mjs +2 -0
  97. package/dist/lib/components/Card/index.mjs.map +1 -0
  98. package/dist/lib/components/Checkbox/index.d.ts +17 -0
  99. package/dist/lib/components/Checkbox/index.js +89 -0
  100. package/dist/lib/components/Checkbox/index.mjs +2 -0
  101. package/dist/lib/components/Checkbox/index.mjs.map +1 -0
  102. package/dist/lib/components/CheckboxCard/index.d.ts +20 -0
  103. package/dist/lib/components/CheckboxCard/index.js +58 -0
  104. package/dist/lib/components/CheckboxCard/index.mjs +2 -0
  105. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -0
  106. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +5 -0
  107. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +33 -0
  108. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +2 -0
  109. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -0
  110. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +17 -0
  111. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +34 -0
  112. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +2 -0
  113. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -0
  114. package/dist/lib/components/CheckboxGroup/index.d.ts +6 -0
  115. package/dist/lib/components/CheckboxGroup/index.mjs +2 -0
  116. package/dist/lib/components/CheckboxGroup/index.mjs.map +1 -0
  117. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +42 -0
  118. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +2 -0
  119. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -0
  120. package/dist/lib/components/ContextMenu/ContextMenuContent.js +56 -0
  121. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +2 -0
  122. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -0
  123. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs +2 -0
  124. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -0
  125. package/dist/lib/components/ContextMenu/ContextMenuItem.js +59 -0
  126. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +2 -0
  127. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -0
  128. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +50 -0
  129. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +2 -0
  130. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -0
  131. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +48 -0
  132. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +2 -0
  133. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -0
  134. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +2 -0
  135. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -0
  136. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +44 -0
  137. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +2 -0
  138. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -0
  139. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +13 -0
  140. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +2 -0
  141. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -0
  142. package/dist/lib/components/ContextMenu/ContextMenuSeparator.js +31 -0
  143. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +2 -0
  144. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -0
  145. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +54 -0
  146. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +2 -0
  147. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -0
  148. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +40 -0
  149. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +2 -0
  150. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -0
  151. package/dist/lib/components/ContextMenu/ContextMenuTrigger.js +31 -0
  152. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +2 -0
  153. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -0
  154. package/dist/lib/components/ContextMenu/index.mjs +2 -0
  155. package/dist/lib/components/ContextMenu/index.mjs.map +1 -0
  156. package/dist/lib/components/DataList/DataListItem.js +43 -0
  157. package/dist/lib/components/DataList/DataListItem.mjs +2 -0
  158. package/dist/lib/components/DataList/DataListItem.mjs.map +1 -0
  159. package/dist/lib/components/DataList/DataListLabel.js +49 -0
  160. package/dist/lib/components/DataList/DataListLabel.mjs +2 -0
  161. package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -0
  162. package/dist/lib/components/DataList/DataListRoot.js +54 -0
  163. package/dist/lib/components/DataList/DataListRoot.mjs +2 -0
  164. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -0
  165. package/dist/lib/components/DataList/DataListValue.js +51 -0
  166. package/dist/lib/components/DataList/DataListValue.mjs +2 -0
  167. package/dist/lib/components/DataList/DataListValue.mjs.map +1 -0
  168. package/dist/lib/components/DataList/index.mjs +2 -0
  169. package/dist/lib/components/DataList/index.mjs.map +1 -0
  170. package/dist/lib/components/Dialog/DialogAction.d.ts +11 -0
  171. package/dist/lib/components/Dialog/DialogAction.js +59 -0
  172. package/dist/lib/components/Dialog/DialogAction.mjs +2 -0
  173. package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -0
  174. package/dist/lib/components/Dialog/DialogCancel.d.ts +10 -0
  175. package/dist/lib/components/Dialog/DialogCancel.js +55 -0
  176. package/dist/lib/components/Dialog/DialogCancel.mjs +2 -0
  177. package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -0
  178. package/dist/lib/components/Dialog/DialogContent.js +57 -0
  179. package/dist/lib/components/Dialog/DialogContent.mjs +2 -0
  180. package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -0
  181. package/dist/lib/components/Dialog/DialogDescription.js +47 -0
  182. package/dist/lib/components/Dialog/DialogDescription.mjs +2 -0
  183. package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -0
  184. package/dist/lib/components/Dialog/DialogRoot.mjs +2 -0
  185. package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -0
  186. package/dist/lib/components/Dialog/DialogSlot.d.ts +8 -0
  187. package/dist/lib/components/Dialog/DialogSlot.js +46 -0
  188. package/dist/lib/components/Dialog/DialogSlot.mjs +2 -0
  189. package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -0
  190. package/dist/lib/components/Dialog/DialogTitle.d.ts +9 -0
  191. package/dist/lib/components/Dialog/DialogTitle.js +47 -0
  192. package/dist/lib/components/Dialog/DialogTitle.mjs +2 -0
  193. package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -0
  194. package/dist/lib/components/Dialog/DialogTrigger.mjs +2 -0
  195. package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -0
  196. package/dist/lib/components/Dialog/index.mjs +2 -0
  197. package/dist/lib/components/Dialog/index.mjs.map +1 -0
  198. package/dist/lib/components/DoughnutChart/index.d.ts +22 -0
  199. package/dist/lib/components/DoughnutChart/index.js +65 -0
  200. package/dist/lib/components/DoughnutChart/index.mjs +2 -0
  201. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -0
  202. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs +2 -0
  203. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -0
  204. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +60 -0
  205. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +2 -0
  206. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -0
  207. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +41 -0
  208. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +2 -0
  209. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -0
  210. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +56 -0
  211. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +2 -0
  212. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -0
  213. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +15 -0
  214. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +58 -0
  215. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +2 -0
  216. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -0
  217. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +48 -0
  218. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +2 -0
  219. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -0
  220. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +45 -0
  221. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +2 -0
  222. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -0
  223. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +41 -0
  224. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +2 -0
  225. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -0
  226. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +15 -0
  227. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +2 -0
  228. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -0
  229. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.js +31 -0
  230. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +2 -0
  231. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -0
  232. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs +2 -0
  233. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -0
  234. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +40 -0
  235. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +2 -0
  236. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -0
  237. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +14 -0
  238. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +53 -0
  239. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +2 -0
  240. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -0
  241. package/dist/lib/components/DropdownMenu/index.mjs +2 -0
  242. package/dist/lib/components/DropdownMenu/index.mjs.map +1 -0
  243. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +13 -0
  244. package/dist/lib/components/HoverCard/HoverCardContent.js +61 -0
  245. package/dist/lib/components/HoverCard/HoverCardContent.mjs +2 -0
  246. package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -0
  247. package/dist/lib/components/HoverCard/HoverCardRoot.mjs +2 -0
  248. package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -0
  249. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs +2 -0
  250. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -0
  251. package/dist/lib/components/HoverCard/index.d.ts +10 -0
  252. package/dist/lib/components/HoverCard/index.mjs +2 -0
  253. package/dist/lib/components/HoverCard/index.mjs.map +1 -0
  254. package/dist/lib/components/IconButton/index.d.ts +15 -0
  255. package/dist/lib/components/IconButton/index.js +63 -0
  256. package/dist/lib/components/IconButton/index.mjs +2 -0
  257. package/dist/lib/components/IconButton/index.mjs.map +1 -0
  258. package/dist/lib/components/Inset/index.js +50 -0
  259. package/dist/lib/components/Inset/index.mjs +2 -0
  260. package/dist/lib/components/Inset/index.mjs.map +1 -0
  261. package/dist/lib/components/Label/index.d.ts +17 -0
  262. package/dist/lib/components/Label/index.js +53 -0
  263. package/dist/lib/components/Label/index.mjs +2 -0
  264. package/dist/lib/components/Label/index.mjs.map +1 -0
  265. package/dist/lib/components/LineChart/index.d.ts +43 -0
  266. package/dist/lib/components/LineChart/index.js +61 -0
  267. package/dist/lib/components/LineChart/index.mjs +2 -0
  268. package/dist/lib/components/LineChart/index.mjs.map +1 -0
  269. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +38 -0
  270. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +2 -0
  271. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -0
  272. package/dist/lib/components/Menubar/MenubarContent.js +60 -0
  273. package/dist/lib/components/Menubar/MenubarContent.mjs +2 -0
  274. package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -0
  275. package/dist/lib/components/Menubar/MenubarItem.js +54 -0
  276. package/dist/lib/components/Menubar/MenubarItem.mjs +2 -0
  277. package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -0
  278. package/dist/lib/components/Menubar/MenubarItemIndicator.js +49 -0
  279. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +2 -0
  280. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -0
  281. package/dist/lib/components/Menubar/MenubarMenu.mjs +2 -0
  282. package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -0
  283. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +2 -0
  284. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -0
  285. package/dist/lib/components/Menubar/MenubarRadioItem.js +40 -0
  286. package/dist/lib/components/Menubar/MenubarRadioItem.mjs +2 -0
  287. package/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -0
  288. package/dist/lib/components/Menubar/MenubarRoot.d.ts +19 -0
  289. package/dist/lib/components/Menubar/MenubarRoot.js +61 -0
  290. package/dist/lib/components/Menubar/MenubarRoot.mjs +2 -0
  291. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -0
  292. package/dist/lib/components/Menubar/MenubarSeparator.js +31 -0
  293. package/dist/lib/components/Menubar/MenubarSeparator.mjs +2 -0
  294. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -0
  295. package/dist/lib/components/Menubar/MenubarSub.mjs +2 -0
  296. package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -0
  297. package/dist/lib/components/Menubar/MenubarSubContent.js +51 -0
  298. package/dist/lib/components/Menubar/MenubarSubContent.mjs +2 -0
  299. package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -0
  300. package/dist/lib/components/Menubar/MenubarSubTrigger.js +41 -0
  301. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs +2 -0
  302. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -0
  303. package/dist/lib/components/Menubar/MenubarTrigger.js +57 -0
  304. package/dist/lib/components/Menubar/MenubarTrigger.mjs +2 -0
  305. package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -0
  306. package/dist/lib/components/Menubar/index.mjs +2 -0
  307. package/dist/lib/components/Menubar/index.mjs.map +1 -0
  308. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +48 -0
  309. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +2 -0
  310. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -0
  311. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +31 -0
  312. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +2 -0
  313. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -0
  314. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs +2 -0
  315. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -0
  316. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +51 -0
  317. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +2 -0
  318. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -0
  319. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +47 -0
  320. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +2 -0
  321. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -0
  322. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +14 -0
  323. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +43 -0
  324. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +2 -0
  325. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -0
  326. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +58 -0
  327. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +2 -0
  328. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -0
  329. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +53 -0
  330. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +2 -0
  331. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -0
  332. package/dist/lib/components/NavigationMenu/index.mjs +2 -0
  333. package/dist/lib/components/NavigationMenu/index.mjs.map +1 -0
  334. package/dist/lib/components/PieChart/index.d.ts +22 -0
  335. package/dist/lib/components/PieChart/index.js +65 -0
  336. package/dist/lib/components/PieChart/index.mjs +2 -0
  337. package/dist/lib/components/PieChart/index.mjs.map +1 -0
  338. package/dist/lib/components/Popover/PopoverClose.js +48 -0
  339. package/dist/lib/components/Popover/PopoverClose.mjs +2 -0
  340. package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -0
  341. package/dist/lib/components/Popover/PopoverContent.d.ts +13 -0
  342. package/dist/lib/components/Popover/PopoverContent.js +65 -0
  343. package/dist/lib/components/Popover/PopoverContent.mjs +2 -0
  344. package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -0
  345. package/dist/lib/components/Popover/PopoverRoot.mjs +2 -0
  346. package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -0
  347. package/dist/lib/components/Popover/PopoverTrigger.mjs +2 -0
  348. package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -0
  349. package/dist/lib/components/Popover/index.mjs +2 -0
  350. package/dist/lib/components/Popover/index.mjs.map +1 -0
  351. package/dist/lib/components/Progress/index.d.ts +13 -0
  352. package/dist/lib/components/Progress/index.js +56 -0
  353. package/dist/lib/components/Progress/index.mjs +2 -0
  354. package/dist/lib/components/Progress/index.mjs.map +1 -0
  355. package/dist/lib/components/RadarChart/index.d.ts +32 -0
  356. package/dist/lib/components/RadarChart/index.js +76 -0
  357. package/dist/lib/components/RadarChart/index.mjs +2 -0
  358. package/dist/lib/components/RadarChart/index.mjs.map +1 -0
  359. package/dist/lib/components/Radio/index.d.ts +13 -0
  360. package/dist/lib/components/Radio/index.js +53 -0
  361. package/dist/lib/components/Radio/index.mjs +2 -0
  362. package/dist/lib/components/Radio/index.mjs.map +1 -0
  363. package/dist/lib/components/RadioCards/RadioCardsItem.js +54 -0
  364. package/dist/lib/components/RadioCards/RadioCardsItem.mjs +2 -0
  365. package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -0
  366. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +13 -0
  367. package/dist/lib/components/RadioCards/RadioCardsRoot.js +46 -0
  368. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +2 -0
  369. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -0
  370. package/dist/lib/components/RadioCards/index.d.ts +6 -0
  371. package/dist/lib/components/RadioCards/index.mjs +2 -0
  372. package/dist/lib/components/RadioCards/index.mjs.map +1 -0
  373. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +12 -0
  374. package/dist/lib/components/RadioGroup/RadioGroupItem.js +46 -0
  375. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +2 -0
  376. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -0
  377. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +15 -0
  378. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +53 -0
  379. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +2 -0
  380. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -0
  381. package/dist/lib/components/RadioGroup/index.d.ts +6 -0
  382. package/dist/lib/components/RadioGroup/index.mjs +2 -0
  383. package/dist/lib/components/RadioGroup/index.mjs.map +1 -0
  384. package/dist/lib/components/ScrollArea/index.d.ts +9 -0
  385. package/dist/lib/components/ScrollArea/index.mjs +2 -0
  386. package/dist/lib/components/ScrollArea/index.mjs.map +1 -0
  387. package/dist/lib/components/SegmentedControl/SegmentedControlItem.js +35 -0
  388. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs +2 -0
  389. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -0
  390. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +14 -0
  391. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +47 -0
  392. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +2 -0
  393. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -0
  394. package/dist/lib/components/SegmentedControl/index.d.ts +6 -0
  395. package/dist/lib/components/SegmentedControl/index.mjs +2 -0
  396. package/dist/lib/components/SegmentedControl/index.mjs.map +1 -0
  397. package/dist/lib/components/Select/index.d.ts +34 -0
  398. package/dist/lib/components/Select/index.js +92 -0
  399. package/dist/lib/components/Select/index.mjs +2 -0
  400. package/dist/lib/components/Select/index.mjs.map +1 -0
  401. package/dist/lib/components/Separator/index.js +47 -0
  402. package/dist/lib/components/Separator/index.mjs +2 -0
  403. package/dist/lib/components/Separator/index.mjs.map +1 -0
  404. package/dist/lib/components/Skeleton/index.d.ts +14 -0
  405. package/dist/lib/components/Skeleton/index.js +42 -0
  406. package/dist/lib/components/Skeleton/index.mjs +2 -0
  407. package/dist/lib/components/Skeleton/index.mjs.map +1 -0
  408. package/dist/lib/components/Slider/index.d.ts +14 -0
  409. package/dist/lib/components/Slider/index.js +49 -0
  410. package/dist/lib/components/Slider/index.mjs +2 -0
  411. package/dist/lib/components/Slider/index.mjs.map +1 -0
  412. package/dist/lib/components/Spinner/index.d.ts +15 -0
  413. package/dist/lib/components/Spinner/index.js +47 -0
  414. package/dist/lib/components/Spinner/index.mjs +2 -0
  415. package/dist/lib/components/Spinner/index.mjs.map +1 -0
  416. package/dist/lib/components/TabNav/index.js +50 -0
  417. package/dist/lib/components/TabNav/index.mjs +2 -0
  418. package/dist/lib/components/TabNav/index.mjs.map +1 -0
  419. package/dist/lib/components/Table/index.d.ts +30 -0
  420. package/dist/lib/components/Table/index.js +98 -0
  421. package/dist/lib/components/Table/index.mjs +2 -0
  422. package/dist/lib/components/Table/index.mjs.map +1 -0
  423. package/dist/lib/components/Tabs/index.js +65 -0
  424. package/dist/lib/components/Tabs/index.mjs +2 -0
  425. package/dist/lib/components/Tabs/index.mjs.map +1 -0
  426. package/dist/lib/components/TextArea/index.d.ts +16 -0
  427. package/dist/lib/components/TextArea/index.js +58 -0
  428. package/dist/lib/components/TextArea/index.mjs +2 -0
  429. package/dist/lib/components/TextArea/index.mjs.map +1 -0
  430. package/dist/lib/components/TextField/index.d.ts +21 -0
  431. package/dist/lib/components/TextField/index.js +56 -0
  432. package/dist/lib/components/TextField/index.mjs +2 -0
  433. package/dist/lib/components/TextField/index.mjs.map +1 -0
  434. package/dist/lib/components/Toast/ToastActionButton.d.ts +14 -0
  435. package/dist/lib/components/Toast/ToastActionButton.js +67 -0
  436. package/dist/lib/components/Toast/ToastActionButton.mjs +2 -0
  437. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -0
  438. package/dist/lib/components/Toast/ToastDescription.d.ts +13 -0
  439. package/dist/lib/components/Toast/ToastDescription.js +53 -0
  440. package/dist/lib/components/Toast/ToastDescription.mjs +2 -0
  441. package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -0
  442. package/dist/lib/components/Toast/ToastRoot.js +90 -0
  443. package/dist/lib/components/Toast/ToastRoot.mjs +2 -0
  444. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -0
  445. package/dist/lib/components/Toast/ToastTitle.d.ts +13 -0
  446. package/dist/lib/components/Toast/ToastTitle.js +53 -0
  447. package/dist/lib/components/Toast/ToastTitle.mjs +2 -0
  448. package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -0
  449. package/dist/lib/components/Toast/index.mjs +2 -0
  450. package/dist/lib/components/Toast/index.mjs.map +1 -0
  451. package/dist/lib/components/Toggle/ToggleWithText.d.ts +21 -0
  452. package/dist/lib/components/Toggle/ToggleWithText.js +58 -0
  453. package/dist/lib/components/Toggle/ToggleWithText.mjs +2 -0
  454. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -0
  455. package/dist/lib/components/Toggle/index.d.ts +21 -0
  456. package/dist/lib/components/Toggle/index.js +58 -0
  457. package/dist/lib/components/Toggle/index.mjs +2 -0
  458. package/dist/lib/components/Toggle/index.mjs.map +1 -0
  459. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +17 -0
  460. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +54 -0
  461. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +2 -0
  462. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -0
  463. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +15 -0
  464. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +48 -0
  465. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +2 -0
  466. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -0
  467. package/dist/lib/components/ToggleGroup/index.mjs +2 -0
  468. package/dist/lib/components/ToggleGroup/index.mjs.map +1 -0
  469. package/dist/lib/components/ToggleSwitch/index.js +71 -0
  470. package/dist/lib/components/ToggleSwitch/index.mjs +2 -0
  471. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -0
  472. package/dist/lib/components/Tooltip/index.d.ts +19 -0
  473. package/dist/lib/components/Tooltip/index.js +49 -0
  474. package/dist/lib/components/Tooltip/index.mjs +2 -0
  475. package/dist/lib/components/Tooltip/index.mjs.map +1 -0
  476. package/dist/lib/constants.js +914 -0
  477. package/dist/lib/constants.mjs +2 -0
  478. package/dist/lib/constants.mjs.map +1 -0
  479. package/dist/lib/index.mjs +2 -0
  480. package/dist/lib/index.mjs.map +1 -0
  481. package/dist/lib/utils/useDarkMode.js +49 -0
  482. package/dist/lib/utils/useDarkMode.mjs +2 -0
  483. package/dist/lib/utils/useDarkMode.mjs.map +1 -0
  484. package/dist/lib/utils/utils.mjs +2 -0
  485. package/dist/lib/utils/utils.mjs.map +1 -0
  486. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +2 -0
  487. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.map +1 -0
  488. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +2 -0
  489. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.map +1 -0
  490. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +2 -0
  491. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs.map +1 -0
  492. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +2 -0
  493. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.map +1 -0
  494. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +2 -0
  495. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.map +1 -0
  496. package/dist/node_modules/@kurkle/color/dist/color.esm.mjs +8 -0
  497. package/dist/node_modules/@kurkle/color/dist/color.esm.mjs.map +1 -0
  498. package/dist/node_modules/@radix-ui/number/dist/index.mjs +2 -0
  499. package/dist/node_modules/@radix-ui/number/dist/index.mjs.map +1 -0
  500. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs +2 -0
  501. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.map +1 -0
  502. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs +2 -0
  503. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +1 -0
  504. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs +2 -0
  505. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.map +1 -0
  506. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs +2 -0
  507. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +1 -0
  508. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs +2 -0
  509. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.map +1 -0
  510. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs +2 -0
  511. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.map +1 -0
  512. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs +2 -0
  513. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -0
  514. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs +2 -0
  515. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +1 -0
  516. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs +2 -0
  517. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.map +1 -0
  518. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +2 -0
  519. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +1 -0
  520. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  521. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  522. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs +2 -0
  523. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.map +1 -0
  524. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
  525. package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
  526. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs +2 -0
  527. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.map +1 -0
  528. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
  529. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
  530. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +2 -0
  531. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +1 -0
  532. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
  533. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
  534. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +2 -0
  535. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +1 -0
  536. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs +2 -0
  537. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +1 -0
  538. package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +2 -0
  539. package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs.map +1 -0
  540. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs +2 -0
  541. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.map +1 -0
  542. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs +2 -0
  543. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.map +1 -0
  544. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +2 -0
  545. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -0
  546. package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs +2 -0
  547. package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.map +1 -0
  548. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +2 -0
  549. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -0
  550. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs +2 -0
  551. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.map +1 -0
  552. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
  553. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
  554. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  555. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  556. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs +2 -0
  557. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +1 -0
  558. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs +2 -0
  559. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.map +1 -0
  560. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs +2 -0
  561. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +1 -0
  562. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +2 -0
  563. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +1 -0
  564. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs +2 -0
  565. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.map +1 -0
  566. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +2 -0
  567. package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -0
  568. package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs +2 -0
  569. package/dist/node_modules/@radix-ui/react-slider/dist/index.mjs.map +1 -0
  570. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs +2 -0
  571. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.map +1 -0
  572. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs +2 -0
  573. package/dist/node_modules/@radix-ui/react-switch/dist/index.mjs.map +1 -0
  574. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs +2 -0
  575. package/dist/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +1 -0
  576. package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs +2 -0
  577. package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.map +1 -0
  578. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs +2 -0
  579. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.map +1 -0
  580. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +2 -0
  581. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.map +1 -0
  582. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs +2 -0
  583. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -0
  584. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +2 -0
  585. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +1 -0
  586. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +2 -0
  587. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +1 -0
  588. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +2 -0
  589. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +1 -0
  590. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +2 -0
  591. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +1 -0
  592. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs +2 -0
  593. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.map +1 -0
  594. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs +2 -0
  595. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +1 -0
  596. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -0
  597. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +1 -0
  598. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs +2 -0
  599. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs.map +1 -0
  600. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs +2 -0
  601. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs.map +1 -0
  602. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs +2 -0
  603. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs.map +1 -0
  604. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +2 -0
  605. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +1 -0
  606. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs +2 -0
  607. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs.map +1 -0
  608. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +2 -0
  609. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -0
  610. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs +2 -0
  611. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs.map +1 -0
  612. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs +2 -0
  613. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs.map +1 -0
  614. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +2 -0
  615. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +1 -0
  616. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs +2 -0
  617. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs.map +1 -0
  618. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +2 -0
  619. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -0
  620. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs +2 -0
  621. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs.map +1 -0
  622. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +2 -0
  623. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +1 -0
  624. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs +2 -0
  625. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs.map +1 -0
  626. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +2 -0
  627. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +1 -0
  628. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs +2 -0
  629. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs.map +1 -0
  630. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +2 -0
  631. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +1 -0
  632. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs +2 -0
  633. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs.map +1 -0
  634. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +2 -0
  635. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -0
  636. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs +2 -0
  637. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs.map +1 -0
  638. package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs +2 -0
  639. package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs.map +1 -0
  640. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +2 -0
  641. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +1 -0
  642. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs +2 -0
  643. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs.map +1 -0
  644. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +2 -0
  645. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -0
  646. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs +2 -0
  647. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs.map +1 -0
  648. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +2 -0
  649. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +1 -0
  650. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs +2 -0
  651. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs.map +1 -0
  652. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +2 -0
  653. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -0
  654. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs +2 -0
  655. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs.map +1 -0
  656. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +2 -0
  657. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -0
  658. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs +2 -0
  659. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs.map +1 -0
  660. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +2 -0
  661. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +1 -0
  662. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +2 -0
  663. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +1 -0
  664. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs +2 -0
  665. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs.map +1 -0
  666. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +2 -0
  667. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +1 -0
  668. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs +2 -0
  669. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs.map +1 -0
  670. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +2 -0
  671. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -0
  672. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs +2 -0
  673. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs.map +1 -0
  674. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +2 -0
  675. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +1 -0
  676. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs +2 -0
  677. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs.map +1 -0
  678. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +2 -0
  679. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +1 -0
  680. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs +2 -0
  681. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs.map +1 -0
  682. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +2 -0
  683. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -0
  684. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs +2 -0
  685. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs.map +1 -0
  686. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +2 -0
  687. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +1 -0
  688. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs +2 -0
  689. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs.map +1 -0
  690. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +2 -0
  691. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -0
  692. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs +2 -0
  693. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs.map +1 -0
  694. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +2 -0
  695. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -0
  696. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +2 -0
  697. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +1 -0
  698. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs +2 -0
  699. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs.map +1 -0
  700. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +2 -0
  701. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -0
  702. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +2 -0
  703. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +1 -0
  704. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs +2 -0
  705. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs.map +1 -0
  706. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +2 -0
  707. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +1 -0
  708. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs +2 -0
  709. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs.map +1 -0
  710. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +2 -0
  711. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +1 -0
  712. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs +2 -0
  713. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs.map +1 -0
  714. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +2 -0
  715. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -0
  716. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs +2 -0
  717. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs.map +1 -0
  718. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs +2 -0
  719. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs.map +1 -0
  720. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +2 -0
  721. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +1 -0
  722. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +2 -0
  723. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +1 -0
  724. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs +2 -0
  725. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs.map +1 -0
  726. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs +2 -0
  727. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs.map +1 -0
  728. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs +2 -0
  729. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs.map +1 -0
  730. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs +2 -0
  731. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs.map +1 -0
  732. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs +2 -0
  733. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs.map +1 -0
  734. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs +2 -0
  735. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs.map +1 -0
  736. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs +2 -0
  737. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs.map +1 -0
  738. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs +2 -0
  739. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs.map +1 -0
  740. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs +2 -0
  741. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs.map +1 -0
  742. package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs +2 -0
  743. package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs.map +1 -0
  744. package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs +2 -0
  745. package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs.map +1 -0
  746. package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs +2 -0
  747. package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs.map +1 -0
  748. package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs +2 -0
  749. package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs.map +1 -0
  750. package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs +2 -0
  751. package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs.map +1 -0
  752. package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs +2 -0
  753. package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs.map +1 -0
  754. package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs +2 -0
  755. package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs.map +1 -0
  756. package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs +2 -0
  757. package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs.map +1 -0
  758. package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs +2 -0
  759. package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs.map +1 -0
  760. package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs +2 -0
  761. package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs.map +1 -0
  762. package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs +2 -0
  763. package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs.map +1 -0
  764. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs +2 -0
  765. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs.map +1 -0
  766. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs +2 -0
  767. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs.map +1 -0
  768. package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs +2 -0
  769. package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs.map +1 -0
  770. package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs +2 -0
  771. package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs.map +1 -0
  772. package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs +2 -0
  773. package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs.map +1 -0
  774. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +2 -0
  775. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -0
  776. package/dist/node_modules/aria-hidden/dist/es2015/index.mjs +2 -0
  777. package/dist/node_modules/aria-hidden/dist/es2015/index.mjs.map +1 -0
  778. package/dist/node_modules/chart.js/auto/auto.mjs +2 -0
  779. package/dist/node_modules/chart.js/auto/auto.mjs.map +1 -0
  780. package/dist/node_modules/chart.js/dist/chart.mjs +8 -0
  781. package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -0
  782. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs +8 -0
  783. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs.map +1 -0
  784. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +8 -0
  785. package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs.map +1 -0
  786. package/dist/node_modules/class-variance-authority/dist/index.mjs +2 -0
  787. package/dist/node_modules/class-variance-authority/dist/index.mjs.map +1 -0
  788. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs +2 -0
  789. package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.map +1 -0
  790. package/dist/node_modules/classnames/index.mjs +7 -0
  791. package/dist/node_modules/classnames/index.mjs.map +1 -0
  792. package/dist/node_modules/clsx/dist/clsx.mjs +2 -0
  793. package/dist/node_modules/clsx/dist/clsx.mjs.map +1 -0
  794. package/dist/node_modules/get-nonce/dist/es2015/index.mjs +2 -0
  795. package/dist/node_modules/get-nonce/dist/es2015/index.mjs.map +1 -0
  796. package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs +11 -0
  797. package/dist/node_modules/react/cjs/react-jsx-runtime.development.mjs.map +1 -0
  798. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +11 -0
  799. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.mjs.map +1 -0
  800. package/dist/node_modules/react/jsx-runtime.mjs +2 -0
  801. package/dist/node_modules/react/jsx-runtime.mjs.map +1 -0
  802. package/dist/node_modules/react-chartjs-2/dist/index.mjs +2 -0
  803. package/dist/node_modules/react-chartjs-2/dist/index.mjs.map +1 -0
  804. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +2 -0
  805. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs.map +1 -0
  806. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +2 -0
  807. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs.map +1 -0
  808. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs +2 -0
  809. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs.map +1 -0
  810. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +2 -0
  811. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs.map +1 -0
  812. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +2 -0
  813. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs.map +1 -0
  814. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs +2 -0
  815. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs.map +1 -0
  816. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +2 -0
  817. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs.map +1 -0
  818. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +2 -0
  819. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs.map +1 -0
  820. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +2 -0
  821. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs.map +1 -0
  822. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +2 -0
  823. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs.map +1 -0
  824. package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs +2 -0
  825. package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs.map +1 -0
  826. package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs +2 -0
  827. package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs.map +1 -0
  828. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs +2 -0
  829. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs.map +1 -0
  830. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs +2 -0
  831. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.map +1 -0
  832. package/dist/node_modules/tslib/tslib.es6.mjs +2 -0
  833. package/dist/node_modules/tslib/tslib.es6.mjs.map +1 -0
  834. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +2 -0
  835. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs.map +1 -0
  836. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +2 -0
  837. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs.map +1 -0
  838. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs +2 -0
  839. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs.map +1 -0
  840. package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs +2 -0
  841. package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs.map +1 -0
  842. package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs +2 -0
  843. package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs.map +1 -0
  844. package/dist/tailwind.config.js +2 -5
  845. package/dist/tsconfig.tsbuildinfo +1 -0
  846. package/package.json +20 -26
  847. package/dist/cjs/lib/Typography/Header/index.d.ts +0 -13
  848. package/dist/cjs/lib/Typography/Header/index.js +0 -61
  849. package/dist/cjs/lib/Typography/Text/index.d.ts +0 -15
  850. package/dist/cjs/lib/Typography/Text/index.js +0 -47
  851. package/dist/cjs/lib/Typography/index.js +0 -10
  852. package/dist/cjs/lib/color/alpha.js +0 -788
  853. package/dist/cjs/lib/color/constants.js +0 -299
  854. package/dist/cjs/lib/color/dark.js +0 -395
  855. package/dist/cjs/lib/color/krdsColors.js +0 -312
  856. package/dist/cjs/lib/color/light.js +0 -396
  857. package/dist/cjs/lib/components/Accordion/index.d.ts +0 -22
  858. package/dist/cjs/lib/components/Accordion/index.js +0 -93
  859. package/dist/cjs/lib/components/AlertDialog/AlertDialogAction.d.ts +0 -14
  860. package/dist/cjs/lib/components/AlertDialog/AlertDialogAction.js +0 -87
  861. package/dist/cjs/lib/components/AlertDialog/AlertDialogCancel.d.ts +0 -13
  862. package/dist/cjs/lib/components/AlertDialog/AlertDialogCancel.js +0 -86
  863. package/dist/cjs/lib/components/AlertDialog/AlertDialogContent.js +0 -77
  864. package/dist/cjs/lib/components/AlertDialog/AlertDialogDescription.js +0 -73
  865. package/dist/cjs/lib/components/AlertDialog/AlertDialogRoot.d.ts +0 -16
  866. package/dist/cjs/lib/components/AlertDialog/AlertDialogRoot.js +0 -73
  867. package/dist/cjs/lib/components/AlertDialog/AlertDialogTitle.js +0 -73
  868. package/dist/cjs/lib/components/AlertDialog/AlertDialogTrigger.d.ts +0 -17
  869. package/dist/cjs/lib/components/AlertDialog/AlertDialogTrigger.js +0 -81
  870. package/dist/cjs/lib/components/AlertDialog/index.js +0 -19
  871. package/dist/cjs/lib/components/AspectRatio/index.js +0 -68
  872. package/dist/cjs/lib/components/Avatar/index.js +0 -83
  873. package/dist/cjs/lib/components/Badge/index.d.ts +0 -18
  874. package/dist/cjs/lib/components/Badge/index.js +0 -56
  875. package/dist/cjs/lib/components/BarChart/index.d.ts +0 -37
  876. package/dist/cjs/lib/components/BarChart/index.js +0 -65
  877. package/dist/cjs/lib/components/BubbleChart/index.d.ts +0 -28
  878. package/dist/cjs/lib/components/BubbleChart/index.js +0 -80
  879. package/dist/cjs/lib/components/Button/index.d.ts +0 -16
  880. package/dist/cjs/lib/components/Button/index.js +0 -59
  881. package/dist/cjs/lib/components/Callout/CalloutIcon.js +0 -60
  882. package/dist/cjs/lib/components/Callout/CalloutRoot.d.ts +0 -18
  883. package/dist/cjs/lib/components/Callout/CalloutRoot.js +0 -76
  884. package/dist/cjs/lib/components/Callout/CalloutText.js +0 -55
  885. package/dist/cjs/lib/components/Callout/index.js +0 -11
  886. package/dist/cjs/lib/components/Card/index.d.ts +0 -14
  887. package/dist/cjs/lib/components/Card/index.js +0 -66
  888. package/dist/cjs/lib/components/Checkbox/index.d.ts +0 -17
  889. package/dist/cjs/lib/components/Checkbox/index.js +0 -115
  890. package/dist/cjs/lib/components/CheckboxCard/index.d.ts +0 -20
  891. package/dist/cjs/lib/components/CheckboxCard/index.js +0 -64
  892. package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +0 -5
  893. package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupItem.js +0 -39
  894. package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +0 -17
  895. package/dist/cjs/lib/components/CheckboxGroup/CheckboxGroupRoot.js +0 -61
  896. package/dist/cjs/lib/components/CheckboxGroup/index.d.ts +0 -6
  897. package/dist/cjs/lib/components/CheckboxGroup/index.js +0 -6
  898. package/dist/cjs/lib/components/ContextMenu/ContextMenuCheckboxItem.js +0 -68
  899. package/dist/cjs/lib/components/ContextMenu/ContextMenuContent.js +0 -82
  900. package/dist/cjs/lib/components/ContextMenu/ContextMenuGroup.js +0 -56
  901. package/dist/cjs/lib/components/ContextMenu/ContextMenuItem.js +0 -85
  902. package/dist/cjs/lib/components/ContextMenu/ContextMenuItemIndicator.js +0 -76
  903. package/dist/cjs/lib/components/ContextMenu/ContextMenuLabel.js +0 -74
  904. package/dist/cjs/lib/components/ContextMenu/ContextMenuRadioGroup.js +0 -57
  905. package/dist/cjs/lib/components/ContextMenu/ContextMenuRadioItem.js +0 -70
  906. package/dist/cjs/lib/components/ContextMenu/ContextMenuRoot.d.ts +0 -13
  907. package/dist/cjs/lib/components/ContextMenu/ContextMenuRoot.js +0 -69
  908. package/dist/cjs/lib/components/ContextMenu/ContextMenuSeparator.js +0 -57
  909. package/dist/cjs/lib/components/ContextMenu/ContextMenuSubContent.js +0 -80
  910. package/dist/cjs/lib/components/ContextMenu/ContextMenuSubTrigger.js +0 -66
  911. package/dist/cjs/lib/components/ContextMenu/ContextMenuTrigger.js +0 -57
  912. package/dist/cjs/lib/components/ContextMenu/index.js +0 -31
  913. package/dist/cjs/lib/components/DataList/DataListItem.js +0 -46
  914. package/dist/cjs/lib/components/DataList/DataListLabel.js +0 -52
  915. package/dist/cjs/lib/components/DataList/DataListRoot.js +0 -58
  916. package/dist/cjs/lib/components/DataList/DataListValue.js +0 -54
  917. package/dist/cjs/lib/components/DataList/index.js +0 -8
  918. package/dist/cjs/lib/components/Dialog/DialogAction.d.ts +0 -13
  919. package/dist/cjs/lib/components/Dialog/DialogAction.js +0 -62
  920. package/dist/cjs/lib/components/Dialog/DialogCancel.d.ts +0 -11
  921. package/dist/cjs/lib/components/Dialog/DialogCancel.js +0 -58
  922. package/dist/cjs/lib/components/Dialog/DialogContent.js +0 -60
  923. package/dist/cjs/lib/components/Dialog/DialogDescription.js +0 -50
  924. package/dist/cjs/lib/components/Dialog/DialogRoot.js +0 -41
  925. package/dist/cjs/lib/components/Dialog/DialogSlot.d.ts +0 -9
  926. package/dist/cjs/lib/components/Dialog/DialogSlot.js +0 -49
  927. package/dist/cjs/lib/components/Dialog/DialogTitle.d.ts +0 -11
  928. package/dist/cjs/lib/components/Dialog/DialogTitle.js +0 -50
  929. package/dist/cjs/lib/components/Dialog/DialogTrigger.js +0 -33
  930. package/dist/cjs/lib/components/Dialog/index.js +0 -21
  931. package/dist/cjs/lib/components/DoughnutChart/index.d.ts +0 -22
  932. package/dist/cjs/lib/components/DoughnutChart/index.js +0 -70
  933. package/dist/cjs/lib/components/DropdownMenu/DropdonMenuRadioGroup.js +0 -56
  934. package/dist/cjs/lib/components/DropdownMenu/DropdonMenuSubContent.js +0 -86
  935. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +0 -67
  936. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuContent.js +0 -82
  937. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuItem.d.ts +0 -15
  938. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuItem.js +0 -84
  939. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +0 -74
  940. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuLable.js +0 -71
  941. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuRadioItem.js +0 -67
  942. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +0 -15
  943. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuRoot.js +0 -65
  944. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuSeparator.js +0 -57
  945. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuSub.js +0 -56
  946. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +0 -66
  947. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +0 -14
  948. package/dist/cjs/lib/components/DropdownMenu/DropdownMenuTrigger.js +0 -79
  949. package/dist/cjs/lib/components/DropdownMenu/index.js +0 -31
  950. package/dist/cjs/lib/components/HoverCard/HoverCardContent.d.ts +0 -14
  951. package/dist/cjs/lib/components/HoverCard/HoverCardContent.js +0 -64
  952. package/dist/cjs/lib/components/HoverCard/HoverCardRoot.js +0 -42
  953. package/dist/cjs/lib/components/HoverCard/HoverCardTrigger.js +0 -33
  954. package/dist/cjs/lib/components/HoverCard/index.d.ts +0 -10
  955. package/dist/cjs/lib/components/HoverCard/index.js +0 -11
  956. package/dist/cjs/lib/components/IconButton/index.d.ts +0 -15
  957. package/dist/cjs/lib/components/IconButton/index.js +0 -89
  958. package/dist/cjs/lib/components/Inset/index.js +0 -53
  959. package/dist/cjs/lib/components/Label/index.d.ts +0 -17
  960. package/dist/cjs/lib/components/Label/index.js +0 -82
  961. package/dist/cjs/lib/components/LineChart/index.d.ts +0 -43
  962. package/dist/cjs/lib/components/LineChart/index.js +0 -63
  963. package/dist/cjs/lib/components/Menubar/MenubarCheckboxItem.js +0 -64
  964. package/dist/cjs/lib/components/Menubar/MenubarContent.js +0 -86
  965. package/dist/cjs/lib/components/Menubar/MenubarItem.js +0 -80
  966. package/dist/cjs/lib/components/Menubar/MenubarItemIndicator.js +0 -75
  967. package/dist/cjs/lib/components/Menubar/MenubarMenu.js +0 -56
  968. package/dist/cjs/lib/components/Menubar/MenubarRadioGroup.js +0 -57
  969. package/dist/cjs/lib/components/Menubar/MenubarRadioItem.js +0 -66
  970. package/dist/cjs/lib/components/Menubar/MenubarRoot.d.ts +0 -19
  971. package/dist/cjs/lib/components/Menubar/MenubarRoot.js +0 -88
  972. package/dist/cjs/lib/components/Menubar/MenubarSeparator.js +0 -57
  973. package/dist/cjs/lib/components/Menubar/MenubarSub.js +0 -56
  974. package/dist/cjs/lib/components/Menubar/MenubarSubContent.js +0 -77
  975. package/dist/cjs/lib/components/Menubar/MenubarSubTrigger.js +0 -67
  976. package/dist/cjs/lib/components/Menubar/MenubarTrigger.js +0 -83
  977. package/dist/cjs/lib/components/Menubar/index.js +0 -31
  978. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuContent.js +0 -74
  979. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuIndicator.js +0 -57
  980. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuItem.js +0 -56
  981. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuLink.js +0 -77
  982. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuList.js +0 -73
  983. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +0 -14
  984. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuRoot.js +0 -70
  985. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuTrigger.js +0 -84
  986. package/dist/cjs/lib/components/NavigationMenu/NavigationMenuViewport.js +0 -79
  987. package/dist/cjs/lib/components/NavigationMenu/index.js +0 -12
  988. package/dist/cjs/lib/components/PieChart/index.d.ts +0 -22
  989. package/dist/cjs/lib/components/PieChart/index.js +0 -70
  990. package/dist/cjs/lib/components/Popover/PopoverClose.js +0 -51
  991. package/dist/cjs/lib/components/Popover/PopoverContent.d.ts +0 -11
  992. package/dist/cjs/lib/components/Popover/PopoverContent.js +0 -68
  993. package/dist/cjs/lib/components/Popover/PopoverRoot.js +0 -40
  994. package/dist/cjs/lib/components/Popover/PopoverTrigger.js +0 -33
  995. package/dist/cjs/lib/components/Popover/index.js +0 -13
  996. package/dist/cjs/lib/components/Progress/index.d.ts +0 -13
  997. package/dist/cjs/lib/components/Progress/index.js +0 -59
  998. package/dist/cjs/lib/components/RadarChart/index.d.ts +0 -32
  999. package/dist/cjs/lib/components/RadarChart/index.js +0 -83
  1000. package/dist/cjs/lib/components/Radio/index.d.ts +0 -13
  1001. package/dist/cjs/lib/components/Radio/index.js +0 -59
  1002. package/dist/cjs/lib/components/RadioCards/RadioCardsItem.js +0 -57
  1003. package/dist/cjs/lib/components/RadioCards/RadioCardsRoot.d.ts +0 -13
  1004. package/dist/cjs/lib/components/RadioCards/RadioCardsRoot.js +0 -49
  1005. package/dist/cjs/lib/components/RadioCards/index.d.ts +0 -6
  1006. package/dist/cjs/lib/components/RadioCards/index.js +0 -9
  1007. package/dist/cjs/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -13
  1008. package/dist/cjs/lib/components/RadioGroup/RadioGroupItem.js +0 -49
  1009. package/dist/cjs/lib/components/RadioGroup/RadioGroupRoot.d.ts +0 -15
  1010. package/dist/cjs/lib/components/RadioGroup/RadioGroupRoot.js +0 -56
  1011. package/dist/cjs/lib/components/RadioGroup/index.d.ts +0 -6
  1012. package/dist/cjs/lib/components/RadioGroup/index.js +0 -9
  1013. package/dist/cjs/lib/components/ScrollArea/index.d.ts +0 -9
  1014. package/dist/cjs/lib/components/ScrollArea/index.js +0 -39
  1015. package/dist/cjs/lib/components/SegmentedControl/SegmentedControlItem.js +0 -38
  1016. package/dist/cjs/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +0 -14
  1017. package/dist/cjs/lib/components/SegmentedControl/SegmentedControlRoot.js +0 -76
  1018. package/dist/cjs/lib/components/SegmentedControl/index.d.ts +0 -6
  1019. package/dist/cjs/lib/components/SegmentedControl/index.js +0 -9
  1020. package/dist/cjs/lib/components/Select/index.d.ts +0 -34
  1021. package/dist/cjs/lib/components/Select/index.js +0 -98
  1022. package/dist/cjs/lib/components/Separator/index.js +0 -53
  1023. package/dist/cjs/lib/components/Skeleton/index.d.ts +0 -14
  1024. package/dist/cjs/lib/components/Skeleton/index.js +0 -48
  1025. package/dist/cjs/lib/components/Slider/index.d.ts +0 -14
  1026. package/dist/cjs/lib/components/Slider/index.js +0 -55
  1027. package/dist/cjs/lib/components/Spinner/index.d.ts +0 -15
  1028. package/dist/cjs/lib/components/Spinner/index.js +0 -53
  1029. package/dist/cjs/lib/components/TabNav/index.js +0 -56
  1030. package/dist/cjs/lib/components/Table/index.d.ts +0 -30
  1031. package/dist/cjs/lib/components/Table/index.js +0 -104
  1032. package/dist/cjs/lib/components/Tabs/index.js +0 -71
  1033. package/dist/cjs/lib/components/TextArea/index.d.ts +0 -16
  1034. package/dist/cjs/lib/components/TextArea/index.js +0 -64
  1035. package/dist/cjs/lib/components/TextField/index.d.ts +0 -21
  1036. package/dist/cjs/lib/components/TextField/index.js +0 -62
  1037. package/dist/cjs/lib/components/Toast/ToastActionButton.d.ts +0 -14
  1038. package/dist/cjs/lib/components/Toast/ToastActionButton.js +0 -96
  1039. package/dist/cjs/lib/components/Toast/ToastDescription.d.ts +0 -13
  1040. package/dist/cjs/lib/components/Toast/ToastDescription.js +0 -79
  1041. package/dist/cjs/lib/components/Toast/ToastRoot.js +0 -117
  1042. package/dist/cjs/lib/components/Toast/ToastTitle.d.ts +0 -13
  1043. package/dist/cjs/lib/components/Toast/ToastTitle.js +0 -79
  1044. package/dist/cjs/lib/components/Toast/index.js +0 -13
  1045. package/dist/cjs/lib/components/Toggle/ToggleWithText.d.ts +0 -21
  1046. package/dist/cjs/lib/components/Toggle/ToggleWithText.js +0 -84
  1047. package/dist/cjs/lib/components/Toggle/index.d.ts +0 -21
  1048. package/dist/cjs/lib/components/Toggle/index.js +0 -87
  1049. package/dist/cjs/lib/components/ToggleGroup/ToggleGroupItem.d.ts +0 -17
  1050. package/dist/cjs/lib/components/ToggleGroup/ToggleGroupItem.js +0 -80
  1051. package/dist/cjs/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +0 -15
  1052. package/dist/cjs/lib/components/ToggleGroup/ToggleGroupRoot.js +0 -74
  1053. package/dist/cjs/lib/components/ToggleGroup/index.js +0 -9
  1054. package/dist/cjs/lib/components/ToggleSwitch/index.js +0 -77
  1055. package/dist/cjs/lib/components/Tooltip/index.d.ts +0 -19
  1056. package/dist/cjs/lib/components/Tooltip/index.js +0 -77
  1057. package/dist/cjs/lib/components/index.js +0 -108
  1058. package/dist/cjs/lib/constants.js +0 -950
  1059. package/dist/cjs/lib/index.js +0 -18
  1060. package/dist/cjs/lib/types.js +0 -2
  1061. package/dist/cjs/lib/utils/useDarkMode.js +0 -53
  1062. package/dist/cjs/lib/utils/utils.js +0 -14
  1063. package/dist/esm/lib/Typography/Header/index.d.ts +0 -13
  1064. package/dist/esm/lib/Typography/Header/index.js +0 -55
  1065. package/dist/esm/lib/Typography/Text/index.d.ts +0 -15
  1066. package/dist/esm/lib/Typography/Text/index.js +0 -44
  1067. package/dist/esm/lib/Typography/index.d.ts +0 -2
  1068. package/dist/esm/lib/color/alpha.d.ts +0 -784
  1069. package/dist/esm/lib/color/constants.d.ts +0 -29
  1070. package/dist/esm/lib/color/dark.d.ts +0 -392
  1071. package/dist/esm/lib/color/krdsColors.d.ts +0 -309
  1072. package/dist/esm/lib/color/light.d.ts +0 -392
  1073. package/dist/esm/lib/components/Accordion/index.d.ts +0 -22
  1074. package/dist/esm/lib/components/Accordion/index.js +0 -64
  1075. package/dist/esm/lib/components/AlertDialog/AlertDialogAction.d.ts +0 -14
  1076. package/dist/esm/lib/components/AlertDialog/AlertDialogAction.js +0 -61
  1077. package/dist/esm/lib/components/AlertDialog/AlertDialogCancel.d.ts +0 -13
  1078. package/dist/esm/lib/components/AlertDialog/AlertDialogCancel.js +0 -60
  1079. package/dist/esm/lib/components/AlertDialog/AlertDialogContent.d.ts +0 -11
  1080. package/dist/esm/lib/components/AlertDialog/AlertDialogContent.js +0 -51
  1081. package/dist/esm/lib/components/AlertDialog/AlertDialogDescription.d.ts +0 -10
  1082. package/dist/esm/lib/components/AlertDialog/AlertDialogDescription.js +0 -47
  1083. package/dist/esm/lib/components/AlertDialog/AlertDialogRoot.d.ts +0 -16
  1084. package/dist/esm/lib/components/AlertDialog/AlertDialogTitle.d.ts +0 -10
  1085. package/dist/esm/lib/components/AlertDialog/AlertDialogTitle.js +0 -47
  1086. package/dist/esm/lib/components/AlertDialog/AlertDialogTrigger.d.ts +0 -17
  1087. package/dist/esm/lib/components/AlertDialog/AlertDialogTrigger.js +0 -55
  1088. package/dist/esm/lib/components/AlertDialog/index.d.ts +0 -11
  1089. package/dist/esm/lib/components/AspectRatio/index.d.ts +0 -10
  1090. package/dist/esm/lib/components/AspectRatio/index.js +0 -42
  1091. package/dist/esm/lib/components/Avatar/index.d.ts +0 -21
  1092. package/dist/esm/lib/components/Avatar/index.js +0 -58
  1093. package/dist/esm/lib/components/Badge/index.d.ts +0 -18
  1094. package/dist/esm/lib/components/Badge/index.js +0 -54
  1095. package/dist/esm/lib/components/BarChart/index.d.ts +0 -37
  1096. package/dist/esm/lib/components/BarChart/index.js +0 -63
  1097. package/dist/esm/lib/components/BubbleChart/index.d.ts +0 -28
  1098. package/dist/esm/lib/components/BubbleChart/index.js +0 -73
  1099. package/dist/esm/lib/components/Button/index.d.ts +0 -16
  1100. package/dist/esm/lib/components/Button/index.js +0 -56
  1101. package/dist/esm/lib/components/Callout/CalloutIcon.d.ts +0 -13
  1102. package/dist/esm/lib/components/Callout/CalloutIcon.js +0 -57
  1103. package/dist/esm/lib/components/Callout/CalloutRoot.d.ts +0 -18
  1104. package/dist/esm/lib/components/Callout/CalloutRoot.js +0 -72
  1105. package/dist/esm/lib/components/Callout/CalloutText.d.ts +0 -10
  1106. package/dist/esm/lib/components/Callout/CalloutText.js +0 -52
  1107. package/dist/esm/lib/components/Callout/index.d.ts +0 -7
  1108. package/dist/esm/lib/components/Card/index.d.ts +0 -14
  1109. package/dist/esm/lib/components/Card/index.js +0 -64
  1110. package/dist/esm/lib/components/Checkbox/index.d.ts +0 -17
  1111. package/dist/esm/lib/components/Checkbox/index.js +0 -89
  1112. package/dist/esm/lib/components/CheckboxCard/index.d.ts +0 -20
  1113. package/dist/esm/lib/components/CheckboxCard/index.js +0 -58
  1114. package/dist/esm/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +0 -5
  1115. package/dist/esm/lib/components/CheckboxGroup/CheckboxGroupItem.js +0 -33
  1116. package/dist/esm/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +0 -17
  1117. package/dist/esm/lib/components/CheckboxGroup/CheckboxGroupRoot.js +0 -34
  1118. package/dist/esm/lib/components/CheckboxGroup/index.d.ts +0 -6
  1119. package/dist/esm/lib/components/ContextMenu/ContextMenuCheckboxItem.d.ts +0 -4
  1120. package/dist/esm/lib/components/ContextMenu/ContextMenuCheckboxItem.js +0 -42
  1121. package/dist/esm/lib/components/ContextMenu/ContextMenuContent.d.ts +0 -11
  1122. package/dist/esm/lib/components/ContextMenu/ContextMenuContent.js +0 -56
  1123. package/dist/esm/lib/components/ContextMenu/ContextMenuGroup.d.ts +0 -4
  1124. package/dist/esm/lib/components/ContextMenu/ContextMenuItem.d.ts +0 -13
  1125. package/dist/esm/lib/components/ContextMenu/ContextMenuItem.js +0 -59
  1126. package/dist/esm/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +0 -10
  1127. package/dist/esm/lib/components/ContextMenu/ContextMenuItemIndicator.js +0 -50
  1128. package/dist/esm/lib/components/ContextMenu/ContextMenuLabel.d.ts +0 -11
  1129. package/dist/esm/lib/components/ContextMenu/ContextMenuLabel.js +0 -48
  1130. package/dist/esm/lib/components/ContextMenu/ContextMenuRadioGroup.d.ts +0 -8
  1131. package/dist/esm/lib/components/ContextMenu/ContextMenuRadioItem.d.ts +0 -4
  1132. package/dist/esm/lib/components/ContextMenu/ContextMenuRadioItem.js +0 -44
  1133. package/dist/esm/lib/components/ContextMenu/ContextMenuRoot.d.ts +0 -13
  1134. package/dist/esm/lib/components/ContextMenu/ContextMenuSeparator.d.ts +0 -3
  1135. package/dist/esm/lib/components/ContextMenu/ContextMenuSeparator.js +0 -31
  1136. package/dist/esm/lib/components/ContextMenu/ContextMenuSubContent.d.ts +0 -11
  1137. package/dist/esm/lib/components/ContextMenu/ContextMenuSubContent.js +0 -54
  1138. package/dist/esm/lib/components/ContextMenu/ContextMenuSubTrigger.d.ts +0 -4
  1139. package/dist/esm/lib/components/ContextMenu/ContextMenuSubTrigger.js +0 -40
  1140. package/dist/esm/lib/components/ContextMenu/ContextMenuTrigger.d.ts +0 -4
  1141. package/dist/esm/lib/components/ContextMenu/ContextMenuTrigger.js +0 -31
  1142. package/dist/esm/lib/components/ContextMenu/index.d.ts +0 -17
  1143. package/dist/esm/lib/components/DataList/DataListItem.d.ts +0 -9
  1144. package/dist/esm/lib/components/DataList/DataListItem.js +0 -43
  1145. package/dist/esm/lib/components/DataList/DataListLabel.d.ts +0 -10
  1146. package/dist/esm/lib/components/DataList/DataListLabel.js +0 -49
  1147. package/dist/esm/lib/components/DataList/DataListRoot.d.ts +0 -14
  1148. package/dist/esm/lib/components/DataList/DataListRoot.js +0 -54
  1149. package/dist/esm/lib/components/DataList/DataListValue.d.ts +0 -11
  1150. package/dist/esm/lib/components/DataList/DataListValue.js +0 -51
  1151. package/dist/esm/lib/components/DataList/index.d.ts +0 -8
  1152. package/dist/esm/lib/components/Dialog/DialogAction.d.ts +0 -13
  1153. package/dist/esm/lib/components/Dialog/DialogAction.js +0 -59
  1154. package/dist/esm/lib/components/Dialog/DialogCancel.d.ts +0 -11
  1155. package/dist/esm/lib/components/Dialog/DialogCancel.js +0 -55
  1156. package/dist/esm/lib/components/Dialog/DialogContent.d.ts +0 -11
  1157. package/dist/esm/lib/components/Dialog/DialogContent.js +0 -57
  1158. package/dist/esm/lib/components/Dialog/DialogDescription.d.ts +0 -9
  1159. package/dist/esm/lib/components/Dialog/DialogDescription.js +0 -47
  1160. package/dist/esm/lib/components/Dialog/DialogRoot.d.ts +0 -15
  1161. package/dist/esm/lib/components/Dialog/DialogSlot.d.ts +0 -9
  1162. package/dist/esm/lib/components/Dialog/DialogSlot.js +0 -46
  1163. package/dist/esm/lib/components/Dialog/DialogTitle.d.ts +0 -11
  1164. package/dist/esm/lib/components/Dialog/DialogTitle.js +0 -47
  1165. package/dist/esm/lib/components/Dialog/DialogTrigger.d.ts +0 -3
  1166. package/dist/esm/lib/components/Dialog/index.d.ts +0 -15
  1167. package/dist/esm/lib/components/DoughnutChart/index.d.ts +0 -22
  1168. package/dist/esm/lib/components/DoughnutChart/index.js +0 -65
  1169. package/dist/esm/lib/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -3
  1170. package/dist/esm/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +0 -11
  1171. package/dist/esm/lib/components/DropdownMenu/DropdonMenuSubContent.js +0 -60
  1172. package/dist/esm/lib/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +0 -7
  1173. package/dist/esm/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +0 -41
  1174. package/dist/esm/lib/components/DropdownMenu/DropdownMenuContent.d.ts +0 -11
  1175. package/dist/esm/lib/components/DropdownMenu/DropdownMenuContent.js +0 -56
  1176. package/dist/esm/lib/components/DropdownMenu/DropdownMenuItem.d.ts +0 -15
  1177. package/dist/esm/lib/components/DropdownMenu/DropdownMenuItem.js +0 -58
  1178. package/dist/esm/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +0 -10
  1179. package/dist/esm/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +0 -48
  1180. package/dist/esm/lib/components/DropdownMenu/DropdownMenuLable.d.ts +0 -10
  1181. package/dist/esm/lib/components/DropdownMenu/DropdownMenuLable.js +0 -45
  1182. package/dist/esm/lib/components/DropdownMenu/DropdownMenuRadioItem.d.ts +0 -6
  1183. package/dist/esm/lib/components/DropdownMenu/DropdownMenuRadioItem.js +0 -41
  1184. package/dist/esm/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +0 -15
  1185. package/dist/esm/lib/components/DropdownMenu/DropdownMenuSeparator.d.ts +0 -3
  1186. package/dist/esm/lib/components/DropdownMenu/DropdownMenuSeparator.js +0 -31
  1187. package/dist/esm/lib/components/DropdownMenu/DropdownMenuSub.d.ts +0 -3
  1188. package/dist/esm/lib/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +0 -4
  1189. package/dist/esm/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +0 -40
  1190. package/dist/esm/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +0 -14
  1191. package/dist/esm/lib/components/DropdownMenu/DropdownMenuTrigger.js +0 -53
  1192. package/dist/esm/lib/components/DropdownMenu/index.d.ts +0 -20
  1193. package/dist/esm/lib/components/HoverCard/HoverCardContent.d.ts +0 -14
  1194. package/dist/esm/lib/components/HoverCard/HoverCardContent.js +0 -61
  1195. package/dist/esm/lib/components/HoverCard/HoverCardRoot.d.ts +0 -11
  1196. package/dist/esm/lib/components/HoverCard/HoverCardTrigger.d.ts +0 -3
  1197. package/dist/esm/lib/components/HoverCard/index.d.ts +0 -10
  1198. package/dist/esm/lib/components/IconButton/index.d.ts +0 -15
  1199. package/dist/esm/lib/components/IconButton/index.js +0 -63
  1200. package/dist/esm/lib/components/Inset/index.d.ts +0 -10
  1201. package/dist/esm/lib/components/Inset/index.js +0 -50
  1202. package/dist/esm/lib/components/Label/index.d.ts +0 -17
  1203. package/dist/esm/lib/components/Label/index.js +0 -53
  1204. package/dist/esm/lib/components/LineChart/index.d.ts +0 -43
  1205. package/dist/esm/lib/components/LineChart/index.js +0 -61
  1206. package/dist/esm/lib/components/Menubar/MenubarCheckboxItem.d.ts +0 -4
  1207. package/dist/esm/lib/components/Menubar/MenubarCheckboxItem.js +0 -38
  1208. package/dist/esm/lib/components/Menubar/MenubarContent.d.ts +0 -11
  1209. package/dist/esm/lib/components/Menubar/MenubarContent.js +0 -60
  1210. package/dist/esm/lib/components/Menubar/MenubarItem.d.ts +0 -13
  1211. package/dist/esm/lib/components/Menubar/MenubarItem.js +0 -54
  1212. package/dist/esm/lib/components/Menubar/MenubarItemIndicator.d.ts +0 -10
  1213. package/dist/esm/lib/components/Menubar/MenubarItemIndicator.js +0 -49
  1214. package/dist/esm/lib/components/Menubar/MenubarMenu.d.ts +0 -5
  1215. package/dist/esm/lib/components/Menubar/MenubarRadioGroup.d.ts +0 -8
  1216. package/dist/esm/lib/components/Menubar/MenubarRadioItem.d.ts +0 -4
  1217. package/dist/esm/lib/components/Menubar/MenubarRadioItem.js +0 -40
  1218. package/dist/esm/lib/components/Menubar/MenubarRoot.d.ts +0 -19
  1219. package/dist/esm/lib/components/Menubar/MenubarRoot.js +0 -61
  1220. package/dist/esm/lib/components/Menubar/MenubarSeparator.d.ts +0 -3
  1221. package/dist/esm/lib/components/Menubar/MenubarSeparator.js +0 -31
  1222. package/dist/esm/lib/components/Menubar/MenubarSub.d.ts +0 -3
  1223. package/dist/esm/lib/components/Menubar/MenubarSubContent.d.ts +0 -10
  1224. package/dist/esm/lib/components/Menubar/MenubarSubContent.js +0 -51
  1225. package/dist/esm/lib/components/Menubar/MenubarSubTrigger.d.ts +0 -4
  1226. package/dist/esm/lib/components/Menubar/MenubarSubTrigger.js +0 -41
  1227. package/dist/esm/lib/components/Menubar/MenubarTrigger.d.ts +0 -12
  1228. package/dist/esm/lib/components/Menubar/MenubarTrigger.js +0 -57
  1229. package/dist/esm/lib/components/Menubar/index.d.ts +0 -19
  1230. package/dist/esm/lib/components/NavigationMenu/NavigationMenuContent.d.ts +0 -11
  1231. package/dist/esm/lib/components/NavigationMenu/NavigationMenuContent.js +0 -48
  1232. package/dist/esm/lib/components/NavigationMenu/NavigationMenuIndicator.d.ts +0 -3
  1233. package/dist/esm/lib/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
  1234. package/dist/esm/lib/components/NavigationMenu/NavigationMenuItem.d.ts +0 -3
  1235. package/dist/esm/lib/components/NavigationMenu/NavigationMenuLink.d.ts +0 -13
  1236. package/dist/esm/lib/components/NavigationMenu/NavigationMenuLink.js +0 -51
  1237. package/dist/esm/lib/components/NavigationMenu/NavigationMenuList.d.ts +0 -12
  1238. package/dist/esm/lib/components/NavigationMenu/NavigationMenuList.js +0 -47
  1239. package/dist/esm/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +0 -14
  1240. package/dist/esm/lib/components/NavigationMenu/NavigationMenuRoot.js +0 -43
  1241. package/dist/esm/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +0 -13
  1242. package/dist/esm/lib/components/NavigationMenu/NavigationMenuTrigger.js +0 -58
  1243. package/dist/esm/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +0 -12
  1244. package/dist/esm/lib/components/NavigationMenu/NavigationMenuViewport.js +0 -53
  1245. package/dist/esm/lib/components/NavigationMenu/index.d.ts +0 -12
  1246. package/dist/esm/lib/components/PieChart/index.d.ts +0 -22
  1247. package/dist/esm/lib/components/PieChart/index.js +0 -65
  1248. package/dist/esm/lib/components/Popover/PopoverClose.d.ts +0 -9
  1249. package/dist/esm/lib/components/Popover/PopoverClose.js +0 -48
  1250. package/dist/esm/lib/components/Popover/PopoverContent.d.ts +0 -11
  1251. package/dist/esm/lib/components/Popover/PopoverContent.js +0 -65
  1252. package/dist/esm/lib/components/Popover/PopoverRoot.d.ts +0 -12
  1253. package/dist/esm/lib/components/Popover/PopoverTrigger.d.ts +0 -3
  1254. package/dist/esm/lib/components/Popover/index.d.ts +0 -11
  1255. package/dist/esm/lib/components/Progress/index.d.ts +0 -13
  1256. package/dist/esm/lib/components/Progress/index.js +0 -56
  1257. package/dist/esm/lib/components/RadarChart/index.d.ts +0 -32
  1258. package/dist/esm/lib/components/RadarChart/index.js +0 -76
  1259. package/dist/esm/lib/components/Radio/index.d.ts +0 -13
  1260. package/dist/esm/lib/components/Radio/index.js +0 -53
  1261. package/dist/esm/lib/components/RadioCards/RadioCardsItem.d.ts +0 -10
  1262. package/dist/esm/lib/components/RadioCards/RadioCardsItem.js +0 -54
  1263. package/dist/esm/lib/components/RadioCards/RadioCardsRoot.d.ts +0 -13
  1264. package/dist/esm/lib/components/RadioCards/RadioCardsRoot.js +0 -46
  1265. package/dist/esm/lib/components/RadioCards/index.d.ts +0 -6
  1266. package/dist/esm/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -13
  1267. package/dist/esm/lib/components/RadioGroup/RadioGroupItem.js +0 -46
  1268. package/dist/esm/lib/components/RadioGroup/RadioGroupRoot.d.ts +0 -15
  1269. package/dist/esm/lib/components/RadioGroup/RadioGroupRoot.js +0 -53
  1270. package/dist/esm/lib/components/RadioGroup/index.d.ts +0 -6
  1271. package/dist/esm/lib/components/ScrollArea/index.d.ts +0 -9
  1272. package/dist/esm/lib/components/SegmentedControl/SegmentedControlItem.d.ts +0 -6
  1273. package/dist/esm/lib/components/SegmentedControl/SegmentedControlItem.js +0 -35
  1274. package/dist/esm/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +0 -14
  1275. package/dist/esm/lib/components/SegmentedControl/SegmentedControlRoot.js +0 -47
  1276. package/dist/esm/lib/components/SegmentedControl/index.d.ts +0 -6
  1277. package/dist/esm/lib/components/Select/index.d.ts +0 -34
  1278. package/dist/esm/lib/components/Select/index.js +0 -92
  1279. package/dist/esm/lib/components/Separator/index.d.ts +0 -11
  1280. package/dist/esm/lib/components/Separator/index.js +0 -47
  1281. package/dist/esm/lib/components/Skeleton/index.d.ts +0 -14
  1282. package/dist/esm/lib/components/Skeleton/index.js +0 -42
  1283. package/dist/esm/lib/components/Slider/index.d.ts +0 -14
  1284. package/dist/esm/lib/components/Slider/index.js +0 -49
  1285. package/dist/esm/lib/components/Spinner/index.d.ts +0 -15
  1286. package/dist/esm/lib/components/Spinner/index.js +0 -47
  1287. package/dist/esm/lib/components/TabNav/index.d.ts +0 -15
  1288. package/dist/esm/lib/components/TabNav/index.js +0 -50
  1289. package/dist/esm/lib/components/Table/index.d.ts +0 -30
  1290. package/dist/esm/lib/components/Table/index.js +0 -98
  1291. package/dist/esm/lib/components/Tabs/index.d.ts +0 -22
  1292. package/dist/esm/lib/components/Tabs/index.js +0 -65
  1293. package/dist/esm/lib/components/TextArea/index.d.ts +0 -16
  1294. package/dist/esm/lib/components/TextArea/index.js +0 -58
  1295. package/dist/esm/lib/components/TextField/index.d.ts +0 -21
  1296. package/dist/esm/lib/components/TextField/index.js +0 -56
  1297. package/dist/esm/lib/components/Toast/ToastActionButton.d.ts +0 -14
  1298. package/dist/esm/lib/components/Toast/ToastActionButton.js +0 -67
  1299. package/dist/esm/lib/components/Toast/ToastDescription.d.ts +0 -13
  1300. package/dist/esm/lib/components/Toast/ToastDescription.js +0 -53
  1301. package/dist/esm/lib/components/Toast/ToastRoot.d.ts +0 -27
  1302. package/dist/esm/lib/components/Toast/ToastRoot.js +0 -90
  1303. package/dist/esm/lib/components/Toast/ToastTitle.d.ts +0 -13
  1304. package/dist/esm/lib/components/Toast/ToastTitle.js +0 -53
  1305. package/dist/esm/lib/components/Toast/index.d.ts +0 -8
  1306. package/dist/esm/lib/components/Toggle/ToggleWithText.d.ts +0 -21
  1307. package/dist/esm/lib/components/Toggle/ToggleWithText.js +0 -58
  1308. package/dist/esm/lib/components/Toggle/index.d.ts +0 -21
  1309. package/dist/esm/lib/components/Toggle/index.js +0 -58
  1310. package/dist/esm/lib/components/ToggleGroup/ToggleGroupItem.d.ts +0 -17
  1311. package/dist/esm/lib/components/ToggleGroup/ToggleGroupItem.js +0 -54
  1312. package/dist/esm/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +0 -15
  1313. package/dist/esm/lib/components/ToggleGroup/ToggleGroupRoot.js +0 -48
  1314. package/dist/esm/lib/components/ToggleGroup/index.d.ts +0 -6
  1315. package/dist/esm/lib/components/ToggleSwitch/index.d.ts +0 -13
  1316. package/dist/esm/lib/components/ToggleSwitch/index.js +0 -71
  1317. package/dist/esm/lib/components/Tooltip/index.d.ts +0 -19
  1318. package/dist/esm/lib/components/Tooltip/index.js +0 -49
  1319. package/dist/esm/lib/components/index.d.ts +0 -50
  1320. package/dist/esm/lib/constants.d.ts +0 -655
  1321. package/dist/esm/lib/constants.js +0 -914
  1322. package/dist/esm/lib/index.d.ts +0 -2
  1323. package/dist/esm/lib/types.d.ts +0 -81
  1324. package/dist/esm/lib/utils/useDarkMode.d.ts +0 -1
  1325. package/dist/esm/lib/utils/useDarkMode.js +0 -49
  1326. package/dist/esm/lib/utils/utils.d.ts +0 -2
  1327. /package/dist/{cjs/lib → lib}/Typography/index.d.ts +0 -0
  1328. /package/dist/{esm/lib → lib}/Typography/index.js +0 -0
  1329. /package/dist/{cjs/lib → lib}/color/alpha.d.ts +0 -0
  1330. /package/dist/{esm/lib → lib}/color/alpha.js +0 -0
  1331. /package/dist/{cjs/lib → lib}/color/constants.d.ts +0 -0
  1332. /package/dist/{esm/lib → lib}/color/constants.js +0 -0
  1333. /package/dist/{cjs/lib → lib}/color/dark.d.ts +0 -0
  1334. /package/dist/{esm/lib → lib}/color/dark.js +0 -0
  1335. /package/dist/{cjs/lib → lib}/color/krdsColors.d.ts +0 -0
  1336. /package/dist/{esm/lib → lib}/color/krdsColors.js +0 -0
  1337. /package/dist/{cjs/lib → lib}/color/light.d.ts +0 -0
  1338. /package/dist/{esm/lib → lib}/color/light.js +0 -0
  1339. /package/dist/{cjs/lib → lib}/components/AlertDialog/AlertDialogContent.d.ts +0 -0
  1340. /package/dist/{cjs/lib → lib}/components/AlertDialog/AlertDialogDescription.d.ts +0 -0
  1341. /package/dist/{esm/lib → lib}/components/AlertDialog/AlertDialogRoot.js +0 -0
  1342. /package/dist/{cjs/lib → lib}/components/AlertDialog/AlertDialogTitle.d.ts +0 -0
  1343. /package/dist/{cjs/lib → lib}/components/AlertDialog/index.d.ts +0 -0
  1344. /package/dist/{esm/lib → lib}/components/AlertDialog/index.js +0 -0
  1345. /package/dist/{cjs/lib → lib}/components/AspectRatio/index.d.ts +0 -0
  1346. /package/dist/{cjs/lib → lib}/components/Avatar/index.d.ts +0 -0
  1347. /package/dist/{cjs/lib → lib}/components/Callout/CalloutIcon.d.ts +0 -0
  1348. /package/dist/{cjs/lib → lib}/components/Callout/CalloutText.d.ts +0 -0
  1349. /package/dist/{cjs/lib → lib}/components/Callout/index.d.ts +0 -0
  1350. /package/dist/{esm/lib → lib}/components/Callout/index.js +0 -0
  1351. /package/dist/{esm/lib → lib}/components/CheckboxGroup/index.js +0 -0
  1352. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuCheckboxItem.d.ts +0 -0
  1353. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuContent.d.ts +0 -0
  1354. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuGroup.d.ts +0 -0
  1355. /package/dist/{esm/lib → lib}/components/ContextMenu/ContextMenuGroup.js +0 -0
  1356. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuItem.d.ts +0 -0
  1357. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuItemIndicator.d.ts +0 -0
  1358. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuLabel.d.ts +0 -0
  1359. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuRadioGroup.d.ts +0 -0
  1360. /package/dist/{esm/lib → lib}/components/ContextMenu/ContextMenuRadioGroup.js +0 -0
  1361. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuRadioItem.d.ts +0 -0
  1362. /package/dist/{esm/lib → lib}/components/ContextMenu/ContextMenuRoot.js +0 -0
  1363. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuSeparator.d.ts +0 -0
  1364. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuSubContent.d.ts +0 -0
  1365. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuSubTrigger.d.ts +0 -0
  1366. /package/dist/{cjs/lib → lib}/components/ContextMenu/ContextMenuTrigger.d.ts +0 -0
  1367. /package/dist/{cjs/lib → lib}/components/ContextMenu/index.d.ts +0 -0
  1368. /package/dist/{esm/lib → lib}/components/ContextMenu/index.js +0 -0
  1369. /package/dist/{cjs/lib → lib}/components/DataList/DataListItem.d.ts +0 -0
  1370. /package/dist/{cjs/lib → lib}/components/DataList/DataListLabel.d.ts +0 -0
  1371. /package/dist/{cjs/lib → lib}/components/DataList/DataListRoot.d.ts +0 -0
  1372. /package/dist/{cjs/lib → lib}/components/DataList/DataListValue.d.ts +0 -0
  1373. /package/dist/{cjs/lib → lib}/components/DataList/index.d.ts +0 -0
  1374. /package/dist/{esm/lib → lib}/components/DataList/index.js +0 -0
  1375. /package/dist/{cjs/lib → lib}/components/Dialog/DialogContent.d.ts +0 -0
  1376. /package/dist/{cjs/lib → lib}/components/Dialog/DialogDescription.d.ts +0 -0
  1377. /package/dist/{cjs/lib → lib}/components/Dialog/DialogRoot.d.ts +0 -0
  1378. /package/dist/{esm/lib → lib}/components/Dialog/DialogRoot.js +0 -0
  1379. /package/dist/{cjs/lib → lib}/components/Dialog/DialogTrigger.d.ts +0 -0
  1380. /package/dist/{esm/lib → lib}/components/Dialog/DialogTrigger.js +0 -0
  1381. /package/dist/{cjs/lib → lib}/components/Dialog/index.d.ts +0 -0
  1382. /package/dist/{esm/lib → lib}/components/Dialog/index.js +0 -0
  1383. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdonMenuRadioGroup.d.ts +0 -0
  1384. /package/dist/{esm/lib → lib}/components/DropdownMenu/DropdonMenuRadioGroup.js +0 -0
  1385. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdonMenuSubContent.d.ts +0 -0
  1386. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +0 -0
  1387. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuContent.d.ts +0 -0
  1388. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +0 -0
  1389. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuLable.d.ts +0 -0
  1390. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuRadioItem.d.ts +0 -0
  1391. /package/dist/{esm/lib → lib}/components/DropdownMenu/DropdownMenuRoot.js +0 -0
  1392. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuSeparator.d.ts +0 -0
  1393. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuSub.d.ts +0 -0
  1394. /package/dist/{esm/lib → lib}/components/DropdownMenu/DropdownMenuSub.js +0 -0
  1395. /package/dist/{cjs/lib → lib}/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +0 -0
  1396. /package/dist/{cjs/lib → lib}/components/DropdownMenu/index.d.ts +0 -0
  1397. /package/dist/{esm/lib → lib}/components/DropdownMenu/index.js +0 -0
  1398. /package/dist/{cjs/lib → lib}/components/HoverCard/HoverCardRoot.d.ts +0 -0
  1399. /package/dist/{esm/lib → lib}/components/HoverCard/HoverCardRoot.js +0 -0
  1400. /package/dist/{cjs/lib → lib}/components/HoverCard/HoverCardTrigger.d.ts +0 -0
  1401. /package/dist/{esm/lib → lib}/components/HoverCard/HoverCardTrigger.js +0 -0
  1402. /package/dist/{esm/lib → lib}/components/HoverCard/index.js +0 -0
  1403. /package/dist/{cjs/lib → lib}/components/Inset/index.d.ts +0 -0
  1404. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarCheckboxItem.d.ts +0 -0
  1405. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarContent.d.ts +0 -0
  1406. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarItem.d.ts +0 -0
  1407. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarItemIndicator.d.ts +0 -0
  1408. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarMenu.d.ts +0 -0
  1409. /package/dist/{esm/lib → lib}/components/Menubar/MenubarMenu.js +0 -0
  1410. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarRadioGroup.d.ts +0 -0
  1411. /package/dist/{esm/lib → lib}/components/Menubar/MenubarRadioGroup.js +0 -0
  1412. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarRadioItem.d.ts +0 -0
  1413. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSeparator.d.ts +0 -0
  1414. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSub.d.ts +0 -0
  1415. /package/dist/{esm/lib → lib}/components/Menubar/MenubarSub.js +0 -0
  1416. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSubContent.d.ts +0 -0
  1417. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarSubTrigger.d.ts +0 -0
  1418. /package/dist/{cjs/lib → lib}/components/Menubar/MenubarTrigger.d.ts +0 -0
  1419. /package/dist/{cjs/lib → lib}/components/Menubar/index.d.ts +0 -0
  1420. /package/dist/{esm/lib → lib}/components/Menubar/index.js +0 -0
  1421. /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuContent.d.ts +0 -0
  1422. /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuIndicator.d.ts +0 -0
  1423. /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuItem.d.ts +0 -0
  1424. /package/dist/{esm/lib → lib}/components/NavigationMenu/NavigationMenuItem.js +0 -0
  1425. /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuLink.d.ts +0 -0
  1426. /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuList.d.ts +0 -0
  1427. /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuTrigger.d.ts +0 -0
  1428. /package/dist/{cjs/lib → lib}/components/NavigationMenu/NavigationMenuViewport.d.ts +0 -0
  1429. /package/dist/{cjs/lib → lib}/components/NavigationMenu/index.d.ts +0 -0
  1430. /package/dist/{esm/lib → lib}/components/NavigationMenu/index.js +0 -0
  1431. /package/dist/{cjs/lib → lib}/components/Popover/PopoverClose.d.ts +0 -0
  1432. /package/dist/{cjs/lib → lib}/components/Popover/PopoverRoot.d.ts +0 -0
  1433. /package/dist/{esm/lib → lib}/components/Popover/PopoverRoot.js +0 -0
  1434. /package/dist/{cjs/lib → lib}/components/Popover/PopoverTrigger.d.ts +0 -0
  1435. /package/dist/{esm/lib → lib}/components/Popover/PopoverTrigger.js +0 -0
  1436. /package/dist/{cjs/lib → lib}/components/Popover/index.d.ts +0 -0
  1437. /package/dist/{esm/lib → lib}/components/Popover/index.js +0 -0
  1438. /package/dist/{cjs/lib → lib}/components/RadioCards/RadioCardsItem.d.ts +0 -0
  1439. /package/dist/{esm/lib → lib}/components/RadioCards/index.js +0 -0
  1440. /package/dist/{esm/lib → lib}/components/RadioGroup/index.js +0 -0
  1441. /package/dist/{esm/lib → lib}/components/ScrollArea/index.js +0 -0
  1442. /package/dist/{cjs/lib → lib}/components/SegmentedControl/SegmentedControlItem.d.ts +0 -0
  1443. /package/dist/{esm/lib → lib}/components/SegmentedControl/index.js +0 -0
  1444. /package/dist/{cjs/lib → lib}/components/Separator/index.d.ts +0 -0
  1445. /package/dist/{cjs/lib → lib}/components/TabNav/index.d.ts +0 -0
  1446. /package/dist/{cjs/lib → lib}/components/Tabs/index.d.ts +0 -0
  1447. /package/dist/{cjs/lib → lib}/components/Toast/ToastRoot.d.ts +0 -0
  1448. /package/dist/{cjs/lib → lib}/components/Toast/index.d.ts +0 -0
  1449. /package/dist/{esm/lib → lib}/components/Toast/index.js +0 -0
  1450. /package/dist/{cjs/lib → lib}/components/ToggleGroup/index.d.ts +0 -0
  1451. /package/dist/{esm/lib → lib}/components/ToggleGroup/index.js +0 -0
  1452. /package/dist/{cjs/lib → lib}/components/ToggleSwitch/index.d.ts +0 -0
  1453. /package/dist/{cjs/lib → lib}/components/index.d.ts +0 -0
  1454. /package/dist/{esm/lib → lib}/components/index.js +0 -0
  1455. /package/dist/{cjs/lib → lib}/constants.d.ts +0 -0
  1456. /package/dist/{cjs/lib → lib}/index.d.ts +0 -0
  1457. /package/dist/{esm/lib → lib}/index.js +0 -0
  1458. /package/dist/{cjs/lib → lib}/types.d.ts +0 -0
  1459. /package/dist/{esm/lib → lib}/types.js +0 -0
  1460. /package/dist/{cjs/lib → lib}/utils/useDarkMode.d.ts +0 -0
  1461. /package/dist/{cjs/lib → lib}/utils/utils.d.ts +0 -0
  1462. /package/dist/{esm/lib → lib}/utils/utils.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/Presence.tsx\nimport * as React2 from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/useStateMachine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Presence\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Presence","props","present","children","presence","node","setNode","React2","useState","stylesRef","useRef","prevPresentRef","prevAnimationNameRef","initialState","state","send","machine","React","useReducer","event","useStateMachine","mounted","UNMOUNT","ANIMATION_OUT","unmountSuspended","MOUNT","ANIMATION_END","unmounted","useEffect","currentAnimationName","getAnimationName","current","useLayoutEffect","styles","wasPresent","prevAnimationName","display","handleAnimationEnd","isCurrentAnimation","includes","animationName","target","ReactDOM","flushSync","handleAnimationStart","addEventListener","removeEventListener","isPresent","ref","useCallback","node2","getComputedStyle","usePresence","child","Children","only","useComposedRefs","element","getter","Object","getOwnPropertyDescriptor","get","mayWarn","isReactWarning","getElementRef","cloneElement","displayName"],"mappings":"6MAkBG,IAACA,EAAYC,IACd,MAAMC,QAAEA,EAAOC,SAAEA,GAAaF,EACxBG,EAOR,SAAqBF,GACnB,MAAOG,EAAMC,GAAWC,EAAOC,WACzBC,EAAYF,EAAOG,OAAO,CAAE,GAC5BC,EAAiBJ,EAAOG,OAAOR,G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C,oBAAoB,kBAAmBT,GAC5ChC,EAAKyC,oBAAoB,eAAgBT,EAAmB,CAEpE,CACMtB,EAAK,gBACN,GACA,CAACV,EAAMU,IACH,CACLgC,UAAW,CAAC,UAAW,oBAAoBR,SAASzB,GACpDkC,IAAKzC,EAAO0C,aAAaC,IACnBA,IAAOzC,EAAUsB,QAAUoB,iBAAiBD,IAChD5C,EAAQ4C,EAAM,GACb,IAEP,CArFmBE,CAAYlD,GACvBmD,EAA4B,mBAAblD,EAA0BA,EAAS,CAAED,QAASE,EAAS2C,YAAexC,EAAO+C,SAASC,KAAKpD,GAC1G6C,EAAMQ,EAAgBpD,EAAS4C,IAuFvC,SAAuBS,GACrB,IAAIC,EAASC,OAAOC,yBAAyBH,EAAQxD,MAAO,QAAQ4D,IAChEC,EAAUJ,GAAU,mBAAoBA,GAAUA,EAAOK,eAC7D,GAAID,EACF,OAAOL,EAAQT,IAIjB,GAFAU,EAASC,OAAOC,yBAAyBH,EAAS,QAAQI,IAC1DC,EAAUJ,GAAU,mBAAoBA,GAAUA,EAAOK,eACrDD,EACF,OAAOL,EAAQxD,MAAM+C,IAEvB,OAAOS,EAAQxD,MAAM+C,KAAOS,EAAQT,GACtC,CAnG4CgB,CAAcX,IAExD,MADuC,mBAAblD,GACLC,EAAS2C,UAAYxC,EAAO0D,aAAaZ,EAAO,CAAEL,QAAS,IAAI,EAkFtF,SAASlB,EAAiBG,GACxB,OAAOA,GAAQO,eAAiB,MAClC,CAlFAxC,EAASkE,YAAc"}
@@ -0,0 +1,2 @@
1
+ import*as r from"react";import*as i from"react-dom";import{Slot as t}from"../../react-slot/dist/index.mjs";import{j as o}from"../../../../_virtual/jsx-runtime.mjs";var e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((i,e)=>{const a=r.forwardRef(((r,i)=>{const{asChild:a,...n}=r,m=a?t:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),o.jsx(m,{...n,ref:i})}));return a.displayName=`Primitive.${e}`,{...i,[e]:a}}),{});function a(r,t){r&&i.flushSync((()=>r.dispatchEvent(t)))}export{e as Primitive,a as dispatchDiscreteCustomEvent};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/Primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Primitive","reduce","primitive","node","Node","React","forwardRef","props","forwardedRef","asChild","primitiveProps","Comp","Slot","window","Symbol","for","jsx","ref","displayName","dispatchDiscreteCustomEvent","target","event","ReactDOM","flushSync","dispatchEvent"],"mappings":"oKAKA,IAkBIA,EAlBQ,CACV,IACA,SACA,MACA,OACA,KACA,KACA,MACA,QACA,QACA,KACA,MACA,KACA,IACA,OACA,MACA,MAEoBC,QAAO,CAACC,EAAWC,KACvC,MAAMC,EAAOC,EAAMC,YAAW,CAACC,EAAOC,KACpC,MAAMC,QAAEA,KAAYC,GAAmBH,EACjCI,EAAOF,EAAUG,EAAOT,EAI9B,MAHsB,oBAAXU,SACTA,OAAOC,OAAOC,IAAI,cAAe,GAEZC,EAAAA,IAAIL,EAAM,IAAKD,EAAgBO,IAAKT,GAAe,IAG5E,OADAJ,EAAKc,YAAc,aAAaf,IACzB,IAAKD,EAAWC,CAACA,GAAOC,EAAM,GACpC,IACH,SAASe,EAA4BC,EAAQC,GACvCD,GAAQE,EAASC,WAAU,IAAMH,EAAOI,cAAcH,IAC5D"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{createContextScope as a}from"../../react-context/dist/index.mjs";import{Primitive as r}from"../../react-primitive/dist/index.mjs";import{j as t}from"../../../../_virtual/jsx-runtime.mjs";var o="Progress",n=100,[i,s]=a(o),[u,l]=i(o),d=e.forwardRef(((e,a)=>{const{__scopeProgress:o,value:i=null,max:s,getValueLabel:l=p,...d}=e;!s&&0!==s||x(s)||console.error(`Invalid prop \`max\` of value \`${`${s}`}\` supplied to \`${"Progress"}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const m=x(s)?s:n;null===i||g(i,m)||console.error(function(e,a){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${a}\`. The \`value\` prop must be:\n - a positive number\n - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`}(`${i}`,"Progress"));const v=g(i,m)?i:null,j=c(v)?l(v,m):void 0;return t.jsx(u,{scope:o,value:v,max:m,children:t.jsx(r.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":c(v)?v:void 0,"aria-valuetext":j,role:"progressbar","data-state":f(v,m),"data-value":v??void 0,"data-max":m,...d,ref:a})})}));d.displayName=o;var m="ProgressIndicator",v=e.forwardRef(((e,a)=>{const{__scopeProgress:o,...n}=e,i=l(m,o);return t.jsx(r.div,{"data-state":f(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...n,ref:a})}));function p(e,a){return`${Math.round(e/a*100)}%`}function f(e,a){return null==e?"indeterminate":e===a?"complete":"loading"}function c(e){return"number"==typeof e}function x(e){return c(e)&&!isNaN(e)&&e>0}function g(e,a){return c(e)&&!isNaN(e)&&e<=a&&e>=0}v.displayName=m;var j=d,h=v;export{h as Indicator,d as Progress,v as ProgressIndicator,j as Root,s as createProgressScope};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-progress/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/progress/src/Progress.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PROGRESS_NAME = \"Progress\";\nvar DEFAULT_MAX = 100;\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar Progress = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeProgress,\n value: valueProp = null,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n ...progressProps\n } = props;\n if ((maxProp || maxProp === 0) && !isValidMaxNumber(maxProp)) {\n console.error(getInvalidMaxError(`${maxProp}`, \"Progress\"));\n }\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n if (valueProp !== null && !isValidValueNumber(valueProp, max)) {\n console.error(getInvalidValueError(`${valueProp}`, \"Progress\"));\n }\n const value = isValidValueNumber(valueProp, max) ? valueProp : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n ...progressProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nProgress.displayName = PROGRESS_NAME;\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeProgress, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n ...indicatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nProgressIndicator.displayName = INDICATOR_NAME;\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !isNaN(value) && value <= max && value >= 0;\n}\nfunction getInvalidMaxError(propValue, componentName) {\n return `Invalid prop \\`max\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. Only numbers greater than 0 are valid max values. Defaulting to \\`${DEFAULT_MAX}\\`.`;\n}\nfunction getInvalidValueError(propValue, componentName) {\n return `Invalid prop \\`value\\` of value \\`${propValue}\\` supplied to \\`${componentName}\\`. The \\`value\\` prop must be:\n - a positive number\n - less than the value passed to \\`max\\` (or ${DEFAULT_MAX} if no \\`max\\` prop is set)\n - \\`null\\` or \\`undefined\\` if the progress is indeterminate.\n\nDefaulting to \\`null\\`.`;\n}\nvar Root = Progress;\nvar Indicator = ProgressIndicator;\nexport {\n Indicator,\n Progress,\n ProgressIndicator,\n Root,\n createProgressScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PROGRESS_NAME","DEFAULT_MAX","createProgressContext","createProgressScope","createContextScope","ProgressProvider","useProgressContext","Progress","React","forwardRef","props","forwardedRef","__scopeProgress","value","valueProp","max","maxProp","getValueLabel","defaultGetValueLabel","progressProps","isValidMaxNumber","console","error","isValidValueNumber","propValue","componentName","getInvalidValueError","valueLabel","isNumber","jsx","scope","children","Primitive","div","role","getProgressState","ref","displayName","INDICATOR_NAME","ProgressIndicator","indicatorProps","context","Math","round","maxValue","isNaN","Root","Indicator"],"mappings":"0NAOA,IAAIA,EAAgB,WAChBC,EAAc,KACbC,EAAuBC,GAAuBC,EAAmBJ,IACjEK,EAAkBC,GAAsBJ,EAAsBF,GAC/DO,EAAWC,EAAMC,YACnB,CAACC,EAAOC,KACN,MAAMC,gBACJA,EACAC,MAAOC,EAAY,KACnBC,IAAKC,EAAOC,cACZA,EAAgBC,KACbC,GACDT,GACCM,GAAuB,IAAZA,GAAmBI,EAAiBJ,IAClDK,QAAQC,MA4DL,mCA5D8B,GAAGN,uBAAW,0FAEjD,MAAMD,EAAMK,EAAiBJ,GAAWA,EAAUf,EAChC,OAAda,GAAuBS,EAAmBT,EAAWC,IACvDM,QAAQC,MA0Dd,SAA8BE,EAAWC,GACvC,MAAO,qCAAqCD,qBAA6BC,mOAM3E,CAjEoBC,CAAqB,GAAGZ,IAAa,aAErD,MAAMD,EAAQU,EAAmBT,EAAWC,GAAOD,EAAY,KACzDa,EAAaC,EAASf,GAASI,EAAcJ,EAAOE,QAAO,EACjE,OAAuBc,EAAGA,IAACxB,EAAkB,CAAEyB,MAAOlB,EAAiBC,QAAOE,MAAKgB,SAA0BF,EAAGA,IAC9GG,EAAUC,IACV,CACE,gBAAiBlB,EACjB,gBAAiB,EACjB,gBAAiBa,EAASf,GAASA,OAAQ,EAC3C,iBAAkBc,EAClBO,KAAM,cACN,aAAcC,EAAiBtB,EAAOE,GACtC,aAAcF,QAAS,EACvB,WAAYE,KACTI,EACHiB,IAAKzB,KAEL,IAGRJ,EAAS8B,YAAcrC,EACvB,IAAIsC,EAAiB,oBACjBC,EAAoB/B,EAAMC,YAC5B,CAACC,EAAOC,KACN,MAAMC,gBAAEA,KAAoB4B,GAAmB9B,EACzC+B,EAAUnC,EAAmBgC,EAAgB1B,GACnD,OAAuBiB,EAAGA,IACxBG,EAAUC,IACV,CACE,aAAcE,EAAiBM,EAAQ5B,MAAO4B,EAAQ1B,KACtD,aAAc0B,EAAQ5B,YAAS,EAC/B,WAAY4B,EAAQ1B,OACjByB,EACHJ,IAAKzB,GAER,IAIL,SAASO,EAAqBL,EAAOE,GACnC,MAAO,GAAG2B,KAAKC,MAAM9B,EAAQE,EAAM,OACrC,CACA,SAASoB,EAAiBtB,EAAO+B,GAC/B,OAAgB,MAAT/B,EAAgB,gBAAkBA,IAAU+B,EAAW,WAAa,SAC7E,CACA,SAAShB,EAASf,GAChB,MAAwB,iBAAVA,CAChB,CACA,SAASO,EAAiBL,GACxB,OAAOa,EAASb,KAAS8B,MAAM9B,IAAQA,EAAM,CAC/C,CACA,SAASQ,EAAmBV,EAAOE,GACjC,OAAOa,EAASf,KAAWgC,MAAMhC,IAAUA,GAASE,GAAOF,GAAS,CACtE,CAfA0B,EAAkBF,YAAcC,EA2B7B,IAACQ,EAAOvC,EACPwC,EAAYR"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{composeEventHandlers as r}from"../../primitive/dist/index.mjs";import{useComposedRefs as o}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as t}from"../../react-context/dist/index.mjs";import{Primitive as a}from"../../react-primitive/dist/index.mjs";import{createRovingFocusGroupScope as i,Root as d,Item as n}from"../../react-roving-focus/dist/index.mjs";import{useControllableState as s}from"../../react-use-controllable-state/dist/index.mjs";import{useDirection as c}from"../../react-direction/dist/index.mjs";import{useSize as u}from"../../react-use-size/dist/index.mjs";import{usePrevious as l}from"../../react-use-previous/dist/index.mjs";import{Presence as p}from"../../react-presence/dist/index.mjs";import{j as m}from"../../../../_virtual/jsx-runtime.mjs";var f="Radio",[v,b]=t(f),[h,j]=v(f),x=e.forwardRef(((t,i)=>{const{__scopeRadio:d,name:n,checked:s=!1,required:c,disabled:u,value:l="on",onCheck:p,...f}=t,[v,b]=e.useState(null),j=o(i,(e=>b(e))),x=e.useRef(!1),k=!v||Boolean(v.closest("form"));return m.jsxs(h,{scope:d,checked:s,disabled:u,children:[m.jsx(a.button,{type:"button",role:"radio","aria-checked":s,"data-state":w(s),"data-disabled":u?"":void 0,disabled:u,value:l,...f,ref:j,onClick:r(t.onClick,(e=>{s||p?.(),k&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())}))}),k&&m.jsx(y,{control:v,bubbles:!x.current,name:n,value:l,checked:s,required:c,disabled:u,style:{transform:"translateX(-100%)"}})]})}));x.displayName=f;var k="RadioIndicator",R=e.forwardRef(((e,r)=>{const{__scopeRadio:o,forceMount:t,...i}=e,d=j(k,o);return m.jsx(p,{present:t||d.checked,children:m.jsx(a.span,{"data-state":w(d.checked),"data-disabled":d.disabled?"":void 0,...i,ref:r})})}));R.displayName=k;var y=r=>{const{control:o,checked:t,bubbles:a=!0,...i}=r,d=e.useRef(null),n=l(t),s=u(o);return e.useEffect((()=>{const e=d.current,r=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(r,"checked").set;if(n!==t&&o){const r=new Event("click",{bubbles:a});o.call(e,t),e.dispatchEvent(r)}}),[n,t,a]),m.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:d,style:{...r.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var g=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[E,_]=t(C,[i,b]),q=i(),G=b(),[I,L]=E(C),N=e.forwardRef(((e,r)=>{const{__scopeRadioGroup:o,name:t,defaultValue:i,value:n,required:u=!1,disabled:l=!1,orientation:p,dir:f,loop:v=!0,onValueChange:b,...h}=e,j=q(o),x=c(f),[k,R]=s({prop:n,defaultProp:i,onChange:b});return m.jsx(I,{scope:o,name:t,required:u,disabled:l,value:k,onValueChange:R,children:m.jsx(d,{asChild:!0,...j,orientation:p,dir:x,loop:v,children:m.jsx(a.div,{role:"radiogroup","aria-required":u,"aria-orientation":p,"data-disabled":l?"":void 0,dir:x,...h,ref:r})})})}));N.displayName=C;var A="RadioGroupItem",D=e.forwardRef(((t,a)=>{const{__scopeRadioGroup:i,disabled:d,...s}=t,c=L(A,i),u=c.disabled||d,l=q(i),p=G(i),f=e.useRef(null),v=o(a,f),b=c.value===s.value,h=e.useRef(!1);return e.useEffect((()=>{const e=e=>{g.includes(e.key)&&(h.current=!0)},r=()=>h.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",r)}}),[]),m.jsx(n,{asChild:!0,...l,focusable:!u,active:b,children:m.jsx(x,{disabled:u,required:c.required,checked:b,...p,...s,name:c.name,ref:v,onCheck:()=>c.onValueChange(s.value),onKeyDown:r((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:r(s.onFocus,(()=>{h.current&&f.current?.click()}))})})}));D.displayName=A;var P=e.forwardRef(((e,r)=>{const{__scopeRadioGroup:o,...t}=e,a=G(o);return m.jsx(R,{...a,...t,ref:r})}));P.displayName="RadioGroupIndicator";var V=N,F=D;export{F as Item,N as RadioGroup,P as RadioGroupIndicator,D as RadioGroupItem,V as Root,_ as createRadioGroupScope};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-radio-group/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/radio-group/src/RadioGroup.tsx\nimport * as React2 from \"react\";\nimport { composeEventHandlers as composeEventHandlers2 } from \"@radix-ui/primitive\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { Primitive as Primitive2 } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\n\n// packages/react/radio-group/src/Radio.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 { useSize } from \"@radix-ui/react-use-size\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar RADIO_NAME = \"Radio\";\nvar [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME);\nvar [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME);\nvar Radio = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRadio,\n name,\n checked = false,\n required,\n disabled,\n value = \"on\",\n onCheck,\n ...radioProps\n } = props;\n const [button, setButton] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));\n const hasConsumerStoppedPropagationRef = React.useRef(false);\n const isFormControl = button ? Boolean(button.closest(\"form\")) : true;\n return /* @__PURE__ */ jsxs(RadioProvider, { scope: __scopeRadio, checked, disabled, children: [\n /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"radio\",\n \"aria-checked\": checked,\n \"data-state\": getState(checked),\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n value,\n ...radioProps,\n ref: composedRefs,\n onClick: composeEventHandlers(props.onClick, (event) => {\n if (!checked) onCheck?.();\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n }\n ),\n isFormControl && /* @__PURE__ */ jsx(\n BubbleInput,\n {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name,\n value,\n checked,\n required,\n disabled,\n style: { transform: \"translateX(-100%)\" }\n }\n )\n ] });\n }\n);\nRadio.displayName = RADIO_NAME;\nvar INDICATOR_NAME = \"RadioIndicator\";\nvar RadioIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadio, forceMount, ...indicatorProps } = props;\n const context = useRadioContext(INDICATOR_NAME, __scopeRadio);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.checked, children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n \"data-state\": getState(context.checked),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n ...indicatorProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nRadioIndicator.displayName = INDICATOR_NAME;\nvar BubbleInput = (props) => {\n const { control, checked, bubbles = true, ...inputProps } = props;\n const ref = React.useRef(null);\n const prevChecked = usePrevious(checked);\n const controlSize = useSize(control);\n React.useEffect(() => {\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, \"checked\");\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event(\"click\", { bubbles });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [prevChecked, checked, bubbles]);\n return /* @__PURE__ */ jsx(\n \"input\",\n {\n type: \"radio\",\n \"aria-hidden\": true,\n defaultChecked: checked,\n ...inputProps,\n tabIndex: -1,\n ref,\n style: {\n ...props.style,\n ...controlSize,\n position: \"absolute\",\n pointerEvents: \"none\",\n opacity: 0,\n margin: 0\n }\n }\n );\n};\nfunction getState(checked) {\n return checked ? \"checked\" : \"unchecked\";\n}\n\n// packages/react/radio-group/src/RadioGroup.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nvar ARROW_KEYS = [\"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\"];\nvar RADIO_GROUP_NAME = \"RadioGroup\";\nvar [createRadioGroupContext, createRadioGroupScope] = createContextScope2(RADIO_GROUP_NAME, [\n createRovingFocusGroupScope,\n createRadioScope\n]);\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar useRadioScope = createRadioScope();\nvar [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME);\nvar RadioGroup = React2.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRadioGroup,\n name,\n defaultValue,\n value: valueProp,\n required = false,\n disabled = false,\n orientation,\n dir,\n loop = true,\n onValueChange,\n ...groupProps\n } = props;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);\n const direction = useDirection(dir);\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /* @__PURE__ */ jsx2(\n RadioGroupProvider,\n {\n scope: __scopeRadioGroup,\n name,\n required,\n disabled,\n value,\n onValueChange: setValue,\n children: /* @__PURE__ */ jsx2(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n orientation,\n dir: direction,\n loop,\n children: /* @__PURE__ */ jsx2(\n Primitive2.div,\n {\n role: \"radiogroup\",\n \"aria-required\": required,\n \"aria-orientation\": orientation,\n \"data-disabled\": disabled ? \"\" : void 0,\n dir: direction,\n ...groupProps,\n ref: forwardedRef\n }\n )\n }\n )\n }\n );\n }\n);\nRadioGroup.displayName = RADIO_GROUP_NAME;\nvar ITEM_NAME = \"RadioGroupItem\";\nvar RadioGroupItem = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadioGroup, disabled, ...itemProps } = props;\n const context = useRadioGroupContext(ITEM_NAME, __scopeRadioGroup);\n const isDisabled = context.disabled || disabled;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeRadioGroup);\n const radioScope = useRadioScope(__scopeRadioGroup);\n const ref = React2.useRef(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref);\n const checked = context.value === itemProps.value;\n const isArrowKeyPressedRef = React2.useRef(false);\n React2.useEffect(() => {\n const handleKeyDown = (event) => {\n if (ARROW_KEYS.includes(event.key)) {\n isArrowKeyPressedRef.current = true;\n }\n };\n const handleKeyUp = () => isArrowKeyPressedRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown);\n document.addEventListener(\"keyup\", handleKeyUp);\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n document.removeEventListener(\"keyup\", handleKeyUp);\n };\n }, []);\n return /* @__PURE__ */ jsx2(\n RovingFocusGroup.Item,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n focusable: !isDisabled,\n active: checked,\n children: /* @__PURE__ */ jsx2(\n Radio,\n {\n disabled: isDisabled,\n required: context.required,\n checked,\n ...radioScope,\n ...itemProps,\n name: context.name,\n ref: composedRefs,\n onCheck: () => context.onValueChange(itemProps.value),\n onKeyDown: composeEventHandlers2((event) => {\n if (event.key === \"Enter\") event.preventDefault();\n }),\n onFocus: composeEventHandlers2(itemProps.onFocus, () => {\n if (isArrowKeyPressedRef.current) ref.current?.click();\n })\n }\n )\n }\n );\n }\n);\nRadioGroupItem.displayName = ITEM_NAME;\nvar INDICATOR_NAME2 = \"RadioGroupIndicator\";\nvar RadioGroupIndicator = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeRadioGroup, ...indicatorProps } = props;\n const radioScope = useRadioScope(__scopeRadioGroup);\n return /* @__PURE__ */ jsx2(RadioIndicator, { ...radioScope, ...indicatorProps, ref: forwardedRef });\n }\n);\nRadioGroupIndicator.displayName = INDICATOR_NAME2;\nvar Root2 = RadioGroup;\nvar Item2 = RadioGroupItem;\nvar Indicator = RadioGroupIndicator;\nexport {\n Indicator,\n Item2 as Item,\n RadioGroup,\n RadioGroupIndicator,\n RadioGroupItem,\n Root2 as Root,\n createRadioGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["RADIO_NAME","createRadioContext","createRadioScope","createContextScope","RadioProvider","useRadioContext","Radio","React","forwardRef","props","forwardedRef","__scopeRadio","name","checked","required","disabled","value","onCheck","radioProps","button","setButton","useState","composedRefs","useComposedRefs","node","hasConsumerStoppedPropagationRef","useRef","isFormControl","Boolean","closest","jsxs","scope","children","jsx","Primitive","type","role","getState","ref","onClick","composeEventHandlers","event","current","isPropagationStopped","stopPropagation","BubbleInput","control","bubbles","style","transform","displayName","INDICATOR_NAME","RadioIndicator","forceMount","indicatorProps","context","Presence","present","span","inputProps","prevChecked","usePrevious","controlSize","useSize","useEffect","input","inputProto","window","HTMLInputElement","prototype","setChecked","Object","getOwnPropertyDescriptor","set","Event","call","dispatchEvent","defaultChecked","tabIndex","position","pointerEvents","opacity","margin","ARROW_KEYS","RADIO_GROUP_NAME","createRadioGroupContext","createRadioGroupScope","createContextScope2","createRovingFocusGroupScope","useRovingFocusGroupScope","useRadioScope","RadioGroupProvider","useRadioGroupContext","RadioGroup","React2","__scopeRadioGroup","defaultValue","valueProp","orientation","dir","loop","onValueChange","groupProps","rovingFocusGroupScope","direction","useDirection","setValue","useControllableState","prop","defaultProp","onChange","jsx2","RovingFocusGroup.Root","asChild","Primitive2","div","ITEM_NAME","RadioGroupItem","itemProps","isDisabled","radioScope","useComposedRefs2","isArrowKeyPressedRef","handleKeyDown","includes","key","handleKeyUp","document","addEventListener","removeEventListener","RovingFocusGroup.Item","focusable","active","onKeyDown","composeEventHandlers2","preventDefault","onFocus","click","RadioGroupIndicator","Root2","Item2"],"mappings":"ozBAuBA,IAAIA,EAAa,SACZC,EAAoBC,GAAoBC,EAAmBH,IAC3DI,EAAeC,GAAmBJ,EAAmBD,GACtDM,EAAQC,EAAMC,YAChB,CAACC,EAAOC,KACN,MAAMC,aACJA,EAAYC,KACZA,EAAIC,QACJA,GAAU,EAAKC,SACfA,EAAQC,SACRA,EAAQC,MACRA,EAAQ,KAAIC,QACZA,KACGC,GACDT,GACGU,EAAQC,GAAab,EAAMc,SAAS,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AAS,KAC5Cd,EAAqBhF,SAASJ,EAAII,SAAS+F,OAAO,OAK/D,IAGLpB,EAAenE,YAAckE,EAC7B,IACIsB,EAAsB5C,EAAOtF,YAC/B,CAACC,EAAOC,KACN,MAAMqF,kBAAEA,KAAsBzC,GAAmB7C,EAC3C+G,EAAa9B,EAAcK,GACjC,OAAuBgB,EAAI9E,IAACmB,EAAgB,IAAKoE,KAAelE,EAAgBhB,IAAK5B,GAAe,IAGxGgI,EAAoBxF,YARE,sBASnB,IAACyF,EAAQ9C,EACR+C,EAAQvB"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{composeEventHandlers as t}from"../../primitive/dist/index.mjs";import{createCollection as o}from"../../react-collection/dist/index.mjs";import{useComposedRefs as r}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as n}from"../../react-context/dist/index.mjs";import{useId as i}from"../../react-id/dist/index.mjs";import{Primitive as s}from"../../react-primitive/dist/index.mjs";import{useCallbackRef as c}from"../../react-use-callback-ref/dist/index.mjs";import{useControllableState as a}from"../../react-use-controllable-state/dist/index.mjs";import{useDirection as u}from"../../react-direction/dist/index.mjs";import{j as l}from"../../../../_virtual/jsx-runtime.mjs";var f="rovingFocusGroup.onEntryFocus",d={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[p,v,b]=o(m),[w,x]=n(m,[b]),[g,F]=w(m),j=e.forwardRef(((e,t)=>l.jsx(p.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(p.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(I,{...e,ref:t})})})));j.displayName=m;var I=e.forwardRef(((o,n)=>{const{__scopeRovingFocusGroup:i,orientation:m,loop:p=!1,dir:b,currentTabStopId:w,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:F,onEntryFocus:j,preventScrollOnEntryFocus:I=!1,...h}=o,R=e.useRef(null),y=r(n,R),S=u(b),[T=null,E]=a({prop:w,defaultProp:x,onChange:F}),[D,C]=e.useState(!1),_=c(j),k=v(i),G=e.useRef(!1),[K,L]=e.useState(0);return e.useEffect((()=>{const e=R.current;if(e)return e.addEventListener(f,_),()=>e.removeEventListener(f,_)}),[_]),l.jsx(g,{scope:i,orientation:m,dir:S,loop:p,currentTabStopId:T,onItemFocus:e.useCallback((e=>E(e)),[E]),onItemShiftTab:e.useCallback((()=>C(!0)),[]),onFocusableItemAdd:e.useCallback((()=>L((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>L((e=>e-1))),[]),children:l.jsx(s.div,{tabIndex:D||0===K?-1:0,"data-orientation":m,...h,ref:y,style:{outline:"none",...o.style},onMouseDown:t(o.onMouseDown,(()=>{G.current=!0})),onFocus:t(o.onFocus,(e=>{const t=!G.current;if(e.target===e.currentTarget&&t&&!D){const t=new CustomEvent(f,d);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));A([e.find((e=>e.active)),e.find((e=>e.id===T)),...e].filter(Boolean).map((e=>e.ref.current)),I)}}G.current=!1})),onBlur:t(o.onBlur,(()=>C(!1)))})})})),h="RovingFocusGroupItem",R=e.forwardRef(((o,r)=>{const{__scopeRovingFocusGroup:n,focusable:c=!0,active:a=!1,tabStopId:u,...f}=o,d=i(),m=u||d,b=F(h,n),w=b.currentTabStopId===m,x=v(n),{onFocusableItemAdd:g,onFocusableItemRemove:j}=b;return e.useEffect((()=>{if(c)return g(),()=>j()}),[c,g,j]),l.jsx(p.ItemSlot,{scope:n,id:m,focusable:c,active:a,children:l.jsx(s.span,{tabIndex:w?0:-1,"data-orientation":b.orientation,...f,ref:r,onMouseDown:t(o.onMouseDown,(e=>{c?b.onItemFocus(m):e.preventDefault()})),onFocus:t(o.onFocus,(()=>b.onItemFocus(m))),onKeyDown:t(o.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void b.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,o){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,o);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:y[r]}(e,b.orientation,b.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=x().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const i=n.indexOf(e.currentTarget);n=b.loop?(r=i+1,(o=n).map(((e,t)=>o[(r+t)%o.length]))):n.slice(i+1)}setTimeout((()=>A(n)))}var o,r}))})})}));R.displayName=h;var y={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e,t=!1){const o=document.activeElement;for(const r of e){if(r===o)return;if(r.focus({preventScroll:t}),document.activeElement!==o)return}}var S=j,T=R;export{T as Item,S as Root,j as RovingFocusGroup,R as RovingFocusGroupItem,x as createRovingFocusGroupScope};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/roving-focus/src/RovingFocusGroup.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","bubbles","cancelable","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","forwardRef","props","forwardedRef","jsx","Provider","scope","__scopeRovingFocusGroup","children","Slot","RovingFocusGroupImpl","ref","displayName","orientation","loop","dir","currentTabStopId","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","useRef","composedRefs","useComposedRefs","direction","useDirection","setCurrentTabStopId","useControllableState","prop","defaultProp","onChange","isTabbingBackOut","setIsTabbingBackOut","useState","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","useEffect","node","current","addEventListener","removeEventListener","onItemFocus","useCallback","tabStopId","onItemShiftTab","onFocusableItemAdd","prevCount","onFocusableItemRemove","Primitive","div","tabIndex","style","outline","onMouseDown","composeEventHandlers","onFocus","event","isKeyboardFocus","target","currentTarget","entryFocusEvent","CustomEvent","dispatchEvent","defaultPrevented","items","filter","item","focusable","focusFirst","find","active","id","Boolean","map","onBlur","ITEM_NAME","RovingFocusGroupItem","itemProps","autoId","useId","context","isCurrentTabStop","ItemSlot","span","preventDefault","onKeyDown","key","shiftKey","focusIntent","getDirectionAwareKey","includes","MAP_KEY_TO_FOCUS_INTENT","getFocusIntent","metaKey","ctrlKey","altKey","candidateNodes","reverse","currentIndex","indexOf","startIndex","array","_","index","length","slice","setTimeout","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","PageUp","Home","PageDown","End","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","document","activeElement","candidate","focus","Root","Item"],"mappings":"mtBAcA,IAAIA,EAAc,gCACdC,EAAgB,CAAEC,SAAS,EAAOC,YAAY,GAC9CC,EAAa,oBACZC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAA+BC,GAA+BC,EACjEP,EACA,CAACG,KAEEK,EAAqBC,GAAyBJ,EAA8BL,GAC7EU,EAAmBC,EAAMC,YAC3B,CAACC,EAAOC,IACiBC,MAAId,EAAWe,SAAU,CAAEC,MAAOJ,EAAMK,wBAAyBC,SAA0BJ,EAAAA,IAAId,EAAWmB,KAAM,CAAEH,MAAOJ,EAAMK,wBAAyBC,SAA0BJ,EAAGA,IAACM,EAAsB,IAAKR,EAAOS,IAAKR,UAGxPJ,EAAiBa,YAAcvB,EAC/B,IAAIqB,EAAuBV,EAAMC,YAAW,CAACC,EAAOC,KAClD,MAAMI,wBACJA,EAAuBM,YACvBA,EAAWC,KACXA,GAAO,EAAKC,IACZA,EACAC,iBAAkBC,EAAoBC,wBACtCA,EAAuBC,yBACvBA,EAAwBC,aACxBA,EAAYC,0BACZA,GAA4B,KACzB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IAAK,QAYP,SAAS9C,EAAW+C,EAAYC,GAAgB,GAC9C,MAAMC,EAA6BC,SAASC,cAC5C,IAAK,MAAMC,KAAaL,EAAY,CAClC,GAAIK,IAAcH,EAA4B,OAE9C,GADAG,EAAUC,MAAM,CAAEL,kBACdE,SAASC,gBAAkBF,EAA4B,MAC5D,CACH,CAIG,IAACK,EAAOjI,EACPkI,EAAO/C"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import{Primitive as r}from"../../react-primitive/dist/index.mjs";import{Presence as t}from"../../react-presence/dist/index.mjs";import{createContextScope as o}from"../../react-context/dist/index.mjs";import{useComposedRefs as n}from"../../react-compose-refs/dist/index.mjs";import{useCallbackRef as l}from"../../react-use-callback-ref/dist/index.mjs";import{useDirection as i}from"../../react-direction/dist/index.mjs";import{useLayoutEffect as s}from"../../react-use-layout-effect/dist/index.mjs";import{clamp as a}from"../../number/dist/index.mjs";import{composeEventHandlers as c}from"../../primitive/dist/index.mjs";import{j as d}from"../../../../_virtual/jsx-runtime.mjs";var u="ScrollArea",[p,f]=o(u),[h,w]=p(u),v=e.forwardRef(((t,o)=>{const{__scopeScrollArea:l,type:s="hover",dir:a,scrollHideDelay:c=600,...u}=t,[p,f]=e.useState(null),[w,v]=e.useState(null),[m,b]=e.useState(null),[g,S]=e.useState(null),[x,y]=e.useState(null),[E,T]=e.useState(0),[C,R]=e.useState(0),[j,P]=e.useState(!1),[_,L]=e.useState(!1),D=n(o,(e=>f(e))),A=i(a);return d.jsx(h,{scope:l,type:s,dir:A,scrollHideDelay:c,scrollArea:p,viewport:w,onViewportChange:v,content:m,onContentChange:b,scrollbarX:g,onScrollbarXChange:S,scrollbarXEnabled:j,onScrollbarXEnabledChange:P,scrollbarY:x,onScrollbarYChange:y,scrollbarYEnabled:_,onScrollbarYEnabledChange:L,onCornerWidthChange:T,onCornerHeightChange:R,children:d.jsx(r.div,{dir:A,...u,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":E+"px","--radix-scroll-area-corner-height":C+"px",...t.style}})})}));v.displayName=u;var m="ScrollAreaViewport",b=e.forwardRef(((t,o)=>{const{__scopeScrollArea:l,children:i,nonce:s,...a}=t,c=w(m,l),u=e.useRef(null),p=n(o,u,c.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx(r.div,{"data-radix-scroll-area-viewport":"",...a,ref:p,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...t.style},children:d.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})}));b.displayName=m;var g="ScrollAreaScrollbar",S=e.forwardRef(((r,t)=>{const{forceMount:o,...n}=r,l=w(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=l,a="horizontal"===r.orientation;return e.useEffect((()=>(a?i(!0):s(!0),()=>{a?i(!1):s(!1)})),[a,i,s]),"hover"===l.type?d.jsx(x,{...n,ref:t,forceMount:o}):"scroll"===l.type?d.jsx(y,{...n,ref:t,forceMount:o}):"auto"===l.type?d.jsx(E,{...n,ref:t,forceMount:o}):"always"===l.type?d.jsx(T,{...n,ref:t}):null}));S.displayName=g;var x=e.forwardRef(((r,o)=>{const{forceMount:n,...l}=r,i=w(g,r.__scopeScrollArea),[s,a]=e.useState(!1);return e.useEffect((()=>{const e=i.scrollArea;let r=0;if(e){const t=()=>{window.clearTimeout(r),a(!0)},o=()=>{r=window.setTimeout((()=>a(!1)),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",o),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",o)}}}),[i.scrollArea,i.scrollHideDelay]),d.jsx(t,{present:n||s,children:d.jsx(E,{"data-state":s?"visible":"hidden",...l,ref:o})})})),y=e.forwardRef(((r,o)=>{const{forceMount:n,...l}=r,i=w(g,r.__scopeScrollArea),s="horizontal"===r.orientation,a=B((()=>p("SCROLL_END")),100),[u,p]=(f="hidden",h={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},e.useReducer(((e,r)=>h[e][r]??e),f));var f,h;return e.useEffect((()=>{if("idle"===u){const e=window.setTimeout((()=>p("HIDE")),i.scrollHideDelay);return()=>window.clearTimeout(e)}}),[u,i.scrollHideDelay,p]),e.useEffect((()=>{const e=i.viewport,r=s?"scrollLeft":"scrollTop";if(e){let t=e[r];const o=()=>{const o=e[r];t!==o&&(p("SCROLL"),a()),t=o};return e.addEventListener("scroll",o),()=>e.removeEventListener("scroll",o)}}),[i.viewport,s,p,a]),d.jsx(t,{present:n||"hidden"!==u,children:d.jsx(T,{"data-state":"hidden"===u?"hidden":"visible",...l,ref:o,onPointerEnter:c(r.onPointerEnter,(()=>p("POINTER_ENTER"))),onPointerLeave:c(r.onPointerLeave,(()=>p("POINTER_LEAVE")))})})})),E=e.forwardRef(((r,o)=>{const n=w(g,r.__scopeScrollArea),{forceMount:l,...i}=r,[s,a]=e.useState(!1),c="horizontal"===r.orientation,u=B((()=>{if(n.viewport){const e=n.viewport.offsetWidth<n.viewport.scrollWidth,r=n.viewport.offsetHeight<n.viewport.scrollHeight;a(c?e:r)}}),10);return k(n.viewport,u),k(n.content,u),d.jsx(t,{present:l||s,children:d.jsx(T,{"data-state":s?"visible":"hidden",...i,ref:o})})})),T=e.forwardRef(((r,t)=>{const{orientation:o="vertical",...n}=r,l=w(g,r.__scopeScrollArea),i=e.useRef(null),s=e.useRef(0),[a,c]=e.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=X(a.viewport,a.content),p={...n,sizes:a,onSizesChange:c,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,r){return function(e,r,t,o="ltr"){const n=Y(t),l=n/2,i=r||l,s=n-i,a=t.scrollbar.paddingStart+i,c=t.scrollbar.size-t.scrollbar.paddingEnd-s,d=t.content-t.viewport,u="ltr"===o?[0,d]:[-1*d,0];return M([a,c],u)(e)}(e,s.current,a,r)}return"horizontal"===o?d.jsx(C,{...p,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){const e=I(l.viewport.scrollLeft,a,l.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===o?d.jsx(R,{...p,ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){const e=I(l.viewport.scrollTop,a);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null})),C=e.forwardRef(((r,t)=>{const{sizes:o,onSizesChange:l,...i}=r,s=w(g,r.__scopeScrollArea),[a,c]=e.useState(),u=e.useRef(null),p=n(t,u,s.onScrollbarXChange);return e.useEffect((()=>{u.current&&c(getComputedStyle(u.current))}),[u]),d.jsx(_,{"data-orientation":"horizontal",...i,ref:p,sizes:o,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Y(o)+"px",...r.style},onThumbPointerDown:e=>r.onThumbPointerDown(e.x),onDragScroll:e=>r.onDragScroll(e.x),onWheelScroll:(e,t)=>{if(s.viewport){const o=s.viewport.scrollLeft+e.deltaX;r.onWheelScroll(o),O(o,t)&&e.preventDefault()}},onResize:()=>{u.current&&s.viewport&&a&&l({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:W(a.paddingLeft),paddingEnd:W(a.paddingRight)}})}})})),R=e.forwardRef(((r,t)=>{const{sizes:o,onSizesChange:l,...i}=r,s=w(g,r.__scopeScrollArea),[a,c]=e.useState(),u=e.useRef(null),p=n(t,u,s.onScrollbarYChange);return e.useEffect((()=>{u.current&&c(getComputedStyle(u.current))}),[u]),d.jsx(_,{"data-orientation":"vertical",...i,ref:p,sizes:o,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Y(o)+"px",...r.style},onThumbPointerDown:e=>r.onThumbPointerDown(e.y),onDragScroll:e=>r.onDragScroll(e.y),onWheelScroll:(e,t)=>{if(s.viewport){const o=s.viewport.scrollTop+e.deltaY;r.onWheelScroll(o),O(o,t)&&e.preventDefault()}},onResize:()=>{u.current&&s.viewport&&a&&l({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:W(a.paddingTop),paddingEnd:W(a.paddingBottom)}})}})})),[j,P]=p(g),_=e.forwardRef(((t,o)=>{const{__scopeScrollArea:i,sizes:s,hasThumb:a,onThumbChange:u,onThumbPointerUp:p,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:m,onResize:b,...S}=t,x=w(g,i),[y,E]=e.useState(null),T=n(o,(e=>E(e))),C=e.useRef(null),R=e.useRef(""),P=x.viewport,_=s.content-s.viewport,L=l(m),D=l(h),A=B(b,10);function z(e){if(C.current){const r=e.clientX-C.current.left,t=e.clientY-C.current.top;v({x:r,y:t})}}return e.useEffect((()=>{const e=e=>{const r=e.target,t=y?.contains(r);t&&L(e,_)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}),[P,y,_,L]),e.useEffect(D,[s,D]),k(y,A),k(x.content,A),d.jsx(j,{scope:i,scrollbar:y,hasThumb:a,onThumbChange:l(u),onThumbPointerUp:l(p),onThumbPositionChange:D,onThumbPointerDown:l(f),children:d.jsx(r.div,{...S,ref:T,style:{position:"absolute",...S.style},onPointerDown:c(t.onPointerDown,(e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),C.current=y.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),z(e)}})),onPointerMove:c(t.onPointerMove,z),onPointerUp:c(t.onPointerUp,(e=>{const r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=R.current,x.viewport&&(x.viewport.style.scrollBehavior=""),C.current=null}))})})})),L="ScrollAreaThumb",D=e.forwardRef(((e,r)=>{const{forceMount:o,...n}=e,l=P(L,e.__scopeScrollArea);return d.jsx(t,{present:o||l.hasThumb,children:d.jsx(A,{ref:r,...n})})})),A=e.forwardRef(((t,o)=>{const{__scopeScrollArea:l,style:i,...s}=t,a=w(L,l),u=P(L,l),{onThumbPositionChange:p}=u,f=n(o,(e=>u.onThumbChange(e))),h=e.useRef(),v=B((()=>{h.current&&(h.current(),h.current=void 0)}),100);return e.useEffect((()=>{const e=a.viewport;if(e){const r=()=>{if(v(),!h.current){const r=U(e,p);h.current=r,p()}};return p(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}}),[a.viewport,v,p]),d.jsx(r.div,{"data-state":u.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:c(t.onPointerDownCapture,(e=>{const r=e.target.getBoundingClientRect(),t=e.clientX-r.left,o=e.clientY-r.top;u.onThumbPointerDown({x:t,y:o})})),onPointerUp:c(t.onPointerUp,u.onThumbPointerUp)})}));D.displayName=L;var z="ScrollAreaCorner",H=e.forwardRef(((e,r)=>{const t=w(z,e.__scopeScrollArea),o=Boolean(t.scrollbarX&&t.scrollbarY);return"scroll"!==t.type&&o?d.jsx(N,{...e,ref:r}):null}));H.displayName=z;var N=e.forwardRef(((t,o)=>{const{__scopeScrollArea:n,...l}=t,i=w(z,n),[s,a]=e.useState(0),[c,u]=e.useState(0),p=Boolean(s&&c);return k(i.scrollbarX,(()=>{const e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),u(e)})),k(i.scrollbarY,(()=>{const e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),a(e)})),p?d.jsx(r.div,{...l,ref:o,style:{width:s,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...t.style}}):null}));function W(e){return e?parseInt(e,10):0}function X(e,r){const t=e/r;return isNaN(t)?0:t}function Y(e){const r=X(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-t)*r;return Math.max(o,18)}function I(e,r,t="ltr"){const o=Y(r),n=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-n,i=r.content-r.viewport,s=l-o,c=a(e,"ltr"===t?[0,i]:[-1*i,0]);return M([0,i],[0,s])(c)}function M(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(t-e[0])}}function O(e,r){return e>0&&e<r}var U=(e,r=(()=>{}))=>{let t={left:e.scrollLeft,top:e.scrollTop},o=0;return function n(){const l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,s=t.top!==l.top;(i||s)&&r(),t=l,o=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(o)};function B(r,t){const o=l(r),n=e.useRef(0);return e.useEffect((()=>()=>window.clearTimeout(n.current)),[]),e.useCallback((()=>{window.clearTimeout(n.current),n.current=window.setTimeout(o,t)}),[o,t])}function k(e,r){const t=l(r);s((()=>{let r=0;if(e){const o=new ResizeObserver((()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)}));return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}}),[e,t])}var F=v,V=b,q=S,$=D,G=H;export{G as Corner,F as Root,v as ScrollArea,H as ScrollAreaCorner,S as ScrollAreaScrollbar,D as ScrollAreaThumb,b as ScrollAreaViewport,q as Scrollbar,$ as Thumb,V as Viewport,f as createScrollAreaScope};
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/scroll-area/src/ScrollArea.tsx\nimport * as React2 from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { clamp } from \"@radix-ui/number\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\n\n// packages/react/scroll-area/src/useStateMachine.ts\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/scroll-area/src/ScrollArea.tsx\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar SCROLL_AREA_NAME = \"ScrollArea\";\nvar [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME);\nvar [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);\nvar ScrollArea = React2.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeScrollArea,\n type = \"hover\",\n dir,\n scrollHideDelay = 600,\n ...scrollAreaProps\n } = props;\n const [scrollArea, setScrollArea] = React2.useState(null);\n const [viewport, setViewport] = React2.useState(null);\n const [content, setContent] = React2.useState(null);\n const [scrollbarX, setScrollbarX] = React2.useState(null);\n const [scrollbarY, setScrollbarY] = React2.useState(null);\n const [cornerWidth, setCornerWidth] = React2.useState(0);\n const [cornerHeight, setCornerHeight] = React2.useState(0);\n const [scrollbarXEnabled, setScrollbarXEnabled] = React2.useState(false);\n const [scrollbarYEnabled, setScrollbarYEnabled] = React2.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setScrollArea(node));\n const direction = useDirection(dir);\n return /* @__PURE__ */ jsx(\n ScrollAreaProvider,\n {\n scope: __scopeScrollArea,\n type,\n dir: direction,\n scrollHideDelay,\n scrollArea,\n viewport,\n onViewportChange: setViewport,\n content,\n onContentChange: setContent,\n scrollbarX,\n onScrollbarXChange: setScrollbarX,\n scrollbarXEnabled,\n onScrollbarXEnabledChange: setScrollbarXEnabled,\n scrollbarY,\n onScrollbarYChange: setScrollbarY,\n scrollbarYEnabled,\n onScrollbarYEnabledChange: setScrollbarYEnabled,\n onCornerWidthChange: setCornerWidth,\n onCornerHeightChange: setCornerHeight,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n dir: direction,\n ...scrollAreaProps,\n ref: composedRefs,\n style: {\n position: \"relative\",\n // Pass corner sizes as CSS vars to reduce re-renders of context consumers\n [\"--radix-scroll-area-corner-width\"]: cornerWidth + \"px\",\n [\"--radix-scroll-area-corner-height\"]: cornerHeight + \"px\",\n ...props.style\n }\n }\n )\n }\n );\n }\n);\nScrollArea.displayName = SCROLL_AREA_NAME;\nvar VIEWPORT_NAME = \"ScrollAreaViewport\";\nvar ScrollAreaViewport = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeScrollArea, children, nonce, ...viewportProps } = props;\n const context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea);\n const ref = React2.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"style\",\n {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`\n },\n nonce\n }\n ),\n /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-scroll-area-viewport\": \"\",\n ...viewportProps,\n ref: composedRefs,\n style: {\n /**\n * We don't support `visible` because the intention is to have at least one scrollbar\n * if this component is used and `visible` will behave like `auto` in that case\n * https://developer.mozilla.org/en-US/docs/Web/CSS/overflowed#description\n *\n * We don't handle `auto` because the intention is for the native implementation\n * to be hidden if using this component. We just want to ensure the node is scrollable\n * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent\n * the browser from having to work out whether to render native scrollbars or not,\n * we tell it to with the intention of hiding them in CSS.\n */\n overflowX: context.scrollbarXEnabled ? \"scroll\" : \"hidden\",\n overflowY: context.scrollbarYEnabled ? \"scroll\" : \"hidden\",\n ...props.style\n },\n children: /* @__PURE__ */ jsx(\"div\", { ref: context.onContentChange, style: { minWidth: \"100%\", display: \"table\" }, children })\n }\n )\n ] });\n }\n);\nScrollAreaViewport.displayName = VIEWPORT_NAME;\nvar SCROLLBAR_NAME = \"ScrollAreaScrollbar\";\nvar ScrollAreaScrollbar = React2.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context;\n const isHorizontal = props.orientation === \"horizontal\";\n React2.useEffect(() => {\n isHorizontal ? onScrollbarXEnabledChange(true) : onScrollbarYEnabledChange(true);\n return () => {\n isHorizontal ? onScrollbarXEnabledChange(false) : onScrollbarYEnabledChange(false);\n };\n }, [isHorizontal, onScrollbarXEnabledChange, onScrollbarYEnabledChange]);\n return context.type === \"hover\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarHover, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"scroll\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarScroll, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"auto\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarAuto, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"always\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, { ...scrollbarProps, ref: forwardedRef }) : null;\n }\n);\nScrollAreaScrollbar.displayName = SCROLLBAR_NAME;\nvar ScrollAreaScrollbarHover = React2.forwardRef((props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [visible, setVisible] = React2.useState(false);\n React2.useEffect(() => {\n const scrollArea = context.scrollArea;\n let hideTimer = 0;\n if (scrollArea) {\n const handlePointerEnter = () => {\n window.clearTimeout(hideTimer);\n setVisible(true);\n };\n const handlePointerLeave = () => {\n hideTimer = window.setTimeout(() => setVisible(false), context.scrollHideDelay);\n };\n scrollArea.addEventListener(\"pointerenter\", handlePointerEnter);\n scrollArea.addEventListener(\"pointerleave\", handlePointerLeave);\n return () => {\n window.clearTimeout(hideTimer);\n scrollArea.removeEventListener(\"pointerenter\", handlePointerEnter);\n scrollArea.removeEventListener(\"pointerleave\", handlePointerLeave);\n };\n }\n }, [context.scrollArea, context.scrollHideDelay]);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || visible, children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarAuto,\n {\n \"data-state\": visible ? \"visible\" : \"hidden\",\n ...scrollbarProps,\n ref: forwardedRef\n }\n ) });\n});\nvar ScrollAreaScrollbarScroll = React2.forwardRef((props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const isHorizontal = props.orientation === \"horizontal\";\n const debounceScrollEnd = useDebounceCallback(() => send(\"SCROLL_END\"), 100);\n const [state, send] = useStateMachine(\"hidden\", {\n hidden: {\n SCROLL: \"scrolling\"\n },\n scrolling: {\n SCROLL_END: \"idle\",\n POINTER_ENTER: \"interacting\"\n },\n interacting: {\n SCROLL: \"interacting\",\n POINTER_LEAVE: \"idle\"\n },\n idle: {\n HIDE: \"hidden\",\n SCROLL: \"scrolling\",\n POINTER_ENTER: \"interacting\"\n }\n });\n React2.useEffect(() => {\n if (state === \"idle\") {\n const hideTimer = window.setTimeout(() => send(\"HIDE\"), context.scrollHideDelay);\n return () => window.clearTimeout(hideTimer);\n }\n }, [state, context.scrollHideDelay, send]);\n React2.useEffect(() => {\n const viewport = context.viewport;\n const scrollDirection = isHorizontal ? \"scrollLeft\" : \"scrollTop\";\n if (viewport) {\n let prevScrollPos = viewport[scrollDirection];\n const handleScroll = () => {\n const scrollPos = viewport[scrollDirection];\n const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;\n if (hasScrollInDirectionChanged) {\n send(\"SCROLL\");\n debounceScrollEnd();\n }\n prevScrollPos = scrollPos;\n };\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }\n }, [context.viewport, isHorizontal, send, debounceScrollEnd]);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || state !== \"hidden\", children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarVisible,\n {\n \"data-state\": state === \"hidden\" ? \"hidden\" : \"visible\",\n ...scrollbarProps,\n ref: forwardedRef,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, () => send(\"POINTER_ENTER\")),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, () => send(\"POINTER_LEAVE\"))\n }\n ) });\n});\nvar ScrollAreaScrollbarAuto = React2.forwardRef((props, forwardedRef) => {\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const { forceMount, ...scrollbarProps } = props;\n const [visible, setVisible] = React2.useState(false);\n const isHorizontal = props.orientation === \"horizontal\";\n const handleResize = useDebounceCallback(() => {\n if (context.viewport) {\n const isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth;\n const isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight;\n setVisible(isHorizontal ? isOverflowX : isOverflowY);\n }\n }, 10);\n useResizeObserver(context.viewport, handleResize);\n useResizeObserver(context.content, handleResize);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || visible, children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarVisible,\n {\n \"data-state\": visible ? \"visible\" : \"hidden\",\n ...scrollbarProps,\n ref: forwardedRef\n }\n ) });\n});\nvar ScrollAreaScrollbarVisible = React2.forwardRef((props, forwardedRef) => {\n const { orientation = \"vertical\", ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const thumbRef = React2.useRef(null);\n const pointerOffsetRef = React2.useRef(0);\n const [sizes, setSizes] = React2.useState({\n content: 0,\n viewport: 0,\n scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }\n });\n const thumbRatio = getThumbRatio(sizes.viewport, sizes.content);\n const commonProps = {\n ...scrollbarProps,\n sizes,\n onSizesChange: setSizes,\n hasThumb: Boolean(thumbRatio > 0 && thumbRatio < 1),\n onThumbChange: (thumb) => thumbRef.current = thumb,\n onThumbPointerUp: () => pointerOffsetRef.current = 0,\n onThumbPointerDown: (pointerPos) => pointerOffsetRef.current = pointerPos\n };\n function getScrollPosition(pointerPos, dir) {\n return getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, dir);\n }\n if (orientation === \"horizontal\") {\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarX,\n {\n ...commonProps,\n ref: forwardedRef,\n onThumbPositionChange: () => {\n if (context.viewport && thumbRef.current) {\n const scrollPos = context.viewport.scrollLeft;\n const offset = getThumbOffsetFromScroll(scrollPos, sizes, context.dir);\n thumbRef.current.style.transform = `translate3d(${offset}px, 0, 0)`;\n }\n },\n onWheelScroll: (scrollPos) => {\n if (context.viewport) context.viewport.scrollLeft = scrollPos;\n },\n onDragScroll: (pointerPos) => {\n if (context.viewport) {\n context.viewport.scrollLeft = getScrollPosition(pointerPos, context.dir);\n }\n }\n }\n );\n }\n if (orientation === \"vertical\") {\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarY,\n {\n ...commonProps,\n ref: forwardedRef,\n onThumbPositionChange: () => {\n if (context.viewport && thumbRef.current) {\n const scrollPos = context.viewport.scrollTop;\n const offset = getThumbOffsetFromScroll(scrollPos, sizes);\n thumbRef.current.style.transform = `translate3d(0, ${offset}px, 0)`;\n }\n },\n onWheelScroll: (scrollPos) => {\n if (context.viewport) context.viewport.scrollTop = scrollPos;\n },\n onDragScroll: (pointerPos) => {\n if (context.viewport) context.viewport.scrollTop = getScrollPosition(pointerPos);\n }\n }\n );\n }\n return null;\n});\nvar ScrollAreaScrollbarX = React2.forwardRef((props, forwardedRef) => {\n const { sizes, onSizesChange, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [computedStyle, setComputedStyle] = React2.useState();\n const ref = React2.useRef(null);\n const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarXChange);\n React2.useEffect(() => {\n if (ref.current) setComputedStyle(getComputedStyle(ref.current));\n }, [ref]);\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarImpl,\n {\n \"data-orientation\": \"horizontal\",\n ...scrollbarProps,\n ref: composeRefs,\n sizes,\n style: {\n bottom: 0,\n left: context.dir === \"rtl\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n right: context.dir === \"ltr\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n [\"--radix-scroll-area-thumb-width\"]: getThumbSize(sizes) + \"px\",\n ...props.style\n },\n onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x),\n onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x),\n onWheelScroll: (event, maxScrollPos) => {\n if (context.viewport) {\n const scrollPos = context.viewport.scrollLeft + event.deltaX;\n props.onWheelScroll(scrollPos);\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n event.preventDefault();\n }\n }\n },\n onResize: () => {\n if (ref.current && context.viewport && computedStyle) {\n onSizesChange({\n content: context.viewport.scrollWidth,\n viewport: context.viewport.offsetWidth,\n scrollbar: {\n size: ref.current.clientWidth,\n paddingStart: toInt(computedStyle.paddingLeft),\n paddingEnd: toInt(computedStyle.paddingRight)\n }\n });\n }\n }\n }\n );\n});\nvar ScrollAreaScrollbarY = React2.forwardRef((props, forwardedRef) => {\n const { sizes, onSizesChange, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [computedStyle, setComputedStyle] = React2.useState();\n const ref = React2.useRef(null);\n const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarYChange);\n React2.useEffect(() => {\n if (ref.current) setComputedStyle(getComputedStyle(ref.current));\n }, [ref]);\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarImpl,\n {\n \"data-orientation\": \"vertical\",\n ...scrollbarProps,\n ref: composeRefs,\n sizes,\n style: {\n top: 0,\n right: context.dir === \"ltr\" ? 0 : void 0,\n left: context.dir === \"rtl\" ? 0 : void 0,\n bottom: \"var(--radix-scroll-area-corner-height)\",\n [\"--radix-scroll-area-thumb-height\"]: getThumbSize(sizes) + \"px\",\n ...props.style\n },\n onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y),\n onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.y),\n onWheelScroll: (event, maxScrollPos) => {\n if (context.viewport) {\n const scrollPos = context.viewport.scrollTop + event.deltaY;\n props.onWheelScroll(scrollPos);\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n event.preventDefault();\n }\n }\n },\n onResize: () => {\n if (ref.current && context.viewport && computedStyle) {\n onSizesChange({\n content: context.viewport.scrollHeight,\n viewport: context.viewport.offsetHeight,\n scrollbar: {\n size: ref.current.clientHeight,\n paddingStart: toInt(computedStyle.paddingTop),\n paddingEnd: toInt(computedStyle.paddingBottom)\n }\n });\n }\n }\n }\n );\n});\nvar [ScrollbarProvider, useScrollbarContext] = createScrollAreaContext(SCROLLBAR_NAME);\nvar ScrollAreaScrollbarImpl = React2.forwardRef((props, forwardedRef) => {\n const {\n __scopeScrollArea,\n sizes,\n hasThumb,\n onThumbChange,\n onThumbPointerUp,\n onThumbPointerDown,\n onThumbPositionChange,\n onDragScroll,\n onWheelScroll,\n onResize,\n ...scrollbarProps\n } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, __scopeScrollArea);\n const [scrollbar, setScrollbar] = React2.useState(null);\n const composeRefs = useComposedRefs(forwardedRef, (node) => setScrollbar(node));\n const rectRef = React2.useRef(null);\n const prevWebkitUserSelectRef = React2.useRef(\"\");\n const viewport = context.viewport;\n const maxScrollPos = sizes.content - sizes.viewport;\n const handleWheelScroll = useCallbackRef(onWheelScroll);\n const handleThumbPositionChange = useCallbackRef(onThumbPositionChange);\n const handleResize = useDebounceCallback(onResize, 10);\n function handleDragScroll(event) {\n if (rectRef.current) {\n const x = event.clientX - rectRef.current.left;\n const y = event.clientY - rectRef.current.top;\n onDragScroll({ x, y });\n }\n }\n React2.useEffect(() => {\n const handleWheel = (event) => {\n const element = event.target;\n const isScrollbarWheel = scrollbar?.contains(element);\n if (isScrollbarWheel) handleWheelScroll(event, maxScrollPos);\n };\n document.addEventListener(\"wheel\", handleWheel, { passive: false });\n return () => document.removeEventListener(\"wheel\", handleWheel, { passive: false });\n }, [viewport, scrollbar, maxScrollPos, handleWheelScroll]);\n React2.useEffect(handleThumbPositionChange, [sizes, handleThumbPositionChange]);\n useResizeObserver(scrollbar, handleResize);\n useResizeObserver(context.content, handleResize);\n return /* @__PURE__ */ jsx(\n ScrollbarProvider,\n {\n scope: __scopeScrollArea,\n scrollbar,\n hasThumb,\n onThumbChange: useCallbackRef(onThumbChange),\n onThumbPointerUp: useCallbackRef(onThumbPointerUp),\n onThumbPositionChange: handleThumbPositionChange,\n onThumbPointerDown: useCallbackRef(onThumbPointerDown),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...scrollbarProps,\n ref: composeRefs,\n style: { position: \"absolute\", ...scrollbarProps.style },\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n const mainPointer = 0;\n if (event.button === mainPointer) {\n const element = event.target;\n element.setPointerCapture(event.pointerId);\n rectRef.current = scrollbar.getBoundingClientRect();\n prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect;\n document.body.style.webkitUserSelect = \"none\";\n if (context.viewport) context.viewport.style.scrollBehavior = \"auto\";\n handleDragScroll(event);\n }\n }),\n onPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll),\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n const element = event.target;\n if (element.hasPointerCapture(event.pointerId)) {\n element.releasePointerCapture(event.pointerId);\n }\n document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current;\n if (context.viewport) context.viewport.style.scrollBehavior = \"\";\n rectRef.current = null;\n })\n }\n )\n }\n );\n});\nvar THUMB_NAME = \"ScrollAreaThumb\";\nvar ScrollAreaThumb = React2.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...thumbProps } = props;\n const scrollbarContext = useScrollbarContext(THUMB_NAME, props.__scopeScrollArea);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || scrollbarContext.hasThumb, children: /* @__PURE__ */ jsx(ScrollAreaThumbImpl, { ref: forwardedRef, ...thumbProps }) });\n }\n);\nvar ScrollAreaThumbImpl = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeScrollArea, style, ...thumbProps } = props;\n const scrollAreaContext = useScrollAreaContext(THUMB_NAME, __scopeScrollArea);\n const scrollbarContext = useScrollbarContext(THUMB_NAME, __scopeScrollArea);\n const { onThumbPositionChange } = scrollbarContext;\n const composedRef = useComposedRefs(\n forwardedRef,\n (node) => scrollbarContext.onThumbChange(node)\n );\n const removeUnlinkedScrollListenerRef = React2.useRef();\n const debounceScrollEnd = useDebounceCallback(() => {\n if (removeUnlinkedScrollListenerRef.current) {\n removeUnlinkedScrollListenerRef.current();\n removeUnlinkedScrollListenerRef.current = void 0;\n }\n }, 100);\n React2.useEffect(() => {\n const viewport = scrollAreaContext.viewport;\n if (viewport) {\n const handleScroll = () => {\n debounceScrollEnd();\n if (!removeUnlinkedScrollListenerRef.current) {\n const listener = addUnlinkedScrollListener(viewport, onThumbPositionChange);\n removeUnlinkedScrollListenerRef.current = listener;\n onThumbPositionChange();\n }\n };\n onThumbPositionChange();\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }\n }, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": scrollbarContext.hasThumb ? \"visible\" : \"hidden\",\n ...thumbProps,\n ref: composedRef,\n style: {\n width: \"var(--radix-scroll-area-thumb-width)\",\n height: \"var(--radix-scroll-area-thumb-height)\",\n ...style\n },\n onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, (event) => {\n const thumb = event.target;\n const thumbRect = thumb.getBoundingClientRect();\n const x = event.clientX - thumbRect.left;\n const y = event.clientY - thumbRect.top;\n scrollbarContext.onThumbPointerDown({ x, y });\n }),\n onPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp)\n }\n );\n }\n);\nScrollAreaThumb.displayName = THUMB_NAME;\nvar CORNER_NAME = \"ScrollAreaCorner\";\nvar ScrollAreaCorner = React2.forwardRef(\n (props, forwardedRef) => {\n const context = useScrollAreaContext(CORNER_NAME, props.__scopeScrollArea);\n const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);\n const hasCorner = context.type !== \"scroll\" && hasBothScrollbarsVisible;\n return hasCorner ? /* @__PURE__ */ jsx(ScrollAreaCornerImpl, { ...props, ref: forwardedRef }) : null;\n }\n);\nScrollAreaCorner.displayName = CORNER_NAME;\nvar ScrollAreaCornerImpl = React2.forwardRef((props, forwardedRef) => {\n const { __scopeScrollArea, ...cornerProps } = props;\n const context = useScrollAreaContext(CORNER_NAME, __scopeScrollArea);\n const [width, setWidth] = React2.useState(0);\n const [height, setHeight] = React2.useState(0);\n const hasSize = Boolean(width && height);\n useResizeObserver(context.scrollbarX, () => {\n const height2 = context.scrollbarX?.offsetHeight || 0;\n context.onCornerHeightChange(height2);\n setHeight(height2);\n });\n useResizeObserver(context.scrollbarY, () => {\n const width2 = context.scrollbarY?.offsetWidth || 0;\n context.onCornerWidthChange(width2);\n setWidth(width2);\n });\n return hasSize ? /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...cornerProps,\n ref: forwardedRef,\n style: {\n width,\n height,\n position: \"absolute\",\n right: context.dir === \"ltr\" ? 0 : void 0,\n left: context.dir === \"rtl\" ? 0 : void 0,\n bottom: 0,\n ...props.style\n }\n }\n ) : null;\n});\nfunction toInt(value) {\n return value ? parseInt(value, 10) : 0;\n}\nfunction getThumbRatio(viewportSize, contentSize) {\n const ratio = viewportSize / contentSize;\n return isNaN(ratio) ? 0 : ratio;\n}\nfunction getThumbSize(sizes) {\n const ratio = getThumbRatio(sizes.viewport, sizes.content);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;\n return Math.max(thumbSize, 18);\n}\nfunction getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = \"ltr\") {\n const thumbSizePx = getThumbSize(sizes);\n const thumbCenter = thumbSizePx / 2;\n const offset = pointerOffset || thumbCenter;\n const thumbOffsetFromEnd = thumbSizePx - offset;\n const minPointerPos = sizes.scrollbar.paddingStart + offset;\n const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;\n const maxScrollPos = sizes.content - sizes.viewport;\n const scrollRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const interpolate = linearScale([minPointerPos, maxPointerPos], scrollRange);\n return interpolate(pointerPos);\n}\nfunction getThumbOffsetFromScroll(scrollPos, sizes, dir = \"ltr\") {\n const thumbSizePx = getThumbSize(sizes);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const scrollbar = sizes.scrollbar.size - scrollbarPadding;\n const maxScrollPos = sizes.content - sizes.viewport;\n const maxThumbPos = scrollbar - thumbSizePx;\n const scrollClampRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const scrollWithoutMomentum = clamp(scrollPos, scrollClampRange);\n const interpolate = linearScale([0, maxScrollPos], [0, maxThumbPos]);\n return interpolate(scrollWithoutMomentum);\n}\nfunction linearScale(input, output) {\n return (value) => {\n if (input[0] === input[1] || output[0] === output[1]) return output[0];\n const ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {\n return scrollPos > 0 && scrollPos < maxScrollPos;\n}\nvar addUnlinkedScrollListener = (node, handler = () => {\n}) => {\n let prevPosition = { left: node.scrollLeft, top: node.scrollTop };\n let rAF = 0;\n (function loop() {\n const position = { left: node.scrollLeft, top: node.scrollTop };\n const isHorizontalScroll = prevPosition.left !== position.left;\n const isVerticalScroll = prevPosition.top !== position.top;\n if (isHorizontalScroll || isVerticalScroll) handler();\n prevPosition = position;\n rAF = window.requestAnimationFrame(loop);\n })();\n return () => window.cancelAnimationFrame(rAF);\n};\nfunction useDebounceCallback(callback, delay) {\n const handleCallback = useCallbackRef(callback);\n const debounceTimerRef = React2.useRef(0);\n React2.useEffect(() => () => window.clearTimeout(debounceTimerRef.current), []);\n return React2.useCallback(() => {\n window.clearTimeout(debounceTimerRef.current);\n debounceTimerRef.current = window.setTimeout(handleCallback, delay);\n }, [handleCallback, delay]);\n}\nfunction useResizeObserver(element, onResize) {\n const handleResize = useCallbackRef(onResize);\n useLayoutEffect(() => {\n let rAF = 0;\n if (element) {\n const resizeObserver = new ResizeObserver(() => {\n cancelAnimationFrame(rAF);\n rAF = window.requestAnimationFrame(handleResize);\n });\n resizeObserver.observe(element);\n return () => {\n window.cancelAnimationFrame(rAF);\n resizeObserver.unobserve(element);\n };\n }\n }, [element, handleResize]);\n}\nvar Root = ScrollArea;\nvar Viewport = ScrollAreaViewport;\nvar Scrollbar = ScrollAreaScrollbar;\nvar Thumb = ScrollAreaThumb;\nvar Corner = ScrollAreaCorner;\nexport {\n Corner,\n Root,\n ScrollArea,\n ScrollAreaCorner,\n ScrollAreaScrollbar,\n ScrollAreaThumb,\n ScrollAreaViewport,\n Scrollbar,\n Thumb,\n Viewport,\n createScrollAreaScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["SCROLL_AREA_NAME","createScrollAreaContext","createScrollAreaScope","createContextScope","ScrollAreaProvider","useScrollAreaContext","ScrollArea","React2","forwardRef","props","forwardedRef","__scopeScrollArea","type","dir","scrollHideDelay","scrollAreaProps","scrollArea","setScrollArea","useState","viewport","setViewport","content","setContent","scrollbarX","setScrollbarX","scrollbarY","setScrollbarY","cornerWidth","setCornerWidth","cornerHeight","setCornerHeight","scrollbarXEnabled","setScrollbarXEnabled","scrollbarYEnabled","setScrollbarYEnabled","composedRefs","useComposedRefs","node","direction","useDirection","jsx","scope","onViewportChange","onContentChange","onScrollbarXChange","onScrollbarXEnabledChange","onScrollbarYChange","onScrollbarYEnabledChange","onCornerWidthChange","onCornerHeightChange","children","Primitive","div","ref","style","position","displayName","VIEWPORT_NAME","ScrollAreaViewport","nonce","viewportProps","context","useRef","jsxs","Fragment","dangerouslySetInnerHTML","__html","overflowX","overflowY","minWidth","display","SCROLLBAR_NAME","ScrollAreaScrollbar","forceMount","scrollbarProps","isHorizontal","orientation","useEffect","ScrollAreaScrollbarHover","ScrollAreaScrollbarScroll","ScrollAreaScrollbarAuto","ScrollAreaScrollbarVisible","visible","setVisible","hideTimer","handlePointerEnter","window","clearTimeout","handlePointerLeave","setTimeout","addEventListener","removeEventListener","Presence","present","debounceScrollEnd","useDebounceCallback","send","state","initialState","machine","hidden","SCROLL","scrolling","SCROLL_END","POINTER_ENTER","interacting","POINTER_LEAVE","idle","HIDE","React","useReducer","event","scrollDirection","prevScrollPos","handleScroll","scrollPos","onPointerEnter","composeEventHandlers","onPointerLeave","handleResize","isOverflowX","offsetWidth","scrollWidth","isOverflowY","offsetHeight","scrollHeight","useResizeObserver","thumbRef","pointerOffsetRef","sizes","setSizes","scrollbar","size","paddingStart","paddingEnd","thumbRatio","getThumbRatio","commonProps","onSizesChange","hasThumb","Boolean","onThumbChange","thumb","current","onThumbPointerUp","onThumbPointerDown","pointerPos","getScrollPosition","pointerOffset","thumbSizePx","getThumbSize","thumbCenter","offset","thumbOffsetFromEnd","minPointerPos","maxPointerPos","maxScrollPos","scrollRange","linearScale","interpolate","getScrollPositionFromPointer","ScrollAreaScrollbarX","onThumbPositionChange","getThumbOffsetFromScroll","scrollLeft","transform","onWheelScroll","onDragScroll","ScrollAreaScrollbarY","scrollTop","computedStyle","setComputedStyle","composeRefs","getComputedStyle","ScrollAreaScrollbarImpl","bottom","left","right","x","deltaX","isScrollingWithinScrollbarBounds","preventDefault","onResize","clientWidth","toInt","paddingLeft","paddingRight","top","y","deltaY","clientHeight","paddingTop","paddingBottom","ScrollbarProvider","useScrollbarContext","setScrollbar","rectRef","prevWebkitUserSelectRef","handleWheelScroll","useCallbackRef","handleThumbPositionChange","handleDragScroll","clientX","clientY","handleWheel","element","target","isScrollbarWheel","contains","document","passive","onPointerDown","button","setPointerCapture","pointerId","getBoundingClientRect","body","webkitUserSelect","scrollBehavior","onPointerMove","onPointerUp","hasPointerCapture","releasePointerCapture","THUMB_NAME","ScrollAreaThumb","thumbProps","scrollbarContext","ScrollAreaThumbImpl","scrollAreaContext","composedRef","removeUnlinkedScrollListenerRef","listener","addUnlinkedScrollListener","width","height","onPointerDownCapture","thumbRect","CORNER_NAME","ScrollAreaCorner","hasBothScrollbarsVisible","ScrollAreaCornerImpl","cornerProps","setWidth","setHeight","hasSize","height2","width2","value","parseInt","viewportSize","contentSize","ratio","isNaN","scrollbarPadding","thumbSize","Math","max","maxThumbPos","scrollWithoutMomentum","clamp","input","output","handler","prevPosition","rAF","loop","isHorizontalScroll","isVerticalScroll","requestAnimationFrame","cancelAnimationFrame","callback","delay","handleCallback","debounceTimerRef","useCallback","useLayoutEffect","resizeObserver","ResizeObserver","observe","unobserve","Root","Viewport","Scrollbar","Thumb","Corner"],"mappings":"6rBAyBA,IAAIA,EAAmB,cAClBC,EAAyBC,GAAyBC,EAAmBH,IACrEI,EAAoBC,GAAwBJ,EAAwBD,GACrEM,EAAaC,EAAOC,YACtB,CAACC,EAAOC,KACN,MAAMC,kBACJA,EAAiBC,KACjBA,EAAO,QAAOC,IACdA,EAAGC,gBACHA,EAAkB,OACfC,GACDN,GACGO,EAAYC,GAAiBV,EAAOW,SAAS,OAC7CC,EAAUC,GAAeb,EAAOW,SAAS,OACzCG,EAASC,GAAcf,EAAOW,SAAS,OACvCK,EAAYC,GAAiBjB,EAAOW,SAAS,OAC7CO,EAAYC,GAAiBnB,EAAOW,SAAS,OAC7CS,EAAaC,GAAkBrB,EAAOW,SAAS,IAC/CW,EAAcC,GAAmBvB,EAAOW,SAAS,IACjDa,EAAmBC,GAAwBzB,EAAOW,UAAS,IAC3De,EAAmBC,GAAwB3B,EAAOW,UAAS,GAC5DiB,EAAeC,EAAgB1B,GAAe2B,GAASpB,EAAcoB,KACrEC,EAAYC,EAAa1B,GAC/B,OAAuB2B,EAAGA,IACxBpC,EACA,CACEqC,MAAO9B,EACPC,OACAC,IAAKyB,EACLxB,kBACAE,aACAG,WACAuB,iBAAkBtB,EAClBC,UACAsB,gBAAiBrB,EACjBC,aACAqB,mBAAoBpB,EACpBO,oBACAc,0BAA2Bb,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IAAkBL,IAC5CC,EAAehN,EACfiN,EAAMlL,OAAOsL,sBAAsBH,EACpC,CAPD,GAQO,IAAMnL,OAAOuL,qBAAqBL,EAAI,EAE/C,SAASzK,EAAoB+K,EAAUC,GACrC,MAAMC,EAAiBzE,EAAeuE,GAChCG,EAAmB1Q,EAAOuD,OAAO,GAEvC,OADAvD,EAAOsE,WAAU,IAAM,IAAMS,OAAOC,aAAa0L,EAAiBlI,UAAU,IACrExI,EAAO2Q,aAAY,KACxB5L,OAAOC,aAAa0L,EAAiBlI,SACrCkI,EAAiBlI,QAAUzD,OAAOG,WAAWuL,EAAgBD,EAAM,GAClE,CAACC,EAAgBD,GACtB,CACA,SAASjJ,EAAkB+E,EAASvB,GAClC,MAAM/D,EAAegF,EAAejB,GACpC6F,GAAgB,KACd,IAAIX,EAAM,EACV,GAAI3D,EAAS,CACX,MAAMuE,EAAiB,IAAIC,gBAAe,KACxCR,qBAAqBL,GACrBA,EAAMlL,OAAOsL,sBAAsBrJ,EAAa,IAGlD,OADA6J,EAAeE,QAAQzE,GAChB,KACLvH,OAAOuL,qBAAqBL,GAC5BY,EAAeG,UAAU1E,EAAQ,CAEpC,IACA,CAACA,EAAStF,GACf,CACG,IAACiK,EAAOlR,EACPmR,EAAW/N,EACXgO,EAAYlN,EACZmN,EAAQ3D,EACR4D,EAAS9C"}
@@ -0,0 +1,2 @@
1
+ import*as e from"react";import*as t from"react-dom";import{clamp as o}from"../../number/dist/index.mjs";import{composeEventHandlers as n}from"../../primitive/dist/index.mjs";import{createCollection as r}from"../../react-collection/dist/index.mjs";import{useComposedRefs as i}from"../../react-compose-refs/dist/index.mjs";import{createContextScope as l}from"../../react-context/dist/index.mjs";import{useDirection as a}from"../../react-direction/dist/index.mjs";import{DismissableLayer as s}from"../../react-dismissable-layer/dist/index.mjs";import{useFocusGuards as c}from"../../react-focus-guards/dist/index.mjs";import{FocusScope as d}from"../../react-focus-scope/dist/index.mjs";import{useId as u}from"../../react-id/dist/index.mjs";import{createPopperScope as p,Anchor as f,Content as m,Arrow as h,Root as v}from"../../react-popper/dist/index.mjs";import{Portal as g}from"../../react-portal/dist/index.mjs";import{Primitive as x}from"../../react-primitive/dist/index.mjs";import{Slot as w}from"../../react-slot/dist/index.mjs";import{useCallbackRef as y}from"../../react-use-callback-ref/dist/index.mjs";import{useControllableState as S}from"../../react-use-controllable-state/dist/index.mjs";import{useLayoutEffect as b}from"../../react-use-layout-effect/dist/index.mjs";import{usePrevious as C}from"../../react-use-previous/dist/index.mjs";import{VisuallyHidden as j}from"../../react-visually-hidden/dist/index.mjs";import{hideOthers as _}from"../../../aria-hidden/dist/es2015/index.mjs";import P from"../../../react-remove-scroll/dist/es2015/Combination.mjs";import{j as R}from"../../../../_virtual/jsx-runtime.mjs";var I=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],k="Select",[E,D,N]=r(k),[L,M]=l(k,[N,p]),O=p(),[H,A]=L(k),[B,V]=L(k),K=t=>{const{__scopeSelect:o,children:n,open:r,defaultOpen:i,onOpenChange:l,value:s,defaultValue:c,onValueChange:d,dir:p,name:f,autoComplete:m,disabled:h,required:g}=t,x=O(o),[w,y]=e.useState(null),[b,C]=e.useState(null),[j,_]=e.useState(!1),P=a(p),[I=!1,T]=S({prop:r,defaultProp:i,onChange:l}),[k,D]=S({prop:s,defaultProp:c,onChange:d}),N=e.useRef(null),L=!w||Boolean(w.closest("form")),[M,A]=e.useState(new Set),V=Array.from(M).map((e=>e.props.value)).join(";");return R.jsx(v,{...x,children:R.jsxs(H,{required:g,scope:o,trigger:w,onTriggerChange:y,valueNode:b,onValueNodeChange:C,valueNodeHasChildren:j,onValueNodeHasChildrenChange:_,contentId:u(),value:k,onValueChange:D,open:I,onOpenChange:T,dir:P,triggerPointerDownPosRef:N,disabled:h,children:[R.jsx(E.Provider,{scope:o,children:R.jsx(B,{scope:t.__scopeSelect,onNativeOptionAdd:e.useCallback((e=>{A((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:e.useCallback((e=>{A((t=>{const o=new Set(t);return o.delete(e),o}))}),[]),children:n})}),L?R.jsxs(Te,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:m,value:k,onChange:e=>D(e.target.value),disabled:h,children:[void 0===k?R.jsx("option",{value:""}):null,Array.from(M)]},V):null]})})};K.displayName=k;var F="SelectTrigger",W=e.forwardRef(((e,t)=>{const{__scopeSelect:o,disabled:r=!1,...l}=e,a=O(o),s=A(F,o),c=s.disabled||r,d=i(t,s.onTriggerChange),u=D(o),[p,m,h]=ke((e=>{const t=u().filter((e=>!e.disabled)),o=t.find((e=>e.value===s.value)),n=Ee(t,e,o);void 0!==n&&s.onValueChange(n.value)})),v=()=>{c||(s.onOpenChange(!0),h())};return R.jsx(f,{asChild:!0,...a,children:R.jsx(x.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Ie(s.value)?"":void 0,...l,ref:d,onClick:n(l.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:n(l.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(v(),s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:n(l.onKeyDown,(e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||I.includes(e.key)&&(v(),e.preventDefault())}))})})}));W.displayName=F;var U="SelectValue",q=e.forwardRef(((e,t)=>{const{__scopeSelect:o,className:n,style:r,children:l,placeholder:a="",...s}=e,c=A(U,o),{onValueNodeHasChildrenChange:d}=c,u=void 0!==l,p=i(t,c.onValueNodeChange);return b((()=>{d(u)}),[d,u]),R.jsx(x.span,{...s,ref:p,style:{pointerEvents:"none"},children:Ie(c.value)?R.jsx(R.Fragment,{children:a}):l})}));q.displayName=U;var z=e.forwardRef(((e,t)=>{const{__scopeSelect:o,children:n,...r}=e;return R.jsx(x.span,{"aria-hidden":!0,...r,ref:t,children:n||"▼"})}));z.displayName="SelectIcon";var X=e=>R.jsx(g,{asChild:!0,...e});X.displayName="SelectPortal";var Y="SelectContent",G=e.forwardRef(((o,n)=>{const r=A(Y,o.__scopeSelect),[i,l]=e.useState();if(b((()=>{l(new DocumentFragment)}),[]),!r.open){const e=i;return e?t.createPortal(R.jsx($,{scope:o.__scopeSelect,children:R.jsx(E.Slot,{scope:o.__scopeSelect,children:R.jsx("div",{children:o.children})})}),e):null}return R.jsx(Q,{...o,ref:n})}));G.displayName=Y;var Z=10,[$,J]=L(Y),Q=e.forwardRef(((t,o)=>{const{__scopeSelect:r,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:p,side:f,sideOffset:m,align:h,alignOffset:v,arrowPadding:g,collisionBoundary:x,collisionPadding:y,sticky:S,hideWhenDetached:b,avoidCollisions:C,...j}=t,I=A(Y,r),[T,k]=e.useState(null),[E,N]=e.useState(null),L=i(o,(e=>k(e))),[M,O]=e.useState(null),[H,B]=e.useState(null),V=D(r),[K,F]=e.useState(!1),W=e.useRef(!1);e.useEffect((()=>{if(T)return _(T)}),[T]),c();const U=e.useCallback((e=>{const[t,...o]=V().map((e=>e.ref.current)),[n]=o.slice(-1),r=document.activeElement;for(const o of e){if(o===r)return;if(o?.scrollIntoView({block:"nearest"}),o===t&&E&&(E.scrollTop=0),o===n&&E&&(E.scrollTop=E.scrollHeight),o?.focus(),document.activeElement!==r)return}}),[V,E]),q=e.useCallback((()=>U([M,T])),[U,M,T]);e.useEffect((()=>{K&&q()}),[K,q]);const{onOpenChange:z,triggerPointerDownPosRef:X}=I;e.useEffect((()=>{if(T){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(X.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(X.current?.y??0))}},o=o=>{e.x<=10&&e.y<=10?o.preventDefault():T.contains(o.target)||z(!1),document.removeEventListener("pointermove",t),X.current=null};return null!==X.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",o,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",o,{capture:!0})}}}),[T,z,X]),e.useEffect((()=>{const e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[z]);const[G,Z]=ke((e=>{const t=V().filter((e=>!e.disabled)),o=t.find((e=>e.ref.current===document.activeElement)),n=Ee(t,e,o);n&&setTimeout((()=>n.ref.current.focus()))})),J=e.useCallback(((e,t,o)=>{const n=!W.current&&!o;(void 0!==I.value&&I.value===t||n)&&(O(e),n&&(W.current=!0))}),[I.value]),Q=e.useCallback((()=>T?.focus()),[T]),oe=e.useCallback(((e,t,o)=>{const n=!W.current&&!o;(void 0!==I.value&&I.value===t||n)&&B(e)}),[I.value]),ne="popper"===l?te:ee,re=ne===te?{side:f,sideOffset:m,align:h,alignOffset:v,arrowPadding:g,collisionBoundary:x,collisionPadding:y,sticky:S,hideWhenDetached:b,avoidCollisions:C}:{};return R.jsx($,{scope:r,content:T,viewport:E,onViewportChange:N,itemRefCallback:J,selectedItem:M,onItemLeave:Q,itemTextRefCallback:oe,focusSelectedItem:q,selectedItemText:H,position:l,isPositioned:K,searchRef:G,children:R.jsx(P,{as:w,allowPinchZoom:!0,children:R.jsx(d,{asChild:!0,trapped:I.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:n(a,(e=>{I.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:R.jsx(s,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>I.onOpenChange(!1),children:R.jsx(ne,{role:"listbox",id:I.contentId,"data-state":I.open?"open":"closed",dir:I.dir,onContextMenu:e=>e.preventDefault(),...j,...re,onPlaced:()=>F(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:n(j.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const o=e.target,n=t.indexOf(o);t=t.slice(n+1)}setTimeout((()=>U(t))),e.preventDefault()}}))})})})})})}));Q.displayName="SelectContentImpl";var ee=e.forwardRef(((t,n)=>{const{__scopeSelect:r,onPlaced:l,...a}=t,s=A(Y,r),c=J(Y,r),[d,u]=e.useState(null),[p,f]=e.useState(null),m=i(n,(e=>f(e))),h=D(r),v=e.useRef(!1),g=e.useRef(!0),{viewport:w,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=c,j=e.useCallback((()=>{if(s.trigger&&s.valueNode&&d&&p&&w&&y&&S){const e=s.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==s.dir){const i=r.left-t.left,l=n.left-i,a=e.left-l,s=e.width+a,c=Math.max(s,t.width),u=window.innerWidth-Z,p=o(l,[Z,u-c]);d.style.minWidth=s+"px",d.style.left=p+"px"}else{const i=t.right-r.right,l=window.innerWidth-n.right-i,a=window.innerWidth-e.right-l,s=e.width+a,c=Math.max(s,t.width),u=window.innerWidth-Z,p=o(l,[Z,u-c]);d.style.minWidth=s+"px",d.style.right=p+"px"}const i=h(),a=window.innerHeight-2*Z,c=w.scrollHeight,u=window.getComputedStyle(p),f=parseInt(u.borderTopWidth,10),m=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),x=f+m+c+parseInt(u.paddingBottom,10)+g,b=Math.min(5*y.offsetHeight,x),C=window.getComputedStyle(w),j=parseInt(C.paddingTop,10),_=parseInt(C.paddingBottom,10),P=e.top+e.height/2-Z,R=a-P,I=y.offsetHeight/2,T=f+m+(y.offsetTop+I),k=x-T;if(T<=P){const e=y===i[i.length-1].ref.current;d.style.bottom="0px";const t=p.clientHeight-w.offsetTop-w.offsetHeight,o=T+Math.max(R,I+(e?_:0)+t+g);d.style.height=o+"px"}else{const e=y===i[0].ref.current;d.style.top="0px";const t=Math.max(P,f+w.offsetTop+(e?j:0)+I)+k;d.style.height=t+"px",w.scrollTop=T-P+w.offsetTop}d.style.margin=`${Z}px 0`,d.style.minHeight=b+"px",d.style.maxHeight=a+"px",l?.(),requestAnimationFrame((()=>v.current=!0))}}),[h,s.trigger,s.valueNode,d,p,w,y,S,s.dir,l]);b((()=>j()),[j]);const[_,P]=e.useState();b((()=>{p&&P(window.getComputedStyle(p).zIndex)}),[p]);const I=e.useCallback((e=>{e&&!0===g.current&&(j(),C?.(),g.current=!1)}),[j,C]);return R.jsx(oe,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:I,children:R.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:R.jsx(x.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})}));ee.displayName="SelectItemAlignedPosition";var te=e.forwardRef(((e,t)=>{const{__scopeSelect:o,align:n="start",collisionPadding:r=Z,...i}=e,l=O(o);return R.jsx(m,{...l,...i,ref:t,align:n,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}));te.displayName="SelectPopperPosition";var[oe,ne]=L(Y,{}),re="SelectViewport",ie=e.forwardRef(((t,o)=>{const{__scopeSelect:r,nonce:l,...a}=t,s=J(re,r),c=ne(re,r),d=i(o,s.onViewportChange),u=e.useRef(0);return R.jsxs(R.Fragment,{children:[R.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),R.jsx(E.Slot,{scope:r,children:R.jsx(x.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:d,style:{position:"relative",flex:1,overflow:"auto",...a.style},onScroll:n(a.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:o,shouldExpandOnScrollRef:n}=c;if(n?.current&&o){const e=Math.abs(u.current-t.scrollTop);if(e>0){const n=window.innerHeight-2*Z,r=parseFloat(o.style.minHeight),i=parseFloat(o.style.height),l=Math.max(r,i);if(l<n){const r=l+e,i=Math.min(n,r),a=r-i;o.style.height=i+"px","0px"===o.style.bottom&&(t.scrollTop=a>0?a:0,o.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))})})]})}));ie.displayName=re;var le="SelectGroup",[ae,se]=L(le),ce=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e,r=u();return R.jsx(ae,{scope:o,id:r,children:R.jsx(x.div,{role:"group","aria-labelledby":r,...n,ref:t})})}));ce.displayName=le;var de="SelectLabel",ue=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e,r=se(de,o);return R.jsx(x.div,{id:r.id,...n,ref:t})}));ue.displayName=de;var pe="SelectItem",[fe,me]=L(pe),he=e.forwardRef(((t,o)=>{const{__scopeSelect:r,value:l,disabled:a=!1,textValue:s,...c}=t,d=A(pe,r),p=J(pe,r),f=d.value===l,[m,h]=e.useState(s??""),[v,g]=e.useState(!1),w=i(o,(e=>p.itemRefCallback?.(e,l,a))),y=u(),S=()=>{a||(d.onValueChange(l),d.onOpenChange(!1))};if(""===l)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return R.jsx(fe,{scope:r,value:l,disabled:a,textId:y,isSelected:f,onItemTextChange:e.useCallback((e=>{h((t=>t||(e?.textContent??"").trim()))}),[]),children:R.jsx(E.ItemSlot,{scope:r,value:l,disabled:a,textValue:m,children:R.jsx(x.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...c,ref:w,onFocus:n(c.onFocus,(()=>g(!0))),onBlur:n(c.onBlur,(()=>g(!1))),onPointerUp:n(c.onPointerUp,S),onPointerMove:n(c.onPointerMove,(e=>{a?p.onItemLeave?.():e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:n(c.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&p.onItemLeave?.()})),onKeyDown:n(c.onKeyDown,(e=>{""!==p.searchRef?.current&&" "===e.key||(T.includes(e.key)&&S()," "===e.key&&e.preventDefault())}))})})})}));he.displayName=pe;var ve="SelectItemText",ge=e.forwardRef(((o,n)=>{const{__scopeSelect:r,className:l,style:a,...s}=o,c=A(ve,r),d=J(ve,r),u=me(ve,r),p=V(ve,r),[f,m]=e.useState(null),h=i(n,(e=>m(e)),u.onItemTextChange,(e=>d.itemTextRefCallback?.(e,u.value,u.disabled))),v=f?.textContent,g=e.useMemo((()=>R.jsx("option",{value:u.value,disabled:u.disabled,children:v},u.value)),[u.disabled,u.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:y}=p;return b((()=>(w(g),()=>y(g))),[w,y,g]),R.jsxs(R.Fragment,{children:[R.jsx(x.span,{id:u.textId,...s,ref:h}),u.isSelected&&c.valueNode&&!c.valueNodeHasChildren?t.createPortal(s.children,c.valueNode):null]})}));ge.displayName=ve;var xe="SelectItemIndicator",we=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e;return me(xe,o).isSelected?R.jsx(x.span,{"aria-hidden":!0,...n,ref:t}):null}));we.displayName=xe;var ye="SelectScrollUpButton",Se=e.forwardRef(((t,o)=>{const n=J(ye,t.__scopeSelect),r=ne(ye,t.__scopeSelect),[l,a]=e.useState(!1),s=i(o,r.onScrollButtonChange);return b((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;a(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),l?R.jsx(je,{...t,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}));Se.displayName=ye;var be="SelectScrollDownButton",Ce=e.forwardRef(((t,o)=>{const n=J(be,t.__scopeSelect),r=ne(be,t.__scopeSelect),[l,a]=e.useState(!1),s=i(o,r.onScrollButtonChange);return b((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,o=Math.ceil(t.scrollTop)<e;a(o)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),l?R.jsx(je,{...t,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}));Ce.displayName=be;var je=e.forwardRef(((t,o)=>{const{__scopeSelect:r,onAutoScroll:i,...l}=t,a=J("SelectScrollButton",r),s=e.useRef(null),c=D(r),d=e.useCallback((()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)}),[]);return e.useEffect((()=>()=>d()),[d]),b((()=>{const e=c().find((e=>e.ref.current===document.activeElement));e?.ref.current?.scrollIntoView({block:"nearest"})}),[c]),R.jsx(x.div,{"aria-hidden":!0,...l,ref:o,style:{flexShrink:0,...l.style},onPointerDown:n(l.onPointerDown,(()=>{null===s.current&&(s.current=window.setInterval(i,50))})),onPointerMove:n(l.onPointerMove,(()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(i,50))})),onPointerLeave:n(l.onPointerLeave,(()=>{d()}))})})),_e=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e;return R.jsx(x.div,{"aria-hidden":!0,...n,ref:t})}));_e.displayName="SelectSeparator";var Pe="SelectArrow",Re=e.forwardRef(((e,t)=>{const{__scopeSelect:o,...n}=e,r=O(o),i=A(Pe,o),l=J(Pe,o);return i.open&&"popper"===l.position?R.jsx(h,{...r,...n,ref:t}):null}));function Ie(e){return""===e||void 0===e}Re.displayName=Pe;var Te=e.forwardRef(((t,o)=>{const{value:n,...r}=t,l=e.useRef(null),a=i(o,l),s=C(n);return e.useEffect((()=>{const e=l.current,t=window.HTMLSelectElement.prototype,o=Object.getOwnPropertyDescriptor(t,"value").set;if(s!==n&&o){const t=new Event("change",{bubbles:!0});o.call(e,n),e.dispatchEvent(t)}}),[s,n]),R.jsx(j,{asChild:!0,children:R.jsx("select",{...r,ref:a,defaultValue:n})})}));function ke(t){const o=y(t),n=e.useRef(""),r=e.useRef(0),i=e.useCallback((e=>{const t=n.current+e;o(t),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(t)}),[o]),l=e.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return e.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,i,l]}function Ee(e,t,o){const n=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,r=o?e.indexOf(o):-1;let i=(l=e,a=Math.max(r,0),l.map(((e,t)=>l[(a+t)%l.length])));var l,a;1===n.length&&(i=i.filter((e=>e!==o)));const s=i.find((e=>e.textValue.toLowerCase().startsWith(n.toLowerCase())));return s!==o?s:void 0}Te.displayName="BubbleSelect";var De=K,Ne=W,Le=q,Me=z,Oe=X,He=G,Ae=ie,Be=ce,Ve=ue,Ke=he,Fe=ge,We=we,Ue=_e;export{He as Content,Be as Group,Me as Icon,Ke as Item,We as ItemIndicator,Fe as ItemText,Ve as Label,Oe as Portal,De as Root,K as Select,Re as SelectArrow,G as SelectContent,ce as SelectGroup,z as SelectIcon,he as SelectItem,we as SelectItemIndicator,ge as SelectItemText,ue as SelectLabel,X as SelectPortal,Ce as SelectScrollDownButton,Se as SelectScrollUpButton,_e as SelectSeparator,W as SelectTrigger,q as SelectValue,ie as SelectViewport,Ue as Separator,Ne as Trigger,Le as Value,Ae as Viewport,M as createSelectScope};
2
+ //# sourceMappingURL=index.mjs.map