tailwind-to-style 3.3.0 → 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 (51) hide show
  1. package/README.md +208 -1118
  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 +2241 -4181
  7. package/dist/className/index.esm.js +2241 -4181
  8. package/dist/className/index.esm.js.map +1 -1
  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 +1971 -3970
  14. package/dist/core/twsx.esm.js +1971 -3970
  15. package/dist/core/twsx.esm.js.map +1 -1
  16. package/dist/core/twsxVariants.cjs +1997 -3986
  17. package/dist/core/twsxVariants.esm.js +1997 -3986
  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 +5253 -9252
  23. package/dist/index.cjs.map +1 -0
  24. package/dist/index.d.ts +4 -1
  25. package/dist/index.esm.js +5251 -9201
  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 +219 -270
  44. package/dist/utils/index.esm.js +219 -270
  45. package/dist/utils/index.esm.js.map +1 -1
  46. package/package.json +33 -24
  47. package/types/animations/index.d.ts +58 -0
  48. package/types/index.d.ts +4 -1
  49. package/types/react/index.d.ts +69 -0
  50. package/types/tokens/index.d.ts +33 -0
  51. package/types/v4.d.ts +191 -0
@@ -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,18 +204,13 @@ 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: {
@@ -169,12 +228,8 @@ const theme = {
169
228
  custom: "custom_value"
170
229
  },
171
230
  borderSpacing: _ref13 => {
172
- let {
173
- theme
174
- } = _ref13;
175
- return {
176
- ...theme("spacing")
177
- };
231
+ let theme = _ref13.theme;
232
+ return _objectSpread2({}, theme("spacing"));
178
233
  },
179
234
  borderWidth: {
180
235
  DEFAULT: "1px",
@@ -197,9 +252,7 @@ const theme = {
197
252
  custom: "custom_value"
198
253
  },
199
254
  boxShadowColor: _ref14 => {
200
- let {
201
- theme
202
- } = _ref14;
255
+ let theme = _ref14.theme;
203
256
  return theme("colors");
204
257
  },
205
258
  brightness: {
@@ -217,9 +270,7 @@ const theme = {
217
270
  custom: "custom_value"
218
271
  },
219
272
  caretColor: _ref15 => {
220
- let {
221
- theme
222
- } = _ref15;
273
+ let theme = _ref15.theme;
223
274
  return theme("colors");
224
275
  },
225
276
  colors: {
@@ -597,21 +648,15 @@ const theme = {
597
648
  "zoom-out": "zoom-out"
598
649
  },
599
650
  divideColor: _ref16 => {
600
- let {
601
- theme
602
- } = _ref16;
651
+ let theme = _ref16.theme;
603
652
  return theme("borderColor");
604
653
  },
605
654
  divideOpacity: _ref17 => {
606
- let {
607
- theme
608
- } = _ref17;
655
+ let theme = _ref17.theme;
609
656
  return theme("borderOpacity");
610
657
  },
611
658
  divideWidth: _ref18 => {
612
- let {
613
- theme
614
- } = _ref18;
659
+ let theme = _ref18.theme;
615
660
  return theme("borderWidth");
616
661
  },
617
662
  dropShadow: {
@@ -624,13 +669,10 @@ const theme = {
624
669
  none: "0 0 #0000"
625
670
  },
626
671
  fill: _ref19 => {
627
- let {
628
- theme
629
- } = _ref19;
630
- return {
631
- none: "none",
632
- ...theme("colors")
633
- };
672
+ let theme = _ref19.theme;
673
+ return _objectSpread2({
674
+ none: "none"
675
+ }, theme("colors"));
634
676
  },
635
677
  flex: {
636
678
  1: "1 1 0%",
@@ -639,12 +681,10 @@ const theme = {
639
681
  none: "none"
640
682
  },
641
683
  flexBasis: _ref20 => {
642
- let {
643
- theme
644
- } = _ref20;
645
- return {
646
- auto: "auto",
647
- ...theme("spacing"),
684
+ let theme = _ref20.theme;
685
+ return _objectSpread2(_objectSpread2({
686
+ auto: "auto"
687
+ }, theme("spacing")), {}, {
648
688
  "1/2": "50%",
649
689
  "1/3": "33.333333%",
650
690
  "2/3": "66.666667%",
@@ -672,7 +712,7 @@ const theme = {
672
712
  "10/12": "83.333333%",
673
713
  "11/12": "91.666667%",
674
714
  full: "100%"
675
- };
715
+ });
676
716
  },
677
717
  flexGrow: {
678
718
  0: "0",
@@ -727,15 +767,11 @@ const theme = {
727
767
  custom: "custom_value"
728
768
  },
729
769
  gap: _ref21 => {
730
- let {
731
- theme
732
- } = _ref21;
770
+ let theme = _ref21.theme;
733
771
  return theme("spacing");
734
772
  },
735
773
  gradientColorStops: _ref22 => {
736
- let {
737
- theme
738
- } = _ref22;
774
+ let theme = _ref22.theme;
739
775
  return theme("colors");
740
776
  },
741
777
  gradientColorStopPositions: {
@@ -906,12 +942,10 @@ const theme = {
906
942
  12: "repeat(12, minmax(0, 1fr))"
907
943
  },
908
944
  height: _ref23 => {
909
- let {
910
- theme
911
- } = _ref23;
912
- return {
913
- auto: "auto",
914
- ...theme("spacing"),
945
+ let theme = _ref23.theme;
946
+ return _objectSpread2(_objectSpread2({
947
+ auto: "auto"
948
+ }, theme("spacing")), {}, {
915
949
  "1/2": "50%",
916
950
  "1/3": "33.333333%",
917
951
  "2/3": "66.666667%",
@@ -936,7 +970,7 @@ const theme = {
936
970
  max: "max-content",
937
971
  fit: "fit-content",
938
972
  custom: "custom_value"
939
- };
973
+ });
940
974
  },
941
975
  hueRotate: {
942
976
  0: "0deg",
@@ -947,12 +981,10 @@ const theme = {
947
981
  180: "180deg"
948
982
  },
949
983
  inset: _ref24 => {
950
- let {
951
- theme
952
- } = _ref24;
953
- return {
954
- auto: "auto",
955
- ...theme("spacing"),
984
+ let theme = _ref24.theme;
985
+ return _objectSpread2(_objectSpread2({
986
+ auto: "auto"
987
+ }, theme("spacing")), {}, {
956
988
  "1/2": "50%",
957
989
  "1/3": "33.333333%",
958
990
  "2/3": "66.666667%",
@@ -960,7 +992,7 @@ const theme = {
960
992
  "2/4": "50%",
961
993
  "3/4": "75%",
962
994
  full: "100%"
963
- };
995
+ });
964
996
  },
965
997
  insetShadow: {
966
998
  xs: "inset 0 1px 1px 0 rgb(0 0 0 / 0.05)",
@@ -1015,20 +1047,14 @@ const theme = {
1015
1047
  decimal: "decimal"
1016
1048
  },
1017
1049
  margin: _ref25 => {
1018
- let {
1019
- theme
1020
- } = _ref25;
1021
- return {
1022
- auto: "auto",
1023
- ...theme("spacing")
1024
- };
1050
+ let theme = _ref25.theme;
1051
+ return _objectSpread2({
1052
+ auto: "auto"
1053
+ }, theme("spacing"));
1025
1054
  },
1026
1055
  maxHeight: _ref26 => {
1027
- let {
1028
- theme
1029
- } = _ref26;
1030
- return {
1031
- ...theme("spacing"),
1056
+ let theme = _ref26.theme;
1057
+ return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
1032
1058
  none: "none",
1033
1059
  full: "100%",
1034
1060
  screen: "100vh",
@@ -1038,14 +1064,11 @@ const theme = {
1038
1064
  min: "min-content",
1039
1065
  max: "max-content",
1040
1066
  fit: "fit-content"
1041
- };
1067
+ });
1042
1068
  },
1043
1069
  maxWidth: _ref27 => {
1044
- let {
1045
- theme
1046
- } = _ref27;
1047
- return {
1048
- ...theme("spacing"),
1070
+ let theme = _ref27.theme;
1071
+ return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
1049
1072
  none: "none",
1050
1073
  xs: "20rem",
1051
1074
  sm: "24rem",
@@ -1063,14 +1086,11 @@ const theme = {
1063
1086
  max: "max-content",
1064
1087
  fit: "fit-content",
1065
1088
  prose: "65ch"
1066
- };
1089
+ });
1067
1090
  },
1068
1091
  minHeight: _ref28 => {
1069
- let {
1070
- theme
1071
- } = _ref28;
1072
- return {
1073
- ...theme("spacing"),
1092
+ let theme = _ref28.theme;
1093
+ return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
1074
1094
  full: "100%",
1075
1095
  screen: "100vh",
1076
1096
  svh: "100svh",
@@ -1079,19 +1099,16 @@ const theme = {
1079
1099
  min: "min-content",
1080
1100
  max: "max-content",
1081
1101
  fit: "fit-content"
1082
- };
1102
+ });
1083
1103
  },
1084
1104
  minWidth: _ref29 => {
1085
- let {
1086
- theme
1087
- } = _ref29;
1088
- return {
1089
- ...theme("spacing"),
1105
+ let theme = _ref29.theme;
1106
+ return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
1090
1107
  full: "100%",
1091
1108
  min: "min-content",
1092
1109
  max: "max-content",
1093
1110
  fit: "fit-content"
1094
- };
1111
+ });
1095
1112
  },
1096
1113
  objectPosition: {
1097
1114
  bottom: "bottom",
@@ -1147,9 +1164,7 @@ const theme = {
1147
1164
  custom: "custom_value"
1148
1165
  },
1149
1166
  outlineColor: _ref30 => {
1150
- let {
1151
- theme
1152
- } = _ref30;
1167
+ let theme = _ref30.theme;
1153
1168
  return theme("colors");
1154
1169
  },
1155
1170
  outlineOffset: {
@@ -1161,9 +1176,7 @@ const theme = {
1161
1176
  custom: "custom_value"
1162
1177
  },
1163
1178
  outlineOpacity: _ref31 => {
1164
- let {
1165
- theme
1166
- } = _ref31;
1179
+ let theme = _ref31.theme;
1167
1180
  return theme("opacity");
1168
1181
  },
1169
1182
  outlineWidth: {
@@ -1175,9 +1188,7 @@ const theme = {
1175
1188
  custom: "custom_value"
1176
1189
  },
1177
1190
  padding: _ref32 => {
1178
- let {
1179
- theme
1180
- } = _ref32;
1191
+ let theme = _ref32.theme;
1181
1192
  return theme("spacing");
1182
1193
  },
1183
1194
  perspective: {
@@ -1190,18 +1201,13 @@ const theme = {
1190
1201
  custom: "custom_value"
1191
1202
  },
1192
1203
  ringColor: _ref33 => {
1193
- let {
1194
- theme
1195
- } = _ref33;
1196
- return {
1197
- DEFAULT: "#3b82f6",
1198
- ...theme("colors")
1199
- };
1204
+ let theme = _ref33.theme;
1205
+ return _objectSpread2({
1206
+ DEFAULT: "#3b82f6"
1207
+ }, theme("colors"));
1200
1208
  },
1201
1209
  ringOffsetColor: _ref34 => {
1202
- let {
1203
- theme
1204
- } = _ref34;
1210
+ let theme = _ref34.theme;
1205
1211
  return theme("colors");
1206
1212
  },
1207
1213
  ringOffsetWidth: {
@@ -1213,13 +1219,10 @@ const theme = {
1213
1219
  custom: "custom_value"
1214
1220
  },
1215
1221
  ringOpacity: _ref35 => {
1216
- let {
1217
- theme
1218
- } = _ref35;
1219
- return {
1220
- DEFAULT: "0.5",
1221
- ...theme("opacity")
1222
- };
1222
+ let theme = _ref35.theme;
1223
+ return _objectSpread2({
1224
+ DEFAULT: "0.5"
1225
+ }, theme("opacity"));
1223
1226
  },
1224
1227
  ringWidth: {
1225
1228
  DEFAULT: "3px",
@@ -1264,17 +1267,11 @@ const theme = {
1264
1267
  custom: "custom_value"
1265
1268
  },
1266
1269
  scrollMargin: _ref36 => {
1267
- let {
1268
- theme
1269
- } = _ref36;
1270
- return {
1271
- ...theme("spacing")
1272
- };
1270
+ let theme = _ref36.theme;
1271
+ return _objectSpread2({}, theme("spacing"));
1273
1272
  },
1274
1273
  scrollPadding: _ref37 => {
1275
- let {
1276
- theme
1277
- } = _ref37;
1274
+ let theme = _ref37.theme;
1278
1275
  return theme("spacing");
1279
1276
  },
1280
1277
  screens: {
@@ -1299,12 +1296,8 @@ const theme = {
1299
1296
  custom: "custom_value"
1300
1297
  },
1301
1298
  space: _ref38 => {
1302
- let {
1303
- theme
1304
- } = _ref38;
1305
- return {
1306
- ...theme("spacing")
1307
- };
1299
+ let theme = _ref38.theme;
1300
+ return _objectSpread2({}, theme("spacing"));
1308
1301
  },
1309
1302
  spacing: {
1310
1303
  px: "1px",
@@ -1350,13 +1343,10 @@ const theme = {
1350
1343
  custom: "custom_value"
1351
1344
  },
1352
1345
  stroke: _ref39 => {
1353
- let {
1354
- theme
1355
- } = _ref39;
1356
- return {
1357
- none: "none",
1358
- ...theme("colors")
1359
- };
1346
+ let theme = _ref39.theme;
1347
+ return _objectSpread2({
1348
+ none: "none"
1349
+ }, theme("colors"));
1360
1350
  },
1361
1351
  strokeWidth: {
1362
1352
  0: "0",
@@ -1365,15 +1355,11 @@ const theme = {
1365
1355
  custom: "custom_value"
1366
1356
  },
1367
1357
  textColor: _ref40 => {
1368
- let {
1369
- theme
1370
- } = _ref40;
1358
+ let theme = _ref40.theme;
1371
1359
  return theme("colors");
1372
1360
  },
1373
1361
  textDecorationColor: _ref41 => {
1374
- let {
1375
- theme
1376
- } = _ref41;
1362
+ let theme = _ref41.theme;
1377
1363
  return theme("colors");
1378
1364
  },
1379
1365
  textDecorationThickness: {
@@ -1387,38 +1373,25 @@ const theme = {
1387
1373
  custom: "custom_value"
1388
1374
  },
1389
1375
  textIndent: _ref42 => {
1390
- let {
1391
- theme
1392
- } = _ref42;
1393
- return {
1394
- ...theme("spacing")
1395
- };
1376
+ let theme = _ref42.theme;
1377
+ return _objectSpread2({}, theme("spacing"));
1396
1378
  },
1397
1379
  textOpacity: _ref43 => {
1398
- let {
1399
- theme
1400
- } = _ref43;
1380
+ let theme = _ref43.theme;
1401
1381
  return theme("opacity");
1402
1382
  },
1403
1383
  textShadowBlur: _ref44 => {
1404
- let {
1405
- theme
1406
- } = _ref44;
1384
+ let theme = _ref44.theme;
1407
1385
  return theme("blur");
1408
1386
  },
1409
1387
  textShadowColor: _ref45 => {
1410
- let {
1411
- theme
1412
- } = _ref45;
1413
- return {
1414
- ...theme("colors"),
1388
+ let theme = _ref45.theme;
1389
+ return _objectSpread2(_objectSpread2({}, theme("colors")), {}, {
1415
1390
  DEFAULT: "#e5e7eb"
1416
- };
1391
+ });
1417
1392
  },
1418
1393
  textShadowOpacity: _ref46 => {
1419
- let {
1420
- theme
1421
- } = _ref46;
1394
+ let theme = _ref46.theme;
1422
1395
  return theme("opacity");
1423
1396
  },
1424
1397
  textShadowX: {
@@ -1436,9 +1409,7 @@ const theme = {
1436
1409
  custom: "custom_value"
1437
1410
  },
1438
1411
  textShadowY: _ref47 => {
1439
- let {
1440
- theme
1441
- } = _ref47;
1412
+ let theme = _ref47.theme;
1442
1413
  return theme("textShadowX");
1443
1414
  },
1444
1415
  textUnderlineOffset: {
@@ -1462,11 +1433,8 @@ const theme = {
1462
1433
  "top-left": "top left"
1463
1434
  },
1464
1435
  translate: _ref48 => {
1465
- let {
1466
- theme
1467
- } = _ref48;
1468
- return {
1469
- ...theme("spacing"),
1436
+ let theme = _ref48.theme;
1437
+ return _objectSpread2(_objectSpread2({}, theme("spacing")), {}, {
1470
1438
  "1/2": "50%",
1471
1439
  "1/3": "33.333333%",
1472
1440
  "2/3": "66.666667%",
@@ -1474,15 +1442,13 @@ const theme = {
1474
1442
  "2/4": "50%",
1475
1443
  "3/4": "75%",
1476
1444
  full: "100%"
1477
- };
1445
+ });
1478
1446
  },
1479
1447
  size: _ref49 => {
1480
- let {
1481
- theme
1482
- } = _ref49;
1483
- return {
1484
- auto: "auto",
1485
- ...theme("spacing"),
1448
+ let theme = _ref49.theme;
1449
+ return _objectSpread2(_objectSpread2({
1450
+ auto: "auto"
1451
+ }, theme("spacing")), {}, {
1486
1452
  "1/2": "50%",
1487
1453
  "1/3": "33.333333%",
1488
1454
  "2/3": "66.666667%",
@@ -1513,15 +1479,13 @@ const theme = {
1513
1479
  min: "min-content",
1514
1480
  max: "max-content",
1515
1481
  fit: "fit-content"
1516
- };
1482
+ });
1517
1483
  },
1518
1484
  width: _ref50 => {
1519
- let {
1520
- theme
1521
- } = _ref50;
1522
- return {
1523
- auto: "auto",
1524
- ...theme("spacing"),
1485
+ let theme = _ref50.theme;
1486
+ return _objectSpread2(_objectSpread2({
1487
+ auto: "auto"
1488
+ }, theme("spacing")), {}, {
1525
1489
  "1/2": "50%",
1526
1490
  "1/3": "33.333333%",
1527
1491
  "2/3": "66.666667%",
@@ -1556,7 +1520,7 @@ const theme = {
1556
1520
  min: "min-content",
1557
1521
  max: "max-content",
1558
1522
  fit: "fit-content"
1559
- };
1523
+ });
1560
1524
  },
1561
1525
  willChange: {
1562
1526
  auto: "auto",
@@ -1692,20 +1656,13 @@ const configOptions = {
1692
1656
  vars
1693
1657
  };
1694
1658
 
1695
- /**
1696
- * User Configuration Management
1697
- * Handles theme extensions and custom plugin registration
1698
- */
1699
-
1700
-
1701
1659
  /**
1702
1660
  * User configuration state
1703
1661
  */
1704
1662
  let userConfig = {
1705
1663
  theme: {
1706
1664
  extend: {}
1707
- },
1708
- prefix: ""};
1665
+ }};
1709
1666
 
1710
1667
  // Cache for extended theme to avoid redundant lookups
1711
1668
  const extendedThemeCache = new Map();
@@ -1727,25 +1684,15 @@ function getExtendedTheme(key) {
1727
1684
  return result;
1728
1685
  }
1729
1686
 
1730
- /**
1731
- * Get configured prefix
1732
- * @returns {string} Prefix string
1733
- */
1734
- function getPrefix() {
1735
- return userConfig.prefix;
1736
- }
1737
-
1738
1687
  function isFunction(functionToCheck) {
1739
1688
  return functionToCheck && {}.toString.call(functionToCheck) === "[object Function]";
1740
1689
  }
1741
1690
  function getConfigOptions() {
1742
1691
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1743
- const {
1744
- theme = {}
1745
- } = options;
1746
- const {
1747
- extend: themeExtend = {}
1748
- } = 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;
1749
1696
  const newTheme = {};
1750
1697
  const themeKeys = Object.keys(configOptions.theme);
1751
1698
  themeKeys.forEach(key => {
@@ -1789,16 +1736,12 @@ function getConfigOptions() {
1789
1736
  });
1790
1737
  }
1791
1738
  });
1792
-
1793
- // Get user prefix
1794
- const userPrefix = getPrefix();
1795
- const finalPrefix = userPrefix || options.prefix || "";
1796
- return {
1797
- prefix: finalPrefix,
1798
- ...configOptions,
1799
- ...options,
1739
+ const finalPrefix = options.prefix || "";
1740
+ return _objectSpread2(_objectSpread2(_objectSpread2({
1741
+ prefix: finalPrefix
1742
+ }, configOptions), options), {}, {
1800
1743
  theme: newTheme
1801
- };
1744
+ });
1802
1745
  }
1803
1746
  function generateCssString() {
1804
1747
  let getCssString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
@@ -1821,7 +1764,9 @@ function generateCssString() {
1821
1764
  }
1822
1765
  let str = "";
1823
1766
  Object.entries(nOptions).forEach(_ref => {
1824
- let [key, value] = _ref;
1767
+ let _ref2 = _slicedToArray(_ref, 2),
1768
+ key = _ref2[0],
1769
+ value = _ref2[1];
1825
1770
  str += getStr(key.replace("/", "\\/").replace(".", "\\."), value);
1826
1771
  });
1827
1772
  return str;
@@ -1829,14 +1774,18 @@ function generateCssString() {
1829
1774
  const getCssByColors = function (colors) {
1830
1775
  let getStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : () => {};
1831
1776
  let str = "";
1832
- Object.entries(colors).forEach(_ref2 => {
1833
- let [key1, value1] = _ref2;
1777
+ Object.entries(colors).forEach(_ref3 => {
1778
+ let _ref4 = _slicedToArray(_ref3, 2),
1779
+ key1 = _ref4[0],
1780
+ value1 = _ref4[1];
1834
1781
  if (typeof value1 === "string") {
1835
- str += `${getStr(key1, value1, hexToRgb(value1))} `;
1782
+ str += "".concat(getStr(key1, value1, hexToRgb(value1)), " ");
1836
1783
  } else if (typeof value1 === "object") {
1837
- Object.entries(value1).forEach(_ref3 => {
1838
- let [key2, value2] = _ref3;
1839
- 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)), " ");
1840
1789
  });
1841
1790
  }
1842
1791
  });