@symbo.ls/scratch 2.11.131 → 2.11.133
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/LICENSE +21 -0
- package/dist/cjs/defaultConfig/animation.js +26 -0
- package/dist/cjs/defaultConfig/cases.js +26 -0
- package/dist/cjs/defaultConfig/color.js +28 -0
- package/dist/cjs/defaultConfig/document.js +26 -0
- package/dist/cjs/defaultConfig/font-family.js +34 -0
- package/dist/cjs/defaultConfig/font.js +26 -0
- package/dist/cjs/defaultConfig/icons.js +26 -0
- package/dist/cjs/defaultConfig/index.js +221 -0
- package/dist/cjs/defaultConfig/media.js +51 -0
- package/dist/cjs/defaultConfig/responsive.js +50 -0
- package/dist/cjs/defaultConfig/sequence.js +51 -0
- package/dist/cjs/defaultConfig/spacing.js +85 -0
- package/dist/cjs/defaultConfig/svg.js +28 -0
- package/dist/cjs/defaultConfig/templates.js +26 -0
- package/dist/cjs/defaultConfig/theme.js +26 -0
- package/dist/cjs/defaultConfig/timing.js +67 -0
- package/dist/cjs/defaultConfig/typography.js +71 -0
- package/dist/cjs/defaultConfig/unit.js +28 -0
- package/dist/cjs/factory.js +1442 -0
- package/dist/cjs/index.js +3059 -0
- package/dist/cjs/package.json +4 -0
- package/dist/cjs/set.js +2428 -0
- package/dist/cjs/system/color.js +1711 -0
- package/dist/cjs/system/document.js +1504 -0
- package/dist/cjs/system/font.js +1544 -0
- package/dist/cjs/system/index.js +2616 -0
- package/dist/cjs/system/reset.js +1613 -0
- package/dist/cjs/system/spacing.js +1788 -0
- package/dist/cjs/system/svg.js +1615 -0
- package/dist/cjs/system/theme.js +1799 -0
- package/dist/cjs/system/timing.js +1701 -0
- package/dist/cjs/system/typography.js +1754 -0
- package/dist/cjs/tests/index.js +30 -0
- package/dist/cjs/transforms/index.js +1977 -0
- package/dist/cjs/utils/color.js +1399 -0
- package/dist/cjs/utils/font.js +72 -0
- package/dist/cjs/utils/index.js +1977 -0
- package/dist/cjs/utils/sequence.js +1611 -0
- package/dist/cjs/utils/sprite.js +1486 -0
- package/dist/cjs/utils/theme.js +34 -0
- package/dist/cjs/utils/var.js +1467 -0
- package/package.json +2 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 symbo.ls
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/animation.js
|
|
21
|
+
var animation_exports = {};
|
|
22
|
+
__export(animation_exports, {
|
|
23
|
+
ANIMATION: () => ANIMATION
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(animation_exports);
|
|
26
|
+
var ANIMATION = {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/cases.js
|
|
21
|
+
var cases_exports = {};
|
|
22
|
+
__export(cases_exports, {
|
|
23
|
+
CASES: () => CASES
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(cases_exports);
|
|
26
|
+
var CASES = {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/color.js
|
|
21
|
+
var color_exports = {};
|
|
22
|
+
__export(color_exports, {
|
|
23
|
+
COLOR: () => COLOR,
|
|
24
|
+
GRADIENT: () => GRADIENT
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(color_exports);
|
|
27
|
+
var COLOR = {};
|
|
28
|
+
var GRADIENT = {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/document.js
|
|
21
|
+
var document_exports = {};
|
|
22
|
+
__export(document_exports, {
|
|
23
|
+
DOCUMENT: () => DOCUMENT
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(document_exports);
|
|
26
|
+
var DOCUMENT = {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/font-family.js
|
|
21
|
+
var font_family_exports = {};
|
|
22
|
+
__export(font_family_exports, {
|
|
23
|
+
FONT_FACE: () => FONT_FACE,
|
|
24
|
+
FONT_FAMILY: () => FONT_FAMILY,
|
|
25
|
+
FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(font_family_exports);
|
|
28
|
+
var FONT_FAMILY = {};
|
|
29
|
+
var FONT_FAMILY_TYPES = {
|
|
30
|
+
"sans-serif": "Helvetica, Arial, sans-serif, --system-default",
|
|
31
|
+
serif: "Times New Roman, Georgia, serif, --system-default",
|
|
32
|
+
monospace: "Courier New, monospace, --system-default"
|
|
33
|
+
};
|
|
34
|
+
var FONT_FACE = {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/font.js
|
|
21
|
+
var font_exports = {};
|
|
22
|
+
__export(font_exports, {
|
|
23
|
+
FONT: () => FONT
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(font_exports);
|
|
26
|
+
var FONT = {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/icons.js
|
|
21
|
+
var icons_exports = {};
|
|
22
|
+
__export(icons_exports, {
|
|
23
|
+
ICONS: () => ICONS
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(icons_exports);
|
|
26
|
+
var ICONS = {};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/index.js
|
|
21
|
+
var defaultConfig_exports = {};
|
|
22
|
+
__export(defaultConfig_exports, {
|
|
23
|
+
ANIMATION: () => ANIMATION,
|
|
24
|
+
BREAKPOINTS: () => BREAKPOINTS,
|
|
25
|
+
CASES: () => CASES,
|
|
26
|
+
COLOR: () => COLOR,
|
|
27
|
+
DEVICES: () => DEVICES,
|
|
28
|
+
DOCUMENT: () => DOCUMENT,
|
|
29
|
+
FONT: () => FONT,
|
|
30
|
+
FONT_FACE: () => FONT_FACE,
|
|
31
|
+
FONT_FAMILY: () => FONT_FAMILY,
|
|
32
|
+
FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES,
|
|
33
|
+
GRADIENT: () => GRADIENT,
|
|
34
|
+
ICONS: () => ICONS,
|
|
35
|
+
MEDIA: () => MEDIA,
|
|
36
|
+
RESET: () => RESET,
|
|
37
|
+
SEQUENCE: () => SEQUENCE,
|
|
38
|
+
SPACING: () => SPACING,
|
|
39
|
+
SVG: () => SVG,
|
|
40
|
+
SVG_DATA: () => SVG_DATA,
|
|
41
|
+
TEMPLATES: () => TEMPLATES,
|
|
42
|
+
THEME: () => THEME,
|
|
43
|
+
TIMING: () => TIMING,
|
|
44
|
+
TYPOGRAPHY: () => TYPOGRAPHY,
|
|
45
|
+
UNIT: () => UNIT
|
|
46
|
+
});
|
|
47
|
+
module.exports = __toCommonJS(defaultConfig_exports);
|
|
48
|
+
|
|
49
|
+
// src/defaultConfig/sequence.js
|
|
50
|
+
var SEQUENCE = {
|
|
51
|
+
"minor-second": 1.067,
|
|
52
|
+
"major-second": 1.125,
|
|
53
|
+
"minor-third": 1.2,
|
|
54
|
+
"major-third": 1.25,
|
|
55
|
+
"perfect-fourth": 1.333,
|
|
56
|
+
"augmented-fourth": 1.414,
|
|
57
|
+
"perfect-fifth": 1.5,
|
|
58
|
+
"minor-sixth": 1.6,
|
|
59
|
+
phi: 1.618,
|
|
60
|
+
// golden-ratio
|
|
61
|
+
"major-sixth": 1.667,
|
|
62
|
+
"square-root-3": 1.732,
|
|
63
|
+
// theodorus
|
|
64
|
+
"minor-seventh": 1.778,
|
|
65
|
+
"major-seventh": 1.875,
|
|
66
|
+
octave: 2,
|
|
67
|
+
"square-root-5": 2.23,
|
|
68
|
+
// pythagoras
|
|
69
|
+
"major-tenth": 2.5,
|
|
70
|
+
"major-eleventh": 2.667,
|
|
71
|
+
"major-twelfth": 3,
|
|
72
|
+
pi: 3.14,
|
|
73
|
+
// archimedes
|
|
74
|
+
"double-octave": 4
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// src/defaultConfig/unit.js
|
|
78
|
+
var UNIT = {
|
|
79
|
+
default: "em"
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// src/defaultConfig/typography.js
|
|
83
|
+
var defaultProps = {
|
|
84
|
+
browserDefault: 16,
|
|
85
|
+
base: 16,
|
|
86
|
+
type: "font-size",
|
|
87
|
+
ratio: SEQUENCE["minor-third"],
|
|
88
|
+
range: [-3, 12],
|
|
89
|
+
h1Matches: 6,
|
|
90
|
+
lineHeight: 1.5,
|
|
91
|
+
subSequence: true,
|
|
92
|
+
unit: "em",
|
|
93
|
+
templates: {},
|
|
94
|
+
sequence: {},
|
|
95
|
+
scales: {},
|
|
96
|
+
vars: {}
|
|
97
|
+
};
|
|
98
|
+
var TYPOGRAPHY = defaultProps;
|
|
99
|
+
|
|
100
|
+
// src/defaultConfig/font.js
|
|
101
|
+
var FONT = {};
|
|
102
|
+
|
|
103
|
+
// src/defaultConfig/font-family.js
|
|
104
|
+
var FONT_FAMILY = {};
|
|
105
|
+
var FONT_FAMILY_TYPES = {
|
|
106
|
+
"sans-serif": "Helvetica, Arial, sans-serif, --system-default",
|
|
107
|
+
serif: "Times New Roman, Georgia, serif, --system-default",
|
|
108
|
+
monospace: "Courier New, monospace, --system-default"
|
|
109
|
+
};
|
|
110
|
+
var FONT_FACE = {};
|
|
111
|
+
|
|
112
|
+
// src/defaultConfig/media.js
|
|
113
|
+
var MEDIA = {
|
|
114
|
+
tv: "(min-width: 2780px)",
|
|
115
|
+
screenL: "(max-width: 1920px)",
|
|
116
|
+
"screenL<": "(min-width: 1920px)",
|
|
117
|
+
screenM: "(max-width: 1680px)",
|
|
118
|
+
"screenM<": "(min-width: 1680px)",
|
|
119
|
+
screenS: "(max-width: 1440px)",
|
|
120
|
+
"screenS<": "(min-width: 1440px)",
|
|
121
|
+
tabletL: "(max-width: 1366px)",
|
|
122
|
+
"tabletL<": "(min-width: 1366px)",
|
|
123
|
+
tabletM: "(max-width: 1280px)",
|
|
124
|
+
"tabletM<": "(min-width: 1280px)",
|
|
125
|
+
tabletS: "(max-width: 1024px)",
|
|
126
|
+
"tabletS<": "(min-width: 1024px)",
|
|
127
|
+
mobileL: "(max-width: 768px)",
|
|
128
|
+
"mobileL<": "(min-width: 768px)",
|
|
129
|
+
mobileM: "(max-width: 560px)",
|
|
130
|
+
"mobileM<": "(min-width: 560px)",
|
|
131
|
+
mobileS: "(max-width: 480px)",
|
|
132
|
+
"mobileS<": "(min-width: 480px)",
|
|
133
|
+
mobileXS: "(max-width: 375px)",
|
|
134
|
+
"mobileXS<": "(min-width: 375px)",
|
|
135
|
+
light: "(prefers-color-scheme: light)",
|
|
136
|
+
dark: "(prefers-color-scheme: dark)",
|
|
137
|
+
print: "print"
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// src/defaultConfig/spacing.js
|
|
141
|
+
var defaultProps2 = {
|
|
142
|
+
base: TYPOGRAPHY.base,
|
|
143
|
+
type: "spacing",
|
|
144
|
+
ratio: SEQUENCE.phi,
|
|
145
|
+
range: [-5, 15],
|
|
146
|
+
subSequence: true,
|
|
147
|
+
unit: "em",
|
|
148
|
+
sequence: {},
|
|
149
|
+
scales: {},
|
|
150
|
+
vars: {}
|
|
151
|
+
};
|
|
152
|
+
var SPACING = defaultProps2;
|
|
153
|
+
|
|
154
|
+
// src/defaultConfig/color.js
|
|
155
|
+
var COLOR = {};
|
|
156
|
+
var GRADIENT = {};
|
|
157
|
+
|
|
158
|
+
// src/defaultConfig/theme.js
|
|
159
|
+
var THEME = {};
|
|
160
|
+
|
|
161
|
+
// src/defaultConfig/icons.js
|
|
162
|
+
var ICONS = {};
|
|
163
|
+
|
|
164
|
+
// src/defaultConfig/timing.js
|
|
165
|
+
var defaultProps3 = {
|
|
166
|
+
default: 150,
|
|
167
|
+
base: 150,
|
|
168
|
+
type: "timing",
|
|
169
|
+
ratio: SEQUENCE["perfect-fourth"],
|
|
170
|
+
range: [-3, 12],
|
|
171
|
+
unit: "ms",
|
|
172
|
+
sequence: {},
|
|
173
|
+
scales: {},
|
|
174
|
+
vars: {}
|
|
175
|
+
};
|
|
176
|
+
var TIMING = defaultProps3;
|
|
177
|
+
|
|
178
|
+
// src/defaultConfig/document.js
|
|
179
|
+
var DOCUMENT = {};
|
|
180
|
+
|
|
181
|
+
// src/defaultConfig/responsive.js
|
|
182
|
+
var BREAKPOINTS = {
|
|
183
|
+
screenL: 1920,
|
|
184
|
+
screenM: 1680,
|
|
185
|
+
screenS: 1440,
|
|
186
|
+
tabletL: 1366,
|
|
187
|
+
tabletM: 1280,
|
|
188
|
+
tabletS: 1024,
|
|
189
|
+
mobileL: 768,
|
|
190
|
+
mobileM: 560,
|
|
191
|
+
mobileS: 480,
|
|
192
|
+
mobileXS: 375
|
|
193
|
+
};
|
|
194
|
+
var DEVICES = {
|
|
195
|
+
screenL: [1920, 1024],
|
|
196
|
+
screenM: [1680, 1024],
|
|
197
|
+
screenS: [1440, 978],
|
|
198
|
+
tabletL: [1366, 926],
|
|
199
|
+
tabletM: [1280, 768],
|
|
200
|
+
tabletS: [1024, 768],
|
|
201
|
+
mobileL: [768, 375],
|
|
202
|
+
mobileM: [560, 768],
|
|
203
|
+
mobileS: [480, 768],
|
|
204
|
+
mobileXS: [375, 768]
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
// src/defaultConfig/cases.js
|
|
208
|
+
var CASES = {};
|
|
209
|
+
|
|
210
|
+
// src/defaultConfig/animation.js
|
|
211
|
+
var ANIMATION = {};
|
|
212
|
+
|
|
213
|
+
// src/defaultConfig/svg.js
|
|
214
|
+
var SVG = {};
|
|
215
|
+
var SVG_DATA = {};
|
|
216
|
+
|
|
217
|
+
// src/defaultConfig/templates.js
|
|
218
|
+
var TEMPLATES = {};
|
|
219
|
+
|
|
220
|
+
// src/defaultConfig/index.js
|
|
221
|
+
var RESET = {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/media.js
|
|
21
|
+
var media_exports = {};
|
|
22
|
+
__export(media_exports, {
|
|
23
|
+
MEDIA: () => MEDIA
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(media_exports);
|
|
26
|
+
var MEDIA = {
|
|
27
|
+
tv: "(min-width: 2780px)",
|
|
28
|
+
screenL: "(max-width: 1920px)",
|
|
29
|
+
"screenL<": "(min-width: 1920px)",
|
|
30
|
+
screenM: "(max-width: 1680px)",
|
|
31
|
+
"screenM<": "(min-width: 1680px)",
|
|
32
|
+
screenS: "(max-width: 1440px)",
|
|
33
|
+
"screenS<": "(min-width: 1440px)",
|
|
34
|
+
tabletL: "(max-width: 1366px)",
|
|
35
|
+
"tabletL<": "(min-width: 1366px)",
|
|
36
|
+
tabletM: "(max-width: 1280px)",
|
|
37
|
+
"tabletM<": "(min-width: 1280px)",
|
|
38
|
+
tabletS: "(max-width: 1024px)",
|
|
39
|
+
"tabletS<": "(min-width: 1024px)",
|
|
40
|
+
mobileL: "(max-width: 768px)",
|
|
41
|
+
"mobileL<": "(min-width: 768px)",
|
|
42
|
+
mobileM: "(max-width: 560px)",
|
|
43
|
+
"mobileM<": "(min-width: 560px)",
|
|
44
|
+
mobileS: "(max-width: 480px)",
|
|
45
|
+
"mobileS<": "(min-width: 480px)",
|
|
46
|
+
mobileXS: "(max-width: 375px)",
|
|
47
|
+
"mobileXS<": "(min-width: 375px)",
|
|
48
|
+
light: "(prefers-color-scheme: light)",
|
|
49
|
+
dark: "(prefers-color-scheme: dark)",
|
|
50
|
+
print: "print"
|
|
51
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/responsive.js
|
|
21
|
+
var responsive_exports = {};
|
|
22
|
+
__export(responsive_exports, {
|
|
23
|
+
BREAKPOINTS: () => BREAKPOINTS,
|
|
24
|
+
DEVICES: () => DEVICES
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(responsive_exports);
|
|
27
|
+
var BREAKPOINTS = {
|
|
28
|
+
screenL: 1920,
|
|
29
|
+
screenM: 1680,
|
|
30
|
+
screenS: 1440,
|
|
31
|
+
tabletL: 1366,
|
|
32
|
+
tabletM: 1280,
|
|
33
|
+
tabletS: 1024,
|
|
34
|
+
mobileL: 768,
|
|
35
|
+
mobileM: 560,
|
|
36
|
+
mobileS: 480,
|
|
37
|
+
mobileXS: 375
|
|
38
|
+
};
|
|
39
|
+
var DEVICES = {
|
|
40
|
+
screenL: [1920, 1024],
|
|
41
|
+
screenM: [1680, 1024],
|
|
42
|
+
screenS: [1440, 978],
|
|
43
|
+
tabletL: [1366, 926],
|
|
44
|
+
tabletM: [1280, 768],
|
|
45
|
+
tabletS: [1024, 768],
|
|
46
|
+
mobileL: [768, 375],
|
|
47
|
+
mobileM: [560, 768],
|
|
48
|
+
mobileS: [480, 768],
|
|
49
|
+
mobileXS: [375, 768]
|
|
50
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/sequence.js
|
|
21
|
+
var sequence_exports = {};
|
|
22
|
+
__export(sequence_exports, {
|
|
23
|
+
SEQUENCE: () => SEQUENCE
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(sequence_exports);
|
|
26
|
+
var SEQUENCE = {
|
|
27
|
+
"minor-second": 1.067,
|
|
28
|
+
"major-second": 1.125,
|
|
29
|
+
"minor-third": 1.2,
|
|
30
|
+
"major-third": 1.25,
|
|
31
|
+
"perfect-fourth": 1.333,
|
|
32
|
+
"augmented-fourth": 1.414,
|
|
33
|
+
"perfect-fifth": 1.5,
|
|
34
|
+
"minor-sixth": 1.6,
|
|
35
|
+
phi: 1.618,
|
|
36
|
+
// golden-ratio
|
|
37
|
+
"major-sixth": 1.667,
|
|
38
|
+
"square-root-3": 1.732,
|
|
39
|
+
// theodorus
|
|
40
|
+
"minor-seventh": 1.778,
|
|
41
|
+
"major-seventh": 1.875,
|
|
42
|
+
octave: 2,
|
|
43
|
+
"square-root-5": 2.23,
|
|
44
|
+
// pythagoras
|
|
45
|
+
"major-tenth": 2.5,
|
|
46
|
+
"major-eleventh": 2.667,
|
|
47
|
+
"major-twelfth": 3,
|
|
48
|
+
pi: 3.14,
|
|
49
|
+
// archimedes
|
|
50
|
+
"double-octave": 4
|
|
51
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
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/defaultConfig/spacing.js
|
|
21
|
+
var spacing_exports = {};
|
|
22
|
+
__export(spacing_exports, {
|
|
23
|
+
SPACING: () => SPACING
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(spacing_exports);
|
|
26
|
+
|
|
27
|
+
// src/defaultConfig/sequence.js
|
|
28
|
+
var SEQUENCE = {
|
|
29
|
+
"minor-second": 1.067,
|
|
30
|
+
"major-second": 1.125,
|
|
31
|
+
"minor-third": 1.2,
|
|
32
|
+
"major-third": 1.25,
|
|
33
|
+
"perfect-fourth": 1.333,
|
|
34
|
+
"augmented-fourth": 1.414,
|
|
35
|
+
"perfect-fifth": 1.5,
|
|
36
|
+
"minor-sixth": 1.6,
|
|
37
|
+
phi: 1.618,
|
|
38
|
+
// golden-ratio
|
|
39
|
+
"major-sixth": 1.667,
|
|
40
|
+
"square-root-3": 1.732,
|
|
41
|
+
// theodorus
|
|
42
|
+
"minor-seventh": 1.778,
|
|
43
|
+
"major-seventh": 1.875,
|
|
44
|
+
octave: 2,
|
|
45
|
+
"square-root-5": 2.23,
|
|
46
|
+
// pythagoras
|
|
47
|
+
"major-tenth": 2.5,
|
|
48
|
+
"major-eleventh": 2.667,
|
|
49
|
+
"major-twelfth": 3,
|
|
50
|
+
pi: 3.14,
|
|
51
|
+
// archimedes
|
|
52
|
+
"double-octave": 4
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// src/defaultConfig/typography.js
|
|
56
|
+
var defaultProps = {
|
|
57
|
+
browserDefault: 16,
|
|
58
|
+
base: 16,
|
|
59
|
+
type: "font-size",
|
|
60
|
+
ratio: SEQUENCE["minor-third"],
|
|
61
|
+
range: [-3, 12],
|
|
62
|
+
h1Matches: 6,
|
|
63
|
+
lineHeight: 1.5,
|
|
64
|
+
subSequence: true,
|
|
65
|
+
unit: "em",
|
|
66
|
+
templates: {},
|
|
67
|
+
sequence: {},
|
|
68
|
+
scales: {},
|
|
69
|
+
vars: {}
|
|
70
|
+
};
|
|
71
|
+
var TYPOGRAPHY = defaultProps;
|
|
72
|
+
|
|
73
|
+
// src/defaultConfig/spacing.js
|
|
74
|
+
var defaultProps2 = {
|
|
75
|
+
base: TYPOGRAPHY.base,
|
|
76
|
+
type: "spacing",
|
|
77
|
+
ratio: SEQUENCE.phi,
|
|
78
|
+
range: [-5, 15],
|
|
79
|
+
subSequence: true,
|
|
80
|
+
unit: "em",
|
|
81
|
+
sequence: {},
|
|
82
|
+
scales: {},
|
|
83
|
+
vars: {}
|
|
84
|
+
};
|
|
85
|
+
var SPACING = defaultProps2;
|