@symbo.ls/scratch 2.11.255 → 2.11.261
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/dist/cjs/factory.js +27 -27
- package/dist/cjs/index.js +71 -37
- package/dist/cjs/set.js +38 -37
- package/dist/cjs/system/color.js +27 -27
- package/dist/cjs/system/document.js +27 -27
- package/dist/cjs/system/font.js +29 -28
- package/dist/cjs/system/index.js +38 -37
- package/dist/cjs/system/reset.js +27 -27
- package/dist/cjs/system/shadow.js +38 -37
- package/dist/cjs/system/spacing.js +38 -37
- package/dist/cjs/system/svg.js +27 -27
- package/dist/cjs/system/theme.js +27 -27
- package/dist/cjs/system/timing.js +28 -28
- package/dist/cjs/system/typography.js +28 -28
- package/dist/cjs/transforms/index.js +143 -37
- package/dist/cjs/utils/color.js +27 -27
- package/dist/cjs/utils/index.js +28 -28
- package/dist/cjs/utils/sequence.js +28 -28
- package/dist/cjs/utils/sprite.js +27 -27
- package/dist/cjs/utils/var.js +27 -27
- package/package.json +2 -2
- package/src/system/spacing.js +5 -5
- package/src/transforms/index.js +37 -1
- package/src/utils/sequence.js +1 -0
package/dist/cjs/factory.js
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// ../../node_modules/@domql/utils/dist/cjs/key.js
|
|
34
34
|
var require_key = __commonJS({
|
|
35
|
-
"
|
|
35
|
+
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
var __defProp2 = Object.defineProperty;
|
|
38
38
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -57,7 +57,7 @@ var require_key = __commonJS({
|
|
|
57
57
|
generateKey: () => generateKey
|
|
58
58
|
});
|
|
59
59
|
module2.exports = __toCommonJS2(key_exports);
|
|
60
|
-
var generateKey = function() {
|
|
60
|
+
var generateKey = /* @__PURE__ */ function() {
|
|
61
61
|
let index = 0;
|
|
62
62
|
function newId() {
|
|
63
63
|
index++;
|
|
@@ -69,9 +69,9 @@ var require_key = __commonJS({
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
//
|
|
72
|
+
// ../../node_modules/@domql/utils/dist/cjs/env.js
|
|
73
73
|
var require_env = __commonJS({
|
|
74
|
-
"
|
|
74
|
+
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
|
|
75
75
|
"use strict";
|
|
76
76
|
var __defProp2 = Object.defineProperty;
|
|
77
77
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -107,9 +107,9 @@ var require_env = __commonJS({
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
//
|
|
110
|
+
// ../../node_modules/@domql/utils/dist/cjs/globals.js
|
|
111
111
|
var require_globals = __commonJS({
|
|
112
|
-
"
|
|
112
|
+
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
|
|
113
113
|
"use strict";
|
|
114
114
|
var __defProp2 = Object.defineProperty;
|
|
115
115
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -143,9 +143,9 @@ var require_globals = __commonJS({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
//
|
|
146
|
+
// ../../node_modules/@domql/utils/dist/cjs/node.js
|
|
147
147
|
var require_node = __commonJS({
|
|
148
|
-
"
|
|
148
|
+
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
|
|
149
149
|
"use strict";
|
|
150
150
|
var __defProp2 = Object.defineProperty;
|
|
151
151
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -180,9 +180,9 @@ var require_node = __commonJS({
|
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
|
|
183
|
-
//
|
|
183
|
+
// ../../node_modules/@domql/utils/dist/cjs/types.js
|
|
184
184
|
var require_types = __commonJS({
|
|
185
|
-
"
|
|
185
|
+
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
|
|
186
186
|
"use strict";
|
|
187
187
|
var __defProp2 = Object.defineProperty;
|
|
188
188
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -270,9 +270,9 @@ var require_types = __commonJS({
|
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
|
|
273
|
-
//
|
|
273
|
+
// ../../node_modules/@domql/utils/dist/cjs/array.js
|
|
274
274
|
var require_array = __commonJS({
|
|
275
|
-
"
|
|
275
|
+
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
|
|
276
276
|
"use strict";
|
|
277
277
|
var __defProp2 = Object.defineProperty;
|
|
278
278
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -383,9 +383,9 @@ var require_array = __commonJS({
|
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
|
|
386
|
-
//
|
|
386
|
+
// ../../node_modules/@domql/utils/dist/cjs/string.js
|
|
387
387
|
var require_string = __commonJS({
|
|
388
|
-
"
|
|
388
|
+
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
|
|
389
389
|
"use strict";
|
|
390
390
|
var __defProp2 = Object.defineProperty;
|
|
391
391
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -448,9 +448,9 @@ var require_string = __commonJS({
|
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
450
|
|
|
451
|
-
//
|
|
451
|
+
// ../../node_modules/@domql/utils/dist/cjs/object.js
|
|
452
452
|
var require_object = __commonJS({
|
|
453
|
-
"
|
|
453
|
+
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
|
|
454
454
|
"use strict";
|
|
455
455
|
var __defProp2 = Object.defineProperty;
|
|
456
456
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -958,9 +958,9 @@ var require_object = __commonJS({
|
|
|
958
958
|
}
|
|
959
959
|
});
|
|
960
960
|
|
|
961
|
-
//
|
|
961
|
+
// ../../node_modules/@domql/utils/dist/cjs/function.js
|
|
962
962
|
var require_function = __commonJS({
|
|
963
|
-
"
|
|
963
|
+
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
|
|
964
964
|
"use strict";
|
|
965
965
|
var __defProp2 = Object.defineProperty;
|
|
966
966
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1033,9 +1033,9 @@ var require_function = __commonJS({
|
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|
|
1035
1035
|
|
|
1036
|
-
//
|
|
1036
|
+
// ../../node_modules/@domql/utils/dist/cjs/log.js
|
|
1037
1037
|
var require_log = __commonJS({
|
|
1038
|
-
"
|
|
1038
|
+
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
|
|
1039
1039
|
"use strict";
|
|
1040
1040
|
var __defProp2 = Object.defineProperty;
|
|
1041
1041
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1074,9 +1074,9 @@ var require_log = __commonJS({
|
|
|
1074
1074
|
}
|
|
1075
1075
|
});
|
|
1076
1076
|
|
|
1077
|
-
//
|
|
1077
|
+
// ../../node_modules/@domql/utils/dist/cjs/cookie.js
|
|
1078
1078
|
var require_cookie = __commonJS({
|
|
1079
|
-
"
|
|
1079
|
+
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
1080
1080
|
"use strict";
|
|
1081
1081
|
var __defProp2 = Object.defineProperty;
|
|
1082
1082
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1130,9 +1130,9 @@ var require_cookie = __commonJS({
|
|
|
1130
1130
|
}
|
|
1131
1131
|
});
|
|
1132
1132
|
|
|
1133
|
-
//
|
|
1133
|
+
// ../../node_modules/@domql/utils/dist/cjs/tags.js
|
|
1134
1134
|
var require_tags = __commonJS({
|
|
1135
|
-
"
|
|
1135
|
+
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
|
|
1136
1136
|
"use strict";
|
|
1137
1137
|
var __defProp2 = Object.defineProperty;
|
|
1138
1138
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1295,9 +1295,9 @@ var require_tags = __commonJS({
|
|
|
1295
1295
|
}
|
|
1296
1296
|
});
|
|
1297
1297
|
|
|
1298
|
-
//
|
|
1298
|
+
// ../../node_modules/@domql/utils/dist/cjs/index.js
|
|
1299
1299
|
var require_cjs = __commonJS({
|
|
1300
|
-
"
|
|
1300
|
+
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
|
|
1301
1301
|
"use strict";
|
|
1302
1302
|
var __defProp2 = Object.defineProperty;
|
|
1303
1303
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
package/dist/cjs/index.js
CHANGED
|
@@ -66,9 +66,9 @@ var require_cjs = __commonJS({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
//
|
|
69
|
+
// ../../node_modules/@domql/utils/dist/cjs/key.js
|
|
70
70
|
var require_key = __commonJS({
|
|
71
|
-
"
|
|
71
|
+
"../../node_modules/@domql/utils/dist/cjs/key.js"(exports, module2) {
|
|
72
72
|
"use strict";
|
|
73
73
|
var __defProp2 = Object.defineProperty;
|
|
74
74
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -93,7 +93,7 @@ var require_key = __commonJS({
|
|
|
93
93
|
generateKey: () => generateKey
|
|
94
94
|
});
|
|
95
95
|
module2.exports = __toCommonJS2(key_exports);
|
|
96
|
-
var generateKey = function() {
|
|
96
|
+
var generateKey = /* @__PURE__ */ function() {
|
|
97
97
|
let index = 0;
|
|
98
98
|
function newId() {
|
|
99
99
|
index++;
|
|
@@ -105,9 +105,9 @@ var require_key = __commonJS({
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
//
|
|
108
|
+
// ../../node_modules/@domql/utils/dist/cjs/env.js
|
|
109
109
|
var require_env = __commonJS({
|
|
110
|
-
"
|
|
110
|
+
"../../node_modules/@domql/utils/dist/cjs/env.js"(exports, module2) {
|
|
111
111
|
"use strict";
|
|
112
112
|
var __defProp2 = Object.defineProperty;
|
|
113
113
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -143,9 +143,9 @@ var require_env = __commonJS({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
//
|
|
146
|
+
// ../../node_modules/@domql/utils/dist/cjs/globals.js
|
|
147
147
|
var require_globals = __commonJS({
|
|
148
|
-
"
|
|
148
|
+
"../../node_modules/@domql/utils/dist/cjs/globals.js"(exports, module2) {
|
|
149
149
|
"use strict";
|
|
150
150
|
var __defProp2 = Object.defineProperty;
|
|
151
151
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -179,9 +179,9 @@ var require_globals = __commonJS({
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
//
|
|
182
|
+
// ../../node_modules/@domql/utils/dist/cjs/node.js
|
|
183
183
|
var require_node = __commonJS({
|
|
184
|
-
"
|
|
184
|
+
"../../node_modules/@domql/utils/dist/cjs/node.js"(exports, module2) {
|
|
185
185
|
"use strict";
|
|
186
186
|
var __defProp2 = Object.defineProperty;
|
|
187
187
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -216,9 +216,9 @@ var require_node = __commonJS({
|
|
|
216
216
|
}
|
|
217
217
|
});
|
|
218
218
|
|
|
219
|
-
//
|
|
219
|
+
// ../../node_modules/@domql/utils/dist/cjs/types.js
|
|
220
220
|
var require_types = __commonJS({
|
|
221
|
-
"
|
|
221
|
+
"../../node_modules/@domql/utils/dist/cjs/types.js"(exports, module2) {
|
|
222
222
|
"use strict";
|
|
223
223
|
var __defProp2 = Object.defineProperty;
|
|
224
224
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -241,7 +241,7 @@ var require_types = __commonJS({
|
|
|
241
241
|
__export2(types_exports, {
|
|
242
242
|
TYPES: () => TYPES,
|
|
243
243
|
is: () => is,
|
|
244
|
-
isArray: () =>
|
|
244
|
+
isArray: () => isArray9,
|
|
245
245
|
isBoolean: () => isBoolean,
|
|
246
246
|
isDate: () => isDate,
|
|
247
247
|
isDefined: () => isDefined2,
|
|
@@ -266,7 +266,7 @@ var require_types = __commonJS({
|
|
|
266
266
|
var isFunction2 = (arg) => typeof arg === "function";
|
|
267
267
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
268
268
|
var isNull = (arg) => arg === null;
|
|
269
|
-
var
|
|
269
|
+
var isArray9 = (arg) => Array.isArray(arg);
|
|
270
270
|
var isDate = (d) => d instanceof Date;
|
|
271
271
|
var isObjectLike3 = (arg) => {
|
|
272
272
|
if (arg === null)
|
|
@@ -274,14 +274,14 @@ var require_types = __commonJS({
|
|
|
274
274
|
return typeof arg === "object";
|
|
275
275
|
};
|
|
276
276
|
var isDefined2 = (arg) => {
|
|
277
|
-
return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction2(arg) ||
|
|
277
|
+
return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction2(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
|
|
278
278
|
};
|
|
279
279
|
var isUndefined = (arg) => {
|
|
280
280
|
return arg === void 0;
|
|
281
281
|
};
|
|
282
282
|
var TYPES = {
|
|
283
283
|
boolean: isBoolean,
|
|
284
|
-
array:
|
|
284
|
+
array: isArray9,
|
|
285
285
|
object: isObject8,
|
|
286
286
|
string: isString10,
|
|
287
287
|
date: isDate,
|
|
@@ -306,9 +306,9 @@ var require_types = __commonJS({
|
|
|
306
306
|
}
|
|
307
307
|
});
|
|
308
308
|
|
|
309
|
-
//
|
|
309
|
+
// ../../node_modules/@domql/utils/dist/cjs/array.js
|
|
310
310
|
var require_array = __commonJS({
|
|
311
|
-
"
|
|
311
|
+
"../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
|
|
312
312
|
"use strict";
|
|
313
313
|
var __defProp2 = Object.defineProperty;
|
|
314
314
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -419,9 +419,9 @@ var require_array = __commonJS({
|
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
|
|
422
|
-
//
|
|
422
|
+
// ../../node_modules/@domql/utils/dist/cjs/string.js
|
|
423
423
|
var require_string = __commonJS({
|
|
424
|
-
"
|
|
424
|
+
"../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
|
|
425
425
|
"use strict";
|
|
426
426
|
var __defProp2 = Object.defineProperty;
|
|
427
427
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -484,9 +484,9 @@ var require_string = __commonJS({
|
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
486
|
|
|
487
|
-
//
|
|
487
|
+
// ../../node_modules/@domql/utils/dist/cjs/object.js
|
|
488
488
|
var require_object = __commonJS({
|
|
489
|
-
"
|
|
489
|
+
"../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
|
|
490
490
|
"use strict";
|
|
491
491
|
var __defProp2 = Object.defineProperty;
|
|
492
492
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -994,9 +994,9 @@ var require_object = __commonJS({
|
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
996
|
|
|
997
|
-
//
|
|
997
|
+
// ../../node_modules/@domql/utils/dist/cjs/function.js
|
|
998
998
|
var require_function = __commonJS({
|
|
999
|
-
"
|
|
999
|
+
"../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
|
|
1000
1000
|
"use strict";
|
|
1001
1001
|
var __defProp2 = Object.defineProperty;
|
|
1002
1002
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1069,9 +1069,9 @@ var require_function = __commonJS({
|
|
|
1069
1069
|
}
|
|
1070
1070
|
});
|
|
1071
1071
|
|
|
1072
|
-
//
|
|
1072
|
+
// ../../node_modules/@domql/utils/dist/cjs/log.js
|
|
1073
1073
|
var require_log = __commonJS({
|
|
1074
|
-
"
|
|
1074
|
+
"../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
|
|
1075
1075
|
"use strict";
|
|
1076
1076
|
var __defProp2 = Object.defineProperty;
|
|
1077
1077
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1110,9 +1110,9 @@ var require_log = __commonJS({
|
|
|
1110
1110
|
}
|
|
1111
1111
|
});
|
|
1112
1112
|
|
|
1113
|
-
//
|
|
1113
|
+
// ../../node_modules/@domql/utils/dist/cjs/cookie.js
|
|
1114
1114
|
var require_cookie = __commonJS({
|
|
1115
|
-
"
|
|
1115
|
+
"../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
1116
1116
|
"use strict";
|
|
1117
1117
|
var __defProp2 = Object.defineProperty;
|
|
1118
1118
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1166,9 +1166,9 @@ var require_cookie = __commonJS({
|
|
|
1166
1166
|
}
|
|
1167
1167
|
});
|
|
1168
1168
|
|
|
1169
|
-
//
|
|
1169
|
+
// ../../node_modules/@domql/utils/dist/cjs/tags.js
|
|
1170
1170
|
var require_tags = __commonJS({
|
|
1171
|
-
"
|
|
1171
|
+
"../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
|
|
1172
1172
|
"use strict";
|
|
1173
1173
|
var __defProp2 = Object.defineProperty;
|
|
1174
1174
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1331,9 +1331,9 @@ var require_tags = __commonJS({
|
|
|
1331
1331
|
}
|
|
1332
1332
|
});
|
|
1333
1333
|
|
|
1334
|
-
//
|
|
1334
|
+
// ../../node_modules/@domql/utils/dist/cjs/index.js
|
|
1335
1335
|
var require_cjs2 = __commonJS({
|
|
1336
|
-
"
|
|
1336
|
+
"../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
|
|
1337
1337
|
"use strict";
|
|
1338
1338
|
var __defProp2 = Object.defineProperty;
|
|
1339
1339
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -1410,6 +1410,7 @@ __export(src_exports, {
|
|
|
1410
1410
|
applyTimingSequence: () => applyTimingSequence,
|
|
1411
1411
|
applyTypographySequence: () => applyTypographySequence,
|
|
1412
1412
|
changeLightness: () => changeLightness,
|
|
1413
|
+
checkIfBoxSize: () => checkIfBoxSize,
|
|
1413
1414
|
colorStringToRgbaArray: () => colorStringToRgbaArray,
|
|
1414
1415
|
convertSvgToSymbol: () => convertSvgToSymbol,
|
|
1415
1416
|
findHeadingLetter: () => findHeadingLetter,
|
|
@@ -1483,6 +1484,8 @@ __export(src_exports, {
|
|
|
1483
1484
|
transformBoxShadow: () => transformBoxShadow,
|
|
1484
1485
|
transformDuration: () => transformDuration,
|
|
1485
1486
|
transformShadow: () => transformShadow,
|
|
1487
|
+
transformSize: () => transformSize,
|
|
1488
|
+
transformSizeRatio: () => transformSizeRatio,
|
|
1486
1489
|
transformTextStroke: () => transformTextStroke,
|
|
1487
1490
|
transformTransition: () => transformTransition,
|
|
1488
1491
|
transfromGap: () => transfromGap
|
|
@@ -1767,7 +1770,8 @@ var arrayzeValue = (val) => {
|
|
|
1767
1770
|
return val.split(" ");
|
|
1768
1771
|
if ((0, import_utils3.isObject)(val))
|
|
1769
1772
|
return Object.values(val);
|
|
1770
|
-
|
|
1773
|
+
if ((0, import_utils3.isNumber)(val))
|
|
1774
|
+
return [val];
|
|
1771
1775
|
};
|
|
1772
1776
|
|
|
1773
1777
|
// src/factory.js
|
|
@@ -2140,7 +2144,7 @@ var getSequenceValue = (value = "A", sequenceProps) => {
|
|
|
2140
2144
|
const prefix = `--${toDashCase(sequenceProps.type.replace(".", "-"))}-`;
|
|
2141
2145
|
const startsWithDashOrLetterRegex = /^-?[a-zA-Z]/i;
|
|
2142
2146
|
const startsWithDashOrLetter = startsWithDashOrLetterRegex.test(value);
|
|
2143
|
-
if (value === "none" || value === "auto" || value === "unset" || value === "inherit" || value === "fit-content" || value === "min-content" || value === "max-content" || value.includes("calc") || !startsWithDashOrLetter)
|
|
2147
|
+
if (value === "none" || value === "auto" || value === "unset" || value === "inherit" || value === "fit-content" || value === "min-content" || value === "max-content" || value.includes("calc") || value.includes("var") || !startsWithDashOrLetter)
|
|
2144
2148
|
return value;
|
|
2145
2149
|
const letterVal = value.toUpperCase();
|
|
2146
2150
|
const isNegative = letterVal.slice(0, 1) === "-" ? "-" : "";
|
|
@@ -2888,12 +2892,12 @@ var getSequence = (sequenceProps) => {
|
|
|
2888
2892
|
};
|
|
2889
2893
|
var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
|
|
2890
2894
|
const sequence = getSequence(sequenceProps);
|
|
2891
|
-
|
|
2892
|
-
if (!stack)
|
|
2893
|
-
return;
|
|
2894
|
-
if ((0, import_utils18.isString)(value) && value.includes("calc")) {
|
|
2895
|
+
if ((0, import_utils18.isString)(value) && (value.includes("calc") || value.includes("var"))) {
|
|
2895
2896
|
return { [propertyName]: value };
|
|
2896
2897
|
}
|
|
2898
|
+
const stack = arrayzeValue(value);
|
|
2899
|
+
if (!(0, import_utils18.isArray)(stack))
|
|
2900
|
+
return;
|
|
2897
2901
|
if (stack.length > 1) {
|
|
2898
2902
|
let suffix = "";
|
|
2899
2903
|
if (propertyName === "borderWidth") {
|
|
@@ -3309,6 +3313,36 @@ var splitTransition = (transition) => {
|
|
|
3309
3313
|
return;
|
|
3310
3314
|
return arr.map(transformTransition).join(",");
|
|
3311
3315
|
};
|
|
3316
|
+
var checkIfBoxSize = (propertyName) => {
|
|
3317
|
+
const prop = propertyName.toLowerCase();
|
|
3318
|
+
return (prop.includes("width") || prop.includes("height")) && !prop.includes("border");
|
|
3319
|
+
};
|
|
3320
|
+
var transformSize = (propertyName, val, props = {}, opts = {}) => {
|
|
3321
|
+
let value = val !== void 0 ? val : props[propertyName];
|
|
3322
|
+
if (value === void 0)
|
|
3323
|
+
return;
|
|
3324
|
+
const shouldScaleBoxSize = props.scaleBoxSize;
|
|
3325
|
+
const isBoxSize = checkIfBoxSize(propertyName);
|
|
3326
|
+
if (!shouldScaleBoxSize && isBoxSize && (0, import_utils27.isString)(value)) {
|
|
3327
|
+
value = value.split(" ").map((v) => {
|
|
3328
|
+
const isSingleLetter = v.length < 3 && /[A-Z]/.test(v);
|
|
3329
|
+
const hasUnits = ["%", "vw", "vh", "ch"].some((unit) => value.includes(unit));
|
|
3330
|
+
if (isSingleLetter && !hasUnits)
|
|
3331
|
+
return v + "_default";
|
|
3332
|
+
return v;
|
|
3333
|
+
}).join(" ");
|
|
3334
|
+
}
|
|
3335
|
+
if (opts.ratio) {
|
|
3336
|
+
return getSpacingBasedOnRatio(props, propertyName, value);
|
|
3337
|
+
} else {
|
|
3338
|
+
return getSpacingByKey(value, propertyName);
|
|
3339
|
+
}
|
|
3340
|
+
};
|
|
3341
|
+
var transformSizeRatio = (propertyName, props) => {
|
|
3342
|
+
return transformSize(propertyName, null, props, {
|
|
3343
|
+
ratio: true
|
|
3344
|
+
});
|
|
3345
|
+
};
|
|
3312
3346
|
|
|
3313
3347
|
// src/set.js
|
|
3314
3348
|
var import_utils28 = __toESM(require_cjs2(), 1);
|