@symbo.ls/scratch 2.11.212 → 2.11.216

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/index.js CHANGED
@@ -66,9 +66,9 @@ var require_cjs = __commonJS({
66
66
  }
67
67
  });
68
68
 
69
- // ../../../domql/packages/utils/dist/cjs/key.js
69
+ // ../../node_modules/@domql/utils/dist/cjs/key.js
70
70
  var require_key = __commonJS({
71
- "../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
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;
@@ -105,9 +105,9 @@ var require_key = __commonJS({
105
105
  }
106
106
  });
107
107
 
108
- // ../../../domql/packages/utils/dist/cjs/env.js
108
+ // ../../node_modules/@domql/utils/dist/cjs/env.js
109
109
  var require_env = __commonJS({
110
- "../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
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
- // ../../../domql/packages/utils/dist/cjs/globals.js
146
+ // ../../node_modules/@domql/utils/dist/cjs/globals.js
147
147
  var require_globals = __commonJS({
148
- "../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
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
- // ../../../domql/packages/utils/dist/cjs/node.js
182
+ // ../../node_modules/@domql/utils/dist/cjs/node.js
183
183
  var require_node = __commonJS({
184
- "../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
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
- // ../../../domql/packages/utils/dist/cjs/types.js
219
+ // ../../node_modules/@domql/utils/dist/cjs/types.js
220
220
  var require_types = __commonJS({
221
- "../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
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,47 +241,47 @@ var require_types = __commonJS({
241
241
  __export2(types_exports, {
242
242
  TYPES: () => TYPES,
243
243
  is: () => is,
244
- isArray: () => isArray6,
244
+ isArray: () => isArray7,
245
245
  isBoolean: () => isBoolean,
246
246
  isDefined: () => isDefined2,
247
247
  isFunction: () => isFunction2,
248
248
  isNot: () => isNot,
249
249
  isNull: () => isNull,
250
250
  isNumber: () => isNumber2,
251
- isObject: () => isObject7,
251
+ isObject: () => isObject8,
252
252
  isObjectLike: () => isObjectLike3,
253
- isString: () => isString9,
253
+ isString: () => isString10,
254
254
  isUndefined: () => isUndefined
255
255
  });
256
256
  module2.exports = __toCommonJS2(types_exports);
257
257
  var import_node = require_node();
258
- var isObject7 = (arg) => {
258
+ var isObject8 = (arg) => {
259
259
  if (arg === null)
260
260
  return false;
261
261
  return typeof arg === "object" && arg.constructor === Object;
262
262
  };
263
- var isString9 = (arg) => typeof arg === "string";
263
+ var isString10 = (arg) => typeof arg === "string";
264
264
  var isNumber2 = (arg) => typeof arg === "number";
265
265
  var isFunction2 = (arg) => typeof arg === "function";
266
266
  var isBoolean = (arg) => arg === true || arg === false;
267
267
  var isNull = (arg) => arg === null;
268
- var isArray6 = (arg) => Array.isArray(arg);
268
+ var isArray7 = (arg) => Array.isArray(arg);
269
269
  var isObjectLike3 = (arg) => {
270
270
  if (arg === null)
271
271
  return false;
272
272
  return typeof arg === "object";
273
273
  };
274
274
  var isDefined2 = (arg) => {
275
- return isObject7(arg) || isObjectLike3(arg) || isString9(arg) || isNumber2(arg) || isFunction2(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
275
+ return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber2(arg) || isFunction2(arg) || isArray7(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
276
276
  };
277
277
  var isUndefined = (arg) => {
278
278
  return arg === void 0;
279
279
  };
280
280
  var TYPES = {
281
281
  boolean: isBoolean,
282
- array: isArray6,
283
- object: isObject7,
284
- string: isString9,
282
+ array: isArray7,
283
+ object: isObject8,
284
+ string: isString10,
285
285
  number: isNumber2,
286
286
  null: isNull,
287
287
  function: isFunction2,
@@ -303,9 +303,9 @@ var require_types = __commonJS({
303
303
  }
304
304
  });
305
305
 
306
- // ../../../domql/packages/utils/dist/cjs/array.js
306
+ // ../../node_modules/@domql/utils/dist/cjs/array.js
307
307
  var require_array = __commonJS({
308
- "../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
308
+ "../../node_modules/@domql/utils/dist/cjs/array.js"(exports, module2) {
309
309
  "use strict";
310
310
  var __defProp2 = Object.defineProperty;
311
311
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -402,9 +402,9 @@ var require_array = __commonJS({
402
402
  }
403
403
  });
404
404
 
405
- // ../../../domql/packages/utils/dist/cjs/string.js
405
+ // ../../node_modules/@domql/utils/dist/cjs/string.js
406
406
  var require_string = __commonJS({
407
- "../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
407
+ "../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
408
408
  "use strict";
409
409
  var __defProp2 = Object.defineProperty;
410
410
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -462,9 +462,9 @@ var require_string = __commonJS({
462
462
  }
463
463
  });
464
464
 
465
- // ../../../domql/packages/utils/dist/cjs/object.js
465
+ // ../../node_modules/@domql/utils/dist/cjs/object.js
466
466
  var require_object = __commonJS({
467
- "../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
467
+ "../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
468
468
  "use strict";
469
469
  var __defProp2 = Object.defineProperty;
470
470
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -914,9 +914,9 @@ var require_object = __commonJS({
914
914
  }
915
915
  });
916
916
 
917
- // ../../../domql/packages/utils/dist/cjs/function.js
917
+ // ../../node_modules/@domql/utils/dist/cjs/function.js
918
918
  var require_function = __commonJS({
919
- "../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
919
+ "../../node_modules/@domql/utils/dist/cjs/function.js"(exports, module2) {
920
920
  "use strict";
921
921
  var __defProp2 = Object.defineProperty;
922
922
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -989,9 +989,9 @@ var require_function = __commonJS({
989
989
  }
990
990
  });
991
991
 
992
- // ../../../domql/packages/utils/dist/cjs/log.js
992
+ // ../../node_modules/@domql/utils/dist/cjs/log.js
993
993
  var require_log = __commonJS({
994
- "../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
994
+ "../../node_modules/@domql/utils/dist/cjs/log.js"(exports, module2) {
995
995
  "use strict";
996
996
  var __defProp2 = Object.defineProperty;
997
997
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -1030,9 +1030,9 @@ var require_log = __commonJS({
1030
1030
  }
1031
1031
  });
1032
1032
 
1033
- // ../../../domql/packages/utils/dist/cjs/cookie.js
1033
+ // ../../node_modules/@domql/utils/dist/cjs/cookie.js
1034
1034
  var require_cookie = __commonJS({
1035
- "../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
1035
+ "../../node_modules/@domql/utils/dist/cjs/cookie.js"(exports, module2) {
1036
1036
  "use strict";
1037
1037
  var __defProp2 = Object.defineProperty;
1038
1038
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -1086,9 +1086,9 @@ var require_cookie = __commonJS({
1086
1086
  }
1087
1087
  });
1088
1088
 
1089
- // ../../../domql/packages/utils/dist/cjs/tags.js
1089
+ // ../../node_modules/@domql/utils/dist/cjs/tags.js
1090
1090
  var require_tags = __commonJS({
1091
- "../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
1091
+ "../../node_modules/@domql/utils/dist/cjs/tags.js"(exports, module2) {
1092
1092
  "use strict";
1093
1093
  var __defProp2 = Object.defineProperty;
1094
1094
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -1251,9 +1251,9 @@ var require_tags = __commonJS({
1251
1251
  }
1252
1252
  });
1253
1253
 
1254
- // ../../../domql/packages/utils/dist/cjs/index.js
1254
+ // ../../node_modules/@domql/utils/dist/cjs/index.js
1255
1255
  var require_cjs2 = __commonJS({
1256
- "../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
1256
+ "../../node_modules/@domql/utils/dist/cjs/index.js"(exports, module2) {
1257
1257
  "use strict";
1258
1258
  var __defProp2 = Object.defineProperty;
1259
1259
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -1307,6 +1307,7 @@ __export(src_exports, {
1307
1307
  MEDIA: () => MEDIA,
1308
1308
  RESET: () => RESET,
1309
1309
  SEQUENCE: () => SEQUENCE,
1310
+ SHADOW: () => SHADOW,
1310
1311
  SPACING: () => SPACING,
1311
1312
  SVG: () => SVG,
1312
1313
  SVG_DATA: () => SVG_DATA,
@@ -1350,6 +1351,7 @@ __export(src_exports, {
1350
1351
  getRgbTone: () => getRgbTone,
1351
1352
  getSequenceValue: () => getSequenceValue,
1352
1353
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
1354
+ getShadow: () => getShadow,
1353
1355
  getSpacingBasedOnRatio: () => getSpacingBasedOnRatio,
1354
1356
  getSpacingByKey: () => getSpacingByKey,
1355
1357
  getTheme: () => getTheme,
@@ -1384,12 +1386,14 @@ __export(src_exports, {
1384
1386
  setInCustomFontMedia: () => setInCustomFontMedia,
1385
1387
  setMediaTheme: () => setMediaTheme,
1386
1388
  setSVG: () => setSVG,
1389
+ setShadow: () => setShadow,
1387
1390
  setTheme: () => setTheme,
1388
1391
  setValue: () => setValue,
1389
1392
  setVariables: () => setVariables,
1390
1393
  splitTransition: () => splitTransition,
1391
1394
  transformBackgroundImage: () => transformBackgroundImage,
1392
1395
  transformBorder: () => transformBorder,
1396
+ transformBoxShadow: () => transformBoxShadow,
1393
1397
  transformDuration: () => transformDuration,
1394
1398
  transformShadow: () => transformShadow,
1395
1399
  transformTextStroke: () => transformTextStroke,
@@ -1685,6 +1689,7 @@ __export(defaultConfig_exports, {
1685
1689
  MEDIA: () => MEDIA,
1686
1690
  RESET: () => RESET,
1687
1691
  SEQUENCE: () => SEQUENCE,
1692
+ SHADOW: () => SHADOW,
1688
1693
  SPACING: () => SPACING,
1689
1694
  SVG: () => SVG,
1690
1695
  SVG_DATA: () => SVG_DATA,
@@ -1807,6 +1812,9 @@ var GRADIENT = {};
1807
1812
  // src/defaultConfig/theme.js
1808
1813
  var THEME = {};
1809
1814
 
1815
+ // src/defaultConfig/shadow.js
1816
+ var SHADOW = {};
1817
+
1810
1818
  // src/defaultConfig/icons.js
1811
1819
  var ICONS = {};
1812
1820
 
@@ -2018,19 +2026,21 @@ var getSequenceValue = (value = "A", sequenceProps) => {
2018
2026
  const isNegative = letterVal.slice(0, 1) === "-" ? "-" : "";
2019
2027
  let absValue = isNegative ? letterVal.slice(1) : letterVal;
2020
2028
  let mediaName = "";
2021
- if (absValue.includes("-")) {
2022
- mediaName = "-" + absValue.split("-")[1].toLowerCase();
2023
- absValue = absValue.split("-")[0];
2029
+ if (absValue.includes("_")) {
2030
+ mediaName = "_" + absValue.split("_")[1].toLowerCase();
2031
+ absValue = absValue.split("_")[0];
2024
2032
  }
2025
- const varValue = (v) => `var(${prefix}${v}${mediaName})`;
2033
+ const varValue = (v) => startsWithDashOrLetterRegex.test(v) ? `var(${prefix}${v}${mediaName})` : v;
2026
2034
  if (absValue.includes("+")) {
2027
- const args = absValue.split("+");
2028
- const [first, second] = args;
2035
+ const [first, second] = absValue.split("+");
2029
2036
  const joint = `${varValue(first)} + ${varValue(second)}`;
2030
2037
  return isNegative ? `calc((${joint}) * -1)` : `calc(${joint})`;
2038
+ } else if (absValue.includes("*")) {
2039
+ const [first, second] = absValue.split("*");
2040
+ const joint = `${varValue(first)} * ${varValue(second)}`;
2041
+ return isNegative ? `calc((${joint}) * -1)` : `calc(${joint})`;
2031
2042
  } else if (absValue.includes("-")) {
2032
- const args = absValue.split("-");
2033
- const [first, second] = args;
2043
+ const [first, second] = absValue.split("-");
2034
2044
  const joint = `${varValue(first)} - ${varValue(second)}`;
2035
2045
  return isNegative ? `calc((${joint}) * -1)` : `calc(${joint})`;
2036
2046
  }
@@ -2096,14 +2106,14 @@ var applySequenceVars = (props, mediaName, options = {}) => {
2096
2106
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
2097
2107
  if (!underMediaQuery)
2098
2108
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
2099
- underMediaQuery[item.variable] = `var(${item.variable + "-" + mediaName})`;
2100
- CSS_VARS2[item.variable + "-" + mediaName] = value;
2109
+ underMediaQuery[item.variable] = `var(${item.variable + "_" + mediaName})`;
2110
+ CSS_VARS2[item.variable + "_" + mediaName] = value;
2101
2111
  } else {
2102
2112
  if (options.useDefault === false) {
2103
2113
  CSS_VARS2[item.variable] = value;
2104
2114
  } else {
2105
- CSS_VARS2[item.variable + "-default"] = value;
2106
- CSS_VARS2[item.variable] = `var(${item.variable + "-default"})`;
2115
+ CSS_VARS2[item.variable + "_default"] = value;
2116
+ CSS_VARS2[item.variable] = `var(${item.variable + "_default"})`;
2107
2117
  }
2108
2118
  }
2109
2119
  }
@@ -2184,6 +2194,7 @@ __export(system_exports, {
2184
2194
  getFontSizeByKey: () => getFontSizeByKey,
2185
2195
  getMediaColor: () => getMediaColor,
2186
2196
  getMediaTheme: () => getMediaTheme,
2197
+ getShadow: () => getShadow,
2187
2198
  getSpacingBasedOnRatio: () => getSpacingBasedOnRatio,
2188
2199
  getSpacingByKey: () => getSpacingByKey,
2189
2200
  getTheme: () => getTheme,
@@ -2197,6 +2208,7 @@ __export(system_exports, {
2197
2208
  setIcon: () => setIcon,
2198
2209
  setMediaTheme: () => setMediaTheme,
2199
2210
  setSVG: () => setSVG,
2211
+ setShadow: () => setShadow,
2200
2212
  setTheme: () => setTheme
2201
2213
  });
2202
2214
 
@@ -2288,8 +2300,13 @@ var setColor = (val, key, suffix) => {
2288
2300
  }
2289
2301
  if ((0, import_utils9.isObject)(val)) {
2290
2302
  const obj = {};
2291
- for (const variant in val)
2292
- obj[variant] = setColor(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
2303
+ for (const variant in val) {
2304
+ obj[variant] = setColor(
2305
+ val[variant],
2306
+ key,
2307
+ variant.slice(0, 1) === "@" ? variant.slice(1) : variant
2308
+ );
2309
+ }
2293
2310
  return obj;
2294
2311
  }
2295
2312
  const CSSVar = `--color-${key}` + (suffix ? `-${suffix}` : "");
@@ -2747,6 +2764,93 @@ var getSpacingBasedOnRatio = (props, propertyName, val) => {
2747
2764
  return getSpacingByKey(value, propertyName);
2748
2765
  };
2749
2766
 
2767
+ // src/system/shadow.js
2768
+ var import_utils20 = __toESM(require_cjs2(), 1);
2769
+ var setShadow = (value, key, suffix, prefers) => {
2770
+ const CONFIG2 = getActiveConfig();
2771
+ if ((0, import_utils20.isArray)(value)) {
2772
+ return {
2773
+ "@light": setShadow(value[0], key, "light"),
2774
+ "@dark": setShadow(value[1], key, "dark")
2775
+ };
2776
+ }
2777
+ if ((0, import_utils20.isObject)(value)) {
2778
+ const obj = {};
2779
+ for (const variant in value) {
2780
+ obj[variant] = setShadow(
2781
+ value[variant],
2782
+ key,
2783
+ variant.startsWith("@") ? variant.slice(1) : variant
2784
+ );
2785
+ }
2786
+ return obj;
2787
+ }
2788
+ if ((0, import_utils20.isString)(value) && value.includes(",")) {
2789
+ value = value.split(",").map((v) => {
2790
+ v = v.trim();
2791
+ if (v.startsWith("--"))
2792
+ return `var(${v})`;
2793
+ if (getColor(v).length > 2)
2794
+ return getColor(v);
2795
+ if (v.includes("px") || v.slice(-2) === "em")
2796
+ return v;
2797
+ const arr = v.split(" ");
2798
+ if (!arr.length)
2799
+ return v;
2800
+ return arr.map((v2) => getSpacingByKey(v2, "shadow").shadow).join(" ");
2801
+ }).join(" ");
2802
+ }
2803
+ const CSSVar = `--shadow-${key}` + (suffix ? `-${suffix}` : "");
2804
+ if (CONFIG2.useVariable) {
2805
+ CONFIG2.CSS_VARS[CSSVar] = value;
2806
+ }
2807
+ return {
2808
+ var: CSSVar,
2809
+ value
2810
+ };
2811
+ };
2812
+ var getShadow = (value, globalTheme) => {
2813
+ const CONFIG2 = getActiveConfig();
2814
+ if (!globalTheme)
2815
+ globalTheme = CONFIG2.globalTheme;
2816
+ if (!(0, import_utils20.isString)(value)) {
2817
+ if (CONFIG2.verbose)
2818
+ console.warn(value, "- type for color is not valid");
2819
+ return;
2820
+ }
2821
+ if (value.slice(0, 2) === "--")
2822
+ return `var(${value})`;
2823
+ const [name] = (0, import_utils20.isArray)(value) ? value : value.split(" ");
2824
+ const { SHADOW: SHADOW2 } = CONFIG2;
2825
+ const val = SHADOW2[name];
2826
+ const isObj = (0, import_utils20.isObject)(val);
2827
+ if (!val) {
2828
+ if (CONFIG2.verbose)
2829
+ console.warn("Can't find color ", name);
2830
+ return value;
2831
+ }
2832
+ if (globalTheme) {
2833
+ if (val[globalTheme])
2834
+ return val[globalTheme].value;
2835
+ else if (CONFIG2.verbose)
2836
+ console.warn(value, " - does not have ", globalTheme);
2837
+ }
2838
+ if (isObj && val.value)
2839
+ return val.value;
2840
+ if (isObj) {
2841
+ const obj = {};
2842
+ for (const mediaName in val) {
2843
+ const query = CONFIG2.MEDIA[mediaName.slice(1)];
2844
+ const media = `@media screen and ${query}`;
2845
+ obj[media] = val.value;
2846
+ }
2847
+ return obj;
2848
+ }
2849
+ if (CONFIG2.verbose)
2850
+ console.warn("Can't find color", value);
2851
+ return value;
2852
+ };
2853
+
2750
2854
  // src/system/timing.js
2751
2855
  var applyTimingSequence = () => {
2752
2856
  const CONFIG2 = getActiveConfig();
@@ -2770,11 +2874,11 @@ var getTimingByKey = (value, property = "timing") => {
2770
2874
  };
2771
2875
 
2772
2876
  // src/system/document.js
2773
- var import_utils22 = __toESM(require_cjs2(), 1);
2877
+ var import_utils23 = __toESM(require_cjs2(), 1);
2774
2878
  var applyDocument = () => {
2775
2879
  const CONFIG2 = getActiveConfig();
2776
2880
  const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG2;
2777
- return (0, import_utils22.merge)(DOCUMENT2, {
2881
+ return (0, import_utils23.merge)(DOCUMENT2, {
2778
2882
  theme: THEME2.document,
2779
2883
  fontFamily: getDefaultOrFirstKey(FONT_FAMILY2),
2780
2884
  fontSize: TYPOGRAPHY2.base,
@@ -2858,7 +2962,7 @@ var appendSVG = (lib, options = DEF_OPTIONS) => {
2858
2962
  };
2859
2963
 
2860
2964
  // src/system/reset.js
2861
- var import_utils25 = __toESM(require_cjs2(), 1);
2965
+ var import_utils26 = __toESM(require_cjs2(), 1);
2862
2966
  var applyReset = (reset = {}) => {
2863
2967
  const CONFIG2 = getActiveConfig();
2864
2968
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG2;
@@ -2880,8 +2984,8 @@ var applyReset = (reset = {}) => {
2880
2984
  const { body, ...templates } = TYPOGRAPHY2.templates;
2881
2985
  const globalTheme = CONFIG2.useDocumentTheme ? getMediaTheme("document", `@${CONFIG2.globalTheme}`) : {};
2882
2986
  if (RESET2.html)
2883
- (0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
2884
- return (0, import_utils25.deepMerge)((0, import_utils25.merge)(RESET2, reset), {
2987
+ (0, import_utils26.overwriteDeep)(RESET2.html, globalTheme);
2988
+ return (0, import_utils26.deepMerge)((0, import_utils26.merge)(RESET2, reset), {
2885
2989
  html: {
2886
2990
  position: "absolute",
2887
2991
  // overflow: 'hidden',
@@ -2920,7 +3024,7 @@ var applyReset = (reset = {}) => {
2920
3024
  };
2921
3025
 
2922
3026
  // src/transforms/index.js
2923
- var import_utils26 = __toESM(require_cjs2(), 1);
3027
+ var import_utils27 = __toESM(require_cjs2(), 1);
2924
3028
  var isBorderStyle = (str) => [
2925
3029
  "none",
2926
3030
  "hidden",
@@ -2960,21 +3064,10 @@ var transformTextStroke = (stroke) => {
2960
3064
  return v;
2961
3065
  }).join(" ");
2962
3066
  };
2963
- var transformShadow = (shadows) => shadows.split("|").map((shadow) => {
2964
- return shadow.split(", ").map((v) => {
2965
- v = v.trim();
2966
- if (v.slice(0, 2) === "--")
2967
- return `var(${v})`;
2968
- if (getColor(v).length > 2)
2969
- return getColor(v);
2970
- if (v.includes("px") || v.slice(-2) === "em")
2971
- return v;
2972
- const arr = v.split(" ");
2973
- if (!arr.length)
2974
- return v;
2975
- return arr.map((v2) => getSpacingByKey(v2, "shadow").shadow).join(" ");
2976
- }).join(" ");
2977
- }).join(",");
3067
+ var transformShadow = (sh, globalTheme) => {
3068
+ return sh.split(",").map((shadow) => getShadow(shadow, globalTheme)).join(",");
3069
+ };
3070
+ var transformBoxShadow = (sh, globalTheme) => getShadow(sh, globalTheme);
2978
3071
  var transformBackgroundImage = (backgroundImage, globalTheme) => {
2979
3072
  const CONFIG2 = getActiveConfig();
2980
3073
  return backgroundImage.split(", ").map((v) => {
@@ -2991,7 +3084,7 @@ var transformBackgroundImage = (backgroundImage, globalTheme) => {
2991
3084
  return v;
2992
3085
  }).join(" ");
2993
3086
  };
2994
- var transfromGap = (gap) => (0, import_utils26.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey(v, "gap").gap).join(" ");
3087
+ var transfromGap = (gap) => (0, import_utils27.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey(v, "gap").gap).join(" ");
2995
3088
  var transformTransition = (transition) => {
2996
3089
  const arr = transition.split(" ");
2997
3090
  if (!arr.length)
@@ -3009,7 +3102,7 @@ var transformTransition = (transition) => {
3009
3102
  }).join(" ");
3010
3103
  };
3011
3104
  var transformDuration = (duration, props, propertyName) => {
3012
- if (!(0, import_utils26.isString)(duration))
3105
+ if (!(0, import_utils27.isString)(duration))
3013
3106
  return;
3014
3107
  return duration.split(",").map((v) => getTimingByKey(v).timing || v).join(",");
3015
3108
  };
@@ -3021,9 +3114,9 @@ var splitTransition = (transition) => {
3021
3114
  };
3022
3115
 
3023
3116
  // src/set.js
3024
- var import_utils27 = __toESM(require_cjs2(), 1);
3117
+ var import_utils28 = __toESM(require_cjs2(), 1);
3025
3118
  var setCases = (val, key) => {
3026
- if ((0, import_utils27.isFunction)(val))
3119
+ if ((0, import_utils28.isFunction)(val))
3027
3120
  return val();
3028
3121
  return val;
3029
3122
  };
@@ -3039,6 +3132,7 @@ var VALUE_TRANSFORMERS = {
3039
3132
  svg_data: setSameValue,
3040
3133
  typography: setSameValue,
3041
3134
  cases: setCases,
3135
+ shadow: setShadow,
3042
3136
  spacing: setSameValue,
3043
3137
  media: setSameValue,
3044
3138
  timing: setSameValue,