@bonprix-ds/react-typography 1.0.1 → 1.0.2

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/index.js CHANGED
@@ -1,1223 +1,9 @@
1
- "use client";
1
+ import { twMerge as e } from "tailwind-merge";
2
2
  import "react";
3
- import { tv as e } from "tailwind-variants";
4
- import { jsx as t } from "react/jsx-runtime";
5
- //#region ../../../node_modules/.pnpm/tailwind-merge@2.6.1/node_modules/tailwind-merge/dist/bundle-mjs.mjs
6
- var n = "-", r = (e) => {
7
- let t = s(e), { conflictingClassGroups: r, conflictingClassGroupModifiers: a } = e;
8
- return {
9
- getClassGroupId: (e) => {
10
- let r = e.split(n);
11
- return r[0] === "" && r.length !== 1 && r.shift(), i(r, t) || o(e);
12
- },
13
- getConflictingClassGroupIds: (e, t) => {
14
- let n = r[e] || [];
15
- return t && a[e] ? [...n, ...a[e]] : n;
16
- }
17
- };
18
- }, i = (e, t) => {
19
- if (e.length === 0) return t.classGroupId;
20
- let r = e[0], a = t.nextPart.get(r), o = a ? i(e.slice(1), a) : void 0;
21
- if (o) return o;
22
- if (t.validators.length === 0) return;
23
- let s = e.join(n);
24
- return t.validators.find(({ validator: e }) => e(s))?.classGroupId;
25
- }, a = /^\[(.+)\]$/, o = (e) => {
26
- if (a.test(e)) {
27
- let t = a.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
28
- if (n) return "arbitrary.." + n;
29
- }
30
- }, s = (e) => {
31
- let { theme: t, prefix: n } = e, r = {
32
- nextPart: /* @__PURE__ */ new Map(),
33
- validators: []
34
- };
35
- return d(Object.entries(e.classGroups), n).forEach(([e, n]) => {
36
- c(n, r, e, t);
37
- }), r;
38
- }, c = (e, t, n, r) => {
39
- e.forEach((e) => {
40
- if (typeof e == "string") {
41
- let r = e === "" ? t : l(t, e);
42
- r.classGroupId = n;
43
- return;
44
- }
45
- if (typeof e == "function") {
46
- if (u(e)) {
47
- c(e(r), t, n, r);
48
- return;
49
- }
50
- t.validators.push({
51
- validator: e,
52
- classGroupId: n
53
- });
54
- return;
55
- }
56
- Object.entries(e).forEach(([e, i]) => {
57
- c(i, l(t, e), n, r);
58
- });
59
- });
60
- }, l = (e, t) => {
61
- let r = e;
62
- return t.split(n).forEach((e) => {
63
- r.nextPart.has(e) || r.nextPart.set(e, {
64
- nextPart: /* @__PURE__ */ new Map(),
65
- validators: []
66
- }), r = r.nextPart.get(e);
67
- }), r;
68
- }, u = (e) => e.isThemeGetter, d = (e, t) => t ? e.map(([e, n]) => [e, n.map((e) => typeof e == "string" ? t + e : typeof e == "object" ? Object.fromEntries(Object.entries(e).map(([e, n]) => [t + e, n])) : e)]) : e, f = (e) => {
69
- if (e < 1) return {
70
- get: () => void 0,
71
- set: () => {}
72
- };
73
- let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = (i, a) => {
74
- n.set(i, a), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map());
75
- };
76
- return {
77
- get(e) {
78
- let t = n.get(e);
79
- if (t !== void 0) return t;
80
- if ((t = r.get(e)) !== void 0) return i(e, t), t;
81
- },
82
- set(e, t) {
83
- n.has(e) ? n.set(e, t) : i(e, t);
84
- }
85
- };
86
- }, p = "!", m = (e) => {
87
- let { separator: t, experimentalParseClassName: n } = e, r = t.length === 1, i = t[0], a = t.length, o = (e) => {
88
- let n = [], o = 0, s = 0, c;
89
- for (let l = 0; l < e.length; l++) {
90
- let u = e[l];
91
- if (o === 0) {
92
- if (u === i && (r || e.slice(l, l + a) === t)) {
93
- n.push(e.slice(s, l)), s = l + a;
94
- continue;
95
- }
96
- if (u === "/") {
97
- c = l;
98
- continue;
99
- }
100
- }
101
- u === "[" ? o++ : u === "]" && o--;
102
- }
103
- let l = n.length === 0 ? e : e.substring(s), u = l.startsWith(p);
104
- return {
105
- modifiers: n,
106
- hasImportantModifier: u,
107
- baseClassName: u ? l.substring(1) : l,
108
- maybePostfixModifierPosition: c && c > s ? c - s : void 0
109
- };
110
- };
111
- return n ? (e) => n({
112
- className: e,
113
- parseClassName: o
114
- }) : o;
115
- }, h = (e) => {
116
- if (e.length <= 1) return e;
117
- let t = [], n = [];
118
- return e.forEach((e) => {
119
- e[0] === "[" ? (t.push(...n.sort(), e), n = []) : n.push(e);
120
- }), t.push(...n.sort()), t;
121
- }, g = (e) => ({
122
- cache: f(e.cacheSize),
123
- parseClassName: m(e),
124
- ...r(e)
125
- }), _ = /\s+/, v = (e, t) => {
126
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i } = t, a = [], o = e.trim().split(_), s = "";
127
- for (let e = o.length - 1; e >= 0; --e) {
128
- let t = o[e], { modifiers: c, hasImportantModifier: l, baseClassName: u, maybePostfixModifierPosition: d } = n(t), f = !!d, m = r(f ? u.substring(0, d) : u);
129
- if (!m) {
130
- if (!f) {
131
- s = t + (s.length > 0 ? " " + s : s);
132
- continue;
133
- }
134
- if (m = r(u), !m) {
135
- s = t + (s.length > 0 ? " " + s : s);
136
- continue;
137
- }
138
- f = !1;
139
- }
140
- let g = h(c).join(":"), _ = l ? g + p : g, v = _ + m;
141
- if (a.includes(v)) continue;
142
- a.push(v);
143
- let y = i(m, f);
144
- for (let e = 0; e < y.length; ++e) {
145
- let t = y[e];
146
- a.push(_ + t);
147
- }
148
- s = t + (s.length > 0 ? " " + s : s);
149
- }
150
- return s;
151
- };
152
- function y() {
153
- let e = 0, t, n, r = "";
154
- for (; e < arguments.length;) (t = arguments[e++]) && (n = b(t)) && (r && (r += " "), r += n);
155
- return r;
156
- }
157
- var b = (e) => {
158
- if (typeof e == "string") return e;
159
- let t, n = "";
160
- for (let r = 0; r < e.length; r++) e[r] && (t = b(e[r])) && (n && (n += " "), n += t);
161
- return n;
162
- };
163
- function x(e, ...t) {
164
- let n, r, i, a = o;
165
- function o(o) {
166
- return n = g(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o);
167
- }
168
- function s(e) {
169
- let t = r(e);
170
- if (t) return t;
171
- let a = v(e, n);
172
- return i(e, a), a;
173
- }
174
- return function() {
175
- return a(y.apply(null, arguments));
176
- };
177
- }
178
- var S = (e) => {
179
- let t = (t) => t[e] || [];
180
- return t.isThemeGetter = !0, t;
181
- }, C = /^\[(?:([a-z-]+):)?(.+)\]$/i, w = /^\d+\/\d+$/, T = /*#__PURE__*/ new Set([
182
- "px",
183
- "full",
184
- "screen"
185
- ]), E = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, D = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, O = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, k = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, A = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, j = (e) => N(e) || T.has(e) || w.test(e), M = (e) => K(e, "length", q), N = (e) => !!e && !Number.isNaN(Number(e)), P = (e) => K(e, "number", N), F = (e) => !!e && Number.isInteger(Number(e)), I = (e) => e.endsWith("%") && N(e.slice(0, -1)), L = (e) => C.test(e), R = (e) => E.test(e), z = /*#__PURE__*/ new Set([
186
- "length",
187
- "size",
188
- "percentage"
189
- ]), B = (e) => K(e, z, J), V = (e) => K(e, "position", J), H = /*#__PURE__*/ new Set(["image", "url"]), U = (e) => K(e, H, X), W = (e) => K(e, "", Y), G = () => !0, K = (e, t, n) => {
190
- let r = C.exec(e);
191
- return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
192
- }, q = (e) => D.test(e) && !O.test(e), J = () => !1, Y = (e) => k.test(e), X = (e) => A.test(e), Z = /*#__PURE__*/ x(() => {
193
- let e = S("colors"), t = S("spacing"), n = S("blur"), r = S("brightness"), i = S("borderColor"), a = S("borderRadius"), o = S("borderSpacing"), s = S("borderWidth"), c = S("contrast"), l = S("grayscale"), u = S("hueRotate"), d = S("invert"), f = S("gap"), p = S("gradientColorStops"), m = S("gradientColorStopPositions"), h = S("inset"), g = S("margin"), _ = S("opacity"), v = S("padding"), y = S("saturate"), b = S("scale"), x = S("sepia"), C = S("skew"), w = S("space"), T = S("translate"), E = () => [
194
- "auto",
195
- "contain",
196
- "none"
197
- ], D = () => [
198
- "auto",
199
- "hidden",
200
- "clip",
201
- "visible",
202
- "scroll"
203
- ], O = () => [
204
- "auto",
205
- L,
206
- t
207
- ], k = () => [L, t], A = () => [
208
- "",
209
- j,
210
- M
211
- ], z = () => [
212
- "auto",
213
- N,
214
- L
215
- ], H = () => [
216
- "bottom",
217
- "center",
218
- "left",
219
- "left-bottom",
220
- "left-top",
221
- "right",
222
- "right-bottom",
223
- "right-top",
224
- "top"
225
- ], K = () => [
226
- "solid",
227
- "dashed",
228
- "dotted",
229
- "double",
230
- "none"
231
- ], q = () => [
232
- "normal",
233
- "multiply",
234
- "screen",
235
- "overlay",
236
- "darken",
237
- "lighten",
238
- "color-dodge",
239
- "color-burn",
240
- "hard-light",
241
- "soft-light",
242
- "difference",
243
- "exclusion",
244
- "hue",
245
- "saturation",
246
- "color",
247
- "luminosity"
248
- ], J = () => [
249
- "start",
250
- "end",
251
- "center",
252
- "between",
253
- "around",
254
- "evenly",
255
- "stretch"
256
- ], Y = () => [
257
- "",
258
- "0",
259
- L
260
- ], X = () => [
261
- "auto",
262
- "avoid",
263
- "all",
264
- "avoid-page",
265
- "page",
266
- "left",
267
- "right",
268
- "column"
269
- ], Z = () => [N, L];
270
- return {
271
- cacheSize: 500,
272
- separator: ":",
273
- theme: {
274
- colors: [G],
275
- spacing: [j, M],
276
- blur: [
277
- "none",
278
- "",
279
- R,
280
- L
281
- ],
282
- brightness: Z(),
283
- borderColor: [e],
284
- borderRadius: [
285
- "none",
286
- "",
287
- "full",
288
- R,
289
- L
290
- ],
291
- borderSpacing: k(),
292
- borderWidth: A(),
293
- contrast: Z(),
294
- grayscale: Y(),
295
- hueRotate: Z(),
296
- invert: Y(),
297
- gap: k(),
298
- gradientColorStops: [e],
299
- gradientColorStopPositions: [I, M],
300
- inset: O(),
301
- margin: O(),
302
- opacity: Z(),
303
- padding: k(),
304
- saturate: Z(),
305
- scale: Z(),
306
- sepia: Y(),
307
- skew: Z(),
308
- space: k(),
309
- translate: k()
310
- },
311
- classGroups: {
312
- aspect: [{ aspect: [
313
- "auto",
314
- "square",
315
- "video",
316
- L
317
- ] }],
318
- container: ["container"],
319
- columns: [{ columns: [R] }],
320
- "break-after": [{ "break-after": X() }],
321
- "break-before": [{ "break-before": X() }],
322
- "break-inside": [{ "break-inside": [
323
- "auto",
324
- "avoid",
325
- "avoid-page",
326
- "avoid-column"
327
- ] }],
328
- "box-decoration": [{ "box-decoration": ["slice", "clone"] }],
329
- box: [{ box: ["border", "content"] }],
330
- display: [
331
- "block",
332
- "inline-block",
333
- "inline",
334
- "flex",
335
- "inline-flex",
336
- "table",
337
- "inline-table",
338
- "table-caption",
339
- "table-cell",
340
- "table-column",
341
- "table-column-group",
342
- "table-footer-group",
343
- "table-header-group",
344
- "table-row-group",
345
- "table-row",
346
- "flow-root",
347
- "grid",
348
- "inline-grid",
349
- "contents",
350
- "list-item",
351
- "hidden"
352
- ],
353
- float: [{ float: [
354
- "right",
355
- "left",
356
- "none",
357
- "start",
358
- "end"
359
- ] }],
360
- clear: [{ clear: [
361
- "left",
362
- "right",
363
- "both",
364
- "none",
365
- "start",
366
- "end"
367
- ] }],
368
- isolation: ["isolate", "isolation-auto"],
369
- "object-fit": [{ object: [
370
- "contain",
371
- "cover",
372
- "fill",
373
- "none",
374
- "scale-down"
375
- ] }],
376
- "object-position": [{ object: [...H(), L] }],
377
- overflow: [{ overflow: D() }],
378
- "overflow-x": [{ "overflow-x": D() }],
379
- "overflow-y": [{ "overflow-y": D() }],
380
- overscroll: [{ overscroll: E() }],
381
- "overscroll-x": [{ "overscroll-x": E() }],
382
- "overscroll-y": [{ "overscroll-y": E() }],
383
- position: [
384
- "static",
385
- "fixed",
386
- "absolute",
387
- "relative",
388
- "sticky"
389
- ],
390
- inset: [{ inset: [h] }],
391
- "inset-x": [{ "inset-x": [h] }],
392
- "inset-y": [{ "inset-y": [h] }],
393
- start: [{ start: [h] }],
394
- end: [{ end: [h] }],
395
- top: [{ top: [h] }],
396
- right: [{ right: [h] }],
397
- bottom: [{ bottom: [h] }],
398
- left: [{ left: [h] }],
399
- visibility: [
400
- "visible",
401
- "invisible",
402
- "collapse"
403
- ],
404
- z: [{ z: [
405
- "auto",
406
- F,
407
- L
408
- ] }],
409
- basis: [{ basis: O() }],
410
- "flex-direction": [{ flex: [
411
- "row",
412
- "row-reverse",
413
- "col",
414
- "col-reverse"
415
- ] }],
416
- "flex-wrap": [{ flex: [
417
- "wrap",
418
- "wrap-reverse",
419
- "nowrap"
420
- ] }],
421
- flex: [{ flex: [
422
- "1",
423
- "auto",
424
- "initial",
425
- "none",
426
- L
427
- ] }],
428
- grow: [{ grow: Y() }],
429
- shrink: [{ shrink: Y() }],
430
- order: [{ order: [
431
- "first",
432
- "last",
433
- "none",
434
- F,
435
- L
436
- ] }],
437
- "grid-cols": [{ "grid-cols": [G] }],
438
- "col-start-end": [{ col: [
439
- "auto",
440
- { span: [
441
- "full",
442
- F,
443
- L
444
- ] },
445
- L
446
- ] }],
447
- "col-start": [{ "col-start": z() }],
448
- "col-end": [{ "col-end": z() }],
449
- "grid-rows": [{ "grid-rows": [G] }],
450
- "row-start-end": [{ row: [
451
- "auto",
452
- { span: [F, L] },
453
- L
454
- ] }],
455
- "row-start": [{ "row-start": z() }],
456
- "row-end": [{ "row-end": z() }],
457
- "grid-flow": [{ "grid-flow": [
458
- "row",
459
- "col",
460
- "dense",
461
- "row-dense",
462
- "col-dense"
463
- ] }],
464
- "auto-cols": [{ "auto-cols": [
465
- "auto",
466
- "min",
467
- "max",
468
- "fr",
469
- L
470
- ] }],
471
- "auto-rows": [{ "auto-rows": [
472
- "auto",
473
- "min",
474
- "max",
475
- "fr",
476
- L
477
- ] }],
478
- gap: [{ gap: [f] }],
479
- "gap-x": [{ "gap-x": [f] }],
480
- "gap-y": [{ "gap-y": [f] }],
481
- "justify-content": [{ justify: ["normal", ...J()] }],
482
- "justify-items": [{ "justify-items": [
483
- "start",
484
- "end",
485
- "center",
486
- "stretch"
487
- ] }],
488
- "justify-self": [{ "justify-self": [
489
- "auto",
490
- "start",
491
- "end",
492
- "center",
493
- "stretch"
494
- ] }],
495
- "align-content": [{ content: [
496
- "normal",
497
- ...J(),
498
- "baseline"
499
- ] }],
500
- "align-items": [{ items: [
501
- "start",
502
- "end",
503
- "center",
504
- "baseline",
505
- "stretch"
506
- ] }],
507
- "align-self": [{ self: [
508
- "auto",
509
- "start",
510
- "end",
511
- "center",
512
- "stretch",
513
- "baseline"
514
- ] }],
515
- "place-content": [{ "place-content": [...J(), "baseline"] }],
516
- "place-items": [{ "place-items": [
517
- "start",
518
- "end",
519
- "center",
520
- "baseline",
521
- "stretch"
522
- ] }],
523
- "place-self": [{ "place-self": [
524
- "auto",
525
- "start",
526
- "end",
527
- "center",
528
- "stretch"
529
- ] }],
530
- p: [{ p: [v] }],
531
- px: [{ px: [v] }],
532
- py: [{ py: [v] }],
533
- ps: [{ ps: [v] }],
534
- pe: [{ pe: [v] }],
535
- pt: [{ pt: [v] }],
536
- pr: [{ pr: [v] }],
537
- pb: [{ pb: [v] }],
538
- pl: [{ pl: [v] }],
539
- m: [{ m: [g] }],
540
- mx: [{ mx: [g] }],
541
- my: [{ my: [g] }],
542
- ms: [{ ms: [g] }],
543
- me: [{ me: [g] }],
544
- mt: [{ mt: [g] }],
545
- mr: [{ mr: [g] }],
546
- mb: [{ mb: [g] }],
547
- ml: [{ ml: [g] }],
548
- "space-x": [{ "space-x": [w] }],
549
- "space-x-reverse": ["space-x-reverse"],
550
- "space-y": [{ "space-y": [w] }],
551
- "space-y-reverse": ["space-y-reverse"],
552
- w: [{ w: [
553
- "auto",
554
- "min",
555
- "max",
556
- "fit",
557
- "svw",
558
- "lvw",
559
- "dvw",
560
- L,
561
- t
562
- ] }],
563
- "min-w": [{ "min-w": [
564
- L,
565
- t,
566
- "min",
567
- "max",
568
- "fit"
569
- ] }],
570
- "max-w": [{ "max-w": [
571
- L,
572
- t,
573
- "none",
574
- "full",
575
- "min",
576
- "max",
577
- "fit",
578
- "prose",
579
- { screen: [R] },
580
- R
581
- ] }],
582
- h: [{ h: [
583
- L,
584
- t,
585
- "auto",
586
- "min",
587
- "max",
588
- "fit",
589
- "svh",
590
- "lvh",
591
- "dvh"
592
- ] }],
593
- "min-h": [{ "min-h": [
594
- L,
595
- t,
596
- "min",
597
- "max",
598
- "fit",
599
- "svh",
600
- "lvh",
601
- "dvh"
602
- ] }],
603
- "max-h": [{ "max-h": [
604
- L,
605
- t,
606
- "min",
607
- "max",
608
- "fit",
609
- "svh",
610
- "lvh",
611
- "dvh"
612
- ] }],
613
- size: [{ size: [
614
- L,
615
- t,
616
- "auto",
617
- "min",
618
- "max",
619
- "fit"
620
- ] }],
621
- "font-size": [{ text: [
622
- "base",
623
- R,
624
- M
625
- ] }],
626
- "font-smoothing": ["antialiased", "subpixel-antialiased"],
627
- "font-style": ["italic", "not-italic"],
628
- "font-weight": [{ font: [
629
- "thin",
630
- "extralight",
631
- "light",
632
- "normal",
633
- "medium",
634
- "semibold",
635
- "bold",
636
- "extrabold",
637
- "black",
638
- P
639
- ] }],
640
- "font-family": [{ font: [G] }],
641
- "fvn-normal": ["normal-nums"],
642
- "fvn-ordinal": ["ordinal"],
643
- "fvn-slashed-zero": ["slashed-zero"],
644
- "fvn-figure": ["lining-nums", "oldstyle-nums"],
645
- "fvn-spacing": ["proportional-nums", "tabular-nums"],
646
- "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
647
- tracking: [{ tracking: [
648
- "tighter",
649
- "tight",
650
- "normal",
651
- "wide",
652
- "wider",
653
- "widest",
654
- L
655
- ] }],
656
- "line-clamp": [{ "line-clamp": [
657
- "none",
658
- N,
659
- P
660
- ] }],
661
- leading: [{ leading: [
662
- "none",
663
- "tight",
664
- "snug",
665
- "normal",
666
- "relaxed",
667
- "loose",
668
- j,
669
- L
670
- ] }],
671
- "list-image": [{ "list-image": ["none", L] }],
672
- "list-style-type": [{ list: [
673
- "none",
674
- "disc",
675
- "decimal",
676
- L
677
- ] }],
678
- "list-style-position": [{ list: ["inside", "outside"] }],
679
- "placeholder-color": [{ placeholder: [e] }],
680
- "placeholder-opacity": [{ "placeholder-opacity": [_] }],
681
- "text-alignment": [{ text: [
682
- "left",
683
- "center",
684
- "right",
685
- "justify",
686
- "start",
687
- "end"
688
- ] }],
689
- "text-color": [{ text: [e] }],
690
- "text-opacity": [{ "text-opacity": [_] }],
691
- "text-decoration": [
692
- "underline",
693
- "overline",
694
- "line-through",
695
- "no-underline"
696
- ],
697
- "text-decoration-style": [{ decoration: [...K(), "wavy"] }],
698
- "text-decoration-thickness": [{ decoration: [
699
- "auto",
700
- "from-font",
701
- j,
702
- M
703
- ] }],
704
- "underline-offset": [{ "underline-offset": [
705
- "auto",
706
- j,
707
- L
708
- ] }],
709
- "text-decoration-color": [{ decoration: [e] }],
710
- "text-transform": [
711
- "uppercase",
712
- "lowercase",
713
- "capitalize",
714
- "normal-case"
715
- ],
716
- "text-overflow": [
717
- "truncate",
718
- "text-ellipsis",
719
- "text-clip"
720
- ],
721
- "text-wrap": [{ text: [
722
- "wrap",
723
- "nowrap",
724
- "balance",
725
- "pretty"
726
- ] }],
727
- indent: [{ indent: k() }],
728
- "vertical-align": [{ align: [
729
- "baseline",
730
- "top",
731
- "middle",
732
- "bottom",
733
- "text-top",
734
- "text-bottom",
735
- "sub",
736
- "super",
737
- L
738
- ] }],
739
- whitespace: [{ whitespace: [
740
- "normal",
741
- "nowrap",
742
- "pre",
743
- "pre-line",
744
- "pre-wrap",
745
- "break-spaces"
746
- ] }],
747
- break: [{ break: [
748
- "normal",
749
- "words",
750
- "all",
751
- "keep"
752
- ] }],
753
- hyphens: [{ hyphens: [
754
- "none",
755
- "manual",
756
- "auto"
757
- ] }],
758
- content: [{ content: ["none", L] }],
759
- "bg-attachment": [{ bg: [
760
- "fixed",
761
- "local",
762
- "scroll"
763
- ] }],
764
- "bg-clip": [{ "bg-clip": [
765
- "border",
766
- "padding",
767
- "content",
768
- "text"
769
- ] }],
770
- "bg-opacity": [{ "bg-opacity": [_] }],
771
- "bg-origin": [{ "bg-origin": [
772
- "border",
773
- "padding",
774
- "content"
775
- ] }],
776
- "bg-position": [{ bg: [...H(), V] }],
777
- "bg-repeat": [{ bg: ["no-repeat", { repeat: [
778
- "",
779
- "x",
780
- "y",
781
- "round",
782
- "space"
783
- ] }] }],
784
- "bg-size": [{ bg: [
785
- "auto",
786
- "cover",
787
- "contain",
788
- B
789
- ] }],
790
- "bg-image": [{ bg: [
791
- "none",
792
- { "gradient-to": [
793
- "t",
794
- "tr",
795
- "r",
796
- "br",
797
- "b",
798
- "bl",
799
- "l",
800
- "tl"
801
- ] },
802
- U
803
- ] }],
804
- "bg-color": [{ bg: [e] }],
805
- "gradient-from-pos": [{ from: [m] }],
806
- "gradient-via-pos": [{ via: [m] }],
807
- "gradient-to-pos": [{ to: [m] }],
808
- "gradient-from": [{ from: [p] }],
809
- "gradient-via": [{ via: [p] }],
810
- "gradient-to": [{ to: [p] }],
811
- rounded: [{ rounded: [a] }],
812
- "rounded-s": [{ "rounded-s": [a] }],
813
- "rounded-e": [{ "rounded-e": [a] }],
814
- "rounded-t": [{ "rounded-t": [a] }],
815
- "rounded-r": [{ "rounded-r": [a] }],
816
- "rounded-b": [{ "rounded-b": [a] }],
817
- "rounded-l": [{ "rounded-l": [a] }],
818
- "rounded-ss": [{ "rounded-ss": [a] }],
819
- "rounded-se": [{ "rounded-se": [a] }],
820
- "rounded-ee": [{ "rounded-ee": [a] }],
821
- "rounded-es": [{ "rounded-es": [a] }],
822
- "rounded-tl": [{ "rounded-tl": [a] }],
823
- "rounded-tr": [{ "rounded-tr": [a] }],
824
- "rounded-br": [{ "rounded-br": [a] }],
825
- "rounded-bl": [{ "rounded-bl": [a] }],
826
- "border-w": [{ border: [s] }],
827
- "border-w-x": [{ "border-x": [s] }],
828
- "border-w-y": [{ "border-y": [s] }],
829
- "border-w-s": [{ "border-s": [s] }],
830
- "border-w-e": [{ "border-e": [s] }],
831
- "border-w-t": [{ "border-t": [s] }],
832
- "border-w-r": [{ "border-r": [s] }],
833
- "border-w-b": [{ "border-b": [s] }],
834
- "border-w-l": [{ "border-l": [s] }],
835
- "border-opacity": [{ "border-opacity": [_] }],
836
- "border-style": [{ border: [...K(), "hidden"] }],
837
- "divide-x": [{ "divide-x": [s] }],
838
- "divide-x-reverse": ["divide-x-reverse"],
839
- "divide-y": [{ "divide-y": [s] }],
840
- "divide-y-reverse": ["divide-y-reverse"],
841
- "divide-opacity": [{ "divide-opacity": [_] }],
842
- "divide-style": [{ divide: K() }],
843
- "border-color": [{ border: [i] }],
844
- "border-color-x": [{ "border-x": [i] }],
845
- "border-color-y": [{ "border-y": [i] }],
846
- "border-color-s": [{ "border-s": [i] }],
847
- "border-color-e": [{ "border-e": [i] }],
848
- "border-color-t": [{ "border-t": [i] }],
849
- "border-color-r": [{ "border-r": [i] }],
850
- "border-color-b": [{ "border-b": [i] }],
851
- "border-color-l": [{ "border-l": [i] }],
852
- "divide-color": [{ divide: [i] }],
853
- "outline-style": [{ outline: ["", ...K()] }],
854
- "outline-offset": [{ "outline-offset": [j, L] }],
855
- "outline-w": [{ outline: [j, M] }],
856
- "outline-color": [{ outline: [e] }],
857
- "ring-w": [{ ring: A() }],
858
- "ring-w-inset": ["ring-inset"],
859
- "ring-color": [{ ring: [e] }],
860
- "ring-opacity": [{ "ring-opacity": [_] }],
861
- "ring-offset-w": [{ "ring-offset": [j, M] }],
862
- "ring-offset-color": [{ "ring-offset": [e] }],
863
- shadow: [{ shadow: [
864
- "",
865
- "inner",
866
- "none",
867
- R,
868
- W
869
- ] }],
870
- "shadow-color": [{ shadow: [G] }],
871
- opacity: [{ opacity: [_] }],
872
- "mix-blend": [{ "mix-blend": [
873
- ...q(),
874
- "plus-lighter",
875
- "plus-darker"
876
- ] }],
877
- "bg-blend": [{ "bg-blend": q() }],
878
- filter: [{ filter: ["", "none"] }],
879
- blur: [{ blur: [n] }],
880
- brightness: [{ brightness: [r] }],
881
- contrast: [{ contrast: [c] }],
882
- "drop-shadow": [{ "drop-shadow": [
883
- "",
884
- "none",
885
- R,
886
- L
887
- ] }],
888
- grayscale: [{ grayscale: [l] }],
889
- "hue-rotate": [{ "hue-rotate": [u] }],
890
- invert: [{ invert: [d] }],
891
- saturate: [{ saturate: [y] }],
892
- sepia: [{ sepia: [x] }],
893
- "backdrop-filter": [{ "backdrop-filter": ["", "none"] }],
894
- "backdrop-blur": [{ "backdrop-blur": [n] }],
895
- "backdrop-brightness": [{ "backdrop-brightness": [r] }],
896
- "backdrop-contrast": [{ "backdrop-contrast": [c] }],
897
- "backdrop-grayscale": [{ "backdrop-grayscale": [l] }],
898
- "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [u] }],
899
- "backdrop-invert": [{ "backdrop-invert": [d] }],
900
- "backdrop-opacity": [{ "backdrop-opacity": [_] }],
901
- "backdrop-saturate": [{ "backdrop-saturate": [y] }],
902
- "backdrop-sepia": [{ "backdrop-sepia": [x] }],
903
- "border-collapse": [{ border: ["collapse", "separate"] }],
904
- "border-spacing": [{ "border-spacing": [o] }],
905
- "border-spacing-x": [{ "border-spacing-x": [o] }],
906
- "border-spacing-y": [{ "border-spacing-y": [o] }],
907
- "table-layout": [{ table: ["auto", "fixed"] }],
908
- caption: [{ caption: ["top", "bottom"] }],
909
- transition: [{ transition: [
910
- "none",
911
- "all",
912
- "",
913
- "colors",
914
- "opacity",
915
- "shadow",
916
- "transform",
917
- L
918
- ] }],
919
- duration: [{ duration: Z() }],
920
- ease: [{ ease: [
921
- "linear",
922
- "in",
923
- "out",
924
- "in-out",
925
- L
926
- ] }],
927
- delay: [{ delay: Z() }],
928
- animate: [{ animate: [
929
- "none",
930
- "spin",
931
- "ping",
932
- "pulse",
933
- "bounce",
934
- L
935
- ] }],
936
- transform: [{ transform: [
937
- "",
938
- "gpu",
939
- "none"
940
- ] }],
941
- scale: [{ scale: [b] }],
942
- "scale-x": [{ "scale-x": [b] }],
943
- "scale-y": [{ "scale-y": [b] }],
944
- rotate: [{ rotate: [F, L] }],
945
- "translate-x": [{ "translate-x": [T] }],
946
- "translate-y": [{ "translate-y": [T] }],
947
- "skew-x": [{ "skew-x": [C] }],
948
- "skew-y": [{ "skew-y": [C] }],
949
- "transform-origin": [{ origin: [
950
- "center",
951
- "top",
952
- "top-right",
953
- "right",
954
- "bottom-right",
955
- "bottom",
956
- "bottom-left",
957
- "left",
958
- "top-left",
959
- L
960
- ] }],
961
- accent: [{ accent: ["auto", e] }],
962
- appearance: [{ appearance: ["none", "auto"] }],
963
- cursor: [{ cursor: [
964
- "auto",
965
- "default",
966
- "pointer",
967
- "wait",
968
- "text",
969
- "move",
970
- "help",
971
- "not-allowed",
972
- "none",
973
- "context-menu",
974
- "progress",
975
- "cell",
976
- "crosshair",
977
- "vertical-text",
978
- "alias",
979
- "copy",
980
- "no-drop",
981
- "grab",
982
- "grabbing",
983
- "all-scroll",
984
- "col-resize",
985
- "row-resize",
986
- "n-resize",
987
- "e-resize",
988
- "s-resize",
989
- "w-resize",
990
- "ne-resize",
991
- "nw-resize",
992
- "se-resize",
993
- "sw-resize",
994
- "ew-resize",
995
- "ns-resize",
996
- "nesw-resize",
997
- "nwse-resize",
998
- "zoom-in",
999
- "zoom-out",
1000
- L
1001
- ] }],
1002
- "caret-color": [{ caret: [e] }],
1003
- "pointer-events": [{ "pointer-events": ["none", "auto"] }],
1004
- resize: [{ resize: [
1005
- "none",
1006
- "y",
1007
- "x",
1008
- ""
1009
- ] }],
1010
- "scroll-behavior": [{ scroll: ["auto", "smooth"] }],
1011
- "scroll-m": [{ "scroll-m": k() }],
1012
- "scroll-mx": [{ "scroll-mx": k() }],
1013
- "scroll-my": [{ "scroll-my": k() }],
1014
- "scroll-ms": [{ "scroll-ms": k() }],
1015
- "scroll-me": [{ "scroll-me": k() }],
1016
- "scroll-mt": [{ "scroll-mt": k() }],
1017
- "scroll-mr": [{ "scroll-mr": k() }],
1018
- "scroll-mb": [{ "scroll-mb": k() }],
1019
- "scroll-ml": [{ "scroll-ml": k() }],
1020
- "scroll-p": [{ "scroll-p": k() }],
1021
- "scroll-px": [{ "scroll-px": k() }],
1022
- "scroll-py": [{ "scroll-py": k() }],
1023
- "scroll-ps": [{ "scroll-ps": k() }],
1024
- "scroll-pe": [{ "scroll-pe": k() }],
1025
- "scroll-pt": [{ "scroll-pt": k() }],
1026
- "scroll-pr": [{ "scroll-pr": k() }],
1027
- "scroll-pb": [{ "scroll-pb": k() }],
1028
- "scroll-pl": [{ "scroll-pl": k() }],
1029
- "snap-align": [{ snap: [
1030
- "start",
1031
- "end",
1032
- "center",
1033
- "align-none"
1034
- ] }],
1035
- "snap-stop": [{ snap: ["normal", "always"] }],
1036
- "snap-type": [{ snap: [
1037
- "none",
1038
- "x",
1039
- "y",
1040
- "both"
1041
- ] }],
1042
- "snap-strictness": [{ snap: ["mandatory", "proximity"] }],
1043
- touch: [{ touch: [
1044
- "auto",
1045
- "none",
1046
- "manipulation"
1047
- ] }],
1048
- "touch-x": [{ "touch-pan": [
1049
- "x",
1050
- "left",
1051
- "right"
1052
- ] }],
1053
- "touch-y": [{ "touch-pan": [
1054
- "y",
1055
- "up",
1056
- "down"
1057
- ] }],
1058
- "touch-pz": ["touch-pinch-zoom"],
1059
- select: [{ select: [
1060
- "none",
1061
- "text",
1062
- "all",
1063
- "auto"
1064
- ] }],
1065
- "will-change": [{ "will-change": [
1066
- "auto",
1067
- "scroll",
1068
- "contents",
1069
- "transform",
1070
- L
1071
- ] }],
1072
- fill: [{ fill: [e, "none"] }],
1073
- "stroke-w": [{ stroke: [
1074
- j,
1075
- M,
1076
- P
1077
- ] }],
1078
- stroke: [{ stroke: [e, "none"] }],
1079
- sr: ["sr-only", "not-sr-only"],
1080
- "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
1081
- },
1082
- conflictingClassGroups: {
1083
- overflow: ["overflow-x", "overflow-y"],
1084
- overscroll: ["overscroll-x", "overscroll-y"],
1085
- inset: [
1086
- "inset-x",
1087
- "inset-y",
1088
- "start",
1089
- "end",
1090
- "top",
1091
- "right",
1092
- "bottom",
1093
- "left"
1094
- ],
1095
- "inset-x": ["right", "left"],
1096
- "inset-y": ["top", "bottom"],
1097
- flex: [
1098
- "basis",
1099
- "grow",
1100
- "shrink"
1101
- ],
1102
- gap: ["gap-x", "gap-y"],
1103
- p: [
1104
- "px",
1105
- "py",
1106
- "ps",
1107
- "pe",
1108
- "pt",
1109
- "pr",
1110
- "pb",
1111
- "pl"
1112
- ],
1113
- px: ["pr", "pl"],
1114
- py: ["pt", "pb"],
1115
- m: [
1116
- "mx",
1117
- "my",
1118
- "ms",
1119
- "me",
1120
- "mt",
1121
- "mr",
1122
- "mb",
1123
- "ml"
1124
- ],
1125
- mx: ["mr", "ml"],
1126
- my: ["mt", "mb"],
1127
- size: ["w", "h"],
1128
- "font-size": ["leading"],
1129
- "fvn-normal": [
1130
- "fvn-ordinal",
1131
- "fvn-slashed-zero",
1132
- "fvn-figure",
1133
- "fvn-spacing",
1134
- "fvn-fraction"
1135
- ],
1136
- "fvn-ordinal": ["fvn-normal"],
1137
- "fvn-slashed-zero": ["fvn-normal"],
1138
- "fvn-figure": ["fvn-normal"],
1139
- "fvn-spacing": ["fvn-normal"],
1140
- "fvn-fraction": ["fvn-normal"],
1141
- "line-clamp": ["display", "overflow"],
1142
- rounded: [
1143
- "rounded-s",
1144
- "rounded-e",
1145
- "rounded-t",
1146
- "rounded-r",
1147
- "rounded-b",
1148
- "rounded-l",
1149
- "rounded-ss",
1150
- "rounded-se",
1151
- "rounded-ee",
1152
- "rounded-es",
1153
- "rounded-tl",
1154
- "rounded-tr",
1155
- "rounded-br",
1156
- "rounded-bl"
1157
- ],
1158
- "rounded-s": ["rounded-ss", "rounded-es"],
1159
- "rounded-e": ["rounded-se", "rounded-ee"],
1160
- "rounded-t": ["rounded-tl", "rounded-tr"],
1161
- "rounded-r": ["rounded-tr", "rounded-br"],
1162
- "rounded-b": ["rounded-br", "rounded-bl"],
1163
- "rounded-l": ["rounded-tl", "rounded-bl"],
1164
- "border-spacing": ["border-spacing-x", "border-spacing-y"],
1165
- "border-w": [
1166
- "border-w-s",
1167
- "border-w-e",
1168
- "border-w-t",
1169
- "border-w-r",
1170
- "border-w-b",
1171
- "border-w-l"
1172
- ],
1173
- "border-w-x": ["border-w-r", "border-w-l"],
1174
- "border-w-y": ["border-w-t", "border-w-b"],
1175
- "border-color": [
1176
- "border-color-s",
1177
- "border-color-e",
1178
- "border-color-t",
1179
- "border-color-r",
1180
- "border-color-b",
1181
- "border-color-l"
1182
- ],
1183
- "border-color-x": ["border-color-r", "border-color-l"],
1184
- "border-color-y": ["border-color-t", "border-color-b"],
1185
- "scroll-m": [
1186
- "scroll-mx",
1187
- "scroll-my",
1188
- "scroll-ms",
1189
- "scroll-me",
1190
- "scroll-mt",
1191
- "scroll-mr",
1192
- "scroll-mb",
1193
- "scroll-ml"
1194
- ],
1195
- "scroll-mx": ["scroll-mr", "scroll-ml"],
1196
- "scroll-my": ["scroll-mt", "scroll-mb"],
1197
- "scroll-p": [
1198
- "scroll-px",
1199
- "scroll-py",
1200
- "scroll-ps",
1201
- "scroll-pe",
1202
- "scroll-pt",
1203
- "scroll-pr",
1204
- "scroll-pb",
1205
- "scroll-pl"
1206
- ],
1207
- "scroll-px": ["scroll-pr", "scroll-pl"],
1208
- "scroll-py": ["scroll-pt", "scroll-pb"],
1209
- touch: [
1210
- "touch-x",
1211
- "touch-y",
1212
- "touch-pz"
1213
- ],
1214
- "touch-x": ["touch"],
1215
- "touch-y": ["touch"],
1216
- "touch-pz": ["touch"]
1217
- },
1218
- conflictingClassGroupModifiers: { "font-size": ["leading"] }
1219
- };
1220
- }), Q = e({
3
+ import { tv as t } from "tailwind-variants";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ //#region src/Typography.tsx
6
+ var r = t({
1221
7
  base: "my-0",
1222
8
  variants: {
1223
9
  variant: {
@@ -1271,7 +57,7 @@ var S = (e) => {
1271
57
  truncate: { true: "truncate" },
1272
58
  balance: { true: "text-balance" }
1273
59
  }
1274
- }), $ = [
60
+ }), i = [
1275
61
  "h1",
1276
62
  "h2",
1277
63
  "h3",
@@ -1280,47 +66,50 @@ var S = (e) => {
1280
66
  "bonprix-h2",
1281
67
  "bonprix-h3",
1282
68
  "bonprix-h4"
1283
- ], ee = ({ children: e, variant: n = "body1", component: r = "p", bold: i = !1, strikeThrough: a = !1, color: o = "on-bg-high", align: s = "left", truncate: c = !1, className: l = "", id: u }) => /* @__PURE__ */ t(r ?? {
1284
- h1: "h1",
1285
- h2: "h2",
1286
- h3: "h3",
1287
- h4: "h4",
1288
- h5: "h5",
1289
- h6: "h6",
1290
- "bonprix-h1": "h1",
1291
- "bonprix-h2": "h2",
1292
- "bonprix-h3": "h3",
1293
- "bonprix-h4": "h4",
1294
- "bonprix-h5": "h5",
1295
- "bonprix-h6": "h6",
1296
- subtitle1: "h6",
1297
- subtitle2: "h6",
1298
- body1: "p",
1299
- "body1-bold": "p",
1300
- body2: "p",
1301
- "body2-bold": "p",
1302
- caption: "span",
1303
- overline: "span"
1304
- }[n], {
1305
- className: Z(Q({
1306
- variant: n,
1307
- bold: i,
1308
- strikeThrough: a,
1309
- color: o,
1310
- align: s,
1311
- truncate: c,
1312
- balance: $.includes(n)
1313
- }), l),
1314
- "data-bpds": "typography",
1315
- "data-bpds-variant": n,
1316
- "data-bpds-color": o,
1317
- "data-bpds-align": s,
1318
- "data-bpds-bold": i,
1319
- "data-bpds-strike-through": a,
1320
- "data-bpds-truncate": c,
1321
- id: u,
1322
- children: e
1323
- }), te = [
69
+ ], a = ({ children: t, variant: a = "body1", component: o = "p", bold: s = !1, strikeThrough: c = !1, color: l = "on-bg-high", align: u = "left", truncate: d = !1, className: f = "", id: p }) => {
70
+ let m = o ?? {
71
+ h1: "h1",
72
+ h2: "h2",
73
+ h3: "h3",
74
+ h4: "h4",
75
+ h5: "h5",
76
+ h6: "h6",
77
+ "bonprix-h1": "h1",
78
+ "bonprix-h2": "h2",
79
+ "bonprix-h3": "h3",
80
+ "bonprix-h4": "h4",
81
+ "bonprix-h5": "h5",
82
+ "bonprix-h6": "h6",
83
+ subtitle1: "h6",
84
+ subtitle2: "h6",
85
+ body1: "p",
86
+ "body1-bold": "p",
87
+ body2: "p",
88
+ "body2-bold": "p",
89
+ caption: "span",
90
+ overline: "span"
91
+ }[a];
92
+ return /* @__PURE__ */ n(m, {
93
+ className: e(r({
94
+ variant: a,
95
+ bold: s,
96
+ strikeThrough: c,
97
+ color: l,
98
+ align: u,
99
+ truncate: d,
100
+ balance: i.includes(a)
101
+ }), f),
102
+ "data-bpds": "typography",
103
+ "data-bpds-variant": a,
104
+ "data-bpds-color": l,
105
+ "data-bpds-align": u,
106
+ "data-bpds-bold": s,
107
+ "data-bpds-strike-through": c,
108
+ "data-bpds-truncate": d,
109
+ id: p,
110
+ children: t
111
+ });
112
+ }, o = [
1324
113
  "h1",
1325
114
  "h2",
1326
115
  "h3",
@@ -1343,6 +132,6 @@ var S = (e) => {
1343
132
  "overline"
1344
133
  ];
1345
134
  //#endregion
1346
- export { ee as default, te as typographyVariants };
135
+ export { a as default, o as typographyVariants };
1347
136
 
1348
137
  //# sourceMappingURL=index.js.map