componentables 0.1.14 → 0.1.15
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/components/Login/Login.d.ts.map +1 -1
- package/dist/components/Login/types.d.ts +1 -0
- package/dist/components/Login/types.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +791 -788
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as x, jsx as s, Fragment as Ae } from "react/jsx-runtime";
|
|
2
|
+
import B, { useMemo as Ie, useEffect as H, createContext as je, useContext as Oe, useState as $, useCallback as ve, useRef as ce } from "react";
|
|
3
3
|
import { Oval as Te } from "react-loader-spinner";
|
|
4
4
|
import { createPortal as $e } from "react-dom";
|
|
5
5
|
import { toast as re } from "react-toastify";
|
|
@@ -7,13 +7,13 @@ function we(e) {
|
|
|
7
7
|
var r, t, o = "";
|
|
8
8
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
9
9
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
10
|
-
var
|
|
11
|
-
for (r = 0; r <
|
|
10
|
+
var a = e.length;
|
|
11
|
+
for (r = 0; r < a; r++) e[r] && (t = we(e[r])) && (o && (o += " "), o += t);
|
|
12
12
|
} else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
13
13
|
return o;
|
|
14
14
|
}
|
|
15
15
|
function Fe() {
|
|
16
|
-
for (var e, r, t = 0, o = "",
|
|
16
|
+
for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = we(e)) && (o && (o += " "), o += r);
|
|
17
17
|
return o;
|
|
18
18
|
}
|
|
19
19
|
const ue = "-", Re = (e) => {
|
|
@@ -34,15 +34,15 @@ const ue = "-", Re = (e) => {
|
|
|
34
34
|
}, ke = (e, r) => {
|
|
35
35
|
if (e.length === 0)
|
|
36
36
|
return r.classGroupId;
|
|
37
|
-
const t = e[0], o = r.nextPart.get(t),
|
|
38
|
-
if (
|
|
39
|
-
return
|
|
37
|
+
const t = e[0], o = r.nextPart.get(t), a = o ? ke(e.slice(1), o) : void 0;
|
|
38
|
+
if (a)
|
|
39
|
+
return a;
|
|
40
40
|
if (r.validators.length === 0)
|
|
41
41
|
return;
|
|
42
|
-
const
|
|
42
|
+
const l = e.join(ue);
|
|
43
43
|
return r.validators.find(({
|
|
44
44
|
validator: i
|
|
45
|
-
}) => i(
|
|
45
|
+
}) => i(l))?.classGroupId;
|
|
46
46
|
}, pe = /^\[(.+)\]$/, _e = (e) => {
|
|
47
47
|
if (pe.test(e)) {
|
|
48
48
|
const r = pe.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
|
|
@@ -57,29 +57,29 @@ const ue = "-", Re = (e) => {
|
|
|
57
57
|
nextPart: /* @__PURE__ */ new Map(),
|
|
58
58
|
validators: []
|
|
59
59
|
};
|
|
60
|
-
return Ge(Object.entries(e.classGroups), t).forEach(([
|
|
61
|
-
de(i, o,
|
|
60
|
+
return Ge(Object.entries(e.classGroups), t).forEach(([l, i]) => {
|
|
61
|
+
de(i, o, l, r);
|
|
62
62
|
}), o;
|
|
63
63
|
}, de = (e, r, t, o) => {
|
|
64
|
-
e.forEach((
|
|
65
|
-
if (typeof
|
|
66
|
-
const
|
|
67
|
-
|
|
64
|
+
e.forEach((a) => {
|
|
65
|
+
if (typeof a == "string") {
|
|
66
|
+
const l = a === "" ? r : me(r, a);
|
|
67
|
+
l.classGroupId = t;
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
if (typeof
|
|
71
|
-
if (Be(
|
|
72
|
-
de(
|
|
70
|
+
if (typeof a == "function") {
|
|
71
|
+
if (Be(a)) {
|
|
72
|
+
de(a(o), r, t, o);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
r.validators.push({
|
|
76
|
-
validator:
|
|
76
|
+
validator: a,
|
|
77
77
|
classGroupId: t
|
|
78
78
|
});
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
Object.entries(
|
|
82
|
-
de(i, me(r,
|
|
81
|
+
Object.entries(a).forEach(([l, i]) => {
|
|
82
|
+
de(i, me(r, l), t, o);
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
}, me = (e, r) => {
|
|
@@ -91,8 +91,8 @@ const ue = "-", Re = (e) => {
|
|
|
91
91
|
}), t = t.nextPart.get(o);
|
|
92
92
|
}), t;
|
|
93
93
|
}, Be = (e) => e.isThemeGetter, Ge = (e, r) => r ? e.map(([t, o]) => {
|
|
94
|
-
const
|
|
95
|
-
return [t,
|
|
94
|
+
const a = o.map((l) => typeof l == "string" ? r + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([i, n]) => [r + i, n])) : l);
|
|
95
|
+
return [t, a];
|
|
96
96
|
}) : e, We = (e) => {
|
|
97
97
|
if (e < 1)
|
|
98
98
|
return {
|
|
@@ -102,48 +102,48 @@ const ue = "-", Re = (e) => {
|
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
105
|
-
const
|
|
106
|
-
t.set(
|
|
105
|
+
const a = (l, i) => {
|
|
106
|
+
t.set(l, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
|
|
107
107
|
};
|
|
108
108
|
return {
|
|
109
|
-
get(
|
|
110
|
-
let i = t.get(
|
|
109
|
+
get(l) {
|
|
110
|
+
let i = t.get(l);
|
|
111
111
|
if (i !== void 0)
|
|
112
112
|
return i;
|
|
113
|
-
if ((i = o.get(
|
|
114
|
-
return
|
|
113
|
+
if ((i = o.get(l)) !== void 0)
|
|
114
|
+
return a(l, i), i;
|
|
115
115
|
},
|
|
116
|
-
set(
|
|
117
|
-
t.has(
|
|
116
|
+
set(l, i) {
|
|
117
|
+
t.has(l) ? t.set(l, i) : a(l, i);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
}, Ce = "!", He = (e) => {
|
|
121
121
|
const {
|
|
122
122
|
separator: r,
|
|
123
123
|
experimentalParseClassName: t
|
|
124
|
-
} = e, o = r.length === 1,
|
|
124
|
+
} = e, o = r.length === 1, a = r[0], l = r.length, i = (n) => {
|
|
125
125
|
const c = [];
|
|
126
|
-
let d = 0,
|
|
126
|
+
let d = 0, m = 0, k;
|
|
127
127
|
for (let u = 0; u < n.length; u++) {
|
|
128
|
-
let
|
|
128
|
+
let w = n[u];
|
|
129
129
|
if (d === 0) {
|
|
130
|
-
if (
|
|
131
|
-
c.push(n.slice(
|
|
130
|
+
if (w === a && (o || n.slice(u, u + l) === r)) {
|
|
131
|
+
c.push(n.slice(m, u)), m = u + l;
|
|
132
132
|
continue;
|
|
133
133
|
}
|
|
134
|
-
if (
|
|
135
|
-
|
|
134
|
+
if (w === "/") {
|
|
135
|
+
k = u;
|
|
136
136
|
continue;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
w === "[" ? d++ : w === "]" && d--;
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const f = c.length === 0 ? n : n.substring(m), v = f.startsWith(Ce), b = v ? f.substring(1) : f, y = k && k > m ? k - m : void 0;
|
|
142
142
|
return {
|
|
143
143
|
modifiers: c,
|
|
144
144
|
hasImportantModifier: v,
|
|
145
|
-
baseClassName:
|
|
146
|
-
maybePostfixModifierPosition:
|
|
145
|
+
baseClassName: b,
|
|
146
|
+
maybePostfixModifierPosition: y
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
return t ? (n) => t({
|
|
@@ -166,36 +166,36 @@ const ue = "-", Re = (e) => {
|
|
|
166
166
|
const {
|
|
167
167
|
parseClassName: t,
|
|
168
168
|
getClassGroupId: o,
|
|
169
|
-
getConflictingClassGroupIds:
|
|
170
|
-
} = r,
|
|
169
|
+
getConflictingClassGroupIds: a
|
|
170
|
+
} = r, l = [], i = e.trim().split(Je);
|
|
171
171
|
let n = "";
|
|
172
172
|
for (let c = i.length - 1; c >= 0; c -= 1) {
|
|
173
173
|
const d = i[c], {
|
|
174
|
-
modifiers:
|
|
175
|
-
hasImportantModifier:
|
|
176
|
-
baseClassName:
|
|
174
|
+
modifiers: m,
|
|
175
|
+
hasImportantModifier: k,
|
|
176
|
+
baseClassName: f,
|
|
177
177
|
maybePostfixModifierPosition: v
|
|
178
178
|
} = t(d);
|
|
179
|
-
let
|
|
180
|
-
if (!
|
|
181
|
-
if (!
|
|
179
|
+
let b = !!v, y = o(b ? f.substring(0, v) : f);
|
|
180
|
+
if (!y) {
|
|
181
|
+
if (!b) {
|
|
182
182
|
n = d + (n.length > 0 ? " " + n : n);
|
|
183
183
|
continue;
|
|
184
184
|
}
|
|
185
|
-
if (
|
|
185
|
+
if (y = o(f), !y) {
|
|
186
186
|
n = d + (n.length > 0 ? " " + n : n);
|
|
187
187
|
continue;
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
b = !1;
|
|
190
190
|
}
|
|
191
|
-
const u = Ue(
|
|
192
|
-
if (
|
|
191
|
+
const u = Ue(m).join(":"), w = k ? u + Ce : u, h = w + y;
|
|
192
|
+
if (l.includes(h))
|
|
193
193
|
continue;
|
|
194
|
-
|
|
195
|
-
const L =
|
|
194
|
+
l.push(h);
|
|
195
|
+
const L = a(y, b);
|
|
196
196
|
for (let P = 0; P < L.length; ++P) {
|
|
197
|
-
const
|
|
198
|
-
|
|
197
|
+
const z = L[P];
|
|
198
|
+
l.push(w + z);
|
|
199
199
|
}
|
|
200
200
|
n = d + (n.length > 0 ? " " + n : n);
|
|
201
201
|
}
|
|
@@ -216,26 +216,26 @@ const Ne = (e) => {
|
|
|
216
216
|
return t;
|
|
217
217
|
};
|
|
218
218
|
function Xe(e, ...r) {
|
|
219
|
-
let t, o,
|
|
219
|
+
let t, o, a, l = i;
|
|
220
220
|
function i(c) {
|
|
221
|
-
const d = r.reduce((
|
|
222
|
-
return t = Ye(d), o = t.cache.get,
|
|
221
|
+
const d = r.reduce((m, k) => k(m), e());
|
|
222
|
+
return t = Ye(d), o = t.cache.get, a = t.cache.set, l = n, n(c);
|
|
223
223
|
}
|
|
224
224
|
function n(c) {
|
|
225
225
|
const d = o(c);
|
|
226
226
|
if (d)
|
|
227
227
|
return d;
|
|
228
|
-
const
|
|
229
|
-
return
|
|
228
|
+
const m = Ke(c, t);
|
|
229
|
+
return a(c, m), m;
|
|
230
230
|
}
|
|
231
231
|
return function() {
|
|
232
|
-
return
|
|
232
|
+
return l(Ze.apply(null, arguments));
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const I = (e) => {
|
|
236
236
|
const r = (t) => t[e] || [];
|
|
237
237
|
return r.isThemeGetter = !0, r;
|
|
238
|
-
}, Me = /^\[(?:([a-z-]+):)?(.+)\]$/i, Qe = /^\d+\/\d+$/, qe = /* @__PURE__ */ new Set(["px", "full", "screen"]), er = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rr = /\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$/, tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Q(e) || qe.has(e) || Qe.test(e), U = (e) => ee(e, "length", pr), Q = (e) => !!e && !Number.isNaN(Number(e)), se = (e) => ee(e, "number", Q), te = (e) => !!e && Number.isInteger(Number(e)), ar = (e) => e.endsWith("%") && Q(e.slice(0, -1)),
|
|
238
|
+
}, Me = /^\[(?:([a-z-]+):)?(.+)\]$/i, Qe = /^\d+\/\d+$/, qe = /* @__PURE__ */ new Set(["px", "full", "screen"]), er = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rr = /\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$/, tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Q(e) || qe.has(e) || Qe.test(e), U = (e) => ee(e, "length", pr), Q = (e) => !!e && !Number.isNaN(Number(e)), se = (e) => ee(e, "number", Q), te = (e) => !!e && Number.isInteger(Number(e)), ar = (e) => e.endsWith("%") && Q(e.slice(0, -1)), N = (e) => Me.test(e), Y = (e) => er.test(e), sr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lr = (e) => ee(e, sr, ze), ir = (e) => ee(e, "position", ze), cr = /* @__PURE__ */ new Set(["image", "url"]), dr = (e) => ee(e, cr, br), ur = (e) => ee(e, "", mr), oe = () => !0, ee = (e, r, t) => {
|
|
239
239
|
const o = Me.exec(e);
|
|
240
240
|
return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
|
|
241
241
|
}, pr = (e) => (
|
|
@@ -244,34 +244,34 @@ const A = (e) => {
|
|
|
244
244
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
245
245
|
rr.test(e) && !tr.test(e)
|
|
246
246
|
), ze = () => !1, mr = (e) => or.test(e), br = (e) => nr.test(e), gr = () => {
|
|
247
|
-
const e =
|
|
247
|
+
const e = I("colors"), r = I("spacing"), t = I("blur"), o = I("brightness"), a = I("borderColor"), l = I("borderRadius"), i = I("borderSpacing"), n = I("borderWidth"), c = I("contrast"), d = I("grayscale"), m = I("hueRotate"), k = I("invert"), f = I("gap"), v = I("gradientColorStops"), b = I("gradientColorStopPositions"), y = I("inset"), u = I("margin"), w = I("opacity"), h = I("padding"), L = I("saturate"), P = I("scale"), z = I("sepia"), E = I("skew"), g = I("space"), j = I("translate"), F = () => ["auto", "contain", "none"], G = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", N, r], S = () => [N, r], M = () => ["", W, U], A = () => ["auto", Q, N], V = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], C = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", N], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [Q, N];
|
|
248
248
|
return {
|
|
249
249
|
cacheSize: 500,
|
|
250
250
|
separator: ":",
|
|
251
251
|
theme: {
|
|
252
252
|
colors: [oe],
|
|
253
253
|
spacing: [W, U],
|
|
254
|
-
blur: ["none", "", Y,
|
|
255
|
-
brightness:
|
|
254
|
+
blur: ["none", "", Y, N],
|
|
255
|
+
brightness: _(),
|
|
256
256
|
borderColor: [e],
|
|
257
|
-
borderRadius: ["none", "", "full", Y,
|
|
257
|
+
borderRadius: ["none", "", "full", Y, N],
|
|
258
258
|
borderSpacing: S(),
|
|
259
|
-
borderWidth:
|
|
260
|
-
contrast:
|
|
259
|
+
borderWidth: M(),
|
|
260
|
+
contrast: _(),
|
|
261
261
|
grayscale: D(),
|
|
262
|
-
hueRotate:
|
|
262
|
+
hueRotate: _(),
|
|
263
263
|
invert: D(),
|
|
264
264
|
gap: S(),
|
|
265
265
|
gradientColorStops: [e],
|
|
266
266
|
gradientColorStopPositions: [ar, U],
|
|
267
267
|
inset: K(),
|
|
268
268
|
margin: K(),
|
|
269
|
-
opacity:
|
|
269
|
+
opacity: _(),
|
|
270
270
|
padding: S(),
|
|
271
|
-
saturate:
|
|
272
|
-
scale:
|
|
271
|
+
saturate: _(),
|
|
272
|
+
scale: _(),
|
|
273
273
|
sepia: D(),
|
|
274
|
-
skew:
|
|
274
|
+
skew: _(),
|
|
275
275
|
space: S(),
|
|
276
276
|
translate: S()
|
|
277
277
|
},
|
|
@@ -282,7 +282,7 @@ const A = (e) => {
|
|
|
282
282
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
283
283
|
*/
|
|
284
284
|
aspect: [{
|
|
285
|
-
aspect: ["auto", "square", "video",
|
|
285
|
+
aspect: ["auto", "square", "video", N]
|
|
286
286
|
}],
|
|
287
287
|
/**
|
|
288
288
|
* Container
|
|
@@ -301,14 +301,14 @@ const A = (e) => {
|
|
|
301
301
|
* @see https://tailwindcss.com/docs/break-after
|
|
302
302
|
*/
|
|
303
303
|
"break-after": [{
|
|
304
|
-
"break-after":
|
|
304
|
+
"break-after": R()
|
|
305
305
|
}],
|
|
306
306
|
/**
|
|
307
307
|
* Break Before
|
|
308
308
|
* @see https://tailwindcss.com/docs/break-before
|
|
309
309
|
*/
|
|
310
310
|
"break-before": [{
|
|
311
|
-
"break-before":
|
|
311
|
+
"break-before": R()
|
|
312
312
|
}],
|
|
313
313
|
/**
|
|
314
314
|
* Break Inside
|
|
@@ -367,7 +367,7 @@ const A = (e) => {
|
|
|
367
367
|
* @see https://tailwindcss.com/docs/object-position
|
|
368
368
|
*/
|
|
369
369
|
"object-position": [{
|
|
370
|
-
object: [...
|
|
370
|
+
object: [...V(), N]
|
|
371
371
|
}],
|
|
372
372
|
/**
|
|
373
373
|
* Overflow
|
|
@@ -395,21 +395,21 @@ const A = (e) => {
|
|
|
395
395
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
396
396
|
*/
|
|
397
397
|
overscroll: [{
|
|
398
|
-
overscroll:
|
|
398
|
+
overscroll: F()
|
|
399
399
|
}],
|
|
400
400
|
/**
|
|
401
401
|
* Overscroll Behavior X
|
|
402
402
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
403
403
|
*/
|
|
404
404
|
"overscroll-x": [{
|
|
405
|
-
"overscroll-x":
|
|
405
|
+
"overscroll-x": F()
|
|
406
406
|
}],
|
|
407
407
|
/**
|
|
408
408
|
* Overscroll Behavior Y
|
|
409
409
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
410
410
|
*/
|
|
411
411
|
"overscroll-y": [{
|
|
412
|
-
"overscroll-y":
|
|
412
|
+
"overscroll-y": F()
|
|
413
413
|
}],
|
|
414
414
|
/**
|
|
415
415
|
* Position
|
|
@@ -421,63 +421,63 @@ const A = (e) => {
|
|
|
421
421
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
422
422
|
*/
|
|
423
423
|
inset: [{
|
|
424
|
-
inset: [
|
|
424
|
+
inset: [y]
|
|
425
425
|
}],
|
|
426
426
|
/**
|
|
427
427
|
* Right / Left
|
|
428
428
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
429
429
|
*/
|
|
430
430
|
"inset-x": [{
|
|
431
|
-
"inset-x": [
|
|
431
|
+
"inset-x": [y]
|
|
432
432
|
}],
|
|
433
433
|
/**
|
|
434
434
|
* Top / Bottom
|
|
435
435
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
436
436
|
*/
|
|
437
437
|
"inset-y": [{
|
|
438
|
-
"inset-y": [
|
|
438
|
+
"inset-y": [y]
|
|
439
439
|
}],
|
|
440
440
|
/**
|
|
441
441
|
* Start
|
|
442
442
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
443
443
|
*/
|
|
444
444
|
start: [{
|
|
445
|
-
start: [
|
|
445
|
+
start: [y]
|
|
446
446
|
}],
|
|
447
447
|
/**
|
|
448
448
|
* End
|
|
449
449
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
450
450
|
*/
|
|
451
451
|
end: [{
|
|
452
|
-
end: [
|
|
452
|
+
end: [y]
|
|
453
453
|
}],
|
|
454
454
|
/**
|
|
455
455
|
* Top
|
|
456
456
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
457
457
|
*/
|
|
458
458
|
top: [{
|
|
459
|
-
top: [
|
|
459
|
+
top: [y]
|
|
460
460
|
}],
|
|
461
461
|
/**
|
|
462
462
|
* Right
|
|
463
463
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
464
464
|
*/
|
|
465
465
|
right: [{
|
|
466
|
-
right: [
|
|
466
|
+
right: [y]
|
|
467
467
|
}],
|
|
468
468
|
/**
|
|
469
469
|
* Bottom
|
|
470
470
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
471
471
|
*/
|
|
472
472
|
bottom: [{
|
|
473
|
-
bottom: [
|
|
473
|
+
bottom: [y]
|
|
474
474
|
}],
|
|
475
475
|
/**
|
|
476
476
|
* Left
|
|
477
477
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
478
478
|
*/
|
|
479
479
|
left: [{
|
|
480
|
-
left: [
|
|
480
|
+
left: [y]
|
|
481
481
|
}],
|
|
482
482
|
/**
|
|
483
483
|
* Visibility
|
|
@@ -489,7 +489,7 @@ const A = (e) => {
|
|
|
489
489
|
* @see https://tailwindcss.com/docs/z-index
|
|
490
490
|
*/
|
|
491
491
|
z: [{
|
|
492
|
-
z: ["auto", te,
|
|
492
|
+
z: ["auto", te, N]
|
|
493
493
|
}],
|
|
494
494
|
// Flexbox and Grid
|
|
495
495
|
/**
|
|
@@ -518,7 +518,7 @@ const A = (e) => {
|
|
|
518
518
|
* @see https://tailwindcss.com/docs/flex
|
|
519
519
|
*/
|
|
520
520
|
flex: [{
|
|
521
|
-
flex: ["1", "auto", "initial", "none",
|
|
521
|
+
flex: ["1", "auto", "initial", "none", N]
|
|
522
522
|
}],
|
|
523
523
|
/**
|
|
524
524
|
* Flex Grow
|
|
@@ -539,7 +539,7 @@ const A = (e) => {
|
|
|
539
539
|
* @see https://tailwindcss.com/docs/order
|
|
540
540
|
*/
|
|
541
541
|
order: [{
|
|
542
|
-
order: ["first", "last", "none", te,
|
|
542
|
+
order: ["first", "last", "none", te, N]
|
|
543
543
|
}],
|
|
544
544
|
/**
|
|
545
545
|
* Grid Template Columns
|
|
@@ -554,22 +554,22 @@ const A = (e) => {
|
|
|
554
554
|
*/
|
|
555
555
|
"col-start-end": [{
|
|
556
556
|
col: ["auto", {
|
|
557
|
-
span: ["full", te,
|
|
558
|
-
},
|
|
557
|
+
span: ["full", te, N]
|
|
558
|
+
}, N]
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Grid Column Start
|
|
562
562
|
* @see https://tailwindcss.com/docs/grid-column
|
|
563
563
|
*/
|
|
564
564
|
"col-start": [{
|
|
565
|
-
"col-start":
|
|
565
|
+
"col-start": A()
|
|
566
566
|
}],
|
|
567
567
|
/**
|
|
568
568
|
* Grid Column End
|
|
569
569
|
* @see https://tailwindcss.com/docs/grid-column
|
|
570
570
|
*/
|
|
571
571
|
"col-end": [{
|
|
572
|
-
"col-end":
|
|
572
|
+
"col-end": A()
|
|
573
573
|
}],
|
|
574
574
|
/**
|
|
575
575
|
* Grid Template Rows
|
|
@@ -584,22 +584,22 @@ const A = (e) => {
|
|
|
584
584
|
*/
|
|
585
585
|
"row-start-end": [{
|
|
586
586
|
row: ["auto", {
|
|
587
|
-
span: [te,
|
|
588
|
-
},
|
|
587
|
+
span: [te, N]
|
|
588
|
+
}, N]
|
|
589
589
|
}],
|
|
590
590
|
/**
|
|
591
591
|
* Grid Row Start
|
|
592
592
|
* @see https://tailwindcss.com/docs/grid-row
|
|
593
593
|
*/
|
|
594
594
|
"row-start": [{
|
|
595
|
-
"row-start":
|
|
595
|
+
"row-start": A()
|
|
596
596
|
}],
|
|
597
597
|
/**
|
|
598
598
|
* Grid Row End
|
|
599
599
|
* @see https://tailwindcss.com/docs/grid-row
|
|
600
600
|
*/
|
|
601
601
|
"row-end": [{
|
|
602
|
-
"row-end":
|
|
602
|
+
"row-end": A()
|
|
603
603
|
}],
|
|
604
604
|
/**
|
|
605
605
|
* Grid Auto Flow
|
|
@@ -613,42 +613,42 @@ const A = (e) => {
|
|
|
613
613
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
614
614
|
*/
|
|
615
615
|
"auto-cols": [{
|
|
616
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
616
|
+
"auto-cols": ["auto", "min", "max", "fr", N]
|
|
617
617
|
}],
|
|
618
618
|
/**
|
|
619
619
|
* Grid Auto Rows
|
|
620
620
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
621
621
|
*/
|
|
622
622
|
"auto-rows": [{
|
|
623
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
623
|
+
"auto-rows": ["auto", "min", "max", "fr", N]
|
|
624
624
|
}],
|
|
625
625
|
/**
|
|
626
626
|
* Gap
|
|
627
627
|
* @see https://tailwindcss.com/docs/gap
|
|
628
628
|
*/
|
|
629
629
|
gap: [{
|
|
630
|
-
gap: [
|
|
630
|
+
gap: [f]
|
|
631
631
|
}],
|
|
632
632
|
/**
|
|
633
633
|
* Gap X
|
|
634
634
|
* @see https://tailwindcss.com/docs/gap
|
|
635
635
|
*/
|
|
636
636
|
"gap-x": [{
|
|
637
|
-
"gap-x": [
|
|
637
|
+
"gap-x": [f]
|
|
638
638
|
}],
|
|
639
639
|
/**
|
|
640
640
|
* Gap Y
|
|
641
641
|
* @see https://tailwindcss.com/docs/gap
|
|
642
642
|
*/
|
|
643
643
|
"gap-y": [{
|
|
644
|
-
"gap-y": [
|
|
644
|
+
"gap-y": [f]
|
|
645
645
|
}],
|
|
646
646
|
/**
|
|
647
647
|
* Justify Content
|
|
648
648
|
* @see https://tailwindcss.com/docs/justify-content
|
|
649
649
|
*/
|
|
650
650
|
"justify-content": [{
|
|
651
|
-
justify: ["normal", ...
|
|
651
|
+
justify: ["normal", ...C()]
|
|
652
652
|
}],
|
|
653
653
|
/**
|
|
654
654
|
* Justify Items
|
|
@@ -669,7 +669,7 @@ const A = (e) => {
|
|
|
669
669
|
* @see https://tailwindcss.com/docs/align-content
|
|
670
670
|
*/
|
|
671
671
|
"align-content": [{
|
|
672
|
-
content: ["normal", ...
|
|
672
|
+
content: ["normal", ...C(), "baseline"]
|
|
673
673
|
}],
|
|
674
674
|
/**
|
|
675
675
|
* Align Items
|
|
@@ -690,7 +690,7 @@ const A = (e) => {
|
|
|
690
690
|
* @see https://tailwindcss.com/docs/place-content
|
|
691
691
|
*/
|
|
692
692
|
"place-content": [{
|
|
693
|
-
"place-content": [...
|
|
693
|
+
"place-content": [...C(), "baseline"]
|
|
694
694
|
}],
|
|
695
695
|
/**
|
|
696
696
|
* Place Items
|
|
@@ -712,63 +712,63 @@ const A = (e) => {
|
|
|
712
712
|
* @see https://tailwindcss.com/docs/padding
|
|
713
713
|
*/
|
|
714
714
|
p: [{
|
|
715
|
-
p: [
|
|
715
|
+
p: [h]
|
|
716
716
|
}],
|
|
717
717
|
/**
|
|
718
718
|
* Padding X
|
|
719
719
|
* @see https://tailwindcss.com/docs/padding
|
|
720
720
|
*/
|
|
721
721
|
px: [{
|
|
722
|
-
px: [
|
|
722
|
+
px: [h]
|
|
723
723
|
}],
|
|
724
724
|
/**
|
|
725
725
|
* Padding Y
|
|
726
726
|
* @see https://tailwindcss.com/docs/padding
|
|
727
727
|
*/
|
|
728
728
|
py: [{
|
|
729
|
-
py: [
|
|
729
|
+
py: [h]
|
|
730
730
|
}],
|
|
731
731
|
/**
|
|
732
732
|
* Padding Start
|
|
733
733
|
* @see https://tailwindcss.com/docs/padding
|
|
734
734
|
*/
|
|
735
735
|
ps: [{
|
|
736
|
-
ps: [
|
|
736
|
+
ps: [h]
|
|
737
737
|
}],
|
|
738
738
|
/**
|
|
739
739
|
* Padding End
|
|
740
740
|
* @see https://tailwindcss.com/docs/padding
|
|
741
741
|
*/
|
|
742
742
|
pe: [{
|
|
743
|
-
pe: [
|
|
743
|
+
pe: [h]
|
|
744
744
|
}],
|
|
745
745
|
/**
|
|
746
746
|
* Padding Top
|
|
747
747
|
* @see https://tailwindcss.com/docs/padding
|
|
748
748
|
*/
|
|
749
749
|
pt: [{
|
|
750
|
-
pt: [
|
|
750
|
+
pt: [h]
|
|
751
751
|
}],
|
|
752
752
|
/**
|
|
753
753
|
* Padding Right
|
|
754
754
|
* @see https://tailwindcss.com/docs/padding
|
|
755
755
|
*/
|
|
756
756
|
pr: [{
|
|
757
|
-
pr: [
|
|
757
|
+
pr: [h]
|
|
758
758
|
}],
|
|
759
759
|
/**
|
|
760
760
|
* Padding Bottom
|
|
761
761
|
* @see https://tailwindcss.com/docs/padding
|
|
762
762
|
*/
|
|
763
763
|
pb: [{
|
|
764
|
-
pb: [
|
|
764
|
+
pb: [h]
|
|
765
765
|
}],
|
|
766
766
|
/**
|
|
767
767
|
* Padding Left
|
|
768
768
|
* @see https://tailwindcss.com/docs/padding
|
|
769
769
|
*/
|
|
770
770
|
pl: [{
|
|
771
|
-
pl: [
|
|
771
|
+
pl: [h]
|
|
772
772
|
}],
|
|
773
773
|
/**
|
|
774
774
|
* Margin
|
|
@@ -838,7 +838,7 @@ const A = (e) => {
|
|
|
838
838
|
* @see https://tailwindcss.com/docs/space
|
|
839
839
|
*/
|
|
840
840
|
"space-x": [{
|
|
841
|
-
"space-x": [
|
|
841
|
+
"space-x": [g]
|
|
842
842
|
}],
|
|
843
843
|
/**
|
|
844
844
|
* Space Between X Reverse
|
|
@@ -850,7 +850,7 @@ const A = (e) => {
|
|
|
850
850
|
* @see https://tailwindcss.com/docs/space
|
|
851
851
|
*/
|
|
852
852
|
"space-y": [{
|
|
853
|
-
"space-y": [
|
|
853
|
+
"space-y": [g]
|
|
854
854
|
}],
|
|
855
855
|
/**
|
|
856
856
|
* Space Between Y Reverse
|
|
@@ -863,21 +863,21 @@ const A = (e) => {
|
|
|
863
863
|
* @see https://tailwindcss.com/docs/width
|
|
864
864
|
*/
|
|
865
865
|
w: [{
|
|
866
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
866
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", N, r]
|
|
867
867
|
}],
|
|
868
868
|
/**
|
|
869
869
|
* Min-Width
|
|
870
870
|
* @see https://tailwindcss.com/docs/min-width
|
|
871
871
|
*/
|
|
872
872
|
"min-w": [{
|
|
873
|
-
"min-w": [
|
|
873
|
+
"min-w": [N, r, "min", "max", "fit"]
|
|
874
874
|
}],
|
|
875
875
|
/**
|
|
876
876
|
* Max-Width
|
|
877
877
|
* @see https://tailwindcss.com/docs/max-width
|
|
878
878
|
*/
|
|
879
879
|
"max-w": [{
|
|
880
|
-
"max-w": [
|
|
880
|
+
"max-w": [N, r, "none", "full", "min", "max", "fit", "prose", {
|
|
881
881
|
screen: [Y]
|
|
882
882
|
}, Y]
|
|
883
883
|
}],
|
|
@@ -886,28 +886,28 @@ const A = (e) => {
|
|
|
886
886
|
* @see https://tailwindcss.com/docs/height
|
|
887
887
|
*/
|
|
888
888
|
h: [{
|
|
889
|
-
h: [
|
|
889
|
+
h: [N, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
890
890
|
}],
|
|
891
891
|
/**
|
|
892
892
|
* Min-Height
|
|
893
893
|
* @see https://tailwindcss.com/docs/min-height
|
|
894
894
|
*/
|
|
895
895
|
"min-h": [{
|
|
896
|
-
"min-h": [
|
|
896
|
+
"min-h": [N, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
897
897
|
}],
|
|
898
898
|
/**
|
|
899
899
|
* Max-Height
|
|
900
900
|
* @see https://tailwindcss.com/docs/max-height
|
|
901
901
|
*/
|
|
902
902
|
"max-h": [{
|
|
903
|
-
"max-h": [
|
|
903
|
+
"max-h": [N, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
904
904
|
}],
|
|
905
905
|
/**
|
|
906
906
|
* Size
|
|
907
907
|
* @see https://tailwindcss.com/docs/size
|
|
908
908
|
*/
|
|
909
909
|
size: [{
|
|
910
|
-
size: [
|
|
910
|
+
size: [N, r, "auto", "min", "max", "fit"]
|
|
911
911
|
}],
|
|
912
912
|
// Typography
|
|
913
913
|
/**
|
|
@@ -976,7 +976,7 @@ const A = (e) => {
|
|
|
976
976
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
977
977
|
*/
|
|
978
978
|
tracking: [{
|
|
979
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
979
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", N]
|
|
980
980
|
}],
|
|
981
981
|
/**
|
|
982
982
|
* Line Clamp
|
|
@@ -990,21 +990,21 @@ const A = (e) => {
|
|
|
990
990
|
* @see https://tailwindcss.com/docs/line-height
|
|
991
991
|
*/
|
|
992
992
|
leading: [{
|
|
993
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", W,
|
|
993
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", W, N]
|
|
994
994
|
}],
|
|
995
995
|
/**
|
|
996
996
|
* List Style Image
|
|
997
997
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
998
998
|
*/
|
|
999
999
|
"list-image": [{
|
|
1000
|
-
"list-image": ["none",
|
|
1000
|
+
"list-image": ["none", N]
|
|
1001
1001
|
}],
|
|
1002
1002
|
/**
|
|
1003
1003
|
* List Style Type
|
|
1004
1004
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1005
1005
|
*/
|
|
1006
1006
|
"list-style-type": [{
|
|
1007
|
-
list: ["none", "disc", "decimal",
|
|
1007
|
+
list: ["none", "disc", "decimal", N]
|
|
1008
1008
|
}],
|
|
1009
1009
|
/**
|
|
1010
1010
|
* List Style Position
|
|
@@ -1026,7 +1026,7 @@ const A = (e) => {
|
|
|
1026
1026
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1027
1027
|
*/
|
|
1028
1028
|
"placeholder-opacity": [{
|
|
1029
|
-
"placeholder-opacity": [
|
|
1029
|
+
"placeholder-opacity": [w]
|
|
1030
1030
|
}],
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Text Alignment
|
|
@@ -1047,7 +1047,7 @@ const A = (e) => {
|
|
|
1047
1047
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1048
1048
|
*/
|
|
1049
1049
|
"text-opacity": [{
|
|
1050
|
-
"text-opacity": [
|
|
1050
|
+
"text-opacity": [w]
|
|
1051
1051
|
}],
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Text Decoration
|
|
@@ -1073,7 +1073,7 @@ const A = (e) => {
|
|
|
1073
1073
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1074
1074
|
*/
|
|
1075
1075
|
"underline-offset": [{
|
|
1076
|
-
"underline-offset": ["auto", W,
|
|
1076
|
+
"underline-offset": ["auto", W, N]
|
|
1077
1077
|
}],
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Text Decoration Color
|
|
@@ -1111,7 +1111,7 @@ const A = (e) => {
|
|
|
1111
1111
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1112
1112
|
*/
|
|
1113
1113
|
"vertical-align": [{
|
|
1114
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1114
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", N]
|
|
1115
1115
|
}],
|
|
1116
1116
|
/**
|
|
1117
1117
|
* Whitespace
|
|
@@ -1139,7 +1139,7 @@ const A = (e) => {
|
|
|
1139
1139
|
* @see https://tailwindcss.com/docs/content
|
|
1140
1140
|
*/
|
|
1141
1141
|
content: [{
|
|
1142
|
-
content: ["none",
|
|
1142
|
+
content: ["none", N]
|
|
1143
1143
|
}],
|
|
1144
1144
|
// Backgrounds
|
|
1145
1145
|
/**
|
|
@@ -1162,7 +1162,7 @@ const A = (e) => {
|
|
|
1162
1162
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1163
1163
|
*/
|
|
1164
1164
|
"bg-opacity": [{
|
|
1165
|
-
"bg-opacity": [
|
|
1165
|
+
"bg-opacity": [w]
|
|
1166
1166
|
}],
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Background Origin
|
|
@@ -1176,7 +1176,7 @@ const A = (e) => {
|
|
|
1176
1176
|
* @see https://tailwindcss.com/docs/background-position
|
|
1177
1177
|
*/
|
|
1178
1178
|
"bg-position": [{
|
|
1179
|
-
bg: [...
|
|
1179
|
+
bg: [...V(), ir]
|
|
1180
1180
|
}],
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Background Repeat
|
|
@@ -1215,21 +1215,21 @@ const A = (e) => {
|
|
|
1215
1215
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1216
1216
|
*/
|
|
1217
1217
|
"gradient-from-pos": [{
|
|
1218
|
-
from: [
|
|
1218
|
+
from: [b]
|
|
1219
1219
|
}],
|
|
1220
1220
|
/**
|
|
1221
1221
|
* Gradient Color Stops Via Position
|
|
1222
1222
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1223
1223
|
*/
|
|
1224
1224
|
"gradient-via-pos": [{
|
|
1225
|
-
via: [
|
|
1225
|
+
via: [b]
|
|
1226
1226
|
}],
|
|
1227
1227
|
/**
|
|
1228
1228
|
* Gradient Color Stops To Position
|
|
1229
1229
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1230
1230
|
*/
|
|
1231
1231
|
"gradient-to-pos": [{
|
|
1232
|
-
to: [
|
|
1232
|
+
to: [b]
|
|
1233
1233
|
}],
|
|
1234
1234
|
/**
|
|
1235
1235
|
* Gradient Color Stops From
|
|
@@ -1258,105 +1258,105 @@ const A = (e) => {
|
|
|
1258
1258
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1259
1259
|
*/
|
|
1260
1260
|
rounded: [{
|
|
1261
|
-
rounded: [
|
|
1261
|
+
rounded: [l]
|
|
1262
1262
|
}],
|
|
1263
1263
|
/**
|
|
1264
1264
|
* Border Radius Start
|
|
1265
1265
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1266
1266
|
*/
|
|
1267
1267
|
"rounded-s": [{
|
|
1268
|
-
"rounded-s": [
|
|
1268
|
+
"rounded-s": [l]
|
|
1269
1269
|
}],
|
|
1270
1270
|
/**
|
|
1271
1271
|
* Border Radius End
|
|
1272
1272
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1273
1273
|
*/
|
|
1274
1274
|
"rounded-e": [{
|
|
1275
|
-
"rounded-e": [
|
|
1275
|
+
"rounded-e": [l]
|
|
1276
1276
|
}],
|
|
1277
1277
|
/**
|
|
1278
1278
|
* Border Radius Top
|
|
1279
1279
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1280
1280
|
*/
|
|
1281
1281
|
"rounded-t": [{
|
|
1282
|
-
"rounded-t": [
|
|
1282
|
+
"rounded-t": [l]
|
|
1283
1283
|
}],
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Border Radius Right
|
|
1286
1286
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1287
1287
|
*/
|
|
1288
1288
|
"rounded-r": [{
|
|
1289
|
-
"rounded-r": [
|
|
1289
|
+
"rounded-r": [l]
|
|
1290
1290
|
}],
|
|
1291
1291
|
/**
|
|
1292
1292
|
* Border Radius Bottom
|
|
1293
1293
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1294
1294
|
*/
|
|
1295
1295
|
"rounded-b": [{
|
|
1296
|
-
"rounded-b": [
|
|
1296
|
+
"rounded-b": [l]
|
|
1297
1297
|
}],
|
|
1298
1298
|
/**
|
|
1299
1299
|
* Border Radius Left
|
|
1300
1300
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1301
1301
|
*/
|
|
1302
1302
|
"rounded-l": [{
|
|
1303
|
-
"rounded-l": [
|
|
1303
|
+
"rounded-l": [l]
|
|
1304
1304
|
}],
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Border Radius Start Start
|
|
1307
1307
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1308
1308
|
*/
|
|
1309
1309
|
"rounded-ss": [{
|
|
1310
|
-
"rounded-ss": [
|
|
1310
|
+
"rounded-ss": [l]
|
|
1311
1311
|
}],
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Border Radius Start End
|
|
1314
1314
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1315
1315
|
*/
|
|
1316
1316
|
"rounded-se": [{
|
|
1317
|
-
"rounded-se": [
|
|
1317
|
+
"rounded-se": [l]
|
|
1318
1318
|
}],
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Border Radius End End
|
|
1321
1321
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1322
1322
|
*/
|
|
1323
1323
|
"rounded-ee": [{
|
|
1324
|
-
"rounded-ee": [
|
|
1324
|
+
"rounded-ee": [l]
|
|
1325
1325
|
}],
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Border Radius End Start
|
|
1328
1328
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1329
1329
|
*/
|
|
1330
1330
|
"rounded-es": [{
|
|
1331
|
-
"rounded-es": [
|
|
1331
|
+
"rounded-es": [l]
|
|
1332
1332
|
}],
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Border Radius Top Left
|
|
1335
1335
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1336
1336
|
*/
|
|
1337
1337
|
"rounded-tl": [{
|
|
1338
|
-
"rounded-tl": [
|
|
1338
|
+
"rounded-tl": [l]
|
|
1339
1339
|
}],
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Border Radius Top Right
|
|
1342
1342
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1343
1343
|
*/
|
|
1344
1344
|
"rounded-tr": [{
|
|
1345
|
-
"rounded-tr": [
|
|
1345
|
+
"rounded-tr": [l]
|
|
1346
1346
|
}],
|
|
1347
1347
|
/**
|
|
1348
1348
|
* Border Radius Bottom Right
|
|
1349
1349
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1350
1350
|
*/
|
|
1351
1351
|
"rounded-br": [{
|
|
1352
|
-
"rounded-br": [
|
|
1352
|
+
"rounded-br": [l]
|
|
1353
1353
|
}],
|
|
1354
1354
|
/**
|
|
1355
1355
|
* Border Radius Bottom Left
|
|
1356
1356
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1357
1357
|
*/
|
|
1358
1358
|
"rounded-bl": [{
|
|
1359
|
-
"rounded-bl": [
|
|
1359
|
+
"rounded-bl": [l]
|
|
1360
1360
|
}],
|
|
1361
1361
|
/**
|
|
1362
1362
|
* Border Width
|
|
@@ -1426,7 +1426,7 @@ const A = (e) => {
|
|
|
1426
1426
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
1427
1427
|
*/
|
|
1428
1428
|
"border-opacity": [{
|
|
1429
|
-
"border-opacity": [
|
|
1429
|
+
"border-opacity": [w]
|
|
1430
1430
|
}],
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Border Style
|
|
@@ -1464,7 +1464,7 @@ const A = (e) => {
|
|
|
1464
1464
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1465
1465
|
*/
|
|
1466
1466
|
"divide-opacity": [{
|
|
1467
|
-
"divide-opacity": [
|
|
1467
|
+
"divide-opacity": [w]
|
|
1468
1468
|
}],
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Divide Style
|
|
@@ -1478,70 +1478,70 @@ const A = (e) => {
|
|
|
1478
1478
|
* @see https://tailwindcss.com/docs/border-color
|
|
1479
1479
|
*/
|
|
1480
1480
|
"border-color": [{
|
|
1481
|
-
border: [
|
|
1481
|
+
border: [a]
|
|
1482
1482
|
}],
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Border Color X
|
|
1485
1485
|
* @see https://tailwindcss.com/docs/border-color
|
|
1486
1486
|
*/
|
|
1487
1487
|
"border-color-x": [{
|
|
1488
|
-
"border-x": [
|
|
1488
|
+
"border-x": [a]
|
|
1489
1489
|
}],
|
|
1490
1490
|
/**
|
|
1491
1491
|
* Border Color Y
|
|
1492
1492
|
* @see https://tailwindcss.com/docs/border-color
|
|
1493
1493
|
*/
|
|
1494
1494
|
"border-color-y": [{
|
|
1495
|
-
"border-y": [
|
|
1495
|
+
"border-y": [a]
|
|
1496
1496
|
}],
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Border Color S
|
|
1499
1499
|
* @see https://tailwindcss.com/docs/border-color
|
|
1500
1500
|
*/
|
|
1501
1501
|
"border-color-s": [{
|
|
1502
|
-
"border-s": [
|
|
1502
|
+
"border-s": [a]
|
|
1503
1503
|
}],
|
|
1504
1504
|
/**
|
|
1505
1505
|
* Border Color E
|
|
1506
1506
|
* @see https://tailwindcss.com/docs/border-color
|
|
1507
1507
|
*/
|
|
1508
1508
|
"border-color-e": [{
|
|
1509
|
-
"border-e": [
|
|
1509
|
+
"border-e": [a]
|
|
1510
1510
|
}],
|
|
1511
1511
|
/**
|
|
1512
1512
|
* Border Color Top
|
|
1513
1513
|
* @see https://tailwindcss.com/docs/border-color
|
|
1514
1514
|
*/
|
|
1515
1515
|
"border-color-t": [{
|
|
1516
|
-
"border-t": [
|
|
1516
|
+
"border-t": [a]
|
|
1517
1517
|
}],
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Border Color Right
|
|
1520
1520
|
* @see https://tailwindcss.com/docs/border-color
|
|
1521
1521
|
*/
|
|
1522
1522
|
"border-color-r": [{
|
|
1523
|
-
"border-r": [
|
|
1523
|
+
"border-r": [a]
|
|
1524
1524
|
}],
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Border Color Bottom
|
|
1527
1527
|
* @see https://tailwindcss.com/docs/border-color
|
|
1528
1528
|
*/
|
|
1529
1529
|
"border-color-b": [{
|
|
1530
|
-
"border-b": [
|
|
1530
|
+
"border-b": [a]
|
|
1531
1531
|
}],
|
|
1532
1532
|
/**
|
|
1533
1533
|
* Border Color Left
|
|
1534
1534
|
* @see https://tailwindcss.com/docs/border-color
|
|
1535
1535
|
*/
|
|
1536
1536
|
"border-color-l": [{
|
|
1537
|
-
"border-l": [
|
|
1537
|
+
"border-l": [a]
|
|
1538
1538
|
}],
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Divide Color
|
|
1541
1541
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1542
1542
|
*/
|
|
1543
1543
|
"divide-color": [{
|
|
1544
|
-
divide: [
|
|
1544
|
+
divide: [a]
|
|
1545
1545
|
}],
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Outline Style
|
|
@@ -1555,7 +1555,7 @@ const A = (e) => {
|
|
|
1555
1555
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1556
1556
|
*/
|
|
1557
1557
|
"outline-offset": [{
|
|
1558
|
-
"outline-offset": [W,
|
|
1558
|
+
"outline-offset": [W, N]
|
|
1559
1559
|
}],
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Outline Width
|
|
@@ -1576,7 +1576,7 @@ const A = (e) => {
|
|
|
1576
1576
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1577
1577
|
*/
|
|
1578
1578
|
"ring-w": [{
|
|
1579
|
-
ring:
|
|
1579
|
+
ring: M()
|
|
1580
1580
|
}],
|
|
1581
1581
|
/**
|
|
1582
1582
|
* Ring Width Inset
|
|
@@ -1595,7 +1595,7 @@ const A = (e) => {
|
|
|
1595
1595
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1596
1596
|
*/
|
|
1597
1597
|
"ring-opacity": [{
|
|
1598
|
-
"ring-opacity": [
|
|
1598
|
+
"ring-opacity": [w]
|
|
1599
1599
|
}],
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Ring Offset Width
|
|
@@ -1631,7 +1631,7 @@ const A = (e) => {
|
|
|
1631
1631
|
* @see https://tailwindcss.com/docs/opacity
|
|
1632
1632
|
*/
|
|
1633
1633
|
opacity: [{
|
|
1634
|
-
opacity: [
|
|
1634
|
+
opacity: [w]
|
|
1635
1635
|
}],
|
|
1636
1636
|
/**
|
|
1637
1637
|
* Mix Blend Mode
|
|
@@ -1682,7 +1682,7 @@ const A = (e) => {
|
|
|
1682
1682
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1683
1683
|
*/
|
|
1684
1684
|
"drop-shadow": [{
|
|
1685
|
-
"drop-shadow": ["", "none", Y,
|
|
1685
|
+
"drop-shadow": ["", "none", Y, N]
|
|
1686
1686
|
}],
|
|
1687
1687
|
/**
|
|
1688
1688
|
* Grayscale
|
|
@@ -1696,14 +1696,14 @@ const A = (e) => {
|
|
|
1696
1696
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
1697
1697
|
*/
|
|
1698
1698
|
"hue-rotate": [{
|
|
1699
|
-
"hue-rotate": [
|
|
1699
|
+
"hue-rotate": [m]
|
|
1700
1700
|
}],
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Invert
|
|
1703
1703
|
* @see https://tailwindcss.com/docs/invert
|
|
1704
1704
|
*/
|
|
1705
1705
|
invert: [{
|
|
1706
|
-
invert: [
|
|
1706
|
+
invert: [k]
|
|
1707
1707
|
}],
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Saturate
|
|
@@ -1717,7 +1717,7 @@ const A = (e) => {
|
|
|
1717
1717
|
* @see https://tailwindcss.com/docs/sepia
|
|
1718
1718
|
*/
|
|
1719
1719
|
sepia: [{
|
|
1720
|
-
sepia: [
|
|
1720
|
+
sepia: [z]
|
|
1721
1721
|
}],
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Backdrop Filter
|
|
@@ -1760,21 +1760,21 @@ const A = (e) => {
|
|
|
1760
1760
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
1761
1761
|
*/
|
|
1762
1762
|
"backdrop-hue-rotate": [{
|
|
1763
|
-
"backdrop-hue-rotate": [
|
|
1763
|
+
"backdrop-hue-rotate": [m]
|
|
1764
1764
|
}],
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Backdrop Invert
|
|
1767
1767
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
1768
1768
|
*/
|
|
1769
1769
|
"backdrop-invert": [{
|
|
1770
|
-
"backdrop-invert": [
|
|
1770
|
+
"backdrop-invert": [k]
|
|
1771
1771
|
}],
|
|
1772
1772
|
/**
|
|
1773
1773
|
* Backdrop Opacity
|
|
1774
1774
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
1775
1775
|
*/
|
|
1776
1776
|
"backdrop-opacity": [{
|
|
1777
|
-
"backdrop-opacity": [
|
|
1777
|
+
"backdrop-opacity": [w]
|
|
1778
1778
|
}],
|
|
1779
1779
|
/**
|
|
1780
1780
|
* Backdrop Saturate
|
|
@@ -1788,7 +1788,7 @@ const A = (e) => {
|
|
|
1788
1788
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
1789
1789
|
*/
|
|
1790
1790
|
"backdrop-sepia": [{
|
|
1791
|
-
"backdrop-sepia": [
|
|
1791
|
+
"backdrop-sepia": [z]
|
|
1792
1792
|
}],
|
|
1793
1793
|
// Tables
|
|
1794
1794
|
/**
|
|
@@ -1839,35 +1839,35 @@ const A = (e) => {
|
|
|
1839
1839
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1840
1840
|
*/
|
|
1841
1841
|
transition: [{
|
|
1842
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1842
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", N]
|
|
1843
1843
|
}],
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Transition Duration
|
|
1846
1846
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
1847
1847
|
*/
|
|
1848
1848
|
duration: [{
|
|
1849
|
-
duration:
|
|
1849
|
+
duration: _()
|
|
1850
1850
|
}],
|
|
1851
1851
|
/**
|
|
1852
1852
|
* Transition Timing Function
|
|
1853
1853
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1854
1854
|
*/
|
|
1855
1855
|
ease: [{
|
|
1856
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1856
|
+
ease: ["linear", "in", "out", "in-out", N]
|
|
1857
1857
|
}],
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Transition Delay
|
|
1860
1860
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
1861
1861
|
*/
|
|
1862
1862
|
delay: [{
|
|
1863
|
-
delay:
|
|
1863
|
+
delay: _()
|
|
1864
1864
|
}],
|
|
1865
1865
|
/**
|
|
1866
1866
|
* Animation
|
|
1867
1867
|
* @see https://tailwindcss.com/docs/animation
|
|
1868
1868
|
*/
|
|
1869
1869
|
animate: [{
|
|
1870
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1870
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", N]
|
|
1871
1871
|
}],
|
|
1872
1872
|
// Transforms
|
|
1873
1873
|
/**
|
|
@@ -1903,42 +1903,42 @@ const A = (e) => {
|
|
|
1903
1903
|
* @see https://tailwindcss.com/docs/rotate
|
|
1904
1904
|
*/
|
|
1905
1905
|
rotate: [{
|
|
1906
|
-
rotate: [te,
|
|
1906
|
+
rotate: [te, N]
|
|
1907
1907
|
}],
|
|
1908
1908
|
/**
|
|
1909
1909
|
* Translate X
|
|
1910
1910
|
* @see https://tailwindcss.com/docs/translate
|
|
1911
1911
|
*/
|
|
1912
1912
|
"translate-x": [{
|
|
1913
|
-
"translate-x": [
|
|
1913
|
+
"translate-x": [j]
|
|
1914
1914
|
}],
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Translate Y
|
|
1917
1917
|
* @see https://tailwindcss.com/docs/translate
|
|
1918
1918
|
*/
|
|
1919
1919
|
"translate-y": [{
|
|
1920
|
-
"translate-y": [
|
|
1920
|
+
"translate-y": [j]
|
|
1921
1921
|
}],
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Skew X
|
|
1924
1924
|
* @see https://tailwindcss.com/docs/skew
|
|
1925
1925
|
*/
|
|
1926
1926
|
"skew-x": [{
|
|
1927
|
-
"skew-x": [
|
|
1927
|
+
"skew-x": [E]
|
|
1928
1928
|
}],
|
|
1929
1929
|
/**
|
|
1930
1930
|
* Skew Y
|
|
1931
1931
|
* @see https://tailwindcss.com/docs/skew
|
|
1932
1932
|
*/
|
|
1933
1933
|
"skew-y": [{
|
|
1934
|
-
"skew-y": [
|
|
1934
|
+
"skew-y": [E]
|
|
1935
1935
|
}],
|
|
1936
1936
|
/**
|
|
1937
1937
|
* Transform Origin
|
|
1938
1938
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
1939
1939
|
*/
|
|
1940
1940
|
"transform-origin": [{
|
|
1941
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1941
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", N]
|
|
1942
1942
|
}],
|
|
1943
1943
|
// Interactivity
|
|
1944
1944
|
/**
|
|
@@ -1960,7 +1960,7 @@ const A = (e) => {
|
|
|
1960
1960
|
* @see https://tailwindcss.com/docs/cursor
|
|
1961
1961
|
*/
|
|
1962
1962
|
cursor: [{
|
|
1963
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
1963
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", N]
|
|
1964
1964
|
}],
|
|
1965
1965
|
/**
|
|
1966
1966
|
* Caret Color
|
|
@@ -2182,7 +2182,7 @@ const A = (e) => {
|
|
|
2182
2182
|
* @see https://tailwindcss.com/docs/will-change
|
|
2183
2183
|
*/
|
|
2184
2184
|
"will-change": [{
|
|
2185
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2185
|
+
"will-change": ["auto", "scroll", "contents", "transform", N]
|
|
2186
2186
|
}],
|
|
2187
2187
|
// SVG
|
|
2188
2188
|
/**
|
|
@@ -2277,12 +2277,12 @@ function p(...e) {
|
|
|
2277
2277
|
return fr(Fe(e));
|
|
2278
2278
|
}
|
|
2279
2279
|
function hr(e) {
|
|
2280
|
-
const r = parseInt(e.slice(1, 3), 16) / 255, t = parseInt(e.slice(3, 5), 16) / 255, o = parseInt(e.slice(5, 7), 16) / 255,
|
|
2280
|
+
const r = parseInt(e.slice(1, 3), 16) / 255, t = parseInt(e.slice(3, 5), 16) / 255, o = parseInt(e.slice(5, 7), 16) / 255, a = Math.max(r, t, o), l = Math.min(r, t, o);
|
|
2281
2281
|
let i = 0, n = 0;
|
|
2282
|
-
const c = (
|
|
2283
|
-
if (
|
|
2284
|
-
const d =
|
|
2285
|
-
switch (n = c > 0.5 ? d / (2 -
|
|
2282
|
+
const c = (a + l) / 2;
|
|
2283
|
+
if (a !== l) {
|
|
2284
|
+
const d = a - l;
|
|
2285
|
+
switch (n = c > 0.5 ? d / (2 - a - l) : d / (a + l), a) {
|
|
2286
2286
|
case r:
|
|
2287
2287
|
i = ((t - o) / d + (t < o ? 6 : 0)) / 6;
|
|
2288
2288
|
break;
|
|
@@ -2298,11 +2298,11 @@ function hr(e) {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
function be(e, r, t) {
|
|
2300
2300
|
t /= 100;
|
|
2301
|
-
const o = r * Math.min(t, 1 - t) / 100,
|
|
2302
|
-
const i = (
|
|
2301
|
+
const o = r * Math.min(t, 1 - t) / 100, a = (l) => {
|
|
2302
|
+
const i = (l + e / 30) % 12, n = t - o * Math.max(Math.min(i - 3, 9 - i, 1), -1);
|
|
2303
2303
|
return Math.round(255 * n).toString(16).padStart(2, "0");
|
|
2304
2304
|
};
|
|
2305
|
-
return `#${
|
|
2305
|
+
return `#${a(0)}${a(8)}${a(4)}`;
|
|
2306
2306
|
}
|
|
2307
2307
|
function le(e) {
|
|
2308
2308
|
const [r, t, o] = hr(e);
|
|
@@ -2312,7 +2312,7 @@ function le(e) {
|
|
|
2312
2312
|
dark: be(r, Math.min(100, t + 10), Math.max(0, o - 15))
|
|
2313
2313
|
};
|
|
2314
2314
|
}
|
|
2315
|
-
const
|
|
2315
|
+
const O = {
|
|
2316
2316
|
colors: {
|
|
2317
2317
|
primary: "#6366f1",
|
|
2318
2318
|
primaryLight: "#818cf8",
|
|
@@ -2335,7 +2335,7 @@ const j = {
|
|
|
2335
2335
|
light: "#f9fafb",
|
|
2336
2336
|
active: "#4338ca"
|
|
2337
2337
|
}
|
|
2338
|
-
}, Le = je(
|
|
2338
|
+
}, Le = je(O);
|
|
2339
2339
|
function Kr() {
|
|
2340
2340
|
return Oe(Le);
|
|
2341
2341
|
}
|
|
@@ -2378,35 +2378,35 @@ function Zr({
|
|
|
2378
2378
|
theme: r
|
|
2379
2379
|
}) {
|
|
2380
2380
|
const t = Ie(() => {
|
|
2381
|
-
const o = r?.colors || {},
|
|
2381
|
+
const o = r?.colors || {}, a = o.primary ? le(o.primary) : null, l = o.secondary ? le(o.secondary) : null, i = o.danger ? le(o.danger) : null;
|
|
2382
2382
|
return {
|
|
2383
2383
|
colors: {
|
|
2384
|
-
primary: o.primary ||
|
|
2385
|
-
primaryLight:
|
|
2386
|
-
primaryDark:
|
|
2387
|
-
secondary: o.secondary ||
|
|
2388
|
-
secondaryLight:
|
|
2389
|
-
secondaryDark:
|
|
2390
|
-
danger: o.danger ||
|
|
2391
|
-
dangerLight: i?.light ||
|
|
2392
|
-
dangerDark: i?.dark ||
|
|
2393
|
-
text: o.text ||
|
|
2394
|
-
textMuted: o.textMuted ||
|
|
2395
|
-
textLight: o.textLight ||
|
|
2396
|
-
border: o.border ||
|
|
2397
|
-
borderDark: o.borderDark ||
|
|
2398
|
-
background: o.background ||
|
|
2399
|
-
backgroundDark: o.backgroundDark ||
|
|
2400
|
-
backgroundLight: o.backgroundLight ||
|
|
2401
|
-
disabled: o.disabled ||
|
|
2402
|
-
light: o.light ||
|
|
2403
|
-
active: o.active ||
|
|
2384
|
+
primary: o.primary || O.colors.primary,
|
|
2385
|
+
primaryLight: a?.light || O.colors.primaryLight,
|
|
2386
|
+
primaryDark: a?.dark || O.colors.primaryDark,
|
|
2387
|
+
secondary: o.secondary || O.colors.secondary,
|
|
2388
|
+
secondaryLight: l?.light || O.colors.secondaryLight,
|
|
2389
|
+
secondaryDark: l?.dark || O.colors.secondaryDark,
|
|
2390
|
+
danger: o.danger || O.colors.danger,
|
|
2391
|
+
dangerLight: i?.light || O.colors.dangerLight,
|
|
2392
|
+
dangerDark: i?.dark || O.colors.dangerDark,
|
|
2393
|
+
text: o.text || O.colors.text,
|
|
2394
|
+
textMuted: o.textMuted || O.colors.textMuted,
|
|
2395
|
+
textLight: o.textLight || O.colors.textLight,
|
|
2396
|
+
border: o.border || O.colors.border,
|
|
2397
|
+
borderDark: o.borderDark || O.colors.borderDark,
|
|
2398
|
+
background: o.background || O.colors.background,
|
|
2399
|
+
backgroundDark: o.backgroundDark || O.colors.backgroundDark,
|
|
2400
|
+
backgroundLight: o.backgroundLight || O.colors.backgroundLight,
|
|
2401
|
+
disabled: o.disabled || O.colors.disabled,
|
|
2402
|
+
light: o.light || O.colors.light,
|
|
2403
|
+
active: o.active || O.colors.active
|
|
2404
2404
|
}
|
|
2405
2405
|
};
|
|
2406
2406
|
}, [r]);
|
|
2407
2407
|
return typeof window < "u" && ge(t), H(() => {
|
|
2408
2408
|
ge(t);
|
|
2409
|
-
}, [t]),
|
|
2409
|
+
}, [t]), B.createElement(Le.Provider, { value: t }, e);
|
|
2410
2410
|
}
|
|
2411
2411
|
const yr = {
|
|
2412
2412
|
primary: "bg-primary text-white border-primary hover:bg-primary-dark hover:border-primary-dark active:bg-active",
|
|
@@ -2427,14 +2427,14 @@ function q({
|
|
|
2427
2427
|
onClick: r,
|
|
2428
2428
|
disabled: t = !1,
|
|
2429
2429
|
type: o = "button",
|
|
2430
|
-
variant:
|
|
2431
|
-
size:
|
|
2430
|
+
variant: a = "primary",
|
|
2431
|
+
size: l = "md",
|
|
2432
2432
|
fullWidth: i = !1,
|
|
2433
2433
|
loading: n = !1,
|
|
2434
2434
|
className: c = "",
|
|
2435
2435
|
...d
|
|
2436
2436
|
}) {
|
|
2437
|
-
return /* @__PURE__ */
|
|
2437
|
+
return /* @__PURE__ */ x(
|
|
2438
2438
|
"button",
|
|
2439
2439
|
{
|
|
2440
2440
|
type: o,
|
|
@@ -2442,22 +2442,22 @@ function q({
|
|
|
2442
2442
|
disabled: t || n,
|
|
2443
2443
|
className: p(
|
|
2444
2444
|
"inline-flex shadow-md hover:shadow-lg cursor-pointer items-center justify-center font-medium rounded-lg border transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50",
|
|
2445
|
-
t || n ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" : yr[
|
|
2446
|
-
xr[
|
|
2445
|
+
t || n ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" : yr[a],
|
|
2446
|
+
xr[l],
|
|
2447
2447
|
i && "w-full",
|
|
2448
2448
|
n && "cursor-wait opacity-75",
|
|
2449
2449
|
c
|
|
2450
2450
|
),
|
|
2451
2451
|
...d,
|
|
2452
2452
|
children: [
|
|
2453
|
-
n && /* @__PURE__ */
|
|
2453
|
+
n && /* @__PURE__ */ x(
|
|
2454
2454
|
"svg",
|
|
2455
2455
|
{
|
|
2456
2456
|
className: "w-4 h-4 mr-2 animate-spin",
|
|
2457
2457
|
fill: "none",
|
|
2458
2458
|
viewBox: "0 0 24 24",
|
|
2459
2459
|
children: [
|
|
2460
|
-
/* @__PURE__ */
|
|
2460
|
+
/* @__PURE__ */ s(
|
|
2461
2461
|
"circle",
|
|
2462
2462
|
{
|
|
2463
2463
|
className: "opacity-25",
|
|
@@ -2468,7 +2468,7 @@ function q({
|
|
|
2468
2468
|
strokeWidth: "4"
|
|
2469
2469
|
}
|
|
2470
2470
|
),
|
|
2471
|
-
/* @__PURE__ */
|
|
2471
|
+
/* @__PURE__ */ s(
|
|
2472
2472
|
"path",
|
|
2473
2473
|
{
|
|
2474
2474
|
className: "opacity-75",
|
|
@@ -2489,65 +2489,65 @@ function vr({
|
|
|
2489
2489
|
name: r,
|
|
2490
2490
|
type: t = "text",
|
|
2491
2491
|
value: o,
|
|
2492
|
-
onChange:
|
|
2493
|
-
placeholder:
|
|
2492
|
+
onChange: a,
|
|
2493
|
+
placeholder: l,
|
|
2494
2494
|
label: i,
|
|
2495
2495
|
error: n,
|
|
2496
2496
|
disabled: c = !1,
|
|
2497
2497
|
required: d = !1,
|
|
2498
|
-
colorScheme:
|
|
2499
|
-
className:
|
|
2500
|
-
...
|
|
2498
|
+
colorScheme: m = "secondary",
|
|
2499
|
+
className: k = "",
|
|
2500
|
+
...f
|
|
2501
2501
|
}) {
|
|
2502
2502
|
const v = () => {
|
|
2503
|
-
const
|
|
2503
|
+
const y = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
|
|
2504
2504
|
if (n)
|
|
2505
2505
|
return p(
|
|
2506
|
-
|
|
2506
|
+
y,
|
|
2507
2507
|
"border-danger focus:border-danger focus:shadow-danger-light"
|
|
2508
2508
|
);
|
|
2509
|
-
switch (
|
|
2509
|
+
switch (m) {
|
|
2510
2510
|
case "primary":
|
|
2511
2511
|
return p(
|
|
2512
|
-
|
|
2512
|
+
y,
|
|
2513
2513
|
"text-primary border-primary focus:border-primary"
|
|
2514
2514
|
);
|
|
2515
2515
|
case "secondary":
|
|
2516
2516
|
default:
|
|
2517
2517
|
return p(
|
|
2518
|
-
|
|
2518
|
+
y,
|
|
2519
2519
|
"text-secondary border-secondary focus:border-secondary"
|
|
2520
2520
|
);
|
|
2521
2521
|
}
|
|
2522
|
-
},
|
|
2523
|
-
return /* @__PURE__ */
|
|
2524
|
-
i && /* @__PURE__ */
|
|
2522
|
+
}, b = () => m === "primary" ? "text-primary" : "text-secondary";
|
|
2523
|
+
return /* @__PURE__ */ x("div", { className: p("mb-6", k), children: [
|
|
2524
|
+
i && /* @__PURE__ */ x(
|
|
2525
2525
|
"label",
|
|
2526
2526
|
{
|
|
2527
2527
|
htmlFor: e,
|
|
2528
|
-
className: p("block mb-2 text-sm font-medium",
|
|
2528
|
+
className: p("block mb-2 text-sm font-medium", b()),
|
|
2529
2529
|
children: [
|
|
2530
2530
|
i,
|
|
2531
|
-
d && /* @__PURE__ */
|
|
2531
|
+
d && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
|
|
2532
2532
|
]
|
|
2533
2533
|
}
|
|
2534
2534
|
),
|
|
2535
|
-
/* @__PURE__ */
|
|
2535
|
+
/* @__PURE__ */ s(
|
|
2536
2536
|
"input",
|
|
2537
2537
|
{
|
|
2538
2538
|
id: e,
|
|
2539
2539
|
name: r,
|
|
2540
2540
|
type: t,
|
|
2541
2541
|
value: o,
|
|
2542
|
-
onChange:
|
|
2543
|
-
placeholder:
|
|
2542
|
+
onChange: a,
|
|
2543
|
+
placeholder: l,
|
|
2544
2544
|
disabled: c,
|
|
2545
2545
|
required: d,
|
|
2546
2546
|
className: v(),
|
|
2547
|
-
...
|
|
2547
|
+
...f
|
|
2548
2548
|
}
|
|
2549
2549
|
),
|
|
2550
|
-
n && /* @__PURE__ */
|
|
2550
|
+
n && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: n })
|
|
2551
2551
|
] });
|
|
2552
2552
|
}
|
|
2553
2553
|
function wr({
|
|
@@ -2555,65 +2555,65 @@ function wr({
|
|
|
2555
2555
|
name: r,
|
|
2556
2556
|
value: t,
|
|
2557
2557
|
onChange: o,
|
|
2558
|
-
placeholder:
|
|
2559
|
-
label:
|
|
2558
|
+
placeholder: a,
|
|
2559
|
+
label: l,
|
|
2560
2560
|
error: i,
|
|
2561
2561
|
disabled: n = !1,
|
|
2562
2562
|
required: c = !1,
|
|
2563
2563
|
colorScheme: d = "secondary",
|
|
2564
|
-
className:
|
|
2565
|
-
rows:
|
|
2566
|
-
...
|
|
2564
|
+
className: m = "",
|
|
2565
|
+
rows: k = 4,
|
|
2566
|
+
...f
|
|
2567
2567
|
}) {
|
|
2568
2568
|
const v = () => {
|
|
2569
|
-
const
|
|
2569
|
+
const y = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted resize-none";
|
|
2570
2570
|
if (i)
|
|
2571
2571
|
return p(
|
|
2572
|
-
|
|
2572
|
+
y,
|
|
2573
2573
|
"border-danger focus:border-danger focus:shadow-danger-light"
|
|
2574
2574
|
);
|
|
2575
2575
|
switch (d) {
|
|
2576
2576
|
case "primary":
|
|
2577
2577
|
return p(
|
|
2578
|
-
|
|
2578
|
+
y,
|
|
2579
2579
|
"text-primary border-primary focus:border-primary"
|
|
2580
2580
|
);
|
|
2581
2581
|
case "secondary":
|
|
2582
2582
|
default:
|
|
2583
2583
|
return p(
|
|
2584
|
-
|
|
2584
|
+
y,
|
|
2585
2585
|
"text-secondary border-secondary focus:border-secondary"
|
|
2586
2586
|
);
|
|
2587
2587
|
}
|
|
2588
|
-
},
|
|
2589
|
-
return /* @__PURE__ */
|
|
2590
|
-
|
|
2588
|
+
}, b = () => d === "primary" ? "text-primary" : "text-secondary";
|
|
2589
|
+
return /* @__PURE__ */ x("div", { className: p("mb-6", m), children: [
|
|
2590
|
+
l && /* @__PURE__ */ x(
|
|
2591
2591
|
"label",
|
|
2592
2592
|
{
|
|
2593
2593
|
htmlFor: e,
|
|
2594
|
-
className: p("block mb-2 text-sm font-medium",
|
|
2594
|
+
className: p("block mb-2 text-sm font-medium", b()),
|
|
2595
2595
|
children: [
|
|
2596
|
-
|
|
2597
|
-
c && /* @__PURE__ */
|
|
2596
|
+
l,
|
|
2597
|
+
c && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
|
|
2598
2598
|
]
|
|
2599
2599
|
}
|
|
2600
2600
|
),
|
|
2601
|
-
/* @__PURE__ */
|
|
2601
|
+
/* @__PURE__ */ s(
|
|
2602
2602
|
"textarea",
|
|
2603
2603
|
{
|
|
2604
2604
|
id: e,
|
|
2605
2605
|
name: r,
|
|
2606
2606
|
value: t,
|
|
2607
2607
|
onChange: o,
|
|
2608
|
-
placeholder:
|
|
2608
|
+
placeholder: a,
|
|
2609
2609
|
disabled: n,
|
|
2610
2610
|
required: c,
|
|
2611
|
-
rows:
|
|
2611
|
+
rows: k,
|
|
2612
2612
|
className: v(),
|
|
2613
|
-
...
|
|
2613
|
+
...f
|
|
2614
2614
|
}
|
|
2615
2615
|
),
|
|
2616
|
-
i && /* @__PURE__ */
|
|
2616
|
+
i && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
|
|
2617
2617
|
] });
|
|
2618
2618
|
}
|
|
2619
2619
|
const De = { Input: vr, InputArea: wr };
|
|
@@ -2622,16 +2622,16 @@ function kr({
|
|
|
2622
2622
|
name: r,
|
|
2623
2623
|
checked: t = !1,
|
|
2624
2624
|
onChange: o,
|
|
2625
|
-
disabled:
|
|
2626
|
-
label:
|
|
2625
|
+
disabled: a = !1,
|
|
2626
|
+
label: l,
|
|
2627
2627
|
colorScheme: i = "secondary",
|
|
2628
2628
|
size: n = "md",
|
|
2629
2629
|
className: c = "",
|
|
2630
2630
|
...d
|
|
2631
2631
|
}) {
|
|
2632
|
-
const [
|
|
2633
|
-
const L =
|
|
2634
|
-
|
|
2632
|
+
const [m, k] = $(t), f = (h) => {
|
|
2633
|
+
const L = h.target.checked;
|
|
2634
|
+
k(L), o?.(L);
|
|
2635
2635
|
}, v = () => ({
|
|
2636
2636
|
primary: {
|
|
2637
2637
|
bg: "bg-primary",
|
|
@@ -2643,7 +2643,7 @@ function kr({
|
|
|
2643
2643
|
border: "border-secondary",
|
|
2644
2644
|
text: "text-secondary"
|
|
2645
2645
|
}
|
|
2646
|
-
})[i],
|
|
2646
|
+
})[i], b = () => {
|
|
2647
2647
|
switch (n) {
|
|
2648
2648
|
case "sm":
|
|
2649
2649
|
return "w-10 h-6";
|
|
@@ -2653,7 +2653,7 @@ function kr({
|
|
|
2653
2653
|
default:
|
|
2654
2654
|
return "w-13 h-7";
|
|
2655
2655
|
}
|
|
2656
|
-
},
|
|
2656
|
+
}, y = () => {
|
|
2657
2657
|
switch (n) {
|
|
2658
2658
|
case "sm":
|
|
2659
2659
|
return "w-5 h-5";
|
|
@@ -2664,7 +2664,7 @@ function kr({
|
|
|
2664
2664
|
return "w-6 h-6";
|
|
2665
2665
|
}
|
|
2666
2666
|
}, u = () => {
|
|
2667
|
-
if (!
|
|
2667
|
+
if (!m) return "translate-x-0";
|
|
2668
2668
|
switch (n) {
|
|
2669
2669
|
case "sm":
|
|
2670
2670
|
return "translate-x-5";
|
|
@@ -2674,38 +2674,38 @@ function kr({
|
|
|
2674
2674
|
default:
|
|
2675
2675
|
return "translate-x-6";
|
|
2676
2676
|
}
|
|
2677
|
-
},
|
|
2678
|
-
return /* @__PURE__ */
|
|
2679
|
-
/* @__PURE__ */
|
|
2680
|
-
/* @__PURE__ */
|
|
2677
|
+
}, w = v();
|
|
2678
|
+
return /* @__PURE__ */ x("div", { className: p("flex items-center gap-3", c), children: [
|
|
2679
|
+
/* @__PURE__ */ x("div", { className: "relative", children: [
|
|
2680
|
+
/* @__PURE__ */ s(
|
|
2681
2681
|
"input",
|
|
2682
2682
|
{
|
|
2683
2683
|
type: "checkbox",
|
|
2684
2684
|
id: e,
|
|
2685
2685
|
name: r,
|
|
2686
|
-
checked:
|
|
2687
|
-
onChange:
|
|
2688
|
-
disabled:
|
|
2686
|
+
checked: m,
|
|
2687
|
+
onChange: f,
|
|
2688
|
+
disabled: a,
|
|
2689
2689
|
className: "sr-only",
|
|
2690
2690
|
...d
|
|
2691
2691
|
}
|
|
2692
2692
|
),
|
|
2693
|
-
/* @__PURE__ */
|
|
2693
|
+
/* @__PURE__ */ s(
|
|
2694
2694
|
"label",
|
|
2695
2695
|
{
|
|
2696
2696
|
htmlFor: e,
|
|
2697
2697
|
className: p(
|
|
2698
2698
|
"block cursor-pointer transition-all duration-300 rounded-full border-2",
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2699
|
+
b(),
|
|
2700
|
+
m ? p(w.bg, w.border) : "bg-gray-200 border-gray-300",
|
|
2701
|
+
a ? "opacity-50 cursor-not-allowed" : "hover:shadow-md"
|
|
2702
2702
|
),
|
|
2703
|
-
children: /* @__PURE__ */
|
|
2703
|
+
children: /* @__PURE__ */ s(
|
|
2704
2704
|
"span",
|
|
2705
2705
|
{
|
|
2706
2706
|
className: p(
|
|
2707
2707
|
"absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",
|
|
2708
|
-
|
|
2708
|
+
y(),
|
|
2709
2709
|
u()
|
|
2710
2710
|
)
|
|
2711
2711
|
}
|
|
@@ -2713,16 +2713,16 @@ function kr({
|
|
|
2713
2713
|
}
|
|
2714
2714
|
)
|
|
2715
2715
|
] }),
|
|
2716
|
-
|
|
2716
|
+
l && /* @__PURE__ */ s(
|
|
2717
2717
|
"label",
|
|
2718
2718
|
{
|
|
2719
2719
|
htmlFor: e,
|
|
2720
2720
|
className: p(
|
|
2721
2721
|
"text-sm font-medium cursor-pointer select-none",
|
|
2722
|
-
|
|
2723
|
-
|
|
2722
|
+
w.text,
|
|
2723
|
+
a && "opacity-50 cursor-not-allowed"
|
|
2724
2724
|
),
|
|
2725
|
-
children:
|
|
2725
|
+
children: l
|
|
2726
2726
|
}
|
|
2727
2727
|
)
|
|
2728
2728
|
] });
|
|
@@ -2732,8 +2732,8 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2732
2732
|
wrapperStyle: r = {},
|
|
2733
2733
|
wrapperClass: t = "",
|
|
2734
2734
|
ariaLabel: o = "Cargando...",
|
|
2735
|
-
label:
|
|
2736
|
-
visible:
|
|
2735
|
+
label: a = "Cargando...",
|
|
2736
|
+
visible: l = !0,
|
|
2737
2737
|
direction: i = "column"
|
|
2738
2738
|
}) => {
|
|
2739
2739
|
const n = {
|
|
@@ -2744,12 +2744,12 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2744
2744
|
minHeight: "100px",
|
|
2745
2745
|
...r
|
|
2746
2746
|
};
|
|
2747
|
-
return /* @__PURE__ */
|
|
2748
|
-
/* @__PURE__ */
|
|
2749
|
-
/* @__PURE__ */
|
|
2747
|
+
return /* @__PURE__ */ x("div", { style: n, className: t, children: [
|
|
2748
|
+
/* @__PURE__ */ s("label", { children: a }),
|
|
2749
|
+
/* @__PURE__ */ s(
|
|
2750
2750
|
Te,
|
|
2751
2751
|
{
|
|
2752
|
-
visible:
|
|
2752
|
+
visible: l,
|
|
2753
2753
|
height: e,
|
|
2754
2754
|
width: e,
|
|
2755
2755
|
ariaLabel: o,
|
|
@@ -2763,65 +2763,68 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2763
2763
|
}, { Input: ie } = De, Xr = ({
|
|
2764
2764
|
title: e = "Iniciar Sesión",
|
|
2765
2765
|
showForgotPassword: r = !0,
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2766
|
+
onlyForgotPassword: t = !1,
|
|
2767
|
+
className: o = "",
|
|
2768
|
+
onLogin: a,
|
|
2769
|
+
onForgotPassword: l
|
|
2769
2770
|
}) => {
|
|
2770
|
-
const [
|
|
2771
|
+
const [i, n] = $({
|
|
2771
2772
|
email: "",
|
|
2772
2773
|
password: ""
|
|
2773
|
-
}), [
|
|
2774
|
-
|
|
2774
|
+
}), [c, d] = $({}), [m, k] = $(!1), [f, v] = $(
|
|
2775
|
+
t ? "forgot" : "login"
|
|
2776
|
+
), b = (E, g) => {
|
|
2777
|
+
switch (E) {
|
|
2775
2778
|
case "email":
|
|
2776
|
-
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(
|
|
2779
|
+
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g) ? "" : "Por favor ingresa un email válido";
|
|
2777
2780
|
case "password":
|
|
2778
|
-
return
|
|
2781
|
+
return g.length >= 6 ? "" : "La contraseña debe tener al menos 6 caracteres";
|
|
2779
2782
|
default:
|
|
2780
2783
|
return "";
|
|
2781
2784
|
}
|
|
2782
|
-
},
|
|
2783
|
-
const { name:
|
|
2784
|
-
|
|
2785
|
-
...
|
|
2786
|
-
[
|
|
2787
|
-
})),
|
|
2788
|
-
...
|
|
2789
|
-
[
|
|
2785
|
+
}, y = (E) => {
|
|
2786
|
+
const { name: g, value: j } = E.target;
|
|
2787
|
+
n((F) => ({
|
|
2788
|
+
...F,
|
|
2789
|
+
[g]: j
|
|
2790
|
+
})), c[g] && d((F) => ({
|
|
2791
|
+
...F,
|
|
2792
|
+
[g]: ""
|
|
2790
2793
|
}));
|
|
2791
|
-
},
|
|
2792
|
-
const
|
|
2793
|
-
if (
|
|
2794
|
-
const
|
|
2795
|
-
|
|
2794
|
+
}, u = () => {
|
|
2795
|
+
const E = {}, g = b("email", i.email);
|
|
2796
|
+
if (g && (E.email = g), f === "login") {
|
|
2797
|
+
const j = b("password", i.password);
|
|
2798
|
+
j && (E.password = j);
|
|
2796
2799
|
}
|
|
2797
|
-
return
|
|
2798
|
-
},
|
|
2799
|
-
if (
|
|
2800
|
-
|
|
2800
|
+
return d(E), Object.keys(E).length === 0;
|
|
2801
|
+
}, w = async (E) => {
|
|
2802
|
+
if (E.preventDefault(), !!u()) {
|
|
2803
|
+
k(!0);
|
|
2801
2804
|
try {
|
|
2802
|
-
switch (
|
|
2805
|
+
switch (f) {
|
|
2803
2806
|
case "login":
|
|
2804
|
-
|
|
2805
|
-
email:
|
|
2806
|
-
password:
|
|
2807
|
+
a && await a({
|
|
2808
|
+
email: i.email,
|
|
2809
|
+
password: i.password
|
|
2807
2810
|
});
|
|
2808
2811
|
break;
|
|
2809
2812
|
case "forgot":
|
|
2810
|
-
|
|
2813
|
+
l && await l(i.email);
|
|
2811
2814
|
break;
|
|
2812
2815
|
}
|
|
2813
|
-
} catch (
|
|
2814
|
-
console.error("Login error:",
|
|
2816
|
+
} catch (g) {
|
|
2817
|
+
console.error("Login error:", g);
|
|
2815
2818
|
} finally {
|
|
2816
|
-
|
|
2819
|
+
k(!1);
|
|
2817
2820
|
}
|
|
2818
2821
|
}
|
|
2819
|
-
},
|
|
2820
|
-
|
|
2821
|
-
},
|
|
2822
|
-
switch (
|
|
2822
|
+
}, h = (E) => {
|
|
2823
|
+
v(E), d({}), n({ email: i.email, password: "" });
|
|
2824
|
+
}, L = () => {
|
|
2825
|
+
switch (f) {
|
|
2823
2826
|
case "forgot":
|
|
2824
|
-
return /* @__PURE__ */
|
|
2827
|
+
return /* @__PURE__ */ s(
|
|
2825
2828
|
ie,
|
|
2826
2829
|
{
|
|
2827
2830
|
id: "email",
|
|
@@ -2829,16 +2832,16 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2829
2832
|
name: "email",
|
|
2830
2833
|
placeholder: "Ingresa tu email",
|
|
2831
2834
|
label: "Email",
|
|
2832
|
-
value:
|
|
2833
|
-
onChange:
|
|
2834
|
-
error:
|
|
2835
|
-
disabled:
|
|
2835
|
+
value: i.email,
|
|
2836
|
+
onChange: y,
|
|
2837
|
+
error: c.email,
|
|
2838
|
+
disabled: m,
|
|
2836
2839
|
colorScheme: "secondary"
|
|
2837
2840
|
}
|
|
2838
2841
|
);
|
|
2839
2842
|
default:
|
|
2840
|
-
return /* @__PURE__ */
|
|
2841
|
-
/* @__PURE__ */
|
|
2843
|
+
return /* @__PURE__ */ x(Ae, { children: [
|
|
2844
|
+
/* @__PURE__ */ s(
|
|
2842
2845
|
ie,
|
|
2843
2846
|
{
|
|
2844
2847
|
id: "email",
|
|
@@ -2846,14 +2849,14 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2846
2849
|
name: "email",
|
|
2847
2850
|
placeholder: "Ingresa tu email",
|
|
2848
2851
|
label: "Email",
|
|
2849
|
-
value:
|
|
2850
|
-
onChange:
|
|
2851
|
-
error:
|
|
2852
|
-
disabled:
|
|
2852
|
+
value: i.email,
|
|
2853
|
+
onChange: y,
|
|
2854
|
+
error: c.email,
|
|
2855
|
+
disabled: m,
|
|
2853
2856
|
colorScheme: "secondary"
|
|
2854
2857
|
}
|
|
2855
2858
|
),
|
|
2856
|
-
/* @__PURE__ */
|
|
2859
|
+
/* @__PURE__ */ s(
|
|
2857
2860
|
ie,
|
|
2858
2861
|
{
|
|
2859
2862
|
id: "password",
|
|
@@ -2861,57 +2864,57 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2861
2864
|
name: "password",
|
|
2862
2865
|
placeholder: "Ingresa tu contraseña",
|
|
2863
2866
|
label: "Contraseña",
|
|
2864
|
-
value:
|
|
2865
|
-
onChange:
|
|
2866
|
-
error:
|
|
2867
|
-
disabled:
|
|
2867
|
+
value: i.password,
|
|
2868
|
+
onChange: y,
|
|
2869
|
+
error: c.password,
|
|
2870
|
+
disabled: m,
|
|
2868
2871
|
colorScheme: "secondary"
|
|
2869
2872
|
}
|
|
2870
2873
|
)
|
|
2871
2874
|
] });
|
|
2872
2875
|
}
|
|
2873
|
-
},
|
|
2874
|
-
switch (
|
|
2876
|
+
}, P = () => {
|
|
2877
|
+
switch (f) {
|
|
2875
2878
|
case "forgot":
|
|
2876
2879
|
return "Recuperar Contraseña";
|
|
2877
2880
|
default:
|
|
2878
2881
|
return e;
|
|
2879
2882
|
}
|
|
2880
|
-
},
|
|
2881
|
-
if (
|
|
2882
|
-
return /* @__PURE__ */
|
|
2883
|
-
switch (
|
|
2883
|
+
}, z = () => {
|
|
2884
|
+
if (m)
|
|
2885
|
+
return /* @__PURE__ */ s(Nr, { size: 20, wrapperStyle: { minHeight: "auto" } });
|
|
2886
|
+
switch (f) {
|
|
2884
2887
|
case "forgot":
|
|
2885
2888
|
return "Enviar Enlace";
|
|
2886
2889
|
default:
|
|
2887
2890
|
return "Entrar";
|
|
2888
2891
|
}
|
|
2889
2892
|
};
|
|
2890
|
-
return /* @__PURE__ */
|
|
2893
|
+
return /* @__PURE__ */ s(
|
|
2891
2894
|
"div",
|
|
2892
2895
|
{
|
|
2893
|
-
className: `flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${
|
|
2894
|
-
children: /* @__PURE__ */
|
|
2895
|
-
/* @__PURE__ */
|
|
2896
|
-
/* @__PURE__ */
|
|
2897
|
-
/* @__PURE__ */
|
|
2896
|
+
className: `flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${o || ""}`,
|
|
2897
|
+
children: /* @__PURE__ */ x("div", { className: "w-full max-w-100 p-12 bg-white rounded-2xl shadow-lg animate-[fadeIn_0.3s_ease-out] sm:p-8", children: [
|
|
2898
|
+
/* @__PURE__ */ s("h2", { className: "text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8", children: P() }),
|
|
2899
|
+
/* @__PURE__ */ s("div", { className: "space-y-4 mb-6", children: L() }),
|
|
2900
|
+
/* @__PURE__ */ s("form", { onSubmit: w, children: /* @__PURE__ */ s(
|
|
2898
2901
|
q,
|
|
2899
2902
|
{
|
|
2900
2903
|
type: "submit",
|
|
2901
|
-
disabled:
|
|
2902
|
-
loading:
|
|
2904
|
+
disabled: m,
|
|
2905
|
+
loading: m,
|
|
2903
2906
|
fullWidth: !0,
|
|
2904
2907
|
variant: "primary",
|
|
2905
2908
|
size: "lg",
|
|
2906
2909
|
className: "mb-6",
|
|
2907
|
-
children: !
|
|
2910
|
+
children: !m && z()
|
|
2908
2911
|
}
|
|
2909
2912
|
) }),
|
|
2910
|
-
|
|
2913
|
+
f === "login" && r && /* @__PURE__ */ s(
|
|
2911
2914
|
q,
|
|
2912
2915
|
{
|
|
2913
2916
|
type: "button",
|
|
2914
|
-
onClick: () =>
|
|
2917
|
+
onClick: () => h("forgot"),
|
|
2915
2918
|
variant: "link",
|
|
2916
2919
|
size: "sm",
|
|
2917
2920
|
fullWidth: !0,
|
|
@@ -2919,11 +2922,11 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2919
2922
|
children: "¿Olvidaste tu contraseña?"
|
|
2920
2923
|
}
|
|
2921
2924
|
),
|
|
2922
|
-
|
|
2925
|
+
f === "forgot" && /* @__PURE__ */ s(
|
|
2923
2926
|
q,
|
|
2924
2927
|
{
|
|
2925
2928
|
type: "button",
|
|
2926
|
-
onClick: () =>
|
|
2929
|
+
onClick: () => h("login"),
|
|
2927
2930
|
variant: "link",
|
|
2928
2931
|
size: "sm",
|
|
2929
2932
|
fullWidth: !0,
|
|
@@ -2941,14 +2944,14 @@ var Se = {
|
|
|
2941
2944
|
className: void 0,
|
|
2942
2945
|
style: void 0,
|
|
2943
2946
|
attr: void 0
|
|
2944
|
-
}, fe =
|
|
2947
|
+
}, fe = B.createContext && /* @__PURE__ */ B.createContext(Se), Mr = ["attr", "size", "title"];
|
|
2945
2948
|
function zr(e, r) {
|
|
2946
2949
|
if (e == null) return {};
|
|
2947
|
-
var t = Lr(e, r), o,
|
|
2950
|
+
var t = Lr(e, r), o, a;
|
|
2948
2951
|
if (Object.getOwnPropertySymbols) {
|
|
2949
|
-
var
|
|
2950
|
-
for (
|
|
2951
|
-
o = a
|
|
2952
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
2953
|
+
for (a = 0; a < l.length; a++)
|
|
2954
|
+
o = l[a], !(r.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
|
|
2952
2955
|
}
|
|
2953
2956
|
return t;
|
|
2954
2957
|
}
|
|
@@ -2976,8 +2979,8 @@ function he(e, r) {
|
|
|
2976
2979
|
var t = Object.keys(e);
|
|
2977
2980
|
if (Object.getOwnPropertySymbols) {
|
|
2978
2981
|
var o = Object.getOwnPropertySymbols(e);
|
|
2979
|
-
r && (o = o.filter(function(
|
|
2980
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
2982
|
+
r && (o = o.filter(function(a) {
|
|
2983
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
2981
2984
|
})), t.push.apply(t, o);
|
|
2982
2985
|
}
|
|
2983
2986
|
return t;
|
|
@@ -3011,12 +3014,12 @@ function Pr(e, r) {
|
|
|
3011
3014
|
return (r === "string" ? String : Number)(e);
|
|
3012
3015
|
}
|
|
3013
3016
|
function Pe(e) {
|
|
3014
|
-
return e && e.map((r, t) => /* @__PURE__ */
|
|
3017
|
+
return e && e.map((r, t) => /* @__PURE__ */ B.createElement(r.tag, ae({
|
|
3015
3018
|
key: t
|
|
3016
3019
|
}, r.attr), Pe(r.child)));
|
|
3017
3020
|
}
|
|
3018
3021
|
function J(e) {
|
|
3019
|
-
return (r) => /* @__PURE__ */
|
|
3022
|
+
return (r) => /* @__PURE__ */ B.createElement(Er, ne({
|
|
3020
3023
|
attr: ae({}, e.attr)
|
|
3021
3024
|
}, r), Pe(e.child));
|
|
3022
3025
|
}
|
|
@@ -3024,10 +3027,10 @@ function Er(e) {
|
|
|
3024
3027
|
var r = (t) => {
|
|
3025
3028
|
var {
|
|
3026
3029
|
attr: o,
|
|
3027
|
-
size:
|
|
3028
|
-
title:
|
|
3029
|
-
} = e, i = zr(e, Mr), n =
|
|
3030
|
-
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */
|
|
3030
|
+
size: a,
|
|
3031
|
+
title: l
|
|
3032
|
+
} = e, i = zr(e, Mr), n = a || t.size || "1em", c;
|
|
3033
|
+
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ B.createElement("svg", ne({
|
|
3031
3034
|
stroke: "currentColor",
|
|
3032
3035
|
fill: "currentColor",
|
|
3033
3036
|
strokeWidth: "0"
|
|
@@ -3039,9 +3042,9 @@ function Er(e) {
|
|
|
3039
3042
|
height: n,
|
|
3040
3043
|
width: n,
|
|
3041
3044
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3042
|
-
}),
|
|
3045
|
+
}), l && /* @__PURE__ */ B.createElement("title", null, l), e.children);
|
|
3043
3046
|
};
|
|
3044
|
-
return fe !== void 0 ? /* @__PURE__ */
|
|
3047
|
+
return fe !== void 0 ? /* @__PURE__ */ B.createElement(fe.Consumer, null, (t) => r(t)) : r(Se);
|
|
3045
3048
|
}
|
|
3046
3049
|
function Ar(e) {
|
|
3047
3050
|
return J({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "11", cy: "11", r: "8" }, child: [] }, { tag: "line", attr: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }, child: [] }] })(e);
|
|
@@ -3049,10 +3052,10 @@ function Ar(e) {
|
|
|
3049
3052
|
const Ir = (e, r = 500) => {
|
|
3050
3053
|
const [t, o] = $(e);
|
|
3051
3054
|
return H(() => {
|
|
3052
|
-
const
|
|
3055
|
+
const a = setTimeout(() => {
|
|
3053
3056
|
o(e);
|
|
3054
3057
|
}, r);
|
|
3055
|
-
return () => clearTimeout(
|
|
3058
|
+
return () => clearTimeout(a);
|
|
3056
3059
|
}, [e, r]), t;
|
|
3057
3060
|
}, Qr = () => ({ showToast: (r, t) => {
|
|
3058
3061
|
const o = {
|
|
@@ -3100,19 +3103,19 @@ function et({
|
|
|
3100
3103
|
onChange: r,
|
|
3101
3104
|
placeholder: t = "Search...",
|
|
3102
3105
|
disabled: o = !1,
|
|
3103
|
-
colorScheme:
|
|
3104
|
-
label:
|
|
3106
|
+
colorScheme: a = "secondary",
|
|
3107
|
+
label: l,
|
|
3105
3108
|
className: i = "",
|
|
3106
3109
|
debounceDelay: n = 500,
|
|
3107
3110
|
...c
|
|
3108
3111
|
}) {
|
|
3109
|
-
const [d,
|
|
3112
|
+
const [d, m] = $(e || ""), k = Ir(d, n), f = ve(r, [r]);
|
|
3110
3113
|
H(() => {
|
|
3111
|
-
|
|
3112
|
-
}, [
|
|
3114
|
+
f(k);
|
|
3115
|
+
}, [k, f]);
|
|
3113
3116
|
const v = () => {
|
|
3114
3117
|
const u = "w-full px-4 py-4 pl-10 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
|
|
3115
|
-
switch (
|
|
3118
|
+
switch (a) {
|
|
3116
3119
|
case "primary":
|
|
3117
3120
|
return p(
|
|
3118
3121
|
u,
|
|
@@ -3125,31 +3128,31 @@ function et({
|
|
|
3125
3128
|
"text-secondary border-secondary focus:border-secondary"
|
|
3126
3129
|
);
|
|
3127
3130
|
}
|
|
3128
|
-
},
|
|
3129
|
-
return /* @__PURE__ */
|
|
3130
|
-
|
|
3131
|
+
}, b = () => a === "primary" ? "text-primary" : "text-secondary", y = () => a === "primary" ? "text-primary" : "text-secondary";
|
|
3132
|
+
return /* @__PURE__ */ x("div", { className: p("mb-0", i), children: [
|
|
3133
|
+
l && /* @__PURE__ */ s(
|
|
3131
3134
|
"label",
|
|
3132
3135
|
{
|
|
3133
|
-
className: p("block mb-2 text-sm font-medium",
|
|
3134
|
-
children:
|
|
3136
|
+
className: p("block mb-2 text-sm font-medium", y()),
|
|
3137
|
+
children: l
|
|
3135
3138
|
}
|
|
3136
3139
|
),
|
|
3137
|
-
/* @__PURE__ */
|
|
3138
|
-
/* @__PURE__ */
|
|
3140
|
+
/* @__PURE__ */ x("div", { className: "relative w-full", children: [
|
|
3141
|
+
/* @__PURE__ */ s(
|
|
3139
3142
|
Ar,
|
|
3140
3143
|
{
|
|
3141
3144
|
className: p(
|
|
3142
3145
|
"absolute left-3 top-1/2 -translate-y-1/2 text-base pointer-events-none",
|
|
3143
|
-
|
|
3146
|
+
b()
|
|
3144
3147
|
)
|
|
3145
3148
|
}
|
|
3146
3149
|
),
|
|
3147
|
-
/* @__PURE__ */
|
|
3150
|
+
/* @__PURE__ */ s(
|
|
3148
3151
|
"input",
|
|
3149
3152
|
{
|
|
3150
3153
|
type: "text",
|
|
3151
3154
|
value: d,
|
|
3152
|
-
onChange: (u) =>
|
|
3155
|
+
onChange: (u) => m(u.target.value),
|
|
3153
3156
|
placeholder: t,
|
|
3154
3157
|
disabled: o,
|
|
3155
3158
|
className: v(),
|
|
@@ -3170,41 +3173,41 @@ function rt({
|
|
|
3170
3173
|
labelOf: r = "of",
|
|
3171
3174
|
setPagination: t,
|
|
3172
3175
|
totalPages: o,
|
|
3173
|
-
currentPage:
|
|
3174
|
-
showLabel:
|
|
3176
|
+
currentPage: a,
|
|
3177
|
+
showLabel: l = !0,
|
|
3175
3178
|
className: i = "",
|
|
3176
3179
|
isLoading: n = !1,
|
|
3177
3180
|
fetchPage: c
|
|
3178
3181
|
}) {
|
|
3179
|
-
const d = parseInt(String(
|
|
3180
|
-
n || (c ? c(
|
|
3182
|
+
const d = parseInt(String(a)) === 1 || parseInt(String(o)) === 0 || n, m = parseInt(String(a)) === parseInt(String(o)) || parseInt(String(o)) === 0 || n, k = () => {
|
|
3183
|
+
n || (c ? c(a - 1) : t && t((v) => ({
|
|
3181
3184
|
...v,
|
|
3182
3185
|
page: v.page - 1
|
|
3183
3186
|
})));
|
|
3184
|
-
},
|
|
3185
|
-
n || (c ? c(
|
|
3187
|
+
}, f = () => {
|
|
3188
|
+
n || (c ? c(a + 1) : t && t((v) => ({
|
|
3186
3189
|
...v,
|
|
3187
3190
|
page: v.page + 1
|
|
3188
3191
|
})));
|
|
3189
3192
|
};
|
|
3190
|
-
return /* @__PURE__ */
|
|
3191
|
-
/* @__PURE__ */
|
|
3193
|
+
return /* @__PURE__ */ x("div", { className: p("flex justify-center items-center mt-8", i), children: [
|
|
3194
|
+
/* @__PURE__ */ s(
|
|
3192
3195
|
q,
|
|
3193
3196
|
{
|
|
3194
3197
|
disabled: d,
|
|
3195
|
-
onClick:
|
|
3198
|
+
onClick: k,
|
|
3196
3199
|
variant: "secondary",
|
|
3197
|
-
children: /* @__PURE__ */
|
|
3200
|
+
children: /* @__PURE__ */ s(jr, { size: 14 })
|
|
3198
3201
|
}
|
|
3199
3202
|
),
|
|
3200
|
-
/* @__PURE__ */
|
|
3201
|
-
/* @__PURE__ */
|
|
3203
|
+
/* @__PURE__ */ s("h5", { className: "font-bold mx-2.5 text-text", children: `${l ? e : ""} ${a}${l ? ` ${r} ` : " / "}${o}` }),
|
|
3204
|
+
/* @__PURE__ */ s(
|
|
3202
3205
|
q,
|
|
3203
3206
|
{
|
|
3204
|
-
disabled:
|
|
3205
|
-
onClick:
|
|
3207
|
+
disabled: m,
|
|
3208
|
+
onClick: f,
|
|
3206
3209
|
variant: "primary",
|
|
3207
|
-
children: /* @__PURE__ */
|
|
3210
|
+
children: /* @__PURE__ */ s(Or, { size: 14 })
|
|
3208
3211
|
}
|
|
3209
3212
|
)
|
|
3210
3213
|
] });
|
|
@@ -3223,58 +3226,58 @@ function tt({
|
|
|
3223
3226
|
subtitle: r,
|
|
3224
3227
|
children: t,
|
|
3225
3228
|
defaultExpanded: o = !1,
|
|
3226
|
-
expanded:
|
|
3227
|
-
onToggle:
|
|
3229
|
+
expanded: a,
|
|
3230
|
+
onToggle: l,
|
|
3228
3231
|
className: i = "",
|
|
3229
3232
|
colorScheme: n = "primary",
|
|
3230
3233
|
icon: c,
|
|
3231
3234
|
disabled: d = !1,
|
|
3232
|
-
headerExtra:
|
|
3235
|
+
headerExtra: m
|
|
3233
3236
|
}) {
|
|
3234
|
-
const [
|
|
3237
|
+
const [k, f] = $(o), v = a !== void 0 ? a : k, b = () => {
|
|
3235
3238
|
if (d) return;
|
|
3236
|
-
const
|
|
3237
|
-
|
|
3238
|
-
},
|
|
3239
|
-
return /* @__PURE__ */
|
|
3239
|
+
const h = !v;
|
|
3240
|
+
a === void 0 && f(h), l?.(h);
|
|
3241
|
+
}, y = () => n === "primary" ? "border-primary" : "border-secondary", u = () => n === "primary" ? "text-primary" : "text-secondary", w = () => n === "primary" ? "hover:bg-primary/5" : "hover:bg-secondary/5";
|
|
3242
|
+
return /* @__PURE__ */ x(
|
|
3240
3243
|
"div",
|
|
3241
3244
|
{
|
|
3242
3245
|
className: p(
|
|
3243
3246
|
"w-full rounded-lg border-2 bg-background transition-all duration-300",
|
|
3244
|
-
|
|
3247
|
+
y(),
|
|
3245
3248
|
v && "shadow-lg",
|
|
3246
3249
|
i
|
|
3247
3250
|
),
|
|
3248
3251
|
children: [
|
|
3249
|
-
/* @__PURE__ */
|
|
3252
|
+
/* @__PURE__ */ x(
|
|
3250
3253
|
"button",
|
|
3251
3254
|
{
|
|
3252
3255
|
type: "button",
|
|
3253
|
-
onClick:
|
|
3256
|
+
onClick: b,
|
|
3254
3257
|
disabled: d,
|
|
3255
3258
|
className: p(
|
|
3256
3259
|
"w-full flex cursor-pointer items-center justify-between p-4 text-left transition-all duration-300 rounded-lg",
|
|
3257
|
-
!d &&
|
|
3260
|
+
!d && w(),
|
|
3258
3261
|
d && "opacity-50"
|
|
3259
3262
|
),
|
|
3260
3263
|
"aria-expanded": v,
|
|
3261
3264
|
children: [
|
|
3262
|
-
/* @__PURE__ */
|
|
3263
|
-
c && /* @__PURE__ */
|
|
3264
|
-
/* @__PURE__ */
|
|
3265
|
-
/* @__PURE__ */
|
|
3265
|
+
/* @__PURE__ */ x("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
|
|
3266
|
+
c && /* @__PURE__ */ s("div", { className: p("shrink-0", u()), children: c }),
|
|
3267
|
+
/* @__PURE__ */ x("div", { className: "flex-1 min-w-0", children: [
|
|
3268
|
+
/* @__PURE__ */ s(
|
|
3266
3269
|
"h3",
|
|
3267
3270
|
{
|
|
3268
3271
|
className: p("text-base font-medium truncate", u()),
|
|
3269
3272
|
children: e
|
|
3270
3273
|
}
|
|
3271
3274
|
),
|
|
3272
|
-
r && /* @__PURE__ */
|
|
3275
|
+
r && /* @__PURE__ */ s("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
|
|
3273
3276
|
] })
|
|
3274
3277
|
] }),
|
|
3275
|
-
/* @__PURE__ */
|
|
3276
|
-
|
|
3277
|
-
/* @__PURE__ */
|
|
3278
|
+
/* @__PURE__ */ x("div", { className: "flex items-center gap-3 shrink-0", children: [
|
|
3279
|
+
m && /* @__PURE__ */ s("div", { onClick: (h) => h.stopPropagation(), children: m }),
|
|
3280
|
+
/* @__PURE__ */ s(
|
|
3278
3281
|
"div",
|
|
3279
3282
|
{
|
|
3280
3283
|
className: p(
|
|
@@ -3282,21 +3285,21 @@ function tt({
|
|
|
3282
3285
|
u(),
|
|
3283
3286
|
v && "rotate-180"
|
|
3284
3287
|
),
|
|
3285
|
-
children: /* @__PURE__ */
|
|
3288
|
+
children: /* @__PURE__ */ s(Ee, { className: "h-5 w-5" })
|
|
3286
3289
|
}
|
|
3287
3290
|
)
|
|
3288
3291
|
] })
|
|
3289
3292
|
]
|
|
3290
3293
|
}
|
|
3291
3294
|
),
|
|
3292
|
-
/* @__PURE__ */
|
|
3295
|
+
/* @__PURE__ */ s(
|
|
3293
3296
|
"div",
|
|
3294
3297
|
{
|
|
3295
3298
|
className: p(
|
|
3296
3299
|
"overflow-hidden transition-all duration-300 ease-in-out",
|
|
3297
3300
|
v ? "max-h-500 opacity-100" : "max-h-0 opacity-0"
|
|
3298
3301
|
),
|
|
3299
|
-
children: /* @__PURE__ */
|
|
3302
|
+
children: /* @__PURE__ */ s("div", { className: p("p-4 pt-0 border-t-0", y()), children: /* @__PURE__ */ s("div", { className: "border-t border-border pt-4", children: t }) })
|
|
3300
3303
|
}
|
|
3301
3304
|
)
|
|
3302
3305
|
]
|
|
@@ -3304,47 +3307,47 @@ function tt({
|
|
|
3304
3307
|
);
|
|
3305
3308
|
}
|
|
3306
3309
|
function ot({ children: e, className: r = "" }) {
|
|
3307
|
-
return /* @__PURE__ */
|
|
3310
|
+
return /* @__PURE__ */ s("div", { className: p("py-4", r), children: e });
|
|
3308
3311
|
}
|
|
3309
3312
|
function nt({
|
|
3310
3313
|
options: e,
|
|
3311
3314
|
value: r,
|
|
3312
3315
|
onChange: t,
|
|
3313
3316
|
children: o,
|
|
3314
|
-
className:
|
|
3315
|
-
colorScheme:
|
|
3317
|
+
className: a = "",
|
|
3318
|
+
colorScheme: l = "primary",
|
|
3316
3319
|
variant: i = "underline"
|
|
3317
3320
|
}) {
|
|
3318
3321
|
const [n, c] = $(
|
|
3319
3322
|
r ?? e[0]?.value ?? ""
|
|
3320
|
-
), d = r !== void 0 ? r : n,
|
|
3321
|
-
r === void 0 && c(
|
|
3322
|
-
},
|
|
3323
|
-
const u = d ===
|
|
3324
|
-
if (
|
|
3325
|
-
return p(
|
|
3323
|
+
), d = r !== void 0 ? r : n, m = (b) => {
|
|
3324
|
+
r === void 0 && c(b), t?.(b);
|
|
3325
|
+
}, k = (b, y) => {
|
|
3326
|
+
const u = d === b, w = "px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";
|
|
3327
|
+
if (y)
|
|
3328
|
+
return p(w, "text-text-muted");
|
|
3326
3329
|
switch (i) {
|
|
3327
3330
|
case "filled":
|
|
3328
3331
|
return p(
|
|
3329
|
-
|
|
3332
|
+
w,
|
|
3330
3333
|
"rounded-lg",
|
|
3331
|
-
u ?
|
|
3334
|
+
u ? l === "primary" ? "bg-primary text-white" : "bg-secondary text-white" : "text-text-muted hover:bg-background-light"
|
|
3332
3335
|
);
|
|
3333
3336
|
case "pills":
|
|
3334
3337
|
return p(
|
|
3335
|
-
|
|
3338
|
+
w,
|
|
3336
3339
|
"rounded-full",
|
|
3337
|
-
u ?
|
|
3340
|
+
u ? l === "primary" ? "bg-primary/10 text-primary border-2 border-primary" : "bg-secondary/10 text-secondary border-2 border-secondary" : "text-text-muted hover:bg-background-light border-2 border-transparent"
|
|
3338
3341
|
);
|
|
3339
3342
|
case "underline":
|
|
3340
3343
|
default:
|
|
3341
3344
|
return p(
|
|
3342
|
-
|
|
3345
|
+
w,
|
|
3343
3346
|
"border-b-2",
|
|
3344
|
-
u ?
|
|
3347
|
+
u ? l === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-text-muted hover:text-text hover:border-border"
|
|
3345
3348
|
);
|
|
3346
3349
|
}
|
|
3347
|
-
},
|
|
3350
|
+
}, f = () => {
|
|
3348
3351
|
switch (i) {
|
|
3349
3352
|
case "filled":
|
|
3350
3353
|
return "flex gap-1 p-1 bg-background-light rounded-lg";
|
|
@@ -3354,23 +3357,23 @@ function nt({
|
|
|
3354
3357
|
default:
|
|
3355
3358
|
return "flex border-b-2 border-border";
|
|
3356
3359
|
}
|
|
3357
|
-
}, v =
|
|
3358
|
-
return /* @__PURE__ */
|
|
3359
|
-
/* @__PURE__ */
|
|
3360
|
+
}, v = B.Children.toArray(o).find((b) => B.isValidElement(b) ? b.props.value === d : !1);
|
|
3361
|
+
return /* @__PURE__ */ x("div", { className: p("w-full", a), children: [
|
|
3362
|
+
/* @__PURE__ */ s("div", { className: f(), role: "tablist", children: e.map((b) => /* @__PURE__ */ s(
|
|
3360
3363
|
"button",
|
|
3361
3364
|
{
|
|
3362
3365
|
type: "button",
|
|
3363
3366
|
role: "tab",
|
|
3364
|
-
"aria-selected": d ===
|
|
3365
|
-
"aria-controls": `tabpanel-${
|
|
3366
|
-
disabled:
|
|
3367
|
-
onClick: () => !
|
|
3368
|
-
className:
|
|
3369
|
-
children:
|
|
3367
|
+
"aria-selected": d === b.value,
|
|
3368
|
+
"aria-controls": `tabpanel-${b.value}`,
|
|
3369
|
+
disabled: b.disabled,
|
|
3370
|
+
onClick: () => !b.disabled && m(b.value),
|
|
3371
|
+
className: k(b.value, b.disabled),
|
|
3372
|
+
children: b.label
|
|
3370
3373
|
},
|
|
3371
|
-
|
|
3374
|
+
b.value
|
|
3372
3375
|
)) }),
|
|
3373
|
-
/* @__PURE__ */
|
|
3376
|
+
/* @__PURE__ */ s("div", { role: "tabpanel", id: `tabpanel-${d}`, children: v })
|
|
3374
3377
|
] });
|
|
3375
3378
|
}
|
|
3376
3379
|
function ye(e) {
|
|
@@ -3434,34 +3437,34 @@ function at({
|
|
|
3434
3437
|
onChange: r,
|
|
3435
3438
|
disabled: t = !1,
|
|
3436
3439
|
className: o = "",
|
|
3437
|
-
colorScheme:
|
|
3438
|
-
lang:
|
|
3440
|
+
colorScheme: a = "secondary",
|
|
3441
|
+
lang: l = "en",
|
|
3439
3442
|
...i
|
|
3440
3443
|
}) {
|
|
3441
3444
|
const [n, c] = $(e || /* @__PURE__ */ new Date()), d = {
|
|
3442
3445
|
en: "en-US",
|
|
3443
3446
|
es: "es-ES"
|
|
3444
|
-
},
|
|
3447
|
+
}, m = {
|
|
3445
3448
|
en: Fr,
|
|
3446
3449
|
es: Rr
|
|
3447
|
-
},
|
|
3450
|
+
}, k = {
|
|
3448
3451
|
en: _r,
|
|
3449
3452
|
es: Vr
|
|
3450
|
-
},
|
|
3451
|
-
for (let
|
|
3452
|
-
|
|
3453
|
-
for (let
|
|
3454
|
-
const
|
|
3453
|
+
}, f = Br(n), v = Gr(n), b = [];
|
|
3454
|
+
for (let g = 0; g < v; g++)
|
|
3455
|
+
b.push(null);
|
|
3456
|
+
for (let g = 1; g <= f; g++) {
|
|
3457
|
+
const j = new Date(
|
|
3455
3458
|
n.getFullYear(),
|
|
3456
3459
|
n.getMonth(),
|
|
3457
|
-
|
|
3460
|
+
g,
|
|
3458
3461
|
12,
|
|
3459
3462
|
0,
|
|
3460
3463
|
0
|
|
3461
3464
|
);
|
|
3462
|
-
|
|
3465
|
+
b.push(j);
|
|
3463
3466
|
}
|
|
3464
|
-
const
|
|
3467
|
+
const y = () => {
|
|
3465
3468
|
c(
|
|
3466
3469
|
new Date(
|
|
3467
3470
|
n.getFullYear(),
|
|
@@ -3483,7 +3486,7 @@ function at({
|
|
|
3483
3486
|
0
|
|
3484
3487
|
)
|
|
3485
3488
|
);
|
|
3486
|
-
},
|
|
3489
|
+
}, w = () => {
|
|
3487
3490
|
c(
|
|
3488
3491
|
new Date(
|
|
3489
3492
|
n.getFullYear() - 1,
|
|
@@ -3494,7 +3497,7 @@ function at({
|
|
|
3494
3497
|
0
|
|
3495
3498
|
)
|
|
3496
3499
|
);
|
|
3497
|
-
},
|
|
3500
|
+
}, h = () => {
|
|
3498
3501
|
c(
|
|
3499
3502
|
new Date(
|
|
3500
3503
|
n.getFullYear() + 1,
|
|
@@ -3505,20 +3508,20 @@ function at({
|
|
|
3505
3508
|
0
|
|
3506
3509
|
)
|
|
3507
3510
|
);
|
|
3508
|
-
}, L = (
|
|
3509
|
-
if (
|
|
3510
|
-
const
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3511
|
+
}, L = (g) => {
|
|
3512
|
+
if (g && !t) {
|
|
3513
|
+
const j = new Date(
|
|
3514
|
+
g.getFullYear(),
|
|
3515
|
+
g.getMonth(),
|
|
3516
|
+
g.getDate(),
|
|
3514
3517
|
12,
|
|
3515
3518
|
0,
|
|
3516
3519
|
0
|
|
3517
3520
|
);
|
|
3518
|
-
c(
|
|
3521
|
+
c(j), r?.(j);
|
|
3519
3522
|
}
|
|
3520
|
-
},
|
|
3521
|
-
switch (
|
|
3523
|
+
}, z = (() => {
|
|
3524
|
+
switch (a) {
|
|
3522
3525
|
case "primary":
|
|
3523
3526
|
return {
|
|
3524
3527
|
header: "text-primary",
|
|
@@ -3535,8 +3538,8 @@ function at({
|
|
|
3535
3538
|
button: "text-secondary border-secondary hover:bg-secondary/20"
|
|
3536
3539
|
};
|
|
3537
3540
|
}
|
|
3538
|
-
})(),
|
|
3539
|
-
return /* @__PURE__ */
|
|
3541
|
+
})(), E = (g) => g && e ? g.toDateString() === e.toDateString() : !1;
|
|
3542
|
+
return /* @__PURE__ */ x(
|
|
3540
3543
|
"div",
|
|
3541
3544
|
{
|
|
3542
3545
|
className: p(
|
|
@@ -3545,64 +3548,64 @@ function at({
|
|
|
3545
3548
|
),
|
|
3546
3549
|
...i,
|
|
3547
3550
|
children: [
|
|
3548
|
-
/* @__PURE__ */
|
|
3549
|
-
/* @__PURE__ */
|
|
3551
|
+
/* @__PURE__ */ x("div", { className: "mb-6", children: [
|
|
3552
|
+
/* @__PURE__ */ x(
|
|
3550
3553
|
"div",
|
|
3551
3554
|
{
|
|
3552
3555
|
className: p(
|
|
3553
3556
|
"flex items-center justify-between mb-4",
|
|
3554
|
-
|
|
3557
|
+
z.header
|
|
3555
3558
|
),
|
|
3556
3559
|
children: [
|
|
3557
|
-
/* @__PURE__ */
|
|
3560
|
+
/* @__PURE__ */ s(
|
|
3558
3561
|
"button",
|
|
3559
3562
|
{
|
|
3560
3563
|
type: "button",
|
|
3561
|
-
onClick:
|
|
3564
|
+
onClick: w,
|
|
3562
3565
|
disabled: t,
|
|
3563
3566
|
className: p(
|
|
3564
3567
|
"p-2 rounded-lg border transition-all duration-300",
|
|
3565
|
-
|
|
3568
|
+
z.button,
|
|
3566
3569
|
t && "opacity-50 cursor-not-allowed"
|
|
3567
3570
|
),
|
|
3568
|
-
children: /* @__PURE__ */
|
|
3571
|
+
children: /* @__PURE__ */ s(ye, { size: 18 })
|
|
3569
3572
|
}
|
|
3570
3573
|
),
|
|
3571
|
-
/* @__PURE__ */
|
|
3572
|
-
/* @__PURE__ */
|
|
3574
|
+
/* @__PURE__ */ s("h2", { className: "font-semibold text-lg", children: n.getFullYear() }),
|
|
3575
|
+
/* @__PURE__ */ s(
|
|
3573
3576
|
"button",
|
|
3574
3577
|
{
|
|
3575
3578
|
type: "button",
|
|
3576
|
-
onClick:
|
|
3579
|
+
onClick: h,
|
|
3577
3580
|
disabled: t,
|
|
3578
3581
|
className: p(
|
|
3579
3582
|
"p-2 rounded-lg border transition-all duration-300",
|
|
3580
|
-
|
|
3583
|
+
z.button,
|
|
3581
3584
|
t && "opacity-50 cursor-not-allowed"
|
|
3582
3585
|
),
|
|
3583
|
-
children: /* @__PURE__ */
|
|
3586
|
+
children: /* @__PURE__ */ s(xe, { size: 18 })
|
|
3584
3587
|
}
|
|
3585
3588
|
)
|
|
3586
3589
|
]
|
|
3587
3590
|
}
|
|
3588
3591
|
),
|
|
3589
|
-
/* @__PURE__ */
|
|
3590
|
-
/* @__PURE__ */
|
|
3592
|
+
/* @__PURE__ */ x("div", { className: p("flex items-center justify-between", z.header), children: [
|
|
3593
|
+
/* @__PURE__ */ s(
|
|
3591
3594
|
"button",
|
|
3592
3595
|
{
|
|
3593
3596
|
type: "button",
|
|
3594
|
-
onClick:
|
|
3597
|
+
onClick: y,
|
|
3595
3598
|
disabled: t,
|
|
3596
3599
|
className: p(
|
|
3597
3600
|
"p-2 rounded-lg border transition-all duration-300",
|
|
3598
|
-
|
|
3601
|
+
z.button,
|
|
3599
3602
|
t && "opacity-50 cursor-not-allowed"
|
|
3600
3603
|
),
|
|
3601
|
-
children: /* @__PURE__ */
|
|
3604
|
+
children: /* @__PURE__ */ s(ye, { size: 18 })
|
|
3602
3605
|
}
|
|
3603
3606
|
),
|
|
3604
|
-
/* @__PURE__ */
|
|
3605
|
-
/* @__PURE__ */
|
|
3607
|
+
/* @__PURE__ */ s("h2", { className: "font-semibold text-lg", children: k[l][n.getMonth()] }),
|
|
3608
|
+
/* @__PURE__ */ s(
|
|
3606
3609
|
"button",
|
|
3607
3610
|
{
|
|
3608
3611
|
type: "button",
|
|
@@ -3610,52 +3613,52 @@ function at({
|
|
|
3610
3613
|
disabled: t,
|
|
3611
3614
|
className: p(
|
|
3612
3615
|
"p-2 rounded-lg border transition-all duration-300",
|
|
3613
|
-
|
|
3616
|
+
z.button,
|
|
3614
3617
|
t && "opacity-50 cursor-not-allowed"
|
|
3615
3618
|
),
|
|
3616
|
-
children: /* @__PURE__ */
|
|
3619
|
+
children: /* @__PURE__ */ s(xe, { size: 18 })
|
|
3617
3620
|
}
|
|
3618
3621
|
)
|
|
3619
3622
|
] })
|
|
3620
3623
|
] }),
|
|
3621
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2 mb-4", children: m[l].map((g) => /* @__PURE__ */ s(
|
|
3622
3625
|
"div",
|
|
3623
3626
|
{
|
|
3624
3627
|
className: p(
|
|
3625
3628
|
"text-center text-sm font-medium py-2",
|
|
3626
|
-
|
|
3629
|
+
z.header
|
|
3627
3630
|
),
|
|
3628
|
-
children:
|
|
3631
|
+
children: g
|
|
3629
3632
|
},
|
|
3630
|
-
|
|
3633
|
+
g
|
|
3631
3634
|
)) }),
|
|
3632
|
-
/* @__PURE__ */
|
|
3635
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2", children: b.map((g, j) => /* @__PURE__ */ s(
|
|
3633
3636
|
"button",
|
|
3634
3637
|
{
|
|
3635
3638
|
type: "button",
|
|
3636
|
-
onClick: () => L(
|
|
3637
|
-
disabled: !
|
|
3639
|
+
onClick: () => L(g),
|
|
3640
|
+
disabled: !g || t,
|
|
3638
3641
|
className: p(
|
|
3639
3642
|
"p-2 rounded-lg text-sm font-medium transition-all duration-300",
|
|
3640
|
-
|
|
3643
|
+
g ? p(
|
|
3641
3644
|
"cursor-pointer",
|
|
3642
|
-
|
|
3643
|
-
|
|
3645
|
+
z.hover,
|
|
3646
|
+
E(g) ? z.selected : "text-text border border-transparent hover:border-border",
|
|
3644
3647
|
t && "opacity-50 cursor-not-allowed"
|
|
3645
3648
|
) : "cursor-default"
|
|
3646
3649
|
),
|
|
3647
|
-
children:
|
|
3650
|
+
children: g ? g.getDate() : ""
|
|
3648
3651
|
},
|
|
3649
|
-
|
|
3652
|
+
j
|
|
3650
3653
|
)) }),
|
|
3651
|
-
e && /* @__PURE__ */
|
|
3654
|
+
e && /* @__PURE__ */ s(
|
|
3652
3655
|
"div",
|
|
3653
3656
|
{
|
|
3654
3657
|
className: p(
|
|
3655
3658
|
"mt-6 p-3 rounded-lg bg-background-dark border border-border text-center text-sm font-medium",
|
|
3656
|
-
|
|
3659
|
+
z.header
|
|
3657
3660
|
),
|
|
3658
|
-
children: e.toLocaleDateString(d[
|
|
3661
|
+
children: e.toLocaleDateString(d[l], {
|
|
3659
3662
|
year: "numeric",
|
|
3660
3663
|
month: "long",
|
|
3661
3664
|
day: "numeric"
|
|
@@ -3671,71 +3674,71 @@ function st({
|
|
|
3671
3674
|
data: r,
|
|
3672
3675
|
loading: t,
|
|
3673
3676
|
loadingText: o = "Loading...",
|
|
3674
|
-
actions:
|
|
3675
|
-
actionsHeader:
|
|
3677
|
+
actions: a,
|
|
3678
|
+
actionsHeader: l = "Actions",
|
|
3676
3679
|
onRowClick: i,
|
|
3677
3680
|
className: n = "",
|
|
3678
3681
|
rowClassName: c = "",
|
|
3679
3682
|
cellClassName: d = "",
|
|
3680
|
-
headerClassName:
|
|
3681
|
-
emptyText:
|
|
3682
|
-
showCount:
|
|
3683
|
-
countText: v = (
|
|
3684
|
-
keyExtractor:
|
|
3683
|
+
headerClassName: m = "",
|
|
3684
|
+
emptyText: k = "No data available",
|
|
3685
|
+
showCount: f = !0,
|
|
3686
|
+
countText: v = (y) => `Showing ${y} record${y !== 1 ? "s" : ""}`,
|
|
3687
|
+
keyExtractor: b = (y, u) => y._id || y.id || u
|
|
3685
3688
|
}) {
|
|
3686
3689
|
if (t)
|
|
3687
|
-
return /* @__PURE__ */
|
|
3690
|
+
return /* @__PURE__ */ s("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ s("div", { className: "text-lg text-text-light", children: o }) });
|
|
3688
3691
|
if (r.length === 0)
|
|
3689
|
-
return /* @__PURE__ */
|
|
3690
|
-
const
|
|
3691
|
-
const
|
|
3692
|
-
let L = u[
|
|
3692
|
+
return /* @__PURE__ */ s("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ s("div", { className: "text-lg text-text-muted", children: k }) });
|
|
3693
|
+
const y = (u, w) => {
|
|
3694
|
+
const h = w.toLowerCase().replace(/\s+/g, "_");
|
|
3695
|
+
let L = u[h];
|
|
3693
3696
|
if (L === void 0) {
|
|
3694
3697
|
const P = [
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
+
h.replace(/_/g, ""),
|
|
3699
|
+
w.toLowerCase().replace(/\s+/g, ""),
|
|
3700
|
+
h.replace(/_([a-z])/g, (z, E) => E.toUpperCase())
|
|
3698
3701
|
];
|
|
3699
|
-
for (const
|
|
3700
|
-
if (u[
|
|
3701
|
-
L = u[
|
|
3702
|
+
for (const z of P)
|
|
3703
|
+
if (u[z] !== void 0) {
|
|
3704
|
+
L = u[z];
|
|
3702
3705
|
break;
|
|
3703
3706
|
}
|
|
3704
3707
|
}
|
|
3705
3708
|
if (L === void 0) {
|
|
3706
|
-
const P =
|
|
3707
|
-
(
|
|
3709
|
+
const P = w.toLowerCase().split(" "), z = Object.keys(u).find(
|
|
3710
|
+
(E) => P.some((g) => E.toLowerCase().includes(g))
|
|
3708
3711
|
);
|
|
3709
|
-
|
|
3712
|
+
z && (L = u[z]);
|
|
3710
3713
|
}
|
|
3711
3714
|
return L != null ? String(L) : "N/A";
|
|
3712
3715
|
};
|
|
3713
|
-
return /* @__PURE__ */
|
|
3714
|
-
/* @__PURE__ */
|
|
3715
|
-
/* @__PURE__ */
|
|
3716
|
-
e.map((u,
|
|
3716
|
+
return /* @__PURE__ */ x("div", { className: p("overflow-x-auto", n), children: [
|
|
3717
|
+
/* @__PURE__ */ x("table", { className: "w-full border-collapse", children: [
|
|
3718
|
+
/* @__PURE__ */ s("thead", { children: /* @__PURE__ */ x("tr", { className: "border-b-2 border-border", children: [
|
|
3719
|
+
e.map((u, w) => /* @__PURE__ */ s(
|
|
3717
3720
|
"th",
|
|
3718
3721
|
{
|
|
3719
3722
|
className: p(
|
|
3720
3723
|
"text-left py-3 px-4 font-semibold text-text",
|
|
3721
|
-
|
|
3724
|
+
m
|
|
3722
3725
|
),
|
|
3723
3726
|
children: u
|
|
3724
3727
|
},
|
|
3725
|
-
|
|
3728
|
+
w
|
|
3726
3729
|
)),
|
|
3727
|
-
|
|
3730
|
+
a && /* @__PURE__ */ s(
|
|
3728
3731
|
"th",
|
|
3729
3732
|
{
|
|
3730
3733
|
className: p(
|
|
3731
3734
|
"text-center py-3 px-4 font-semibold text-text",
|
|
3732
|
-
|
|
3735
|
+
m
|
|
3733
3736
|
),
|
|
3734
|
-
children:
|
|
3737
|
+
children: l
|
|
3735
3738
|
}
|
|
3736
3739
|
)
|
|
3737
3740
|
] }) }),
|
|
3738
|
-
/* @__PURE__ */
|
|
3741
|
+
/* @__PURE__ */ s("tbody", { children: r.map((u, w) => /* @__PURE__ */ x(
|
|
3739
3742
|
"tr",
|
|
3740
3743
|
{
|
|
3741
3744
|
className: p(
|
|
@@ -3745,36 +3748,36 @@ function st({
|
|
|
3745
3748
|
),
|
|
3746
3749
|
onClick: () => i?.(u),
|
|
3747
3750
|
children: [
|
|
3748
|
-
e.map((
|
|
3749
|
-
|
|
3750
|
-
const P = (
|
|
3751
|
-
|
|
3751
|
+
e.map((h, L) => /* @__PURE__ */ s("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ s("div", { className: "text-text-light", children: y(u, h) }) }, L)),
|
|
3752
|
+
a && /* @__PURE__ */ s("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ s("div", { className: "flex gap-2 justify-center", children: a.map((h, L) => {
|
|
3753
|
+
const P = (z) => {
|
|
3754
|
+
z?.stopPropagation(), h.onClick?.(u);
|
|
3752
3755
|
};
|
|
3753
|
-
if (
|
|
3754
|
-
const
|
|
3755
|
-
return /* @__PURE__ */
|
|
3756
|
-
|
|
3756
|
+
if (h.component) {
|
|
3757
|
+
const z = h.component;
|
|
3758
|
+
return /* @__PURE__ */ x(
|
|
3759
|
+
z,
|
|
3757
3760
|
{
|
|
3758
3761
|
onClick: P,
|
|
3759
|
-
className:
|
|
3760
|
-
...
|
|
3762
|
+
className: h.className || "",
|
|
3763
|
+
...h.props || {},
|
|
3761
3764
|
children: [
|
|
3762
|
-
|
|
3763
|
-
|
|
3765
|
+
h.icon && /* @__PURE__ */ s("span", { className: "inline-block", children: B.createElement(h.icon) }),
|
|
3766
|
+
h.label && h.label
|
|
3764
3767
|
]
|
|
3765
3768
|
},
|
|
3766
3769
|
L
|
|
3767
3770
|
);
|
|
3768
3771
|
}
|
|
3769
|
-
return /* @__PURE__ */
|
|
3772
|
+
return /* @__PURE__ */ x(
|
|
3770
3773
|
q,
|
|
3771
3774
|
{
|
|
3772
3775
|
onClick: P,
|
|
3773
|
-
className:
|
|
3774
|
-
...
|
|
3776
|
+
className: h.className || "",
|
|
3777
|
+
...h.props || {},
|
|
3775
3778
|
children: [
|
|
3776
|
-
|
|
3777
|
-
|
|
3779
|
+
h.icon && /* @__PURE__ */ s("span", { className: "inline-block", children: B.createElement(h.icon) }),
|
|
3780
|
+
h.label && h.label
|
|
3778
3781
|
]
|
|
3779
3782
|
},
|
|
3780
3783
|
L
|
|
@@ -3782,10 +3785,10 @@ function st({
|
|
|
3782
3785
|
}) }) })
|
|
3783
3786
|
]
|
|
3784
3787
|
},
|
|
3785
|
-
|
|
3788
|
+
b(u, w)
|
|
3786
3789
|
)) })
|
|
3787
3790
|
] }),
|
|
3788
|
-
|
|
3791
|
+
f && r.length > 0 && /* @__PURE__ */ s("div", { className: "mt-6 text-center text-text-light text-sm", children: v(r.length) })
|
|
3789
3792
|
] });
|
|
3790
3793
|
}
|
|
3791
3794
|
function lt({
|
|
@@ -3793,100 +3796,100 @@ function lt({
|
|
|
3793
3796
|
options: r,
|
|
3794
3797
|
value: t = "",
|
|
3795
3798
|
onChange: o,
|
|
3796
|
-
multiple:
|
|
3797
|
-
className:
|
|
3799
|
+
multiple: a = !1,
|
|
3800
|
+
className: l = "",
|
|
3798
3801
|
searchable: i = !1,
|
|
3799
3802
|
onSearchInputCustom: n,
|
|
3800
3803
|
placeholder: c = "Select...",
|
|
3801
3804
|
disabled: d = !1,
|
|
3802
|
-
error:
|
|
3803
|
-
required:
|
|
3804
|
-
colorScheme:
|
|
3805
|
+
error: m,
|
|
3806
|
+
required: k = !1,
|
|
3807
|
+
colorScheme: f = "primary",
|
|
3805
3808
|
noResultsText: v = "No results found",
|
|
3806
|
-
searchPlaceholder:
|
|
3807
|
-
...
|
|
3809
|
+
searchPlaceholder: b = "Search...",
|
|
3810
|
+
...y
|
|
3808
3811
|
}) {
|
|
3809
|
-
const [u,
|
|
3812
|
+
const [u, w] = $(!1), [h, L] = $(""), [P, z] = $({
|
|
3810
3813
|
top: 0,
|
|
3811
3814
|
left: 0,
|
|
3812
3815
|
openUpward: !1
|
|
3813
|
-
}),
|
|
3814
|
-
|
|
3815
|
-
),
|
|
3816
|
-
const
|
|
3817
|
-
if (
|
|
3818
|
-
return p(
|
|
3819
|
-
switch (
|
|
3816
|
+
}), E = Array.isArray(t) ? t : t ? [t] : [], [g, j] = $(
|
|
3817
|
+
E.map((C) => r.find((D) => D.value === C)).filter(Boolean)
|
|
3818
|
+
), F = ce(null), G = ce(null), K = () => {
|
|
3819
|
+
const C = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed";
|
|
3820
|
+
if (m)
|
|
3821
|
+
return p(C, "border-danger focus:border-danger");
|
|
3822
|
+
switch (f) {
|
|
3820
3823
|
case "primary":
|
|
3821
3824
|
return p(
|
|
3822
|
-
|
|
3825
|
+
C,
|
|
3823
3826
|
"text-primary border-primary focus:border-primary"
|
|
3824
3827
|
);
|
|
3825
3828
|
case "secondary":
|
|
3826
3829
|
default:
|
|
3827
3830
|
return p(
|
|
3828
|
-
|
|
3831
|
+
C,
|
|
3829
3832
|
"text-secondary border-secondary focus:border-secondary"
|
|
3830
3833
|
);
|
|
3831
3834
|
}
|
|
3832
|
-
}, S = () =>
|
|
3835
|
+
}, S = () => f === "primary" ? "text-primary" : "text-secondary";
|
|
3833
3836
|
H(() => {
|
|
3834
|
-
const D = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((
|
|
3835
|
-
|
|
3837
|
+
const D = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((R) => r.find((_) => _.value === R)).filter(Boolean);
|
|
3838
|
+
j(D);
|
|
3836
3839
|
}, [t, r]), H(() => {
|
|
3837
3840
|
u && i && G.current && G.current.focus();
|
|
3838
3841
|
}, [u, i]);
|
|
3839
|
-
const
|
|
3840
|
-
if (!
|
|
3841
|
-
const
|
|
3842
|
-
|
|
3843
|
-
top: X ?
|
|
3844
|
-
left:
|
|
3845
|
-
width:
|
|
3842
|
+
const M = ve(() => {
|
|
3843
|
+
if (!F.current) return;
|
|
3844
|
+
const C = F.current.getBoundingClientRect(), D = window.innerHeight, R = 250, X = D - C.bottom < R && C.top > R;
|
|
3845
|
+
z({
|
|
3846
|
+
top: X ? C.top : C.bottom,
|
|
3847
|
+
left: C.left,
|
|
3848
|
+
width: C.width,
|
|
3846
3849
|
openUpward: X
|
|
3847
3850
|
});
|
|
3848
3851
|
}, []);
|
|
3849
3852
|
H(() => {
|
|
3850
|
-
function
|
|
3851
|
-
|
|
3853
|
+
function C(R) {
|
|
3854
|
+
F.current && !F.current.contains(R.target) && w(!1);
|
|
3852
3855
|
}
|
|
3853
3856
|
function D() {
|
|
3854
|
-
u &&
|
|
3857
|
+
u && M();
|
|
3855
3858
|
}
|
|
3856
|
-
return document.addEventListener("mousedown",
|
|
3857
|
-
document.removeEventListener("mousedown",
|
|
3859
|
+
return document.addEventListener("mousedown", C), window.addEventListener("scroll", D, !0), window.addEventListener("resize", D), () => {
|
|
3860
|
+
document.removeEventListener("mousedown", C), window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D);
|
|
3858
3861
|
};
|
|
3859
|
-
}, [u,
|
|
3860
|
-
const
|
|
3862
|
+
}, [u, M]);
|
|
3863
|
+
const A = (C) => {
|
|
3861
3864
|
const D = r.find(
|
|
3862
|
-
(
|
|
3865
|
+
(_) => _.value === C
|
|
3863
3866
|
);
|
|
3864
3867
|
if (!D) return;
|
|
3865
|
-
let
|
|
3866
|
-
|
|
3867
|
-
},
|
|
3868
|
-
L(
|
|
3868
|
+
let R;
|
|
3869
|
+
a ? (R = g.some((X) => X.value === C) ? g.filter((X) => X.value !== C) : [...g, D], j(R), o(R)) : (R = [D], j(R), o(D), w(!1), L(""));
|
|
3870
|
+
}, V = (C) => {
|
|
3871
|
+
L(C), n?.(C);
|
|
3869
3872
|
}, T = i ? r.filter(
|
|
3870
|
-
(
|
|
3871
|
-
) : r, Z = () =>
|
|
3872
|
-
return /* @__PURE__ */
|
|
3873
|
-
e && /* @__PURE__ */
|
|
3873
|
+
(C) => C.label.toLowerCase().includes(h.toLowerCase())
|
|
3874
|
+
) : r, Z = () => g.length === 0 ? c : a ? g.length === 1 ? g[0].label : `${g.length} selected` : g[0]?.label || c;
|
|
3875
|
+
return /* @__PURE__ */ x("div", { className: p("mb-6", l), children: [
|
|
3876
|
+
e && /* @__PURE__ */ x(
|
|
3874
3877
|
"label",
|
|
3875
3878
|
{
|
|
3876
3879
|
className: p("block mb-2 text-sm font-medium", S()),
|
|
3877
3880
|
children: [
|
|
3878
3881
|
e,
|
|
3879
|
-
|
|
3882
|
+
k && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
|
|
3880
3883
|
]
|
|
3881
3884
|
}
|
|
3882
3885
|
),
|
|
3883
|
-
/* @__PURE__ */
|
|
3884
|
-
/* @__PURE__ */
|
|
3886
|
+
/* @__PURE__ */ x("div", { ref: F, className: "relative w-full", children: [
|
|
3887
|
+
/* @__PURE__ */ x(
|
|
3885
3888
|
"button",
|
|
3886
3889
|
{
|
|
3887
3890
|
type: "button",
|
|
3888
|
-
onClick: (
|
|
3889
|
-
|
|
3891
|
+
onClick: (C) => {
|
|
3892
|
+
C.preventDefault(), C.stopPropagation(), u || M(), w(!u);
|
|
3890
3893
|
},
|
|
3891
3894
|
className: p(
|
|
3892
3895
|
K(),
|
|
@@ -3895,43 +3898,43 @@ function lt({
|
|
|
3895
3898
|
u && "ring-1"
|
|
3896
3899
|
),
|
|
3897
3900
|
disabled: d,
|
|
3898
|
-
...
|
|
3901
|
+
...y,
|
|
3899
3902
|
children: [
|
|
3900
|
-
/* @__PURE__ */
|
|
3901
|
-
|
|
3903
|
+
/* @__PURE__ */ x("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
3904
|
+
g.length > 0 && g[0].hex && /* @__PURE__ */ s(
|
|
3902
3905
|
"div",
|
|
3903
3906
|
{
|
|
3904
3907
|
className: "h-4 w-4 rounded border border-border",
|
|
3905
|
-
style: { backgroundColor:
|
|
3908
|
+
style: { backgroundColor: g[0].hex }
|
|
3906
3909
|
}
|
|
3907
3910
|
),
|
|
3908
|
-
/* @__PURE__ */
|
|
3911
|
+
/* @__PURE__ */ s(
|
|
3909
3912
|
"span",
|
|
3910
3913
|
{
|
|
3911
|
-
className:
|
|
3914
|
+
className: g.length > 0 ? "" : "text-text-muted",
|
|
3912
3915
|
children: Z()
|
|
3913
3916
|
}
|
|
3914
3917
|
)
|
|
3915
3918
|
] }),
|
|
3916
|
-
/* @__PURE__ */
|
|
3919
|
+
/* @__PURE__ */ s(
|
|
3917
3920
|
"div",
|
|
3918
3921
|
{
|
|
3919
3922
|
className: p(
|
|
3920
3923
|
"h-5 w-5 transition-transform duration-200",
|
|
3921
3924
|
u && "rotate-180"
|
|
3922
3925
|
),
|
|
3923
|
-
children: /* @__PURE__ */
|
|
3926
|
+
children: /* @__PURE__ */ s(Ee, { className: "h-5 w-5" })
|
|
3924
3927
|
}
|
|
3925
3928
|
)
|
|
3926
3929
|
]
|
|
3927
3930
|
}
|
|
3928
3931
|
),
|
|
3929
|
-
u && /* @__PURE__ */
|
|
3932
|
+
u && /* @__PURE__ */ x(
|
|
3930
3933
|
"div",
|
|
3931
3934
|
{
|
|
3932
3935
|
className: p(
|
|
3933
3936
|
"fixed z-9999 rounded-lg border-2 bg-white shadow-xl",
|
|
3934
|
-
|
|
3937
|
+
m ? "border-danger" : f === "primary" ? "border-primary" : "border-secondary"
|
|
3935
3938
|
),
|
|
3936
3939
|
style: {
|
|
3937
3940
|
top: `${P.top + (P.openUpward ? 0 : 8)}px`,
|
|
@@ -3940,59 +3943,59 @@ function lt({
|
|
|
3940
3943
|
transform: P.openUpward ? "translateY(-100%)" : "none"
|
|
3941
3944
|
},
|
|
3942
3945
|
children: [
|
|
3943
|
-
i && /* @__PURE__ */
|
|
3944
|
-
/* @__PURE__ */
|
|
3945
|
-
/* @__PURE__ */
|
|
3946
|
+
i && /* @__PURE__ */ s("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ x("div", { className: "relative", children: [
|
|
3947
|
+
/* @__PURE__ */ s($r, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
|
|
3948
|
+
/* @__PURE__ */ s(
|
|
3946
3949
|
"input",
|
|
3947
3950
|
{
|
|
3948
3951
|
ref: G,
|
|
3949
3952
|
type: "text",
|
|
3950
|
-
value:
|
|
3951
|
-
onChange: (
|
|
3952
|
-
placeholder:
|
|
3953
|
+
value: h,
|
|
3954
|
+
onChange: (C) => V(C.target.value),
|
|
3955
|
+
placeholder: b,
|
|
3953
3956
|
className: p(
|
|
3954
3957
|
"w-full rounded-lg border-2 py-2 pr-10 pl-10 text-sm transition-all duration-300 focus:outline-none focus:ring-1",
|
|
3955
|
-
|
|
3958
|
+
f === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
|
|
3956
3959
|
)
|
|
3957
3960
|
}
|
|
3958
3961
|
),
|
|
3959
|
-
|
|
3962
|
+
h && /* @__PURE__ */ s(
|
|
3960
3963
|
"button",
|
|
3961
3964
|
{
|
|
3962
3965
|
type: "button",
|
|
3963
3966
|
onClick: () => L(""),
|
|
3964
3967
|
className: "absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform text-text-muted hover:text-text",
|
|
3965
|
-
children: /* @__PURE__ */
|
|
3968
|
+
children: /* @__PURE__ */ s(Tr, { className: "h-4 w-4" })
|
|
3966
3969
|
}
|
|
3967
3970
|
)
|
|
3968
3971
|
] }) }),
|
|
3969
|
-
/* @__PURE__ */
|
|
3970
|
-
T.map((
|
|
3972
|
+
/* @__PURE__ */ x("div", { className: "max-h-60 overflow-y-auto py-1", children: [
|
|
3973
|
+
T.map((C) => /* @__PURE__ */ s(
|
|
3971
3974
|
"button",
|
|
3972
3975
|
{
|
|
3973
3976
|
type: "button",
|
|
3974
|
-
onClick: () =>
|
|
3977
|
+
onClick: () => A(C.value ?? ""),
|
|
3975
3978
|
className: p(
|
|
3976
3979
|
"w-full px-4 py-3 text-left text-sm transition-colors",
|
|
3977
|
-
|
|
3980
|
+
g.some((D) => D.value === C.value) ? f === "primary" ? "bg-primary/10 text-primary font-medium" : "bg-secondary/10 text-secondary font-medium" : "text-text hover:bg-background-light"
|
|
3978
3981
|
),
|
|
3979
|
-
children: /* @__PURE__ */
|
|
3980
|
-
|
|
3982
|
+
children: /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
|
|
3983
|
+
a && /* @__PURE__ */ s(
|
|
3981
3984
|
"div",
|
|
3982
3985
|
{
|
|
3983
3986
|
className: p(
|
|
3984
3987
|
"flex h-4 w-4 items-center justify-center rounded border-2 transition-colors",
|
|
3985
|
-
|
|
3988
|
+
g.some((D) => D.value === C.value) ? f === "primary" ? "border-primary bg-primary" : "border-secondary bg-secondary" : "border-border"
|
|
3986
3989
|
),
|
|
3987
|
-
children:
|
|
3988
|
-
(D) => D.value ===
|
|
3989
|
-
) && /* @__PURE__ */
|
|
3990
|
+
children: g.some(
|
|
3991
|
+
(D) => D.value === C.value
|
|
3992
|
+
) && /* @__PURE__ */ s(
|
|
3990
3993
|
"svg",
|
|
3991
3994
|
{
|
|
3992
3995
|
className: "h-3 w-3 text-white",
|
|
3993
3996
|
fill: "currentColor",
|
|
3994
3997
|
viewBox: "0 0 20 20",
|
|
3995
|
-
children: /* @__PURE__ */
|
|
3998
|
+
children: /* @__PURE__ */ s(
|
|
3996
3999
|
"path",
|
|
3997
4000
|
{
|
|
3998
4001
|
fillRule: "evenodd",
|
|
@@ -4004,25 +4007,25 @@ function lt({
|
|
|
4004
4007
|
)
|
|
4005
4008
|
}
|
|
4006
4009
|
),
|
|
4007
|
-
|
|
4010
|
+
C.hex && /* @__PURE__ */ s(
|
|
4008
4011
|
"div",
|
|
4009
4012
|
{
|
|
4010
4013
|
className: "h-4 w-4 rounded border border-border",
|
|
4011
|
-
style: { backgroundColor:
|
|
4014
|
+
style: { backgroundColor: C.hex }
|
|
4012
4015
|
}
|
|
4013
4016
|
),
|
|
4014
|
-
/* @__PURE__ */
|
|
4017
|
+
/* @__PURE__ */ s("span", { children: C.label })
|
|
4015
4018
|
] })
|
|
4016
4019
|
},
|
|
4017
|
-
|
|
4020
|
+
C.value
|
|
4018
4021
|
)),
|
|
4019
|
-
T.length === 0 &&
|
|
4022
|
+
T.length === 0 && h && r.length > 0 && /* @__PURE__ */ s("div", { className: "px-4 py-3", children: /* @__PURE__ */ s("span", { className: "text-sm text-text-muted", children: v }) })
|
|
4020
4023
|
] })
|
|
4021
4024
|
]
|
|
4022
4025
|
}
|
|
4023
4026
|
)
|
|
4024
4027
|
] }),
|
|
4025
|
-
|
|
4028
|
+
m && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: m })
|
|
4026
4029
|
] });
|
|
4027
4030
|
}
|
|
4028
4031
|
const it = ({
|
|
@@ -4030,36 +4033,36 @@ const it = ({
|
|
|
4030
4033
|
name: r,
|
|
4031
4034
|
onFilesSelected: t,
|
|
4032
4035
|
placeholder: o = "Arrastra y suelta archivos aquí o haz clic para seleccionar",
|
|
4033
|
-
labelSelectedFiles:
|
|
4034
|
-
label:
|
|
4036
|
+
labelSelectedFiles: a = "archivo:",
|
|
4037
|
+
label: l,
|
|
4035
4038
|
error: i,
|
|
4036
4039
|
disabled: n = !1,
|
|
4037
4040
|
required: c = !1,
|
|
4038
4041
|
colorScheme: d = "secondary",
|
|
4039
4042
|
// "primary" | "secondary"
|
|
4040
|
-
className:
|
|
4041
|
-
accept:
|
|
4043
|
+
className: m = "",
|
|
4044
|
+
accept: k = "*/*",
|
|
4042
4045
|
// Tipos de archivo aceptados: "image/*", "application/pdf", ".doc,.docx", etc.
|
|
4043
|
-
multiple:
|
|
4046
|
+
multiple: f = !1,
|
|
4044
4047
|
...v
|
|
4045
4048
|
}) => {
|
|
4046
|
-
const
|
|
4047
|
-
const
|
|
4049
|
+
const b = ce(null), [y, u] = $(!1), [w, h] = $([]), L = () => {
|
|
4050
|
+
const M = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed cursor-pointer min-h-[120px]";
|
|
4048
4051
|
if (i)
|
|
4049
4052
|
return p(
|
|
4050
|
-
|
|
4053
|
+
M,
|
|
4051
4054
|
"border-danger focus:border-danger focus:ring-1 focus:ring-danger"
|
|
4052
4055
|
);
|
|
4053
4056
|
switch (d) {
|
|
4054
4057
|
case "primary":
|
|
4055
4058
|
return p(
|
|
4056
|
-
|
|
4059
|
+
M,
|
|
4057
4060
|
"border-primary focus:border-primary focus:ring-1 focus:ring-primary hover:border-primary-dark"
|
|
4058
4061
|
);
|
|
4059
4062
|
case "secondary":
|
|
4060
4063
|
default:
|
|
4061
4064
|
return p(
|
|
4062
|
-
|
|
4065
|
+
M,
|
|
4063
4066
|
"border-secondary focus:border-secondary focus:ring-1 focus:ring-secondary hover:border-secondary-dark"
|
|
4064
4067
|
);
|
|
4065
4068
|
}
|
|
@@ -4071,88 +4074,88 @@ const it = ({
|
|
|
4071
4074
|
default:
|
|
4072
4075
|
return "text-secondary";
|
|
4073
4076
|
}
|
|
4074
|
-
},
|
|
4075
|
-
|
|
4076
|
-
},
|
|
4077
|
-
if (
|
|
4078
|
-
const
|
|
4079
|
-
|
|
4080
|
-
},
|
|
4081
|
-
const
|
|
4082
|
-
|
|
4083
|
-
},
|
|
4084
|
-
const
|
|
4085
|
-
if (
|
|
4086
|
-
const
|
|
4087
|
-
if (
|
|
4077
|
+
}, z = (M) => {
|
|
4078
|
+
M.preventDefault(), M.stopPropagation(), n || (M.type === "dragenter" || M.type === "dragover" ? u(!0) : M.type === "dragleave" && u(!1));
|
|
4079
|
+
}, E = (M) => {
|
|
4080
|
+
if (M.preventDefault(), M.stopPropagation(), u(!1), n) return;
|
|
4081
|
+
const A = M.dataTransfer.files;
|
|
4082
|
+
j(A);
|
|
4083
|
+
}, g = (M) => {
|
|
4084
|
+
const A = M.target.files;
|
|
4085
|
+
A && j(A);
|
|
4086
|
+
}, j = (M) => {
|
|
4087
|
+
const A = Array.from(M);
|
|
4088
|
+
if (k !== "*/*") {
|
|
4089
|
+
const V = A.filter((T) => F(T, k));
|
|
4090
|
+
if (V.length === 0) {
|
|
4088
4091
|
console.warn("No valid files selected");
|
|
4089
4092
|
return;
|
|
4090
4093
|
}
|
|
4091
|
-
|
|
4094
|
+
h(f ? V : [V[0]]), t(f ? V : [V[0]]);
|
|
4092
4095
|
} else
|
|
4093
|
-
|
|
4094
|
-
},
|
|
4096
|
+
h(f ? A : [A[0]]), t(f ? A : [A[0]]);
|
|
4097
|
+
}, F = (M, A) => A.split(",").map((T) => T.trim()).some((T) => {
|
|
4095
4098
|
if (T.startsWith("."))
|
|
4096
|
-
return
|
|
4099
|
+
return M.name.toLowerCase().endsWith(T.toLowerCase());
|
|
4097
4100
|
if (T.includes("/")) {
|
|
4098
|
-
const [Z,
|
|
4099
|
-
return
|
|
4101
|
+
const [Z, C] = T.split("/"), D = M.type.split("/")[0];
|
|
4102
|
+
return C === "*" ? D === Z : M.type === T;
|
|
4100
4103
|
}
|
|
4101
4104
|
return !1;
|
|
4102
4105
|
}), G = () => {
|
|
4103
|
-
n ||
|
|
4104
|
-
}, K = (
|
|
4105
|
-
const
|
|
4106
|
-
|
|
4107
|
-
}, S = (
|
|
4108
|
-
(
|
|
4106
|
+
n || b.current?.click();
|
|
4107
|
+
}, K = (M) => {
|
|
4108
|
+
const A = w.filter((V, T) => T !== M);
|
|
4109
|
+
h(A), t(A);
|
|
4110
|
+
}, S = (M) => {
|
|
4111
|
+
(M.key === "Enter" || M.key === " ") && (M.preventDefault(), G());
|
|
4109
4112
|
};
|
|
4110
|
-
return /* @__PURE__ */
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
c && /* @__PURE__ */
|
|
4113
|
+
return /* @__PURE__ */ x("div", { className: `mb-6 ${m}`, children: [
|
|
4114
|
+
l && /* @__PURE__ */ x("label", { className: `block mb-2 text-sm font-medium ${P()}`, children: [
|
|
4115
|
+
l,
|
|
4116
|
+
c && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
|
|
4114
4117
|
] }),
|
|
4115
|
-
/* @__PURE__ */
|
|
4118
|
+
/* @__PURE__ */ x(
|
|
4116
4119
|
"div",
|
|
4117
4120
|
{
|
|
4118
4121
|
className: p(
|
|
4119
4122
|
L(),
|
|
4120
|
-
|
|
4123
|
+
y && "bg-background-light border-2-dashed"
|
|
4121
4124
|
),
|
|
4122
|
-
onDragEnter:
|
|
4123
|
-
onDragLeave:
|
|
4124
|
-
onDragOver:
|
|
4125
|
-
onDrop:
|
|
4125
|
+
onDragEnter: z,
|
|
4126
|
+
onDragLeave: z,
|
|
4127
|
+
onDragOver: z,
|
|
4128
|
+
onDrop: E,
|
|
4126
4129
|
onClick: G,
|
|
4127
4130
|
onKeyDown: S,
|
|
4128
4131
|
role: "button",
|
|
4129
4132
|
tabIndex: n ? -1 : 0,
|
|
4130
4133
|
children: [
|
|
4131
|
-
/* @__PURE__ */
|
|
4134
|
+
/* @__PURE__ */ s(
|
|
4132
4135
|
"input",
|
|
4133
4136
|
{
|
|
4134
|
-
ref:
|
|
4137
|
+
ref: b,
|
|
4135
4138
|
id: e,
|
|
4136
4139
|
name: r,
|
|
4137
4140
|
type: "file",
|
|
4138
|
-
onChange:
|
|
4141
|
+
onChange: g,
|
|
4139
4142
|
disabled: n,
|
|
4140
4143
|
required: c,
|
|
4141
|
-
accept:
|
|
4142
|
-
multiple:
|
|
4144
|
+
accept: k,
|
|
4145
|
+
multiple: f,
|
|
4143
4146
|
className: "hidden",
|
|
4144
4147
|
...v
|
|
4145
4148
|
}
|
|
4146
4149
|
),
|
|
4147
|
-
/* @__PURE__ */
|
|
4148
|
-
/* @__PURE__ */
|
|
4150
|
+
/* @__PURE__ */ x("div", { className: "flex flex-col items-center justify-center py-4", children: [
|
|
4151
|
+
/* @__PURE__ */ s(
|
|
4149
4152
|
"svg",
|
|
4150
4153
|
{
|
|
4151
4154
|
className: `w-8 h-8 mb-2 ${d === "primary" ? "text-primary" : "text-secondary"}`,
|
|
4152
4155
|
fill: "none",
|
|
4153
4156
|
stroke: "currentColor",
|
|
4154
4157
|
viewBox: "0 0 24 24",
|
|
4155
|
-
children: /* @__PURE__ */
|
|
4158
|
+
children: /* @__PURE__ */ s(
|
|
4156
4159
|
"path",
|
|
4157
4160
|
{
|
|
4158
4161
|
strokeLinecap: "round",
|
|
@@ -4163,43 +4166,43 @@ const it = ({
|
|
|
4163
4166
|
)
|
|
4164
4167
|
}
|
|
4165
4168
|
),
|
|
4166
|
-
/* @__PURE__ */
|
|
4169
|
+
/* @__PURE__ */ s("p", { className: `text-sm ${P()}`, children: o })
|
|
4167
4170
|
] })
|
|
4168
4171
|
]
|
|
4169
4172
|
}
|
|
4170
4173
|
),
|
|
4171
|
-
/* @__PURE__ */
|
|
4172
|
-
/* @__PURE__ */
|
|
4173
|
-
|
|
4174
|
+
/* @__PURE__ */ x("div", { className: "mt-4 space-y-2", children: [
|
|
4175
|
+
/* @__PURE__ */ x("p", { className: `text-sm font-medium ${P()}`, children: [
|
|
4176
|
+
w.length,
|
|
4174
4177
|
" ",
|
|
4175
|
-
|
|
4178
|
+
a,
|
|
4176
4179
|
"(s) seleccionado(s):"
|
|
4177
4180
|
] }),
|
|
4178
|
-
/* @__PURE__ */
|
|
4181
|
+
/* @__PURE__ */ s("ul", { className: "space-y-1", children: w.map((M, A) => /* @__PURE__ */ x(
|
|
4179
4182
|
"li",
|
|
4180
4183
|
{
|
|
4181
4184
|
className: "flex items-center justify-between p-2 bg-light rounded border border-border",
|
|
4182
4185
|
children: [
|
|
4183
|
-
/* @__PURE__ */
|
|
4184
|
-
/* @__PURE__ */
|
|
4186
|
+
/* @__PURE__ */ x("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
4187
|
+
/* @__PURE__ */ x(
|
|
4185
4188
|
"svg",
|
|
4186
4189
|
{
|
|
4187
4190
|
className: "w-4 h-4 text-text-muted shrink-0",
|
|
4188
4191
|
fill: "currentColor",
|
|
4189
4192
|
viewBox: "0 0 20 20",
|
|
4190
4193
|
children: [
|
|
4191
|
-
/* @__PURE__ */
|
|
4192
|
-
/* @__PURE__ */
|
|
4194
|
+
/* @__PURE__ */ s("path", { d: "M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" }),
|
|
4195
|
+
/* @__PURE__ */ s("path", { d: "M3 4a1 1 0 00-1 1v10a1 1 0 001 1h1.05a2.5 2.5 0 014.9 0H10a1 1 0 001-1V5a1 1 0 00-1-1H3zM14 7a1 1 0 00-1 1v6.05A2.5 2.5 0 0115.95 10H17a1 1 0 001-1v-3a1 1 0 00-1-1h-3z" })
|
|
4193
4196
|
]
|
|
4194
4197
|
}
|
|
4195
4198
|
),
|
|
4196
|
-
/* @__PURE__ */
|
|
4199
|
+
/* @__PURE__ */ s("span", { className: "text-sm text-text truncate", children: M.name })
|
|
4197
4200
|
] }),
|
|
4198
|
-
/* @__PURE__ */
|
|
4201
|
+
/* @__PURE__ */ s(
|
|
4199
4202
|
"button",
|
|
4200
4203
|
{
|
|
4201
|
-
onClick: (
|
|
4202
|
-
|
|
4204
|
+
onClick: (V) => {
|
|
4205
|
+
V.stopPropagation(), K(A);
|
|
4203
4206
|
},
|
|
4204
4207
|
className: "ml-2 text-danger hover:text-danger-dark shrink-0",
|
|
4205
4208
|
type: "button",
|
|
@@ -4208,36 +4211,36 @@ const it = ({
|
|
|
4208
4211
|
)
|
|
4209
4212
|
]
|
|
4210
4213
|
},
|
|
4211
|
-
|
|
4214
|
+
A
|
|
4212
4215
|
)) })
|
|
4213
4216
|
] }),
|
|
4214
|
-
i && /* @__PURE__ */
|
|
4217
|
+
i && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
|
|
4215
4218
|
] });
|
|
4216
4219
|
}, ct = ({
|
|
4217
4220
|
text: e,
|
|
4218
4221
|
className: r = "",
|
|
4219
4222
|
variant: t = "default",
|
|
4220
4223
|
visible: o = !0,
|
|
4221
|
-
...
|
|
4224
|
+
...a
|
|
4222
4225
|
}) => {
|
|
4223
4226
|
if (!o) return null;
|
|
4224
|
-
const
|
|
4227
|
+
const l = {
|
|
4225
4228
|
default: "bg-gray-200 text-gray-800",
|
|
4226
4229
|
primary: "bg-primary text-white",
|
|
4227
4230
|
secondary: "bg-secondary text-white",
|
|
4228
4231
|
secondaryDark: "bg-secondary-dark text-white",
|
|
4229
4232
|
danger: "bg-danger text-white",
|
|
4230
4233
|
warning: "bg-warning text-white"
|
|
4231
|
-
}, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", n =
|
|
4232
|
-
return /* @__PURE__ */
|
|
4234
|
+
}, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", n = l[t] || l.default;
|
|
4235
|
+
return /* @__PURE__ */ s("div", { className: `${i} ${n} ${r}`, ...a, children: e });
|
|
4233
4236
|
};
|
|
4234
4237
|
function dt({
|
|
4235
4238
|
isOpen: e,
|
|
4236
4239
|
onClose: r,
|
|
4237
4240
|
title: t,
|
|
4238
4241
|
children: o,
|
|
4239
|
-
size:
|
|
4240
|
-
className:
|
|
4242
|
+
size: a = "md",
|
|
4243
|
+
className: l = "",
|
|
4241
4244
|
overlayClassName: i = "",
|
|
4242
4245
|
showCloseButton: n = !0,
|
|
4243
4246
|
closeOnOverlayClick: c = !0,
|
|
@@ -4248,44 +4251,44 @@ function dt({
|
|
|
4248
4251
|
}), [e]), H(() => {
|
|
4249
4252
|
if (!d || !e)
|
|
4250
4253
|
return;
|
|
4251
|
-
const v = (
|
|
4252
|
-
|
|
4254
|
+
const v = (b) => {
|
|
4255
|
+
b.key === "Escape" && r();
|
|
4253
4256
|
};
|
|
4254
4257
|
return document.addEventListener("keydown", v), () => {
|
|
4255
4258
|
document.removeEventListener("keydown", v);
|
|
4256
4259
|
};
|
|
4257
4260
|
}, [e, r, d]), !e) return null;
|
|
4258
|
-
const
|
|
4261
|
+
const m = {
|
|
4259
4262
|
sm: "max-w-sm",
|
|
4260
4263
|
md: "max-w-md",
|
|
4261
4264
|
lg: "max-w-lg",
|
|
4262
4265
|
xl: "max-w-xl",
|
|
4263
4266
|
"2xl": "max-w-2xl"
|
|
4264
|
-
},
|
|
4267
|
+
}, k = () => {
|
|
4265
4268
|
c && r();
|
|
4266
|
-
},
|
|
4269
|
+
}, f = /* @__PURE__ */ s(
|
|
4267
4270
|
"div",
|
|
4268
4271
|
{
|
|
4269
4272
|
className: p(
|
|
4270
4273
|
"fixed inset-0 bg-black/40 flex items-center justify-center z-9999 p-4",
|
|
4271
4274
|
i
|
|
4272
4275
|
),
|
|
4273
|
-
onClick:
|
|
4276
|
+
onClick: k,
|
|
4274
4277
|
role: "dialog",
|
|
4275
4278
|
"aria-modal": "true",
|
|
4276
4279
|
"aria-labelledby": t ? "modal-title" : void 0,
|
|
4277
|
-
children: /* @__PURE__ */
|
|
4280
|
+
children: /* @__PURE__ */ x(
|
|
4278
4281
|
"div",
|
|
4279
4282
|
{
|
|
4280
4283
|
className: p(
|
|
4281
4284
|
"relative bg-white rounded-xl shadow-2xl max-h-[90vh] flex flex-col w-full transition-all duration-300",
|
|
4282
|
-
|
|
4283
|
-
|
|
4285
|
+
m[a],
|
|
4286
|
+
l
|
|
4284
4287
|
),
|
|
4285
4288
|
onClick: (v) => v.stopPropagation(),
|
|
4286
4289
|
children: [
|
|
4287
|
-
(t || n) && /* @__PURE__ */
|
|
4288
|
-
t && /* @__PURE__ */
|
|
4290
|
+
(t || n) && /* @__PURE__ */ x("div", { className: "flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0", children: [
|
|
4291
|
+
t && /* @__PURE__ */ s(
|
|
4289
4292
|
"h2",
|
|
4290
4293
|
{
|
|
4291
4294
|
id: "modal-title",
|
|
@@ -4293,59 +4296,59 @@ function dt({
|
|
|
4293
4296
|
children: t
|
|
4294
4297
|
}
|
|
4295
4298
|
),
|
|
4296
|
-
n && /* @__PURE__ */
|
|
4299
|
+
n && /* @__PURE__ */ s(
|
|
4297
4300
|
"button",
|
|
4298
4301
|
{
|
|
4299
4302
|
className: "flex items-center justify-center w-8 h-8 text-text-muted hover:text-text hover:bg-background-light transition-colors duration-200 rounded-lg",
|
|
4300
4303
|
onClick: r,
|
|
4301
4304
|
"aria-label": "Cerrar modal",
|
|
4302
4305
|
type: "button",
|
|
4303
|
-
children: /* @__PURE__ */
|
|
4306
|
+
children: /* @__PURE__ */ s("span", { className: "text-2xl font-light leading-none", children: "×" })
|
|
4304
4307
|
}
|
|
4305
4308
|
)
|
|
4306
4309
|
] }),
|
|
4307
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ s("div", { className: "p-6 overflow-y-auto flex-1", children: o })
|
|
4308
4311
|
]
|
|
4309
4312
|
}
|
|
4310
4313
|
)
|
|
4311
4314
|
}
|
|
4312
4315
|
);
|
|
4313
|
-
return $e(
|
|
4316
|
+
return $e(f, document.body);
|
|
4314
4317
|
}
|
|
4315
4318
|
function ut({
|
|
4316
4319
|
id: e,
|
|
4317
4320
|
name: r,
|
|
4318
4321
|
checked: t = !1,
|
|
4319
4322
|
onChange: o,
|
|
4320
|
-
disabled:
|
|
4321
|
-
required:
|
|
4323
|
+
disabled: a = !1,
|
|
4324
|
+
required: l = !1,
|
|
4322
4325
|
colorScheme: i = "secondary",
|
|
4323
4326
|
variant: n = "solid",
|
|
4324
4327
|
label: c,
|
|
4325
4328
|
className: d = "",
|
|
4326
|
-
...
|
|
4329
|
+
...m
|
|
4327
4330
|
}) {
|
|
4328
|
-
const
|
|
4329
|
-
const
|
|
4330
|
-
if (
|
|
4331
|
+
const k = (f, v) => {
|
|
4332
|
+
const b = "checkbox-input size-4 shrink-0 rounded transition-all duration-300 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50";
|
|
4333
|
+
if (f === "outline")
|
|
4331
4334
|
switch (v) {
|
|
4332
4335
|
case "primary":
|
|
4333
|
-
return `${
|
|
4336
|
+
return `${b} checkbox-outline checkbox-primary`;
|
|
4334
4337
|
case "secondary":
|
|
4335
4338
|
default:
|
|
4336
|
-
return `${
|
|
4339
|
+
return `${b} checkbox-outline checkbox-secondary`;
|
|
4337
4340
|
}
|
|
4338
4341
|
else
|
|
4339
4342
|
switch (v) {
|
|
4340
4343
|
case "primary":
|
|
4341
|
-
return `${
|
|
4344
|
+
return `${b} checkbox-solid checkbox-primary`;
|
|
4342
4345
|
case "secondary":
|
|
4343
4346
|
default:
|
|
4344
|
-
return `${
|
|
4347
|
+
return `${b} checkbox-solid checkbox-secondary`;
|
|
4345
4348
|
}
|
|
4346
4349
|
};
|
|
4347
|
-
return c ? /* @__PURE__ */
|
|
4348
|
-
/* @__PURE__ */
|
|
4350
|
+
return c ? /* @__PURE__ */ x("div", { className: `flex items-center gap-2 ${d}`, children: [
|
|
4351
|
+
/* @__PURE__ */ s(
|
|
4349
4352
|
"input",
|
|
4350
4353
|
{
|
|
4351
4354
|
id: e,
|
|
@@ -4353,24 +4356,24 @@ function ut({
|
|
|
4353
4356
|
type: "checkbox",
|
|
4354
4357
|
checked: t,
|
|
4355
4358
|
onChange: o,
|
|
4356
|
-
disabled:
|
|
4357
|
-
required:
|
|
4358
|
-
className:
|
|
4359
|
-
...
|
|
4359
|
+
disabled: a,
|
|
4360
|
+
required: l,
|
|
4361
|
+
className: k(n, i),
|
|
4362
|
+
...m
|
|
4360
4363
|
}
|
|
4361
4364
|
),
|
|
4362
|
-
/* @__PURE__ */
|
|
4365
|
+
/* @__PURE__ */ x(
|
|
4363
4366
|
"label",
|
|
4364
4367
|
{
|
|
4365
4368
|
htmlFor: e,
|
|
4366
4369
|
className: "text-sm text-text cursor-pointer font-medium",
|
|
4367
4370
|
children: [
|
|
4368
4371
|
c,
|
|
4369
|
-
|
|
4372
|
+
l && /* @__PURE__ */ s("span", { className: "text-red-500 ml-1", children: "*" })
|
|
4370
4373
|
]
|
|
4371
4374
|
}
|
|
4372
4375
|
)
|
|
4373
|
-
] }) : /* @__PURE__ */
|
|
4376
|
+
] }) : /* @__PURE__ */ s(
|
|
4374
4377
|
"input",
|
|
4375
4378
|
{
|
|
4376
4379
|
id: e,
|
|
@@ -4378,13 +4381,13 @@ function ut({
|
|
|
4378
4381
|
type: "checkbox",
|
|
4379
4382
|
checked: t,
|
|
4380
4383
|
onChange: o,
|
|
4381
|
-
disabled:
|
|
4382
|
-
required:
|
|
4383
|
-
className: `${
|
|
4384
|
+
disabled: a,
|
|
4385
|
+
required: l,
|
|
4386
|
+
className: `${k(n, i)} ${d}`,
|
|
4384
4387
|
style: {
|
|
4385
4388
|
accentColor: "white"
|
|
4386
4389
|
},
|
|
4387
|
-
...
|
|
4390
|
+
...m
|
|
4388
4391
|
}
|
|
4389
4392
|
);
|
|
4390
4393
|
}
|
|
@@ -4414,7 +4417,7 @@ export {
|
|
|
4414
4417
|
Zr as ThemeProvider,
|
|
4415
4418
|
bt as Toggle,
|
|
4416
4419
|
p as cn,
|
|
4417
|
-
|
|
4420
|
+
O as defaultTheme,
|
|
4418
4421
|
le as generateColorVariants,
|
|
4419
4422
|
hr as hexToHsl,
|
|
4420
4423
|
be as hslToHex,
|