@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{createContext as e,forwardRef as a}from"react";import*as t from"@radix-ui/react-toggle-group";import{cva as o}from"class-variance-authority";import{scalingVariants as n}from"../../constants.mjs";import{cn as i}from"../../utils/utils.mjs";var c=function(){return c=Object.assign||function(r){for(var e,a=1,t=arguments.length;a<t;a++)for(var o in e=arguments[a])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},c.apply(this,arguments)},l=function(r,e){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(a[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var 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},s=o("inline-flex",{variants:{scaling:c({},n)},defaultVariants:{scaling:"100%"}}),p=e({size:"medium",color:"red",appearance:"surface"}),m=a((function(e,a){var o=e.className,n=e.children,m=e.scaling,f=e.size,u=e.color,g=e.appearance,y=l(e,["className","children","scaling","size","color","appearance"]),d=(c({},y).type,{size:f,color:u,appearance:g});return r(p.Provider,{value:d,children:r(t.Root,c({className:i(s({scaling:m}),o)},y,{ref:a,children:n}))})}));m.displayName="ToggleGroup.Root";export{p as ToggleGroupContext,m as ToggleGroupRoot};
1
+ "use client";
2
+ import{jsx as r}from"react/jsx-runtime";import{createContext as e,forwardRef as o}from"react";import*as t from"@radix-ui/react-toggle-group";import{cva as a}from"class-variance-authority";import{scalingVariants as n}from"../../constants.mjs";import{cn as i}from"../../utils/utils.mjs";import{useTheme as l}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as c}from"../../color/constants.mjs";var s=function(){return s=Object.assign||function(r){for(var e,o=1,t=arguments.length;o<t;o++)for(var a in e=arguments[o])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},s.apply(this,arguments)},p=function(r,e){var o={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(r);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(r,t[a])&&(o[t[a]]=r[t[a]])}return o},m=a("inline-flex",{variants:{scaling:s({},n)},defaultVariants:{scaling:"100%"}}),f=e({size:"medium",color:c,appearance:"surface"}),u=o((function(e,o){var a,n=e.className,u=e.children,g=e.scaling,h=e.size,y=e.color,d=e.appearance,v=p(e,["className","children","scaling","size","color","appearance"]),O=l().theme,j=(s({},v).type,{scaling:null!=g?g:O.themeScaling,color:null!==(a=null!=y?y:O.themeColor)&&void 0!==a?a:c,size:h,appearance:d});return r(f.Provider,{value:j,children:r(t.Root,s({className:i(m(j),n)},v,{ref:o,children:u}))})}));u.displayName="ToggleGroup.Root";export{f as ToggleGroupContext,u as ToggleGroupRoot};
2
3
  //# sourceMappingURL=ToggleGroupRoot.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleGroupRoot.mjs","sources":["../../../lib/components/ToggleGroup/ToggleGroupRoot.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createContext, forwardRef } from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cn } from '../../../lib/utils/utils';\nvar toggleVariants = cva('inline-flex', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var ToggleGroupContext = createContext({\n size: 'medium',\n color: 'red',\n appearance: 'surface',\n});\nexport var ToggleGroupRoot = forwardRef(function (_a, ref) {\n var className = _a.className, children = _a.children, scaling = _a.scaling, size = _a.size, color = _a.color, appearance = _a.appearance, props = __rest(_a, [\"className\", \"children\", \"scaling\", \"size\", \"color\", \"appearance\"]);\n var type = __assign({}, props).type;\n var contextValue = { size: size, color: color, appearance: appearance };\n return (_jsx(ToggleGroupContext.Provider, { value: contextValue, children: type === 'single' ? (_jsx(ToggleGroupPrimitive.Root, __assign({ className: cn(toggleVariants({ scaling: scaling }), className) }, props, { ref: ref, children: children }))) : (_jsx(ToggleGroupPrimitive.Root, __assign({ className: cn(toggleVariants({ scaling: scaling }), className) }, props, { ref: ref, children: children }))) }));\n});\nToggleGroupRoot.displayName = 'ToggleGroup.Root';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleVariants","cva","variants","scaling","scalingVariants","defaultVariants","ToggleGroupContext","createContext","size","color","appearance","ToggleGroupRoot","forwardRef","_a","ref","className","children","props","contextValue","type","_jsx","Provider","value","ToggleGroupPrimitive","Root","cn","displayName"],"mappings":"6RAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAOIiB,EAAiBC,EAAI,cAAe,CACpCC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAqBC,EAAc,CAC1CC,KAAM,SACNC,MAAO,MACPC,WAAY,YAELC,EAAkBC,GAAW,SAAUC,EAAIC,GAClD,IAAIC,EAAYF,EAAGE,UAAWC,EAAWH,EAAGG,SAAUb,EAAUU,EAAGV,QAASK,EAAOK,EAAGL,KAAMC,EAAQI,EAAGJ,MAAOC,EAAaG,EAAGH,WAAYO,EAAQtB,EAAOkB,EAAI,CAAC,YAAa,WAAY,UAAW,OAAQ,QAAS,eAE/MK,GADOtC,EAAS,CAAE,EAAEqC,GAAOE,KACZ,CAAEX,KAAMA,EAAMC,MAAOA,EAAOC,WAAYA,IAC3D,OAAQU,EAAKd,EAAmBe,SAAU,CAAEC,MAAOJ,EAAcF,SAA+BI,EAAKG,EAAqBC,KAAM5C,EAAS,CAAEmC,UAAWU,EAAGzB,EAAe,CAAEG,QAASA,IAAYY,IAAcE,EAAO,CAAEH,IAAKA,EAAKE,SAAUA,MAC9O,IACAL,EAAgBe,YAAc"}
1
+ {"version":3,"file":"ToggleGroupRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ToggleGroup: {
2
3
  Root: import("react").ForwardRefExoticComponent<(import("react").ComponentPropsWithoutRef<import("react").ForwardRefExoticComponent<(import("@radix-ui/react-toggle-group").ToggleGroupSingleProps | import("@radix-ui/react-toggle-group").ToggleGroupMultipleProps) & import("react").RefAttributes<HTMLDivElement>>> & import("./ToggleGroupRoot").ToggleGroupProps) & import("react").RefAttributes<HTMLDivElement>>;
3
4
  Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-toggle-group").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./ToggleGroupItem").ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -5,9 +5,9 @@ export interface ToggleSwitchProps extends VariantProps<typeof toggleSwitchVaria
5
5
  children?: any;
6
6
  }
7
7
  declare const toggleSwitchVariants: (props?: ({
8
- scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
9
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
10
- size?: "small" | "medium" | "large" | null | undefined;
8
+ scaling?: "100%" | "90%" | "95%" | "105%" | "110%" | null | undefined;
9
+ radius?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
10
+ size?: "small" | "large" | "medium" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  export declare const ToggleSwitch: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes").SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref">, "size"> & ToggleSwitchProps & React.RefAttributes<HTMLButtonElement>>;
13
13
  export default ToggleSwitch;
@@ -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++) {
@@ -27,6 +28,8 @@ import { cn } from '../../../lib/utils/utils';
27
28
  import { radiusVariants, scalingVariants } from '../../../lib/constants';
28
29
  import { Switch as SwitchTheme, Theme } from '@radix-ui/themes';
29
30
  import { Text } from '../../../lib/Typography/Text';
31
+ import { useTheme } from '../../../lib/theme';
32
+ import { MAIN_COLOR } from '../../../lib/color/constants';
30
33
  var toggleSwitchVariants = cva('', {
31
34
  variants: {
32
35
  scaling: __assign({}, scalingVariants),
@@ -57,7 +60,9 @@ var SwitchLabelVariants = cva('flex items-center justify-start text-slate-12 fon
57
60
  },
58
61
  });
59
62
  export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
60
- var className = _a.className, _b = _a.color, color = _b === void 0 ? 'red' : _b, scaling = _a.scaling, size = _a.size, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, radius = _a.radius, tabIndex = _a.tabIndex, children = _a.children, switchProps = __rest(_a, ["className", "color", "scaling", "size", "appearance", "radius", "tabIndex", "children"]);
63
+ var _b;
64
+ var className = _a.className, color = _a.color, scaling = _a.scaling, size = _a.size, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, radius = _a.radius, tabIndex = _a.tabIndex, children = _a.children, switchProps = __rest(_a, ["className", "color", "scaling", "size", "appearance", "radius", "tabIndex", "children"]);
65
+ var theme = useTheme().theme;
61
66
  if (radius === 'medium' || radius === 'large')
62
67
  radius = 'full';
63
68
  var sizeTheme = '2';
@@ -65,7 +70,13 @@ export var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {
65
70
  sizeTheme = '1';
66
71
  if (size === 'large')
67
72
  sizeTheme = '3';
68
- return (_jsx(Theme, { className: "flex", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: "label", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className), "aria-label": "Switch" })), children] }) }));
73
+ var contextValue = {
74
+ radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
75
+ scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
76
+ color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : MAIN_COLOR,
77
+ size: size,
78
+ };
79
+ return (_jsx(Theme, { className: "flex", accentColor: contextValue.color, hasBackground: false, children: _jsxs(Text, { as: "label", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: contextValue.scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: contextValue.radius, size: sizeTheme, color: contextValue.color, className: cn(toggleSwitchVariants(contextValue), className), "aria-label": "Switch" })), children] }) }));
69
80
  });
70
81
  ToggleSwitch.displayName = 'ToggleSwitch';
71
82
  export default ToggleSwitch;
@@ -1,2 +1,3 @@
1
- import{jsx as a,jsxs as e}from"react/jsx-runtime";import r from"react";import{cva as t}from"class-variance-authority";import{cn as i}from"../../utils/utils.mjs";import{scalingVariants as s,radiusVariants as l}from"../../constants.mjs";import{Theme as n,Switch as o}from"@radix-ui/themes";import{Text as c}from"../../Typography/Text/index.mjs";var m=function(){return m=Object.assign||function(a){for(var e,r=1,t=arguments.length;r<t;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(a[i]=e[i]);return a},m.apply(this,arguments)},p=function(a,e){var r={};for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&e.indexOf(t)<0&&(r[t]=a[t]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(a);i<t.length;i++)e.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(a,t[i])&&(r[t[i]]=a[t[i]])}return r},u=t("",{variants:{scaling:m({},s),radius:m({},l.base),size:{small:"w-[28px] h-[16px]",medium:"w-[35px] h-[20px]",large:"w-[42px] h-[24px]"}},defaultVariants:{radius:"full",size:"medium"}}),f=t("flex items-center justify-start text-slate-12 font-normal dark:text-white",{variants:{size:{small:"text-xs gap-2",medium:"text-sm gap-2",large:"text-base gap-3"},scaling:m({},s)},defaultVariants:{size:"medium",scaling:"100%"}}),d=r.forwardRef((function(r,t){var s=r.className,l=r.color,d=void 0===l?"red":l,x=r.scaling,g=r.size,h=r.appearance,y=void 0===h?"surface":h,b=r.radius;r.tabIndex;var v=r.children,O=p(r,["className","color","scaling","size","appearance","radius","tabIndex","children"]);"medium"!==b&&"large"!==b||(b="full");var j="2";return"small"===g&&(j="1"),"large"===g&&(j="3"),a(n,{className:"flex",accentColor:d,hasBackground:!1,children:e(c,{as:"label",className:i("flex items-center",f({size:g,scaling:x})),children:[a(o,m({ref:t},O,{variant:y,radius:b,size:j,color:d,className:i(u({scaling:x,radius:b,size:g}),s),"aria-label":"Switch"})),v]})})}));d.displayName="ToggleSwitch";export{d as ToggleSwitch,d as default};
1
+ "use client";
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import a from"react";import{cva as t}from"class-variance-authority";import{cn as i}from"../../utils/utils.mjs";import{scalingVariants as l,radiusVariants as s}from"../../constants.mjs";import{Theme as o,Switch as n}from"@radix-ui/themes";import{Text as m}from"../../Typography/Text/index.mjs";import{useTheme as c}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as p}from"../../color/constants.mjs";var u=function(){return u=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var i in r=arguments[a])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},u.apply(this,arguments)},f=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)r.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a},d=t("",{variants:{scaling:u({},l),radius:u({},s.base),size:{small:"w-[28px] h-[16px]",medium:"w-[35px] h-[20px]",large:"w-[42px] h-[24px]"}},defaultVariants:{radius:"full",size:"medium"}}),g=t("flex items-center justify-start text-slate-12 font-normal dark:text-white",{variants:{size:{small:"text-xs gap-2",medium:"text-sm gap-2",large:"text-base gap-3"},scaling:u({},l)},defaultVariants:{size:"medium",scaling:"100%"}}),h=a.forwardRef((function(a,t){var l,s=a.className,h=a.color,x=a.scaling,v=a.size,y=a.appearance,b=void 0===y?"surface":y,j=a.radius;a.tabIndex;var O=a.children,w=f(a,["className","color","scaling","size","appearance","radius","tabIndex","children"]),z=c().theme;"medium"!==j&&"large"!==j||(j="full");var N="2";"small"===v&&(N="1"),"large"===v&&(N="3");var P={radius:null!=j?j:z.themeRadius,scaling:null!=x?x:z.themeScaling,color:null!==(l=null!=h?h:z.themeColor)&&void 0!==l?l:p,size:v};return e(o,{className:"flex",accentColor:P.color,hasBackground:!1,children:r(m,{as:"label",className:i("flex items-center",g({size:v,scaling:P.scaling})),children:[e(n,u({ref:t},w,{variant:b,radius:P.radius,size:N,color:P.color,className:i(d(P),s),"aria-label":"Switch"})),O]})})}));h.displayName="ToggleSwitch";export{h as ToggleSwitch,h as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/ToggleSwitch/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { radiusVariants, scalingVariants } from '../../../lib/constants';\nimport { Switch as SwitchTheme, Theme } from '@radix-ui/themes';\nimport { Text } from '../../../lib/Typography/Text';\nvar toggleSwitchVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n radius: __assign({}, radiusVariants['base']),\n size: {\n small: 'w-[28px] h-[16px]',\n medium: 'w-[35px] h-[20px]',\n large: 'w-[42px] h-[24px]',\n },\n },\n defaultVariants: {\n radius: 'full',\n size: 'medium',\n },\n});\nvar SwitchLabelVariants = cva('flex items-center justify-start text-slate-12 font-normal dark:text-white', {\n variants: {\n size: {\n small: 'text-xs gap-2',\n medium: 'text-sm gap-2',\n large: 'text-base gap-3',\n },\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n size: 'medium',\n scaling: '100%',\n },\n});\nexport var ToggleSwitch = React.forwardRef(function (_a, forwardedRef) {\n var className = _a.className, _b = _a.color, color = _b === void 0 ? 'red' : _b, scaling = _a.scaling, size = _a.size, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, radius = _a.radius, tabIndex = _a.tabIndex, children = _a.children, switchProps = __rest(_a, [\"className\", \"color\", \"scaling\", \"size\", \"appearance\", \"radius\", \"tabIndex\", \"children\"]);\n if (radius === 'medium' || radius === 'large')\n radius = 'full';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { className: \"flex\", accentColor: color, hasBackground: false, children: _jsxs(Text, { as: \"label\", className: cn('flex items-center', SwitchLabelVariants({ size: size, scaling: scaling })), children: [_jsx(SwitchTheme, __assign({ ref: forwardedRef }, switchProps, { variant: appearance, radius: radius, size: sizeTheme, color: color, className: cn(toggleSwitchVariants({ scaling: scaling, radius: radius, size: size }), className), \"aria-label\": \"Switch\" })), children] }) }));\n});\nToggleSwitch.displayName = 'ToggleSwitch';\nexport default ToggleSwitch;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","toggleSwitchVariants","cva","variants","scaling","scalingVariants","radius","radiusVariants","size","small","medium","large","defaultVariants","SwitchLabelVariants","ToggleSwitch","React","forwardRef","_a","forwardedRef","className","_b","color","_c","appearance","tabIndex","children","switchProps","sizeTheme","_jsx","Theme","accentColor","hasBackground","_jsxs","Text","as","cn","SwitchTheme","ref","variant","displayName"],"mappings":"uVAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAuBC,EAAI,GAAI,CAC/BC,SAAU,CACNC,QAASvB,EAAS,CAAE,EAAEwB,GACtBC,OAAQzB,EAAS,CAAA,EAAI0B,EAAqB,MAC1CC,KAAM,CACFC,MAAO,oBACPC,OAAQ,oBACRC,MAAO,sBAGfC,gBAAiB,CACbN,OAAQ,OACRE,KAAM,YAGVK,EAAsBX,EAAI,4EAA6E,CACvGC,SAAU,CACNK,KAAM,CACFC,MAAO,gBACPC,OAAQ,gBACRC,MAAO,mBAEXP,QAASvB,EAAS,CAAE,EAAEwB,IAE1BO,gBAAiB,CACbJ,KAAM,SACNJ,QAAS,UAGNU,EAAeC,EAAMC,YAAW,SAAUC,EAAIC,GAClD,IAACC,EAAYF,EAAGE,UAAWC,EAAKH,EAAGI,MAAOA,OAAe,IAAPD,EAAgB,MAAQA,EAAIhB,EAAUa,EAAGb,QAASI,EAAOS,EAAGT,KAAMc,EAAKL,EAAGM,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIhB,EAASW,EAAGX,OAAmBW,EAAGO,SAAU,IAAAC,EAAWR,EAAGQ,SAAUC,EAAc9B,EAAOqB,EAAI,CAAC,YAAa,QAAS,UAAW,OAAQ,aAAc,SAAU,WAAY,aACpV,WAAXX,GAAkC,UAAXA,IACvBA,EAAS,QACb,IAAIqB,EAAY,IAKhB,MAJa,UAATnB,IACAmB,EAAY,KACH,UAATnB,IACAmB,EAAY,KACRC,EAAKC,EAAO,CAAEV,UAAW,OAAQW,YAAaT,EAAOU,eAAe,EAAON,SAAUO,EAAMC,EAAM,CAAEC,GAAI,QAASf,UAAWgB,EAAG,oBAAqBtB,EAAoB,CAAEL,KAAMA,EAAMJ,QAASA,KAAaqB,SAAU,CAACG,EAAKQ,EAAavD,EAAS,CAAEwD,IAAKnB,GAAgBQ,EAAa,CAAEY,QAASf,EAAYjB,OAAQA,EAAQE,KAAMmB,EAAWN,MAAOA,EAAOF,UAAWgB,EAAGlC,EAAqB,CAAEG,QAASA,EAASE,OAAQA,EAAQE,KAAMA,IAASW,GAAY,aAAc,YAAcM,MACre,IACAX,EAAayB,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -12,7 +12,7 @@ export interface TooltipProps extends React.InputHTMLAttributes<HTMLInputElement
12
12
  }
13
13
  declare const tooltipVariants: (props?: ({
14
14
  weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
15
- radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
15
+ radius?: "small" | "none" | "large" | "medium" | "full" | null | undefined;
16
16
  color?: string | null | undefined;
17
17
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
18
18
  declare const Tooltip: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipProps & TooltipProps & React.RefAttributes<never>>;
@@ -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++) {
@@ -21,12 +22,12 @@ var __rest = (this && this.__rest) || function (s, e) {
21
22
  return t;
22
23
  };
23
24
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- // your-tooltip.jsx
25
25
  import React from 'react';
26
26
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
27
27
  import { cva } from 'class-variance-authority';
28
28
  import { cn } from '../../../lib/utils/utils';
29
29
  import { primaryColorStyle, radiusVariants, weightVariants } from '../../../lib/constants';
30
+ import { useTheme } from '../../../lib/theme';
30
31
  var tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]', {
31
32
  variants: {
32
33
  weight: __assign({}, weightVariants),
@@ -35,15 +36,19 @@ var tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:te
35
36
  },
36
37
  });
37
38
  var Tooltip = React.forwardRef(function (_a, ref) {
38
- var content = _a.content, weight = _a.weight, color = _a.color, radius = _a.radius, children = _a.children, defaultOpen = _a.defaultOpen, open = _a.open, className = _a.className, side = _a.side, onOpenChange = _a.onOpenChange, props = __rest(_a, ["content", "weight", "color", "radius", "children", "defaultOpen", "open", "className", "side", "onOpenChange"]);
39
- if (!side)
40
- side = 'top';
41
- if (radius === 'full')
42
- radius = 'large';
43
- var arrowColor = color
44
- ? "fill-".concat(color, "-9 dark:fill-").concat(color, "Dark-9")
39
+ var content = _a.content, weight = _a.weight, color = _a.color, radius = _a.radius, children = _a.children, defaultOpen = _a.defaultOpen, open = _a.open, className = _a.className, _b = _a.side, side = _b === void 0 ? 'top' : _b, onOpenChange = _a.onOpenChange, props = __rest(_a, ["content", "weight", "color", "radius", "children", "defaultOpen", "open", "className", "side", "onOpenChange"]);
40
+ var theme = useTheme().theme;
41
+ var contextValue = {
42
+ radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
43
+ color: color !== null && color !== void 0 ? color : theme.themeColor,
44
+ weight: weight !== null && weight !== void 0 ? weight : theme.themeWeight,
45
+ };
46
+ if (contextValue.radius === 'full')
47
+ contextValue.radius = 'large';
48
+ var arrowColor = contextValue.color
49
+ ? "fill-".concat(contextValue.color, "-9 dark:fill-").concat(contextValue.color, "Dark-9")
45
50
  : 'fill-slate-12 dark:fill-slateDark-12';
46
- return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: "cursor-pointer text-slate-12 dark:text-slateDark-12", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: "center" }, props, { side: side, className: cn('mr-2', tooltipVariants({ weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));
51
+ return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: "cursor-pointer text-slate-12 dark:text-slateDark-12", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: "center" }, props, { side: side, className: cn('mr-2', tooltipVariants(contextValue), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));
47
52
  });
48
53
  Tooltip.displayName = 'Tooltip';
49
54
  export default Tooltip;
@@ -1,2 +1,3 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import a from"react";import*as r from"@radix-ui/react-tooltip";import{cva as n}from"class-variance-authority";import{cn as o}from"../../utils/utils.mjs";import{weightVariants as l,radiusVariants as i,primaryColorStyle as d}from"../../constants.mjs";var s=function(){return s=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},s.apply(this,arguments)},p=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(a[r[n]]=e[r[n]])}return a},c=n("bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]",{variants:{weight:s({},l),radius:s({},i["extra-large"]),color:d()}}),f=a.forwardRef((function(a,n){var l=a.content,i=a.weight,d=a.color,f=a.radius,m=a.children,h=a.defaultOpen,u=a.open,g=a.className,x=a.side,y=a.onOpenChange,O=p(a,["content","weight","color","radius","children","defaultOpen","open","className","side","onOpenChange"]);x||(x="top"),"full"===f&&(f="large");var _=d?"fill-".concat(d,"-9 dark:fill-").concat(d,"Dark-9"):"fill-slate-12 dark:fill-slateDark-12";return e(r.Provider,{children:t(r.Root,{open:u,defaultOpen:h,onOpenChange:y,children:[e(r.Trigger,{className:"cursor-pointer text-slate-12 dark:text-slateDark-12",asChild:!0,children:m}),t(r.Content,s({align:"center"},O,{side:x,className:o("mr-2",c({weight:i,radius:f,color:d}),g),sideOffset:5,children:[l,e(r.Arrow,{width:11,height:5,className:_})]}))]})})}));f.displayName="Tooltip";export{f as default};
1
+ "use client";
2
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import a from"react";import*as r from"@radix-ui/react-tooltip";import{cva as o}from"class-variance-authority";import{cn as n}from"../../utils/utils.mjs";import{weightVariants as l,radiusVariants as i,primaryColorStyle as d}from"../../constants.mjs";import{useTheme as s}from"../../theme/ThemeProvider.mjs";var p=function(){return p=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)},c=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(a[r[o]]=e[r[o]])}return a},m=o("bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]",{variants:{weight:p({},l),radius:p({},i["extra-large"]),color:d()}}),f=a.forwardRef((function(a,o){var l=a.content,i=a.weight,d=a.color,f=a.radius,h=a.children,u=a.defaultOpen,g=a.open,x=a.className,y=a.side,O=void 0===y?"top":y,_=a.onOpenChange,w=c(a,["content","weight","color","radius","children","defaultOpen","open","className","side","onOpenChange"]),v=s().theme,b={radius:null!=f?f:v.themeRadius,color:null!=d?d:v.themeColor,weight:null!=i?i:v.themeWeight};"full"===b.radius&&(b.radius="large");var j=b.color?"fill-".concat(b.color,"-9 dark:fill-").concat(b.color,"Dark-9"):"fill-slate-12 dark:fill-slateDark-12";return e(r.Provider,{children:t(r.Root,{open:g,defaultOpen:u,onOpenChange:_,children:[e(r.Trigger,{className:"cursor-pointer text-slate-12 dark:text-slateDark-12",asChild:!0,children:h}),t(r.Content,p({align:"center"},w,{side:O,className:n("mr-2",m(b),x),sideOffset:5,children:[l,e(r.Arrow,{width:11,height:5,className:j})]}))]})})}));f.displayName="Tooltip";export{f as default};
2
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Tooltip/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n// your-tooltip.jsx\nimport React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nimport { primaryColorStyle, radiusVariants, weightVariants } from '../../../lib/constants';\nvar tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:text-slateDark-1 data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade select-none rounded-[4px] px-[9px] py-[6px] text-[12px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]', {\n variants: {\n weight: __assign({}, weightVariants),\n radius: __assign({}, radiusVariants['extra-large']),\n color: primaryColorStyle(),\n },\n});\nvar Tooltip = React.forwardRef(function (_a, ref) {\n var content = _a.content, weight = _a.weight, color = _a.color, radius = _a.radius, children = _a.children, defaultOpen = _a.defaultOpen, open = _a.open, className = _a.className, side = _a.side, onOpenChange = _a.onOpenChange, props = __rest(_a, [\"content\", \"weight\", \"color\", \"radius\", \"children\", \"defaultOpen\", \"open\", \"className\", \"side\", \"onOpenChange\"]);\n if (!side)\n side = 'top';\n if (radius === 'full')\n radius = 'large';\n var arrowColor = color\n ? \"fill-\".concat(color, \"-9 dark:fill-\").concat(color, \"Dark-9\")\n : 'fill-slate-12 dark:fill-slateDark-12';\n return (_jsx(TooltipPrimitive.Provider, { children: _jsxs(TooltipPrimitive.Root, { open: open, defaultOpen: defaultOpen, onOpenChange: onOpenChange, children: [_jsx(TooltipPrimitive.Trigger, { className: \"cursor-pointer text-slate-12 dark:text-slateDark-12\", asChild: true, children: children }), _jsxs(TooltipPrimitive.Content, __assign({ align: \"center\" }, props, { side: side, className: cn('mr-2', tooltipVariants({ weight: weight, radius: radius, color: color }), className), sideOffset: 5, children: [content, _jsx(TooltipPrimitive.Arrow, { width: 11, height: 5, className: arrowColor })] }))] }) }));\n});\nTooltip.displayName = 'Tooltip';\nexport default Tooltip;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","tooltipVariants","cva","variants","weight","weightVariants","radius","radiusVariants","color","primaryColorStyle","Tooltip","React","forwardRef","_a","ref","content","children","defaultOpen","open","className","side","onOpenChange","props","arrowColor","concat","_jsx","TooltipPrimitive","Provider","_jsxs","Root","Trigger","asChild","Content","align","cn","sideOffset","Arrow","width","height","displayName"],"mappings":"2SAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAQIiB,EAAkBC,EAAI,0hBAA2hB,CACjjBC,SAAU,CACNC,OAAQvB,EAAS,CAAE,EAAEwB,GACrBC,OAAQzB,EAAS,CAAA,EAAI0B,EAAe,gBACpCC,MAAOC,OAGXC,EAAUC,EAAMC,YAAW,SAAUC,EAAIC,GACzC,IAAIC,EAAUF,EAAGE,QAASX,EAASS,EAAGT,OAAQI,EAAQK,EAAGL,MAAOF,EAASO,EAAGP,OAAQU,EAAWH,EAAGG,SAAUC,EAAcJ,EAAGI,YAAaC,EAAOL,EAAGK,KAAMC,EAAYN,EAAGM,UAAWC,EAAOP,EAAGO,KAAMC,EAAeR,EAAGQ,aAAcC,EAAQ1B,EAAOiB,EAAI,CAAC,UAAW,SAAU,QAAS,SAAU,WAAY,cAAe,OAAQ,YAAa,OAAQ,iBACnVO,IACDA,EAAO,OACI,SAAXd,IACAA,EAAS,SACb,IAAIiB,EAAaf,EACX,QAAQgB,OAAOhB,EAAO,iBAAiBgB,OAAOhB,EAAO,UACrD,uCACN,OAAQiB,EAAKC,EAAiBC,SAAU,CAAEX,SAAUY,EAAMF,EAAiBG,KAAM,CAAEX,KAAMA,EAAMD,YAAaA,EAAaI,aAAcA,EAAcL,SAAU,CAACS,EAAKC,EAAiBI,QAAS,CAAEX,UAAW,sDAAuDY,SAAS,EAAMf,SAAUA,IAAaY,EAAMF,EAAiBM,QAASnD,EAAS,CAAEoD,MAAO,UAAYX,EAAO,CAAEF,KAAMA,EAAMD,UAAWe,EAAG,OAAQjC,EAAgB,CAAEG,OAAQA,EAAQE,OAAQA,EAAQE,MAAOA,IAAUW,GAAYgB,WAAY,EAAGnB,SAAU,CAACD,EAASU,EAAKC,EAAiBU,MAAO,CAAEC,MAAO,GAAIC,OAAQ,EAAGnB,UAAWI,YACxkB,IACAb,EAAQ6B,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -3,6 +3,7 @@ export { default as AlertDialog } from './AlertDialog';
3
3
  export { default as AspectRatio } from './AspectRatio';
4
4
  export { default as Avatar } from './Avatar';
5
5
  export { default as Badge } from './Badge';
6
+ export { default as Breadcrumb } from './Breadcrumb';
6
7
  export { default as Button } from './Button';
7
8
  export { default as Callout } from './Callout';
8
9
  export { default as Card } from './Card';
@@ -10,9 +11,13 @@ export { default as Checkbox } from './Checkbox';
10
11
  export { default as CheckboxCard } from './CheckboxCard';
11
12
  export { default as CheckboxGroup } from './CheckboxGroup';
12
13
  export { default as ContextMenu } from './ContextMenu';
14
+ export { default as Collapsible } from './Collapsible';
13
15
  export { default as DataList } from './DataList';
14
16
  export { default as Dialog } from './Dialog';
15
17
  export { default as DropdownMenu } from './DropdownMenu';
18
+ export { default as Editor } from './Editor';
19
+ export { default as Footer } from './Footer';
20
+ export { default as Gnb } from './Gnb';
16
21
  export { default as HoverCard } from './HoverCard';
17
22
  export { default as IconButton } from './IconButton';
18
23
  export { default as Inset } from './Inset';
@@ -48,3 +53,5 @@ export { default as RadarChart } from './RadarChart';
48
53
  export { default as LineChart } from './LineChart';
49
54
  export { default as PieChart } from './PieChart';
50
55
  export { default as DoughnutChart } from './DoughnutChart';
56
+ export { default as Grid } from './Grid';
57
+ export { useGrid } from './Grid/useGrid';
@@ -4,6 +4,7 @@ export { default as AlertDialog } from './AlertDialog';
4
4
  export { default as AspectRatio } from './AspectRatio';
5
5
  export { default as Avatar } from './Avatar';
6
6
  export { default as Badge } from './Badge';
7
+ export { default as Breadcrumb } from './Breadcrumb';
7
8
  export { default as Button } from './Button';
8
9
  export { default as Callout } from './Callout';
9
10
  export { default as Card } from './Card';
@@ -11,9 +12,13 @@ export { default as Checkbox } from './Checkbox';
11
12
  export { default as CheckboxCard } from './CheckboxCard';
12
13
  export { default as CheckboxGroup } from './CheckboxGroup';
13
14
  export { default as ContextMenu } from './ContextMenu';
15
+ export { default as Collapsible } from './Collapsible';
14
16
  export { default as DataList } from './DataList';
15
17
  export { default as Dialog } from './Dialog';
16
18
  export { default as DropdownMenu } from './DropdownMenu';
19
+ export { default as Editor } from './Editor';
20
+ export { default as Footer } from './Footer';
21
+ export { default as Gnb } from './Gnb';
17
22
  export { default as HoverCard } from './HoverCard';
18
23
  export { default as IconButton } from './IconButton';
19
24
  export { default as Inset } from './Inset';
@@ -50,3 +55,6 @@ export { default as RadarChart } from './RadarChart';
50
55
  export { default as LineChart } from './LineChart';
51
56
  export { default as PieChart } from './PieChart';
52
57
  export { default as DoughnutChart } from './DoughnutChart';
58
+ //Grid
59
+ export { default as Grid } from './Grid';
60
+ export { useGrid } from './Grid/useGrid';
@@ -220,7 +220,6 @@ export declare const commonArgTypes: {
220
220
  };
221
221
  };
222
222
  };
223
- export declare const chartColorStyle: () => Record<string, string>;
224
223
  export declare const chartTitleArgTypes: {
225
224
  title: {
226
225
  description: string;
@@ -647,9 +646,9 @@ export declare const blackText: string[];
647
646
  export declare const primaryColorStyle: () => Record<string, string>;
648
647
  export declare const bgColorStyle: () => Record<string, string>;
649
648
  export declare const textColorStyle: () => Record<string, string>;
650
- export declare const appearanceStyle: (type: string, color: string, isClickable?: boolean) => string;
651
- export declare const toggleAppearanceStyle: (type: string, color: string, isClickable?: boolean, stateOn?: string) => string;
652
- export declare const menuItemAppearanceStyle: (type: "solid" | "soft" | "ghost", color: string) => string;
653
- export declare const switchCheckedApperanceStyle: (type: string, color: string) => string;
654
- export declare const checkboxAppearanceStyle: (type: string, color: string, indeterminate: boolean) => string;
655
- export declare const selectAppearanceStyle: (type: "classic" | "surface" | "soft" | "ghost", color: string) => string;
649
+ export declare const borderColorStyle: () => Record<string, string>;
650
+ export declare const appearanceStyle: (type: string, color?: string, isClickable?: boolean) => string;
651
+ export declare const toggleAppearanceStyle: (type: string, color?: string, isClickable?: boolean, stateOn?: string) => string;
652
+ export declare const menuItemAppearanceStyle: (type: 'solid' | 'soft' | 'ghost', color?: string) => string;
653
+ export declare const checkboxAppearanceStyle: (type: string, color: string | undefined, indeterminate: boolean) => string;
654
+ export declare const selectAppearanceStyle: (type: 'classic' | 'surface' | 'soft' | 'ghost', color: string) => string;
@@ -1,5 +1,4 @@
1
- import { ColorStyle, DarkColorStyle, colorOptions, chartColorOptions } from '../lib/color/constants';
2
- import * as lightColors from '../lib/color/light';
1
+ import { ColorStyle, DarkColorStyle, MAIN_COLOR, colorOptions } from '../lib/color/constants';
3
2
  export var radiusOptions = ['none', 'small', 'medium', 'large', 'full'];
4
3
  export var typoSizeOptions = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
5
4
  export var scalingOptions = ['90%', '95%', '100%', '105%', '110%'];
@@ -191,14 +190,6 @@ export var commonArgTypes = {
191
190
  },
192
191
  },
193
192
  };
194
- export var chartColorStyle = function () {
195
- var colorValues = lightColors;
196
- var colorMappings = {};
197
- chartColorOptions.forEach(function (color) {
198
- colorMappings[color] = colorValues[color][9];
199
- });
200
- return colorMappings;
201
- };
202
193
  export var chartTitleArgTypes = {
203
194
  title: {
204
195
  description: '차트 타이틀',
@@ -515,6 +506,14 @@ export var textColorStyle = function () {
515
506
  }
516
507
  return color;
517
508
  };
509
+ export var borderColorStyle = function () {
510
+ var color = {};
511
+ for (var i in ColorStyle) {
512
+ var darkColor = "".concat(i, "Dark");
513
+ color[i] = "border-".concat(ColorStyle[i], " dark:border-").concat(DarkColorStyle[darkColor]);
514
+ }
515
+ return color;
516
+ };
518
517
  var makeClassName = function (type, isClickable) {
519
518
  var className = '';
520
519
  className += "".concat(type.light.default, " ").concat(type.dark.default);
@@ -524,6 +523,7 @@ var makeClassName = function (type, isClickable) {
524
523
  return className;
525
524
  };
526
525
  export var appearanceStyle = function (type, color, isClickable) {
526
+ if (color === void 0) { color = MAIN_COLOR; }
527
527
  if (isClickable === void 0) { isClickable = true; }
528
528
  var darkColor = "".concat(color, "Dark");
529
529
  var classic = {
@@ -628,6 +628,7 @@ export var appearanceStyle = function (type, color, isClickable) {
628
628
  }
629
629
  };
630
630
  export var toggleAppearanceStyle = function (type, color, isClickable, stateOn) {
631
+ if (color === void 0) { color = MAIN_COLOR; }
631
632
  if (isClickable === void 0) { isClickable = true; }
632
633
  if (stateOn === void 0) { stateOn = ''; }
633
634
  var darkColor = "".concat(color, "Dark");
@@ -640,7 +641,7 @@ export var toggleAppearanceStyle = function (type, color, isClickable, stateOn)
640
641
  },
641
642
  dark: {
642
643
  default: "dark:bg-".concat(darkColor, "-9 dark:border-").concat(darkColor, "-9 dark:text-slateDark-1"),
643
- hover: "dark:hover:bg-".concat(darkColor, "-10 dark:hover:border-").concat(darkColor, "-9 dark:hover:text-slateDark-1 ").concat(stateOn, "dark:hover:bg-").concat(darkColor, "-10 ").concat(stateOn, "dark:hover:border-").concat(darkColor, "-9 ").concat(stateOn, "dark:hover:text-slateDark-1"),
644
+ hover: "dark:hover:bg-".concat(darkColor, "-10 dark:hover:border-").concat(darkColor, "-9 dark:hover:text-slateDark-1 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "-10 dark:").concat(stateOn, "hover:border-").concat(darkColor, "-9 dark:").concat(stateOn, "hover:text-slateDark-1"),
644
645
  active: "dark:".concat(stateOn, "bg-").concat(darkColor, "-9 dark:").concat(stateOn, "border-").concat(darkColor, "-9 dark:").concat(stateOn, "text-slateDark-1"),
645
646
  disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8",
646
647
  },
@@ -654,7 +655,7 @@ export var toggleAppearanceStyle = function (type, color, isClickable, stateOn)
654
655
  },
655
656
  dark: {
656
657
  default: "dark:bg-".concat(darkColor, "-9 dark:text-slateDark-1"),
657
- hover: "dark:hover:bg-".concat(darkColor, "-10 dark:hover:text-slateDark-1 ").concat(stateOn, "dark:hover:bg-").concat(darkColor, "-10 ").concat(stateOn, "dark:hover:text-slateDark-1"),
658
+ hover: "dark:hover:bg-".concat(darkColor, "-10 dark:hover:text-slateDark-1 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "-10 dark:").concat(stateOn, "hover:text-slateDark-1"),
658
659
  active: "dark:".concat(stateOn, "bg-").concat(darkColor, "-10 dark:").concat(stateOn, "text-slateDark-1 dark:").concat(stateOn, "opacity-[.92]"),
659
660
  disable: "dark:disabled:bg-slateDarkA-3 disabled:text-slateDarkA-8",
660
661
  },
@@ -668,7 +669,7 @@ export var toggleAppearanceStyle = function (type, color, isClickable, stateOn)
668
669
  },
669
670
  dark: {
670
671
  default: "dark:bg-".concat(darkColor, "A-3 dark:text-").concat(darkColor, "A-11"),
671
- hover: "dark:hover:bg-".concat(darkColor, "A-4 dark:hover:text-").concat(darkColor, "A-11 ").concat(stateOn, "dark:hover:bg-").concat(darkColor, "A-4 ").concat(stateOn, "dark:hover:text-").concat(darkColor, "A-11"),
672
+ hover: "dark:hover:bg-".concat(darkColor, "A-4 dark:hover:text-").concat(darkColor, "A-11 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "A-4 dark:").concat(stateOn, "hover:text-").concat(darkColor, "A-11"),
672
673
  active: "dark:".concat(stateOn, "bg-").concat(darkColor, "A-5 dark:").concat(stateOn, "text-").concat(darkColor, "A-11 dark:").concat(stateOn, "opacity-[.92]"),
673
674
  disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8",
674
675
  },
@@ -682,7 +683,7 @@ export var toggleAppearanceStyle = function (type, color, isClickable, stateOn)
682
683
  },
683
684
  dark: {
684
685
  default: "dark:bg-".concat(darkColor, "A-2 dark:border-").concat(darkColor, "A-7 dark:text-").concat(darkColor, "A-11"),
685
- hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11 ").concat(stateOn, "dark:hover:bg-").concat(darkColor, "A-2 ").concat(stateOn, "dark:hover:border-").concat(darkColor, "A-8 ").concat(stateOn, "dark:hover:text-").concat(darkColor, "A-11"),
686
+ hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "A-2 dark:").concat(stateOn, "hover:border-").concat(darkColor, "A-8 dark:").concat(stateOn, "hover:text-").concat(darkColor, "A-11"),
686
687
  active: "dark:".concat(stateOn, "bg-").concat(darkColor, "A-3 dark:").concat(stateOn, "border-").concat(darkColor, "A-8 dark:").concat(stateOn, "text-").concat(darkColor, "A-11 dark:").concat(stateOn, "opacity-[.92]"),
687
688
  disable: "dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8",
688
689
  },
@@ -696,7 +697,7 @@ export var toggleAppearanceStyle = function (type, color, isClickable, stateOn)
696
697
  },
697
698
  dark: {
698
699
  default: "dark:border-".concat(darkColor, "A-8 dark:text-").concat(darkColor, "A-11"),
699
- hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11 ").concat(stateOn, "dark:hover:bg-").concat(darkColor, "A-2 ").concat(stateOn, "dark:hover:border-").concat(darkColor, "A-8 ").concat(stateOn, "dark:hover:text-").concat(darkColor, "A-11"),
700
+ hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "A-2 dark:").concat(stateOn, "hover:border-").concat(darkColor, "A-8 dark:").concat(stateOn, "hover:text-").concat(darkColor, "A-11"),
700
701
  active: "dark:".concat(stateOn, "bg-").concat(darkColor, "A-3 dark:").concat(stateOn, "border-").concat(darkColor, "A-8 dark:").concat(stateOn, "text-").concat(darkColor, "A-11 dark:").concat(stateOn, "opacity-[.92]"),
701
702
  disable: "dark:disabled:border-slateDarkA-7 dark:disabled:text-slateDarkA-8",
702
703
  },
@@ -710,7 +711,7 @@ export var toggleAppearanceStyle = function (type, color, isClickable, stateOn)
710
711
  },
711
712
  dark: {
712
713
  default: "dark:bg-transparent dark:text-".concat(darkColor, "A-11"),
713
- hover: "dark:hover:bg-".concat(darkColor, "A-3 dark:hover:text-").concat(darkColor, "A-11 ").concat(stateOn, "dark:hover:bg-").concat(darkColor, "A-3 ").concat(stateOn, "dark:hover:text-").concat(darkColor, "A-11"),
714
+ hover: "dark:hover:bg-".concat(darkColor, "A-3 dark:hover:text-").concat(darkColor, "A-11 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "A-3 dark:").concat(stateOn, "hover:text-").concat(darkColor, "A-11"),
714
715
  active: "dark:".concat(stateOn, "bg-").concat(darkColor, "A-4 dark:").concat(stateOn, "text-").concat(darkColor, "A-11 dark:").concat(stateOn, "opacity-[.92]"),
715
716
  disable: "dark:disabled:text-slateDarkA-8",
716
717
  },
@@ -733,6 +734,7 @@ export var toggleAppearanceStyle = function (type, color, isClickable, stateOn)
733
734
  }
734
735
  };
735
736
  export var menuItemAppearanceStyle = function (type, color) {
737
+ if (color === void 0) { color = MAIN_COLOR; }
736
738
  var appearanceStyle = '';
737
739
  if (type === 'solid') {
738
740
  appearanceStyle = "hover:bg-".concat(color, "-9 dark:hover:bg-").concat(color, "Dark-9 ");
@@ -748,22 +750,8 @@ export var menuItemAppearanceStyle = function (type, color) {
748
750
  }
749
751
  return appearanceStyle;
750
752
  };
751
- export var switchCheckedApperanceStyle = function (type, color) {
752
- var softStyle = "data-[state=checked]:bg-".concat(color, "A-3 data-[state=unchecked]:bg-").concat(color, "A-2 ");
753
- var surfaceStyle = "data-[state=checked]:bg-".concat(color, "A-2 border border-solid border-").concat(color, "A-7 data-[state=unchecked]:bg-slateA-2 data-[state=unchecked]:bg-slateA-6 ");
754
- var classicStyle = "data-[state=checked]:bg-".concat(color, "-9 text-white border border-solid border-").concat(color, "-9 shadow-custom-1 shadow-custom-2 shadow-custom-3 data-[state=unchecked]:border-slate-4 data-[state=unchecked]:bg-slateA-3 data-[state=unchecked]:text-slateA-8");
755
- switch (type) {
756
- case 'classic':
757
- return classicStyle;
758
- case 'soft':
759
- return softStyle;
760
- case 'surface':
761
- return surfaceStyle;
762
- default:
763
- return '';
764
- }
765
- };
766
753
  export var checkboxAppearanceStyle = function (type, color, indeterminate) {
754
+ if (color === void 0) { color = MAIN_COLOR; }
767
755
  var darkColor = "".concat(color, "Dark");
768
756
  var surface = {
769
757
  light: {
@@ -1,2 +1,2 @@
1
- import{ColorStyle as a,DarkColorStyle as e}from"./color/constants.mjs";var t={small:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded",full:"rounded"},base:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-full"},large:{none:"rounded-none",small:"rounded",medium:"rounded-lg",large:"rounded-xl",full:"rounded-2xl"},"extra-large":{none:"rounded-none",small:"rounded",medium:"rounded-lg",large:"rounded-xl",full:"rounded-xl"},"menu-item":{none:"rounded-none",small:"rounded-[1px]",medium:"rounded-sm",large:"rounded",full:"rounded"}},c={regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},r={"90%":"scale-90","95%":"scale-95","100%":"scale-100","105%":"scale-105","110%":"scale-110"},d=["sky","mint","lime","yellow","amber","orange","white"],o=function(){var t={};for(var c in a){var r="".concat(c,"Dark");t[c]=d.includes(c)?"bg-".concat(a[c]," text-slate-12 dark:bg-").concat(e[r]," dark:text-slateDark-12"):"bg-".concat(a[c]," text-white dark:bg-").concat(e[r]," dark:text-slateDark-1")}return t},n=function(){var t={};for(var c in a){var r="".concat(c,"Dark");t[c]="bg-".concat(a[c]," dark:bg-").concat(e[r])}return t},b=function(){var t={};for(var c in a){var r="".concat(c,"Dark");t[c]="text-".concat(a[c]," dark:text-").concat(e[r])}return t},s=function(a,e){var t="";return t+="".concat(a.light.default," ").concat(a.dark.default),e&&(t+=" ".concat(a.light.hover," ").concat(a.light.active," ").concat(a.light.disable," ").concat(a.dark.hover," ").concat(a.dark.active," ").concat(a.dark.disable)),t},l=function(a,e,t){void 0===t&&(t=!0);var c="".concat(e,"Dark"),r={light:{default:"bg-".concat(e,"-9 border border-solid border-").concat(e,"-9 shadow-button-classic"),hover:"hover:bg-".concat(e,"-10 hover:border-").concat(e,"-9"),active:"active:bg-".concat(e,"-9 active:border-").concat(e,"-9"),disable:"disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(c,"-9 dark:border-").concat(c,"-9 dark:shadow-button-dark-classic"),hover:"dark:hover:bg-".concat(c,"-10 dark:hover:border-").concat(c,"-9"),active:"dark:active:bg-".concat(c,"-9 dark:active:border-").concat(c,"-9"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8"}},d={light:{default:"bg-".concat(e,"-9 border-none"),hover:"hover:bg-".concat(e,"-10 hover:border-none"),active:"active:bg-".concat(e,"-10 active:border-none active:opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(c,"-9"),hover:"dark:hover:bg-".concat(c,"-10"),active:"dark:active:bg-".concat(c,"-10 dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8"}},o={light:{default:"bg-".concat(e,"A-3 border-none text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-4 hover:border-none hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-5 active:border-none active:text-").concat(e,"A-11 active:opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(c,"A-3 dark:text-").concat(c,"A-11"),hover:"dark:hover:bg-".concat(c,"A-4 dark:hover:text-").concat(c,"A-11"),active:"dark:active:bg-".concat(c,"A-5 dark:active:text-").concat(c,"A-11 dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8"}},n={light:{default:"bg-".concat(e,"A-2 border border-solid border-").concat(e,"A-7 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-3 active:border-").concat(e,"A-8 active:text-").concat(e,"A-11 active:opacity-[.92]"),disable:"disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(c,"A-2 dark:border-").concat(c,"A-7 dark:text-").concat(c,"A-11"),hover:"dark:hover:bg-".concat(c,"A-2 dark:hover:border-").concat(c,"A-8 dark:hover:text-").concat(c,"A-11"),active:"dark:active:bg-".concat(c,"A-3 dark:active:border-").concat(c,"A-8 dark:active:text-").concat(c,"A-11 dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8"}},b={light:{default:"bg-transparent border border-solid border-".concat(e,"A-8 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-3 active:border-").concat(e,"A-8 active:text-").concat(e,"A-11"),disable:"disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8"},dark:{default:"dark:border-".concat(c,"A-8 dark:bg-transparent dark:text-").concat(c,"A-11"),hover:"dark:hover:bg-".concat(c,"A-2 dark:hover:border-").concat(c,"A-8 dark:hover:text-").concat(c,"A-11"),active:"dark:active:bg-".concat(c,"A-3 dark:active:border-").concat(c,"A-8 dark:active:text-").concat(c,"A-11 dark:active:opacity-[.92]"),disable:"dark:disabled:border-slateDarkA-7 dark:disabled:bg-transparent dark:disabled:text-slateDarkA-8 "}},l={light:{default:"bg-transparent border-none text-".concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-3 hover:border-none hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-4 active:border-none active:text-").concat(e,"A-11 active:opacity-[.92]"),disable:"disabled:bg-transparent disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-transparent dark:text-".concat(c,"A-11"),hover:"dark:hover:bg-".concat(c,"A-3 dark:hover:text-").concat(c,"A-11"),active:"dark:active:bg-".concat(c,"A-4 dark:active:text-").concat(c,"A-11 dark:active:opacity-[.92]"),disable:"dark:disabled:text-slateDarkA-8"}};switch(a){case"classic":return s(r,t);case"solid":return s(d,t);case"soft":return s(o,t);case"surface":return s(n,t);case"outline":return s(b,t);case"ghost":return s(l,t);default:return""}},k=function(a,e,t,c){void 0===t&&(t=!0),void 0===c&&(c="");var r="".concat(e,"Dark"),d={light:{default:"bg-".concat(e,"-9 border border-solid border-").concat(e,"-9 text-white shadow-button-classic"),hover:"hover:bg-".concat(e,"-10 hover:border-").concat(e,"-9 hover:text-white ").concat(c,"hover:bg-").concat(e,"-10 ").concat(c,"hover:border-").concat(e,"-9 ").concat(c,"hover:text-white"),active:"".concat(c,"bg-").concat(e,"-9 ").concat(c,"border-").concat(e,"-9 ").concat(c,"text-white"),disable:"disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(r,"-9 dark:border-").concat(r,"-9 dark:text-slateDark-1"),hover:"dark:hover:bg-".concat(r,"-10 dark:hover:border-").concat(r,"-9 dark:hover:text-slateDark-1 ").concat(c,"dark:hover:bg-").concat(r,"-10 ").concat(c,"dark:hover:border-").concat(r,"-9 ").concat(c,"dark:hover:text-slateDark-1"),active:"dark:".concat(c,"bg-").concat(r,"-9 dark:").concat(c,"border-").concat(r,"-9 dark:").concat(c,"text-slateDark-1"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8"}},o={light:{default:"bg-".concat(e,"-9 border-none text-white"),hover:"hover:bg-".concat(e,"-10 hover:border-none hover:text-white ").concat(c,"hover:bg-").concat(e,"-10 ").concat(c,"hover:border-none ").concat(c,"hover:text-white"),active:"".concat(c,"bg-").concat(e,"-10 ").concat(c,"border-none ").concat(c,"text-white ").concat(c,"opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(r,"-9 dark:text-slateDark-1"),hover:"dark:hover:bg-".concat(r,"-10 dark:hover:text-slateDark-1 ").concat(c,"dark:hover:bg-").concat(r,"-10 ").concat(c,"dark:hover:text-slateDark-1"),active:"dark:".concat(c,"bg-").concat(r,"-10 dark:").concat(c,"text-slateDark-1 dark:").concat(c,"opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 disabled:text-slateDarkA-8"}},n={light:{default:"bg-".concat(e,"A-3 border-none text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-4 hover:border-none hover:text-").concat(e,"A-11 ").concat(c,"hover:bg-").concat(e,"A-4 ").concat(c,"hover:border-none ").concat(c,"hover:text-").concat(e,"A-11"),active:"".concat(c,"bg-").concat(e,"A-5 ").concat(c,"border-none ").concat(c,"text-").concat(e,"A-11 ").concat(c,"opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(r,"A-3 dark:text-").concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-4 dark:hover:text-").concat(r,"A-11 ").concat(c,"dark:hover:bg-").concat(r,"A-4 ").concat(c,"dark:hover:text-").concat(r,"A-11"),active:"dark:".concat(c,"bg-").concat(r,"A-5 dark:").concat(c,"text-").concat(r,"A-11 dark:").concat(c,"opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8"}},b={light:{default:"bg-".concat(e,"A-2 border border-solid border-").concat(e,"A-7 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11 ").concat(c,"hover:bg-").concat(e,"A-2 ").concat(c,"hover:border-").concat(e,"A-8 ").concat(c,"hover:text-").concat(e,"A-11"),active:"".concat(c,"bg-").concat(e,"A-3 ").concat(c,"border-").concat(e,"A-8 ").concat(c,"text-").concat(e,"A-11 ").concat(c,"opacity-[.92]"),disable:"disabled:bg-slatDarkeA-2 disabled:border-slateDarkA-6 disabled:text-slateDarkA-8"},dark:{default:"dark:bg-".concat(r,"A-2 dark:border-").concat(r,"A-7 dark:text-").concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-2 dark:hover:border-").concat(r,"A-8 dark:hover:text-").concat(r,"A-11 ").concat(c,"dark:hover:bg-").concat(r,"A-2 ").concat(c,"dark:hover:border-").concat(r,"A-8 ").concat(c,"dark:hover:text-").concat(r,"A-11"),active:"dark:".concat(c,"bg-").concat(r,"A-3 dark:").concat(c,"border-").concat(r,"A-8 dark:").concat(c,"text-").concat(r,"A-11 dark:").concat(c,"opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8"}},l={light:{default:"bg-transparent border border-solid border-".concat(e,"A-8 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11 ").concat(c,"hover:bg-").concat(e,"A-2 ").concat(c,"hover:border-").concat(e,"A-8 ").concat(c,"hover:text-").concat(e,"A-11"),active:"".concat(c,"bg-").concat(e,"A-3 ").concat(c,"border-").concat(e,"A-8 ").concat(c,"text-").concat(e,"A-11"),disable:"disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8"},dark:{default:"dark:border-".concat(r,"A-8 dark:text-").concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-2 dark:hover:border-").concat(r,"A-8 dark:hover:text-").concat(r,"A-11 ").concat(c,"dark:hover:bg-").concat(r,"A-2 ").concat(c,"dark:hover:border-").concat(r,"A-8 ").concat(c,"dark:hover:text-").concat(r,"A-11"),active:"dark:".concat(c,"bg-").concat(r,"A-3 dark:").concat(c,"border-").concat(r,"A-8 dark:").concat(c,"text-").concat(r,"A-11 dark:").concat(c,"opacity-[.92]"),disable:"dark:disabled:border-slateDarkA-7 dark:disabled:text-slateDarkA-8"}},k={light:{default:"bg-transparent border-none text-".concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-3 hover:border-none hover:text-").concat(e,"A-11 ").concat(c,"hover:bg-").concat(e,"A-3 ").concat(c,"hover:border-none ").concat(c,"hover:text-").concat(e,"A-11"),active:"".concat(c,"bg-").concat(e,"A-4 ").concat(c,"border-none ").concat(c,"text-").concat(e,"A-11 ").concat(c,"opacity-[.92]"),disable:"disabled:bg-transparent disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-transparent dark:text-".concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-3 dark:hover:text-").concat(r,"A-11 ").concat(c,"dark:hover:bg-").concat(r,"A-3 ").concat(c,"dark:hover:text-").concat(r,"A-11"),active:"dark:".concat(c,"bg-").concat(r,"A-4 dark:").concat(c,"text-").concat(r,"A-11 dark:").concat(c,"opacity-[.92]"),disable:"dark:disabled:text-slateDarkA-8"}};switch(a){case"classic":return s(d,t);case"solid":return s(o,t);case"soft":return s(n,t);case"surface":return s(b,t);case"outline":return s(l,t);case"ghost":return s(k,t);default:return""}},i=function(a,e){var t="";return"solid"===a&&(t="hover:bg-".concat(e,"-9 dark:hover:bg-").concat(e,"Dark-9 "),t+=d.includes(e)?"hover:text-slateA-11 dark:hover:text-white":"hover:text-white dark:hover:text-white"),"soft"===a&&(t="hover:bg-".concat(e,"A-4 dark:hover-bg-").concat(e,"DarkA-4")),"ghost"===a&&(t="hover:bg-".concat(e,"-3 dark:hover:bg-").concat(e,"Dark-3")),t},v=function(a,e,t){var c="".concat(e,"Dark"),r={light:{default:"border data-[state=unchecked]:bg-transparent data-[state=unchecked]:border-slateA-7\n data-[state=checked]:bg-".concat(e,"-9 data-[state=checked]:border-none data-[state=checked]:text-slate-1"),hover:"hover:data-[state=unchecked]:bg-transparent hover:data-[state=unchecked]:border-slateA-8\n hover:data-[state=checked]:bg-".concat(e,"-10 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-white"),active:"active:data-[state=unchecked]:bg-transparent active:data-[state=unchecked]:border-slateA-9\n active:data-[state=checked]:bg-".concat(e,"-10 active:data-[state=checked]:border-none active:data-[state=checked]:text-white"),disable:"disabled:data-[state=unchecked]:bg-slateA-3 disabled:data-[state=unchecked]:border-slateA-6\n disabled:data-[state=checked]:bg-slateA-3 disabled:data-[state=checked]:border-slateA-6 disabled:data-[state=checked]:text-slateA-8"},dark:{default:"dark:data-[state=unchecked]:border-slateDarkA-7\n dark:data-[state=checked]:bg-".concat(c,"-9 dark:data-[state=checked]:text-#111113"),hover:"dark:hover:data-[state=unchecked]:border-slateDarkA-8\n dark:hover:data-[state=checked]:bg-".concat(c,"-10 dark:hover:data-[state=checked]:text-#111113"),active:"dark:active:data-[state=unchecked]:border-slateDarkA-9\n dark:active:data-[state=checked]:bg-".concat(c,"-10 dark:active:data-[state=checked]:text-#111113"),disable:"dark:disabled:data-[state=unchecked]:bg-slateDarkA-3 dark:disabled:data-[state=unchecked]:border-slateDarkA-6\n dark:disabled:data-[state=checked]:bg-slateDarkA-3 dark:disabled:data-[state=checked]:border-slateDarkA-6 dark:disabled:data-[state=checked]:text-slateDarkA-8"}},d={light:{default:"data-[state=unchecked]:bg-".concat(e,"A-5 data-[state=unchecked]:border-none\n data-[state=checked]:bg-").concat(e,"A-5 data-[state=checked]:border-none data-[state=checked]:text-").concat(e,"-11"),hover:"hover:data-[state=unchecked]:bg-".concat(e,"A-6 hover:data-[state=unchecked]:border-none\n hover:data-[state=checked]:bg-").concat(e,"A-6 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-").concat(e,"-11"),active:"active:data-[state=unchecked]:bg-".concat(e,"A-7 active:data-[state=unchecked]:border-none\n active:data-[state=checked]:bg-").concat(e,"A-7 active:data-[state=checked]:border-none active:data-[state=checked]:text-").concat(e,"-11"),disable:"disabled:data-[state=unchecked]:bg-slateA-3 disabled:data-[state=unchecked]:border-none\n disabled:data-[state=checked]:bg-slateA-3 disabled:data-[state=checked]:border-none disabled:data-[state=checked]:text-slateA-8"},dark:{default:"dark:data-[state=unchecked]:bg-".concat(c,"A-5\n dark:data-[state=checked]:bg-").concat(c,"A-5 dark:data-[state=checked]:text-").concat(c,"-11"),hover:"dark:hover:data-[state=unchecked]:bg-".concat(c,"A-6\n dark:hover:data-[state=checked]:bg-").concat(c,"A-6 dark:hover:data-[state=checked]:text-").concat(c,"-11"),active:"dark:active:data-[state=unchecked]:bg-".concat(c,"A-7\n dark:active:data-[state=checked]:bg-").concat(c,"A-7 dark:active:data-[state=checked]:text-").concat(c,"-11"),disable:"dark:disabled:data-[state=unchecked]:bg-slateDarkA-3\n dark:disabled:data-[state=checked]:bg-slateDarkA-3 dark:disabled:data-[state=checked]:text-slateDarkA-8"}},o={light:{default:"border bg-".concat(e,"A-2 border-").concat(e,"A-7 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-3 active:border-").concat(e,"A-8 active:text-").concat(e,"A-11"),disable:"disabled:bg-slateA-3 disabled:border-slateA-6 disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(c,"A-2 dark:border-").concat(c,"A-7 dark:text-").concat(c,"A-11"),hover:"dark:hover:bg-".concat(c,"A-2 dark:hover:border-").concat(c,"A-8 dark:hover:text-").concat(c,"A-11"),active:"dark:active:bg-".concat(c,"A-3 dark:active:border-").concat(c,"A-8 dark:active:text-").concat(c,"A-11"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8"}},n={light:{default:"border bg-transparent border-".concat(e,"A-6 text-").concat(e,"A-11"),hover:"hover:bg-transparent hover:border-".concat(e,"A-6 hover:text-").concat(e,"A-11"),active:"active:bg-transparent active:border-".concat(e,"A-6 active:text-").concat(e,"A-11"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:border-".concat(c,"A-6 dark:text-").concat(c,"A-11"),hover:"dark:hover:border-".concat(c,"A-6 dark:hover:text-").concat(c,"A-11"),active:"dark:active:border-".concat(c,"A-6 dark:active:text-").concat(c,"A-11"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8"}};switch(a){case"classic":return t?s(o,!0):"".concat(s(r,!0)," data-[state=checked]:shadow-checkbox-classic data-[state=unchecked]:shadow-checkbox-classic\n dark:data-[state=checked]:shadow-checkbox-classic dark:data-[state=unchecked]:shadow-checkbox-classic");case"soft":return s(t?n:d,!0);case"surface":return s(t?o:r,!0);default:return s(r,!0)}},h=function(a,e){var t="".concat(e,"Dark"),c={light:{default:"bg-[#FFFFFF] border border-slateA-7 data-placeholder:text-slateA-10 text-slateA-12",hover:"hover:bg-[#FFFFFF] hover:border hover:border-slateA-8 hover:text-slateA-10",active:"active:bg-".concat(e,"A-3 active:border-").concat(e,"A-8 active:text-slateA-10 active:opacity-[.92]"),disable:"disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8"},dark:{default:"dark:bg-[#111113] dark:border dark:data-placeholder:border-slateDarkA-7 dark:data-placeholder:text-slateDarkA-9 dark:border-slateDarkA-7 dark:text-slateDarkA-12",hover:"dark:hover:bg-[#111113] dark:hover:border dark:hover:border-slateDarkA-8 dark:hover:text-slateDarkA-10",active:"dark:active:bg-".concat(t,"A-3 dark:active:border dark:active:border-").concat(t,"A-8 dark:active:text-slateDarkA-10 dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-2 dark:disabled:border dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8"}},r={light:{default:"bg-".concat(e,"A-3 border-none data-placeholder:text-").concat(e,"A-12/[.5] text-").concat(e,"A-12"),hover:"hover:bg-".concat(e,"A-4 hover:border-none hover:text-").concat(e,"A-12/[.5]"),active:"active:bg-".concat(e,"A-5 active:border-none active:text-").concat(e,"A-12/[.5] active:opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(t,"A-3 dark:border-none dark:data-placeholder:text-").concat(t,"A-12/[.5] dark:text-").concat(t,"A-12 "),hover:"dark:hover:bg-".concat(t,"A-4 dark:hover:border-none dark:hover:text-").concat(t,"A-12/[.5]"),active:"dark:active:bg-".concat(t,"A-5 dark:active:border-none dark:active:text-").concat(t,"A-12/[.5] dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-none dark:disabled:text-slateDarkA-8"}},d={light:{default:"bg-transparent border-none data-placeholder:text-".concat(e,"A-12/[.5] text-").concat(e,"A-12"),hover:"hover:bg-".concat(e,"A-3 hover:border-none hover:text-").concat(e,"A-1/[.5]"),active:"active:bg-".concat(e,"A-4 active:border-none active:text-").concat(e,"A-12/[.5] active:opacity-[.92]"),disable:"disabled:bg-transparent disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-transparent dark:border-none dark:data-placeholder:text-".concat(t,"A-12/[.5] dark:text-").concat(t,"A-12"),hover:"dark:hover:bg-".concat(t,"A-3 dark:hover:border-none dark:hover:text-").concat(t,"A-12/[.5]"),active:"dark:active:bg-".concat(t,"A-4 dark:active:border-none dark:active:text-").concat(t,"A-12/[.5] dark:active:opacity-[.92]"),disable:"dark:disabled:text-slateDarkA-8 dark:disabled:border-none"}},o=function(a){var e="";return e+="".concat(a.light.default," ").concat(a.dark.default," ").concat(a.light.hover," ").concat(a.light.active," ").concat(a.light.disable," ").concat(a.dark.hover," ").concat(a.dark.active," ").concat(a.dark.disable)};switch(a){case"classic":return o({light:{default:"bg-slateA-2 border border-slate-4 data-placeholder:text-slateA-10 text-slateA-12",hover:"hover:bg-slateA-3 hover:border hover:border-slate-4 hover:text-slateA-10",active:"active:bg-slateA-4 active:border active:border-slate-6 active:text-slateA-10",disable:"disabled:bg-slateA-3 disabled:border disabled:border-slate-4 disabled:text-slateA-8"},dark:{default:"dark:bg-slateDarkA-2 dark:border-slateDark-4 dark:data-placeholder:text-slateDarkA-10 dark:text-slateDarkA-12",hover:"dark:hover:bg-slateDarkA-3 dark:hover:border-slateDark-4 dark:hover:text-slateDarkA-10",active:"dark:active:bg-slateDarkA-4 dark:active:border-slateDark-6 dark:active:text-slateDarkA-10",disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8"}});case"soft":return o(r);case"surface":return o(c);case"ghost":return o(d);default:return""}};export{l as appearanceStyle,n as bgColorStyle,d as blackText,v as checkboxAppearanceStyle,i as menuItemAppearanceStyle,o as primaryColorStyle,t as radiusVariants,r as scalingVariants,h as selectAppearanceStyle,b as textColorStyle,k as toggleAppearanceStyle,c as weightVariants};
1
+ import{ColorStyle as a,DarkColorStyle as e,MAIN_COLOR as t}from"./color/constants.mjs";var c={small:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded",full:"rounded"},base:{none:"rounded-none",small:"rounded-[3px]",medium:"rounded",large:"rounded-md",full:"rounded-full"},large:{none:"rounded-none",small:"rounded",medium:"rounded-lg",large:"rounded-xl",full:"rounded-2xl"},"extra-large":{none:"rounded-none",small:"rounded",medium:"rounded-lg",large:"rounded-xl",full:"rounded-xl"},"menu-item":{none:"rounded-none",small:"rounded-[1px]",medium:"rounded-sm",large:"rounded",full:"rounded"}},r={regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},d={"90%":"scale-90","95%":"scale-95","100%":"scale-100","105%":"scale-105","110%":"scale-110"},o=["sky","mint","lime","yellow","amber","orange","white"],n=function(){var t={};for(var c in a){var r="".concat(c,"Dark");t[c]=o.includes(c)?"bg-".concat(a[c]," text-slate-12 dark:bg-").concat(e[r]," dark:text-slateDark-12"):"bg-".concat(a[c]," text-white dark:bg-").concat(e[r]," dark:text-slateDark-1")}return t},b=function(){var t={};for(var c in a){var r="".concat(c,"Dark");t[c]="bg-".concat(a[c]," dark:bg-").concat(e[r])}return t},s=function(){var t={};for(var c in a){var r="".concat(c,"Dark");t[c]="text-".concat(a[c]," dark:text-").concat(e[r])}return t},l=function(a,e){var t="";return t+="".concat(a.light.default," ").concat(a.dark.default),e&&(t+=" ".concat(a.light.hover," ").concat(a.light.active," ").concat(a.light.disable," ").concat(a.dark.hover," ").concat(a.dark.active," ").concat(a.dark.disable)),t},k=function(a,e,c){void 0===e&&(e=t),void 0===c&&(c=!0);var r="".concat(e,"Dark"),d={light:{default:"bg-".concat(e,"-9 border border-solid border-").concat(e,"-9 shadow-button-classic"),hover:"hover:bg-".concat(e,"-10 hover:border-").concat(e,"-9"),active:"active:bg-".concat(e,"-9 active:border-").concat(e,"-9"),disable:"disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(r,"-9 dark:border-").concat(r,"-9 dark:shadow-button-dark-classic"),hover:"dark:hover:bg-".concat(r,"-10 dark:hover:border-").concat(r,"-9"),active:"dark:active:bg-".concat(r,"-9 dark:active:border-").concat(r,"-9"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8"}},o={light:{default:"bg-".concat(e,"-9 border-none"),hover:"hover:bg-".concat(e,"-10 hover:border-none"),active:"active:bg-".concat(e,"-10 active:border-none active:opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(r,"-9"),hover:"dark:hover:bg-".concat(r,"-10"),active:"dark:active:bg-".concat(r,"-10 dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8"}},n={light:{default:"bg-".concat(e,"A-3 border-none text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-4 hover:border-none hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-5 active:border-none active:text-").concat(e,"A-11 active:opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(r,"A-3 dark:text-").concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-4 dark:hover:text-").concat(r,"A-11"),active:"dark:active:bg-".concat(r,"A-5 dark:active:text-").concat(r,"A-11 dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8"}},b={light:{default:"bg-".concat(e,"A-2 border border-solid border-").concat(e,"A-7 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-3 active:border-").concat(e,"A-8 active:text-").concat(e,"A-11 active:opacity-[.92]"),disable:"disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(r,"A-2 dark:border-").concat(r,"A-7 dark:text-").concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-2 dark:hover:border-").concat(r,"A-8 dark:hover:text-").concat(r,"A-11"),active:"dark:active:bg-".concat(r,"A-3 dark:active:border-").concat(r,"A-8 dark:active:text-").concat(r,"A-11 dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8"}},s={light:{default:"bg-transparent border border-solid border-".concat(e,"A-8 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-3 active:border-").concat(e,"A-8 active:text-").concat(e,"A-11"),disable:"disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8"},dark:{default:"dark:border-".concat(r,"A-8 dark:bg-transparent dark:text-").concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-2 dark:hover:border-").concat(r,"A-8 dark:hover:text-").concat(r,"A-11"),active:"dark:active:bg-".concat(r,"A-3 dark:active:border-").concat(r,"A-8 dark:active:text-").concat(r,"A-11 dark:active:opacity-[.92]"),disable:"dark:disabled:border-slateDarkA-7 dark:disabled:bg-transparent dark:disabled:text-slateDarkA-8 "}},k={light:{default:"bg-transparent border-none text-".concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-3 hover:border-none hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-4 active:border-none active:text-").concat(e,"A-11 active:opacity-[.92]"),disable:"disabled:bg-transparent disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-transparent dark:text-".concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-3 dark:hover:text-").concat(r,"A-11"),active:"dark:active:bg-".concat(r,"A-4 dark:active:text-").concat(r,"A-11 dark:active:opacity-[.92]"),disable:"dark:disabled:text-slateDarkA-8"}};switch(a){case"classic":return l(d,c);case"solid":return l(o,c);case"soft":return l(n,c);case"surface":return l(b,c);case"outline":return l(s,c);case"ghost":return l(k,c);default:return""}},i=function(a,e,c,r){void 0===e&&(e=t),void 0===c&&(c=!0),void 0===r&&(r="");var d="".concat(e,"Dark"),o={light:{default:"bg-".concat(e,"-9 border border-solid border-").concat(e,"-9 text-white shadow-button-classic"),hover:"hover:bg-".concat(e,"-10 hover:border-").concat(e,"-9 hover:text-white ").concat(r,"hover:bg-").concat(e,"-10 ").concat(r,"hover:border-").concat(e,"-9 ").concat(r,"hover:text-white"),active:"".concat(r,"bg-").concat(e,"-9 ").concat(r,"border-").concat(e,"-9 ").concat(r,"text-white"),disable:"disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(d,"-9 dark:border-").concat(d,"-9 dark:text-slateDark-1"),hover:"dark:hover:bg-".concat(d,"-10 dark:hover:border-").concat(d,"-9 dark:hover:text-slateDark-1 dark:").concat(r,"hover:bg-").concat(d,"-10 dark:").concat(r,"hover:border-").concat(d,"-9 dark:").concat(r,"hover:text-slateDark-1"),active:"dark:".concat(r,"bg-").concat(d,"-9 dark:").concat(r,"border-").concat(d,"-9 dark:").concat(r,"text-slateDark-1"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8"}},n={light:{default:"bg-".concat(e,"-9 border-none text-white"),hover:"hover:bg-".concat(e,"-10 hover:border-none hover:text-white ").concat(r,"hover:bg-").concat(e,"-10 ").concat(r,"hover:border-none ").concat(r,"hover:text-white"),active:"".concat(r,"bg-").concat(e,"-10 ").concat(r,"border-none ").concat(r,"text-white ").concat(r,"opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(d,"-9 dark:text-slateDark-1"),hover:"dark:hover:bg-".concat(d,"-10 dark:hover:text-slateDark-1 dark:").concat(r,"hover:bg-").concat(d,"-10 dark:").concat(r,"hover:text-slateDark-1"),active:"dark:".concat(r,"bg-").concat(d,"-10 dark:").concat(r,"text-slateDark-1 dark:").concat(r,"opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 disabled:text-slateDarkA-8"}},b={light:{default:"bg-".concat(e,"A-3 border-none text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-4 hover:border-none hover:text-").concat(e,"A-11 ").concat(r,"hover:bg-").concat(e,"A-4 ").concat(r,"hover:border-none ").concat(r,"hover:text-").concat(e,"A-11"),active:"".concat(r,"bg-").concat(e,"A-5 ").concat(r,"border-none ").concat(r,"text-").concat(e,"A-11 ").concat(r,"opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(d,"A-3 dark:text-").concat(d,"A-11"),hover:"dark:hover:bg-".concat(d,"A-4 dark:hover:text-").concat(d,"A-11 dark:").concat(r,"hover:bg-").concat(d,"A-4 dark:").concat(r,"hover:text-").concat(d,"A-11"),active:"dark:".concat(r,"bg-").concat(d,"A-5 dark:").concat(r,"text-").concat(d,"A-11 dark:").concat(r,"opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8"}},s={light:{default:"bg-".concat(e,"A-2 border border-solid border-").concat(e,"A-7 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11 ").concat(r,"hover:bg-").concat(e,"A-2 ").concat(r,"hover:border-").concat(e,"A-8 ").concat(r,"hover:text-").concat(e,"A-11"),active:"".concat(r,"bg-").concat(e,"A-3 ").concat(r,"border-").concat(e,"A-8 ").concat(r,"text-").concat(e,"A-11 ").concat(r,"opacity-[.92]"),disable:"disabled:bg-slatDarkeA-2 disabled:border-slateDarkA-6 disabled:text-slateDarkA-8"},dark:{default:"dark:bg-".concat(d,"A-2 dark:border-").concat(d,"A-7 dark:text-").concat(d,"A-11"),hover:"dark:hover:bg-".concat(d,"A-2 dark:hover:border-").concat(d,"A-8 dark:hover:text-").concat(d,"A-11 dark:").concat(r,"hover:bg-").concat(d,"A-2 dark:").concat(r,"hover:border-").concat(d,"A-8 dark:").concat(r,"hover:text-").concat(d,"A-11"),active:"dark:".concat(r,"bg-").concat(d,"A-3 dark:").concat(r,"border-").concat(d,"A-8 dark:").concat(r,"text-").concat(d,"A-11 dark:").concat(r,"opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8"}},k={light:{default:"bg-transparent border border-solid border-".concat(e,"A-8 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11 ").concat(r,"hover:bg-").concat(e,"A-2 ").concat(r,"hover:border-").concat(e,"A-8 ").concat(r,"hover:text-").concat(e,"A-11"),active:"".concat(r,"bg-").concat(e,"A-3 ").concat(r,"border-").concat(e,"A-8 ").concat(r,"text-").concat(e,"A-11"),disable:"disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8"},dark:{default:"dark:border-".concat(d,"A-8 dark:text-").concat(d,"A-11"),hover:"dark:hover:bg-".concat(d,"A-2 dark:hover:border-").concat(d,"A-8 dark:hover:text-").concat(d,"A-11 dark:").concat(r,"hover:bg-").concat(d,"A-2 dark:").concat(r,"hover:border-").concat(d,"A-8 dark:").concat(r,"hover:text-").concat(d,"A-11"),active:"dark:".concat(r,"bg-").concat(d,"A-3 dark:").concat(r,"border-").concat(d,"A-8 dark:").concat(r,"text-").concat(d,"A-11 dark:").concat(r,"opacity-[.92]"),disable:"dark:disabled:border-slateDarkA-7 dark:disabled:text-slateDarkA-8"}},i={light:{default:"bg-transparent border-none text-".concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-3 hover:border-none hover:text-").concat(e,"A-11 ").concat(r,"hover:bg-").concat(e,"A-3 ").concat(r,"hover:border-none ").concat(r,"hover:text-").concat(e,"A-11"),active:"".concat(r,"bg-").concat(e,"A-4 ").concat(r,"border-none ").concat(r,"text-").concat(e,"A-11 ").concat(r,"opacity-[.92]"),disable:"disabled:bg-transparent disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-transparent dark:text-".concat(d,"A-11"),hover:"dark:hover:bg-".concat(d,"A-3 dark:hover:text-").concat(d,"A-11 dark:").concat(r,"hover:bg-").concat(d,"A-3 dark:").concat(r,"hover:text-").concat(d,"A-11"),active:"dark:".concat(r,"bg-").concat(d,"A-4 dark:").concat(r,"text-").concat(d,"A-11 dark:").concat(r,"opacity-[.92]"),disable:"dark:disabled:text-slateDarkA-8"}};switch(a){case"classic":return l(o,c);case"solid":return l(n,c);case"soft":return l(b,c);case"surface":return l(s,c);case"outline":return l(k,c);case"ghost":return l(i,c);default:return""}},v=function(a,e){void 0===e&&(e=t);var c="";return"solid"===a&&(c="hover:bg-".concat(e,"-9 dark:hover:bg-").concat(e,"Dark-9 "),c+=o.includes(e)?"hover:text-slateA-11 dark:hover:text-white":"hover:text-white dark:hover:text-white"),"soft"===a&&(c="hover:bg-".concat(e,"A-4 dark:hover-bg-").concat(e,"DarkA-4")),"ghost"===a&&(c="hover:bg-".concat(e,"-3 dark:hover:bg-").concat(e,"Dark-3")),c},h=function(a,e,c){void 0===e&&(e=t);var r="".concat(e,"Dark"),d={light:{default:"border data-[state=unchecked]:bg-transparent data-[state=unchecked]:border-slateA-7\n data-[state=checked]:bg-".concat(e,"-9 data-[state=checked]:border-none data-[state=checked]:text-slate-1"),hover:"hover:data-[state=unchecked]:bg-transparent hover:data-[state=unchecked]:border-slateA-8\n hover:data-[state=checked]:bg-".concat(e,"-10 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-white"),active:"active:data-[state=unchecked]:bg-transparent active:data-[state=unchecked]:border-slateA-9\n active:data-[state=checked]:bg-".concat(e,"-10 active:data-[state=checked]:border-none active:data-[state=checked]:text-white"),disable:"disabled:data-[state=unchecked]:bg-slateA-3 disabled:data-[state=unchecked]:border-slateA-6\n disabled:data-[state=checked]:bg-slateA-3 disabled:data-[state=checked]:border-slateA-6 disabled:data-[state=checked]:text-slateA-8"},dark:{default:"dark:data-[state=unchecked]:border-slateDarkA-7\n dark:data-[state=checked]:bg-".concat(r,"-9 dark:data-[state=checked]:text-#111113"),hover:"dark:hover:data-[state=unchecked]:border-slateDarkA-8\n dark:hover:data-[state=checked]:bg-".concat(r,"-10 dark:hover:data-[state=checked]:text-#111113"),active:"dark:active:data-[state=unchecked]:border-slateDarkA-9\n dark:active:data-[state=checked]:bg-".concat(r,"-10 dark:active:data-[state=checked]:text-#111113"),disable:"dark:disabled:data-[state=unchecked]:bg-slateDarkA-3 dark:disabled:data-[state=unchecked]:border-slateDarkA-6\n dark:disabled:data-[state=checked]:bg-slateDarkA-3 dark:disabled:data-[state=checked]:border-slateDarkA-6 dark:disabled:data-[state=checked]:text-slateDarkA-8"}},o={light:{default:"data-[state=unchecked]:bg-".concat(e,"A-5 data-[state=unchecked]:border-none\n data-[state=checked]:bg-").concat(e,"A-5 data-[state=checked]:border-none data-[state=checked]:text-").concat(e,"-11"),hover:"hover:data-[state=unchecked]:bg-".concat(e,"A-6 hover:data-[state=unchecked]:border-none\n hover:data-[state=checked]:bg-").concat(e,"A-6 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-").concat(e,"-11"),active:"active:data-[state=unchecked]:bg-".concat(e,"A-7 active:data-[state=unchecked]:border-none\n active:data-[state=checked]:bg-").concat(e,"A-7 active:data-[state=checked]:border-none active:data-[state=checked]:text-").concat(e,"-11"),disable:"disabled:data-[state=unchecked]:bg-slateA-3 disabled:data-[state=unchecked]:border-none\n disabled:data-[state=checked]:bg-slateA-3 disabled:data-[state=checked]:border-none disabled:data-[state=checked]:text-slateA-8"},dark:{default:"dark:data-[state=unchecked]:bg-".concat(r,"A-5\n dark:data-[state=checked]:bg-").concat(r,"A-5 dark:data-[state=checked]:text-").concat(r,"-11"),hover:"dark:hover:data-[state=unchecked]:bg-".concat(r,"A-6\n dark:hover:data-[state=checked]:bg-").concat(r,"A-6 dark:hover:data-[state=checked]:text-").concat(r,"-11"),active:"dark:active:data-[state=unchecked]:bg-".concat(r,"A-7\n dark:active:data-[state=checked]:bg-").concat(r,"A-7 dark:active:data-[state=checked]:text-").concat(r,"-11"),disable:"dark:disabled:data-[state=unchecked]:bg-slateDarkA-3\n dark:disabled:data-[state=checked]:bg-slateDarkA-3 dark:disabled:data-[state=checked]:text-slateDarkA-8"}},n={light:{default:"border bg-".concat(e,"A-2 border-").concat(e,"A-7 text-").concat(e,"A-11"),hover:"hover:bg-".concat(e,"A-2 hover:border-").concat(e,"A-8 hover:text-").concat(e,"A-11"),active:"active:bg-".concat(e,"A-3 active:border-").concat(e,"A-8 active:text-").concat(e,"A-11"),disable:"disabled:bg-slateA-3 disabled:border-slateA-6 disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(r,"A-2 dark:border-").concat(r,"A-7 dark:text-").concat(r,"A-11"),hover:"dark:hover:bg-".concat(r,"A-2 dark:hover:border-").concat(r,"A-8 dark:hover:text-").concat(r,"A-11"),active:"dark:active:bg-".concat(r,"A-3 dark:active:border-").concat(r,"A-8 dark:active:text-").concat(r,"A-11"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8"}},b={light:{default:"border bg-transparent border-".concat(e,"A-6 text-").concat(e,"A-11"),hover:"hover:bg-transparent hover:border-".concat(e,"A-6 hover:text-").concat(e,"A-11"),active:"active:bg-transparent active:border-".concat(e,"A-6 active:text-").concat(e,"A-11"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:border-".concat(r,"A-6 dark:text-").concat(r,"A-11"),hover:"dark:hover:border-".concat(r,"A-6 dark:hover:text-").concat(r,"A-11"),active:"dark:active:border-".concat(r,"A-6 dark:active:text-").concat(r,"A-11"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8"}};switch(a){case"classic":return c?l(n,!0):"".concat(l(d,!0)," data-[state=checked]:shadow-checkbox-classic data-[state=unchecked]:shadow-checkbox-classic\n dark:data-[state=checked]:shadow-checkbox-classic dark:data-[state=unchecked]:shadow-checkbox-classic");case"soft":return l(c?b:o,!0);case"surface":return l(c?n:d,!0);default:return l(d,!0)}},A=function(a,e){var t="".concat(e,"Dark"),c={light:{default:"bg-[#FFFFFF] border border-slateA-7 data-placeholder:text-slateA-10 text-slateA-12",hover:"hover:bg-[#FFFFFF] hover:border hover:border-slateA-8 hover:text-slateA-10",active:"active:bg-".concat(e,"A-3 active:border-").concat(e,"A-8 active:text-slateA-10 active:opacity-[.92]"),disable:"disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8"},dark:{default:"dark:bg-[#111113] dark:border dark:data-placeholder:border-slateDarkA-7 dark:data-placeholder:text-slateDarkA-9 dark:border-slateDarkA-7 dark:text-slateDarkA-12",hover:"dark:hover:bg-[#111113] dark:hover:border dark:hover:border-slateDarkA-8 dark:hover:text-slateDarkA-10",active:"dark:active:bg-".concat(t,"A-3 dark:active:border dark:active:border-").concat(t,"A-8 dark:active:text-slateDarkA-10 dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-2 dark:disabled:border dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8"}},r={light:{default:"bg-".concat(e,"A-3 border-none data-placeholder:text-").concat(e,"A-12/[.5] text-").concat(e,"A-12"),hover:"hover:bg-".concat(e,"A-4 hover:border-none hover:text-").concat(e,"A-12/[.5]"),active:"active:bg-".concat(e,"A-5 active:border-none active:text-").concat(e,"A-12/[.5] active:opacity-[.92]"),disable:"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-".concat(t,"A-3 dark:border-none dark:data-placeholder:text-").concat(t,"A-12/[.5] dark:text-").concat(t,"A-12 "),hover:"dark:hover:bg-".concat(t,"A-4 dark:hover:border-none dark:hover:text-").concat(t,"A-12/[.5]"),active:"dark:active:bg-".concat(t,"A-5 dark:active:border-none dark:active:text-").concat(t,"A-12/[.5] dark:active:opacity-[.92]"),disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-none dark:disabled:text-slateDarkA-8"}},d={light:{default:"bg-transparent border-none data-placeholder:text-".concat(e,"A-12/[.5] text-").concat(e,"A-12"),hover:"hover:bg-".concat(e,"A-3 hover:border-none hover:text-").concat(e,"A-1/[.5]"),active:"active:bg-".concat(e,"A-4 active:border-none active:text-").concat(e,"A-12/[.5] active:opacity-[.92]"),disable:"disabled:bg-transparent disabled:border-none disabled:text-slateA-8"},dark:{default:"dark:bg-transparent dark:border-none dark:data-placeholder:text-".concat(t,"A-12/[.5] dark:text-").concat(t,"A-12"),hover:"dark:hover:bg-".concat(t,"A-3 dark:hover:border-none dark:hover:text-").concat(t,"A-12/[.5]"),active:"dark:active:bg-".concat(t,"A-4 dark:active:border-none dark:active:text-").concat(t,"A-12/[.5] dark:active:opacity-[.92]"),disable:"dark:disabled:text-slateDarkA-8 dark:disabled:border-none"}},o=function(a){var e="";return e+="".concat(a.light.default," ").concat(a.dark.default," ").concat(a.light.hover," ").concat(a.light.active," ").concat(a.light.disable," ").concat(a.dark.hover," ").concat(a.dark.active," ").concat(a.dark.disable)};switch(a){case"classic":return o({light:{default:"bg-slateA-2 border border-slate-4 data-placeholder:text-slateA-10 text-slateA-12",hover:"hover:bg-slateA-3 hover:border hover:border-slate-4 hover:text-slateA-10",active:"active:bg-slateA-4 active:border active:border-slate-6 active:text-slateA-10",disable:"disabled:bg-slateA-3 disabled:border disabled:border-slate-4 disabled:text-slateA-8"},dark:{default:"dark:bg-slateDarkA-2 dark:border-slateDark-4 dark:data-placeholder:text-slateDarkA-10 dark:text-slateDarkA-12",hover:"dark:hover:bg-slateDarkA-3 dark:hover:border-slateDark-4 dark:hover:text-slateDarkA-10",active:"dark:active:bg-slateDarkA-4 dark:active:border-slateDark-6 dark:active:text-slateDarkA-10",disable:"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8"}});case"soft":return o(r);case"surface":return o(c);case"ghost":return o(d);default:return""}};export{k as appearanceStyle,b as bgColorStyle,o as blackText,h as checkboxAppearanceStyle,v as menuItemAppearanceStyle,n as primaryColorStyle,c as radiusVariants,d as scalingVariants,A as selectAppearanceStyle,s as textColorStyle,i as toggleAppearanceStyle,r as weightVariants};
2
2
  //# sourceMappingURL=constants.mjs.map