@symbo.ls/scratch 2.11.239 → 2.11.249

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.
@@ -212,7 +212,7 @@ var require_types = __commonJS({
212
212
  isFunction: () => isFunction,
213
213
  isNot: () => isNot,
214
214
  isNull: () => isNull,
215
- isNumber: () => isNumber,
215
+ isNumber: () => isNumber2,
216
216
  isObject: () => isObject4,
217
217
  isObjectLike: () => isObjectLike,
218
218
  isString: () => isString3,
@@ -226,7 +226,7 @@ var require_types = __commonJS({
226
226
  return typeof arg === "object" && arg.constructor === Object;
227
227
  };
228
228
  var isString3 = (arg) => typeof arg === "string";
229
- var isNumber = (arg) => typeof arg === "number";
229
+ var isNumber2 = (arg) => typeof arg === "number";
230
230
  var isFunction = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
@@ -238,7 +238,7 @@ var require_types = __commonJS({
238
238
  return typeof arg === "object";
239
239
  };
240
240
  var isDefined2 = (arg) => {
241
- return isObject4(arg) || isObjectLike(arg) || isString3(arg) || isNumber(arg) || isFunction(arg) || isArray3(arg) || isObjectLike(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
+ return isObject4(arg) || isObjectLike(arg) || isString3(arg) || isNumber2(arg) || isFunction(arg) || isArray3(arg) || isObjectLike(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined = (arg) => {
244
244
  return arg === void 0;
@@ -249,7 +249,7 @@ var require_types = __commonJS({
249
249
  object: isObject4,
250
250
  string: isString3,
251
251
  date: isDate,
252
- number: isNumber,
252
+ number: isNumber2,
253
253
  null: isNull,
254
254
  function: isFunction,
255
255
  objectLike: isObjectLike,
@@ -1456,26 +1456,6 @@ var FONT_FACE = {};
1456
1456
  // src/defaultConfig/media.js
1457
1457
  var MEDIA = {
1458
1458
  tv: "(min-width: 2780px)",
1459
- screenL: "(max-width: 1920px)",
1460
- "screenL<": "(min-width: 1920px)",
1461
- screenM: "(max-width: 1680px)",
1462
- "screenM<": "(min-width: 1680px)",
1463
- screenS: "(max-width: 1440px)",
1464
- "screenS<": "(min-width: 1440px)",
1465
- tabletL: "(max-width: 1366px)",
1466
- "tabletL<": "(min-width: 1366px)",
1467
- tabletM: "(max-width: 1280px)",
1468
- "tabletM<": "(min-width: 1280px)",
1469
- tabletS: "(max-width: 1024px)",
1470
- "tabletS<": "(min-width: 1024px)",
1471
- mobileL: "(max-width: 768px)",
1472
- "mobileL<": "(min-width: 768px)",
1473
- mobileM: "(max-width: 560px)",
1474
- "mobileM<": "(min-width: 560px)",
1475
- mobileS: "(max-width: 480px)",
1476
- "mobileS<": "(min-width: 480px)",
1477
- mobileXS: "(max-width: 375px)",
1478
- "mobileXS<": "(min-width: 375px)",
1479
1459
  light: "(prefers-color-scheme: light)",
1480
1460
  dark: "(prefers-color-scheme: dark)",
1481
1461
  print: "print"
@@ -1438,26 +1438,6 @@ var FONT_FACE = {};
1438
1438
  // src/defaultConfig/media.js
1439
1439
  var MEDIA = {
1440
1440
  tv: "(min-width: 2780px)",
1441
- screenL: "(max-width: 1920px)",
1442
- "screenL<": "(min-width: 1920px)",
1443
- screenM: "(max-width: 1680px)",
1444
- "screenM<": "(min-width: 1680px)",
1445
- screenS: "(max-width: 1440px)",
1446
- "screenS<": "(min-width: 1440px)",
1447
- tabletL: "(max-width: 1366px)",
1448
- "tabletL<": "(min-width: 1366px)",
1449
- tabletM: "(max-width: 1280px)",
1450
- "tabletM<": "(min-width: 1280px)",
1451
- tabletS: "(max-width: 1024px)",
1452
- "tabletS<": "(min-width: 1024px)",
1453
- mobileL: "(max-width: 768px)",
1454
- "mobileL<": "(min-width: 768px)",
1455
- mobileM: "(max-width: 560px)",
1456
- "mobileM<": "(min-width: 560px)",
1457
- mobileS: "(max-width: 480px)",
1458
- "mobileS<": "(min-width: 480px)",
1459
- mobileXS: "(max-width: 375px)",
1460
- "mobileXS<": "(min-width: 375px)",
1461
1441
  light: "(prefers-color-scheme: light)",
1462
1442
  dark: "(prefers-color-scheme: dark)",
1463
1443
  print: "print"
@@ -212,7 +212,7 @@ var require_types = __commonJS({
212
212
  isFunction: () => isFunction,
213
213
  isNot: () => isNot,
214
214
  isNull: () => isNull,
215
- isNumber: () => isNumber,
215
+ isNumber: () => isNumber2,
216
216
  isObject: () => isObject4,
217
217
  isObjectLike: () => isObjectLike2,
218
218
  isString: () => isString3,
@@ -226,7 +226,7 @@ var require_types = __commonJS({
226
226
  return typeof arg === "object" && arg.constructor === Object;
227
227
  };
228
228
  var isString3 = (arg) => typeof arg === "string";
229
- var isNumber = (arg) => typeof arg === "number";
229
+ var isNumber2 = (arg) => typeof arg === "number";
230
230
  var isFunction = (arg) => typeof arg === "function";
231
231
  var isBoolean = (arg) => arg === true || arg === false;
232
232
  var isNull = (arg) => arg === null;
@@ -238,7 +238,7 @@ var require_types = __commonJS({
238
238
  return typeof arg === "object";
239
239
  };
240
240
  var isDefined2 = (arg) => {
241
- return isObject4(arg) || isObjectLike2(arg) || isString3(arg) || isNumber(arg) || isFunction(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
241
+ return isObject4(arg) || isObjectLike2(arg) || isString3(arg) || isNumber2(arg) || isFunction(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined = (arg) => {
244
244
  return arg === void 0;
@@ -249,7 +249,7 @@ var require_types = __commonJS({
249
249
  object: isObject4,
250
250
  string: isString3,
251
251
  date: isDate,
252
- number: isNumber,
252
+ number: isNumber2,
253
253
  null: isNull,
254
254
  function: isFunction,
255
255
  objectLike: isObjectLike2,
@@ -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
  });
@@ -1440,26 +1440,6 @@ var FONT_FACE = {};
1440
1440
  // src/defaultConfig/media.js
1441
1441
  var MEDIA = {
1442
1442
  tv: "(min-width: 2780px)",
1443
- screenL: "(max-width: 1920px)",
1444
- "screenL<": "(min-width: 1920px)",
1445
- screenM: "(max-width: 1680px)",
1446
- "screenM<": "(min-width: 1680px)",
1447
- screenS: "(max-width: 1440px)",
1448
- "screenS<": "(min-width: 1440px)",
1449
- tabletL: "(max-width: 1366px)",
1450
- "tabletL<": "(min-width: 1366px)",
1451
- tabletM: "(max-width: 1280px)",
1452
- "tabletM<": "(min-width: 1280px)",
1453
- tabletS: "(max-width: 1024px)",
1454
- "tabletS<": "(min-width: 1024px)",
1455
- mobileL: "(max-width: 768px)",
1456
- "mobileL<": "(min-width: 768px)",
1457
- mobileM: "(max-width: 560px)",
1458
- "mobileM<": "(min-width: 560px)",
1459
- mobileS: "(max-width: 480px)",
1460
- "mobileS<": "(min-width: 480px)",
1461
- mobileXS: "(max-width: 375px)",
1462
- "mobileXS<": "(min-width: 375px)",
1463
1443
  light: "(prefers-color-scheme: light)",
1464
1444
  dark: "(prefers-color-scheme: dark)",
1465
1445
  print: "print"
@@ -1607,7 +1587,7 @@ var setVariables = (result, key) => {
1607
1587
  CSS_VARS2[result.var] = result.value;
1608
1588
  }
1609
1589
  };
1610
- var applyGlobalVars = (vars, obj, options) => {
1590
+ var applySequenceGlobalVars = (vars, obj, options) => {
1611
1591
  const CONFIG2 = getActiveConfig();
1612
1592
  const { UNIT: UNIT2 } = CONFIG2;
1613
1593
  const unit = obj.unit || UNIT2.default;
@@ -1628,7 +1608,7 @@ var applySequenceVars = (FACTORY2, options = {}) => {
1628
1608
  const unit = FACTORY2.unit || UNIT2.default;
1629
1609
  const { mediaRegenerate, sequence, scales } = FACTORY2;
1630
1610
  if (!mediaRegenerate) {
1631
- applyGlobalVars(CSS_VARS2, FACTORY2, options);
1611
+ applySequenceGlobalVars(CSS_VARS2, FACTORY2, options);
1632
1612
  }
1633
1613
  for (const key in sequence) {
1634
1614
  const item = sequence[key];
@@ -1660,7 +1640,7 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
1660
1640
  let underMediaQuery = CSS_VARS2[`@media ${query}`];
1661
1641
  if (!underMediaQuery)
1662
1642
  underMediaQuery = CSS_VARS2[`@media ${query}`] = {};
1663
- applyGlobalVars(underMediaQuery, FACTORY2[media], options);
1643
+ applySequenceGlobalVars(underMediaQuery, FACTORY2[media], options);
1664
1644
  return;
1665
1645
  }
1666
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.239",
5
+ "version": "2.11.249",
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": "41a7706e6ed0e20fce89aa1a0ed4975f7aa92aac"
32
+ "gitHead": "9c800fdfdff5d9a49083e7d4f849189a35b8054c"
33
33
  }
@@ -3,27 +3,6 @@
3
3
  export const MEDIA = {
4
4
  tv: '(min-width: 2780px)',
5
5
 
6
- screenL: '(max-width: 1920px)',
7
- 'screenL<': '(min-width: 1920px)',
8
- screenM: '(max-width: 1680px)',
9
- 'screenM<': '(min-width: 1680px)',
10
- screenS: '(max-width: 1440px)',
11
- 'screenS<': '(min-width: 1440px)',
12
- tabletL: '(max-width: 1366px)',
13
- 'tabletL<': '(min-width: 1366px)',
14
- tabletM: '(max-width: 1280px)',
15
- 'tabletM<': '(min-width: 1280px)',
16
- tabletS: '(max-width: 1024px)',
17
- 'tabletS<': '(min-width: 1024px)',
18
- mobileL: '(max-width: 768px)',
19
- 'mobileL<': '(min-width: 768px)',
20
- mobileM: '(max-width: 560px)',
21
- 'mobileM<': '(min-width: 560px)',
22
- mobileS: '(max-width: 480px)',
23
- 'mobileS<': '(min-width: 480px)',
24
- mobileXS: '(max-width: 375px)',
25
- 'mobileXS<': '(min-width: 375px)',
26
-
27
6
  light: '(prefers-color-scheme: light)',
28
7
  dark: '(prefers-color-scheme: dark)',
29
8
 
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