@lotte-innovate/ui-component-test 0.0.47 → 0.0.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. package/README.md +281 -78
  2. package/dist/lib/Typography/Header/index.d.ts +1 -1
  3. package/dist/lib/Typography/Header/{index.js → index.jsx} +7 -4
  4. package/dist/lib/Typography/Text/index.d.ts +1 -1
  5. package/dist/lib/Typography/Text/{index.js → index.jsx} +8 -5
  6. package/dist/lib/components/Accordion/index.d.ts +1 -1
  7. package/dist/lib/components/Accordion/{index.js → index.jsx} +19 -7
  8. package/dist/lib/components/AlertDialog/AlertDialogAction.d.ts +1 -1
  9. package/dist/lib/components/AlertDialog/{AlertDialogAction.js → AlertDialogAction.jsx} +6 -5
  10. package/dist/lib/components/AlertDialog/AlertDialogCancel.d.ts +1 -1
  11. package/dist/lib/components/AlertDialog/{AlertDialogCancel.js → AlertDialogCancel.jsx} +6 -5
  12. package/dist/lib/components/AlertDialog/{AlertDialogContent.js → AlertDialogContent.jsx} +9 -5
  13. package/dist/lib/components/AlertDialog/{AlertDialogDescription.js → AlertDialogDescription.jsx} +5 -15
  14. package/dist/lib/components/AlertDialog/AlertDialogRoot.d.ts +1 -1
  15. package/dist/lib/components/AlertDialog/{AlertDialogRoot.js → AlertDialogRoot.jsx} +6 -14
  16. package/dist/lib/components/AlertDialog/{AlertDialogTitle.js → AlertDialogTitle.jsx} +5 -15
  17. package/dist/lib/components/AlertDialog/AlertDialogTrigger.d.ts +1 -1
  18. package/dist/lib/components/AlertDialog/{AlertDialogTrigger.js → AlertDialogTrigger.jsx} +6 -5
  19. package/dist/lib/components/AspectRatio/{index.js → index.jsx} +6 -5
  20. package/dist/lib/components/Avatar/{index.js → index.jsx} +9 -5
  21. package/dist/lib/components/Badge/index.d.ts +1 -1
  22. package/dist/lib/components/Badge/{index.js → index.jsx} +6 -5
  23. package/dist/lib/components/BarChart/index.d.ts +3 -2
  24. package/dist/lib/components/BarChart/{index.js → index.jsx} +6 -7
  25. package/dist/lib/components/BubbleChart/index.d.ts +3 -2
  26. package/dist/lib/components/BubbleChart/{index.js → index.jsx} +7 -7
  27. package/dist/lib/components/Button/index.d.ts +1 -1
  28. package/dist/lib/components/Button/{index.js → index.jsx} +6 -5
  29. package/dist/lib/components/Callout/{CalloutIcon.js → CalloutIcon.jsx} +10 -5
  30. package/dist/lib/components/Callout/CalloutRoot.d.ts +1 -1
  31. package/dist/lib/components/Callout/{CalloutRoot.js → CalloutRoot.jsx} +8 -5
  32. package/dist/lib/components/Callout/{CalloutText.js → CalloutText.jsx} +5 -15
  33. package/dist/lib/components/Card/index.d.ts +1 -1
  34. package/dist/lib/components/Card/{index.js → index.jsx} +6 -5
  35. package/dist/lib/components/Checkbox/index.d.ts +1 -1
  36. package/dist/lib/components/Checkbox/{index.js → index.jsx} +14 -6
  37. package/dist/lib/components/CheckboxCard/index.d.ts +2 -2
  38. package/dist/lib/components/CheckboxCard/{index.js → index.jsx} +9 -7
  39. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.d.ts +1 -1
  40. package/dist/lib/components/CheckboxGroup/{CheckboxGroupItem.js → CheckboxGroupItem.jsx} +7 -15
  41. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +2 -2
  42. package/dist/lib/components/CheckboxGroup/{CheckboxGroupRoot.js → CheckboxGroupRoot.jsx} +6 -3
  43. package/dist/lib/components/CheckboxGroup/index.d.ts +1 -1
  44. package/dist/lib/components/ContextMenu/{ContextMenuCheckboxItem.js → ContextMenuCheckboxItem.jsx} +9 -16
  45. package/dist/lib/components/ContextMenu/{ContextMenuContent.js → ContextMenuContent.jsx} +8 -5
  46. package/dist/lib/components/ContextMenu/{ContextMenuGroup.js → ContextMenuGroup.jsx} +4 -14
  47. package/dist/lib/components/ContextMenu/{ContextMenuItem.js → ContextMenuItem.jsx} +7 -5
  48. package/dist/lib/components/ContextMenu/{ContextMenuItemIndicator.js → ContextMenuItemIndicator.jsx} +6 -5
  49. package/dist/lib/components/ContextMenu/{ContextMenuLabel.js → ContextMenuLabel.jsx} +6 -5
  50. package/dist/lib/components/ContextMenu/{ContextMenuRadioGroup.js → ContextMenuRadioGroup.jsx} +6 -14
  51. package/dist/lib/components/ContextMenu/{ContextMenuRadioItem.js → ContextMenuRadioItem.jsx} +9 -16
  52. package/dist/lib/components/ContextMenu/ContextMenuRoot.d.ts +1 -1
  53. package/dist/lib/components/ContextMenu/{ContextMenuRoot.js → ContextMenuRoot.jsx} +6 -14
  54. package/dist/lib/components/ContextMenu/{ContextMenuSeparator.js → ContextMenuSeparator.jsx} +5 -15
  55. package/dist/lib/components/ContextMenu/{ContextMenuSubContent.js → ContextMenuSubContent.jsx} +12 -9
  56. package/dist/lib/components/ContextMenu/{ContextMenuSubTrigger.js → ContextMenuSubTrigger.jsx} +11 -16
  57. package/dist/lib/components/ContextMenu/{ContextMenuTrigger.js → ContextMenuTrigger.jsx} +5 -15
  58. package/dist/lib/components/DataList/{DataListItem.js → DataListItem.jsx} +6 -5
  59. package/dist/lib/components/DataList/{DataListLabel.js → DataListLabel.jsx} +6 -5
  60. package/dist/lib/components/DataList/{DataListRoot.js → DataListRoot.jsx} +7 -15
  61. package/dist/lib/components/DataList/{DataListValue.js → DataListValue.jsx} +6 -5
  62. package/dist/lib/components/Dialog/{DialogAction.js → DialogAction.jsx} +6 -16
  63. package/dist/lib/components/Dialog/{DialogCancel.js → DialogCancel.jsx} +5 -15
  64. package/dist/lib/components/Dialog/{DialogContent.js → DialogContent.jsx} +6 -5
  65. package/dist/lib/components/Dialog/{DialogDescription.js → DialogDescription.jsx} +5 -15
  66. package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -1
  67. package/dist/lib/components/Dialog/{DialogRoot.js → DialogRoot.jsx} +6 -14
  68. package/dist/lib/components/Dialog/{DialogSlot.js → DialogSlot.jsx} +5 -15
  69. package/dist/lib/components/Dialog/{DialogTitle.js → DialogTitle.jsx} +5 -15
  70. package/dist/lib/components/Dialog/{DialogTrigger.js → DialogTrigger.jsx} +4 -14
  71. package/dist/lib/components/Dialog/index.d.ts +1 -1
  72. package/dist/lib/components/DoughnutChart/index.d.ts +3 -2
  73. package/dist/lib/components/DoughnutChart/{index.js → index.jsx} +6 -6
  74. package/dist/lib/components/DropdownMenu/{DropdonMenuRadioGroup.js → DropdonMenuRadioGroup.jsx} +3 -13
  75. package/dist/lib/components/DropdownMenu/{DropdonMenuSubContent.js → DropdonMenuSubContent.jsx} +12 -9
  76. package/dist/lib/components/DropdownMenu/{DropdownMenuCheckboxItem.js → DropdownMenuCheckboxItem.jsx} +9 -16
  77. package/dist/lib/components/DropdownMenu/{DropdownMenuContent.js → DropdownMenuContent.jsx} +8 -5
  78. package/dist/lib/components/DropdownMenu/DropdownMenuItem.d.ts +1 -1
  79. package/dist/lib/components/DropdownMenu/{DropdownMenuItem.js → DropdownMenuItem.jsx} +7 -5
  80. package/dist/lib/components/DropdownMenu/{DropdownMenuItemIndicator.js → DropdownMenuItemIndicator.jsx} +6 -5
  81. package/dist/lib/components/DropdownMenu/{DropdownMenuLable.js → DropdownMenuLable.jsx} +5 -15
  82. package/dist/lib/components/DropdownMenu/{DropdownMenuRadioItem.js → DropdownMenuRadioItem.jsx} +9 -16
  83. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +2 -2
  84. package/dist/lib/components/DropdownMenu/{DropdownMenuRoot.js → DropdownMenuRoot.jsx} +4 -14
  85. package/dist/lib/components/DropdownMenu/{DropdownMenuSeparator.js → DropdownMenuSeparator.jsx} +3 -15
  86. package/dist/lib/components/DropdownMenu/{DropdownMenuSub.js → DropdownMenuSub.jsx} +2 -14
  87. package/dist/lib/components/DropdownMenu/{DropdownMenuSubTrigger.js → DropdownMenuSubTrigger.jsx} +9 -16
  88. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  89. package/dist/lib/components/DropdownMenu/{DropdownMenuTrigger.js → DropdownMenuTrigger.jsx} +5 -15
  90. package/dist/lib/components/DropdownMenu/index.d.ts +1 -1
  91. package/dist/lib/components/HoverCard/{HoverCardContent.js → HoverCardContent.jsx} +6 -5
  92. package/dist/lib/components/HoverCard/HoverCardRoot.d.ts +1 -1
  93. package/dist/lib/components/HoverCard/{HoverCardRoot.js → HoverCardRoot.jsx} +6 -14
  94. package/dist/lib/components/HoverCard/{HoverCardTrigger.js → HoverCardTrigger.jsx} +4 -14
  95. package/dist/lib/components/HoverCard/index.d.ts +1 -1
  96. package/dist/lib/components/IconButton/index.d.ts +1 -1
  97. package/dist/lib/components/IconButton/{index.js → index.jsx} +5 -4
  98. package/dist/lib/components/Inset/{index.js → index.jsx} +8 -5
  99. package/dist/lib/components/Label/index.d.ts +1 -1
  100. package/dist/lib/components/Label/{index.js → index.jsx} +5 -4
  101. package/dist/lib/components/LineChart/index.d.ts +3 -2
  102. package/dist/lib/components/LineChart/{index.js → index.jsx} +6 -7
  103. package/dist/lib/components/Menubar/{MenubarCheckboxItem.js → MenubarCheckboxItem.jsx} +9 -16
  104. package/dist/lib/components/Menubar/{MenubarContent.js → MenubarContent.jsx} +12 -9
  105. package/dist/lib/components/Menubar/{MenubarItem.js → MenubarItem.jsx} +7 -5
  106. package/dist/lib/components/Menubar/{MenubarItemIndicator.js → MenubarItemIndicator.jsx} +6 -5
  107. package/dist/lib/components/Menubar/{MenubarMenu.js → MenubarMenu.jsx} +2 -14
  108. package/dist/lib/components/Menubar/{MenubarRadioGroup.js → MenubarRadioGroup.jsx} +6 -14
  109. package/dist/lib/components/Menubar/{MenubarRadioItem.js → MenubarRadioItem.jsx} +9 -16
  110. package/dist/lib/components/Menubar/MenubarRoot.d.ts +1 -1
  111. package/dist/lib/components/Menubar/{MenubarRoot.js → MenubarRoot.jsx} +8 -5
  112. package/dist/lib/components/Menubar/{MenubarSeparator.js → MenubarSeparator.jsx} +5 -15
  113. package/dist/lib/components/Menubar/{MenubarSub.js → MenubarSub.jsx} +2 -14
  114. package/dist/lib/components/Menubar/{MenubarSubContent.js → MenubarSubContent.jsx} +7 -6
  115. package/dist/lib/components/Menubar/{MenubarSubTrigger.js → MenubarSubTrigger.jsx} +9 -16
  116. package/dist/lib/components/Menubar/{MenubarTrigger.js → MenubarTrigger.jsx} +6 -5
  117. package/dist/lib/components/NavigationMenu/{NavigationMenuContent.js → NavigationMenuContent.jsx} +6 -5
  118. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.jsx +22 -0
  119. package/dist/lib/components/NavigationMenu/{NavigationMenuItem.js → NavigationMenuItem.jsx} +4 -14
  120. package/dist/lib/components/NavigationMenu/{NavigationMenuLink.js → NavigationMenuLink.jsx} +6 -5
  121. package/dist/lib/components/NavigationMenu/{NavigationMenuList.js → NavigationMenuList.jsx} +7 -5
  122. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.d.ts +1 -1
  123. package/dist/lib/components/NavigationMenu/{NavigationMenuRoot.js → NavigationMenuRoot.jsx} +7 -15
  124. package/dist/lib/components/NavigationMenu/{NavigationMenuTrigger.js → NavigationMenuTrigger.jsx} +7 -5
  125. package/dist/lib/components/NavigationMenu/{NavigationMenuViewport.js → NavigationMenuViewport.jsx} +6 -5
  126. package/dist/lib/components/PieChart/index.d.ts +3 -2
  127. package/dist/lib/components/PieChart/{index.js → index.jsx} +6 -6
  128. package/dist/lib/components/Popover/{PopoverClose.js → PopoverClose.jsx} +5 -15
  129. package/dist/lib/components/Popover/{PopoverContent.js → PopoverContent.jsx} +6 -5
  130. package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -1
  131. package/dist/lib/components/Popover/{PopoverRoot.js → PopoverRoot.jsx} +6 -14
  132. package/dist/lib/components/Popover/{PopoverTrigger.js → PopoverTrigger.jsx} +4 -14
  133. package/dist/lib/components/Popover/index.d.ts +1 -1
  134. package/dist/lib/components/Progress/{index.js → index.jsx} +6 -5
  135. package/dist/lib/components/RadarChart/index.d.ts +3 -2
  136. package/dist/lib/components/RadarChart/{index.js → index.jsx} +7 -7
  137. package/dist/lib/components/Radio/index.d.ts +1 -1
  138. package/dist/lib/components/Radio/{index.js → index.jsx} +10 -15
  139. package/dist/lib/components/RadioCards/{RadioCardsItem.js → RadioCardsItem.jsx} +5 -15
  140. package/dist/lib/components/RadioCards/{RadioCardsRoot.js → RadioCardsRoot.jsx} +10 -5
  141. package/dist/lib/components/RadioGroup/{RadioGroupItem.js → RadioGroupItem.jsx} +5 -15
  142. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
  143. package/dist/lib/components/RadioGroup/{RadioGroupRoot.js → RadioGroupRoot.jsx} +9 -15
  144. package/dist/lib/components/ScrollArea/{index.js → index.jsx} +6 -14
  145. package/dist/lib/components/SegmentedControl/{SegmentedControlItem.js → SegmentedControlItem.jsx} +5 -15
  146. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
  147. package/dist/lib/components/SegmentedControl/{SegmentedControlRoot.js → SegmentedControlRoot.jsx} +7 -4
  148. package/dist/lib/components/SegmentedControl/index.d.ts +1 -1
  149. package/dist/lib/components/Select/index.d.ts +1 -1
  150. package/dist/lib/components/Select/{index.js → index.jsx} +27 -10
  151. package/dist/lib/components/Separator/{index.js → index.jsx} +7 -4
  152. package/dist/lib/components/Skeleton/index.d.ts +1 -1
  153. package/dist/lib/components/Skeleton/{index.js → index.jsx} +7 -4
  154. package/dist/lib/components/Slider/index.d.ts +1 -1
  155. package/dist/lib/components/Slider/{index.js → index.jsx} +5 -4
  156. package/dist/lib/components/Spinner/index.d.ts +1 -1
  157. package/dist/lib/components/Spinner/{index.js → index.jsx} +7 -4
  158. package/dist/lib/components/TabNav/{index.js → index.jsx} +9 -15
  159. package/dist/lib/components/Table/index.d.ts +1 -1
  160. package/dist/lib/components/Table/{index.js → index.jsx} +25 -10
  161. package/dist/lib/components/Tabs/{index.js → index.jsx} +16 -7
  162. package/dist/lib/components/TextArea/index.d.ts +1 -1
  163. package/dist/lib/components/TextArea/{index.js → index.jsx} +5 -4
  164. package/dist/lib/components/TextField/index.d.ts +1 -1
  165. package/dist/lib/components/TextField/{index.js → index.jsx} +10 -5
  166. package/dist/lib/components/Toast/ToastActionButton.d.ts +1 -1
  167. package/dist/lib/components/Toast/{ToastActionButton.js → ToastActionButton.jsx} +7 -6
  168. package/dist/lib/components/Toast/ToastDescription.d.ts +1 -1
  169. package/dist/lib/components/Toast/{ToastDescription.js → ToastDescription.jsx} +7 -15
  170. package/dist/lib/components/Toast/{ToastRoot.js → ToastRoot.jsx} +11 -5
  171. package/dist/lib/components/Toast/ToastTitle.d.ts +1 -1
  172. package/dist/lib/components/Toast/{ToastTitle.js → ToastTitle.jsx} +5 -15
  173. package/dist/lib/components/Toggle/ToggleWithText.d.ts +1 -1
  174. package/dist/lib/components/Toggle/{ToggleWithText.js → ToggleWithText.jsx} +9 -7
  175. package/dist/lib/components/Toggle/index.d.ts +1 -1
  176. package/dist/lib/components/Toggle/{index.js → index.jsx} +6 -5
  177. package/dist/lib/components/ToggleGroup/ToggleGroupItem.d.ts +1 -1
  178. package/dist/lib/components/ToggleGroup/{ToggleGroupItem.js → ToggleGroupItem.jsx} +6 -16
  179. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.d.ts +1 -1
  180. package/dist/lib/components/ToggleGroup/{ToggleGroupRoot.js → ToggleGroupRoot.jsx} +10 -5
  181. package/dist/lib/components/ToggleSwitch/{index.js → index.jsx} +9 -5
  182. package/dist/lib/components/Tooltip/index.d.ts +1 -1
  183. package/dist/lib/components/Tooltip/{index.js → index.jsx} +13 -4
  184. package/dist/lib/constants.js +2 -2
  185. package/dist/lib/index.d.ts +2 -2
  186. package/dist/lib/index.js +2 -2
  187. package/dist/lib/utils/useDarkMode.js +1 -1
  188. package/package.json +2 -4
  189. package/dist/globals.css +0 -4
  190. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.js +0 -31
  191. package/dist/tailwind.config.d.ts +0 -3
  192. package/dist/tailwind.config.js +0 -141
  193. /package/dist/lib/components/AlertDialog/{index.js → index.jsx} +0 -0
  194. /package/dist/lib/components/Callout/{index.js → index.jsx} +0 -0
  195. /package/dist/lib/components/CheckboxGroup/{index.js → index.jsx} +0 -0
  196. /package/dist/lib/components/ContextMenu/{index.js → index.jsx} +0 -0
  197. /package/dist/lib/components/DataList/{index.js → index.jsx} +0 -0
  198. /package/dist/lib/components/Dialog/{index.js → index.jsx} +0 -0
  199. /package/dist/lib/components/DropdownMenu/{index.js → index.jsx} +0 -0
  200. /package/dist/lib/components/HoverCard/{index.js → index.jsx} +0 -0
  201. /package/dist/lib/components/Menubar/{index.js → index.jsx} +0 -0
  202. /package/dist/lib/components/NavigationMenu/{index.js → index.jsx} +0 -0
  203. /package/dist/lib/components/Popover/{index.js → index.jsx} +0 -0
  204. /package/dist/lib/components/RadioCards/{index.js → index.jsx} +0 -0
  205. /package/dist/lib/components/RadioGroup/{index.js → index.jsx} +0 -0
  206. /package/dist/lib/components/SegmentedControl/{index.js → index.jsx} +0 -0
  207. /package/dist/lib/components/Toast/{index.js → index.jsx} +0 -0
  208. /package/dist/lib/components/ToggleGroup/{index.js → index.jsx} +0 -0
@@ -1,31 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import { forwardRef } from 'react';
25
- import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
26
- import { cn } from '../../../lib/utils/utils';
27
- export var NavigationMenuIndicator = forwardRef(function (_a, ref) {
28
- var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
29
- return (_jsxs(NavigationMenuPrimitive.Indicator, __assign({ ref: ref, className: "data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut top-full z-[1] flex h-[10px] items-end justify-center overflow-hidden transition-[width,transform_250ms_ease]" }, props, { children: [_jsx("div", { className: cn("relative top-[70%] h-[10px] w-[10px] rotate-[45deg] rounded-tl-[2px] bg-white shadow shadow-slate-4 dark:bg-slateDark-2 dark:shadow-slateDark-4", className) }), children] })));
30
- });
31
- NavigationMenuIndicator.displayName = 'NavigationMenu.Indicator';
@@ -1,3 +0,0 @@
1
- import type { Config } from 'tailwindcss';
2
- declare const config: Config;
3
- export default config;
@@ -1,141 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
- if (ar || !(i in from)) {
15
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
- ar[i] = from[i];
17
- }
18
- }
19
- return to.concat(ar || Array.prototype.slice.call(from));
20
- };
21
- import * as lightColors from './lib/color/light';
22
- import * as darkColors from './lib/color/dark';
23
- import * as alphaColors from './lib/color/alpha';
24
- import { colorOptions, alphaColorOptions, darkColorOptions } from './lib/color/constants';
25
- var classes = [];
26
- var darkClasses = [];
27
- var colorScale = Array.from({ length: 12 }, function (_, i) { return (i + 1).toString(); });
28
- var allColorOptions = [colorOptions, alphaColorOptions];
29
- var generateClasses = function (colorList, colorScale) {
30
- var classPrefixes = ['fill', 'border', 'bg', 'text'];
31
- return colorList.flatMap(function (color) {
32
- return colorScale.flatMap(function (scale) { return classPrefixes.map(function (prefix) { return "".concat(prefix, "-").concat(color, "-").concat(scale); }); });
33
- });
34
- };
35
- var generateDarkClasses = function (colorList, colorScale) {
36
- var classPrefixes = [
37
- 'dark:fill',
38
- 'dark:border',
39
- 'dark:bg',
40
- 'dark:text',
41
- 'dark:hover:bg',
42
- 'dark:hover:border',
43
- 'dark:hover:text',
44
- 'dark:active:bg',
45
- 'dark:active:border',
46
- 'dark:active:text',
47
- 'dark:data-[state=on]:bg',
48
- 'dark:data-[state=open]:bg',
49
- 'dark:data-[state=on]:text',
50
- 'dark:data-[state=on]:hover:bg',
51
- 'dark:data-[state=on]:hover:border',
52
- 'dark:data-[state=on]:hover:text',
53
- ];
54
- return colorList.flatMap(function (color) {
55
- return colorScale.flatMap(function (scale) { return classPrefixes.map(function (prefix) { return "".concat(prefix, "-").concat(color, "-").concat(scale); }); });
56
- });
57
- };
58
- allColorOptions.forEach(function (options) {
59
- classes = classes.concat(generateClasses(options, colorScale));
60
- });
61
- darkClasses.push.apply(darkClasses, generateDarkClasses(darkColorOptions, colorScale));
62
- var config = {
63
- content: [
64
- './src/app/**/*.{js,ts,jsx,tsx,mdx,zip}',
65
- './lib/**/*.{js,ts,jsx,tsx,mdx,zip}',
66
- './src/stories/**/*.{js,ts,jsx,tsx,mdx,zip}',
67
- './src/**/*.{js,ts,jsx,tsx,mdx,zip}',
68
- ],
69
- safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], classes, true), classes.map(function (cls) { return "hover:".concat(cls); }), true), classes.map(function (cls) { return "active:".concat(cls); }), true), classes.map(function (cls) { return "before:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=checked]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=unchecked]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=on]:".concat(cls); }), true), classes.map(function (cls) { return "data-[state=open]:".concat(cls); }), true), darkClasses, true),
70
- theme: {
71
- extend: {
72
- fontFamily: {
73
- sans: ['Noto Sans KR', 'sans-serif', 'Nunito Sans', 'Helvetica Neue', 'Helvetica', 'Arial'],
74
- },
75
- backgroundImage: {
76
- 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
77
- 'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
78
- },
79
- colors: __assign(__assign(__assign({ danger: '#C40006', warning: '#AB6400', success: '#00713F', information: '#00749E' }, formatColors(lightColors)), formatColors(darkColors)), formatColors(alphaColors)),
80
- // radix tailwind
81
- keyframes: {
82
- overlayShow: {
83
- from: { opacity: '0' },
84
- to: { opacity: '1' },
85
- },
86
- contentShow: {
87
- from: { opacity: '0', transform: 'translate(-50%, -48%) scale(0.96)' },
88
- to: { opacity: '1', transform: 'translate(-50%, -50%) scale(1)' },
89
- },
90
- slideDown: {
91
- from: { height: '0px' },
92
- to: { height: 'var(--radix-accordion-content-height)' },
93
- },
94
- slideUp: {
95
- from: { height: 'var(--radix-accordion-content-height)' },
96
- to: { height: '0px' },
97
- },
98
- },
99
- animation: {
100
- overlayShow: 'overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1)',
101
- contentShow: 'contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1)',
102
- slideDown: 'slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)',
103
- slideUp: 'slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)',
104
- },
105
- boxShadow: {
106
- 'button-classic': '0px 0px 0px 1px #00002D17 inset, 0px -2px 1px 0px #0000330F inset, 0px 4px 2px -2px #FFFFFFB2 inset, 0px 2px 1px -1px #FFFFFFB2 inset',
107
- 'checkbox-classic': '0px 0px 0px 1px #00002D17 inset, 0px -2px 1px 0px #0000330F inset, 0px 4px 2px -2px #FFFFFF66 inset, 0px 2px 1px -1px #FFFFFF66 inset',
108
- 'button-dark-classic': '0px 0px 0px 1px #414142 inset, 0px -2px 1px 0px #414142 inset, 0px 4px 2px -2px #414142 inset, 0px 2px 1px -1px #414142 inset',
109
- 'card-classic': '0px 0px 0px 0.5px #0000000D, 0px 1px 4px 0px #00002D17, 0px 2px 1px -1px #0000000D, 0px 1px 3px 0px #0000000D',
110
- 'card-dark-classic': '0px 0px 0px 0.5px #414142, 0px 1px 4px 0px #414142, 0px 2px 1px -1px #414142, 0px 1px 3px 0px #414142',
111
- 'segmented-control-dark-classic': '0px 0px 0px 0.5px #0000000D, 0px 1px 4px 0px #363636, 0px 2px 1px -1px #0000000D, 0px 1px 3px 0px #0000000D',
112
- },
113
- },
114
- },
115
- plugins: [
116
- function (_a) {
117
- var addVariant = _a.addVariant;
118
- addVariant('data-placeholder', '&:where([data-placeholder])');
119
- },
120
- ],
121
- darkMode: 'class',
122
- };
123
- /**
124
- * tailwind 방식으로 변경
125
- * ex) bg-yellow-3
126
- */
127
- function formatColors(colors) {
128
- var formatcolors = {};
129
- for (var _i = 0, _a = Object.entries(colors); _i < _a.length; _i++) {
130
- var _b = _a[_i], cn = _b[0], c = _b[1];
131
- for (var _c = 0, _d = Object.entries(c); _c < _d.length; _c++) {
132
- var _e = _d[_c], scale = _e[0], value = _e[1];
133
- if (!scale) {
134
- continue;
135
- }
136
- formatcolors["".concat(cn, "-").concat(scale)] = value;
137
- }
138
- }
139
- return formatcolors;
140
- }
141
- export default config;