@lotte-innovate/ui-component-test 0.0.88 → 0.0.89
Sign up to get free protection for your applications and to get access to all the features.
package/dist/tailwind.config.js
CHANGED
@@ -23,6 +23,10 @@ import * as darkColors from './lib/color/dark';
|
|
23
23
|
import * as alphaColors from './lib/color/alpha';
|
24
24
|
import { colorOptions, alphaColorOptions, darkColorOptions } from './lib/color/constants';
|
25
25
|
var classes = [];
|
26
|
+
var fillClasses = [];
|
27
|
+
var borderClasses = [];
|
28
|
+
var bgClasses = [];
|
29
|
+
var textClasses = [];
|
26
30
|
var darkClasses = [];
|
27
31
|
var colorScale = Array.from({ length: 12 }, function (_, i) { return (i + 1).toString(); });
|
28
32
|
var allColorOptions = [colorOptions, alphaColorOptions];
|
@@ -32,6 +36,9 @@ var generateClasses = function (colorList, colorScale) {
|
|
32
36
|
return colorScale.flatMap(function (scale) { return classPrefixes.map(function (prefix) { return "".concat(prefix, "-").concat(color, "-").concat(scale); }); });
|
33
37
|
});
|
34
38
|
};
|
39
|
+
var generateTypeClasses = function (colorList, colorScale, prefix) {
|
40
|
+
return colorList.flatMap(function (color) { return colorScale.flatMap(function (scale) { return "".concat(prefix, "-").concat(color, "-").concat(scale); }); });
|
41
|
+
};
|
35
42
|
var generateDarkClasses = function (colorList, colorScale) {
|
36
43
|
var classPrefixes = [
|
37
44
|
'dark:fill',
|
@@ -53,6 +60,18 @@ var generateDarkClasses = function (colorList, colorScale) {
|
|
53
60
|
allColorOptions.forEach(function (options) {
|
54
61
|
classes = classes.concat(generateClasses(options, colorScale));
|
55
62
|
});
|
63
|
+
allColorOptions.forEach(function (options) {
|
64
|
+
fillClasses = generateTypeClasses(options, colorScale, 'fill');
|
65
|
+
});
|
66
|
+
allColorOptions.forEach(function (options) {
|
67
|
+
borderClasses = generateTypeClasses(options, colorScale, 'border');
|
68
|
+
});
|
69
|
+
allColorOptions.forEach(function (options) {
|
70
|
+
bgClasses = generateTypeClasses(options, colorScale, 'bg');
|
71
|
+
});
|
72
|
+
allColorOptions.forEach(function (options) {
|
73
|
+
textClasses = generateTypeClasses(options, colorScale, 'text');
|
74
|
+
});
|
56
75
|
darkClasses.push.apply(darkClasses, generateDarkClasses(darkColorOptions, colorScale));
|
57
76
|
var config = {
|
58
77
|
content: [
|
@@ -61,7 +80,7 @@ var config = {
|
|
61
80
|
'./src/stories/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
62
81
|
'./src/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
63
82
|
],
|
64
|
-
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], classes, true), classes.map(function (cls) { return "hover:".concat(cls); }), true),
|
83
|
+
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], classes, true), classes.map(function (cls) { return "hover:".concat(cls); }), true), borderClasses.map(function (cls) { return "active:".concat(cls); }), true), bgClasses.map(function (cls) { return "active:".concat(cls); }), true), textClasses.map(function (cls) { return "active:".concat(cls); }), true), borderClasses.map(function (cls) { return "data-[state=checked]:".concat(cls); }), true), bgClasses.map(function (cls) { return "data-[state=checked]:".concat(cls); }), true), textClasses.map(function (cls) { return "data-[state=checked]:".concat(cls); }), true), borderClasses.map(function (cls) { return "data-[state=unchecked]:".concat(cls); }), true), bgClasses.map(function (cls) { return "data-[state=unchecked]:".concat(cls); }), true), textClasses.map(function (cls) { return "data-[state=unchecked]:".concat(cls); }), true), borderClasses.map(function (cls) { return "data-[state=on]:".concat(cls); }), true), bgClasses.map(function (cls) { return "data-[state=on]:".concat(cls); }), true), textClasses.map(function (cls) { return "data-[state=on]:".concat(cls); }), true), bgClasses.map(function (cls) { return "data-[state=open]:".concat(cls); }), true), darkClasses, true),
|
65
84
|
theme: {
|
66
85
|
extend: {
|
67
86
|
fontFamily: {
|