@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,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{Theme as e,Select as a}from"@radix-ui/themes";import l from"react";import{cva as c}from"class-variance-authority";import{cn as i}from"../../utils/utils.mjs";import{radiusVariants as s,selectAppearanceStyle as n}from"../../constants.mjs";var t=function(){return t=Object.assign||function(r){for(var e,a=1,l=arguments.length;a<l;a++)for(var c in e=arguments[a])Object.prototype.hasOwnProperty.call(e,c)&&(r[c]=e[c]);return r},t.apply(this,arguments)},o=function(r,e){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&e.indexOf(l)<0&&(a[l]=r[l]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var c=0;for(l=Object.getOwnPropertySymbols(r);c<l.length;c++)e.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(a[l[c]]=r[l[c]])}return a},d=c("",{variants:{radius:t({},s.base)},defaultVariants:{radius:"medium"}}),u=l.forwardRef((function(l,c){var i=l.scaling,s=l.size,n=l.color,d=l.children,u=o(l,["scaling","size","color","children"]),m="2";return"small"===s&&(m="1"),"large"===s&&(m="3"),r(e,{scaling:i,accentColor:n,hasBackground:!1,children:r("div",{ref:c,children:r(a.Root,t({size:m},u,{children:d}))})})}));u.displayName="Select.Root";var m=l.forwardRef((function(e,l){var c=e.appearance,s=void 0===c?"classic":c,u=e.color;e.size;var m=e.radius,f=e.children,p=e.className,h=o(e,["appearance","color","size","radius","children","className"]);return u||(u="red"),r(a.Trigger,t({ref:l,variant:s,radius:m,className:i(d({radius:m}),n(s,u),p)},h,{children:f}))}));m.displayName="Select.Trigger";var f=l.forwardRef((function(e,l){e.appearance;var c=e.color;e.size;var s=e.radius,n=e.children,u=e.className,m=o(e,["appearance","color","size","radius","children","className"]);return c||(c="red"),"full"===s&&(s="large"),r(a.Content,t({ref:l,color:c},m,{className:i(d({radius:s}),u),children:n}))}));f.displayName="Select.Content";var p=l.forwardRef((function(e,l){var c=e.value,s=e.children,n=e.className,u=e.radius,m=o(e,["value","children","className","radius"]);return r(a.Item,t({ref:l,value:c},m,{className:i(d({radius:u}),n),children:s}))}));p.displayName="Select.Item";var h=l.forwardRef((function(e,l){var c=e.children,i=e.className,s=o(e,["children","className"]);return r(a.Group,t({ref:l},s,{className:i,children:c}))}));h.displayName="Select.Group";var v=l.forwardRef((function(e,l){var c=e.children,i=e.className,s=o(e,["children","className"]);return r(a.Label,t({ref:l},s,{className:i,children:c}))}));v.displayName="Select.Label";var N=l.forwardRef((function(e,l){var c=e.children,i=e.className,s=o(e,["children","className"]);return r(a.Separator,t({ref:l},s,{className:i,children:c}))}));N.displayName="Select.Separator";var y={Root:u,Trigger:m,Content:f,Item:p,Group:h,Label:v,Separator:N};export{f as Content,h as Group,p as Item,v as Label,u as Root,N as Separator,m as Trigger,y as default};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{Theme as e,Select as a}from"@radix-ui/themes";import l,{createContext as i,useContext as c}from"react";import{cva as n}from"class-variance-authority";import{cn as s}from"../../utils/utils.mjs";import{radiusVariants as t,selectAppearanceStyle as o}from"../../constants.mjs";import{useTheme as m}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as d}from"../../color/constants.mjs";var u=function(){return u=Object.assign||function(r){for(var e,a=1,l=arguments.length;a<l;a++)for(var i in e=arguments[a])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},u.apply(this,arguments)},f=function(r,e){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&e.indexOf(l)<0&&(a[l]=r[l]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(l=Object.getOwnPropertySymbols(r);i<l.length;i++)e.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(r,l[i])&&(a[l[i]]=r[l[i]])}return a},p=n("",{variants:{radius:u({},t.base)},defaultVariants:{radius:"medium"}}),h=i({size:"medium",scaling:"100%",color:d,radius:"medium",appearance:"classic"}),v=function(){return c(h)},N=l.forwardRef((function(l,i){var c,n=l.scaling,s=l.size,t=l.color,o=l.radius,p=l.appearance,v=l.children,N=f(l,["scaling","size","color","radius","appearance","children"]),g=m().theme,y="2";"small"===s&&(y="1"),"large"===s&&(y="3");var S={scaling:null!=n?n:g.themeScaling,color:null!==(c=null!=t?t:g.themeColor)&&void 0!==c?c:d,radius:null!=o?o:g.themeRadius,size:s,sizeTheme:y,appearance:p};return r(h.Provider,{value:S,children:r(e,{scaling:S.scaling,accentColor:S.color,hasBackground:!1,children:r("div",{ref:i,children:r(a.Root,u({size:y},N,{children:v}))})})})}));N.displayName="Select.Root";var g=l.forwardRef((function(e,l){var i=e.children,c=e.className,n=f(e,["children","className"]),t=v(),m=t.radius,d=void 0===m?"medium":m,h=t.color,N=t.appearance,g=void 0===N?"classic":N;return r(a.Trigger,u({ref:l,variant:g,radius:d,className:s(p({radius:d}),o(g,h),c)},n,{children:i}))}));g.displayName="Select.Trigger";var y=l.forwardRef((function(e,l){var i=e.children,c=e.className,n=f(e,["children","className"]),t=v(),o=t.radius,m=t.color;return r(a.Content,u({ref:l,color:m},n,{className:s(p({radius:"full"==o?"large":o}),c),children:i}))}));y.displayName="Select.Content";var S=l.forwardRef((function(e,l){var i=e.value,c=e.children,n=e.className,t=f(e,["value","children","className"]),o=v().radius;return r(a.Item,u({ref:l,value:i},t,{className:s(p({radius:o}),n),children:c}))}));S.displayName="Select.Item";var b=l.forwardRef((function(e,l){var i=e.children,c=e.className,n=f(e,["children","className"]);return r(a.Group,u({ref:l},n,{className:c,children:i}))}));b.displayName="Select.Group";var O=l.forwardRef((function(e,l){var i=e.children,c=e.className,n=f(e,["children","className"]);return r(a.Label,u({ref:l},n,{className:c,children:i}))}));O.displayName="Select.Label";var j=l.forwardRef((function(e,l){var i=e.children,c=e.className,n=f(e,["children","className"]);return r(a.Separator,u({ref:l},n,{className:c,children:i}))}));j.displayName="Select.Separator";var w={Root:N,Trigger:g,Content:y,Item:S,Group:b,Label:O,Separator:j};export{y as Content,b as Group,S as Item,O as Label,N as Root,j as Separator,g as Trigger,w as default,v as useSelectContext};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Select/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 { Theme, Select as SelectTheme } from '@radix-ui/themes';\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, selectAppearanceStyle } from '../../../lib/constants';\nvar selectVariants = cva('', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n },\n defaultVariants: {\n radius: 'medium',\n },\n});\nexport var Root = React.forwardRef(function (_a, ref) {\n var scaling = _a.scaling, size = _a.size, color = _a.color, children = _a.children, props = __rest(_a, [\"scaling\", \"size\", \"color\", \"children\"]);\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { scaling: scaling, accentColor: color, hasBackground: false, children: _jsx(\"div\", { ref: ref, children: _jsx(SelectTheme.Root, __assign({ size: sizeTheme }, props, { children: children })) }) }));\n});\nRoot.displayName = 'Select.Root';\nexport var Trigger = React.forwardRef(function (_a, forwardedRef) {\n 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\"]);\n if (!color)\n color = 'red';\n return (_jsx(SelectTheme.Trigger, __assign({ ref: forwardedRef, variant: appearance, radius: radius, className: cn(selectVariants({ radius: radius }), selectAppearanceStyle(appearance, color), className) }, props, { children: children })));\n});\nTrigger.displayName = 'Select.Trigger';\nexport var Content = React.forwardRef(function (_a, forwardedRef) {\n 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\"]);\n if (!color)\n color = 'red';\n if (radius === 'full')\n radius = 'large';\n return (_jsx(SelectTheme.Content, __assign({ ref: forwardedRef, color: color }, props, { className: cn(selectVariants({ radius: radius }), className), children: children })));\n});\nContent.displayName = 'Select.Content';\nexport var Item = React.forwardRef(function (_a, forwardedRef) {\n var value = _a.value, children = _a.children, className = _a.className, radius = _a.radius, props = __rest(_a, [\"value\", \"children\", \"className\", \"radius\"]);\n return (_jsx(SelectTheme.Item, __assign({ ref: forwardedRef, value: value }, props, { className: cn(selectVariants({ radius: radius }), className), children: children })));\n});\nItem.displayName = 'Select.Item';\nexport var Group = React.forwardRef(function (_a, forwardedRef) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n return (_jsx(SelectTheme.Group, __assign({ ref: forwardedRef }, props, { className: className, children: children })));\n});\nGroup.displayName = 'Select.Group';\nexport var Label = React.forwardRef(function (_a, forwardedRef) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n return (_jsx(SelectTheme.Label, __assign({ ref: forwardedRef }, props, { className: className, children: children })));\n});\nLabel.displayName = 'Select.Label';\nexport var Separator = React.forwardRef(function (_a, forwardedRef) {\n var children = _a.children, className = _a.className, props = __rest(_a, [\"children\", \"className\"]);\n return (_jsx(SelectTheme.Separator, __assign({ ref: forwardedRef }, props, { className: className, children: children })));\n});\nSeparator.displayName = 'Select.Separator';\nvar Select = {\n Root: Root,\n Trigger: Trigger,\n Content: Content,\n Item: Item,\n Group: Group,\n Label: Label,\n Separator: Separator,\n};\nexport default Select;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","selectVariants","cva","variants","radius","radiusVariants","defaultVariants","Root","React","forwardRef","_a","ref","scaling","size","color","children","props","sizeTheme","_jsx","Theme","accentColor","hasBackground","SelectTheme","displayName","Trigger","forwardedRef","_b","appearance","className","variant","cn","selectAppearanceStyle","Content","Item","value","Group","Label","Separator","Select"],"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,E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,cACtF,OAAQQ,EAAKI,EAAYc,MAAOvD,EAAS,CAAE8B,IAAKc,GAAgBT,EAAO,CAAEY,UAAWA,EAAWb,SAAUA,IAC7G,IACAqB,EAAMb,YAAc,eACV,IAACc,EAAY7B,EAAMC,YAAW,SAAUC,EAAIe,GAClD,IAAIV,EAAWL,EAAGK,SAAUa,EAAYlB,EAAGkB,UAAWZ,EAAQpB,EAAOc,EAAI,CAAC,WAAY,cACtF,OAAQQ,EAAKI,EAAYe,UAAWxD,EAAS,CAAE8B,IAAKc,GAAgBT,EAAO,CAAEY,UAAWA,EAAWb,SAAUA,IACjH,IACAsB,EAAUd,YAAc,mBACrB,IAACe,EAAS,CACT/B,KAAMA,EACNiB,QAASA,EACTQ,QAASA,EACTC,KAAMA,EACNE,MAAOA,EACPC,MAAOA,EACPC,UAAWA"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -4,7 +4,7 @@ export interface SeparatorProps extends VariantProps<typeof separatorVariants> {
4
4
  size?: 'small' | 'medium' | 'large' | 'fill-large';
5
5
  }
6
6
  declare const separatorVariants: (props?: ({
7
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
7
+ scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
8
8
  color?: string | null | undefined;
9
9
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes").SeparatorProps & React.RefAttributes<HTMLSpanElement>, "ref">, "size"> & SeparatorProps & React.RefAttributes<HTMLSpanElement>>;
@@ -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,7 @@ import { cva } from 'class-variance-authority';
26
27
  import { cn } from '../../../lib/utils/utils';
27
28
  import { bgColorStyle, scalingVariants } from '../../../lib/constants';
28
29
  import { Separator as SeparatorTheme, Theme } from '@radix-ui/themes';
30
+ import { useTheme } from '../../../lib/theme';
29
31
  var separatorVariants = cva('', {
30
32
  variants: {
31
33
  scaling: __assign({}, scalingVariants),
@@ -33,7 +35,13 @@ var separatorVariants = cva('', {
33
35
  },
34
36
  });
35
37
  export var Separator = React.forwardRef(function (_a, forwardedRef) {
36
- var orientation = _a.orientation, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'slate' : _b, className = _a.className, children = _a.children, props = __rest(_a, ["orientation", "scaling", "size", "color", "className", "children"]);
38
+ var _b;
39
+ var orientation = _a.orientation, scaling = _a.scaling, size = _a.size, color = _a.color, className = _a.className, children = _a.children, props = __rest(_a, ["orientation", "scaling", "size", "color", "className", "children"]);
40
+ var theme = useTheme().theme;
41
+ var separatorStyle = {
42
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
43
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : 'slate',
44
+ };
37
45
  var sizeTheme = '1';
38
46
  if (size === 'medium')
39
47
  sizeTheme = '2';
@@ -41,7 +49,7 @@ export var Separator = React.forwardRef(function (_a, forwardedRef) {
41
49
  sizeTheme = '3';
42
50
  if (size === 'fill-large')
43
51
  sizeTheme = '4';
44
- return (_jsx(Theme, { hasBackground: false, className: "flex items-center justify-center", children: _jsx(SeparatorTheme, __assign({ orientation: orientation, size: sizeTheme, className: cn("bg-".concat(color, "A-6 dark:bg-").concat(color, "DarkA-6"), separatorVariants({ scaling: scaling }), className) }, props, { children: children })) }));
52
+ return (_jsx(Theme, { hasBackground: false, className: "flex items-center justify-center", children: _jsx(SeparatorTheme, __assign({ orientation: orientation, size: sizeTheme, className: cn("bg-".concat(separatorStyle.color, "A-6 dark:bg-").concat(separatorStyle.color, "DarkA-6"), separatorVariants({ scaling: separatorStyle.scaling }), className) }, props, { children: children })) }));
45
53
  });
46
54
  Separator.displayName = 'Separator';
47
55
  export default Separator;
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import t from"react";import{cva as e}from"class-variance-authority";import{cn as a}from"../../utils/utils.mjs";import{scalingVariants as o,bgColorStyle as n}from"../../constants.mjs";import{Theme as i,Separator as c}from"@radix-ui/themes";var s=function(){return s=Object.assign||function(r){for(var t,e=1,a=arguments.length;e<a;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},s.apply(this,arguments)},l=function(r,t){var e={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(r);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(r,a[o])&&(e[a[o]]=r[a[o]])}return e},m=e("",{variants:{scaling:s({},o),color:n()}}),f=t.forwardRef((function(t,e){var o=t.orientation,n=t.scaling,f=t.size,p=t.color,u=void 0===p?"slate":p,y=t.className,d=t.children,g=l(t,["orientation","scaling","size","color","className","children"]),h="1";return"medium"===f&&(h="2"),"large"===f&&(h="3"),"fill-large"===f&&(h="4"),r(i,{hasBackground:!1,className:"flex items-center justify-center",children:r(c,s({orientation:o,size:h,className:a("bg-".concat(u,"A-6 dark:bg-").concat(u,"DarkA-6"),m({scaling:n}),y)},g,{children:d}))})}));f.displayName="Separator";export{f as Separator,f as default};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import e from"react";import{cva as t}from"class-variance-authority";import{cn as o}from"../../utils/utils.mjs";import{scalingVariants as a,bgColorStyle as n}from"../../constants.mjs";import{Theme as i,Separator as l}from"@radix-ui/themes";import{useTheme as c}from"../../theme/ThemeProvider.mjs";var s=function(){return s=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},s.apply(this,arguments)},m=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},f=t("",{variants:{scaling:s({},a),color:n()}}),p=e.forwardRef((function(e,t){var a,n=e.orientation,p=e.scaling,u=e.size,g=e.color,h=e.className,d=e.children,y=m(e,["orientation","scaling","size","color","className","children"]),O=c().theme,b={scaling:null!=p?p:O.themeScaling,color:null!==(a=null!=g?g:O.themeColor)&&void 0!==a?a:"slate"},j="1";return"medium"===u&&(j="2"),"large"===u&&(j="3"),"fill-large"===u&&(j="4"),r(i,{hasBackground:!1,className:"flex items-center justify-center",children:r(l,s({orientation:n,size:j,className:o("bg-".concat(b.color,"A-6 dark:bg-").concat(b.color,"DarkA-6"),f({scaling:b.scaling}),h)},y,{children:d}))})}));p.displayName="Separator";export{p as Separator,p as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Separator/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { bgColorStyle, scalingVariants } from '../../../lib/constants';\nimport { Separator as SeparatorTheme, Theme } from '@radix-ui/themes';\nvar separatorVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n color: bgColorStyle(),\n },\n});\nexport var Separator = React.forwardRef(function (_a, forwardedRef) {\n var orientation = _a.orientation, scaling = _a.scaling, size = _a.size, _b = _a.color, color = _b === void 0 ? 'slate' : _b, className = _a.className, children = _a.children, props = __rest(_a, [\"orientation\", \"scaling\", \"size\", \"color\", \"className\", \"children\"]);\n var sizeTheme = '1';\n if (size === 'medium')\n sizeTheme = '2';\n if (size === 'large')\n sizeTheme = '3';\n if (size === 'fill-large')\n sizeTheme = '4';\n return (_jsx(Theme, { hasBackground: false, className: \"flex items-center justify-center\", children: _jsx(SeparatorTheme, __assign({ orientation: orientation, size: sizeTheme, className: cn(\"bg-\".concat(color, \"A-6 dark:bg-\").concat(color, \"DarkA-6\"), separatorVariants({ scaling: scaling }), className) }, props, { children: children })) }));\n});\nSeparator.displayName = 'Separator';\nexport default Separator;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","separatorVariants","cva","variants","scaling","scalingVariants","color","bgColorStyle","Separator","React","forwardRef","_a","forwardedRef","orientation","size","_b","className","children","props","sizeTheme","_jsx","Theme","hasBackground","SeparatorTheme","cn","concat","displayName"],"mappings":"uRAAA,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,E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UA,MAC1U,IACAT,EAAUkB,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -8,7 +8,7 @@ export interface SkeletonProps extends VariantProps<typeof separatorVariants> {
8
8
  height?: string;
9
9
  }
10
10
  declare const separatorVariants: (props?: ({
11
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
11
+ radius?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export declare const Skeleton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
14
14
  export default Skeleton;
@@ -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,7 @@ import { cva } from 'class-variance-authority';
26
27
  import { Theme, Skeleton as SkeletonTheme } from '@radix-ui/themes';
27
28
  import { cn } from '../../../lib/utils/utils';
28
29
  import { radiusVariants } from '../../../lib/constants';
30
+ import { useTheme } from '../../../lib/theme';
29
31
  var separatorVariants = cva('', {
30
32
  variants: {
31
33
  radius: __assign({}, radiusVariants['base']),
@@ -36,7 +38,9 @@ var separatorVariants = cva('', {
36
38
  });
37
39
  export var Skeleton = React.forwardRef(function (_a, forwardedRef) {
38
40
  var children = _a.children, className = _a.className, radius = _a.radius, loading = _a.loading, width = _a.width, height = _a.height, skeletonProps = __rest(_a, ["children", "className", "radius", "loading", "width", "height"]);
39
- return (_jsx(Theme, { children: _jsx(SkeletonTheme, __assign({ ref: forwardedRef, loading: loading, width: width, height: height, className: cn('', radius && cn(separatorVariants({ radius: radius }), className)) }, skeletonProps, { children: children })) }));
41
+ var theme = useTheme().theme;
42
+ var radiusStyle = radius !== null && radius !== void 0 ? radius : theme.themeRadius;
43
+ return (_jsx(Theme, { children: _jsx(SkeletonTheme, __assign({ ref: forwardedRef, loading: loading, width: width, height: height, className: cn(separatorVariants({ radius: radiusStyle }), className) }, skeletonProps, { children: children })) }));
40
44
  });
41
45
  Skeleton.displayName = 'Skeleton';
42
46
  export default Skeleton;
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import t from"react";import{cva as e}from"class-variance-authority";import{Theme as a,Skeleton as i}from"@radix-ui/themes";import{cn as o}from"../../utils/utils.mjs";import{radiusVariants as n}from"../../constants.mjs";var s=function(){return s=Object.assign||function(r){for(var t,e=1,a=arguments.length;e<a;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},s.apply(this,arguments)},l=function(r,t){var e={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(r);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(r,a[i])&&(e[a[i]]=r[a[i]])}return e},c=e("",{variants:{radius:s({},n.base)},defaultVariants:{radius:"medium"}}),m=t.forwardRef((function(t,e){var n=t.children,m=t.className,f=t.radius,u=t.loading,d=t.width,p=t.height,h=l(t,["children","className","radius","loading","width","height"]);return r(a,{children:r(i,s({ref:e,loading:u,width:d,height:p,className:o("",f&&o(c({radius:f}),m))},h,{children:n}))})}));m.displayName="Skeleton";export{m as Skeleton,m as default};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import t from"react";import{cva as e}from"class-variance-authority";import{Theme as a,Skeleton as i}from"@radix-ui/themes";import{cn as o}from"../../utils/utils.mjs";import{radiusVariants as n}from"../../constants.mjs";import{useTheme as s}from"../../theme/ThemeProvider.mjs";var l=function(){return l=Object.assign||function(r){for(var t,e=1,a=arguments.length;e<a;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},l.apply(this,arguments)},m=function(r,t){var e={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(r);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(r,a[i])&&(e[a[i]]=r[a[i]])}return e},c=e("",{variants:{radius:l({},n.base)},defaultVariants:{radius:"medium"}}),u=t.forwardRef((function(t,e){var n=t.children,u=t.className,d=t.radius,f=t.loading,h=t.width,p=t.height,y=m(t,["children","className","radius","loading","width","height"]),O=s().theme,g=null!=d?d:O.themeRadius;return r(a,{children:r(i,l({ref:e,loading:f,width:h,height:p,className:o(c({radius:g}),u)},y,{children:n}))})}));u.displayName="Skeleton";export{u as Skeleton,u as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Skeleton/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Theme, Skeleton as SkeletonTheme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants } from '../../../lib/constants';\nvar separatorVariants = cva('', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n },\n defaultVariants: {\n radius: 'medium',\n },\n});\nexport var Skeleton = React.forwardRef(function (_a, forwardedRef) {\n var children = _a.children, className = _a.className, radius = _a.radius, loading = _a.loading, width = _a.width, height = _a.height, skeletonProps = __rest(_a, [\"children\", \"className\", \"radius\", \"loading\", \"width\", \"height\"]);\n return (_jsx(Theme, { children: _jsx(SkeletonTheme, __assign({ ref: forwardedRef, loading: loading, width: width, height: height, className: cn('', radius && cn(separatorVariants({ radius: radius }), className)) }, skeletonProps, { children: children })) }));\n});\nSkeleton.displayName = 'Skeleton';\nexport default Skeleton;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","separatorVariants","cva","variants","radius","radiusVariants","defaultVariants","Skeleton","React","forwardRef","_a","forwardedRef","children","className","loading","width","height","skeletonProps","_jsx","Theme","SkeletonTheme","ref","cn","displayName"],"mappings":"mQAAA,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,EAAoBC,EAAI,GAAI,CAC5BC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,OAE9CC,gBAAiB,CACbF,OAAQ,YAGLG,EAAWC,EAAMC,YAAW,SAAUC,EAAIC,GACjD,IAAIC,EAAWF,EAAGE,SAAUC,EAAYH,EAAGG,UAAWT,EAASM,EAAGN,OAAQU,EAAUJ,EAAGI,QAASC,EAAQL,EAAGK,MAAOC,EAASN,EAAGM,OAAQC,EAAgBrB,EAAOc,EAAI,CAAC,WAAY,YAAa,SAAU,UAAW,QAAS,WACzN,OAAQQ,EAAKC,EAAO,CAAEP,SAAUM,EAAKE,EAAevC,EAAS,CAAEwC,IAAKV,EAAcG,QAASA,EAASC,MAAOA,EAAOC,OAAQA,EAAQH,UAAWS,EAAG,GAAIlB,GAAUkB,EAAGrB,EAAkB,CAAEG,OAAQA,IAAWS,KAAeI,EAAe,CAAEL,SAAUA,MACtP,IACAL,EAASgB,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,14 +1,15 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IScaling } from '../../../lib/types';
3
+ import { IColor, IScaling } from '../../../lib/types';
4
4
  export interface SliderProps extends VariantProps<typeof sliderVariants> {
5
5
  appearance?: 'classic' | 'soft' | 'surface';
6
6
  label?: string;
7
7
  size?: 'small' | 'medium' | 'large';
8
8
  scaling?: IScaling;
9
+ color?: IColor;
9
10
  }
10
11
  declare const sliderVariants: (props?: ({
11
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
12
+ radius?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
12
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
14
  export declare const Slider: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes").SliderProps & React.RefAttributes<HTMLSpanElement>, "ref">, "size"> & SliderProps & React.RefAttributes<HTMLSpanElement>>;
14
15
  export default Slider;
@@ -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,16 +27,22 @@ import { cva } from 'class-variance-authority';
26
27
  import { cn } from '../../../lib/utils/utils';
27
28
  import { radiusVariants } from '../../../lib/constants';
28
29
  import { Theme, Slider as SliderTheme } from '@radix-ui/themes';
30
+ import { useTheme } from '../../../lib/theme';
31
+ import { MAIN_COLOR } from '../../../lib/color/constants';
29
32
  var sliderVariants = cva('relative flex items-center select-none touch-none w-[200px] h-5', {
30
33
  variants: {
31
34
  radius: __assign({}, radiusVariants['base']),
32
- // color: bgColorStyle(),
33
35
  },
34
36
  });
35
37
  export var Slider = React.forwardRef(function (_a, forwardedRef) {
36
- var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, _b = _a.scaling, scaling = _b === void 0 ? '100%' : _b, radius = _a.radius, tabIndex = _a.tabIndex, sliderProps = __rest(_a, ["className", "color", "size", "appearance", "scaling", "radius", "tabIndex"]);
37
- if (!color)
38
- color = 'red';
38
+ var _b;
39
+ var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, _c = _a.scaling, scaling = _c === void 0 ? '100%' : _c, radius = _a.radius, tabIndex = _a.tabIndex, sliderProps = __rest(_a, ["className", "color", "size", "appearance", "scaling", "radius", "tabIndex"]);
40
+ var theme = useTheme().theme;
41
+ var contextValue = {
42
+ radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
43
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
44
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : MAIN_COLOR,
45
+ };
39
46
  if (radius === 'medium' || radius === 'large')
40
47
  radius = 'full';
41
48
  var sizeTheme = '2';
@@ -43,7 +50,7 @@ export var Slider = React.forwardRef(function (_a, forwardedRef) {
43
50
  sizeTheme = '1';
44
51
  if (size === 'large')
45
52
  sizeTheme = '3';
46
- return (_jsx(Theme, { accentColor: color, scaling: scaling, hasBackground: false, children: _jsx(SliderTheme, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, radius: radius, color: color, className: cn(sliderVariants({ radius: radius }), className) }, sliderProps)) }));
53
+ return (_jsx(Theme, { accentColor: contextValue.color, scaling: contextValue.scaling, hasBackground: false, children: _jsx(SliderTheme, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, radius: contextValue.radius, color: contextValue.color, className: cn(sliderVariants({ radius: contextValue.radius }), className) }, sliderProps)) }));
47
54
  });
48
55
  Slider.displayName = 'Slider';
49
56
  export default Slider;
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import e from"react";import{cva as a}from"class-variance-authority";import{cn as t}from"../../utils/utils.mjs";import{radiusVariants as o}from"../../constants.mjs";import{Theme as n,Slider as i}from"@radix-ui/themes";var s=function(){return s=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},s.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 o=0;for(t=Object.getOwnPropertySymbols(r);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(r,t[o])&&(a[t[o]]=r[t[o]])}return a},c=a("relative flex items-center select-none touch-none w-[200px] h-5",{variants:{radius:s({},o.base)}}),p=e.forwardRef((function(e,a){var o=e.className,p=e.color,m=e.size,u=e.appearance,f=e.scaling,d=void 0===f?"100%":f,v=e.radius;e.tabIndex;var y=l(e,["className","color","size","appearance","scaling","radius","tabIndex"]);p||(p="red"),"medium"!==v&&"large"!==v||(v="full");var b="2";return"small"===m&&(b="1"),"large"===m&&(b="3"),r(n,{accentColor:p,scaling:d,hasBackground:!1,children:r(i,s({ref:a,variant:u,size:b,radius:v,color:p,className:t(c({radius:v}),o)},y))})}));p.displayName="Slider";export{p as Slider,p as default};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import e from"react";import{cva as a}from"class-variance-authority";import{cn as o}from"../../utils/utils.mjs";import{radiusVariants as t}from"../../constants.mjs";import{Theme as i,Slider as l}from"@radix-ui/themes";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,a=1,o=arguments.length;a<o;a++)for(var t in e=arguments[a])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},c.apply(this,arguments)},m=function(r,e){var a={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(a[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(o=Object.getOwnPropertySymbols(r);t<o.length;t++)e.indexOf(o[t])<0&&Object.prototype.propertyIsEnumerable.call(r,o[t])&&(a[o[t]]=r[o[t]])}return a},u=a("relative flex items-center select-none touch-none w-[200px] h-5",{variants:{radius:c({},t.base)}}),p=e.forwardRef((function(e,a){var t,p=e.className,f=e.color,d=e.size,h=e.appearance,v=e.scaling,g=void 0===v?"100%":v,y=e.radius;e.tabIndex;var b=m(e,["className","color","size","appearance","scaling","radius","tabIndex"]),O=n().theme,j={radius:null!=y?y:O.themeRadius,scaling:null!=g?g:O.themeScaling,color:null!==(t=null!=f?f:O.themeColor)&&void 0!==t?t:s};"medium"!==y&&"large"!==y||(y="full");var x="2";return"small"===d&&(x="1"),"large"===d&&(x="3"),r(i,{accentColor:j.color,scaling:j.scaling,hasBackground:!1,children:r(l,c({ref:a,variant:h,size:x,radius:j.radius,color:j.color,className:o(u({radius:j.radius}),p)},b))})}));p.displayName="Slider";export{p as Slider,p as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Slider/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants } from '../../../lib/constants';\nimport { Theme, Slider as SliderTheme } from '@radix-ui/themes';\nvar sliderVariants = cva('relative flex items-center select-none touch-none w-[200px] h-5', {\n variants: {\n radius: __assign({}, radiusVariants['base']),\n // color: bgColorStyle(),\n },\n});\nexport var Slider = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, _b = _a.scaling, scaling = _b === void 0 ? '100%' : _b, radius = _a.radius, tabIndex = _a.tabIndex, sliderProps = __rest(_a, [\"className\", \"color\", \"size\", \"appearance\", \"scaling\", \"radius\", \"tabIndex\"]);\n if (!color)\n color = 'red';\n if (radius === 'medium' || radius === 'large')\n radius = 'full';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { accentColor: color, scaling: scaling, hasBackground: false, children: _jsx(SliderTheme, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, radius: radius, color: color, className: cn(sliderVariants({ radius: radius }), className) }, sliderProps)) }));\n});\nSlider.displayName = 'Slider';\nexport default Slider;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","sliderVariants","cva","variants","radius","radiusVariants","Slider","React","forwardRef","_a","forwardedRef","className","color","size","appearance","_b","scaling","tabIndex","sliderProps","sizeTheme","_jsx","Theme","accentColor","hasBackground","children","SliderTheme","ref","variant","cn","displayName"],"mappings":"iQAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAiBC,EAAI,kEAAmE,CACxFC,SAAU,CACNC,OAAQvB,EAAS,CAAA,EAAIwB,EAAqB,SAIvCC,EAASC,EAAMC,YAAW,SAAUC,EAAIC,GAC5C,IAACC,EAAYF,EAAGE,UAAWC,EAAQH,EAAGG,MAAOC,EAAOJ,EAAGI,KAAMC,EAAaL,EAAGK,WAAYC,EAAKN,EAAGO,QAASA,OAAiB,IAAPD,EAAgB,OAASA,EAAIX,EAASK,EAAGL,OAAmBK,EAAGQ,SAAU,IAAAC,EAActB,EAAOa,EAAI,CAAC,YAAa,QAAS,OAAQ,aAAc,UAAW,SAAU,aACtRG,IACDA,EAAQ,OACG,WAAXR,GAAkC,UAAXA,IACvBA,EAAS,QACb,IAAIe,EAAY,IAKhB,MAJa,UAATN,IACAM,EAAY,KACH,UAATN,IACAM,EAAY,KACRC,EAAKC,EAAO,CAAEC,YAAaV,EAAOI,QAASA,EAASO,eAAe,EAAOC,SAAUJ,EAAKK,EAAa5C,EAAS,CAAE6C,IAAKhB,EAAciB,QAASb,EAAYD,KAAMM,EAAWf,OAAQA,EAAQQ,MAAOA,EAAOD,UAAWiB,EAAG3B,EAAe,CAAEG,OAAQA,IAAWO,IAAcO,KACpR,IACAZ,EAAOuB,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -9,7 +9,7 @@ export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
9
9
  size?: 'small' | 'medium' | 'large';
10
10
  }
11
11
  declare const spinnerVariants: (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 Spinner: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
15
15
  export default Spinner;
@@ -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,7 @@ import { cva } from 'class-variance-authority';
26
27
  import { Spinner as SpinnerTheme, Theme } from '@radix-ui/themes';
27
28
  import { cn } from '../../../lib/utils/utils';
28
29
  import { scalingVariants } from '../../../lib/constants';
30
+ import { useTheme } from '../../../lib/theme';
29
31
  var spinnerVariants = cva('', {
30
32
  variants: {
31
33
  scaling: __assign({}, scalingVariants),
@@ -36,12 +38,13 @@ var spinnerVariants = cva('', {
36
38
  });
37
39
  export var Spinner = React.forwardRef(function (_a, forwardedRef) {
38
40
  var className = _a.className, children = _a.children, size = _a.size, scaling = _a.scaling, loading = _a.loading, spinnerProps = __rest(_a, ["className", "children", "size", "scaling", "loading"]);
41
+ var theme = useTheme().theme;
39
42
  var sizeTheme = '2';
40
43
  if (size === 'small')
41
44
  sizeTheme = '1';
42
45
  if (size === 'large')
43
46
  sizeTheme = '3';
44
- return (_jsx(Theme, { hasBackground: false, children: _jsx(SpinnerTheme, __assign({ ref: forwardedRef, loading: loading, size: sizeTheme, className: cn('', spinnerVariants({ scaling: scaling }), className) }, spinnerProps, { children: children })) }));
47
+ return (_jsx(Theme, { hasBackground: false, children: _jsx(SpinnerTheme, __assign({ ref: forwardedRef, loading: loading, size: sizeTheme, className: cn('', spinnerVariants({ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling }), className) }, spinnerProps, { children: children })) }));
45
48
  });
46
49
  Spinner.displayName = 'Spinner';
47
50
  export default Spinner;
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import t from"react";import{cva as a}from"class-variance-authority";import{Theme as e,Spinner as n}from"@radix-ui/themes";import{cn as i}from"../../utils/utils.mjs";import{scalingVariants as o}from"../../constants.mjs";var s=function(){return s=Object.assign||function(r){for(var t,a=1,e=arguments.length;a<e;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r},s.apply(this,arguments)},l=function(r,t){var a={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(a[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(e=Object.getOwnPropertySymbols(r);n<e.length;n++)t.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(r,e[n])&&(a[e[n]]=r[e[n]])}return a},c=a("",{variants:{scaling:s({},o)},defaultVariants:{scaling:"100%"}}),p=t.forwardRef((function(t,a){var o=t.className,p=t.children,f=t.size,m=t.scaling,u=t.loading,d=l(t,["className","children","size","scaling","loading"]),g="2";return"small"===f&&(g="1"),"large"===f&&(g="3"),r(e,{hasBackground:!1,children:r(n,s({ref:a,loading:u,size:g,className:i("",c({scaling:m}),o)},d,{children:p}))})}));p.displayName="Spinner";export{p as Spinner,p as default};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import e from"react";import{cva as t}from"class-variance-authority";import{Theme as a,Spinner as n}from"@radix-ui/themes";import{cn as i}from"../../utils/utils.mjs";import{scalingVariants as o}from"../../constants.mjs";import{useTheme as l}from"../../theme/ThemeProvider.mjs";var s=function(){return s=Object.assign||function(r){for(var e,t=1,a=arguments.length;t<a;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},s.apply(this,arguments)},c=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 n=0;for(a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]])}return t},m=t("",{variants:{scaling:s({},o)},defaultVariants:{scaling:"100%"}}),p=e.forwardRef((function(e,t){var o=e.className,p=e.children,f=e.size,u=e.scaling,d=e.loading,g=c(e,["className","children","size","scaling","loading"]),h=l().theme,y="2";return"small"===f&&(y="1"),"large"===f&&(y="3"),r(a,{hasBackground:!1,children:r(n,s({ref:t,loading:d,size:y,className:i("",m({scaling:null!=u?u:h.themeScaling}),o)},g,{children:p}))})}));p.displayName="Spinner";export{p as Spinner,p as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Spinner/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Spinner as SpinnerTheme, Theme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nimport { scalingVariants } from '../../../lib/constants';\nvar spinnerVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var Spinner = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, size = _a.size, scaling = _a.scaling, loading = _a.loading, spinnerProps = __rest(_a, [\"className\", \"children\", \"size\", \"scaling\", \"loading\"]);\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { hasBackground: false, children: _jsx(SpinnerTheme, __assign({ ref: forwardedRef, loading: loading, size: sizeTheme, className: cn('', spinnerVariants({ scaling: scaling }), className) }, spinnerProps, { children: children })) }));\n});\nSpinner.displayName = 'Spinner';\nexport default Spinner;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","spinnerVariants","cva","variants","scaling","scalingVariants","defaultVariants","Spinner","React","forwardRef","_a","forwardedRef","className","children","size","loading","spinnerProps","sizeTheme","_jsx","Theme","hasBackground","SpinnerTheme","ref","cn","displayName"],"mappings":"mQAAA,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,EAAkBC,EAAI,GAAI,CAC1BC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAUC,EAAMC,YAAW,SAAUC,EAAIC,GAChD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAOJ,EAAGI,KAAMV,EAAUM,EAAGN,QAASW,EAAUL,EAAGK,QAASC,EAAepB,EAAOc,EAAI,CAAC,YAAa,WAAY,OAAQ,UAAW,YACrLO,EAAY,IAKhB,MAJa,UAATH,IACAG,EAAY,KACH,UAATH,IACAG,EAAY,KACRC,EAAKC,EAAO,CAAEC,eAAe,EAAOP,SAAUK,EAAKG,EAAcxC,EAAS,CAAEyC,IAAKX,EAAcI,QAASA,EAASD,KAAMG,EAAWL,UAAWW,EAAG,GAAItB,EAAgB,CAAEG,QAASA,IAAYQ,IAAcI,EAAc,CAAEH,SAAUA,MAC/O,IACAN,EAAQiB,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -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,17 +26,19 @@ import React from 'react';
25
26
  import { cva } from 'class-variance-authority';
26
27
  import { TabNav as TabNavTheme, Theme } from '@radix-ui/themes';
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 tabNavVariants = cva('', {
29
32
  variants: {},
30
33
  });
31
34
  export var Root = React.forwardRef(function (_a, ref) {
35
+ var _b;
32
36
  var className = _a.className, children = _a.children, size = _a.size, color = _a.color, rootProps = __rest(_a, ["className", "children", "size", "color"]);
33
- if (!color)
34
- color = 'red';
37
+ var theme = useTheme().theme;
35
38
  var sizeTheme = '2';
36
39
  if (size === 'small')
37
40
  sizeTheme = '1';
38
- return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabNavTheme.Root, __assign({ ref: ref, size: sizeTheme, className: cn('', tabNavVariants({}), className) }, rootProps, { children: children })) }));
41
+ return (_jsx(Theme, { accentColor: ((_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : MAIN_COLOR), hasBackground: false, children: _jsx(TabNavTheme.Root, __assign({ ref: ref, size: sizeTheme, className: cn(tabNavVariants({}), className) }, rootProps, { children: children })) }));
39
42
  });
40
43
  Root.displayName = 'TabNav.Root';
41
44
  export var Link = React.forwardRef(function (_a, ref) {
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import a from"react";import{cva as e}from"class-variance-authority";import{Theme as t,TabNav as o}from"@radix-ui/themes";import{cn as n}from"../../utils/utils.mjs";var i=function(){return i=Object.assign||function(r){for(var a,e=1,t=arguments.length;e<t;e++)for(var o in a=arguments[e])Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o]);return r},i.apply(this,arguments)},s=function(r,a){var e={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&a.indexOf(t)<0&&(e[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(r);o<t.length;o++)a.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(r,t[o])&&(e[t[o]]=r[t[o]])}return e},l=e("",{variants:{}}),c=a.forwardRef((function(a,e){var c=a.className,f=a.children,m=a.size,p=a.color,d=s(a,["className","children","size","color"]);p||(p="red");var u="2";return"small"===m&&(u="1"),r(t,{accentColor:p,hasBackground:!1,children:r(o.Root,i({ref:e,size:u,className:n("",l({}),c)},d,{children:f}))})}));c.displayName="TabNav.Root";var f=a.forwardRef((function(a,e){var t=a.className,c=a.children,f=a.href,m=s(a,["className","children","href"]);return r(o.Link,i({ref:e,className:n("text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12",l({}),t),href:f},m,{children:c}))}));f.displayName="TabNav.Link";var m={Root:c,Link:f};export{f as Link,c as Root,m as default};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import e from"react";import{cva as t}from"class-variance-authority";import{Theme as a,TabNav as o}from"@radix-ui/themes";import{cn as n}from"../../utils/utils.mjs";import{useTheme as l}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as i}from"../../color/constants.mjs";var s=function(){return s=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},s.apply(this,arguments)},c=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},m=t("",{variants:{}}),f=e.forwardRef((function(e,t){var f,p=e.className,d=e.children,h=e.size,u=e.color,v=c(e,["className","children","size","color"]),y=l().theme,b="2";return"small"===h&&(b="1"),r(a,{accentColor:null!==(f=null!=u?u:y.themeColor)&&void 0!==f?f:i,hasBackground:!1,children:r(o.Root,s({ref:t,size:b,className:n(m({}),p)},v,{children:d}))})}));f.displayName="TabNav.Root";var p=e.forwardRef((function(e,t){var a=e.className,l=e.children,i=e.href,f=c(e,["className","children","href"]);return r(o.Link,s({ref:t,className:n("text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12",m({}),a),href:i},f,{children:l}))}));p.displayName="TabNav.Link";var d={Root:f,Link:p};export{p as Link,f as Root,d as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/TabNav/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { TabNav as TabNavTheme, Theme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nvar tabNavVariants = cva('', {\n variants: {},\n});\nexport var Root = React.forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, size = _a.size, color = _a.color, rootProps = __rest(_a, [\"className\", \"children\", \"size\", \"color\"]);\n if (!color)\n color = 'red';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabNavTheme.Root, __assign({ ref: ref, size: sizeTheme, className: cn('', tabNavVariants({}), className) }, rootProps, { children: children })) }));\n});\nRoot.displayName = 'TabNav.Root';\nexport var Link = React.forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, href = _a.href, linkProps = __rest(_a, [\"className\", \"children\", \"href\"]);\n return (_jsx(TabNavTheme.Link, __assign({ ref: ref, className: cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', tabNavVariants({}), className), href: href }, linkProps, { children: children })));\n});\nLink.displayName = 'TabNav.Link';\nvar TabNav = {\n Root: Root,\n Link: Link,\n};\nexport default TabNav;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","tabNavVariants","cva","variants","Root","React","forwardRef","_a","ref","className","children","size","color","rootProps","sizeTheme","_jsx","Theme","accentColor","hasBackground","TabNavTheme","cn","displayName","Link","href","linkProps","TabNav"],"mappings":"4MAAA,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,EAAiBC,EAAI,GAAI,CACzBC,SAAU,CAAE,IAELC,EAAOC,EAAMC,YAAW,SAAUC,EAAIC,GAC7C,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUC,EAAOJ,EAAGI,KAAMC,EAAQL,EAAGK,MAAOC,EAAYjB,EAAOW,EAAI,CAAC,YAAa,WAAY,OAAQ,UAC5IK,IACDA,EAAQ,OACZ,IAAIE,EAAY,IAGhB,MAFa,UAATH,IACAG,EAAY,KACRC,EAAKC,EAAO,CAAEC,YAAaL,EAAOM,eAAe,EAAOR,SAAUK,EAAKI,EAAYf,KAAMvB,EAAS,CAAE2B,IAAKA,EAAKG,KAAMG,EAAWL,UAAWW,EAAG,GAAInB,EAAe,CAAE,GAAGQ,IAAcI,EAAW,CAAEH,SAAUA,MACtN,IACAN,EAAKiB,YAAc,cACT,IAACC,EAAOjB,EAAMC,YAAW,SAAUC,EAAIC,GAC7C,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUa,EAAOhB,EAAGgB,KAAMC,EAAY5B,EAAOW,EAAI,CAAC,YAAa,WAAY,SACvH,OAAQQ,EAAKI,EAAYG,KAAMzC,EAAS,CAAE2B,IAAKA,EAAKC,UAAWW,EAAG,wHAAyHnB,EAAe,CAAA,GAAKQ,GAAYc,KAAMA,GAAQC,EAAW,CAAEd,SAAUA,IACpQ,IACAY,EAAKD,YAAc,cAChB,IAACI,EAAS,CACTrB,KAAMA,EACNkB,KAAMA"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -8,8 +8,8 @@ export interface TableProps extends VariantProps<typeof tableVariants> {
8
8
  size?: 'small' | 'medium' | 'large';
9
9
  }
10
10
  declare const tableVariants: (props?: ({
11
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
12
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
11
+ scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
12
+ radius?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
13
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
14
  export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & TableProps & React.RefAttributes<HTMLDivElement>>;
15
15
  export declare const Header: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & TableProps & React.RefAttributes<HTMLTableSectionElement>>;
@@ -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,7 @@ import { cva } from 'class-variance-authority';
26
27
  import { Table as TableTheme, Theme } from '@radix-ui/themes';
27
28
  import { cn } from '../../../lib/utils/utils';
28
29
  import { radiusVariants, scalingVariants } from '../../../lib/constants';
30
+ import { useTheme } from '../../../lib/theme';
29
31
  var tableVariants = cva('', {
30
32
  variants: {
31
33
  scaling: __assign({}, scalingVariants),
@@ -46,14 +48,18 @@ var tableRowVariants = cva('', {
46
48
  });
47
49
  export var Root = React.forwardRef(function (_a, ref) {
48
50
  var className = _a.className, children = _a.children, appearance = _a.appearance, scaling = _a.scaling, size = _a.size, radius = _a.radius, tableProps = __rest(_a, ["className", "children", "appearance", "scaling", "size", "radius"]);
51
+ var theme = useTheme().theme;
49
52
  var sizeTheme = '2';
50
53
  if (size === 'small')
51
54
  sizeTheme = '1';
52
55
  if (size === 'large')
53
56
  sizeTheme = '3';
54
- if (radius === 'full')
55
- radius = 'large';
56
- return (_jsx(Theme, { hasBackground: false, children: _jsx(TableTheme.Root, __assign({ ref: ref, className: cn('', tableVariants({ scaling: scaling, radius: radius }), className), variant: appearance, size: sizeTheme }, tableProps, { children: children })) }));
57
+ var radiusValue = radius !== null && radius !== void 0 ? radius : theme.themeRadius;
58
+ var contextValue = {
59
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
60
+ radius: radiusValue === 'full' ? 'large' : radiusValue,
61
+ };
62
+ return (_jsx(Theme, { hasBackground: false, children: _jsx(TableTheme.Root, __assign({ ref: ref, className: cn(tableVariants(contextValue), className), variant: appearance, size: sizeTheme }, tableProps, { children: children })) }));
57
63
  });
58
64
  Root.displayName = 'Table.Root';
59
65
  export var Header = React.forwardRef(function (_a, forwardedRef) {
@@ -1,2 +1,3 @@
1
- import{jsx as a}from"react/jsx-runtime";import e from"react";import{cva as r}from"class-variance-authority";import{Theme as l,Table as s}from"@radix-ui/themes";import{cn as n}from"../../utils/utils.mjs";import{scalingVariants as i,radiusVariants as c}from"../../constants.mjs";var o=function(){return o=Object.assign||function(a){for(var e,r=1,l=arguments.length;r<l;r++)for(var s in e=arguments[r])Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a},o.apply(this,arguments)},t=function(a,e){var r={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&e.indexOf(l)<0&&(r[l]=a[l]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(a);s<l.length;s++)e.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(a,l[s])&&(r[l[s]]=a[l[s]])}return r},d=r("",{variants:{scaling:o({},i),radius:o({},c.base)},defaultVariants:{scaling:"100%"}}),m=r("",{variants:{size:{small:"h-[36px]",medium:"h-[44px]",large:"h-[48px] p-3"}}}),f=e.forwardRef((function(e,r){var i=e.className,c=e.children,m=e.appearance,f=e.scaling,u=e.size,p=e.radius,h=t(e,["className","children","appearance","scaling","size","radius"]),g="2";return"small"===u&&(g="1"),"large"===u&&(g="3"),"full"===p&&(p="large"),a(l,{hasBackground:!1,children:a(s.Root,o({ref:r,className:n("",d({scaling:f,radius:p}),i),variant:m,size:g},h,{children:c}))})}));f.displayName="Table.Root";var u=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,m=t(e,["className","children","scaling"]);return a(s.Header,o({ref:r,className:n("",d({scaling:c}),l)},m,{children:i}))}));u.displayName="Table.Header";var p=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,m=t(e,["className","children","scaling"]);return a(s.Body,o({ref:r,className:n("",d({scaling:c}),l)},m,{children:i}))}));p.displayName="Table.Body";var h=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,m=t(e,["className","children","scaling"]);return a(s.Row,o({ref:r,className:n("",d({scaling:c}),l)},m,{children:i}))}));h.displayName="Table.Row";var g=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,m=t(e,["className","children","scaling"]);return a(s.Cell,o({className:n("",d({scaling:c}),l)},m,{ref:r,children:i}))}));g.displayName="Table.Cell";var N=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,f=e.size,u=t(e,["className","children","scaling","size"]);return a(s.ColumnHeaderCell,o({ref:r,className:n("",d({scaling:c}),m({size:f}),l)},u,{children:i}))}));N.displayName="Table.ColumnHeaderCell";var v=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,m=t(e,["className","children","scaling"]);return a(s.RowHeaderCell,o({ref:r,className:n("",d({scaling:c}),l)},m,{children:i}))}));v.displayName="Table.RowHeaderCell";var y={Root:f,Header:u,Body:p,Row:h,Cell:g,ColumnHeaderCell:N,RowHeaderCell:v};export{p as Body,g as Cell,N as ColumnHeaderCell,u as Header,f as Root,h as Row,v as RowHeaderCell,y as default};
1
+ "use client";
2
+ import{jsx as a}from"react/jsx-runtime";import e from"react";import{cva as r}from"class-variance-authority";import{Theme as l,Table as s}from"@radix-ui/themes";import{cn as n}from"../../utils/utils.mjs";import{scalingVariants as i,radiusVariants as c}from"../../constants.mjs";import{useTheme as t}from"../../theme/ThemeProvider.mjs";var o=function(){return o=Object.assign||function(a){for(var e,r=1,l=arguments.length;r<l;r++)for(var s in e=arguments[r])Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a},o.apply(this,arguments)},m=function(a,e){var r={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&e.indexOf(l)<0&&(r[l]=a[l]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(a);s<l.length;s++)e.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(a,l[s])&&(r[l[s]]=a[l[s]])}return r},d=r("",{variants:{scaling:o({},i),radius:o({},c.base)},defaultVariants:{scaling:"100%"}}),f=r("",{variants:{size:{small:"h-[36px]",medium:"h-[44px]",large:"h-[48px] p-3"}}}),u=e.forwardRef((function(e,r){var i=e.className,c=e.children,f=e.appearance,u=e.scaling,h=e.size,p=e.radius,g=m(e,["className","children","appearance","scaling","size","radius"]),N=t().theme,v="2";"small"===h&&(v="1"),"large"===h&&(v="3");var y=null!=p?p:N.themeRadius,b={scaling:null!=u?u:N.themeScaling,radius:"full"===y?"large":y};return a(l,{hasBackground:!1,children:a(s.Root,o({ref:r,className:n(d(b),i),variant:f,size:v},g,{children:c}))})}));u.displayName="Table.Root";var h=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,t=m(e,["className","children","scaling"]);return a(s.Header,o({ref:r,className:n("",d({scaling:c}),l)},t,{children:i}))}));h.displayName="Table.Header";var p=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,t=m(e,["className","children","scaling"]);return a(s.Body,o({ref:r,className:n("",d({scaling:c}),l)},t,{children:i}))}));p.displayName="Table.Body";var g=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,t=m(e,["className","children","scaling"]);return a(s.Row,o({ref:r,className:n("",d({scaling:c}),l)},t,{children:i}))}));g.displayName="Table.Row";var N=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,t=m(e,["className","children","scaling"]);return a(s.Cell,o({className:n("",d({scaling:c}),l)},t,{ref:r,children:i}))}));N.displayName="Table.Cell";var v=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,t=e.size,u=m(e,["className","children","scaling","size"]);return a(s.ColumnHeaderCell,o({ref:r,className:n("",d({scaling:c}),f({size:t}),l)},u,{children:i}))}));v.displayName="Table.ColumnHeaderCell";var y=e.forwardRef((function(e,r){var l=e.className,i=e.children,c=e.scaling,t=m(e,["className","children","scaling"]);return a(s.RowHeaderCell,o({ref:r,className:n("",d({scaling:c}),l)},t,{children:i}))}));y.displayName="Table.RowHeaderCell";var b={Root:u,Header:h,Body:p,Row:g,Cell:N,ColumnHeaderCell:v,RowHeaderCell:y};export{p as Body,N as Cell,v as ColumnHeaderCell,h as Header,u as Root,g as Row,y as RowHeaderCell,b as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Table/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Table as TableTheme, Theme } from '@radix-ui/themes';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nvar tableVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n radius: __assign({}, radiusVariants['base']),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nvar tableRowVariants = cva('', {\n variants: {\n size: {\n small: 'h-[36px]',\n medium: 'h-[44px]',\n large: 'h-[48px] p-3',\n },\n },\n});\nexport var Root = React.forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, appearance = _a.appearance, scaling = _a.scaling, size = _a.size, radius = _a.radius, tableProps = __rest(_a, [\"className\", \"children\", \"appearance\", \"scaling\", \"size\", \"radius\"]);\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n if (radius === 'full')\n radius = 'large';\n return (_jsx(Theme, { hasBackground: false, children: _jsx(TableTheme.Root, __assign({ ref: ref, className: cn('', tableVariants({ scaling: scaling, radius: radius }), className), variant: appearance, size: sizeTheme }, tableProps, { children: children })) }));\n});\nRoot.displayName = 'Table.Root';\nexport var Header = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.Header, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));\n});\nHeader.displayName = 'Table.Header';\nexport var Body = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.Body, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));\n});\nBody.displayName = 'Table.Body';\nexport var Row = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.Row, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));\n});\nRow.displayName = 'Table.Row';\nexport var Cell = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, cellProps = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.Cell, __assign({ className: cn('', tableVariants({ scaling: scaling }), className) }, cellProps, { ref: forwardedRef, children: children })));\n});\nCell.displayName = 'Table.Cell';\nexport var ColumnHeaderCell = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, props = __rest(_a, [\"className\", \"children\", \"scaling\", \"size\"]);\n return (_jsx(TableTheme.ColumnHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), tableRowVariants({ size: size }), className) }, props, { children: children })));\n});\nColumnHeaderCell.displayName = 'Table.ColumnHeaderCell';\nexport var RowHeaderCell = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, props = __rest(_a, [\"className\", \"children\", \"scaling\"]);\n return (_jsx(TableTheme.RowHeaderCell, __assign({ ref: forwardedRef, className: cn('', tableVariants({ scaling: scaling }), className) }, props, { children: children })));\n});\nRowHeaderCell.displayName = 'Table.RowHeaderCell';\nvar Table = {\n Root: Root,\n Header: Header,\n Body: Body,\n Row: Row,\n Cell: Cell,\n ColumnHeaderCell: ColumnHeaderCell,\n RowHeaderCell: RowHeaderCell,\n};\nexport default Table;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","tableVariants","cva","variants","scaling","scalingVariants","radius","radiusVariants","defaultVariants","tableRowVariants","size","small","medium","large","Root","React","forwardRef","_a","ref","className","children","appearance","tableProps","sizeTheme","_jsx","Theme","hasBackground","TableTheme","cn","variant","displayName","Header","forwardedRef","props","Body","Row","Cell","cellProps","ColumnHeaderCell","RowHeaderCell","Table"],"mappings":"qRAAA,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,KAA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Theme } from '@radix-ui/themes';
2
2
  import React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
+ import { IColor } from '../../../lib/types';
4
5
  export interface TabsProps extends VariantProps<typeof tabsVariants> {
5
6
  defaultValue?: string;
6
7
  size?: 'small' | 'medium';
7
- color?: any;
8
+ color?: IColor;
8
9
  }
9
10
  declare const tabsVariants: (props?: ({
10
11
  weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
@@ -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,16 +27,18 @@ import React from 'react';
26
27
  import { cn } from '../../../lib/utils/utils';
27
28
  import { cva } from 'class-variance-authority';
28
29
  import { weightVariants } from '../../../lib/constants';
30
+ import { useTheme } from '../../../lib/theme';
31
+ import { MAIN_COLOR } from '../../../lib/color/constants';
29
32
  var tabsVariants = cva('', {
30
33
  variants: {
31
34
  weight: __assign({}, weightVariants),
32
35
  },
33
36
  });
34
37
  export var Root = React.forwardRef(function (_a, forwardedRef) {
38
+ var _b;
35
39
  var className = _a.className, children = _a.children, color = _a.color, rootProps = __rest(_a, ["className", "children", "color"]);
36
- if (!color)
37
- color = 'red';
38
- return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabsTheme.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', className), children: children })) }));
40
+ var theme = useTheme().theme;
41
+ return (_jsx(Theme, { accentColor: ((_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : MAIN_COLOR), hasBackground: false, children: _jsx(TabsTheme.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', className), children: children })) }));
39
42
  });
40
43
  Root.displayName = 'Tabs.Root';
41
44
  export var List = React.forwardRef(function (_a, forwardedRef) {
@@ -1,2 +1,3 @@
1
- import{jsx as r}from"react/jsx-runtime";import{Theme as e,Tabs as a}from"@radix-ui/themes";import t from"react";import{cn as s}from"../../utils/utils.mjs";import{cva as i}from"class-variance-authority";import{weightVariants as n}from"../../constants.mjs";var o=function(){return o=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var s in e=arguments[a])Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r},o.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 s=0;for(t=Object.getOwnPropertySymbols(r);s<t.length;s++)e.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(r,t[s])&&(a[t[s]]=r[t[s]])}return a};i("",{variants:{weight:o({},n)}});var c=t.forwardRef((function(t,i){var n=t.className,c=t.children,m=t.color,f=l(t,["className","children","color"]);return m||(m="red"),r(e,{accentColor:m,hasBackground:!1,children:r(a.Root,o({},f,{ref:i,className:s("",n),children:c}))})}));c.displayName="Tabs.Root";var m=t.forwardRef((function(e,t){var i=e.className;e.weight;var n=e.children,c=e.size,m=l(e,["className","weight","children","size"]),f="2";return"small"===c&&(f="1"),r(a.List,o({ref:t,size:f},m,{className:s("",i),children:n}))}));m.displayName="Tabs.List";var f=t.forwardRef((function(e,t){var i=e.className;e.weight;var n=e.children,c=l(e,["className","weight","children"]);return r(a.Trigger,o({ref:t,className:s("text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12",i)},c,{children:n}))}));f.displayName="Tabs.Trigger";var d=t.forwardRef((function(e,t){var i=e.className;e.weight;var n=e.children,c=l(e,["className","weight","children"]);return r(a.Content,o({ref:t},c,{className:s("mt-3",i),children:n}))}));d.displayName="Tabs.Content";var h={Root:c,List:m,Trigger:f,Content:d};export{d as Content,m as List,c as Root,f as Trigger,h as default};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{Theme as e,Tabs as t}from"@radix-ui/themes";import a from"react";import{cn as o}from"../../utils/utils.mjs";import{cva as s}from"class-variance-authority";import{weightVariants as i}from"../../constants.mjs";import{useTheme as n}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as l}from"../../color/constants.mjs";var c=function(){return c=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},c.apply(this,arguments)},m=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("",{variants:{weight:c({},i)}});var f=a.forwardRef((function(a,s){var i,f=a.className,d=a.children,h=a.color,p=m(a,["className","children","color"]),u=n().theme;return r(e,{accentColor:null!==(i=null!=h?h:u.themeColor)&&void 0!==i?i:l,hasBackground:!1,children:r(t.Root,c({},p,{ref:s,className:o("",f),children:d}))})}));f.displayName="Tabs.Root";var d=a.forwardRef((function(e,a){var s=e.className;e.weight;var i=e.children,n=e.size,l=m(e,["className","weight","children","size"]),f="2";return"small"===n&&(f="1"),r(t.List,c({ref:a,size:f},l,{className:o("",s),children:i}))}));d.displayName="Tabs.List";var h=a.forwardRef((function(e,a){var s=e.className;e.weight;var i=e.children,n=m(e,["className","weight","children"]);return r(t.Trigger,c({ref:a,className:o("text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12",s)},n,{children:i}))}));h.displayName="Tabs.Trigger";var p=a.forwardRef((function(e,a){var s=e.className;e.weight;var i=e.children,n=m(e,["className","weight","children"]);return r(t.Content,c({ref:a},n,{className:o("mt-3",s),children:i}))}));p.displayName="Tabs.Content";var u={Root:f,List:d,Trigger:h,Content:p};export{p as Content,d as List,f as Root,h as Trigger,u as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Tabs/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 { Theme, Tabs as TabsTheme } from '@radix-ui/themes';\nimport React from 'react';\nimport { cn } from '../../../lib/utils/utils';\nimport { cva } from 'class-variance-authority';\nimport { weightVariants } from '../../../lib/constants';\nvar tabsVariants = cva('', {\n variants: {\n weight: __assign({}, weightVariants),\n },\n});\nexport var Root = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, children = _a.children, color = _a.color, rootProps = __rest(_a, [\"className\", \"children\", \"color\"]);\n if (!color)\n color = 'red';\n return (_jsx(Theme, { accentColor: color, hasBackground: false, children: _jsx(TabsTheme.Root, __assign({}, rootProps, { ref: forwardedRef, className: cn('', className), children: children })) }));\n});\nRoot.displayName = 'Tabs.Root';\nexport var List = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, weight = _a.weight, children = _a.children, size = _a.size, listProps = __rest(_a, [\"className\", \"weight\", \"children\", \"size\"]);\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n return (_jsx(TabsTheme.List, __assign({ ref: forwardedRef, size: sizeTheme }, listProps, { className: cn('', className), children: children })));\n});\nList.displayName = 'Tabs.List';\nexport var Trigger = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, weight = _a.weight, children = _a.children, triggerProps = __rest(_a, [\"className\", \"weight\", \"children\"]);\n return (_jsx(TabsTheme.Trigger, __assign({ ref: forwardedRef, className: cn('text-slateA-11 data-[state=active]:text-slateA-12 dark:text-slateDarkA-11 dark:data-[state=active]:text-slateDarkA-12', className) }, triggerProps, { children: children })));\n});\nTrigger.displayName = 'Tabs.Trigger';\nexport var Content = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, weight = _a.weight, children = _a.children, contentProps = __rest(_a, [\"className\", \"weight\", \"children\"]);\n return (_jsx(TabsTheme.Content, __assign({ ref: forwardedRef }, contentProps, { className: cn('mt-3', className), children: children })));\n});\nContent.displayName = 'Tabs.Content';\nvar Tabs = {\n Root: Root,\n List: List,\n Trigger: Trigger,\n Content: Content,\n};\nexport default Tabs;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","cva","variants","weight","weightVariants","Root","React","forwardRef","_a","forwardedRef","className","children","color","rootProps","_jsx","Theme","accentColor","hasBackground","TabsTheme","ref","cn","displayName","List","size","listProps","sizeTheme","Trigger","triggerProps","Content","contentProps","Tabs"],"mappings":"+PAAA,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,I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