@shmidko61/lc-ui-kit 0.0.5 → 0.1.0
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/picture/picture.d.ts +2 -2
- package/dist/picture/picture.helpers.d.ts +21 -3
- package/dist/picture/picture.types.d.ts +26 -3
- package/dist/picture.cjs +1 -1
- package/dist/picture.js +109 -35
- package/dist/styles.css +1 -1
- package/dist/types/typography.types.d.ts +22 -1
- package/dist/typography/typography.helpers.d.ts +3 -3
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +288 -235
- package/package.json +1 -1
package/dist/typography.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { a as
|
|
3
|
-
import { n as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as Q } from "react/jsx-runtime";
|
|
2
|
+
import { a as C, c as _ } from "./responsive-style.config-DFuATrIM.js";
|
|
3
|
+
import { n as O, m as X } from "./responsive-style.utils-D10sC561.js";
|
|
4
|
+
const Y = "text-[length:var(--typography-font-size)] font-[var(--typography-font-weight)] leading-[var(--typography-line-height)] text-[var(--typography-color,var(--color-text-primary))] tracking-[var(--typography-letter-spacing)] [display:var(--typography-display)] [font-family:var(--typography-font-family,var(--font-family))] [font-style:var(--typography-font-style)] [height:var(--typography-height)] [margin-bottom:var(--typography-margin-bottom,0)] [margin-left:var(--typography-margin-left,0)] [margin-right:var(--typography-margin-right,0)] [margin-top:var(--typography-margin-top,0)] [max-height:var(--typography-max-height)] [max-width:var(--typography-max-width)] [min-height:var(--typography-min-height)] [min-width:var(--typography-min-width)] [overflow:var(--typography-overflow)] [padding-bottom:var(--typography-padding-bottom,0)] [padding-left:var(--typography-padding-left,0)] [padding-right:var(--typography-padding-right,0)] [padding-top:var(--typography-padding-top,0)] [text-align:var(--typography-text-align)] [text-decoration:var(--typography-text-decoration)] [text-overflow:var(--typography-text-overflow)] [text-transform:var(--typography-text-transform)] [vertical-align:var(--typography-vertical-align)] [white-space:var(--typography-white-space)] [width:var(--typography-width)] [word-break:var(--typography-word-break)] [-webkit-box-orient:var(--typography-webkit-box-orient)] [-webkit-line-clamp:var(--typography-webkit-line-clamp)]", t = {
|
|
5
5
|
color: "--typography-color",
|
|
6
|
+
display: "--typography-display",
|
|
6
7
|
fontSize: "--typography-font-size",
|
|
7
8
|
fontFamily: "--typography-font-family",
|
|
8
9
|
fontStyle: "--typography-font-style",
|
|
@@ -18,6 +19,7 @@ const L = "text-[length:var(--typography-font-size)] font-[var(--typography-font
|
|
|
18
19
|
maxWidth: "--typography-max-width",
|
|
19
20
|
minHeight: "--typography-min-height",
|
|
20
21
|
minWidth: "--typography-min-width",
|
|
22
|
+
overflow: "--typography-overflow",
|
|
21
23
|
paddingBottom: "--typography-padding-bottom",
|
|
22
24
|
paddingLeft: "--typography-padding-left",
|
|
23
25
|
paddingRight: "--typography-padding-right",
|
|
@@ -29,53 +31,59 @@ const L = "text-[length:var(--typography-font-size)] font-[var(--typography-font
|
|
|
29
31
|
verticalAlign: "--typography-vertical-align",
|
|
30
32
|
whiteSpace: "--typography-white-space",
|
|
31
33
|
width: "--typography-width",
|
|
32
|
-
wordBreak: "--typography-word-break"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
34
|
+
wordBreak: "--typography-word-break",
|
|
35
|
+
webkitBoxOrient: "--typography-webkit-box-orient",
|
|
36
|
+
webkitLineClamp: "--typography-webkit-line-clamp"
|
|
37
|
+
}, Z = {
|
|
38
|
+
[t.color]: "color",
|
|
39
|
+
[t.display]: "display",
|
|
40
|
+
[t.fontSize]: "font-size",
|
|
41
|
+
[t.fontFamily]: "font-family",
|
|
42
|
+
[t.fontStyle]: "font-style",
|
|
43
|
+
[t.fontWeight]: "font-weight",
|
|
44
|
+
[t.height]: "height",
|
|
45
|
+
[t.letterSpacing]: "letter-spacing",
|
|
46
|
+
[t.lineHeight]: "line-height",
|
|
47
|
+
[t.marginBottom]: "margin-bottom",
|
|
48
|
+
[t.marginLeft]: "margin-left",
|
|
49
|
+
[t.marginRight]: "margin-right",
|
|
50
|
+
[t.marginTop]: "margin-top",
|
|
51
|
+
[t.maxHeight]: "max-height",
|
|
52
|
+
[t.maxWidth]: "max-width",
|
|
53
|
+
[t.minHeight]: "min-height",
|
|
54
|
+
[t.minWidth]: "min-width",
|
|
55
|
+
[t.overflow]: "overflow",
|
|
56
|
+
[t.paddingBottom]: "padding-bottom",
|
|
57
|
+
[t.paddingLeft]: "padding-left",
|
|
58
|
+
[t.paddingRight]: "padding-right",
|
|
59
|
+
[t.paddingTop]: "padding-top",
|
|
60
|
+
[t.textAlign]: "text-align",
|
|
61
|
+
[t.textDecoration]: "text-decoration",
|
|
62
|
+
[t.textOverflow]: "text-overflow",
|
|
63
|
+
[t.textTransform]: "text-transform",
|
|
64
|
+
[t.verticalAlign]: "vertical-align",
|
|
65
|
+
[t.whiteSpace]: "white-space",
|
|
66
|
+
[t.width]: "width",
|
|
67
|
+
[t.wordBreak]: "word-break",
|
|
68
|
+
[t.webkitBoxOrient]: "-webkit-box-orient",
|
|
69
|
+
[t.webkitLineClamp]: "-webkit-line-clamp"
|
|
62
70
|
};
|
|
63
|
-
function
|
|
64
|
-
const i = [],
|
|
65
|
-
for (const
|
|
66
|
-
for (const [
|
|
67
|
-
const h =
|
|
71
|
+
function tt(o) {
|
|
72
|
+
const i = [], r = { ...o.vars ?? {} };
|
|
73
|
+
for (const n of C)
|
|
74
|
+
for (const [a, p] of Object.entries(o[n]?.vars ?? {})) {
|
|
75
|
+
const h = Z[a];
|
|
68
76
|
if (!h || p === void 0 || p === null)
|
|
69
77
|
continue;
|
|
70
|
-
const g = `--${
|
|
71
|
-
|
|
78
|
+
const g = `--${n}-${a.slice(2)}`;
|
|
79
|
+
r[g] = p, i.push(`${n}:[${h}:var(${g})]`);
|
|
72
80
|
}
|
|
73
81
|
return {
|
|
74
82
|
className: i.join(" "),
|
|
75
|
-
style: Object.keys(
|
|
83
|
+
style: Object.keys(r).length > 0 ? r : void 0
|
|
76
84
|
};
|
|
77
85
|
}
|
|
78
|
-
const
|
|
86
|
+
const D = {
|
|
79
87
|
h1: {
|
|
80
88
|
base: {
|
|
81
89
|
fontSize: "--typo-fs-h1-sm",
|
|
@@ -188,156 +196,195 @@ const _ = {
|
|
|
188
196
|
className: "uppercase"
|
|
189
197
|
}
|
|
190
198
|
};
|
|
191
|
-
function
|
|
192
|
-
className:
|
|
199
|
+
function mt({
|
|
200
|
+
className: o,
|
|
193
201
|
variant: i = "b2"
|
|
194
202
|
} = {}) {
|
|
195
|
-
const
|
|
196
|
-
return
|
|
203
|
+
const r = D[i];
|
|
204
|
+
return _(Y, r.className, o);
|
|
197
205
|
}
|
|
198
|
-
function
|
|
206
|
+
function ot(o) {
|
|
199
207
|
return {
|
|
200
|
-
vars:
|
|
201
|
-
md:
|
|
202
|
-
lg:
|
|
208
|
+
vars: L(o.base),
|
|
209
|
+
md: o.md ? { vars: L(o.md) } : void 0,
|
|
210
|
+
lg: o.lg ? { vars: L(o.lg) } : void 0
|
|
203
211
|
};
|
|
204
212
|
}
|
|
205
|
-
function
|
|
206
|
-
color:
|
|
213
|
+
function it({
|
|
214
|
+
color: o,
|
|
207
215
|
fontSize: i,
|
|
208
|
-
fontWeight:
|
|
216
|
+
fontWeight: r,
|
|
217
|
+
letterSpacing: n,
|
|
209
218
|
lineHeight: a,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
219
|
+
lineClamp: p,
|
|
220
|
+
verticalAlign: h,
|
|
221
|
+
horizontalAlign: g,
|
|
222
|
+
textTransform: y,
|
|
223
|
+
textDecoration: d,
|
|
224
|
+
textOverflow: m,
|
|
225
|
+
truncate: T,
|
|
226
|
+
whiteSpace: c,
|
|
227
|
+
wordBreak: v,
|
|
228
|
+
italic: b,
|
|
229
|
+
fontFamily: w,
|
|
230
|
+
width: x,
|
|
231
|
+
minWidth: u,
|
|
232
|
+
maxWidth: S,
|
|
233
|
+
height: k,
|
|
234
|
+
minHeight: z,
|
|
235
|
+
maxHeight: H,
|
|
236
|
+
p: B,
|
|
237
|
+
m: P,
|
|
238
|
+
md: e,
|
|
228
239
|
lg: f,
|
|
229
240
|
xl: s
|
|
230
241
|
}) {
|
|
231
242
|
return {
|
|
232
|
-
vars:
|
|
233
|
-
color:
|
|
243
|
+
vars: A({
|
|
244
|
+
color: o,
|
|
234
245
|
fontSize: i,
|
|
235
|
-
fontWeight:
|
|
246
|
+
fontWeight: r,
|
|
247
|
+
letterSpacing: n,
|
|
236
248
|
lineHeight: a,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
249
|
+
lineClamp: p,
|
|
250
|
+
verticalAlign: h,
|
|
251
|
+
horizontalAlign: g,
|
|
252
|
+
textTransform: y,
|
|
253
|
+
textDecoration: d,
|
|
254
|
+
textOverflow: m,
|
|
255
|
+
truncate: T,
|
|
256
|
+
whiteSpace: c,
|
|
257
|
+
wordBreak: v,
|
|
258
|
+
italic: b,
|
|
259
|
+
fontFamily: w,
|
|
260
|
+
width: x,
|
|
261
|
+
minWidth: u,
|
|
262
|
+
maxWidth: S,
|
|
263
|
+
height: k,
|
|
264
|
+
minHeight: z,
|
|
265
|
+
maxHeight: H,
|
|
266
|
+
p: B,
|
|
267
|
+
m: P
|
|
254
268
|
}),
|
|
255
|
-
md:
|
|
256
|
-
lg: f ? { vars:
|
|
257
|
-
xl: s ? { vars:
|
|
269
|
+
md: e ? { vars: A(e) } : void 0,
|
|
270
|
+
lg: f ? { vars: A(f) } : void 0,
|
|
271
|
+
xl: s ? { vars: A(s) } : void 0
|
|
258
272
|
};
|
|
259
273
|
}
|
|
260
|
-
function
|
|
261
|
-
const
|
|
262
|
-
colors:
|
|
263
|
-
typography:
|
|
264
|
-
vars:
|
|
274
|
+
function et(o, i) {
|
|
275
|
+
const r = new Set(Object.keys(i.vars ?? {})), n = {
|
|
276
|
+
colors: o.colors,
|
|
277
|
+
typography: o.typography,
|
|
278
|
+
vars: o.vars
|
|
265
279
|
};
|
|
266
|
-
for (const
|
|
267
|
-
for (const y of Object.keys(i[
|
|
268
|
-
|
|
269
|
-
const p =
|
|
280
|
+
for (const a of C) {
|
|
281
|
+
for (const y of Object.keys(i[a]?.vars ?? {}))
|
|
282
|
+
r.add(y);
|
|
283
|
+
const p = o[a];
|
|
270
284
|
if (!p)
|
|
271
285
|
continue;
|
|
272
286
|
const h = Object.fromEntries(
|
|
273
287
|
Object.entries(p.vars ?? {}).filter(
|
|
274
|
-
([y]) => !
|
|
288
|
+
([y]) => !r.has(y)
|
|
275
289
|
)
|
|
276
290
|
), g = {
|
|
277
291
|
colors: p.colors,
|
|
278
292
|
typography: p.typography,
|
|
279
293
|
vars: Object.keys(h).length > 0 ? h : void 0
|
|
280
294
|
};
|
|
281
|
-
(g.colors || g.typography || g.vars) && (a
|
|
295
|
+
(g.colors || g.typography || g.vars) && (n[a] = g);
|
|
282
296
|
}
|
|
283
|
-
return
|
|
297
|
+
return n;
|
|
284
298
|
}
|
|
285
|
-
function
|
|
299
|
+
function L(o) {
|
|
286
300
|
return {
|
|
287
|
-
[
|
|
288
|
-
[
|
|
289
|
-
[
|
|
290
|
-
[
|
|
301
|
+
[t.fontSize]: `var(${o.fontSize})`,
|
|
302
|
+
[t.fontWeight]: `var(${o.fontWeight})`,
|
|
303
|
+
[t.letterSpacing]: 0,
|
|
304
|
+
[t.lineHeight]: `var(${o.lineHeight})`
|
|
291
305
|
};
|
|
292
306
|
}
|
|
293
|
-
function
|
|
294
|
-
|
|
307
|
+
function rt(o) {
|
|
308
|
+
return typeof o == "number" ? `${o}px` : String(O(o));
|
|
309
|
+
}
|
|
310
|
+
function nt({
|
|
311
|
+
lineClamp: o,
|
|
312
|
+
truncate: i
|
|
313
|
+
}) {
|
|
314
|
+
return o !== void 0 ? o === "none" ? {
|
|
315
|
+
[t.display]: "revert",
|
|
316
|
+
[t.overflow]: "visible",
|
|
317
|
+
[t.textOverflow]: "clip",
|
|
318
|
+
[t.whiteSpace]: "normal",
|
|
319
|
+
[t.webkitBoxOrient]: "unset",
|
|
320
|
+
[t.webkitLineClamp]: "unset"
|
|
321
|
+
} : {
|
|
322
|
+
[t.display]: "-webkit-box",
|
|
323
|
+
[t.overflow]: "hidden",
|
|
324
|
+
[t.textOverflow]: "clip",
|
|
325
|
+
[t.whiteSpace]: "normal",
|
|
326
|
+
[t.webkitBoxOrient]: "vertical",
|
|
327
|
+
[t.webkitLineClamp]: Math.max(1, Math.floor(o))
|
|
328
|
+
} : i !== void 0 ? {
|
|
329
|
+
[t.display]: "revert",
|
|
330
|
+
[t.overflow]: i ? "hidden" : "visible",
|
|
331
|
+
[t.textOverflow]: i ? "ellipsis" : "clip",
|
|
332
|
+
[t.whiteSpace]: i ? "nowrap" : "normal",
|
|
333
|
+
[t.webkitBoxOrient]: "unset",
|
|
334
|
+
[t.webkitLineClamp]: "unset"
|
|
335
|
+
} : {};
|
|
336
|
+
}
|
|
337
|
+
function A({
|
|
338
|
+
color: o,
|
|
295
339
|
fontSize: i,
|
|
296
|
-
fontWeight:
|
|
340
|
+
fontWeight: r,
|
|
341
|
+
letterSpacing: n,
|
|
297
342
|
lineHeight: a,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
343
|
+
lineClamp: p,
|
|
344
|
+
verticalAlign: h,
|
|
345
|
+
horizontalAlign: g,
|
|
346
|
+
textTransform: y,
|
|
347
|
+
textDecoration: d,
|
|
348
|
+
textOverflow: m,
|
|
349
|
+
truncate: T,
|
|
350
|
+
whiteSpace: c,
|
|
351
|
+
wordBreak: v,
|
|
352
|
+
italic: b,
|
|
353
|
+
fontFamily: w,
|
|
354
|
+
width: x,
|
|
355
|
+
minWidth: u,
|
|
356
|
+
maxWidth: S,
|
|
357
|
+
height: k,
|
|
358
|
+
minHeight: z,
|
|
359
|
+
maxHeight: H,
|
|
360
|
+
p: B,
|
|
361
|
+
m: P
|
|
315
362
|
}) {
|
|
316
|
-
const
|
|
317
|
-
return
|
|
363
|
+
const e = {}, f = i, s = r, V = a;
|
|
364
|
+
return o !== void 0 && (e[t.color] = O(o)), f !== void 0 && (e[t.fontSize] = O(f)), s !== void 0 && (e[t.fontWeight] = O(s)), V !== void 0 && (e[t.lineHeight] = O(V)), n !== void 0 && (e[t.letterSpacing] = rt(n)), Object.assign(e, nt({ lineClamp: p, truncate: T })), h !== void 0 && (e[t.verticalAlign] = h), g !== void 0 && (e[t.textAlign] = g), y !== void 0 && (e[t.textTransform] = ht(y)), d !== void 0 && (e[t.textDecoration] = yt(d)), m !== void 0 && (e[t.textOverflow] = m), c !== void 0 && (e[t.whiteSpace] = c), v !== void 0 && (e[t.wordBreak] = lt(v)), b !== void 0 && (e[t.fontStyle] = b ? "italic" : "normal"), w !== void 0 && (e[t.fontFamily] = O(w)), x !== void 0 && (e[t.width] = W(x)), u !== void 0 && (e[t.minWidth] = W(u)), S !== void 0 && (e[t.maxWidth] = W(S)), k !== void 0 && (e[t.height] = W(k)), z !== void 0 && (e[t.minHeight] = W(z)), H !== void 0 && (e[t.maxHeight] = W(H)), Object.assign(e, at({ p: B, m: P })), Object.keys(e).length > 0 ? e : void 0;
|
|
318
365
|
}
|
|
319
|
-
function
|
|
320
|
-
return typeof
|
|
366
|
+
function W(o) {
|
|
367
|
+
return typeof o == "number" ? `${o}px` : o;
|
|
321
368
|
}
|
|
322
|
-
function
|
|
323
|
-
const
|
|
324
|
-
return
|
|
369
|
+
function at({ p: o, m: i }) {
|
|
370
|
+
const r = {}, n = pt(o), a = gt(i);
|
|
371
|
+
return n.top !== void 0 && (r[t.paddingTop] = l(n.top)), n.right !== void 0 && (r[t.paddingRight] = l(n.right)), n.bottom !== void 0 && (r[t.paddingBottom] = l(n.bottom)), n.left !== void 0 && (r[t.paddingLeft] = l(n.left)), a.top !== void 0 && (r[t.marginTop] = l(a.top)), a.right !== void 0 && (r[t.marginRight] = l(a.right)), a.bottom !== void 0 && (r[t.marginBottom] = l(a.bottom)), a.left !== void 0 && (r[t.marginLeft] = l(a.left)), r;
|
|
325
372
|
}
|
|
326
|
-
function
|
|
327
|
-
if (
|
|
373
|
+
function pt(o) {
|
|
374
|
+
if (o === void 0)
|
|
328
375
|
return {};
|
|
329
|
-
if (Array.isArray(
|
|
330
|
-
const [
|
|
331
|
-
return { top:
|
|
376
|
+
if (Array.isArray(o)) {
|
|
377
|
+
const [r, n, a, p] = o;
|
|
378
|
+
return { top: r, right: n, bottom: a, left: p };
|
|
332
379
|
}
|
|
333
|
-
if (typeof
|
|
380
|
+
if (typeof o != "object")
|
|
334
381
|
return {
|
|
335
|
-
top:
|
|
336
|
-
right:
|
|
337
|
-
bottom:
|
|
338
|
-
left:
|
|
382
|
+
top: o,
|
|
383
|
+
right: o,
|
|
384
|
+
bottom: o,
|
|
385
|
+
left: o
|
|
339
386
|
};
|
|
340
|
-
const i =
|
|
387
|
+
const i = o;
|
|
341
388
|
return {
|
|
342
389
|
top: i.py ?? i.pt,
|
|
343
390
|
right: i.px ?? i.pr,
|
|
@@ -345,21 +392,21 @@ function it(t) {
|
|
|
345
392
|
left: i.px ?? i.pl
|
|
346
393
|
};
|
|
347
394
|
}
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
395
|
+
function gt(o) {
|
|
396
|
+
if (o === void 0)
|
|
350
397
|
return {};
|
|
351
|
-
if (Array.isArray(
|
|
352
|
-
const [
|
|
353
|
-
return { top:
|
|
398
|
+
if (Array.isArray(o)) {
|
|
399
|
+
const [r, n, a, p] = o;
|
|
400
|
+
return { top: r, right: n, bottom: a, left: p };
|
|
354
401
|
}
|
|
355
|
-
if (typeof
|
|
402
|
+
if (typeof o != "object")
|
|
356
403
|
return {
|
|
357
|
-
top:
|
|
358
|
-
right:
|
|
359
|
-
bottom:
|
|
360
|
-
left:
|
|
404
|
+
top: o,
|
|
405
|
+
right: o,
|
|
406
|
+
bottom: o,
|
|
407
|
+
left: o
|
|
361
408
|
};
|
|
362
|
-
const i =
|
|
409
|
+
const i = o;
|
|
363
410
|
return {
|
|
364
411
|
top: i.my ?? i.mt,
|
|
365
412
|
right: i.mx ?? i.mr,
|
|
@@ -367,103 +414,109 @@ function et(t) {
|
|
|
367
414
|
left: i.mx ?? i.ml
|
|
368
415
|
};
|
|
369
416
|
}
|
|
370
|
-
function l(
|
|
371
|
-
return typeof
|
|
417
|
+
function l(o) {
|
|
418
|
+
return typeof o == "number" ? `${o}px` : o;
|
|
372
419
|
}
|
|
373
|
-
function
|
|
374
|
-
return
|
|
420
|
+
function ht(o) {
|
|
421
|
+
return o === "normal-case" ? "none" : o;
|
|
375
422
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
423
|
+
function yt(o) {
|
|
424
|
+
return o === "no-underline" ? "none" : o;
|
|
378
425
|
}
|
|
379
|
-
function
|
|
426
|
+
function lt(o) {
|
|
380
427
|
return {
|
|
381
428
|
all: "break-all",
|
|
382
429
|
keep: "keep-all",
|
|
383
430
|
normal: "normal",
|
|
384
431
|
word: "break-word"
|
|
385
|
-
}[
|
|
432
|
+
}[o];
|
|
386
433
|
}
|
|
387
|
-
function
|
|
388
|
-
as:
|
|
434
|
+
function ct({
|
|
435
|
+
as: o,
|
|
389
436
|
children: i,
|
|
390
|
-
className:
|
|
391
|
-
color:
|
|
392
|
-
fontSize:
|
|
437
|
+
className: r,
|
|
438
|
+
color: n,
|
|
439
|
+
fontSize: a,
|
|
393
440
|
fontWeight: p,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
441
|
+
letterSpacing: h,
|
|
442
|
+
lineHeight: g,
|
|
443
|
+
lineClamp: y,
|
|
444
|
+
verticalAlign: d,
|
|
445
|
+
horizontalAlign: m,
|
|
446
|
+
textTransform: T,
|
|
447
|
+
textDecoration: c,
|
|
448
|
+
textOverflow: v,
|
|
449
|
+
truncate: b,
|
|
450
|
+
whiteSpace: w,
|
|
451
|
+
wordBreak: x,
|
|
452
|
+
italic: u,
|
|
453
|
+
fontFamily: S,
|
|
454
|
+
width: k,
|
|
455
|
+
minWidth: z,
|
|
456
|
+
maxWidth: H,
|
|
457
|
+
height: B,
|
|
458
|
+
minHeight: P,
|
|
459
|
+
maxHeight: e,
|
|
410
460
|
p: f,
|
|
411
461
|
m: s,
|
|
412
|
-
md:
|
|
413
|
-
lg:
|
|
414
|
-
xl:
|
|
415
|
-
style:
|
|
416
|
-
variant:
|
|
417
|
-
...
|
|
462
|
+
md: V,
|
|
463
|
+
lg: E,
|
|
464
|
+
xl: F,
|
|
465
|
+
style: N,
|
|
466
|
+
variant: M = "b2",
|
|
467
|
+
...G
|
|
418
468
|
}) {
|
|
419
|
-
const
|
|
420
|
-
color:
|
|
421
|
-
fontSize:
|
|
469
|
+
const I = o ?? "p", j = D[M], U = ot(j), $ = it({
|
|
470
|
+
color: n,
|
|
471
|
+
fontSize: a,
|
|
422
472
|
fontWeight: p,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
473
|
+
letterSpacing: h,
|
|
474
|
+
lineHeight: g,
|
|
475
|
+
lineClamp: y,
|
|
476
|
+
verticalAlign: d,
|
|
477
|
+
horizontalAlign: m,
|
|
478
|
+
textTransform: T,
|
|
479
|
+
textDecoration: c,
|
|
480
|
+
textOverflow: v,
|
|
481
|
+
truncate: b,
|
|
482
|
+
whiteSpace: w,
|
|
483
|
+
wordBreak: x,
|
|
484
|
+
italic: u,
|
|
485
|
+
fontFamily: S,
|
|
486
|
+
width: k,
|
|
487
|
+
minWidth: z,
|
|
488
|
+
maxWidth: H,
|
|
489
|
+
height: B,
|
|
490
|
+
minHeight: P,
|
|
491
|
+
maxHeight: e,
|
|
439
492
|
p: f,
|
|
440
493
|
m: s,
|
|
441
|
-
md:
|
|
442
|
-
lg:
|
|
443
|
-
xl:
|
|
444
|
-
}),
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
),
|
|
448
|
-
...
|
|
449
|
-
...
|
|
494
|
+
md: V,
|
|
495
|
+
lg: E,
|
|
496
|
+
xl: F
|
|
497
|
+
}), q = et(
|
|
498
|
+
U,
|
|
499
|
+
$
|
|
500
|
+
), J = X(q, $), R = tt(J), K = R.style || N ? {
|
|
501
|
+
...R.style,
|
|
502
|
+
...N
|
|
450
503
|
} : void 0;
|
|
451
|
-
return /* @__PURE__ */
|
|
452
|
-
|
|
504
|
+
return /* @__PURE__ */ Q(
|
|
505
|
+
I,
|
|
453
506
|
{
|
|
454
|
-
className:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
507
|
+
className: _(
|
|
508
|
+
Y,
|
|
509
|
+
j.className,
|
|
510
|
+
R.className,
|
|
511
|
+
r
|
|
459
512
|
),
|
|
460
|
-
style:
|
|
461
|
-
...
|
|
513
|
+
style: K,
|
|
514
|
+
...G,
|
|
462
515
|
children: i
|
|
463
516
|
}
|
|
464
517
|
);
|
|
465
518
|
}
|
|
466
519
|
export {
|
|
467
|
-
|
|
468
|
-
|
|
520
|
+
ct as Typography,
|
|
521
|
+
mt as typographyVariants
|
|
469
522
|
};
|