react-minolith 0.0.28 → 0.0.29
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/assets/Header.css +1 -1
- package/dist/assets/MinolithCssVariableStylesProvider.css +1 -1
- package/dist/common/models/ComponentsCssVariable.d.ts +5 -0
- package/dist/common/models/ComponentsCssVariable.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.js +20 -7
- package/dist/components/Breadcrumbs/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +20 -7
- package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/Breadcrumbs/BreadcrumbsNav.js +19 -6
- package/dist/components/Breadcrumbs/BreadcrumbsNav.js.map +1 -1
- package/dist/components/Header/Header.d.ts.map +1 -1
- package/dist/components/Header/Header.js +18 -17
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderProps.d.ts +1 -0
- package/dist/components/Header/HeaderProps.d.ts.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js +175 -155
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js.map +1 -1
- package/package.json +3 -2
- package/dist/Breadcrumbs.module-BtQf5S18.js +0 -18
- package/dist/Breadcrumbs.module-BtQf5S18.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
function h(
|
|
1
|
+
const l = "minolith-";
|
|
2
|
+
function h(d, t, s, i) {
|
|
3
3
|
const e = [];
|
|
4
4
|
return t && (t.fore && e.push(
|
|
5
|
-
`--${
|
|
5
|
+
`--${l}color-${d}${s ? `-${s}` : ""}${i ? `-${i}` : ""}-fore: ${t.fore.startsWith("--") ? `var(${t.fore});` : `${t.fore};`}`
|
|
6
6
|
), t.back && e.push(
|
|
7
|
-
`--${
|
|
7
|
+
`--${l}color-${d}${s ? `-${s}` : ""}${i ? `-${i}` : ""}-back: ${t.back.startsWith("--") ? `var(${t.back});` : `${t.back};`}`
|
|
8
8
|
), t.border && e.push(
|
|
9
|
-
`--${
|
|
9
|
+
`--${l}color-${d}${s ? `-${s}` : ""}${i ? `-${i}` : ""}-border: ${t.border.startsWith("--") ? `var(${t.border});` : `${t.border};`}`
|
|
10
10
|
), t.shadow && e.push(
|
|
11
|
-
`--${
|
|
11
|
+
`--${l}color-${d}${s ? `-${s}` : ""}${i ? `-${i}` : ""}-shadow: ${t.shadow.startsWith("--") ? `var(${t.shadow});` : `${t.shadow};`}`
|
|
12
12
|
), t.placeholder && e.push(
|
|
13
|
-
`--${
|
|
13
|
+
`--${l}color-${d}${s ? `-${s}` : ""}${i ? `-${i}` : ""}-placeholder: ${t.placeholder.startsWith("--") ? `var(${t.placeholder});` : `${t.placeholder};`}`
|
|
14
14
|
)), e;
|
|
15
15
|
}
|
|
16
|
-
function f(
|
|
16
|
+
function f(d, t, s) {
|
|
17
17
|
const i = [];
|
|
18
18
|
if (t.default) {
|
|
19
19
|
const e = h(
|
|
20
|
-
|
|
20
|
+
d,
|
|
21
21
|
t.default,
|
|
22
22
|
void 0,
|
|
23
23
|
s
|
|
@@ -26,7 +26,7 @@ function f(l, t, s) {
|
|
|
26
26
|
}
|
|
27
27
|
if (t.hover) {
|
|
28
28
|
const e = h(
|
|
29
|
-
|
|
29
|
+
d,
|
|
30
30
|
t.hover,
|
|
31
31
|
"hover",
|
|
32
32
|
s
|
|
@@ -35,7 +35,7 @@ function f(l, t, s) {
|
|
|
35
35
|
}
|
|
36
36
|
if (t.focus) {
|
|
37
37
|
const e = h(
|
|
38
|
-
|
|
38
|
+
d,
|
|
39
39
|
t.focus,
|
|
40
40
|
"focus",
|
|
41
41
|
s
|
|
@@ -44,7 +44,7 @@ function f(l, t, s) {
|
|
|
44
44
|
}
|
|
45
45
|
if (t.active) {
|
|
46
46
|
const e = h(
|
|
47
|
-
|
|
47
|
+
d,
|
|
48
48
|
t.active,
|
|
49
49
|
"active",
|
|
50
50
|
s
|
|
@@ -53,7 +53,7 @@ function f(l, t, s) {
|
|
|
53
53
|
}
|
|
54
54
|
if (t.disabled) {
|
|
55
55
|
const e = h(
|
|
56
|
-
|
|
56
|
+
d,
|
|
57
57
|
t.disabled,
|
|
58
58
|
"disabled",
|
|
59
59
|
s
|
|
@@ -62,253 +62,253 @@ function f(l, t, s) {
|
|
|
62
62
|
}
|
|
63
63
|
return i;
|
|
64
64
|
}
|
|
65
|
-
function r(
|
|
65
|
+
function r(d, t) {
|
|
66
66
|
const s = [];
|
|
67
|
-
if (
|
|
67
|
+
if (d.default) {
|
|
68
68
|
const i = f(
|
|
69
69
|
"default",
|
|
70
|
-
|
|
70
|
+
d.default,
|
|
71
71
|
t
|
|
72
72
|
);
|
|
73
73
|
i.length > 0 && s.push(...i);
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
76
|
-
const i = f("gray",
|
|
75
|
+
if (d.gray) {
|
|
76
|
+
const i = f("gray", d.gray, t);
|
|
77
77
|
i.length > 0 && s.push(...i);
|
|
78
78
|
}
|
|
79
|
-
if (
|
|
80
|
-
const i = f("red",
|
|
79
|
+
if (d.red) {
|
|
80
|
+
const i = f("red", d.red, t);
|
|
81
81
|
i.length > 0 && s.push(...i);
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
const i = f("orange",
|
|
83
|
+
if (d.orange) {
|
|
84
|
+
const i = f("orange", d.orange, t);
|
|
85
85
|
i.length > 0 && s.push(...i);
|
|
86
86
|
}
|
|
87
|
-
if (
|
|
88
|
-
const i = f("yellow",
|
|
87
|
+
if (d.yellow) {
|
|
88
|
+
const i = f("yellow", d.yellow, t);
|
|
89
89
|
i.length > 0 && s.push(...i);
|
|
90
90
|
}
|
|
91
|
-
if (
|
|
92
|
-
const i = f("green",
|
|
91
|
+
if (d.green) {
|
|
92
|
+
const i = f("green", d.green, t);
|
|
93
93
|
i.length > 0 && s.push(...i);
|
|
94
94
|
}
|
|
95
|
-
if (
|
|
96
|
-
const i = f("cyan",
|
|
95
|
+
if (d.cyan) {
|
|
96
|
+
const i = f("cyan", d.cyan, t);
|
|
97
97
|
i.length > 0 && s.push(...i);
|
|
98
98
|
}
|
|
99
|
-
if (
|
|
100
|
-
const i = f("blue",
|
|
99
|
+
if (d.blue) {
|
|
100
|
+
const i = f("blue", d.blue, t);
|
|
101
101
|
i.length > 0 && s.push(...i);
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
104
|
-
const i = f("violet",
|
|
103
|
+
if (d.violet) {
|
|
104
|
+
const i = f("violet", d.violet, t);
|
|
105
105
|
i.length > 0 && s.push(...i);
|
|
106
106
|
}
|
|
107
|
-
if (
|
|
107
|
+
if (d.magenta) {
|
|
108
108
|
const i = f(
|
|
109
109
|
"magenta",
|
|
110
|
-
|
|
110
|
+
d.magenta,
|
|
111
111
|
t
|
|
112
112
|
);
|
|
113
113
|
i.length > 0 && s.push(...i);
|
|
114
114
|
}
|
|
115
115
|
return s;
|
|
116
116
|
}
|
|
117
|
-
function n(
|
|
117
|
+
function n(d) {
|
|
118
118
|
const t = [];
|
|
119
|
-
if (
|
|
119
|
+
if (d.badge) {
|
|
120
120
|
const s = r(
|
|
121
|
-
|
|
121
|
+
d.badge,
|
|
122
122
|
"badge"
|
|
123
123
|
);
|
|
124
124
|
s.length > 0 && t.push(...s);
|
|
125
125
|
}
|
|
126
|
-
if (
|
|
127
|
-
const s = r(
|
|
128
|
-
if (s.length > 0 && t.push(...s),
|
|
126
|
+
if (d.accordion) {
|
|
127
|
+
const s = r(d.accordion, "accordion");
|
|
128
|
+
if (s.length > 0 && t.push(...s), d.accordion.accordionSummary) {
|
|
129
129
|
const i = r(
|
|
130
|
-
|
|
130
|
+
d.accordion.accordionSummary,
|
|
131
131
|
"accordion-summary"
|
|
132
132
|
);
|
|
133
133
|
i.length > 0 && t.push(...i);
|
|
134
134
|
}
|
|
135
|
-
if (
|
|
135
|
+
if (d.accordion.accordionDetails) {
|
|
136
136
|
const i = r(
|
|
137
|
-
|
|
137
|
+
d.accordion.accordionDetails,
|
|
138
138
|
"accordion-details"
|
|
139
139
|
);
|
|
140
140
|
i.length > 0 && t.push(...i);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
if (
|
|
143
|
+
if (d.button) {
|
|
144
144
|
const s = r(
|
|
145
|
-
|
|
145
|
+
d.button,
|
|
146
146
|
"button"
|
|
147
147
|
);
|
|
148
148
|
s.length > 0 && t.push(...s);
|
|
149
149
|
}
|
|
150
|
-
if (
|
|
151
|
-
const s = r(
|
|
152
|
-
if (s.length > 0 && t.push(...s),
|
|
150
|
+
if (d.card) {
|
|
151
|
+
const s = r(d.card, "card");
|
|
152
|
+
if (s.length > 0 && t.push(...s), d.card.cardHeader) {
|
|
153
153
|
const i = r(
|
|
154
|
-
|
|
154
|
+
d.card.cardHeader,
|
|
155
155
|
"card-header"
|
|
156
156
|
);
|
|
157
157
|
i.length > 0 && t.push(...i);
|
|
158
158
|
}
|
|
159
|
-
if (
|
|
159
|
+
if (d.card.cardBody) {
|
|
160
160
|
const i = r(
|
|
161
|
-
|
|
161
|
+
d.card.cardBody,
|
|
162
162
|
"card-body"
|
|
163
163
|
);
|
|
164
164
|
i.length > 0 && t.push(...i);
|
|
165
165
|
}
|
|
166
|
-
if (
|
|
166
|
+
if (d.card.cardFooter) {
|
|
167
167
|
const i = r(
|
|
168
|
-
|
|
168
|
+
d.card.cardFooter,
|
|
169
169
|
"card-footer"
|
|
170
170
|
);
|
|
171
171
|
i.length > 0 && t.push(...i);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
if (
|
|
175
|
-
const s = r(
|
|
176
|
-
if (s.length > 0 && t.push(...s),
|
|
174
|
+
if (d.dialogue) {
|
|
175
|
+
const s = r(d.dialogue, "dialogue");
|
|
176
|
+
if (s.length > 0 && t.push(...s), d.dialogue.dialogueAvatar) {
|
|
177
177
|
const i = r(
|
|
178
|
-
|
|
178
|
+
d.dialogue.dialogueAvatar,
|
|
179
179
|
"dialogue-avatar"
|
|
180
180
|
);
|
|
181
181
|
i.length > 0 && t.push(...i);
|
|
182
182
|
}
|
|
183
|
-
if (
|
|
183
|
+
if (d.dialogue.dialogueName) {
|
|
184
184
|
const i = r(
|
|
185
|
-
|
|
185
|
+
d.dialogue.dialogueName,
|
|
186
186
|
"dialogue-name"
|
|
187
187
|
);
|
|
188
188
|
i.length > 0 && t.push(...i);
|
|
189
189
|
}
|
|
190
|
-
if (
|
|
190
|
+
if (d.dialogue.dialogueMessage) {
|
|
191
191
|
const i = r(
|
|
192
|
-
|
|
192
|
+
d.dialogue.dialogueMessage,
|
|
193
193
|
"dialogue-message"
|
|
194
194
|
);
|
|
195
195
|
i.length > 0 && t.push(...i);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
if (
|
|
198
|
+
if (d.header) {
|
|
199
199
|
const s = r(
|
|
200
|
-
|
|
200
|
+
d.header,
|
|
201
201
|
"header"
|
|
202
202
|
);
|
|
203
203
|
s.length > 0 && t.push(...s);
|
|
204
204
|
}
|
|
205
|
-
if (
|
|
205
|
+
if (d.label) {
|
|
206
206
|
const s = r(
|
|
207
|
-
|
|
207
|
+
d.label,
|
|
208
208
|
"label"
|
|
209
209
|
);
|
|
210
210
|
s.length > 0 && t.push(...s);
|
|
211
211
|
}
|
|
212
|
-
if (
|
|
212
|
+
if (d.link) {
|
|
213
213
|
const s = r(
|
|
214
|
-
|
|
214
|
+
d.link,
|
|
215
215
|
"link"
|
|
216
216
|
);
|
|
217
217
|
s.length > 0 && t.push(...s);
|
|
218
218
|
}
|
|
219
|
-
if (
|
|
219
|
+
if (d.loader) {
|
|
220
220
|
const s = r(
|
|
221
|
-
|
|
221
|
+
d.loader,
|
|
222
222
|
"loader"
|
|
223
223
|
);
|
|
224
224
|
s.length > 0 && t.push(...s);
|
|
225
225
|
}
|
|
226
|
-
if (
|
|
226
|
+
if (d.message) {
|
|
227
227
|
const s = r(
|
|
228
|
-
|
|
228
|
+
d.message,
|
|
229
229
|
"message"
|
|
230
230
|
);
|
|
231
|
-
if (s.length > 0 && t.push(...s),
|
|
231
|
+
if (s.length > 0 && t.push(...s), d.message.messageHeader) {
|
|
232
232
|
const i = r(
|
|
233
|
-
|
|
233
|
+
d.message.messageHeader,
|
|
234
234
|
"message-header"
|
|
235
235
|
);
|
|
236
236
|
i.length > 0 && t.push(...i);
|
|
237
237
|
}
|
|
238
|
-
if (
|
|
238
|
+
if (d.message.messageBody) {
|
|
239
239
|
const i = r(
|
|
240
|
-
|
|
240
|
+
d.message.messageBody,
|
|
241
241
|
"message-body"
|
|
242
242
|
);
|
|
243
243
|
i.length > 0 && t.push(...i);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
if (
|
|
246
|
+
if (d.progress) {
|
|
247
247
|
const s = r(
|
|
248
|
-
|
|
248
|
+
d.progress,
|
|
249
249
|
"progress"
|
|
250
250
|
);
|
|
251
251
|
s.length > 0 && t.push(...s);
|
|
252
252
|
}
|
|
253
253
|
return t;
|
|
254
254
|
}
|
|
255
|
-
function c(
|
|
256
|
-
const t = [], s = o(
|
|
255
|
+
function c(d) {
|
|
256
|
+
const t = [], s = o(d), i = $(d), e = y(d);
|
|
257
257
|
return s.length > 0 && t.push(`:root{${s.join("")}}`), i.length > 0 && t.push(`:root{${i.join("")}}`), i.length > 0 && t.push(
|
|
258
258
|
`[data-color-scheme="light"]{${i.join("")}}`
|
|
259
259
|
), e.length > 0 && t.push(
|
|
260
260
|
`[data-color-scheme="dark"]{${e.join("")}}`
|
|
261
261
|
), t;
|
|
262
262
|
}
|
|
263
|
-
function o(
|
|
263
|
+
function o(d) {
|
|
264
264
|
const t = [];
|
|
265
|
-
if (
|
|
266
|
-
if (
|
|
267
|
-
const s =
|
|
265
|
+
if (d) {
|
|
266
|
+
if (d.animation) {
|
|
267
|
+
const s = d.animation;
|
|
268
268
|
s.speedHeavey && t.push(
|
|
269
|
-
`--${
|
|
269
|
+
`--${l}animation-speed-heavy: ${s.speedHeavey};`
|
|
270
270
|
), s.speedSlower && t.push(
|
|
271
|
-
`--${
|
|
271
|
+
`--${l}animation-speed-slower: ${s.speedSlower};`
|
|
272
272
|
), s.speedSlow && t.push(
|
|
273
|
-
`--${
|
|
273
|
+
`--${l}animation-speed-slow: ${s.speedSlow};`
|
|
274
274
|
), s.speedNormal && t.push(
|
|
275
|
-
`--${
|
|
275
|
+
`--${l}animation-speed-normal: ${s.speedNormal};`
|
|
276
276
|
), s.speedfFast && t.push(
|
|
277
|
-
`--${
|
|
277
|
+
`--${l}animation-speed-fast: ${s.speedfFast};`
|
|
278
278
|
), s.speedfFaster && t.push(
|
|
279
|
-
`--${
|
|
279
|
+
`--${l}animation-speed-faster: ${s.speedfFaster};`
|
|
280
280
|
), s.speedfFlash && t.push(
|
|
281
|
-
`--${
|
|
281
|
+
`--${l}animation-speed-flash: ${s.speedfFlash};`
|
|
282
282
|
);
|
|
283
283
|
}
|
|
284
|
-
if (
|
|
285
|
-
const s =
|
|
284
|
+
if (d.border) {
|
|
285
|
+
const s = d.border;
|
|
286
286
|
s.borderWidthXThin && t.push(
|
|
287
|
-
`--${
|
|
287
|
+
`--${l}border-width-xthin: ${s.borderWidthXThin};`
|
|
288
288
|
), s.borderWidthThin && t.push(
|
|
289
|
-
`--${
|
|
289
|
+
`--${l}border-width-thin: ${s.borderWidthThin};`
|
|
290
290
|
), s.borderWidthMedium && t.push(
|
|
291
|
-
`--${
|
|
291
|
+
`--${l}border-width-medium: ${s.borderWidthMedium};`
|
|
292
292
|
), s.borderWidthThick && t.push(
|
|
293
|
-
`--${
|
|
293
|
+
`--${l}border-width-thick: ${s.borderWidthThick};`
|
|
294
294
|
), s.borderWidthXThick && t.push(
|
|
295
|
-
`--${
|
|
295
|
+
`--${l}border-width-xthick: ${s.borderWidthXThick};`
|
|
296
296
|
), s.borderRadiusSmall && t.push(
|
|
297
|
-
`--${
|
|
297
|
+
`--${l}border-radius-small: ${s.borderRadiusSmall};`
|
|
298
298
|
), s.borderRadiusMedium && t.push(
|
|
299
|
-
`--${
|
|
299
|
+
`--${l}border-radius-medium: ${s.borderRadiusMedium};`
|
|
300
300
|
), s.borderRadiusLarge && t.push(
|
|
301
|
-
`--${
|
|
301
|
+
`--${l}border-radius-large: ${s.borderRadiusLarge};`
|
|
302
302
|
);
|
|
303
303
|
}
|
|
304
|
-
if (
|
|
305
|
-
const s =
|
|
304
|
+
if (d.color) {
|
|
305
|
+
const s = d.color, i = (e, a, g) => {
|
|
306
306
|
if (g) {
|
|
307
307
|
const u = `${g.lightness}% ${g.chroma} ${g.hue}`;
|
|
308
308
|
t.push(
|
|
309
|
-
`--${
|
|
309
|
+
`--${l}color-${e}-${a}-oklch: ${u};`
|
|
310
310
|
), t.push(
|
|
311
|
-
`--${
|
|
311
|
+
`--${l}color-${e}-${a}: oklch(${u});`
|
|
312
312
|
);
|
|
313
313
|
}
|
|
314
314
|
};
|
|
@@ -349,114 +349,134 @@ function o(l) {
|
|
|
349
349
|
i(a, "95", e[95]), i(a, "90", e[90]), i(a, "85", e[85]), i(a, "80", e[80]), i(a, "75", e[75]), i(a, "70", e[70]), i(a, "65", e[65]), i(a, "60", e[60]), i(a, "55", e[55]), i(a, "50", e[50]), i(a, "45", e[45]), i(a, "40", e[40]), i(a, "35", e[35]), i(a, "30", e[30]), i(a, "25", e[25]), i(a, "20", e[20]), i(a, "15", e[15]), i(a, "10", e[10]), i(a, "05", e[5]);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
if (
|
|
353
|
-
const s =
|
|
352
|
+
if (d.miscellaneous) {
|
|
353
|
+
const s = d.miscellaneous;
|
|
354
354
|
s.zIndexTabula && t.push(
|
|
355
|
-
`--${
|
|
355
|
+
`--${l}z-index-tabula: ${s.zIndexTabula};`
|
|
356
356
|
), s.zIndexModal && t.push(
|
|
357
|
-
`--${
|
|
357
|
+
`--${l}z-index-modal: ${s.zIndexModal};`
|
|
358
358
|
), s.zIndexModalContent && t.push(
|
|
359
|
-
`--${
|
|
359
|
+
`--${l}z-index-tabula-content: ${s.zIndexModalContent};`
|
|
360
360
|
), s.zIndexHeaderIsSticky && t.push(
|
|
361
|
-
`--${
|
|
361
|
+
`--${l}z-index-header-is-sticky: ${s.zIndexHeaderIsSticky};`
|
|
362
362
|
);
|
|
363
363
|
}
|
|
364
|
-
if (
|
|
365
|
-
const s =
|
|
364
|
+
if (d.typography) {
|
|
365
|
+
const s = d.typography;
|
|
366
366
|
s.fontFamily && (s.fontFamily.sansSerif && t.push(
|
|
367
|
-
`--${
|
|
367
|
+
`--${l}font-family-sans-serif: ${s.fontFamily.sansSerif};`
|
|
368
368
|
), s.fontFamily.serif && t.push(
|
|
369
|
-
`--${
|
|
369
|
+
`--${l}font-family-serif: ${s.fontFamily.serif};`
|
|
370
370
|
), s.fontFamily.monospace && t.push(
|
|
371
|
-
`--${
|
|
371
|
+
`--${l}font-family-monospace: ${s.fontFamily.monospace};`
|
|
372
372
|
), s.fontFamily.main && t.push(
|
|
373
|
-
`--${
|
|
373
|
+
`--${l}font-family-main: ${s.fontFamily.main};`
|
|
374
374
|
), s.fontFamily.heading && t.push(
|
|
375
|
-
`--${
|
|
375
|
+
`--${l}font-family-heading: ${s.fontFamily.heading};`
|
|
376
376
|
), s.fontFamily.code && t.push(
|
|
377
|
-
`--${
|
|
377
|
+
`--${l}font-family-code: ${s.fontFamily.code};`
|
|
378
378
|
)), s.fontSize && (s.fontSize.xsmall && t.push(
|
|
379
|
-
`--${
|
|
379
|
+
`--${l}font-size-xsmall: ${s.fontSize.xsmall};`
|
|
380
380
|
), s.fontSize.small && t.push(
|
|
381
|
-
`--${
|
|
381
|
+
`--${l}font-size-small: ${s.fontSize.small};`
|
|
382
382
|
), s.fontSize.normal && t.push(
|
|
383
|
-
`--${
|
|
383
|
+
`--${l}font-size-normal: ${s.fontSize.normal};`
|
|
384
384
|
), s.fontSize.medium && t.push(
|
|
385
|
-
`--${
|
|
385
|
+
`--${l}font-size-medium: ${s.fontSize.medium};`
|
|
386
386
|
), s.fontSize.large && t.push(
|
|
387
|
-
`--${
|
|
387
|
+
`--${l}font-size-large: ${s.fontSize.large};`
|
|
388
388
|
), s.fontSize.xlarge && t.push(
|
|
389
|
-
`--${
|
|
389
|
+
`--${l}font-size-xlarge: ${s.fontSize.xlarge};`
|
|
390
390
|
), s.fontSize.xxlarge && t.push(
|
|
391
|
-
`--${
|
|
391
|
+
`--${l}font-size-xxlarge: ${s.fontSize.xxlarge};`
|
|
392
392
|
), s.fontSize.xxxlarge && t.push(
|
|
393
|
-
`--${
|
|
393
|
+
`--${l}font-size-xxxlarge: ${s.fontSize.xxxlarge};`
|
|
394
394
|
), s.fontSize.xxxxlarge && t.push(
|
|
395
|
-
`--${
|
|
395
|
+
`--${l}font-size-xxxxlarge: ${s.fontSize.xxxxlarge};`
|
|
396
396
|
), s.fontSize.xxxxxlarge && t.push(
|
|
397
|
-
`--${
|
|
397
|
+
`--${l}font-size-xxxxxlarge: ${s.fontSize.xxxxxlarge};`
|
|
398
398
|
)), s.fontWeight && (s.fontWeight.light && t.push(
|
|
399
|
-
`--${
|
|
399
|
+
`--${l}font-weight-light: ${s.fontWeight.light};`
|
|
400
400
|
), s.fontWeight.normal && t.push(
|
|
401
|
-
`--${
|
|
401
|
+
`--${l}font-weight-normal: ${s.fontWeight.normal};`
|
|
402
402
|
), s.fontWeight.medium && t.push(
|
|
403
|
-
`--${
|
|
403
|
+
`--${l}font-weight-medium: ${s.fontWeight.medium};`
|
|
404
404
|
), s.fontWeight.semibold && t.push(
|
|
405
|
-
`--${
|
|
405
|
+
`--${l}font-weight-semibold: ${s.fontWeight.semibold};`
|
|
406
406
|
), s.fontWeight.bold && t.push(
|
|
407
|
-
`--${
|
|
407
|
+
`--${l}font-weight-bold: ${s.fontWeight.bold};`
|
|
408
408
|
));
|
|
409
409
|
}
|
|
410
|
-
if (
|
|
411
|
-
const s =
|
|
410
|
+
if (d.components) {
|
|
411
|
+
const s = d.components;
|
|
412
412
|
if (s.breadcrumbs) {
|
|
413
413
|
const i = s.breadcrumbs;
|
|
414
414
|
i.breadcrumbDivider && t.push(
|
|
415
|
-
`--${
|
|
415
|
+
`--${l}breadcrumb-divider: ${i.breadcrumbDivider};`
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
if (s.button) {
|
|
419
419
|
const i = s.button;
|
|
420
420
|
i.paddingX && t.push(
|
|
421
|
-
`--${
|
|
421
|
+
`--${l}button-padding-x: ${i.paddingX};`
|
|
422
422
|
), i.paddingY && t.push(
|
|
423
|
-
`--${
|
|
423
|
+
`--${l}button-padding-y: ${i.paddingY};`
|
|
424
424
|
);
|
|
425
425
|
}
|
|
426
426
|
if (s.dialogue) {
|
|
427
427
|
const i = s.dialogue;
|
|
428
428
|
i.avatarSizeDefault && t.push(
|
|
429
|
-
`--${
|
|
429
|
+
`--${l}dialogue-avatar-size-default: ${i.avatarSizeDefault};`
|
|
430
430
|
), i.avatarSizeSmall && t.push(
|
|
431
|
-
`--${
|
|
431
|
+
`--${l}dialogue-avatar-size-small: ${i.avatarSizeSmall};`
|
|
432
432
|
), i.avatarSizeLarge && t.push(
|
|
433
|
-
`--${
|
|
433
|
+
`--${l}dialogue-avatar-size-large: ${i.avatarSizeLarge};`
|
|
434
434
|
), i.avatarTopOffset && t.push(
|
|
435
|
-
`--${
|
|
435
|
+
`--${l}dialogue-avatar-top-offset: ${i.avatarTopOffset};`
|
|
436
436
|
), i.nameFontSize && (i.nameFontSize.includes("rem"), t.push(
|
|
437
|
-
`--${
|
|
437
|
+
`--${l}dialogue-name-font-size: ${i.nameFontSize};`
|
|
438
438
|
)), i.namePaddingX && t.push(
|
|
439
|
-
`--${
|
|
439
|
+
`--${l}dialogue-name-padding-x: ${i.namePaddingX};`
|
|
440
440
|
), i.namePaddingY && t.push(
|
|
441
|
-
`--${
|
|
441
|
+
`--${l}dialogue-name-padding-y: ${i.namePaddingY};`
|
|
442
442
|
), i.messageArrowHeight && t.push(
|
|
443
|
-
`--${
|
|
443
|
+
`--${l}dialogue-messege-arrow-height: ${i.messageArrowHeight};`
|
|
444
444
|
), i.messageArrowWidth && t.push(
|
|
445
|
-
`--${
|
|
445
|
+
`--${l}dialogue-messege-arrow-width: ${i.messageArrowWidth};`
|
|
446
446
|
), i.messageInnerPaddingX && t.push(
|
|
447
|
-
`--${
|
|
447
|
+
`--${l}dialogue-message-inner-padding-x: ${i.messageInnerPaddingX};`
|
|
448
448
|
), i.messageInnerPaddingY && t.push(
|
|
449
|
-
`--${
|
|
449
|
+
`--${l}dialogue-message-inner-padding-y: ${i.messageInnerPaddingY};`
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
if (s.header) {
|
|
453
|
+
const i = s.header;
|
|
454
|
+
i.backdropFilter && t.push(
|
|
455
|
+
`--${l}header-backdrop-filter: ${i.backdropFilter};`
|
|
456
|
+
), i.zIndexIsSticky && (i.zIndexIsSticky === "auto" ? t.push(
|
|
457
|
+
`--${l}header-z-index-is-sticky: "auto";`
|
|
458
|
+
) : t.push(
|
|
459
|
+
`--${l}header-z-index-is-sticky: ${i.zIndexIsSticky};`
|
|
460
|
+
)), i.zIndexIsFixed && (i.zIndexIsFixed === "auto" ? t.push(
|
|
461
|
+
`--${l}header-z-index-is-fixed: "auto";`
|
|
462
|
+
) : t.push(
|
|
463
|
+
`--${l}header-z-index-is-fixed: ${i.zIndexIsFixed};`
|
|
464
|
+
));
|
|
465
|
+
}
|
|
466
|
+
if (s.heading) {
|
|
467
|
+
const i = s.heading;
|
|
468
|
+
i.fontFamily && t.push(
|
|
469
|
+
`--${l}font-family-heading: ${i.fontFamily};`
|
|
450
470
|
);
|
|
451
471
|
}
|
|
452
472
|
}
|
|
453
473
|
}
|
|
454
474
|
return t;
|
|
455
475
|
}
|
|
456
|
-
function $(
|
|
476
|
+
function $(d) {
|
|
457
477
|
const t = [];
|
|
458
|
-
if (
|
|
459
|
-
const s =
|
|
478
|
+
if (d && d.color) {
|
|
479
|
+
const s = d.color;
|
|
460
480
|
if (s.light) {
|
|
461
481
|
if (s.light.default) {
|
|
462
482
|
const i = f("default", s.light.default);
|
|
@@ -502,10 +522,10 @@ function $(l) {
|
|
|
502
522
|
}
|
|
503
523
|
return t;
|
|
504
524
|
}
|
|
505
|
-
function y(
|
|
525
|
+
function y(d) {
|
|
506
526
|
const t = [];
|
|
507
|
-
if (
|
|
508
|
-
const s =
|
|
527
|
+
if (d && d.color) {
|
|
528
|
+
const s = d.color;
|
|
509
529
|
if (s.dark) {
|
|
510
530
|
if (s.dark.default) {
|
|
511
531
|
const i = f("default", s.dark.default);
|