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