@symbo.ls/scratch 2.11.247 → 2.11.255

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.
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
package/dist/cjs/index.js CHANGED
@@ -688,7 +688,7 @@ var require_object = __commonJS({
688
688
  const spaces = " ".repeat(indent);
689
689
  let str = "{\n";
690
690
  for (const [key, value] of Object.entries(obj)) {
691
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
691
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
692
692
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
693
693
  str += `${spaces} ${stringedKey}: `;
694
694
  if ((0, import_types.isArray)(value)) {
@@ -1401,10 +1401,10 @@ __export(src_exports, {
1401
1401
  appendIconsSprite: () => appendIconsSprite,
1402
1402
  appendSVGSprite: () => appendSVGSprite,
1403
1403
  applyDocument: () => applyDocument,
1404
- applyGlobalVars: () => applyGlobalVars,
1405
1404
  applyHeadings: () => applyHeadings,
1406
1405
  applyMediaSequenceVars: () => applyMediaSequenceVars,
1407
1406
  applyReset: () => applyReset,
1407
+ applySequenceGlobalVars: () => applySequenceGlobalVars,
1408
1408
  applySequenceVars: () => applySequenceVars,
1409
1409
  applySpacingSequence: () => applySpacingSequence,
1410
1410
  applyTimingSequence: () => applyTimingSequence,
@@ -1492,8 +1492,8 @@ module.exports = __toCommonJS(src_exports);
1492
1492
  // src/utils/index.js
1493
1493
  var utils_exports = {};
1494
1494
  __export(utils_exports, {
1495
- applyGlobalVars: () => applyGlobalVars,
1496
1495
  applyMediaSequenceVars: () => applyMediaSequenceVars,
1496
+ applySequenceGlobalVars: () => applySequenceGlobalVars,
1497
1497
  applySequenceVars: () => applySequenceVars,
1498
1498
  changeLightness: () => changeLightness,
1499
1499
  colorStringToRgbaArray: () => colorStringToRgbaArray,
@@ -1761,14 +1761,13 @@ var toCamelCase = (str) => {
1761
1761
  };
1762
1762
  var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
1763
1763
  var arrayzeValue = (val) => {
1764
+ if ((0, import_utils3.isArray)(val))
1765
+ return val;
1764
1766
  if ((0, import_utils3.isString)(val))
1765
1767
  return val.split(" ");
1766
1768
  if ((0, import_utils3.isObject)(val))
1767
- return Object.keys(val).map((v) => val[v]);
1768
- if ((0, import_utils3.isNumber)(val))
1769
- return [val];
1770
- if ((0, import_utils3.isArray)(val))
1771
- return val;
1769
+ return Object.values(val);
1770
+ return [val];
1772
1771
  };
1773
1772
 
1774
1773
  // src/factory.js
@@ -2210,7 +2209,7 @@ var setVariables = (result, key) => {
2210
2209
  CSS_VARS2[result.var] = result.value;
2211
2210
  }
2212
2211
  };
2213
- var applyGlobalVars = (vars, obj, options) => {
2212
+ var applySequenceGlobalVars = (vars, obj, options) => {
2214
2213
  const CONFIG2 = getActiveConfig();
2215
2214
  const { UNIT: UNIT2 } = CONFIG2;
2216
2215
  const unit = obj.unit || UNIT2.default;
@@ -2231,7 +2230,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
2231
2230
  const unit = FACTORY2.unit || UNIT2.default;
2232
2231
  const { mediaRegenerate, sequence, scales } = FACTORY2;
2233
2232
  if (!mediaRegenerate) {
2234
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
2233
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
2235
2234
  }
2236
2235
  for (const key in sequence) {
2237
2236
  const item = sequence[key];
@@ -2263,7 +2262,7 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
2263
2262
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
2264
2263
  if (!underMediaQuery)
2265
2264
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
2266
- applyGlobalVars(underMediaQuery, FACTORY2[media], options);
2265
+ applySequenceGlobalVars(underMediaQuery, FACTORY2[media], options);
2267
2266
  return;
2268
2267
  }
2269
2268
  for (const key in sequence) {
package/dist/cjs/set.js CHANGED
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1737,14 +1737,13 @@ var import_utils3 = __toESM(require_cjs());
1737
1737
  // ../utils/src/index.js
1738
1738
  var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
1739
1739
  var arrayzeValue = (val) => {
1740
+ if ((0, import_utils4.isArray)(val))
1741
+ return val;
1740
1742
  if ((0, import_utils4.isString)(val))
1741
1743
  return val.split(" ");
1742
1744
  if ((0, import_utils4.isObject)(val))
1743
- return Object.keys(val).map((v) => val[v]);
1744
- if ((0, import_utils4.isNumber)(val))
1745
- return [val];
1746
- if ((0, import_utils4.isArray)(val))
1747
- return val;
1745
+ return Object.values(val);
1746
+ return [val];
1748
1747
  };
1749
1748
 
1750
1749
  // src/utils/sequence.js
@@ -1955,7 +1954,7 @@ var findHeadings = (propertyNames) => {
1955
1954
 
1956
1955
  // src/utils/var.js
1957
1956
  var import_utils7 = __toESM(require_cjs(), 1);
1958
- var applyGlobalVars = (vars, obj, options) => {
1957
+ var applySequenceGlobalVars = (vars, obj, options) => {
1959
1958
  const CONFIG2 = getActiveConfig();
1960
1959
  const { UNIT: UNIT2 } = CONFIG2;
1961
1960
  const unit = obj.unit || UNIT2.default;
@@ -1976,7 +1975,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
1976
1975
  const unit = FACTORY2.unit || UNIT2.default;
1977
1976
  const { mediaRegenerate, sequence, scales } = FACTORY2;
1978
1977
  if (!mediaRegenerate) {
1979
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
1978
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
1980
1979
  }
1981
1980
  for (const key in sequence) {
1982
1981
  const item = sequence[key];
@@ -2008,7 +2007,7 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
2008
2007
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
2009
2008
  if (!underMediaQuery)
2010
2009
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
2011
- applyGlobalVars(underMediaQuery, FACTORY2[media], options);
2010
+ applySequenceGlobalVars(underMediaQuery, FACTORY2[media], options);
2012
2011
  return;
2013
2012
  }
2014
2013
  for (const key in sequence) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1384,14 +1384,13 @@ var import_utils = __toESM(require_cjs());
1384
1384
 
1385
1385
  // ../utils/src/index.js
1386
1386
  var arrayzeValue = (val) => {
1387
+ if ((0, import_utils2.isArray)(val))
1388
+ return val;
1387
1389
  if ((0, import_utils2.isString)(val))
1388
1390
  return val.split(" ");
1389
1391
  if ((0, import_utils2.isObject)(val))
1390
- return Object.keys(val).map((v) => val[v]);
1391
- if ((0, import_utils2.isNumber)(val))
1392
- return [val];
1393
- if ((0, import_utils2.isArray)(val))
1394
- return val;
1392
+ return Object.values(val);
1393
+ return [val];
1395
1394
  };
1396
1395
 
1397
1396
  // src/factory.js
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1760,14 +1760,13 @@ var toCamelCase = (str) => {
1760
1760
  };
1761
1761
  var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
1762
1762
  var arrayzeValue = (val) => {
1763
+ if ((0, import_utils4.isArray)(val))
1764
+ return val;
1763
1765
  if ((0, import_utils4.isString)(val))
1764
1766
  return val.split(" ");
1765
1767
  if ((0, import_utils4.isObject)(val))
1766
- return Object.keys(val).map((v) => val[v]);
1767
- if ((0, import_utils4.isNumber)(val))
1768
- return [val];
1769
- if ((0, import_utils4.isArray)(val))
1770
- return val;
1768
+ return Object.values(val);
1769
+ return [val];
1771
1770
  };
1772
1771
 
1773
1772
  // src/utils/sequence.js
@@ -1978,7 +1977,7 @@ var findHeadings = (propertyNames) => {
1978
1977
 
1979
1978
  // src/utils/var.js
1980
1979
  var import_utils7 = __toESM(require_cjs(), 1);
1981
- var applyGlobalVars = (vars, obj, options) => {
1980
+ var applySequenceGlobalVars = (vars, obj, options) => {
1982
1981
  const CONFIG2 = getActiveConfig();
1983
1982
  const { UNIT: UNIT2 } = CONFIG2;
1984
1983
  const unit = obj.unit || UNIT2.default;
@@ -1999,7 +1998,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
1999
1998
  const unit = FACTORY2.unit || UNIT2.default;
2000
1999
  const { mediaRegenerate, sequence, scales } = FACTORY2;
2001
2000
  if (!mediaRegenerate) {
2002
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
2001
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
2003
2002
  }
2004
2003
  for (const key in sequence) {
2005
2004
  const item = sequence[key];
@@ -2031,7 +2030,7 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
2031
2030
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
2032
2031
  if (!underMediaQuery)
2033
2032
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
2034
- applyGlobalVars(underMediaQuery, FACTORY2[media], options);
2033
+ applySequenceGlobalVars(underMediaQuery, FACTORY2[media], options);
2035
2034
  return;
2036
2035
  }
2037
2036
  for (const key in sequence) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1702,14 +1702,13 @@ var import_utils3 = __toESM(require_cjs());
1702
1702
  // ../utils/src/index.js
1703
1703
  var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
1704
1704
  var arrayzeValue = (val) => {
1705
+ if ((0, import_utils4.isArray)(val))
1706
+ return val;
1705
1707
  if ((0, import_utils4.isString)(val))
1706
1708
  return val.split(" ");
1707
1709
  if ((0, import_utils4.isObject)(val))
1708
- return Object.keys(val).map((v) => val[v]);
1709
- if ((0, import_utils4.isNumber)(val))
1710
- return [val];
1711
- if ((0, import_utils4.isArray)(val))
1712
- return val;
1710
+ return Object.values(val);
1711
+ return [val];
1713
1712
  };
1714
1713
 
1715
1714
  // src/utils/sequence.js
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1384,14 +1384,13 @@ var import_utils = __toESM(require_cjs());
1384
1384
  // ../utils/src/index.js
1385
1385
  var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
1386
1386
  var arrayzeValue = (val) => {
1387
+ if ((0, import_utils2.isArray)(val))
1388
+ return val;
1387
1389
  if ((0, import_utils2.isString)(val))
1388
1390
  return val.split(" ");
1389
1391
  if ((0, import_utils2.isObject)(val))
1390
- return Object.keys(val).map((v) => val[v]);
1391
- if ((0, import_utils2.isNumber)(val))
1392
- return [val];
1393
- if ((0, import_utils2.isArray)(val))
1394
- return val;
1392
+ return Object.values(val);
1393
+ return [val];
1395
1394
  };
1396
1395
 
1397
1396
  // src/system/spacing.js
@@ -1817,7 +1816,7 @@ var getSequenceValuePropertyPair = (value, propertyName, sequenceProps) => {
1817
1816
 
1818
1817
  // src/utils/var.js
1819
1818
  var import_utils7 = __toESM(require_cjs(), 1);
1820
- var applyGlobalVars = (vars, obj, options) => {
1819
+ var applySequenceGlobalVars = (vars, obj, options) => {
1821
1820
  const CONFIG2 = getActiveConfig();
1822
1821
  const { UNIT: UNIT2 } = CONFIG2;
1823
1822
  const unit = obj.unit || UNIT2.default;
@@ -1838,7 +1837,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
1838
1837
  const unit = FACTORY2.unit || UNIT2.default;
1839
1838
  const { mediaRegenerate, sequence, scales } = FACTORY2;
1840
1839
  if (!mediaRegenerate) {
1841
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
1840
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
1842
1841
  }
1843
1842
  for (const key in sequence) {
1844
1843
  const item = sequence[key];
@@ -1870,7 +1869,7 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
1870
1869
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
1871
1870
  if (!underMediaQuery)
1872
1871
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
1873
- applyGlobalVars(underMediaQuery, FACTORY2[media], options);
1872
+ applySequenceGlobalVars(underMediaQuery, FACTORY2[media], options);
1874
1873
  return;
1875
1874
  }
1876
1875
  for (const key in sequence) {
@@ -688,7 +688,7 @@ var require_object = __commonJS({
688
688
  const spaces = " ".repeat(indent);
689
689
  let str = "{\n";
690
690
  for (const [key, value] of Object.entries(obj)) {
691
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
691
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
692
692
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
693
693
  str += `${spaces} ${stringedKey}: `;
694
694
  if ((0, import_types.isArray)(value)) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1809,7 +1809,7 @@ var getSequenceValuePropertyPair = (value, propertyName, sequenceProps) => {
1809
1809
 
1810
1810
  // src/utils/var.js
1811
1811
  var import_utils7 = __toESM(require_cjs(), 1);
1812
- var applyGlobalVars = (vars, obj, options) => {
1812
+ var applySequenceGlobalVars = (vars, obj, options) => {
1813
1813
  const CONFIG2 = getActiveConfig();
1814
1814
  const { UNIT: UNIT2 } = CONFIG2;
1815
1815
  const unit = obj.unit || UNIT2.default;
@@ -1830,7 +1830,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
1830
1830
  const unit = FACTORY2.unit || UNIT2.default;
1831
1831
  const { mediaRegenerate, sequence, scales } = FACTORY2;
1832
1832
  if (!mediaRegenerate) {
1833
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
1833
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
1834
1834
  }
1835
1835
  for (const key in sequence) {
1836
1836
  const item = sequence[key];
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1816,7 +1816,7 @@ var findHeadings = (propertyNames) => {
1816
1816
 
1817
1817
  // src/utils/var.js
1818
1818
  var import_utils7 = __toESM(require_cjs(), 1);
1819
- var applyGlobalVars = (vars, obj, options) => {
1819
+ var applySequenceGlobalVars = (vars, obj, options) => {
1820
1820
  const CONFIG2 = getActiveConfig();
1821
1821
  const { UNIT: UNIT2 } = CONFIG2;
1822
1822
  const unit = obj.unit || UNIT2.default;
@@ -1837,7 +1837,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
1837
1837
  const unit = FACTORY2.unit || UNIT2.default;
1838
1838
  const { mediaRegenerate, sequence, scales } = FACTORY2;
1839
1839
  if (!mediaRegenerate) {
1840
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
1840
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
1841
1841
  }
1842
1842
  for (const key in sequence) {
1843
1843
  const item = sequence[key];
@@ -1869,7 +1869,7 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
1869
1869
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
1870
1870
  if (!underMediaQuery)
1871
1871
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
1872
- applyGlobalVars(underMediaQuery, FACTORY2[media], options);
1872
+ applySequenceGlobalVars(underMediaQuery, FACTORY2[media], options);
1873
1873
  return;
1874
1874
  }
1875
1875
  for (const key in sequence) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1715,14 +1715,13 @@ var toCamelCase = (str) => {
1715
1715
  };
1716
1716
  var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
1717
1717
  var arrayzeValue = (val) => {
1718
+ if ((0, import_utils4.isArray)(val))
1719
+ return val;
1718
1720
  if ((0, import_utils4.isString)(val))
1719
1721
  return val.split(" ");
1720
1722
  if ((0, import_utils4.isObject)(val))
1721
- return Object.keys(val).map((v) => val[v]);
1722
- if ((0, import_utils4.isNumber)(val))
1723
- return [val];
1724
- if ((0, import_utils4.isArray)(val))
1725
- return val;
1723
+ return Object.values(val);
1724
+ return [val];
1726
1725
  };
1727
1726
 
1728
1727
  // src/utils/sequence.js
@@ -688,7 +688,7 @@ var require_object = __commonJS({
688
688
  const spaces = " ".repeat(indent);
689
689
  let str = "{\n";
690
690
  for (const [key, value] of Object.entries(obj)) {
691
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
691
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
692
692
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
693
693
  str += `${spaces} ${stringedKey}: `;
694
694
  if ((0, import_types.isArray)(value)) {
@@ -688,7 +688,7 @@ var require_object = __commonJS({
688
688
  const spaces = " ".repeat(indent);
689
689
  let str = "{\n";
690
690
  for (const [key, value] of Object.entries(obj)) {
691
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
691
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
692
692
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
693
693
  str += `${spaces} ${stringedKey}: `;
694
694
  if ((0, import_types.isArray)(value)) {
@@ -1369,8 +1369,8 @@ var require_cjs2 = __commonJS({
1369
1369
  // src/utils/index.js
1370
1370
  var utils_exports = {};
1371
1371
  __export(utils_exports, {
1372
- applyGlobalVars: () => applyGlobalVars,
1373
1372
  applyMediaSequenceVars: () => applyMediaSequenceVars,
1373
+ applySequenceGlobalVars: () => applySequenceGlobalVars,
1374
1374
  applySequenceVars: () => applySequenceVars,
1375
1375
  changeLightness: () => changeLightness,
1376
1376
  colorStringToRgbaArray: () => colorStringToRgbaArray,
@@ -2060,7 +2060,7 @@ var setVariables = (result, key) => {
2060
2060
  CSS_VARS2[result.var] = result.value;
2061
2061
  }
2062
2062
  };
2063
- var applyGlobalVars = (vars, obj, options) => {
2063
+ var applySequenceGlobalVars = (vars, obj, options) => {
2064
2064
  const CONFIG2 = getActiveConfig();
2065
2065
  const { UNIT: UNIT2 } = CONFIG2;
2066
2066
  const unit = obj.unit || UNIT2.default;
@@ -2081,7 +2081,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
2081
2081
  const unit = FACTORY2.unit || UNIT2.default;
2082
2082
  const { mediaRegenerate, sequence, scales } = FACTORY2;
2083
2083
  if (!mediaRegenerate) {
2084
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
2084
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
2085
2085
  }
2086
2086
  for (const key in sequence) {
2087
2087
  const item = sequence[key];
@@ -2113,7 +2113,7 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
2113
2113
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
2114
2114
  if (!underMediaQuery)
2115
2115
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
2116
- applyGlobalVars(underMediaQuery, FACTORY2[media], options);
2116
+ applySequenceGlobalVars(underMediaQuery, FACTORY2[media], options);
2117
2117
  return;
2118
2118
  }
2119
2119
  for (const key in sequence) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -652,7 +652,7 @@ var require_object = __commonJS({
652
652
  const spaces = " ".repeat(indent);
653
653
  let str = "{\n";
654
654
  for (const [key, value] of Object.entries(obj)) {
655
- const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "@", ".", "/", "!", " "]);
655
+ const keyNotAllowdChars = (0, import_string.stringIncludesAny)(key, ["&", "*", "-", ":", "%", "{", "}", ">", "<", "@", ".", "/", "!", " "]);
656
656
  const stringedKey = keyNotAllowdChars ? `'${key}'` : key;
657
657
  str += `${spaces} ${stringedKey}: `;
658
658
  if ((0, import_types.isArray)(value)) {
@@ -1333,8 +1333,8 @@ var require_cjs = __commonJS({
1333
1333
  // src/utils/var.js
1334
1334
  var var_exports = {};
1335
1335
  __export(var_exports, {
1336
- applyGlobalVars: () => applyGlobalVars,
1337
1336
  applyMediaSequenceVars: () => applyMediaSequenceVars,
1337
+ applySequenceGlobalVars: () => applySequenceGlobalVars,
1338
1338
  applySequenceVars: () => applySequenceVars,
1339
1339
  setVariables: () => setVariables
1340
1340
  });
@@ -1587,7 +1587,7 @@ var setVariables = (result, key) => {
1587
1587
  CSS_VARS2[result.var] = result.value;
1588
1588
  }
1589
1589
  };
1590
- var applyGlobalVars = (vars, obj, options) => {
1590
+ var applySequenceGlobalVars = (vars, obj, options) => {
1591
1591
  const CONFIG2 = getActiveConfig();
1592
1592
  const { UNIT: UNIT2 } = CONFIG2;
1593
1593
  const unit = obj.unit || UNIT2.default;
@@ -1608,7 +1608,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
1608
1608
  const unit = FACTORY2.unit || UNIT2.default;
1609
1609
  const { mediaRegenerate, sequence, scales } = FACTORY2;
1610
1610
  if (!mediaRegenerate) {
1611
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
1611
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
1612
1612
  }
1613
1613
  for (const key in sequence) {
1614
1614
  const item = sequence[key];
@@ -1640,7 +1640,7 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
1640
1640
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
1641
1641
  if (!underMediaQuery)
1642
1642
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
1643
- applyGlobalVars(underMediaQuery, FACTORY2[media], options);
1643
+ applySequenceGlobalVars(underMediaQuery, FACTORY2[media], options);
1644
1644
  return;
1645
1645
  }
1646
1646
  for (const key in sequence) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "2.11.247",
5
+ "version": "2.11.255",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -29,5 +29,5 @@
29
29
  "@symbo.ls/utils": "latest",
30
30
  "color-contrast-checker": "^1.5.0"
31
31
  },
32
- "gitHead": "8d02fd2978b0ae207eab84fcb3f5e2be11351e61"
32
+ "gitHead": "789077788ae862a474a34ae9d8844186c44624c1"
33
33
  }
@@ -18,6 +18,7 @@ export const setFont = (val, key) => {
18
18
  const fontFace = val[0]
19
19
  ? getFontFaceEach(key, val)
20
20
  : setCustomFontMedia(key, val.url)
21
+
21
22
  return { var: CSSvar, value: val, fontFace }
22
23
  }
23
24
 
package/src/utils/var.js CHANGED
@@ -16,7 +16,7 @@ export const setVariables = (result, key) => {
16
16
  }
17
17
  }
18
18
 
19
- export const applyGlobalVars = (vars, obj, options) => {
19
+ export const applySequenceGlobalVars = (vars, obj, options) => {
20
20
  const CONFIG = getActiveConfig()
21
21
  const { UNIT } = CONFIG
22
22
  const unit = obj.unit || UNIT.default
@@ -44,7 +44,7 @@ export const applySequenceVars = (FACTORY, options = {}) => {
44
44
  const { mediaRegenerate, sequence, scales } = FACTORY
45
45
 
46
46
  if (!mediaRegenerate) {
47
- applyGlobalVars(CSS_VARS, FACTORY, options)
47
+ applySequenceGlobalVars(CSS_VARS, FACTORY, options)
48
48
  }
49
49
 
50
50
  for (const key in sequence) {
@@ -88,7 +88,7 @@ export const applyMediaSequenceVars = (FACTORY, media, options = {}) => {
88
88
  if (!mediaRegenerate) {
89
89
  let underMediaQuery = CSS_VARS[`@media ${query}`]
90
90
  if (!underMediaQuery) underMediaQuery = CSS_VARS[`@media ${query}`] = {}
91
- applyGlobalVars(underMediaQuery, FACTORY[media], options)
91
+ applySequenceGlobalVars(underMediaQuery, FACTORY[media], options)
92
92
  return
93
93
  }
94
94