tailwind-to-style 3.2.2 → 4.0.0
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/README.md +221 -666
- package/dist/animations/index.cjs +9391 -0
- package/dist/animations/index.d.ts +58 -0
- package/dist/animations/index.esm.js +9385 -0
- package/dist/animations/index.esm.js.map +1 -0
- package/dist/className/index.cjs +9080 -0
- package/dist/className/index.esm.js +9075 -0
- package/dist/className/index.esm.js.map +1 -0
- package/dist/core/tws.cjs +136 -114
- package/dist/core/tws.cjs.map +1 -0
- package/dist/core/tws.esm.js +136 -114
- package/dist/core/tws.esm.js.map +1 -1
- package/dist/core/twsx.cjs +2442 -4245
- package/dist/core/twsx.esm.js +2442 -4245
- package/dist/core/twsx.esm.js.map +1 -1
- package/dist/core/twsxVariants.cjs +2470 -4262
- package/dist/core/twsxVariants.esm.js +2470 -4262
- package/dist/core/twsxVariants.esm.js.map +1 -1
- package/dist/cx.cjs +2 -2
- package/dist/cx.cjs.map +1 -0
- package/dist/cx.esm.js +2 -2
- package/dist/index.cjs +5128 -6057
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +993 -1
- package/dist/index.esm.js +5124 -6022
- package/dist/index.esm.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/react/index.cjs +10177 -0
- package/dist/react/index.cjs.map +1 -0
- package/dist/react/index.d.ts +69 -0
- package/dist/react/index.esm.js +10173 -0
- package/dist/react/index.esm.js.map +1 -0
- package/dist/styled/index.cjs +9094 -0
- package/dist/styled/index.cjs.map +1 -0
- package/dist/styled/index.d.ts +17 -0
- package/dist/styled/index.esm.js +9087 -0
- package/dist/styled/index.esm.js.map +1 -0
- package/dist/tokens/index.cjs +359 -0
- package/dist/tokens/index.d.ts +33 -0
- package/dist/tokens/index.esm.js +355 -0
- package/dist/tokens/index.esm.js.map +1 -0
- package/dist/utils/index.cjs +313 -297
- package/dist/utils/index.esm.js +313 -297
- package/dist/utils/index.esm.js.map +1 -1
- package/package.json +38 -24
- package/types/animations/index.d.ts +58 -0
- package/types/className/index.d.ts +41 -0
- package/types/index.d.ts +993 -1
- package/types/react/index.d.ts +69 -0
- package/types/tokens/index.d.ts +33 -0
- package/types/v4.d.ts +191 -0
package/dist/utils/index.esm.js
CHANGED
|
@@ -1,20 +1,106 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tailwind-to-style v3.
|
|
2
|
+
* tailwind-to-style v3.3.0
|
|
3
3
|
* Runtime Tailwind CSS to inline styles converter
|
|
4
4
|
*
|
|
5
5
|
* @author Bigetion
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
|
+
function _arrayLikeToArray(r, a) {
|
|
9
|
+
(null == a || a > r.length) && (a = r.length);
|
|
10
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
function _arrayWithHoles(r) {
|
|
14
|
+
if (Array.isArray(r)) return r;
|
|
15
|
+
}
|
|
16
|
+
function _defineProperty(e, r, t) {
|
|
17
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
18
|
+
value: t,
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true
|
|
22
|
+
}) : e[r] = t, e;
|
|
23
|
+
}
|
|
24
|
+
function _iterableToArrayLimit(r, l) {
|
|
25
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
26
|
+
if (null != t) {
|
|
27
|
+
var e,
|
|
28
|
+
n,
|
|
29
|
+
i,
|
|
30
|
+
u,
|
|
31
|
+
a = [],
|
|
32
|
+
f = true,
|
|
33
|
+
o = false;
|
|
34
|
+
try {
|
|
35
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
36
|
+
} catch (r) {
|
|
37
|
+
o = true, n = r;
|
|
38
|
+
} finally {
|
|
39
|
+
try {
|
|
40
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
41
|
+
} finally {
|
|
42
|
+
if (o) throw n;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return a;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function _nonIterableRest() {
|
|
49
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
50
|
+
}
|
|
51
|
+
function ownKeys(e, r) {
|
|
52
|
+
var t = Object.keys(e);
|
|
53
|
+
if (Object.getOwnPropertySymbols) {
|
|
54
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
55
|
+
r && (o = o.filter(function (r) {
|
|
56
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
57
|
+
})), t.push.apply(t, o);
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
function _objectSpread2(e) {
|
|
62
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
63
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
64
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
65
|
+
_defineProperty(e, r, t[r]);
|
|
66
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
67
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return e;
|
|
71
|
+
}
|
|
72
|
+
function _slicedToArray(r, e) {
|
|
73
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
74
|
+
}
|
|
75
|
+
function _toPrimitive(t, r) {
|
|
76
|
+
if ("object" != typeof t || !t) return t;
|
|
77
|
+
var e = t[Symbol.toPrimitive];
|
|
78
|
+
if (void 0 !== e) {
|
|
79
|
+
var i = e.call(t, r);
|
|
80
|
+
if ("object" != typeof i) return i;
|
|
81
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
82
|
+
}
|
|
83
|
+
return ("string" === r ? String : Number)(t);
|
|
84
|
+
}
|
|
85
|
+
function _toPropertyKey(t) {
|
|
86
|
+
var i = _toPrimitive(t, "string");
|
|
87
|
+
return "symbol" == typeof i ? i : i + "";
|
|
88
|
+
}
|
|
89
|
+
function _unsupportedIterableToArray(r, a) {
|
|
90
|
+
if (r) {
|
|
91
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
92
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
93
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
8
97
|
const theme = {
|
|
9
98
|
accentColor: _ref => {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
} = _ref;
|
|
13
|
-
return {
|
|
14
|
-
...theme("colors"),
|
|
99
|
+
let theme = _ref.theme;
|
|
100
|
+
return _objectSpread2(_objectSpread2({}, theme("colors")), {}, {
|
|
15
101
|
auto: "auto",
|
|
16
102
|
custom: "custom_value"
|
|
17
|
-
};
|
|
103
|
+
});
|
|
18
104
|
},
|
|
19
105
|
animation: {
|
|
20
106
|
none: "none",
|
|
@@ -33,63 +119,43 @@ const theme = {
|
|
|
33
119
|
custom: "custom_value"
|
|
34
120
|
},
|
|
35
121
|
backdropBlur: _ref2 => {
|
|
36
|
-
let
|
|
37
|
-
theme
|
|
38
|
-
} = _ref2;
|
|
122
|
+
let theme = _ref2.theme;
|
|
39
123
|
return theme("blur");
|
|
40
124
|
},
|
|
41
125
|
backdropBrightness: _ref3 => {
|
|
42
|
-
let
|
|
43
|
-
theme
|
|
44
|
-
} = _ref3;
|
|
126
|
+
let theme = _ref3.theme;
|
|
45
127
|
return theme("brightness");
|
|
46
128
|
},
|
|
47
129
|
backdropContrast: _ref4 => {
|
|
48
|
-
let
|
|
49
|
-
theme
|
|
50
|
-
} = _ref4;
|
|
130
|
+
let theme = _ref4.theme;
|
|
51
131
|
return theme("contrast");
|
|
52
132
|
},
|
|
53
133
|
backdropGrayscale: _ref5 => {
|
|
54
|
-
let
|
|
55
|
-
theme
|
|
56
|
-
} = _ref5;
|
|
134
|
+
let theme = _ref5.theme;
|
|
57
135
|
return theme("grayscale");
|
|
58
136
|
},
|
|
59
137
|
backdropHueRotate: _ref6 => {
|
|
60
|
-
let
|
|
61
|
-
theme
|
|
62
|
-
} = _ref6;
|
|
138
|
+
let theme = _ref6.theme;
|
|
63
139
|
return theme("hueRotate");
|
|
64
140
|
},
|
|
65
141
|
backdropInvert: _ref7 => {
|
|
66
|
-
let
|
|
67
|
-
theme
|
|
68
|
-
} = _ref7;
|
|
142
|
+
let theme = _ref7.theme;
|
|
69
143
|
return theme("invert");
|
|
70
144
|
},
|
|
71
145
|
backdropOpacity: _ref8 => {
|
|
72
|
-
let
|
|
73
|
-
theme
|
|
74
|
-
} = _ref8;
|
|
146
|
+
let theme = _ref8.theme;
|
|
75
147
|
return theme("opacity");
|
|
76
148
|
},
|
|
77
149
|
backdropSaturate: _ref9 => {
|
|
78
|
-
let
|
|
79
|
-
theme
|
|
80
|
-
} = _ref9;
|
|
150
|
+
let theme = _ref9.theme;
|
|
81
151
|
return theme("saturate");
|
|
82
152
|
},
|
|
83
153
|
backdropSepia: _ref0 => {
|
|
84
|
-
let
|
|
85
|
-
theme
|
|
86
|
-
} = _ref0;
|
|
154
|
+
let theme = _ref0.theme;
|
|
87
155
|
return theme("sepia");
|
|
88
156
|
},
|
|
89
157
|
backgroundColor: _ref1 => {
|
|
90
|
-
let
|
|
91
|
-
theme
|
|
92
|
-
} = _ref1;
|
|
158
|
+
let theme = _ref1.theme;
|
|
93
159
|
return theme("colors");
|
|
94
160
|
},
|
|
95
161
|
backgroundImage: {
|
|
@@ -104,9 +170,7 @@ const theme = {
|
|
|
104
170
|
"gradient-to-tl": "linear-gradient(to top left, var(--gradient-color-stops))"
|
|
105
171
|
},
|
|
106
172
|
backgroundOpacity: _ref10 => {
|
|
107
|
-
let
|
|
108
|
-
theme
|
|
109
|
-
} = _ref10;
|
|
173
|
+
let theme = _ref10.theme;
|
|
110
174
|
return theme("opacity");
|
|
111
175
|
},
|
|
112
176
|
backgroundPosition: {
|
|
@@ -138,39 +202,32 @@ const theme = {
|
|
|
138
202
|
custom: "custom_value"
|
|
139
203
|
},
|
|
140
204
|
borderColor: _ref11 => {
|
|
141
|
-
let
|
|
142
|
-
|
|
143
|
-
} = _ref11;
|
|
144
|
-
return {
|
|
145
|
-
...theme("colors"),
|
|
205
|
+
let theme = _ref11.theme;
|
|
206
|
+
return _objectSpread2(_objectSpread2({}, theme("colors")), {}, {
|
|
146
207
|
DEFAULT: "#e5e7eb"
|
|
147
|
-
};
|
|
208
|
+
});
|
|
148
209
|
},
|
|
149
210
|
borderOpacity: _ref12 => {
|
|
150
|
-
let
|
|
151
|
-
theme
|
|
152
|
-
} = _ref12;
|
|
211
|
+
let theme = _ref12.theme;
|
|
153
212
|
return theme("opacity");
|
|
154
213
|
},
|
|
155
214
|
borderRadius: {
|
|
156
215
|
none: "0px",
|
|
157
|
-
|
|
216
|
+
xs: "0.125rem",
|
|
217
|
+
sm: "0.25rem",
|
|
158
218
|
DEFAULT: "0.25rem",
|
|
159
219
|
md: "0.375rem",
|
|
160
220
|
lg: "0.5rem",
|
|
161
221
|
xl: "0.75rem",
|
|
162
222
|
"2xl": "1rem",
|
|
163
223
|
"3xl": "1.5rem",
|
|
224
|
+
"4xl": "2rem",
|
|
164
225
|
full: "9999px",
|
|
165
226
|
custom: "custom_value"
|
|
166
227
|
},
|
|
167
228
|
borderSpacing: _ref13 => {
|
|
168
|
-
let
|
|
169
|
-
|
|
170
|
-
} = _ref13;
|
|
171
|
-
return {
|
|
172
|
-
...theme("spacing")
|
|
173
|
-
};
|
|
229
|
+
let theme = _ref13.theme;
|
|
230
|
+
return _objectSpread2({}, theme("spacing"));
|
|
174
231
|
},
|
|
175
232
|
borderWidth: {
|
|
176
233
|
DEFAULT: "1px",
|
|
@@ -181,7 +238,8 @@ const theme = {
|
|
|
181
238
|
custom: "custom_value"
|
|
182
239
|
},
|
|
183
240
|
boxShadow: {
|
|
184
|
-
|
|
241
|
+
xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
242
|
+
sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
185
243
|
DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
186
244
|
md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
187
245
|
lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
@@ -192,9 +250,7 @@ const theme = {
|
|
|
192
250
|
custom: "custom_value"
|
|
193
251
|
},
|
|
194
252
|
boxShadowColor: _ref14 => {
|
|
195
|
-
let
|
|
196
|
-
theme
|
|
197
|
-
} = _ref14;
|
|
253
|
+
let theme = _ref14.theme;
|
|
198
254
|
return theme("colors");
|
|
199
255
|
},
|
|
200
256
|
brightness: {
|
|
@@ -212,9 +268,7 @@ const theme = {
|
|
|
212
268
|
custom: "custom_value"
|
|
213
269
|
},
|
|
214
270
|
caretColor: _ref15 => {
|
|
215
|
-
let
|
|
216
|
-
theme
|
|
217
|
-
} = _ref15;
|
|
271
|
+
let theme = _ref15.theme;
|
|
218
272
|
return theme("colors");
|
|
219
273
|
},
|
|
220
274
|
colors: {
|
|
@@ -232,7 +286,8 @@ const theme = {
|
|
|
232
286
|
600: "#475569",
|
|
233
287
|
700: "#334155",
|
|
234
288
|
800: "#1e293b",
|
|
235
|
-
900: "#0f172a"
|
|
289
|
+
900: "#0f172a",
|
|
290
|
+
950: "#020617"
|
|
236
291
|
},
|
|
237
292
|
gray: {
|
|
238
293
|
50: "#f9fafb",
|
|
@@ -244,7 +299,8 @@ const theme = {
|
|
|
244
299
|
600: "#4b5563",
|
|
245
300
|
700: "#374151",
|
|
246
301
|
800: "#1f2937",
|
|
247
|
-
900: "#111827"
|
|
302
|
+
900: "#111827",
|
|
303
|
+
950: "#030712"
|
|
248
304
|
},
|
|
249
305
|
zinc: {
|
|
250
306
|
50: "#fafafa",
|
|
@@ -256,7 +312,8 @@ const theme = {
|
|
|
256
312
|
600: "#52525b",
|
|
257
313
|
700: "#3f3f46",
|
|
258
314
|
800: "#27272a",
|
|
259
|
-
900: "#18181b"
|
|
315
|
+
900: "#18181b",
|
|
316
|
+
950: "#09090b"
|
|
260
317
|
},
|
|
261
318
|
neutral: {
|
|
262
319
|
50: "#fafafa",
|
|
@@ -268,7 +325,8 @@ const theme = {
|
|
|
268
325
|
600: "#525252",
|
|
269
326
|
700: "#404040",
|
|
270
327
|
800: "#262626",
|
|
271
|
-
900: "#171717"
|
|
328
|
+
900: "#171717",
|
|
329
|
+
950: "#0a0a0a"
|
|
272
330
|
},
|
|
273
331
|
stone: {
|
|
274
332
|
50: "#fafaf9",
|
|
@@ -280,7 +338,8 @@ const theme = {
|
|
|
280
338
|
600: "#57534e",
|
|
281
339
|
700: "#44403c",
|
|
282
340
|
800: "#292524",
|
|
283
|
-
900: "#1c1917"
|
|
341
|
+
900: "#1c1917",
|
|
342
|
+
950: "#0c0a09"
|
|
284
343
|
},
|
|
285
344
|
red: {
|
|
286
345
|
50: "#fef2f2",
|
|
@@ -292,7 +351,8 @@ const theme = {
|
|
|
292
351
|
600: "#dc2626",
|
|
293
352
|
700: "#b91c1c",
|
|
294
353
|
800: "#991b1b",
|
|
295
|
-
900: "#7f1d1d"
|
|
354
|
+
900: "#7f1d1d",
|
|
355
|
+
950: "#450a0a"
|
|
296
356
|
},
|
|
297
357
|
orange: {
|
|
298
358
|
50: "#fff7ed",
|
|
@@ -304,7 +364,8 @@ const theme = {
|
|
|
304
364
|
600: "#ea580c",
|
|
305
365
|
700: "#c2410c",
|
|
306
366
|
800: "#9a3412",
|
|
307
|
-
900: "#7c2d12"
|
|
367
|
+
900: "#7c2d12",
|
|
368
|
+
950: "#431407"
|
|
308
369
|
},
|
|
309
370
|
amber: {
|
|
310
371
|
50: "#fffbeb",
|
|
@@ -316,7 +377,8 @@ const theme = {
|
|
|
316
377
|
600: "#d97706",
|
|
317
378
|
700: "#b45309",
|
|
318
379
|
800: "#92400e",
|
|
319
|
-
900: "#78350f"
|
|
380
|
+
900: "#78350f",
|
|
381
|
+
950: "#451a03"
|
|
320
382
|
},
|
|
321
383
|
yellow: {
|
|
322
384
|
50: "#fefce8",
|
|
@@ -328,7 +390,8 @@ const theme = {
|
|
|
328
390
|
600: "#ca8a04",
|
|
329
391
|
700: "#a16207",
|
|
330
392
|
800: "#854d0e",
|
|
331
|
-
900: "#713f12"
|
|
393
|
+
900: "#713f12",
|
|
394
|
+
950: "#422006"
|
|
332
395
|
},
|
|
333
396
|
lime: {
|
|
334
397
|
50: "#f7fee7",
|
|
@@ -340,7 +403,8 @@ const theme = {
|
|
|
340
403
|
600: "#65a30d",
|
|
341
404
|
700: "#4d7c0f",
|
|
342
405
|
800: "#3f6212",
|
|
343
|
-
900: "#365314"
|
|
406
|
+
900: "#365314",
|
|
407
|
+
950: "#1a2e05"
|
|
344
408
|
},
|
|
345
409
|
green: {
|
|
346
410
|
50: "#f0fdf4",
|
|
@@ -352,7 +416,8 @@ const theme = {
|
|
|
352
416
|
600: "#16a34a",
|
|
353
417
|
700: "#15803d",
|
|
354
418
|
800: "#166534",
|
|
355
|
-
900: "#14532d"
|
|
419
|
+
900: "#14532d",
|
|
420
|
+
950: "#052e16"
|
|
356
421
|
},
|
|
357
422
|
emerald: {
|
|
358
423
|
50: "#ecfdf5",
|
|
@@ -364,7 +429,8 @@ const theme = {
|
|
|
364
429
|
600: "#059669",
|
|
365
430
|
700: "#047857",
|
|
366
431
|
800: "#065f46",
|
|
367
|
-
900: "#064e3b"
|
|
432
|
+
900: "#064e3b",
|
|
433
|
+
950: "#022c22"
|
|
368
434
|
},
|
|
369
435
|
teal: {
|
|
370
436
|
50: "#f0fdfa",
|
|
@@ -376,7 +442,8 @@ const theme = {
|
|
|
376
442
|
600: "#0d9488",
|
|
377
443
|
700: "#0f766e",
|
|
378
444
|
800: "#115e59",
|
|
379
|
-
900: "#134e4a"
|
|
445
|
+
900: "#134e4a",
|
|
446
|
+
950: "#042f2e"
|
|
380
447
|
},
|
|
381
448
|
cyan: {
|
|
382
449
|
50: "#ecfeff",
|
|
@@ -388,7 +455,8 @@ const theme = {
|
|
|
388
455
|
600: "#0891b2",
|
|
389
456
|
700: "#0e7490",
|
|
390
457
|
800: "#155e75",
|
|
391
|
-
900: "#164e63"
|
|
458
|
+
900: "#164e63",
|
|
459
|
+
950: "#083344"
|
|
392
460
|
},
|
|
393
461
|
sky: {
|
|
394
462
|
50: "#f0f9ff",
|
|
@@ -400,7 +468,8 @@ const theme = {
|
|
|
400
468
|
600: "#0284c7",
|
|
401
469
|
700: "#0369a1",
|
|
402
470
|
800: "#075985",
|
|
403
|
-
900: "#0c4a6e"
|
|
471
|
+
900: "#0c4a6e",
|
|
472
|
+
950: "#082f49"
|
|
404
473
|
},
|
|
405
474
|
blue: {
|
|
406
475
|
50: "#eff6ff",
|
|
@@ -412,7 +481,8 @@ const theme = {
|
|
|
412
481
|
600: "#2563eb",
|
|
413
482
|
700: "#1d4ed8",
|
|
414
483
|
800: "#1e40af",
|
|
415
|
-
900: "#1e3a8a"
|
|
484
|
+
900: "#1e3a8a",
|
|
485
|
+
950: "#172554"
|
|
416
486
|
},
|
|
417
487
|
indigo: {
|
|
418
488
|
50: "#eef2ff",
|
|
@@ -424,7 +494,8 @@ const theme = {
|
|
|
424
494
|
600: "#4f46e5",
|
|
425
495
|
700: "#4338ca",
|
|
426
496
|
800: "#3730a3",
|
|
427
|
-
900: "#312e81"
|
|
497
|
+
900: "#312e81",
|
|
498
|
+
950: "#1e1b4b"
|
|
428
499
|
},
|
|
429
500
|
violet: {
|
|
430
501
|
50: "#f5f3ff",
|
|
@@ -436,7 +507,8 @@ const theme = {
|
|
|
436
507
|
600: "#7c3aed",
|
|
437
508
|
700: "#6d28d9",
|
|
438
509
|
800: "#5b21b6",
|
|
439
|
-
900: "#4c1d95"
|
|
510
|
+
900: "#4c1d95",
|
|
511
|
+
950: "#2e1065"
|
|
440
512
|
},
|
|
441
513
|
purple: {
|
|
442
514
|
50: "#faf5ff",
|
|
@@ -448,7 +520,8 @@ const theme = {
|
|
|
448
520
|
600: "#9333ea",
|
|
449
521
|
700: "#7e22ce",
|
|
450
522
|
800: "#6b21a8",
|
|
451
|
-
900: "#581c87"
|
|
523
|
+
900: "#581c87",
|
|
524
|
+
950: "#3b0764"
|
|
452
525
|
},
|
|
453
526
|
fuchsia: {
|
|
454
527
|
50: "#fdf4ff",
|
|
@@ -460,7 +533,8 @@ const theme = {
|
|
|
460
533
|
600: "#c026d3",
|
|
461
534
|
700: "#a21caf",
|
|
462
535
|
800: "#86198f",
|
|
463
|
-
900: "#701a75"
|
|
536
|
+
900: "#701a75",
|
|
537
|
+
950: "#4a044e"
|
|
464
538
|
},
|
|
465
539
|
pink: {
|
|
466
540
|
50: "#fdf2f8",
|
|
@@ -472,7 +546,8 @@ const theme = {
|
|
|
472
546
|
600: "#db2777",
|
|
473
547
|
700: "#be185d",
|
|
474
548
|
800: "#9d174d",
|
|
475
|
-
900: "#831843"
|
|
549
|
+
900: "#831843",
|
|
550
|
+
950: "#500724"
|
|
476
551
|
},
|
|
477
552
|
rose: {
|
|
478
553
|
50: "#fff1f2",
|
|
@@ -484,7 +559,8 @@ const theme = {
|
|
|
484
559
|
600: "#e11d48",
|
|
485
560
|
700: "#be123c",
|
|
486
561
|
800: "#9f1239",
|
|
487
|
-
900: "#881337"
|
|
562
|
+
900: "#881337",
|
|
563
|
+
950: "#4c0519"
|
|
488
564
|
},
|
|
489
565
|
custom: "custom_value"
|
|
490
566
|
},
|
|
@@ -570,21 +646,15 @@ const theme = {
|
|
|
570
646
|
"zoom-out": "zoom-out"
|
|
571
647
|
},
|
|
572
648
|
divideColor: _ref16 => {
|
|
573
|
-
let
|
|
574
|
-
theme
|
|
575
|
-
} = _ref16;
|
|
649
|
+
let theme = _ref16.theme;
|
|
576
650
|
return theme("borderColor");
|
|
577
651
|
},
|
|
578
652
|
divideOpacity: _ref17 => {
|
|
579
|
-
let
|
|
580
|
-
theme
|
|
581
|
-
} = _ref17;
|
|
653
|
+
let theme = _ref17.theme;
|
|
582
654
|
return theme("borderOpacity");
|
|
583
655
|
},
|
|
584
656
|
divideWidth: _ref18 => {
|
|
585
|
-
let
|
|
586
|
-
theme
|
|
587
|
-
} = _ref18;
|
|
657
|
+
let theme = _ref18.theme;
|
|
588
658
|
return theme("borderWidth");
|
|
589
659
|
},
|
|
590
660
|
dropShadow: {
|
|
@@ -597,13 +667,10 @@ const theme = {
|
|
|
597
667
|
none: "0 0 #0000"
|
|
598
668
|
},
|
|
599
669
|
fill: _ref19 => {
|
|
600
|
-
let
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
none: "none",
|
|
605
|
-
...theme("colors")
|
|
606
|
-
};
|
|
670
|
+
let theme = _ref19.theme;
|
|
671
|
+
return _objectSpread2({
|
|
672
|
+
none: "none"
|
|
673
|
+
}, theme("colors"));
|
|
607
674
|
},
|
|
608
675
|
flex: {
|
|
609
676
|
1: "1 1 0%",
|
|
@@ -612,12 +679,10 @@ const theme = {
|
|
|
612
679
|
none: "none"
|
|
613
680
|
},
|
|
614
681
|
flexBasis: _ref20 => {
|
|
615
|
-
let
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
auto: "auto",
|
|
620
|
-
...theme("spacing"),
|
|
682
|
+
let theme = _ref20.theme;
|
|
683
|
+
return _objectSpread2(_objectSpread2({
|
|
684
|
+
auto: "auto"
|
|
685
|
+
}, theme("spacing")), {}, {
|
|
621
686
|
"1/2": "50%",
|
|
622
687
|
"1/3": "33.333333%",
|
|
623
688
|
"2/3": "66.666667%",
|
|
@@ -645,7 +710,7 @@ const theme = {
|
|
|
645
710
|
"10/12": "83.333333%",
|
|
646
711
|
"11/12": "91.666667%",
|
|
647
712
|
full: "100%"
|
|
648
|
-
};
|
|
713
|
+
});
|
|
649
714
|
},
|
|
650
715
|
flexGrow: {
|
|
651
716
|
0: "0",
|
|
@@ -676,6 +741,17 @@ const theme = {
|
|
|
676
741
|
"9xl": "8rem",
|
|
677
742
|
custom: "custom_value"
|
|
678
743
|
},
|
|
744
|
+
fontStretch: {
|
|
745
|
+
"ultra-condensed": "ultra-condensed",
|
|
746
|
+
"extra-condensed": "extra-condensed",
|
|
747
|
+
condensed: "condensed",
|
|
748
|
+
"semi-condensed": "semi-condensed",
|
|
749
|
+
normal: "normal",
|
|
750
|
+
"semi-expanded": "semi-expanded",
|
|
751
|
+
expanded: "expanded",
|
|
752
|
+
"extra-expanded": "extra-expanded",
|
|
753
|
+
"ultra-expanded": "ultra-expanded"
|
|
754
|
+
},
|
|
679
755
|
fontWeight: {
|
|
680
756
|
thin: "100",
|
|
681
757
|
extralight: "200",
|
|
@@ -689,15 +765,11 @@ const theme = {
|
|
|
689
765
|
custom: "custom_value"
|
|
690
766
|
},
|
|
691
767
|
gap: _ref21 => {
|
|
692
|
-
let
|
|
693
|
-
theme
|
|
694
|
-
} = _ref21;
|
|
768
|
+
let theme = _ref21.theme;
|
|
695
769
|
return theme("spacing");
|
|
696
770
|
},
|
|
697
771
|
gradientColorStops: _ref22 => {
|
|
698
|
-
let
|
|
699
|
-
theme
|
|
700
|
-
} = _ref22;
|
|
772
|
+
let theme = _ref22.theme;
|
|
701
773
|
return theme("colors");
|
|
702
774
|
},
|
|
703
775
|
gradientColorStopPositions: {
|
|
@@ -868,12 +940,10 @@ const theme = {
|
|
|
868
940
|
12: "repeat(12, minmax(0, 1fr))"
|
|
869
941
|
},
|
|
870
942
|
height: _ref23 => {
|
|
871
|
-
let
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
auto: "auto",
|
|
876
|
-
...theme("spacing"),
|
|
943
|
+
let theme = _ref23.theme;
|
|
944
|
+
return _objectSpread2(_objectSpread2({
|
|
945
|
+
auto: "auto"
|
|
946
|
+
}, theme("spacing")), {}, {
|
|
877
947
|
"1/2": "50%",
|
|
878
948
|
"1/3": "33.333333%",
|
|
879
949
|
"2/3": "66.666667%",
|
|
@@ -898,7 +968,7 @@ const theme = {
|
|
|
898
968
|
max: "max-content",
|
|
899
969
|
fit: "fit-content",
|
|
900
970
|
custom: "custom_value"
|
|
901
|
-
};
|
|
971
|
+
});
|
|
902
972
|
},
|
|
903
973
|
hueRotate: {
|
|
904
974
|
0: "0deg",
|
|
@@ -909,12 +979,10 @@ const theme = {
|
|
|
909
979
|
180: "180deg"
|
|
910
980
|
},
|
|
911
981
|
inset: _ref24 => {
|
|
912
|
-
let
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
auto: "auto",
|
|
917
|
-
...theme("spacing"),
|
|
982
|
+
let theme = _ref24.theme;
|
|
983
|
+
return _objectSpread2(_objectSpread2({
|
|
984
|
+
auto: "auto"
|
|
985
|
+
}, theme("spacing")), {}, {
|
|
918
986
|
"1/2": "50%",
|
|
919
987
|
"1/3": "33.333333%",
|
|
920
988
|
"2/3": "66.666667%",
|
|
@@ -922,7 +990,15 @@ const theme = {
|
|
|
922
990
|
"2/4": "50%",
|
|
923
991
|
"3/4": "75%",
|
|
924
992
|
full: "100%"
|
|
925
|
-
};
|
|
993
|
+
});
|
|
994
|
+
},
|
|
995
|
+
insetShadow: {
|
|
996
|
+
xs: "inset 0 1px 1px 0 rgb(0 0 0 / 0.05)",
|
|
997
|
+
sm: "inset 0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
998
|
+
DEFAULT: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
999
|
+
md: "inset 0 2px 6px 0 rgb(0 0 0 / 0.08)",
|
|
1000
|
+
lg: "inset 0 4px 8px 0 rgb(0 0 0 / 0.10)",
|
|
1001
|
+
none: "none"
|
|
926
1002
|
},
|
|
927
1003
|
invert: {
|
|
928
1004
|
0: "0",
|
|
@@ -969,20 +1045,14 @@ const theme = {
|
|
|
969
1045
|
decimal: "decimal"
|
|
970
1046
|
},
|
|
971
1047
|
margin: _ref25 => {
|
|
972
|
-
let
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
auto: "auto",
|
|
977
|
-
...theme("spacing")
|
|
978
|
-
};
|
|
1048
|
+
let theme = _ref25.theme;
|
|
1049
|
+
return _objectSpread2({
|
|
1050
|
+
auto: "auto"
|
|
1051
|
+
}, theme("spacing"));
|
|
979
1052
|
},
|
|
980
1053
|
maxHeight: _ref26 => {
|
|
981
|
-
let
|
|
982
|
-
|
|
983
|
-
} = _ref26;
|
|
984
|
-
return {
|
|
985
|
-
...theme("spacing"),
|
|
1054
|
+
let theme = _ref26.theme;
|
|
1055
|
+
return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
|
|
986
1056
|
none: "none",
|
|
987
1057
|
full: "100%",
|
|
988
1058
|
screen: "100vh",
|
|
@@ -992,14 +1062,11 @@ const theme = {
|
|
|
992
1062
|
min: "min-content",
|
|
993
1063
|
max: "max-content",
|
|
994
1064
|
fit: "fit-content"
|
|
995
|
-
};
|
|
1065
|
+
});
|
|
996
1066
|
},
|
|
997
1067
|
maxWidth: _ref27 => {
|
|
998
|
-
let
|
|
999
|
-
|
|
1000
|
-
} = _ref27;
|
|
1001
|
-
return {
|
|
1002
|
-
...theme("spacing"),
|
|
1068
|
+
let theme = _ref27.theme;
|
|
1069
|
+
return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
|
|
1003
1070
|
none: "none",
|
|
1004
1071
|
xs: "20rem",
|
|
1005
1072
|
sm: "24rem",
|
|
@@ -1017,14 +1084,11 @@ const theme = {
|
|
|
1017
1084
|
max: "max-content",
|
|
1018
1085
|
fit: "fit-content",
|
|
1019
1086
|
prose: "65ch"
|
|
1020
|
-
};
|
|
1087
|
+
});
|
|
1021
1088
|
},
|
|
1022
1089
|
minHeight: _ref28 => {
|
|
1023
|
-
let
|
|
1024
|
-
|
|
1025
|
-
} = _ref28;
|
|
1026
|
-
return {
|
|
1027
|
-
...theme("spacing"),
|
|
1090
|
+
let theme = _ref28.theme;
|
|
1091
|
+
return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
|
|
1028
1092
|
full: "100%",
|
|
1029
1093
|
screen: "100vh",
|
|
1030
1094
|
svh: "100svh",
|
|
@@ -1033,19 +1097,16 @@ const theme = {
|
|
|
1033
1097
|
min: "min-content",
|
|
1034
1098
|
max: "max-content",
|
|
1035
1099
|
fit: "fit-content"
|
|
1036
|
-
};
|
|
1100
|
+
});
|
|
1037
1101
|
},
|
|
1038
1102
|
minWidth: _ref29 => {
|
|
1039
|
-
let
|
|
1040
|
-
|
|
1041
|
-
} = _ref29;
|
|
1042
|
-
return {
|
|
1043
|
-
...theme("spacing"),
|
|
1103
|
+
let theme = _ref29.theme;
|
|
1104
|
+
return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
|
|
1044
1105
|
full: "100%",
|
|
1045
1106
|
min: "min-content",
|
|
1046
1107
|
max: "max-content",
|
|
1047
1108
|
fit: "fit-content"
|
|
1048
|
-
};
|
|
1109
|
+
});
|
|
1049
1110
|
},
|
|
1050
1111
|
objectPosition: {
|
|
1051
1112
|
bottom: "bottom",
|
|
@@ -1101,9 +1162,7 @@ const theme = {
|
|
|
1101
1162
|
custom: "custom_value"
|
|
1102
1163
|
},
|
|
1103
1164
|
outlineColor: _ref30 => {
|
|
1104
|
-
let
|
|
1105
|
-
theme
|
|
1106
|
-
} = _ref30;
|
|
1165
|
+
let theme = _ref30.theme;
|
|
1107
1166
|
return theme("colors");
|
|
1108
1167
|
},
|
|
1109
1168
|
outlineOffset: {
|
|
@@ -1115,9 +1174,7 @@ const theme = {
|
|
|
1115
1174
|
custom: "custom_value"
|
|
1116
1175
|
},
|
|
1117
1176
|
outlineOpacity: _ref31 => {
|
|
1118
|
-
let
|
|
1119
|
-
theme
|
|
1120
|
-
} = _ref31;
|
|
1177
|
+
let theme = _ref31.theme;
|
|
1121
1178
|
return theme("opacity");
|
|
1122
1179
|
},
|
|
1123
1180
|
outlineWidth: {
|
|
@@ -1129,24 +1186,26 @@ const theme = {
|
|
|
1129
1186
|
custom: "custom_value"
|
|
1130
1187
|
},
|
|
1131
1188
|
padding: _ref32 => {
|
|
1132
|
-
let
|
|
1133
|
-
theme
|
|
1134
|
-
} = _ref32;
|
|
1189
|
+
let theme = _ref32.theme;
|
|
1135
1190
|
return theme("spacing");
|
|
1136
1191
|
},
|
|
1192
|
+
perspective: {
|
|
1193
|
+
none: "none",
|
|
1194
|
+
dramatic: "100px",
|
|
1195
|
+
near: "300px",
|
|
1196
|
+
normal: "500px",
|
|
1197
|
+
midrange: "800px",
|
|
1198
|
+
distant: "1200px",
|
|
1199
|
+
custom: "custom_value"
|
|
1200
|
+
},
|
|
1137
1201
|
ringColor: _ref33 => {
|
|
1138
|
-
let
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
DEFAULT: "#3b82f6",
|
|
1143
|
-
...theme("colors")
|
|
1144
|
-
};
|
|
1202
|
+
let theme = _ref33.theme;
|
|
1203
|
+
return _objectSpread2({
|
|
1204
|
+
DEFAULT: "#3b82f6"
|
|
1205
|
+
}, theme("colors"));
|
|
1145
1206
|
},
|
|
1146
1207
|
ringOffsetColor: _ref34 => {
|
|
1147
|
-
let
|
|
1148
|
-
theme
|
|
1149
|
-
} = _ref34;
|
|
1208
|
+
let theme = _ref34.theme;
|
|
1150
1209
|
return theme("colors");
|
|
1151
1210
|
},
|
|
1152
1211
|
ringOffsetWidth: {
|
|
@@ -1158,13 +1217,10 @@ const theme = {
|
|
|
1158
1217
|
custom: "custom_value"
|
|
1159
1218
|
},
|
|
1160
1219
|
ringOpacity: _ref35 => {
|
|
1161
|
-
let
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
DEFAULT: "0.5",
|
|
1166
|
-
...theme("opacity")
|
|
1167
|
-
};
|
|
1220
|
+
let theme = _ref35.theme;
|
|
1221
|
+
return _objectSpread2({
|
|
1222
|
+
DEFAULT: "0.5"
|
|
1223
|
+
}, theme("opacity"));
|
|
1168
1224
|
},
|
|
1169
1225
|
ringWidth: {
|
|
1170
1226
|
DEFAULT: "3px",
|
|
@@ -1209,19 +1265,21 @@ const theme = {
|
|
|
1209
1265
|
custom: "custom_value"
|
|
1210
1266
|
},
|
|
1211
1267
|
scrollMargin: _ref36 => {
|
|
1212
|
-
let
|
|
1213
|
-
|
|
1214
|
-
} = _ref36;
|
|
1215
|
-
return {
|
|
1216
|
-
...theme("spacing")
|
|
1217
|
-
};
|
|
1268
|
+
let theme = _ref36.theme;
|
|
1269
|
+
return _objectSpread2({}, theme("spacing"));
|
|
1218
1270
|
},
|
|
1219
1271
|
scrollPadding: _ref37 => {
|
|
1220
|
-
let
|
|
1221
|
-
theme
|
|
1222
|
-
} = _ref37;
|
|
1272
|
+
let theme = _ref37.theme;
|
|
1223
1273
|
return theme("spacing");
|
|
1224
1274
|
},
|
|
1275
|
+
screens: {
|
|
1276
|
+
sm: "640px",
|
|
1277
|
+
md: "768px",
|
|
1278
|
+
lg: "1024px",
|
|
1279
|
+
xl: "1280px",
|
|
1280
|
+
"2xl": "1536px",
|
|
1281
|
+
"3xl": "1920px"
|
|
1282
|
+
},
|
|
1225
1283
|
sepia: {
|
|
1226
1284
|
0: "0",
|
|
1227
1285
|
DEFAULT: "100%"
|
|
@@ -1236,12 +1294,8 @@ const theme = {
|
|
|
1236
1294
|
custom: "custom_value"
|
|
1237
1295
|
},
|
|
1238
1296
|
space: _ref38 => {
|
|
1239
|
-
let
|
|
1240
|
-
|
|
1241
|
-
} = _ref38;
|
|
1242
|
-
return {
|
|
1243
|
-
...theme("spacing")
|
|
1244
|
-
};
|
|
1297
|
+
let theme = _ref38.theme;
|
|
1298
|
+
return _objectSpread2({}, theme("spacing"));
|
|
1245
1299
|
},
|
|
1246
1300
|
spacing: {
|
|
1247
1301
|
px: "1px",
|
|
@@ -1287,13 +1341,10 @@ const theme = {
|
|
|
1287
1341
|
custom: "custom_value"
|
|
1288
1342
|
},
|
|
1289
1343
|
stroke: _ref39 => {
|
|
1290
|
-
let
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
none: "none",
|
|
1295
|
-
...theme("colors")
|
|
1296
|
-
};
|
|
1344
|
+
let theme = _ref39.theme;
|
|
1345
|
+
return _objectSpread2({
|
|
1346
|
+
none: "none"
|
|
1347
|
+
}, theme("colors"));
|
|
1297
1348
|
},
|
|
1298
1349
|
strokeWidth: {
|
|
1299
1350
|
0: "0",
|
|
@@ -1302,15 +1353,11 @@ const theme = {
|
|
|
1302
1353
|
custom: "custom_value"
|
|
1303
1354
|
},
|
|
1304
1355
|
textColor: _ref40 => {
|
|
1305
|
-
let
|
|
1306
|
-
theme
|
|
1307
|
-
} = _ref40;
|
|
1356
|
+
let theme = _ref40.theme;
|
|
1308
1357
|
return theme("colors");
|
|
1309
1358
|
},
|
|
1310
1359
|
textDecorationColor: _ref41 => {
|
|
1311
|
-
let
|
|
1312
|
-
theme
|
|
1313
|
-
} = _ref41;
|
|
1360
|
+
let theme = _ref41.theme;
|
|
1314
1361
|
return theme("colors");
|
|
1315
1362
|
},
|
|
1316
1363
|
textDecorationThickness: {
|
|
@@ -1324,38 +1371,25 @@ const theme = {
|
|
|
1324
1371
|
custom: "custom_value"
|
|
1325
1372
|
},
|
|
1326
1373
|
textIndent: _ref42 => {
|
|
1327
|
-
let
|
|
1328
|
-
|
|
1329
|
-
} = _ref42;
|
|
1330
|
-
return {
|
|
1331
|
-
...theme("spacing")
|
|
1332
|
-
};
|
|
1374
|
+
let theme = _ref42.theme;
|
|
1375
|
+
return _objectSpread2({}, theme("spacing"));
|
|
1333
1376
|
},
|
|
1334
1377
|
textOpacity: _ref43 => {
|
|
1335
|
-
let
|
|
1336
|
-
theme
|
|
1337
|
-
} = _ref43;
|
|
1378
|
+
let theme = _ref43.theme;
|
|
1338
1379
|
return theme("opacity");
|
|
1339
1380
|
},
|
|
1340
1381
|
textShadowBlur: _ref44 => {
|
|
1341
|
-
let
|
|
1342
|
-
theme
|
|
1343
|
-
} = _ref44;
|
|
1382
|
+
let theme = _ref44.theme;
|
|
1344
1383
|
return theme("blur");
|
|
1345
1384
|
},
|
|
1346
1385
|
textShadowColor: _ref45 => {
|
|
1347
|
-
let
|
|
1348
|
-
|
|
1349
|
-
} = _ref45;
|
|
1350
|
-
return {
|
|
1351
|
-
...theme("colors"),
|
|
1386
|
+
let theme = _ref45.theme;
|
|
1387
|
+
return _objectSpread2(_objectSpread2({}, theme("colors")), {}, {
|
|
1352
1388
|
DEFAULT: "#e5e7eb"
|
|
1353
|
-
};
|
|
1389
|
+
});
|
|
1354
1390
|
},
|
|
1355
1391
|
textShadowOpacity: _ref46 => {
|
|
1356
|
-
let
|
|
1357
|
-
theme
|
|
1358
|
-
} = _ref46;
|
|
1392
|
+
let theme = _ref46.theme;
|
|
1359
1393
|
return theme("opacity");
|
|
1360
1394
|
},
|
|
1361
1395
|
textShadowX: {
|
|
@@ -1373,9 +1407,7 @@ const theme = {
|
|
|
1373
1407
|
custom: "custom_value"
|
|
1374
1408
|
},
|
|
1375
1409
|
textShadowY: _ref47 => {
|
|
1376
|
-
let
|
|
1377
|
-
theme
|
|
1378
|
-
} = _ref47;
|
|
1410
|
+
let theme = _ref47.theme;
|
|
1379
1411
|
return theme("textShadowX");
|
|
1380
1412
|
},
|
|
1381
1413
|
textUnderlineOffset: {
|
|
@@ -1399,11 +1431,8 @@ const theme = {
|
|
|
1399
1431
|
"top-left": "top left"
|
|
1400
1432
|
},
|
|
1401
1433
|
translate: _ref48 => {
|
|
1402
|
-
let
|
|
1403
|
-
|
|
1404
|
-
} = _ref48;
|
|
1405
|
-
return {
|
|
1406
|
-
...theme("spacing"),
|
|
1434
|
+
let theme = _ref48.theme;
|
|
1435
|
+
return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
|
|
1407
1436
|
"1/2": "50%",
|
|
1408
1437
|
"1/3": "33.333333%",
|
|
1409
1438
|
"2/3": "66.666667%",
|
|
@@ -1411,15 +1440,13 @@ const theme = {
|
|
|
1411
1440
|
"2/4": "50%",
|
|
1412
1441
|
"3/4": "75%",
|
|
1413
1442
|
full: "100%"
|
|
1414
|
-
};
|
|
1443
|
+
});
|
|
1415
1444
|
},
|
|
1416
1445
|
size: _ref49 => {
|
|
1417
|
-
let
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
auto: "auto",
|
|
1422
|
-
...theme("spacing"),
|
|
1446
|
+
let theme = _ref49.theme;
|
|
1447
|
+
return _objectSpread2(_objectSpread2({
|
|
1448
|
+
auto: "auto"
|
|
1449
|
+
}, theme("spacing")), {}, {
|
|
1423
1450
|
"1/2": "50%",
|
|
1424
1451
|
"1/3": "33.333333%",
|
|
1425
1452
|
"2/3": "66.666667%",
|
|
@@ -1450,15 +1477,13 @@ const theme = {
|
|
|
1450
1477
|
min: "min-content",
|
|
1451
1478
|
max: "max-content",
|
|
1452
1479
|
fit: "fit-content"
|
|
1453
|
-
};
|
|
1480
|
+
});
|
|
1454
1481
|
},
|
|
1455
1482
|
width: _ref50 => {
|
|
1456
|
-
let
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
auto: "auto",
|
|
1461
|
-
...theme("spacing"),
|
|
1483
|
+
let theme = _ref50.theme;
|
|
1484
|
+
return _objectSpread2(_objectSpread2({
|
|
1485
|
+
auto: "auto"
|
|
1486
|
+
}, theme("spacing")), {}, {
|
|
1462
1487
|
"1/2": "50%",
|
|
1463
1488
|
"1/3": "33.333333%",
|
|
1464
1489
|
"2/3": "66.666667%",
|
|
@@ -1493,7 +1518,7 @@ const theme = {
|
|
|
1493
1518
|
min: "min-content",
|
|
1494
1519
|
max: "max-content",
|
|
1495
1520
|
fit: "fit-content"
|
|
1496
|
-
};
|
|
1521
|
+
});
|
|
1497
1522
|
},
|
|
1498
1523
|
willChange: {
|
|
1499
1524
|
auto: "auto",
|
|
@@ -1613,9 +1638,15 @@ const theme = {
|
|
|
1613
1638
|
};
|
|
1614
1639
|
|
|
1615
1640
|
const vars = {
|
|
1616
|
-
|
|
1641
|
+
// 2D + 3D composite transform (Tailwind v4 extends with 3D axes)
|
|
1642
|
+
transform: "transform: translateX(var(--transform-translate-x, 0)) translateY(var(--transform-translate-y, 0)) translateZ(var(--transform-translate-z, 0)) rotate(var(--transform-rotate, 0)) rotateX(var(--transform-rotate-x, 0)) rotateY(var(--transform-rotate-y, 0)) skewX(var(--transform-skew-x, 0)) skewY(var(--transform-skew-y, 0)) scaleX(var(--transform-scale-x, 1)) scaleY(var(--transform-scale-y, 1)) scaleZ(var(--transform-scale-z, 1));",
|
|
1617
1643
|
filter: "filter: blur(var(--blur, 0)) brightness(var(--brightness, 1)) contrast(var(--contrast, 1)) grayscale(var(--grayscale, 0)) hue-rotate(var(--hue-rotate, 0deg)) invert(var(--invert, 0)) saturate(var(--saturate, 1)) sepia(var(--sepia, 0)) drop-shadow(var(--drop-shadow, 0 0 #0000));",
|
|
1618
|
-
backdropFilter: "-webkit-backdrop-filter: blur(var(--backdrop-blur, 0)) brightness(var(--backdrop-brightness, 1)) contrast(var(--backdrop-contrast, 1)) grayscale(var(--backdrop-grayscale, 0)) hue-rotate(var(--backdrop-hue-rotate, 0deg)) invert(var(--backdrop-invert, 0)) opacity(var(--backdrop-opacity, 1)) saturate(var(--backdrop-saturate, 1)) sepia(var(--backdrop-sepia, 0)); backdrop-filter: blur(var(--backdrop-blur, 0)) brightness(var(--backdrop-brightness, 1)) contrast(var(--backdrop-contrast, 1)) grayscale(var(--backdrop-grayscale, 0)) hue-rotate(var(--backdrop-hue-rotate, 0deg)) invert(var(--backdrop-invert, 0)) opacity(var(--backdrop-opacity, 1)) saturate(var(--backdrop-saturate, 1)) sepia(var(--backdrop-sepia, 0));"
|
|
1644
|
+
backdropFilter: "-webkit-backdrop-filter: blur(var(--backdrop-blur, 0)) brightness(var(--backdrop-brightness, 1)) contrast(var(--backdrop-contrast, 1)) grayscale(var(--backdrop-grayscale, 0)) hue-rotate(var(--backdrop-hue-rotate, 0deg)) invert(var(--backdrop-invert, 0)) opacity(var(--backdrop-opacity, 1)) saturate(var(--backdrop-saturate, 1)) sepia(var(--backdrop-sepia, 0)); backdrop-filter: blur(var(--backdrop-blur, 0)) brightness(var(--backdrop-brightness, 1)) contrast(var(--backdrop-contrast, 1)) grayscale(var(--backdrop-grayscale, 0)) hue-rotate(var(--backdrop-hue-rotate, 0deg)) invert(var(--backdrop-invert, 0)) opacity(var(--backdrop-opacity, 1)) saturate(var(--backdrop-saturate, 1)) sepia(var(--backdrop-sepia, 0));",
|
|
1645
|
+
// Tailwind v4: 3D transform style control
|
|
1646
|
+
transformStyle3d: "transform-style: preserve-3d;",
|
|
1647
|
+
transformStyleFlat: "transform-style: flat;",
|
|
1648
|
+
backfaceVisible: "backface-visibility: visible;",
|
|
1649
|
+
backfaceHidden: "backface-visibility: hidden;"
|
|
1619
1650
|
};
|
|
1620
1651
|
|
|
1621
1652
|
const configOptions = {
|
|
@@ -1623,20 +1654,13 @@ const configOptions = {
|
|
|
1623
1654
|
vars
|
|
1624
1655
|
};
|
|
1625
1656
|
|
|
1626
|
-
/**
|
|
1627
|
-
* User Configuration Management
|
|
1628
|
-
* Handles theme extensions and custom plugin registration
|
|
1629
|
-
*/
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
1657
|
/**
|
|
1633
1658
|
* User configuration state
|
|
1634
1659
|
*/
|
|
1635
1660
|
let userConfig = {
|
|
1636
1661
|
theme: {
|
|
1637
1662
|
extend: {}
|
|
1638
|
-
}
|
|
1639
|
-
prefix: ""};
|
|
1663
|
+
}};
|
|
1640
1664
|
|
|
1641
1665
|
// Cache for extended theme to avoid redundant lookups
|
|
1642
1666
|
const extendedThemeCache = new Map();
|
|
@@ -1658,25 +1682,15 @@ function getExtendedTheme(key) {
|
|
|
1658
1682
|
return result;
|
|
1659
1683
|
}
|
|
1660
1684
|
|
|
1661
|
-
/**
|
|
1662
|
-
* Get configured prefix
|
|
1663
|
-
* @returns {string} Prefix string
|
|
1664
|
-
*/
|
|
1665
|
-
function getPrefix() {
|
|
1666
|
-
return userConfig.prefix;
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
1685
|
function isFunction(functionToCheck) {
|
|
1670
1686
|
return functionToCheck && {}.toString.call(functionToCheck) === "[object Function]";
|
|
1671
1687
|
}
|
|
1672
1688
|
function getConfigOptions() {
|
|
1673
1689
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1674
|
-
const
|
|
1675
|
-
theme = {}
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
extend: themeExtend = {}
|
|
1679
|
-
} = theme;
|
|
1690
|
+
const _options$theme = options.theme,
|
|
1691
|
+
theme = _options$theme === void 0 ? {} : _options$theme;
|
|
1692
|
+
const _theme$extend = theme.extend,
|
|
1693
|
+
themeExtend = _theme$extend === void 0 ? {} : _theme$extend;
|
|
1680
1694
|
const newTheme = {};
|
|
1681
1695
|
const themeKeys = Object.keys(configOptions.theme);
|
|
1682
1696
|
themeKeys.forEach(key => {
|
|
@@ -1720,16 +1734,12 @@ function getConfigOptions() {
|
|
|
1720
1734
|
});
|
|
1721
1735
|
}
|
|
1722
1736
|
});
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
return {
|
|
1728
|
-
prefix: finalPrefix,
|
|
1729
|
-
...configOptions,
|
|
1730
|
-
...options,
|
|
1737
|
+
const finalPrefix = options.prefix || "";
|
|
1738
|
+
return _objectSpread2(_objectSpread2(_objectSpread2({
|
|
1739
|
+
prefix: finalPrefix
|
|
1740
|
+
}, configOptions), options), {}, {
|
|
1731
1741
|
theme: newTheme
|
|
1732
|
-
};
|
|
1742
|
+
});
|
|
1733
1743
|
}
|
|
1734
1744
|
function generateCssString() {
|
|
1735
1745
|
let getCssString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
|
|
@@ -1752,7 +1762,9 @@ function generateCssString() {
|
|
|
1752
1762
|
}
|
|
1753
1763
|
let str = "";
|
|
1754
1764
|
Object.entries(nOptions).forEach(_ref => {
|
|
1755
|
-
let
|
|
1765
|
+
let _ref2 = _slicedToArray(_ref, 2),
|
|
1766
|
+
key = _ref2[0],
|
|
1767
|
+
value = _ref2[1];
|
|
1756
1768
|
str += getStr(key.replace("/", "\\/").replace(".", "\\."), value);
|
|
1757
1769
|
});
|
|
1758
1770
|
return str;
|
|
@@ -1760,14 +1772,18 @@ function generateCssString() {
|
|
|
1760
1772
|
const getCssByColors = function (colors) {
|
|
1761
1773
|
let getStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : () => {};
|
|
1762
1774
|
let str = "";
|
|
1763
|
-
Object.entries(colors).forEach(
|
|
1764
|
-
let
|
|
1775
|
+
Object.entries(colors).forEach(_ref3 => {
|
|
1776
|
+
let _ref4 = _slicedToArray(_ref3, 2),
|
|
1777
|
+
key1 = _ref4[0],
|
|
1778
|
+
value1 = _ref4[1];
|
|
1765
1779
|
if (typeof value1 === "string") {
|
|
1766
|
-
str +=
|
|
1780
|
+
str += "".concat(getStr(key1, value1, hexToRgb(value1)), " ");
|
|
1767
1781
|
} else if (typeof value1 === "object") {
|
|
1768
|
-
Object.entries(value1).forEach(
|
|
1769
|
-
let
|
|
1770
|
-
|
|
1782
|
+
Object.entries(value1).forEach(_ref5 => {
|
|
1783
|
+
let _ref6 = _slicedToArray(_ref5, 2),
|
|
1784
|
+
key2 = _ref6[0],
|
|
1785
|
+
value2 = _ref6[1];
|
|
1786
|
+
str += "".concat(getStr("".concat(key1, "-").concat(key2), value2, hexToRgb(value2)), " ");
|
|
1771
1787
|
});
|
|
1772
1788
|
}
|
|
1773
1789
|
});
|