@symbo.ls/scratch 2.9.10-0 → 2.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +111 -94
- package/package.json +11 -8
package/dist/index.js
CHANGED
|
@@ -1,8 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
2
6
|
var __export = (target, all) => {
|
|
3
7
|
for (var name in all)
|
|
4
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
9
|
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.js
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
ANIMATION: () => ANIMATION,
|
|
24
|
+
BREAKPOINTS: () => BREAKPOINTS,
|
|
25
|
+
CASES: () => CASES,
|
|
26
|
+
COLOR: () => COLOR,
|
|
27
|
+
CONFIG: () => CONFIG,
|
|
28
|
+
CSS_VARS: () => CSS_VARS,
|
|
29
|
+
DEVICES: () => DEVICES,
|
|
30
|
+
DOCUMENT: () => DOCUMENT,
|
|
31
|
+
FACTORY: () => FACTORY,
|
|
32
|
+
FONT: () => FONT,
|
|
33
|
+
FONT_FACE: () => FONT_FACE,
|
|
34
|
+
FONT_FAMILY: () => FONT_FAMILY,
|
|
35
|
+
FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
|
|
36
|
+
GRADIENT: () => GRADIENT,
|
|
37
|
+
ICONS: () => ICONS,
|
|
38
|
+
MEDIA: () => MEDIA,
|
|
39
|
+
RESET: () => RESET,
|
|
40
|
+
SEQUENCE: () => SEQUENCE,
|
|
41
|
+
SETTERS: () => SETTERS,
|
|
42
|
+
SPACING: () => SPACING,
|
|
43
|
+
THEME: () => THEME,
|
|
44
|
+
TIMING: () => TIMING,
|
|
45
|
+
TYPOGRAPHY: () => TYPOGRAPHY,
|
|
46
|
+
UNIT: () => UNIT,
|
|
47
|
+
activateConfig: () => activateConfig,
|
|
48
|
+
applyDocument: () => applyDocument,
|
|
49
|
+
applyHeadings: () => applyHeadings,
|
|
50
|
+
applyReset: () => applyReset,
|
|
51
|
+
applySequenceVars: () => applySequenceVars,
|
|
52
|
+
applySpacingSequence: () => applySpacingSequence,
|
|
53
|
+
applyTimingSequence: () => applyTimingSequence,
|
|
54
|
+
applyTypographySequence: () => applyTypographySequence,
|
|
55
|
+
arrayze: () => arrayze,
|
|
56
|
+
changeLightness: () => changeLightness,
|
|
57
|
+
colorStringToRgbaArray: () => colorStringToRgbaArray,
|
|
58
|
+
deepMerge: () => deepMerge2,
|
|
59
|
+
findHeadingLetter: () => findHeadingLetter,
|
|
60
|
+
findHeadings: () => findHeadings,
|
|
61
|
+
generateSequence: () => generateSequence,
|
|
62
|
+
generateSubSequence: () => generateSubSequence,
|
|
63
|
+
getActiveConfig: () => getActiveConfig,
|
|
64
|
+
getColor: () => getColor,
|
|
65
|
+
getColorShade: () => getColorShade,
|
|
66
|
+
getDefaultOrFirstKey: () => getDefaultOrFirstKey,
|
|
67
|
+
getFontFace: () => getFontFace,
|
|
68
|
+
getFontFaceEach: () => getFontFaceEach,
|
|
69
|
+
getFontFaceEachString: () => getFontFaceEachString,
|
|
70
|
+
getFontFaceString: () => getFontFaceString,
|
|
71
|
+
getFontFamily: () => getFontFamily,
|
|
72
|
+
getFontFormat: () => getFontFormat,
|
|
73
|
+
getFontSizeByKey: () => getFontSizeByKey,
|
|
74
|
+
getMediaColor: () => getMediaColor,
|
|
75
|
+
getMediaTheme: () => getMediaTheme,
|
|
76
|
+
getSequenceValue: () => getSequenceValue,
|
|
77
|
+
getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
|
|
78
|
+
getSpacingBasedOnRatio: () => getSpacingBasedOnRatio,
|
|
79
|
+
getSpacingByKey: () => getSpacingByKey,
|
|
80
|
+
getTheme: () => getTheme,
|
|
81
|
+
getTimingByKey: () => getTimingByKey,
|
|
82
|
+
getTimingFunction: () => getTimingFunction,
|
|
83
|
+
hexToRgb: () => hexToRgb,
|
|
84
|
+
hexToRgbArray: () => hexToRgbArray,
|
|
85
|
+
hexToRgba: () => hexToRgba,
|
|
86
|
+
hslToRgb: () => hslToRgb,
|
|
87
|
+
isArray: () => isArray2,
|
|
88
|
+
isFunction: () => isFunction2,
|
|
89
|
+
isObject: () => isObject2,
|
|
90
|
+
isObjectLike: () => isObjectLike2,
|
|
91
|
+
isString: () => isString2,
|
|
92
|
+
merge: () => merge2,
|
|
93
|
+
mixTwoColors: () => mixTwoColors,
|
|
94
|
+
mixTwoRgb: () => mixTwoRgb,
|
|
95
|
+
mixTwoRgba: () => mixTwoRgba,
|
|
96
|
+
numToLetterMap: () => numToLetterMap,
|
|
97
|
+
opacify: () => opacify,
|
|
98
|
+
rgbArrayToHex: () => rgbArrayToHex,
|
|
99
|
+
rgbToHSL: () => rgbToHSL,
|
|
100
|
+
rgbToHex: () => rgbToHex,
|
|
101
|
+
runThroughMedia: () => runThroughMedia,
|
|
102
|
+
set: () => set,
|
|
103
|
+
setColor: () => setColor,
|
|
104
|
+
setCustomFont: () => setCustomFont,
|
|
105
|
+
setCustomFontMedia: () => setCustomFontMedia,
|
|
106
|
+
setEach: () => setEach,
|
|
107
|
+
setFont: () => setFont,
|
|
108
|
+
setFontFamily: () => setFontFamily,
|
|
109
|
+
setGradient: () => setGradient,
|
|
110
|
+
setInCustomFontMedia: () => setInCustomFontMedia,
|
|
111
|
+
setMediaTheme: () => setMediaTheme,
|
|
112
|
+
setTheme: () => setTheme,
|
|
113
|
+
setValue: () => setValue,
|
|
114
|
+
setVariables: () => setVariables
|
|
115
|
+
});
|
|
116
|
+
module.exports = __toCommonJS(src_exports);
|
|
6
117
|
|
|
7
118
|
// ../../node_modules/@domql/globals/index.js
|
|
8
119
|
var window2 = globalThis;
|
|
@@ -1435,97 +1546,3 @@ var set = (recivedConfig, options = SET_OPTIONS) => {
|
|
|
1435
1546
|
applyReset();
|
|
1436
1547
|
return CONFIG2;
|
|
1437
1548
|
};
|
|
1438
|
-
export {
|
|
1439
|
-
ANIMATION,
|
|
1440
|
-
BREAKPOINTS,
|
|
1441
|
-
CASES,
|
|
1442
|
-
COLOR,
|
|
1443
|
-
CONFIG,
|
|
1444
|
-
CSS_VARS,
|
|
1445
|
-
DEVICES,
|
|
1446
|
-
DOCUMENT,
|
|
1447
|
-
FACTORY,
|
|
1448
|
-
FONT,
|
|
1449
|
-
FONT_FACE,
|
|
1450
|
-
FONT_FAMILY,
|
|
1451
|
-
FONT_FAMILY_TYPES,
|
|
1452
|
-
GRADIENT,
|
|
1453
|
-
ICONS,
|
|
1454
|
-
MEDIA,
|
|
1455
|
-
RESET,
|
|
1456
|
-
SEQUENCE,
|
|
1457
|
-
SETTERS,
|
|
1458
|
-
SPACING,
|
|
1459
|
-
THEME,
|
|
1460
|
-
TIMING,
|
|
1461
|
-
TYPOGRAPHY,
|
|
1462
|
-
UNIT,
|
|
1463
|
-
activateConfig,
|
|
1464
|
-
applyDocument,
|
|
1465
|
-
applyHeadings,
|
|
1466
|
-
applyReset,
|
|
1467
|
-
applySequenceVars,
|
|
1468
|
-
applySpacingSequence,
|
|
1469
|
-
applyTimingSequence,
|
|
1470
|
-
applyTypographySequence,
|
|
1471
|
-
arrayze,
|
|
1472
|
-
changeLightness,
|
|
1473
|
-
colorStringToRgbaArray,
|
|
1474
|
-
deepMerge2 as deepMerge,
|
|
1475
|
-
findHeadingLetter,
|
|
1476
|
-
findHeadings,
|
|
1477
|
-
generateSequence,
|
|
1478
|
-
generateSubSequence,
|
|
1479
|
-
getActiveConfig,
|
|
1480
|
-
getColor,
|
|
1481
|
-
getColorShade,
|
|
1482
|
-
getDefaultOrFirstKey,
|
|
1483
|
-
getFontFace,
|
|
1484
|
-
getFontFaceEach,
|
|
1485
|
-
getFontFaceEachString,
|
|
1486
|
-
getFontFaceString,
|
|
1487
|
-
getFontFamily,
|
|
1488
|
-
getFontFormat,
|
|
1489
|
-
getFontSizeByKey,
|
|
1490
|
-
getMediaColor,
|
|
1491
|
-
getMediaTheme,
|
|
1492
|
-
getSequenceValue,
|
|
1493
|
-
getSequenceValuePropertyPair,
|
|
1494
|
-
getSpacingBasedOnRatio,
|
|
1495
|
-
getSpacingByKey,
|
|
1496
|
-
getTheme,
|
|
1497
|
-
getTimingByKey,
|
|
1498
|
-
getTimingFunction,
|
|
1499
|
-
hexToRgb,
|
|
1500
|
-
hexToRgbArray,
|
|
1501
|
-
hexToRgba,
|
|
1502
|
-
hslToRgb,
|
|
1503
|
-
isArray2 as isArray,
|
|
1504
|
-
isFunction2 as isFunction,
|
|
1505
|
-
isObject2 as isObject,
|
|
1506
|
-
isObjectLike2 as isObjectLike,
|
|
1507
|
-
isString2 as isString,
|
|
1508
|
-
merge2 as merge,
|
|
1509
|
-
mixTwoColors,
|
|
1510
|
-
mixTwoRgb,
|
|
1511
|
-
mixTwoRgba,
|
|
1512
|
-
numToLetterMap,
|
|
1513
|
-
opacify,
|
|
1514
|
-
rgbArrayToHex,
|
|
1515
|
-
rgbToHSL,
|
|
1516
|
-
rgbToHex,
|
|
1517
|
-
runThroughMedia,
|
|
1518
|
-
set,
|
|
1519
|
-
setColor,
|
|
1520
|
-
setCustomFont,
|
|
1521
|
-
setCustomFontMedia,
|
|
1522
|
-
setEach,
|
|
1523
|
-
setFont,
|
|
1524
|
-
setFontFamily,
|
|
1525
|
-
setGradient,
|
|
1526
|
-
setInCustomFontMedia,
|
|
1527
|
-
setMediaTheme,
|
|
1528
|
-
setTheme,
|
|
1529
|
-
setValue,
|
|
1530
|
-
setVariables
|
|
1531
|
-
};
|
package/package.json
CHANGED
|
@@ -2,26 +2,29 @@
|
|
|
2
2
|
"name": "@symbo.ls/scratch",
|
|
3
3
|
"description": "Φ / CSS framework and methodology.",
|
|
4
4
|
"author": "symbo.ls",
|
|
5
|
-
"version": "2.9.10
|
|
5
|
+
"version": "2.9.10",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"repository": "https://github.com/symbo-ls/scratch",
|
|
11
11
|
"source": "src/index.js",
|
|
12
|
-
"main": "
|
|
12
|
+
"main": "src/index.js",
|
|
13
13
|
"publishConfig": {},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@domql/utils": "latest",
|
|
16
|
-
"@symbo.ls/utils": "latest",
|
|
17
|
-
"color-contrast-checker": "^1.5.0"
|
|
18
|
-
},
|
|
19
14
|
"scripts": {
|
|
20
15
|
"standard": "npx standard \"src/**/*.js\"",
|
|
21
16
|
"test": "yarn standard && jest --coverage --coverageReporters=text-lcov | coveralls",
|
|
22
17
|
"test-watch": "jest --watch",
|
|
23
18
|
"bump": "npx np"
|
|
24
19
|
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@domql/utils": "latest",
|
|
22
|
+
"@symbo.ls/utils": "latest",
|
|
23
|
+
"color-contrast-checker": "^1.5.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@emotion/css": "^11.5.0"
|
|
27
|
+
},
|
|
25
28
|
"devDependencies": {
|
|
26
29
|
"@babel/core": "^7.11.5",
|
|
27
30
|
"@babel/preset-env": "^7.18.9",
|
|
@@ -59,5 +62,5 @@
|
|
|
59
62
|
"outputFormat": "commonjs",
|
|
60
63
|
"includeNodeModules": true
|
|
61
64
|
},
|
|
62
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e7e2ad37403518d13a611379ab6278934c260bb5"
|
|
63
66
|
}
|