componenteszw-package 1.0.7 → 1.0.10

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