react-minolith 1.0.12 → 1.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/backgrounds/Dot/Dot.js.map +1 -1
- package/dist/backgrounds/Dot/Dot.stories.d.ts.map +1 -1
- package/dist/backgrounds/Gingham/Gingham.js.map +1 -1
- package/dist/backgrounds/Gingham/Gingham.stories.d.ts.map +1 -1
- package/dist/backgrounds/Rhombus/Rhombus.js.map +1 -1
- package/dist/backgrounds/Rhombus/Rhombus.stories.d.ts.map +1 -1
- package/dist/backgrounds/Stripe/Stripe.js.map +1 -1
- package/dist/backgrounds/Stripe/Stripe.stories.d.ts.map +1 -1
- package/dist/backgrounds/Zigzag/Zigzag.js.map +1 -1
- package/dist/backgrounds/Zigzag/Zigzag.stories.d.ts.map +1 -1
- package/dist/base/Minolith/Minolith.stories.d.ts.map +1 -1
- package/dist/base/Tabula/Tabula.js.map +1 -1
- package/dist/common/models/BaseComponentProps.d.ts +4 -0
- package/dist/common/models/BaseComponentProps.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.stories.d.ts.map +1 -1
- package/dist/components/Blockquote/Blockquote.stories.d.ts.map +1 -1
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Div/Div.stories.d.ts.map +1 -1
- package/dist/components/Footer/Footer.stories.d.ts.map +1 -1
- package/dist/components/Header/Header.stories.d.ts.map +1 -1
- package/dist/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/components/Link/Link.stories.d.ts.map +1 -1
- package/dist/components/Loader/Loader.stories.d.ts.map +1 -1
- package/dist/components/Message/Message.stories.d.ts.map +1 -1
- package/dist/components/Nav/Nav.stories.d.ts.map +1 -1
- package/dist/components/Progress/Progress.stories.d.ts.map +1 -1
- package/dist/components/Ruby/Ruby.stories.d.ts.map +1 -1
- package/dist/components/Section/Section.stories.d.ts.map +1 -1
- package/dist/components/Span/Span.stories.d.ts.map +1 -1
- package/dist/layouts/Centering/Centering.js.map +1 -1
- package/dist/layouts/Centering/Centering.stories.d.ts.map +1 -1
- package/dist/layouts/Column/Column.js.map +1 -1
- package/dist/layouts/Columns/Columns.js.map +1 -1
- package/dist/layouts/Columns/Columns.stories.d.ts.map +1 -1
- package/dist/layouts/Container/Container.js.map +1 -1
- package/dist/utilities/emotionStyleUtility/emotionStyleUtility.d.ts.map +1 -1
- package/dist/utilities/emotionStyleUtility/emotionStyleUtility.js +94 -90
- package/dist/utilities/emotionStyleUtility/emotionStyleUtility.js.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts.map +1 -1
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js +359 -499
- package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js.map +1 -1
- package/package.json +1 -2
|
@@ -1,620 +1,480 @@
|
|
|
1
|
-
const d = "minolith-"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
const d = "minolith-", o = [
|
|
2
|
+
"gray",
|
|
3
|
+
"red",
|
|
4
|
+
"coral",
|
|
5
|
+
"orange",
|
|
6
|
+
"yellow",
|
|
7
|
+
"lime",
|
|
8
|
+
"green",
|
|
9
|
+
"cyan",
|
|
10
|
+
"blue",
|
|
11
|
+
"violet",
|
|
12
|
+
"magenta"
|
|
13
|
+
];
|
|
14
|
+
function h(a, e, i, s) {
|
|
15
|
+
const f = [];
|
|
16
|
+
return e && (e.fore && f.push(
|
|
17
|
+
`--${d}color-${a}${i ? `-${i}` : ""}${s ? `-${s}` : ""}-fore: ${e.fore.startsWith("--") ? `var(${e.fore});` : `${e.fore};`}`
|
|
18
|
+
), e.back && f.push(
|
|
19
|
+
`--${d}color-${a}${i ? `-${i}` : ""}${s ? `-${s}` : ""}-back: ${e.back.startsWith("--") ? `var(${e.back});` : `${e.back};`}`
|
|
20
|
+
), e.border && f.push(
|
|
21
|
+
`--${d}color-${a}${i ? `-${i}` : ""}${s ? `-${s}` : ""}-border: ${e.border.startsWith("--") ? `var(${e.border});` : `${e.border};`}`
|
|
22
|
+
), e.shadow && f.push(
|
|
23
|
+
`--${d}color-${a}${i ? `-${i}` : ""}${s ? `-${s}` : ""}-shadow: ${e.shadow.startsWith("--") ? `var(${e.shadow});` : `${e.shadow};`}`
|
|
24
|
+
), e.placeholder && f.push(
|
|
25
|
+
`--${d}color-${a}${i ? `-${i}` : ""}${s ? `-${s}` : ""}-placeholder: ${e.placeholder.startsWith("--") ? `var(${e.placeholder});` : `${e.placeholder};`}`
|
|
26
|
+
)), f;
|
|
15
27
|
}
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
function r(a, e, i) {
|
|
29
|
+
const s = [];
|
|
30
|
+
if (e.default) {
|
|
31
|
+
const f = h(
|
|
32
|
+
a,
|
|
33
|
+
e.default,
|
|
22
34
|
void 0,
|
|
23
|
-
|
|
35
|
+
i
|
|
24
36
|
);
|
|
25
|
-
|
|
37
|
+
f.length > 0 && s.push(...f);
|
|
26
38
|
}
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
if (e.hover) {
|
|
40
|
+
const f = h(
|
|
41
|
+
a,
|
|
42
|
+
e.hover,
|
|
31
43
|
"hover",
|
|
32
|
-
|
|
44
|
+
i
|
|
33
45
|
);
|
|
34
|
-
|
|
46
|
+
f.length > 0 && s.push(...f);
|
|
35
47
|
}
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
if (e.focus) {
|
|
49
|
+
const f = h(
|
|
50
|
+
a,
|
|
51
|
+
e.focus,
|
|
40
52
|
"focus",
|
|
41
|
-
|
|
53
|
+
i
|
|
42
54
|
);
|
|
43
|
-
|
|
55
|
+
f.length > 0 && s.push(...f);
|
|
44
56
|
}
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
if (e.active) {
|
|
58
|
+
const f = h(
|
|
59
|
+
a,
|
|
60
|
+
e.active,
|
|
49
61
|
"active",
|
|
50
|
-
|
|
62
|
+
i
|
|
51
63
|
);
|
|
52
|
-
|
|
64
|
+
f.length > 0 && s.push(...f);
|
|
53
65
|
}
|
|
54
|
-
if (
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
66
|
+
if (e.disabled) {
|
|
67
|
+
const f = h(
|
|
68
|
+
a,
|
|
69
|
+
e.disabled,
|
|
58
70
|
"disabled",
|
|
59
|
-
|
|
71
|
+
i
|
|
60
72
|
);
|
|
61
|
-
|
|
73
|
+
f.length > 0 && s.push(...f);
|
|
62
74
|
}
|
|
63
|
-
return
|
|
75
|
+
return s;
|
|
64
76
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
const
|
|
77
|
+
function l(a, e) {
|
|
78
|
+
const i = [];
|
|
79
|
+
if (a.default) {
|
|
80
|
+
const s = r(
|
|
69
81
|
"default",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
);
|
|
73
|
-
i.length > 0 && e.push(...i);
|
|
74
|
-
}
|
|
75
|
-
if (t.gray) {
|
|
76
|
-
const i = f("gray", t.gray, l);
|
|
77
|
-
i.length > 0 && e.push(...i);
|
|
78
|
-
}
|
|
79
|
-
if (t.red) {
|
|
80
|
-
const i = f("red", t.red, l);
|
|
81
|
-
i.length > 0 && e.push(...i);
|
|
82
|
-
}
|
|
83
|
-
if (t.coral) {
|
|
84
|
-
const i = f("coral", t.coral, l);
|
|
85
|
-
i.length > 0 && e.push(...i);
|
|
86
|
-
}
|
|
87
|
-
if (t.orange) {
|
|
88
|
-
const i = f("orange", t.orange, l);
|
|
89
|
-
i.length > 0 && e.push(...i);
|
|
90
|
-
}
|
|
91
|
-
if (t.yellow) {
|
|
92
|
-
const i = f("yellow", t.yellow, l);
|
|
93
|
-
i.length > 0 && e.push(...i);
|
|
94
|
-
}
|
|
95
|
-
if (t.lime) {
|
|
96
|
-
const i = f("lime", t.lime, l);
|
|
97
|
-
i.length > 0 && e.push(...i);
|
|
98
|
-
}
|
|
99
|
-
if (t.green) {
|
|
100
|
-
const i = f("green", t.green, l);
|
|
101
|
-
i.length > 0 && e.push(...i);
|
|
102
|
-
}
|
|
103
|
-
if (t.cyan) {
|
|
104
|
-
const i = f("cyan", t.cyan, l);
|
|
105
|
-
i.length > 0 && e.push(...i);
|
|
106
|
-
}
|
|
107
|
-
if (t.blue) {
|
|
108
|
-
const i = f("blue", t.blue, l);
|
|
109
|
-
i.length > 0 && e.push(...i);
|
|
110
|
-
}
|
|
111
|
-
if (t.violet) {
|
|
112
|
-
const i = f("violet", t.violet, l);
|
|
113
|
-
i.length > 0 && e.push(...i);
|
|
114
|
-
}
|
|
115
|
-
if (t.magenta) {
|
|
116
|
-
const i = f(
|
|
117
|
-
"magenta",
|
|
118
|
-
t.magenta,
|
|
119
|
-
l
|
|
82
|
+
a.default,
|
|
83
|
+
e
|
|
120
84
|
);
|
|
121
|
-
|
|
85
|
+
s.length > 0 && i.push(...s);
|
|
122
86
|
}
|
|
123
|
-
|
|
87
|
+
for (const s of o)
|
|
88
|
+
if (a[s]) {
|
|
89
|
+
const f = r(
|
|
90
|
+
s,
|
|
91
|
+
a[s],
|
|
92
|
+
e
|
|
93
|
+
);
|
|
94
|
+
f.length > 0 && i.push(...f);
|
|
95
|
+
}
|
|
96
|
+
return i;
|
|
124
97
|
}
|
|
125
|
-
function
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
const
|
|
129
|
-
|
|
98
|
+
function g(a) {
|
|
99
|
+
const e = [];
|
|
100
|
+
if (a.badge) {
|
|
101
|
+
const i = l(
|
|
102
|
+
a.badge,
|
|
130
103
|
"badge"
|
|
131
104
|
);
|
|
132
|
-
|
|
105
|
+
i.length > 0 && e.push(...i);
|
|
133
106
|
}
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
|
|
107
|
+
if (a.accordion) {
|
|
108
|
+
const i = l(
|
|
109
|
+
a.accordion,
|
|
137
110
|
"accordion"
|
|
138
111
|
);
|
|
139
|
-
if (
|
|
140
|
-
const
|
|
141
|
-
|
|
112
|
+
if (i.length > 0 && e.push(...i), a.accordion.accordionSummary) {
|
|
113
|
+
const s = l(
|
|
114
|
+
a.accordion.accordionSummary,
|
|
142
115
|
"accordion-summary"
|
|
143
116
|
);
|
|
144
|
-
|
|
117
|
+
s.length > 0 && e.push(...s);
|
|
145
118
|
}
|
|
146
|
-
if (
|
|
147
|
-
const
|
|
148
|
-
|
|
119
|
+
if (a.accordion.accordionDetails) {
|
|
120
|
+
const s = l(
|
|
121
|
+
a.accordion.accordionDetails,
|
|
149
122
|
"accordion-details"
|
|
150
123
|
);
|
|
151
|
-
|
|
124
|
+
s.length > 0 && e.push(...s);
|
|
152
125
|
}
|
|
153
126
|
}
|
|
154
|
-
if (
|
|
155
|
-
const
|
|
156
|
-
|
|
127
|
+
if (a.button) {
|
|
128
|
+
const i = l(
|
|
129
|
+
a.button,
|
|
157
130
|
"button"
|
|
158
131
|
);
|
|
159
|
-
|
|
132
|
+
i.length > 0 && e.push(...i);
|
|
160
133
|
}
|
|
161
|
-
if (
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
const
|
|
165
|
-
|
|
134
|
+
if (a.card) {
|
|
135
|
+
const i = l(a.card, "card");
|
|
136
|
+
if (i.length > 0 && e.push(...i), a.card.cardHeader) {
|
|
137
|
+
const s = l(
|
|
138
|
+
a.card.cardHeader,
|
|
166
139
|
"card-header"
|
|
167
140
|
);
|
|
168
|
-
|
|
141
|
+
s.length > 0 && e.push(...s);
|
|
169
142
|
}
|
|
170
|
-
if (
|
|
171
|
-
const
|
|
172
|
-
|
|
143
|
+
if (a.card.cardBody) {
|
|
144
|
+
const s = l(
|
|
145
|
+
a.card.cardBody,
|
|
173
146
|
"card-body"
|
|
174
147
|
);
|
|
175
|
-
|
|
148
|
+
s.length > 0 && e.push(...s);
|
|
176
149
|
}
|
|
177
|
-
if (
|
|
178
|
-
const
|
|
179
|
-
|
|
150
|
+
if (a.card.cardFooter) {
|
|
151
|
+
const s = l(
|
|
152
|
+
a.card.cardFooter,
|
|
180
153
|
"card-footer"
|
|
181
154
|
);
|
|
182
|
-
|
|
155
|
+
s.length > 0 && e.push(...s);
|
|
183
156
|
}
|
|
184
157
|
}
|
|
185
|
-
if (
|
|
186
|
-
const
|
|
187
|
-
|
|
158
|
+
if (a.dialogue) {
|
|
159
|
+
const i = l(
|
|
160
|
+
a.dialogue,
|
|
188
161
|
"dialogue"
|
|
189
162
|
);
|
|
190
|
-
if (
|
|
191
|
-
const
|
|
192
|
-
|
|
163
|
+
if (i.length > 0 && e.push(...i), a.dialogue.dialogueAvatar) {
|
|
164
|
+
const s = l(
|
|
165
|
+
a.dialogue.dialogueAvatar,
|
|
193
166
|
"dialogue-avatar"
|
|
194
167
|
);
|
|
195
|
-
|
|
168
|
+
s.length > 0 && e.push(...s);
|
|
196
169
|
}
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
|
|
170
|
+
if (a.dialogue.dialogueName) {
|
|
171
|
+
const s = l(
|
|
172
|
+
a.dialogue.dialogueName,
|
|
200
173
|
"dialogue-name"
|
|
201
174
|
);
|
|
202
|
-
|
|
175
|
+
s.length > 0 && e.push(...s);
|
|
203
176
|
}
|
|
204
|
-
if (
|
|
205
|
-
const
|
|
206
|
-
|
|
177
|
+
if (a.dialogue.dialogueMessage) {
|
|
178
|
+
const s = l(
|
|
179
|
+
a.dialogue.dialogueMessage,
|
|
207
180
|
"dialogue-message"
|
|
208
181
|
);
|
|
209
|
-
|
|
182
|
+
s.length > 0 && e.push(...s);
|
|
210
183
|
}
|
|
211
184
|
}
|
|
212
|
-
if (
|
|
213
|
-
const
|
|
214
|
-
|
|
185
|
+
if (a.header) {
|
|
186
|
+
const i = l(
|
|
187
|
+
a.header,
|
|
215
188
|
"header"
|
|
216
189
|
);
|
|
217
|
-
|
|
190
|
+
i.length > 0 && e.push(...i);
|
|
218
191
|
}
|
|
219
|
-
if (
|
|
220
|
-
const
|
|
221
|
-
|
|
192
|
+
if (a.label) {
|
|
193
|
+
const i = l(
|
|
194
|
+
a.label,
|
|
222
195
|
"label"
|
|
223
196
|
);
|
|
224
|
-
|
|
197
|
+
i.length > 0 && e.push(...i);
|
|
225
198
|
}
|
|
226
|
-
if (
|
|
227
|
-
const
|
|
228
|
-
|
|
199
|
+
if (a.link) {
|
|
200
|
+
const i = l(a.link, "link");
|
|
201
|
+
i.length > 0 && e.push(...i);
|
|
229
202
|
}
|
|
230
|
-
if (
|
|
231
|
-
const
|
|
232
|
-
|
|
203
|
+
if (a.loader) {
|
|
204
|
+
const i = l(
|
|
205
|
+
a.loader,
|
|
233
206
|
"loader"
|
|
234
207
|
);
|
|
235
|
-
|
|
208
|
+
i.length > 0 && e.push(...i);
|
|
236
209
|
}
|
|
237
|
-
if (
|
|
238
|
-
const
|
|
239
|
-
|
|
210
|
+
if (a.message) {
|
|
211
|
+
const i = l(
|
|
212
|
+
a.message,
|
|
240
213
|
"message"
|
|
241
214
|
);
|
|
242
|
-
if (
|
|
243
|
-
const
|
|
244
|
-
|
|
215
|
+
if (i.length > 0 && e.push(...i), a.message.messageHeader) {
|
|
216
|
+
const s = l(
|
|
217
|
+
a.message.messageHeader,
|
|
245
218
|
"message-header"
|
|
246
219
|
);
|
|
247
|
-
|
|
220
|
+
s.length > 0 && e.push(...s);
|
|
248
221
|
}
|
|
249
|
-
if (
|
|
250
|
-
const
|
|
251
|
-
|
|
222
|
+
if (a.message.messageBody) {
|
|
223
|
+
const s = l(
|
|
224
|
+
a.message.messageBody,
|
|
252
225
|
"message-body"
|
|
253
226
|
);
|
|
254
|
-
|
|
227
|
+
s.length > 0 && e.push(...s);
|
|
255
228
|
}
|
|
256
229
|
}
|
|
257
|
-
if (
|
|
258
|
-
const
|
|
259
|
-
|
|
230
|
+
if (a.progress) {
|
|
231
|
+
const i = l(
|
|
232
|
+
a.progress,
|
|
260
233
|
"progress"
|
|
261
234
|
);
|
|
262
|
-
|
|
235
|
+
i.length > 0 && e.push(...i);
|
|
263
236
|
}
|
|
264
|
-
return
|
|
237
|
+
return e;
|
|
265
238
|
}
|
|
266
|
-
function
|
|
267
|
-
const
|
|
268
|
-
return
|
|
269
|
-
`[data-color-scheme="light"]{${
|
|
270
|
-
),
|
|
271
|
-
`[data-color-scheme="dark"]{${
|
|
272
|
-
),
|
|
239
|
+
function c(a) {
|
|
240
|
+
const e = [], i = $(a), s = y(a), f = p(a);
|
|
241
|
+
return i.length > 0 && e.push(`:root{${i.join("")}}`), s.length > 0 && e.push(`:root{${s.join("")}}`), s.length > 0 && e.push(
|
|
242
|
+
`[data-color-scheme="light"]{${s.join("")}}`
|
|
243
|
+
), f.length > 0 && e.push(
|
|
244
|
+
`[data-color-scheme="dark"]{${f.join("")}}`
|
|
245
|
+
), e;
|
|
273
246
|
}
|
|
274
|
-
function
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
if (
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
`--${d}animation-speed-heavy: ${
|
|
281
|
-
),
|
|
282
|
-
`--${d}animation-speed-slower: ${
|
|
283
|
-
),
|
|
284
|
-
`--${d}animation-speed-slow: ${
|
|
285
|
-
),
|
|
286
|
-
`--${d}animation-speed-normal: ${
|
|
287
|
-
),
|
|
288
|
-
`--${d}animation-speed-fast: ${
|
|
289
|
-
),
|
|
290
|
-
`--${d}animation-speed-faster: ${
|
|
291
|
-
),
|
|
292
|
-
`--${d}animation-speed-flash: ${
|
|
247
|
+
function $(a) {
|
|
248
|
+
const e = [];
|
|
249
|
+
if (a) {
|
|
250
|
+
if (a.animation) {
|
|
251
|
+
const i = a.animation;
|
|
252
|
+
i.speedHeavey && e.push(
|
|
253
|
+
`--${d}animation-speed-heavy: ${i.speedHeavey};`
|
|
254
|
+
), i.speedSlower && e.push(
|
|
255
|
+
`--${d}animation-speed-slower: ${i.speedSlower};`
|
|
256
|
+
), i.speedSlow && e.push(
|
|
257
|
+
`--${d}animation-speed-slow: ${i.speedSlow};`
|
|
258
|
+
), i.speedNormal && e.push(
|
|
259
|
+
`--${d}animation-speed-normal: ${i.speedNormal};`
|
|
260
|
+
), i.speedfFast && e.push(
|
|
261
|
+
`--${d}animation-speed-fast: ${i.speedfFast};`
|
|
262
|
+
), i.speedfFaster && e.push(
|
|
263
|
+
`--${d}animation-speed-faster: ${i.speedfFaster};`
|
|
264
|
+
), i.speedfFlash && e.push(
|
|
265
|
+
`--${d}animation-speed-flash: ${i.speedfFlash};`
|
|
293
266
|
);
|
|
294
267
|
}
|
|
295
|
-
if (
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
`--${d}border-width-xthin: ${
|
|
299
|
-
),
|
|
300
|
-
`--${d}border-width-thin: ${
|
|
301
|
-
),
|
|
302
|
-
`--${d}border-width-medium: ${
|
|
303
|
-
),
|
|
304
|
-
`--${d}border-width-thick: ${
|
|
305
|
-
),
|
|
306
|
-
`--${d}border-width-xthick: ${
|
|
307
|
-
),
|
|
308
|
-
`--${d}border-radius-small: ${
|
|
309
|
-
),
|
|
310
|
-
`--${d}border-radius-medium: ${
|
|
311
|
-
),
|
|
312
|
-
`--${d}border-radius-large: ${
|
|
268
|
+
if (a.border) {
|
|
269
|
+
const i = a.border;
|
|
270
|
+
i.borderWidthXThin && e.push(
|
|
271
|
+
`--${d}border-width-xthin: ${i.borderWidthXThin};`
|
|
272
|
+
), i.borderWidthThin && e.push(
|
|
273
|
+
`--${d}border-width-thin: ${i.borderWidthThin};`
|
|
274
|
+
), i.borderWidthMedium && e.push(
|
|
275
|
+
`--${d}border-width-medium: ${i.borderWidthMedium};`
|
|
276
|
+
), i.borderWidthThick && e.push(
|
|
277
|
+
`--${d}border-width-thick: ${i.borderWidthThick};`
|
|
278
|
+
), i.borderWidthXThick && e.push(
|
|
279
|
+
`--${d}border-width-xthick: ${i.borderWidthXThick};`
|
|
280
|
+
), i.borderRadiusSmall && e.push(
|
|
281
|
+
`--${d}border-radius-small: ${i.borderRadiusSmall};`
|
|
282
|
+
), i.borderRadiusMedium && e.push(
|
|
283
|
+
`--${d}border-radius-medium: ${i.borderRadiusMedium};`
|
|
284
|
+
), i.borderRadiusLarge && e.push(
|
|
285
|
+
`--${d}border-radius-large: ${i.borderRadiusLarge};`
|
|
313
286
|
);
|
|
314
287
|
}
|
|
315
|
-
if (
|
|
316
|
-
const
|
|
317
|
-
if (
|
|
318
|
-
const
|
|
319
|
-
|
|
320
|
-
`--${d}color-${
|
|
321
|
-
),
|
|
322
|
-
`--${d}color-${
|
|
288
|
+
if (a.color) {
|
|
289
|
+
const i = a.color, s = (f, t, u) => {
|
|
290
|
+
if (u) {
|
|
291
|
+
const n = `${u.lightness}% ${u.chroma} ${u.hue}`;
|
|
292
|
+
e.push(
|
|
293
|
+
`--${d}color-${f}-${t}-oklch: ${n};`
|
|
294
|
+
), e.push(
|
|
295
|
+
`--${d}color-${f}-${t}: oklch(${n});`
|
|
323
296
|
);
|
|
324
297
|
}
|
|
325
298
|
};
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const s = e.red, a = "red";
|
|
332
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
333
|
-
}
|
|
334
|
-
if (e.coral) {
|
|
335
|
-
const s = e.coral, a = "coral";
|
|
336
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
337
|
-
}
|
|
338
|
-
if (e.orange) {
|
|
339
|
-
const s = e.orange, a = "orange";
|
|
340
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
341
|
-
}
|
|
342
|
-
if (e.yellow) {
|
|
343
|
-
const s = e.yellow, a = "yellow";
|
|
344
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
345
|
-
}
|
|
346
|
-
if (e.lime) {
|
|
347
|
-
const s = e.lime, a = "lime";
|
|
348
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
349
|
-
}
|
|
350
|
-
if (e.green) {
|
|
351
|
-
const s = e.green, a = "green";
|
|
352
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
353
|
-
}
|
|
354
|
-
if (e.cyan) {
|
|
355
|
-
const s = e.cyan, a = "cyan";
|
|
356
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
357
|
-
}
|
|
358
|
-
if (e.blue) {
|
|
359
|
-
const s = e.blue, a = "blue";
|
|
360
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
361
|
-
}
|
|
362
|
-
if (e.violet) {
|
|
363
|
-
const s = e.violet, a = "violet";
|
|
364
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
365
|
-
}
|
|
366
|
-
if (e.magenta) {
|
|
367
|
-
const s = e.magenta, a = "magenta";
|
|
368
|
-
i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
|
|
369
|
-
}
|
|
299
|
+
for (const f of o)
|
|
300
|
+
if (i[f]) {
|
|
301
|
+
const t = i[f];
|
|
302
|
+
s(f, "95", t[95]), s(f, "90", t[90]), s(f, "85", t[85]), s(f, "80", t[80]), s(f, "75", t[75]), s(f, "70", t[70]), s(f, "65", t[65]), s(f, "60", t[60]), s(f, "55", t[55]), s(f, "50", t[50]), s(f, "45", t[45]), s(f, "40", t[40]), s(f, "35", t[35]), s(f, "30", t[30]), s(f, "25", t[25]), s(f, "20", t[20]), s(f, "15", t[15]), s(f, "10", t[10]), s(f, "05", t[5]);
|
|
303
|
+
}
|
|
370
304
|
}
|
|
371
|
-
if (
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
`--${d}z-index-tabula: ${
|
|
375
|
-
),
|
|
376
|
-
`--${d}z-index-modal: ${
|
|
377
|
-
),
|
|
378
|
-
`--${d}z-index-tabula-content: ${
|
|
379
|
-
),
|
|
380
|
-
`--${d}z-index-header-is-sticky: ${
|
|
305
|
+
if (a.miscellaneous) {
|
|
306
|
+
const i = a.miscellaneous;
|
|
307
|
+
i.zIndexTabula && e.push(
|
|
308
|
+
`--${d}z-index-tabula: ${i.zIndexTabula};`
|
|
309
|
+
), i.zIndexModal && e.push(
|
|
310
|
+
`--${d}z-index-modal: ${i.zIndexModal};`
|
|
311
|
+
), i.zIndexModalContent && e.push(
|
|
312
|
+
`--${d}z-index-tabula-content: ${i.zIndexModalContent};`
|
|
313
|
+
), i.zIndexHeaderIsSticky && e.push(
|
|
314
|
+
`--${d}z-index-header-is-sticky: ${i.zIndexHeaderIsSticky};`
|
|
381
315
|
);
|
|
382
316
|
}
|
|
383
|
-
if (
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
`--${d}font-family-sans-serif: ${
|
|
387
|
-
),
|
|
388
|
-
`--${d}font-family-serif: ${
|
|
389
|
-
),
|
|
390
|
-
`--${d}font-family-monospace: ${
|
|
391
|
-
),
|
|
392
|
-
`--${d}font-family-main: ${
|
|
393
|
-
),
|
|
394
|
-
`--${d}font-family-heading: ${
|
|
395
|
-
),
|
|
396
|
-
`--${d}font-family-code: ${
|
|
397
|
-
)),
|
|
398
|
-
`--${d}font-size-xsmall: ${
|
|
399
|
-
),
|
|
400
|
-
`--${d}font-size-small: ${
|
|
401
|
-
),
|
|
402
|
-
`--${d}font-size-normal: ${
|
|
403
|
-
),
|
|
404
|
-
`--${d}font-size-medium: ${
|
|
405
|
-
),
|
|
406
|
-
`--${d}font-size-large: ${
|
|
407
|
-
),
|
|
408
|
-
`--${d}font-size-xlarge: ${
|
|
409
|
-
),
|
|
410
|
-
`--${d}font-size-xxlarge: ${
|
|
411
|
-
),
|
|
412
|
-
`--${d}font-size-xxxlarge: ${
|
|
413
|
-
),
|
|
414
|
-
`--${d}font-size-xxxxlarge: ${
|
|
415
|
-
),
|
|
416
|
-
`--${d}font-size-xxxxxlarge: ${
|
|
417
|
-
)),
|
|
418
|
-
`--${d}font-weight-light: ${
|
|
419
|
-
),
|
|
420
|
-
`--${d}font-weight-normal: ${
|
|
421
|
-
),
|
|
422
|
-
`--${d}font-weight-medium: ${
|
|
423
|
-
),
|
|
424
|
-
`--${d}font-weight-semibold: ${
|
|
425
|
-
),
|
|
426
|
-
`--${d}font-weight-bold: ${
|
|
317
|
+
if (a.typography) {
|
|
318
|
+
const i = a.typography;
|
|
319
|
+
i.fontFamily && (i.fontFamily.sansSerif && e.push(
|
|
320
|
+
`--${d}font-family-sans-serif: ${i.fontFamily.sansSerif};`
|
|
321
|
+
), i.fontFamily.serif && e.push(
|
|
322
|
+
`--${d}font-family-serif: ${i.fontFamily.serif};`
|
|
323
|
+
), i.fontFamily.monospace && e.push(
|
|
324
|
+
`--${d}font-family-monospace: ${i.fontFamily.monospace};`
|
|
325
|
+
), i.fontFamily.main && e.push(
|
|
326
|
+
`--${d}font-family-main: ${i.fontFamily.main};`
|
|
327
|
+
), i.fontFamily.heading && e.push(
|
|
328
|
+
`--${d}font-family-heading: ${i.fontFamily.heading};`
|
|
329
|
+
), i.fontFamily.code && e.push(
|
|
330
|
+
`--${d}font-family-code: ${i.fontFamily.code};`
|
|
331
|
+
)), i.fontSize && (i.fontSize.xsmall && e.push(
|
|
332
|
+
`--${d}font-size-xsmall: ${i.fontSize.xsmall};`
|
|
333
|
+
), i.fontSize.small && e.push(
|
|
334
|
+
`--${d}font-size-small: ${i.fontSize.small};`
|
|
335
|
+
), i.fontSize.normal && e.push(
|
|
336
|
+
`--${d}font-size-normal: ${i.fontSize.normal};`
|
|
337
|
+
), i.fontSize.medium && e.push(
|
|
338
|
+
`--${d}font-size-medium: ${i.fontSize.medium};`
|
|
339
|
+
), i.fontSize.large && e.push(
|
|
340
|
+
`--${d}font-size-large: ${i.fontSize.large};`
|
|
341
|
+
), i.fontSize.xlarge && e.push(
|
|
342
|
+
`--${d}font-size-xlarge: ${i.fontSize.xlarge};`
|
|
343
|
+
), i.fontSize.xxlarge && e.push(
|
|
344
|
+
`--${d}font-size-xxlarge: ${i.fontSize.xxlarge};`
|
|
345
|
+
), i.fontSize.xxxlarge && e.push(
|
|
346
|
+
`--${d}font-size-xxxlarge: ${i.fontSize.xxxlarge};`
|
|
347
|
+
), i.fontSize.xxxxlarge && e.push(
|
|
348
|
+
`--${d}font-size-xxxxlarge: ${i.fontSize.xxxxlarge};`
|
|
349
|
+
), i.fontSize.xxxxxlarge && e.push(
|
|
350
|
+
`--${d}font-size-xxxxxlarge: ${i.fontSize.xxxxxlarge};`
|
|
351
|
+
)), i.fontWeight && (i.fontWeight.light && e.push(
|
|
352
|
+
`--${d}font-weight-light: ${i.fontWeight.light};`
|
|
353
|
+
), i.fontWeight.normal && e.push(
|
|
354
|
+
`--${d}font-weight-normal: ${i.fontWeight.normal};`
|
|
355
|
+
), i.fontWeight.medium && e.push(
|
|
356
|
+
`--${d}font-weight-medium: ${i.fontWeight.medium};`
|
|
357
|
+
), i.fontWeight.semibold && e.push(
|
|
358
|
+
`--${d}font-weight-semibold: ${i.fontWeight.semibold};`
|
|
359
|
+
), i.fontWeight.bold && e.push(
|
|
360
|
+
`--${d}font-weight-bold: ${i.fontWeight.bold};`
|
|
427
361
|
));
|
|
428
362
|
}
|
|
429
|
-
if (
|
|
430
|
-
const
|
|
431
|
-
if (
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
`--${d}breadcrumb-divider: ${
|
|
363
|
+
if (a.components) {
|
|
364
|
+
const i = a.components;
|
|
365
|
+
if (i.breadcrumbs) {
|
|
366
|
+
const s = i.breadcrumbs;
|
|
367
|
+
s.breadcrumbDivider && e.push(
|
|
368
|
+
`--${d}breadcrumb-divider: ${s.breadcrumbDivider};`
|
|
435
369
|
);
|
|
436
370
|
}
|
|
437
|
-
if (
|
|
438
|
-
const
|
|
439
|
-
|
|
440
|
-
`--${d}button-padding-x: ${
|
|
441
|
-
),
|
|
442
|
-
`--${d}button-padding-y: ${
|
|
371
|
+
if (i.button) {
|
|
372
|
+
const s = i.button;
|
|
373
|
+
s.paddingX && e.push(
|
|
374
|
+
`--${d}button-padding-x: ${s.paddingX};`
|
|
375
|
+
), s.paddingY && e.push(
|
|
376
|
+
`--${d}button-padding-y: ${s.paddingY};`
|
|
443
377
|
);
|
|
444
378
|
}
|
|
445
|
-
if (
|
|
446
|
-
const
|
|
447
|
-
|
|
448
|
-
`--${d}dialogue-avatar-size-default: ${
|
|
449
|
-
),
|
|
450
|
-
`--${d}dialogue-avatar-size-small: ${
|
|
451
|
-
),
|
|
452
|
-
`--${d}dialogue-avatar-size-large: ${
|
|
453
|
-
),
|
|
454
|
-
`--${d}dialogue-avatar-top-offset: ${
|
|
455
|
-
),
|
|
456
|
-
`--${d}dialogue-name-font-size: ${
|
|
457
|
-
)),
|
|
458
|
-
`--${d}dialogue-name-padding-x: ${
|
|
459
|
-
),
|
|
460
|
-
`--${d}dialogue-name-padding-y: ${
|
|
461
|
-
),
|
|
462
|
-
`--${d}dialogue-messege-arrow-height: ${
|
|
463
|
-
),
|
|
464
|
-
`--${d}dialogue-messege-arrow-width: ${
|
|
465
|
-
),
|
|
466
|
-
`--${d}dialogue-message-inner-padding-x: ${
|
|
467
|
-
),
|
|
468
|
-
`--${d}dialogue-message-inner-padding-y: ${
|
|
379
|
+
if (i.dialogue) {
|
|
380
|
+
const s = i.dialogue;
|
|
381
|
+
s.avatarSizeDefault && e.push(
|
|
382
|
+
`--${d}dialogue-avatar-size-default: ${s.avatarSizeDefault};`
|
|
383
|
+
), s.avatarSizeSmall && e.push(
|
|
384
|
+
`--${d}dialogue-avatar-size-small: ${s.avatarSizeSmall};`
|
|
385
|
+
), s.avatarSizeLarge && e.push(
|
|
386
|
+
`--${d}dialogue-avatar-size-large: ${s.avatarSizeLarge};`
|
|
387
|
+
), s.avatarTopOffset && e.push(
|
|
388
|
+
`--${d}dialogue-avatar-top-offset: ${s.avatarTopOffset};`
|
|
389
|
+
), s.nameFontSize && (s.nameFontSize.includes("rem"), e.push(
|
|
390
|
+
`--${d}dialogue-name-font-size: ${s.nameFontSize};`
|
|
391
|
+
)), s.namePaddingX && e.push(
|
|
392
|
+
`--${d}dialogue-name-padding-x: ${s.namePaddingX};`
|
|
393
|
+
), s.namePaddingY && e.push(
|
|
394
|
+
`--${d}dialogue-name-padding-y: ${s.namePaddingY};`
|
|
395
|
+
), s.messageArrowHeight && e.push(
|
|
396
|
+
`--${d}dialogue-messege-arrow-height: ${s.messageArrowHeight};`
|
|
397
|
+
), s.messageArrowWidth && e.push(
|
|
398
|
+
`--${d}dialogue-messege-arrow-width: ${s.messageArrowWidth};`
|
|
399
|
+
), s.messageInnerPaddingX && e.push(
|
|
400
|
+
`--${d}dialogue-message-inner-padding-x: ${s.messageInnerPaddingX};`
|
|
401
|
+
), s.messageInnerPaddingY && e.push(
|
|
402
|
+
`--${d}dialogue-message-inner-padding-y: ${s.messageInnerPaddingY};`
|
|
469
403
|
);
|
|
470
404
|
}
|
|
471
|
-
if (
|
|
472
|
-
const
|
|
473
|
-
|
|
474
|
-
`--${d}header-backdrop-filter: ${
|
|
475
|
-
),
|
|
405
|
+
if (i.header) {
|
|
406
|
+
const s = i.header;
|
|
407
|
+
s.backdropFilter && e.push(
|
|
408
|
+
`--${d}header-backdrop-filter: ${s.backdropFilter};`
|
|
409
|
+
), s.zIndexIsSticky && (s.zIndexIsSticky === "auto" ? e.push(
|
|
476
410
|
`--${d}header-z-index-is-sticky: "auto";`
|
|
477
|
-
) :
|
|
478
|
-
`--${d}header-z-index-is-sticky: ${
|
|
479
|
-
)),
|
|
411
|
+
) : e.push(
|
|
412
|
+
`--${d}header-z-index-is-sticky: ${s.zIndexIsSticky};`
|
|
413
|
+
)), s.zIndexIsFixed && (s.zIndexIsFixed === "auto" ? e.push(
|
|
480
414
|
`--${d}header-z-index-is-fixed: "auto";`
|
|
481
|
-
) :
|
|
482
|
-
`--${d}header-z-index-is-fixed: ${
|
|
415
|
+
) : e.push(
|
|
416
|
+
`--${d}header-z-index-is-fixed: ${s.zIndexIsFixed};`
|
|
483
417
|
));
|
|
484
418
|
}
|
|
485
|
-
if (
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
`--${d}font-family-heading: ${
|
|
419
|
+
if (i.heading) {
|
|
420
|
+
const s = i.heading;
|
|
421
|
+
s.fontFamily && e.push(
|
|
422
|
+
`--${d}font-family-heading: ${s.fontFamily};`
|
|
489
423
|
);
|
|
490
424
|
}
|
|
491
425
|
}
|
|
492
426
|
}
|
|
493
|
-
return
|
|
427
|
+
return e;
|
|
494
428
|
}
|
|
495
|
-
function y(
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
500
|
-
if (
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
i.
|
|
511
|
-
|
|
512
|
-
if (e.light.coral) {
|
|
513
|
-
const i = f("coral", e.light.coral);
|
|
514
|
-
i.length > 0 && l.push(...i);
|
|
515
|
-
}
|
|
516
|
-
if (e.light.orange) {
|
|
517
|
-
const i = f("orange", e.light.orange);
|
|
518
|
-
i.length > 0 && l.push(...i);
|
|
519
|
-
}
|
|
520
|
-
if (e.light.yellow) {
|
|
521
|
-
const i = f("yellow", e.light.yellow);
|
|
522
|
-
i.length > 0 && l.push(...i);
|
|
523
|
-
}
|
|
524
|
-
if (e.light.lime) {
|
|
525
|
-
const i = f("lime", e.light.lime);
|
|
526
|
-
i.length > 0 && l.push(...i);
|
|
527
|
-
}
|
|
528
|
-
if (e.light.green) {
|
|
529
|
-
const i = f("green", e.light.green);
|
|
530
|
-
i.length > 0 && l.push(...i);
|
|
531
|
-
}
|
|
532
|
-
if (e.light.cyan) {
|
|
533
|
-
const i = f("cyan", e.light.cyan);
|
|
534
|
-
i.length > 0 && l.push(...i);
|
|
535
|
-
}
|
|
536
|
-
if (e.light.blue) {
|
|
537
|
-
const i = f("blue", e.light.blue);
|
|
538
|
-
i.length > 0 && l.push(...i);
|
|
539
|
-
}
|
|
540
|
-
if (e.light.violet) {
|
|
541
|
-
const i = f("violet", e.light.violet);
|
|
542
|
-
i.length > 0 && l.push(...i);
|
|
543
|
-
}
|
|
544
|
-
if (e.light.components) {
|
|
545
|
-
const i = e.light.components, s = n(i);
|
|
546
|
-
s.length > 0 && l.push(...s);
|
|
429
|
+
function y(a) {
|
|
430
|
+
const e = [];
|
|
431
|
+
if (a && a.color) {
|
|
432
|
+
const i = a.color;
|
|
433
|
+
if (i.light) {
|
|
434
|
+
if (i.light.default) {
|
|
435
|
+
const s = r("default", i.light.default);
|
|
436
|
+
s.length > 0 && e.push(...s);
|
|
437
|
+
}
|
|
438
|
+
for (const s of o)
|
|
439
|
+
if (i.light[s]) {
|
|
440
|
+
const f = i.light[s], t = r(s, f);
|
|
441
|
+
t.length > 0 && e.push(...t);
|
|
442
|
+
}
|
|
443
|
+
if (i.light.components) {
|
|
444
|
+
const s = i.light.components, f = g(s);
|
|
445
|
+
f.length > 0 && e.push(...f);
|
|
547
446
|
}
|
|
548
447
|
}
|
|
549
448
|
}
|
|
550
|
-
return
|
|
449
|
+
return e;
|
|
551
450
|
}
|
|
552
|
-
function
|
|
553
|
-
const
|
|
554
|
-
if (
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
557
|
-
if (
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
i.
|
|
568
|
-
|
|
569
|
-
if (e.dark.coral) {
|
|
570
|
-
const i = f("coral", e.dark.coral);
|
|
571
|
-
i.length > 0 && l.push(...i);
|
|
572
|
-
}
|
|
573
|
-
if (e.dark.orange) {
|
|
574
|
-
const i = f("orange", e.dark.orange);
|
|
575
|
-
i.length > 0 && l.push(...i);
|
|
576
|
-
}
|
|
577
|
-
if (e.dark.yellow) {
|
|
578
|
-
const i = f("yellow", e.dark.yellow);
|
|
579
|
-
i.length > 0 && l.push(...i);
|
|
580
|
-
}
|
|
581
|
-
if (e.dark.lime) {
|
|
582
|
-
const i = f("lime", e.dark.lime);
|
|
583
|
-
i.length > 0 && l.push(...i);
|
|
584
|
-
}
|
|
585
|
-
if (e.dark.green) {
|
|
586
|
-
const i = f("green", e.dark.green);
|
|
587
|
-
i.length > 0 && l.push(...i);
|
|
588
|
-
}
|
|
589
|
-
if (e.dark.cyan) {
|
|
590
|
-
const i = f("cyan", e.dark.cyan);
|
|
591
|
-
i.length > 0 && l.push(...i);
|
|
592
|
-
}
|
|
593
|
-
if (e.dark.blue) {
|
|
594
|
-
const i = f("blue", e.dark.blue);
|
|
595
|
-
i.length > 0 && l.push(...i);
|
|
596
|
-
}
|
|
597
|
-
if (e.dark.violet) {
|
|
598
|
-
const i = f("violet", e.dark.violet);
|
|
599
|
-
i.length > 0 && l.push(...i);
|
|
600
|
-
}
|
|
601
|
-
if (e.dark.magenta) {
|
|
602
|
-
const i = f("magenta", e.dark.magenta);
|
|
603
|
-
i.length > 0 && l.push(...i);
|
|
604
|
-
}
|
|
605
|
-
if (e.dark.components) {
|
|
606
|
-
const i = e.dark.components, s = n(i);
|
|
607
|
-
s.length > 0 && l.push(...s);
|
|
451
|
+
function p(a) {
|
|
452
|
+
const e = [];
|
|
453
|
+
if (a && a.color) {
|
|
454
|
+
const i = a.color;
|
|
455
|
+
if (i.dark) {
|
|
456
|
+
if (i.dark.default) {
|
|
457
|
+
const s = r("default", i.dark.default);
|
|
458
|
+
s.length > 0 && e.push(...s);
|
|
459
|
+
}
|
|
460
|
+
for (const s of o)
|
|
461
|
+
if (i.dark[s]) {
|
|
462
|
+
const f = i.dark[s], t = r(s, f);
|
|
463
|
+
t.length > 0 && e.push(...t);
|
|
464
|
+
}
|
|
465
|
+
if (i.dark.components) {
|
|
466
|
+
const s = i.dark.components, f = g(s);
|
|
467
|
+
f.length > 0 && e.push(...f);
|
|
608
468
|
}
|
|
609
469
|
}
|
|
610
470
|
}
|
|
611
|
-
return
|
|
471
|
+
return e;
|
|
612
472
|
}
|
|
613
|
-
const
|
|
614
|
-
getMinolithCssVariableStyles:
|
|
615
|
-
getRootStyles:
|
|
473
|
+
const x = {
|
|
474
|
+
getMinolithCssVariableStyles: c,
|
|
475
|
+
getRootStyles: $
|
|
616
476
|
};
|
|
617
477
|
export {
|
|
618
|
-
|
|
478
|
+
x as default
|
|
619
479
|
};
|
|
620
480
|
//# sourceMappingURL=minolithStyleUtility.js.map
|