react-minolith 0.0.5 → 0.0.6
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 +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Header.css +1 -1
- package/dist/assets/Heading.css +1 -0
- package/dist/assets/Nav.css +1 -1
- package/dist/common/models/AnimationCssVariable.d.ts +10 -0
- package/dist/common/models/AnimationCssVariable.d.ts.map +1 -0
- package/dist/common/models/AnimationCssVariable.js +2 -0
- package/dist/common/models/AnimationCssVariable.js.map +1 -0
- package/dist/common/models/BorderCssVariable.d.ts +11 -0
- package/dist/common/models/BorderCssVariable.d.ts.map +1 -0
- package/dist/common/models/BorderCssVariable.js +2 -0
- package/dist/common/models/BorderCssVariable.js.map +1 -0
- package/dist/common/models/MinolithCssVariable.d.ts +6 -0
- package/dist/common/models/MinolithCssVariable.d.ts.map +1 -1
- package/dist/common/models/MiscellaneousCssVariable.d.ts +7 -0
- package/dist/common/models/MiscellaneousCssVariable.d.ts.map +1 -0
- package/dist/common/models/MiscellaneousCssVariable.js +2 -0
- package/dist/common/models/MiscellaneousCssVariable.js.map +1 -0
- package/dist/common/models/Oklch.d.ts +2 -3
- package/dist/common/models/Oklch.d.ts.map +1 -1
- package/dist/common/models/TypographyCssVariable.d.ts +6 -0
- package/dist/common/models/TypographyCssVariable.d.ts.map +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Heading/Heading.d.ts +3 -0
- package/dist/components/Heading/Heading.d.ts.map +1 -0
- package/dist/components/Heading/Heading.js +35 -0
- package/dist/components/Heading/Heading.js.map +1 -0
- package/dist/components/Heading/Heading.stories.d.ts +17 -0
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -0
- package/dist/components/Heading/HeadingProps.d.ts +6 -0
- package/dist/components/Heading/HeadingProps.d.ts.map +1 -0
- package/dist/components/Heading/HeadingProps.js +2 -0
- package/dist/components/Heading/HeadingProps.js.map +1 -0
- package/dist/components/Heading/index.d.ts +3 -0
- package/dist/components/Heading/index.d.ts.map +1 -0
- package/dist/components/Heading/index.js +5 -0
- package/dist/components/Heading/index.js.map +1 -0
- package/dist/components/Nav/Nav.js +41 -41
- package/dist/components/Nav/NavAccordion.js +41 -41
- package/dist/components/Nav/NavAccordion.js.map +1 -1
- package/dist/components/Nav/NavAccordionProps.d.ts +13 -13
- package/dist/components/Nav/NavAccordionProps.d.ts.map +1 -1
- package/dist/components/Nav/NavBrand.js +42 -42
- package/dist/components/Nav/NavBrandCenter.js +42 -42
- package/dist/components/Nav/NavBrandLeft.js +42 -42
- package/dist/components/Nav/NavBrandRight.js +42 -42
- package/dist/components/Nav/NavMenu.js +41 -41
- package/dist/components/Nav/NavMenuItem.js +40 -40
- package/dist/components/Nav/NavStatic.js +41 -41
- package/dist/components/Nav/NavStatic.js.map +1 -1
- package/dist/components/Nav/NavStaticProps.d.ts +13 -13
- package/dist/components/Nav/NavStaticProps.d.ts.map +1 -1
- package/dist/layouts/Columns/Column.js +22 -22
- package/dist/layouts/Columns/Column.js.map +1 -1
- package/dist/layouts/Columns/ColumnProps.d.ts +13 -13
- package/dist/layouts/Columns/ColumnProps.d.ts.map +1 -1
- package/dist/layouts/Columns/Columns.js +46 -46
- package/dist/layouts/Columns/Columns.js.map +1 -1
- package/dist/layouts/Columns/Columns.stories.d.ts +2 -2
- package/dist/layouts/Columns/Columns.stories.d.ts.map +1 -1
- package/dist/layouts/Columns/ColumnsProps.d.ts +52 -52
- package/dist/layouts/Columns/ColumnsProps.d.ts.map +1 -1
- package/dist/react-minolith.d.ts +1 -0
- package/dist/react-minolith.d.ts.map +1 -1
- package/dist/react-minolith.js +58 -56
- package/dist/react-minolith.js.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js +252 -239
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/Button2.css +0 -1
- package/dist/assets/Header2.css +0 -1
- package/dist/assets/Page.css +0 -1
- package/dist/index-BuUAQmqD.js +0 -21838
- package/dist/index-BuUAQmqD.js.map +0 -1
- package/dist/stories/Button.d.ts +0 -15
- package/dist/stories/Button.d.ts.map +0 -1
- package/dist/stories/Button.js +0 -24
- package/dist/stories/Button.js.map +0 -1
- package/dist/stories/Button.stories.d.ts +0 -24
- package/dist/stories/Button.stories.d.ts.map +0 -1
- package/dist/stories/Button.stories.js +0 -45
- package/dist/stories/Button.stories.js.map +0 -1
- package/dist/stories/Header.d.ts +0 -12
- package/dist/stories/Header.d.ts.map +0 -1
- package/dist/stories/Header.js +0 -45
- package/dist/stories/Header.js.map +0 -1
- package/dist/stories/Header.stories.d.ts +0 -19
- package/dist/stories/Header.stories.d.ts.map +0 -1
- package/dist/stories/Header.stories.js +0 -29
- package/dist/stories/Header.stories.js.map +0 -1
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.d.ts.map +0 -1
- package/dist/stories/Page.js +0 -59
- package/dist/stories/Page.js.map +0 -1
- package/dist/stories/Page.stories.d.ts +0 -13
- package/dist/stories/Page.stories.d.ts.map +0 -1
- package/dist/stories/Page.stories.js +0 -23
- package/dist/stories/Page.stories.js.map +0 -1
|
@@ -1,406 +1,419 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
const l = "minolith-";
|
|
2
|
+
function r(n, s, i, t) {
|
|
3
|
+
const e = [];
|
|
4
|
+
return s && (s.fore && e.push(
|
|
5
|
+
`--${l}color-${n}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-fore: ${s.fore.startsWith("--") ? `var(${s.fore});` : `${s.fore};`}`
|
|
6
|
+
), s.back && e.push(
|
|
7
|
+
`--${l}color-${n}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-back: ${s.back.startsWith("--") ? `var(${s.back});` : `${s.back};`}`
|
|
8
|
+
), s.border && e.push(
|
|
9
|
+
`--${l}color-${n}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-border: ${s.border.startsWith("--") ? `var(${s.border});` : `${s.border};`}`
|
|
10
|
+
), s.shadow && e.push(
|
|
11
|
+
`--${l}color-${n}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-shadow: ${s.shadow.startsWith("--") ? `var(${s.shadow});` : `${s.shadow};`}`
|
|
12
|
+
), s.placeholder && e.push(
|
|
13
|
+
`--${l}color-${n}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-placeholder: ${s.placeholder.startsWith("--") ? `var(${s.placeholder});` : `${s.placeholder};`}`
|
|
14
|
+
)), e;
|
|
14
15
|
}
|
|
15
|
-
function h(
|
|
16
|
+
function h(n, s, i) {
|
|
16
17
|
const t = [];
|
|
17
|
-
if (
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
if (s.default) {
|
|
19
|
+
const e = r(
|
|
20
|
+
n,
|
|
21
|
+
s.default,
|
|
21
22
|
void 0,
|
|
22
|
-
|
|
23
|
+
i
|
|
23
24
|
);
|
|
24
|
-
|
|
25
|
+
e.length > 0 && t.push(...e);
|
|
25
26
|
}
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
if (s.hover) {
|
|
28
|
+
const e = r(
|
|
29
|
+
n,
|
|
30
|
+
s.hover,
|
|
30
31
|
"hover",
|
|
31
|
-
|
|
32
|
+
i
|
|
32
33
|
);
|
|
33
|
-
|
|
34
|
+
e.length > 0 && t.push(...e);
|
|
34
35
|
}
|
|
35
|
-
if (
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
if (s.focus) {
|
|
37
|
+
const e = r(
|
|
38
|
+
n,
|
|
39
|
+
s.focus,
|
|
39
40
|
"focus",
|
|
40
|
-
|
|
41
|
+
i
|
|
41
42
|
);
|
|
42
|
-
|
|
43
|
+
e.length > 0 && t.push(...e);
|
|
43
44
|
}
|
|
44
|
-
if (
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
if (s.active) {
|
|
46
|
+
const e = r(
|
|
47
|
+
n,
|
|
48
|
+
s.active,
|
|
48
49
|
"active",
|
|
49
|
-
|
|
50
|
+
i
|
|
50
51
|
);
|
|
51
|
-
|
|
52
|
+
e.length > 0 && t.push(...e);
|
|
52
53
|
}
|
|
53
|
-
if (
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
if (s.disabled) {
|
|
55
|
+
const e = r(
|
|
56
|
+
n,
|
|
57
|
+
s.disabled,
|
|
57
58
|
"disabled",
|
|
58
|
-
|
|
59
|
+
i
|
|
59
60
|
);
|
|
60
|
-
|
|
61
|
+
e.length > 0 && t.push(...e);
|
|
61
62
|
}
|
|
62
63
|
return t;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return
|
|
65
|
+
function g(n) {
|
|
66
|
+
const s = [], i = u(n), t = a(n), e = d(n);
|
|
67
|
+
return i.length > 0 && s.push(`:root{${i.join("")}}`), t.length > 0 && s.push(`:root{${t.join("")}}`), t.length > 0 && s.push(
|
|
67
68
|
`[data-color-scheme="light"]{${t.join("")}}`
|
|
68
|
-
),
|
|
69
|
-
`[data-color-scheme="dark"]{${
|
|
70
|
-
),
|
|
69
|
+
), e.length > 0 && s.push(
|
|
70
|
+
`[data-color-scheme="dark"]{${e.join("")}}`
|
|
71
|
+
), s;
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
function u(n) {
|
|
74
|
+
const s = [];
|
|
75
|
+
if (n) {
|
|
76
|
+
if (n.animation) {
|
|
77
|
+
const i = n.animation;
|
|
78
|
+
i.speedHeavey && s.push(`--${l}animation-speed-heavy: ${i.speedHeavey};`), i.speedSlower && s.push(`--${l}animation-speed-slower: ${i.speedSlower};`), i.speedSlow && s.push(`--${l}animation-speed-slow: ${i.speedSlow};`), i.speedNormal && s.push(`--${l}animation-speed-normal: ${i.speedNormal};`), i.speedfFast && s.push(`--${l}animation-speed-fast: ${i.speedfFast};`), i.speedfFaster && s.push(`--${l}animation-speed-faster: ${i.speedfFaster};`), i.speedfFlash && s.push(`--${l}animation-speed-flash: ${i.speedfFlash};`);
|
|
79
|
+
}
|
|
80
|
+
if (n.border) {
|
|
81
|
+
const i = n.border;
|
|
82
|
+
i.borderWidthXThin && s.push(`--${l}border-width-xthin: ${i.borderWidthXThin};`), i.borderWidthThin && s.push(`--${l}border-width-thin: ${i.borderWidthThin};`), i.borderWidthMedium && s.push(`--${l}border-width-medium: ${i.borderWidthMedium};`), i.borderWidthThick && s.push(`--${l}border-width-thick: ${i.borderWidthThick};`), i.borderWidthXThick && s.push(`--${l}border-width-xthick: ${i.borderWidthXThick};`), i.borderRadiusSmall && s.push(`--${l}border-radius-small: ${i.borderRadiusSmall};`), i.borderRadiusMedium && s.push(`--${l}border-radius-medium: ${i.borderRadiusMedium};`), i.borderRadiusLarge && s.push(`--${l}border-radius-large: ${i.borderRadiusLarge};`);
|
|
83
|
+
}
|
|
84
|
+
if (n.color) {
|
|
85
|
+
const i = n.color, t = (e, o, f) => {
|
|
86
|
+
f && (s.push(
|
|
87
|
+
`--${l}color-${e}-${o}-oklch: ${f.lightness}% ${f.chroma} ${f.hue};`
|
|
88
|
+
), s.push(
|
|
89
|
+
`--${l}color-${e}-${o}: oklch(var(--color-${e}-${o}-oklch));`
|
|
81
90
|
));
|
|
82
91
|
};
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
),
|
|
86
|
-
|
|
87
|
-
),
|
|
88
|
-
const
|
|
89
|
-
t(o, "95",
|
|
92
|
+
if (i.white && (typeof i.white == "string" ? s.push(`--${l}color-white: ${i.white};`) : (s.push(
|
|
93
|
+
`--${l}color-white-oklch: ${i.white.lightness}% ${i.white.chroma} ${i.white.hue};`
|
|
94
|
+
), s.push(`--${l}color-white: oklch(var(--color-white-oklch));`))), i.black && (typeof i.black == "string" ? s.push(`--${l}color-black: ${i.black};`) : (s.push(
|
|
95
|
+
`--${l}color-black-oklch: ${i.black.lightness}% ${i.black.chroma} ${i.black.hue};`
|
|
96
|
+
), s.push(`--${l}color-black: oklch(var(--color-black-oklch));`))), i.gray) {
|
|
97
|
+
const e = i.gray, o = "gray";
|
|
98
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
90
99
|
}
|
|
91
|
-
if (
|
|
92
|
-
const
|
|
93
|
-
t(o, "95",
|
|
100
|
+
if (i.red) {
|
|
101
|
+
const e = i.red, o = "red";
|
|
102
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
94
103
|
}
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
t(o, "95",
|
|
104
|
+
if (i.orange) {
|
|
105
|
+
const e = i.orange, o = "orange";
|
|
106
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
98
107
|
}
|
|
99
|
-
if (
|
|
100
|
-
const
|
|
101
|
-
t(o, "95",
|
|
108
|
+
if (i.yellow) {
|
|
109
|
+
const e = i.yellow, o = "yellow";
|
|
110
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
102
111
|
}
|
|
103
|
-
if (
|
|
104
|
-
const
|
|
105
|
-
t(o, "95",
|
|
112
|
+
if (i.green) {
|
|
113
|
+
const e = i.green, o = "green";
|
|
114
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
106
115
|
}
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
109
|
-
t(o, "95",
|
|
116
|
+
if (i.cyan) {
|
|
117
|
+
const e = i.cyan, o = "cyan";
|
|
118
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
110
119
|
}
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
113
|
-
t(o, "95",
|
|
120
|
+
if (i.blue) {
|
|
121
|
+
const e = i.blue, o = "blue";
|
|
122
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
114
123
|
}
|
|
115
|
-
if (
|
|
116
|
-
const
|
|
117
|
-
t(o, "95",
|
|
124
|
+
if (i.violet) {
|
|
125
|
+
const e = i.violet, o = "violet";
|
|
126
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
118
127
|
}
|
|
119
|
-
if (
|
|
120
|
-
const
|
|
121
|
-
t(o, "95",
|
|
128
|
+
if (i.magenta) {
|
|
129
|
+
const e = i.magenta, o = "magenta";
|
|
130
|
+
t(o, "95", e[95]), t(o, "90", e[90]), t(o, "85", e[85]), t(o, "80", e[80]), t(o, "75", e[75]), t(o, "70", e[70]), t(o, "65", e[65]), t(o, "60", e[60]), t(o, "55", e[55]), t(o, "50", e[50]), t(o, "45", e[45]), t(o, "40", e[40]), t(o, "35", e[35]), t(o, "30", e[30]), t(o, "25", e[25]), t(o, "20", e[20]), t(o, "15", e[15]), t(o, "10", e[10]), t(o, "05", e[5]);
|
|
122
131
|
}
|
|
123
132
|
}
|
|
124
|
-
if (
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
), s.
|
|
131
|
-
|
|
132
|
-
),
|
|
133
|
-
|
|
134
|
-
),
|
|
133
|
+
if (n.miscellaneous) {
|
|
134
|
+
const i = n.miscellaneous;
|
|
135
|
+
i.zIndexTabula && s.push(`--${l}z-index-tabula: ${i.zIndexTabula};`), i.zIndexModal && s.push(`--${l}z-index-modal: ${i.zIndexModal};`), i.zIndexModalContent && s.push(`--${l}z-index-tabula-content: ${i.zIndexModalContent};`), i.zIndexHeaderIsSticky && s.push(`--${l}z-index-header-is-sticky: ${i.zIndexHeaderIsSticky};`);
|
|
136
|
+
}
|
|
137
|
+
if (n.typography) {
|
|
138
|
+
const i = n.typography;
|
|
139
|
+
i.fontSize && (i.fontSize.xsmall && s.push(`--${l}font-size-xsmall: ${i.fontSize.xsmall};`), i.fontSize.small && s.push(`--${l}font-size-small: ${i.fontSize.small};`), i.fontSize.normal && s.push(`--${l}font-size-normal: ${i.fontSize.normal};`), i.fontSize.medium && s.push(`--${l}font-size-medium: ${i.fontSize.medium};`), i.fontSize.large && s.push(`--${l}font-size-large: ${i.fontSize.large};`), i.fontSize.xlarge && s.push(`--${l}font-size-xlarge: ${i.fontSize.xlarge};`), i.fontSize.xxlarge && s.push(`--${l}font-size-xxlarge: ${i.fontSize.xxlarge};`), i.fontSize.xxxlarge && s.push(`--${l}font-size-xxxlarge: ${i.fontSize.xxxlarge};`), i.fontSize.xxxxlarge && s.push(`--${l}font-size-xxxxlarge: ${i.fontSize.xxxxlarge};`), i.fontSize.xxxxxlarge && s.push(`--${l}font-size-xxxxxlarge: ${i.fontSize.xxxxxlarge};`)), i.fontWeight && (i.fontWeight.light && s.push(
|
|
140
|
+
`--${l}font-weight-light: ${i.fontWeight.light};`
|
|
141
|
+
), i.fontWeight.normal && s.push(
|
|
142
|
+
`--${l}font-weight-normal: ${i.fontWeight.normal};`
|
|
143
|
+
), i.fontWeight.medium && s.push(
|
|
144
|
+
`--${l}font-weight-medium: ${i.fontWeight.medium};`
|
|
145
|
+
), i.fontWeight.semibold && s.push(
|
|
146
|
+
`--${l}font-weight-semibold: ${i.fontWeight.semibold};`
|
|
147
|
+
), i.fontWeight.bold && s.push(`--${l}font-weight-bold: ${i.fontWeight.bold};`));
|
|
135
148
|
}
|
|
136
149
|
}
|
|
137
|
-
return
|
|
150
|
+
return s;
|
|
138
151
|
}
|
|
139
|
-
function
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
if (
|
|
145
|
-
const t = h("default",
|
|
146
|
-
t.length > 0 &&
|
|
152
|
+
function a(n) {
|
|
153
|
+
const s = [];
|
|
154
|
+
if (n && n.color) {
|
|
155
|
+
const i = n.color;
|
|
156
|
+
if (i.light) {
|
|
157
|
+
if (i.light.default) {
|
|
158
|
+
const t = h("default", i.light.default);
|
|
159
|
+
t.length > 0 && s.push(...t);
|
|
147
160
|
}
|
|
148
|
-
if (
|
|
149
|
-
const t = h("gray",
|
|
150
|
-
t.length > 0 &&
|
|
161
|
+
if (i.light.gray) {
|
|
162
|
+
const t = h("gray", i.light.gray);
|
|
163
|
+
t.length > 0 && s.push(...t);
|
|
151
164
|
}
|
|
152
|
-
if (
|
|
153
|
-
const t = h("red",
|
|
154
|
-
t.length > 0 &&
|
|
165
|
+
if (i.light.red) {
|
|
166
|
+
const t = h("red", i.light.red);
|
|
167
|
+
t.length > 0 && s.push(...t);
|
|
155
168
|
}
|
|
156
|
-
if (
|
|
157
|
-
const t = h("orange",
|
|
158
|
-
t.length > 0 &&
|
|
169
|
+
if (i.light.orange) {
|
|
170
|
+
const t = h("orange", i.light.orange);
|
|
171
|
+
t.length > 0 && s.push(...t);
|
|
159
172
|
}
|
|
160
|
-
if (
|
|
161
|
-
const t = h("yellow",
|
|
162
|
-
t.length > 0 &&
|
|
173
|
+
if (i.light.yellow) {
|
|
174
|
+
const t = h("yellow", i.light.yellow);
|
|
175
|
+
t.length > 0 && s.push(...t);
|
|
163
176
|
}
|
|
164
|
-
if (
|
|
165
|
-
const t = h("green",
|
|
166
|
-
t.length > 0 &&
|
|
177
|
+
if (i.light.green) {
|
|
178
|
+
const t = h("green", i.light.green);
|
|
179
|
+
t.length > 0 && s.push(...t);
|
|
167
180
|
}
|
|
168
|
-
if (
|
|
169
|
-
const t = h("cyan",
|
|
170
|
-
t.length > 0 &&
|
|
181
|
+
if (i.light.cyan) {
|
|
182
|
+
const t = h("cyan", i.light.cyan);
|
|
183
|
+
t.length > 0 && s.push(...t);
|
|
171
184
|
}
|
|
172
|
-
if (
|
|
173
|
-
const t = h("blue",
|
|
174
|
-
t.length > 0 &&
|
|
185
|
+
if (i.light.blue) {
|
|
186
|
+
const t = h("blue", i.light.blue);
|
|
187
|
+
t.length > 0 && s.push(...t);
|
|
175
188
|
}
|
|
176
|
-
if (
|
|
177
|
-
const t = h("violet",
|
|
178
|
-
t.length > 0 &&
|
|
189
|
+
if (i.light.violet) {
|
|
190
|
+
const t = h("violet", i.light.violet);
|
|
191
|
+
t.length > 0 && s.push(...t);
|
|
179
192
|
}
|
|
180
|
-
if (
|
|
181
|
-
if (
|
|
193
|
+
if (i.light.button) {
|
|
194
|
+
if (i.light.button.default) {
|
|
182
195
|
const t = h(
|
|
183
196
|
"default",
|
|
184
|
-
|
|
197
|
+
i.light.button.default,
|
|
185
198
|
"button"
|
|
186
199
|
);
|
|
187
|
-
t.length > 0 &&
|
|
200
|
+
t.length > 0 && s.push(...t);
|
|
188
201
|
}
|
|
189
|
-
if (
|
|
202
|
+
if (i.light.button.gray) {
|
|
190
203
|
const t = h(
|
|
191
204
|
"gray",
|
|
192
|
-
|
|
205
|
+
i.light.button.gray,
|
|
193
206
|
"button"
|
|
194
207
|
);
|
|
195
|
-
t.length > 0 &&
|
|
208
|
+
t.length > 0 && s.push(...t);
|
|
196
209
|
}
|
|
197
|
-
if (
|
|
210
|
+
if (i.light.button.red) {
|
|
198
211
|
const t = h(
|
|
199
212
|
"red",
|
|
200
|
-
|
|
213
|
+
i.light.button.red,
|
|
201
214
|
"button"
|
|
202
215
|
);
|
|
203
|
-
t.length > 0 &&
|
|
216
|
+
t.length > 0 && s.push(...t);
|
|
204
217
|
}
|
|
205
|
-
if (
|
|
218
|
+
if (i.light.button.orange) {
|
|
206
219
|
const t = h(
|
|
207
220
|
"orange",
|
|
208
|
-
|
|
221
|
+
i.light.button.orange,
|
|
209
222
|
"button"
|
|
210
223
|
);
|
|
211
|
-
t.length > 0 &&
|
|
224
|
+
t.length > 0 && s.push(...t);
|
|
212
225
|
}
|
|
213
|
-
if (
|
|
226
|
+
if (i.light.button.yellow) {
|
|
214
227
|
const t = h(
|
|
215
228
|
"yellow",
|
|
216
|
-
|
|
229
|
+
i.light.button.yellow,
|
|
217
230
|
"button"
|
|
218
231
|
);
|
|
219
|
-
t.length > 0 &&
|
|
232
|
+
t.length > 0 && s.push(...t);
|
|
220
233
|
}
|
|
221
|
-
if (
|
|
234
|
+
if (i.light.button.green) {
|
|
222
235
|
const t = h(
|
|
223
236
|
"green",
|
|
224
|
-
|
|
237
|
+
i.light.button.green,
|
|
225
238
|
"button"
|
|
226
239
|
);
|
|
227
|
-
t.length > 0 &&
|
|
240
|
+
t.length > 0 && s.push(...t);
|
|
228
241
|
}
|
|
229
|
-
if (
|
|
242
|
+
if (i.light.button.cyan) {
|
|
230
243
|
const t = h(
|
|
231
244
|
"cyan",
|
|
232
|
-
|
|
245
|
+
i.light.button.cyan,
|
|
233
246
|
"button"
|
|
234
247
|
);
|
|
235
|
-
t.length > 0 &&
|
|
248
|
+
t.length > 0 && s.push(...t);
|
|
236
249
|
}
|
|
237
|
-
if (
|
|
250
|
+
if (i.light.button.blue) {
|
|
238
251
|
const t = h(
|
|
239
252
|
"blue",
|
|
240
|
-
|
|
253
|
+
i.light.button.blue,
|
|
241
254
|
"button"
|
|
242
255
|
);
|
|
243
|
-
t.length > 0 &&
|
|
256
|
+
t.length > 0 && s.push(...t);
|
|
244
257
|
}
|
|
245
|
-
if (
|
|
258
|
+
if (i.light.button.violet) {
|
|
246
259
|
const t = h(
|
|
247
260
|
"violet",
|
|
248
|
-
|
|
261
|
+
i.light.button.violet,
|
|
249
262
|
"button"
|
|
250
263
|
);
|
|
251
|
-
t.length > 0 &&
|
|
264
|
+
t.length > 0 && s.push(...t);
|
|
252
265
|
}
|
|
253
|
-
if (
|
|
266
|
+
if (i.light.button.magenta) {
|
|
254
267
|
const t = h(
|
|
255
268
|
"magenta",
|
|
256
|
-
|
|
269
|
+
i.light.button.magenta,
|
|
257
270
|
"button"
|
|
258
271
|
);
|
|
259
|
-
t.length > 0 &&
|
|
272
|
+
t.length > 0 && s.push(...t);
|
|
260
273
|
}
|
|
261
274
|
}
|
|
262
275
|
}
|
|
263
276
|
}
|
|
264
|
-
return
|
|
277
|
+
return s;
|
|
265
278
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
const
|
|
270
|
-
if (
|
|
271
|
-
if (
|
|
272
|
-
const t = h("default",
|
|
273
|
-
t.length > 0 &&
|
|
279
|
+
function d(n) {
|
|
280
|
+
const s = [];
|
|
281
|
+
if (n && n.color) {
|
|
282
|
+
const i = n.color;
|
|
283
|
+
if (i.dark) {
|
|
284
|
+
if (i.dark.default) {
|
|
285
|
+
const t = h("default", i.dark.default);
|
|
286
|
+
t.length > 0 && s.push(...t);
|
|
274
287
|
}
|
|
275
|
-
if (
|
|
276
|
-
const t = h("gray",
|
|
277
|
-
t.length > 0 &&
|
|
288
|
+
if (i.dark.gray) {
|
|
289
|
+
const t = h("gray", i.dark.gray);
|
|
290
|
+
t.length > 0 && s.push(...t);
|
|
278
291
|
}
|
|
279
|
-
if (
|
|
280
|
-
const t = h("red",
|
|
281
|
-
t.length > 0 &&
|
|
292
|
+
if (i.dark.red) {
|
|
293
|
+
const t = h("red", i.dark.red);
|
|
294
|
+
t.length > 0 && s.push(...t);
|
|
282
295
|
}
|
|
283
|
-
if (
|
|
284
|
-
const t = h("orange",
|
|
285
|
-
t.length > 0 &&
|
|
296
|
+
if (i.dark.orange) {
|
|
297
|
+
const t = h("orange", i.dark.orange);
|
|
298
|
+
t.length > 0 && s.push(...t);
|
|
286
299
|
}
|
|
287
|
-
if (
|
|
288
|
-
const t = h("yellow",
|
|
289
|
-
t.length > 0 &&
|
|
300
|
+
if (i.dark.yellow) {
|
|
301
|
+
const t = h("yellow", i.dark.yellow);
|
|
302
|
+
t.length > 0 && s.push(...t);
|
|
290
303
|
}
|
|
291
|
-
if (
|
|
292
|
-
const t = h("green",
|
|
293
|
-
t.length > 0 &&
|
|
304
|
+
if (i.dark.green) {
|
|
305
|
+
const t = h("green", i.dark.green);
|
|
306
|
+
t.length > 0 && s.push(...t);
|
|
294
307
|
}
|
|
295
|
-
if (
|
|
296
|
-
const t = h("cyan",
|
|
297
|
-
t.length > 0 &&
|
|
308
|
+
if (i.dark.cyan) {
|
|
309
|
+
const t = h("cyan", i.dark.cyan);
|
|
310
|
+
t.length > 0 && s.push(...t);
|
|
298
311
|
}
|
|
299
|
-
if (
|
|
300
|
-
const t = h("blue",
|
|
301
|
-
t.length > 0 &&
|
|
312
|
+
if (i.dark.blue) {
|
|
313
|
+
const t = h("blue", i.dark.blue);
|
|
314
|
+
t.length > 0 && s.push(...t);
|
|
302
315
|
}
|
|
303
|
-
if (
|
|
304
|
-
const t = h("violet",
|
|
305
|
-
t.length > 0 &&
|
|
316
|
+
if (i.dark.violet) {
|
|
317
|
+
const t = h("violet", i.dark.violet);
|
|
318
|
+
t.length > 0 && s.push(...t);
|
|
306
319
|
}
|
|
307
|
-
if (
|
|
308
|
-
const t = h("magenta",
|
|
309
|
-
t.length > 0 &&
|
|
320
|
+
if (i.dark.magenta) {
|
|
321
|
+
const t = h("magenta", i.dark.magenta);
|
|
322
|
+
t.length > 0 && s.push(...t);
|
|
310
323
|
}
|
|
311
|
-
if (
|
|
312
|
-
if (
|
|
324
|
+
if (i.dark.button) {
|
|
325
|
+
if (i.dark.button.default) {
|
|
313
326
|
const t = h(
|
|
314
327
|
"default",
|
|
315
|
-
|
|
328
|
+
i.dark.button.default,
|
|
316
329
|
"button"
|
|
317
330
|
);
|
|
318
|
-
t.length > 0 &&
|
|
331
|
+
t.length > 0 && s.push(...t);
|
|
319
332
|
}
|
|
320
|
-
if (
|
|
333
|
+
if (i.dark.button.gray) {
|
|
321
334
|
const t = h(
|
|
322
335
|
"gray",
|
|
323
|
-
|
|
336
|
+
i.dark.button.gray,
|
|
324
337
|
"button"
|
|
325
338
|
);
|
|
326
|
-
t.length > 0 &&
|
|
339
|
+
t.length > 0 && s.push(...t);
|
|
327
340
|
}
|
|
328
|
-
if (
|
|
341
|
+
if (i.dark.button.red) {
|
|
329
342
|
const t = h(
|
|
330
343
|
"red",
|
|
331
|
-
|
|
344
|
+
i.dark.button.red,
|
|
332
345
|
"button"
|
|
333
346
|
);
|
|
334
|
-
t.length > 0 &&
|
|
347
|
+
t.length > 0 && s.push(...t);
|
|
335
348
|
}
|
|
336
|
-
if (
|
|
349
|
+
if (i.dark.button.orange) {
|
|
337
350
|
const t = h(
|
|
338
351
|
"orange",
|
|
339
|
-
|
|
352
|
+
i.dark.button.orange,
|
|
340
353
|
"button"
|
|
341
354
|
);
|
|
342
|
-
t.length > 0 &&
|
|
355
|
+
t.length > 0 && s.push(...t);
|
|
343
356
|
}
|
|
344
|
-
if (
|
|
357
|
+
if (i.dark.button.yellow) {
|
|
345
358
|
const t = h(
|
|
346
359
|
"yellow",
|
|
347
|
-
|
|
360
|
+
i.dark.button.yellow,
|
|
348
361
|
"button"
|
|
349
362
|
);
|
|
350
|
-
t.length > 0 &&
|
|
363
|
+
t.length > 0 && s.push(...t);
|
|
351
364
|
}
|
|
352
|
-
if (
|
|
365
|
+
if (i.dark.button.green) {
|
|
353
366
|
const t = h(
|
|
354
367
|
"green",
|
|
355
|
-
|
|
368
|
+
i.dark.button.green,
|
|
356
369
|
"button"
|
|
357
370
|
);
|
|
358
|
-
t.length > 0 &&
|
|
371
|
+
t.length > 0 && s.push(...t);
|
|
359
372
|
}
|
|
360
|
-
if (
|
|
373
|
+
if (i.dark.button.cyan) {
|
|
361
374
|
const t = h(
|
|
362
375
|
"cyan",
|
|
363
|
-
|
|
376
|
+
i.dark.button.cyan,
|
|
364
377
|
"button"
|
|
365
378
|
);
|
|
366
|
-
t.length > 0 &&
|
|
379
|
+
t.length > 0 && s.push(...t);
|
|
367
380
|
}
|
|
368
|
-
if (
|
|
381
|
+
if (i.dark.button.blue) {
|
|
369
382
|
const t = h(
|
|
370
383
|
"blue",
|
|
371
|
-
|
|
384
|
+
i.dark.button.blue,
|
|
372
385
|
"button"
|
|
373
386
|
);
|
|
374
|
-
t.length > 0 &&
|
|
387
|
+
t.length > 0 && s.push(...t);
|
|
375
388
|
}
|
|
376
|
-
if (
|
|
389
|
+
if (i.dark.button.violet) {
|
|
377
390
|
const t = h(
|
|
378
391
|
"violet",
|
|
379
|
-
|
|
392
|
+
i.dark.button.violet,
|
|
380
393
|
"button"
|
|
381
394
|
);
|
|
382
|
-
t.length > 0 &&
|
|
395
|
+
t.length > 0 && s.push(...t);
|
|
383
396
|
}
|
|
384
|
-
if (
|
|
397
|
+
if (i.dark.button.magenta) {
|
|
385
398
|
const t = h(
|
|
386
399
|
"magenta",
|
|
387
|
-
|
|
400
|
+
i.dark.button.magenta,
|
|
388
401
|
"button"
|
|
389
402
|
);
|
|
390
|
-
t.length > 0 &&
|
|
403
|
+
t.length > 0 && s.push(...t);
|
|
391
404
|
}
|
|
392
405
|
}
|
|
393
406
|
}
|
|
394
407
|
}
|
|
395
|
-
return
|
|
408
|
+
return s;
|
|
396
409
|
}
|
|
397
|
-
const
|
|
398
|
-
getMinolithCssVariableStyles:
|
|
399
|
-
getRootStyles:
|
|
400
|
-
getLightSchemeStyles:
|
|
401
|
-
getDarkSchemeStyles:
|
|
410
|
+
const $ = {
|
|
411
|
+
getMinolithCssVariableStyles: g,
|
|
412
|
+
getRootStyles: u,
|
|
413
|
+
getLightSchemeStyles: a,
|
|
414
|
+
getDarkSchemeStyles: d
|
|
402
415
|
};
|
|
403
416
|
export {
|
|
404
|
-
|
|
417
|
+
$ as default
|
|
405
418
|
};
|
|
406
419
|
//# sourceMappingURL=minolithStyleUtility.js.map
|