react-minolith 0.0.11 → 0.0.13
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/DialogueAvatar.module-DZkzrwXx.js +37 -0
- package/dist/DialogueAvatar.module-DZkzrwXx.js.map +1 -0
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Columns.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/DialogueAvatar.css +1 -1
- package/dist/assets/Hamburger.css +1 -1
- package/dist/assets/Minolith.css +1 -1
- package/dist/assets/MinolithCssVariableStylesProvider.css +1 -1
- package/dist/base/MinolithStatic/MinolithStatic.stories.d.ts.map +1 -1
- package/dist/common/models/ComponentsCssVariable.d.ts +24 -0
- package/dist/common/models/ComponentsCssVariable.d.ts.map +1 -0
- package/dist/common/models/ComponentsCssVariable.js +2 -0
- package/dist/common/models/ComponentsCssVariable.js.map +1 -0
- package/dist/common/models/MinolithCssVariable.d.ts +2 -0
- package/dist/common/models/MinolithCssVariable.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +22 -22
- package/dist/components/Button/Button.js +23 -23
- package/dist/components/Dialogue/Dialogue.d.ts.map +1 -1
- package/dist/components/Dialogue/Dialogue.js +40 -29
- package/dist/components/Dialogue/Dialogue.js.map +1 -1
- package/dist/components/Dialogue/Dialogue.stories.d.ts +1 -2
- package/dist/components/Dialogue/Dialogue.stories.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueAvatar.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueAvatar.js +8 -8
- package/dist/components/Dialogue/DialogueAvatar.js.map +1 -1
- package/dist/components/Dialogue/DialogueAvatarContainer.js +1 -1
- package/dist/components/Dialogue/DialogueAvatarProps.d.ts +0 -1
- package/dist/components/Dialogue/DialogueAvatarProps.d.ts.map +1 -1
- package/dist/components/Dialogue/DialogueContentContainer.js +39 -28
- package/dist/components/Dialogue/DialogueContentContainer.js.map +1 -1
- package/dist/components/Dialogue/DialogueMessage.js +39 -28
- package/dist/components/Dialogue/DialogueMessage.js.map +1 -1
- package/dist/components/Dialogue/DialogueMessageInner.d.ts +3 -0
- package/dist/components/Dialogue/DialogueMessageInner.d.ts.map +1 -0
- package/dist/components/Dialogue/DialogueMessageInner.js +45 -0
- package/dist/components/Dialogue/DialogueMessageInner.js.map +1 -0
- package/dist/components/Dialogue/DialogueMessageInnerProps.d.ts +7 -0
- package/dist/components/Dialogue/DialogueMessageInnerProps.d.ts.map +1 -0
- package/dist/components/Dialogue/DialogueMessageInnerProps.js +2 -0
- package/dist/components/Dialogue/DialogueMessageInnerProps.js.map +1 -0
- package/dist/components/Dialogue/DialogueName.js +39 -28
- package/dist/components/Dialogue/DialogueName.js.map +1 -1
- package/dist/components/Dialogue/DialogueProps.d.ts +6 -2
- package/dist/components/Dialogue/DialogueProps.d.ts.map +1 -1
- package/dist/components/Dialogue/index.d.ts +2 -0
- package/dist/components/Dialogue/index.d.ts.map +1 -1
- package/dist/components/Dialogue/index.js +8 -6
- package/dist/components/Dialogue/index.js.map +1 -1
- package/dist/components/Hamburger/Hamburger.js +31 -31
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +7 -7
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/ModalProps.d.ts +2 -0
- package/dist/components/Modal/ModalProps.d.ts.map +1 -1
- package/dist/layouts/Columns/Column.js +279 -216
- package/dist/layouts/Columns/Column.js.map +1 -1
- package/dist/layouts/Columns/Columns.d.ts.map +1 -1
- package/dist/layouts/Columns/Columns.js +302 -239
- package/dist/layouts/Columns/Columns.js.map +1 -1
- package/dist/layouts/Columns/Columns.stories.d.ts +2 -0
- package/dist/layouts/Columns/Columns.stories.d.ts.map +1 -1
- package/dist/layouts/Columns/ColumnsProps.d.ts +4 -0
- package/dist/layouts/Columns/ColumnsProps.d.ts.map +1 -1
- package/dist/layouts/Container/Container.d.ts.map +1 -1
- package/dist/layouts/Container/Container.js +74 -10
- package/dist/layouts/Container/Container.js.map +1 -1
- package/dist/layouts/Container/Container.stories.d.ts +3 -0
- package/dist/layouts/Container/Container.stories.d.ts.map +1 -1
- package/dist/layouts/Container/ContainerProps.d.ts +5 -0
- package/dist/layouts/Container/ContainerProps.d.ts.map +1 -1
- package/dist/react-minolith.js +72 -70
- package/dist/react-minolith.js.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js +199 -86
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js.map +1 -1
- package/package.json +2 -2
- package/dist/DialogueAvatar.module-uqGI3dA2.js +0 -26
- package/dist/DialogueAvatar.module-uqGI3dA2.js.map +0 -1
|
@@ -1,94 +1,124 @@
|
|
|
1
1
|
const l = "minolith-";
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
return s && (s.fore &&
|
|
5
|
-
`--${l}color-${
|
|
6
|
-
), s.back &&
|
|
7
|
-
`--${l}color-${
|
|
8
|
-
), s.border &&
|
|
9
|
-
`--${l}color-${
|
|
10
|
-
), s.shadow &&
|
|
11
|
-
`--${l}color-${
|
|
12
|
-
), s.placeholder &&
|
|
13
|
-
`--${l}color-${
|
|
14
|
-
)),
|
|
2
|
+
function h(a, s, i, t) {
|
|
3
|
+
const e = [];
|
|
4
|
+
return s && (s.fore && e.push(
|
|
5
|
+
`--${l}color-${a}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-fore: ${s.fore.startsWith("--") ? `var(${s.fore});` : `${s.fore};`}`
|
|
6
|
+
), s.back && e.push(
|
|
7
|
+
`--${l}color-${a}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-back: ${s.back.startsWith("--") ? `var(${s.back});` : `${s.back};`}`
|
|
8
|
+
), s.border && e.push(
|
|
9
|
+
`--${l}color-${a}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-border: ${s.border.startsWith("--") ? `var(${s.border});` : `${s.border};`}`
|
|
10
|
+
), s.shadow && e.push(
|
|
11
|
+
`--${l}color-${a}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-shadow: ${s.shadow.startsWith("--") ? `var(${s.shadow});` : `${s.shadow};`}`
|
|
12
|
+
), s.placeholder && e.push(
|
|
13
|
+
`--${l}color-${a}${i ? `-${i}` : ""}${t ? `-${t}` : ""}-placeholder: ${s.placeholder.startsWith("--") ? `var(${s.placeholder});` : `${s.placeholder};`}`
|
|
14
|
+
)), e;
|
|
15
15
|
}
|
|
16
|
-
function n(
|
|
16
|
+
function n(a, s, i) {
|
|
17
17
|
const t = [];
|
|
18
18
|
if (s.default) {
|
|
19
|
-
const
|
|
20
|
-
|
|
19
|
+
const e = h(
|
|
20
|
+
a,
|
|
21
21
|
s.default,
|
|
22
22
|
void 0,
|
|
23
23
|
i
|
|
24
24
|
);
|
|
25
|
-
|
|
25
|
+
e.length > 0 && t.push(...e);
|
|
26
26
|
}
|
|
27
27
|
if (s.hover) {
|
|
28
|
-
const
|
|
29
|
-
|
|
28
|
+
const e = h(
|
|
29
|
+
a,
|
|
30
30
|
s.hover,
|
|
31
31
|
"hover",
|
|
32
32
|
i
|
|
33
33
|
);
|
|
34
|
-
|
|
34
|
+
e.length > 0 && t.push(...e);
|
|
35
35
|
}
|
|
36
36
|
if (s.focus) {
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
const e = h(
|
|
38
|
+
a,
|
|
39
39
|
s.focus,
|
|
40
40
|
"focus",
|
|
41
41
|
i
|
|
42
42
|
);
|
|
43
|
-
|
|
43
|
+
e.length > 0 && t.push(...e);
|
|
44
44
|
}
|
|
45
45
|
if (s.active) {
|
|
46
|
-
const
|
|
47
|
-
|
|
46
|
+
const e = h(
|
|
47
|
+
a,
|
|
48
48
|
s.active,
|
|
49
49
|
"active",
|
|
50
50
|
i
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
e.length > 0 && t.push(...e);
|
|
53
53
|
}
|
|
54
54
|
if (s.disabled) {
|
|
55
|
-
const
|
|
56
|
-
|
|
55
|
+
const e = h(
|
|
56
|
+
a,
|
|
57
57
|
s.disabled,
|
|
58
58
|
"disabled",
|
|
59
59
|
i
|
|
60
60
|
);
|
|
61
|
-
|
|
61
|
+
e.length > 0 && t.push(...e);
|
|
62
62
|
}
|
|
63
63
|
return t;
|
|
64
64
|
}
|
|
65
|
-
function $(
|
|
66
|
-
const s = [], i =
|
|
65
|
+
function $(a) {
|
|
66
|
+
const s = [], i = d(a), t = u(a), e = g(a);
|
|
67
67
|
return i.length > 0 && s.push(`:root{${i.join("")}}`), t.length > 0 && s.push(`:root{${t.join("")}}`), t.length > 0 && s.push(
|
|
68
68
|
`[data-color-scheme="light"]{${t.join("")}}`
|
|
69
|
-
),
|
|
70
|
-
`[data-color-scheme="dark"]{${
|
|
69
|
+
), e.length > 0 && s.push(
|
|
70
|
+
`[data-color-scheme="dark"]{${e.join("")}}`
|
|
71
71
|
), s;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function d(a) {
|
|
74
74
|
const s = [];
|
|
75
|
-
if (
|
|
76
|
-
if (
|
|
77
|
-
const i =
|
|
78
|
-
i.speedHeavey && s.push(
|
|
75
|
+
if (a) {
|
|
76
|
+
if (a.animation) {
|
|
77
|
+
const i = a.animation;
|
|
78
|
+
i.speedHeavey && s.push(
|
|
79
|
+
`--${l}animation-speed-heavy: ${i.speedHeavey};`
|
|
80
|
+
), i.speedSlower && s.push(
|
|
81
|
+
`--${l}animation-speed-slower: ${i.speedSlower};`
|
|
82
|
+
), i.speedSlow && s.push(
|
|
83
|
+
`--${l}animation-speed-slow: ${i.speedSlow};`
|
|
84
|
+
), i.speedNormal && s.push(
|
|
85
|
+
`--${l}animation-speed-normal: ${i.speedNormal};`
|
|
86
|
+
), i.speedfFast && s.push(
|
|
87
|
+
`--${l}animation-speed-fast: ${i.speedfFast};`
|
|
88
|
+
), i.speedfFaster && s.push(
|
|
89
|
+
`--${l}animation-speed-faster: ${i.speedfFaster};`
|
|
90
|
+
), i.speedfFlash && s.push(
|
|
91
|
+
`--${l}animation-speed-flash: ${i.speedfFlash};`
|
|
92
|
+
);
|
|
79
93
|
}
|
|
80
|
-
if (
|
|
81
|
-
const i =
|
|
82
|
-
i.borderWidthXThin && s.push(
|
|
94
|
+
if (a.border) {
|
|
95
|
+
const i = a.border;
|
|
96
|
+
i.borderWidthXThin && s.push(
|
|
97
|
+
`--${l}border-width-xthin: ${i.borderWidthXThin};`
|
|
98
|
+
), i.borderWidthThin && s.push(
|
|
99
|
+
`--${l}border-width-thin: ${i.borderWidthThin};`
|
|
100
|
+
), i.borderWidthMedium && s.push(
|
|
101
|
+
`--${l}border-width-medium: ${i.borderWidthMedium};`
|
|
102
|
+
), i.borderWidthThick && s.push(
|
|
103
|
+
`--${l}border-width-thick: ${i.borderWidthThick};`
|
|
104
|
+
), i.borderWidthXThick && s.push(
|
|
105
|
+
`--${l}border-width-xthick: ${i.borderWidthXThick};`
|
|
106
|
+
), i.borderRadiusSmall && s.push(
|
|
107
|
+
`--${l}border-radius-small: ${i.borderRadiusSmall};`
|
|
108
|
+
), i.borderRadiusMedium && s.push(
|
|
109
|
+
`--${l}border-radius-medium: ${i.borderRadiusMedium};`
|
|
110
|
+
), i.borderRadiusLarge && s.push(
|
|
111
|
+
`--${l}border-radius-large: ${i.borderRadiusLarge};`
|
|
112
|
+
);
|
|
83
113
|
}
|
|
84
|
-
if (
|
|
85
|
-
const i =
|
|
86
|
-
if (
|
|
87
|
-
const
|
|
114
|
+
if (a.color) {
|
|
115
|
+
const i = a.color, t = (e, o, f) => {
|
|
116
|
+
if (f) {
|
|
117
|
+
const r = `${f.lightness}% ${f.chroma} ${f.hue}`;
|
|
88
118
|
s.push(
|
|
89
|
-
`--${l}color-${
|
|
119
|
+
`--${l}color-${e}-${o}-oklch: ${r};`
|
|
90
120
|
), s.push(
|
|
91
|
-
`--${l}color-${
|
|
121
|
+
`--${l}color-${e}-${o}: oklch(${r});`
|
|
92
122
|
);
|
|
93
123
|
}
|
|
94
124
|
};
|
|
@@ -96,64 +126,108 @@ function u(h) {
|
|
|
96
126
|
if (typeof i.white == "string")
|
|
97
127
|
s.push(`--${l}color-white: ${i.white};`);
|
|
98
128
|
else {
|
|
99
|
-
const
|
|
129
|
+
const e = `${i.white.lightness}% ${i.white.chroma} ${i.white.hue}`;
|
|
100
130
|
s.push(
|
|
101
|
-
`--${l}color-white-oklch: ${
|
|
102
|
-
), s.push(
|
|
131
|
+
`--${l}color-white-oklch: ${e};`
|
|
132
|
+
), s.push(
|
|
133
|
+
`--${l}color-white: oklch(${e});`
|
|
134
|
+
);
|
|
103
135
|
}
|
|
104
136
|
if (i.black)
|
|
105
137
|
if (typeof i.black == "string")
|
|
106
138
|
s.push(`--${l}color-black: ${i.black};`);
|
|
107
139
|
else {
|
|
108
|
-
const
|
|
140
|
+
const e = `${i.black.lightness}% ${i.black.chroma} ${i.black.hue}`;
|
|
109
141
|
s.push(
|
|
110
|
-
`--${l}color-black-oklch: ${
|
|
111
|
-
), s.push(
|
|
142
|
+
`--${l}color-black-oklch: ${e};`
|
|
143
|
+
), s.push(
|
|
144
|
+
`--${l}color-black: oklch(${e});`
|
|
145
|
+
);
|
|
112
146
|
}
|
|
113
147
|
if (i.gray) {
|
|
114
|
-
const
|
|
115
|
-
t(
|
|
148
|
+
const e = i.gray, o = "gray";
|
|
149
|
+
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]);
|
|
116
150
|
}
|
|
117
151
|
if (i.red) {
|
|
118
|
-
const
|
|
119
|
-
t(
|
|
152
|
+
const e = i.red, o = "red";
|
|
153
|
+
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]);
|
|
120
154
|
}
|
|
121
155
|
if (i.orange) {
|
|
122
|
-
const
|
|
123
|
-
t(
|
|
156
|
+
const e = i.orange, o = "orange";
|
|
157
|
+
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]);
|
|
124
158
|
}
|
|
125
159
|
if (i.yellow) {
|
|
126
|
-
const
|
|
127
|
-
t(
|
|
160
|
+
const e = i.yellow, o = "yellow";
|
|
161
|
+
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]);
|
|
128
162
|
}
|
|
129
163
|
if (i.green) {
|
|
130
|
-
const
|
|
131
|
-
t(
|
|
164
|
+
const e = i.green, o = "green";
|
|
165
|
+
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]);
|
|
132
166
|
}
|
|
133
167
|
if (i.cyan) {
|
|
134
|
-
const
|
|
135
|
-
t(
|
|
168
|
+
const e = i.cyan, o = "cyan";
|
|
169
|
+
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]);
|
|
136
170
|
}
|
|
137
171
|
if (i.blue) {
|
|
138
|
-
const
|
|
139
|
-
t(
|
|
172
|
+
const e = i.blue, o = "blue";
|
|
173
|
+
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]);
|
|
140
174
|
}
|
|
141
175
|
if (i.violet) {
|
|
142
|
-
const
|
|
143
|
-
t(
|
|
176
|
+
const e = i.violet, o = "violet";
|
|
177
|
+
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]);
|
|
144
178
|
}
|
|
145
179
|
if (i.magenta) {
|
|
146
|
-
const
|
|
147
|
-
t(
|
|
180
|
+
const e = i.magenta, o = "magenta";
|
|
181
|
+
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]);
|
|
148
182
|
}
|
|
149
183
|
}
|
|
150
|
-
if (
|
|
151
|
-
const i =
|
|
152
|
-
i.zIndexTabula && s.push(
|
|
184
|
+
if (a.miscellaneous) {
|
|
185
|
+
const i = a.miscellaneous;
|
|
186
|
+
i.zIndexTabula && s.push(
|
|
187
|
+
`--${l}z-index-tabula: ${i.zIndexTabula};`
|
|
188
|
+
), i.zIndexModal && s.push(
|
|
189
|
+
`--${l}z-index-modal: ${i.zIndexModal};`
|
|
190
|
+
), i.zIndexModalContent && s.push(
|
|
191
|
+
`--${l}z-index-tabula-content: ${i.zIndexModalContent};`
|
|
192
|
+
), i.zIndexHeaderIsSticky && s.push(
|
|
193
|
+
`--${l}z-index-header-is-sticky: ${i.zIndexHeaderIsSticky};`
|
|
194
|
+
);
|
|
153
195
|
}
|
|
154
|
-
if (
|
|
155
|
-
const i =
|
|
156
|
-
i.fontFamily && (i.fontFamily.sansSerif && s.push(
|
|
196
|
+
if (a.typography) {
|
|
197
|
+
const i = a.typography;
|
|
198
|
+
i.fontFamily && (i.fontFamily.sansSerif && s.push(
|
|
199
|
+
`--${l}font-family-sans-serif: ${i.fontFamily.sansSerif};`
|
|
200
|
+
), i.fontFamily.serif && s.push(
|
|
201
|
+
`--${l}font-family-serif: ${i.fontFamily.serif};`
|
|
202
|
+
), i.fontFamily.monospace && s.push(
|
|
203
|
+
`--${l}font-family-monospace: ${i.fontFamily.monospace};`
|
|
204
|
+
), i.fontFamily.main && s.push(
|
|
205
|
+
`--${l}font-family-main: ${i.fontFamily.main};`
|
|
206
|
+
), i.fontFamily.heading && s.push(
|
|
207
|
+
`--${l}font-family-heading: ${i.fontFamily.heading};`
|
|
208
|
+
), i.fontFamily.code && s.push(
|
|
209
|
+
`--${l}font-family-code: ${i.fontFamily.code};`
|
|
210
|
+
)), i.fontSize && (i.fontSize.xsmall && s.push(
|
|
211
|
+
`--${l}font-size-xsmall: ${i.fontSize.xsmall};`
|
|
212
|
+
), i.fontSize.small && s.push(
|
|
213
|
+
`--${l}font-size-small: ${i.fontSize.small};`
|
|
214
|
+
), i.fontSize.normal && s.push(
|
|
215
|
+
`--${l}font-size-normal: ${i.fontSize.normal};`
|
|
216
|
+
), i.fontSize.medium && s.push(
|
|
217
|
+
`--${l}font-size-medium: ${i.fontSize.medium};`
|
|
218
|
+
), i.fontSize.large && s.push(
|
|
219
|
+
`--${l}font-size-large: ${i.fontSize.large};`
|
|
220
|
+
), i.fontSize.xlarge && s.push(
|
|
221
|
+
`--${l}font-size-xlarge: ${i.fontSize.xlarge};`
|
|
222
|
+
), i.fontSize.xxlarge && s.push(
|
|
223
|
+
`--${l}font-size-xxlarge: ${i.fontSize.xxlarge};`
|
|
224
|
+
), i.fontSize.xxxlarge && s.push(
|
|
225
|
+
`--${l}font-size-xxxlarge: ${i.fontSize.xxxlarge};`
|
|
226
|
+
), i.fontSize.xxxxlarge && s.push(
|
|
227
|
+
`--${l}font-size-xxxxlarge: ${i.fontSize.xxxxlarge};`
|
|
228
|
+
), i.fontSize.xxxxxlarge && s.push(
|
|
229
|
+
`--${l}font-size-xxxxxlarge: ${i.fontSize.xxxxxlarge};`
|
|
230
|
+
)), i.fontWeight && (i.fontWeight.light && s.push(
|
|
157
231
|
`--${l}font-weight-light: ${i.fontWeight.light};`
|
|
158
232
|
), i.fontWeight.normal && s.push(
|
|
159
233
|
`--${l}font-weight-normal: ${i.fontWeight.normal};`
|
|
@@ -161,15 +235,54 @@ function u(h) {
|
|
|
161
235
|
`--${l}font-weight-medium: ${i.fontWeight.medium};`
|
|
162
236
|
), i.fontWeight.semibold && s.push(
|
|
163
237
|
`--${l}font-weight-semibold: ${i.fontWeight.semibold};`
|
|
164
|
-
), i.fontWeight.bold && s.push(
|
|
238
|
+
), i.fontWeight.bold && s.push(
|
|
239
|
+
`--${l}font-weight-bold: ${i.fontWeight.bold};`
|
|
240
|
+
));
|
|
241
|
+
}
|
|
242
|
+
if (a.components) {
|
|
243
|
+
const i = a.components;
|
|
244
|
+
if (i.button) {
|
|
245
|
+
const t = i.button;
|
|
246
|
+
t.paddingX && s.push(
|
|
247
|
+
`--${l}button-padding-x: ${t.paddingX};`
|
|
248
|
+
), t.paddingY && s.push(
|
|
249
|
+
`--${l}button-padding-y: ${t.paddingY};`
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
if (i.dialogue) {
|
|
253
|
+
const t = i.dialogue;
|
|
254
|
+
t.avatarSizeDefault && s.push(
|
|
255
|
+
`--${l}dialogue-avatar-size-default: ${t.avatarSizeDefault};`
|
|
256
|
+
), t.avatarSizeSmall && s.push(
|
|
257
|
+
`--${l}dialogue-avatar-size-small: ${t.avatarSizeSmall};`
|
|
258
|
+
), t.avatarSizeLarge && s.push(
|
|
259
|
+
`--${l}dialogue-avatar-size-large: ${t.avatarSizeLarge};`
|
|
260
|
+
), t.avatarTopOffset && s.push(
|
|
261
|
+
`--${l}dialogue-avatar-top-offset: ${t.avatarTopOffset};`
|
|
262
|
+
), t.nameFontSize && (t.nameFontSize.includes("rem"), s.push(
|
|
263
|
+
`--${l}dialogue-name-font-size: ${t.nameFontSize};`
|
|
264
|
+
)), t.namePaddingX && s.push(
|
|
265
|
+
`--${l}dialogue-name-padding-x: ${t.namePaddingX};`
|
|
266
|
+
), t.namePaddingY && s.push(
|
|
267
|
+
`--${l}dialogue-name-padding-y: ${t.namePaddingY};`
|
|
268
|
+
), t.messageArrowHeight && s.push(
|
|
269
|
+
`--${l}dialogue-messege-arrow-height: ${t.messageArrowHeight};`
|
|
270
|
+
), t.messageArrowWidth && s.push(
|
|
271
|
+
`--${l}dialogue-messege-arrow-width: ${t.messageArrowWidth};`
|
|
272
|
+
), t.messageInnerPaddingX && s.push(
|
|
273
|
+
`--${l}dialogue-message-inner-padding-x: ${t.messageInnerPaddingX};`
|
|
274
|
+
), t.messageInnerPaddingY && s.push(
|
|
275
|
+
`--${l}dialogue-message-inner-padding-y: ${t.messageInnerPaddingY};`
|
|
276
|
+
);
|
|
277
|
+
}
|
|
165
278
|
}
|
|
166
279
|
}
|
|
167
280
|
return s;
|
|
168
281
|
}
|
|
169
|
-
function
|
|
282
|
+
function u(a) {
|
|
170
283
|
const s = [];
|
|
171
|
-
if (
|
|
172
|
-
const i =
|
|
284
|
+
if (a && a.color) {
|
|
285
|
+
const i = a.color;
|
|
173
286
|
if (i.light) {
|
|
174
287
|
if (i.light.default) {
|
|
175
288
|
const t = n("default", i.light.default);
|
|
@@ -293,10 +406,10 @@ function d(h) {
|
|
|
293
406
|
}
|
|
294
407
|
return s;
|
|
295
408
|
}
|
|
296
|
-
function g(
|
|
409
|
+
function g(a) {
|
|
297
410
|
const s = [];
|
|
298
|
-
if (
|
|
299
|
-
const i =
|
|
411
|
+
if (a && a.color) {
|
|
412
|
+
const i = a.color;
|
|
300
413
|
if (i.dark) {
|
|
301
414
|
if (i.dark.default) {
|
|
302
415
|
const t = n("default", i.dark.default);
|
|
@@ -426,8 +539,8 @@ function g(h) {
|
|
|
426
539
|
}
|
|
427
540
|
const c = {
|
|
428
541
|
getMinolithCssVariableStyles: $,
|
|
429
|
-
getRootStyles:
|
|
430
|
-
getLightSchemeStyles:
|
|
542
|
+
getRootStyles: d,
|
|
543
|
+
getLightSchemeStyles: u,
|
|
431
544
|
getDarkSchemeStyles: g
|
|
432
545
|
};
|
|
433
546
|
export {
|