@symbo.ls/scratch 2.11.515 → 2.11.521
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/cjs/factory.js +6 -6
- package/dist/cjs/index.js +42 -6
- package/dist/cjs/set.js +6 -6
- package/dist/cjs/system/color.js +6 -6
- package/dist/cjs/system/document.js +6 -6
- package/dist/cjs/system/font.js +6 -6
- package/dist/cjs/system/index.js +6 -6
- package/dist/cjs/system/reset.js +6 -6
- package/dist/cjs/system/shadow.js +6 -6
- package/dist/cjs/system/spacing.js +6 -6
- package/dist/cjs/system/svg.js +6 -6
- package/dist/cjs/system/theme.js +6 -6
- package/dist/cjs/system/timing.js +6 -6
- package/dist/cjs/system/typography.js +6 -6
- package/dist/cjs/transforms/index.js +6 -6
- package/dist/cjs/utils/color.js +3 -3
- package/dist/cjs/utils/index.js +41 -6
- package/dist/cjs/utils/sequence.js +41 -6
- package/dist/cjs/utils/sprite.js +6 -6
- package/dist/cjs/utils/var.js +6 -6
- package/package.json +2 -2
- package/src/utils/sequence.js +42 -0
package/dist/cjs/factory.js
CHANGED
|
@@ -29,16 +29,16 @@ __export(factory_exports, {
|
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(factory_exports);
|
|
31
31
|
|
|
32
|
-
//
|
|
32
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
33
33
|
var window2 = globalThis;
|
|
34
34
|
var document2 = window2.document;
|
|
35
35
|
|
|
36
|
-
//
|
|
36
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
37
37
|
var isDOMNode = (obj) => {
|
|
38
38
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
//
|
|
41
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
42
42
|
var isObject = (arg) => {
|
|
43
43
|
if (arg === null)
|
|
44
44
|
return false;
|
|
@@ -63,12 +63,12 @@ var isUndefined = (arg) => {
|
|
|
63
63
|
return arg === void 0;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
//
|
|
66
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
67
67
|
var mergeArray = (arr, exclude = []) => {
|
|
68
68
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
//
|
|
71
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
72
72
|
var __defProp2 = Object.defineProperty;
|
|
73
73
|
var __defProps = Object.defineProperties;
|
|
74
74
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -151,7 +151,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
151
151
|
return clone2;
|
|
152
152
|
};
|
|
153
153
|
|
|
154
|
-
//
|
|
154
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
155
155
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
156
156
|
|
|
157
157
|
// src/defaultConfig/index.js
|
package/dist/cjs/index.js
CHANGED
|
@@ -352,6 +352,7 @@ __export(src_exports, {
|
|
|
352
352
|
findHeadingLetter: () => findHeadingLetter,
|
|
353
353
|
findHeadings: () => findHeadings,
|
|
354
354
|
generateSequence: () => generateSequence,
|
|
355
|
+
generateSequencePosition: () => generateSequencePosition,
|
|
355
356
|
generateSprite: () => generateSprite,
|
|
356
357
|
generateSubSequence: () => generateSubSequence,
|
|
357
358
|
getActiveConfig: () => getActiveConfig,
|
|
@@ -440,6 +441,7 @@ __export(utils_exports, {
|
|
|
440
441
|
findHeadingLetter: () => findHeadingLetter,
|
|
441
442
|
findHeadings: () => findHeadings,
|
|
442
443
|
generateSequence: () => generateSequence,
|
|
444
|
+
generateSequencePosition: () => generateSequencePosition,
|
|
443
445
|
generateSprite: () => generateSprite,
|
|
444
446
|
generateSubSequence: () => generateSubSequence,
|
|
445
447
|
getColorShade: () => getColorShade,
|
|
@@ -484,16 +486,16 @@ var isScalingUnit = (unit) => {
|
|
|
484
486
|
// src/utils/color.js
|
|
485
487
|
var import_globals4 = __toESM(require_cjs(), 1);
|
|
486
488
|
|
|
487
|
-
//
|
|
489
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
488
490
|
var window2 = globalThis;
|
|
489
491
|
var document2 = window2.document;
|
|
490
492
|
|
|
491
|
-
//
|
|
493
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
492
494
|
var isDOMNode = (obj) => {
|
|
493
495
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
494
496
|
};
|
|
495
497
|
|
|
496
|
-
//
|
|
498
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
497
499
|
var isObject = (arg) => {
|
|
498
500
|
if (arg === null)
|
|
499
501
|
return false;
|
|
@@ -518,12 +520,12 @@ var isUndefined = (arg) => {
|
|
|
518
520
|
return arg === void 0;
|
|
519
521
|
};
|
|
520
522
|
|
|
521
|
-
//
|
|
523
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
522
524
|
var mergeArray = (arr, exclude = []) => {
|
|
523
525
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
524
526
|
};
|
|
525
527
|
|
|
526
|
-
//
|
|
528
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
527
529
|
var __defProp2 = Object.defineProperty;
|
|
528
530
|
var __defProps = Object.defineProperties;
|
|
529
531
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -645,7 +647,7 @@ var overwriteDeep = (obj, params, opts = {}, visited = /* @__PURE__ */ new WeakM
|
|
|
645
647
|
return obj;
|
|
646
648
|
};
|
|
647
649
|
|
|
648
|
-
//
|
|
650
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
649
651
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
650
652
|
|
|
651
653
|
// src/utils/color.js
|
|
@@ -1223,6 +1225,40 @@ var generateSequence = (sequenceProps) => {
|
|
|
1223
1225
|
}
|
|
1224
1226
|
return sequenceProps;
|
|
1225
1227
|
};
|
|
1228
|
+
var generateSequencePosition = (sequenceProps, position) => {
|
|
1229
|
+
const { type, base, ratio, subSequence } = sequenceProps;
|
|
1230
|
+
const letterKey = numToLetterMap[position];
|
|
1231
|
+
if (!letterKey) {
|
|
1232
|
+
console.warn(`Position ${position} is out of range in numToLetterMap`);
|
|
1233
|
+
return null;
|
|
1234
|
+
}
|
|
1235
|
+
const result = {
|
|
1236
|
+
sequence: {},
|
|
1237
|
+
scales: {},
|
|
1238
|
+
vars: {},
|
|
1239
|
+
...sequenceProps
|
|
1240
|
+
};
|
|
1241
|
+
const value = base * Math.pow(ratio, position);
|
|
1242
|
+
const scaling = ~~(value / base * 100) / 100;
|
|
1243
|
+
const prefix = "--" + (type && type.replace(".", "-")) + "-";
|
|
1244
|
+
const variable = prefix + letterKey;
|
|
1245
|
+
const scalingVariable = setScalingVar(position, sequenceProps);
|
|
1246
|
+
const props = {
|
|
1247
|
+
key: letterKey,
|
|
1248
|
+
variable,
|
|
1249
|
+
value,
|
|
1250
|
+
base,
|
|
1251
|
+
scaling,
|
|
1252
|
+
scalingVariable,
|
|
1253
|
+
ratio,
|
|
1254
|
+
index: position
|
|
1255
|
+
};
|
|
1256
|
+
setSequenceValue(props, result);
|
|
1257
|
+
if (subSequence) {
|
|
1258
|
+
generateSubSequence(props, result);
|
|
1259
|
+
}
|
|
1260
|
+
return result;
|
|
1261
|
+
};
|
|
1226
1262
|
var getSequenceValue = (value = "A", sequenceProps) => {
|
|
1227
1263
|
const CONFIG2 = getActiveConfig();
|
|
1228
1264
|
const { UNIT: UNIT2 } = CONFIG2;
|
package/dist/cjs/set.js
CHANGED
|
@@ -309,16 +309,16 @@ __export(set_exports, {
|
|
|
309
309
|
});
|
|
310
310
|
module.exports = __toCommonJS(set_exports);
|
|
311
311
|
|
|
312
|
-
//
|
|
312
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
313
313
|
var window2 = globalThis;
|
|
314
314
|
var document2 = window2.document;
|
|
315
315
|
|
|
316
|
-
//
|
|
316
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
317
317
|
var isDOMNode = (obj) => {
|
|
318
318
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
-
//
|
|
321
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
322
322
|
var isObject = (arg) => {
|
|
323
323
|
if (arg === null)
|
|
324
324
|
return false;
|
|
@@ -338,12 +338,12 @@ var isUndefined = (arg) => {
|
|
|
338
338
|
return arg === void 0;
|
|
339
339
|
};
|
|
340
340
|
|
|
341
|
-
//
|
|
341
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
342
342
|
var mergeArray = (arr, exclude = []) => {
|
|
343
343
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
//
|
|
346
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
347
347
|
var __defProp2 = Object.defineProperty;
|
|
348
348
|
var __defProps = Object.defineProperties;
|
|
349
349
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -465,7 +465,7 @@ var overwriteDeep = (obj, params, opts = {}, visited = /* @__PURE__ */ new WeakM
|
|
|
465
465
|
return obj;
|
|
466
466
|
};
|
|
467
467
|
|
|
468
|
-
//
|
|
468
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
469
469
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
470
470
|
|
|
471
471
|
// src/defaultConfig/index.js
|
package/dist/cjs/system/color.js
CHANGED
|
@@ -309,16 +309,16 @@ __export(color_exports, {
|
|
|
309
309
|
});
|
|
310
310
|
module.exports = __toCommonJS(color_exports);
|
|
311
311
|
|
|
312
|
-
//
|
|
312
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
313
313
|
var window2 = globalThis;
|
|
314
314
|
var document2 = window2.document;
|
|
315
315
|
|
|
316
|
-
//
|
|
316
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
317
317
|
var isDOMNode = (obj) => {
|
|
318
318
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
-
//
|
|
321
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
322
322
|
var isObject = (arg) => {
|
|
323
323
|
if (arg === null)
|
|
324
324
|
return false;
|
|
@@ -338,12 +338,12 @@ var isUndefined = (arg) => {
|
|
|
338
338
|
return arg === void 0;
|
|
339
339
|
};
|
|
340
340
|
|
|
341
|
-
//
|
|
341
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
342
342
|
var mergeArray = (arr, exclude = []) => {
|
|
343
343
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
//
|
|
346
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
347
347
|
var __defProp2 = Object.defineProperty;
|
|
348
348
|
var __defProps = Object.defineProperties;
|
|
349
349
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -426,7 +426,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
426
426
|
return clone2;
|
|
427
427
|
};
|
|
428
428
|
|
|
429
|
-
//
|
|
429
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
430
430
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
431
431
|
|
|
432
432
|
// src/defaultConfig/index.js
|
|
@@ -306,16 +306,16 @@ __export(document_exports, {
|
|
|
306
306
|
});
|
|
307
307
|
module.exports = __toCommonJS(document_exports);
|
|
308
308
|
|
|
309
|
-
//
|
|
309
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
310
310
|
var window2 = globalThis;
|
|
311
311
|
var document2 = window2.document;
|
|
312
312
|
|
|
313
|
-
//
|
|
313
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
314
314
|
var isDOMNode = (obj) => {
|
|
315
315
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
//
|
|
318
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
319
319
|
var isFunction = (arg) => typeof arg === "function";
|
|
320
320
|
var isNull = (arg) => arg === null;
|
|
321
321
|
var isArray = (arg) => Array.isArray(arg);
|
|
@@ -328,12 +328,12 @@ var isUndefined = (arg) => {
|
|
|
328
328
|
return arg === void 0;
|
|
329
329
|
};
|
|
330
330
|
|
|
331
|
-
//
|
|
331
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
332
332
|
var mergeArray = (arr, exclude = []) => {
|
|
333
333
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
334
334
|
};
|
|
335
335
|
|
|
336
|
-
//
|
|
336
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
337
337
|
var __defProp2 = Object.defineProperty;
|
|
338
338
|
var __defProps = Object.defineProperties;
|
|
339
339
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -429,7 +429,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
429
429
|
return clone2;
|
|
430
430
|
};
|
|
431
431
|
|
|
432
|
-
//
|
|
432
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
433
433
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
434
434
|
|
|
435
435
|
// src/defaultConfig/index.js
|
package/dist/cjs/system/font.js
CHANGED
|
@@ -308,16 +308,16 @@ __export(font_exports, {
|
|
|
308
308
|
});
|
|
309
309
|
module.exports = __toCommonJS(font_exports);
|
|
310
310
|
|
|
311
|
-
//
|
|
311
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
312
312
|
var window2 = globalThis;
|
|
313
313
|
var document2 = window2.document;
|
|
314
314
|
|
|
315
|
-
//
|
|
315
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
316
316
|
var isDOMNode = (obj) => {
|
|
317
317
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
318
318
|
};
|
|
319
319
|
|
|
320
|
-
//
|
|
320
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
321
321
|
var isObject = (arg) => {
|
|
322
322
|
if (arg === null)
|
|
323
323
|
return false;
|
|
@@ -335,12 +335,12 @@ var isUndefined = (arg) => {
|
|
|
335
335
|
return arg === void 0;
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
//
|
|
338
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
339
339
|
var mergeArray = (arr, exclude = []) => {
|
|
340
340
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
//
|
|
343
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
344
344
|
var __defProp2 = Object.defineProperty;
|
|
345
345
|
var __defProps = Object.defineProperties;
|
|
346
346
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -423,7 +423,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
423
423
|
return clone2;
|
|
424
424
|
};
|
|
425
425
|
|
|
426
|
-
//
|
|
426
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
427
427
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
428
428
|
|
|
429
429
|
// src/system/font.js
|
package/dist/cjs/system/index.js
CHANGED
|
@@ -334,16 +334,16 @@ __export(system_exports, {
|
|
|
334
334
|
});
|
|
335
335
|
module.exports = __toCommonJS(system_exports);
|
|
336
336
|
|
|
337
|
-
//
|
|
337
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
338
338
|
var window2 = globalThis;
|
|
339
339
|
var document2 = window2.document;
|
|
340
340
|
|
|
341
|
-
//
|
|
341
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
342
342
|
var isDOMNode = (obj) => {
|
|
343
343
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
//
|
|
346
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
347
347
|
var isObject = (arg) => {
|
|
348
348
|
if (arg === null)
|
|
349
349
|
return false;
|
|
@@ -363,12 +363,12 @@ var isUndefined = (arg) => {
|
|
|
363
363
|
return arg === void 0;
|
|
364
364
|
};
|
|
365
365
|
|
|
366
|
-
//
|
|
366
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
367
367
|
var mergeArray = (arr, exclude = []) => {
|
|
368
368
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
369
369
|
};
|
|
370
370
|
|
|
371
|
-
//
|
|
371
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
372
372
|
var __defProp2 = Object.defineProperty;
|
|
373
373
|
var __defProps = Object.defineProperties;
|
|
374
374
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -490,7 +490,7 @@ var overwriteDeep = (obj, params, opts = {}, visited = /* @__PURE__ */ new WeakM
|
|
|
490
490
|
return obj;
|
|
491
491
|
};
|
|
492
492
|
|
|
493
|
-
//
|
|
493
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
494
494
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
495
495
|
|
|
496
496
|
// src/defaultConfig/index.js
|
package/dist/cjs/system/reset.js
CHANGED
|
@@ -306,16 +306,16 @@ __export(reset_exports, {
|
|
|
306
306
|
});
|
|
307
307
|
module.exports = __toCommonJS(reset_exports);
|
|
308
308
|
|
|
309
|
-
//
|
|
309
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
310
310
|
var window2 = globalThis;
|
|
311
311
|
var document2 = window2.document;
|
|
312
312
|
|
|
313
|
-
//
|
|
313
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
314
314
|
var isDOMNode = (obj) => {
|
|
315
315
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
//
|
|
318
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
319
319
|
var isString = (arg) => typeof arg === "string";
|
|
320
320
|
var isFunction = (arg) => typeof arg === "function";
|
|
321
321
|
var isNull = (arg) => arg === null;
|
|
@@ -329,12 +329,12 @@ var isUndefined = (arg) => {
|
|
|
329
329
|
return arg === void 0;
|
|
330
330
|
};
|
|
331
331
|
|
|
332
|
-
//
|
|
332
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
333
333
|
var mergeArray = (arr, exclude = []) => {
|
|
334
334
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
//
|
|
337
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
338
338
|
var __defProp2 = Object.defineProperty;
|
|
339
339
|
var __defProps = Object.defineProperties;
|
|
340
340
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -456,7 +456,7 @@ var overwriteDeep = (obj, params, opts = {}, visited = /* @__PURE__ */ new WeakM
|
|
|
456
456
|
return obj;
|
|
457
457
|
};
|
|
458
458
|
|
|
459
|
-
//
|
|
459
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
460
460
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
461
461
|
|
|
462
462
|
// src/defaultConfig/index.js
|
|
@@ -307,16 +307,16 @@ __export(shadow_exports, {
|
|
|
307
307
|
});
|
|
308
308
|
module.exports = __toCommonJS(shadow_exports);
|
|
309
309
|
|
|
310
|
-
//
|
|
310
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
311
311
|
var window2 = globalThis;
|
|
312
312
|
var document2 = window2.document;
|
|
313
313
|
|
|
314
|
-
//
|
|
314
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
315
315
|
var isDOMNode = (obj) => {
|
|
316
316
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
317
317
|
};
|
|
318
318
|
|
|
319
|
-
//
|
|
319
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
320
320
|
var isObject = (arg) => {
|
|
321
321
|
if (arg === null)
|
|
322
322
|
return false;
|
|
@@ -336,12 +336,12 @@ var isUndefined = (arg) => {
|
|
|
336
336
|
return arg === void 0;
|
|
337
337
|
};
|
|
338
338
|
|
|
339
|
-
//
|
|
339
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
340
340
|
var mergeArray = (arr, exclude = []) => {
|
|
341
341
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
342
342
|
};
|
|
343
343
|
|
|
344
|
-
//
|
|
344
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
345
345
|
var __defProp2 = Object.defineProperty;
|
|
346
346
|
var __defProps = Object.defineProperties;
|
|
347
347
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -424,7 +424,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
424
424
|
return clone2;
|
|
425
425
|
};
|
|
426
426
|
|
|
427
|
-
//
|
|
427
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
428
428
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
429
429
|
|
|
430
430
|
// src/defaultConfig/index.js
|
|
@@ -309,16 +309,16 @@ __export(spacing_exports, {
|
|
|
309
309
|
module.exports = __toCommonJS(spacing_exports);
|
|
310
310
|
var import_utils7 = __toESM(require_cjs(), 1);
|
|
311
311
|
|
|
312
|
-
//
|
|
312
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
313
313
|
var window2 = globalThis;
|
|
314
314
|
var document2 = window2.document;
|
|
315
315
|
|
|
316
|
-
//
|
|
316
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
317
317
|
var isDOMNode = (obj) => {
|
|
318
318
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
-
//
|
|
321
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
322
322
|
var isString = (arg) => typeof arg === "string";
|
|
323
323
|
var isFunction = (arg) => typeof arg === "function";
|
|
324
324
|
var isNull = (arg) => arg === null;
|
|
@@ -332,12 +332,12 @@ var isUndefined = (arg) => {
|
|
|
332
332
|
return arg === void 0;
|
|
333
333
|
};
|
|
334
334
|
|
|
335
|
-
//
|
|
335
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
336
336
|
var mergeArray = (arr, exclude = []) => {
|
|
337
337
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
//
|
|
340
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
341
341
|
var __defProp2 = Object.defineProperty;
|
|
342
342
|
var __defProps = Object.defineProperties;
|
|
343
343
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -433,7 +433,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
433
433
|
return clone2;
|
|
434
434
|
};
|
|
435
435
|
|
|
436
|
-
//
|
|
436
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
437
437
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
438
438
|
|
|
439
439
|
// src/defaultConfig/index.js
|
package/dist/cjs/system/svg.js
CHANGED
|
@@ -313,16 +313,16 @@ var import_globals5 = __toESM(require_cjs(), 1);
|
|
|
313
313
|
// src/utils/color.js
|
|
314
314
|
var import_globals4 = __toESM(require_cjs(), 1);
|
|
315
315
|
|
|
316
|
-
//
|
|
316
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
317
317
|
var window2 = globalThis;
|
|
318
318
|
var document2 = window2.document;
|
|
319
319
|
|
|
320
|
-
//
|
|
320
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
321
321
|
var isDOMNode = (obj) => {
|
|
322
322
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
323
323
|
};
|
|
324
324
|
|
|
325
|
-
//
|
|
325
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
326
326
|
var isString = (arg) => typeof arg === "string";
|
|
327
327
|
var isFunction = (arg) => typeof arg === "function";
|
|
328
328
|
var isNull = (arg) => arg === null;
|
|
@@ -336,12 +336,12 @@ var isUndefined = (arg) => {
|
|
|
336
336
|
return arg === void 0;
|
|
337
337
|
};
|
|
338
338
|
|
|
339
|
-
//
|
|
339
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
340
340
|
var mergeArray = (arr, exclude = []) => {
|
|
341
341
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
342
342
|
};
|
|
343
343
|
|
|
344
|
-
//
|
|
344
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
345
345
|
var __defProp2 = Object.defineProperty;
|
|
346
346
|
var __defProps = Object.defineProperties;
|
|
347
347
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -424,7 +424,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
424
424
|
return clone2;
|
|
425
425
|
};
|
|
426
426
|
|
|
427
|
-
//
|
|
427
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
428
428
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
429
429
|
|
|
430
430
|
// src/utils/sequence.js
|
package/dist/cjs/system/theme.js
CHANGED
|
@@ -309,16 +309,16 @@ __export(theme_exports, {
|
|
|
309
309
|
});
|
|
310
310
|
module.exports = __toCommonJS(theme_exports);
|
|
311
311
|
|
|
312
|
-
//
|
|
312
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
313
313
|
var window2 = globalThis;
|
|
314
314
|
var document2 = window2.document;
|
|
315
315
|
|
|
316
|
-
//
|
|
316
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
317
317
|
var isDOMNode = (obj) => {
|
|
318
318
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
-
//
|
|
321
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
322
322
|
var isObject = (arg) => {
|
|
323
323
|
if (arg === null)
|
|
324
324
|
return false;
|
|
@@ -338,12 +338,12 @@ var isUndefined = (arg) => {
|
|
|
338
338
|
return arg === void 0;
|
|
339
339
|
};
|
|
340
340
|
|
|
341
|
-
//
|
|
341
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
342
342
|
var mergeArray = (arr, exclude = []) => {
|
|
343
343
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
344
344
|
};
|
|
345
345
|
|
|
346
|
-
//
|
|
346
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
347
347
|
var __defProp2 = Object.defineProperty;
|
|
348
348
|
var __defProps = Object.defineProperties;
|
|
349
349
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -426,7 +426,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
426
426
|
return clone2;
|
|
427
427
|
};
|
|
428
428
|
|
|
429
|
-
//
|
|
429
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
430
430
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
431
431
|
|
|
432
432
|
// src/defaultConfig/index.js
|
|
@@ -309,16 +309,16 @@ __export(timing_exports, {
|
|
|
309
309
|
module.exports = __toCommonJS(timing_exports);
|
|
310
310
|
var import_utils7 = __toESM(require_cjs(), 1);
|
|
311
311
|
|
|
312
|
-
//
|
|
312
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
313
313
|
var window2 = globalThis;
|
|
314
314
|
var document2 = window2.document;
|
|
315
315
|
|
|
316
|
-
//
|
|
316
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
317
317
|
var isDOMNode = (obj) => {
|
|
318
318
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
-
//
|
|
321
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
322
322
|
var isString = (arg) => typeof arg === "string";
|
|
323
323
|
var isFunction = (arg) => typeof arg === "function";
|
|
324
324
|
var isNull = (arg) => arg === null;
|
|
@@ -332,12 +332,12 @@ var isUndefined = (arg) => {
|
|
|
332
332
|
return arg === void 0;
|
|
333
333
|
};
|
|
334
334
|
|
|
335
|
-
//
|
|
335
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
336
336
|
var mergeArray = (arr, exclude = []) => {
|
|
337
337
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
//
|
|
340
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
341
341
|
var __defProp2 = Object.defineProperty;
|
|
342
342
|
var __defProps = Object.defineProperties;
|
|
343
343
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -420,7 +420,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
420
420
|
return clone2;
|
|
421
421
|
};
|
|
422
422
|
|
|
423
|
-
//
|
|
423
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
424
424
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
425
425
|
|
|
426
426
|
// src/defaultConfig/index.js
|
|
@@ -309,16 +309,16 @@ __export(typography_exports, {
|
|
|
309
309
|
});
|
|
310
310
|
module.exports = __toCommonJS(typography_exports);
|
|
311
311
|
|
|
312
|
-
//
|
|
312
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
313
313
|
var window2 = globalThis;
|
|
314
314
|
var document2 = window2.document;
|
|
315
315
|
|
|
316
|
-
//
|
|
316
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
317
317
|
var isDOMNode = (obj) => {
|
|
318
318
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
-
//
|
|
321
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
322
322
|
var isString = (arg) => typeof arg === "string";
|
|
323
323
|
var isFunction = (arg) => typeof arg === "function";
|
|
324
324
|
var isNull = (arg) => arg === null;
|
|
@@ -332,12 +332,12 @@ var isUndefined = (arg) => {
|
|
|
332
332
|
return arg === void 0;
|
|
333
333
|
};
|
|
334
334
|
|
|
335
|
-
//
|
|
335
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
336
336
|
var mergeArray = (arr, exclude = []) => {
|
|
337
337
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
//
|
|
340
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
341
341
|
var __defProp2 = Object.defineProperty;
|
|
342
342
|
var __defProps = Object.defineProperties;
|
|
343
343
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -433,7 +433,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
433
433
|
return clone2;
|
|
434
434
|
};
|
|
435
435
|
|
|
436
|
-
//
|
|
436
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
437
437
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
438
438
|
|
|
439
439
|
// src/defaultConfig/index.js
|
|
@@ -317,16 +317,16 @@ __export(transforms_exports, {
|
|
|
317
317
|
});
|
|
318
318
|
module.exports = __toCommonJS(transforms_exports);
|
|
319
319
|
|
|
320
|
-
//
|
|
320
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
321
321
|
var window2 = globalThis;
|
|
322
322
|
var document2 = window2.document;
|
|
323
323
|
|
|
324
|
-
//
|
|
324
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
325
325
|
var isDOMNode = (obj) => {
|
|
326
326
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
-
//
|
|
329
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
330
330
|
var isObject = (arg) => {
|
|
331
331
|
if (arg === null)
|
|
332
332
|
return false;
|
|
@@ -346,12 +346,12 @@ var isUndefined = (arg) => {
|
|
|
346
346
|
return arg === void 0;
|
|
347
347
|
};
|
|
348
348
|
|
|
349
|
-
//
|
|
349
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
350
350
|
var mergeArray = (arr, exclude = []) => {
|
|
351
351
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
352
352
|
};
|
|
353
353
|
|
|
354
|
-
//
|
|
354
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
355
355
|
var __defProp2 = Object.defineProperty;
|
|
356
356
|
var __defProps = Object.defineProperties;
|
|
357
357
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -447,7 +447,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
447
447
|
return clone2;
|
|
448
448
|
};
|
|
449
449
|
|
|
450
|
-
//
|
|
450
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
451
451
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
452
452
|
|
|
453
453
|
// src/defaultConfig/index.js
|
package/dist/cjs/utils/color.js
CHANGED
|
@@ -88,15 +88,15 @@ __export(color_exports, {
|
|
|
88
88
|
module.exports = __toCommonJS(color_exports);
|
|
89
89
|
var import_globals4 = __toESM(require_cjs(), 1);
|
|
90
90
|
|
|
91
|
-
//
|
|
91
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
92
92
|
var window2 = globalThis;
|
|
93
93
|
var document2 = window2.document;
|
|
94
94
|
|
|
95
|
-
//
|
|
95
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
96
96
|
var isString = (arg) => typeof arg === "string";
|
|
97
97
|
var isNumber = (arg) => typeof arg === "number";
|
|
98
98
|
|
|
99
|
-
//
|
|
99
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
100
100
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
101
101
|
|
|
102
102
|
// src/utils/color.js
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -311,6 +311,7 @@ __export(utils_exports, {
|
|
|
311
311
|
findHeadingLetter: () => findHeadingLetter,
|
|
312
312
|
findHeadings: () => findHeadings,
|
|
313
313
|
generateSequence: () => generateSequence,
|
|
314
|
+
generateSequencePosition: () => generateSequencePosition,
|
|
314
315
|
generateSprite: () => generateSprite,
|
|
315
316
|
generateSubSequence: () => generateSubSequence,
|
|
316
317
|
getColorShade: () => getColorShade,
|
|
@@ -356,16 +357,16 @@ var isScalingUnit = (unit) => {
|
|
|
356
357
|
// src/utils/color.js
|
|
357
358
|
var import_globals4 = __toESM(require_cjs(), 1);
|
|
358
359
|
|
|
359
|
-
//
|
|
360
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
360
361
|
var window2 = globalThis;
|
|
361
362
|
var document2 = window2.document;
|
|
362
363
|
|
|
363
|
-
//
|
|
364
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
364
365
|
var isDOMNode = (obj) => {
|
|
365
366
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
366
367
|
};
|
|
367
368
|
|
|
368
|
-
//
|
|
369
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
369
370
|
var isString = (arg) => typeof arg === "string";
|
|
370
371
|
var isNumber = (arg) => typeof arg === "number";
|
|
371
372
|
var isFunction = (arg) => typeof arg === "function";
|
|
@@ -380,12 +381,12 @@ var isUndefined = (arg) => {
|
|
|
380
381
|
return arg === void 0;
|
|
381
382
|
};
|
|
382
383
|
|
|
383
|
-
//
|
|
384
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
384
385
|
var mergeArray = (arr, exclude = []) => {
|
|
385
386
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
386
387
|
};
|
|
387
388
|
|
|
388
|
-
//
|
|
389
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
389
390
|
var __defProp2 = Object.defineProperty;
|
|
390
391
|
var __defProps = Object.defineProperties;
|
|
391
392
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -468,7 +469,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
468
469
|
return clone2;
|
|
469
470
|
};
|
|
470
471
|
|
|
471
|
-
//
|
|
472
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
472
473
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
473
474
|
|
|
474
475
|
// src/utils/color.js
|
|
@@ -1033,6 +1034,40 @@ var generateSequence = (sequenceProps) => {
|
|
|
1033
1034
|
}
|
|
1034
1035
|
return sequenceProps;
|
|
1035
1036
|
};
|
|
1037
|
+
var generateSequencePosition = (sequenceProps, position) => {
|
|
1038
|
+
const { type, base, ratio, subSequence } = sequenceProps;
|
|
1039
|
+
const letterKey = numToLetterMap[position];
|
|
1040
|
+
if (!letterKey) {
|
|
1041
|
+
console.warn(`Position ${position} is out of range in numToLetterMap`);
|
|
1042
|
+
return null;
|
|
1043
|
+
}
|
|
1044
|
+
const result = {
|
|
1045
|
+
sequence: {},
|
|
1046
|
+
scales: {},
|
|
1047
|
+
vars: {},
|
|
1048
|
+
...sequenceProps
|
|
1049
|
+
};
|
|
1050
|
+
const value = base * Math.pow(ratio, position);
|
|
1051
|
+
const scaling = ~~(value / base * 100) / 100;
|
|
1052
|
+
const prefix = "--" + (type && type.replace(".", "-")) + "-";
|
|
1053
|
+
const variable = prefix + letterKey;
|
|
1054
|
+
const scalingVariable = setScalingVar(position, sequenceProps);
|
|
1055
|
+
const props = {
|
|
1056
|
+
key: letterKey,
|
|
1057
|
+
variable,
|
|
1058
|
+
value,
|
|
1059
|
+
base,
|
|
1060
|
+
scaling,
|
|
1061
|
+
scalingVariable,
|
|
1062
|
+
ratio,
|
|
1063
|
+
index: position
|
|
1064
|
+
};
|
|
1065
|
+
setSequenceValue(props, result);
|
|
1066
|
+
if (subSequence) {
|
|
1067
|
+
generateSubSequence(props, result);
|
|
1068
|
+
}
|
|
1069
|
+
return result;
|
|
1070
|
+
};
|
|
1036
1071
|
var getSequenceValue = (value = "A", sequenceProps) => {
|
|
1037
1072
|
const CONFIG2 = getActiveConfig();
|
|
1038
1073
|
const { UNIT: UNIT2 } = CONFIG2;
|
|
@@ -269,6 +269,7 @@ __export(sequence_exports, {
|
|
|
269
269
|
findHeadingLetter: () => findHeadingLetter,
|
|
270
270
|
findHeadings: () => findHeadings,
|
|
271
271
|
generateSequence: () => generateSequence,
|
|
272
|
+
generateSequencePosition: () => generateSequencePosition,
|
|
272
273
|
generateSubSequence: () => generateSubSequence,
|
|
273
274
|
getSequenceValue: () => getSequenceValue,
|
|
274
275
|
getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
|
|
@@ -280,16 +281,16 @@ __export(sequence_exports, {
|
|
|
280
281
|
});
|
|
281
282
|
module.exports = __toCommonJS(sequence_exports);
|
|
282
283
|
|
|
283
|
-
//
|
|
284
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
284
285
|
var window2 = globalThis;
|
|
285
286
|
var document2 = window2.document;
|
|
286
287
|
|
|
287
|
-
//
|
|
288
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
288
289
|
var isDOMNode = (obj) => {
|
|
289
290
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
290
291
|
};
|
|
291
292
|
|
|
292
|
-
//
|
|
293
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
293
294
|
var isString = (arg) => typeof arg === "string";
|
|
294
295
|
var isFunction = (arg) => typeof arg === "function";
|
|
295
296
|
var isNull = (arg) => arg === null;
|
|
@@ -303,12 +304,12 @@ var isUndefined = (arg) => {
|
|
|
303
304
|
return arg === void 0;
|
|
304
305
|
};
|
|
305
306
|
|
|
306
|
-
//
|
|
307
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
307
308
|
var mergeArray = (arr, exclude = []) => {
|
|
308
309
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
309
310
|
};
|
|
310
311
|
|
|
311
|
-
//
|
|
312
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
312
313
|
var __defProp2 = Object.defineProperty;
|
|
313
314
|
var __defProps = Object.defineProperties;
|
|
314
315
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -391,7 +392,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
391
392
|
return clone2;
|
|
392
393
|
};
|
|
393
394
|
|
|
394
|
-
//
|
|
395
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
395
396
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
396
397
|
|
|
397
398
|
// src/utils/sequence.js
|
|
@@ -757,6 +758,40 @@ var generateSequence = (sequenceProps) => {
|
|
|
757
758
|
}
|
|
758
759
|
return sequenceProps;
|
|
759
760
|
};
|
|
761
|
+
var generateSequencePosition = (sequenceProps, position) => {
|
|
762
|
+
const { type, base, ratio, subSequence } = sequenceProps;
|
|
763
|
+
const letterKey = numToLetterMap[position];
|
|
764
|
+
if (!letterKey) {
|
|
765
|
+
console.warn(`Position ${position} is out of range in numToLetterMap`);
|
|
766
|
+
return null;
|
|
767
|
+
}
|
|
768
|
+
const result = {
|
|
769
|
+
sequence: {},
|
|
770
|
+
scales: {},
|
|
771
|
+
vars: {},
|
|
772
|
+
...sequenceProps
|
|
773
|
+
};
|
|
774
|
+
const value = base * Math.pow(ratio, position);
|
|
775
|
+
const scaling = ~~(value / base * 100) / 100;
|
|
776
|
+
const prefix = "--" + (type && type.replace(".", "-")) + "-";
|
|
777
|
+
const variable = prefix + letterKey;
|
|
778
|
+
const scalingVariable = setScalingVar(position, sequenceProps);
|
|
779
|
+
const props = {
|
|
780
|
+
key: letterKey,
|
|
781
|
+
variable,
|
|
782
|
+
value,
|
|
783
|
+
base,
|
|
784
|
+
scaling,
|
|
785
|
+
scalingVariable,
|
|
786
|
+
ratio,
|
|
787
|
+
index: position
|
|
788
|
+
};
|
|
789
|
+
setSequenceValue(props, result);
|
|
790
|
+
if (subSequence) {
|
|
791
|
+
generateSubSequence(props, result);
|
|
792
|
+
}
|
|
793
|
+
return result;
|
|
794
|
+
};
|
|
760
795
|
var getSequenceValue = (value = "A", sequenceProps) => {
|
|
761
796
|
const CONFIG2 = getActiveConfig();
|
|
762
797
|
const { UNIT: UNIT2 } = CONFIG2;
|
package/dist/cjs/utils/sprite.js
CHANGED
|
@@ -25,16 +25,16 @@ __export(sprite_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(sprite_exports);
|
|
27
27
|
|
|
28
|
-
//
|
|
28
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
29
29
|
var window2 = globalThis;
|
|
30
30
|
var document2 = window2.document;
|
|
31
31
|
|
|
32
|
-
//
|
|
32
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
33
33
|
var isDOMNode = (obj) => {
|
|
34
34
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
//
|
|
37
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
38
38
|
var isString = (arg) => typeof arg === "string";
|
|
39
39
|
var isFunction = (arg) => typeof arg === "function";
|
|
40
40
|
var isNull = (arg) => arg === null;
|
|
@@ -48,12 +48,12 @@ var isUndefined = (arg) => {
|
|
|
48
48
|
return arg === void 0;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
//
|
|
51
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
52
52
|
var mergeArray = (arr, exclude = []) => {
|
|
53
53
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
//
|
|
56
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
57
57
|
var __defProp2 = Object.defineProperty;
|
|
58
58
|
var __defProps = Object.defineProperties;
|
|
59
59
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -136,7 +136,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
136
136
|
return clone2;
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
//
|
|
139
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
140
140
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
141
141
|
|
|
142
142
|
// src/defaultConfig/index.js
|
package/dist/cjs/utils/var.js
CHANGED
|
@@ -273,16 +273,16 @@ __export(var_exports, {
|
|
|
273
273
|
});
|
|
274
274
|
module.exports = __toCommonJS(var_exports);
|
|
275
275
|
|
|
276
|
-
//
|
|
276
|
+
// ../../node_modules/@domql/utils/dist/esm/globals.js
|
|
277
277
|
var window2 = globalThis;
|
|
278
278
|
var document2 = window2.document;
|
|
279
279
|
|
|
280
|
-
//
|
|
280
|
+
// ../../node_modules/@domql/utils/dist/esm/node.js
|
|
281
281
|
var isDOMNode = (obj) => {
|
|
282
282
|
return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
//
|
|
285
|
+
// ../../node_modules/@domql/utils/dist/esm/types.js
|
|
286
286
|
var isFunction = (arg) => typeof arg === "function";
|
|
287
287
|
var isNull = (arg) => arg === null;
|
|
288
288
|
var isArray = (arg) => Array.isArray(arg);
|
|
@@ -295,12 +295,12 @@ var isUndefined = (arg) => {
|
|
|
295
295
|
return arg === void 0;
|
|
296
296
|
};
|
|
297
297
|
|
|
298
|
-
//
|
|
298
|
+
// ../../node_modules/@domql/utils/dist/esm/array.js
|
|
299
299
|
var mergeArray = (arr, exclude = []) => {
|
|
300
300
|
return arr.reduce((a, c) => deepMerge(a, deepClone(c, { exclude }), exclude), {});
|
|
301
301
|
};
|
|
302
302
|
|
|
303
|
-
//
|
|
303
|
+
// ../../node_modules/@domql/utils/dist/esm/object.js
|
|
304
304
|
var __defProp2 = Object.defineProperty;
|
|
305
305
|
var __defProps = Object.defineProperties;
|
|
306
306
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -383,7 +383,7 @@ var deepClone = (obj, options = {}) => {
|
|
|
383
383
|
return clone2;
|
|
384
384
|
};
|
|
385
385
|
|
|
386
|
-
//
|
|
386
|
+
// ../../node_modules/@domql/utils/dist/esm/cookie.js
|
|
387
387
|
var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
|
|
388
388
|
|
|
389
389
|
// src/defaultConfig/index.js
|
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.
|
|
5
|
+
"version": "2.11.521",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@symbo.ls/utils": "^2.11.512",
|
|
31
31
|
"color-contrast-checker": "^1.5.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "7f30a0846925a2f6db7899fde8bd96c0c87c1bb5"
|
|
34
34
|
}
|
package/src/utils/sequence.js
CHANGED
|
@@ -168,6 +168,48 @@ export const generateSequence = (sequenceProps) => {
|
|
|
168
168
|
return sequenceProps
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
export const generateSequencePosition = (sequenceProps, position) => {
|
|
172
|
+
const { type, base, ratio, subSequence } = sequenceProps
|
|
173
|
+
const letterKey = numToLetterMap[position]
|
|
174
|
+
|
|
175
|
+
if (!letterKey) {
|
|
176
|
+
console.warn(`Position ${position} is out of range in numToLetterMap`)
|
|
177
|
+
return null
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const result = {
|
|
181
|
+
sequence: {},
|
|
182
|
+
scales: {},
|
|
183
|
+
vars: {},
|
|
184
|
+
...sequenceProps
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const value = base * Math.pow(ratio, position)
|
|
188
|
+
const scaling = ~~((value / base) * 100) / 100
|
|
189
|
+
const prefix = '--' + (type && type.replace('.', '-')) + '-'
|
|
190
|
+
const variable = prefix + letterKey
|
|
191
|
+
const scalingVariable = setScalingVar(position, sequenceProps)
|
|
192
|
+
|
|
193
|
+
const props = {
|
|
194
|
+
key: letterKey,
|
|
195
|
+
variable,
|
|
196
|
+
value,
|
|
197
|
+
base,
|
|
198
|
+
scaling,
|
|
199
|
+
scalingVariable,
|
|
200
|
+
ratio,
|
|
201
|
+
index: position
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
setSequenceValue(props, result)
|
|
205
|
+
|
|
206
|
+
if (subSequence) {
|
|
207
|
+
generateSubSequence(props, result)
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return result
|
|
211
|
+
}
|
|
212
|
+
|
|
171
213
|
export const getSequenceValue = (value = 'A', sequenceProps) => {
|
|
172
214
|
const CONFIG = getActiveConfig()
|
|
173
215
|
const { UNIT } = CONFIG
|