@symbo.ls/scratch 2.10.149 → 2.10.156
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/defaultConfig/animation.js +24 -0
- package/dist/cjs/defaultConfig/cases.js +24 -0
- package/dist/cjs/defaultConfig/color.js +32 -0
- package/dist/cjs/defaultConfig/document.js +24 -0
- package/dist/cjs/defaultConfig/font-family.js +39 -0
- package/dist/cjs/defaultConfig/font.js +33 -0
- package/dist/cjs/defaultConfig/icons.js +24 -0
- package/dist/cjs/defaultConfig/index.js +41 -0
- package/dist/cjs/defaultConfig/media.js +39 -0
- package/dist/cjs/defaultConfig/responsive.js +48 -0
- package/dist/cjs/defaultConfig/sequence.js +49 -0
- package/dist/cjs/defaultConfig/spacing.js +36 -0
- package/dist/cjs/defaultConfig/svg.js +26 -0
- package/dist/cjs/defaultConfig/theme.js +36 -0
- package/dist/cjs/defaultConfig/timing.js +36 -0
- package/dist/cjs/defaultConfig/typography.js +39 -0
- package/dist/cjs/defaultConfig/unit.js +26 -0
- package/dist/cjs/factory.js +69 -0
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/package.json +4 -0
- package/dist/cjs/set.js +121 -0
- package/dist/cjs/system/color.js +169 -0
- package/dist/cjs/system/document.js +35 -0
- package/dist/cjs/system/font.js +50 -0
- package/dist/cjs/system/index.js +26 -0
- package/dist/cjs/system/reset.js +83 -0
- package/dist/cjs/system/spacing.js +129 -0
- package/dist/cjs/system/svg.js +81 -0
- package/dist/cjs/system/theme.js +255 -0
- package/dist/cjs/system/timing.js +48 -0
- package/dist/cjs/system/typography.js +94 -0
- package/dist/cjs/tests/index.js +28 -0
- package/dist/cjs/utils/color.js +163 -0
- package/dist/cjs/utils/font.js +70 -0
- package/dist/cjs/utils/index.js +23 -0
- package/dist/cjs/utils/object.js +73 -0
- package/dist/cjs/utils/sequence.js +199 -0
- package/dist/cjs/utils/sprite.js +63 -0
- package/dist/cjs/utils/theme.js +32 -0
- package/dist/cjs/utils/var.js +64 -0
- package/dist/esm/defaultConfig/animation.js +4 -0
- package/dist/esm/defaultConfig/cases.js +4 -0
- package/dist/esm/defaultConfig/color.js +12 -0
- package/dist/esm/defaultConfig/document.js +4 -0
- package/dist/esm/defaultConfig/font-family.js +19 -0
- package/dist/esm/defaultConfig/font.js +13 -0
- package/dist/esm/defaultConfig/icons.js +4 -0
- package/dist/esm/defaultConfig/index.js +20 -0
- package/dist/esm/defaultConfig/media.js +19 -0
- package/dist/esm/defaultConfig/responsive.js +28 -0
- package/dist/esm/defaultConfig/sequence.js +29 -0
- package/dist/esm/defaultConfig/spacing.js +16 -0
- package/dist/esm/defaultConfig/svg.js +6 -0
- package/dist/esm/defaultConfig/theme.js +16 -0
- package/dist/esm/defaultConfig/timing.js +16 -0
- package/dist/esm/defaultConfig/typography.js +19 -0
- package/dist/esm/defaultConfig/unit.js +6 -0
- package/dist/esm/factory.js +39 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/set.js +113 -0
- package/dist/esm/system/color.js +156 -0
- package/dist/esm/system/document.js +15 -0
- package/dist/esm/system/font.js +35 -0
- package/dist/esm/system/index.js +9 -0
- package/dist/esm/system/reset.js +63 -0
- package/dist/esm/system/spacing.js +115 -0
- package/dist/esm/system/svg.js +61 -0
- package/dist/esm/system/theme.js +240 -0
- package/dist/esm/system/timing.js +32 -0
- package/dist/esm/system/typography.js +80 -0
- package/dist/esm/tests/index.js +8 -0
- package/dist/esm/utils/color.js +143 -0
- package/dist/esm/utils/font.js +50 -0
- package/dist/esm/utils/index.js +6 -0
- package/dist/esm/utils/object.js +53 -0
- package/dist/esm/utils/sequence.js +179 -0
- package/dist/esm/utils/sprite.js +43 -0
- package/dist/esm/utils/theme.js +12 -0
- package/dist/esm/utils/var.js +44 -0
- package/package.json +15 -15
- package/dist/index.cjs.js +0 -2389
- package/dist/index.cjs.js.map +0 -7
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
var animation_exports = {};
|
|
20
|
+
__export(animation_exports, {
|
|
21
|
+
ANIMATION: () => ANIMATION
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(animation_exports);
|
|
24
|
+
const ANIMATION = {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
var cases_exports = {};
|
|
20
|
+
__export(cases_exports, {
|
|
21
|
+
CASES: () => CASES
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(cases_exports);
|
|
24
|
+
const CASES = {};
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
var color_exports = {};
|
|
20
|
+
__export(color_exports, {
|
|
21
|
+
COLOR: () => COLOR,
|
|
22
|
+
GRADIENT: () => GRADIENT
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(color_exports);
|
|
25
|
+
var proto = {
|
|
26
|
+
// eslint-disable-line
|
|
27
|
+
name: "",
|
|
28
|
+
value: "",
|
|
29
|
+
themes: {}
|
|
30
|
+
};
|
|
31
|
+
const COLOR = {};
|
|
32
|
+
const GRADIENT = {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
var document_exports = {};
|
|
20
|
+
__export(document_exports, {
|
|
21
|
+
DOCUMENT: () => DOCUMENT
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(document_exports);
|
|
24
|
+
const DOCUMENT = {};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
var font_family_exports = {};
|
|
20
|
+
__export(font_family_exports, {
|
|
21
|
+
FONT_FACE: () => FONT_FACE,
|
|
22
|
+
FONT_FAMILY: () => FONT_FAMILY,
|
|
23
|
+
FONT_FAMILY_TYPES: () => FONT_FAMILY_TYPES
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(font_family_exports);
|
|
26
|
+
var import_utils = require("../utils");
|
|
27
|
+
var defaultFont = {
|
|
28
|
+
// eslint-disable-line
|
|
29
|
+
name: "",
|
|
30
|
+
family: "",
|
|
31
|
+
type: ""
|
|
32
|
+
};
|
|
33
|
+
const FONT_FAMILY = {};
|
|
34
|
+
const FONT_FAMILY_TYPES = {
|
|
35
|
+
"sans-serif": "Helvetica, Arial, sans-serif, --system-default",
|
|
36
|
+
serif: "Times New Roman, Georgia, serif, --system-default",
|
|
37
|
+
monospace: "Courier New, monospace, --system-default"
|
|
38
|
+
};
|
|
39
|
+
const FONT_FACE = (0, import_utils.getFontFace)(FONT_FAMILY);
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
var font_exports = {};
|
|
20
|
+
__export(font_exports, {
|
|
21
|
+
FONT: () => FONT
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(font_exports);
|
|
24
|
+
var defFont = {
|
|
25
|
+
// eslint-disable-line
|
|
26
|
+
name: "",
|
|
27
|
+
url: "",
|
|
28
|
+
fontStyle: "",
|
|
29
|
+
fontWeight: 500,
|
|
30
|
+
fontStretch: "normal",
|
|
31
|
+
fontOpticalSizing: "auto"
|
|
32
|
+
};
|
|
33
|
+
const FONT = {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
var icons_exports = {};
|
|
20
|
+
__export(icons_exports, {
|
|
21
|
+
ICONS: () => ICONS
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(icons_exports);
|
|
24
|
+
const ICONS = {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var defaultConfig_exports = {};
|
|
21
|
+
__export(defaultConfig_exports, {
|
|
22
|
+
RESET: () => RESET
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(defaultConfig_exports);
|
|
25
|
+
__reExport(defaultConfig_exports, require("./sequence.js"), module.exports);
|
|
26
|
+
__reExport(defaultConfig_exports, require("./unit.js"), module.exports);
|
|
27
|
+
__reExport(defaultConfig_exports, require("./typography.js"), module.exports);
|
|
28
|
+
__reExport(defaultConfig_exports, require("./font.js"), module.exports);
|
|
29
|
+
__reExport(defaultConfig_exports, require("./font-family.js"), module.exports);
|
|
30
|
+
__reExport(defaultConfig_exports, require("./media.js"), module.exports);
|
|
31
|
+
__reExport(defaultConfig_exports, require("./spacing.js"), module.exports);
|
|
32
|
+
__reExport(defaultConfig_exports, require("./color.js"), module.exports);
|
|
33
|
+
__reExport(defaultConfig_exports, require("./theme.js"), module.exports);
|
|
34
|
+
__reExport(defaultConfig_exports, require("./icons.js"), module.exports);
|
|
35
|
+
__reExport(defaultConfig_exports, require("./timing.js"), module.exports);
|
|
36
|
+
__reExport(defaultConfig_exports, require("./document.js"), module.exports);
|
|
37
|
+
__reExport(defaultConfig_exports, require("./responsive.js"), module.exports);
|
|
38
|
+
__reExport(defaultConfig_exports, require("./cases.js"), module.exports);
|
|
39
|
+
__reExport(defaultConfig_exports, require("./animation.js"), module.exports);
|
|
40
|
+
__reExport(defaultConfig_exports, require("./svg.js"), module.exports);
|
|
41
|
+
const RESET = {};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
var media_exports = {};
|
|
20
|
+
__export(media_exports, {
|
|
21
|
+
MEDIA: () => MEDIA
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(media_exports);
|
|
24
|
+
const MEDIA = {
|
|
25
|
+
tv: "(min-width: 2780px)",
|
|
26
|
+
screenL: "(max-width: 1920px)",
|
|
27
|
+
screenM: "(max-width: 1680px)",
|
|
28
|
+
screenS: "(max-width: 1440px)",
|
|
29
|
+
tabletL: "(max-width: 1366px)",
|
|
30
|
+
tabletM: "(max-width: 1280px)",
|
|
31
|
+
tabletS: "(max-width: 1024px)",
|
|
32
|
+
mobileL: "(max-width: 768px)",
|
|
33
|
+
mobileM: "(max-width: 560px)",
|
|
34
|
+
mobileS: "(max-width: 480px)",
|
|
35
|
+
mobileXS: "(max-width: 375px)",
|
|
36
|
+
light: "(prefers-color-scheme: light)",
|
|
37
|
+
dark: "(prefers-color-scheme: dark)",
|
|
38
|
+
print: "print"
|
|
39
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
var responsive_exports = {};
|
|
20
|
+
__export(responsive_exports, {
|
|
21
|
+
BREAKPOINTS: () => BREAKPOINTS,
|
|
22
|
+
DEVICES: () => DEVICES
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(responsive_exports);
|
|
25
|
+
const BREAKPOINTS = {
|
|
26
|
+
screenL: 1920,
|
|
27
|
+
screenM: 1680,
|
|
28
|
+
screenS: 1440,
|
|
29
|
+
tabletL: 1366,
|
|
30
|
+
tabletM: 1280,
|
|
31
|
+
tabletS: 1024,
|
|
32
|
+
mobileL: 768,
|
|
33
|
+
mobileM: 560,
|
|
34
|
+
mobileS: 480,
|
|
35
|
+
mobileXS: 375
|
|
36
|
+
};
|
|
37
|
+
const DEVICES = {
|
|
38
|
+
screenL: [1920, 1024],
|
|
39
|
+
screenM: [1680, 1024],
|
|
40
|
+
screenS: [1440, 978],
|
|
41
|
+
tabletL: [1366, 926],
|
|
42
|
+
tabletM: [1280, 768],
|
|
43
|
+
tabletS: [1024, 768],
|
|
44
|
+
mobileL: [768, 375],
|
|
45
|
+
mobileM: [560, 768],
|
|
46
|
+
mobileS: [480, 768],
|
|
47
|
+
mobileXS: [375, 768]
|
|
48
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
var sequence_exports = {};
|
|
20
|
+
__export(sequence_exports, {
|
|
21
|
+
SEQUENCE: () => SEQUENCE
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(sequence_exports);
|
|
24
|
+
const SEQUENCE = {
|
|
25
|
+
"minor-second": 1.067,
|
|
26
|
+
"major-second": 1.125,
|
|
27
|
+
"minor-third": 1.2,
|
|
28
|
+
"major-third": 1.25,
|
|
29
|
+
"perfect-fourth": 1.333,
|
|
30
|
+
"augmented-fourth": 1.414,
|
|
31
|
+
"perfect-fifth": 1.5,
|
|
32
|
+
"minor-sixth": 1.6,
|
|
33
|
+
phi: 1.618,
|
|
34
|
+
// golden-ratio
|
|
35
|
+
"major-sixth": 1.667,
|
|
36
|
+
"square-root-3": 1.732,
|
|
37
|
+
// theodorus
|
|
38
|
+
"minor-seventh": 1.778,
|
|
39
|
+
"major-seventh": 1.875,
|
|
40
|
+
octave: 2,
|
|
41
|
+
"square-root-5": 2.23,
|
|
42
|
+
// pythagoras
|
|
43
|
+
"major-tenth": 2.5,
|
|
44
|
+
"major-eleventh": 2.667,
|
|
45
|
+
"major-twelfth": 3,
|
|
46
|
+
pi: 3.14,
|
|
47
|
+
// archimedes
|
|
48
|
+
"double-octave": 4
|
|
49
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
var spacing_exports = {};
|
|
20
|
+
__export(spacing_exports, {
|
|
21
|
+
SPACING: () => SPACING
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(spacing_exports);
|
|
24
|
+
var import__ = require(".");
|
|
25
|
+
const defaultProps = {
|
|
26
|
+
base: import__.TYPOGRAPHY.base,
|
|
27
|
+
type: "spacing",
|
|
28
|
+
ratio: import__.SEQUENCE.phi,
|
|
29
|
+
range: [-5, 15],
|
|
30
|
+
subSequence: true,
|
|
31
|
+
unit: "em",
|
|
32
|
+
sequence: {},
|
|
33
|
+
scales: {},
|
|
34
|
+
vars: {}
|
|
35
|
+
};
|
|
36
|
+
const SPACING = defaultProps;
|
|
@@ -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
|
+
var svg_exports = {};
|
|
20
|
+
__export(svg_exports, {
|
|
21
|
+
SVG: () => SVG,
|
|
22
|
+
SVG_DATA: () => SVG_DATA
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(svg_exports);
|
|
25
|
+
const SVG = {};
|
|
26
|
+
const SVG_DATA = {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
var theme_exports = {};
|
|
20
|
+
__export(theme_exports, {
|
|
21
|
+
THEME: () => THEME
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(theme_exports);
|
|
24
|
+
const themeA = {
|
|
25
|
+
// eslint-disable-line no-unused-vars
|
|
26
|
+
text: "blue",
|
|
27
|
+
background: "white",
|
|
28
|
+
border: "black",
|
|
29
|
+
// .opacity(0.2),
|
|
30
|
+
active: {},
|
|
31
|
+
helpers: [],
|
|
32
|
+
themes: {},
|
|
33
|
+
inverse: {}
|
|
34
|
+
// schemeAInverse
|
|
35
|
+
};
|
|
36
|
+
const THEME = {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
var timing_exports = {};
|
|
20
|
+
__export(timing_exports, {
|
|
21
|
+
TIMING: () => TIMING
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(timing_exports);
|
|
24
|
+
var import__ = require(".");
|
|
25
|
+
const defaultProps = {
|
|
26
|
+
default: 150,
|
|
27
|
+
base: 150,
|
|
28
|
+
type: "timing",
|
|
29
|
+
ratio: import__.SEQUENCE["perfect-fourth"],
|
|
30
|
+
range: [-3, 12],
|
|
31
|
+
unit: "ms",
|
|
32
|
+
sequence: {},
|
|
33
|
+
scales: {},
|
|
34
|
+
vars: {}
|
|
35
|
+
};
|
|
36
|
+
const TIMING = defaultProps;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
var typography_exports = {};
|
|
20
|
+
__export(typography_exports, {
|
|
21
|
+
TYPOGRAPHY: () => TYPOGRAPHY
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(typography_exports);
|
|
24
|
+
var import_sequence = require("./sequence.js");
|
|
25
|
+
const defaultProps = {
|
|
26
|
+
browserDefault: 16,
|
|
27
|
+
base: 16,
|
|
28
|
+
type: "font-size",
|
|
29
|
+
ratio: import_sequence.SEQUENCE["minor-third"],
|
|
30
|
+
range: [-3, 12],
|
|
31
|
+
h1Matches: 6,
|
|
32
|
+
lineHeight: 1.5,
|
|
33
|
+
unit: "em",
|
|
34
|
+
templates: {},
|
|
35
|
+
sequence: {},
|
|
36
|
+
scales: {},
|
|
37
|
+
vars: {}
|
|
38
|
+
};
|
|
39
|
+
const TYPOGRAPHY = defaultProps;
|
|
@@ -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
|
+
var unit_exports = {};
|
|
20
|
+
__export(unit_exports, {
|
|
21
|
+
UNIT: () => UNIT
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(unit_exports);
|
|
24
|
+
const UNIT = {
|
|
25
|
+
default: "em"
|
|
26
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var factory_exports = {};
|
|
30
|
+
__export(factory_exports, {
|
|
31
|
+
CONFIG: () => CONFIG,
|
|
32
|
+
CSS_VARS: () => CSS_VARS,
|
|
33
|
+
FACTORY: () => FACTORY,
|
|
34
|
+
activateConfig: () => activateConfig,
|
|
35
|
+
getActiveConfig: () => getActiveConfig,
|
|
36
|
+
setActiveConfig: () => setActiveConfig
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(factory_exports);
|
|
39
|
+
var import_utils = require("@domql/utils");
|
|
40
|
+
var CONF = __toESM(require("./defaultConfig"), 1);
|
|
41
|
+
const CSS_VARS = {};
|
|
42
|
+
const CONFIG = {
|
|
43
|
+
verbose: false,
|
|
44
|
+
useVariable: true,
|
|
45
|
+
useReset: true,
|
|
46
|
+
CSS_VARS,
|
|
47
|
+
...CONF
|
|
48
|
+
};
|
|
49
|
+
const cachedConfig = (0, import_utils.deepClone)(CONFIG);
|
|
50
|
+
const FACTORY = {
|
|
51
|
+
active: "0",
|
|
52
|
+
0: CONFIG
|
|
53
|
+
};
|
|
54
|
+
const activateConfig = (def) => {
|
|
55
|
+
if ((0, import_utils.isDefined)(def)) {
|
|
56
|
+
FACTORY.active = def;
|
|
57
|
+
}
|
|
58
|
+
return FACTORY[def || FACTORY.active];
|
|
59
|
+
};
|
|
60
|
+
const getActiveConfig = (def) => {
|
|
61
|
+
if ((0, import_utils.isDefined)(def) && !FACTORY[def]) {
|
|
62
|
+
FACTORY[def] = (0, import_utils.deepClone)(cachedConfig);
|
|
63
|
+
return FACTORY[def];
|
|
64
|
+
}
|
|
65
|
+
return FACTORY[def || FACTORY.active];
|
|
66
|
+
};
|
|
67
|
+
const setActiveConfig = (def) => {
|
|
68
|
+
return FACTORY.active = FACTORY[def];
|
|
69
|
+
};
|