@lotte-innovate/ui-component-test 0.0.89 → 0.0.96

Sign up to get free protection for your applications and to get access to all the features.
Files changed (690) hide show
  1. package/README.md +108 -19
  2. package/dist/globals.css +3 -3
  3. package/dist/lib/Typography/Header/index.d.ts +6 -4
  4. package/dist/lib/Typography/Header/index.js +2 -1
  5. package/dist/lib/Typography/Header/index.mjs +2 -1
  6. package/dist/lib/Typography/Header/index.mjs.map +1 -1
  7. package/dist/lib/Typography/Text/index.js +1 -0
  8. package/dist/lib/Typography/Text/index.mjs +1 -0
  9. package/dist/lib/Typography/Text/index.mjs.map +1 -1
  10. package/dist/lib/color/constants.d.ts +1 -15
  11. package/dist/lib/color/constants.js +1 -32
  12. package/dist/lib/color/constants.mjs +1 -1
  13. package/dist/lib/color/constants.mjs.map +1 -1
  14. package/dist/lib/components/Accordion/index.d.ts +2 -1
  15. package/dist/lib/components/Accordion/index.js +21 -4
  16. package/dist/lib/components/Accordion/index.mjs +2 -1
  17. package/dist/lib/components/Accordion/index.mjs.map +1 -1
  18. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +2 -2
  19. package/dist/lib/components/AlertDialog/AlertDialogAction.js +4 -2
  20. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +2 -1
  21. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -1
  22. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +2 -2
  23. package/dist/lib/components/AlertDialog/AlertDialogCancel.js +1 -0
  24. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +1 -0
  25. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -1
  26. package/dist/lib/components/AlertDialog/AlertDialogContent.d.ts +3 -3
  27. package/dist/lib/components/AlertDialog/AlertDialogContent.js +2 -1
  28. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +2 -1
  29. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -1
  30. package/dist/lib/components/AlertDialog/AlertDialogDescription.d.ts +1 -1
  31. package/dist/lib/components/AlertDialog/AlertDialogDescription.js +1 -0
  32. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +1 -0
  33. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -1
  34. package/dist/lib/components/AlertDialog/AlertDialogRoot.js +11 -7
  35. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +2 -1
  36. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -1
  37. package/dist/lib/components/AlertDialog/AlertDialogTitle.d.ts +1 -1
  38. package/dist/lib/components/AlertDialog/AlertDialogTitle.js +1 -0
  39. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +1 -0
  40. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -1
  41. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +3 -3
  42. package/dist/lib/components/AlertDialog/AlertDialogTrigger.js +15 -3
  43. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +2 -1
  44. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -1
  45. package/dist/lib/components/AlertDialog/index.d.ts +1 -0
  46. package/dist/lib/components/AlertDialog/index.js +1 -1
  47. package/dist/lib/components/AlertDialog/index.mjs.map +1 -1
  48. package/dist/lib/components/AspectRatio/index.d.ts +1 -1
  49. package/dist/lib/components/AspectRatio/index.js +4 -1
  50. package/dist/lib/components/AspectRatio/index.mjs +2 -1
  51. package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
  52. package/dist/lib/components/Avatar/index.d.ts +4 -4
  53. package/dist/lib/components/Avatar/index.js +13 -4
  54. package/dist/lib/components/Avatar/index.mjs +2 -1
  55. package/dist/lib/components/Avatar/index.mjs.map +1 -1
  56. package/dist/lib/components/Badge/index.d.ts +3 -3
  57. package/dist/lib/components/Badge/index.js +14 -3
  58. package/dist/lib/components/Badge/index.mjs +2 -1
  59. package/dist/lib/components/Badge/index.mjs.map +1 -1
  60. package/dist/lib/components/BarChart/index.d.ts +1 -1
  61. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.d.ts +9 -0
  62. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.js +34 -0
  63. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs +2 -0
  64. package/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -0
  65. package/dist/lib/components/Breadcrumb/BreadcrumbItem.d.ts +6 -0
  66. package/dist/lib/components/Breadcrumb/BreadcrumbItem.js +32 -0
  67. package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs +2 -0
  68. package/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -0
  69. package/dist/lib/components/Breadcrumb/BreadcrumbLink.d.ts +10 -0
  70. package/dist/lib/components/Breadcrumb/BreadcrumbLink.js +47 -0
  71. package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs +2 -0
  72. package/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -0
  73. package/dist/lib/components/Breadcrumb/BreadcrumbList.d.ts +6 -0
  74. package/dist/lib/components/Breadcrumb/BreadcrumbList.js +34 -0
  75. package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs +2 -0
  76. package/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -0
  77. package/dist/lib/components/Breadcrumb/BreadcrumbPage.d.ts +8 -0
  78. package/dist/lib/components/Breadcrumb/BreadcrumbPage.js +45 -0
  79. package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs +2 -0
  80. package/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -0
  81. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.d.ts +14 -0
  82. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.js +59 -0
  83. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs +3 -0
  84. package/dist/lib/components/Breadcrumb/BreadcrumbRoot.mjs.map +1 -0
  85. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.d.ts +9 -0
  86. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.js +34 -0
  87. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs +2 -0
  88. package/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -0
  89. package/dist/lib/components/Breadcrumb/index.d.ts +21 -0
  90. package/dist/lib/components/Breadcrumb/index.js +17 -0
  91. package/dist/lib/components/Breadcrumb/index.mjs +2 -0
  92. package/dist/lib/components/Breadcrumb/index.mjs.map +1 -0
  93. package/dist/lib/components/BubbleChart/index.d.ts +1 -1
  94. package/dist/lib/components/BubbleChart/index.js +1 -1
  95. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  96. package/dist/lib/components/Button/index.d.ts +3 -3
  97. package/dist/lib/components/Button/index.js +14 -3
  98. package/dist/lib/components/Button/index.mjs +2 -1
  99. package/dist/lib/components/Button/index.mjs.map +1 -1
  100. package/dist/lib/components/Callout/CalloutIcon.d.ts +3 -3
  101. package/dist/lib/components/Callout/CalloutIcon.js +1 -0
  102. package/dist/lib/components/Callout/CalloutIcon.mjs +1 -0
  103. package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -1
  104. package/dist/lib/components/Callout/CalloutRoot.d.ts +4 -4
  105. package/dist/lib/components/Callout/CalloutRoot.js +11 -3
  106. package/dist/lib/components/Callout/CalloutRoot.mjs +2 -1
  107. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
  108. package/dist/lib/components/Callout/CalloutText.d.ts +2 -2
  109. package/dist/lib/components/Callout/CalloutText.js +1 -0
  110. package/dist/lib/components/Callout/CalloutText.mjs +1 -0
  111. package/dist/lib/components/Callout/CalloutText.mjs.map +1 -1
  112. package/dist/lib/components/Callout/index.d.ts +1 -0
  113. package/dist/lib/components/Card/index.d.ts +3 -3
  114. package/dist/lib/components/Card/index.js +9 -1
  115. package/dist/lib/components/Card/index.mjs +2 -1
  116. package/dist/lib/components/Card/index.mjs.map +1 -1
  117. package/dist/lib/components/Checkbox/index.d.ts +3 -3
  118. package/dist/lib/components/Checkbox/index.js +12 -3
  119. package/dist/lib/components/Checkbox/index.mjs +2 -1
  120. package/dist/lib/components/Checkbox/index.mjs.map +1 -1
  121. package/dist/lib/components/CheckboxCard/index.d.ts +3 -3
  122. package/dist/lib/components/CheckboxCard/index.js +9 -1
  123. package/dist/lib/components/CheckboxCard/index.mjs +2 -1
  124. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
  125. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.js +1 -0
  126. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +1 -0
  127. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -1
  128. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +1 -1
  129. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +13 -3
  130. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +2 -1
  131. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
  132. package/dist/lib/components/CheckboxGroup/index.d.ts +2 -1
  133. package/dist/lib/components/Collapsible/index.d.ts +21 -0
  134. package/dist/lib/components/Collapsible/index.js +75 -0
  135. package/dist/lib/components/Collapsible/index.mjs +3 -0
  136. package/dist/lib/components/Collapsible/index.mjs.map +1 -0
  137. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.js +2 -1
  138. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +2 -1
  139. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -1
  140. package/dist/lib/components/ContextMenu/ContextMenuContent.d.ts +2 -2
  141. package/dist/lib/components/ContextMenu/ContextMenuContent.js +1 -0
  142. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +1 -0
  143. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -1
  144. package/dist/lib/components/ContextMenu/ContextMenuItem.d.ts +2 -2
  145. package/dist/lib/components/ContextMenu/ContextMenuItem.js +3 -1
  146. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +2 -1
  147. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -1
  148. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.d.ts +1 -1
  149. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.js +1 -0
  150. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +1 -0
  151. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -1
  152. package/dist/lib/components/ContextMenu/ContextMenuLabel.d.ts +1 -1
  153. package/dist/lib/components/ContextMenu/ContextMenuLabel.js +1 -0
  154. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +1 -0
  155. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -1
  156. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.js +1 -0
  157. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +1 -0
  158. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -1
  159. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.js +2 -1
  160. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +2 -1
  161. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -1
  162. package/dist/lib/components/ContextMenu/ContextMenuRoot.js +13 -3
  163. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +2 -1
  164. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -1
  165. package/dist/lib/components/ContextMenu/ContextMenuSubContent.d.ts +2 -2
  166. package/dist/lib/components/ContextMenu/ContextMenuSubContent.js +1 -0
  167. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +1 -0
  168. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -1
  169. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.js +4 -2
  170. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +2 -1
  171. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -1
  172. package/dist/lib/components/ContextMenu/index.d.ts +1 -0
  173. package/dist/lib/components/DataList/DataListItem.d.ts +1 -1
  174. package/dist/lib/components/DataList/DataListItem.js +1 -0
  175. package/dist/lib/components/DataList/DataListItem.mjs +1 -0
  176. package/dist/lib/components/DataList/DataListItem.mjs.map +1 -1
  177. package/dist/lib/components/DataList/DataListLabel.d.ts +1 -1
  178. package/dist/lib/components/DataList/DataListLabel.js +1 -0
  179. package/dist/lib/components/DataList/DataListLabel.mjs +1 -0
  180. package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -1
  181. package/dist/lib/components/DataList/DataListRoot.d.ts +1 -1
  182. package/dist/lib/components/DataList/DataListRoot.js +9 -2
  183. package/dist/lib/components/DataList/DataListRoot.mjs +2 -1
  184. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
  185. package/dist/lib/components/DataList/DataListValue.d.ts +1 -1
  186. package/dist/lib/components/DataList/DataListValue.js +1 -0
  187. package/dist/lib/components/DataList/DataListValue.mjs +1 -0
  188. package/dist/lib/components/DataList/DataListValue.mjs.map +1 -1
  189. package/dist/lib/components/DataList/index.d.ts +1 -0
  190. package/dist/lib/components/Dialog/DialogAction.d.ts +2 -2
  191. package/dist/lib/components/Dialog/DialogAction.js +3 -1
  192. package/dist/lib/components/Dialog/DialogAction.mjs +2 -1
  193. package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -1
  194. package/dist/lib/components/Dialog/DialogCancel.d.ts +2 -2
  195. package/dist/lib/components/Dialog/DialogCancel.js +1 -0
  196. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -0
  197. package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -1
  198. package/dist/lib/components/Dialog/DialogContent.d.ts +3 -3
  199. package/dist/lib/components/Dialog/DialogContent.js +1 -0
  200. package/dist/lib/components/Dialog/DialogContent.mjs +1 -0
  201. package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -1
  202. package/dist/lib/components/Dialog/DialogDescription.d.ts +1 -1
  203. package/dist/lib/components/Dialog/DialogDescription.js +2 -1
  204. package/dist/lib/components/Dialog/DialogDescription.mjs +2 -1
  205. package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -1
  206. package/dist/lib/components/Dialog/DialogRoot.js +11 -2
  207. package/dist/lib/components/Dialog/DialogRoot.mjs +2 -1
  208. package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -1
  209. package/dist/lib/components/Dialog/DialogSlot.d.ts +1 -1
  210. package/dist/lib/components/Dialog/DialogSlot.js +1 -0
  211. package/dist/lib/components/Dialog/DialogSlot.mjs +1 -0
  212. package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -1
  213. package/dist/lib/components/Dialog/DialogTitle.d.ts +1 -1
  214. package/dist/lib/components/Dialog/DialogTitle.js +1 -0
  215. package/dist/lib/components/Dialog/DialogTitle.mjs +1 -0
  216. package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -1
  217. package/dist/lib/components/Dialog/index.d.ts +2 -1
  218. package/dist/lib/components/DoughnutChart/index.d.ts +1 -1
  219. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.d.ts +2 -2
  220. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.js +1 -0
  221. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +1 -0
  222. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -1
  223. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.js +2 -1
  224. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +2 -1
  225. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -1
  226. package/dist/lib/components/DropdownMenu/DropdownMenuContent.d.ts +2 -2
  227. package/dist/lib/components/DropdownMenu/DropdownMenuContent.js +1 -0
  228. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +1 -0
  229. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -1
  230. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +2 -2
  231. package/dist/lib/components/DropdownMenu/DropdownMenuItem.js +3 -1
  232. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +2 -1
  233. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  234. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.d.ts +1 -1
  235. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.js +1 -0
  236. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -0
  237. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -1
  238. package/dist/lib/components/DropdownMenu/DropdownMenuLable.js +1 -0
  239. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +1 -0
  240. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -1
  241. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.js +2 -1
  242. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +2 -1
  243. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -1
  244. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.js +12 -2
  245. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +2 -1
  246. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  247. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.js +3 -1
  248. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +2 -1
  249. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -1
  250. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  251. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.js +1 -0
  252. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -0
  253. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -1
  254. package/dist/lib/components/DropdownMenu/index.d.ts +2 -1
  255. package/dist/lib/components/Editor/index.d.ts +12 -0
  256. package/dist/lib/components/Editor/index.js +53 -0
  257. package/dist/lib/components/Editor/index.mjs +3 -0
  258. package/dist/lib/components/Editor/index.mjs.map +1 -0
  259. package/dist/lib/components/Footer/index.d.ts +11 -0
  260. package/dist/lib/components/Footer/index.js +57 -0
  261. package/dist/lib/components/Footer/index.mjs +3 -0
  262. package/dist/lib/components/Footer/index.mjs.map +1 -0
  263. package/dist/lib/components/Gnb/GnbInfo.d.ts +9 -0
  264. package/dist/lib/components/Gnb/GnbInfo.js +46 -0
  265. package/dist/lib/components/Gnb/GnbInfo.mjs +3 -0
  266. package/dist/lib/components/Gnb/GnbInfo.mjs.map +1 -0
  267. package/dist/lib/components/Gnb/GnbLogo.d.ts +9 -0
  268. package/dist/lib/components/Gnb/GnbLogo.js +46 -0
  269. package/dist/lib/components/Gnb/GnbLogo.mjs +2 -0
  270. package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -0
  271. package/dist/lib/components/Gnb/GnbMenu.d.ts +11 -0
  272. package/dist/lib/components/Gnb/GnbMenu.js +49 -0
  273. package/dist/lib/components/Gnb/GnbMenu.mjs +3 -0
  274. package/dist/lib/components/Gnb/GnbMenu.mjs.map +1 -0
  275. package/dist/lib/components/Gnb/GnbRoot.d.ts +11 -0
  276. package/dist/lib/components/Gnb/GnbRoot.js +53 -0
  277. package/dist/lib/components/Gnb/GnbRoot.mjs +3 -0
  278. package/dist/lib/components/Gnb/GnbRoot.mjs.map +1 -0
  279. package/dist/lib/components/Gnb/index.d.ts +8 -0
  280. package/dist/lib/components/Gnb/index.js +11 -0
  281. package/dist/lib/components/Gnb/index.mjs +2 -0
  282. package/dist/lib/components/Gnb/index.mjs.map +1 -0
  283. package/dist/lib/components/Grid/Pagination.d.ts +2 -0
  284. package/dist/lib/components/Grid/Pagination.js +17 -0
  285. package/dist/lib/components/Grid/Pagination.mjs +2 -0
  286. package/dist/lib/components/Grid/Pagination.mjs.map +1 -0
  287. package/dist/lib/components/Grid/index.d.ts +7 -0
  288. package/dist/lib/components/Grid/index.js +59 -0
  289. package/dist/lib/components/Grid/index.mjs +3 -0
  290. package/dist/lib/components/Grid/index.mjs.map +1 -0
  291. package/dist/lib/components/Grid/useGrid.d.ts +3 -0
  292. package/dist/lib/components/Grid/useGrid.js +75 -0
  293. package/dist/lib/components/Grid/useGrid.mjs +3 -0
  294. package/dist/lib/components/Grid/useGrid.mjs.map +1 -0
  295. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +3 -3
  296. package/dist/lib/components/HoverCard/HoverCardContent.js +1 -0
  297. package/dist/lib/components/HoverCard/HoverCardContent.mjs +1 -0
  298. package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -1
  299. package/dist/lib/components/HoverCard/HoverCardRoot.js +12 -2
  300. package/dist/lib/components/HoverCard/HoverCardRoot.mjs +2 -1
  301. package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -1
  302. package/dist/lib/components/HoverCard/index.d.ts +2 -1
  303. package/dist/lib/components/IconButton/index.d.ts +3 -3
  304. package/dist/lib/components/IconButton/index.js +13 -3
  305. package/dist/lib/components/IconButton/index.mjs +2 -1
  306. package/dist/lib/components/IconButton/index.mjs.map +1 -1
  307. package/dist/lib/components/Inset/index.d.ts +2 -2
  308. package/dist/lib/components/Inset/index.js +8 -1
  309. package/dist/lib/components/Inset/index.mjs +2 -1
  310. package/dist/lib/components/Inset/index.mjs.map +1 -1
  311. package/dist/lib/components/Label/index.d.ts +6 -5
  312. package/dist/lib/components/Label/index.js +15 -4
  313. package/dist/lib/components/Label/index.mjs +2 -1
  314. package/dist/lib/components/Label/index.mjs.map +1 -1
  315. package/dist/lib/components/LineChart/index.d.ts +1 -1
  316. package/dist/lib/components/Menubar/MenubarCheckboxItem.js +3 -1
  317. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +2 -1
  318. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -1
  319. package/dist/lib/components/Menubar/MenubarContent.d.ts +2 -2
  320. package/dist/lib/components/Menubar/MenubarContent.js +1 -0
  321. package/dist/lib/components/Menubar/MenubarContent.mjs +1 -0
  322. package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -1
  323. package/dist/lib/components/Menubar/MenubarItem.d.ts +2 -2
  324. package/dist/lib/components/Menubar/MenubarItem.js +3 -1
  325. package/dist/lib/components/Menubar/MenubarItem.mjs +2 -1
  326. package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -1
  327. package/dist/lib/components/Menubar/MenubarItemIndicator.d.ts +1 -1
  328. package/dist/lib/components/Menubar/MenubarItemIndicator.js +1 -0
  329. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +1 -0
  330. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -1
  331. package/dist/lib/components/Menubar/MenubarRadioGroup.js +1 -0
  332. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +1 -0
  333. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -1
  334. package/dist/lib/components/Menubar/MenubarRadioItem.js +3 -1
  335. package/dist/lib/components/Menubar/MenubarRadioItem.mjs +2 -1
  336. package/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -1
  337. package/dist/lib/components/Menubar/MenubarRoot.d.ts +2 -2
  338. package/dist/lib/components/Menubar/MenubarRoot.js +17 -5
  339. package/dist/lib/components/Menubar/MenubarRoot.mjs +2 -1
  340. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
  341. package/dist/lib/components/Menubar/MenubarSubContent.d.ts +1 -1
  342. package/dist/lib/components/Menubar/MenubarSubContent.js +1 -0
  343. package/dist/lib/components/Menubar/MenubarSubContent.mjs +1 -0
  344. package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -1
  345. package/dist/lib/components/Menubar/MenubarSubTrigger.js +3 -1
  346. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs +2 -1
  347. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -1
  348. package/dist/lib/components/Menubar/MenubarTrigger.d.ts +2 -2
  349. package/dist/lib/components/Menubar/MenubarTrigger.js +2 -1
  350. package/dist/lib/components/Menubar/MenubarTrigger.mjs +2 -1
  351. package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -1
  352. package/dist/lib/components/Menubar/index.d.ts +1 -0
  353. package/dist/lib/components/NavigationMenu/NavigationMenuContent.d.ts +1 -1
  354. package/dist/lib/components/NavigationMenu/NavigationMenuContent.js +2 -1
  355. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +2 -1
  356. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -1
  357. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +1 -1
  358. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +1 -1
  359. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
  360. package/dist/lib/components/NavigationMenu/NavigationMenuLink.d.ts +2 -2
  361. package/dist/lib/components/NavigationMenu/NavigationMenuLink.js +3 -1
  362. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +2 -1
  363. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -1
  364. package/dist/lib/components/NavigationMenu/NavigationMenuList.d.ts +2 -2
  365. package/dist/lib/components/NavigationMenu/NavigationMenuList.js +3 -1
  366. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +2 -1
  367. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -1
  368. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.js +13 -3
  369. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +2 -1
  370. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -1
  371. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.d.ts +2 -2
  372. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.js +3 -1
  373. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +2 -1
  374. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -1
  375. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.d.ts +2 -2
  376. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.js +3 -2
  377. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +2 -1
  378. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -1
  379. package/dist/lib/components/NavigationMenu/index.d.ts +1 -0
  380. package/dist/lib/components/PieChart/index.d.ts +1 -1
  381. package/dist/lib/components/Popover/PopoverClose.d.ts +1 -1
  382. package/dist/lib/components/Popover/PopoverClose.js +1 -0
  383. package/dist/lib/components/Popover/PopoverClose.mjs +1 -0
  384. package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -1
  385. package/dist/lib/components/Popover/PopoverContent.d.ts +3 -3
  386. package/dist/lib/components/Popover/PopoverContent.js +1 -0
  387. package/dist/lib/components/Popover/PopoverContent.mjs +1 -0
  388. package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -1
  389. package/dist/lib/components/Popover/PopoverRoot.js +8 -1
  390. package/dist/lib/components/Popover/PopoverRoot.mjs +2 -1
  391. package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -1
  392. package/dist/lib/components/Popover/index.d.ts +2 -1
  393. package/dist/lib/components/Progress/index.d.ts +3 -3
  394. package/dist/lib/components/Progress/index.js +14 -3
  395. package/dist/lib/components/Progress/index.mjs +2 -1
  396. package/dist/lib/components/Progress/index.mjs.map +1 -1
  397. package/dist/lib/components/RadarChart/index.d.ts +1 -1
  398. package/dist/lib/components/RadarChart/index.js +1 -1
  399. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  400. package/dist/lib/components/Radio/index.d.ts +1 -1
  401. package/dist/lib/components/Radio/index.js +11 -4
  402. package/dist/lib/components/Radio/index.mjs +2 -1
  403. package/dist/lib/components/Radio/index.mjs.map +1 -1
  404. package/dist/lib/components/RadioCards/RadioCardsItem.d.ts +2 -2
  405. package/dist/lib/components/RadioCards/RadioCardsItem.js +1 -0
  406. package/dist/lib/components/RadioCards/RadioCardsItem.mjs +1 -0
  407. package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -1
  408. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +1 -1
  409. package/dist/lib/components/RadioCards/RadioCardsRoot.js +13 -3
  410. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +2 -1
  411. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
  412. package/dist/lib/components/RadioCards/index.d.ts +1 -0
  413. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +1 -1
  414. package/dist/lib/components/RadioGroup/RadioGroupItem.js +1 -0
  415. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +1 -0
  416. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -1
  417. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
  418. package/dist/lib/components/RadioGroup/RadioGroupRoot.js +12 -3
  419. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +2 -1
  420. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
  421. package/dist/lib/components/RadioGroup/index.d.ts +1 -0
  422. package/dist/lib/components/ScrollArea/index.js +4 -1
  423. package/dist/lib/components/ScrollArea/index.mjs +2 -1
  424. package/dist/lib/components/ScrollArea/index.mjs.map +1 -1
  425. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +2 -2
  426. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.js +11 -3
  427. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +2 -1
  428. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
  429. package/dist/lib/components/SegmentedControl/index.d.ts +1 -0
  430. package/dist/lib/components/SegmentedControl/index.js +1 -1
  431. package/dist/lib/components/SegmentedControl/index.mjs.map +1 -1
  432. package/dist/lib/components/Select/index.d.ts +4 -2
  433. package/dist/lib/components/Select/index.js +33 -13
  434. package/dist/lib/components/Select/index.mjs +2 -1
  435. package/dist/lib/components/Select/index.mjs.map +1 -1
  436. package/dist/lib/components/Separator/index.d.ts +1 -1
  437. package/dist/lib/components/Separator/index.js +10 -2
  438. package/dist/lib/components/Separator/index.mjs +2 -1
  439. package/dist/lib/components/Separator/index.mjs.map +1 -1
  440. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  441. package/dist/lib/components/Skeleton/index.js +5 -1
  442. package/dist/lib/components/Skeleton/index.mjs +2 -1
  443. package/dist/lib/components/Skeleton/index.mjs.map +1 -1
  444. package/dist/lib/components/Slider/index.d.ts +3 -2
  445. package/dist/lib/components/Slider/index.js +12 -5
  446. package/dist/lib/components/Slider/index.mjs +2 -1
  447. package/dist/lib/components/Slider/index.mjs.map +1 -1
  448. package/dist/lib/components/Spinner/index.d.ts +1 -1
  449. package/dist/lib/components/Spinner/index.js +4 -1
  450. package/dist/lib/components/Spinner/index.mjs +2 -1
  451. package/dist/lib/components/Spinner/index.mjs.map +1 -1
  452. package/dist/lib/components/TabNav/index.js +6 -3
  453. package/dist/lib/components/TabNav/index.mjs +2 -1
  454. package/dist/lib/components/TabNav/index.mjs.map +1 -1
  455. package/dist/lib/components/Table/index.d.ts +2 -2
  456. package/dist/lib/components/Table/index.js +9 -3
  457. package/dist/lib/components/Table/index.mjs +2 -1
  458. package/dist/lib/components/Table/index.mjs.map +1 -1
  459. package/dist/lib/components/Tabs/index.d.ts +2 -1
  460. package/dist/lib/components/Tabs/index.js +6 -3
  461. package/dist/lib/components/Tabs/index.mjs +2 -1
  462. package/dist/lib/components/Tabs/index.mjs.map +1 -1
  463. package/dist/lib/components/TextArea/index.d.ts +3 -3
  464. package/dist/lib/components/TextArea/index.js +11 -3
  465. package/dist/lib/components/TextArea/index.mjs +2 -1
  466. package/dist/lib/components/TextArea/index.mjs.map +1 -1
  467. package/dist/lib/components/TextField/index.d.ts +1 -1
  468. package/dist/lib/components/TextField/index.js +12 -4
  469. package/dist/lib/components/TextField/index.mjs +2 -1
  470. package/dist/lib/components/TextField/index.mjs.map +1 -1
  471. package/dist/lib/components/Timeline/TimelineConnector.d.ts +6 -0
  472. package/dist/lib/components/Timeline/TimelineConnector.js +36 -0
  473. package/dist/lib/components/Timeline/TimelineContent.d.ts +6 -0
  474. package/dist/lib/components/Timeline/TimelineContent.js +34 -0
  475. package/dist/lib/components/Timeline/TimelineDescription.d.ts +6 -0
  476. package/dist/lib/components/Timeline/TimelineDescription.js +34 -0
  477. package/dist/lib/components/Timeline/TimelineHeader.d.ts +6 -0
  478. package/dist/lib/components/Timeline/TimelineHeader.js +34 -0
  479. package/dist/lib/components/Timeline/TimelineIcon.d.ts +8 -0
  480. package/dist/lib/components/Timeline/TimelineIcon.js +42 -0
  481. package/dist/lib/components/Timeline/TimelineItem.d.ts +6 -0
  482. package/dist/lib/components/Timeline/TimelineItem.js +34 -0
  483. package/dist/lib/components/Timeline/TimelineRoot.d.ts +11 -0
  484. package/dist/lib/components/Timeline/TimelineRoot.js +53 -0
  485. package/dist/lib/components/Timeline/TimelineTime.d.ts +6 -0
  486. package/dist/lib/components/Timeline/TimelineTime.js +34 -0
  487. package/dist/lib/components/Timeline/TimelineTitle.d.ts +6 -0
  488. package/dist/lib/components/Timeline/TimelineTitle.js +34 -0
  489. package/dist/lib/components/Timeline/index.d.ts +13 -0
  490. package/dist/lib/components/Timeline/index.js +21 -0
  491. package/dist/lib/components/Toast/ToastActionButton.d.ts +3 -3
  492. package/dist/lib/components/Toast/ToastActionButton.js +8 -3
  493. package/dist/lib/components/Toast/ToastActionButton.mjs +2 -1
  494. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
  495. package/dist/lib/components/Toast/ToastDescription.d.ts +2 -2
  496. package/dist/lib/components/Toast/ToastDescription.js +1 -0
  497. package/dist/lib/components/Toast/ToastDescription.mjs +1 -0
  498. package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -1
  499. package/dist/lib/components/Toast/ToastRoot.d.ts +4 -4
  500. package/dist/lib/components/Toast/ToastRoot.js +11 -3
  501. package/dist/lib/components/Toast/ToastRoot.mjs +2 -1
  502. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
  503. package/dist/lib/components/Toast/ToastTitle.d.ts +2 -2
  504. package/dist/lib/components/Toast/ToastTitle.js +1 -0
  505. package/dist/lib/components/Toast/ToastTitle.mjs +1 -0
  506. package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -1
  507. package/dist/lib/components/Toast/index.d.ts +1 -0
  508. package/dist/lib/components/Toggle/ToggleWithText.d.ts +3 -3
  509. package/dist/lib/components/Toggle/ToggleWithText.js +13 -2
  510. package/dist/lib/components/Toggle/ToggleWithText.mjs +2 -1
  511. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
  512. package/dist/lib/components/Toggle/index.d.ts +4 -4
  513. package/dist/lib/components/Toggle/index.js +14 -3
  514. package/dist/lib/components/Toggle/index.mjs +2 -1
  515. package/dist/lib/components/Toggle/index.mjs.map +1 -1
  516. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
  517. package/dist/lib/components/ToggleGroup/ToggleGroupItem.js +2 -1
  518. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +2 -1
  519. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -1
  520. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
  521. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.js +13 -3
  522. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +2 -1
  523. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
  524. package/dist/lib/components/ToggleGroup/index.d.ts +1 -0
  525. package/dist/lib/components/ToggleSwitch/index.d.ts +3 -3
  526. package/dist/lib/components/ToggleSwitch/index.js +13 -2
  527. package/dist/lib/components/ToggleSwitch/index.mjs +2 -1
  528. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
  529. package/dist/lib/components/Tooltip/index.d.ts +1 -1
  530. package/dist/lib/components/Tooltip/index.js +14 -9
  531. package/dist/lib/components/Tooltip/index.mjs +2 -1
  532. package/dist/lib/components/Tooltip/index.mjs.map +1 -1
  533. package/dist/lib/components/index.d.ts +7 -0
  534. package/dist/lib/components/index.js +8 -0
  535. package/dist/lib/constants.d.ts +6 -7
  536. package/dist/lib/constants.js +19 -31
  537. package/dist/lib/constants.mjs +1 -1
  538. package/dist/lib/constants.mjs.map +1 -1
  539. package/dist/lib/index.d.ts +1 -0
  540. package/dist/lib/index.js +1 -0
  541. package/dist/lib/index.mjs +1 -1
  542. package/dist/lib/theme/ThemeProvider.d.ts +16 -0
  543. package/dist/lib/theme/ThemeProvider.js +29 -0
  544. package/dist/lib/theme/ThemeProvider.mjs +3 -0
  545. package/dist/lib/theme/ThemeProvider.mjs.map +1 -0
  546. package/dist/lib/theme/index.d.ts +2 -0
  547. package/dist/lib/theme/index.js +2 -0
  548. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  549. package/dist/lib/types.d.ts +9 -0
  550. package/dist/lib/utils/classPrefixes.d.ts +3 -0
  551. package/dist/lib/utils/classPrefixes.js +26 -0
  552. package/dist/lib/utils/useDarkMode.js +1 -0
  553. package/dist/lib/utils/useDarkMode.mjs +1 -0
  554. package/dist/lib/utils/useDarkMode.mjs.map +1 -1
  555. package/dist/public/tinymce/icons/default/icons.d.ts +0 -0
  556. package/dist/public/tinymce/icons/default/icons.js +195 -0
  557. package/dist/public/tinymce/icons/default/index.d.ts +1 -0
  558. package/dist/public/tinymce/icons/default/index.js +8 -0
  559. package/dist/public/tinymce/models/dom/index.d.ts +1 -0
  560. package/dist/public/tinymce/models/dom/index.js +8 -0
  561. package/dist/public/tinymce/models/dom/model.d.ts +0 -0
  562. package/dist/public/tinymce/models/dom/model.js +7988 -0
  563. package/dist/public/tinymce/plugins/advlist/index.d.ts +1 -0
  564. package/dist/public/tinymce/plugins/advlist/index.js +8 -0
  565. package/dist/public/tinymce/plugins/advlist/plugin.d.ts +0 -0
  566. package/dist/public/tinymce/plugins/advlist/plugin.js +255 -0
  567. package/dist/public/tinymce/plugins/autolink/index.d.ts +1 -0
  568. package/dist/public/tinymce/plugins/autolink/index.js +8 -0
  569. package/dist/public/tinymce/plugins/autolink/plugin.d.ts +0 -0
  570. package/dist/public/tinymce/plugins/autolink/plugin.js +221 -0
  571. package/dist/public/tinymce/plugins/code/index.d.ts +1 -0
  572. package/dist/public/tinymce/plugins/code/index.js +8 -0
  573. package/dist/public/tinymce/plugins/code/plugin.d.ts +0 -0
  574. package/dist/public/tinymce/plugins/code/plugin.js +77 -0
  575. package/dist/public/tinymce/plugins/codesample/index.d.ts +1 -0
  576. package/dist/public/tinymce/plugins/codesample/index.js +8 -0
  577. package/dist/public/tinymce/plugins/codesample/plugin.d.ts +45 -0
  578. package/dist/public/tinymce/plugins/codesample/plugin.js +2462 -0
  579. package/dist/public/tinymce/plugins/image/index.d.ts +1 -0
  580. package/dist/public/tinymce/plugins/image/index.js +8 -0
  581. package/dist/public/tinymce/plugins/image/plugin.d.ts +0 -0
  582. package/dist/public/tinymce/plugins/image/plugin.js +1523 -0
  583. package/dist/public/tinymce/plugins/link/index.d.ts +1 -0
  584. package/dist/public/tinymce/plugins/link/index.js +8 -0
  585. package/dist/public/tinymce/plugins/link/plugin.d.ts +0 -0
  586. package/dist/public/tinymce/plugins/link/plugin.js +1246 -0
  587. package/dist/public/tinymce/plugins/lists/index.d.ts +1 -0
  588. package/dist/public/tinymce/plugins/lists/index.js +8 -0
  589. package/dist/public/tinymce/plugins/lists/plugin.d.ts +0 -0
  590. package/dist/public/tinymce/plugins/lists/plugin.js +2191 -0
  591. package/dist/public/tinymce/plugins/table/index.d.ts +1 -0
  592. package/dist/public/tinymce/plugins/table/index.js +8 -0
  593. package/dist/public/tinymce/plugins/table/plugin.d.ts +0 -0
  594. package/dist/public/tinymce/plugins/table/plugin.js +3399 -0
  595. package/dist/public/tinymce/skins/content/default/content.d.ts +0 -0
  596. package/dist/public/tinymce/skins/content/default/content.js +3 -0
  597. package/dist/public/tinymce/skins/ui/oxide/content.d.ts +0 -0
  598. package/dist/public/tinymce/skins/ui/oxide/content.inline.d.ts +0 -0
  599. package/dist/public/tinymce/skins/ui/oxide/content.inline.js +3 -0
  600. package/dist/public/tinymce/skins/ui/oxide/content.js +3 -0
  601. package/dist/public/tinymce/skins/ui/oxide/skin.d.ts +0 -0
  602. package/dist/public/tinymce/skins/ui/oxide/skin.js +3 -0
  603. package/dist/public/tinymce/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  604. package/dist/public/tinymce/skins/ui/oxide/skin.shadowdom.js +3 -0
  605. package/dist/public/tinymce/skins/ui/oxide-dark/content.d.ts +0 -0
  606. package/dist/public/tinymce/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  607. package/dist/public/tinymce/skins/ui/oxide-dark/content.inline.js +3 -0
  608. package/dist/public/tinymce/skins/ui/oxide-dark/content.js +3 -0
  609. package/dist/public/tinymce/skins/ui/oxide-dark/skin.d.ts +0 -0
  610. package/dist/public/tinymce/skins/ui/oxide-dark/skin.js +3 -0
  611. package/dist/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  612. package/dist/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +3 -0
  613. package/dist/public/tinymce/themes/silver/index.d.ts +1 -0
  614. package/dist/public/tinymce/themes/silver/index.js +8 -0
  615. package/dist/public/tinymce/themes/silver/theme.d.ts +0 -0
  616. package/dist/public/tinymce/themes/silver/theme.js +29731 -0
  617. package/dist/public/tinymce/tinymce.d.ts +1 -0
  618. package/dist/public/tinymce/tinymce.js +31974 -0
  619. package/dist/tailwind.config.js +13 -50
  620. package/dist/tsconfig.tsbuildinfo +1 -1
  621. package/package.json +13 -6
  622. package/public/tinymce/CHANGELOG.md +3453 -0
  623. package/public/tinymce/README.md +73 -0
  624. package/public/tinymce/bower.json +27 -0
  625. package/public/tinymce/composer.json +52 -0
  626. package/public/tinymce/icons/default/icons.js +194 -0
  627. package/public/tinymce/icons/default/icons.min.js +1 -0
  628. package/public/tinymce/icons/default/index.js +7 -0
  629. package/public/tinymce/license.txt +21 -0
  630. package/public/tinymce/models/dom/index.js +7 -0
  631. package/public/tinymce/models/dom/model.js +8040 -0
  632. package/public/tinymce/models/dom/model.min.js +4 -0
  633. package/public/tinymce/package.json +32 -0
  634. package/public/tinymce/plugins/advlist/index.js +7 -0
  635. package/public/tinymce/plugins/advlist/plugin.js +259 -0
  636. package/public/tinymce/plugins/advlist/plugin.min.js +4 -0
  637. package/public/tinymce/plugins/autolink/index.js +7 -0
  638. package/public/tinymce/plugins/autolink/plugin.js +228 -0
  639. package/public/tinymce/plugins/autolink/plugin.min.js +4 -0
  640. package/public/tinymce/plugins/code/index.js +7 -0
  641. package/public/tinymce/plugins/code/plugin.js +85 -0
  642. package/public/tinymce/plugins/code/plugin.min.js +4 -0
  643. package/public/tinymce/plugins/codesample/index.js +7 -0
  644. package/public/tinymce/plugins/codesample/plugin.js +2463 -0
  645. package/public/tinymce/plugins/codesample/plugin.min.js +4 -0
  646. package/public/tinymce/plugins/image/index.js +7 -0
  647. package/public/tinymce/plugins/image/plugin.js +1505 -0
  648. package/public/tinymce/plugins/image/plugin.min.js +4 -0
  649. package/public/tinymce/plugins/link/index.js +7 -0
  650. package/public/tinymce/plugins/link/plugin.js +1242 -0
  651. package/public/tinymce/plugins/link/plugin.min.js +4 -0
  652. package/public/tinymce/plugins/lists/index.js +7 -0
  653. package/public/tinymce/plugins/lists/plugin.js +2172 -0
  654. package/public/tinymce/plugins/lists/plugin.min.js +4 -0
  655. package/public/tinymce/plugins/table/index.js +7 -0
  656. package/public/tinymce/plugins/table/plugin.js +3462 -0
  657. package/public/tinymce/plugins/table/plugin.min.js +4 -0
  658. package/public/tinymce/skins/content/default/content.css +61 -0
  659. package/public/tinymce/skins/content/default/content.js +2 -0
  660. package/public/tinymce/skins/content/default/content.min.css +1 -0
  661. package/public/tinymce/skins/ui/oxide/content.css +785 -0
  662. package/public/tinymce/skins/ui/oxide/content.inline.css +779 -0
  663. package/public/tinymce/skins/ui/oxide/content.inline.js +2 -0
  664. package/public/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
  665. package/public/tinymce/skins/ui/oxide/content.js +2 -0
  666. package/public/tinymce/skins/ui/oxide/content.min.css +1 -0
  667. package/public/tinymce/skins/ui/oxide/skin.css +3763 -0
  668. package/public/tinymce/skins/ui/oxide/skin.js +2 -0
  669. package/public/tinymce/skins/ui/oxide/skin.min.css +1 -0
  670. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
  671. package/public/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  672. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  673. package/public/tinymce/skins/ui/oxide-dark/content.css +766 -0
  674. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +779 -0
  675. package/public/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  676. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
  677. package/public/tinymce/skins/ui/oxide-dark/content.js +2 -0
  678. package/public/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
  679. package/public/tinymce/skins/ui/oxide-dark/skin.css +3766 -0
  680. package/public/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  681. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  682. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
  683. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  684. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  685. package/public/tinymce/themes/silver/index.js +7 -0
  686. package/public/tinymce/themes/silver/theme.js +30775 -0
  687. package/public/tinymce/themes/silver/theme.min.js +384 -0
  688. package/public/tinymce/tinymce.d.ts +3238 -0
  689. package/public/tinymce/tinymce.js +31779 -0
  690. package/public/tinymce/tinymce.min.js +384 -0
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -26,6 +27,8 @@ import { cva } from 'class-variance-authority';
26
27
  import { Theme, Radio as RadioTheme, Flex } from '@radix-ui/themes';
27
28
  import { Text } from '../../../lib/Typography/Text';
28
29
  import { cn } from '../../../lib/utils/utils';
30
+ import { useTheme } from '../../../lib/theme';
31
+ import { MAIN_COLOR } from '../../../lib/color/constants';
29
32
  var radioVariants = cva('font-normal', {
30
33
  variants: {
31
34
  size: {
@@ -39,15 +42,19 @@ var radioVariants = cva('font-normal', {
39
42
  },
40
43
  });
41
44
  export var Radio = forwardRef(function (_a, ref) {
42
- var value = _a.value, scaling = _a.scaling, color = _a.color, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, children = _a.children, className = _a.className, props = __rest(_a, ["value", "scaling", "color", "size", "appearance", "children", "className"]);
43
- if (!color)
44
- color = 'red';
45
+ var _b;
46
+ var value = _a.value, scaling = _a.scaling, color = _a.color, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.appearance, appearance = _d === void 0 ? 'surface' : _d, children = _a.children, className = _a.className, props = __rest(_a, ["value", "scaling", "color", "size", "appearance", "children", "className"]);
47
+ var theme = useTheme().theme;
45
48
  var sizeTheme = '2';
46
49
  if (size === 'small')
47
50
  sizeTheme = '1';
48
51
  if (size === 'large')
49
52
  sizeTheme = '3';
50
- return (_jsx(Theme, { accentColor: color, scaling: scaling, children: _jsx(Flex, { asChild: true, className: cn(radioVariants({ size: size }), className), children: _jsxs(Text, { as: "label", size: sizeTheme, children: [_jsx(RadioTheme, __assign({ ref: ref, value: value, variant: appearance, size: sizeTheme }, props)), children] }) }) }));
53
+ var radioStyle = {
54
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
55
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : MAIN_COLOR,
56
+ };
57
+ return (_jsx(Theme, { accentColor: radioStyle.color, scaling: radioStyle.scaling, children: _jsx(Flex, { asChild: true, className: cn(radioVariants({ size: size }), className), children: _jsxs(Text, { as: "label", size: sizeTheme, color: "black", children: [_jsx(RadioTheme, __assign({ ref: ref, value: value, variant: appearance, size: sizeTheme }, props)), children] }) }) }));
51
58
  });
52
59
  Radio.displayName = 'Radio';
53
60
  export default Radio;
@@ -1,2 +1,3 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{forwardRef as a}from"react";import{cva as t}from"class-variance-authority";import{Theme as i,Flex as o,Radio as l}from"@radix-ui/themes";import{Text as n}from"../../Typography/Text/index.mjs";import{cn as s}from"../../utils/utils.mjs";var c=function(){return c=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var i in r=arguments[a])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},c.apply(this,arguments)},p=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)r.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a},m=t("font-normal",{variants:{size:{small:"text-[12px] gap-2",medium:"text-[14px] gap-2",large:"text-[16px] gap-3"}},defaultVariants:{size:"medium"}}),u=a((function(a,t){var u=a.value,f=a.scaling,d=a.color,v=a.size,y=void 0===v?"medium":v,g=a.appearance,h=void 0===g?"surface":g,x=a.children,O=a.className,b=p(a,["value","scaling","color","size","appearance","children","className"]);d||(d="red");var j="2";return"small"===y&&(j="1"),"large"===y&&(j="3"),e(i,{accentColor:d,scaling:f,children:e(o,{asChild:!0,className:s(m({size:y}),O),children:r(n,{as:"label",size:j,children:[e(l,c({ref:t,value:u,variant:h,size:j},b)),x]})})})}));u.displayName="Radio";export{u as Radio,u as default};
1
+ "use client";
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{forwardRef as a}from"react";import{cva as t}from"class-variance-authority";import{Theme as o,Flex as l,Radio as i}from"@radix-ui/themes";import{Text as n}from"../../Typography/Text/index.mjs";import{cn as s}from"../../utils/utils.mjs";import{useTheme as c}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as m}from"../../color/constants.mjs";var p=function(){return p=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var o in r=arguments[a])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},p.apply(this,arguments)},u=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(a[t[o]]=e[t[o]])}return a},f=t("font-normal",{variants:{size:{small:"text-[12px] gap-2",medium:"text-[14px] gap-2",large:"text-[16px] gap-3"}},defaultVariants:{size:"medium"}}),d=a((function(a,t){var d,h=a.value,v=a.scaling,g=a.color,y=a.size,x=void 0===y?"medium":y,O=a.appearance,b=void 0===O?"surface":O,j=a.children,z=a.className,P=u(a,["value","scaling","color","size","appearance","children","className"]),w=c().theme,N="2";"small"===x&&(N="1"),"large"===x&&(N="3");var C={scaling:null!=v?v:w.themeScaling,color:null!==(d=null!=g?g:w.themeColor)&&void 0!==d?d:m};return e(o,{accentColor:C.color,scaling:C.scaling,children:e(l,{asChild:!0,className:s(f({size:x}),z),children:r(n,{as:"label",size:N,color:"black",children:[e(i,p({ref:t,value:h,variant:b,size:N},P)),j]})})})}));d.displayName="Radio";export{d as Radio,d as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Radio/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Theme, Radio as RadioTheme, Flex } from '@radix-ui/themes';\nimport { Text } from '../../../lib/Typography/Text';\nimport { cn } from '../../../lib/utils/utils';\nvar radioVariants = cva('font-normal', {\n variants: {\n size: {\n small: 'text-[12px] gap-2',\n medium: 'text-[14px] gap-2',\n large: 'text-[16px] gap-3',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var Radio = forwardRef(function (_a, ref) {\n var value = _a.value, scaling = _a.scaling, color = _a.color, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, children = _a.children, className = _a.className, props = __rest(_a, [\"value\", \"scaling\", \"color\", \"size\", \"appearance\", \"children\", \"className\"]);\n if (!color)\n color = 'red';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { accentColor: color, scaling: scaling, children: _jsx(Flex, { asChild: true, className: cn(radioVariants({ size: size }), className), children: _jsxs(Text, { as: \"label\", size: sizeTheme, children: [_jsx(RadioTheme, __assign({ ref: ref, value: value, variant: appearance, size: sizeTheme }, props)), children] }) }) }));\n});\nRadio.displayName = 'Radio';\nexport default Radio;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","radioVariants","cva","variants","size","small","medium","large","defaultVariants","Radio","forwardRef","_a","ref","value","scaling","color","_b","_c","appearance","children","className","props","sizeTheme","_jsx","Theme","accentColor","Flex","asChild","cn","_jsxs","Text","as","RadioTheme","variant","displayName"],"mappings":"oSAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAgBC,EAAI,cAAe,CACnCC,SAAU,CACNC,KAAM,CACFC,MAAO,oBACPC,OAAQ,oBACRC,MAAO,sBAGfC,gBAAiB,CACbJ,KAAM,YAGHK,EAAQC,GAAW,SAAUC,EAAIC,GACxC,IAAIC,EAAQF,EAAGE,MAAOC,EAAUH,EAAGG,QAASC,EAAQJ,EAAGI,MAAOC,EAAKL,EAAGP,KAAMA,OAAc,IAAPY,EAAgB,SAAWA,EAAIC,EAAKN,EAAGO,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIE,EAAWR,EAAGQ,SAAUC,EAAYT,EAAGS,UAAWC,EAAQzB,EAAOe,EAAI,CAAC,QAAS,UAAW,QAAS,OAAQ,aAAc,WAAY,cACnTI,IACDA,EAAQ,OACZ,IAAIO,EAAY,IAKhB,MAJa,UAATlB,IACAkB,EAAY,KACH,UAATlB,IACAkB,EAAY,KACRC,EAAKC,EAAO,CAAEC,YAAaV,EAAOD,QAASA,EAASK,SAAUI,EAAKG,EAAM,CAAEC,SAAS,EAAMP,UAAWQ,EAAG3B,EAAc,CAAEG,KAAMA,IAASgB,GAAYD,SAAUU,EAAMC,EAAM,CAAEC,GAAI,QAAS3B,KAAMkB,EAAWH,SAAU,CAACI,EAAKS,EAAYnD,EAAS,CAAE+B,IAAKA,EAAKC,MAAOA,EAAOoB,QAASf,EAAYd,KAAMkB,GAAaD,IAASF,QACrU,IACAV,EAAMyB,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -4,7 +4,7 @@ import { RadioCards as RadioCardsTheme } from '@radix-ui/themes';
4
4
  export interface RadioCardsItemProps extends VariantProps<typeof radioCardsItemVariants> {
5
5
  }
6
6
  export declare const radioCardsItemVariants: (props?: ({
7
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
8
- size?: "small" | "medium" | "large" | null | undefined;
7
+ radius?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
8
+ size?: "small" | "large" | "medium" | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export declare const RadioCardsItem: React.ForwardRefExoticComponent<Omit<RadioCardsTheme.ItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & RadioCardsItemProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -1,2 +1,3 @@
1
+ "use client";
1
2
  import{jsx as e}from"react/jsx-runtime";import{forwardRef as r,useContext as t}from"react";import{cva as a}from"class-variance-authority";import{RadioCards as o}from"@radix-ui/themes";import{cn as d}from"../../utils/utils.mjs";import{RadioCardsContext as n}from"./RadioCardsRoot.mjs";var i=function(){return i=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},i.apply(this,arguments)},s=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)r.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(t[a[o]]=e[a[o]])}return t},l=a("min-w-[200px] bg-white dark:bg-slateDark-1 text-slateA-12 dark:text-slateDarkA-12 border-slateA-6 dark:border-slateDarkA-6 font-normal disabled:text-slateA-9 dark:disabled:text-slateDarkA-9",{variants:{radius:{none:"rounded-none before:rounded-none after:rounded-none",small:"rounded-[3px] before:rounded-[3px] after:rounded-[3px]",medium:"rounded before:rounded after:rounded",large:"rounded-md before:rounded-md after:rounded-md",full:"rounded-md before:rounded-md after:rounded-md"},size:{small:"text-sm py-[10px] px-[12px] h-[40px]",medium:"text-sm py-[14px] px-[16px] h-[48px]",large:"text-base py-[20px] px-[24px] h-[64px]"}},defaultVariants:{radius:"medium",size:"medium"}}),m=r((function(r,a){var m=r.children,u=r.className,p=r.value,f=s(r,["children","className","value"]),x=t(n),c=x.radius,b=x.size;return e(o.Item,i({ref:a,value:p,className:d(l({radius:c,size:b}),u)},f,{children:m}))}));m.displayName="RadioCards.Item";export{m as RadioCardsItem,l as radioCardsItemVariants};
2
3
  //# sourceMappingURL=RadioCardsItem.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioCardsItem.mjs","sources":["../../../lib/components/RadioCards/RadioCardsItem.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useContext } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { RadioCards as RadioCardsTheme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nimport { RadioCardsContext } from './RadioCardsRoot';\nexport var radioCardsItemVariants = cva('min-w-[200px] bg-white dark:bg-slateDark-1 text-slateA-12 dark:text-slateDarkA-12 border-slateA-6 dark:border-slateDarkA-6 font-normal disabled:text-slateA-9 dark:disabled:text-slateDarkA-9', {\n variants: {\n radius: {\n none: 'rounded-none before:rounded-none after:rounded-none',\n small: 'rounded-[3px] before:rounded-[3px] after:rounded-[3px]',\n medium: 'rounded before:rounded after:rounded',\n large: 'rounded-md before:rounded-md after:rounded-md',\n full: 'rounded-md before:rounded-md after:rounded-md',\n },\n size: {\n small: 'text-sm py-[10px] px-[12px] h-[40px]',\n medium: 'text-sm py-[14px] px-[16px] h-[48px]',\n large: 'text-base py-[20px] px-[24px] h-[64px]',\n },\n },\n defaultVariants: {\n radius: 'medium',\n size: 'medium',\n },\n});\nexport var RadioCardsItem = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, value = _a.value, props = __rest(_a, [\"children\", \"className\", \"value\"]);\n var _b = useContext(RadioCardsContext), radius = _b.radius, size = _b.size;\n return (_jsx(RadioCardsTheme.Item, __assign({ ref: ref, value: value, className: cn(radioCardsItemVariants({ radius: radius, size: size }), className) }, props, { children: children })));\n});\nRadioCardsItem.displayName = 'RadioCards.Item';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","radioCardsItemVariants","cva","variants","radius","none","small","medium","large","full","size","defaultVariants","RadioCardsItem","forwardRef","_a","ref","children","className","value","props","_b","useContext","RadioCardsContext","_jsx","RadioCardsTheme","Item","cn","displayName"],"mappings":"4RAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOWiB,EAAyBC,EAAI,gMAAiM,CACrOC,SAAU,CACNC,OAAQ,CACJC,KAAM,sDACNC,MAAO,yDACPC,OAAQ,uCACRC,MAAO,gDACPC,KAAM,iDAEVC,KAAM,CACFJ,MAAO,uCACPC,OAAQ,uCACRC,MAAO,2CAGfG,gBAAiB,CACbP,OAAQ,SACRM,KAAM,YAGHE,EAAiBC,GAAW,SAAUC,EAAIC,GACjD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAQJ,EAAGI,MAAOC,EAAQvB,EAAOkB,EAAI,CAAC,WAAY,YAAa,UACjHM,EAAKC,EAAWC,GAAoBlB,EAASgB,EAAGhB,OAAQM,EAAOU,EAAGV,KACtE,OAAQa,EAAKC,EAAgBC,KAAM5C,EAAS,CAAEkC,IAAKA,EAAKG,MAAOA,EAAOD,UAAWS,EAAGzB,EAAuB,CAAEG,OAAQA,EAAQM,KAAMA,IAASO,IAAcE,EAAO,CAAEH,SAAUA,IACjL,IACAJ,EAAee,YAAc"}
1
+ {"version":3,"file":"RadioCardsItem.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -6,7 +6,7 @@ export interface RadioCardsProps extends VariantProps<typeof radioCardsVariants>
6
6
  appearance?: 'classic' | 'surface';
7
7
  }
8
8
  declare const radioCardsVariants: (props?: ({
9
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
9
+ scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
10
10
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  export declare const RadioCardsContext: React.Context<RadioCardsProps>;
12
12
  export declare const RadioCardsRoot: React.ForwardRefExoticComponent<Omit<Omit<RadioCardsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & RadioCardsProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -26,6 +27,8 @@ import { cva } from 'class-variance-authority';
26
27
  import { scalingVariants } from '../../../lib/constants';
27
28
  import { Theme, RadioCards as RadioCardsTheme } from '@radix-ui/themes';
28
29
  import { cn } from '../../../lib/utils/utils';
30
+ import { useTheme } from '../../../lib/theme';
31
+ import { MAIN_COLOR } from '../../../lib/color/constants';
29
32
  var radioCardsVariants = cva('flex items-center gap-2', {
30
33
  variants: {
31
34
  scaling: __assign({}, scalingVariants),
@@ -39,8 +42,15 @@ export var RadioCardsContext = createContext({
39
42
  size: 'medium',
40
43
  });
41
44
  export var RadioCardsRoot = forwardRef(function (_a, ref) {
42
- var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "color", "appearance"]);
43
- var contextValue = { radius: radius, size: size };
44
- return (_jsx(Theme, { accentColor: color, children: _jsx(RadioCardsContext.Provider, { value: contextValue, children: _jsx(RadioCardsTheme.Root, __assign({ ref: ref, variant: appearance, className: cn(radioCardsVariants({ scaling: scaling }), className) }, props, { children: children })) }) }));
45
+ var _b;
46
+ var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, color = _a.color, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, props = __rest(_a, ["children", "className", "radius", "scaling", "size", "color", "appearance"]);
47
+ var theme = useTheme().theme;
48
+ var contextValue = {
49
+ radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
50
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : MAIN_COLOR,
51
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
52
+ size: size,
53
+ };
54
+ return (_jsx(Theme, { accentColor: contextValue.color, children: _jsx(RadioCardsContext.Provider, { value: contextValue, children: _jsx(RadioCardsTheme.Root, __assign({ ref: ref, variant: appearance, className: cn(radioCardsVariants({ scaling: contextValue.scaling }), className) }, props, { children: children })) }) }));
45
55
  });
46
56
  RadioCardsRoot.displayName = 'RadioCards.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as a}from"react";import{cva as t}from"class-variance-authority";import{scalingVariants as i}from"../../constants.mjs";import{Theme as o,RadioCards as n}from"@radix-ui/themes";import{cn as s}from"../../utils/utils.mjs";var c=function(){return c=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var i in e=arguments[a])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},c.apply(this,arguments)},l=function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(r);i<t.length;i++)e.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(r,t[i])&&(a[t[i]]=r[t[i]])}return a},m=t("flex items-center gap-2",{variants:{scaling:c({},i)},defaultVariants:{scaling:"100%"}}),p=e({radius:"medium",size:"medium"}),u=a((function(e,a){var t=e.children,i=e.className,u=e.radius,f=e.scaling,d=e.size,v=e.color,y=void 0===v?"red":v,h=e.appearance,O=void 0===h?"surface":h,g=l(e,["children","className","radius","scaling","size","color","appearance"]),b={radius:u,size:d};return r(o,{accentColor:y,children:r(p.Provider,{value:b,children:r(n.Root,c({ref:a,variant:O,className:s(m({scaling:f}),i)},g,{children:t}))})})}));u.displayName="RadioCards.Root";export{p as RadioCardsContext,u as RadioCardsRoot};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as t}from"react";import{cva as o}from"class-variance-authority";import{scalingVariants as a}from"../../constants.mjs";import{Theme as i,RadioCards as n}from"@radix-ui/themes";import{cn as l}from"../../utils/utils.mjs";import{useTheme as s}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as c}from"../../color/constants.mjs";var m=function(){return m=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var a in e=arguments[t])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},m.apply(this,arguments)},p=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(r);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(t[o[a]]=r[o[a]])}return t},u=o("flex items-center gap-2",{variants:{scaling:m({},a)},defaultVariants:{scaling:"100%"}}),f=e({radius:"medium",size:"medium"}),d=t((function(e,t){var o,a=e.children,d=e.className,h=e.radius,v=e.scaling,g=e.size,y=e.color,O=e.appearance,j=void 0===O?"surface":O,b=p(e,["children","className","radius","scaling","size","color","appearance"]),x=s().theme,P={radius:null!=h?h:x.themeRadius,color:null!==(o=null!=y?y:x.themeColor)&&void 0!==o?o:c,scaling:null!=v?v:x.themeScaling,size:g};return r(i,{accentColor:P.color,children:r(f.Provider,{value:P,children:r(n.Root,m({ref:t,variant:j,className:l(u({scaling:P.scaling}),d)},b,{children:a}))})})}));d.displayName="RadioCards.Root";export{f as RadioCardsContext,d as RadioCardsRoot};
2
3
  //# sourceMappingURL=RadioCardsRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioCardsRoot.mjs","sources":["../../../lib/components/RadioCards/RadioCardsRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants } from '../../../lib/constants';\nimport { Theme, RadioCards as RadioCardsTheme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nvar radioCardsVariants = cva('flex items-center gap-2', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var RadioCardsContext = createContext({\n radius: 'medium',\n size: 'medium',\n});\nexport var RadioCardsRoot = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, radius = _a.radius, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, props = __rest(_a, [\"children\", \"className\", \"radius\", \"scaling\", \"size\", \"color\", \"appearance\"]);\n var contextValue = { radius: radius, size: size };\n return (_jsx(Theme, { accentColor: color, children: _jsx(RadioCardsContext.Provider, { value: contextValue, children: _jsx(RadioCardsTheme.Root, __assign({ ref: ref, variant: appearance, className: cn(radioCardsVariants({ scaling: scaling }), className) }, props, { children: children })) }) }));\n});\nRadioCardsRoot.displayName = 'RadioCards.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","radioCardsVariants","cva","variants","scaling","scalingVariants","defaultVariants","RadioCardsContext","createContext","radius","size","RadioCardsRoot","forwardRef","_a","ref","children","className","_b","color","_c","appearance","props","contextValue","_jsx","Theme","accentColor","Provider","value","RadioCardsTheme","Root","variant","cn","displayName"],"mappings":"uSAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAqBC,EAAI,0BAA2B,CACpDC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAoBC,EAAc,CACzCC,OAAQ,SACRC,KAAM,WAECC,EAAiBC,GAAW,SAAUC,EAAIC,GACjD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWP,EAASI,EAAGJ,OAAQL,EAAUS,EAAGT,QAASM,EAAOG,EAAGH,KAAMO,EAAKJ,EAAGK,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIE,EAAKN,EAAGO,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIE,EAAQzB,EAAOiB,EAAI,CAAC,WAAY,YAAa,SAAU,UAAW,OAAQ,QAAS,eACnTS,EAAe,CAAEb,OAAQA,EAAQC,KAAMA,GAC3C,OAAQa,EAAKC,EAAO,CAAEC,YAAaP,EAAOH,SAAUQ,EAAKhB,EAAkBmB,SAAU,CAAEC,MAAOL,EAAcP,SAAUQ,EAAKK,EAAgBC,KAAMhD,EAAS,CAAEiC,IAAKA,EAAKgB,QAASV,EAAYJ,UAAWe,EAAG9B,EAAmB,CAAEG,QAASA,IAAYY,IAAcK,EAAO,CAAEN,SAAUA,QACxR,IACAJ,EAAeqB,YAAc"}
1
+ {"version":3,"file":"RadioCardsRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const RadioCards: {
2
3
  Root: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/radio-cards").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "size"> & import("./RadioCardsRoot").RadioCardsProps & import("react").RefAttributes<HTMLDivElement>>;
3
4
  Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/radio-cards").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./RadioCardsItem").RadioCardsItemProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -6,7 +6,7 @@ export interface RadioGroupItemProps extends VariantProps<typeof radioGroupItemV
6
6
  appearance?: 'classic' | 'surface' | 'soft';
7
7
  }
8
8
  declare const radioGroupItemVariants: (props?: ({
9
- size?: "small" | "medium" | "large" | null | undefined;
9
+ size?: "small" | "large" | "medium" | null | undefined;
10
10
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  export declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupTheme.ItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
12
12
  export {};
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -1,2 +1,3 @@
1
+ "use client";
1
2
  import{jsx as t}from"react/jsx-runtime";import{forwardRef as r,useContext as e}from"react";import{cva as a}from"class-variance-authority";import{RadioGroup as o}from"@radix-ui/themes";import{RadioGroupContext as i}from"./RadioGroupRoot.mjs";import{cn as n}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(t){for(var r,e=1,a=arguments.length;e<a;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},s.apply(this,arguments)},l=function(t,r){var e={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(e[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)r.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(e[a[o]]=t[a[o]])}return e},m=a("font-normal text-slate-12 dark:text-slateDark-12",{variants:{size:{small:"text-xs gap-2",medium:"text-sm gap-2",large:"text-base gap-3"}},defaultVariants:{size:"medium"}}),p=r((function(r,a){var p=r.className,c=r.children,u=r.value,f=l(r,["className","children","value"]),y=e(i).size;return t(o.Item,s({ref:a,value:u,className:n(m({size:y}),p)},f,{children:c}))}));p.displayName="RadioGroup.Item";export{p as RadioGroupItem};
2
3
  //# sourceMappingURL=RadioGroupItem.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroupItem.mjs","sources":["../../../lib/components/RadioGroup/RadioGroupItem.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useContext } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { RadioGroup as RadioGroupTheme } from '@radix-ui/themes';\nimport { RadioGroupContext } from './RadioGroupRoot';\nimport { cn } from '../../../lib/utils/utils';\nvar radioGroupItemVariants = cva('font-normal text-slate-12 dark:text-slateDark-12', {\n variants: {\n size: {\n small: 'text-xs gap-2',\n medium: 'text-sm gap-2',\n large: 'text-base gap-3',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var RadioGroupItem = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, value = _a.value, props = __rest(_a, [\"className\", \"children\", \"value\"]);\n var size = useContext(RadioGroupContext).size;\n return (_jsx(RadioGroupTheme.Item, __assign({ ref: ref, value: value, className: cn(radioGroupItemVariants({ size: size }), className) }, props, { children: children })));\n});\nRadioGroupItem.displayName = 'RadioGroup.Item';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","radioGroupItemVariants","cva","variants","size","small","medium","large","defaultVariants","RadioGroupItem","forwardRef","_a","ref","className","children","value","props","useContext","RadioGroupContext","_jsx","RadioGroupTheme","Item","cn","displayName"],"mappings":"4RAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAyBC,EAAI,mDAAoD,CACjFC,SAAU,CACNC,KAAM,CACFC,MAAO,gBACPC,OAAQ,gBACRC,MAAO,oBAGfC,gBAAiB,CACbJ,KAAM,YAGHK,EAAiBC,GAAW,SAAUC,EAAIC,GACjD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAQJ,EAAGI,MAAOC,EAAQpB,EAAOe,EAAI,CAAC,YAAa,WAAY,UACjHP,EAAOa,EAAWC,GAAmBd,KACzC,OAAQe,EAAKC,EAAgBC,KAAMxC,EAAS,CAAE+B,IAAKA,EAAKG,MAAOA,EAAOF,UAAWS,EAAGrB,EAAuB,CAAEG,KAAMA,IAASS,IAAcG,EAAO,CAAEF,SAAUA,IACjK,IACAL,EAAec,YAAc"}
1
+ {"version":3,"file":"RadioGroupItem.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -8,7 +8,7 @@ export interface RadioGroupProps extends VariantProps<typeof radioGroupVariants>
8
8
  appearance?: 'classic' | 'surface' | 'soft';
9
9
  }
10
10
  declare const radioGroupVariants: (props?: ({
11
- size?: "small" | "medium" | "large" | null | undefined;
11
+ size?: "small" | "large" | "medium" | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export declare const RadioGroupContext: React.Context<RadioGroupProps>;
14
14
  export declare const RadioGroupRoot: React.ForwardRefExoticComponent<Omit<Omit<RadioGroupTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -25,6 +26,8 @@ import { createContext, forwardRef } from 'react';
25
26
  import { Theme, RadioGroup as RadioGroupTheme } from '@radix-ui/themes';
26
27
  import { cva } from 'class-variance-authority';
27
28
  import { cn } from '../../../lib/utils/utils';
29
+ import { useTheme } from '../../../lib/theme';
30
+ import { MAIN_COLOR } from '../../../lib/color/constants';
28
31
  var radioGroupVariants = cva('', {
29
32
  variants: {
30
33
  size: {
@@ -41,13 +44,19 @@ export var RadioGroupContext = createContext({
41
44
  size: 'medium',
42
45
  });
43
46
  export var RadioGroupRoot = forwardRef(function (_a, ref) {
44
- var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, props = __rest(_a, ["className", "children", "scaling", "size", "color", "appearance"]);
45
- var contextValue = { size: size };
47
+ var _b;
48
+ var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, color = _a.color, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, props = __rest(_a, ["className", "children", "scaling", "size", "color", "appearance"]);
49
+ var theme = useTheme().theme;
50
+ var contextValue = {
51
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
52
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : MAIN_COLOR,
53
+ size: size,
54
+ };
46
55
  var sizeTheme = '2';
47
56
  if (size === 'small')
48
57
  sizeTheme = '1';
49
58
  if (size === 'large')
50
59
  sizeTheme = '3';
51
- return (_jsx(Theme, { accentColor: color, scaling: scaling, children: _jsx(RadioGroupContext.Provider, { value: contextValue, children: _jsx(RadioGroupTheme.Root, __assign({ ref: ref, size: sizeTheme, variant: appearance, className: cn(radioGroupVariants({ size: size }), className) }, props, { children: children })) }) }));
60
+ return (_jsx(Theme, { accentColor: contextValue.color, scaling: contextValue.scaling, children: _jsx(RadioGroupContext.Provider, { value: contextValue, children: _jsx(RadioGroupTheme.Root, __assign({ ref: ref, size: sizeTheme, variant: appearance, className: cn(radioGroupVariants({ size: size }), className) }, props, { children: children })) }) }));
52
61
  });
53
62
  RadioGroupRoot.displayName = 'RadioGroup.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as a}from"react";import{Theme as t,RadioGroup as i}from"@radix-ui/themes";import{cva as o}from"class-variance-authority";import{cn as n}from"../../utils/utils.mjs";var l=function(){return l=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var i in e=arguments[a])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},l.apply(this,arguments)},s=function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(r);i<t.length;i++)e.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(r,t[i])&&(a[t[i]]=r[t[i]])}return a},c=o("",{variants:{size:{small:"gap-1",medium:"gap-2",large:"gap-3"}},defaultVariants:{size:"medium"}}),p=e({size:"medium"}),m=a((function(e,a){var o=e.className,m=e.children,u=e.scaling,f=e.size,d=e.color,v=void 0===d?"red":d,y=e.appearance,g=void 0===y?"surface":y,h=s(e,["className","children","scaling","size","color","appearance"]),O={size:f},b="2";return"small"===f&&(b="1"),"large"===f&&(b="3"),r(t,{accentColor:v,scaling:u,children:r(p.Provider,{value:O,children:r(i.Root,l({ref:a,size:b,variant:g,className:n(c({size:f}),o)},h,{children:m}))})})}));m.displayName="RadioGroup.Root";export{p as RadioGroupContext,m as RadioGroupRoot};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as o}from"react";import{Theme as a,RadioGroup as t}from"@radix-ui/themes";import{cva as i}from"class-variance-authority";import{cn as l}from"../../utils/utils.mjs";import{useTheme as n}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as s}from"../../color/constants.mjs";var c=function(){return c=Object.assign||function(r){for(var e,o=1,a=arguments.length;o<a;o++)for(var t in e=arguments[o])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},c.apply(this,arguments)},m=function(r,e){var o={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(o[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(r);t<a.length;t++)e.indexOf(a[t])<0&&Object.prototype.propertyIsEnumerable.call(r,a[t])&&(o[a[t]]=r[a[t]])}return o},p=i("",{variants:{size:{small:"gap-1",medium:"gap-2",large:"gap-3"}},defaultVariants:{size:"medium"}}),u=e({size:"medium"}),f=o((function(e,o){var i,f=e.className,d=e.children,h=e.scaling,g=e.size,v=e.color,y=e.appearance,O=void 0===y?"surface":y,j=m(e,["className","children","scaling","size","color","appearance"]),b=n().theme,z={scaling:null!=h?h:b.themeScaling,color:null!==(i=null!=v?v:b.themeColor)&&void 0!==i?i:s,size:g},P="2";return"small"===g&&(P="1"),"large"===g&&(P="3"),r(a,{accentColor:z.color,scaling:z.scaling,children:r(u.Provider,{value:z,children:r(t.Root,c({ref:o,size:P,variant:O,className:l(p({size:g}),f)},j,{children:d}))})})}));f.displayName="RadioGroup.Root";export{u as RadioGroupContext,f as RadioGroupRoot};
2
3
  //# sourceMappingURL=RadioGroupRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroupRoot.mjs","sources":["../../../lib/components/RadioGroup/RadioGroupRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from 'react';\nimport { Theme, RadioGroup as RadioGroupTheme } from '@radix-ui/themes';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nvar radioGroupVariants = cva('', {\n variants: {\n size: {\n small: 'gap-1',\n medium: 'gap-2',\n large: 'gap-3',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var RadioGroupContext = createContext({\n size: 'medium',\n});\nexport var RadioGroupRoot = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'red' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, props = __rest(_a, [\"className\", \"children\", \"scaling\", \"size\", \"color\", \"appearance\"]);\n var contextValue = { size: size };\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { accentColor: color, scaling: scaling, children: _jsx(RadioGroupContext.Provider, { value: contextValue, children: _jsx(RadioGroupTheme.Root, __assign({ ref: ref, size: sizeTheme, variant: appearance, className: cn(radioGroupVariants({ size: size }), className) }, props, { children: children })) }) }));\n});\nRadioGroupRoot.displayName = 'RadioGroup.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","radioGroupVariants","cva","variants","size","small","medium","large","defaultVariants","RadioGroupContext","createContext","RadioGroupRoot","forwardRef","_a","ref","className","children","scaling","_b","color","_c","appearance","props","contextValue","sizeTheme","_jsx","Theme","accentColor","Provider","value","RadioGroupTheme","Root","variant","cn","displayName"],"mappings":"iPAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAMIiB,EAAqBC,EAAI,GAAI,CAC7BC,SAAU,CACNC,KAAM,CACFC,MAAO,QACPC,OAAQ,QACRC,MAAO,UAGfC,gBAAiB,CACbJ,KAAM,YAGHK,EAAoBC,EAAc,CACzCN,KAAM,WAECO,EAAiBC,GAAW,SAAUC,EAAIC,GACjD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAUJ,EAAGI,QAASb,EAAOS,EAAGT,KAAMc,EAAKL,EAAGM,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIE,EAAKP,EAAGQ,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIE,EAAQ1B,EAAOiB,EAAI,CAAC,YAAa,WAAY,UAAW,OAAQ,QAAS,eACrRU,EAAe,CAAEnB,KAAMA,GACvBoB,EAAY,IAKhB,MAJa,UAATpB,IACAoB,EAAY,KACH,UAATpB,IACAoB,EAAY,KACRC,EAAKC,EAAO,CAAEC,YAAaR,EAAOF,QAASA,EAASD,SAAUS,EAAKhB,EAAkBmB,SAAU,CAAEC,MAAON,EAAcP,SAAUS,EAAKK,EAAgBC,KAAMlD,EAAS,CAAEiC,IAAKA,EAAKV,KAAMoB,EAAWQ,QAASX,EAAYN,UAAWkB,EAAGhC,EAAmB,CAAEG,KAAMA,IAASW,IAAcO,EAAO,CAAEN,SAAUA,QACrT,IACAL,EAAeuB,YAAc"}
1
+ {"version":3,"file":"RadioGroupRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const RadioGroup: {
2
3
  Root: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/radio-group").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "size"> & import("./RadioGroupRoot").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
3
4
  Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/radio-group").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./RadioGroupItem").RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -23,14 +24,16 @@ var __rest = (this && this.__rest) || function (s, e) {
23
24
  import { jsx as _jsx } from "react/jsx-runtime";
24
25
  import { forwardRef } from 'react';
25
26
  import { Theme, ScrollArea as ScrollAreaTheme } from '@radix-ui/themes';
27
+ import { useTheme } from '../../../lib/theme';
26
28
  export var ScrollArea = forwardRef(function (_a, ref) {
27
29
  var className = _a.className, children = _a.children, scrollbars = _a.scrollbars, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'small' : _b, props = __rest(_a, ["className", "children", "scrollbars", "radius", "size"]);
30
+ var theme = useTheme().theme;
28
31
  var sizeTheme = '1';
29
32
  if (size === 'medium')
30
33
  sizeTheme = '2';
31
34
  if (size === 'large')
32
35
  sizeTheme = '3';
33
- return (_jsx(Theme, { children: _jsx(ScrollAreaTheme, __assign({ ref: ref, scrollbars: scrollbars, radius: radius, size: sizeTheme, className: className }, props, { children: children })) }));
36
+ return (_jsx(Theme, { children: _jsx(ScrollAreaTheme, __assign({ ref: ref, scrollbars: scrollbars, radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius, size: sizeTheme, className: className }, props, { children: children })) }));
34
37
  });
35
38
  ScrollArea.displayName = 'ScrollArea';
36
39
  export default ScrollArea;
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Theme as t,ScrollArea as a}from"@radix-ui/themes";var l=function(){return l=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var l in e=arguments[t])Object.prototype.hasOwnProperty.call(e,l)&&(r[l]=e[l]);return r},l.apply(this,arguments)},o=function(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(a=Object.getOwnPropertySymbols(r);l<a.length;l++)e.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(r,a[l])&&(t[a[l]]=r[a[l]])}return t},n=e((function(e,n){var s=e.className,i=e.children,c=e.scrollbars,p=e.radius,f=e.size,m=void 0===f?"small":f,u=o(e,["className","children","scrollbars","radius","size"]),d="1";return"medium"===m&&(d="2"),"large"===m&&(d="3"),r(t,{children:r(a,l({ref:n,scrollbars:c,radius:p,size:d,className:s},u,{children:i}))})}));n.displayName="ScrollArea";export{n as ScrollArea,n as default};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Theme as t,ScrollArea as a}from"@radix-ui/themes";import{useTheme as o}from"../../theme/ThemeProvider.mjs";var l=function(){return l=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},l.apply(this,arguments)},i=function(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(r);o<a.length;o++)e.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(r,a[o])&&(t[a[o]]=r[a[o]])}return t},s=e((function(e,s){var n=e.className,c=e.children,m=e.scrollbars,p=e.radius,u=e.size,f=void 0===u?"small":u,d=i(e,["className","children","scrollbars","radius","size"]),h=o().theme,y="1";return"medium"===f&&(y="2"),"large"===f&&(y="3"),r(t,{children:r(a,l({ref:s,scrollbars:m,radius:null!=p?p:h.themeRadius,size:y,className:n},d,{children:c}))})}));s.displayName="ScrollArea";export{s as ScrollArea,s as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/ScrollArea/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { Theme, ScrollArea as ScrollAreaTheme } from '@radix-ui/themes';\nexport var ScrollArea = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, scrollbars = _a.scrollbars, radius = _a.radius, _b = _a.size, size = _b === void 0 ? 'small' : _b, props = __rest(_a, [\"className\", \"children\", \"scrollbars\", \"radius\", \"size\"]);\n var sizeTheme = '1';\n if (size === 'medium')\n sizeTheme = '2';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { children: _jsx(ScrollAreaTheme, __assign({ ref: ref, scrollbars: scrollbars, radius: radius, size: sizeTheme, className: className }, props, { children: children })) }));\n});\nScrollArea.displayName = 'ScrollArea';\nexport default ScrollArea;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ScrollArea","forwardRef","_a","ref","className","children","scrollbars","radius","_b","size","props","sizeTheme","_jsx","Theme","ScrollAreaTheme","displayName"],"mappings":"oIAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAIWiB,EAAaC,GAAW,SAAUC,EAAIC,GAC7C,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAaJ,EAAGI,WAAYC,EAASL,EAAGK,OAAQC,EAAKN,EAAGO,KAAMA,OAAc,IAAPD,EAAgB,QAAUA,EAAIE,EAAQf,EAAOO,EAAI,CAAC,YAAa,WAAY,aAAc,SAAU,SAC1NS,EAAY,IAKhB,MAJa,WAATF,IACAE,EAAY,KACH,UAATF,IACAE,EAAY,KACRC,EAAKC,EAAO,CAAER,SAAUO,EAAKE,EAAiBlC,EAAS,CAAEuB,IAAKA,EAAKG,WAAYA,EAAYC,OAAQA,EAAQE,KAAME,EAAWP,UAAWA,GAAaM,EAAO,CAAEL,SAAUA,MACnL,IACAL,EAAWe,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { SegmentedControl as SegmentedControlTheme } from '@radix-ui/themes';
4
- export * from './SegmentedControlItem';
4
+ export { SegmentedControlItem } from './SegmentedControlItem';
5
5
  import { ISize } from '../../../lib/types';
6
6
  export interface SegmentedControlProps extends VariantProps<typeof segmentedControlVariants> {
7
7
  appearance?: 'surface' | 'classic';
@@ -9,6 +9,6 @@ export interface SegmentedControlProps extends VariantProps<typeof segmentedCont
9
9
  radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
10
10
  }
11
11
  declare const segmentedControlVariants: (props?: ({
12
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
+ scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
13
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
14
  export declare const SegmentedControlRoot: React.ForwardRefExoticComponent<Omit<Omit<SegmentedControlTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -25,8 +26,9 @@ import React, { Children, forwardRef } from 'react';
25
26
  import { cva } from 'class-variance-authority';
26
27
  import { SegmentedControl as SegmentedControlTheme, Theme } from '@radix-ui/themes';
27
28
  import { scalingVariants } from '../../../lib/constants';
28
- export * from './SegmentedControlItem';
29
+ export { SegmentedControlItem } from './SegmentedControlItem';
29
30
  import { cn } from '../../../lib/utils/utils';
31
+ import { useTheme } from '../../../lib/theme';
30
32
  var segmentedControlVariants = cva('text-slateA-12 dark:text-slateDarkA-12', {
31
33
  variants: {
32
34
  scaling: __assign({}, scalingVariants),
@@ -36,12 +38,18 @@ var segmentedControlVariants = cva('text-slateA-12 dark:text-slateDarkA-12', {
36
38
  },
37
39
  });
38
40
  export var SegmentedControlRoot = forwardRef(function (_a, ref) {
39
- var children = _a.children, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.radius, radius = _c === void 0 ? 'medium' : _c, _d = _a.size, size = _d === void 0 ? 'medium' : _d, scaling = _a.scaling, props = __rest(_a, ["children", "className", "appearance", "radius", "size", "scaling"]);
41
+ var _b;
42
+ var children = _a.children, className = _a.className, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, radius = _a.radius, _d = _a.size, size = _d === void 0 ? 'medium' : _d, scaling = _a.scaling, props = __rest(_a, ["children", "className", "appearance", "radius", "size", "scaling"]);
43
+ var theme = useTheme().theme;
40
44
  var sizeTheme = '2';
41
45
  if (size === 'small')
42
46
  sizeTheme = '1';
43
47
  if (size === 'large')
44
48
  sizeTheme = '3';
45
- return (_jsx(Theme, { children: _jsx(SegmentedControlTheme.Root, __assign({ ref: ref, size: sizeTheme, radius: radius, variant: appearance, className: cn(segmentedControlVariants({ scaling: scaling }), className) }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { appearance: appearance }); }) })) }));
49
+ var contextValue = {
50
+ radius: (_b = radius !== null && radius !== void 0 ? radius : theme.themeRadius) !== null && _b !== void 0 ? _b : 'medium',
51
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
52
+ };
53
+ return (_jsx(Theme, { children: _jsx(SegmentedControlTheme.Root, __assign({ ref: ref, size: sizeTheme, radius: contextValue.radius, variant: appearance, className: cn(segmentedControlVariants({ scaling: contextValue.scaling }), className) }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { appearance: appearance }); }) })) }));
46
54
  });
47
55
  SegmentedControlRoot.displayName = 'SegmentedControl.Root';
@@ -1,2 +1,3 @@
1
- import{jsx as e}from"react/jsx-runtime";import r,{forwardRef as t,Children as a}from"react";import{cva as n}from"class-variance-authority";import{Theme as o,SegmentedControl as i}from"@radix-ui/themes";import{scalingVariants as s}from"../../constants.mjs";export{SegmentedControlItem}from"./SegmentedControlItem.mjs";import{cn as l}from"../../utils/utils.mjs";var c=function(){return c=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},c.apply(this,arguments)},m=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]])}return t},p=n("text-slateA-12 dark:text-slateDarkA-12",{variants:{scaling:c({},s)},defaultVariants:{scaling:"100%"}}),u=t((function(t,n){var s=t.children,u=t.className,f=t.appearance,d=void 0===f?"surface":f,g=t.radius,y=void 0===g?"medium":g,v=t.size,O=void 0===v?"medium":v,h=t.scaling,j=m(t,["children","className","appearance","radius","size","scaling"]),b="2";return"small"===O&&(b="1"),"large"===O&&(b="3"),e(o,{children:e(i.Root,c({ref:n,size:b,radius:y,variant:d,className:l(p({scaling:h}),u)},j,{children:a.map(s,(function(e){return r.cloneElement(e,{appearance:d})}))}))})}));u.displayName="SegmentedControl.Root";export{u as SegmentedControlRoot};
1
+ "use client";
2
+ import{jsx as e}from"react/jsx-runtime";import r,{forwardRef as t,Children as a}from"react";import{cva as n}from"class-variance-authority";import{Theme as i,SegmentedControl as o}from"@radix-ui/themes";import{scalingVariants as l}from"../../constants.mjs";export{SegmentedControlItem}from"./SegmentedControlItem.mjs";import{cn as s}from"../../utils/utils.mjs";import{useTheme as m}from"../../theme/ThemeProvider.mjs";var c=function(){return c=Object.assign||function(e){for(var r,t=1,a=arguments.length;t<a;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},c.apply(this,arguments)},p=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)r.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(t[a[n]]=e[a[n]])}return t},u=n("text-slateA-12 dark:text-slateDarkA-12",{variants:{scaling:c({},l)},defaultVariants:{scaling:"100%"}}),d=t((function(t,n){var l,d=t.children,f=t.className,g=t.appearance,h=void 0===g?"surface":g,v=t.radius,y=t.size,O=void 0===y?"medium":y,j=t.scaling,b=p(t,["children","className","appearance","radius","size","scaling"]),x=m().theme,S="2";"small"===O&&(S="1"),"large"===O&&(S="3");var P={radius:null!==(l=null!=v?v:x.themeRadius)&&void 0!==l?l:"medium",scaling:null!=j?j:x.themeScaling};return e(i,{children:e(o.Root,c({ref:n,size:S,radius:P.radius,variant:h,className:s(u({scaling:P.scaling}),f)},b,{children:a.map(d,(function(e){return r.cloneElement(e,{appearance:h})}))}))})}));d.displayName="SegmentedControl.Root";export{d as SegmentedControlRoot};
2
3
  //# sourceMappingURL=SegmentedControlRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControlRoot.mjs","sources":["../../../lib/components/SegmentedControl/SegmentedControlRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { Children, forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { SegmentedControl as SegmentedControlTheme, Theme } from '@radix-ui/themes';\nimport { scalingVariants } from '../../../lib/constants';\nexport * from './SegmentedControlItem';\nimport { cn } from '../../../lib/utils/utils';\nvar segmentedControlVariants = cva('text-slateA-12 dark:text-slateDarkA-12', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var SegmentedControlRoot = forwardRef(function (_a, ref) {\n var children = _a.children, className = _a.className, _b = _a.appearance, appearance = _b === void 0 ? 'surface' : _b, _c = _a.radius, radius = _c === void 0 ? 'medium' : _c, _d = _a.size, size = _d === void 0 ? 'medium' : _d, scaling = _a.scaling, props = __rest(_a, [\"children\", \"className\", \"appearance\", \"radius\", \"size\", \"scaling\"]);\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { children: _jsx(SegmentedControlTheme.Root, __assign({ ref: ref, size: sizeTheme, radius: radius, variant: appearance, className: cn(segmentedControlVariants({ scaling: scaling }), className) }, props, { children: Children.map(children, function (child) { return React.cloneElement(child, { appearance: appearance }); }) })) }));\n});\nSegmentedControlRoot.displayName = 'SegmentedControl.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","segmentedControlVariants","cva","variants","scaling","scalingVariants","defaultVariants","SegmentedControlRoot","forwardRef","_a","ref","children","className","_b","appearance","_c","radius","_d","size","props","sizeTheme","_jsx","Theme","SegmentedControlTheme","Root","variant","cn","Children","map","child","React","cloneElement","displayName"],"mappings":"wWAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAA2BC,EAAI,yCAA0C,CACzEC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAuBC,GAAW,SAAUC,EAAIC,GACvD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWC,EAAKJ,EAAGK,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIE,EAAKN,EAAGO,OAAQA,OAAgB,IAAPD,EAAgB,SAAWA,EAAIE,EAAKR,EAAGS,KAAMA,OAAc,IAAPD,EAAgB,SAAWA,EAAIb,EAAUK,EAAGL,QAASe,EAAQvB,EAAOa,EAAI,CAAC,WAAY,YAAa,aAAc,SAAU,OAAQ,YAClUW,EAAY,IAKhB,MAJa,UAATF,IACAE,EAAY,KACH,UAATF,IACAE,EAAY,KACRC,EAAKC,EAAO,CAAEX,SAAUU,EAAKE,EAAsBC,KAAM3C,EAAS,CAAE6B,IAAKA,EAAKQ,KAAME,EAAWJ,OAAQA,EAAQS,QAASX,EAAYF,UAAWc,EAAGzB,EAAyB,CAAEG,QAASA,IAAYQ,IAAcO,EAAO,CAAER,SAAUgB,EAASC,IAAIjB,GAAU,SAAUkB,GAAS,OAAOC,EAAMC,aAAaF,EAAO,CAAEf,WAAYA,WACxU,IACAP,EAAqByB,YAAc"}
1
+ {"version":3,"file":"SegmentedControlRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SegmentedControl: {
2
3
  Root: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "size"> & import("./SegmentedControlRoot").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
3
4
  Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./SegmentedControlItem").SegmentedControlItemProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,5 @@
1
1
  import { SegmentedControlRoot } from './SegmentedControlRoot';
2
- import { SegmentedControlItem } from './SegmentedControlRoot';
2
+ import { SegmentedControlItem } from './SegmentedControlItem';
3
3
  var SegmentedControl = {
4
4
  Root: SegmentedControlRoot,
5
5
  Item: SegmentedControlItem,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/SegmentedControl/index.js"],"sourcesContent":["import { SegmentedControlRoot } from './SegmentedControlRoot';\nimport { SegmentedControlItem } from './SegmentedControlRoot';\nvar SegmentedControl = {\n Root: SegmentedControlRoot,\n Item: SegmentedControlItem,\n};\nexport default SegmentedControl;\n"],"names":["SegmentedControl","Root","SegmentedControlRoot","Item","SegmentedControlItem"],"mappings":"oIAEG,IAACA,EAAmB,CACnBC,KAAMC,EACNC,KAAMC"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/SegmentedControl/index.js"],"sourcesContent":["import { SegmentedControlRoot } from './SegmentedControlRoot';\nimport { SegmentedControlItem } from './SegmentedControlItem';\nvar SegmentedControl = {\n Root: SegmentedControlRoot,\n Item: SegmentedControlItem,\n};\nexport default SegmentedControl;\n"],"names":["SegmentedControl","Root","SegmentedControlRoot","Item","SegmentedControlItem"],"mappings":"oIAEG,IAACA,EAAmB,CACnBC,KAAMC,EACNC,KAAMC"}
@@ -1,7 +1,7 @@
1
1
  import { Select as SelectTheme } from '@radix-ui/themes';
2
2
  import React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { IScaling } from '../../../lib/types';
4
+ import { IRadius, IScaling } from '../../../lib/types';
5
5
  export interface SelectProps extends VariantProps<typeof selectVariants> {
6
6
  label?: string;
7
7
  defaultValue?: string;
@@ -11,10 +11,12 @@ export interface SelectProps extends VariantProps<typeof selectVariants> {
11
11
  scaling?: IScaling;
12
12
  appearance?: 'classic' | 'surface' | 'soft' | 'ghost';
13
13
  size?: 'small' | 'medium' | 'large';
14
+ radius?: IRadius;
14
15
  }
15
16
  declare const selectVariants: (props?: ({
16
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
17
+ radius?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
17
18
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
19
+ export declare const useSelectContext: () => SelectProps;
18
20
  export declare const Root: React.ForwardRefExoticComponent<SelectTheme.RootProps & SelectProps & React.RefAttributes<never>>;
19
21
  export declare const Trigger: React.ForwardRefExoticComponent<Omit<SelectTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & SelectProps & React.RefAttributes<HTMLButtonElement>>;
20
22
  export declare const Content: React.ForwardRefExoticComponent<Omit<SelectTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & SelectProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -22,10 +23,12 @@ var __rest = (this && this.__rest) || function (s, e) {
22
23
  };
23
24
  import { jsx as _jsx } from "react/jsx-runtime";
24
25
  import { Theme, Select as SelectTheme } from '@radix-ui/themes';
25
- import React from 'react';
26
+ import React, { createContext, useContext } from 'react';
26
27
  import { cva } from 'class-variance-authority';
27
28
  import { cn } from '../../../lib/utils/utils';
28
29
  import { radiusVariants, selectAppearanceStyle } from '../../../lib/constants';
30
+ import { useTheme } from '../../../lib/theme';
31
+ import { MAIN_COLOR } from '../../../lib/color/constants';
29
32
  var selectVariants = cva('', {
30
33
  variants: {
31
34
  radius: __assign({}, radiusVariants['base']),
@@ -34,34 +37,51 @@ var selectVariants = cva('', {
34
37
  radius: 'medium',
35
38
  },
36
39
  });
40
+ var SelectContext = createContext({
41
+ size: 'medium',
42
+ scaling: '100%',
43
+ color: MAIN_COLOR,
44
+ radius: 'medium',
45
+ appearance: 'classic',
46
+ });
47
+ export var useSelectContext = function () {
48
+ return useContext(SelectContext);
49
+ };
37
50
  export var Root = React.forwardRef(function (_a, ref) {
38
- var scaling = _a.scaling, size = _a.size, color = _a.color, children = _a.children, props = __rest(_a, ["scaling", "size", "color", "children"]);
51
+ var _b;
52
+ var scaling = _a.scaling, size = _a.size, color = _a.color, radius = _a.radius, appearance = _a.appearance, children = _a.children, props = __rest(_a, ["scaling", "size", "color", "radius", "appearance", "children"]);
53
+ var theme = useTheme().theme;
39
54
  var sizeTheme = '2';
40
55
  if (size === 'small')
41
56
  sizeTheme = '1';
42
57
  if (size === 'large')
43
58
  sizeTheme = '3';
44
- return (_jsx(Theme, { scaling: scaling, accentColor: color, hasBackground: false, children: _jsx("div", { ref: ref, children: _jsx(SelectTheme.Root, __assign({ size: sizeTheme }, props, { children: children })) }) }));
59
+ var contextValue = {
60
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
61
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : MAIN_COLOR,
62
+ radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
63
+ size: size,
64
+ sizeTheme: sizeTheme,
65
+ appearance: appearance,
66
+ };
67
+ return (_jsx(SelectContext.Provider, { value: contextValue, children: _jsx(Theme, { scaling: contextValue.scaling, accentColor: contextValue.color, hasBackground: false, children: _jsx("div", { ref: ref, children: _jsx(SelectTheme.Root, __assign({ size: sizeTheme }, props, { children: children })) }) }) }));
45
68
  });
46
69
  Root.displayName = 'Select.Root';
47
70
  export var Trigger = React.forwardRef(function (_a, forwardedRef) {
48
- var _b = _a.appearance, appearance = _b === void 0 ? 'classic' : _b, color = _a.color, size = _a.size, radius = _a.radius, children = _a.children, className = _a.className, props = __rest(_a, ["appearance", "color", "size", "radius", "children", "className"]);
49
- if (!color)
50
- color = 'red';
71
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
72
+ var _b = useSelectContext(), _c = _b.radius, radius = _c === void 0 ? 'medium' : _c, color = _b.color, _d = _b.appearance, appearance = _d === void 0 ? 'classic' : _d;
51
73
  return (_jsx(SelectTheme.Trigger, __assign({ ref: forwardedRef, variant: appearance, radius: radius, className: cn(selectVariants({ radius: radius }), selectAppearanceStyle(appearance, color), className) }, props, { children: children })));
52
74
  });
53
75
  Trigger.displayName = 'Select.Trigger';
54
76
  export var Content = React.forwardRef(function (_a, forwardedRef) {
55
- var appearance = _a.appearance, color = _a.color, size = _a.size, radius = _a.radius, children = _a.children, className = _a.className, props = __rest(_a, ["appearance", "color", "size", "radius", "children", "className"]);
56
- if (!color)
57
- color = 'red';
58
- if (radius === 'full')
59
- radius = 'large';
60
- return (_jsx(SelectTheme.Content, __assign({ ref: forwardedRef, color: color }, props, { className: cn(selectVariants({ radius: radius }), className), children: children })));
77
+ var children = _a.children, className = _a.className, props = __rest(_a, ["children", "className"]);
78
+ var _b = useSelectContext(), radius = _b.radius, color = _b.color;
79
+ return (_jsx(SelectTheme.Content, __assign({ ref: forwardedRef, color: color }, props, { className: cn(selectVariants({ radius: radius == 'full' ? 'large' : radius }), className), children: children })));
61
80
  });
62
81
  Content.displayName = 'Select.Content';
63
82
  export var Item = React.forwardRef(function (_a, forwardedRef) {
64
- var value = _a.value, children = _a.children, className = _a.className, radius = _a.radius, props = __rest(_a, ["value", "children", "className", "radius"]);
83
+ var value = _a.value, children = _a.children, className = _a.className, props = __rest(_a, ["value", "children", "className"]);
84
+ var radius = useSelectContext().radius;
65
85
  return (_jsx(SelectTheme.Item, __assign({ ref: forwardedRef, value: value }, props, { className: cn(selectVariants({ radius: radius }), className), children: children })));
66
86
  });
67
87
  Item.displayName = 'Select.Item';