@lotte-innovate/ui-component-test 0.0.121 → 0.0.122

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. package/README.md +6 -6
  2. package/dist/globals.css +3 -3
  3. package/dist/lib/Typography/Text/index.mjs +1 -1
  4. package/dist/lib/color/alpha.mjs +1 -1
  5. package/dist/lib/color/alpha.mjs.map +1 -1
  6. package/dist/lib/components/Box/index.d.ts +10 -0
  7. package/dist/lib/components/Box/index.js +56 -0
  8. package/dist/lib/components/Box/index.mjs +2 -0
  9. package/dist/lib/components/Box/index.mjs.map +1 -0
  10. package/dist/lib/components/Calendar/index.d.ts +8 -0
  11. package/dist/lib/components/Calendar/index.js +49 -0
  12. package/dist/lib/components/Calendar/index.mjs +3 -0
  13. package/dist/lib/components/Calendar/index.mjs.map +1 -0
  14. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +6 -2
  15. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +18 -3
  16. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
  17. package/dist/lib/components/Datepicker/index.d.ts +14 -0
  18. package/dist/lib/components/Datepicker/index.js +35 -0
  19. package/dist/lib/components/Datepicker/index.mjs +3 -0
  20. package/dist/lib/components/Datepicker/index.mjs.map +1 -0
  21. package/dist/lib/components/Dialog/DialogAction.js +3 -2
  22. package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
  23. package/dist/lib/components/Dialog/DialogCancel.js +2 -1
  24. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
  25. package/dist/lib/components/Dialog/DialogRoot.js +1 -1
  26. package/dist/lib/components/Dialog/DialogRoot.mjs +1 -1
  27. package/dist/lib/components/Editor/index.d.ts +3 -0
  28. package/dist/lib/components/Editor/index.js +51 -16
  29. package/dist/lib/components/Editor/index.mjs +1 -1
  30. package/dist/lib/components/Footer/index.js +1 -1
  31. package/dist/lib/components/Footer/index.mjs +1 -1
  32. package/dist/lib/components/Gnb/GnbLogo.d.ts +1 -0
  33. package/dist/lib/components/Gnb/GnbLogo.js +2 -2
  34. package/dist/lib/components/Gnb/GnbLogo.mjs +1 -1
  35. package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
  36. package/dist/lib/components/Gnb/GnbMenu.d.ts +0 -2
  37. package/dist/lib/components/Gnb/GnbMenu.js +2 -5
  38. package/dist/lib/components/Gnb/GnbMenu.mjs +1 -1
  39. package/dist/lib/components/Gnb/GnbMenuItem.d.ts +11 -0
  40. package/dist/lib/components/Gnb/GnbMenuItem.js +46 -0
  41. package/dist/lib/components/Gnb/GnbMenuItem.mjs +3 -0
  42. package/dist/lib/components/Gnb/GnbMenuItem.mjs.map +1 -0
  43. package/dist/lib/components/Gnb/index.d.ts +1 -0
  44. package/dist/lib/components/Gnb/index.js +2 -0
  45. package/dist/lib/components/Gnb/index.mjs +1 -1
  46. package/dist/lib/components/Gnb/index.mjs.map +1 -1
  47. package/dist/lib/components/Grid/NumberingPagination.d.ts +2 -0
  48. package/dist/lib/components/Grid/NumberingPagination.js +76 -0
  49. package/dist/lib/components/Grid/NumberingPagination.mjs +2 -0
  50. package/dist/lib/components/Grid/NumberingPagination.mjs.map +1 -0
  51. package/dist/lib/components/Grid/Pagination.js +2 -1
  52. package/dist/lib/components/Grid/index.js +3 -3
  53. package/dist/lib/components/Grid/index.mjs +1 -1
  54. package/dist/lib/components/Grid/useGrid.js +14 -8
  55. package/dist/lib/components/Grid/useGrid.mjs +1 -1
  56. package/dist/lib/components/Label/index.d.ts +2 -0
  57. package/dist/lib/components/Label/index.js +3 -3
  58. package/dist/lib/components/Label/index.mjs +1 -1
  59. package/dist/lib/components/Modal/ModalAction.d.ts +11 -0
  60. package/dist/lib/components/Modal/ModalAction.js +62 -0
  61. package/dist/lib/components/Modal/ModalAction.mjs +3 -0
  62. package/dist/lib/components/Modal/ModalAction.mjs.map +1 -0
  63. package/dist/lib/components/Modal/ModalCancel.d.ts +10 -0
  64. package/dist/lib/components/Modal/ModalCancel.js +58 -0
  65. package/dist/lib/components/Modal/ModalCancel.mjs +3 -0
  66. package/dist/lib/components/Modal/ModalCancel.mjs.map +1 -0
  67. package/dist/lib/components/Modal/ModalContent.d.ts +11 -0
  68. package/dist/lib/components/Modal/ModalContent.js +61 -0
  69. package/dist/lib/components/Modal/ModalContent.mjs +3 -0
  70. package/dist/lib/components/Modal/ModalContent.mjs.map +1 -0
  71. package/dist/lib/components/Modal/ModalDescription.d.ts +5 -0
  72. package/dist/lib/components/Modal/ModalDescription.js +47 -0
  73. package/dist/lib/components/Modal/ModalDescription.mjs +3 -0
  74. package/dist/lib/components/Modal/ModalDescription.mjs.map +1 -0
  75. package/dist/lib/components/Modal/ModalFooter.d.ts +2 -0
  76. package/dist/lib/components/Modal/ModalFooter.js +30 -0
  77. package/dist/lib/components/Modal/ModalFooter.mjs +2 -0
  78. package/dist/lib/components/Modal/ModalFooter.mjs.map +1 -0
  79. package/dist/lib/components/Modal/ModalRoot.d.ts +16 -0
  80. package/dist/lib/components/Modal/ModalRoot.js +42 -0
  81. package/dist/lib/components/Modal/ModalRoot.mjs +3 -0
  82. package/dist/lib/components/Modal/ModalRoot.mjs.map +1 -0
  83. package/dist/lib/components/Modal/ModalTitle.d.ts +11 -0
  84. package/dist/lib/components/Modal/ModalTitle.js +63 -0
  85. package/dist/lib/components/Modal/ModalTitle.mjs +3 -0
  86. package/dist/lib/components/Modal/ModalTitle.mjs.map +1 -0
  87. package/dist/lib/components/Modal/ModalTrigger.d.ts +3 -0
  88. package/dist/lib/components/Modal/ModalTrigger.js +30 -0
  89. package/dist/lib/components/Modal/ModalTrigger.mjs +2 -0
  90. package/dist/lib/components/Modal/ModalTrigger.mjs.map +1 -0
  91. package/dist/lib/components/Modal/index.d.ts +15 -0
  92. package/dist/lib/components/Modal/index.js +19 -0
  93. package/dist/lib/components/Modal/index.mjs +2 -0
  94. package/dist/lib/components/Modal/index.mjs.map +1 -0
  95. package/dist/lib/components/Popover/index.mjs.map +1 -1
  96. package/dist/lib/components/SearchBar/index.d.ts +15 -0
  97. package/dist/lib/components/SearchBar/index.js +85 -0
  98. package/dist/lib/components/SearchBar/index.mjs +3 -0
  99. package/dist/lib/components/SearchBar/index.mjs.map +1 -0
  100. package/dist/lib/components/SideBar/index.d.ts +21 -0
  101. package/dist/lib/components/SideBar/index.js +100 -0
  102. package/dist/lib/components/SideBar/index.mjs +3 -0
  103. package/dist/lib/components/SideBar/index.mjs.map +1 -0
  104. package/dist/lib/components/Tabs/DynamicTabs.d.ts +30 -0
  105. package/dist/lib/components/Tabs/DynamicTabs.js +73 -0
  106. package/dist/lib/components/Tabs/DynamicTabs.mjs +3 -0
  107. package/dist/lib/components/Tabs/DynamicTabs.mjs.map +1 -0
  108. package/dist/lib/components/Tabs/index.d.ts +2 -2
  109. package/dist/lib/components/TextField/index.d.ts +4 -0
  110. package/dist/lib/components/TextField/index.js +39 -4
  111. package/dist/lib/components/TextField/index.mjs +1 -1
  112. package/dist/lib/components/Timeline/TimelineConnector.js +1 -3
  113. package/dist/lib/components/Timeline/TimelineConnector.mjs +2 -0
  114. package/dist/lib/components/Timeline/TimelineConnector.mjs.map +1 -0
  115. package/dist/lib/components/Timeline/TimelineContent.mjs +2 -0
  116. package/dist/lib/components/Timeline/TimelineContent.mjs.map +1 -0
  117. package/dist/lib/components/Timeline/TimelineDescription.mjs +2 -0
  118. package/dist/lib/components/Timeline/TimelineDescription.mjs.map +1 -0
  119. package/dist/lib/components/Timeline/TimelineHeader.mjs +2 -0
  120. package/dist/lib/components/Timeline/TimelineHeader.mjs.map +1 -0
  121. package/dist/lib/components/Timeline/TimelineIcon.js +4 -3
  122. package/dist/lib/components/Timeline/TimelineIcon.mjs +3 -0
  123. package/dist/lib/components/Timeline/TimelineIcon.mjs.map +1 -0
  124. package/dist/lib/components/Timeline/TimelineItem.js +1 -1
  125. package/dist/lib/components/Timeline/TimelineItem.mjs +2 -0
  126. package/dist/lib/components/Timeline/TimelineItem.mjs.map +1 -0
  127. package/dist/lib/components/Timeline/TimelineRoot.js +13 -7
  128. package/dist/lib/components/Timeline/TimelineRoot.mjs +3 -0
  129. package/dist/lib/components/Timeline/TimelineRoot.mjs.map +1 -0
  130. package/dist/lib/components/Timeline/TimelineTime.d.ts +3 -1
  131. package/dist/lib/components/Timeline/TimelineTime.js +16 -4
  132. package/dist/lib/components/Timeline/TimelineTime.mjs +3 -0
  133. package/dist/lib/components/Timeline/TimelineTime.mjs.map +1 -0
  134. package/dist/lib/components/Timeline/TimelineTitle.d.ts +3 -1
  135. package/dist/lib/components/Timeline/TimelineTitle.js +16 -4
  136. package/dist/lib/components/Timeline/TimelineTitle.mjs +3 -0
  137. package/dist/lib/components/Timeline/TimelineTitle.mjs.map +1 -0
  138. package/dist/lib/components/Timeline/index.mjs +2 -0
  139. package/dist/lib/components/Timeline/index.mjs.map +1 -0
  140. package/dist/lib/components/Tooltip/index.d.ts +1 -0
  141. package/dist/lib/components/Tooltip/index.js +2 -2
  142. package/dist/lib/components/Tooltip/index.mjs +1 -1
  143. package/dist/lib/components/index.d.ts +8 -0
  144. package/dist/lib/components/index.js +8 -0
  145. package/dist/lib/constants.js +1 -1
  146. package/dist/lib/constants.mjs +1 -1
  147. package/dist/lib/constants.mjs.map +1 -1
  148. package/dist/lib/index.mjs +1 -1
  149. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.mjs +2 -0
  150. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.mjs.map +1 -0
  151. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.mjs +2 -0
  152. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.mjs.map +1 -0
  153. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.mjs +2 -0
  154. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.mjs.map +1 -0
  155. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.mjs +2 -0
  156. package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.mjs.map +1 -0
  157. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.mjs +2 -0
  158. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.mjs.map +1 -0
  159. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.mjs +2 -0
  160. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.mjs.map +1 -0
  161. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.mjs +2 -0
  162. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.mjs.map +1 -0
  163. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/localize/index.mjs +2 -0
  164. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/localize/index.mjs.map +1 -0
  165. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/match/index.mjs +2 -0
  166. package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/match/index.mjs.map +1 -0
  167. package/dist/lib/node_modules/date-fns/esm/locale/ko/index.mjs +2 -0
  168. package/dist/lib/node_modules/date-fns/esm/locale/ko/index.mjs.map +1 -0
  169. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  170. package/dist/lib/types.d.ts +0 -5
  171. package/dist/lib/utils/classPrefixes.js +3 -0
  172. package/dist/lib/utils/langs/it.d.ts +0 -0
  173. package/dist/lib/utils/langs/it.js +2 -0
  174. package/dist/lib/utils/langs/it.mjs +3 -0
  175. package/dist/lib/utils/langs/it.mjs.map +1 -0
  176. package/dist/lib/utils/langs/ja.d.ts +0 -0
  177. package/dist/lib/utils/langs/ja.js +2 -0
  178. package/dist/lib/utils/langs/ja.mjs +3 -0
  179. package/dist/lib/utils/langs/ja.mjs.map +1 -0
  180. package/dist/lib/utils/langs/ko_KR.d.ts +0 -0
  181. package/dist/lib/utils/langs/ko_KR.js +2 -0
  182. package/dist/lib/utils/langs/ko_KR.mjs +3 -0
  183. package/dist/lib/utils/langs/ko_KR.mjs.map +1 -0
  184. package/dist/lib/utils/langs/vi.d.ts +0 -0
  185. package/dist/lib/utils/langs/vi.js +2 -0
  186. package/dist/lib/utils/langs/vi.mjs +3 -0
  187. package/dist/lib/utils/langs/vi.mjs.map +1 -0
  188. package/dist/lib/utils/langs/zh_CN.d.ts +0 -0
  189. package/dist/lib/utils/langs/zh_CN.js +2 -0
  190. package/dist/lib/utils/langs/zh_CN.mjs +3 -0
  191. package/dist/lib/utils/langs/zh_CN.mjs.map +1 -0
  192. package/dist/lib/utils/useLoadTinyMCE.d.ts +1 -0
  193. package/dist/lib/utils/useLoadTinyMCE.js +154 -0
  194. package/dist/lib/utils/useLoadTinyMCE.mjs +2 -0
  195. package/dist/lib/utils/useLoadTinyMCE.mjs.map +1 -0
  196. package/dist/lib/utils/useWindowSize.d.ts +1 -0
  197. package/dist/lib/utils/useWindowSize.js +17 -0
  198. package/dist/lib/utils/useWindowSize.mjs +2 -0
  199. package/dist/lib/utils/useWindowSize.mjs.map +1 -0
  200. package/dist/tailwind.config.js +3 -0
  201. package/dist/tsconfig.tsbuildinfo +1 -1
  202. package/package.json +7 -5
  203. package/dist/lib/components/Grid/Pagination.mjs +0 -2
  204. package/dist/lib/components/Grid/Pagination.mjs.map +0 -1
  205. package/public/tinymce/CHANGELOG.md +0 -3453
  206. package/public/tinymce/README.md +0 -73
  207. package/public/tinymce/bower.json +0 -27
  208. package/public/tinymce/composer.json +0 -52
  209. package/public/tinymce/icons/default/icons.js +0 -194
  210. package/public/tinymce/icons/default/icons.min.js +0 -1
  211. package/public/tinymce/icons/default/index.js +0 -7
  212. package/public/tinymce/license.txt +0 -21
  213. package/public/tinymce/models/dom/index.js +0 -7
  214. package/public/tinymce/models/dom/model.js +0 -8040
  215. package/public/tinymce/models/dom/model.min.js +0 -4
  216. package/public/tinymce/package.json +0 -32
  217. package/public/tinymce/plugins/advlist/index.js +0 -7
  218. package/public/tinymce/plugins/advlist/plugin.js +0 -259
  219. package/public/tinymce/plugins/advlist/plugin.min.js +0 -4
  220. package/public/tinymce/plugins/autolink/index.js +0 -7
  221. package/public/tinymce/plugins/autolink/plugin.js +0 -228
  222. package/public/tinymce/plugins/autolink/plugin.min.js +0 -4
  223. package/public/tinymce/plugins/code/index.js +0 -7
  224. package/public/tinymce/plugins/code/plugin.js +0 -85
  225. package/public/tinymce/plugins/code/plugin.min.js +0 -4
  226. package/public/tinymce/plugins/codesample/index.js +0 -7
  227. package/public/tinymce/plugins/codesample/plugin.js +0 -2463
  228. package/public/tinymce/plugins/codesample/plugin.min.js +0 -4
  229. package/public/tinymce/plugins/image/index.js +0 -7
  230. package/public/tinymce/plugins/image/plugin.js +0 -1505
  231. package/public/tinymce/plugins/image/plugin.min.js +0 -4
  232. package/public/tinymce/plugins/link/index.js +0 -7
  233. package/public/tinymce/plugins/link/plugin.js +0 -1242
  234. package/public/tinymce/plugins/link/plugin.min.js +0 -4
  235. package/public/tinymce/plugins/lists/index.js +0 -7
  236. package/public/tinymce/plugins/lists/plugin.js +0 -2172
  237. package/public/tinymce/plugins/lists/plugin.min.js +0 -4
  238. package/public/tinymce/plugins/table/index.js +0 -7
  239. package/public/tinymce/plugins/table/plugin.js +0 -3462
  240. package/public/tinymce/plugins/table/plugin.min.js +0 -4
  241. package/public/tinymce/skins/content/default/content.css +0 -61
  242. package/public/tinymce/skins/content/default/content.js +0 -2
  243. package/public/tinymce/skins/content/default/content.min.css +0 -1
  244. package/public/tinymce/skins/ui/oxide/content.css +0 -785
  245. package/public/tinymce/skins/ui/oxide/content.inline.css +0 -779
  246. package/public/tinymce/skins/ui/oxide/content.inline.js +0 -2
  247. package/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
  248. package/public/tinymce/skins/ui/oxide/content.js +0 -2
  249. package/public/tinymce/skins/ui/oxide/content.min.css +0 -1
  250. package/public/tinymce/skins/ui/oxide/skin.css +0 -3763
  251. package/public/tinymce/skins/ui/oxide/skin.js +0 -2
  252. package/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  253. package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  254. package/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
  255. package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  256. package/public/tinymce/skins/ui/oxide-dark/content.css +0 -766
  257. package/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
  258. package/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -2
  259. package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
  260. package/public/tinymce/skins/ui/oxide-dark/content.js +0 -2
  261. package/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
  262. package/public/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
  263. package/public/tinymce/skins/ui/oxide-dark/skin.js +0 -2
  264. package/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  265. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  266. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
  267. package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  268. package/public/tinymce/themes/silver/index.js +0 -7
  269. package/public/tinymce/themes/silver/theme.js +0 -30775
  270. package/public/tinymce/themes/silver/theme.min.js +0 -384
  271. package/public/tinymce/tinymce.d.ts +0 -3238
  272. package/public/tinymce/tinymce.js +0 -31779
  273. package/public/tinymce/tinymce.min.js +0 -384
@@ -36,7 +36,7 @@ var tooltipVariants = cva('bg-slate-12 text-slate-1 dark:bg-slateDark-12 dark:te
36
36
  },
37
37
  });
38
38
  var Tooltip = React.forwardRef(function (_a, ref) {
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"]);
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, _c = _a.active, active = _c === void 0 ? true : _c, onOpenChange = _a.onOpenChange, props = __rest(_a, ["content", "weight", "color", "radius", "children", "defaultOpen", "open", "className", "side", "active", "onOpenChange"]);
40
40
  var theme = useTheme().theme;
41
41
  var contextValue = {
42
42
  radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
@@ -48,7 +48,7 @@ var Tooltip = React.forwardRef(function (_a, ref) {
48
48
  var arrowColor = contextValue.color
49
49
  ? "fill-".concat(contextValue.color, "-9 dark:fill-").concat(contextValue.color, "Dark-9")
50
50
  : 'fill-slate-12 dark:fill-slateDark-12';
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 })] }))] }) }));
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 }), active && (_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 })] })))] }) }));
52
52
  });
53
53
  Tooltip.displayName = 'Tooltip';
54
54
  export default Tooltip;
@@ -1,3 +1,3 @@
1
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
+ 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.active,v=void 0===_||_,w=a.onOpenChange,b=c(a,["content","weight","color","radius","children","defaultOpen","open","className","side","active","onOpenChange"]),j=s().theme,k={radius:null!=f?f:j.themeRadius,color:null!=d?d:j.themeColor,weight:null!=i?i:j.themeWeight};"full"===k.radius&&(k.radius="large");var C=k.color?"fill-".concat(k.color,"-9 dark:fill-").concat(k.color,"Dark-9"):"fill-slate-12 dark:fill-slateDark-12";return e(r.Provider,{children:t(r.Root,{open:g,defaultOpen:u,onOpenChange:w,children:[e(r.Trigger,{className:"cursor-pointer text-slate-12 dark:text-slateDark-12",asChild:!0,children:h}),v&&t(r.Content,p({align:"center"},b,{side:O,className:n("mr-2",m(k),x),sideOffset:5,children:[l,e(r.Arrow,{width:11,height:5,className:C})]}))]})})}));f.displayName="Tooltip";export{f as default};
3
3
  //# sourceMappingURL=index.mjs.map
@@ -3,8 +3,10 @@ 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 Box } from './Box';
6
7
  export { default as Breadcrumb } from './Breadcrumb';
7
8
  export { default as Button } from './Button';
9
+ export { default as Calendar } from './Calendar';
8
10
  export { default as Callout } from './Callout';
9
11
  export { default as Card } from './Card';
10
12
  export { default as Checkbox } from './Checkbox';
@@ -13,9 +15,11 @@ export { default as CheckboxGroup } from './CheckboxGroup';
13
15
  export { default as ContextMenu } from './ContextMenu';
14
16
  export { default as Collapsible } from './Collapsible';
15
17
  export { default as DataList } from './DataList';
18
+ export { default as Datepicker } from './Datepicker';
16
19
  export { default as Dialog } from './Dialog';
17
20
  export { default as DropdownMenu } from './DropdownMenu';
18
21
  export { default as Editor } from './Editor';
22
+ export { default as DynamicTabs } from './Tabs/DynamicTabs';
19
23
  export { default as Footer } from './Footer';
20
24
  export { default as Gnb } from './Gnb';
21
25
  export { default as HoverCard } from './HoverCard';
@@ -23,6 +27,7 @@ export { default as IconButton } from './IconButton';
23
27
  export { default as Inset } from './Inset';
24
28
  export { default as Label } from './Label';
25
29
  export { default as Menubar } from './Menubar';
30
+ export { default as Modal } from './Modal';
26
31
  export { default as NavigationMenu } from './NavigationMenu';
27
32
  export { default as Popover } from './Popover';
28
33
  export { default as Progress } from './Progress';
@@ -30,9 +35,11 @@ export { default as Radio } from './Radio';
30
35
  export { default as RadioCards } from './RadioCards';
31
36
  export { default as RadioGroup } from './RadioGroup';
32
37
  export { default as ScrollArea } from './ScrollArea';
38
+ export { default as SearchBar } from './SearchBar';
33
39
  export { default as SegmentedControl } from './SegmentedControl';
34
40
  export { default as Select } from './Select';
35
41
  export { default as Separator } from './Separator';
42
+ export { default as Sidebar } from './SideBar';
36
43
  export { default as Skeleton } from './Skeleton';
37
44
  export { default as Slider } from './Slider';
38
45
  export { default as Spinner } from './Spinner';
@@ -41,6 +48,7 @@ export { default as TabNav } from './TabNav';
41
48
  export { default as Tabs } from './Tabs';
42
49
  export { default as TextArea } from './TextArea';
43
50
  export { default as TextField } from './TextField';
51
+ export { default as Timeline } from './Timeline';
44
52
  export { default as Toast } from './Toast';
45
53
  export { default as Toggle } from './Toggle';
46
54
  export { default as ToggleWithText } from './Toggle/ToggleWithText';
@@ -4,8 +4,10 @@ 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 Box } from './Box';
7
8
  export { default as Breadcrumb } from './Breadcrumb';
8
9
  export { default as Button } from './Button';
10
+ export { default as Calendar } from './Calendar';
9
11
  export { default as Callout } from './Callout';
10
12
  export { default as Card } from './Card';
11
13
  export { default as Checkbox } from './Checkbox';
@@ -14,9 +16,11 @@ export { default as CheckboxGroup } from './CheckboxGroup';
14
16
  export { default as ContextMenu } from './ContextMenu';
15
17
  export { default as Collapsible } from './Collapsible';
16
18
  export { default as DataList } from './DataList';
19
+ export { default as Datepicker } from './Datepicker';
17
20
  export { default as Dialog } from './Dialog';
18
21
  export { default as DropdownMenu } from './DropdownMenu';
19
22
  export { default as Editor } from './Editor';
23
+ export { default as DynamicTabs } from './Tabs/DynamicTabs';
20
24
  export { default as Footer } from './Footer';
21
25
  export { default as Gnb } from './Gnb';
22
26
  export { default as HoverCard } from './HoverCard';
@@ -24,6 +28,7 @@ export { default as IconButton } from './IconButton';
24
28
  export { default as Inset } from './Inset';
25
29
  export { default as Label } from './Label';
26
30
  export { default as Menubar } from './Menubar';
31
+ export { default as Modal } from './Modal';
27
32
  export { default as NavigationMenu } from './NavigationMenu';
28
33
  export { default as Popover } from './Popover';
29
34
  export { default as Progress } from './Progress';
@@ -31,9 +36,11 @@ export { default as Radio } from './Radio';
31
36
  export { default as RadioCards } from './RadioCards';
32
37
  export { default as RadioGroup } from './RadioGroup';
33
38
  export { default as ScrollArea } from './ScrollArea';
39
+ export { default as SearchBar } from './SearchBar';
34
40
  export { default as SegmentedControl } from './SegmentedControl';
35
41
  export { default as Select } from './Select';
36
42
  export { default as Separator } from './Separator';
43
+ export { default as Sidebar } from './SideBar';
37
44
  export { default as Skeleton } from './Skeleton';
38
45
  export { default as Slider } from './Slider';
39
46
  export { default as Spinner } from './Spinner';
@@ -42,6 +49,7 @@ export { default as TabNav } from './TabNav';
42
49
  export { default as Tabs } from './Tabs';
43
50
  export { default as TextArea } from './TextArea';
44
51
  export { default as TextField } from './TextField';
52
+ export { default as Timeline } from './Timeline';
45
53
  export { default as Toast } from './Toast';
46
54
  export { default as Toggle } from './Toggle';
47
55
  export { default as ToggleWithText } from './Toggle/ToggleWithText';
@@ -45,7 +45,7 @@ export var radiusVariants = {
45
45
  large: 'rounded-md', // 6px
46
46
  full: 'rounded-full',
47
47
  },
48
- // 배너
48
+ // 배너, 에디터
49
49
  large: {
50
50
  none: 'rounded-none',
51
51
  small: 'rounded',
@@ -1,2 +1,2 @@
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};
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(){var t={};for(var c in a){var r="".concat(c,"Dark");t[c]="border-".concat(a[c]," dark:border-").concat(e[r])}return t},k=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},i=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 "}},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(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 k(d,c);case"solid":return k(o,c);case"soft":return k(n,c);case"surface":return k(b,c);case"outline":return k(s,c);case"ghost":return k(l,c);default:return""}},v=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"}},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(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 k(o,c);case"solid":return k(n,c);case"soft":return k(b,c);case"surface":return k(s,c);case"outline":return k(l,c);case"ghost":return k(i,c);default:return""}},h=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},A=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?k(n,!0):"".concat(k(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 k(c?b:o,!0);case"surface":return k(c?n:d,!0);default:return k(d,!0)}},g=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{i as appearanceStyle,b as bgColorStyle,o as blackText,l as borderColorStyle,A as checkboxAppearanceStyle,h as menuItemAppearanceStyle,n as primaryColorStyle,c as radiusVariants,d as scalingVariants,g as selectAppearanceStyle,s as textColorStyle,v as toggleAppearanceStyle,r as weightVariants};
2
2
  //# sourceMappingURL=constants.mjs.map