@symbo.ls/uikit 2.11.215 → 2.11.217

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/index.cjs.js CHANGED
@@ -264,47 +264,47 @@ var require_cjs = __commonJS({
264
264
  __export22(types_exports, {
265
265
  TYPES: () => TYPES,
266
266
  is: () => is,
267
- isArray: () => isArray6,
267
+ isArray: () => isArray7,
268
268
  isBoolean: () => isBoolean,
269
269
  isDefined: () => isDefined2,
270
270
  isFunction: () => isFunction22,
271
271
  isNot: () => isNot2,
272
272
  isNull: () => isNull,
273
273
  isNumber: () => isNumber2,
274
- isObject: () => isObject7,
274
+ isObject: () => isObject8,
275
275
  isObjectLike: () => isObjectLike3,
276
- isString: () => isString9,
276
+ isString: () => isString10,
277
277
  isUndefined: () => isUndefined2
278
278
  });
279
279
  module22.exports = __toCommonJS22(types_exports);
280
280
  var import_node = require_node2();
281
- var isObject7 = (arg) => {
281
+ var isObject8 = (arg) => {
282
282
  if (arg === null)
283
283
  return false;
284
284
  return typeof arg === "object" && arg.constructor === Object;
285
285
  };
286
- var isString9 = (arg) => typeof arg === "string";
286
+ var isString10 = (arg) => typeof arg === "string";
287
287
  var isNumber2 = (arg) => typeof arg === "number";
288
288
  var isFunction22 = (arg) => typeof arg === "function";
289
289
  var isBoolean = (arg) => arg === true || arg === false;
290
290
  var isNull = (arg) => arg === null;
291
- var isArray6 = (arg) => Array.isArray(arg);
291
+ var isArray7 = (arg) => Array.isArray(arg);
292
292
  var isObjectLike3 = (arg) => {
293
293
  if (arg === null)
294
294
  return false;
295
295
  return typeof arg === "object";
296
296
  };
297
297
  var isDefined2 = (arg) => {
298
- return isObject7(arg) || isObjectLike3(arg) || isString9(arg) || isNumber2(arg) || isFunction22(arg) || isArray6(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
298
+ return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber2(arg) || isFunction22(arg) || isArray7(arg) || isObjectLike3(arg) || isBoolean(arg) || isNull(arg);
299
299
  };
300
300
  var isUndefined2 = (arg) => {
301
301
  return arg === void 0;
302
302
  };
303
303
  var TYPES = {
304
304
  boolean: isBoolean,
305
- array: isArray6,
306
- object: isObject7,
307
- string: isString9,
305
+ array: isArray7,
306
+ object: isObject8,
307
+ string: isString10,
308
308
  number: isNumber2,
309
309
  null: isNull,
310
310
  function: isFunction22,
@@ -505,12 +505,12 @@ var require_cjs = __commonJS({
505
505
  clone: () => clone,
506
506
  deepClone: () => deepClone22,
507
507
  deepCloneExclude: () => deepCloneExclude,
508
- deepContains: () => deepContains2,
508
+ deepContains: () => deepContains,
509
509
  deepDestringify: () => deepDestringify,
510
510
  deepMerge: () => deepMerge3,
511
511
  deepStringify: () => deepStringify,
512
512
  detachFunctionsFromObject: () => detachFunctionsFromObject,
513
- diff: () => diff2,
513
+ diff: () => diff,
514
514
  diffArrays: () => diffArrays,
515
515
  diffObjects: () => diffObjects,
516
516
  exec: () => exec2,
@@ -777,7 +777,7 @@ var require_cjs = __commonJS({
777
777
  const objToDiffProp = objToDiff[e];
778
778
  if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
779
779
  cache[e] = {};
780
- diff2(originalProp, objToDiffProp, cache[e]);
780
+ diff(originalProp, objToDiffProp, cache[e]);
781
781
  } else if (objToDiffProp !== void 0) {
782
782
  cache[e] = objToDiffProp;
783
783
  }
@@ -790,7 +790,7 @@ var require_cjs = __commonJS({
790
790
  } else {
791
791
  const diffArr = [];
792
792
  for (let i = 0; i < original.length; i++) {
793
- const diffObj = diff2(original[i], objToDiff[i]);
793
+ const diffObj = diff(original[i], objToDiff[i]);
794
794
  if (Object.keys(diffObj).length > 0) {
795
795
  diffArr.push(diffObj);
796
796
  }
@@ -801,7 +801,7 @@ var require_cjs = __commonJS({
801
801
  }
802
802
  return cache;
803
803
  };
804
- var diff2 = (original, objToDiff, cache = {}) => {
804
+ var diff = (original, objToDiff, cache = {}) => {
805
805
  if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
806
806
  cache = [];
807
807
  diffArrays(original, objToDiff, cache);
@@ -889,7 +889,7 @@ var require_cjs = __commonJS({
889
889
  }
890
890
  return true;
891
891
  };
892
- var deepContains2 = (obj1, obj2) => {
892
+ var deepContains = (obj1, obj2) => {
893
893
  if (typeof obj1 !== typeof obj2) {
894
894
  return false;
895
895
  }
@@ -899,14 +899,14 @@ var require_cjs = __commonJS({
899
899
  return false;
900
900
  }
901
901
  for (let i = 0; i < obj1.length; i++) {
902
- if (!deepContains2(obj1[i], obj2[i])) {
902
+ if (!deepContains(obj1[i], obj2[i])) {
903
903
  return false;
904
904
  }
905
905
  }
906
906
  } else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
907
907
  for (const key in obj1) {
908
908
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
909
- if (!hasOwnProperty || !deepContains2(obj1[key], obj2[key])) {
909
+ if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
910
910
  return false;
911
911
  }
912
912
  }
@@ -1312,6 +1312,7 @@ var require_cjs = __commonJS({
1312
1312
  MEDIA: () => MEDIA,
1313
1313
  RESET: () => RESET,
1314
1314
  SEQUENCE: () => SEQUENCE,
1315
+ SHADOW: () => SHADOW,
1315
1316
  SPACING: () => SPACING,
1316
1317
  SVG: () => SVG,
1317
1318
  SVG_DATA: () => SVG_DATA,
@@ -1355,6 +1356,7 @@ var require_cjs = __commonJS({
1355
1356
  getRgbTone: () => getRgbTone,
1356
1357
  getSequenceValue: () => getSequenceValue,
1357
1358
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
1359
+ getShadow: () => getShadow,
1358
1360
  getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
1359
1361
  getSpacingByKey: () => getSpacingByKey3,
1360
1362
  getTheme: () => getTheme,
@@ -1389,12 +1391,14 @@ var require_cjs = __commonJS({
1389
1391
  setInCustomFontMedia: () => setInCustomFontMedia,
1390
1392
  setMediaTheme: () => setMediaTheme,
1391
1393
  setSVG: () => setSVG,
1394
+ setShadow: () => setShadow,
1392
1395
  setTheme: () => setTheme,
1393
1396
  setValue: () => setValue,
1394
1397
  setVariables: () => setVariables,
1395
1398
  splitTransition: () => splitTransition2,
1396
1399
  transformBackgroundImage: () => transformBackgroundImage2,
1397
1400
  transformBorder: () => transformBorder2,
1401
+ transformBoxShadow: () => transformBoxShadow2,
1398
1402
  transformDuration: () => transformDuration2,
1399
1403
  transformShadow: () => transformShadow2,
1400
1404
  transformTextStroke: () => transformTextStroke2,
@@ -1670,6 +1674,7 @@ var require_cjs = __commonJS({
1670
1674
  MEDIA: () => MEDIA,
1671
1675
  RESET: () => RESET,
1672
1676
  SEQUENCE: () => SEQUENCE,
1677
+ SHADOW: () => SHADOW,
1673
1678
  SPACING: () => SPACING,
1674
1679
  SVG: () => SVG,
1675
1680
  SVG_DATA: () => SVG_DATA,
@@ -1773,6 +1778,7 @@ var require_cjs = __commonJS({
1773
1778
  var COLOR = {};
1774
1779
  var GRADIENT = {};
1775
1780
  var THEME = {};
1781
+ var SHADOW = {};
1776
1782
  var ICONS = {};
1777
1783
  var defaultProps3 = {
1778
1784
  default: 150,
@@ -1890,8 +1896,8 @@ var require_cjs = __commonJS({
1890
1896
  var generateSubSequence = (props4, sequenceProps) => {
1891
1897
  const { key, base, value, ratio, variable, index } = props4;
1892
1898
  const next2 = value * ratio;
1893
- const diff2 = next2 - value;
1894
- const smallscale = diff2 / 1.618;
1899
+ const diff = next2 - value;
1900
+ const smallscale = diff / 1.618;
1895
1901
  const valueRounded = ~~value;
1896
1902
  const nextRounded = ~~next2;
1897
1903
  const diffRounded = nextRounded - valueRounded;
@@ -2125,6 +2131,7 @@ var require_cjs = __commonJS({
2125
2131
  getFontSizeByKey: () => getFontSizeByKey2,
2126
2132
  getMediaColor: () => getMediaColor3,
2127
2133
  getMediaTheme: () => getMediaTheme2,
2134
+ getShadow: () => getShadow,
2128
2135
  getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
2129
2136
  getSpacingByKey: () => getSpacingByKey3,
2130
2137
  getTheme: () => getTheme,
@@ -2138,6 +2145,7 @@ var require_cjs = __commonJS({
2138
2145
  setIcon: () => setIcon,
2139
2146
  setMediaTheme: () => setMediaTheme,
2140
2147
  setSVG: () => setSVG,
2148
+ setShadow: () => setShadow,
2141
2149
  setTheme: () => setTheme
2142
2150
  });
2143
2151
  var import_utils92 = __toESM2(require_cjs22(), 1);
@@ -2227,8 +2235,13 @@ var require_cjs = __commonJS({
2227
2235
  }
2228
2236
  if ((0, import_utils92.isObject)(val)) {
2229
2237
  const obj = {};
2230
- for (const variant in val)
2231
- obj[variant] = setColor(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
2238
+ for (const variant in val) {
2239
+ obj[variant] = setColor(
2240
+ val[variant],
2241
+ key,
2242
+ variant.slice(0, 1) === "@" ? variant.slice(1) : variant
2243
+ );
2244
+ }
2232
2245
  return obj;
2233
2246
  }
2234
2247
  const CSSVar = `--color-${key}` + (suffix ? `-${suffix}` : "");
@@ -2677,6 +2690,91 @@ var require_cjs = __commonJS({
2677
2690
  }
2678
2691
  return getSpacingByKey3(value, propertyName);
2679
2692
  };
2693
+ var import_utils20 = __toESM2(require_cjs22(), 1);
2694
+ var setShadow = (value, key, suffix, prefers) => {
2695
+ const CONFIG22 = getActiveConfig3();
2696
+ if ((0, import_utils20.isArray)(value)) {
2697
+ return {
2698
+ "@light": setShadow(value[0], key, "light"),
2699
+ "@dark": setShadow(value[1], key, "dark")
2700
+ };
2701
+ }
2702
+ if ((0, import_utils20.isObject)(value)) {
2703
+ const obj = {};
2704
+ for (const variant in value) {
2705
+ obj[variant] = setShadow(
2706
+ value[variant],
2707
+ key,
2708
+ variant.startsWith("@") ? variant.slice(1) : variant
2709
+ );
2710
+ }
2711
+ return obj;
2712
+ }
2713
+ if ((0, import_utils20.isString)(value) && value.includes(",")) {
2714
+ value = value.split(",").map((v) => {
2715
+ v = v.trim();
2716
+ if (v.startsWith("--"))
2717
+ return `var(${v})`;
2718
+ if (getColor2(v).length > 2)
2719
+ return getColor2(v);
2720
+ if (v.includes("px") || v.slice(-2) === "em")
2721
+ return v;
2722
+ const arr = v.split(" ");
2723
+ if (!arr.length)
2724
+ return v;
2725
+ return arr.map((v2) => getSpacingByKey3(v2, "shadow").shadow).join(" ");
2726
+ }).join(" ");
2727
+ }
2728
+ const CSSVar = `--shadow-${key}` + (suffix ? `-${suffix}` : "");
2729
+ if (CONFIG22.useVariable) {
2730
+ CONFIG22.CSS_VARS[CSSVar] = value;
2731
+ }
2732
+ return {
2733
+ var: CSSVar,
2734
+ value
2735
+ };
2736
+ };
2737
+ var getShadow = (value, globalTheme) => {
2738
+ const CONFIG22 = getActiveConfig3();
2739
+ if (!globalTheme)
2740
+ globalTheme = CONFIG22.globalTheme;
2741
+ if (!(0, import_utils20.isString)(value)) {
2742
+ if (CONFIG22.verbose)
2743
+ console.warn(value, "- type for color is not valid");
2744
+ return;
2745
+ }
2746
+ if (value.slice(0, 2) === "--")
2747
+ return `var(${value})`;
2748
+ const [name] = (0, import_utils20.isArray)(value) ? value : value.split(" ");
2749
+ const { SHADOW: SHADOW2 } = CONFIG22;
2750
+ const val = SHADOW2[name];
2751
+ const isObj = (0, import_utils20.isObject)(val);
2752
+ if (!val) {
2753
+ if (CONFIG22.verbose)
2754
+ console.warn("Can't find color ", name);
2755
+ return value;
2756
+ }
2757
+ if (globalTheme) {
2758
+ if (val[globalTheme])
2759
+ return val[globalTheme].value;
2760
+ else if (CONFIG22.verbose)
2761
+ console.warn(value, " - does not have ", globalTheme);
2762
+ }
2763
+ if (isObj && val.value)
2764
+ return val.value;
2765
+ if (isObj) {
2766
+ const obj = {};
2767
+ for (const mediaName in val) {
2768
+ const query = CONFIG22.MEDIA[mediaName.slice(1)];
2769
+ const media = `@media screen and ${query}`;
2770
+ obj[media] = val.value;
2771
+ }
2772
+ return obj;
2773
+ }
2774
+ if (CONFIG22.verbose)
2775
+ console.warn("Can't find color", value);
2776
+ return value;
2777
+ };
2680
2778
  var applyTimingSequence = () => {
2681
2779
  const CONFIG22 = getActiveConfig3();
2682
2780
  const { TIMING: TIMING2 } = CONFIG22;
@@ -2697,11 +2795,11 @@ var require_cjs = __commonJS({
2697
2795
  TIMING2
2698
2796
  );
2699
2797
  };
2700
- var import_utils222 = __toESM2(require_cjs22(), 1);
2798
+ var import_utils23 = __toESM2(require_cjs22(), 1);
2701
2799
  var applyDocument = () => {
2702
2800
  const CONFIG22 = getActiveConfig3();
2703
2801
  const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
2704
- return (0, import_utils222.merge)(DOCUMENT2, {
2802
+ return (0, import_utils23.merge)(DOCUMENT2, {
2705
2803
  theme: THEME2.document,
2706
2804
  fontFamily: getDefaultOrFirstKey(FONT_FAMILY2),
2707
2805
  fontSize: TYPOGRAPHY2.base,
@@ -2781,7 +2879,7 @@ var require_cjs = __commonJS({
2781
2879
  }
2782
2880
  }
2783
2881
  };
2784
- var import_utils25 = __toESM2(require_cjs22(), 1);
2882
+ var import_utils26 = __toESM2(require_cjs22(), 1);
2785
2883
  var applyReset = (reset = {}) => {
2786
2884
  const CONFIG22 = getActiveConfig3();
2787
2885
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG22;
@@ -2803,8 +2901,8 @@ var require_cjs = __commonJS({
2803
2901
  const { body, ...templates } = TYPOGRAPHY2.templates;
2804
2902
  const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme2("document", `@${CONFIG22.globalTheme}`) : {};
2805
2903
  if (RESET2.html)
2806
- (0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
2807
- return (0, import_utils25.deepMerge)((0, import_utils25.merge)(RESET2, reset), {
2904
+ (0, import_utils26.overwriteDeep)(RESET2.html, globalTheme);
2905
+ return (0, import_utils26.deepMerge)((0, import_utils26.merge)(RESET2, reset), {
2808
2906
  html: {
2809
2907
  position: "absolute",
2810
2908
  // overflow: 'hidden',
@@ -2841,7 +2939,7 @@ var require_cjs = __commonJS({
2841
2939
  });
2842
2940
  }
2843
2941
  };
2844
- var import_utils26 = __toESM2(require_cjs22(), 1);
2942
+ var import_utils27 = __toESM2(require_cjs22(), 1);
2845
2943
  var isBorderStyle = (str) => [
2846
2944
  "none",
2847
2945
  "hidden",
@@ -2881,21 +2979,10 @@ var require_cjs = __commonJS({
2881
2979
  return v;
2882
2980
  }).join(" ");
2883
2981
  };
2884
- var transformShadow2 = (shadows) => shadows.split("|").map((shadow) => {
2885
- return shadow.split(", ").map((v) => {
2886
- v = v.trim();
2887
- if (v.slice(0, 2) === "--")
2888
- return `var(${v})`;
2889
- if (getColor2(v).length > 2)
2890
- return getColor2(v);
2891
- if (v.includes("px") || v.slice(-2) === "em")
2892
- return v;
2893
- const arr = v.split(" ");
2894
- if (!arr.length)
2895
- return v;
2896
- return arr.map((v2) => getSpacingByKey3(v2, "shadow").shadow).join(" ");
2897
- }).join(" ");
2898
- }).join(",");
2982
+ var transformShadow2 = (sh, globalTheme) => {
2983
+ return sh.split(",").map((shadow) => getShadow(shadow, globalTheme)).join(",");
2984
+ };
2985
+ var transformBoxShadow2 = (sh, globalTheme) => getShadow(sh, globalTheme);
2899
2986
  var transformBackgroundImage2 = (backgroundImage, globalTheme) => {
2900
2987
  const CONFIG22 = getActiveConfig3();
2901
2988
  return backgroundImage.split(", ").map((v) => {
@@ -2912,7 +2999,7 @@ var require_cjs = __commonJS({
2912
2999
  return v;
2913
3000
  }).join(" ");
2914
3001
  };
2915
- var transfromGap2 = (gap) => (0, import_utils26.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
3002
+ var transfromGap2 = (gap) => (0, import_utils27.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey3(v, "gap").gap).join(" ");
2916
3003
  var transformTransition = (transition) => {
2917
3004
  const arr = transition.split(" ");
2918
3005
  if (!arr.length)
@@ -2930,7 +3017,7 @@ var require_cjs = __commonJS({
2930
3017
  }).join(" ");
2931
3018
  };
2932
3019
  var transformDuration2 = (duration, props4, propertyName) => {
2933
- if (!(0, import_utils26.isString)(duration))
3020
+ if (!(0, import_utils27.isString)(duration))
2934
3021
  return;
2935
3022
  return duration.split(",").map((v) => getTimingByKey2(v).timing || v).join(",");
2936
3023
  };
@@ -2940,9 +3027,9 @@ var require_cjs = __commonJS({
2940
3027
  return;
2941
3028
  return arr.map(transformTransition).join(",");
2942
3029
  };
2943
- var import_utils27 = __toESM2(require_cjs22(), 1);
3030
+ var import_utils28 = __toESM2(require_cjs22(), 1);
2944
3031
  var setCases = (val, key) => {
2945
- if ((0, import_utils27.isFunction)(val))
3032
+ if ((0, import_utils28.isFunction)(val))
2946
3033
  return val();
2947
3034
  return val;
2948
3035
  };
@@ -2958,6 +3045,7 @@ var require_cjs = __commonJS({
2958
3045
  svg_data: setSameValue,
2959
3046
  typography: setSameValue,
2960
3047
  cases: setCases,
3048
+ shadow: setShadow,
2961
3049
  spacing: setSameValue,
2962
3050
  media: setSameValue,
2963
3051
  timing: setSameValue,
@@ -3456,12 +3544,12 @@ var require_object = __commonJS({
3456
3544
  clone: () => clone,
3457
3545
  deepClone: () => deepClone3,
3458
3546
  deepCloneExclude: () => deepCloneExclude,
3459
- deepContains: () => deepContains2,
3547
+ deepContains: () => deepContains,
3460
3548
  deepDestringify: () => deepDestringify,
3461
3549
  deepMerge: () => deepMerge2,
3462
3550
  deepStringify: () => deepStringify,
3463
3551
  detachFunctionsFromObject: () => detachFunctionsFromObject,
3464
- diff: () => diff2,
3552
+ diff: () => diff,
3465
3553
  diffArrays: () => diffArrays,
3466
3554
  diffObjects: () => diffObjects,
3467
3555
  exec: () => exec2,
@@ -3728,7 +3816,7 @@ var require_object = __commonJS({
3728
3816
  const objToDiffProp = objToDiff[e];
3729
3817
  if ((0, import_types.isObject)(originalProp) && (0, import_types.isObject)(objToDiffProp)) {
3730
3818
  cache[e] = {};
3731
- diff2(originalProp, objToDiffProp, cache[e]);
3819
+ diff(originalProp, objToDiffProp, cache[e]);
3732
3820
  } else if (objToDiffProp !== void 0) {
3733
3821
  cache[e] = objToDiffProp;
3734
3822
  }
@@ -3741,7 +3829,7 @@ var require_object = __commonJS({
3741
3829
  } else {
3742
3830
  const diffArr = [];
3743
3831
  for (let i = 0; i < original.length; i++) {
3744
- const diffObj = diff2(original[i], objToDiff[i]);
3832
+ const diffObj = diff(original[i], objToDiff[i]);
3745
3833
  if (Object.keys(diffObj).length > 0) {
3746
3834
  diffArr.push(diffObj);
3747
3835
  }
@@ -3752,7 +3840,7 @@ var require_object = __commonJS({
3752
3840
  }
3753
3841
  return cache;
3754
3842
  };
3755
- var diff2 = (original, objToDiff, cache = {}) => {
3843
+ var diff = (original, objToDiff, cache = {}) => {
3756
3844
  if ((0, import_types.isArray)(original) && (0, import_types.isArray)(objToDiff)) {
3757
3845
  cache = [];
3758
3846
  diffArrays(original, objToDiff, cache);
@@ -3840,7 +3928,7 @@ var require_object = __commonJS({
3840
3928
  }
3841
3929
  return true;
3842
3930
  };
3843
- var deepContains2 = (obj1, obj2) => {
3931
+ var deepContains = (obj1, obj2) => {
3844
3932
  if (typeof obj1 !== typeof obj2) {
3845
3933
  return false;
3846
3934
  }
@@ -3850,14 +3938,14 @@ var require_object = __commonJS({
3850
3938
  return false;
3851
3939
  }
3852
3940
  for (let i = 0; i < obj1.length; i++) {
3853
- if (!deepContains2(obj1[i], obj2[i])) {
3941
+ if (!deepContains(obj1[i], obj2[i])) {
3854
3942
  return false;
3855
3943
  }
3856
3944
  }
3857
3945
  } else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
3858
3946
  for (const key in obj1) {
3859
3947
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj2, key);
3860
- if (!hasOwnProperty || !deepContains2(obj1[key], obj2[key])) {
3948
+ if (!hasOwnProperty || !deepContains(obj1[key], obj2[key])) {
3861
3949
  return false;
3862
3950
  }
3863
3951
  }
@@ -5874,6 +5962,7 @@ var Theme = {
5874
5962
  getMediaColor: import_scratch5.getMediaColor,
5875
5963
  transformTextStroke: import_scratch5.transformTextStroke,
5876
5964
  transformShadow: import_scratch5.transformShadow,
5965
+ transformBoxShadow: import_scratch5.transformBoxShadow,
5877
5966
  transformBorder: import_scratch5.transformBorder,
5878
5967
  transformBackgroundImage: import_scratch5.transformBackgroundImage
5879
5968
  },
@@ -5956,11 +6045,20 @@ var Theme = {
5956
6045
  borderBottom: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderBottom) && {
5957
6046
  borderBottom: deps.transformBorder(props4.borderBottom)
5958
6047
  },
6048
+ shadow: (element) => {
6049
+ const { props: props4, deps } = element;
6050
+ const globalTheme = deps.getSystemTheme(element);
6051
+ if (!props4.backgroundImage)
6052
+ return;
6053
+ return {
6054
+ boxShadow: deps.transformShadow(props4.backgroundImage, globalTheme)
6055
+ };
6056
+ },
5959
6057
  boxShadow: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.boxShadow) && {
5960
- boxShadow: deps.transformShadow(props4.boxShadow)
6058
+ boxShadow: deps.transformBoxShadow(props4.boxShadow)
5961
6059
  },
5962
6060
  textShadow: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.textShadow) && {
5963
- textShadow: deps.transformShadow(props4.textShadow)
6061
+ textShadow: deps.transformBoxShadow(props4.textShadow)
5964
6062
  },
5965
6063
  backdropFilter: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.backdropFilter) && {
5966
6064
  backdropFilter: props4.backdropFilter
@@ -6317,12 +6415,18 @@ var Collection = {
6317
6415
  param = param.parse();
6318
6416
  if ((0, import_utils3.isNot)(param)("array", "object"))
6319
6417
  return;
6320
- if (el.key === "cnt") {
6321
- if (el.__ref.__stateCollectionCache) {
6322
- const d = (0, import_utils3.diff)(param, el.__ref.__stateCollectionCache);
6418
+ const { __ref: ref } = el;
6419
+ if (ref.__stateCollectionCache) {
6420
+ const d = (0, import_utils3.deepDiff)(param, ref.__stateCollectionCache);
6421
+ if (Object.keys(d).length) {
6422
+ ref.__stateCollectionCache = (0, import_utils3.deepClone)(param);
6423
+ delete ref.__noCollectionDifference;
6323
6424
  } else {
6324
- el.__ref.__stateCollectionCache = (0, import_utils3.deepClone)(param);
6425
+ ref.__noCollectionDifference = true;
6426
+ return;
6325
6427
  }
6428
+ } else {
6429
+ ref.__stateCollectionCache = (0, import_utils3.deepClone)(param);
6326
6430
  }
6327
6431
  const obj = {
6328
6432
  tag: "fragment",
@@ -6334,10 +6438,8 @@ var Collection = {
6334
6438
  const value = param[key];
6335
6439
  obj[key] = { state: (0, import_utils3.isObjectLike)(value) ? value : { value } };
6336
6440
  }
6337
- if (!(0, import_utils3.deepContains)(obj, el.content)) {
6338
- el.removeContent();
6339
- el.content = obj;
6340
- }
6441
+ el.removeContent();
6442
+ el.content = obj;
6341
6443
  return obj;
6342
6444
  },
6343
6445
  $setPropsCollection: (param, el, state) => {
@@ -6353,6 +6455,19 @@ var Collection = {
6353
6455
  param = param.parse();
6354
6456
  if ((0, import_utils3.isNot)(param)("array", "object"))
6355
6457
  return;
6458
+ const { __ref: ref } = el;
6459
+ if (ref.__propsCollectionCache) {
6460
+ const d = (0, import_utils3.deepDiff)(param, ref.__propsCollectionCache);
6461
+ if (Object.keys(d).length) {
6462
+ ref.__propsCollectionCache = (0, import_utils3.deepClone)(param);
6463
+ delete ref.__noCollectionDifference;
6464
+ } else {
6465
+ ref.__noCollectionDifference = true;
6466
+ return;
6467
+ }
6468
+ } else {
6469
+ ref.__propsCollectionCache = (0, import_utils3.deepClone)(param);
6470
+ }
6356
6471
  const obj = {
6357
6472
  tag: "fragment",
6358
6473
  props: {
@@ -6363,10 +6478,8 @@ var Collection = {
6363
6478
  const value = param[key];
6364
6479
  obj[key] = { props: (0, import_utils3.isObjectLike)(value) ? value : { value } };
6365
6480
  }
6366
- if (!(0, import_utils3.deepContains)(obj, el.content)) {
6367
- el.removeContent();
6368
- el.content = obj;
6369
- }
6481
+ el.removeContent();
6482
+ el.content = obj;
6370
6483
  return obj;
6371
6484
  }
6372
6485
  }
@@ -8666,8 +8779,6 @@ var Textarea = {
8666
8779
  placeholder: "Leave us a message...",
8667
8780
  fontSize: "Z1",
8668
8781
  padding: "A",
8669
- background: "rgba(0, 0, 0, 0)",
8670
- border: "1px solid #3F3F43",
8671
8782
  color: "white",
8672
8783
  style: { resize: "none" }
8673
8784
  },