@symbo.ls/uikit 2.11.90 → 2.11.92

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
@@ -383,10 +383,10 @@ var require_cjs = __commonJS({
383
383
  isFunction: () => isFunction22,
384
384
  isNot: () => isNot4,
385
385
  isNull: () => isNull,
386
- isNumber: () => isNumber,
386
+ isNumber: () => isNumber2,
387
387
  isObject: () => isObject7,
388
388
  isObjectLike: () => isObjectLike32,
389
- isString: () => isString8,
389
+ isString: () => isString9,
390
390
  isUndefined: () => isUndefined,
391
391
  isValidHtmlTag: () => isValidHtmlTag
392
392
  });
@@ -399,8 +399,8 @@ var require_cjs = __commonJS({
399
399
  return false;
400
400
  return typeof arg === "object" && arg.constructor === Object;
401
401
  };
402
- var isString8 = (arg) => typeof arg === "string";
403
- var isNumber = (arg) => typeof arg === "number";
402
+ var isString9 = (arg) => typeof arg === "string";
403
+ var isNumber2 = (arg) => typeof arg === "number";
404
404
  var isFunction22 = (arg) => typeof arg === "function";
405
405
  var isBoolean = (arg) => arg === true || arg === false;
406
406
  var isNull = (arg) => arg === null;
@@ -411,7 +411,7 @@ var require_cjs = __commonJS({
411
411
  return typeof arg === "object";
412
412
  };
413
413
  var isDefined2 = (arg) => {
414
- return isObject7(arg) || isObjectLike32(arg) || isString8(arg) || isNumber(arg) || isFunction22(arg) || isArray62(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
414
+ return isObject7(arg) || isObjectLike32(arg) || isString9(arg) || isNumber2(arg) || isFunction22(arg) || isArray62(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
415
415
  };
416
416
  var isUndefined = (arg) => {
417
417
  return arg === void 0;
@@ -420,8 +420,8 @@ var require_cjs = __commonJS({
420
420
  boolean: isBoolean,
421
421
  array: isArray62,
422
422
  object: isObject7,
423
- string: isString8,
424
- number: isNumber,
423
+ string: isString9,
424
+ number: isNumber2,
425
425
  null: isNull,
426
426
  function: isFunction22,
427
427
  objectLike: isObjectLike32,
@@ -966,13 +966,13 @@ var require_cjs = __commonJS({
966
966
  }
967
967
  return true;
968
968
  };
969
- var removeFromObject = (obj, props9) => {
970
- if (props9 === void 0 || props9 === null)
969
+ var removeFromObject = (obj, props7) => {
970
+ if (props7 === void 0 || props7 === null)
971
971
  return obj;
972
- if ((0, import_types.is)(props9)("string", "number")) {
973
- delete obj[props9];
974
- } else if ((0, import_types.isArray)(props9)) {
975
- props9.forEach((prop) => delete obj[prop]);
972
+ if ((0, import_types.is)(props7)("string", "number")) {
973
+ delete obj[props7];
974
+ } else if ((0, import_types.isArray)(props7)) {
975
+ props7.forEach((prop) => delete obj[prop]);
976
976
  } else {
977
977
  throw new Error("Invalid input: props must be a string or an array of strings");
978
978
  }
@@ -1157,6 +1157,7 @@ var require_cjs = __commonJS({
1157
1157
  getFontSizeByKey: () => getFontSizeByKey4,
1158
1158
  getMediaColor: () => getMediaColor7,
1159
1159
  getMediaTheme: () => getMediaTheme4,
1160
+ getRgbTone: () => getRgbTone,
1160
1161
  getSequenceValue: () => getSequenceValue,
1161
1162
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
1162
1163
  getSpacingBasedOnRatio: () => getSpacingBasedOnRatio10,
@@ -1224,6 +1225,7 @@ var require_cjs = __commonJS({
1224
1225
  getFontFaceEachString: () => getFontFaceEachString,
1225
1226
  getFontFaceString: () => getFontFaceString,
1226
1227
  getFontFormat: () => getFontFormat,
1228
+ getRgbTone: () => getRgbTone,
1227
1229
  getSequenceValue: () => getSequenceValue,
1228
1230
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
1229
1231
  hexToRgb: () => hexToRgb,
@@ -1245,6 +1247,7 @@ var require_cjs = __commonJS({
1245
1247
  setVariables: () => setVariables
1246
1248
  });
1247
1249
  var import_globals = __toESM2(require_cjs11(), 1);
1250
+ var import_utils16 = __toESM2(require_cjs42(), 1);
1248
1251
  var ENV = "development";
1249
1252
  var colorStringToRgbaArray = (color) => {
1250
1253
  if (color === "")
@@ -1297,7 +1300,7 @@ var require_cjs = __commonJS({
1297
1300
  return [r, g, b];
1298
1301
  };
1299
1302
  var rgbToHex = (r, g, b) => {
1300
- return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
1303
+ return "#" + (1 << 24 | r << 16 | g << 8 | b).toString(16).slice(1);
1301
1304
  };
1302
1305
  var rgbArrayToHex = ([r, g, b]) => {
1303
1306
  return ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
@@ -1349,7 +1352,7 @@ var require_cjs = __commonJS({
1349
1352
  g = 255;
1350
1353
  else if (g < 0)
1351
1354
  g = 0;
1352
- return (g | b << 8 | r << 16).toString(16);
1355
+ return ((g | b << 8 | r << 16) + 16777216).toString(16).slice(1);
1353
1356
  };
1354
1357
  var mixTwoRgba = (colorA, colorB, range = 0.5) => {
1355
1358
  const arr = [];
@@ -1371,6 +1374,24 @@ var require_cjs = __commonJS({
1371
1374
  arr[3] = opacity;
1372
1375
  return `rgba(${arr})`;
1373
1376
  };
1377
+ var getRgbTone = (rgb, tone) => {
1378
+ if ((0, import_utils16.isString)(rgb))
1379
+ rgb = rgb.split(", ").map((v) => parseFloat(v));
1380
+ if ((0, import_utils16.isNumber)(tone))
1381
+ tone += "";
1382
+ const toHex = rgbArrayToHex(rgb);
1383
+ const abs2 = tone.slice(0, 1);
1384
+ if (abs2 === "-" || abs2 === "+") {
1385
+ const colorShade = getColorShade(toHex, parseFloat(tone));
1386
+ return hexToRgbArray(colorShade).join(", ");
1387
+ } else {
1388
+ const [r, g, b] = rgb;
1389
+ const hsl = rgbToHSL(r, g, b);
1390
+ const [h, s, l] = hsl;
1391
+ const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255);
1392
+ return newRgb;
1393
+ }
1394
+ };
1374
1395
  var returnSubThemeOrDefault = (orig, theme) => {
1375
1396
  if (!orig)
1376
1397
  return;
@@ -1419,9 +1440,9 @@ var require_cjs = __commonJS({
1419
1440
  const keys = Object.keys(LIBRARY);
1420
1441
  return keys.map((key) => getFontFaceEachString(key, LIBRARY[key].value));
1421
1442
  };
1422
- var import_utils42 = __toESM2(require_cjs42(), 1);
1443
+ var import_utils52 = __toESM2(require_cjs42(), 1);
1444
+ var import_utils32 = __toESM2(require_cjs42());
1423
1445
  var import_utils22 = __toESM2(require_cjs42());
1424
- var import_utils16 = __toESM2(require_cjs42());
1425
1446
  var toCamelCase = (str) => {
1426
1447
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
1427
1448
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
@@ -1429,14 +1450,14 @@ var require_cjs = __commonJS({
1429
1450
  };
1430
1451
  var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
1431
1452
  var arrayzeValue = (val) => {
1432
- if ((0, import_utils22.isString)(val))
1453
+ if ((0, import_utils32.isString)(val))
1433
1454
  return val.split(" ");
1434
- if ((0, import_utils22.isObject)(val))
1455
+ if ((0, import_utils32.isObject)(val))
1435
1456
  return Object.keys(val).map((v) => val[v]);
1436
- if ((0, import_utils22.isArray)(val))
1457
+ if ((0, import_utils32.isArray)(val))
1437
1458
  return val;
1438
1459
  };
1439
- var import_utils32 = __toESM2(require_cjs42(), 1);
1460
+ var import_utils42 = __toESM2(require_cjs42(), 1);
1440
1461
  var defaultConfig_exports = {};
1441
1462
  __export2(defaultConfig_exports, {
1442
1463
  ANIMATION: () => ANIMATION,
@@ -1607,13 +1628,13 @@ var require_cjs = __commonJS({
1607
1628
  CSS_VARS,
1608
1629
  ...defaultConfig_exports
1609
1630
  };
1610
- var cachedConfig = (0, import_utils32.deepClone)(CONFIG4);
1631
+ var cachedConfig = (0, import_utils42.deepClone)(CONFIG4);
1611
1632
  var FACTORY = {
1612
1633
  active: "0",
1613
1634
  0: CONFIG4
1614
1635
  };
1615
1636
  var activateConfig = (def) => {
1616
- if ((0, import_utils32.isDefined)(def)) {
1637
+ if ((0, import_utils42.isDefined)(def)) {
1617
1638
  FACTORY.active = def;
1618
1639
  }
1619
1640
  return FACTORY[def || FACTORY.active];
@@ -1622,10 +1643,10 @@ var require_cjs = __commonJS({
1622
1643
  return FACTORY[def || FACTORY.active];
1623
1644
  };
1624
1645
  var setActiveConfig = (newConfig) => {
1625
- if (!(0, import_utils32.isObject)(newConfig))
1646
+ if (!(0, import_utils42.isObject)(newConfig))
1626
1647
  return;
1627
1648
  FACTORY.active = "1";
1628
- FACTORY["1"] = (0, import_utils32.deepMerge)(newConfig, (0, import_utils32.deepClone)(cachedConfig));
1649
+ FACTORY["1"] = (0, import_utils42.deepMerge)(newConfig, (0, import_utils42.deepClone)(cachedConfig));
1629
1650
  return newConfig;
1630
1651
  };
1631
1652
  var numToLetterMap = {
@@ -1656,8 +1677,8 @@ var require_cjs = __commonJS({
1656
1677
  18: "S",
1657
1678
  19: "T"
1658
1679
  };
1659
- var setSequenceValue = (props9, sequenceProps) => {
1660
- const { key, variable, value, scaling, index } = props9;
1680
+ var setSequenceValue = (props7, sequenceProps) => {
1681
+ const { key, variable, value, scaling, index } = props7;
1661
1682
  sequenceProps.sequence[key] = {
1662
1683
  key,
1663
1684
  decimal: ~~(value * 100) / 100,
@@ -1669,8 +1690,8 @@ var require_cjs = __commonJS({
1669
1690
  sequenceProps.scales[key] = scaling;
1670
1691
  sequenceProps.vars[variable] = scaling + sequenceProps.unit;
1671
1692
  };
1672
- var generateSubSequence = (props9, sequenceProps) => {
1673
- const { key, base, value, ratio, variable, index } = props9;
1693
+ var generateSubSequence = (props7, sequenceProps) => {
1694
+ const { key, base, value, ratio, variable, index } = props7;
1674
1695
  const next2 = value * ratio;
1675
1696
  const diff4 = next2 - value;
1676
1697
  const smallscale = diff4 / 1.618;
@@ -1711,7 +1732,7 @@ var require_cjs = __commonJS({
1711
1732
  const value = switchSequenceOnNegative(key, base, ratio);
1712
1733
  const scaling = ~~(value / base * 100) / 100;
1713
1734
  const variable = prefix2 + letterKey;
1714
- const props9 = {
1735
+ const props7 = {
1715
1736
  key: letterKey,
1716
1737
  variable,
1717
1738
  value,
@@ -1720,9 +1741,9 @@ var require_cjs = __commonJS({
1720
1741
  ratio,
1721
1742
  index: key
1722
1743
  };
1723
- setSequenceValue(props9, sequenceProps);
1744
+ setSequenceValue(props7, sequenceProps);
1724
1745
  if (subSequence)
1725
- generateSubSequence(props9, sequenceProps);
1746
+ generateSubSequence(props7, sequenceProps);
1726
1747
  }
1727
1748
  return sequenceProps;
1728
1749
  };
@@ -1734,7 +1755,7 @@ var require_cjs = __commonJS({
1734
1755
  unit = UNIT2.default,
1735
1756
  useVariable
1736
1757
  } = sequenceProps;
1737
- if ((0, import_utils42.isString)(value) && value.slice(0, 2) === "--")
1758
+ if ((0, import_utils52.isString)(value) && value.slice(0, 2) === "--")
1738
1759
  return `var(${value})`;
1739
1760
  const prefix2 = `--${toDashCase(sequenceProps.type.replace(".", "-"))}-`;
1740
1761
  const startsWithDashOrLetterRegex = /^-?[a-zA-Z]/i;
@@ -1795,23 +1816,23 @@ var require_cjs = __commonJS({
1795
1816
  return sequence[findLetter];
1796
1817
  });
1797
1818
  };
1798
- var import_utils62 = __toESM2(require_cjs42(), 1);
1819
+ var import_utils72 = __toESM2(require_cjs42(), 1);
1799
1820
  var setVariables = (result, key) => {
1800
1821
  const CONFIG22 = getActiveConfig4();
1801
1822
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
1802
- if ((0, import_utils62.isObjectLike)(result.value)) {
1823
+ if ((0, import_utils72.isObjectLike)(result.value)) {
1803
1824
  } else {
1804
1825
  CSS_VARS2[result.var] = result.value;
1805
1826
  }
1806
1827
  };
1807
- var applySequenceVars = (props9, mediaName, options = {}) => {
1828
+ var applySequenceVars = (props7, mediaName, options = {}) => {
1808
1829
  const CONFIG22 = getActiveConfig4();
1809
1830
  const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
1810
- const unit = props9.unit || UNIT2.default;
1811
- const { sequence, scales } = props9;
1831
+ const unit = props7.unit || UNIT2.default;
1832
+ const { sequence, scales } = props7;
1812
1833
  for (const key in sequence) {
1813
1834
  const item = sequence[key];
1814
- const value = (props9.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
1835
+ const value = (props7.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
1815
1836
  if (mediaName) {
1816
1837
  const query = MEDIA2[mediaName];
1817
1838
  if (!query) {
@@ -1833,7 +1854,7 @@ var require_cjs = __commonJS({
1833
1854
  }
1834
1855
  }
1835
1856
  };
1836
- var import_utils72 = __toESM2(require_cjs42(), 1);
1857
+ var import_utils82 = __toESM2(require_cjs42(), 1);
1837
1858
  var generateSprite = (icons) => {
1838
1859
  const CONFIG22 = getActiveConfig4();
1839
1860
  let sprite = "";
@@ -1847,7 +1868,7 @@ var require_cjs = __commonJS({
1847
1868
  return sprite;
1848
1869
  };
1849
1870
  var parseRootAttributes = (htmlString) => {
1850
- if (!(0, import_utils72.isString)(htmlString)) {
1871
+ if (!(0, import_utils82.isString)(htmlString)) {
1851
1872
  return console.warn(`parseRootAttributes: ${htmlString} is not a string`);
1852
1873
  }
1853
1874
  const match2 = htmlString.match(/<svg\s+(.*?)>/);
@@ -1867,7 +1888,7 @@ var require_cjs = __commonJS({
1867
1888
  const urlRegex = /url\(#([^)]*)\)/g;
1868
1889
  const matches = code.match(/id="([^"]*)"/g);
1869
1890
  let replacedCode = code;
1870
- if ((0, import_utils72.isArray)(matches)) {
1891
+ if ((0, import_utils82.isArray)(matches)) {
1871
1892
  matches.forEach(() => {
1872
1893
  const randomKey = Math.floor(Math.random() * 1e5);
1873
1894
  replacedCode = code.replace(idRegex, `id="${key}-${randomKey}"`).replace(urlRegex, `url(#${key}-${randomKey})`);
@@ -1920,10 +1941,10 @@ var require_cjs = __commonJS({
1920
1941
  setSVG: () => setSVG,
1921
1942
  setTheme: () => setTheme
1922
1943
  });
1923
- var import_utils82 = __toESM2(require_cjs42(), 1);
1944
+ var import_utils92 = __toESM2(require_cjs42(), 1);
1924
1945
  var getColor4 = (value, key, config) => {
1925
1946
  const CONFIG22 = config || getActiveConfig4();
1926
- if (!(0, import_utils82.isString)(value)) {
1947
+ if (!(0, import_utils92.isString)(value)) {
1927
1948
  if (CONFIG22.verbose)
1928
1949
  console.warn(value, "- type for color is not valid");
1929
1950
  return;
@@ -1932,7 +1953,7 @@ var require_cjs = __commonJS({
1932
1953
  return `var(${value})`;
1933
1954
  if (key && value[key])
1934
1955
  value = value[key];
1935
- const [name, alpha, tone] = (0, import_utils82.isArray)(value) ? value : value.split(" ");
1956
+ const [name, alpha, tone] = (0, import_utils92.isArray)(value) ? value : value.split(" ");
1936
1957
  const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG22;
1937
1958
  let val = COLOR2[name] || GRADIENT2[name];
1938
1959
  if (!val) {
@@ -1947,22 +1968,11 @@ var require_cjs = __commonJS({
1947
1968
  console.warn(value, " - does not have ", key);
1948
1969
  }
1949
1970
  let rgb = val.rgb;
1950
- if (!rgb)
1971
+ if (!rgb) {
1951
1972
  return CONFIG22.useVariable ? `var(${val.var})` : val.value;
1973
+ }
1952
1974
  if (tone && !val[tone]) {
1953
- const toHex = rgbArrayToHex(rgb.split(", ").map((v) => parseFloat(v)));
1954
- const abs2 = tone.slice(0, 1);
1955
- if (abs2 === "-" || abs2 === "+") {
1956
- rgb = hexToRgbArray(
1957
- getColorShade(toHex, parseFloat(tone))
1958
- ).join(", ");
1959
- } else {
1960
- const [r, g, b] = [...rgb.split(", ").map((v) => parseInt(v))];
1961
- const hsl = rgbToHSL(r, g, b);
1962
- const [h, s, l] = hsl;
1963
- const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255);
1964
- rgb = newRgb;
1965
- }
1975
+ rgb = getRgbTone(rgb, tone);
1966
1976
  val[tone] = { rgb, var: `${val.var}-${tone}` };
1967
1977
  }
1968
1978
  if (val[tone])
@@ -1975,17 +1985,17 @@ var require_cjs = __commonJS({
1975
1985
  const CONFIG22 = config || getActiveConfig4();
1976
1986
  if (!globalTheme)
1977
1987
  globalTheme = CONFIG22.globalTheme;
1978
- if (!(0, import_utils82.isString)(value)) {
1988
+ if (!(0, import_utils92.isString)(value)) {
1979
1989
  if (CONFIG22.verbose)
1980
1990
  console.warn(value, "- type for color is not valid");
1981
1991
  return;
1982
1992
  }
1983
1993
  if (value.slice(0, 2) === "--")
1984
1994
  return `var(${value})`;
1985
- const [name] = (0, import_utils82.isArray)(value) ? value : value.split(" ");
1995
+ const [name] = (0, import_utils92.isArray)(value) ? value : value.split(" ");
1986
1996
  const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG22;
1987
1997
  const val = COLOR2[name] || GRADIENT2[name];
1988
- const isObj = (0, import_utils82.isObject)(val);
1998
+ const isObj = (0, import_utils92.isObject)(val);
1989
1999
  if (isObj && val.value)
1990
2000
  return getColor4(value, `@${globalTheme}`, config);
1991
2001
  else if (isObj) {
@@ -2008,15 +2018,15 @@ var require_cjs = __commonJS({
2008
2018
  };
2009
2019
  var setColor = (val, key, suffix) => {
2010
2020
  const CONFIG22 = getActiveConfig4();
2011
- if ((0, import_utils82.isString)(val) && val.slice(0, 2) === "--")
2021
+ if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
2012
2022
  val = getColor4(val.slice(2));
2013
- if ((0, import_utils82.isArray)(val)) {
2023
+ if ((0, import_utils92.isArray)(val)) {
2014
2024
  return {
2015
2025
  "@light": setColor(val[0], key, "light"),
2016
2026
  "@dark": setColor(val[1], key, "dark")
2017
2027
  };
2018
2028
  }
2019
- if ((0, import_utils82.isObject)(val)) {
2029
+ if ((0, import_utils92.isObject)(val)) {
2020
2030
  const obj = {};
2021
2031
  for (const variant in val)
2022
2032
  obj[variant] = setColor(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
@@ -2039,15 +2049,15 @@ var require_cjs = __commonJS({
2039
2049
  };
2040
2050
  var setGradient = (val, key, suffix) => {
2041
2051
  const CONFIG22 = getActiveConfig4();
2042
- if ((0, import_utils82.isString)(val) && val.slice(0, 2) === "--")
2052
+ if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
2043
2053
  val = getColor4(val.slice(2));
2044
- if ((0, import_utils82.isArray)(val)) {
2054
+ if ((0, import_utils92.isArray)(val)) {
2045
2055
  return {
2046
2056
  "@light": setGradient(val[0], key, "light"),
2047
2057
  "@dark": setGradient(val[0], key, "dark")
2048
2058
  };
2049
2059
  }
2050
- if ((0, import_utils82.isObject)(val)) {
2060
+ if ((0, import_utils92.isObject)(val)) {
2051
2061
  const obj = {};
2052
2062
  for (const variant in val)
2053
2063
  obj[variant] = setGradient(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
@@ -2062,7 +2072,7 @@ var require_cjs = __commonJS({
2062
2072
  value: val.value || val
2063
2073
  };
2064
2074
  };
2065
- var import_utils102 = __toESM2(require_cjs42(), 1);
2075
+ var import_utils112 = __toESM2(require_cjs42(), 1);
2066
2076
  var setThemeValue = (theme) => {
2067
2077
  const value = {};
2068
2078
  const { state, media, helpers, ...rest } = theme;
@@ -2085,7 +2095,7 @@ var require_cjs = __commonJS({
2085
2095
  if (CONFIG22.useVariable)
2086
2096
  return getMediaTheme4(value, modifier);
2087
2097
  const { THEME: THEME2 } = CONFIG22;
2088
- if ((0, import_utils102.isString)(value)) {
2098
+ if ((0, import_utils112.isString)(value)) {
2089
2099
  const [theme, subtheme] = value.split(" ");
2090
2100
  const isOurTheme = THEME2[theme];
2091
2101
  if (isOurTheme) {
@@ -2094,7 +2104,7 @@ var require_cjs = __commonJS({
2094
2104
  value = [theme, subtheme || modifier];
2095
2105
  }
2096
2106
  }
2097
- if ((0, import_utils102.isObjectLike)(value) && value[1]) {
2107
+ if ((0, import_utils112.isObjectLike)(value) && value[1]) {
2098
2108
  const themeName = value[0];
2099
2109
  const subThemeName = value[1];
2100
2110
  const { helpers, media, state } = THEME2[themeName];
@@ -2104,11 +2114,11 @@ var require_cjs = __commonJS({
2104
2114
  return getThemeValue(helpers[subThemeName]);
2105
2115
  if (state && state[subThemeName])
2106
2116
  return getThemeValue(state[subThemeName]);
2107
- } else if ((0, import_utils102.isObject)(value))
2117
+ } else if ((0, import_utils112.isObject)(value))
2108
2118
  return setThemeValue(value);
2109
2119
  };
2110
2120
  var setInverseTheme = (theme, variant, value) => {
2111
- if ((0, import_utils102.isObject)(variant)) {
2121
+ if ((0, import_utils112.isObject)(variant)) {
2112
2122
  theme.variants.inverse.value = setThemeValue(variant);
2113
2123
  } else if (variant === true) {
2114
2124
  const { color, background } = value;
@@ -2123,7 +2133,7 @@ var require_cjs = __commonJS({
2123
2133
  var setPseudo = (theme, key, variant, themeValue) => {
2124
2134
  const result = getTheme4(variant);
2125
2135
  themeValue[`&:${key}`] = result;
2126
- if ((0, import_utils102.isObject)(variant) && !variant.value)
2136
+ if ((0, import_utils112.isObject)(variant) && !variant.value)
2127
2137
  variant.value = result;
2128
2138
  };
2129
2139
  var setSelectors = (theme, value) => {
@@ -2141,7 +2151,7 @@ var require_cjs = __commonJS({
2141
2151
  var setPrefersScheme = (theme, key, variant, themeValue) => {
2142
2152
  const result = getTheme4(variant);
2143
2153
  themeValue[`@media (prefers-color-scheme: ${key})`] = result;
2144
- if ((0, import_utils102.isObject)(variant) && !variant.value)
2154
+ if ((0, import_utils112.isObject)(variant) && !variant.value)
2145
2155
  variant.value = result;
2146
2156
  };
2147
2157
  var setMedia = (theme, value) => {
@@ -2167,7 +2177,7 @@ var require_cjs = __commonJS({
2167
2177
  const keys = Object.keys(helpers);
2168
2178
  keys.map((key) => {
2169
2179
  const helper = helpers[key];
2170
- if ((0, import_utils102.isString)(helper))
2180
+ if ((0, import_utils112.isString)(helper))
2171
2181
  helpers[key] = CONFIG22.THEME[helper];
2172
2182
  else
2173
2183
  getThemeValue(helpers[key]);
@@ -2191,7 +2201,7 @@ var require_cjs = __commonJS({
2191
2201
  const CONFIG22 = getActiveConfig4();
2192
2202
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
2193
2203
  const theme = { value: val };
2194
- if ((0, import_utils102.isObjectLike)(val)) {
2204
+ if ((0, import_utils112.isObjectLike)(val)) {
2195
2205
  for (const param in val) {
2196
2206
  const symb = param.slice(0, 1);
2197
2207
  const value = val[param];
@@ -2219,7 +2229,7 @@ var require_cjs = __commonJS({
2219
2229
  };
2220
2230
  }
2221
2231
  }
2222
- if ((0, import_utils102.isString)(val) && val.slice(0, 2) === "--") {
2232
+ if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--") {
2223
2233
  const { THEME: THEME2 } = CONFIG22;
2224
2234
  const value = THEME2[val.slice(2)];
2225
2235
  const getReferenced = getMediaTheme4(value, prefers);
@@ -2232,7 +2242,7 @@ var require_cjs = __commonJS({
2232
2242
  const obj = {};
2233
2243
  for (const param in val) {
2234
2244
  const symb = param.slice(0, 1);
2235
- if ((0, import_utils102.isObjectLike)(val[param])) {
2245
+ if ((0, import_utils112.isObjectLike)(val[param])) {
2236
2246
  if (symb === "@") {
2237
2247
  const query = CONFIG22.MEDIA[param.slice(1)];
2238
2248
  const media = `@media screen and ${query}`;
@@ -2252,23 +2262,23 @@ var require_cjs = __commonJS({
2252
2262
  return val;
2253
2263
  };
2254
2264
  var findModifier = (val, modifier) => {
2255
- if ((0, import_utils102.isArray)(modifier))
2265
+ if ((0, import_utils112.isArray)(modifier))
2256
2266
  return findModifierFromArray(val, modifier);
2257
- else if ((0, import_utils102.isString)(modifier) && val[modifier])
2267
+ else if ((0, import_utils112.isString)(modifier) && val[modifier])
2258
2268
  return val[modifier];
2259
2269
  else
2260
2270
  return val;
2261
2271
  };
2262
2272
  var getMediaTheme4 = (val, mod) => {
2263
2273
  const CONFIG22 = getActiveConfig4();
2264
- if ((0, import_utils102.isString)(val) && val.slice(0, 2) === "--")
2274
+ if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--")
2265
2275
  val = getMediaTheme4(val.slice(2));
2266
- if (!val || !(0, import_utils102.isString)(val)) {
2276
+ if (!val || !(0, import_utils112.isString)(val)) {
2267
2277
  if (CONFIG22.verbose)
2268
2278
  console.warn(val, "- theme is not string");
2269
2279
  return;
2270
2280
  }
2271
- const [name, ...modifier] = (0, import_utils102.isArray)(val) ? val : val.split(" ");
2281
+ const [name, ...modifier] = (0, import_utils112.isArray)(val) ? val : val.split(" ");
2272
2282
  let value = CONFIG22.THEME[name];
2273
2283
  if (value && (modifier || mod)) {
2274
2284
  value = findModifier(value, modifier.length ? modifier : mod);
@@ -2276,7 +2286,7 @@ var require_cjs = __commonJS({
2276
2286
  const r = recursiveTheme(value);
2277
2287
  return r;
2278
2288
  };
2279
- var import_utils112 = __toESM2(require_cjs42(), 1);
2289
+ var import_utils122 = __toESM2(require_cjs42(), 1);
2280
2290
  var setFont = (val, key) => {
2281
2291
  const CSSvar = `--font-${key}`;
2282
2292
  const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
@@ -2293,21 +2303,21 @@ var require_cjs = __commonJS({
2293
2303
  let { value, type } = val;
2294
2304
  if (val.isDefault)
2295
2305
  FONT_FAMILY2.default = key;
2296
- if ((0, import_utils112.isObject)(value))
2306
+ if ((0, import_utils122.isObject)(value))
2297
2307
  value = arrayzeValue(value);
2298
2308
  const CSSvar = `--font-family-${key}`;
2299
2309
  const str = `${value.join(", ")}, ${FONT_FAMILY_TYPES2[type]}`;
2300
2310
  return { var: CSSvar, value: str, arr: value, type };
2301
2311
  };
2302
- var import_utils142 = __toESM2(require_cjs42(), 1);
2303
- var runThroughMedia = (props9) => {
2312
+ var import_utils152 = __toESM2(require_cjs42(), 1);
2313
+ var runThroughMedia = (props7) => {
2304
2314
  const CONFIG22 = getActiveConfig4();
2305
2315
  const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
2306
- for (const prop in props9) {
2307
- const mediaProps = props9[prop];
2316
+ for (const prop in props7) {
2317
+ const mediaProps = props7[prop];
2308
2318
  if (prop.slice(0, 1) === "@") {
2309
- const { type, base, ratio, range, subSequence, h1Matches, unit } = props9;
2310
- (0, import_utils142.merge)(mediaProps, {
2319
+ const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
2320
+ (0, import_utils152.merge)(mediaProps, {
2311
2321
  type,
2312
2322
  base,
2313
2323
  ratio,
@@ -2330,20 +2340,20 @@ var require_cjs = __commonJS({
2330
2340
  }
2331
2341
  }
2332
2342
  };
2333
- var applyHeadings = (props9) => {
2343
+ var applyHeadings = (props7) => {
2334
2344
  const CONFIG22 = getActiveConfig4();
2335
- if (props9.h1Matches) {
2336
- const unit = props9.unit;
2337
- const HEADINGS = findHeadings(props9);
2338
- const { templates } = props9;
2345
+ if (props7.h1Matches) {
2346
+ const unit = props7.unit;
2347
+ const HEADINGS = findHeadings(props7);
2348
+ const { templates } = props7;
2339
2349
  for (const k in HEADINGS) {
2340
2350
  const headerName = `h${parseInt(k) + 1}`;
2341
2351
  const headerStyle = templates[headerName];
2342
2352
  templates[headerName] = {
2343
2353
  fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
2344
2354
  margin: headerStyle ? headerStyle.margin : 0,
2345
- lineHeight: headerStyle ? headerStyle.lineHeight : props9.lineHeight,
2346
- letterSpacing: headerStyle ? headerStyle.letterSpacing : props9.letterSpacing,
2355
+ lineHeight: headerStyle ? headerStyle.lineHeight : props7.lineHeight,
2356
+ letterSpacing: headerStyle ? headerStyle.letterSpacing : props7.letterSpacing,
2347
2357
  fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
2348
2358
  };
2349
2359
  }
@@ -2366,13 +2376,13 @@ var require_cjs = __commonJS({
2366
2376
  TYPOGRAPHY2
2367
2377
  );
2368
2378
  };
2369
- var import_utils17 = __toESM2(require_cjs42(), 1);
2379
+ var import_utils18 = __toESM2(require_cjs42(), 1);
2370
2380
  var runThroughMedia2 = (sequenceProps) => {
2371
2381
  for (const prop in sequenceProps) {
2372
2382
  const mediaProps = sequenceProps[prop];
2373
2383
  if (prop.slice(0, 1) === "@") {
2374
2384
  const { type, base, ratio, range, subSequence, h1Matches, unit } = sequenceProps;
2375
- (0, import_utils17.merge)(mediaProps, {
2385
+ (0, import_utils18.merge)(mediaProps, {
2376
2386
  type,
2377
2387
  base,
2378
2388
  ratio,
@@ -2411,7 +2421,7 @@ var require_cjs = __commonJS({
2411
2421
  const stack = arrayzeValue(value);
2412
2422
  if (!stack)
2413
2423
  return;
2414
- if ((0, import_utils17.isString)(value) && value.includes("calc")) {
2424
+ if ((0, import_utils18.isString)(value) && value.includes("calc")) {
2415
2425
  return { [propertyName]: value };
2416
2426
  }
2417
2427
  if (stack.length > 1) {
@@ -2438,16 +2448,16 @@ var require_cjs = __commonJS({
2438
2448
  sequence
2439
2449
  );
2440
2450
  };
2441
- var getSpacingBasedOnRatio10 = (props9, propertyName, val) => {
2451
+ var getSpacingBasedOnRatio10 = (props7, propertyName, val) => {
2442
2452
  const CONFIG22 = getActiveConfig4();
2443
2453
  const { SPACING: SPACING2 } = CONFIG22;
2444
- const { spacingRatio, unit } = props9;
2445
- const value = val || props9[propertyName];
2454
+ const { spacingRatio, unit } = props7;
2455
+ const value = val || props7[propertyName];
2446
2456
  if (spacingRatio) {
2447
2457
  let sequenceProps = SPACING2[spacingRatio];
2448
2458
  if (!sequenceProps) {
2449
2459
  const { type, base, range, subSequence } = SPACING2;
2450
- sequenceProps = SPACING2[spacingRatio] = (0, import_utils17.merge)({
2460
+ sequenceProps = SPACING2[spacingRatio] = (0, import_utils18.merge)({
2451
2461
  ratio: spacingRatio,
2452
2462
  type: type + "-" + spacingRatio,
2453
2463
  unit,
@@ -2488,11 +2498,11 @@ var require_cjs = __commonJS({
2488
2498
  TIMING2
2489
2499
  );
2490
2500
  };
2491
- var import_utils21 = __toESM2(require_cjs42(), 1);
2501
+ var import_utils222 = __toESM2(require_cjs42(), 1);
2492
2502
  var applyDocument = () => {
2493
2503
  const CONFIG22 = getActiveConfig4();
2494
2504
  const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
2495
- return (0, import_utils21.merge)(DOCUMENT2, {
2505
+ return (0, import_utils222.merge)(DOCUMENT2, {
2496
2506
  theme: THEME2.document,
2497
2507
  fontFamily: getDefaultOrFirstKey(FONT_FAMILY2),
2498
2508
  fontSize: TYPOGRAPHY2.base,
@@ -2572,7 +2582,7 @@ var require_cjs = __commonJS({
2572
2582
  }
2573
2583
  }
2574
2584
  };
2575
- var import_utils24 = __toESM2(require_cjs42(), 1);
2585
+ var import_utils25 = __toESM2(require_cjs42(), 1);
2576
2586
  var applyReset = (reset = {}) => {
2577
2587
  const CONFIG22 = getActiveConfig4();
2578
2588
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG22;
@@ -2594,8 +2604,8 @@ var require_cjs = __commonJS({
2594
2604
  const { body, ...templates } = TYPOGRAPHY2.templates;
2595
2605
  const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme4("document", `@${CONFIG22.globalTheme}`) : {};
2596
2606
  if (RESET2.html)
2597
- (0, import_utils24.overwriteDeep)(RESET2.html, globalTheme);
2598
- return (0, import_utils24.deepMerge)((0, import_utils24.merge)(RESET2, reset), {
2607
+ (0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
2608
+ return (0, import_utils25.deepMerge)((0, import_utils25.merge)(RESET2, reset), {
2599
2609
  html: {
2600
2610
  position: "absolute",
2601
2611
  // overflow: 'hidden',
@@ -2632,7 +2642,7 @@ var require_cjs = __commonJS({
2632
2642
  });
2633
2643
  }
2634
2644
  };
2635
- var import_utils25 = __toESM2(require_cjs42(), 1);
2645
+ var import_utils26 = __toESM2(require_cjs42(), 1);
2636
2646
  var isBorderStyle = (str) => [
2637
2647
  "none",
2638
2648
  "hidden",
@@ -2703,7 +2713,7 @@ var require_cjs = __commonJS({
2703
2713
  return v;
2704
2714
  }).join(" ");
2705
2715
  };
2706
- var transfromGap4 = (gap) => (0, import_utils25.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey7(v, "gap").gap).join(" ");
2716
+ var transfromGap4 = (gap) => (0, import_utils26.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey7(v, "gap").gap).join(" ");
2707
2717
  var transformTransition = (transition) => {
2708
2718
  const arr = transition.split(" ");
2709
2719
  if (!arr.length)
@@ -2720,8 +2730,8 @@ var require_cjs = __commonJS({
2720
2730
  return v;
2721
2731
  }).join(" ");
2722
2732
  };
2723
- var transformDuration4 = (duration, props9, propertyName) => {
2724
- if (!(0, import_utils25.isString)(duration))
2733
+ var transformDuration4 = (duration, props7, propertyName) => {
2734
+ if (!(0, import_utils26.isString)(duration))
2725
2735
  return;
2726
2736
  return duration.split(",").map((v) => getTimingByKey4(v).timing || v).join(",");
2727
2737
  };
@@ -2731,9 +2741,9 @@ var require_cjs = __commonJS({
2731
2741
  return;
2732
2742
  return arr.map(transformTransition).join(",");
2733
2743
  };
2734
- var import_utils26 = __toESM2(require_cjs42(), 1);
2744
+ var import_utils27 = __toESM2(require_cjs42(), 1);
2735
2745
  var setCases = (val, key) => {
2736
- if ((0, import_utils26.isFunction)(val))
2746
+ if ((0, import_utils27.isFunction)(val))
2737
2747
  return val();
2738
2748
  return val;
2739
2749
  };
@@ -2768,11 +2778,11 @@ var require_cjs = __commonJS({
2768
2778
  if (CONFIG22.verbose)
2769
2779
  console.warn("Can not find", factoryName, "method in scratch");
2770
2780
  };
2771
- var setEach = (factoryName, props9) => {
2781
+ var setEach = (factoryName, props7) => {
2772
2782
  const CONFIG22 = getActiveConfig4();
2773
2783
  const FACTORY_NAME = factoryName.toUpperCase();
2774
- const keys = Object.keys(props9);
2775
- keys.map((key) => setValue(FACTORY_NAME, props9[key], key));
2784
+ const keys = Object.keys(props7);
2785
+ keys.map((key) => setValue(FACTORY_NAME, props7[key], key));
2776
2786
  return CONFIG22[FACTORY_NAME];
2777
2787
  };
2778
2788
  var SET_OPTIONS = {};
@@ -3744,13 +3754,13 @@ var require_object = __commonJS({
3744
3754
  }
3745
3755
  return true;
3746
3756
  };
3747
- var removeFromObject = (obj, props9) => {
3748
- if (props9 === void 0 || props9 === null)
3757
+ var removeFromObject = (obj, props7) => {
3758
+ if (props7 === void 0 || props7 === null)
3749
3759
  return obj;
3750
- if ((0, import_types.is)(props9)("string", "number")) {
3751
- delete obj[props9];
3752
- } else if ((0, import_types.isArray)(props9)) {
3753
- props9.forEach((prop) => delete obj[prop]);
3760
+ if ((0, import_types.is)(props7)("string", "number")) {
3761
+ delete obj[props7];
3762
+ } else if ((0, import_types.isArray)(props7)) {
3763
+ props7.forEach((prop) => delete obj[prop]);
3754
3764
  } else {
3755
3765
  throw new Error("Invalid input: props must be a string or an array of strings");
3756
3766
  }
@@ -9792,13 +9802,13 @@ var require_cjs10 = __commonJS({
9792
9802
  }
9793
9803
  return true;
9794
9804
  };
9795
- var removeFromObject = (obj, props9) => {
9796
- if (props9 === void 0 || props9 === null)
9805
+ var removeFromObject = (obj, props7) => {
9806
+ if (props7 === void 0 || props7 === null)
9797
9807
  return obj;
9798
- if ((0, import_types.is)(props9)("string", "number")) {
9799
- delete obj[props9];
9800
- } else if ((0, import_types.isArray)(props9)) {
9801
- props9.forEach((prop) => delete obj[prop]);
9808
+ if ((0, import_types.is)(props7)("string", "number")) {
9809
+ delete obj[props7];
9810
+ } else if ((0, import_types.isArray)(props7)) {
9811
+ props7.forEach((prop) => delete obj[prop]);
9802
9812
  } else {
9803
9813
  throw new Error("Invalid input: props must be a string or an array of strings");
9804
9814
  }
@@ -10481,8 +10491,8 @@ var require_cjs10 = __commonJS({
10481
10491
  18: "S",
10482
10492
  19: "T"
10483
10493
  };
10484
- var setSequenceValue = (props9, sequenceProps) => {
10485
- const { key, variable, value, scaling, index } = props9;
10494
+ var setSequenceValue = (props7, sequenceProps) => {
10495
+ const { key, variable, value, scaling, index } = props7;
10486
10496
  sequenceProps.sequence[key] = {
10487
10497
  key,
10488
10498
  decimal: ~~(value * 100) / 100,
@@ -10494,8 +10504,8 @@ var require_cjs10 = __commonJS({
10494
10504
  sequenceProps.scales[key] = scaling;
10495
10505
  sequenceProps.vars[variable] = scaling + sequenceProps.unit;
10496
10506
  };
10497
- var generateSubSequence = (props9, sequenceProps) => {
10498
- const { key, base, value, ratio, variable, index } = props9;
10507
+ var generateSubSequence = (props7, sequenceProps) => {
10508
+ const { key, base, value, ratio, variable, index } = props7;
10499
10509
  const next2 = value * ratio;
10500
10510
  const diff4 = next2 - value;
10501
10511
  const smallscale = diff4 / 1.618;
@@ -10536,7 +10546,7 @@ var require_cjs10 = __commonJS({
10536
10546
  const value = switchSequenceOnNegative(key, base, ratio);
10537
10547
  const scaling = ~~(value / base * 100) / 100;
10538
10548
  const variable = prefix2 + letterKey;
10539
- const props9 = {
10549
+ const props7 = {
10540
10550
  key: letterKey,
10541
10551
  variable,
10542
10552
  value,
@@ -10545,9 +10555,9 @@ var require_cjs10 = __commonJS({
10545
10555
  ratio,
10546
10556
  index: key
10547
10557
  };
10548
- setSequenceValue(props9, sequenceProps);
10558
+ setSequenceValue(props7, sequenceProps);
10549
10559
  if (subSequence)
10550
- generateSubSequence(props9, sequenceProps);
10560
+ generateSubSequence(props7, sequenceProps);
10551
10561
  }
10552
10562
  return sequenceProps;
10553
10563
  };
@@ -10629,14 +10639,14 @@ var require_cjs10 = __commonJS({
10629
10639
  CSS_VARS2[result.var] = result.value;
10630
10640
  }
10631
10641
  };
10632
- var applySequenceVars = (props9, mediaName, options = {}) => {
10642
+ var applySequenceVars = (props7, mediaName, options = {}) => {
10633
10643
  const CONFIG22 = getActiveConfig4();
10634
10644
  const { UNIT: UNIT2, MEDIA: MEDIA2, TIMING: TIMING2, CSS_VARS: CSS_VARS2 } = CONFIG22;
10635
- const unit = props9.unit || UNIT2.default;
10636
- const { sequence, scales } = props9;
10645
+ const unit = props7.unit || UNIT2.default;
10646
+ const { sequence, scales } = props7;
10637
10647
  for (const key in sequence) {
10638
10648
  const item = sequence[key];
10639
- const value = (props9.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
10649
+ const value = (props7.type === TIMING2.type ? sequence[key].val : scales[key]) + unit;
10640
10650
  if (mediaName) {
10641
10651
  const query = MEDIA2[mediaName];
10642
10652
  if (!query) {
@@ -11125,13 +11135,13 @@ var require_cjs10 = __commonJS({
11125
11135
  return { var: CSSvar, value: str, arr: value, type };
11126
11136
  };
11127
11137
  var import_utils142 = __toESM2(require_cjs42(), 1);
11128
- var runThroughMedia = (props9) => {
11138
+ var runThroughMedia = (props7) => {
11129
11139
  const CONFIG22 = getActiveConfig4();
11130
11140
  const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
11131
- for (const prop in props9) {
11132
- const mediaProps = props9[prop];
11141
+ for (const prop in props7) {
11142
+ const mediaProps = props7[prop];
11133
11143
  if (prop.slice(0, 1) === "@") {
11134
- const { type, base, ratio, range, subSequence, h1Matches, unit } = props9;
11144
+ const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
11135
11145
  (0, import_utils142.merge)(mediaProps, {
11136
11146
  type,
11137
11147
  base,
@@ -11155,20 +11165,20 @@ var require_cjs10 = __commonJS({
11155
11165
  }
11156
11166
  }
11157
11167
  };
11158
- var applyHeadings = (props9) => {
11168
+ var applyHeadings = (props7) => {
11159
11169
  const CONFIG22 = getActiveConfig4();
11160
- if (props9.h1Matches) {
11161
- const unit = props9.unit;
11162
- const HEADINGS = findHeadings(props9);
11163
- const { templates } = props9;
11170
+ if (props7.h1Matches) {
11171
+ const unit = props7.unit;
11172
+ const HEADINGS = findHeadings(props7);
11173
+ const { templates } = props7;
11164
11174
  for (const k in HEADINGS) {
11165
11175
  const headerName = `h${parseInt(k) + 1}`;
11166
11176
  const headerStyle = templates[headerName];
11167
11177
  templates[headerName] = {
11168
11178
  fontSize: CONFIG22.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
11169
11179
  margin: headerStyle ? headerStyle.margin : 0,
11170
- lineHeight: headerStyle ? headerStyle.lineHeight : props9.lineHeight,
11171
- letterSpacing: headerStyle ? headerStyle.letterSpacing : props9.letterSpacing,
11180
+ lineHeight: headerStyle ? headerStyle.lineHeight : props7.lineHeight,
11181
+ letterSpacing: headerStyle ? headerStyle.letterSpacing : props7.letterSpacing,
11172
11182
  fontWeight: headerStyle ? headerStyle.fontWeight : 900 - k * 100
11173
11183
  };
11174
11184
  }
@@ -11263,11 +11273,11 @@ var require_cjs10 = __commonJS({
11263
11273
  sequence
11264
11274
  );
11265
11275
  };
11266
- var getSpacingBasedOnRatio10 = (props9, propertyName, val) => {
11276
+ var getSpacingBasedOnRatio10 = (props7, propertyName, val) => {
11267
11277
  const CONFIG22 = getActiveConfig4();
11268
11278
  const { SPACING: SPACING2 } = CONFIG22;
11269
- const { spacingRatio, unit } = props9;
11270
- const value = val || props9[propertyName];
11279
+ const { spacingRatio, unit } = props7;
11280
+ const value = val || props7[propertyName];
11271
11281
  if (spacingRatio) {
11272
11282
  let sequenceProps = SPACING2[spacingRatio];
11273
11283
  if (!sequenceProps) {
@@ -11545,7 +11555,7 @@ var require_cjs10 = __commonJS({
11545
11555
  return v;
11546
11556
  }).join(" ");
11547
11557
  };
11548
- var transformDuration4 = (duration, props9, propertyName) => {
11558
+ var transformDuration4 = (duration, props7, propertyName) => {
11549
11559
  if (!(0, import_utils25.isString)(duration))
11550
11560
  return;
11551
11561
  return duration.split(",").map((v) => getTimingByKey4(v).timing || v).join(",");
@@ -11593,11 +11603,11 @@ var require_cjs10 = __commonJS({
11593
11603
  if (CONFIG22.verbose)
11594
11604
  console.warn("Can not find", factoryName, "method in scratch");
11595
11605
  };
11596
- var setEach = (factoryName, props9) => {
11606
+ var setEach = (factoryName, props7) => {
11597
11607
  const CONFIG22 = getActiveConfig4();
11598
11608
  const FACTORY_NAME = factoryName.toUpperCase();
11599
- const keys = Object.keys(props9);
11600
- keys.map((key) => setValue(FACTORY_NAME, props9[key], key));
11609
+ const keys = Object.keys(props7);
11610
+ keys.map((key) => setValue(FACTORY_NAME, props7[key], key));
11601
11611
  return CONFIG22[FACTORY_NAME];
11602
11612
  };
11603
11613
  var SET_OPTIONS = {};
@@ -11697,8 +11707,8 @@ __export(domql_exports, {
11697
11707
  H6: () => H6,
11698
11708
  Headline: () => Headline,
11699
11709
  Hoverable: () => Hoverable,
11700
- Icon: () => Icon,
11701
- IconText: () => IconText,
11710
+ Icon: () => Icon2,
11711
+ IconText: () => IconText2,
11702
11712
  Iframe: () => Iframe,
11703
11713
  Img: () => Img,
11704
11714
  Input: () => Input,
@@ -11755,6 +11765,7 @@ __export(domql_exports, {
11755
11765
  UploadResult: () => UploadResult,
11756
11766
  Video: () => Video,
11757
11767
  XYZ: () => XYZ,
11768
+ calendar: () => calendar,
11758
11769
  getSystemTheme: () => getSystemTheme,
11759
11770
  keySetters: () => keySetters
11760
11771
  });
@@ -11764,143 +11775,143 @@ module.exports = __toCommonJS(domql_exports);
11764
11775
  var import_scratch = __toESM(require_cjs());
11765
11776
  var Block = {
11766
11777
  class: {
11767
- boxSizing: ({ props: props9 }) => props9.boxSizing ? { boxSizing: props9.boxSizing } : {
11778
+ boxSizing: ({ props: props7 }) => props7.boxSizing ? { boxSizing: props7.boxSizing } : {
11768
11779
  boxSizing: "border-box"
11769
11780
  },
11770
- display: ({ props: props9 }) => props9.display && { display: props9.display },
11771
- hide: ({ props: props9 }) => props9.hide && { display: "none" },
11772
- width: ({ props: props9 }) => props9.width && (0, import_scratch.getSpacingBasedOnRatio)(props9, "width"),
11773
- height: ({ props: props9 }) => props9.height && (0, import_scratch.getSpacingBasedOnRatio)(props9, "height"),
11774
- boxSize: ({ props: props9 }) => {
11775
- if (typeof props9.boxSize !== "string")
11781
+ display: ({ props: props7 }) => props7.display && { display: props7.display },
11782
+ hide: ({ props: props7 }) => props7.hide && { display: "none" },
11783
+ width: ({ props: props7 }) => props7.width && (0, import_scratch.getSpacingBasedOnRatio)(props7, "width"),
11784
+ height: ({ props: props7 }) => props7.height && (0, import_scratch.getSpacingBasedOnRatio)(props7, "height"),
11785
+ boxSize: ({ props: props7 }) => {
11786
+ if (typeof props7.boxSize !== "string")
11776
11787
  return;
11777
- const [height, width] = props9.boxSize.split(" ");
11788
+ const [height, width] = props7.boxSize.split(" ");
11778
11789
  return {
11779
11790
  ...(0, import_scratch.getSpacingByKey)(height, "height"),
11780
11791
  ...(0, import_scratch.getSpacingByKey)(width || height, "width")
11781
11792
  };
11782
11793
  },
11783
- maxWidth: ({ props: props9 }) => props9.maxWidth && (0, import_scratch.getSpacingBasedOnRatio)(props9, "maxWidth"),
11784
- minWidth: ({ props: props9 }) => props9.minWidth && (0, import_scratch.getSpacingBasedOnRatio)(props9, "minWidth"),
11785
- widthRange: ({ props: props9 }) => {
11786
- if (typeof props9.widthRange !== "string")
11794
+ maxWidth: ({ props: props7 }) => props7.maxWidth && (0, import_scratch.getSpacingBasedOnRatio)(props7, "maxWidth"),
11795
+ minWidth: ({ props: props7 }) => props7.minWidth && (0, import_scratch.getSpacingBasedOnRatio)(props7, "minWidth"),
11796
+ widthRange: ({ props: props7 }) => {
11797
+ if (typeof props7.widthRange !== "string")
11787
11798
  return;
11788
- const [minWidth, maxWidth] = props9.widthRange.split(" ");
11799
+ const [minWidth, maxWidth] = props7.widthRange.split(" ");
11789
11800
  return {
11790
11801
  ...(0, import_scratch.getSpacingByKey)(minWidth, "minWidth"),
11791
11802
  ...(0, import_scratch.getSpacingByKey)(maxWidth || minWidth, "maxWidth")
11792
11803
  };
11793
11804
  },
11794
- maxHeight: ({ props: props9 }) => props9.maxHeight && (0, import_scratch.getSpacingBasedOnRatio)(props9, "maxHeight"),
11795
- minHeight: ({ props: props9 }) => props9.minHeight && (0, import_scratch.getSpacingBasedOnRatio)(props9, "minHeight"),
11796
- heightRange: ({ props: props9 }) => {
11797
- if (typeof props9.heightRange !== "string")
11805
+ maxHeight: ({ props: props7 }) => props7.maxHeight && (0, import_scratch.getSpacingBasedOnRatio)(props7, "maxHeight"),
11806
+ minHeight: ({ props: props7 }) => props7.minHeight && (0, import_scratch.getSpacingBasedOnRatio)(props7, "minHeight"),
11807
+ heightRange: ({ props: props7 }) => {
11808
+ if (typeof props7.heightRange !== "string")
11798
11809
  return;
11799
- const [minHeight, maxHeight] = props9.heightRange.split(" ");
11810
+ const [minHeight, maxHeight] = props7.heightRange.split(" ");
11800
11811
  return {
11801
11812
  ...(0, import_scratch.getSpacingByKey)(minHeight, "minHeight"),
11802
11813
  ...(0, import_scratch.getSpacingByKey)(maxHeight || minHeight, "maxHeight")
11803
11814
  };
11804
11815
  },
11805
- direction: ({ props: props9 }) => props9.direction && { direction: props9.direction },
11806
- aspectRatio: ({ props: props9 }) => props9.aspectRatio && { aspectRatio: props9.aspectRatio },
11807
- borderWidth: ({ props: props9 }) => props9.borderWidth ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "borderWidth") : null,
11808
- padding: ({ props: props9 }) => props9.padding ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "padding") : null,
11809
- paddingInline: ({ props: props9 }) => {
11810
- if (typeof props9.paddingInline !== "string")
11816
+ direction: ({ props: props7 }) => props7.direction && { direction: props7.direction },
11817
+ aspectRatio: ({ props: props7 }) => props7.aspectRatio && { aspectRatio: props7.aspectRatio },
11818
+ borderWidth: ({ props: props7 }) => props7.borderWidth ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "borderWidth") : null,
11819
+ padding: ({ props: props7 }) => props7.padding ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "padding") : null,
11820
+ paddingInline: ({ props: props7 }) => {
11821
+ if (typeof props7.paddingInline !== "string")
11811
11822
  return;
11812
- const [paddingInlineStart, paddingInlineEnd] = props9.paddingInline.split(" ");
11823
+ const [paddingInlineStart, paddingInlineEnd] = props7.paddingInline.split(" ");
11813
11824
  return {
11814
11825
  ...(0, import_scratch.getSpacingByKey)(paddingInlineStart, "paddingInlineStart"),
11815
11826
  ...(0, import_scratch.getSpacingByKey)(paddingInlineEnd || paddingInlineStart, "paddingInlineEnd")
11816
11827
  };
11817
11828
  },
11818
- paddingBlock: ({ props: props9 }) => {
11819
- if (typeof props9.paddingBlock !== "string")
11829
+ paddingBlock: ({ props: props7 }) => {
11830
+ if (typeof props7.paddingBlock !== "string")
11820
11831
  return;
11821
- const [paddingBlockStart, paddingBlockEnd] = props9.paddingBlock.split(" ");
11832
+ const [paddingBlockStart, paddingBlockEnd] = props7.paddingBlock.split(" ");
11822
11833
  return {
11823
11834
  ...(0, import_scratch.getSpacingByKey)(paddingBlockStart, "paddingBlockStart"),
11824
11835
  ...(0, import_scratch.getSpacingByKey)(paddingBlockEnd || paddingBlockStart, "paddingBlockEnd")
11825
11836
  };
11826
11837
  },
11827
- paddingInlineStart: ({ props: props9 }) => props9.paddingInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "paddingInlineStart") : null,
11828
- paddingInlineEnd: ({ props: props9 }) => props9.paddingInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "paddingInlineEnd") : null,
11829
- paddingBlockStart: ({ props: props9 }) => props9.paddingBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "paddingBlockStart") : null,
11830
- paddingBlockEnd: ({ props: props9 }) => props9.paddingBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "paddingBlockEnd") : null,
11831
- margin: ({ props: props9 }) => props9.margin ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "margin") : null,
11832
- marginInline: ({ props: props9 }) => {
11833
- if (typeof props9.marginInline !== "string")
11838
+ paddingInlineStart: ({ props: props7 }) => props7.paddingInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingInlineStart") : null,
11839
+ paddingInlineEnd: ({ props: props7 }) => props7.paddingInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingInlineEnd") : null,
11840
+ paddingBlockStart: ({ props: props7 }) => props7.paddingBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingBlockStart") : null,
11841
+ paddingBlockEnd: ({ props: props7 }) => props7.paddingBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "paddingBlockEnd") : null,
11842
+ margin: ({ props: props7 }) => props7.margin ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "margin") : null,
11843
+ marginInline: ({ props: props7 }) => {
11844
+ if (typeof props7.marginInline !== "string")
11834
11845
  return;
11835
- const [marginInlineStart, marginInlineEnd] = props9.marginInline.split(" ");
11846
+ const [marginInlineStart, marginInlineEnd] = props7.marginInline.split(" ");
11836
11847
  return {
11837
11848
  ...(0, import_scratch.getSpacingByKey)(marginInlineStart, "marginInlineStart"),
11838
11849
  ...(0, import_scratch.getSpacingByKey)(marginInlineEnd || marginInlineStart, "marginInlineEnd")
11839
11850
  };
11840
11851
  },
11841
- marginBlock: ({ props: props9 }) => {
11842
- if (typeof props9.marginBlock !== "string")
11852
+ marginBlock: ({ props: props7 }) => {
11853
+ if (typeof props7.marginBlock !== "string")
11843
11854
  return;
11844
- const [marginBlockStart, marginBlockEnd] = props9.marginBlock.split(" ");
11855
+ const [marginBlockStart, marginBlockEnd] = props7.marginBlock.split(" ");
11845
11856
  return {
11846
11857
  ...(0, import_scratch.getSpacingByKey)(marginBlockStart, "marginBlockStart"),
11847
11858
  ...(0, import_scratch.getSpacingByKey)(marginBlockEnd || marginBlockStart, "marginBlockEnd")
11848
11859
  };
11849
11860
  },
11850
- marginInlineStart: ({ props: props9 }) => props9.marginInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "marginInlineStart") : null,
11851
- marginInlineEnd: ({ props: props9 }) => props9.marginInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "marginInlineEnd") : null,
11852
- marginBlockStart: ({ props: props9 }) => props9.marginBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "marginBlockStart") : null,
11853
- marginBlockEnd: ({ props: props9 }) => props9.marginBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "marginBlockEnd") : null,
11854
- gap: ({ props: props9 }) => props9.gap ? {
11855
- gap: (0, import_scratch.transfromGap)(props9.gap)
11861
+ marginInlineStart: ({ props: props7 }) => props7.marginInlineStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginInlineStart") : null,
11862
+ marginInlineEnd: ({ props: props7 }) => props7.marginInlineEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginInlineEnd") : null,
11863
+ marginBlockStart: ({ props: props7 }) => props7.marginBlockStart ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginBlockStart") : null,
11864
+ marginBlockEnd: ({ props: props7 }) => props7.marginBlockEnd ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "marginBlockEnd") : null,
11865
+ gap: ({ props: props7 }) => props7.gap ? {
11866
+ gap: (0, import_scratch.transfromGap)(props7.gap)
11856
11867
  } : null,
11857
- gridArea: ({ props: props9 }) => props9.gridArea && { gridArea: props9.gridArea },
11858
- flex: ({ props: props9 }) => props9.flex && { flex: props9.flex },
11859
- flexDirection: ({ props: props9 }) => props9.flexDirection && { flexDirection: props9.flexDirection },
11860
- alignItems: ({ props: props9 }) => props9.alignItems && { alignItems: props9.alignItems },
11861
- alignContent: ({ props: props9 }) => props9.alignContent && { alignContent: props9.alignContent },
11862
- justifyContent: ({ props: props9 }) => props9.justifyContent && { justifyContent: props9.justifyContent },
11863
- justifyItems: ({ props: props9 }) => props9.justifyItems && { justifyItems: props9.justifyItems },
11864
- alignSelf: ({ props: props9 }) => props9.alignSelf && { alignSelf: props9.alignSelf },
11865
- order: ({ props: props9 }) => props9.order && { order: props9.order },
11866
- flexWrap: ({ props: props9 }) => props9.flexWrap && {
11868
+ gridArea: ({ props: props7 }) => props7.gridArea && { gridArea: props7.gridArea },
11869
+ flex: ({ props: props7 }) => props7.flex && { flex: props7.flex },
11870
+ flexDirection: ({ props: props7 }) => props7.flexDirection && { flexDirection: props7.flexDirection },
11871
+ alignItems: ({ props: props7 }) => props7.alignItems && { alignItems: props7.alignItems },
11872
+ alignContent: ({ props: props7 }) => props7.alignContent && { alignContent: props7.alignContent },
11873
+ justifyContent: ({ props: props7 }) => props7.justifyContent && { justifyContent: props7.justifyContent },
11874
+ justifyItems: ({ props: props7 }) => props7.justifyItems && { justifyItems: props7.justifyItems },
11875
+ alignSelf: ({ props: props7 }) => props7.alignSelf && { alignSelf: props7.alignSelf },
11876
+ order: ({ props: props7 }) => props7.order && { order: props7.order },
11877
+ flexWrap: ({ props: props7 }) => props7.flexWrap && {
11867
11878
  display: "flex",
11868
- flexFlow: props9.flexWrap
11879
+ flexFlow: props7.flexWrap
11869
11880
  },
11870
- flexFlow: ({ props: props9 }) => props9.flexFlow && {
11881
+ flexFlow: ({ props: props7 }) => props7.flexFlow && {
11871
11882
  display: "flex",
11872
- flexFlow: props9.flexFlow
11883
+ flexFlow: props7.flexFlow
11873
11884
  },
11874
- flexAlign: ({ props: props9 }) => {
11875
- if (typeof props9.flexAlign !== "string")
11885
+ flexAlign: ({ props: props7 }) => {
11886
+ if (typeof props7.flexAlign !== "string")
11876
11887
  return;
11877
- const [alignItems, justifyContent] = props9.flexAlign.split(" ");
11888
+ const [alignItems, justifyContent] = props7.flexAlign.split(" ");
11878
11889
  return {
11879
11890
  display: "flex",
11880
11891
  alignItems,
11881
11892
  justifyContent
11882
11893
  };
11883
11894
  },
11884
- gridColumn: ({ props: props9 }) => props9.gridColumn && { gridColumn: props9.gridColumn },
11885
- gridColumnStart: ({ props: props9 }) => props9.columnStart ? {
11886
- gridColumnStart: props9.columnStart
11895
+ gridColumn: ({ props: props7 }) => props7.gridColumn && { gridColumn: props7.gridColumn },
11896
+ gridColumnStart: ({ props: props7 }) => props7.columnStart ? {
11897
+ gridColumnStart: props7.columnStart
11887
11898
  } : null,
11888
- gridRow: ({ props: props9 }) => props9.gridRow && { gridRow: props9.gridRow },
11889
- gridRowStart: ({ props: props9 }) => props9.rowStart ? { gridRowStart: props9.rowStart } : null,
11890
- size: ({ props: props9 }) => {
11891
- if (typeof props9.heightRange !== "string")
11899
+ gridRow: ({ props: props7 }) => props7.gridRow && { gridRow: props7.gridRow },
11900
+ gridRowStart: ({ props: props7 }) => props7.rowStart ? { gridRowStart: props7.rowStart } : null,
11901
+ size: ({ props: props7 }) => {
11902
+ if (typeof props7.heightRange !== "string")
11892
11903
  return;
11893
- const [minHeight, maxHeight] = props9.heightRange.split(" ");
11904
+ const [minHeight, maxHeight] = props7.heightRange.split(" ");
11894
11905
  return {
11895
11906
  ...(0, import_scratch.getSpacingByKey)(minHeight, "minHeight"),
11896
11907
  ...(0, import_scratch.getSpacingByKey)(maxHeight || minHeight, "maxHeight")
11897
11908
  };
11898
11909
  },
11899
- columns: ({ props: props9 }) => props9.columns && { columns: props9.columns },
11900
- columnGap: ({ props: props9 }) => props9.columnGap ? (0, import_scratch.getSpacingBasedOnRatio)(props9, "columnGap") : null,
11901
- columnSpan: ({ props: props9 }) => props9.columnSpan && { columns: props9.columnSpan },
11902
- columnFill: ({ props: props9 }) => props9.columnFill && { columns: props9.columnFill },
11903
- columnCount: ({ props: props9 }) => props9.columnCount && { columns: props9.columnCount }
11910
+ columns: ({ props: props7 }) => props7.columns && { columns: props7.columns },
11911
+ columnGap: ({ props: props7 }) => props7.columnGap ? (0, import_scratch.getSpacingBasedOnRatio)(props7, "columnGap") : null,
11912
+ columnSpan: ({ props: props7 }) => props7.columnSpan && { columns: props7.columnSpan },
11913
+ columnFill: ({ props: props7 }) => props7.columnFill && { columns: props7.columnFill },
11914
+ columnCount: ({ props: props7 }) => props7.columnCount && { columns: props7.columnCount }
11904
11915
  }
11905
11916
  };
11906
11917
  var Span = { tag: "span" };
@@ -11915,7 +11926,7 @@ var Direction = {
11915
11926
  direction: "ltr"
11916
11927
  },
11917
11928
  class: {
11918
- direction: ({ props: props9 }) => ({ direction: props9.direction })
11929
+ direction: ({ props: props7 }) => ({ direction: props7.direction })
11919
11930
  }
11920
11931
  };
11921
11932
 
@@ -11925,12 +11936,12 @@ var Flex = {
11925
11936
  display: "flex"
11926
11937
  },
11927
11938
  class: {
11928
- flow: ({ props: props9 }) => props9.flow && { flexFlow: props9.flow },
11929
- wrap: ({ props: props9 }) => props9.wrap && { flexWrap: props9.wrap },
11930
- align: ({ props: props9 }) => {
11931
- if (typeof props9.align !== "string")
11939
+ flow: ({ props: props7 }) => props7.flow && { flexFlow: props7.flow },
11940
+ wrap: ({ props: props7 }) => props7.wrap && { flexWrap: props7.wrap },
11941
+ align: ({ props: props7 }) => {
11942
+ if (typeof props7.align !== "string")
11932
11943
  return;
11933
- const [alignItems, justifyContent] = props9.align.split(" ");
11944
+ const [alignItems, justifyContent] = props7.align.split(" ");
11934
11945
  return { alignItems, justifyContent };
11935
11946
  }
11936
11947
  }
@@ -11941,22 +11952,22 @@ var import_scratch2 = __toESM(require_cjs());
11941
11952
  var Grid = {
11942
11953
  props: { display: "grid" },
11943
11954
  class: {
11944
- area: ({ props: props9 }) => props9.area ? { gridArea: props9.area } : null,
11945
- template: ({ props: props9 }) => props9.template ? { gridTemplate: props9.template } : null,
11946
- templateAreas: ({ props: props9 }) => props9.templateAreas ? { gridTemplateAreas: props9.templateAreas } : null,
11947
- column: ({ props: props9 }) => props9.column ? { gridColumn: props9.column } : null,
11948
- columns: ({ props: props9 }) => props9.columns ? { gridTemplateColumns: props9.columns } : null,
11949
- templateColumns: ({ props: props9 }) => props9.templateColumns ? { gridTemplateColumns: props9.templateColumns } : null,
11950
- autoColumns: ({ props: props9 }) => props9.autoColumns ? { gridAutoColumns: props9.autoColumns } : null,
11951
- columnStart: ({ props: props9 }) => props9.columnStart ? { gridColumnStart: props9.columnStart } : null,
11952
- row: ({ props: props9 }) => props9.row ? { gridRow: props9.row } : null,
11953
- rows: ({ props: props9 }) => props9.rows ? { gridTemplateRows: props9.rows } : null,
11954
- templateRows: ({ props: props9 }) => props9.templateRows ? { gridTemplateRows: props9.templateRows } : null,
11955
- autoRows: ({ props: props9 }) => props9.autoRows ? { gridAutoRows: props9.autoRows } : null,
11956
- rowStart: ({ props: props9 }) => props9.rowStart ? { gridRowStart: props9.rowStart } : null,
11957
- autoFlow: ({ props: props9 }) => props9.autoFlow ? { gridAutoFlow: props9.autoFlow } : null,
11958
- columnGap: ({ props: props9 }) => props9.columnGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props9, "columnGap") : null,
11959
- rowGap: ({ props: props9 }) => props9.rowGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props9, "rowGap") : null
11955
+ area: ({ props: props7 }) => props7.area ? { gridArea: props7.area } : null,
11956
+ template: ({ props: props7 }) => props7.template ? { gridTemplate: props7.template } : null,
11957
+ templateAreas: ({ props: props7 }) => props7.templateAreas ? { gridTemplateAreas: props7.templateAreas } : null,
11958
+ column: ({ props: props7 }) => props7.column ? { gridColumn: props7.column } : null,
11959
+ columns: ({ props: props7 }) => props7.columns ? { gridTemplateColumns: props7.columns } : null,
11960
+ templateColumns: ({ props: props7 }) => props7.templateColumns ? { gridTemplateColumns: props7.templateColumns } : null,
11961
+ autoColumns: ({ props: props7 }) => props7.autoColumns ? { gridAutoColumns: props7.autoColumns } : null,
11962
+ columnStart: ({ props: props7 }) => props7.columnStart ? { gridColumnStart: props7.columnStart } : null,
11963
+ row: ({ props: props7 }) => props7.row ? { gridRow: props7.row } : null,
11964
+ rows: ({ props: props7 }) => props7.rows ? { gridTemplateRows: props7.rows } : null,
11965
+ templateRows: ({ props: props7 }) => props7.templateRows ? { gridTemplateRows: props7.templateRows } : null,
11966
+ autoRows: ({ props: props7 }) => props7.autoRows ? { gridAutoRows: props7.autoRows } : null,
11967
+ rowStart: ({ props: props7 }) => props7.rowStart ? { gridRowStart: props7.rowStart } : null,
11968
+ autoFlow: ({ props: props7 }) => props7.autoFlow ? { gridAutoFlow: props7.autoFlow } : null,
11969
+ columnGap: ({ props: props7 }) => props7.columnGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props7, "columnGap") : null,
11970
+ rowGap: ({ props: props7 }) => props7.rowGap ? (0, import_scratch2.getSpacingBasedOnRatio)(props7, "rowGap") : null
11960
11971
  }
11961
11972
  };
11962
11973
 
@@ -11969,9 +11980,9 @@ var Img = {
11969
11980
  title: ""
11970
11981
  },
11971
11982
  attr: {
11972
- src: ({ props: props9 }) => props9.src,
11973
- alt: ({ props: props9 }) => props9.alt,
11974
- title: ({ props: props9 }) => props9.title || props9.alt
11983
+ src: ({ props: props7 }) => props7.src,
11984
+ alt: ({ props: props7 }) => props7.alt,
11985
+ title: ({ props: props7 }) => props7.title || props7.alt
11975
11986
  }
11976
11987
  };
11977
11988
 
@@ -11980,9 +11991,9 @@ var Form = {
11980
11991
  tag: "form",
11981
11992
  props: {},
11982
11993
  attr: {
11983
- action: ({ props: props9 }) => props9.action,
11984
- method: ({ props: props9 }) => props9.method,
11985
- enctype: ({ props: props9 }) => props9.enctype
11994
+ action: ({ props: props7 }) => props7.action,
11995
+ method: ({ props: props7 }) => props7.method,
11996
+ enctype: ({ props: props7 }) => props7.enctype
11986
11997
  }
11987
11998
  };
11988
11999
 
@@ -11999,24 +12010,24 @@ var import_scratch4 = __toESM(require_cjs());
11999
12010
  var import_scratch3 = __toESM(require_cjs());
12000
12011
  var Timing = {
12001
12012
  class: {
12002
- transition: ({ props: props9 }) => props9.transition && {
12003
- transition: (0, import_scratch3.splitTransition)(props9.transition)
12013
+ transition: ({ props: props7 }) => props7.transition && {
12014
+ transition: (0, import_scratch3.splitTransition)(props7.transition)
12004
12015
  },
12005
- willChange: ({ props: props9 }) => props9.willChange && {
12006
- willChange: props9.willChange
12016
+ willChange: ({ props: props7 }) => props7.willChange && {
12017
+ willChange: props7.willChange
12007
12018
  },
12008
- transitionDuration: ({ props: props9 }) => props9.transitionDuration && {
12009
- transitionDuration: (0, import_scratch3.transformDuration)(props9.transitionDuration)
12019
+ transitionDuration: ({ props: props7 }) => props7.transitionDuration && {
12020
+ transitionDuration: (0, import_scratch3.transformDuration)(props7.transitionDuration)
12010
12021
  },
12011
- transitionDelay: ({ props: props9 }) => props9.transitionDelay && {
12012
- transitionDelay: (0, import_scratch3.transformDuration)(props9.transitionDelay)
12022
+ transitionDelay: ({ props: props7 }) => props7.transitionDelay && {
12023
+ transitionDelay: (0, import_scratch3.transformDuration)(props7.transitionDelay)
12013
12024
  },
12014
- transitionTimingFunction: ({ props: props9 }) => props9.transitionTimingFunction && {
12015
- transitionTimingFunction: (0, import_scratch3.getTimingFunction)(props9.transitionTimingFunction)
12025
+ transitionTimingFunction: ({ props: props7 }) => props7.transitionTimingFunction && {
12026
+ transitionTimingFunction: (0, import_scratch3.getTimingFunction)(props7.transitionTimingFunction)
12016
12027
  },
12017
- transitionProperty: ({ props: props9 }) => props9.transitionProperty && {
12018
- transitionProperty: props9.transitionProperty,
12019
- willChange: props9.transitionProperty
12028
+ transitionProperty: ({ props: props7 }) => props7.transitionProperty && {
12029
+ transitionProperty: props7.transitionProperty,
12030
+ willChange: props7.transitionProperty
12020
12031
  }
12021
12032
  }
12022
12033
  };
@@ -12031,11 +12042,11 @@ var depth = {
12031
12042
  26: { boxShadow: `rgba(0,0,0,.10) 0 14${CONFIG.UNIT.default} 26${CONFIG.UNIT.default}` },
12032
12043
  42: { boxShadow: `rgba(0,0,0,.10) 0 20${CONFIG.UNIT.default} 42${CONFIG.UNIT.default}` }
12033
12044
  };
12034
- var getComputedBackgroundColor = ({ props: props9 }) => {
12035
- return (0, import_scratch4.getColor)(props9.shapeDirectionColor) || (0, import_scratch4.getColor)(props9.borderColor) || (0, import_scratch4.getColor)(props9.backgroundColor) || (0, import_scratch4.getColor)(props9.background);
12045
+ var getComputedBackgroundColor = ({ props: props7 }) => {
12046
+ return (0, import_scratch4.getColor)(props7.shapeDirectionColor) || (0, import_scratch4.getColor)(props7.borderColor) || (0, import_scratch4.getColor)(props7.backgroundColor) || (0, import_scratch4.getColor)(props7.background);
12036
12047
  };
12037
- var inheritTransition = ({ props: props9 }) => {
12038
- const exec4 = Timing.class.transition({ props: props9 });
12048
+ var inheritTransition = ({ props: props7 }) => {
12049
+ const exec4 = Timing.class.transition({ props: props7 });
12039
12050
  return exec4 && exec4.transition;
12040
12051
  };
12041
12052
  var SHAPES = {
@@ -12045,16 +12056,16 @@ var SHAPES = {
12045
12056
  tv: {
12046
12057
  borderRadius: "1.15em/2.5em"
12047
12058
  },
12048
- tooltip: ({ props: props9 }) => ({
12049
- position: props9.position || "relative",
12059
+ tooltip: ({ props: props7 }) => ({
12060
+ position: props7.position || "relative",
12050
12061
  "&:before": {
12051
12062
  content: '""',
12052
12063
  display: "block",
12053
12064
  width: "0px",
12054
12065
  height: "0px",
12055
12066
  border: ".35em solid",
12056
- borderColor: getComputedBackgroundColor({ props: props9 }),
12057
- transition: inheritTransition({ props: props9 }),
12067
+ borderColor: getComputedBackgroundColor({ props: props7 }),
12068
+ transition: inheritTransition({ props: props7 }),
12058
12069
  transitionProperty: "border-color",
12059
12070
  position: "absolute",
12060
12071
  borderRadius: ".15em"
@@ -12090,13 +12101,13 @@ var SHAPES = {
12090
12101
  }
12091
12102
  }
12092
12103
  },
12093
- tag: ({ props: props9 }) => ({
12104
+ tag: ({ props: props7 }) => ({
12094
12105
  position: "relative",
12095
12106
  "&:before": {
12096
12107
  content: '""',
12097
12108
  display: "block",
12098
- background: getComputedBackgroundColor({ props: props9 }),
12099
- transition: inheritTransition({ props: props9 }),
12109
+ background: getComputedBackgroundColor({ props: props7 }),
12110
+ transition: inheritTransition({ props: props7 }),
12100
12111
  transitionProperty: "background",
12101
12112
  borderRadius: ".25em",
12102
12113
  position: "absolute",
@@ -12137,7 +12148,7 @@ var SHAPES = {
12137
12148
  }
12138
12149
  }
12139
12150
  },
12140
- hexagon: ({ props: props9 }) => ({
12151
+ hexagon: ({ props: props7 }) => ({
12141
12152
  position: "relative",
12142
12153
  "&:before, &:after": {
12143
12154
  content: '""',
@@ -12149,8 +12160,8 @@ var SHAPES = {
12149
12160
  top: "50%",
12150
12161
  transformOrigin: "50% 50%",
12151
12162
  height: "73%",
12152
- background: getComputedBackgroundColor({ props: props9 }),
12153
- transition: inheritTransition({ props: props9 }),
12163
+ background: getComputedBackgroundColor({ props: props7 }),
12164
+ transition: inheritTransition({ props: props7 }),
12154
12165
  transitionProperty: "background"
12155
12166
  },
12156
12167
  "&:before": {
@@ -12162,7 +12173,7 @@ var SHAPES = {
12162
12173
  transform: "translate3d(-50%, -50%, 1px) rotate(45deg)"
12163
12174
  }
12164
12175
  }),
12165
- chevron: ({ props: props9 }) => ({
12176
+ chevron: ({ props: props7 }) => ({
12166
12177
  position: "relative",
12167
12178
  // overflow: 'hidden',
12168
12179
  "&:before, &:after": {
@@ -12173,14 +12184,14 @@ var SHAPES = {
12173
12184
  aspectRatio: "1/1",
12174
12185
  top: "50%",
12175
12186
  transformOrigin: "50% 50%",
12176
- transition: inheritTransition({ props: props9 }),
12187
+ transition: inheritTransition({ props: props7 }),
12177
12188
  transitionProperty: "background"
12178
12189
  },
12179
12190
  "&:before": {
12180
- background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props9 })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props9 })} 25%, transparent 25%)`
12191
+ background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props: props7 })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props: props7 })} 25%, transparent 25%)`
12181
12192
  },
12182
12193
  "&:after": {
12183
- background: getComputedBackgroundColor({ props: props9 }),
12194
+ background: getComputedBackgroundColor({ props: props7 }),
12184
12195
  borderRadius: ".25em"
12185
12196
  }
12186
12197
  }),
@@ -12219,153 +12230,153 @@ var getSystemTheme = ({ context, state }) => {
12219
12230
  };
12220
12231
  var Theme = {
12221
12232
  class: {
12222
- depth: ({ props: props9 }) => props9.depth && depth[props9.depth],
12233
+ depth: ({ props: props7 }) => props7.depth && depth[props7.depth],
12223
12234
  theme: (element) => {
12224
- const { props: props9 } = element;
12235
+ const { props: props7 } = element;
12225
12236
  const globalTheme = getSystemTheme(element);
12226
- if (!props9.theme)
12237
+ if (!props7.theme)
12227
12238
  return;
12228
- return (0, import_scratch5.getMediaTheme)(props9.theme, `@${props9.themeModifier || globalTheme}`);
12239
+ return (0, import_scratch5.getMediaTheme)(props7.theme, `@${props7.themeModifier || globalTheme}`);
12229
12240
  },
12230
12241
  color: (element) => {
12231
- const { props: props9 } = element;
12242
+ const { props: props7 } = element;
12232
12243
  const globalTheme = getSystemTheme(element);
12233
- if (!props9.color)
12244
+ if (!props7.color)
12234
12245
  return;
12235
12246
  return {
12236
- color: (0, import_scratch5.getMediaColor)(props9.color, globalTheme)
12247
+ color: (0, import_scratch5.getMediaColor)(props7.color, globalTheme)
12237
12248
  };
12238
12249
  },
12239
12250
  background: (element) => {
12240
- const { props: props9 } = element;
12251
+ const { props: props7 } = element;
12241
12252
  const globalTheme = getSystemTheme(element);
12242
- if (!props9.background)
12253
+ if (!props7.background)
12243
12254
  return;
12244
12255
  return {
12245
- background: (0, import_scratch5.getMediaColor)(props9.background, globalTheme)
12256
+ background: (0, import_scratch5.getMediaColor)(props7.background, globalTheme)
12246
12257
  };
12247
12258
  },
12248
12259
  backgroundColor: (element) => {
12249
- const { props: props9 } = element;
12260
+ const { props: props7 } = element;
12250
12261
  const globalTheme = getSystemTheme(element);
12251
- if (!props9.backgroundColor)
12262
+ if (!props7.backgroundColor)
12252
12263
  return;
12253
12264
  return {
12254
- backgroundColor: (0, import_scratch5.getMediaColor)(props9.backgroundColor, globalTheme)
12265
+ backgroundColor: (0, import_scratch5.getMediaColor)(props7.backgroundColor, globalTheme)
12255
12266
  };
12256
12267
  },
12257
12268
  backgroundImage: (element) => {
12258
- const { props: props9 } = element;
12269
+ const { props: props7 } = element;
12259
12270
  const globalTheme = getSystemTheme(element);
12260
- if (!props9.backgroundImage)
12271
+ if (!props7.backgroundImage)
12261
12272
  return;
12262
12273
  return {
12263
- backgroundImage: (0, import_scratch5.transformBackgroundImage)(props9.backgroundImage, globalTheme)
12274
+ backgroundImage: (0, import_scratch5.transformBackgroundImage)(props7.backgroundImage, globalTheme)
12264
12275
  };
12265
12276
  },
12266
- backgroundSize: ({ props: props9 }) => props9.backgroundSize ? {
12267
- backgroundSize: props9.backgroundSize
12277
+ backgroundSize: ({ props: props7 }) => props7.backgroundSize ? {
12278
+ backgroundSize: props7.backgroundSize
12268
12279
  } : null,
12269
- backgroundPosition: ({ props: props9 }) => props9.backgroundPosition ? {
12270
- backgroundPosition: props9.backgroundPosition
12280
+ backgroundPosition: ({ props: props7 }) => props7.backgroundPosition ? {
12281
+ backgroundPosition: props7.backgroundPosition
12271
12282
  } : null,
12272
- textStroke: ({ props: props9 }) => props9.textStroke ? {
12273
- WebkitTextStroke: (0, import_scratch5.transformTextStroke)(props9.textStroke)
12283
+ textStroke: ({ props: props7 }) => props7.textStroke ? {
12284
+ WebkitTextStroke: (0, import_scratch5.transformTextStroke)(props7.textStroke)
12274
12285
  } : null,
12275
- outline: ({ props: props9 }) => props9.outline && {
12276
- outline: (0, import_scratch5.transformBorder)(props9.outline)
12286
+ outline: ({ props: props7 }) => props7.outline && {
12287
+ outline: (0, import_scratch5.transformBorder)(props7.outline)
12277
12288
  },
12278
- border: ({ props: props9 }) => props9.border && {
12279
- border: (0, import_scratch5.transformBorder)(props9.border)
12289
+ border: ({ props: props7 }) => props7.border && {
12290
+ border: (0, import_scratch5.transformBorder)(props7.border)
12280
12291
  },
12281
- borderColor: ({ props: props9 }) => props9.borderColor && {
12282
- borderColor: (0, import_scratch5.getMediaColor)(props9.borderColor)
12292
+ borderColor: ({ props: props7 }) => props7.borderColor && {
12293
+ borderColor: (0, import_scratch5.getMediaColor)(props7.borderColor)
12283
12294
  },
12284
- borderStyle: ({ props: props9 }) => props9.borderStyle && {
12285
- borderStyle: props9.borderStyle
12295
+ borderStyle: ({ props: props7 }) => props7.borderStyle && {
12296
+ borderStyle: props7.borderStyle
12286
12297
  },
12287
- borderLeft: ({ props: props9 }) => props9.borderLeft && {
12288
- borderLeft: (0, import_scratch5.transformBorder)(props9.borderLeft)
12298
+ borderLeft: ({ props: props7 }) => props7.borderLeft && {
12299
+ borderLeft: (0, import_scratch5.transformBorder)(props7.borderLeft)
12289
12300
  },
12290
- borderTop: ({ props: props9 }) => props9.borderTop && {
12291
- borderTop: (0, import_scratch5.transformBorder)(props9.borderTop)
12301
+ borderTop: ({ props: props7 }) => props7.borderTop && {
12302
+ borderTop: (0, import_scratch5.transformBorder)(props7.borderTop)
12292
12303
  },
12293
- borderRight: ({ props: props9 }) => props9.borderRight && {
12294
- borderRight: (0, import_scratch5.transformBorder)(props9.borderRight)
12304
+ borderRight: ({ props: props7 }) => props7.borderRight && {
12305
+ borderRight: (0, import_scratch5.transformBorder)(props7.borderRight)
12295
12306
  },
12296
- borderBottom: ({ props: props9 }) => props9.borderBottom && {
12297
- borderBottom: (0, import_scratch5.transformBorder)(props9.borderBottom)
12307
+ borderBottom: ({ props: props7 }) => props7.borderBottom && {
12308
+ borderBottom: (0, import_scratch5.transformBorder)(props7.borderBottom)
12298
12309
  },
12299
- boxShadow: ({ props: props9 }) => props9.boxShadow && {
12300
- boxShadow: (0, import_scratch5.transformShadow)(props9.boxShadow)
12310
+ boxShadow: ({ props: props7 }) => props7.boxShadow && {
12311
+ boxShadow: (0, import_scratch5.transformShadow)(props7.boxShadow)
12301
12312
  },
12302
- textShadow: ({ props: props9 }) => props9.textShadow && {
12303
- textShadow: (0, import_scratch5.transformShadow)(props9.textShadow)
12313
+ textShadow: ({ props: props7 }) => props7.textShadow && {
12314
+ textShadow: (0, import_scratch5.transformShadow)(props7.textShadow)
12304
12315
  },
12305
- opacity: ({ props: props9 }) => props9.opacity && {
12306
- opacity: props9.opacity
12316
+ opacity: ({ props: props7 }) => props7.opacity && {
12317
+ opacity: props7.opacity
12307
12318
  },
12308
- visibility: ({ props: props9 }) => props9.visibility && {
12309
- visibility: props9.visibility
12319
+ visibility: ({ props: props7 }) => props7.visibility && {
12320
+ visibility: props7.visibility
12310
12321
  },
12311
- columnRule: ({ props: props9 }) => props9.columnRule && {
12312
- columnRule: (0, import_scratch5.transformBorder)(props9.columnRule)
12322
+ columnRule: ({ props: props7 }) => props7.columnRule && {
12323
+ columnRule: (0, import_scratch5.transformBorder)(props7.columnRule)
12313
12324
  }
12314
12325
  }
12315
12326
  };
12316
12327
 
12317
12328
  // Atoms/Media.js
12318
12329
  var keySetters = {
12319
- "@": (key, props9, result, element, isSubtree) => applyMediaProps(
12330
+ "@": (key, props7, result, element, isSubtree) => applyMediaProps(
12320
12331
  key,
12321
- props9,
12332
+ props7,
12322
12333
  isSubtree ? result : result && result.media,
12323
12334
  element
12324
12335
  ),
12325
- ":": (key, props9, result, element, isSubtree) => applySelectorProps(
12336
+ ":": (key, props7, result, element, isSubtree) => applySelectorProps(
12326
12337
  key,
12327
- props9,
12338
+ props7,
12328
12339
  isSubtree ? result : result && result.selector,
12329
12340
  element
12330
12341
  ),
12331
- "[": (key, props9, result, element, isSubtree) => applySelectorProps(
12342
+ "[": (key, props7, result, element, isSubtree) => applySelectorProps(
12332
12343
  key,
12333
- props9,
12344
+ props7,
12334
12345
  isSubtree ? result : result && result.selector,
12335
12346
  element
12336
12347
  ),
12337
- "&": (key, props9, result, element, isSubtree) => applyEndProps(
12348
+ "&": (key, props7, result, element, isSubtree) => applyEndProps(
12338
12349
  key,
12339
- props9,
12350
+ props7,
12340
12351
  isSubtree ? result : result && result.selector,
12341
12352
  element
12342
12353
  ),
12343
- $: (key, props9, result, element, isSubtree) => applyCaseProps(
12354
+ $: (key, props7, result, element, isSubtree) => applyCaseProps(
12344
12355
  key,
12345
- props9,
12356
+ props7,
12346
12357
  isSubtree ? result : result && result.case,
12347
12358
  element
12348
12359
  ),
12349
- ".": (key, props9, result, element, isSubtree) => applyConditionalCaseProps(
12360
+ ".": (key, props7, result, element, isSubtree) => applyConditionalCaseProps(
12350
12361
  key,
12351
- props9,
12362
+ props7,
12352
12363
  isSubtree ? result : result && result.case,
12353
12364
  element
12354
12365
  ),
12355
- "!": (key, props9, result, element, isSubtree) => applyConditionalFalsyProps(
12366
+ "!": (key, props7, result, element, isSubtree) => applyConditionalFalsyProps(
12356
12367
  key,
12357
- props9,
12368
+ props7,
12358
12369
  isSubtree ? result : result && result.case,
12359
12370
  element
12360
12371
  )
12361
12372
  };
12362
- var execClass = (key, props9, result, element) => {
12373
+ var execClass = (key, props7, result, element) => {
12363
12374
  const { class: className } = element;
12364
12375
  const classnameExec = className[key];
12365
12376
  if (typeof classnameExec !== "function")
12366
12377
  return;
12367
12378
  let classExec = classnameExec({
12368
- props: props9,
12379
+ props: props7,
12369
12380
  context: element.context,
12370
12381
  state: element.state
12371
12382
  });
@@ -12377,27 +12388,27 @@ var execClass = (key, props9, result, element) => {
12377
12388
  }
12378
12389
  return classExec;
12379
12390
  };
12380
- var convertPropsToClass = (props9, result, element) => {
12391
+ var convertPropsToClass = (props7, result, element) => {
12381
12392
  const propsClassObj = {};
12382
- for (const key in props9) {
12393
+ for (const key in props7) {
12383
12394
  const setter = keySetters[key.slice(0, 1)];
12384
12395
  if (setter) {
12385
- setter(key, props9[key], propsClassObj, element, true);
12396
+ setter(key, props7[key], propsClassObj, element, true);
12386
12397
  continue;
12387
12398
  } else {
12388
- execClass(key, props9, propsClassObj, element);
12399
+ execClass(key, props7, propsClassObj, element);
12389
12400
  }
12390
12401
  }
12391
12402
  return propsClassObj;
12392
12403
  };
12393
- var applyMediaProps = (key, props9, result, element) => {
12404
+ var applyMediaProps = (key, props7, result, element) => {
12394
12405
  const { context } = element;
12395
12406
  if (!context.designSystem || !context.designSystem.MEDIA)
12396
12407
  return;
12397
12408
  const globalTheme = getSystemTheme(element);
12398
12409
  const { MEDIA } = context.designSystem;
12399
12410
  const mediaName = MEDIA[key.slice(1)];
12400
- const generatedClass = convertPropsToClass(props9, result, element);
12411
+ const generatedClass = convertPropsToClass(props7, result, element);
12401
12412
  const name = key.slice(1);
12402
12413
  const isTheme = ["dark", "light"].includes(name);
12403
12414
  const matchesGlobal = name === globalTheme;
@@ -12410,39 +12421,39 @@ var applyMediaProps = (key, props9, result, element) => {
12410
12421
  result[mediaKey] = generatedClass;
12411
12422
  return result[mediaKey];
12412
12423
  };
12413
- var applyEndProps = (key, props9, result, element) => {
12414
- result[key] = convertPropsToClass(props9, result, element);
12424
+ var applyEndProps = (key, props7, result, element) => {
12425
+ result[key] = convertPropsToClass(props7, result, element);
12415
12426
  return result[key];
12416
12427
  };
12417
- var applySelectorProps = (key, props9, result, element) => {
12428
+ var applySelectorProps = (key, props7, result, element) => {
12418
12429
  const selectorKey = `&${key}`;
12419
- result[selectorKey] = convertPropsToClass(props9, result, element);
12430
+ result[selectorKey] = convertPropsToClass(props7, result, element);
12420
12431
  return result[selectorKey];
12421
12432
  };
12422
- var applyCaseProps = (key, props9, result, element) => {
12433
+ var applyCaseProps = (key, props7, result, element) => {
12423
12434
  const { CASES } = element.context && element.context.designSystem;
12424
12435
  const caseKey = key.slice(1);
12425
12436
  const isPropTrue = element.props[caseKey];
12426
12437
  if (!CASES[caseKey] && !isPropTrue)
12427
12438
  return;
12428
- return (0, import_utils.merge)(result, convertPropsToClass(props9, result, element));
12439
+ return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
12429
12440
  };
12430
- var applyConditionalCaseProps = (key, props9, result, element) => {
12441
+ var applyConditionalCaseProps = (key, props7, result, element) => {
12431
12442
  const caseKey = key.slice(1);
12432
12443
  const isPropTrue = element.props[caseKey] || element.state[caseKey];
12433
12444
  if (!isPropTrue)
12434
12445
  return;
12435
- return (0, import_utils.merge)(result, convertPropsToClass(props9, result, element));
12446
+ return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
12436
12447
  };
12437
- var applyConditionalFalsyProps = (key, props9, result, element) => {
12448
+ var applyConditionalFalsyProps = (key, props7, result, element) => {
12438
12449
  const caseKey = key.slice(1);
12439
12450
  const isPropTrue = element.props[caseKey] || element.state[caseKey] === true;
12440
12451
  if (!isPropTrue)
12441
- return (0, import_utils.merge)(result, convertPropsToClass(props9, result, element));
12452
+ return (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
12442
12453
  };
12443
- var applyTrueProps = (props9, result, element) => (0, import_utils.merge)(result, convertPropsToClass(props9, result, element));
12454
+ var applyTrueProps = (props7, result, element) => (0, import_utils.merge)(result, convertPropsToClass(props7, result, element));
12444
12455
  var beforeClassAssign = (element, s) => {
12445
- const { props: props9, class: className, context } = element;
12456
+ const { props: props7, class: className, context } = element;
12446
12457
  const CLASS_NAMES = {
12447
12458
  media: {},
12448
12459
  selector: {},
@@ -12451,11 +12462,11 @@ var beforeClassAssign = (element, s) => {
12451
12462
  if (!context)
12452
12463
  return;
12453
12464
  const globalTheme = context.designSystem.globalTheme;
12454
- for (const key in props9) {
12465
+ for (const key in props7) {
12455
12466
  const setter = keySetters[key.slice(0, 1)];
12456
12467
  if (globalTheme) {
12457
12468
  if (key === "theme") {
12458
- props9.update({
12469
+ props7.update({
12459
12470
  themeModifier: globalTheme
12460
12471
  }, {
12461
12472
  preventRecursive: true,
@@ -12463,10 +12474,10 @@ var beforeClassAssign = (element, s) => {
12463
12474
  preventDefineUpdate: true
12464
12475
  });
12465
12476
  } else if (key === "true")
12466
- applyTrueProps(props9[key], CLASS_NAMES, element);
12477
+ applyTrueProps(props7[key], CLASS_NAMES, element);
12467
12478
  }
12468
12479
  if (setter)
12469
- setter(key, props9[key], CLASS_NAMES, element);
12480
+ setter(key, props7[key], CLASS_NAMES, element);
12470
12481
  }
12471
12482
  const parentProps = element.parent.props;
12472
12483
  if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
@@ -12501,19 +12512,19 @@ var Iframe = {
12501
12512
  minHeight: "H"
12502
12513
  },
12503
12514
  attr: {
12504
- src: ({ props: props9 }) => props9.src,
12505
- loading: ({ props: props9 }) => props9.loading,
12506
- allowfullscreen: ({ props: props9 }) => props9.allowfullscreen,
12507
- referrerpolicy: ({ props: props9 }) => props9.referrerpolicy
12515
+ src: ({ props: props7 }) => props7.src,
12516
+ loading: ({ props: props7 }) => props7.loading,
12517
+ allowfullscreen: ({ props: props7 }) => props7.allowfullscreen,
12518
+ referrerpolicy: ({ props: props7 }) => props7.referrerpolicy
12508
12519
  }
12509
12520
  };
12510
12521
 
12511
12522
  // Atoms/Interaction.js
12512
12523
  var Interaction = {
12513
12524
  class: {
12514
- userSelect: ({ props: props9 }) => props9.userSelect && { userSelect: props9.userSelect },
12515
- pointerEvents: ({ props: props9 }) => props9.pointerEvents && { pointerEvents: props9.pointerEvents },
12516
- cursor: ({ props: props9 }) => props9.cursor && { cursor: props9.cursor }
12525
+ userSelect: ({ props: props7 }) => props7.userSelect && { userSelect: props7.userSelect },
12526
+ pointerEvents: ({ props: props7 }) => props7.pointerEvents && { pointerEvents: props7.pointerEvents },
12527
+ cursor: ({ props: props7 }) => props7.cursor && { cursor: props7.cursor }
12517
12528
  }
12518
12529
  };
12519
12530
 
@@ -12566,8 +12577,8 @@ var Focusable = {
12566
12577
  }
12567
12578
  },
12568
12579
  attr: {
12569
- placeholder: ({ props: props9 }) => props9.placeholder,
12570
- tabIndex: ({ props: props9 }) => props9.tabIndex
12580
+ placeholder: ({ props: props7 }) => props7.placeholder,
12581
+ tabIndex: ({ props: props7 }) => props7.tabIndex
12571
12582
  }
12572
12583
  };
12573
12584
  var FocusableComponent = {
@@ -12584,14 +12595,14 @@ var FocusableComponent = {
12584
12595
  style
12585
12596
  },
12586
12597
  attr: {
12587
- type: ({ props: props9 }) => props9.type
12598
+ type: ({ props: props7 }) => props7.type
12588
12599
  }
12589
12600
  };
12590
12601
 
12591
12602
  // Atoms/Overflow.js
12592
12603
  var Overflow = {
12593
12604
  class: {
12594
- overflow: ({ props: props9 }) => props9.overflow && { overflow: props9.overflow }
12605
+ overflow: ({ props: props7 }) => props7.overflow && { overflow: props7.overflow }
12595
12606
  }
12596
12607
  };
12597
12608
 
@@ -12685,17 +12696,17 @@ var import_scratch6 = __toESM(require_cjs());
12685
12696
  var Position = {
12686
12697
  props: {},
12687
12698
  class: {
12688
- position: ({ props: props9 }) => props9.position && { position: props9.position },
12689
- inset: ({ props: props9 }) => {
12690
- const { inset } = props9;
12699
+ position: ({ props: props7 }) => props7.position && { position: props7.position },
12700
+ inset: ({ props: props7 }) => {
12701
+ const { inset } = props7;
12691
12702
  if (typeof inset !== "string")
12692
12703
  return;
12693
12704
  return { inset: inset.split(" ").map((v) => (0, import_scratch6.getSpacingByKey)(v, "k").k).join(" ") };
12694
12705
  },
12695
- left: ({ props: props9 }) => (0, import_scratch6.getSpacingByKey)(props9.left, "left"),
12696
- top: ({ props: props9 }) => (0, import_scratch6.getSpacingByKey)(props9.top, "top"),
12697
- right: ({ props: props9 }) => (0, import_scratch6.getSpacingByKey)(props9.right, "right"),
12698
- bottom: ({ props: props9 }) => (0, import_scratch6.getSpacingByKey)(props9.bottom, "bottom")
12706
+ left: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.left, "left"),
12707
+ top: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.top, "top"),
12708
+ right: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.right, "right"),
12709
+ bottom: ({ props: props7 }) => (0, import_scratch6.getSpacingByKey)(props7.bottom, "bottom")
12699
12710
  }
12700
12711
  };
12701
12712
 
@@ -12706,30 +12717,30 @@ var Picture = {
12706
12717
  tag: "source",
12707
12718
  attr: {
12708
12719
  media: (element) => {
12709
- const { props: props9, key, context } = element;
12720
+ const { props: props7, key, context } = element;
12710
12721
  const { MEDIA } = context.designSystem;
12711
12722
  const globalTheme = getSystemTheme(element);
12712
- const mediaName = (props9.media || key).slice(1);
12723
+ const mediaName = (props7.media || key).slice(1);
12713
12724
  if (mediaName === globalTheme)
12714
12725
  return "(min-width: 0px)";
12715
12726
  else if (mediaName === "dark" || mediaName === "light")
12716
12727
  return "(max-width: 0px)";
12717
12728
  return MEDIA[mediaName];
12718
12729
  },
12719
- srcset: ({ props: props9 }) => props9.srcset
12730
+ srcset: ({ props: props7 }) => props7.srcset
12720
12731
  }
12721
12732
  },
12722
- Img: ({ props: props9 }) => ({
12733
+ Img: ({ props: props7 }) => ({
12723
12734
  width: "inherit",
12724
12735
  height: "inherit",
12725
- src: props9.src
12736
+ src: props7.src
12726
12737
  })
12727
12738
  };
12728
12739
 
12729
12740
  // Atoms/Pseudo.js
12730
12741
  var Pseudo = {
12731
12742
  class: {
12732
- content: ({ props: props9 }) => props9.content && { content: props9.content }
12743
+ content: ({ props: props7 }) => props7.content && { content: props7.content }
12733
12744
  }
12734
12745
  };
12735
12746
 
@@ -12743,25 +12754,25 @@ var Svg = {
12743
12754
  xmlns: "http://www.w3.org/2000/svg",
12744
12755
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
12745
12756
  },
12746
- html: ({ key, props: props9, context, ...el }) => {
12757
+ html: ({ key, props: props7, context, ...el }) => {
12747
12758
  const { designSystem, utils } = context;
12748
12759
  const SVG = designSystem && designSystem.SVG;
12749
- const useSvgSprite = props9.spriteId || context.designSystem && context.designSystem.useSvgSprite;
12760
+ const useSvgSprite = props7.spriteId || context.designSystem && context.designSystem.useSvgSprite;
12750
12761
  const useSVGSymbol = (icon) => `<use xlink:href="#${icon}" />`;
12751
12762
  const init = utils && utils.init;
12752
- if (!useSvgSprite && props9.src)
12753
- return props9.src;
12754
- const spriteId = props9.spriteId;
12763
+ if (!useSvgSprite && props7.src)
12764
+ return props7.src;
12765
+ const spriteId = props7.spriteId;
12755
12766
  if (spriteId)
12756
12767
  return useSVGSymbol(spriteId);
12757
- const symbolId = Symbol.for(props9.src);
12768
+ const symbolId = Symbol.for(props7.src);
12758
12769
  let SVGKey = SVG[symbolId];
12759
12770
  if (SVGKey && SVG[SVGKey])
12760
12771
  return useSVGSymbol(SVGKey);
12761
12772
  SVGKey = SVG[symbolId] = Math.random();
12762
- if (props9.src) {
12773
+ if (props7.src) {
12763
12774
  init({
12764
- svg: { [SVGKey]: props9.src }
12775
+ svg: { [SVGKey]: props7.src }
12765
12776
  }, {
12766
12777
  document: context.document,
12767
12778
  emotion: context.emotion
@@ -12774,60 +12785,60 @@ var Svg = {
12774
12785
  // Atoms/Shape/index.js
12775
12786
  var import_utils3 = __toESM(require_cjs5());
12776
12787
  var import_scratch7 = __toESM(require_cjs());
12777
- var transformBorderRadius = (radius, props9, propertyName) => {
12788
+ var transformBorderRadius = (radius, props7, propertyName) => {
12778
12789
  if (!(0, import_utils3.isString)(radius))
12779
12790
  return;
12780
12791
  return {
12781
- borderRadius: radius.split(" ").map((v, k) => (0, import_scratch7.getSpacingBasedOnRatio)(props9, propertyName, v)[propertyName]).join(" ")
12792
+ borderRadius: radius.split(" ").map((v, k) => (0, import_scratch7.getSpacingBasedOnRatio)(props7, propertyName, v)[propertyName]).join(" ")
12782
12793
  };
12783
12794
  };
12784
12795
  var Shape = {
12785
12796
  extend: Pseudo,
12786
12797
  class: {
12787
- shape: ({ props: props9 }) => {
12788
- const { shape } = props9;
12789
- return (0, import_utils3.exec)(SHAPES[shape], { props: props9 });
12798
+ shape: ({ props: props7 }) => {
12799
+ const { shape } = props7;
12800
+ return (0, import_utils3.exec)(SHAPES[shape], { props: props7 });
12790
12801
  },
12791
- shapeDirection: ({ props: props9 }) => {
12792
- const { shape, shapeDirection } = props9;
12802
+ shapeDirection: ({ props: props7 }) => {
12803
+ const { shape, shapeDirection } = props7;
12793
12804
  if (!shape || !shapeDirection)
12794
12805
  return;
12795
12806
  const shapeDir = SHAPES[shape + "Direction"];
12796
12807
  return shape && shapeDir ? shapeDir[shapeDirection || "left"] : null;
12797
12808
  },
12798
- shapeDirectionColor: ({ props: props9 }) => {
12799
- const { background, backgroundColor } = props9;
12809
+ shapeDirectionColor: ({ props: props7 }) => {
12810
+ const { background, backgroundColor } = props7;
12800
12811
  const borderColor = {
12801
12812
  borderColor: (0, import_scratch7.getMediaColor)(background || backgroundColor)
12802
12813
  };
12803
- return props9.shapeDirection ? borderColor : null;
12814
+ return props7.shapeDirection ? borderColor : null;
12804
12815
  },
12805
- round: ({ props: props9, key, ...el }) => transformBorderRadius(props9.round || props9.borderRadius, props9, "round"),
12806
- borderRadius: ({ props: props9, key, ...el }) => transformBorderRadius(props9.borderRadius || props9.round, props9, "borderRadius")
12816
+ round: ({ props: props7, key, ...el }) => transformBorderRadius(props7.round || props7.borderRadius, props7, "round"),
12817
+ borderRadius: ({ props: props7, key, ...el }) => transformBorderRadius(props7.borderRadius || props7.round, props7, "borderRadius")
12807
12818
  }
12808
12819
  };
12809
12820
 
12810
12821
  // Atoms/Text.js
12811
12822
  var import_scratch8 = __toESM(require_cjs());
12812
12823
  var Text = {
12813
- text: ({ key, props: props9, state }) => {
12814
- if (props9.text === true)
12815
- return state && state[key] || props9 && props9[key];
12816
- return props9.text;
12824
+ text: ({ key, props: props7, state }) => {
12825
+ if (props7.text === true)
12826
+ return state && state[key] || props7 && props7[key];
12827
+ return props7.text;
12817
12828
  },
12818
12829
  class: {
12819
- fontSize: ({ props: props9 }) => props9.fontSize ? (0, import_scratch8.getFontSizeByKey)(props9.fontSize) : null,
12820
- fontFamily: ({ props: props9 }) => props9.fontFamily && { fontFamily: (0, import_scratch8.getFontFamily)(props9.fontFamily) || props9.fontFamily },
12821
- lineHeight: ({ props: props9 }) => props9.lineHeight && { lineHeight: props9.lineHeight },
12830
+ fontSize: ({ props: props7 }) => props7.fontSize ? (0, import_scratch8.getFontSizeByKey)(props7.fontSize) : null,
12831
+ fontFamily: ({ props: props7 }) => props7.fontFamily && { fontFamily: (0, import_scratch8.getFontFamily)(props7.fontFamily) || props7.fontFamily },
12832
+ lineHeight: ({ props: props7 }) => props7.lineHeight && { lineHeight: props7.lineHeight },
12822
12833
  // lineHeight: ({ props }) => props.lineHeight && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
12823
- textDecoration: ({ props: props9 }) => props9.textDecoration && { textDecoration: props9.textDecoration },
12824
- textTransform: ({ props: props9 }) => props9.textTransform && { textTransform: props9.textTransform },
12825
- whiteSpace: ({ props: props9 }) => props9.whiteSpace && { whiteSpace: props9.whiteSpace },
12826
- letterSpacing: ({ props: props9 }) => props9.letterSpacing && { letterSpacing: props9.letterSpacing },
12827
- textAlign: ({ props: props9 }) => props9.textAlign && { textAlign: props9.textAlign },
12828
- fontWeight: ({ props: props9 }) => props9.fontWeight && {
12829
- fontWeight: props9.fontWeight,
12830
- fontVariationSettings: '"wght" ' + props9.fontWeight
12834
+ textDecoration: ({ props: props7 }) => props7.textDecoration && { textDecoration: props7.textDecoration },
12835
+ textTransform: ({ props: props7 }) => props7.textTransform && { textTransform: props7.textTransform },
12836
+ whiteSpace: ({ props: props7 }) => props7.whiteSpace && { whiteSpace: props7.whiteSpace },
12837
+ letterSpacing: ({ props: props7 }) => props7.letterSpacing && { letterSpacing: props7.letterSpacing },
12838
+ textAlign: ({ props: props7 }) => props7.textAlign && { textAlign: props7.textAlign },
12839
+ fontWeight: ({ props: props7 }) => props7.fontWeight && {
12840
+ fontWeight: props7.fontWeight,
12841
+ fontVariationSettings: '"wght" ' + props7.fontWeight
12831
12842
  }
12832
12843
  }
12833
12844
  };
@@ -12861,15 +12872,15 @@ var Footnote = {
12861
12872
  // Atoms/Transform.js
12862
12873
  var Transform = {
12863
12874
  class: {
12864
- transform: ({ props: props9 }) => props9.transform && { transform: props9.transform },
12865
- transformOrigin: ({ props: props9 }) => props9.transformOrigin && { transformOrigin: props9.transformOrigin }
12875
+ transform: ({ props: props7 }) => props7.transform && { transform: props7.transform },
12876
+ transformOrigin: ({ props: props7 }) => props7.transformOrigin && { transformOrigin: props7.transformOrigin }
12866
12877
  }
12867
12878
  };
12868
12879
 
12869
12880
  // Atoms/XYZ.js
12870
12881
  var XYZ = {
12871
12882
  class: {
12872
- zIndex: ({ props: props9 }) => props9.zIndex && { zIndex: props9.zIndex }
12883
+ zIndex: ({ props: props7 }) => props7.zIndex && { zIndex: props7.zIndex }
12873
12884
  }
12874
12885
  };
12875
12886
 
@@ -13026,11 +13037,11 @@ var length = 0;
13026
13037
  var position = 0;
13027
13038
  var character = 0;
13028
13039
  var characters = "";
13029
- function node(value, root, parent, type, props9, children, length2) {
13030
- return { value, root, parent, type, props: props9, children, line, column, length: length2, return: "" };
13040
+ function node(value, root, parent, type, props7, children, length2) {
13041
+ return { value, root, parent, type, props: props7, children, line, column, length: length2, return: "" };
13031
13042
  }
13032
- function copy(root, props9) {
13033
- return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props9);
13043
+ function copy(root, props7) {
13044
+ return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props7);
13034
13045
  }
13035
13046
  function char() {
13036
13047
  return character;
@@ -13161,7 +13172,7 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
13161
13172
  var ampersand = 1;
13162
13173
  var character2 = 0;
13163
13174
  var type = "";
13164
- var props9 = rules;
13175
+ var props7 = rules;
13165
13176
  var children = rulesets;
13166
13177
  var reference = rule;
13167
13178
  var characters2 = type;
@@ -13215,17 +13226,17 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
13215
13226
  case 59:
13216
13227
  characters2 += ";";
13217
13228
  default:
13218
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props9 = [], children = [], length2), rulesets);
13229
+ append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props7 = [], children = [], length2), rulesets);
13219
13230
  if (character2 === 123)
13220
13231
  if (offset === 0)
13221
- parse(characters2, root, reference, reference, props9, rulesets, length2, points, children);
13232
+ parse(characters2, root, reference, reference, props7, rulesets, length2, points, children);
13222
13233
  else
13223
13234
  switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
13224
13235
  case 100:
13225
13236
  case 108:
13226
13237
  case 109:
13227
13238
  case 115:
13228
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props9 = [], length2), children), rules, children, length2, points, rule ? props9 : children);
13239
+ parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props7 = [], length2), children), rules, children, length2, points, rule ? props7 : children);
13229
13240
  break;
13230
13241
  default:
13231
13242
  parse(characters2, reference, reference, reference, [""], children, 0, points, children);
@@ -13261,15 +13272,15 @@ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, decla
13261
13272
  }
13262
13273
  return rulesets;
13263
13274
  }
13264
- function ruleset(value, root, parent, index, offset, rules, points, type, props9, children, length2) {
13275
+ function ruleset(value, root, parent, index, offset, rules, points, type, props7, children, length2) {
13265
13276
  var post = offset - 1;
13266
13277
  var rule = offset === 0 ? rules : [""];
13267
13278
  var size = sizeof(rule);
13268
13279
  for (var i = 0, j = 0, k = 0; i < index; ++i)
13269
13280
  for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
13270
13281
  if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
13271
- props9[k++] = z;
13272
- return node(value, root, parent, offset === 0 ? RULESET : type, props9, children, length2);
13282
+ props7[k++] = z;
13283
+ return node(value, root, parent, offset === 0 ? RULESET : type, props7, children, length2);
13273
13284
  }
13274
13285
  function comment(value, root, parent) {
13275
13286
  return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
@@ -14246,26 +14257,26 @@ var Animation = {
14246
14257
  animationName: (el) => el.props.animationName && {
14247
14258
  animationName: applyAnimationProps(el.props.animationName, el)
14248
14259
  },
14249
- animationDuration: ({ props: props9 }) => props9.animationDuration && {
14250
- animationDuration: (0, import_scratch9.getTimingByKey)(props9.animationDuration).timing
14260
+ animationDuration: ({ props: props7 }) => props7.animationDuration && {
14261
+ animationDuration: (0, import_scratch9.getTimingByKey)(props7.animationDuration).timing
14251
14262
  },
14252
- animationDelay: ({ props: props9 }) => props9.animationDelay && {
14253
- animationDelay: (0, import_scratch9.getTimingByKey)(props9.animationDelay).timing
14263
+ animationDelay: ({ props: props7 }) => props7.animationDelay && {
14264
+ animationDelay: (0, import_scratch9.getTimingByKey)(props7.animationDelay).timing
14254
14265
  },
14255
- animationTimingFunction: ({ props: props9 }) => props9.animationTimingFunction && {
14256
- animationTimingFunction: (0, import_scratch9.getTimingFunction)(props9.animationTimingFunction)
14266
+ animationTimingFunction: ({ props: props7 }) => props7.animationTimingFunction && {
14267
+ animationTimingFunction: (0, import_scratch9.getTimingFunction)(props7.animationTimingFunction)
14257
14268
  },
14258
- animationFillMode: ({ props: props9 }) => props9.animationFillMode && {
14259
- animationFillMode: props9.animationFillMode
14269
+ animationFillMode: ({ props: props7 }) => props7.animationFillMode && {
14270
+ animationFillMode: props7.animationFillMode
14260
14271
  },
14261
- animationPlayState: ({ props: props9 }) => props9.animationPlayState && {
14262
- animationPlayState: props9.animationPlayState
14272
+ animationPlayState: ({ props: props7 }) => props7.animationPlayState && {
14273
+ animationPlayState: props7.animationPlayState
14263
14274
  },
14264
- animationIterationCount: ({ props: props9 }) => props9.animationIterationCount && {
14265
- animationIterationCount: props9.animationIterationCount || 1
14275
+ animationIterationCount: ({ props: props7 }) => props7.animationIterationCount && {
14276
+ animationIterationCount: props7.animationIterationCount || 1
14266
14277
  },
14267
- animationDirection: ({ props: props9 }) => props9.animationDirection && {
14268
- animationDirection: props9.animationDirection
14278
+ animationDirection: ({ props: props7 }) => props7.animationDirection && {
14279
+ animationDirection: props7.animationDirection
14269
14280
  }
14270
14281
  }
14271
14282
  };
@@ -14273,7 +14284,7 @@ var Animation = {
14273
14284
  // Box/index.js
14274
14285
  var PropsCSS = {
14275
14286
  class: {
14276
- style: ({ props: props9 }) => props9 && props9.style
14287
+ style: ({ props: props7 }) => props7 && props7.style
14277
14288
  }
14278
14289
  };
14279
14290
  var Box = {
@@ -14293,22 +14304,22 @@ var Box = {
14293
14304
  Animation
14294
14305
  ],
14295
14306
  attr: {
14296
- id: ({ props: props9 }) => props9.id
14307
+ id: ({ props: props7 }) => props7.id
14297
14308
  }
14298
14309
  };
14299
14310
 
14300
14311
  // Icon/index.js
14301
14312
  var Icon = {
14302
14313
  extend: Svg,
14303
- props: ({ key, props: props9, parent, context }) => {
14314
+ props: ({ key, props: props7, parent, context }) => {
14304
14315
  const { ICONS, useIconSprite, verbose } = context && context.designSystem;
14305
14316
  const { toCamelCase } = context && context.utils;
14306
- const iconName = props9.inheritedString || props9.name || props9.icon || key;
14317
+ const iconName = props7.inheritedString || props7.name || props7.icon || key;
14307
14318
  const camelCase = toCamelCase(iconName);
14308
14319
  const isArray7 = camelCase.split(/([a-z])([A-Z])/g);
14309
14320
  let activeIconName;
14310
- if (props9.active) {
14311
- activeIconName = props9[".active"].name || props9[".active"].icon;
14321
+ if (props7.active) {
14322
+ activeIconName = props7[".active"].name || props7[".active"].icon;
14312
14323
  }
14313
14324
  if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
14314
14325
  activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
@@ -14327,7 +14338,7 @@ var Icon = {
14327
14338
  console.warn("Can't find icon:", iconName, validIconName);
14328
14339
  }
14329
14340
  const iconFromLibrary = ICONS[validIconName];
14330
- const directSrc = parent && parent.props && parent.props.src || props9.src;
14341
+ const directSrc = parent && parent.props && parent.props.src || props7.src;
14331
14342
  return {
14332
14343
  width: "A",
14333
14344
  height: "A",
@@ -14352,9 +14363,9 @@ var IconText = {
14352
14363
  },
14353
14364
  Icon: {
14354
14365
  props: {},
14355
- if: ({ props: props9 }) => props9.name || props9.icon
14366
+ if: ({ props: props7 }) => props7.name || props7.icon
14356
14367
  },
14357
- text: ({ props: props9 }) => props9.text,
14368
+ text: ({ props: props7 }) => props7.text,
14358
14369
  ".reversed": {
14359
14370
  props: { flow: "row-reverse" }
14360
14371
  },
@@ -14362,20 +14373,6 @@ var IconText = {
14362
14373
  props: { flow: "column" }
14363
14374
  }
14364
14375
  };
14365
- var FileIcon = {
14366
- extend: Flex,
14367
- props: {
14368
- theme: "tertiary",
14369
- boxSize: "C1",
14370
- align: "center center",
14371
- round: "Z"
14372
- },
14373
- Icon: {
14374
- fontSize: "B",
14375
- margin: "auto",
14376
- icon: "file"
14377
- }
14378
- };
14379
14376
 
14380
14377
  // Button/index.js
14381
14378
  var Button = {
@@ -14395,7 +14392,7 @@ var Button = {
14395
14392
  round: "C2"
14396
14393
  },
14397
14394
  attr: {
14398
- type: ({ props: props9 }) => props9.type
14395
+ type: ({ props: props7 }) => props7.type
14399
14396
  }
14400
14397
  };
14401
14398
  var SquareButton = {
@@ -14430,7 +14427,7 @@ var Avatar = {
14430
14427
  cursor: "pointer"
14431
14428
  },
14432
14429
  attr: {
14433
- src: ({ key, props: props9 }) => props9.src || `https://avatars.dicebear.com/api/${props9.avatarType || "adventurer-neutral"}/${props9.key || key}.svg`
14430
+ src: ({ key, props: props7 }) => props7.src || `https://avatars.dicebear.com/api/${props7.avatarType || "adventurer-neutral"}/${props7.key || key}.svg`
14434
14431
  }
14435
14432
  };
14436
14433
  var AvatarBundle = {
@@ -14551,12 +14548,17 @@ var DatePickerDay = {
14551
14548
  extend: Button,
14552
14549
  state: true,
14553
14550
  props: ({ state, key }) => {
14554
- const isSelected = state.parent.parent.activeDay === parseInt(key) + 1;
14551
+ const rootState = state.parent.parent.parent;
14552
+ const date = new Date(state._d);
14553
+ const isSelected = rootState.activeDay === date.toString();
14555
14554
  const gridColumnStart = 7 - state.parent.weekItems.weeks[0].dates.length;
14556
- const isWeekend = state.moment.isoWeekday();
14555
+ const { moment } = state;
14556
+ moment._d = date;
14557
+ const isWeekend = moment.day() === 0 || moment.day() === 6;
14557
14558
  return {
14558
14559
  isSelected,
14559
14560
  isWeekend,
14561
+ date: date.toString(),
14560
14562
  textAlign: "center",
14561
14563
  fontSize: "Z1",
14562
14564
  round: "100%",
@@ -14578,10 +14580,9 @@ var DatePickerDay = {
14578
14580
  },
14579
14581
  on: {
14580
14582
  click: (event, element, state) => {
14581
- state.parent.parent.update({
14582
- active: state.parse()
14583
+ state.parent.parent.parent.update({
14584
+ activeDay: element.props.date
14583
14585
  });
14584
- console.log(state);
14585
14586
  }
14586
14587
  }
14587
14588
  };
@@ -14596,6 +14597,17 @@ var DatePickerGrid = {
14596
14597
  childExtend: DatePickerDay,
14597
14598
  $setStateCollection: (el, s) => {
14598
14599
  return s.days;
14600
+ },
14601
+ on: {
14602
+ render: (el, state) => {
14603
+ const { key } = el;
14604
+ const isSelected = state.parent.parent.activeMonth === parseInt(key);
14605
+ if (isSelected) {
14606
+ window.requestAnimationFrame(() => {
14607
+ el.node.scrollIntoView();
14608
+ });
14609
+ }
14610
+ }
14599
14611
  }
14600
14612
  };
14601
14613
 
@@ -14647,8 +14659,8 @@ var DatePickerYears = {
14647
14659
  on: {
14648
14660
  click: (event, element, state) => state.update({ activeYear: element.text }),
14649
14661
  render: (el, state) => {
14650
- const { props: props9 } = el;
14651
- const { isSelected } = props9;
14662
+ const { props: props7 } = el;
14663
+ const { isSelected } = props7;
14652
14664
  if (isSelected) {
14653
14665
  window.requestAnimationFrame(() => {
14654
14666
  el.parent.parent.node.scrollTop = el.node.offsetTop - 100;
@@ -14729,12 +14741,26 @@ var DatePickerMonthsSlider = {
14729
14741
  }
14730
14742
  },
14731
14743
  Button_left: {
14732
- icon: "arrowLeft",
14733
- "@dark": {
14734
- theme: "primary @dark .color-only"
14744
+ props: {
14745
+ icon: "arrowLeft",
14746
+ "@dark": {
14747
+ theme: "primary @dark .color-only"
14748
+ },
14749
+ "@light": {
14750
+ theme: "primary @light .color-only"
14751
+ }
14735
14752
  },
14736
- "@light": {
14737
- theme: "primary @light .color-only"
14753
+ on: {
14754
+ click: (ev, el, s) => {
14755
+ const { activeMonth, activeYear } = s;
14756
+ if (activeMonth > 0)
14757
+ s.update({ activeMonth: activeMonth - 1 });
14758
+ else
14759
+ s.update({
14760
+ activeYear: activeYear - 1,
14761
+ activeMonth: 11
14762
+ });
14763
+ }
14738
14764
  }
14739
14765
  },
14740
14766
  Flex: {
@@ -14753,13 +14779,15 @@ var DatePickerMonthsSlider = {
14753
14779
  isSelected: state.activeMonth === parseInt(key),
14754
14780
  ".isSelected": { opacity: "1" }
14755
14781
  }),
14756
- render: (el, state) => {
14757
- const { props: props9 } = el;
14758
- const { isSelected } = props9;
14759
- if (isSelected) {
14760
- window.requestAnimationFrame(() => {
14761
- el.parent.parent.node.scrollLeft = el.node.offsetLeft;
14762
- });
14782
+ on: {
14783
+ update: (el, state) => {
14784
+ const { props: props7 } = el;
14785
+ const { isSelected } = props7;
14786
+ if (isSelected) {
14787
+ window.requestAnimationFrame(() => {
14788
+ el.parent.parent.node.scrollLeft = el.node.offsetLeft;
14789
+ });
14790
+ }
14763
14791
  }
14764
14792
  }
14765
14793
  },
@@ -14781,12 +14809,26 @@ var DatePickerMonthsSlider = {
14781
14809
  }
14782
14810
  },
14783
14811
  Button_right: {
14784
- icon: "arrowRight",
14785
- "@dark": {
14786
- theme: "primary @dark .color-only"
14812
+ props: {
14813
+ icon: "arrowRight",
14814
+ "@dark": {
14815
+ theme: "primary @dark .color-only"
14816
+ },
14817
+ "@light": {
14818
+ theme: "primary @light .color-only"
14819
+ }
14787
14820
  },
14788
- "@light": {
14789
- theme: "primary @light .color-only"
14821
+ on: {
14822
+ click: (ev, el, s) => {
14823
+ const { activeMonth, activeYear } = s;
14824
+ if (activeMonth < 11)
14825
+ s.update({ activeMonth: activeMonth + 1 });
14826
+ else
14827
+ s.update({
14828
+ activeYear: activeYear + 1,
14829
+ activeMonth: 0
14830
+ });
14831
+ }
14790
14832
  }
14791
14833
  }
14792
14834
  };
@@ -14830,7 +14872,7 @@ var extractMonthDays = (data) => {
14830
14872
  const result = [];
14831
14873
  data.weeks.forEach((week) => {
14832
14874
  week.dates.forEach((date) => {
14833
- result.push(date);
14875
+ result.push({ ...date, _d: date.moment._d.toString() });
14834
14876
  });
14835
14877
  });
14836
14878
  return result;
@@ -15323,6 +15365,86 @@ var ToggleSwithWithLabel = {
15323
15365
  fieldLabel: { extend: FieldLabel }
15324
15366
  };
15325
15367
 
15368
+ // node_modules/@symbo.ls/icon/index.js
15369
+ var Icon2 = {
15370
+ extend: Svg,
15371
+ props: ({ key, props: props7, parent, context }) => {
15372
+ const { ICONS, useIconSprite, verbose } = context && context.designSystem;
15373
+ const { toCamelCase } = context && context.utils;
15374
+ const iconName = props7.inheritedString || props7.name || props7.icon || key;
15375
+ const camelCase = toCamelCase(iconName);
15376
+ const isArray7 = camelCase.split(/([a-z])([A-Z])/g);
15377
+ let activeIconName;
15378
+ if (props7.active) {
15379
+ activeIconName = props7[".active"].name || props7[".active"].icon;
15380
+ }
15381
+ if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
15382
+ activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
15383
+ }
15384
+ let validIconName;
15385
+ if (ICONS[activeIconName])
15386
+ validIconName = activeIconName;
15387
+ if (ICONS[camelCase])
15388
+ validIconName = camelCase;
15389
+ else if (ICONS[isArray7[0] + isArray7[1]])
15390
+ validIconName = isArray7[0] + isArray7[1];
15391
+ else if (ICONS[isArray7[0]])
15392
+ validIconName = isArray7[0];
15393
+ else {
15394
+ if (verbose)
15395
+ console.warn("Can't find icon:", iconName, validIconName);
15396
+ }
15397
+ const iconFromLibrary = ICONS[validIconName];
15398
+ const directSrc = parent && parent.props && parent.props.src || props7.src;
15399
+ return {
15400
+ width: "A",
15401
+ height: "A",
15402
+ display: "inline-block",
15403
+ spriteId: useIconSprite && validIconName,
15404
+ src: iconFromLibrary || directSrc || ICONS.noIcon,
15405
+ style: { fill: "currentColor" }
15406
+ };
15407
+ },
15408
+ attr: { viewBox: "0 0 24 24" }
15409
+ };
15410
+ var IconText2 = {
15411
+ extend: Flex,
15412
+ props: {
15413
+ align: "center center",
15414
+ lineHeight: 1
15415
+ },
15416
+ // TODO: remove this variant
15417
+ icon: {
15418
+ extend: Icon2,
15419
+ if: ({ parent }) => parent.props.icon
15420
+ },
15421
+ Icon: {
15422
+ props: {},
15423
+ if: ({ props: props7 }) => props7.name || props7.icon
15424
+ },
15425
+ text: ({ props: props7 }) => props7.text,
15426
+ ".reversed": {
15427
+ props: { flow: "row-reverse" }
15428
+ },
15429
+ ".vertical": {
15430
+ props: { flow: "column" }
15431
+ }
15432
+ };
15433
+ var FileIcon = {
15434
+ extend: Flex,
15435
+ props: {
15436
+ theme: "tertiary",
15437
+ boxSize: "C1",
15438
+ align: "center center",
15439
+ round: "Z"
15440
+ },
15441
+ Icon: {
15442
+ fontSize: "B",
15443
+ margin: "auto",
15444
+ icon: "file"
15445
+ }
15446
+ };
15447
+
15326
15448
  // Link/index.js
15327
15449
  var import_router = __toESM(require_cjs9());
15328
15450
  var Link = {
@@ -15340,23 +15462,23 @@ var Link = {
15340
15462
  const { exec: exec4 } = ctx.utils;
15341
15463
  return exec4(el.props.href, el) || exec4(el.props, el).href;
15342
15464
  },
15343
- target: ({ props: props9 }) => props9.target,
15344
- "aria-label": ({ props: props9 }) => props9.aria ? props9.aria.label : props9.text,
15345
- draggable: ({ props: props9 }) => props9.draggable
15465
+ target: ({ props: props7 }) => props7.target,
15466
+ "aria-label": ({ props: props7 }) => props7.aria ? props7.aria.label : props7.text,
15467
+ draggable: ({ props: props7 }) => props7.draggable
15346
15468
  }
15347
15469
  };
15348
15470
  var RouterLink = {
15349
15471
  on: {
15350
15472
  click: (event, el, s, ctx) => {
15351
- const { props: props9 } = el;
15352
- const { href } = props9;
15473
+ const { props: props7 } = el;
15474
+ const { href } = props7;
15353
15475
  if (!href)
15354
15476
  return;
15355
15477
  const { utils, routerOptions } = ctx;
15356
15478
  const { router } = utils;
15357
15479
  const root = el.__ref.__root;
15358
15480
  const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
15359
- const options = props9.routerOptions || routerOptions || {
15481
+ const options = props7.routerOptions || routerOptions || {
15360
15482
  scrollToOptions: { behaviour: "instant" }
15361
15483
  };
15362
15484
  if (href && !linkIsExternal) {
@@ -15377,7 +15499,7 @@ var Input = {
15377
15499
  props: {
15378
15500
  border: "none",
15379
15501
  type: "input",
15380
- theme: "quaternary",
15502
+ theme: "tertiary",
15381
15503
  fontSize: "A",
15382
15504
  round: "C",
15383
15505
  lineHeight: 1,
@@ -15385,17 +15507,17 @@ var Input = {
15385
15507
  padding: "Z A"
15386
15508
  },
15387
15509
  attr: {
15388
- pattern: ({ props: props9 }) => props9.pattern,
15389
- minlength: ({ props: props9 }) => props9.minlength,
15390
- maxlength: ({ props: props9 }) => props9.maxlength,
15391
- name: ({ props: props9 }) => props9.name,
15392
- autocomplete: ({ props: props9 }) => props9.autocomplete,
15393
- placeholder: ({ props: props9 }) => props9.placeholder,
15394
- value: ({ props: props9, state }) => props9.value,
15395
- disabled: ({ props: props9 }) => props9.disabled || null,
15396
- readonly: ({ props: props9 }) => props9.readonly,
15397
- required: ({ props: props9 }) => props9.required,
15398
- type: ({ props: props9 }) => props9.type
15510
+ pattern: ({ props: props7 }) => props7.pattern,
15511
+ minlength: ({ props: props7 }) => props7.minlength,
15512
+ maxlength: ({ props: props7 }) => props7.maxlength,
15513
+ name: ({ props: props7 }) => props7.name,
15514
+ autocomplete: ({ props: props7 }) => props7.autocomplete,
15515
+ placeholder: ({ props: props7 }) => props7.placeholder,
15516
+ value: ({ props: props7, state }) => props7.value,
15517
+ disabled: ({ props: props7 }) => props7.disabled || null,
15518
+ readonly: ({ props: props7 }) => props7.readonly,
15519
+ required: ({ props: props7 }) => props7.required,
15520
+ type: ({ props: props7 }) => props7.type
15399
15521
  }
15400
15522
  };
15401
15523
  var NumberInput = {
@@ -15404,9 +15526,9 @@ var NumberInput = {
15404
15526
  type: "number"
15405
15527
  },
15406
15528
  attr: {
15407
- step: ({ props: props9 }) => props9.step,
15408
- min: ({ props: props9 }) => props9.min,
15409
- max: ({ props: props9 }) => props9.max
15529
+ step: ({ props: props7 }) => props7.step,
15530
+ min: ({ props: props7 }) => props7.min,
15531
+ max: ({ props: props7 }) => props7.max
15410
15532
  }
15411
15533
  };
15412
15534
 
@@ -15450,8 +15572,8 @@ var Focusable2 = {
15450
15572
  }
15451
15573
  },
15452
15574
  attr: {
15453
- placeholder: ({ props: props9 }) => props9.placeholder,
15454
- tabIndex: ({ props: props9 }) => props9.tabIndex
15575
+ placeholder: ({ props: props7 }) => props7.placeholder,
15576
+ tabIndex: ({ props: props7 }) => props7.tabIndex
15455
15577
  }
15456
15578
  };
15457
15579
 
@@ -15522,16 +15644,16 @@ var Video = {
15522
15644
  childExtend: {
15523
15645
  tag: "source",
15524
15646
  attr: {
15525
- src: ({ props: props9 }) => props9.src,
15526
- controls: ({ props: props9 }) => props9.controls
15647
+ src: ({ props: props7 }) => props7.src,
15648
+ controls: ({ props: props7 }) => props7.controls
15527
15649
  }
15528
15650
  },
15529
15651
  props: {
15530
15652
  controls: true
15531
15653
  },
15532
15654
  attr: {
15533
- autoplay: ({ props: props9 }) => props9.autoplay,
15534
- controls: ({ props: props9 }) => props9.controls
15655
+ autoplay: ({ props: props7 }) => props7.autoplay,
15656
+ controls: ({ props: props7 }) => props7.controls
15535
15657
  }
15536
15658
  };
15537
15659
 
@@ -15715,8 +15837,8 @@ var Slider = {
15715
15837
  click: (ev, el, s) => {
15716
15838
  el.props && (0, import_utils11.isFunction)(el.props.click) && el.props.click(ev, el, s);
15717
15839
  const input = el.parent.input;
15718
- const props9 = input.props;
15719
- const value = (0, import_utils11.isFunction)(props9.value) ? props9.value() : props9.value;
15840
+ const props7 = input.props;
15841
+ const value = (0, import_utils11.isFunction)(props7.value) ? props7.value() : props7.value;
15720
15842
  input.node.value = value;
15721
15843
  }
15722
15844
  }
@@ -15752,8 +15874,8 @@ var Slider = {
15752
15874
  click: (ev, el, s) => {
15753
15875
  el.props && (0, import_utils11.isFunction)(el.props.click) && el.props.click(ev, el, s);
15754
15876
  const input = el.parent.input;
15755
- const props9 = input.props;
15756
- const value = (0, import_utils11.isFunction)(props9.value) ? props9.value() : props9.value;
15877
+ const props7 = input.props;
15878
+ const value = (0, import_utils11.isFunction)(props7.value) ? props7.value() : props7.value;
15757
15879
  input.node.value = value;
15758
15880
  }
15759
15881
  }
@@ -15769,12 +15891,12 @@ var Flex2 = {
15769
15891
  display: "flex"
15770
15892
  },
15771
15893
  class: {
15772
- flow: ({ props: props9 }) => props9.flow && { flexFlow: props9.flow },
15773
- wrap: ({ props: props9 }) => props9.wrap && { flexWrap: props9.wrap },
15774
- align: ({ props: props9 }) => {
15775
- if (typeof props9.align !== "string")
15894
+ flow: ({ props: props7 }) => props7.flow && { flexFlow: props7.flow },
15895
+ wrap: ({ props: props7 }) => props7.wrap && { flexWrap: props7.wrap },
15896
+ align: ({ props: props7 }) => {
15897
+ if (typeof props7.align !== "string")
15776
15898
  return;
15777
- const [alignItems, justifyContent] = props9.align.split(" ");
15899
+ const [alignItems, justifyContent] = props7.align.split(" ");
15778
15900
  return { alignItems, justifyContent };
15779
15901
  }
15780
15902
  }
@@ -15934,34 +16056,23 @@ var Textarea = {
15934
16056
  };
15935
16057
 
15936
16058
  // Upload/UploadResult.js
15937
- var props6 = {
15938
- border: "1px solid #313141",
15939
- boxSize: "fit-content fit-content",
15940
- gap: "Z2",
15941
- padding: "Y2 Z Y2 Y2",
15942
- round: "Z",
15943
- content: {
15944
- flow: "column",
15945
- align: "flex-start flex-start",
15946
- loadingValues: {
15947
- gap: "Y2",
15948
- align: "center flex-start",
15949
- childProps: {
15950
- fontSize: "Z1",
15951
- color: "#A3A3A8",
15952
- "&:first-child": { gap: "V2" },
15953
- "&:last-child": { gap: "X" },
15954
- "&:nth-child(2)": {
15955
- boxSize: "3px 3px",
15956
- background: "#A3A3A8",
15957
- round: "100%"
15958
- }
16059
+ var Captions = {
16060
+ extend: Flex,
16061
+ props: {
16062
+ gap: "Y2",
16063
+ align: "center flex-start",
16064
+ childProps: {
16065
+ fontSize: "Z1",
16066
+ color: "#A3A3A8",
16067
+ "&:first-child": { gap: "V2" },
16068
+ "&:last-child": { gap: "X" },
16069
+ "&:nth-child(2)": {
16070
+ boxSize: "3px 3px",
16071
+ background: "#A3A3A8",
16072
+ round: "100%"
15959
16073
  }
15960
16074
  }
15961
- }
15962
- };
15963
- var loadingValues = {
15964
- extend: Flex,
16075
+ },
15965
16076
  childExtend: Flex,
15966
16077
  ...[
15967
16078
  {
@@ -15976,20 +16087,35 @@ var loadingValues = {
15976
16087
  ]
15977
16088
  };
15978
16089
  var UploadResult = {
15979
- extend: [Flex, Dialog],
15980
- props: props6,
15981
- FileIcon: {},
15982
- content: {
15983
- extend: Flex,
16090
+ extend: [Flex],
16091
+ props: {
16092
+ // border: '1px solid #313141',
16093
+ theme: "tertiary",
16094
+ gap: "Z2",
16095
+ padding: "Z Z2 Z Z",
16096
+ round: "Z"
16097
+ },
16098
+ FileIcon: {
16099
+ background: "white .05"
16100
+ },
16101
+ Flex: {
16102
+ props: {
16103
+ flow: "column",
16104
+ align: "flex-start flex-start"
16105
+ },
15984
16106
  H6: {
15985
16107
  color: "currentColor",
15986
16108
  text: "Image.jpg",
15987
16109
  fontWeight: "700",
15988
16110
  padding: "V2 -"
15989
16111
  },
15990
- loadingValues,
16112
+ Captions,
15991
16113
  UploadProgress: {
15992
- margin: "Z2 - X"
16114
+ margin: "Z2 - X",
16115
+ "::-webkit-progress-bar": {
16116
+ theme: null,
16117
+ background: "white .05"
16118
+ }
15993
16119
  }
15994
16120
  }
15995
16121
  };
@@ -16000,26 +16126,29 @@ var UploadLabel = {
16000
16126
  tag: "label",
16001
16127
  props: {
16002
16128
  position: "relative",
16129
+ theme: "tertiary",
16003
16130
  flow: "column",
16004
16131
  align: "center center",
16005
16132
  round: "A",
16006
16133
  cursor: "pointer",
16007
16134
  border: "1.6px, dashed, white 0.1",
16008
- padding: "B B2",
16009
- Input: {
16135
+ padding: "B B2"
16136
+ },
16137
+ Input: {
16138
+ props: {
16139
+ type: "file",
16010
16140
  position: "absolute",
16011
16141
  inset: "0 0 0 0",
16012
16142
  opacity: "0",
16013
16143
  visibility: "hidden"
16014
16144
  }
16015
16145
  },
16016
- Input: {
16017
- type: "file"
16018
- },
16019
16146
  Icon: {
16020
- name: "upload",
16021
- fontSize: "B",
16022
- opacity: ".2"
16147
+ props: {
16148
+ name: "upload",
16149
+ fontSize: "B",
16150
+ opacity: ".2"
16151
+ }
16023
16152
  },
16024
16153
  P: {
16025
16154
  props: {
@@ -16047,10 +16176,11 @@ var UploadModalFooter = {
16047
16176
  extend: [IconText, Link],
16048
16177
  props: {
16049
16178
  icon: "info",
16050
- color: "gray 1 75",
16179
+ color: "gray .65 120",
16051
16180
  fontWeight: "regular",
16052
16181
  target: "_blank",
16053
16182
  gap: "Y1",
16183
+ fontSize: "Z2",
16054
16184
  textTransform: "capitalize",
16055
16185
  text: "support"
16056
16186
  }
@@ -16077,7 +16207,7 @@ var UploadModalFooter = {
16077
16207
  var UploadModalLabel = {
16078
16208
  extend: UploadLabel,
16079
16209
  props: {
16080
- margin: "0 -X",
16210
+ margin: "X -X",
16081
16211
  cursor: "pointer",
16082
16212
  padding: "C1",
16083
16213
  gap: "X2",
@@ -16154,7 +16284,7 @@ var UploadModal = {
16154
16284
  },
16155
16285
  SquareButton: {
16156
16286
  margin: "- -Y2 - -",
16157
- color: "gray 1 75",
16287
+ color: "gray 1 105",
16158
16288
  theme: "tertiary",
16159
16289
  icon: "x",
16160
16290
  ":hover": { theme: "secondary" },
@@ -16184,9 +16314,9 @@ var UploadProgress = {
16184
16314
  }
16185
16315
  },
16186
16316
  attr: {
16187
- max: ({ props: props9 }) => props9.max,
16188
- progress: ({ props: props9 }) => props9.progress,
16189
- value: ({ props: props9 }) => props9.value
16317
+ max: ({ props: props7 }) => props7.max,
16318
+ progress: ({ props: props7 }) => props7.progress,
16319
+ value: ({ props: props7 }) => props7.value
16190
16320
  }
16191
16321
  };
16192
16322
 
@@ -16233,7 +16363,7 @@ var Pills = {
16233
16363
  }
16234
16364
  }
16235
16365
  },
16236
- $setCollection: ({ props: props9, state }) => new Array(props9.qty).fill({})
16366
+ $setCollection: ({ props: props7, state }) => new Array(props7.qty).fill({})
16237
16367
  };
16238
16368
 
16239
16369
  // Select/index.js
@@ -16256,28 +16386,28 @@ var Select = {
16256
16386
  disabled: ""
16257
16387
  },
16258
16388
  attr: {
16259
- value: ({ props: props9 }) => props9.value,
16260
- selected: ({ props: props9 }) => props9.selected,
16261
- disabled: ({ props: props9 }) => props9.disabled
16389
+ value: ({ props: props7 }) => props7.value,
16390
+ selected: ({ props: props7 }) => props7.selected,
16391
+ disabled: ({ props: props7 }) => props7.disabled
16262
16392
  }
16263
16393
  },
16264
16394
  attr: {
16265
- name: ({ props: props9 }) => props9.name,
16266
- disabled: ({ props: props9 }) => props9.disabled
16395
+ name: ({ props: props7 }) => props7.name,
16396
+ disabled: ({ props: props7 }) => props7.disabled
16267
16397
  }
16268
16398
  };
16269
16399
 
16270
16400
  // Tab/index.js
16271
- var props7 = {
16272
- border: "1px solid #313141",
16401
+ var props6 = {
16273
16402
  gap: "Z",
16403
+ theme: "tertiary",
16274
16404
  round: "Z2",
16275
- padding: "Y2 Z1",
16405
+ padding: "Y2 A",
16276
16406
  align: "center center"
16277
16407
  };
16278
16408
  var Tab = {
16279
- extend: [Dialog, Button],
16280
- props: props7,
16409
+ extend: Button,
16410
+ props: props6,
16281
16411
  Icon: {
16282
16412
  props: {
16283
16413
  name: "star",
@@ -16291,6 +16421,7 @@ var Tab = {
16291
16421
  Box: {
16292
16422
  text: "19",
16293
16423
  background: "#313141",
16424
+ margin: "- -X - A",
16294
16425
  padding: "Y Y",
16295
16426
  round: "Y1",
16296
16427
  textAlign: "center"
@@ -16298,54 +16429,49 @@ var Tab = {
16298
16429
  };
16299
16430
 
16300
16431
  // Search/index.js
16301
- var props8 = {
16302
- border: "1px solid #313141",
16303
- boxSize: "fit-content fit-content",
16304
- align: "center space-between",
16305
- padding: "B1 -",
16306
- gap: "A2",
16307
- minWidth: "H1",
16308
- round: "A",
16309
- position: "relative",
16310
- maxHeight: "C2"
16311
- };
16312
16432
  var Search = {
16313
- extend: [Flex, Dialog],
16314
- props: props8,
16315
- Button: {
16316
- icon: "search",
16317
- padding: "0",
16318
- background: "transparent",
16319
- color: "white",
16320
- boxSize: "fit-content",
16321
- position: "absolute",
16322
- left: "A2",
16323
- zIndex: "10"
16433
+ extend: Flex,
16434
+ props: {
16435
+ align: "center space-between",
16436
+ padding: "A1 B1",
16437
+ gap: "A2",
16438
+ width: "100%",
16439
+ position: "relative",
16440
+ maxHeight: "C2",
16441
+ fontSize: "A2",
16442
+ transition: "A, defaultBezier",
16443
+ transitionProperty: "background, color, outline, max-width",
16444
+ maxWidth: "H",
16445
+ round: "B1",
16446
+ theme: "tertiary",
16447
+ ":focus-within": {}
16324
16448
  },
16449
+ Icon: { icon: "search" },
16325
16450
  Input: {
16326
16451
  placeholder: "Type a command or search",
16452
+ theme: null,
16327
16453
  background: "transparent",
16328
- color: "white",
16454
+ color: "currentColor",
16329
16455
  flex: "1",
16330
- round: "A",
16331
16456
  position: "absolute",
16332
16457
  boxSize: "100% 100%",
16333
16458
  left: "0",
16334
- padding: "- - - C1",
16459
+ padding: "- - - C3",
16460
+ ":hover": { background: "transparent" },
16461
+ ":focus": { background: "transparent" },
16335
16462
  ":focus + button": { opacity: "1" }
16336
16463
  },
16337
16464
  Button_x: {
16338
16465
  icon: "x",
16339
- padding: "0",
16466
+ padding: "Z2",
16340
16467
  background: "transparent",
16341
16468
  color: "white",
16342
- boxSize: "fit-content fit-content",
16343
16469
  opacity: "0",
16344
16470
  position: "absolute",
16345
- right: "A2",
16471
+ right: "A1",
16346
16472
  Icon: {
16347
- width: `${12 / 16}em`,
16348
- height: `${12 / 16}em`
16473
+ width: "X2",
16474
+ height: "X2"
16349
16475
  }
16350
16476
  }
16351
16477
  };