@lotte-innovate/ui-component-test 0.2.6 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +53 -0
- package/dist/lib/components/Editor/index.d.ts +15 -15
- package/dist/lib/components/Editor/index.js +15 -15
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/constants.d.ts +0 -647
- package/dist/lib/constants.js +0 -895
- package/dist/lib/constants.mjs.map +1 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/index.js +0 -1
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/tailwind.config.d.ts +3 -0
- package/dist/lib/tsconfig.tsbuildinfo +1 -0
- package/dist/lib/utils/utils.mjs.map +1 -1
- package/dist/tailwind.config.d.ts +3 -0
- package/dist/tailwind.config.js +65 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -11
- package/public/tinymce/icons/default/index.mjs +1 -1
- package/public/tinymce/plugins/advlist/index.mjs +1 -1
- package/public/tinymce/plugins/code/index.mjs +1 -1
- package/public/tinymce/plugins/code/plugin.mjs +1 -1
- package/public/tinymce/plugins/codesample/index.mjs +1 -1
- package/public/tinymce/plugins/codesample/plugin.mjs +1 -1
- package/public/tinymce/plugins/image/index.mjs +1 -1
- package/public/tinymce/plugins/image/plugin.mjs +1 -1
- package/public/tinymce/plugins/link/index.mjs +1 -1
- package/public/tinymce/plugins/link/index.mjs.map +1 -1
- package/public/tinymce/plugins/link/plugin.mjs +1 -1
- package/public/tinymce/plugins/lists/index.mjs +1 -1
- package/public/tinymce/plugins/lists/plugin.mjs +1 -1
- package/public/tinymce/plugins/table/index.mjs +1 -1
- package/public/tinymce/themes/silver/index.mjs +1 -1
- package/public/tinymce/themes/silver/index.mjs.map +1 -1
- package/_virtual/icons.mjs +0 -2
- package/_virtual/icons.mjs.map +0 -1
- package/_virtual/index.mjs +0 -2
- package/_virtual/index.mjs.map +0 -1
- package/_virtual/index10.mjs +0 -2
- package/_virtual/index10.mjs.map +0 -1
- package/_virtual/index11.mjs +0 -2
- package/_virtual/index11.mjs.map +0 -1
- package/_virtual/index12.mjs +0 -2
- package/_virtual/index12.mjs.map +0 -1
- package/_virtual/index13.mjs +0 -2
- package/_virtual/index13.mjs.map +0 -1
- package/_virtual/index14.mjs +0 -2
- package/_virtual/index14.mjs.map +0 -1
- package/_virtual/index15.mjs +0 -2
- package/_virtual/index15.mjs.map +0 -1
- package/_virtual/index16.mjs +0 -2
- package/_virtual/index16.mjs.map +0 -1
- package/_virtual/index17.mjs +0 -2
- package/_virtual/index17.mjs.map +0 -1
- package/_virtual/index18.mjs +0 -2
- package/_virtual/index18.mjs.map +0 -1
- package/_virtual/index19.mjs +0 -2
- package/_virtual/index19.mjs.map +0 -1
- package/_virtual/index2.mjs +0 -2
- package/_virtual/index2.mjs.map +0 -1
- package/_virtual/index20.mjs +0 -2
- package/_virtual/index20.mjs.map +0 -1
- package/_virtual/index21.mjs +0 -2
- package/_virtual/index21.mjs.map +0 -1
- package/_virtual/index22.mjs +0 -2
- package/_virtual/index22.mjs.map +0 -1
- package/_virtual/index3.mjs +0 -2
- package/_virtual/index3.mjs.map +0 -1
- package/_virtual/index4.mjs +0 -2
- package/_virtual/index4.mjs.map +0 -1
- package/_virtual/index5.mjs +0 -2
- package/_virtual/index5.mjs.map +0 -1
- package/_virtual/index6.mjs +0 -2
- package/_virtual/index6.mjs.map +0 -1
- package/_virtual/index7.mjs +0 -2
- package/_virtual/index7.mjs.map +0 -1
- package/_virtual/index8.mjs +0 -2
- package/_virtual/index8.mjs.map +0 -1
- package/_virtual/index9.mjs +0 -2
- package/_virtual/index9.mjs.map +0 -1
- package/_virtual/jsx-runtime.mjs +0 -2
- package/_virtual/jsx-runtime.mjs.map +0 -1
- package/_virtual/jsx-runtime2.mjs +0 -2
- package/_virtual/jsx-runtime2.mjs.map +0 -1
- package/_virtual/model.mjs +0 -2
- package/_virtual/model.mjs.map +0 -1
- package/_virtual/plugin.mjs +0 -2
- package/_virtual/plugin.mjs.map +0 -1
- package/_virtual/plugin2.mjs +0 -2
- package/_virtual/plugin2.mjs.map +0 -1
- package/_virtual/plugin3.mjs +0 -2
- package/_virtual/plugin3.mjs.map +0 -1
- package/_virtual/plugin4.mjs +0 -2
- package/_virtual/plugin4.mjs.map +0 -1
- package/_virtual/plugin5.mjs +0 -2
- package/_virtual/plugin5.mjs.map +0 -1
- package/_virtual/plugin6.mjs +0 -2
- package/_virtual/plugin6.mjs.map +0 -1
- package/_virtual/plugin7.mjs +0 -2
- package/_virtual/plugin7.mjs.map +0 -1
- package/_virtual/react-jsx-runtime.development.mjs +0 -2
- package/_virtual/react-jsx-runtime.development.mjs.map +0 -1
- package/_virtual/react-jsx-runtime.production.min.mjs +0 -2
- package/_virtual/react-jsx-runtime.production.min.mjs.map +0 -1
- package/_virtual/react.development.mjs +0 -2
- package/_virtual/react.development.mjs.map +0 -1
- package/_virtual/react.production.min.mjs +0 -2
- package/_virtual/react.production.min.mjs.map +0 -1
- package/_virtual/theme.mjs +0 -2
- package/_virtual/theme.mjs.map +0 -1
- package/_virtual/tinymce.mjs +0 -2
- package/_virtual/tinymce.mjs.map +0 -1
- package/_virtual/tinymce2.mjs +0 -2
- package/_virtual/tinymce2.mjs.map +0 -1
- package/dist/lib/color/alpha.d.ts +0 -784
- package/dist/lib/color/alpha.js +0 -784
- package/dist/lib/color/constants.d.ts +0 -15
- package/dist/lib/color/constants.js +0 -265
- package/dist/lib/color/dark.d.ts +0 -392
- package/dist/lib/color/dark.js +0 -392
- package/dist/lib/color/krdsColors.d.ts +0 -309
- package/dist/lib/color/krdsColors.js +0 -309
- package/dist/lib/color/light.d.ts +0 -392
- package/dist/lib/color/light.js +0 -393
- package/dist/lib/theme/ThemeProvider.d.ts +0 -16
- package/dist/lib/theme/ThemeProvider.js +0 -29
- package/dist/lib/theme/ThemeProvider.mjs +0 -3
- package/dist/lib/theme/ThemeProvider.mjs.map +0 -1
- package/dist/lib/theme/index.d.ts +0 -2
- package/dist/lib/theme/index.js +0 -2
- package/dist/lib/types.d.ts +0 -90
- package/dist/lib/types.js +0 -1
package/dist/lib/constants.js
CHANGED
@@ -1,81 +1,3 @@
|
|
1
|
-
import { ColorStyle, DarkColorStyle, MAIN_COLOR, colorOptions } from '../lib/color/constants';
|
2
|
-
export var radiusOptions = ['none', 'small', 'medium', 'large', 'full'];
|
3
|
-
export var typoSizeOptions = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
4
|
-
export var scalingOptions = ['90%', '95%', '100%', '105%', '110%'];
|
5
|
-
export var sizeOptions = ['x-small', 'small', 'medium', 'large', 'x-large'];
|
6
|
-
export var weightOptions = ['regular', 'medium', 'semibold', 'bold'];
|
7
|
-
export var themeOptions = ['light', 'dark'];
|
8
|
-
export var appearanceOptions = [
|
9
|
-
'classic',
|
10
|
-
'ghost',
|
11
|
-
'outline',
|
12
|
-
'soft',
|
13
|
-
'solid',
|
14
|
-
'surface',
|
15
|
-
];
|
16
|
-
//차트
|
17
|
-
export var labelPositionList = ['top', 'bottom', 'left', 'right'];
|
18
|
-
export var pointStyleList = [
|
19
|
-
'circle',
|
20
|
-
'cross',
|
21
|
-
'crossRot',
|
22
|
-
'dash',
|
23
|
-
'line',
|
24
|
-
'rect',
|
25
|
-
'rectRounded',
|
26
|
-
'rectRot',
|
27
|
-
'star',
|
28
|
-
'triangle',
|
29
|
-
false,
|
30
|
-
];
|
31
|
-
export var radiusVariants = {
|
32
|
-
// 체크박스
|
33
|
-
small: {
|
34
|
-
none: 'rounded-none',
|
35
|
-
small: 'rounded-[3px]',
|
36
|
-
medium: 'rounded',
|
37
|
-
large: 'rounded',
|
38
|
-
full: 'rounded',
|
39
|
-
},
|
40
|
-
// 라디오버튼, 스위치, 태그, 배지, 버튼, 텍스트인풋, 텍스트영역, 페이지네이션
|
41
|
-
base: {
|
42
|
-
none: 'rounded-none',
|
43
|
-
small: 'rounded-[3px]',
|
44
|
-
medium: 'rounded', // 4px
|
45
|
-
large: 'rounded-md', // 6px
|
46
|
-
full: 'rounded-full',
|
47
|
-
},
|
48
|
-
// 배너
|
49
|
-
large: {
|
50
|
-
none: 'rounded-none',
|
51
|
-
small: 'rounded',
|
52
|
-
medium: 'rounded-lg', // 8px
|
53
|
-
large: 'rounded-xl', // 12px
|
54
|
-
full: 'rounded-2xl', // 16px
|
55
|
-
},
|
56
|
-
// 다이얼로그, 바텀시트, 그리드, 카드
|
57
|
-
'extra-large': {
|
58
|
-
none: 'rounded-none',
|
59
|
-
small: 'rounded',
|
60
|
-
medium: 'rounded-lg',
|
61
|
-
large: 'rounded-xl',
|
62
|
-
full: 'rounded-xl',
|
63
|
-
},
|
64
|
-
// Dropdown, Context Menu 아이템
|
65
|
-
'menu-item': {
|
66
|
-
none: 'rounded-none',
|
67
|
-
small: 'rounded-[1px]',
|
68
|
-
medium: 'rounded-sm',
|
69
|
-
large: 'rounded',
|
70
|
-
full: 'rounded',
|
71
|
-
},
|
72
|
-
};
|
73
|
-
export var weightVariants = {
|
74
|
-
regular: 'font-normal', // 400
|
75
|
-
medium: 'font-medium', // 500
|
76
|
-
semibold: 'font-semibold', // 600
|
77
|
-
bold: 'font-bold', // 700
|
78
|
-
};
|
79
1
|
export var scalingVariants = {
|
80
2
|
'90%': 'scale-90',
|
81
3
|
'95%': 'scale-95',
|
@@ -83,820 +5,3 @@ export var scalingVariants = {
|
|
83
5
|
'105%': 'scale-105',
|
84
6
|
'110%': 'scale-110',
|
85
7
|
};
|
86
|
-
// 스토리북 공통 argTypes 설정
|
87
|
-
export var commonArgTypes = {
|
88
|
-
typoSize: {
|
89
|
-
table: {
|
90
|
-
category: 'Theme Props',
|
91
|
-
type: { summary: '1 ~ 9' },
|
92
|
-
},
|
93
|
-
control: { type: 'select' },
|
94
|
-
options: typoSizeOptions,
|
95
|
-
defaultValue: { summary: '3' },
|
96
|
-
},
|
97
|
-
scaling: {
|
98
|
-
table: {
|
99
|
-
category: 'Theme Props',
|
100
|
-
type: { summary: scalingOptions.join(' | ') },
|
101
|
-
},
|
102
|
-
control: { type: 'select' },
|
103
|
-
options: scalingOptions,
|
104
|
-
defaultValue: { summary: '100%' },
|
105
|
-
},
|
106
|
-
weight: {
|
107
|
-
table: {
|
108
|
-
category: 'Theme Props',
|
109
|
-
type: { summary: weightOptions.join(' | ') },
|
110
|
-
},
|
111
|
-
options: weightOptions,
|
112
|
-
control: { type: 'select' },
|
113
|
-
defaultValue: { summary: 'medium' },
|
114
|
-
},
|
115
|
-
radius: {
|
116
|
-
table: {
|
117
|
-
category: 'Theme Props',
|
118
|
-
type: { summary: radiusOptions.join(' | ') },
|
119
|
-
},
|
120
|
-
options: radiusOptions,
|
121
|
-
control: { type: 'select' },
|
122
|
-
defaultValue: { summary: 'medium' },
|
123
|
-
},
|
124
|
-
color: {
|
125
|
-
table: {
|
126
|
-
category: 'Theme Props',
|
127
|
-
type: { summary: 'colorVariants' },
|
128
|
-
},
|
129
|
-
options: colorOptions,
|
130
|
-
control: { type: 'select' },
|
131
|
-
defaultValue: { summary: 'red' },
|
132
|
-
},
|
133
|
-
basicText: {
|
134
|
-
table: {
|
135
|
-
category: 'Props',
|
136
|
-
type: { summary: 'string' },
|
137
|
-
},
|
138
|
-
control: 'text',
|
139
|
-
},
|
140
|
-
appearance: {
|
141
|
-
table: {
|
142
|
-
category: 'Props',
|
143
|
-
type: { summary: appearanceOptions.join(' | ') },
|
144
|
-
},
|
145
|
-
options: appearanceOptions,
|
146
|
-
control: { type: 'select' },
|
147
|
-
defaultValue: { summary: 'solid' },
|
148
|
-
},
|
149
|
-
size: {
|
150
|
-
table: {
|
151
|
-
category: 'Props',
|
152
|
-
type: { summary: sizeOptions.join(' | ') },
|
153
|
-
},
|
154
|
-
control: { type: 'select' },
|
155
|
-
options: sizeOptions,
|
156
|
-
defaultValue: { summary: 'medium' },
|
157
|
-
},
|
158
|
-
isColorMixed: {
|
159
|
-
table: {
|
160
|
-
category: 'Props',
|
161
|
-
type: { summary: 'boolean' },
|
162
|
-
},
|
163
|
-
description: "- \uCC28\uD2B8 \uAE30\uBCF8 \uC0C9\uC0C1 \uC2A4\uD0C0\uC77C \n - true\uC778 \uACBD\uC6B0 \uC0C9\uC0C1\uC774 \uAD50\uCC28\uB428, false\uC778 \uACBD\uC6B0 \uC0C9\uC0C1 \uC21C\uCC28\uC801\uC73C\uB85C \uC0AC\uC6A9",
|
164
|
-
control: 'readonly',
|
165
|
-
defaultValue: { summary: 'true' },
|
166
|
-
},
|
167
|
-
chartAppearance: {
|
168
|
-
table: {
|
169
|
-
category: 'Props',
|
170
|
-
type: { summary: 'solid | soft' },
|
171
|
-
},
|
172
|
-
options: ['solid', 'soft'],
|
173
|
-
control: 'readonly',
|
174
|
-
defaultValue: { summary: 'solid' },
|
175
|
-
description: "- \uCC28\uD2B8 \uAE30\uBCF8 \uC0C9\uC0C1 \uC2A4\uD0C0\uC77C \n - \uBC30\uACBD\uC0C9\uACFC \uD14C\uB450\uB9AC\uC0C9 \uAE30\uBCF8 \uC2A4\uD0C0\uC77C\uC744 \uC9C0\uC815\uD574\uC900\uB2E4",
|
176
|
-
},
|
177
|
-
datasets: {
|
178
|
-
name: 'datasets',
|
179
|
-
description: '차트에 사용할 데이터셋',
|
180
|
-
table: {
|
181
|
-
category: 'Props',
|
182
|
-
type: { summary: 'object' },
|
183
|
-
},
|
184
|
-
},
|
185
|
-
labels: {
|
186
|
-
description: '차트 위에 표시될 라벨들',
|
187
|
-
table: {
|
188
|
-
category: 'Props',
|
189
|
-
type: { summary: 'object' },
|
190
|
-
},
|
191
|
-
},
|
192
|
-
};
|
193
|
-
export var chartTitleArgTypes = {
|
194
|
-
title: {
|
195
|
-
description: '차트 타이틀',
|
196
|
-
table: {
|
197
|
-
category: 'Props',
|
198
|
-
type: { summary: 'object' },
|
199
|
-
},
|
200
|
-
},
|
201
|
-
'title.display': {
|
202
|
-
description: '타이틀 표시 여부',
|
203
|
-
table: {
|
204
|
-
category: 'Title Props',
|
205
|
-
type: { summary: 'boolean' },
|
206
|
-
},
|
207
|
-
control: { type: 'boolean', defaultValue: false },
|
208
|
-
defaultValue: { summary: false },
|
209
|
-
},
|
210
|
-
'title.text': {
|
211
|
-
description: '타이틀 내용',
|
212
|
-
table: {
|
213
|
-
category: 'Title Props',
|
214
|
-
type: { summary: 'string | string[]' },
|
215
|
-
},
|
216
|
-
control: { type: 'text' },
|
217
|
-
defaultValue: { summary: '' },
|
218
|
-
},
|
219
|
-
'title.position': {
|
220
|
-
description: '타이틀 위치',
|
221
|
-
table: {
|
222
|
-
category: 'Title Props',
|
223
|
-
type: { summary: 'top | right | bottom | left' },
|
224
|
-
},
|
225
|
-
control: { type: 'select' },
|
226
|
-
options: ['top', 'right', 'bottom', 'left'],
|
227
|
-
defaultValue: { summary: 'top' },
|
228
|
-
},
|
229
|
-
'title.align': {
|
230
|
-
description: '타이틀 정렬',
|
231
|
-
table: {
|
232
|
-
category: 'Title Props',
|
233
|
-
type: { summary: 'start | center | end' },
|
234
|
-
},
|
235
|
-
control: { type: 'select' },
|
236
|
-
options: ['start', 'center', 'end'],
|
237
|
-
defaultValue: { summary: 'top' },
|
238
|
-
},
|
239
|
-
'title.font.size': {
|
240
|
-
description: '타이틀 폰트 크기',
|
241
|
-
table: {
|
242
|
-
category: 'Title Props',
|
243
|
-
type: { summary: 'number' },
|
244
|
-
},
|
245
|
-
control: { type: 'text' },
|
246
|
-
defaultValue: { summary: 12 },
|
247
|
-
},
|
248
|
-
};
|
249
|
-
export var chartLegendArgTypes = {
|
250
|
-
legend: {
|
251
|
-
description: '차트 범례',
|
252
|
-
table: {
|
253
|
-
category: 'Props',
|
254
|
-
type: { summary: 'object' },
|
255
|
-
},
|
256
|
-
},
|
257
|
-
'legend.display': {
|
258
|
-
description: '범례 표시 여부',
|
259
|
-
table: {
|
260
|
-
category: 'Legend Props',
|
261
|
-
type: { summary: 'boolean' },
|
262
|
-
},
|
263
|
-
control: { type: 'boolean' },
|
264
|
-
defaultValue: { summary: true },
|
265
|
-
},
|
266
|
-
'legend.align': {
|
267
|
-
description: '범례 정렬',
|
268
|
-
table: {
|
269
|
-
category: 'Legend Props',
|
270
|
-
type: { summary: 'start | center | end' },
|
271
|
-
},
|
272
|
-
control: { type: 'select' },
|
273
|
-
options: ['start', 'center', 'end'],
|
274
|
-
defaultValue: { summary: 'center' },
|
275
|
-
},
|
276
|
-
'legend.position': {
|
277
|
-
description: '범례 위치',
|
278
|
-
table: {
|
279
|
-
category: 'Legend Props',
|
280
|
-
type: { summary: 'top | right | bottom | left' },
|
281
|
-
},
|
282
|
-
control: { type: 'select' },
|
283
|
-
options: ['top', 'right', 'bottom', 'left'],
|
284
|
-
defaultValue: { summary: 'top' },
|
285
|
-
},
|
286
|
-
'legend.maxHeight': {
|
287
|
-
description: '범례 최대 높이(픽셀)',
|
288
|
-
table: {
|
289
|
-
category: 'Legend Props',
|
290
|
-
type: { summary: 'number' },
|
291
|
-
},
|
292
|
-
control: { type: 'text' },
|
293
|
-
defaultValue: { summary: 12 },
|
294
|
-
},
|
295
|
-
'legend.maxWidth': {
|
296
|
-
description: '범례 최대 길이(픽셀)',
|
297
|
-
table: {
|
298
|
-
category: 'Legend Props',
|
299
|
-
type: { summary: 'number' },
|
300
|
-
},
|
301
|
-
control: { type: 'text' },
|
302
|
-
defaultValue: { summary: 12 },
|
303
|
-
},
|
304
|
-
'legend.title.display': {
|
305
|
-
description: '범례 타이틀 표시 여부',
|
306
|
-
table: {
|
307
|
-
category: 'Legend Props',
|
308
|
-
type: { summary: 'boolean' },
|
309
|
-
},
|
310
|
-
control: { type: 'boolean' },
|
311
|
-
defaultValue: { summary: false },
|
312
|
-
},
|
313
|
-
'legend.title.text': {
|
314
|
-
description: '범례 타이틀 문구',
|
315
|
-
table: {
|
316
|
-
category: 'Legend Props',
|
317
|
-
type: { summary: 'string' },
|
318
|
-
},
|
319
|
-
control: { type: 'text' },
|
320
|
-
defaultValue: { summary: '' },
|
321
|
-
},
|
322
|
-
'legend.labels.usePointStyle': {
|
323
|
-
description: '범례 스타일 사용여부',
|
324
|
-
table: {
|
325
|
-
category: 'Legend Props',
|
326
|
-
type: { summary: 'boolean' },
|
327
|
-
},
|
328
|
-
control: { type: 'boolean' },
|
329
|
-
defaultValue: { summary: 'false' },
|
330
|
-
},
|
331
|
-
'legend.labels.pointStyle': {
|
332
|
-
description: "- \uB77C\uBCA8 \uD3EC\uC778\uD2B8 \uC2A4\uD0C0\uC77C\n - usePointStyle\uAC00 true\uC778 \uACBD\uC6B0 \uC801\uC6A9",
|
333
|
-
table: {
|
334
|
-
category: 'Legend Props',
|
335
|
-
type: { summary: pointStyleList.join(' | ') },
|
336
|
-
},
|
337
|
-
control: { type: 'select' },
|
338
|
-
options: pointStyleList,
|
339
|
-
defaultValue: { summary: 'false' },
|
340
|
-
},
|
341
|
-
};
|
342
|
-
export var chartDatasetsArgsTypes = {
|
343
|
-
'datasets[n].data': {
|
344
|
-
description: '데이터셋 데이터',
|
345
|
-
table: {
|
346
|
-
category: 'Dataset Props',
|
347
|
-
type: { summary: 'object | object[] | number[] | string[]' },
|
348
|
-
},
|
349
|
-
},
|
350
|
-
'datasets[n].label': {
|
351
|
-
description: '데이터셋 라벨',
|
352
|
-
table: {
|
353
|
-
category: 'Dataset Props',
|
354
|
-
type: { summary: 'string' },
|
355
|
-
},
|
356
|
-
},
|
357
|
-
'datasets[n].backgroundColor': {
|
358
|
-
description: '데이터셋 배경 색상',
|
359
|
-
table: {
|
360
|
-
category: 'Dataset Props',
|
361
|
-
type: { summary: 'object' },
|
362
|
-
},
|
363
|
-
},
|
364
|
-
'datasets[n].borderColor': {
|
365
|
-
description: '데이터셋 테두리 색상',
|
366
|
-
table: {
|
367
|
-
category: 'Dataset Props',
|
368
|
-
type: { summary: 'object' },
|
369
|
-
},
|
370
|
-
},
|
371
|
-
'datasets[n].borderWidth': {
|
372
|
-
description: '데이터셋 테두리 두꼐',
|
373
|
-
table: {
|
374
|
-
category: 'Dataset Props',
|
375
|
-
type: { summary: 'number' },
|
376
|
-
},
|
377
|
-
},
|
378
|
-
'datasets[n].borderRadius': {
|
379
|
-
description: '데이터셋 둥글기',
|
380
|
-
table: {
|
381
|
-
category: 'Dataset Props',
|
382
|
-
type: { summary: 'number' },
|
383
|
-
},
|
384
|
-
},
|
385
|
-
'datasets[n].hoverBackgroundColor': {
|
386
|
-
description: '데이터셋 마우스 호버 시 배경 색상',
|
387
|
-
table: {
|
388
|
-
category: 'Dataset Props',
|
389
|
-
type: { summary: 'object' },
|
390
|
-
},
|
391
|
-
},
|
392
|
-
'datasets[n].hoverBorderColor': {
|
393
|
-
description: '데이터셋 마우스 호버 시 테두리 색상',
|
394
|
-
table: {
|
395
|
-
category: 'Dataset Props',
|
396
|
-
type: { summary: 'object' },
|
397
|
-
},
|
398
|
-
},
|
399
|
-
'datasets[n].hoverBorderWidth': {
|
400
|
-
description: '데이터셋 호버 시 테두리 두께',
|
401
|
-
table: {
|
402
|
-
category: 'Dataset Props',
|
403
|
-
type: { summary: 'number' },
|
404
|
-
},
|
405
|
-
},
|
406
|
-
'datasets[n].hoverBorderRadius': {
|
407
|
-
description: '데이터셋 호버 시 둥글기',
|
408
|
-
table: {
|
409
|
-
category: 'Dataset Props',
|
410
|
-
type: { summary: 'number' },
|
411
|
-
},
|
412
|
-
},
|
413
|
-
'datasets[n].order': {
|
414
|
-
description: '데이터셋 순서',
|
415
|
-
table: {
|
416
|
-
category: 'Dataset Props',
|
417
|
-
type: { summary: 'number' },
|
418
|
-
},
|
419
|
-
},
|
420
|
-
'datasets[n].hidden': {
|
421
|
-
description: '데이터셋 표시 여부',
|
422
|
-
table: {
|
423
|
-
category: 'Dataset Props',
|
424
|
-
type: { summary: 'boolean' },
|
425
|
-
},
|
426
|
-
},
|
427
|
-
'datasets[n].borderDash': {
|
428
|
-
description: "- \uCC28\uD2B8\uC758 \uAC01 \uC139\uC158\uC758 \uD14C\uB450\uB9AC\uB97C \uC810\uC120\uC73C\uB85C \uB9CC\uB4EC\n - ex)[5,5]: 5\uD53D\uC140 \uAE38\uC774\uC758 \uC120\uACFC 5\uD53D\uC140 \uAE38\uC774\uC758 \uAC04\uACA9",
|
429
|
-
table: {
|
430
|
-
category: 'Dataset Props',
|
431
|
-
type: { summary: 'number[]' },
|
432
|
-
},
|
433
|
-
},
|
434
|
-
'datasets[n].borderDashOffset': {
|
435
|
-
description: "- \uC810\uC120\uC758 \uC2DC\uC791 \uC704\uCE58 \uC870\uC815\n - ex) 2: \uC810\uC120\uC758 \uC2DC\uC791 \uC9C0\uC810\uC744 2\uD53D\uC140 \uC774\uB3D9",
|
436
|
-
table: {
|
437
|
-
category: 'Dataset Props',
|
438
|
-
type: { summary: 'number' },
|
439
|
-
},
|
440
|
-
},
|
441
|
-
'datasets[n].offset': {
|
442
|
-
description: '각 섹션 사이의 간격 조정',
|
443
|
-
table: {
|
444
|
-
category: 'Dataset Props',
|
445
|
-
type: { summary: 'number' },
|
446
|
-
},
|
447
|
-
},
|
448
|
-
'datasets[n].weight': {
|
449
|
-
description: '각 섹션의 상대적인 두께를 설정, 섹션이 차지하는 공간의 비율을 조정',
|
450
|
-
table: {
|
451
|
-
category: 'Dataset Props',
|
452
|
-
type: { summary: 'number' },
|
453
|
-
},
|
454
|
-
},
|
455
|
-
};
|
456
|
-
export var chartDatalabelsArgsTypes = {
|
457
|
-
datalabels: {
|
458
|
-
table: {
|
459
|
-
disable: true,
|
460
|
-
},
|
461
|
-
},
|
462
|
-
'datalabels.display': {
|
463
|
-
description: '차트 데이터 라벨 표시 여부',
|
464
|
-
table: {
|
465
|
-
category: 'Datalabels Props',
|
466
|
-
type: { summary: 'boolean' },
|
467
|
-
},
|
468
|
-
control: { type: 'boolean' },
|
469
|
-
defaultValue: { summary: false },
|
470
|
-
},
|
471
|
-
'datalabels.color': {
|
472
|
-
description: '차트 데이터 라벨 색상',
|
473
|
-
table: {
|
474
|
-
category: 'Datalabels Props',
|
475
|
-
type: { summary: 'string' },
|
476
|
-
},
|
477
|
-
control: { type: 'select' },
|
478
|
-
options: ['white', 'gray', 'black'],
|
479
|
-
defaultValue: { summary: 'gray' },
|
480
|
-
},
|
481
|
-
};
|
482
|
-
export var blackText = ['sky', 'mint', 'lime', 'yellow', 'amber', 'orange', 'white'];
|
483
|
-
export var primaryColorStyle = function () {
|
484
|
-
var color = {};
|
485
|
-
for (var i in ColorStyle) {
|
486
|
-
var darkColor = "".concat(i, "Dark");
|
487
|
-
color[i] = blackText.includes(i)
|
488
|
-
? "bg-".concat(ColorStyle[i], " text-slate-12 dark:bg-").concat(DarkColorStyle[darkColor], " dark:text-slateDark-12")
|
489
|
-
: "bg-".concat(ColorStyle[i], " text-white dark:bg-").concat(DarkColorStyle[darkColor], " dark:text-slateDark-1");
|
490
|
-
}
|
491
|
-
return color;
|
492
|
-
};
|
493
|
-
export var bgColorStyle = function () {
|
494
|
-
var color = {};
|
495
|
-
for (var i in ColorStyle) {
|
496
|
-
var darkColor = "".concat(i, "Dark");
|
497
|
-
color[i] = "bg-".concat(ColorStyle[i], " dark:bg-").concat(DarkColorStyle[darkColor]);
|
498
|
-
}
|
499
|
-
return color;
|
500
|
-
};
|
501
|
-
export var textColorStyle = function () {
|
502
|
-
var color = {};
|
503
|
-
for (var i in ColorStyle) {
|
504
|
-
var darkColor = "".concat(i, "Dark");
|
505
|
-
color[i] = "text-".concat(ColorStyle[i], " dark:text-").concat(DarkColorStyle[darkColor]);
|
506
|
-
}
|
507
|
-
return color;
|
508
|
-
};
|
509
|
-
export var borderColorStyle = function () {
|
510
|
-
var color = {};
|
511
|
-
for (var i in ColorStyle) {
|
512
|
-
var darkColor = "".concat(i, "Dark");
|
513
|
-
color[i] = "border-".concat(ColorStyle[i], " dark:border-").concat(DarkColorStyle[darkColor]);
|
514
|
-
}
|
515
|
-
return color;
|
516
|
-
};
|
517
|
-
var makeClassName = function (type, isClickable) {
|
518
|
-
var className = '';
|
519
|
-
className += "".concat(type.light.default, " ").concat(type.dark.default);
|
520
|
-
if (isClickable) {
|
521
|
-
className += " ".concat(type.light.hover, " ").concat(type.light.active, " ").concat(type.light.disable, " ").concat(type.dark.hover, " ").concat(type.dark.active, " ").concat(type.dark.disable);
|
522
|
-
}
|
523
|
-
return className;
|
524
|
-
};
|
525
|
-
export var appearanceStyle = function (type, color, isClickable) {
|
526
|
-
if (color === void 0) { color = MAIN_COLOR; }
|
527
|
-
if (isClickable === void 0) { isClickable = true; }
|
528
|
-
var darkColor = "".concat(color, "Dark");
|
529
|
-
var classic = {
|
530
|
-
light: {
|
531
|
-
default: "bg-".concat(color, "-9 border border-solid border-").concat(color, "-9 shadow-button-classic"),
|
532
|
-
hover: "hover:bg-".concat(color, "-10 hover:border-").concat(color, "-9"),
|
533
|
-
active: "active:bg-".concat(color, "-9 active:border-").concat(color, "-9"),
|
534
|
-
disable: "disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8",
|
535
|
-
},
|
536
|
-
dark: {
|
537
|
-
default: "dark:bg-".concat(darkColor, "-9 dark:border-").concat(darkColor, "-9 dark:shadow-button-dark-classic"),
|
538
|
-
hover: "dark:hover:bg-".concat(darkColor, "-10 dark:hover:border-").concat(darkColor, "-9"),
|
539
|
-
active: "dark:active:bg-".concat(darkColor, "-9 dark:active:border-").concat(darkColor, "-9"),
|
540
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8",
|
541
|
-
},
|
542
|
-
};
|
543
|
-
var solid = {
|
544
|
-
light: {
|
545
|
-
default: "bg-".concat(color, "-9 border-none"),
|
546
|
-
hover: "hover:bg-".concat(color, "-10 hover:border-none"),
|
547
|
-
active: "active:bg-".concat(color, "-10 active:border-none active:opacity-[.92]"),
|
548
|
-
disable: "disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8",
|
549
|
-
},
|
550
|
-
dark: {
|
551
|
-
default: "dark:bg-".concat(darkColor, "-9"),
|
552
|
-
hover: "dark:hover:bg-".concat(darkColor, "-10"),
|
553
|
-
active: "dark:active:bg-".concat(darkColor, "-10 dark:active:opacity-[.92]"),
|
554
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8",
|
555
|
-
},
|
556
|
-
};
|
557
|
-
var soft = {
|
558
|
-
light: {
|
559
|
-
default: "bg-".concat(color, "A-3 border-none text-").concat(color, "A-11"),
|
560
|
-
hover: "hover:bg-".concat(color, "A-4 hover:border-none hover:text-").concat(color, "A-11"),
|
561
|
-
active: "active:bg-".concat(color, "A-5 active:border-none active:text-").concat(color, "A-11 active:opacity-[.92]"),
|
562
|
-
disable: "disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8",
|
563
|
-
},
|
564
|
-
dark: {
|
565
|
-
default: "dark:bg-".concat(darkColor, "A-3 dark:text-").concat(darkColor, "A-11"),
|
566
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-4 dark:hover:text-").concat(darkColor, "A-11"),
|
567
|
-
active: "dark:active:bg-".concat(darkColor, "A-5 dark:active:text-").concat(darkColor, "A-11 dark:active:opacity-[.92]"),
|
568
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8",
|
569
|
-
},
|
570
|
-
};
|
571
|
-
var surface = {
|
572
|
-
light: {
|
573
|
-
default: "bg-".concat(color, "A-2 border border-solid border-").concat(color, "A-7 text-").concat(color, "A-11"),
|
574
|
-
hover: "hover:bg-".concat(color, "A-2 hover:border-").concat(color, "A-8 hover:text-").concat(color, "A-11"),
|
575
|
-
active: "active:bg-".concat(color, "A-3 active:border-").concat(color, "A-8 active:text-").concat(color, "A-11 active:opacity-[.92]"),
|
576
|
-
disable: "disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8",
|
577
|
-
},
|
578
|
-
dark: {
|
579
|
-
default: "dark:bg-".concat(darkColor, "A-2 dark:border-").concat(darkColor, "A-7 dark:text-").concat(darkColor, "A-11"),
|
580
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11"),
|
581
|
-
active: "dark:active:bg-".concat(darkColor, "A-3 dark:active:border-").concat(darkColor, "A-8 dark:active:text-").concat(darkColor, "A-11 dark:active:opacity-[.92]"),
|
582
|
-
disable: "dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8",
|
583
|
-
},
|
584
|
-
};
|
585
|
-
var outline = {
|
586
|
-
light: {
|
587
|
-
default: "bg-transparent border border-solid border-".concat(color, "A-8 text-").concat(color, "A-11"),
|
588
|
-
hover: "hover:bg-".concat(color, "A-2 hover:border-").concat(color, "A-8 hover:text-").concat(color, "A-11"),
|
589
|
-
active: "active:bg-".concat(color, "A-3 active:border-").concat(color, "A-8 active:text-").concat(color, "A-11"),
|
590
|
-
disable: "disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8",
|
591
|
-
},
|
592
|
-
dark: {
|
593
|
-
default: "dark:border-".concat(darkColor, "A-8 dark:bg-transparent dark:text-").concat(darkColor, "A-11"),
|
594
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11"),
|
595
|
-
active: "dark:active:bg-".concat(darkColor, "A-3 dark:active:border-").concat(darkColor, "A-8 dark:active:text-").concat(darkColor, "A-11 dark:active:opacity-[.92]"),
|
596
|
-
disable: "dark:disabled:border-slateDarkA-7 dark:disabled:bg-transparent dark:disabled:text-slateDarkA-8 ",
|
597
|
-
},
|
598
|
-
};
|
599
|
-
var ghost = {
|
600
|
-
light: {
|
601
|
-
default: "bg-transparent border-none text-".concat(color, "A-11"),
|
602
|
-
hover: "hover:bg-".concat(color, "A-3 hover:border-none hover:text-").concat(color, "A-11"),
|
603
|
-
active: "active:bg-".concat(color, "A-4 active:border-none active:text-").concat(color, "A-11 active:opacity-[.92]"),
|
604
|
-
disable: "disabled:bg-transparent disabled:border-none disabled:text-slateA-8",
|
605
|
-
},
|
606
|
-
dark: {
|
607
|
-
default: "dark:bg-transparent dark:text-".concat(darkColor, "A-11"),
|
608
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-3 dark:hover:text-").concat(darkColor, "A-11"),
|
609
|
-
active: "dark:active:bg-".concat(darkColor, "A-4 dark:active:text-").concat(darkColor, "A-11 dark:active:opacity-[.92]"),
|
610
|
-
disable: "dark:disabled:text-slateDarkA-8",
|
611
|
-
},
|
612
|
-
};
|
613
|
-
switch (type) {
|
614
|
-
case 'classic':
|
615
|
-
return makeClassName(classic, isClickable);
|
616
|
-
case 'solid':
|
617
|
-
return makeClassName(solid, isClickable);
|
618
|
-
case 'soft':
|
619
|
-
return makeClassName(soft, isClickable);
|
620
|
-
case 'surface':
|
621
|
-
return makeClassName(surface, isClickable);
|
622
|
-
case 'outline':
|
623
|
-
return makeClassName(outline, isClickable);
|
624
|
-
case 'ghost':
|
625
|
-
return makeClassName(ghost, isClickable);
|
626
|
-
default:
|
627
|
-
return '';
|
628
|
-
}
|
629
|
-
};
|
630
|
-
export var toggleAppearanceStyle = function (type, color, isClickable, stateOn) {
|
631
|
-
if (color === void 0) { color = MAIN_COLOR; }
|
632
|
-
if (isClickable === void 0) { isClickable = true; }
|
633
|
-
if (stateOn === void 0) { stateOn = ''; }
|
634
|
-
var darkColor = "".concat(color, "Dark");
|
635
|
-
var classic = {
|
636
|
-
light: {
|
637
|
-
default: "bg-".concat(color, "-9 border border-solid border-").concat(color, "-9 text-white shadow-button-classic"),
|
638
|
-
hover: "hover:bg-".concat(color, "-10 hover:border-").concat(color, "-9 hover:text-white ").concat(stateOn, "hover:bg-").concat(color, "-10 ").concat(stateOn, "hover:border-").concat(color, "-9 ").concat(stateOn, "hover:text-white"),
|
639
|
-
active: "".concat(stateOn, "bg-").concat(color, "-9 ").concat(stateOn, "border-").concat(color, "-9 ").concat(stateOn, "text-white"),
|
640
|
-
disable: "disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8",
|
641
|
-
},
|
642
|
-
dark: {
|
643
|
-
default: "dark:bg-".concat(darkColor, "-9 dark:border-").concat(darkColor, "-9 dark:text-slateDark-1"),
|
644
|
-
hover: "dark:hover:bg-".concat(darkColor, "-10 dark:hover:border-").concat(darkColor, "-9 dark:hover:text-slateDark-1 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "-10 dark:").concat(stateOn, "hover:border-").concat(darkColor, "-9 dark:").concat(stateOn, "hover:text-slateDark-1"),
|
645
|
-
active: "dark:".concat(stateOn, "bg-").concat(darkColor, "-9 dark:").concat(stateOn, "border-").concat(darkColor, "-9 dark:").concat(stateOn, "text-slateDark-1"),
|
646
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8",
|
647
|
-
},
|
648
|
-
};
|
649
|
-
var solid = {
|
650
|
-
light: {
|
651
|
-
default: "bg-".concat(color, "-9 border-none text-white"),
|
652
|
-
hover: "hover:bg-".concat(color, "-10 hover:border-none hover:text-white ").concat(stateOn, "hover:bg-").concat(color, "-10 ").concat(stateOn, "hover:border-none ").concat(stateOn, "hover:text-white"),
|
653
|
-
active: "".concat(stateOn, "bg-").concat(color, "-10 ").concat(stateOn, "border-none ").concat(stateOn, "text-white ").concat(stateOn, "opacity-[.92]"),
|
654
|
-
disable: "disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8",
|
655
|
-
},
|
656
|
-
dark: {
|
657
|
-
default: "dark:bg-".concat(darkColor, "-9 dark:text-slateDark-1"),
|
658
|
-
hover: "dark:hover:bg-".concat(darkColor, "-10 dark:hover:text-slateDark-1 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "-10 dark:").concat(stateOn, "hover:text-slateDark-1"),
|
659
|
-
active: "dark:".concat(stateOn, "bg-").concat(darkColor, "-10 dark:").concat(stateOn, "text-slateDark-1 dark:").concat(stateOn, "opacity-[.92]"),
|
660
|
-
disable: "dark:disabled:bg-slateDarkA-3 disabled:text-slateDarkA-8",
|
661
|
-
},
|
662
|
-
};
|
663
|
-
var soft = {
|
664
|
-
light: {
|
665
|
-
default: "bg-".concat(color, "A-3 border-none text-").concat(color, "A-11"),
|
666
|
-
hover: "hover:bg-".concat(color, "A-4 hover:border-none hover:text-").concat(color, "A-11 ").concat(stateOn, "hover:bg-").concat(color, "A-4 ").concat(stateOn, "hover:border-none ").concat(stateOn, "hover:text-").concat(color, "A-11"),
|
667
|
-
active: "".concat(stateOn, "bg-").concat(color, "A-5 ").concat(stateOn, "border-none ").concat(stateOn, "text-").concat(color, "A-11 ").concat(stateOn, "opacity-[.92]"),
|
668
|
-
disable: "disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8",
|
669
|
-
},
|
670
|
-
dark: {
|
671
|
-
default: "dark:bg-".concat(darkColor, "A-3 dark:text-").concat(darkColor, "A-11"),
|
672
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-4 dark:hover:text-").concat(darkColor, "A-11 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "A-4 dark:").concat(stateOn, "hover:text-").concat(darkColor, "A-11"),
|
673
|
-
active: "dark:".concat(stateOn, "bg-").concat(darkColor, "A-5 dark:").concat(stateOn, "text-").concat(darkColor, "A-11 dark:").concat(stateOn, "opacity-[.92]"),
|
674
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8",
|
675
|
-
},
|
676
|
-
};
|
677
|
-
var surface = {
|
678
|
-
light: {
|
679
|
-
default: "bg-".concat(color, "A-2 border border-solid border-").concat(color, "A-7 text-").concat(color, "A-11"),
|
680
|
-
hover: "hover:bg-".concat(color, "A-2 hover:border-").concat(color, "A-8 hover:text-").concat(color, "A-11 ").concat(stateOn, "hover:bg-").concat(color, "A-2 ").concat(stateOn, "hover:border-").concat(color, "A-8 ").concat(stateOn, "hover:text-").concat(color, "A-11"),
|
681
|
-
active: "".concat(stateOn, "bg-").concat(color, "A-3 ").concat(stateOn, "border-").concat(color, "A-8 ").concat(stateOn, "text-").concat(color, "A-11 ").concat(stateOn, "opacity-[.92]"),
|
682
|
-
disable: "disabled:bg-slatDarkeA-2 disabled:border-slateDarkA-6 disabled:text-slateDarkA-8",
|
683
|
-
},
|
684
|
-
dark: {
|
685
|
-
default: "dark:bg-".concat(darkColor, "A-2 dark:border-").concat(darkColor, "A-7 dark:text-").concat(darkColor, "A-11"),
|
686
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "A-2 dark:").concat(stateOn, "hover:border-").concat(darkColor, "A-8 dark:").concat(stateOn, "hover:text-").concat(darkColor, "A-11"),
|
687
|
-
active: "dark:".concat(stateOn, "bg-").concat(darkColor, "A-3 dark:").concat(stateOn, "border-").concat(darkColor, "A-8 dark:").concat(stateOn, "text-").concat(darkColor, "A-11 dark:").concat(stateOn, "opacity-[.92]"),
|
688
|
-
disable: "dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8",
|
689
|
-
},
|
690
|
-
};
|
691
|
-
var outline = {
|
692
|
-
light: {
|
693
|
-
default: "bg-transparent border border-solid border-".concat(color, "A-8 text-").concat(color, "A-11"),
|
694
|
-
hover: "hover:bg-".concat(color, "A-2 hover:border-").concat(color, "A-8 hover:text-").concat(color, "A-11 ").concat(stateOn, "hover:bg-").concat(color, "A-2 ").concat(stateOn, "hover:border-").concat(color, "A-8 ").concat(stateOn, "hover:text-").concat(color, "A-11"),
|
695
|
-
active: "".concat(stateOn, "bg-").concat(color, "A-3 ").concat(stateOn, "border-").concat(color, "A-8 ").concat(stateOn, "text-").concat(color, "A-11"),
|
696
|
-
disable: "disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8",
|
697
|
-
},
|
698
|
-
dark: {
|
699
|
-
default: "dark:border-".concat(darkColor, "A-8 dark:text-").concat(darkColor, "A-11"),
|
700
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "A-2 dark:").concat(stateOn, "hover:border-").concat(darkColor, "A-8 dark:").concat(stateOn, "hover:text-").concat(darkColor, "A-11"),
|
701
|
-
active: "dark:".concat(stateOn, "bg-").concat(darkColor, "A-3 dark:").concat(stateOn, "border-").concat(darkColor, "A-8 dark:").concat(stateOn, "text-").concat(darkColor, "A-11 dark:").concat(stateOn, "opacity-[.92]"),
|
702
|
-
disable: "dark:disabled:border-slateDarkA-7 dark:disabled:text-slateDarkA-8",
|
703
|
-
},
|
704
|
-
};
|
705
|
-
var ghost = {
|
706
|
-
light: {
|
707
|
-
default: "bg-transparent border-none text-".concat(color, "A-11"),
|
708
|
-
hover: "hover:bg-".concat(color, "A-3 hover:border-none hover:text-").concat(color, "A-11 ").concat(stateOn, "hover:bg-").concat(color, "A-3 ").concat(stateOn, "hover:border-none ").concat(stateOn, "hover:text-").concat(color, "A-11"),
|
709
|
-
active: "".concat(stateOn, "bg-").concat(color, "A-4 ").concat(stateOn, "border-none ").concat(stateOn, "text-").concat(color, "A-11 ").concat(stateOn, "opacity-[.92]"),
|
710
|
-
disable: "disabled:bg-transparent disabled:border-none disabled:text-slateA-8",
|
711
|
-
},
|
712
|
-
dark: {
|
713
|
-
default: "dark:bg-transparent dark:text-".concat(darkColor, "A-11"),
|
714
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-3 dark:hover:text-").concat(darkColor, "A-11 dark:").concat(stateOn, "hover:bg-").concat(darkColor, "A-3 dark:").concat(stateOn, "hover:text-").concat(darkColor, "A-11"),
|
715
|
-
active: "dark:".concat(stateOn, "bg-").concat(darkColor, "A-4 dark:").concat(stateOn, "text-").concat(darkColor, "A-11 dark:").concat(stateOn, "opacity-[.92]"),
|
716
|
-
disable: "dark:disabled:text-slateDarkA-8",
|
717
|
-
},
|
718
|
-
};
|
719
|
-
switch (type) {
|
720
|
-
case 'classic':
|
721
|
-
return makeClassName(classic, isClickable);
|
722
|
-
case 'solid':
|
723
|
-
return makeClassName(solid, isClickable);
|
724
|
-
case 'soft':
|
725
|
-
return makeClassName(soft, isClickable);
|
726
|
-
case 'surface':
|
727
|
-
return makeClassName(surface, isClickable);
|
728
|
-
case 'outline':
|
729
|
-
return makeClassName(outline, isClickable);
|
730
|
-
case 'ghost':
|
731
|
-
return makeClassName(ghost, isClickable);
|
732
|
-
default:
|
733
|
-
return '';
|
734
|
-
}
|
735
|
-
};
|
736
|
-
export var menuItemAppearanceStyle = function (type, color) {
|
737
|
-
if (color === void 0) { color = MAIN_COLOR; }
|
738
|
-
var appearanceStyle = '';
|
739
|
-
if (type === 'solid') {
|
740
|
-
appearanceStyle = "hover:bg-".concat(color, "-9 dark:hover:bg-").concat(color, "Dark-9 ");
|
741
|
-
appearanceStyle += blackText.includes(color)
|
742
|
-
? "hover:text-slateA-11 dark:hover:text-white"
|
743
|
-
: "hover:text-white dark:hover:text-white";
|
744
|
-
}
|
745
|
-
if (type === 'soft') {
|
746
|
-
appearanceStyle = "hover:bg-".concat(color, "A-4 dark:hover-bg-").concat(color, "DarkA-4");
|
747
|
-
}
|
748
|
-
if (type === 'ghost') {
|
749
|
-
appearanceStyle = "hover:bg-".concat(color, "-3 dark:hover:bg-").concat(color, "Dark-3");
|
750
|
-
}
|
751
|
-
return appearanceStyle;
|
752
|
-
};
|
753
|
-
export var checkboxAppearanceStyle = function (type, color, indeterminate) {
|
754
|
-
if (color === void 0) { color = MAIN_COLOR; }
|
755
|
-
var darkColor = "".concat(color, "Dark");
|
756
|
-
var surface = {
|
757
|
-
light: {
|
758
|
-
default: "border data-[state=unchecked]:bg-transparent data-[state=unchecked]:border-slateA-7\n data-[state=checked]:bg-".concat(color, "-9 data-[state=checked]:border-none data-[state=checked]:text-slate-1"),
|
759
|
-
hover: "hover:data-[state=unchecked]:bg-transparent hover:data-[state=unchecked]:border-slateA-8\n hover:data-[state=checked]:bg-".concat(color, "-10 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-white"),
|
760
|
-
active: "active:data-[state=unchecked]:bg-transparent active:data-[state=unchecked]:border-slateA-9\n active:data-[state=checked]:bg-".concat(color, "-10 active:data-[state=checked]:border-none active:data-[state=checked]:text-white"),
|
761
|
-
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",
|
762
|
-
},
|
763
|
-
dark: {
|
764
|
-
default: "dark:data-[state=unchecked]:border-slateDarkA-7\n dark:data-[state=checked]:bg-".concat(darkColor, "-9 dark:data-[state=checked]:text-#111113"),
|
765
|
-
hover: "dark:hover:data-[state=unchecked]:border-slateDarkA-8\n dark:hover:data-[state=checked]:bg-".concat(darkColor, "-10 dark:hover:data-[state=checked]:text-#111113"),
|
766
|
-
active: "dark:active:data-[state=unchecked]:border-slateDarkA-9\n dark:active:data-[state=checked]:bg-".concat(darkColor, "-10 dark:active:data-[state=checked]:text-#111113"),
|
767
|
-
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",
|
768
|
-
},
|
769
|
-
};
|
770
|
-
var soft = {
|
771
|
-
light: {
|
772
|
-
default: "data-[state=unchecked]:bg-".concat(color, "A-5 data-[state=unchecked]:border-none\n data-[state=checked]:bg-").concat(color, "A-5 data-[state=checked]:border-none data-[state=checked]:text-").concat(color, "-11"),
|
773
|
-
hover: "hover:data-[state=unchecked]:bg-".concat(color, "A-6 hover:data-[state=unchecked]:border-none\n hover:data-[state=checked]:bg-").concat(color, "A-6 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-").concat(color, "-11"),
|
774
|
-
active: "active:data-[state=unchecked]:bg-".concat(color, "A-7 active:data-[state=unchecked]:border-none\n active:data-[state=checked]:bg-").concat(color, "A-7 active:data-[state=checked]:border-none active:data-[state=checked]:text-").concat(color, "-11"),
|
775
|
-
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",
|
776
|
-
},
|
777
|
-
dark: {
|
778
|
-
default: "dark:data-[state=unchecked]:bg-".concat(darkColor, "A-5\n dark:data-[state=checked]:bg-").concat(darkColor, "A-5 dark:data-[state=checked]:text-").concat(darkColor, "-11"),
|
779
|
-
hover: "dark:hover:data-[state=unchecked]:bg-".concat(darkColor, "A-6\n dark:hover:data-[state=checked]:bg-").concat(darkColor, "A-6 dark:hover:data-[state=checked]:text-").concat(darkColor, "-11"),
|
780
|
-
active: "dark:active:data-[state=unchecked]:bg-".concat(darkColor, "A-7\n dark:active:data-[state=checked]:bg-").concat(darkColor, "A-7 dark:active:data-[state=checked]:text-").concat(darkColor, "-11"),
|
781
|
-
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",
|
782
|
-
},
|
783
|
-
};
|
784
|
-
var indeterminateSurface = {
|
785
|
-
light: {
|
786
|
-
default: "border bg-".concat(color, "A-2 border-").concat(color, "A-7 text-").concat(color, "A-11"),
|
787
|
-
hover: "hover:bg-".concat(color, "A-2 hover:border-").concat(color, "A-8 hover:text-").concat(color, "A-11"),
|
788
|
-
active: "active:bg-".concat(color, "A-3 active:border-").concat(color, "A-8 active:text-").concat(color, "A-11"),
|
789
|
-
disable: "disabled:bg-slateA-3 disabled:border-slateA-6 disabled:text-slateA-8",
|
790
|
-
},
|
791
|
-
dark: {
|
792
|
-
default: "dark:bg-".concat(darkColor, "A-2 dark:border-").concat(darkColor, "A-7 dark:text-").concat(darkColor, "A-11"),
|
793
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-2 dark:hover:border-").concat(darkColor, "A-8 dark:hover:text-").concat(darkColor, "A-11"),
|
794
|
-
active: "dark:active:bg-".concat(darkColor, "A-3 dark:active:border-").concat(darkColor, "A-8 dark:active:text-").concat(darkColor, "A-11"),
|
795
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8",
|
796
|
-
},
|
797
|
-
};
|
798
|
-
var indeterminateSoft = {
|
799
|
-
light: {
|
800
|
-
default: "border bg-transparent border-".concat(color, "A-6 text-").concat(color, "A-11"),
|
801
|
-
hover: "hover:bg-transparent hover:border-".concat(color, "A-6 hover:text-").concat(color, "A-11"),
|
802
|
-
active: "active:bg-transparent active:border-".concat(color, "A-6 active:text-").concat(color, "A-11"),
|
803
|
-
disable: "disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8",
|
804
|
-
},
|
805
|
-
dark: {
|
806
|
-
default: "dark:border-".concat(darkColor, "A-6 dark:text-").concat(darkColor, "A-11"),
|
807
|
-
hover: "dark:hover:border-".concat(darkColor, "A-6 dark:hover:text-").concat(darkColor, "A-11"),
|
808
|
-
active: "dark:active:border-".concat(darkColor, "A-6 dark:active:text-").concat(darkColor, "A-11"),
|
809
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8",
|
810
|
-
},
|
811
|
-
};
|
812
|
-
switch (type) {
|
813
|
-
case 'classic':
|
814
|
-
return indeterminate
|
815
|
-
? makeClassName(indeterminateSurface, true)
|
816
|
-
: "".concat(makeClassName(surface, true), " 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");
|
817
|
-
case 'soft':
|
818
|
-
return indeterminate ? makeClassName(indeterminateSoft, true) : makeClassName(soft, true);
|
819
|
-
case 'surface':
|
820
|
-
return indeterminate
|
821
|
-
? makeClassName(indeterminateSurface, true)
|
822
|
-
: makeClassName(surface, true);
|
823
|
-
default:
|
824
|
-
return makeClassName(surface, true);
|
825
|
-
}
|
826
|
-
};
|
827
|
-
export var selectAppearanceStyle = function (type, color) {
|
828
|
-
var darkColor = "".concat(color, "Dark");
|
829
|
-
var surface = {
|
830
|
-
light: {
|
831
|
-
default: "bg-[#FFFFFF] border border-slateA-7 data-placeholder:text-slateA-10 text-slateA-12",
|
832
|
-
hover: "hover:bg-[#FFFFFF] hover:border hover:border-slateA-8 hover:text-slateA-10",
|
833
|
-
active: "active:bg-".concat(color, "A-3 active:border-").concat(color, "A-8 active:text-slateA-10 active:opacity-[.92]"),
|
834
|
-
disable: "disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8",
|
835
|
-
},
|
836
|
-
dark: {
|
837
|
-
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",
|
838
|
-
hover: "dark:hover:bg-[#111113] dark:hover:border dark:hover:border-slateDarkA-8 dark:hover:text-slateDarkA-10",
|
839
|
-
active: "dark:active:bg-".concat(darkColor, "A-3 dark:active:border dark:active:border-").concat(darkColor, "A-8 dark:active:text-slateDarkA-10 dark:active:opacity-[.92]"),
|
840
|
-
disable: "dark:disabled:bg-slateDarkA-2 dark:disabled:border dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8",
|
841
|
-
},
|
842
|
-
};
|
843
|
-
var classic = {
|
844
|
-
light: {
|
845
|
-
default: "bg-slateA-2 border border-slate-4 data-placeholder:text-slateA-10 text-slateA-12",
|
846
|
-
hover: "hover:bg-slateA-3 hover:border hover:border-slate-4 hover:text-slateA-10",
|
847
|
-
active: "active:bg-slateA-4 active:border active:border-slate-6 active:text-slateA-10",
|
848
|
-
disable: "disabled:bg-slateA-3 disabled:border disabled:border-slate-4 disabled:text-slateA-8",
|
849
|
-
},
|
850
|
-
dark: {
|
851
|
-
default: "dark:bg-slateDarkA-2 dark:border-slateDark-4 dark:data-placeholder:text-slateDarkA-10 dark:text-slateDarkA-12",
|
852
|
-
hover: "dark:hover:bg-slateDarkA-3 dark:hover:border-slateDark-4 dark:hover:text-slateDarkA-10",
|
853
|
-
active: "dark:active:bg-slateDarkA-4 dark:active:border-slateDark-6 dark:active:text-slateDarkA-10",
|
854
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8",
|
855
|
-
},
|
856
|
-
};
|
857
|
-
var soft = {
|
858
|
-
light: {
|
859
|
-
default: "bg-".concat(color, "A-3 border-none data-placeholder:text-").concat(color, "A-12/[.5] text-").concat(color, "A-12"),
|
860
|
-
hover: "hover:bg-".concat(color, "A-4 hover:border-none hover:text-").concat(color, "A-12/[.5]"),
|
861
|
-
active: "active:bg-".concat(color, "A-5 active:border-none active:text-").concat(color, "A-12/[.5] active:opacity-[.92]"),
|
862
|
-
disable: "disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8",
|
863
|
-
},
|
864
|
-
dark: {
|
865
|
-
default: "dark:bg-".concat(darkColor, "A-3 dark:border-none dark:data-placeholder:text-").concat(darkColor, "A-12/[.5] dark:text-").concat(darkColor, "A-12 "),
|
866
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-4 dark:hover:border-none dark:hover:text-").concat(darkColor, "A-12/[.5]"),
|
867
|
-
active: "dark:active:bg-".concat(darkColor, "A-5 dark:active:border-none dark:active:text-").concat(darkColor, "A-12/[.5] dark:active:opacity-[.92]"),
|
868
|
-
disable: "dark:disabled:bg-slateDarkA-3 dark:disabled:border-none dark:disabled:text-slateDarkA-8",
|
869
|
-
},
|
870
|
-
};
|
871
|
-
var ghost = {
|
872
|
-
light: {
|
873
|
-
default: "bg-transparent border-none data-placeholder:text-".concat(color, "A-12/[.5] text-").concat(color, "A-12"),
|
874
|
-
hover: "hover:bg-".concat(color, "A-3 hover:border-none hover:text-").concat(color, "A-1/[.5]"),
|
875
|
-
active: "active:bg-".concat(color, "A-4 active:border-none active:text-").concat(color, "A-12/[.5] active:opacity-[.92]"),
|
876
|
-
disable: "disabled:bg-transparent disabled:border-none disabled:text-slateA-8",
|
877
|
-
},
|
878
|
-
dark: {
|
879
|
-
default: "dark:bg-transparent dark:border-none dark:data-placeholder:text-".concat(darkColor, "A-12/[.5] dark:text-").concat(darkColor, "A-12"),
|
880
|
-
hover: "dark:hover:bg-".concat(darkColor, "A-3 dark:hover:border-none dark:hover:text-").concat(darkColor, "A-12/[.5]"),
|
881
|
-
active: "dark:active:bg-".concat(darkColor, "A-4 dark:active:border-none dark:active:text-").concat(darkColor, "A-12/[.5] dark:active:opacity-[.92]"),
|
882
|
-
disable: "dark:disabled:text-slateDarkA-8 dark:disabled:border-none",
|
883
|
-
},
|
884
|
-
};
|
885
|
-
var makeClassName = function (type) {
|
886
|
-
var className = '';
|
887
|
-
className += "".concat(type.light.default, " ").concat(type.dark.default, " ").concat(type.light.hover, " ").concat(type.light.active, " ").concat(type.light.disable, " ").concat(type.dark.hover, " ").concat(type.dark.active, " ").concat(type.dark.disable);
|
888
|
-
return className;
|
889
|
-
};
|
890
|
-
switch (type) {
|
891
|
-
case 'classic':
|
892
|
-
return makeClassName(classic);
|
893
|
-
case 'soft':
|
894
|
-
return makeClassName(soft);
|
895
|
-
case 'surface':
|
896
|
-
return makeClassName(surface);
|
897
|
-
case 'ghost':
|
898
|
-
return makeClassName(ghost);
|
899
|
-
default:
|
900
|
-
return '';
|
901
|
-
}
|
902
|
-
};
|