componenteszw-package 1.0.6 → 1.0.9

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