react-restyle-components 0.3.84 → 0.3.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/core-components/src/components/Accordion/AccordionSection/AccordionSection.d.ts +4 -0
- package/lib/src/core-components/src/components/Accordion/AccordionSection/AccordionSection.d.ts.map +1 -1
- package/lib/src/core-components/src/components/Accordion/AccordionSection/AccordionSection.js +3 -3
- package/lib/src/core-components/src/components/Accordion/AccordionSection/Header.js +2 -2
- package/lib/src/core-components/src/components/Accordion/AccordionSection/elements.d.ts +4 -1
- package/lib/src/core-components/src/components/Accordion/AccordionSection/elements.d.ts.map +1 -1
- package/lib/src/core-components/src/components/Accordion/AccordionSection/elements.js +31 -20
- package/lib/src/core-components/src/core-components/StateLayer.d.ts.map +1 -1
- package/lib/src/core-components/src/core-components/StateLayer.js +3 -2
- package/lib/src/core-components/src/index.css +0 -1
- package/lib/src/core-components/src/index.d.ts +0 -1
- package/lib/src/core-components/src/index.d.ts.map +1 -1
- package/lib/src/core-components/src/index.js +0 -1
- package/lib/src/core-components/src/tc.global.css +23 -2
- package/lib/src/core-components/src/tc.module.css +1 -2
- package/lib/src/core-components/src/utils/designTokens.d.ts +36 -0
- package/lib/src/core-components/src/utils/designTokens.d.ts.map +1 -0
- package/lib/src/core-components/src/utils/designTokens.js +42 -0
- package/lib/src/core-components/src/utils/index.d.ts +1 -0
- package/lib/src/core-components/src/utils/index.d.ts.map +1 -1
- package/lib/src/core-components/src/utils/index.js +1 -0
- package/lib/src/core-components/tailwind.config.js +331 -0
- package/package.json +1 -1
- package/lib/src/core-components/src/assets/css/tokens.css +0 -416
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
const plugin = require('tailwindcss/plugin');
|
|
3
|
+
const defaultTheme = require('tailwindcss/defaultTheme');
|
|
4
|
+
module.exports = {
|
|
5
|
+
content: ['./public/**/*.html', './src/**/*.{js,jsx,ts,tsx,vue}'],
|
|
6
|
+
darkMode: 'class',
|
|
7
|
+
theme: {
|
|
8
|
+
extend: {
|
|
9
|
+
screens: {
|
|
10
|
+
...defaultTheme.screens,
|
|
11
|
+
sm: {min: '0px', max: '767px'},
|
|
12
|
+
md: {min: '768px', max: '2000px'},
|
|
13
|
+
// Breakpoint tokens from tokens.css
|
|
14
|
+
'token-xs': '20rem',
|
|
15
|
+
'token-sm': '23.4375rem',
|
|
16
|
+
'token-md': '48rem',
|
|
17
|
+
'token-lg': '64rem',
|
|
18
|
+
'token-xl': '80rem',
|
|
19
|
+
'token-xxl': '90rem',
|
|
20
|
+
},
|
|
21
|
+
colors: {
|
|
22
|
+
current: 'currentColor',
|
|
23
|
+
transparent: 'transparent',
|
|
24
|
+
'text-base': '#ffffff',
|
|
25
|
+
primary: '#454cbf',
|
|
26
|
+
secondary: '#c57c85',
|
|
27
|
+
accent: '#422a68',
|
|
28
|
+
black: '#000000',
|
|
29
|
+
grey: '#6A727F',
|
|
30
|
+
grey_0: '#4a4a4a',
|
|
31
|
+
grey_1: '#707070',
|
|
32
|
+
light_1: '#ebebeb',
|
|
33
|
+
white: '#ffffff',
|
|
34
|
+
background: '#ffffff',
|
|
35
|
+
light_white: '#f4f6f6',
|
|
36
|
+
red: {
|
|
37
|
+
DEFAULT: '#ff0000',
|
|
38
|
+
...defaultTheme.colors.red,
|
|
39
|
+
},
|
|
40
|
+
orange: '#ffae1a',
|
|
41
|
+
mono: '#754c00',
|
|
42
|
+
'border-red': '#ff0000',
|
|
43
|
+
bgGrey: '#808080',
|
|
44
|
+
stroke: '#E2E8F0',
|
|
45
|
+
boxdark: '#24303F',
|
|
46
|
+
'boxdark-2': '#1A222C',
|
|
47
|
+
strokedark: '#2E3A47',
|
|
48
|
+
content: '#000000',
|
|
49
|
+
'form-strokedark': '#3d4d60',
|
|
50
|
+
'form-input': '#1d2a39',
|
|
51
|
+
'meta-1': '#DC3545',
|
|
52
|
+
'meta-2': '#EFF2F7',
|
|
53
|
+
'meta-3': '#10B981',
|
|
54
|
+
'meta-4': '#313D4A',
|
|
55
|
+
'meta-5': '#259AE6',
|
|
56
|
+
'meta-6': '#FFBA00',
|
|
57
|
+
'meta-7': '#FF6766',
|
|
58
|
+
'meta-8': '#F0950C',
|
|
59
|
+
'meta-9': '#E5E7EB',
|
|
60
|
+
success: '#219653',
|
|
61
|
+
danger: '#D34053',
|
|
62
|
+
warning: '#FFA70B',
|
|
63
|
+
// Design token colors - extending existing colors
|
|
64
|
+
'token-surface': 'var(--surface)',
|
|
65
|
+
'token-on-surface': 'var(--on-surface)',
|
|
66
|
+
'token-primary': 'var(--primary)',
|
|
67
|
+
'token-on-primary': 'var(--on-primary)',
|
|
68
|
+
'token-outline': 'var(--outline)',
|
|
69
|
+
'token-outline-soft': 'var(--outline-soft)',
|
|
70
|
+
'token-success': 'var(--status-success)',
|
|
71
|
+
'token-error': 'var(--status-error)',
|
|
72
|
+
'token-warning': 'var(--status-warning)',
|
|
73
|
+
},
|
|
74
|
+
fontFamily: {
|
|
75
|
+
arimaRegular: ['ArimaRegular'],
|
|
76
|
+
},
|
|
77
|
+
fontSize: {
|
|
78
|
+
'title-xxl': ['44px', '55px'],
|
|
79
|
+
'title-xl': ['36px', '45px'],
|
|
80
|
+
'title-xl2': ['33px', '45px'],
|
|
81
|
+
'title-lg': ['28px', '35px'],
|
|
82
|
+
'title-md': ['24px', '30px'],
|
|
83
|
+
'title-md2': ['26px', '30px'],
|
|
84
|
+
'title-sm': ['20px', '26px'],
|
|
85
|
+
'title-xsm': ['18px', '24px'],
|
|
86
|
+
},
|
|
87
|
+
spacing: {
|
|
88
|
+
'8xl': '96rem',
|
|
89
|
+
'9xl': '128rem',
|
|
90
|
+
// Design token spacing - extending existing spacing
|
|
91
|
+
'token-000': '0rem',
|
|
92
|
+
'token-025': '0.125rem',
|
|
93
|
+
'token-050': '0.25rem',
|
|
94
|
+
'token-075': '0.375rem',
|
|
95
|
+
'token-100': '0.5rem',
|
|
96
|
+
'token-150': '0.75rem',
|
|
97
|
+
'token-200': '1rem',
|
|
98
|
+
'token-300': '1.5rem',
|
|
99
|
+
'token-400': '2rem',
|
|
100
|
+
'token-500': '2.5rem',
|
|
101
|
+
'token-600': '3rem',
|
|
102
|
+
'token-800': '4rem',
|
|
103
|
+
'token-1000': '5rem',
|
|
104
|
+
'token-1200': '6rem',
|
|
105
|
+
},
|
|
106
|
+
borderRadius: {
|
|
107
|
+
'4xl': '2rem',
|
|
108
|
+
'100px': '100px',
|
|
109
|
+
// Design token border radius - extending existing
|
|
110
|
+
'token-025': '0.125rem',
|
|
111
|
+
'token-050': '0.25rem',
|
|
112
|
+
'token-100': '0.5rem',
|
|
113
|
+
'token-200': '1rem',
|
|
114
|
+
'token-300': '1.5rem',
|
|
115
|
+
'token-400': '2rem',
|
|
116
|
+
'token-none': '0rem',
|
|
117
|
+
'token-round': '10000rem',
|
|
118
|
+
},
|
|
119
|
+
height: {
|
|
120
|
+
'screen/2': '50vh',
|
|
121
|
+
screen98: '98vh',
|
|
122
|
+
screen96: '96vh',
|
|
123
|
+
screen94: '94vh',
|
|
124
|
+
screen92: '92vh',
|
|
125
|
+
'screen/3': 'calc(100vh / 3)',
|
|
126
|
+
'screen/4': 'calc(100vh / 4)',
|
|
127
|
+
'screen/5': 'calc(100vh / 5)',
|
|
128
|
+
},
|
|
129
|
+
zIndex: {
|
|
130
|
+
999_999: '999999',
|
|
131
|
+
99_999: '99999',
|
|
132
|
+
9999: '9999',
|
|
133
|
+
999: '999',
|
|
134
|
+
99: '99',
|
|
135
|
+
9: '9',
|
|
136
|
+
1: '1',
|
|
137
|
+
},
|
|
138
|
+
transitionProperty: {width: 'width', stroke: 'stroke'},
|
|
139
|
+
borderWidth: {
|
|
140
|
+
6: '6px',
|
|
141
|
+
},
|
|
142
|
+
opacity: {
|
|
143
|
+
// Design token opacity - extending existing opacity
|
|
144
|
+
'token-04': '4%',
|
|
145
|
+
'token-08': '8%',
|
|
146
|
+
'token-10': '10%',
|
|
147
|
+
'token-12': '12%',
|
|
148
|
+
'token-20': '20%',
|
|
149
|
+
'token-30': '30%',
|
|
150
|
+
'token-40': '40%',
|
|
151
|
+
'token-50': '50%',
|
|
152
|
+
'token-60': '60%',
|
|
153
|
+
'token-70': '70%',
|
|
154
|
+
'token-75': '75%',
|
|
155
|
+
'token-80': '80%',
|
|
156
|
+
'token-90': '90%',
|
|
157
|
+
'token-100': '100%',
|
|
158
|
+
'token-none': '0%',
|
|
159
|
+
},
|
|
160
|
+
strokeWidth: {
|
|
161
|
+
// Design token stroke - from tokens.css
|
|
162
|
+
'token-card': '0.0625rem',
|
|
163
|
+
'token-selected-card-hover': '0.125rem',
|
|
164
|
+
'token-divider': '0.0625rem',
|
|
165
|
+
},
|
|
166
|
+
boxShadow: {
|
|
167
|
+
default: '0px 8px 13px -3px rgba(0, 0, 0, 0.07)',
|
|
168
|
+
card: '0px 1px 3px rgba(0, 0, 0, 0.12)',
|
|
169
|
+
'card-2': '0px 1px 2px rgba(0, 0, 0, 0.05)',
|
|
170
|
+
switcher:
|
|
171
|
+
'0px 2px 4px rgba(0, 0, 0, 0.2), inset 0px 2px 2px #FFFFFF, inset 0px -1px 1px rgba(0, 0, 0, 0.1)',
|
|
172
|
+
'switch-1': '0px 0px 5px rgba(0, 0, 0, 0.15)',
|
|
173
|
+
1: '0px 1px 3px rgba(0, 0, 0, 0.08)',
|
|
174
|
+
2: '0px 1px 4px rgba(0, 0, 0, 0.12)',
|
|
175
|
+
3: '0px 1px 5px rgba(0, 0, 0, 0.14)',
|
|
176
|
+
4: '0px 4px 10px rgba(0, 0, 0, 0.12)',
|
|
177
|
+
5: '0px 1px 1px rgba(0, 0, 0, 0.15)',
|
|
178
|
+
6: '0px 3px 15px rgba(0, 0, 0, 0.1)',
|
|
179
|
+
7: '-5px 0 0 #313D4A, 5px 0 0 #313D4A',
|
|
180
|
+
8: '1px 0 0 #313D4A, -1px 0 0 #313D4A, 0 1px 0 #313D4A, 0 -1px 0 #313D4A, 0 3px 13px rgb(0 0 0 / 8%)',
|
|
181
|
+
},
|
|
182
|
+
dropShadow: {
|
|
183
|
+
1: '0px 1px 0px #E2E8F0',
|
|
184
|
+
2: '0px 1px 4px rgba(0, 0, 0, 0.12)',
|
|
185
|
+
},
|
|
186
|
+
keyframes: {
|
|
187
|
+
rotating: {
|
|
188
|
+
'0%, 100%': {transform: 'rotate(360deg)'},
|
|
189
|
+
'50%': {transform: 'rotate(0deg)'},
|
|
190
|
+
},
|
|
191
|
+
flip: {
|
|
192
|
+
to: {
|
|
193
|
+
transform: 'rotate(360deg)',
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
rotate: {
|
|
197
|
+
to: {
|
|
198
|
+
transform: 'rotate(90deg)',
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
animation: {
|
|
203
|
+
'ping-once': 'ping 5s cubic-bezier(0, 0, 0.2, 1)',
|
|
204
|
+
rotating: 'rotating 30s linear infinite',
|
|
205
|
+
'spin-1.5': 'spin 1.5s linear infinite',
|
|
206
|
+
'spin-2': 'spin 2s linear infinite',
|
|
207
|
+
'spin-3': 'spin 3s linear infinite',
|
|
208
|
+
flip: 'flip 6s infinite steps(2, end)',
|
|
209
|
+
rotate: 'rotate 3s linear infinite both',
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
borderWidth: {
|
|
213
|
+
DEFAULT: '1px',
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
styles: {
|
|
217
|
+
colors: {
|
|
218
|
+
lightBack: '',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
variants: {
|
|
222
|
+
extend: {
|
|
223
|
+
opacity: ['disabled'],
|
|
224
|
+
cursor: ['disabled'],
|
|
225
|
+
borderRadius: ['hover', 'first', 'last'],
|
|
226
|
+
zIndex: ['hover'],
|
|
227
|
+
borderCollapse: ['hover', 'focus'],
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
corePlugins: {
|
|
231
|
+
tableLayout: false,
|
|
232
|
+
},
|
|
233
|
+
plugins: [
|
|
234
|
+
require('@tailwindcss/forms')({
|
|
235
|
+
strategy: 'class', // only generate classes
|
|
236
|
+
}),
|
|
237
|
+
plugin(function ({addUtilities}) {
|
|
238
|
+
addUtilities({
|
|
239
|
+
'.scrollbar-hide': {
|
|
240
|
+
'-ms-overflow-style': 'none',
|
|
241
|
+
'scrollbar-width': 'none',
|
|
242
|
+
'&::-webkit-scrollbar': {
|
|
243
|
+
display: 'none',
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
'.arrow-hide': {
|
|
247
|
+
'&::-webkit-inner-spin-button': {
|
|
248
|
+
'-webkit-appearance': 'none',
|
|
249
|
+
margin: 0,
|
|
250
|
+
},
|
|
251
|
+
'&::-webkit-outer-spin-button': {
|
|
252
|
+
'-webkit-appearance': 'none',
|
|
253
|
+
margin: 0,
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
// Design token utilities - using actual values from tokens.css
|
|
257
|
+
'.rounded-token-025': {'border-radius': '0.125rem'},
|
|
258
|
+
'.rounded-token-050': {'border-radius': '0.25rem'},
|
|
259
|
+
'.rounded-token-100': {'border-radius': '0.5rem'},
|
|
260
|
+
'.rounded-token-200': {'border-radius': '1rem'},
|
|
261
|
+
'.rounded-token-300': {'border-radius': '1.5rem'},
|
|
262
|
+
'.rounded-token-400': {'border-radius': '2rem'},
|
|
263
|
+
'.rounded-token-none': {'border-radius': '0rem'},
|
|
264
|
+
'.rounded-token-round': {'border-radius': '10000rem'},
|
|
265
|
+
|
|
266
|
+
// Padding utilities with tokens
|
|
267
|
+
'.p-token-000': {padding: '0rem'},
|
|
268
|
+
'.p-token-025': {padding: '0.125rem'},
|
|
269
|
+
'.p-token-050': {padding: '0.25rem'},
|
|
270
|
+
'.p-token-075': {padding: '0.375rem'},
|
|
271
|
+
'.p-token-100': {padding: '0.5rem'},
|
|
272
|
+
'.p-token-150': {padding: '0.75rem'},
|
|
273
|
+
'.p-token-200': {padding: '1rem'},
|
|
274
|
+
'.p-token-300': {padding: '1.5rem'},
|
|
275
|
+
'.p-token-400': {padding: '2rem'},
|
|
276
|
+
'.p-token-500': {padding: '2.5rem'},
|
|
277
|
+
'.p-token-600': {padding: '3rem'},
|
|
278
|
+
'.p-token-800': {padding: '4rem'},
|
|
279
|
+
'.p-token-1000': {padding: '5rem'},
|
|
280
|
+
'.p-token-1200': {padding: '6rem'},
|
|
281
|
+
|
|
282
|
+
// Margin utilities with tokens
|
|
283
|
+
'.m-token-000': {margin: '0rem'},
|
|
284
|
+
'.m-token-025': {margin: '0.125rem'},
|
|
285
|
+
'.m-token-050': {margin: '0.25rem'},
|
|
286
|
+
'.m-token-075': {margin: '0.375rem'},
|
|
287
|
+
'.m-token-100': {margin: '0.5rem'},
|
|
288
|
+
'.m-token-150': {margin: '0.75rem'},
|
|
289
|
+
'.m-token-200': {margin: '1rem'},
|
|
290
|
+
'.m-token-300': {margin: '1.5rem'},
|
|
291
|
+
'.m-token-400': {margin: '2rem'},
|
|
292
|
+
'.m-token-500': {margin: '2.5rem'},
|
|
293
|
+
'.m-token-600': {margin: '3rem'},
|
|
294
|
+
'.m-token-800': {margin: '4rem'},
|
|
295
|
+
'.m-token-1000': {margin: '5rem'},
|
|
296
|
+
'.m-token-1200': {margin: '6rem'},
|
|
297
|
+
|
|
298
|
+
// Gap utilities with tokens
|
|
299
|
+
'.gap-token-000': {gap: '0rem'},
|
|
300
|
+
'.gap-token-025': {gap: '0.125rem'},
|
|
301
|
+
'.gap-token-050': {gap: '0.25rem'},
|
|
302
|
+
'.gap-token-075': {gap: '0.375rem'},
|
|
303
|
+
'.gap-token-100': {gap: '0.5rem'},
|
|
304
|
+
'.gap-token-150': {gap: '0.75rem'},
|
|
305
|
+
'.gap-token-200': {gap: '1rem'},
|
|
306
|
+
'.gap-token-300': {gap: '1.5rem'},
|
|
307
|
+
'.gap-token-400': {gap: '2rem'},
|
|
308
|
+
'.gap-token-500': {gap: '2.5rem'},
|
|
309
|
+
'.gap-token-600': {gap: '3rem'},
|
|
310
|
+
'.gap-token-800': {gap: '4rem'},
|
|
311
|
+
'.gap-token-1000': {gap: '5rem'},
|
|
312
|
+
'.gap-token-1200': {gap: '6rem'},
|
|
313
|
+
|
|
314
|
+
// State layer utilities - using actual values
|
|
315
|
+
'.state-none': {opacity: '0%'},
|
|
316
|
+
'.state-hover': {opacity: '8%'},
|
|
317
|
+
'.state-press': {opacity: '12%'},
|
|
318
|
+
'.state-disabled': {opacity: '12%'},
|
|
319
|
+
'.state-on-disabled': {opacity: '30%'},
|
|
320
|
+
'.state-read-only': {opacity: '8%'},
|
|
321
|
+
'.state-on-read-only': {opacity: '70%'},
|
|
322
|
+
'.state-press-card': {opacity: '4%'},
|
|
323
|
+
|
|
324
|
+
// Stroke utilities - using actual values
|
|
325
|
+
'.stroke-token-card': {'stroke-width': '0.0625rem'},
|
|
326
|
+
'.stroke-token-selected-card-hover': {'stroke-width': '0.125rem'},
|
|
327
|
+
'.stroke-token-divider': {'stroke-width': '0.0625rem'},
|
|
328
|
+
});
|
|
329
|
+
}),
|
|
330
|
+
],
|
|
331
|
+
};
|