@symbo.ls/scratch 2.11.249 → 2.11.256

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
@@ -241,7 +241,7 @@ var require_types = __commonJS({
241
241
  __export2(types_exports, {
242
242
  TYPES: () => TYPES,
243
243
  is: () => is,
244
- isArray: () => isArray8,
244
+ isArray: () => isArray9,
245
245
  isBoolean: () => isBoolean,
246
246
  isDate: () => isDate,
247
247
  isDefined: () => isDefined2,
@@ -266,7 +266,7 @@ var require_types = __commonJS({
266
266
  var isFunction2 = (arg) => typeof arg === "function";
267
267
  var isBoolean = (arg) => arg === true || arg === false;
268
268
  var isNull = (arg) => arg === null;
269
- var isArray8 = (arg) => Array.isArray(arg);
269
+ var isArray9 = (arg) => Array.isArray(arg);
270
270
  var isDate = (d) => d instanceof Date;
271
271
  var isObjectLike3 = (arg) => {
272
272
  if (arg === null)
@@ -274,14 +274,14 @@ var require_types = __commonJS({
274
274
  return typeof arg === "object";
275
275
  };
276
276
  var isDefined2 = (arg) => {
277
- return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction2(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
277
+ return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction2(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
278
278
  };
279
279
  var isUndefined = (arg) => {
280
280
  return arg === void 0;
281
281
  };
282
282
  var TYPES = {
283
283
  boolean: isBoolean,
284
- array: isArray8,
284
+ array: isArray9,
285
285
  object: isObject8,
286
286
  string: isString10,
287
287
  date: isDate,
@@ -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)) {
@@ -1761,14 +1761,14 @@ 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]);
1769
+ return Object.values(val);
1768
1770
  if ((0, import_utils3.isNumber)(val))
1769
1771
  return [val];
1770
- if ((0, import_utils3.isArray)(val))
1771
- return val;
1772
1772
  };
1773
1773
 
1774
1774
  // src/factory.js
@@ -2890,7 +2890,7 @@ var getSequence = (sequenceProps) => {
2890
2890
  var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
2891
2891
  const sequence = getSequence(sequenceProps);
2892
2892
  const stack = arrayzeValue(value);
2893
- if (!stack)
2893
+ if (!(0, import_utils18.isArray)(stack))
2894
2894
  return;
2895
2895
  if ((0, import_utils18.isString)(value) && value.includes("calc")) {
2896
2896
  return { [propertyName]: value };
package/dist/cjs/set.js CHANGED
@@ -205,7 +205,7 @@ var require_types = __commonJS({
205
205
  __export2(types_exports, {
206
206
  TYPES: () => TYPES,
207
207
  is: () => is,
208
- isArray: () => isArray8,
208
+ isArray: () => isArray9,
209
209
  isBoolean: () => isBoolean,
210
210
  isDate: () => isDate,
211
211
  isDefined: () => isDefined2,
@@ -230,7 +230,7 @@ var require_types = __commonJS({
230
230
  var isFunction2 = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
233
- var isArray8 = (arg) => Array.isArray(arg);
233
+ var isArray9 = (arg) => Array.isArray(arg);
234
234
  var isDate = (d) => d instanceof Date;
235
235
  var isObjectLike3 = (arg) => {
236
236
  if (arg === null)
@@ -238,14 +238,14 @@ var require_types = __commonJS({
238
238
  return typeof arg === "object";
239
239
  };
240
240
  var isDefined2 = (arg) => {
241
- return isObject8(arg) || isObjectLike3(arg) || isString9(arg) || isNumber3(arg) || isFunction2(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
+ return isObject8(arg) || isObjectLike3(arg) || isString9(arg) || isNumber3(arg) || isFunction2(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined = (arg) => {
244
244
  return arg === void 0;
245
245
  };
246
246
  var TYPES = {
247
247
  boolean: isBoolean,
248
- array: isArray8,
248
+ array: isArray9,
249
249
  object: isObject8,
250
250
  string: isString9,
251
251
  date: isDate,
@@ -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,14 @@ 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]);
1745
+ return Object.values(val);
1744
1746
  if ((0, import_utils4.isNumber)(val))
1745
1747
  return [val];
1746
- if ((0, import_utils4.isArray)(val))
1747
- return val;
1748
1748
  };
1749
1749
 
1750
1750
  // src/utils/sequence.js
@@ -2539,7 +2539,7 @@ var getSequence = (sequenceProps) => {
2539
2539
  var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
2540
2540
  const sequence = getSequence(sequenceProps);
2541
2541
  const stack = arrayzeValue(value);
2542
- if (!stack)
2542
+ if (!(0, import_utils18.isArray)(stack))
2543
2543
  return;
2544
2544
  if ((0, import_utils18.isString)(value) && value.includes("calc")) {
2545
2545
  return { [propertyName]: 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)) {
@@ -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,14 @@ 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]);
1392
+ return Object.values(val);
1391
1393
  if ((0, import_utils2.isNumber)(val))
1392
1394
  return [val];
1393
- if ((0, import_utils2.isArray)(val))
1394
- return val;
1395
1395
  };
1396
1396
 
1397
1397
  // src/factory.js
@@ -205,7 +205,7 @@ var require_types = __commonJS({
205
205
  __export2(types_exports, {
206
206
  TYPES: () => TYPES,
207
207
  is: () => is,
208
- isArray: () => isArray8,
208
+ isArray: () => isArray9,
209
209
  isBoolean: () => isBoolean,
210
210
  isDate: () => isDate,
211
211
  isDefined: () => isDefined2,
@@ -230,7 +230,7 @@ var require_types = __commonJS({
230
230
  var isFunction = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
233
- var isArray8 = (arg) => Array.isArray(arg);
233
+ var isArray9 = (arg) => Array.isArray(arg);
234
234
  var isDate = (d) => d instanceof Date;
235
235
  var isObjectLike3 = (arg) => {
236
236
  if (arg === null)
@@ -238,14 +238,14 @@ var require_types = __commonJS({
238
238
  return typeof arg === "object";
239
239
  };
240
240
  var isDefined2 = (arg) => {
241
- return isObject8(arg) || isObjectLike3(arg) || isString9(arg) || isNumber3(arg) || isFunction(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
+ return isObject8(arg) || isObjectLike3(arg) || isString9(arg) || isNumber3(arg) || isFunction(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined = (arg) => {
244
244
  return arg === void 0;
245
245
  };
246
246
  var TYPES = {
247
247
  boolean: isBoolean,
248
- array: isArray8,
248
+ array: isArray9,
249
249
  object: isObject8,
250
250
  string: isString9,
251
251
  date: isDate,
@@ -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,14 @@ 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]);
1768
+ return Object.values(val);
1767
1769
  if ((0, import_utils4.isNumber)(val))
1768
1770
  return [val];
1769
- if ((0, import_utils4.isArray)(val))
1770
- return val;
1771
1771
  };
1772
1772
 
1773
1773
  // src/utils/sequence.js
@@ -2623,7 +2623,7 @@ var getSequence = (sequenceProps) => {
2623
2623
  var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
2624
2624
  const sequence = getSequence(sequenceProps);
2625
2625
  const stack = arrayzeValue(value);
2626
- if (!stack)
2626
+ if (!(0, import_utils18.isArray)(stack))
2627
2627
  return;
2628
2628
  if ((0, import_utils18.isString)(value) && value.includes("calc")) {
2629
2629
  return { [propertyName]: 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)) {
@@ -205,7 +205,7 @@ var require_types = __commonJS({
205
205
  __export2(types_exports, {
206
206
  TYPES: () => TYPES,
207
207
  is: () => is,
208
- isArray: () => isArray6,
208
+ isArray: () => isArray7,
209
209
  isBoolean: () => isBoolean,
210
210
  isDate: () => isDate,
211
211
  isDefined: () => isDefined2,
@@ -230,7 +230,7 @@ var require_types = __commonJS({
230
230
  var isFunction = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
233
- var isArray6 = (arg) => Array.isArray(arg);
233
+ var isArray7 = (arg) => Array.isArray(arg);
234
234
  var isDate = (d) => d instanceof Date;
235
235
  var isObjectLike2 = (arg) => {
236
236
  if (arg === null)
@@ -238,14 +238,14 @@ var require_types = __commonJS({
238
238
  return typeof arg === "object";
239
239
  };
240
240
  var isDefined2 = (arg) => {
241
- return isObject6(arg) || isObjectLike2(arg) || isString8(arg) || isNumber3(arg) || isFunction(arg) || isArray6(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
+ return isObject6(arg) || isObjectLike2(arg) || isString8(arg) || isNumber3(arg) || isFunction(arg) || isArray7(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined = (arg) => {
244
244
  return arg === void 0;
245
245
  };
246
246
  var TYPES = {
247
247
  boolean: isBoolean,
248
- array: isArray6,
248
+ array: isArray7,
249
249
  object: isObject6,
250
250
  string: isString8,
251
251
  date: isDate,
@@ -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,14 @@ 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]);
1710
+ return Object.values(val);
1709
1711
  if ((0, import_utils4.isNumber)(val))
1710
1712
  return [val];
1711
- if ((0, import_utils4.isArray)(val))
1712
- return val;
1713
1713
  };
1714
1714
 
1715
1715
  // src/utils/sequence.js
@@ -1967,7 +1967,7 @@ var getSequence = (sequenceProps) => {
1967
1967
  var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
1968
1968
  const sequence = getSequence(sequenceProps);
1969
1969
  const stack = arrayzeValue(value);
1970
- if (!stack)
1970
+ if (!(0, import_utils12.isArray)(stack))
1971
1971
  return;
1972
1972
  if ((0, import_utils12.isString)(value) && value.includes("calc")) {
1973
1973
  return { [propertyName]: value };
@@ -205,7 +205,7 @@ var require_types = __commonJS({
205
205
  __export2(types_exports, {
206
206
  TYPES: () => TYPES,
207
207
  is: () => is,
208
- isArray: () => isArray4,
208
+ isArray: () => isArray5,
209
209
  isBoolean: () => isBoolean,
210
210
  isDate: () => isDate,
211
211
  isDefined: () => isDefined2,
@@ -230,7 +230,7 @@ var require_types = __commonJS({
230
230
  var isFunction = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
233
- var isArray4 = (arg) => Array.isArray(arg);
233
+ var isArray5 = (arg) => Array.isArray(arg);
234
234
  var isDate = (d) => d instanceof Date;
235
235
  var isObjectLike2 = (arg) => {
236
236
  if (arg === null)
@@ -238,14 +238,14 @@ var require_types = __commonJS({
238
238
  return typeof arg === "object";
239
239
  };
240
240
  var isDefined2 = (arg) => {
241
- return isObject4(arg) || isObjectLike2(arg) || isString6(arg) || isNumber3(arg) || isFunction(arg) || isArray4(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
+ return isObject4(arg) || isObjectLike2(arg) || isString6(arg) || isNumber3(arg) || isFunction(arg) || isArray5(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined = (arg) => {
244
244
  return arg === void 0;
245
245
  };
246
246
  var TYPES = {
247
247
  boolean: isBoolean,
248
- array: isArray4,
248
+ array: isArray5,
249
249
  object: isObject4,
250
250
  string: isString6,
251
251
  date: isDate,
@@ -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,14 @@ 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]);
1392
+ return Object.values(val);
1391
1393
  if ((0, import_utils2.isNumber)(val))
1392
1394
  return [val];
1393
- if ((0, import_utils2.isArray)(val))
1394
- return val;
1395
1395
  };
1396
1396
 
1397
1397
  // src/system/spacing.js
@@ -1940,7 +1940,7 @@ var getSequence = (sequenceProps) => {
1940
1940
  var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
1941
1941
  const sequence = getSequence(sequenceProps);
1942
1942
  const stack = arrayzeValue(value);
1943
- if (!stack)
1943
+ if (!(0, import_utils10.isArray)(stack))
1944
1944
  return;
1945
1945
  if ((0, import_utils10.isString)(value) && value.includes("calc")) {
1946
1946
  return { [propertyName]: 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)) {
@@ -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)) {
@@ -205,7 +205,7 @@ var require_types = __commonJS({
205
205
  __export2(types_exports, {
206
206
  TYPES: () => TYPES,
207
207
  is: () => is,
208
- isArray: () => isArray8,
208
+ isArray: () => isArray9,
209
209
  isBoolean: () => isBoolean,
210
210
  isDate: () => isDate,
211
211
  isDefined: () => isDefined2,
@@ -230,7 +230,7 @@ var require_types = __commonJS({
230
230
  var isFunction = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
233
- var isArray8 = (arg) => Array.isArray(arg);
233
+ var isArray9 = (arg) => Array.isArray(arg);
234
234
  var isDate = (d) => d instanceof Date;
235
235
  var isObjectLike3 = (arg) => {
236
236
  if (arg === null)
@@ -238,14 +238,14 @@ var require_types = __commonJS({
238
238
  return typeof arg === "object";
239
239
  };
240
240
  var isDefined2 = (arg) => {
241
- return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
+ return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined = (arg) => {
244
244
  return arg === void 0;
245
245
  };
246
246
  var TYPES = {
247
247
  boolean: isBoolean,
248
- array: isArray8,
248
+ array: isArray9,
249
249
  object: isObject8,
250
250
  string: isString10,
251
251
  date: isDate,
@@ -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,14 @@ 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]);
1723
+ return Object.values(val);
1722
1724
  if ((0, import_utils4.isNumber)(val))
1723
1725
  return [val];
1724
- if ((0, import_utils4.isArray)(val))
1725
- return val;
1726
1726
  };
1727
1727
 
1728
1728
  // src/utils/sequence.js
@@ -2024,7 +2024,7 @@ var getSequence = (sequenceProps) => {
2024
2024
  var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
2025
2025
  const sequence = getSequence(sequenceProps);
2026
2026
  const stack = arrayzeValue(value);
2027
- if (!stack)
2027
+ if (!(0, import_utils18.isArray)(stack))
2028
2028
  return;
2029
2029
  if ((0, import_utils18.isString)(value) && value.includes("calc")) {
2030
2030
  return { [propertyName]: 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)) {
@@ -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)) {
@@ -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/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.249",
5
+ "version": "2.11.256",
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": "9c800fdfdff5d9a49083e7d4f849189a35b8054c"
32
+ "gitHead": "4ccedc62510f600e59ec7541ba66e62a724a89db"
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
 
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { arrayzeValue } from '@symbo.ls/utils'
4
- import { isString, merge } from '@domql/utils'
4
+ import { isArray, isString, merge } from '@domql/utils'
5
5
 
6
6
  import { getActiveConfig } from '../factory.js'
7
7
  import {
@@ -71,7 +71,7 @@ export const getSpacingByKey = (
71
71
  const sequence = getSequence(sequenceProps)
72
72
 
73
73
  const stack = arrayzeValue(value)
74
- if (!stack) return
74
+ if (!isArray(stack)) return
75
75
 
76
76
  if (isString(value) && value.includes('calc')) {
77
77
  return { [propertyName]: value }