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