@symbo.ls/uikit 2.11.225 → 2.11.227

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
@@ -1383,7 +1383,9 @@ var require_cjs = __commonJS({
1383
1383
  appendIconsSprite: () => appendIconsSprite2,
1384
1384
  appendSVGSprite: () => appendSVGSprite2,
1385
1385
  applyDocument: () => applyDocument,
1386
+ applyGlobalVars: () => applyGlobalVars,
1386
1387
  applyHeadings: () => applyHeadings,
1388
+ applyMediaSequenceVars: () => applyMediaSequenceVars,
1387
1389
  applyReset: () => applyReset,
1388
1390
  applySequenceVars: () => applySequenceVars,
1389
1391
  applySpacingSequence: () => applySpacingSequence,
@@ -1416,6 +1418,8 @@ var require_cjs = __commonJS({
1416
1418
  getShadow: () => getShadow,
1417
1419
  getSpacingBasedOnRatio: () => getSpacingBasedOnRatio4,
1418
1420
  getSpacingByKey: () => getSpacingByKey3,
1421
+ getSubratio: () => getSubratio,
1422
+ getSubratioDifference: () => getSubratioDifference,
1419
1423
  getTheme: () => getTheme,
1420
1424
  getTimingByKey: () => getTimingByKey2,
1421
1425
  getTimingFunction: () => getTimingFunction3,
@@ -1448,7 +1452,9 @@ var require_cjs = __commonJS({
1448
1452
  setInCustomFontMedia: () => setInCustomFontMedia,
1449
1453
  setMediaTheme: () => setMediaTheme,
1450
1454
  setSVG: () => setSVG,
1455
+ setScalingVar: () => setScalingVar,
1451
1456
  setShadow: () => setShadow,
1457
+ setSubScalingVar: () => setSubScalingVar,
1452
1458
  setTheme: () => setTheme,
1453
1459
  setValue: () => setValue,
1454
1460
  setVariables: () => setVariables,
@@ -1465,6 +1471,8 @@ var require_cjs = __commonJS({
1465
1471
  module2.exports = __toCommonJS2(src_exports);
1466
1472
  var utils_exports = {};
1467
1473
  __export2(utils_exports, {
1474
+ applyGlobalVars: () => applyGlobalVars,
1475
+ applyMediaSequenceVars: () => applyMediaSequenceVars,
1468
1476
  applySequenceVars: () => applySequenceVars,
1469
1477
  changeLightness: () => changeLightness,
1470
1478
  colorStringToRgbaArray: () => colorStringToRgbaArray,
@@ -1484,6 +1492,8 @@ var require_cjs = __commonJS({
1484
1492
  getRgbTone: () => getRgbTone,
1485
1493
  getSequenceValue: () => getSequenceValue,
1486
1494
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
1495
+ getSubratio: () => getSubratio,
1496
+ getSubratioDifference: () => getSubratioDifference,
1487
1497
  hexToRgb: () => hexToRgb,
1488
1498
  hexToRgbArray: () => hexToRgbArray,
1489
1499
  hexToRgba: () => hexToRgba,
@@ -1500,6 +1510,8 @@ var require_cjs = __commonJS({
1500
1510
  setCustomFont: () => setCustomFont,
1501
1511
  setCustomFontMedia: () => setCustomFontMedia,
1502
1512
  setInCustomFontMedia: () => setInCustomFontMedia,
1513
+ setScalingVar: () => setScalingVar,
1514
+ setSubScalingVar: () => setSubScalingVar,
1503
1515
  setVariables: () => setVariables
1504
1516
  });
1505
1517
  var import_globals = __toESM2(require_cjs7(), 1);
@@ -1781,6 +1793,7 @@ var require_cjs = __commonJS({
1781
1793
  h1Matches: 6,
1782
1794
  lineHeight: 1.5,
1783
1795
  subSequence: true,
1796
+ mediaRegenerate: false,
1784
1797
  unit: "em",
1785
1798
  templates: {},
1786
1799
  sequence: {},
@@ -1828,6 +1841,7 @@ var require_cjs = __commonJS({
1828
1841
  ratio: SEQUENCE.phi,
1829
1842
  range: [-5, 15],
1830
1843
  subSequence: true,
1844
+ mediaRegenerate: false,
1831
1845
  unit: "em",
1832
1846
  sequence: {},
1833
1847
  scales: {},
@@ -1845,6 +1859,7 @@ var require_cjs = __commonJS({
1845
1859
  type: "timing",
1846
1860
  ratio: SEQUENCE["perfect-fourth"],
1847
1861
  range: [-3, 12],
1862
+ mediaRegenerate: false,
1848
1863
  unit: "ms",
1849
1864
  sequence: {},
1850
1865
  scales: {},
@@ -1940,45 +1955,77 @@ var require_cjs = __commonJS({
1940
1955
  19: "T"
1941
1956
  };
1942
1957
  var setSequenceValue = (props4, sequenceProps) => {
1943
- const { key, variable, value, scaling, index } = props4;
1958
+ const { key, variable, value, scaling, index, scalingVariable } = props4;
1944
1959
  sequenceProps.sequence[key] = {
1945
1960
  key,
1946
1961
  decimal: ~~(value * 100) / 100,
1947
1962
  val: ~~value,
1948
1963
  scaling,
1949
1964
  index,
1965
+ scalingVariable,
1950
1966
  variable
1951
1967
  };
1952
1968
  sequenceProps.scales[key] = scaling;
1953
1969
  sequenceProps.vars[variable] = scaling + sequenceProps.unit;
1954
1970
  };
1971
+ var setScalingVar = (key, sequenceProps) => {
1972
+ const { type } = sequenceProps;
1973
+ if (key === 0)
1974
+ return "1em";
1975
+ const prefix2 = "--" + (type && type.replace(".", "-"));
1976
+ const ratioVar = `${prefix2}-ratio`;
1977
+ if (key > 0) {
1978
+ const prevLetterKey = numToLetterMap[key - 1];
1979
+ return `calc(var(${prefix2}-${prevLetterKey}) * var(${ratioVar}))`;
1980
+ }
1981
+ if (key < 0) {
1982
+ const nextLetterKey = numToLetterMap[key + 1];
1983
+ return `calc(var(${prefix2}-${nextLetterKey}) / var(${ratioVar}))`;
1984
+ }
1985
+ };
1986
+ var setSubScalingVar = (index, arr, variable, sequenceProps) => {
1987
+ const { type } = sequenceProps;
1988
+ const skipMiddle = index === 2 && arr.length === 2;
1989
+ const indexMapWithLength = skipMiddle ? index + 1 : index;
1990
+ const prefix2 = "--" + (type && type.replace(".", "-"));
1991
+ const subRatioVarPrefix = `${prefix2}-sub-ratio-`;
1992
+ return `calc(var(${variable}) * var(${subRatioVarPrefix + indexMapWithLength}))`;
1993
+ };
1994
+ var getSubratioDifference = (base, ratio) => {
1995
+ const diff = base * ratio - base;
1996
+ const subRatio = diff / 1.618;
1997
+ const first = base * ratio - subRatio;
1998
+ const second = base + subRatio;
1999
+ const middle = (first + second) / 2;
2000
+ return [first, middle, second];
2001
+ };
2002
+ var getSubratio = (base, ratio) => {
2003
+ return getSubratioDifference(base, ratio).map((v) => v / base);
2004
+ };
1955
2005
  var generateSubSequence = (props4, sequenceProps) => {
1956
2006
  const { key, base, value, ratio, variable, index } = props4;
1957
2007
  const next2 = value * ratio;
1958
- const diff = next2 - value;
1959
- const smallscale = diff / 1.618;
1960
- const valueRounded = ~~value;
1961
- const nextRounded = ~~next2;
1962
- const diffRounded = nextRounded - valueRounded;
1963
- let arr = [];
1964
- const first = next2 - smallscale;
1965
- const second = value + smallscale;
1966
- const middle = (first + second) / 2;
2008
+ const diffRounded = ~~next2 - ~~value;
2009
+ let arr;
2010
+ const [first, middle, second] = getSubratioDifference(value, ratio);
1967
2011
  if (diffRounded > 16)
1968
2012
  arr = [first, middle, second];
1969
2013
  else
1970
2014
  arr = [first, second];
1971
- arr.map((v, k) => {
2015
+ arr.forEach((v, k) => {
1972
2016
  const scaling = ~~(v / base * 1e3) / 1e3;
1973
2017
  const newVar = variable + (k + 1);
2018
+ const newIndex = index + (k + 1) / 10;
2019
+ const scalingVariable = setSubScalingVar(k + 1, arr, variable, sequenceProps);
1974
2020
  const props22 = {
1975
2021
  key: key + (k + 1),
1976
2022
  variable: newVar,
1977
2023
  value: v,
1978
2024
  scaling,
1979
- index: index + (k + 1) / 10
2025
+ scalingVariable,
2026
+ index: newIndex
1980
2027
  };
1981
- return setSequenceValue(props22, sequenceProps);
2028
+ setSequenceValue(props22, sequenceProps);
1982
2029
  });
1983
2030
  };
1984
2031
  var switchSequenceOnNegative = (key, base, ratio) => {
@@ -1994,12 +2041,14 @@ var require_cjs = __commonJS({
1994
2041
  const value = switchSequenceOnNegative(key, base, ratio);
1995
2042
  const scaling = ~~(value / base * 100) / 100;
1996
2043
  const variable = prefix2 + letterKey;
2044
+ const scalingVariable = setScalingVar(key, sequenceProps);
1997
2045
  const props4 = {
1998
2046
  key: letterKey,
1999
2047
  variable,
2000
2048
  value,
2001
2049
  base,
2002
2050
  scaling,
2051
+ scalingVariable,
2003
2052
  ratio,
2004
2053
  index: key
2005
2054
  };
@@ -2089,35 +2138,75 @@ var require_cjs = __commonJS({
2089
2138
  CSS_VARS2[result.var] = result.value;
2090
2139
  }
2091
2140
  };
2092
- var applySequenceVars = (props4, mediaName, options = {}) => {
2141
+ var applyGlobalVars = (vars, obj, options) => {
2093
2142
  const CONFIG22 = getActiveConfig3();
2094
- const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
2095
- const unit = props4.unit || UNIT2.default;
2096
- const { sequence, scales } = props4;
2143
+ const { UNIT: UNIT2 } = CONFIG22;
2144
+ const unit = obj.unit || UNIT2.default;
2145
+ const { base, ratio, type } = obj;
2146
+ const prefix2 = "--" + (type && type.replace(".", "-"));
2147
+ vars[`${prefix2}-base`] = base;
2148
+ vars[`${prefix2}-unit`] = unit;
2149
+ const ratioVar = `${prefix2}-ratio`;
2150
+ vars[ratioVar] = ratio;
2151
+ const [first, middle, second] = getSubratio(base, ratio);
2152
+ vars[`${prefix2}-sub-ratio-1`] = first;
2153
+ vars[`${prefix2}-sub-ratio-2`] = middle;
2154
+ vars[`${prefix2}-sub-ratio-3`] = second;
2155
+ };
2156
+ var applySequenceVars = (FACTORY2, options = {}) => {
2157
+ const CONFIG22 = getActiveConfig3();
2158
+ const { UNIT: UNIT2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
2159
+ const unit = FACTORY2.unit || UNIT2.default;
2160
+ const { mediaRegenerate, sequence, scales } = FACTORY2;
2161
+ if (!mediaRegenerate) {
2162
+ applyGlobalVars(CSS_VARS2, FACTORY2, options);
2163
+ }
2097
2164
  for (const key in sequence) {
2098
2165
  const item = sequence[key];
2099
- const value = (props4.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
2100
- if (mediaName) {
2101
- const query = MEDIA2[mediaName];
2102
- if (!query) {
2103
- if (CONFIG22.verbose)
2104
- console.warn("Can't find query ", query);
2105
- }
2106
- let underMediaQuery = CSS_VARS2[`@media ${query}`];
2107
- if (!underMediaQuery)
2108
- underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
2109
- underMediaQuery[item.variable] = `var(${item.variable + "_" + mediaName})`;
2110
- CSS_VARS2[item.variable + "_" + mediaName] = value;
2166
+ const value = (FACTORY2.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
2167
+ if (!mediaRegenerate) {
2168
+ CSS_VARS2[item.variable + "_default"] = value;
2169
+ CSS_VARS2[item.variable] = item.scalingVariable;
2170
+ continue;
2171
+ }
2172
+ if (options.useDefault === false) {
2173
+ CSS_VARS2[item.variable] = value;
2111
2174
  } else {
2112
- if (options.useDefault === false) {
2113
- CSS_VARS2[item.variable] = value;
2114
- } else {
2115
- CSS_VARS2[item.variable + "_default"] = value;
2116
- CSS_VARS2[item.variable] = `var(${item.variable + "_default"})`;
2117
- }
2175
+ CSS_VARS2[item.variable + "_default"] = value;
2176
+ CSS_VARS2[item.variable] = `var(${item.variable + "_default"})`;
2118
2177
  }
2119
2178
  }
2120
2179
  };
2180
+ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
2181
+ const CONFIG22 = getActiveConfig3();
2182
+ const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
2183
+ const mediaName = media.slice(1);
2184
+ const unit = FACTORY2.unit || UNIT2.default;
2185
+ const { mediaRegenerate } = FACTORY2;
2186
+ const { sequence, scales } = FACTORY2[media];
2187
+ const query = MEDIA2[mediaName];
2188
+ if (!query && CONFIG22.verbose)
2189
+ console.warn("Can't find media query ", query);
2190
+ if (!mediaRegenerate) {
2191
+ let underMediaQuery = CSS_VARS2[`@media ${query}`];
2192
+ if (!underMediaQuery)
2193
+ underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
2194
+ applyGlobalVars(underMediaQuery, FACTORY2[media], options);
2195
+ return;
2196
+ }
2197
+ for (const key in sequence) {
2198
+ const item = sequence[key];
2199
+ const value = (FACTORY2.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
2200
+ if (!query && CONFIG22.verbose)
2201
+ console.warn("Can't find query ", query);
2202
+ let underMediaQuery = CSS_VARS2[`@media ${query}`];
2203
+ if (!underMediaQuery)
2204
+ underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
2205
+ underMediaQuery[item.variable] = `var(${item.variable + "_" + mediaName})`;
2206
+ CSS_VARS2[item.variable + "_" + mediaName] = value;
2207
+ }
2208
+ console.log(CSS_VARS2);
2209
+ };
2121
2210
  var import_utils82 = __toESM2(require_cjs22(), 1);
2122
2211
  var generateSprite = (icons) => {
2123
2212
  const CONFIG22 = getActiveConfig3();
@@ -2583,34 +2672,48 @@ var require_cjs = __commonJS({
2583
2672
  return { var: CSSvar, value: str, arr: value, type };
2584
2673
  };
2585
2674
  var import_utils15 = __toESM2(require_cjs22(), 1);
2586
- var runThroughMedia = (props4) => {
2675
+ var runThroughMedia = (FACTORY2) => {
2587
2676
  const CONFIG22 = getActiveConfig3();
2588
2677
  const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
2589
- for (const prop in props4) {
2590
- const mediaProps = props4[prop];
2591
- if (prop.slice(0, 1) === "@") {
2592
- const { type, base, ratio, range, subSequence, h1Matches, unit } = props4;
2593
- (0, import_utils15.merge)(mediaProps, {
2594
- type,
2595
- base,
2596
- ratio,
2597
- range,
2598
- subSequence,
2599
- h1Matches,
2600
- unit,
2601
- sequence: {},
2602
- scales: {},
2603
- templates: {},
2604
- vars: {}
2605
- });
2606
- generateSequence(mediaProps);
2607
- const mediaName = prop.slice(1);
2608
- applySequenceVars(mediaProps, mediaName);
2609
- const query = MEDIA2[mediaName];
2610
- TYPOGRAPHY2.templates[`@media screen and ${query}`] = {
2611
- fontSize: mediaProps.base / TYPOGRAPHY2.browserDefault + unit
2612
- };
2678
+ for (const prop in FACTORY2) {
2679
+ const isPropMedia = prop.slice(0, 1) === "@";
2680
+ const mediaValue = FACTORY2[prop];
2681
+ if (!isPropMedia)
2682
+ continue;
2683
+ const { mediaRegenerate } = FACTORY2;
2684
+ const mediaName = prop.slice(1);
2685
+ const {
2686
+ type,
2687
+ base,
2688
+ ratio,
2689
+ range,
2690
+ subSequence,
2691
+ h1Matches,
2692
+ unit
2693
+ } = FACTORY2;
2694
+ (0, import_utils15.merge)(mediaValue, {
2695
+ type,
2696
+ base,
2697
+ ratio,
2698
+ range,
2699
+ subSequence,
2700
+ h1Matches,
2701
+ unit,
2702
+ sequence: {},
2703
+ scales: {},
2704
+ templates: {},
2705
+ vars: {}
2706
+ });
2707
+ const query = MEDIA2[mediaName];
2708
+ TYPOGRAPHY2.templates[`@media screen and ${query}`] = {
2709
+ fontSize: mediaValue.base / TYPOGRAPHY2.browserDefault + unit
2710
+ };
2711
+ if (!mediaRegenerate) {
2712
+ applyMediaSequenceVars(FACTORY2, prop);
2713
+ continue;
2613
2714
  }
2715
+ generateSequence(mediaValue);
2716
+ applyMediaSequenceVars(FACTORY2, prop);
2614
2717
  }
2615
2718
  };
2616
2719
  var applyHeadings = (props4) => {
@@ -2650,28 +2753,36 @@ var require_cjs = __commonJS({
2650
2753
  );
2651
2754
  };
2652
2755
  var import_utils18 = __toESM2(require_cjs22(), 1);
2653
- var runThroughMedia2 = (sequenceProps) => {
2654
- for (const prop in sequenceProps) {
2655
- const mediaProps = sequenceProps[prop];
2656
- if (prop.slice(0, 1) === "@") {
2657
- const { type, base, ratio, range, subSequence, h1Matches, unit } = sequenceProps;
2658
- (0, import_utils18.merge)(mediaProps, {
2659
- type,
2660
- base,
2661
- ratio,
2662
- range,
2663
- subSequence,
2664
- h1Matches,
2665
- unit,
2666
- sequence: {},
2667
- scales: {},
2668
- templates: {},
2669
- vars: {}
2670
- });
2671
- generateSequence(mediaProps);
2672
- const mediaName = prop.slice(1);
2673
- applySequenceVars(mediaProps, mediaName);
2674
- }
2756
+ var runThroughMedia2 = (FACTORY2) => {
2757
+ for (const prop in FACTORY2) {
2758
+ const mediaProps = FACTORY2[prop];
2759
+ const isMediaName = prop.slice(0, 1) === "@";
2760
+ if (!isMediaName)
2761
+ continue;
2762
+ const {
2763
+ type,
2764
+ base,
2765
+ ratio,
2766
+ range,
2767
+ subSequence,
2768
+ h1Matches,
2769
+ unit
2770
+ } = FACTORY2;
2771
+ (0, import_utils18.merge)(mediaProps, {
2772
+ type,
2773
+ base,
2774
+ ratio,
2775
+ range,
2776
+ subSequence,
2777
+ h1Matches,
2778
+ unit,
2779
+ sequence: {},
2780
+ scales: {},
2781
+ templates: {},
2782
+ vars: {}
2783
+ });
2784
+ generateSequence(mediaProps);
2785
+ applyMediaSequenceVars(FACTORY2, prop);
2675
2786
  }
2676
2787
  };
2677
2788
  var applySpacingSequence = () => {
@@ -2746,7 +2857,7 @@ var require_cjs = __commonJS({
2746
2857
  unit: SPACING2.unit
2747
2858
  });
2748
2859
  }
2749
- applySequenceVars(sequenceProps, null, { useDefault: false });
2860
+ applySequenceVars(sequenceProps, { useDefault: false });
2750
2861
  return getSpacingByKey3(value, propertyName, sequenceProps);
2751
2862
  }
2752
2863
  return getSpacingByKey3(value, propertyName);
@@ -3040,10 +3151,22 @@ var require_cjs = __commonJS({
3040
3151
  return v;
3041
3152
  }).join(" ");
3042
3153
  };
3043
- var transformShadow2 = (sh, globalTheme) => {
3044
- return sh.split(",").map((shadow) => getShadow(shadow, globalTheme)).join(",");
3045
- };
3046
- var transformBoxShadow2 = (sh, globalTheme) => getShadow(sh, globalTheme);
3154
+ var transformShadow2 = (sh, globalTheme) => getShadow(sh, globalTheme);
3155
+ var transformBoxShadow2 = (shadows) => shadows.split("|").map((shadow) => {
3156
+ return shadow.split(", ").map((v) => {
3157
+ v = v.trim();
3158
+ if (v.slice(0, 2) === "--")
3159
+ return `var(${v})`;
3160
+ if (getColor2(v).length > 2)
3161
+ return getColor2(v);
3162
+ if (v.includes("px") || v.slice(-2) === "em")
3163
+ return v;
3164
+ const arr = v.split(" ");
3165
+ if (!arr.length)
3166
+ return v;
3167
+ return arr.map((v2) => getSpacingByKey3(v2, "shadow").shadow).join(" ");
3168
+ }).join(" ");
3169
+ }).join(",");
3047
3170
  var transformBackgroundImage2 = (backgroundImage, globalTheme) => {
3048
3171
  const CONFIG22 = getActiveConfig3();
3049
3172
  return backgroundImage.split(", ").map((v) => {
@@ -3368,7 +3491,7 @@ var require_types = __commonJS({
3368
3491
  isNumber: () => isNumber,
3369
3492
  isObject: () => isObject4,
3370
3493
  isObjectLike: () => isObjectLike2,
3371
- isString: () => isString6,
3494
+ isString: () => isString7,
3372
3495
  isUndefined: () => isUndefined2
3373
3496
  });
3374
3497
  module2.exports = __toCommonJS2(types_exports);
@@ -3378,7 +3501,7 @@ var require_types = __commonJS({
3378
3501
  return false;
3379
3502
  return typeof arg === "object" && arg.constructor === Object;
3380
3503
  };
3381
- var isString6 = (arg) => typeof arg === "string";
3504
+ var isString7 = (arg) => typeof arg === "string";
3382
3505
  var isNumber = (arg) => typeof arg === "number";
3383
3506
  var isFunction3 = (arg) => typeof arg === "function";
3384
3507
  var isBoolean = (arg) => arg === true || arg === false;
@@ -3391,7 +3514,7 @@ var require_types = __commonJS({
3391
3514
  return typeof arg === "object";
3392
3515
  };
3393
3516
  var isDefined2 = (arg) => {
3394
- return isObject4(arg) || isObjectLike2(arg) || isString6(arg) || isNumber(arg) || isFunction3(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
3517
+ return isObject4(arg) || isObjectLike2(arg) || isString7(arg) || isNumber(arg) || isFunction3(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
3395
3518
  };
3396
3519
  var isUndefined2 = (arg) => {
3397
3520
  return arg === void 0;
@@ -3400,7 +3523,7 @@ var require_types = __commonJS({
3400
3523
  boolean: isBoolean,
3401
3524
  array: isArray3,
3402
3525
  object: isObject4,
3403
- string: isString6,
3526
+ string: isString7,
3404
3527
  date: isDate,
3405
3528
  number: isNumber,
3406
3529
  null: isNull,
@@ -5108,7 +5231,6 @@ var require_updateState = __commonJS({
5108
5231
  const targetParent = findGrandParentState || parent.state;
5109
5232
  if (options.replace)
5110
5233
  (0, import_utils14.overwriteDeep)(targetParent, changesValue || value);
5111
- console.log(changesValue);
5112
5234
  targetParent.update(changesValue, {
5113
5235
  execStateFunction: false,
5114
5236
  isHoisted: true,
@@ -6166,8 +6288,14 @@ var Theme = {
6166
6288
  border: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.border) && {
6167
6289
  border: deps.transformBorder(props4.border)
6168
6290
  },
6169
- borderColor: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.borderColor) && {
6170
- borderColor: deps.getMediaColor(props4.borderColor)
6291
+ borderColor: (element) => {
6292
+ const { props: props4, deps } = element;
6293
+ const globalTheme = deps.getSystemTheme(element);
6294
+ if (!props4.borderColor)
6295
+ return;
6296
+ return {
6297
+ borderColor: deps.getMediaColor(props4.borderColor, globalTheme)
6298
+ };
6171
6299
  },
6172
6300
  borderStyle: ({ props: props4 }) => !(0, import_utils.isUndefined)(props4.borderStyle) && {
6173
6301
  borderStyle: props4.borderStyle
@@ -6193,7 +6321,7 @@ var Theme = {
6193
6321
  boxShadow: deps.transformShadow(props4.backgroundImage, globalTheme)
6194
6322
  };
6195
6323
  },
6196
- boxShadow: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.boxShadow) && {
6324
+ boxShadow: ({ props: props4, deps }) => (0, import_utils.isString)(props4.boxShadow) && {
6197
6325
  boxShadow: deps.transformBoxShadow(props4.boxShadow)
6198
6326
  },
6199
6327
  textShadow: ({ props: props4, deps }) => !(0, import_utils.isUndefined)(props4.textShadow) && {
@@ -8745,7 +8873,7 @@ var Input = {
8745
8873
  props: {
8746
8874
  border: "none",
8747
8875
  type: "input",
8748
- theme: "tertiary",
8876
+ theme: "field",
8749
8877
  fontSize: "A",
8750
8878
  round: "C",
8751
8879
  lineHeight: 1,
@@ -8760,8 +8888,8 @@ var Input = {
8760
8888
  autocomplete: ({ props: props4 }) => props4.autocomplete,
8761
8889
  placeholder: ({ props: props4 }) => props4.placeholder,
8762
8890
  value: ({ props: props4, state, deps }) => {
8763
- const { isString: isString6, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
8764
- if (isString6(props4.value) && props4.value.includes("{{")) {
8891
+ const { isString: isString7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
8892
+ if (isString7(props4.value) && props4.value.includes("{{")) {
8765
8893
  return replaceLiteralsWithObjectFields2(props4.value, state);
8766
8894
  }
8767
8895
  return props4.value;
@@ -8921,7 +9049,7 @@ var Textarea = {
8921
9049
  },
8922
9050
  ".simple": {
8923
9051
  props: {
8924
- theme: "tertiary",
9052
+ theme: "field",
8925
9053
  round: "Z2",
8926
9054
  width: "G1",
8927
9055
  height: "E1",
@@ -8990,6 +9118,7 @@ var Select = {
8990
9118
  fontSize: "A",
8991
9119
  border: "none",
8992
9120
  boxSizing: "border-box",
9121
+ theme: "field",
8993
9122
  cursor: "pointer"
8994
9123
  },
8995
9124
  childExtend: {
@@ -9531,7 +9660,7 @@ var returnPropertyValue = (el, property, def) => {
9531
9660
  var RangeWithButtons = {
9532
9661
  minus: {
9533
9662
  extend: SquareButton,
9534
- props: { theme: "tertiary", icon: "minus" },
9663
+ props: { theme: "secondary", icon: "minus" },
9535
9664
  on: {
9536
9665
  click: (ev, el, s) => {
9537
9666
  const parentProps = el.parent.props;
@@ -9585,7 +9714,7 @@ var RangeWithButtons = {
9585
9714
  },
9586
9715
  plus: {
9587
9716
  extend: SquareButton,
9588
- props: { theme: "tertiary", icon: "plus" },
9717
+ props: { theme: "secondary", icon: "plus" },
9589
9718
  on: {
9590
9719
  click: (ev, el, s) => {
9591
9720
  const parentProps = el.parent.props;
@@ -9626,27 +9755,6 @@ var style_default = {
9626
9755
  // Slider/index.js
9627
9756
  var import_scratch12 = __toESM(require_cjs());
9628
9757
  var import_utils12 = __toESM(require_cjs2());
9629
- (0, import_scratch12.set)({
9630
- theme: {
9631
- sliderThumb: {
9632
- background: "white 0.2",
9633
- "&::-webkit-slider-thumb": {
9634
- background: "#232526",
9635
- borderColor: (0, import_scratch12.opacify)("#454646", 0.75)
9636
- },
9637
- "&:hover": {
9638
- "&::-webkit-slider-thumb": {
9639
- borderColor: (0, import_scratch12.opacify)("#fff", 0.35)
9640
- }
9641
- },
9642
- "&:focus, &:active": {
9643
- "&::-webkit-slider-thumb": {
9644
- borderColor: "#3C6AC0"
9645
- }
9646
- }
9647
- }
9648
- }
9649
- });
9650
9758
  var RangeSlider = {
9651
9759
  style: style_default,
9652
9760
  props: {