@lotte-innovate/ui-component-test 0.1.37 → 0.1.39
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/tailwind.config.js +31 -39
- package/package.json +4 -4
@@ -1,3 +1,4 @@
|
|
1
|
+
"use strict";
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
2
3
|
__assign = Object.assign || function(t) {
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -9,6 +10,29 @@ var __assign = (this && this.__assign) || function () {
|
|
9
10
|
};
|
10
11
|
return __assign.apply(this, arguments);
|
11
12
|
};
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
14
|
+
if (k2 === undefined) k2 = k;
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
18
|
+
}
|
19
|
+
Object.defineProperty(o, k2, desc);
|
20
|
+
}) : (function(o, m, k, k2) {
|
21
|
+
if (k2 === undefined) k2 = k;
|
22
|
+
o[k2] = m[k];
|
23
|
+
}));
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
26
|
+
}) : function(o, v) {
|
27
|
+
o["default"] = v;
|
28
|
+
});
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
30
|
+
if (mod && mod.__esModule) return mod;
|
31
|
+
var result = {};
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
33
|
+
__setModuleDefault(result, mod);
|
34
|
+
return result;
|
35
|
+
};
|
12
36
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
13
37
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
14
38
|
if (ar || !(i in from)) {
|
@@ -18,14 +42,15 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
18
42
|
}
|
19
43
|
return to.concat(ar || Array.prototype.slice.call(from));
|
20
44
|
};
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
46
|
+
var lightColors = __importStar(require("./src/lib/color/light"));
|
47
|
+
var darkColors = __importStar(require("./src/lib/color/dark"));
|
48
|
+
var alphaColors = __importStar(require("./src/lib/color/alpha"));
|
49
|
+
var constants_1 = require("./src/lib/color/constants");
|
25
50
|
var classes = [];
|
26
51
|
var darkClasses = [];
|
27
52
|
var colorScale = Array.from({ length: 12 }, function (_, i) { return (i + 1).toString(); });
|
28
|
-
var allColorOptions = [colorOptions, alphaColorOptions];
|
53
|
+
var allColorOptions = [constants_1.colorOptions, constants_1.alphaColorOptions];
|
29
54
|
var generateClasses = function (colorList, colorScale) {
|
30
55
|
var classPrefixes = ['fill', 'border', 'bg', 'text'];
|
31
56
|
return colorList.flatMap(function (color) {
|
@@ -58,7 +83,7 @@ var generateDarkClasses = function (colorList, colorScale) {
|
|
58
83
|
allColorOptions.forEach(function (options) {
|
59
84
|
classes = classes.concat(generateClasses(options, colorScale));
|
60
85
|
});
|
61
|
-
darkClasses.push.apply(darkClasses, generateDarkClasses(darkColorOptions, colorScale));
|
86
|
+
darkClasses.push.apply(darkClasses, generateDarkClasses(constants_1.darkColorOptions, colorScale));
|
62
87
|
var config = {
|
63
88
|
content: [
|
64
89
|
'./src/app/**/*.{js,ts,jsx,tsx,mdx,zip}',
|
@@ -138,37 +163,4 @@ function formatColors(colors) {
|
|
138
163
|
}
|
139
164
|
return formatcolors;
|
140
165
|
}
|
141
|
-
export default config;
|
142
|
-
1px #0000000D, 0px 1px 3px 0px #0000000D',
|
143
|
-
'card-dark-classic': '0px 0px 0px 0.5px #414142, 0px 1px 4px 0px #414142, 0px 2px 1px -1px #414142, 0px 1px 3px 0px #414142',
|
144
|
-
'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',
|
145
|
-
},
|
146
|
-
},
|
147
|
-
},
|
148
|
-
plugins: [
|
149
|
-
function (_a) {
|
150
|
-
var addVariant = _a.addVariant;
|
151
|
-
addVariant('data-placeholder', '&:where([data-placeholder])');
|
152
|
-
},
|
153
|
-
],
|
154
|
-
darkMode: 'class',
|
155
|
-
};
|
156
|
-
/**
|
157
|
-
* tailwind 방식으로 변경
|
158
|
-
* ex) bg-yellow-3
|
159
|
-
*/
|
160
|
-
function formatColors(colors) {
|
161
|
-
var formatcolors = {};
|
162
|
-
for (var _i = 0, _a = Object.entries(colors); _i < _a.length; _i++) {
|
163
|
-
var _b = _a[_i], cn = _b[0], c = _b[1];
|
164
|
-
for (var _c = 0, _d = Object.entries(c); _c < _d.length; _c++) {
|
165
|
-
var _e = _d[_c], scale = _e[0], value = _e[1];
|
166
|
-
if (!scale) {
|
167
|
-
continue;
|
168
|
-
}
|
169
|
-
formatcolors["".concat(cn, "-").concat(scale)] = value;
|
170
|
-
}
|
171
|
-
}
|
172
|
-
return formatcolors;
|
173
|
-
}
|
174
166
|
exports.default = config;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lotte-innovate/ui-component-test",
|
3
3
|
"description": "Lotte UI Library",
|
4
|
-
"version": "0.1.
|
4
|
+
"version": "0.1.39",
|
5
5
|
"private": false,
|
6
6
|
"type": "module",
|
7
7
|
"files": [
|
@@ -10,9 +10,9 @@
|
|
10
10
|
"dist/types",
|
11
11
|
"dist/globals.css"
|
12
12
|
],
|
13
|
-
"main": "dist/
|
14
|
-
"module": "dist/
|
15
|
-
"types": "dist/types/index.d.ts",
|
13
|
+
"main": "dist/esm/lib/index.js",
|
14
|
+
"module": "dist/cjs/lib/index.js",
|
15
|
+
"types": "dist/types/lib/index.d.ts",
|
16
16
|
"publishConfig": {
|
17
17
|
"access": "public"
|
18
18
|
},
|