componentables 0.1.25 → 0.1.27
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/README.md +28 -0
- package/dist/componentables.css +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +20 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +1 -0
- package/dist/components/DateTimePicker/types.d.ts +18 -0
- package/dist/components/DateTimePicker/types.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +750 -696
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import G, { useMemo as
|
|
3
|
-
import { Oval as
|
|
4
|
-
import { createPortal as
|
|
1
|
+
import { jsxs as p, jsx as n, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
+
import G, { useMemo as Te, useEffect as U, createContext as $e, useContext as _e, useState as _, useCallback as Ne, useRef as ue } from "react";
|
|
3
|
+
import { Oval as Re } from "react-loader-spinner";
|
|
4
|
+
import { createPortal as Fe } from "react-dom";
|
|
5
5
|
import { toast as te } from "react-toastify";
|
|
6
|
-
function
|
|
6
|
+
function Ce(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
10
|
var s = e.length;
|
|
11
|
-
for (r = 0; r < s; r++) e[r] && (t =
|
|
11
|
+
for (r = 0; r < s; r++) e[r] && (t = Ce(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
|
-
function
|
|
16
|
-
for (var e, r, t = 0, o = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (r =
|
|
15
|
+
function Ve() {
|
|
16
|
+
for (var e, r, t = 0, o = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (r = Ce(e)) && (o && (o += " "), o += r);
|
|
17
17
|
return o;
|
|
18
18
|
}
|
|
19
|
-
const pe = "-",
|
|
20
|
-
const r =
|
|
19
|
+
const pe = "-", Be = (e) => {
|
|
20
|
+
const r = We(e), {
|
|
21
21
|
conflictingClassGroups: t,
|
|
22
22
|
conflictingClassGroupModifiers: o
|
|
23
23
|
} = e;
|
|
24
24
|
return {
|
|
25
25
|
getClassGroupId: (i) => {
|
|
26
26
|
const a = i.split(pe);
|
|
27
|
-
return a[0] === "" && a.length !== 1 && a.shift(),
|
|
27
|
+
return a[0] === "" && a.length !== 1 && a.shift(), Me(a, r) || Ge(i);
|
|
28
28
|
},
|
|
29
29
|
getConflictingClassGroupIds: (i, a) => {
|
|
30
30
|
const d = t[i] || [];
|
|
31
31
|
return a && o[i] ? [...d, ...o[i]] : d;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
},
|
|
34
|
+
}, Me = (e, r) => {
|
|
35
35
|
if (e.length === 0)
|
|
36
36
|
return r.classGroupId;
|
|
37
|
-
const t = e[0], o = r.nextPart.get(t), s = o ?
|
|
37
|
+
const t = e[0], o = r.nextPart.get(t), s = o ? Me(e.slice(1), o) : void 0;
|
|
38
38
|
if (s)
|
|
39
39
|
return s;
|
|
40
40
|
if (r.validators.length === 0)
|
|
@@ -43,13 +43,13 @@ const pe = "-", Fe = (e) => {
|
|
|
43
43
|
return r.validators.find(({
|
|
44
44
|
validator: i
|
|
45
45
|
}) => i(l))?.classGroupId;
|
|
46
|
-
},
|
|
47
|
-
if (
|
|
48
|
-
const r =
|
|
46
|
+
}, be = /^\[(.+)\]$/, Ge = (e) => {
|
|
47
|
+
if (be.test(e)) {
|
|
48
|
+
const r = be.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
|
|
49
49
|
if (t)
|
|
50
50
|
return "arbitrary.." + t;
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, We = (e) => {
|
|
53
53
|
const {
|
|
54
54
|
theme: r,
|
|
55
55
|
prefix: t
|
|
@@ -57,19 +57,19 @@ const pe = "-", Fe = (e) => {
|
|
|
57
57
|
nextPart: /* @__PURE__ */ new Map(),
|
|
58
58
|
validators: []
|
|
59
59
|
};
|
|
60
|
-
return
|
|
61
|
-
|
|
60
|
+
return Ue(Object.entries(e.classGroups), t).forEach(([l, i]) => {
|
|
61
|
+
me(i, o, l, r);
|
|
62
62
|
}), o;
|
|
63
|
-
},
|
|
63
|
+
}, me = (e, r, t, o) => {
|
|
64
64
|
e.forEach((s) => {
|
|
65
65
|
if (typeof s == "string") {
|
|
66
|
-
const l = s === "" ? r :
|
|
66
|
+
const l = s === "" ? r : ge(r, s);
|
|
67
67
|
l.classGroupId = t;
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
if (typeof s == "function") {
|
|
71
|
-
if (
|
|
72
|
-
|
|
71
|
+
if (He(s)) {
|
|
72
|
+
me(s(o), r, t, o);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
r.validators.push({
|
|
@@ -79,10 +79,10 @@ const pe = "-", Fe = (e) => {
|
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
Object.entries(s).forEach(([l, i]) => {
|
|
82
|
-
|
|
82
|
+
me(i, ge(r, l), t, o);
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
|
-
},
|
|
85
|
+
}, ge = (e, r) => {
|
|
86
86
|
let t = e;
|
|
87
87
|
return r.split(pe).forEach((o) => {
|
|
88
88
|
t.nextPart.has(o) || t.nextPart.set(o, {
|
|
@@ -90,10 +90,10 @@ const pe = "-", Fe = (e) => {
|
|
|
90
90
|
validators: []
|
|
91
91
|
}), t = t.nextPart.get(o);
|
|
92
92
|
}), t;
|
|
93
|
-
},
|
|
93
|
+
}, He = (e) => e.isThemeGetter, Ue = (e, r) => r ? e.map(([t, o]) => {
|
|
94
94
|
const s = o.map((l) => typeof l == "string" ? r + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([i, a]) => [r + i, a])) : l);
|
|
95
95
|
return [t, s];
|
|
96
|
-
}) : e,
|
|
96
|
+
}) : e, Ye = (e) => {
|
|
97
97
|
if (e < 1)
|
|
98
98
|
return {
|
|
99
99
|
get: () => {
|
|
@@ -117,40 +117,40 @@ const pe = "-", Fe = (e) => {
|
|
|
117
117
|
t.has(l) ? t.set(l, i) : s(l, i);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
},
|
|
120
|
+
}, ze = "!", Je = (e) => {
|
|
121
121
|
const {
|
|
122
122
|
separator: r,
|
|
123
123
|
experimentalParseClassName: t
|
|
124
124
|
} = e, o = r.length === 1, s = r[0], l = r.length, i = (a) => {
|
|
125
125
|
const d = [];
|
|
126
|
-
let u = 0, g = 0,
|
|
127
|
-
for (let
|
|
128
|
-
let
|
|
126
|
+
let u = 0, g = 0, v;
|
|
127
|
+
for (let m = 0; m < a.length; m++) {
|
|
128
|
+
let k = a[m];
|
|
129
129
|
if (u === 0) {
|
|
130
|
-
if (
|
|
131
|
-
d.push(a.slice(g,
|
|
130
|
+
if (k === s && (o || a.slice(m, m + l) === r)) {
|
|
131
|
+
d.push(a.slice(g, m)), g = m + l;
|
|
132
132
|
continue;
|
|
133
133
|
}
|
|
134
|
-
if (
|
|
135
|
-
|
|
134
|
+
if (k === "/") {
|
|
135
|
+
v = m;
|
|
136
136
|
continue;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
k === "[" ? u++ : k === "]" && u--;
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const f = d.length === 0 ? a : a.substring(g), x = f.startsWith(ze), b = x ? f.substring(1) : f, w = v && v > g ? v - g : void 0;
|
|
142
142
|
return {
|
|
143
143
|
modifiers: d,
|
|
144
|
-
hasImportantModifier:
|
|
144
|
+
hasImportantModifier: x,
|
|
145
145
|
baseClassName: b,
|
|
146
|
-
maybePostfixModifierPosition:
|
|
146
|
+
maybePostfixModifierPosition: w
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
return t ? (a) => t({
|
|
150
150
|
className: a,
|
|
151
151
|
parseClassName: i
|
|
152
152
|
}) : i;
|
|
153
|
-
},
|
|
153
|
+
}, Ke = (e) => {
|
|
154
154
|
if (e.length <= 1)
|
|
155
155
|
return e;
|
|
156
156
|
const r = [];
|
|
@@ -158,122 +158,122 @@ const pe = "-", Fe = (e) => {
|
|
|
158
158
|
return e.forEach((o) => {
|
|
159
159
|
o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
|
|
160
160
|
}), r.push(...t.sort()), r;
|
|
161
|
-
},
|
|
162
|
-
cache:
|
|
163
|
-
parseClassName:
|
|
164
|
-
...
|
|
165
|
-
}),
|
|
161
|
+
}, Ze = (e) => ({
|
|
162
|
+
cache: Ye(e.cacheSize),
|
|
163
|
+
parseClassName: Je(e),
|
|
164
|
+
...Be(e)
|
|
165
|
+
}), Xe = /\s+/, Qe = (e, r) => {
|
|
166
166
|
const {
|
|
167
167
|
parseClassName: t,
|
|
168
168
|
getClassGroupId: o,
|
|
169
169
|
getConflictingClassGroupIds: s
|
|
170
|
-
} = r, l = [], i = e.trim().split(
|
|
170
|
+
} = r, l = [], i = e.trim().split(Xe);
|
|
171
171
|
let a = "";
|
|
172
172
|
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
173
173
|
const u = i[d], {
|
|
174
174
|
modifiers: g,
|
|
175
|
-
hasImportantModifier:
|
|
176
|
-
baseClassName:
|
|
177
|
-
maybePostfixModifierPosition:
|
|
175
|
+
hasImportantModifier: v,
|
|
176
|
+
baseClassName: f,
|
|
177
|
+
maybePostfixModifierPosition: x
|
|
178
178
|
} = t(u);
|
|
179
|
-
let b = !!
|
|
180
|
-
if (!
|
|
179
|
+
let b = !!x, w = o(b ? f.substring(0, x) : f);
|
|
180
|
+
if (!w) {
|
|
181
181
|
if (!b) {
|
|
182
182
|
a = u + (a.length > 0 ? " " + a : a);
|
|
183
183
|
continue;
|
|
184
184
|
}
|
|
185
|
-
if (
|
|
185
|
+
if (w = o(f), !w) {
|
|
186
186
|
a = u + (a.length > 0 ? " " + a : a);
|
|
187
187
|
continue;
|
|
188
188
|
}
|
|
189
189
|
b = !1;
|
|
190
190
|
}
|
|
191
|
-
const
|
|
192
|
-
if (l.includes(
|
|
191
|
+
const m = Ke(g).join(":"), k = v ? m + ze : m, y = k + w;
|
|
192
|
+
if (l.includes(y))
|
|
193
193
|
continue;
|
|
194
|
-
l.push(
|
|
195
|
-
const
|
|
196
|
-
for (let
|
|
197
|
-
const
|
|
198
|
-
l.push(
|
|
194
|
+
l.push(y);
|
|
195
|
+
const z = s(w, b);
|
|
196
|
+
for (let D = 0; D < z.length; ++D) {
|
|
197
|
+
const L = z[D];
|
|
198
|
+
l.push(k + L);
|
|
199
199
|
}
|
|
200
200
|
a = u + (a.length > 0 ? " " + a : a);
|
|
201
201
|
}
|
|
202
202
|
return a;
|
|
203
203
|
};
|
|
204
|
-
function
|
|
204
|
+
function qe() {
|
|
205
205
|
let e = 0, r, t, o = "";
|
|
206
206
|
for (; e < arguments.length; )
|
|
207
|
-
(r = arguments[e++]) && (t =
|
|
207
|
+
(r = arguments[e++]) && (t = Le(r)) && (o && (o += " "), o += t);
|
|
208
208
|
return o;
|
|
209
209
|
}
|
|
210
|
-
const
|
|
210
|
+
const Le = (e) => {
|
|
211
211
|
if (typeof e == "string")
|
|
212
212
|
return e;
|
|
213
213
|
let r, t = "";
|
|
214
214
|
for (let o = 0; o < e.length; o++)
|
|
215
|
-
e[o] && (r =
|
|
215
|
+
e[o] && (r = Le(e[o])) && (t && (t += " "), t += r);
|
|
216
216
|
return t;
|
|
217
217
|
};
|
|
218
|
-
function
|
|
218
|
+
function er(e, ...r) {
|
|
219
219
|
let t, o, s, l = i;
|
|
220
220
|
function i(d) {
|
|
221
|
-
const u = r.reduce((g,
|
|
222
|
-
return t =
|
|
221
|
+
const u = r.reduce((g, v) => v(g), e());
|
|
222
|
+
return t = Ze(u), o = t.cache.get, s = t.cache.set, l = a, a(d);
|
|
223
223
|
}
|
|
224
224
|
function a(d) {
|
|
225
225
|
const u = o(d);
|
|
226
226
|
if (u)
|
|
227
227
|
return u;
|
|
228
|
-
const g =
|
|
228
|
+
const g = Qe(d, t);
|
|
229
229
|
return s(d, g), g;
|
|
230
230
|
}
|
|
231
231
|
return function() {
|
|
232
|
-
return l(
|
|
232
|
+
return l(qe.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
|
-
},
|
|
239
|
-
const o =
|
|
238
|
+
}, De = /^\[(?:([a-z-]+):)?(.+)\]$/i, rr = /^\d+\/\d+$/, tr = /* @__PURE__ */ new Set(["px", "full", "screen"]), or = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, nr = /\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$/, sr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ar = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => q(e) || tr.has(e) || rr.test(e), Y = (e) => re(e, "length", gr), q = (e) => !!e && !Number.isNaN(Number(e)), ie = (e) => re(e, "number", q), oe = (e) => !!e && Number.isInteger(Number(e)), ir = (e) => e.endsWith("%") && q(e.slice(0, -1)), C = (e) => De.test(e), J = (e) => or.test(e), cr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), dr = (e) => re(e, cr, Se), ur = (e) => re(e, "position", Se), mr = /* @__PURE__ */ new Set(["image", "url"]), pr = (e) => re(e, mr, hr), br = (e) => re(e, "", fr), ne = () => !0, re = (e, r, t) => {
|
|
239
|
+
const o = De.exec(e);
|
|
240
240
|
return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
|
|
241
|
-
},
|
|
241
|
+
}, gr = (e) => (
|
|
242
242
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
243
243
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
244
244
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
245
|
-
|
|
246
|
-
),
|
|
247
|
-
const e =
|
|
245
|
+
nr.test(e) && !sr.test(e)
|
|
246
|
+
), Se = () => !1, fr = (e) => ar.test(e), hr = (e) => lr.test(e), yr = () => {
|
|
247
|
+
const e = I("colors"), r = I("spacing"), t = I("blur"), o = I("brightness"), s = I("borderColor"), l = I("borderRadius"), i = I("borderSpacing"), a = I("borderWidth"), d = I("contrast"), u = I("grayscale"), g = I("hueRotate"), v = I("invert"), f = I("gap"), x = I("gradientColorStops"), b = I("gradientColorStopPositions"), w = I("inset"), m = I("margin"), k = I("opacity"), y = I("padding"), z = I("saturate"), D = I("scale"), L = I("sepia"), E = I("skew"), h = I("space"), O = I("translate"), R = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", C, r], A = () => [C, r], M = () => ["", H, Y], P = () => ["auto", q, C], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], X = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], N = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], S = () => ["", "0", C], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [q, C];
|
|
248
248
|
return {
|
|
249
249
|
cacheSize: 500,
|
|
250
250
|
separator: ":",
|
|
251
251
|
theme: {
|
|
252
252
|
colors: [ne],
|
|
253
|
-
spacing: [
|
|
253
|
+
spacing: [H, Y],
|
|
254
254
|
blur: ["none", "", J, C],
|
|
255
255
|
brightness: V(),
|
|
256
256
|
borderColor: [e],
|
|
257
257
|
borderRadius: ["none", "", "full", J, C],
|
|
258
|
-
borderSpacing:
|
|
258
|
+
borderSpacing: A(),
|
|
259
259
|
borderWidth: M(),
|
|
260
260
|
contrast: V(),
|
|
261
|
-
grayscale:
|
|
261
|
+
grayscale: S(),
|
|
262
262
|
hueRotate: V(),
|
|
263
|
-
invert:
|
|
264
|
-
gap:
|
|
263
|
+
invert: S(),
|
|
264
|
+
gap: A(),
|
|
265
265
|
gradientColorStops: [e],
|
|
266
|
-
gradientColorStopPositions: [
|
|
266
|
+
gradientColorStopPositions: [ir, Y],
|
|
267
267
|
inset: Z(),
|
|
268
268
|
margin: Z(),
|
|
269
269
|
opacity: V(),
|
|
270
|
-
padding:
|
|
270
|
+
padding: A(),
|
|
271
271
|
saturate: V(),
|
|
272
272
|
scale: V(),
|
|
273
|
-
sepia:
|
|
273
|
+
sepia: S(),
|
|
274
274
|
skew: V(),
|
|
275
|
-
space:
|
|
276
|
-
translate:
|
|
275
|
+
space: A(),
|
|
276
|
+
translate: A()
|
|
277
277
|
},
|
|
278
278
|
classGroups: {
|
|
279
279
|
// Layout
|
|
@@ -421,63 +421,63 @@ const j = (e) => {
|
|
|
421
421
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
422
422
|
*/
|
|
423
423
|
inset: [{
|
|
424
|
-
inset: [
|
|
424
|
+
inset: [w]
|
|
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": [w]
|
|
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": [w]
|
|
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: [w]
|
|
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: [w]
|
|
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: [w]
|
|
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: [w]
|
|
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: [w]
|
|
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: [w]
|
|
481
481
|
}],
|
|
482
482
|
/**
|
|
483
483
|
* Visibility
|
|
@@ -525,14 +525,14 @@ const j = (e) => {
|
|
|
525
525
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
526
526
|
*/
|
|
527
527
|
grow: [{
|
|
528
|
-
grow:
|
|
528
|
+
grow: S()
|
|
529
529
|
}],
|
|
530
530
|
/**
|
|
531
531
|
* Flex Shrink
|
|
532
532
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
533
533
|
*/
|
|
534
534
|
shrink: [{
|
|
535
|
-
shrink:
|
|
535
|
+
shrink: S()
|
|
536
536
|
}],
|
|
537
537
|
/**
|
|
538
538
|
* Order
|
|
@@ -627,21 +627,21 @@ const j = (e) => {
|
|
|
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
|
|
@@ -712,126 +712,126 @@ const j = (e) => {
|
|
|
712
712
|
* @see https://tailwindcss.com/docs/padding
|
|
713
713
|
*/
|
|
714
714
|
p: [{
|
|
715
|
-
p: [
|
|
715
|
+
p: [y]
|
|
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: [y]
|
|
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: [y]
|
|
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: [y]
|
|
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: [y]
|
|
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: [y]
|
|
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: [y]
|
|
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: [y]
|
|
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: [y]
|
|
772
772
|
}],
|
|
773
773
|
/**
|
|
774
774
|
* Margin
|
|
775
775
|
* @see https://tailwindcss.com/docs/margin
|
|
776
776
|
*/
|
|
777
777
|
m: [{
|
|
778
|
-
m: [
|
|
778
|
+
m: [m]
|
|
779
779
|
}],
|
|
780
780
|
/**
|
|
781
781
|
* Margin X
|
|
782
782
|
* @see https://tailwindcss.com/docs/margin
|
|
783
783
|
*/
|
|
784
784
|
mx: [{
|
|
785
|
-
mx: [
|
|
785
|
+
mx: [m]
|
|
786
786
|
}],
|
|
787
787
|
/**
|
|
788
788
|
* Margin Y
|
|
789
789
|
* @see https://tailwindcss.com/docs/margin
|
|
790
790
|
*/
|
|
791
791
|
my: [{
|
|
792
|
-
my: [
|
|
792
|
+
my: [m]
|
|
793
793
|
}],
|
|
794
794
|
/**
|
|
795
795
|
* Margin Start
|
|
796
796
|
* @see https://tailwindcss.com/docs/margin
|
|
797
797
|
*/
|
|
798
798
|
ms: [{
|
|
799
|
-
ms: [
|
|
799
|
+
ms: [m]
|
|
800
800
|
}],
|
|
801
801
|
/**
|
|
802
802
|
* Margin End
|
|
803
803
|
* @see https://tailwindcss.com/docs/margin
|
|
804
804
|
*/
|
|
805
805
|
me: [{
|
|
806
|
-
me: [
|
|
806
|
+
me: [m]
|
|
807
807
|
}],
|
|
808
808
|
/**
|
|
809
809
|
* Margin Top
|
|
810
810
|
* @see https://tailwindcss.com/docs/margin
|
|
811
811
|
*/
|
|
812
812
|
mt: [{
|
|
813
|
-
mt: [
|
|
813
|
+
mt: [m]
|
|
814
814
|
}],
|
|
815
815
|
/**
|
|
816
816
|
* Margin Right
|
|
817
817
|
* @see https://tailwindcss.com/docs/margin
|
|
818
818
|
*/
|
|
819
819
|
mr: [{
|
|
820
|
-
mr: [
|
|
820
|
+
mr: [m]
|
|
821
821
|
}],
|
|
822
822
|
/**
|
|
823
823
|
* Margin Bottom
|
|
824
824
|
* @see https://tailwindcss.com/docs/margin
|
|
825
825
|
*/
|
|
826
826
|
mb: [{
|
|
827
|
-
mb: [
|
|
827
|
+
mb: [m]
|
|
828
828
|
}],
|
|
829
829
|
/**
|
|
830
830
|
* Margin Left
|
|
831
831
|
* @see https://tailwindcss.com/docs/margin
|
|
832
832
|
*/
|
|
833
833
|
ml: [{
|
|
834
|
-
ml: [
|
|
834
|
+
ml: [m]
|
|
835
835
|
}],
|
|
836
836
|
/**
|
|
837
837
|
* Space Between X
|
|
@@ -932,7 +932,7 @@ const j = (e) => {
|
|
|
932
932
|
* @see https://tailwindcss.com/docs/font-weight
|
|
933
933
|
*/
|
|
934
934
|
"font-weight": [{
|
|
935
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
935
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", ie]
|
|
936
936
|
}],
|
|
937
937
|
/**
|
|
938
938
|
* Font Family
|
|
@@ -983,14 +983,14 @@ const j = (e) => {
|
|
|
983
983
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
984
984
|
*/
|
|
985
985
|
"line-clamp": [{
|
|
986
|
-
"line-clamp": ["none",
|
|
986
|
+
"line-clamp": ["none", q, ie]
|
|
987
987
|
}],
|
|
988
988
|
/**
|
|
989
989
|
* Line Height
|
|
990
990
|
* @see https://tailwindcss.com/docs/line-height
|
|
991
991
|
*/
|
|
992
992
|
leading: [{
|
|
993
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
993
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", H, C]
|
|
994
994
|
}],
|
|
995
995
|
/**
|
|
996
996
|
* List Style Image
|
|
@@ -1026,7 +1026,7 @@ const j = (e) => {
|
|
|
1026
1026
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1027
1027
|
*/
|
|
1028
1028
|
"placeholder-opacity": [{
|
|
1029
|
-
"placeholder-opacity": [
|
|
1029
|
+
"placeholder-opacity": [k]
|
|
1030
1030
|
}],
|
|
1031
1031
|
/**
|
|
1032
1032
|
* Text Alignment
|
|
@@ -1047,7 +1047,7 @@ const j = (e) => {
|
|
|
1047
1047
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1048
1048
|
*/
|
|
1049
1049
|
"text-opacity": [{
|
|
1050
|
-
"text-opacity": [
|
|
1050
|
+
"text-opacity": [k]
|
|
1051
1051
|
}],
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Text Decoration
|
|
@@ -1066,14 +1066,14 @@ const j = (e) => {
|
|
|
1066
1066
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1067
1067
|
*/
|
|
1068
1068
|
"text-decoration-thickness": [{
|
|
1069
|
-
decoration: ["auto", "from-font",
|
|
1069
|
+
decoration: ["auto", "from-font", H, Y]
|
|
1070
1070
|
}],
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Text Underline Offset
|
|
1073
1073
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1074
1074
|
*/
|
|
1075
1075
|
"underline-offset": [{
|
|
1076
|
-
"underline-offset": ["auto",
|
|
1076
|
+
"underline-offset": ["auto", H, C]
|
|
1077
1077
|
}],
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Text Decoration Color
|
|
@@ -1104,7 +1104,7 @@ const j = (e) => {
|
|
|
1104
1104
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1105
1105
|
*/
|
|
1106
1106
|
indent: [{
|
|
1107
|
-
indent:
|
|
1107
|
+
indent: A()
|
|
1108
1108
|
}],
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Vertical Alignment
|
|
@@ -1162,7 +1162,7 @@ const j = (e) => {
|
|
|
1162
1162
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1163
1163
|
*/
|
|
1164
1164
|
"bg-opacity": [{
|
|
1165
|
-
"bg-opacity": [
|
|
1165
|
+
"bg-opacity": [k]
|
|
1166
1166
|
}],
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Background Origin
|
|
@@ -1176,7 +1176,7 @@ const j = (e) => {
|
|
|
1176
1176
|
* @see https://tailwindcss.com/docs/background-position
|
|
1177
1177
|
*/
|
|
1178
1178
|
"bg-position": [{
|
|
1179
|
-
bg: [...B(),
|
|
1179
|
+
bg: [...B(), ur]
|
|
1180
1180
|
}],
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Background Repeat
|
|
@@ -1192,7 +1192,7 @@ const j = (e) => {
|
|
|
1192
1192
|
* @see https://tailwindcss.com/docs/background-size
|
|
1193
1193
|
*/
|
|
1194
1194
|
"bg-size": [{
|
|
1195
|
-
bg: ["auto", "cover", "contain",
|
|
1195
|
+
bg: ["auto", "cover", "contain", dr]
|
|
1196
1196
|
}],
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Background Image
|
|
@@ -1201,7 +1201,7 @@ const j = (e) => {
|
|
|
1201
1201
|
"bg-image": [{
|
|
1202
1202
|
bg: ["none", {
|
|
1203
1203
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1204
|
-
},
|
|
1204
|
+
}, pr]
|
|
1205
1205
|
}],
|
|
1206
1206
|
/**
|
|
1207
1207
|
* Background Color
|
|
@@ -1236,21 +1236,21 @@ const j = (e) => {
|
|
|
1236
1236
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1237
1237
|
*/
|
|
1238
1238
|
"gradient-from": [{
|
|
1239
|
-
from: [
|
|
1239
|
+
from: [x]
|
|
1240
1240
|
}],
|
|
1241
1241
|
/**
|
|
1242
1242
|
* Gradient Color Stops Via
|
|
1243
1243
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1244
1244
|
*/
|
|
1245
1245
|
"gradient-via": [{
|
|
1246
|
-
via: [
|
|
1246
|
+
via: [x]
|
|
1247
1247
|
}],
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Gradient Color Stops To
|
|
1250
1250
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1251
1251
|
*/
|
|
1252
1252
|
"gradient-to": [{
|
|
1253
|
-
to: [
|
|
1253
|
+
to: [x]
|
|
1254
1254
|
}],
|
|
1255
1255
|
// Borders
|
|
1256
1256
|
/**
|
|
@@ -1426,7 +1426,7 @@ const j = (e) => {
|
|
|
1426
1426
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
1427
1427
|
*/
|
|
1428
1428
|
"border-opacity": [{
|
|
1429
|
-
"border-opacity": [
|
|
1429
|
+
"border-opacity": [k]
|
|
1430
1430
|
}],
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Border Style
|
|
@@ -1464,7 +1464,7 @@ const j = (e) => {
|
|
|
1464
1464
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1465
1465
|
*/
|
|
1466
1466
|
"divide-opacity": [{
|
|
1467
|
-
"divide-opacity": [
|
|
1467
|
+
"divide-opacity": [k]
|
|
1468
1468
|
}],
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Divide Style
|
|
@@ -1555,14 +1555,14 @@ const j = (e) => {
|
|
|
1555
1555
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1556
1556
|
*/
|
|
1557
1557
|
"outline-offset": [{
|
|
1558
|
-
"outline-offset": [
|
|
1558
|
+
"outline-offset": [H, C]
|
|
1559
1559
|
}],
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Outline Width
|
|
1562
1562
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1563
1563
|
*/
|
|
1564
1564
|
"outline-w": [{
|
|
1565
|
-
outline: [
|
|
1565
|
+
outline: [H, Y]
|
|
1566
1566
|
}],
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Outline Color
|
|
@@ -1595,14 +1595,14 @@ const j = (e) => {
|
|
|
1595
1595
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1596
1596
|
*/
|
|
1597
1597
|
"ring-opacity": [{
|
|
1598
|
-
"ring-opacity": [
|
|
1598
|
+
"ring-opacity": [k]
|
|
1599
1599
|
}],
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Ring Offset Width
|
|
1602
1602
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1603
1603
|
*/
|
|
1604
1604
|
"ring-offset-w": [{
|
|
1605
|
-
"ring-offset": [
|
|
1605
|
+
"ring-offset": [H, Y]
|
|
1606
1606
|
}],
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Ring Offset Color
|
|
@@ -1617,7 +1617,7 @@ const j = (e) => {
|
|
|
1617
1617
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1618
1618
|
*/
|
|
1619
1619
|
shadow: [{
|
|
1620
|
-
shadow: ["", "inner", "none", J,
|
|
1620
|
+
shadow: ["", "inner", "none", J, br]
|
|
1621
1621
|
}],
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Box Shadow Color
|
|
@@ -1631,7 +1631,7 @@ const j = (e) => {
|
|
|
1631
1631
|
* @see https://tailwindcss.com/docs/opacity
|
|
1632
1632
|
*/
|
|
1633
1633
|
opacity: [{
|
|
1634
|
-
opacity: [
|
|
1634
|
+
opacity: [k]
|
|
1635
1635
|
}],
|
|
1636
1636
|
/**
|
|
1637
1637
|
* Mix Blend Mode
|
|
@@ -1703,21 +1703,21 @@ const j = (e) => {
|
|
|
1703
1703
|
* @see https://tailwindcss.com/docs/invert
|
|
1704
1704
|
*/
|
|
1705
1705
|
invert: [{
|
|
1706
|
-
invert: [
|
|
1706
|
+
invert: [v]
|
|
1707
1707
|
}],
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Saturate
|
|
1710
1710
|
* @see https://tailwindcss.com/docs/saturate
|
|
1711
1711
|
*/
|
|
1712
1712
|
saturate: [{
|
|
1713
|
-
saturate: [
|
|
1713
|
+
saturate: [z]
|
|
1714
1714
|
}],
|
|
1715
1715
|
/**
|
|
1716
1716
|
* Sepia
|
|
1717
1717
|
* @see https://tailwindcss.com/docs/sepia
|
|
1718
1718
|
*/
|
|
1719
1719
|
sepia: [{
|
|
1720
|
-
sepia: [
|
|
1720
|
+
sepia: [L]
|
|
1721
1721
|
}],
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Backdrop Filter
|
|
@@ -1767,28 +1767,28 @@ const j = (e) => {
|
|
|
1767
1767
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
1768
1768
|
*/
|
|
1769
1769
|
"backdrop-invert": [{
|
|
1770
|
-
"backdrop-invert": [
|
|
1770
|
+
"backdrop-invert": [v]
|
|
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": [k]
|
|
1778
1778
|
}],
|
|
1779
1779
|
/**
|
|
1780
1780
|
* Backdrop Saturate
|
|
1781
1781
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
1782
1782
|
*/
|
|
1783
1783
|
"backdrop-saturate": [{
|
|
1784
|
-
"backdrop-saturate": [
|
|
1784
|
+
"backdrop-saturate": [z]
|
|
1785
1785
|
}],
|
|
1786
1786
|
/**
|
|
1787
1787
|
* Backdrop Sepia
|
|
1788
1788
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
1789
1789
|
*/
|
|
1790
1790
|
"backdrop-sepia": [{
|
|
1791
|
-
"backdrop-sepia": [
|
|
1791
|
+
"backdrop-sepia": [L]
|
|
1792
1792
|
}],
|
|
1793
1793
|
// Tables
|
|
1794
1794
|
/**
|
|
@@ -1882,21 +1882,21 @@ const j = (e) => {
|
|
|
1882
1882
|
* @see https://tailwindcss.com/docs/scale
|
|
1883
1883
|
*/
|
|
1884
1884
|
scale: [{
|
|
1885
|
-
scale: [
|
|
1885
|
+
scale: [D]
|
|
1886
1886
|
}],
|
|
1887
1887
|
/**
|
|
1888
1888
|
* Scale X
|
|
1889
1889
|
* @see https://tailwindcss.com/docs/scale
|
|
1890
1890
|
*/
|
|
1891
1891
|
"scale-x": [{
|
|
1892
|
-
"scale-x": [
|
|
1892
|
+
"scale-x": [D]
|
|
1893
1893
|
}],
|
|
1894
1894
|
/**
|
|
1895
1895
|
* Scale Y
|
|
1896
1896
|
* @see https://tailwindcss.com/docs/scale
|
|
1897
1897
|
*/
|
|
1898
1898
|
"scale-y": [{
|
|
1899
|
-
"scale-y": [
|
|
1899
|
+
"scale-y": [D]
|
|
1900
1900
|
}],
|
|
1901
1901
|
/**
|
|
1902
1902
|
* Rotate
|
|
@@ -1995,126 +1995,126 @@ const j = (e) => {
|
|
|
1995
1995
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
1996
1996
|
*/
|
|
1997
1997
|
"scroll-m": [{
|
|
1998
|
-
"scroll-m":
|
|
1998
|
+
"scroll-m": A()
|
|
1999
1999
|
}],
|
|
2000
2000
|
/**
|
|
2001
2001
|
* Scroll Margin X
|
|
2002
2002
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2003
2003
|
*/
|
|
2004
2004
|
"scroll-mx": [{
|
|
2005
|
-
"scroll-mx":
|
|
2005
|
+
"scroll-mx": A()
|
|
2006
2006
|
}],
|
|
2007
2007
|
/**
|
|
2008
2008
|
* Scroll Margin Y
|
|
2009
2009
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2010
2010
|
*/
|
|
2011
2011
|
"scroll-my": [{
|
|
2012
|
-
"scroll-my":
|
|
2012
|
+
"scroll-my": A()
|
|
2013
2013
|
}],
|
|
2014
2014
|
/**
|
|
2015
2015
|
* Scroll Margin Start
|
|
2016
2016
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2017
2017
|
*/
|
|
2018
2018
|
"scroll-ms": [{
|
|
2019
|
-
"scroll-ms":
|
|
2019
|
+
"scroll-ms": A()
|
|
2020
2020
|
}],
|
|
2021
2021
|
/**
|
|
2022
2022
|
* Scroll Margin End
|
|
2023
2023
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2024
2024
|
*/
|
|
2025
2025
|
"scroll-me": [{
|
|
2026
|
-
"scroll-me":
|
|
2026
|
+
"scroll-me": A()
|
|
2027
2027
|
}],
|
|
2028
2028
|
/**
|
|
2029
2029
|
* Scroll Margin Top
|
|
2030
2030
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2031
2031
|
*/
|
|
2032
2032
|
"scroll-mt": [{
|
|
2033
|
-
"scroll-mt":
|
|
2033
|
+
"scroll-mt": A()
|
|
2034
2034
|
}],
|
|
2035
2035
|
/**
|
|
2036
2036
|
* Scroll Margin Right
|
|
2037
2037
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2038
2038
|
*/
|
|
2039
2039
|
"scroll-mr": [{
|
|
2040
|
-
"scroll-mr":
|
|
2040
|
+
"scroll-mr": A()
|
|
2041
2041
|
}],
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Scroll Margin Bottom
|
|
2044
2044
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2045
2045
|
*/
|
|
2046
2046
|
"scroll-mb": [{
|
|
2047
|
-
"scroll-mb":
|
|
2047
|
+
"scroll-mb": A()
|
|
2048
2048
|
}],
|
|
2049
2049
|
/**
|
|
2050
2050
|
* Scroll Margin Left
|
|
2051
2051
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2052
2052
|
*/
|
|
2053
2053
|
"scroll-ml": [{
|
|
2054
|
-
"scroll-ml":
|
|
2054
|
+
"scroll-ml": A()
|
|
2055
2055
|
}],
|
|
2056
2056
|
/**
|
|
2057
2057
|
* Scroll Padding
|
|
2058
2058
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2059
2059
|
*/
|
|
2060
2060
|
"scroll-p": [{
|
|
2061
|
-
"scroll-p":
|
|
2061
|
+
"scroll-p": A()
|
|
2062
2062
|
}],
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Scroll Padding X
|
|
2065
2065
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2066
2066
|
*/
|
|
2067
2067
|
"scroll-px": [{
|
|
2068
|
-
"scroll-px":
|
|
2068
|
+
"scroll-px": A()
|
|
2069
2069
|
}],
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Scroll Padding Y
|
|
2072
2072
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2073
2073
|
*/
|
|
2074
2074
|
"scroll-py": [{
|
|
2075
|
-
"scroll-py":
|
|
2075
|
+
"scroll-py": A()
|
|
2076
2076
|
}],
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Scroll Padding Start
|
|
2079
2079
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2080
2080
|
*/
|
|
2081
2081
|
"scroll-ps": [{
|
|
2082
|
-
"scroll-ps":
|
|
2082
|
+
"scroll-ps": A()
|
|
2083
2083
|
}],
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Scroll Padding End
|
|
2086
2086
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2087
2087
|
*/
|
|
2088
2088
|
"scroll-pe": [{
|
|
2089
|
-
"scroll-pe":
|
|
2089
|
+
"scroll-pe": A()
|
|
2090
2090
|
}],
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Scroll Padding Top
|
|
2093
2093
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2094
2094
|
*/
|
|
2095
2095
|
"scroll-pt": [{
|
|
2096
|
-
"scroll-pt":
|
|
2096
|
+
"scroll-pt": A()
|
|
2097
2097
|
}],
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Scroll Padding Right
|
|
2100
2100
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2101
2101
|
*/
|
|
2102
2102
|
"scroll-pr": [{
|
|
2103
|
-
"scroll-pr":
|
|
2103
|
+
"scroll-pr": A()
|
|
2104
2104
|
}],
|
|
2105
2105
|
/**
|
|
2106
2106
|
* Scroll Padding Bottom
|
|
2107
2107
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2108
2108
|
*/
|
|
2109
2109
|
"scroll-pb": [{
|
|
2110
|
-
"scroll-pb":
|
|
2110
|
+
"scroll-pb": A()
|
|
2111
2111
|
}],
|
|
2112
2112
|
/**
|
|
2113
2113
|
* Scroll Padding Left
|
|
2114
2114
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2115
2115
|
*/
|
|
2116
2116
|
"scroll-pl": [{
|
|
2117
|
-
"scroll-pl":
|
|
2117
|
+
"scroll-pl": A()
|
|
2118
2118
|
}],
|
|
2119
2119
|
/**
|
|
2120
2120
|
* Scroll Snap Align
|
|
@@ -2197,7 +2197,7 @@ const j = (e) => {
|
|
|
2197
2197
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2198
2198
|
*/
|
|
2199
2199
|
"stroke-w": [{
|
|
2200
|
-
stroke: [
|
|
2200
|
+
stroke: [H, Y, ie]
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Stroke
|
|
@@ -2272,11 +2272,11 @@ const j = (e) => {
|
|
|
2272
2272
|
"font-size": ["leading"]
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
|
-
},
|
|
2275
|
+
}, xr = /* @__PURE__ */ er(yr);
|
|
2276
2276
|
function c(...e) {
|
|
2277
|
-
return
|
|
2277
|
+
return xr(Ve(e));
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2279
|
+
function wr(e) {
|
|
2280
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, s = Math.max(r, t, o), l = Math.min(r, t, o);
|
|
2281
2281
|
let i = 0, a = 0;
|
|
2282
2282
|
const d = (s + l) / 2;
|
|
@@ -2296,7 +2296,7 @@ function yr(e) {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
return [i * 360, a * 100, d * 100];
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2299
|
+
function fe(e, r, t) {
|
|
2300
2300
|
t /= 100;
|
|
2301
2301
|
const o = r * Math.min(t, 1 - t) / 100, s = (l) => {
|
|
2302
2302
|
const i = (l + e / 30) % 12, a = t - o * Math.max(Math.min(i - 3, 9 - i, 1), -1);
|
|
@@ -2304,12 +2304,12 @@ function ge(e, r, t) {
|
|
|
2304
2304
|
};
|
|
2305
2305
|
return `#${s(0)}${s(8)}${s(4)}`;
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2308
|
-
const [r, t, o] =
|
|
2307
|
+
function ce(e) {
|
|
2308
|
+
const [r, t, o] = wr(e);
|
|
2309
2309
|
return {
|
|
2310
2310
|
base: e,
|
|
2311
|
-
light:
|
|
2312
|
-
dark:
|
|
2311
|
+
light: fe(r, Math.max(0, t - 10), Math.min(100, o + 15)),
|
|
2312
|
+
dark: fe(r, Math.min(100, t + 10), Math.max(0, o - 15))
|
|
2313
2313
|
};
|
|
2314
2314
|
}
|
|
2315
2315
|
const T = {
|
|
@@ -2335,9 +2335,9 @@ const T = {
|
|
|
2335
2335
|
light: "#f9fafb",
|
|
2336
2336
|
active: "#4338ca"
|
|
2337
2337
|
}
|
|
2338
|
-
},
|
|
2339
|
-
function
|
|
2340
|
-
return
|
|
2338
|
+
}, Ae = $e(T);
|
|
2339
|
+
function tt() {
|
|
2340
|
+
return _e(Ae);
|
|
2341
2341
|
}
|
|
2342
2342
|
function he(e) {
|
|
2343
2343
|
const r = document.documentElement;
|
|
@@ -2373,12 +2373,12 @@ function he(e) {
|
|
|
2373
2373
|
e.colors.backgroundLight
|
|
2374
2374
|
), r.style.setProperty("--componentables-disabled", e.colors.disabled), r.style.setProperty("--componentables-light", e.colors.light), r.style.setProperty("--componentables-active", e.colors.active);
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function ot({
|
|
2377
2377
|
children: e,
|
|
2378
2378
|
theme: r
|
|
2379
2379
|
}) {
|
|
2380
|
-
const t =
|
|
2381
|
-
const o = r?.colors || {}, s = o.primary ?
|
|
2380
|
+
const t = Te(() => {
|
|
2381
|
+
const o = r?.colors || {}, s = o.primary ? ce(o.primary) : null, l = o.secondary ? ce(o.secondary) : null, i = o.danger ? ce(o.danger) : null;
|
|
2382
2382
|
return {
|
|
2383
2383
|
colors: {
|
|
2384
2384
|
primary: o.primary || T.colors.primary,
|
|
@@ -2404,11 +2404,11 @@ function et({
|
|
|
2404
2404
|
}
|
|
2405
2405
|
};
|
|
2406
2406
|
}, [r]);
|
|
2407
|
-
return typeof window < "u" && he(t),
|
|
2407
|
+
return typeof window < "u" && he(t), U(() => {
|
|
2408
2408
|
he(t);
|
|
2409
|
-
}, [t]), G.createElement(
|
|
2409
|
+
}, [t]), G.createElement(Ae.Provider, { value: t }, e);
|
|
2410
2410
|
}
|
|
2411
|
-
const
|
|
2411
|
+
const vr = {
|
|
2412
2412
|
primary: "bg-primary text-white border-primary hover:bg-primary-dark hover:border-primary-dark active:bg-active",
|
|
2413
2413
|
secondary: "bg-secondary text-white border-secondary hover:bg-secondary-dark hover:border-secondary-dark",
|
|
2414
2414
|
"primary-outline": "bg-transparent text-primary border-primary hover:bg-primary hover:text-white",
|
|
@@ -2418,7 +2418,7 @@ const xr = {
|
|
|
2418
2418
|
danger: "bg-transparent text-danger border-danger hover:text-white hover:bg-danger hover:border-danger active:bg-danger-dark",
|
|
2419
2419
|
link: "bg-transparent text-secondary-light! underline hover:text-primary! border-0",
|
|
2420
2420
|
dark: "bg-gray-800 text-white border-gray-800 hover:bg-gray-900 hover:border-gray-900"
|
|
2421
|
-
},
|
|
2421
|
+
}, kr = {
|
|
2422
2422
|
sm: "px-3 py-1.5 text-sm",
|
|
2423
2423
|
md: "px-4 py-2 text-base",
|
|
2424
2424
|
lg: "px-6 py-3 text-lg",
|
|
@@ -2436,7 +2436,7 @@ function ee({
|
|
|
2436
2436
|
className: d = "",
|
|
2437
2437
|
...u
|
|
2438
2438
|
}) {
|
|
2439
|
-
return /* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ p(
|
|
2440
2440
|
"button",
|
|
2441
2441
|
{
|
|
2442
2442
|
type: o,
|
|
@@ -2444,15 +2444,15 @@ function ee({
|
|
|
2444
2444
|
disabled: t || a,
|
|
2445
2445
|
className: c(
|
|
2446
2446
|
"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",
|
|
2447
|
-
t || a ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" :
|
|
2448
|
-
|
|
2447
|
+
t || a ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" : vr[s],
|
|
2448
|
+
kr[l],
|
|
2449
2449
|
i && "w-full",
|
|
2450
2450
|
a && "cursor-wait opacity-75",
|
|
2451
2451
|
d
|
|
2452
2452
|
),
|
|
2453
2453
|
...u,
|
|
2454
2454
|
children: [
|
|
2455
|
-
a && /* @__PURE__ */
|
|
2455
|
+
a && /* @__PURE__ */ p(
|
|
2456
2456
|
"svg",
|
|
2457
2457
|
{
|
|
2458
2458
|
className: "w-4 h-4 mr-2 animate-spin",
|
|
@@ -2486,7 +2486,7 @@ function ee({
|
|
|
2486
2486
|
}
|
|
2487
2487
|
);
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2489
|
+
function Nr({
|
|
2490
2490
|
id: e,
|
|
2491
2491
|
name: r,
|
|
2492
2492
|
type: t = "text",
|
|
@@ -2498,32 +2498,32 @@ function vr({
|
|
|
2498
2498
|
disabled: d = !1,
|
|
2499
2499
|
required: u = !1,
|
|
2500
2500
|
colorScheme: g = "secondary",
|
|
2501
|
-
className:
|
|
2502
|
-
...
|
|
2501
|
+
className: v = "",
|
|
2502
|
+
...f
|
|
2503
2503
|
}) {
|
|
2504
|
-
const
|
|
2505
|
-
const
|
|
2504
|
+
const x = () => {
|
|
2505
|
+
const w = "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";
|
|
2506
2506
|
if (a)
|
|
2507
2507
|
return c(
|
|
2508
|
-
|
|
2508
|
+
w,
|
|
2509
2509
|
"border-danger focus:border-danger focus:shadow-danger-light"
|
|
2510
2510
|
);
|
|
2511
2511
|
switch (g) {
|
|
2512
2512
|
case "primary":
|
|
2513
2513
|
return c(
|
|
2514
|
-
|
|
2514
|
+
w,
|
|
2515
2515
|
"text-primary border-primary focus:border-primary"
|
|
2516
2516
|
);
|
|
2517
2517
|
case "secondary":
|
|
2518
2518
|
default:
|
|
2519
2519
|
return c(
|
|
2520
|
-
|
|
2520
|
+
w,
|
|
2521
2521
|
"text-secondary border-secondary focus:border-secondary"
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
2524
2524
|
}, b = () => g === "primary" ? "text-primary" : "text-secondary";
|
|
2525
|
-
return /* @__PURE__ */
|
|
2526
|
-
i && /* @__PURE__ */
|
|
2525
|
+
return /* @__PURE__ */ p("div", { className: c("mb-6", v), children: [
|
|
2526
|
+
i && /* @__PURE__ */ p(
|
|
2527
2527
|
"label",
|
|
2528
2528
|
{
|
|
2529
2529
|
htmlFor: e,
|
|
@@ -2545,14 +2545,14 @@ function vr({
|
|
|
2545
2545
|
placeholder: l,
|
|
2546
2546
|
disabled: d,
|
|
2547
2547
|
required: u,
|
|
2548
|
-
className:
|
|
2549
|
-
...
|
|
2548
|
+
className: x(),
|
|
2549
|
+
...f
|
|
2550
2550
|
}
|
|
2551
2551
|
),
|
|
2552
2552
|
a && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: a })
|
|
2553
2553
|
] });
|
|
2554
2554
|
}
|
|
2555
|
-
function
|
|
2555
|
+
function Cr({
|
|
2556
2556
|
id: e,
|
|
2557
2557
|
name: r,
|
|
2558
2558
|
value: t,
|
|
@@ -2564,32 +2564,32 @@ function kr({
|
|
|
2564
2564
|
required: d = !1,
|
|
2565
2565
|
colorScheme: u = "secondary",
|
|
2566
2566
|
className: g = "",
|
|
2567
|
-
rows:
|
|
2568
|
-
...
|
|
2567
|
+
rows: v = 4,
|
|
2568
|
+
...f
|
|
2569
2569
|
}) {
|
|
2570
|
-
const
|
|
2571
|
-
const
|
|
2570
|
+
const x = () => {
|
|
2571
|
+
const w = "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";
|
|
2572
2572
|
if (i)
|
|
2573
2573
|
return c(
|
|
2574
|
-
|
|
2574
|
+
w,
|
|
2575
2575
|
"border-danger focus:border-danger focus:shadow-danger-light"
|
|
2576
2576
|
);
|
|
2577
2577
|
switch (u) {
|
|
2578
2578
|
case "primary":
|
|
2579
2579
|
return c(
|
|
2580
|
-
|
|
2580
|
+
w,
|
|
2581
2581
|
"text-primary border-primary focus:border-primary"
|
|
2582
2582
|
);
|
|
2583
2583
|
case "secondary":
|
|
2584
2584
|
default:
|
|
2585
2585
|
return c(
|
|
2586
|
-
|
|
2586
|
+
w,
|
|
2587
2587
|
"text-secondary border-secondary focus:border-secondary"
|
|
2588
2588
|
);
|
|
2589
2589
|
}
|
|
2590
2590
|
}, b = () => u === "primary" ? "text-primary" : "text-secondary";
|
|
2591
|
-
return /* @__PURE__ */
|
|
2592
|
-
l && /* @__PURE__ */
|
|
2591
|
+
return /* @__PURE__ */ p("div", { className: c("mb-6", g), children: [
|
|
2592
|
+
l && /* @__PURE__ */ p(
|
|
2593
2593
|
"label",
|
|
2594
2594
|
{
|
|
2595
2595
|
htmlFor: e,
|
|
@@ -2610,19 +2610,19 @@ function kr({
|
|
|
2610
2610
|
placeholder: s,
|
|
2611
2611
|
disabled: a,
|
|
2612
2612
|
required: d,
|
|
2613
|
-
rows:
|
|
2614
|
-
className:
|
|
2615
|
-
...
|
|
2613
|
+
rows: v,
|
|
2614
|
+
className: x(),
|
|
2615
|
+
...f
|
|
2616
2616
|
}
|
|
2617
2617
|
),
|
|
2618
2618
|
i && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
|
|
2619
2619
|
] });
|
|
2620
2620
|
}
|
|
2621
|
-
const
|
|
2622
|
-
function
|
|
2621
|
+
const Ee = { Input: Nr, InputArea: Cr };
|
|
2622
|
+
function nt({
|
|
2623
2623
|
id: e,
|
|
2624
2624
|
name: r,
|
|
2625
|
-
checked: t
|
|
2625
|
+
checked: t,
|
|
2626
2626
|
onChange: o,
|
|
2627
2627
|
disabled: s = !1,
|
|
2628
2628
|
label: l,
|
|
@@ -2631,14 +2631,10 @@ function rt({
|
|
|
2631
2631
|
className: d = "",
|
|
2632
2632
|
...u
|
|
2633
2633
|
}) {
|
|
2634
|
-
const [g,
|
|
2635
|
-
H(() => {
|
|
2636
|
-
k(t);
|
|
2637
|
-
}, [t]);
|
|
2638
|
-
const y = () => {
|
|
2634
|
+
const [g, v] = _(!1), f = t !== void 0, x = f ? t : g, b = () => {
|
|
2639
2635
|
if (s) return;
|
|
2640
|
-
const
|
|
2641
|
-
|
|
2636
|
+
const D = !x;
|
|
2637
|
+
f || v(D), o?.(D);
|
|
2642
2638
|
}, w = () => ({
|
|
2643
2639
|
primary: {
|
|
2644
2640
|
bg: "bg-primary",
|
|
@@ -2650,7 +2646,7 @@ function rt({
|
|
|
2650
2646
|
border: "border-secondary",
|
|
2651
2647
|
text: "text-secondary"
|
|
2652
2648
|
}
|
|
2653
|
-
})[i],
|
|
2649
|
+
})[i], m = () => {
|
|
2654
2650
|
switch (a) {
|
|
2655
2651
|
case "sm":
|
|
2656
2652
|
return "w-10 h-6";
|
|
@@ -2660,7 +2656,7 @@ function rt({
|
|
|
2660
2656
|
default:
|
|
2661
2657
|
return "w-13 h-7";
|
|
2662
2658
|
}
|
|
2663
|
-
},
|
|
2659
|
+
}, k = () => {
|
|
2664
2660
|
switch (a) {
|
|
2665
2661
|
case "sm":
|
|
2666
2662
|
return "w-5 h-5";
|
|
@@ -2670,19 +2666,19 @@ function rt({
|
|
|
2670
2666
|
default:
|
|
2671
2667
|
return "w-6 h-6";
|
|
2672
2668
|
}
|
|
2673
|
-
},
|
|
2674
|
-
if (!
|
|
2669
|
+
}, y = () => {
|
|
2670
|
+
if (!x) return "translate-x-0";
|
|
2675
2671
|
switch (a) {
|
|
2676
2672
|
case "sm":
|
|
2677
|
-
return "translate-x-
|
|
2673
|
+
return "translate-x-4";
|
|
2678
2674
|
case "lg":
|
|
2679
2675
|
return "translate-x-8";
|
|
2680
2676
|
case "md":
|
|
2681
2677
|
default:
|
|
2682
2678
|
return "translate-x-6";
|
|
2683
2679
|
}
|
|
2684
|
-
},
|
|
2685
|
-
return /* @__PURE__ */
|
|
2680
|
+
}, z = w();
|
|
2681
|
+
return /* @__PURE__ */ p(
|
|
2686
2682
|
"div",
|
|
2687
2683
|
{
|
|
2688
2684
|
className: c(
|
|
@@ -2690,18 +2686,18 @@ function rt({
|
|
|
2690
2686
|
s ? "cursor-not-allowed" : "cursor-pointer",
|
|
2691
2687
|
d
|
|
2692
2688
|
),
|
|
2693
|
-
onClick:
|
|
2689
|
+
onClick: b,
|
|
2694
2690
|
children: [
|
|
2695
|
-
/* @__PURE__ */
|
|
2691
|
+
/* @__PURE__ */ p("div", { className: "relative", children: [
|
|
2696
2692
|
/* @__PURE__ */ n(
|
|
2697
2693
|
"input",
|
|
2698
2694
|
{
|
|
2699
2695
|
type: "checkbox",
|
|
2700
2696
|
id: e,
|
|
2701
2697
|
name: r,
|
|
2702
|
-
checked:
|
|
2703
|
-
onChange:
|
|
2704
|
-
|
|
2698
|
+
checked: x,
|
|
2699
|
+
onChange: b,
|
|
2700
|
+
onClick: (D) => D.stopPropagation(),
|
|
2705
2701
|
disabled: s,
|
|
2706
2702
|
className: "sr-only",
|
|
2707
2703
|
"aria-label": l || r,
|
|
@@ -2713,8 +2709,8 @@ function rt({
|
|
|
2713
2709
|
{
|
|
2714
2710
|
className: c(
|
|
2715
2711
|
"block transition-all duration-300 rounded-full border-2",
|
|
2716
|
-
|
|
2717
|
-
|
|
2712
|
+
m(),
|
|
2713
|
+
x ? c(z.bg, z.border) : "bg-gray-200 border-gray-300",
|
|
2718
2714
|
s ? "opacity-50" : "hover:shadow-md"
|
|
2719
2715
|
),
|
|
2720
2716
|
children: /* @__PURE__ */ n(
|
|
@@ -2722,8 +2718,8 @@ function rt({
|
|
|
2722
2718
|
{
|
|
2723
2719
|
className: c(
|
|
2724
2720
|
"absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",
|
|
2725
|
-
|
|
2726
|
-
|
|
2721
|
+
k(),
|
|
2722
|
+
y()
|
|
2727
2723
|
)
|
|
2728
2724
|
}
|
|
2729
2725
|
)
|
|
@@ -2735,7 +2731,7 @@ function rt({
|
|
|
2735
2731
|
{
|
|
2736
2732
|
className: c(
|
|
2737
2733
|
"text-sm font-medium select-none",
|
|
2738
|
-
|
|
2734
|
+
z.text,
|
|
2739
2735
|
s && "opacity-50"
|
|
2740
2736
|
),
|
|
2741
2737
|
children: l
|
|
@@ -2745,7 +2741,7 @@ function rt({
|
|
|
2745
2741
|
}
|
|
2746
2742
|
);
|
|
2747
2743
|
}
|
|
2748
|
-
const
|
|
2744
|
+
const Mr = ({
|
|
2749
2745
|
size: e = 40,
|
|
2750
2746
|
wrapperStyle: r = {},
|
|
2751
2747
|
wrapperClass: t = "",
|
|
@@ -2762,10 +2758,10 @@ const Nr = ({
|
|
|
2762
2758
|
minHeight: "100px",
|
|
2763
2759
|
...r
|
|
2764
2760
|
};
|
|
2765
|
-
return /* @__PURE__ */
|
|
2761
|
+
return /* @__PURE__ */ p("div", { style: a, className: t, children: [
|
|
2766
2762
|
/* @__PURE__ */ n("label", { children: s }),
|
|
2767
2763
|
/* @__PURE__ */ n(
|
|
2768
|
-
|
|
2764
|
+
Re,
|
|
2769
2765
|
{
|
|
2770
2766
|
visible: l,
|
|
2771
2767
|
height: e,
|
|
@@ -2778,7 +2774,7 @@ const Nr = ({
|
|
|
2778
2774
|
}
|
|
2779
2775
|
)
|
|
2780
2776
|
] });
|
|
2781
|
-
}, { Input:
|
|
2777
|
+
}, { Input: de } = Ee, st = ({
|
|
2782
2778
|
title: e = "Iniciar Sesión",
|
|
2783
2779
|
showForgotPassword: r = !0,
|
|
2784
2780
|
onlyForgotPassword: t = !1,
|
|
@@ -2789,7 +2785,7 @@ const Nr = ({
|
|
|
2789
2785
|
const [i, a] = _({
|
|
2790
2786
|
email: "",
|
|
2791
2787
|
password: ""
|
|
2792
|
-
}), [d, u] = _({}), [g,
|
|
2788
|
+
}), [d, u] = _({}), [g, v] = _(!1), [f, x] = _(
|
|
2793
2789
|
t ? "forgot" : "login"
|
|
2794
2790
|
), b = (E, h) => {
|
|
2795
2791
|
switch (E) {
|
|
@@ -2800,7 +2796,7 @@ const Nr = ({
|
|
|
2800
2796
|
default:
|
|
2801
2797
|
return "";
|
|
2802
2798
|
}
|
|
2803
|
-
},
|
|
2799
|
+
}, w = (E) => {
|
|
2804
2800
|
const { name: h, value: O } = E.target;
|
|
2805
2801
|
a((R) => ({
|
|
2806
2802
|
...R,
|
|
@@ -2809,18 +2805,18 @@ const Nr = ({
|
|
|
2809
2805
|
...R,
|
|
2810
2806
|
[h]: ""
|
|
2811
2807
|
}));
|
|
2812
|
-
},
|
|
2808
|
+
}, m = () => {
|
|
2813
2809
|
const E = {}, h = b("email", i.email);
|
|
2814
|
-
if (h && (E.email = h),
|
|
2810
|
+
if (h && (E.email = h), f === "login") {
|
|
2815
2811
|
const O = b("password", i.password);
|
|
2816
2812
|
O && (E.password = O);
|
|
2817
2813
|
}
|
|
2818
2814
|
return u(E), Object.keys(E).length === 0;
|
|
2819
|
-
},
|
|
2820
|
-
if (E.preventDefault(), !!
|
|
2821
|
-
|
|
2815
|
+
}, k = async (E) => {
|
|
2816
|
+
if (E.preventDefault(), !!m()) {
|
|
2817
|
+
v(!0);
|
|
2822
2818
|
try {
|
|
2823
|
-
switch (
|
|
2819
|
+
switch (f) {
|
|
2824
2820
|
case "login":
|
|
2825
2821
|
s && await s({
|
|
2826
2822
|
email: i.email,
|
|
@@ -2834,16 +2830,16 @@ const Nr = ({
|
|
|
2834
2830
|
} catch (h) {
|
|
2835
2831
|
console.error("Login error:", h);
|
|
2836
2832
|
} finally {
|
|
2837
|
-
|
|
2833
|
+
v(!1);
|
|
2838
2834
|
}
|
|
2839
2835
|
}
|
|
2840
|
-
},
|
|
2841
|
-
|
|
2842
|
-
},
|
|
2843
|
-
switch (
|
|
2836
|
+
}, y = (E) => {
|
|
2837
|
+
x(E), u({}), a({ email: i.email, password: "" });
|
|
2838
|
+
}, z = () => {
|
|
2839
|
+
switch (f) {
|
|
2844
2840
|
case "forgot":
|
|
2845
2841
|
return /* @__PURE__ */ n(
|
|
2846
|
-
|
|
2842
|
+
de,
|
|
2847
2843
|
{
|
|
2848
2844
|
id: "email",
|
|
2849
2845
|
type: "email",
|
|
@@ -2851,16 +2847,16 @@ const Nr = ({
|
|
|
2851
2847
|
placeholder: "Ingresa tu email",
|
|
2852
2848
|
label: "Email",
|
|
2853
2849
|
value: i.email,
|
|
2854
|
-
onChange:
|
|
2850
|
+
onChange: w,
|
|
2855
2851
|
error: d.email,
|
|
2856
2852
|
disabled: g,
|
|
2857
2853
|
colorScheme: "secondary"
|
|
2858
2854
|
}
|
|
2859
2855
|
);
|
|
2860
2856
|
default:
|
|
2861
|
-
return /* @__PURE__ */
|
|
2857
|
+
return /* @__PURE__ */ p(Oe, { children: [
|
|
2862
2858
|
/* @__PURE__ */ n(
|
|
2863
|
-
|
|
2859
|
+
de,
|
|
2864
2860
|
{
|
|
2865
2861
|
id: "email",
|
|
2866
2862
|
type: "email",
|
|
@@ -2868,14 +2864,14 @@ const Nr = ({
|
|
|
2868
2864
|
placeholder: "Ingresa tu email",
|
|
2869
2865
|
label: "Email",
|
|
2870
2866
|
value: i.email,
|
|
2871
|
-
onChange:
|
|
2867
|
+
onChange: w,
|
|
2872
2868
|
error: d.email,
|
|
2873
2869
|
disabled: g,
|
|
2874
2870
|
colorScheme: "secondary"
|
|
2875
2871
|
}
|
|
2876
2872
|
),
|
|
2877
2873
|
/* @__PURE__ */ n(
|
|
2878
|
-
|
|
2874
|
+
de,
|
|
2879
2875
|
{
|
|
2880
2876
|
id: "password",
|
|
2881
2877
|
type: "password",
|
|
@@ -2883,7 +2879,7 @@ const Nr = ({
|
|
|
2883
2879
|
placeholder: "Ingresa tu contraseña",
|
|
2884
2880
|
label: "Contraseña",
|
|
2885
2881
|
value: i.password,
|
|
2886
|
-
onChange:
|
|
2882
|
+
onChange: w,
|
|
2887
2883
|
error: d.password,
|
|
2888
2884
|
disabled: g,
|
|
2889
2885
|
colorScheme: "secondary"
|
|
@@ -2891,17 +2887,17 @@ const Nr = ({
|
|
|
2891
2887
|
)
|
|
2892
2888
|
] });
|
|
2893
2889
|
}
|
|
2894
|
-
},
|
|
2895
|
-
switch (
|
|
2890
|
+
}, D = () => {
|
|
2891
|
+
switch (f) {
|
|
2896
2892
|
case "forgot":
|
|
2897
2893
|
return t ? "Cambiar Contraseña" : "Recuperar Contraseña";
|
|
2898
2894
|
default:
|
|
2899
2895
|
return e;
|
|
2900
2896
|
}
|
|
2901
|
-
},
|
|
2897
|
+
}, L = () => {
|
|
2902
2898
|
if (g)
|
|
2903
|
-
return /* @__PURE__ */ n(
|
|
2904
|
-
switch (
|
|
2899
|
+
return /* @__PURE__ */ n(Mr, { size: 20, wrapperStyle: { minHeight: "auto" } });
|
|
2900
|
+
switch (f) {
|
|
2905
2901
|
case "forgot":
|
|
2906
2902
|
return "Enviar Enlace";
|
|
2907
2903
|
default:
|
|
@@ -2912,10 +2908,10 @@ const Nr = ({
|
|
|
2912
2908
|
"div",
|
|
2913
2909
|
{
|
|
2914
2910
|
className: `flex justify-center items-center min-h-[90vh] p-4 bg-background ${o || ""}`,
|
|
2915
|
-
children: /* @__PURE__ */
|
|
2916
|
-
/* @__PURE__ */ n("h2", { className: "text-center mb-8 text-2xl font-semibold text-primary", children:
|
|
2917
|
-
/* @__PURE__ */
|
|
2918
|
-
/* @__PURE__ */ n("div", { className: "space-y-4 mb-6", children:
|
|
2911
|
+
children: /* @__PURE__ */ p("div", { className: "w-full max-w-100 p-6 bg-white rounded-2xl shadow-lg animate-[fadeIn_0.3s_ease-out] sm:p-8", children: [
|
|
2912
|
+
/* @__PURE__ */ n("h2", { className: "text-center mb-8 text-2xl font-semibold text-primary", children: D() }),
|
|
2913
|
+
/* @__PURE__ */ p("form", { onSubmit: k, children: [
|
|
2914
|
+
/* @__PURE__ */ n("div", { className: "space-y-4 mb-6", children: z() }),
|
|
2919
2915
|
/* @__PURE__ */ n(
|
|
2920
2916
|
ee,
|
|
2921
2917
|
{
|
|
@@ -2926,15 +2922,15 @@ const Nr = ({
|
|
|
2926
2922
|
variant: "primary",
|
|
2927
2923
|
size: "lg",
|
|
2928
2924
|
className: "mb-6",
|
|
2929
|
-
children: !g &&
|
|
2925
|
+
children: !g && L()
|
|
2930
2926
|
}
|
|
2931
2927
|
)
|
|
2932
2928
|
] }),
|
|
2933
|
-
|
|
2929
|
+
f === "login" && r && /* @__PURE__ */ n(
|
|
2934
2930
|
ee,
|
|
2935
2931
|
{
|
|
2936
2932
|
type: "button",
|
|
2937
|
-
onClick: () =>
|
|
2933
|
+
onClick: () => y("forgot"),
|
|
2938
2934
|
variant: "link",
|
|
2939
2935
|
size: "sm",
|
|
2940
2936
|
fullWidth: !0,
|
|
@@ -2942,11 +2938,11 @@ const Nr = ({
|
|
|
2942
2938
|
children: "¿Olvidaste tu contraseña?"
|
|
2943
2939
|
}
|
|
2944
2940
|
),
|
|
2945
|
-
|
|
2941
|
+
f === "forgot" && !t && /* @__PURE__ */ n(
|
|
2946
2942
|
ee,
|
|
2947
2943
|
{
|
|
2948
2944
|
type: "button",
|
|
2949
|
-
onClick: () =>
|
|
2945
|
+
onClick: () => y("login"),
|
|
2950
2946
|
variant: "link",
|
|
2951
2947
|
size: "sm",
|
|
2952
2948
|
fullWidth: !0,
|
|
@@ -2958,16 +2954,16 @@ const Nr = ({
|
|
|
2958
2954
|
}
|
|
2959
2955
|
);
|
|
2960
2956
|
};
|
|
2961
|
-
var
|
|
2957
|
+
var Pe = {
|
|
2962
2958
|
color: void 0,
|
|
2963
2959
|
size: void 0,
|
|
2964
2960
|
className: void 0,
|
|
2965
2961
|
style: void 0,
|
|
2966
2962
|
attr: void 0
|
|
2967
|
-
},
|
|
2968
|
-
function
|
|
2963
|
+
}, ye = G.createContext && /* @__PURE__ */ G.createContext(Pe), zr = ["attr", "size", "title"];
|
|
2964
|
+
function Lr(e, r) {
|
|
2969
2965
|
if (e == null) return {};
|
|
2970
|
-
var t =
|
|
2966
|
+
var t = Dr(e, r), o, s;
|
|
2971
2967
|
if (Object.getOwnPropertySymbols) {
|
|
2972
2968
|
var l = Object.getOwnPropertySymbols(e);
|
|
2973
2969
|
for (s = 0; s < l.length; s++)
|
|
@@ -2975,7 +2971,7 @@ function Mr(e, r) {
|
|
|
2975
2971
|
}
|
|
2976
2972
|
return t;
|
|
2977
2973
|
}
|
|
2978
|
-
function
|
|
2974
|
+
function Dr(e, r) {
|
|
2979
2975
|
if (e == null) return {};
|
|
2980
2976
|
var t = {};
|
|
2981
2977
|
for (var o in e)
|
|
@@ -2985,17 +2981,17 @@ function zr(e, r) {
|
|
|
2985
2981
|
}
|
|
2986
2982
|
return t;
|
|
2987
2983
|
}
|
|
2988
|
-
function
|
|
2989
|
-
return
|
|
2984
|
+
function ae() {
|
|
2985
|
+
return ae = Object.assign ? Object.assign.bind() : function(e) {
|
|
2990
2986
|
for (var r = 1; r < arguments.length; r++) {
|
|
2991
2987
|
var t = arguments[r];
|
|
2992
2988
|
for (var o in t)
|
|
2993
2989
|
Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
2994
2990
|
}
|
|
2995
2991
|
return e;
|
|
2996
|
-
},
|
|
2992
|
+
}, ae.apply(this, arguments);
|
|
2997
2993
|
}
|
|
2998
|
-
function
|
|
2994
|
+
function xe(e, r) {
|
|
2999
2995
|
var t = Object.keys(e);
|
|
3000
2996
|
if (Object.getOwnPropertySymbols) {
|
|
3001
2997
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -3005,25 +3001,25 @@ function ye(e, r) {
|
|
|
3005
3001
|
}
|
|
3006
3002
|
return t;
|
|
3007
3003
|
}
|
|
3008
|
-
function
|
|
3004
|
+
function le(e) {
|
|
3009
3005
|
for (var r = 1; r < arguments.length; r++) {
|
|
3010
3006
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
3011
|
-
r % 2 ?
|
|
3012
|
-
|
|
3013
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
3007
|
+
r % 2 ? xe(Object(t), !0).forEach(function(o) {
|
|
3008
|
+
Sr(e, o, t[o]);
|
|
3009
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : xe(Object(t)).forEach(function(o) {
|
|
3014
3010
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
3015
3011
|
});
|
|
3016
3012
|
}
|
|
3017
3013
|
return e;
|
|
3018
3014
|
}
|
|
3019
|
-
function
|
|
3020
|
-
return r =
|
|
3015
|
+
function Sr(e, r, t) {
|
|
3016
|
+
return r = Ar(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
3021
3017
|
}
|
|
3022
|
-
function
|
|
3023
|
-
var r =
|
|
3018
|
+
function Ar(e) {
|
|
3019
|
+
var r = Er(e, "string");
|
|
3024
3020
|
return typeof r == "symbol" ? r : r + "";
|
|
3025
3021
|
}
|
|
3026
|
-
function
|
|
3022
|
+
function Er(e, r) {
|
|
3027
3023
|
if (typeof e != "object" || !e) return e;
|
|
3028
3024
|
var t = e[Symbol.toPrimitive];
|
|
3029
3025
|
if (t !== void 0) {
|
|
@@ -3033,30 +3029,30 @@ function Dr(e, r) {
|
|
|
3033
3029
|
}
|
|
3034
3030
|
return (r === "string" ? String : Number)(e);
|
|
3035
3031
|
}
|
|
3036
|
-
function
|
|
3037
|
-
return e && e.map((r, t) => /* @__PURE__ */ G.createElement(r.tag,
|
|
3032
|
+
function Ie(e) {
|
|
3033
|
+
return e && e.map((r, t) => /* @__PURE__ */ G.createElement(r.tag, le({
|
|
3038
3034
|
key: t
|
|
3039
|
-
}, r.attr),
|
|
3035
|
+
}, r.attr), Ie(r.child)));
|
|
3040
3036
|
}
|
|
3041
3037
|
function K(e) {
|
|
3042
|
-
return (r) => /* @__PURE__ */ G.createElement(
|
|
3043
|
-
attr:
|
|
3044
|
-
}, r),
|
|
3038
|
+
return (r) => /* @__PURE__ */ G.createElement(Pr, ae({
|
|
3039
|
+
attr: le({}, e.attr)
|
|
3040
|
+
}, r), Ie(e.child));
|
|
3045
3041
|
}
|
|
3046
|
-
function
|
|
3042
|
+
function Pr(e) {
|
|
3047
3043
|
var r = (t) => {
|
|
3048
3044
|
var {
|
|
3049
3045
|
attr: o,
|
|
3050
3046
|
size: s,
|
|
3051
3047
|
title: l
|
|
3052
|
-
} = e, i =
|
|
3053
|
-
return t.className && (d = t.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ G.createElement("svg",
|
|
3048
|
+
} = e, i = Lr(e, zr), a = s || t.size || "1em", d;
|
|
3049
|
+
return t.className && (d = t.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ G.createElement("svg", ae({
|
|
3054
3050
|
stroke: "currentColor",
|
|
3055
3051
|
fill: "currentColor",
|
|
3056
3052
|
strokeWidth: "0"
|
|
3057
3053
|
}, t.attr, o, i, {
|
|
3058
3054
|
className: d,
|
|
3059
|
-
style:
|
|
3055
|
+
style: le(le({
|
|
3060
3056
|
color: e.color || t.color
|
|
3061
3057
|
}, t.style), e.style),
|
|
3062
3058
|
height: a,
|
|
@@ -3064,20 +3060,20 @@ function Ar(e) {
|
|
|
3064
3060
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3065
3061
|
}), l && /* @__PURE__ */ G.createElement("title", null, l), e.children);
|
|
3066
3062
|
};
|
|
3067
|
-
return
|
|
3063
|
+
return ye !== void 0 ? /* @__PURE__ */ G.createElement(ye.Consumer, null, (t) => r(t)) : r(Pe);
|
|
3068
3064
|
}
|
|
3069
|
-
function
|
|
3065
|
+
function Ir(e) {
|
|
3070
3066
|
return K({ 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);
|
|
3071
3067
|
}
|
|
3072
|
-
const
|
|
3068
|
+
const jr = (e, r = 500) => {
|
|
3073
3069
|
const [t, o] = _(e);
|
|
3074
|
-
return
|
|
3070
|
+
return U(() => {
|
|
3075
3071
|
const s = setTimeout(() => {
|
|
3076
3072
|
o(e);
|
|
3077
3073
|
}, r);
|
|
3078
3074
|
return () => clearTimeout(s);
|
|
3079
3075
|
}, [e, r]), t;
|
|
3080
|
-
},
|
|
3076
|
+
}, at = () => ({ showToast: (r, t) => {
|
|
3081
3077
|
const o = {
|
|
3082
3078
|
position: "bottom-right",
|
|
3083
3079
|
autoClose: 2e3,
|
|
@@ -3105,9 +3101,9 @@ const Pr = (e, r = 500) => {
|
|
|
3105
3101
|
break;
|
|
3106
3102
|
}
|
|
3107
3103
|
} });
|
|
3108
|
-
function
|
|
3104
|
+
function lt(e = 768) {
|
|
3109
3105
|
const [r, t] = _(() => typeof window > "u" ? !1 : window.innerWidth < e);
|
|
3110
|
-
return
|
|
3106
|
+
return U(() => {
|
|
3111
3107
|
if (typeof window > "u")
|
|
3112
3108
|
return;
|
|
3113
3109
|
const o = () => {
|
|
@@ -3118,7 +3114,7 @@ function nt(e = 768) {
|
|
|
3118
3114
|
};
|
|
3119
3115
|
}, [e]), r;
|
|
3120
3116
|
}
|
|
3121
|
-
function
|
|
3117
|
+
function it({
|
|
3122
3118
|
value: e,
|
|
3123
3119
|
onChange: r,
|
|
3124
3120
|
placeholder: t = "Search...",
|
|
@@ -3129,37 +3125,37 @@ function st({
|
|
|
3129
3125
|
debounceDelay: a = 500,
|
|
3130
3126
|
...d
|
|
3131
3127
|
}) {
|
|
3132
|
-
const [u, g] = _(e || ""),
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
}, [
|
|
3136
|
-
const
|
|
3137
|
-
const
|
|
3128
|
+
const [u, g] = _(e || ""), v = jr(u, a), f = Ne(r, [r]);
|
|
3129
|
+
U(() => {
|
|
3130
|
+
f(v);
|
|
3131
|
+
}, [v, f]);
|
|
3132
|
+
const x = () => {
|
|
3133
|
+
const m = "w-full px-4 py-2.5 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";
|
|
3138
3134
|
switch (s) {
|
|
3139
3135
|
case "primary":
|
|
3140
3136
|
return c(
|
|
3141
|
-
|
|
3137
|
+
m,
|
|
3142
3138
|
"text-primary border-primary focus:border-primary"
|
|
3143
3139
|
);
|
|
3144
3140
|
case "secondary":
|
|
3145
3141
|
default:
|
|
3146
3142
|
return c(
|
|
3147
|
-
|
|
3143
|
+
m,
|
|
3148
3144
|
"text-secondary border-secondary focus:border-secondary"
|
|
3149
3145
|
);
|
|
3150
3146
|
}
|
|
3151
|
-
}, b = () => s === "primary" ? "text-primary" : "text-secondary",
|
|
3152
|
-
return /* @__PURE__ */
|
|
3147
|
+
}, b = () => s === "primary" ? "text-primary" : "text-secondary", w = () => s === "primary" ? "text-primary" : "text-secondary";
|
|
3148
|
+
return /* @__PURE__ */ p("div", { className: c("mb-0", i), children: [
|
|
3153
3149
|
l && /* @__PURE__ */ n(
|
|
3154
3150
|
"label",
|
|
3155
3151
|
{
|
|
3156
|
-
className: c("block mb-2 text-sm font-medium",
|
|
3152
|
+
className: c("block mb-2 text-sm font-medium", w()),
|
|
3157
3153
|
children: l
|
|
3158
3154
|
}
|
|
3159
3155
|
),
|
|
3160
|
-
/* @__PURE__ */
|
|
3156
|
+
/* @__PURE__ */ p("div", { className: "relative w-full", children: [
|
|
3161
3157
|
/* @__PURE__ */ n(
|
|
3162
|
-
|
|
3158
|
+
Ir,
|
|
3163
3159
|
{
|
|
3164
3160
|
className: c(
|
|
3165
3161
|
"absolute left-3 top-1/2 -translate-y-1/2 text-base pointer-events-none",
|
|
@@ -3172,23 +3168,23 @@ function st({
|
|
|
3172
3168
|
{
|
|
3173
3169
|
type: "text",
|
|
3174
3170
|
value: u,
|
|
3175
|
-
onChange: (
|
|
3171
|
+
onChange: (m) => g(m.target.value),
|
|
3176
3172
|
placeholder: t,
|
|
3177
3173
|
disabled: o,
|
|
3178
|
-
className:
|
|
3174
|
+
className: x(),
|
|
3179
3175
|
...d
|
|
3180
3176
|
}
|
|
3181
3177
|
)
|
|
3182
3178
|
] })
|
|
3183
3179
|
] });
|
|
3184
3180
|
}
|
|
3185
|
-
function
|
|
3181
|
+
function Or(e) {
|
|
3186
3182
|
return K({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z" }, child: [] }] })(e);
|
|
3187
3183
|
}
|
|
3188
|
-
function
|
|
3184
|
+
function Tr(e) {
|
|
3189
3185
|
return K({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z" }, child: [] }] })(e);
|
|
3190
3186
|
}
|
|
3191
|
-
function
|
|
3187
|
+
function ct({
|
|
3192
3188
|
labelPage: e = "Page",
|
|
3193
3189
|
labelOf: r = "of",
|
|
3194
3190
|
setPagination: t,
|
|
@@ -3199,25 +3195,25 @@ function at({
|
|
|
3199
3195
|
isLoading: a = !1,
|
|
3200
3196
|
fetchPage: d
|
|
3201
3197
|
}) {
|
|
3202
|
-
const u = parseInt(String(s)) === 1 || parseInt(String(o)) === 0 || a, g = parseInt(String(s)) === parseInt(String(o)) || parseInt(String(o)) === 0 || a,
|
|
3203
|
-
a || (d ? d(s - 1) : t && t((
|
|
3204
|
-
...
|
|
3205
|
-
page:
|
|
3198
|
+
const u = parseInt(String(s)) === 1 || parseInt(String(o)) === 0 || a, g = parseInt(String(s)) === parseInt(String(o)) || parseInt(String(o)) === 0 || a, v = () => {
|
|
3199
|
+
a || (d ? d(s - 1) : t && t((x) => ({
|
|
3200
|
+
...x,
|
|
3201
|
+
page: x.page - 1
|
|
3206
3202
|
})));
|
|
3207
|
-
},
|
|
3208
|
-
a || (d ? d(s + 1) : t && t((
|
|
3209
|
-
...
|
|
3210
|
-
page:
|
|
3203
|
+
}, f = () => {
|
|
3204
|
+
a || (d ? d(s + 1) : t && t((x) => ({
|
|
3205
|
+
...x,
|
|
3206
|
+
page: x.page + 1
|
|
3211
3207
|
})));
|
|
3212
3208
|
};
|
|
3213
|
-
return /* @__PURE__ */
|
|
3209
|
+
return /* @__PURE__ */ p("div", { className: c("flex justify-center items-center mt-8", i), children: [
|
|
3214
3210
|
/* @__PURE__ */ n(
|
|
3215
3211
|
ee,
|
|
3216
3212
|
{
|
|
3217
3213
|
disabled: u,
|
|
3218
|
-
onClick:
|
|
3214
|
+
onClick: v,
|
|
3219
3215
|
variant: "secondary",
|
|
3220
|
-
children: /* @__PURE__ */ n(
|
|
3216
|
+
children: /* @__PURE__ */ n(Or, { size: 14 })
|
|
3221
3217
|
}
|
|
3222
3218
|
),
|
|
3223
3219
|
/* @__PURE__ */ n("h5", { className: "font-bold mx-2.5 text-text", children: `${l ? e : ""} ${s}${l ? ` ${r} ` : " / "}${o}` }),
|
|
@@ -3225,23 +3221,23 @@ function at({
|
|
|
3225
3221
|
ee,
|
|
3226
3222
|
{
|
|
3227
3223
|
disabled: g,
|
|
3228
|
-
onClick:
|
|
3224
|
+
onClick: f,
|
|
3229
3225
|
variant: "primary",
|
|
3230
|
-
children: /* @__PURE__ */ n(
|
|
3226
|
+
children: /* @__PURE__ */ n(Tr, { size: 14 })
|
|
3231
3227
|
}
|
|
3232
3228
|
)
|
|
3233
3229
|
] });
|
|
3234
3230
|
}
|
|
3235
|
-
function
|
|
3231
|
+
function je(e) {
|
|
3236
3232
|
return K({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "48", d: "m112 184 144 144 144-144" }, child: [] }] })(e);
|
|
3237
3233
|
}
|
|
3238
|
-
function
|
|
3234
|
+
function $r(e) {
|
|
3239
3235
|
return K({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(e);
|
|
3240
3236
|
}
|
|
3241
|
-
function
|
|
3237
|
+
function _r(e) {
|
|
3242
3238
|
return K({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M456.69 421.39 362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8 124.95 124.95 0 0 1-124.8-124.8z" }, child: [] }] })(e);
|
|
3243
3239
|
}
|
|
3244
|
-
function
|
|
3240
|
+
function dt({
|
|
3245
3241
|
title: e,
|
|
3246
3242
|
subtitle: r,
|
|
3247
3243
|
children: t,
|
|
@@ -3254,22 +3250,22 @@ function lt({
|
|
|
3254
3250
|
disabled: u = !1,
|
|
3255
3251
|
headerExtra: g
|
|
3256
3252
|
}) {
|
|
3257
|
-
const [
|
|
3253
|
+
const [v, f] = _(o), x = s !== void 0 ? s : v, b = () => {
|
|
3258
3254
|
if (u) return;
|
|
3259
|
-
const
|
|
3260
|
-
s === void 0 && y
|
|
3261
|
-
},
|
|
3262
|
-
return /* @__PURE__ */
|
|
3255
|
+
const y = !x;
|
|
3256
|
+
s === void 0 && f(y), l?.(y);
|
|
3257
|
+
}, w = () => a === "primary" ? "border-primary" : "border-secondary", m = () => a === "primary" ? "text-primary" : "text-secondary", k = () => a === "primary" ? "hover:bg-primary/5" : "hover:bg-secondary/5";
|
|
3258
|
+
return /* @__PURE__ */ p(
|
|
3263
3259
|
"div",
|
|
3264
3260
|
{
|
|
3265
3261
|
className: c(
|
|
3266
3262
|
"w-full rounded-lg border-2 bg-background transition-all duration-300",
|
|
3267
|
-
|
|
3268
|
-
|
|
3263
|
+
w(),
|
|
3264
|
+
x && "shadow-lg",
|
|
3269
3265
|
i
|
|
3270
3266
|
),
|
|
3271
3267
|
children: [
|
|
3272
|
-
/* @__PURE__ */
|
|
3268
|
+
/* @__PURE__ */ p(
|
|
3273
3269
|
"button",
|
|
3274
3270
|
{
|
|
3275
3271
|
type: "button",
|
|
@@ -3277,35 +3273,35 @@ function lt({
|
|
|
3277
3273
|
disabled: u,
|
|
3278
3274
|
className: c(
|
|
3279
3275
|
"w-full flex cursor-pointer items-center justify-between p-4 text-left transition-all duration-300 rounded-lg",
|
|
3280
|
-
!u &&
|
|
3276
|
+
!u && k(),
|
|
3281
3277
|
u && "opacity-50"
|
|
3282
3278
|
),
|
|
3283
|
-
"aria-expanded":
|
|
3279
|
+
"aria-expanded": x,
|
|
3284
3280
|
children: [
|
|
3285
|
-
/* @__PURE__ */
|
|
3286
|
-
d && /* @__PURE__ */ n("div", { className: c("shrink-0",
|
|
3287
|
-
/* @__PURE__ */
|
|
3281
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
|
|
3282
|
+
d && /* @__PURE__ */ n("div", { className: c("shrink-0", m()), children: d }),
|
|
3283
|
+
/* @__PURE__ */ p("div", { className: "flex-1 min-w-0", children: [
|
|
3288
3284
|
/* @__PURE__ */ n(
|
|
3289
3285
|
"h3",
|
|
3290
3286
|
{
|
|
3291
|
-
className: c("text-base font-medium truncate",
|
|
3287
|
+
className: c("text-base font-medium truncate", m()),
|
|
3292
3288
|
children: e
|
|
3293
3289
|
}
|
|
3294
3290
|
),
|
|
3295
3291
|
r && /* @__PURE__ */ n("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
|
|
3296
3292
|
] })
|
|
3297
3293
|
] }),
|
|
3298
|
-
/* @__PURE__ */
|
|
3299
|
-
g && /* @__PURE__ */ n("div", { onClick: (
|
|
3294
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-3 shrink-0", children: [
|
|
3295
|
+
g && /* @__PURE__ */ n("div", { onClick: (y) => y.stopPropagation(), children: g }),
|
|
3300
3296
|
/* @__PURE__ */ n(
|
|
3301
3297
|
"div",
|
|
3302
3298
|
{
|
|
3303
3299
|
className: c(
|
|
3304
3300
|
"h-5 w-5 transition-transform duration-300",
|
|
3305
|
-
|
|
3306
|
-
|
|
3301
|
+
m(),
|
|
3302
|
+
x && "rotate-180"
|
|
3307
3303
|
),
|
|
3308
|
-
children: /* @__PURE__ */ n(
|
|
3304
|
+
children: /* @__PURE__ */ n(je, { className: "h-5 w-5" })
|
|
3309
3305
|
}
|
|
3310
3306
|
)
|
|
3311
3307
|
] })
|
|
@@ -3317,19 +3313,19 @@ function lt({
|
|
|
3317
3313
|
{
|
|
3318
3314
|
className: c(
|
|
3319
3315
|
"overflow-hidden transition-all duration-300 ease-in-out",
|
|
3320
|
-
|
|
3316
|
+
x ? "max-h-500 opacity-100" : "max-h-0 opacity-0"
|
|
3321
3317
|
),
|
|
3322
|
-
children: /* @__PURE__ */ n("div", { className: c("p-4 pt-0 border-t-0",
|
|
3318
|
+
children: /* @__PURE__ */ n("div", { className: c("p-4 pt-0 border-t-0", w()), children: /* @__PURE__ */ n("div", { className: "border-t border-border pt-4", children: t }) })
|
|
3323
3319
|
}
|
|
3324
3320
|
)
|
|
3325
3321
|
]
|
|
3326
3322
|
}
|
|
3327
3323
|
);
|
|
3328
3324
|
}
|
|
3329
|
-
function
|
|
3325
|
+
function ut({ children: e, className: r = "" }) {
|
|
3330
3326
|
return /* @__PURE__ */ n("div", { className: c("py-4", r), children: e });
|
|
3331
3327
|
}
|
|
3332
|
-
function
|
|
3328
|
+
function mt({
|
|
3333
3329
|
options: e,
|
|
3334
3330
|
value: r,
|
|
3335
3331
|
onChange: t,
|
|
@@ -3342,32 +3338,32 @@ function ct({
|
|
|
3342
3338
|
r ?? e[0]?.value ?? ""
|
|
3343
3339
|
), u = r !== void 0 ? r : a, g = (b) => {
|
|
3344
3340
|
r === void 0 && d(b), t?.(b);
|
|
3345
|
-
},
|
|
3346
|
-
const
|
|
3347
|
-
if (
|
|
3348
|
-
return c(
|
|
3341
|
+
}, v = (b, w) => {
|
|
3342
|
+
const m = u === b, k = "px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";
|
|
3343
|
+
if (w)
|
|
3344
|
+
return c(k, "text-text-muted");
|
|
3349
3345
|
switch (i) {
|
|
3350
3346
|
case "filled":
|
|
3351
3347
|
return c(
|
|
3352
|
-
|
|
3348
|
+
k,
|
|
3353
3349
|
"rounded-lg",
|
|
3354
|
-
|
|
3350
|
+
m ? l === "primary" ? "bg-primary text-white" : "bg-secondary text-white" : "text-text-muted hover:bg-background-light"
|
|
3355
3351
|
);
|
|
3356
3352
|
case "pills":
|
|
3357
3353
|
return c(
|
|
3358
|
-
|
|
3354
|
+
k,
|
|
3359
3355
|
"rounded-full",
|
|
3360
|
-
|
|
3356
|
+
m ? 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"
|
|
3361
3357
|
);
|
|
3362
3358
|
case "underline":
|
|
3363
3359
|
default:
|
|
3364
3360
|
return c(
|
|
3365
|
-
|
|
3361
|
+
k,
|
|
3366
3362
|
"border-b-2 flex items-center gap-2",
|
|
3367
|
-
|
|
3363
|
+
m ? l === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-gray-500 hover:text-gray-700"
|
|
3368
3364
|
);
|
|
3369
3365
|
}
|
|
3370
|
-
},
|
|
3366
|
+
}, f = () => {
|
|
3371
3367
|
switch (i) {
|
|
3372
3368
|
case "filled":
|
|
3373
3369
|
return "flex gap-1 p-1 bg-background-light rounded-lg";
|
|
@@ -3377,9 +3373,9 @@ function ct({
|
|
|
3377
3373
|
default:
|
|
3378
3374
|
return "flex gap-2 border-b border-gray-200";
|
|
3379
3375
|
}
|
|
3380
|
-
},
|
|
3381
|
-
return /* @__PURE__ */
|
|
3382
|
-
/* @__PURE__ */ n("div", { className:
|
|
3376
|
+
}, x = G.Children.toArray(o).find((b) => G.isValidElement(b) ? b.props.value === u : !1);
|
|
3377
|
+
return /* @__PURE__ */ p("div", { className: c("w-full", s), children: [
|
|
3378
|
+
/* @__PURE__ */ n("div", { className: f(), role: "tablist", children: e.map((b) => /* @__PURE__ */ p(
|
|
3383
3379
|
"button",
|
|
3384
3380
|
{
|
|
3385
3381
|
type: "button",
|
|
@@ -3388,7 +3384,7 @@ function ct({
|
|
|
3388
3384
|
"aria-controls": `tabpanel-${b.value}`,
|
|
3389
3385
|
disabled: b.disabled,
|
|
3390
3386
|
onClick: () => !b.disabled && g(b.value),
|
|
3391
|
-
className:
|
|
3387
|
+
className: v(b.value, b.disabled),
|
|
3392
3388
|
children: [
|
|
3393
3389
|
b.icon && /* @__PURE__ */ n("span", { className: "shrink-0", children: b.icon }),
|
|
3394
3390
|
b.label
|
|
@@ -3396,16 +3392,16 @@ function ct({
|
|
|
3396
3392
|
},
|
|
3397
3393
|
b.value
|
|
3398
3394
|
)) }),
|
|
3399
|
-
/* @__PURE__ */ n("div", { role: "tabpanel", id: `tabpanel-${u}`, children:
|
|
3395
|
+
/* @__PURE__ */ n("div", { role: "tabpanel", id: `tabpanel-${u}`, children: x })
|
|
3400
3396
|
] });
|
|
3401
3397
|
}
|
|
3402
|
-
function
|
|
3398
|
+
function we(e) {
|
|
3403
3399
|
return K({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z" }, child: [] }] })(e);
|
|
3404
3400
|
}
|
|
3405
|
-
function
|
|
3401
|
+
function ve(e) {
|
|
3406
3402
|
return K({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }, child: [] }] })(e);
|
|
3407
3403
|
}
|
|
3408
|
-
const
|
|
3404
|
+
const Rr = [
|
|
3409
3405
|
"Mon",
|
|
3410
3406
|
"Tue",
|
|
3411
3407
|
"Wed",
|
|
@@ -3413,7 +3409,7 @@ const $r = [
|
|
|
3413
3409
|
"Fri",
|
|
3414
3410
|
"Sat",
|
|
3415
3411
|
"Sun"
|
|
3416
|
-
],
|
|
3412
|
+
], Fr = [
|
|
3417
3413
|
"Lun",
|
|
3418
3414
|
"Mar",
|
|
3419
3415
|
"Mié",
|
|
@@ -3421,7 +3417,7 @@ const $r = [
|
|
|
3421
3417
|
"Vie",
|
|
3422
3418
|
"Sáb",
|
|
3423
3419
|
"Dom"
|
|
3424
|
-
],
|
|
3420
|
+
], Vr = [
|
|
3425
3421
|
"January",
|
|
3426
3422
|
"February",
|
|
3427
3423
|
"March",
|
|
@@ -3434,7 +3430,7 @@ const $r = [
|
|
|
3434
3430
|
"October",
|
|
3435
3431
|
"November",
|
|
3436
3432
|
"December"
|
|
3437
|
-
],
|
|
3433
|
+
], Br = [
|
|
3438
3434
|
"Enero",
|
|
3439
3435
|
"Febrero",
|
|
3440
3436
|
"Marzo",
|
|
@@ -3448,14 +3444,14 @@ const $r = [
|
|
|
3448
3444
|
"Noviembre",
|
|
3449
3445
|
"Diciembre"
|
|
3450
3446
|
];
|
|
3451
|
-
function
|
|
3447
|
+
function Gr(e) {
|
|
3452
3448
|
return new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
3453
3449
|
}
|
|
3454
|
-
function
|
|
3450
|
+
function Wr(e) {
|
|
3455
3451
|
const r = new Date(e.getFullYear(), e.getMonth(), 1).getDay();
|
|
3456
3452
|
return r === 0 ? 6 : r - 1;
|
|
3457
3453
|
}
|
|
3458
|
-
function
|
|
3454
|
+
function pt({
|
|
3459
3455
|
value: e,
|
|
3460
3456
|
onChange: r,
|
|
3461
3457
|
disabled: t = !1,
|
|
@@ -3468,15 +3464,15 @@ function dt({
|
|
|
3468
3464
|
en: "en-US",
|
|
3469
3465
|
es: "es-ES"
|
|
3470
3466
|
}, g = {
|
|
3471
|
-
en: $r,
|
|
3472
|
-
es: _r
|
|
3473
|
-
}, k = {
|
|
3474
3467
|
en: Rr,
|
|
3475
3468
|
es: Fr
|
|
3476
|
-
},
|
|
3477
|
-
|
|
3469
|
+
}, v = {
|
|
3470
|
+
en: Vr,
|
|
3471
|
+
es: Br
|
|
3472
|
+
}, f = Gr(a), x = Wr(a), b = [];
|
|
3473
|
+
for (let h = 0; h < x; h++)
|
|
3478
3474
|
b.push(null);
|
|
3479
|
-
for (let h = 1; h <=
|
|
3475
|
+
for (let h = 1; h <= f; h++) {
|
|
3480
3476
|
const O = new Date(
|
|
3481
3477
|
a.getFullYear(),
|
|
3482
3478
|
a.getMonth(),
|
|
@@ -3487,7 +3483,7 @@ function dt({
|
|
|
3487
3483
|
);
|
|
3488
3484
|
b.push(O);
|
|
3489
3485
|
}
|
|
3490
|
-
const
|
|
3486
|
+
const w = () => {
|
|
3491
3487
|
d(
|
|
3492
3488
|
new Date(
|
|
3493
3489
|
a.getFullYear(),
|
|
@@ -3498,7 +3494,7 @@ function dt({
|
|
|
3498
3494
|
0
|
|
3499
3495
|
)
|
|
3500
3496
|
);
|
|
3501
|
-
},
|
|
3497
|
+
}, m = () => {
|
|
3502
3498
|
d(
|
|
3503
3499
|
new Date(
|
|
3504
3500
|
a.getFullYear(),
|
|
@@ -3509,7 +3505,7 @@ function dt({
|
|
|
3509
3505
|
0
|
|
3510
3506
|
)
|
|
3511
3507
|
);
|
|
3512
|
-
},
|
|
3508
|
+
}, k = () => {
|
|
3513
3509
|
d(
|
|
3514
3510
|
new Date(
|
|
3515
3511
|
a.getFullYear() - 1,
|
|
@@ -3520,7 +3516,7 @@ function dt({
|
|
|
3520
3516
|
0
|
|
3521
3517
|
)
|
|
3522
3518
|
);
|
|
3523
|
-
},
|
|
3519
|
+
}, y = () => {
|
|
3524
3520
|
d(
|
|
3525
3521
|
new Date(
|
|
3526
3522
|
a.getFullYear() + 1,
|
|
@@ -3531,7 +3527,7 @@ function dt({
|
|
|
3531
3527
|
0
|
|
3532
3528
|
)
|
|
3533
3529
|
);
|
|
3534
|
-
},
|
|
3530
|
+
}, z = (h) => {
|
|
3535
3531
|
if (h && !t) {
|
|
3536
3532
|
const O = new Date(
|
|
3537
3533
|
h.getFullYear(),
|
|
@@ -3543,7 +3539,7 @@ function dt({
|
|
|
3543
3539
|
);
|
|
3544
3540
|
d(O), r?.(O);
|
|
3545
3541
|
}
|
|
3546
|
-
},
|
|
3542
|
+
}, L = (() => {
|
|
3547
3543
|
switch (s) {
|
|
3548
3544
|
case "primary":
|
|
3549
3545
|
return {
|
|
@@ -3562,7 +3558,7 @@ function dt({
|
|
|
3562
3558
|
};
|
|
3563
3559
|
}
|
|
3564
3560
|
})(), E = (h) => h && e ? h.toDateString() === e.toDateString() : !1;
|
|
3565
|
-
return /* @__PURE__ */
|
|
3561
|
+
return /* @__PURE__ */ p(
|
|
3566
3562
|
"div",
|
|
3567
3563
|
{
|
|
3568
3564
|
className: c(
|
|
@@ -3571,27 +3567,27 @@ function dt({
|
|
|
3571
3567
|
),
|
|
3572
3568
|
...i,
|
|
3573
3569
|
children: [
|
|
3574
|
-
/* @__PURE__ */
|
|
3575
|
-
/* @__PURE__ */
|
|
3570
|
+
/* @__PURE__ */ p("div", { className: "mb-6", children: [
|
|
3571
|
+
/* @__PURE__ */ p(
|
|
3576
3572
|
"div",
|
|
3577
3573
|
{
|
|
3578
3574
|
className: c(
|
|
3579
3575
|
"flex items-center justify-between mb-4",
|
|
3580
|
-
|
|
3576
|
+
L.header
|
|
3581
3577
|
),
|
|
3582
3578
|
children: [
|
|
3583
3579
|
/* @__PURE__ */ n(
|
|
3584
3580
|
"button",
|
|
3585
3581
|
{
|
|
3586
3582
|
type: "button",
|
|
3587
|
-
onClick:
|
|
3583
|
+
onClick: k,
|
|
3588
3584
|
disabled: t,
|
|
3589
3585
|
className: c(
|
|
3590
3586
|
"p-2 rounded-lg border transition-all duration-300",
|
|
3591
|
-
|
|
3587
|
+
L.button,
|
|
3592
3588
|
t && "opacity-50 cursor-not-allowed"
|
|
3593
3589
|
),
|
|
3594
|
-
children: /* @__PURE__ */ n(
|
|
3590
|
+
children: /* @__PURE__ */ n(we, { size: 18 })
|
|
3595
3591
|
}
|
|
3596
3592
|
),
|
|
3597
3593
|
/* @__PURE__ */ n("h2", { className: "font-semibold text-lg", children: a.getFullYear() }),
|
|
@@ -3599,47 +3595,47 @@ function dt({
|
|
|
3599
3595
|
"button",
|
|
3600
3596
|
{
|
|
3601
3597
|
type: "button",
|
|
3602
|
-
onClick:
|
|
3598
|
+
onClick: y,
|
|
3603
3599
|
disabled: t,
|
|
3604
3600
|
className: c(
|
|
3605
3601
|
"p-2 rounded-lg border transition-all duration-300",
|
|
3606
|
-
|
|
3602
|
+
L.button,
|
|
3607
3603
|
t && "opacity-50 cursor-not-allowed"
|
|
3608
3604
|
),
|
|
3609
|
-
children: /* @__PURE__ */ n(
|
|
3605
|
+
children: /* @__PURE__ */ n(ve, { size: 18 })
|
|
3610
3606
|
}
|
|
3611
3607
|
)
|
|
3612
3608
|
]
|
|
3613
3609
|
}
|
|
3614
3610
|
),
|
|
3615
|
-
/* @__PURE__ */
|
|
3611
|
+
/* @__PURE__ */ p("div", { className: c("flex items-center justify-between", L.header), children: [
|
|
3616
3612
|
/* @__PURE__ */ n(
|
|
3617
3613
|
"button",
|
|
3618
3614
|
{
|
|
3619
3615
|
type: "button",
|
|
3620
|
-
onClick:
|
|
3616
|
+
onClick: w,
|
|
3621
3617
|
disabled: t,
|
|
3622
3618
|
className: c(
|
|
3623
3619
|
"p-2 rounded-lg border transition-all duration-300",
|
|
3624
|
-
|
|
3620
|
+
L.button,
|
|
3625
3621
|
t && "opacity-50 cursor-not-allowed"
|
|
3626
3622
|
),
|
|
3627
|
-
children: /* @__PURE__ */ n(
|
|
3623
|
+
children: /* @__PURE__ */ n(we, { size: 18 })
|
|
3628
3624
|
}
|
|
3629
3625
|
),
|
|
3630
|
-
/* @__PURE__ */ n("h2", { className: "font-semibold text-lg", children:
|
|
3626
|
+
/* @__PURE__ */ n("h2", { className: "font-semibold text-lg", children: v[l][a.getMonth()] }),
|
|
3631
3627
|
/* @__PURE__ */ n(
|
|
3632
3628
|
"button",
|
|
3633
3629
|
{
|
|
3634
3630
|
type: "button",
|
|
3635
|
-
onClick:
|
|
3631
|
+
onClick: m,
|
|
3636
3632
|
disabled: t,
|
|
3637
3633
|
className: c(
|
|
3638
3634
|
"p-2 rounded-lg border transition-all duration-300",
|
|
3639
|
-
|
|
3635
|
+
L.button,
|
|
3640
3636
|
t && "opacity-50 cursor-not-allowed"
|
|
3641
3637
|
),
|
|
3642
|
-
children: /* @__PURE__ */ n(
|
|
3638
|
+
children: /* @__PURE__ */ n(ve, { size: 18 })
|
|
3643
3639
|
}
|
|
3644
3640
|
)
|
|
3645
3641
|
] })
|
|
@@ -3649,7 +3645,7 @@ function dt({
|
|
|
3649
3645
|
{
|
|
3650
3646
|
className: c(
|
|
3651
3647
|
"text-center text-sm font-medium py-2",
|
|
3652
|
-
|
|
3648
|
+
L.header
|
|
3653
3649
|
),
|
|
3654
3650
|
children: h
|
|
3655
3651
|
},
|
|
@@ -3659,14 +3655,14 @@ function dt({
|
|
|
3659
3655
|
"button",
|
|
3660
3656
|
{
|
|
3661
3657
|
type: "button",
|
|
3662
|
-
onClick: () =>
|
|
3658
|
+
onClick: () => z(h),
|
|
3663
3659
|
disabled: !h || t,
|
|
3664
3660
|
className: c(
|
|
3665
3661
|
"p-2 rounded-lg text-sm font-medium transition-all duration-300",
|
|
3666
3662
|
h ? c(
|
|
3667
3663
|
"cursor-pointer",
|
|
3668
|
-
|
|
3669
|
-
E(h) ?
|
|
3664
|
+
L.hover,
|
|
3665
|
+
E(h) ? L.selected : "text-text border border-transparent hover:border-border",
|
|
3670
3666
|
t && "opacity-50 cursor-not-allowed"
|
|
3671
3667
|
) : "cursor-default"
|
|
3672
3668
|
),
|
|
@@ -3679,7 +3675,7 @@ function dt({
|
|
|
3679
3675
|
{
|
|
3680
3676
|
className: c(
|
|
3681
3677
|
"mt-6 p-3 rounded-lg bg-background-dark border border-border text-center text-sm font-medium",
|
|
3682
|
-
|
|
3678
|
+
L.header
|
|
3683
3679
|
),
|
|
3684
3680
|
children: e.toLocaleDateString(u[l], {
|
|
3685
3681
|
year: "numeric",
|
|
@@ -3692,7 +3688,7 @@ function dt({
|
|
|
3692
3688
|
}
|
|
3693
3689
|
);
|
|
3694
3690
|
}
|
|
3695
|
-
function
|
|
3691
|
+
function bt({
|
|
3696
3692
|
headers: e,
|
|
3697
3693
|
data: r,
|
|
3698
3694
|
loading: t,
|
|
@@ -3704,51 +3700,51 @@ function ut({
|
|
|
3704
3700
|
rowClassName: d = "",
|
|
3705
3701
|
cellClassName: u = "",
|
|
3706
3702
|
headerClassName: g = "",
|
|
3707
|
-
emptyText:
|
|
3708
|
-
showCount:
|
|
3709
|
-
countText:
|
|
3710
|
-
keyExtractor: b = (
|
|
3703
|
+
emptyText: v = "No data available",
|
|
3704
|
+
showCount: f = !0,
|
|
3705
|
+
countText: x = (w) => `Showing ${w} record${w !== 1 ? "s" : ""}`,
|
|
3706
|
+
keyExtractor: b = (w, m) => w._id || w.id || m
|
|
3711
3707
|
}) {
|
|
3712
3708
|
if (t)
|
|
3713
3709
|
return /* @__PURE__ */ n("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ n("div", { className: "text-lg text-text-light", children: o }) });
|
|
3714
3710
|
if (r.length === 0)
|
|
3715
|
-
return /* @__PURE__ */ n("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ n("div", { className: "text-lg text-text-muted", children:
|
|
3716
|
-
const
|
|
3717
|
-
const
|
|
3718
|
-
let
|
|
3719
|
-
if (
|
|
3720
|
-
const
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3711
|
+
return /* @__PURE__ */ n("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ n("div", { className: "text-lg text-text-muted", children: v }) });
|
|
3712
|
+
const w = (m, k) => {
|
|
3713
|
+
const y = k.toLowerCase().replace(/\s+/g, "_");
|
|
3714
|
+
let z = m[y];
|
|
3715
|
+
if (z === void 0) {
|
|
3716
|
+
const D = [
|
|
3717
|
+
y.replace(/_/g, ""),
|
|
3718
|
+
k.toLowerCase().replace(/\s+/g, ""),
|
|
3719
|
+
y.replace(/_([a-z])/g, (L, E) => E.toUpperCase())
|
|
3724
3720
|
];
|
|
3725
|
-
for (const
|
|
3726
|
-
if (
|
|
3727
|
-
|
|
3721
|
+
for (const L of D)
|
|
3722
|
+
if (m[L] !== void 0) {
|
|
3723
|
+
z = m[L];
|
|
3728
3724
|
break;
|
|
3729
3725
|
}
|
|
3730
3726
|
}
|
|
3731
|
-
if (
|
|
3732
|
-
const
|
|
3733
|
-
(E) =>
|
|
3727
|
+
if (z === void 0) {
|
|
3728
|
+
const D = k.toLowerCase().split(" "), L = Object.keys(m).find(
|
|
3729
|
+
(E) => D.some((h) => E.toLowerCase().includes(h))
|
|
3734
3730
|
);
|
|
3735
|
-
|
|
3731
|
+
L && (z = m[L]);
|
|
3736
3732
|
}
|
|
3737
|
-
return
|
|
3733
|
+
return G.isValidElement(z) ? z : z != null ? String(z) : "N/A";
|
|
3738
3734
|
};
|
|
3739
|
-
return /* @__PURE__ */
|
|
3740
|
-
/* @__PURE__ */
|
|
3741
|
-
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */
|
|
3742
|
-
e.map((
|
|
3735
|
+
return /* @__PURE__ */ p("div", { className: c("overflow-x-auto", a), children: [
|
|
3736
|
+
/* @__PURE__ */ p("table", { className: "w-full border-collapse", children: [
|
|
3737
|
+
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ p("tr", { className: "border-b-2 border-border", children: [
|
|
3738
|
+
e.map((m, k) => /* @__PURE__ */ n(
|
|
3743
3739
|
"th",
|
|
3744
3740
|
{
|
|
3745
3741
|
className: c(
|
|
3746
3742
|
"text-left py-3 px-4 font-semibold text-text",
|
|
3747
3743
|
g
|
|
3748
3744
|
),
|
|
3749
|
-
children:
|
|
3745
|
+
children: m
|
|
3750
3746
|
},
|
|
3751
|
-
|
|
3747
|
+
k
|
|
3752
3748
|
)),
|
|
3753
3749
|
s && /* @__PURE__ */ n(
|
|
3754
3750
|
"th",
|
|
@@ -3761,7 +3757,7 @@ function ut({
|
|
|
3761
3757
|
}
|
|
3762
3758
|
)
|
|
3763
3759
|
] }) }),
|
|
3764
|
-
/* @__PURE__ */ n("tbody", { children: r.map((
|
|
3760
|
+
/* @__PURE__ */ n("tbody", { children: r.map((m, k) => /* @__PURE__ */ p(
|
|
3765
3761
|
"tr",
|
|
3766
3762
|
{
|
|
3767
3763
|
className: c(
|
|
@@ -3769,52 +3765,52 @@ function ut({
|
|
|
3769
3765
|
i && "cursor-pointer",
|
|
3770
3766
|
d
|
|
3771
3767
|
),
|
|
3772
|
-
onClick: () => i?.(
|
|
3768
|
+
onClick: () => i?.(m),
|
|
3773
3769
|
children: [
|
|
3774
|
-
e.map((
|
|
3775
|
-
s && /* @__PURE__ */ n("td", { className: c("py-4 px-4", u), children: /* @__PURE__ */ n("div", { className: "flex gap-2 justify-center", children: s.map((
|
|
3776
|
-
const
|
|
3777
|
-
|
|
3770
|
+
e.map((y, z) => /* @__PURE__ */ n("td", { className: c("py-4 px-4", u), children: /* @__PURE__ */ n("div", { className: "text-text-light", children: w(m, y) }) }, z)),
|
|
3771
|
+
s && /* @__PURE__ */ n("td", { className: c("py-4 px-4", u), children: /* @__PURE__ */ n("div", { className: "flex gap-2 justify-center", children: s.map((y, z) => {
|
|
3772
|
+
const D = (L) => {
|
|
3773
|
+
L?.stopPropagation(), y.onClick?.(m);
|
|
3778
3774
|
};
|
|
3779
|
-
if (
|
|
3780
|
-
const
|
|
3781
|
-
return /* @__PURE__ */
|
|
3782
|
-
|
|
3775
|
+
if (y.component) {
|
|
3776
|
+
const L = y.component;
|
|
3777
|
+
return /* @__PURE__ */ p(
|
|
3778
|
+
L,
|
|
3783
3779
|
{
|
|
3784
|
-
onClick:
|
|
3785
|
-
className:
|
|
3786
|
-
...
|
|
3780
|
+
onClick: D,
|
|
3781
|
+
className: y.className || "",
|
|
3782
|
+
...y.props || {},
|
|
3787
3783
|
children: [
|
|
3788
|
-
|
|
3789
|
-
|
|
3784
|
+
y.icon && /* @__PURE__ */ n("span", { className: "inline-block", children: G.createElement(y.icon) }),
|
|
3785
|
+
y.label && y.label
|
|
3790
3786
|
]
|
|
3791
3787
|
},
|
|
3792
|
-
|
|
3788
|
+
z
|
|
3793
3789
|
);
|
|
3794
3790
|
}
|
|
3795
|
-
return /* @__PURE__ */
|
|
3791
|
+
return /* @__PURE__ */ p(
|
|
3796
3792
|
ee,
|
|
3797
3793
|
{
|
|
3798
|
-
onClick:
|
|
3799
|
-
className:
|
|
3800
|
-
...
|
|
3794
|
+
onClick: D,
|
|
3795
|
+
className: y.className || "",
|
|
3796
|
+
...y.props || {},
|
|
3801
3797
|
children: [
|
|
3802
|
-
|
|
3803
|
-
|
|
3798
|
+
y.icon && /* @__PURE__ */ n("span", { className: "inline-block", children: G.createElement(y.icon) }),
|
|
3799
|
+
y.label && y.label
|
|
3804
3800
|
]
|
|
3805
3801
|
},
|
|
3806
|
-
|
|
3802
|
+
z
|
|
3807
3803
|
);
|
|
3808
3804
|
}) }) })
|
|
3809
3805
|
]
|
|
3810
3806
|
},
|
|
3811
|
-
b(
|
|
3807
|
+
b(m, k)
|
|
3812
3808
|
)) })
|
|
3813
3809
|
] }),
|
|
3814
|
-
|
|
3810
|
+
f && r.length > 0 && /* @__PURE__ */ n("div", { className: "mt-6 text-center text-text-light text-sm", children: x(r.length) })
|
|
3815
3811
|
] });
|
|
3816
3812
|
}
|
|
3817
|
-
function
|
|
3813
|
+
function gt({
|
|
3818
3814
|
label: e,
|
|
3819
3815
|
options: r,
|
|
3820
3816
|
value: t = "",
|
|
@@ -3826,23 +3822,23 @@ function pt({
|
|
|
3826
3822
|
placeholder: d = "Select...",
|
|
3827
3823
|
disabled: u = !1,
|
|
3828
3824
|
error: g,
|
|
3829
|
-
required:
|
|
3830
|
-
colorScheme:
|
|
3831
|
-
noResultsText:
|
|
3825
|
+
required: v = !1,
|
|
3826
|
+
colorScheme: f = "primary",
|
|
3827
|
+
noResultsText: x = "No results found",
|
|
3832
3828
|
searchPlaceholder: b = "Search...",
|
|
3833
|
-
...
|
|
3829
|
+
...w
|
|
3834
3830
|
}) {
|
|
3835
|
-
const [
|
|
3831
|
+
const [m, k] = _(!1), [y, z] = _(""), [D, L] = _({
|
|
3836
3832
|
top: 0,
|
|
3837
3833
|
left: 0,
|
|
3838
3834
|
openUpward: !1
|
|
3839
3835
|
}), E = Array.isArray(t) ? t : t ? [t] : [], [h, O] = _(
|
|
3840
|
-
E.map((N) => r.find((
|
|
3841
|
-
), R =
|
|
3836
|
+
E.map((N) => r.find((S) => S.value === N)).filter(Boolean)
|
|
3837
|
+
), R = ue(null), W = ue(null), Z = () => {
|
|
3842
3838
|
const N = "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";
|
|
3843
3839
|
if (g)
|
|
3844
3840
|
return c(N, "border-danger focus:border-danger");
|
|
3845
|
-
switch (
|
|
3841
|
+
switch (f) {
|
|
3846
3842
|
case "primary":
|
|
3847
3843
|
return c(
|
|
3848
3844
|
N,
|
|
@@ -3855,75 +3851,75 @@ function pt({
|
|
|
3855
3851
|
"text-secondary border-secondary focus:border-secondary"
|
|
3856
3852
|
);
|
|
3857
3853
|
}
|
|
3858
|
-
},
|
|
3859
|
-
|
|
3860
|
-
const
|
|
3861
|
-
O(
|
|
3862
|
-
}, [t, r]),
|
|
3863
|
-
|
|
3864
|
-
}, [
|
|
3865
|
-
const M =
|
|
3854
|
+
}, A = () => f === "primary" ? "text-primary" : "text-secondary";
|
|
3855
|
+
U(() => {
|
|
3856
|
+
const S = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((F) => r.find((V) => V.value === F)).filter(Boolean);
|
|
3857
|
+
O(S);
|
|
3858
|
+
}, [t, r]), U(() => {
|
|
3859
|
+
m && i && W.current && W.current.focus();
|
|
3860
|
+
}, [m, i]);
|
|
3861
|
+
const M = Ne(() => {
|
|
3866
3862
|
if (!R.current) return;
|
|
3867
|
-
const N = R.current.getBoundingClientRect(),
|
|
3868
|
-
|
|
3869
|
-
top:
|
|
3863
|
+
const N = R.current.getBoundingClientRect(), S = window.innerHeight, F = 250, Q = S - N.bottom < F && N.top > F;
|
|
3864
|
+
L({
|
|
3865
|
+
top: Q ? N.top : N.bottom,
|
|
3870
3866
|
left: N.left,
|
|
3871
3867
|
width: N.width,
|
|
3872
|
-
openUpward:
|
|
3868
|
+
openUpward: Q
|
|
3873
3869
|
});
|
|
3874
3870
|
}, []);
|
|
3875
|
-
|
|
3871
|
+
U(() => {
|
|
3876
3872
|
function N(F) {
|
|
3877
|
-
R.current && !R.current.contains(F.target) &&
|
|
3873
|
+
R.current && !R.current.contains(F.target) && k(!1);
|
|
3878
3874
|
}
|
|
3879
|
-
function
|
|
3880
|
-
|
|
3875
|
+
function S() {
|
|
3876
|
+
m && M();
|
|
3881
3877
|
}
|
|
3882
|
-
return document.addEventListener("mousedown", N), window.addEventListener("scroll",
|
|
3883
|
-
document.removeEventListener("mousedown", N), window.removeEventListener("scroll",
|
|
3878
|
+
return document.addEventListener("mousedown", N), window.addEventListener("scroll", S, !0), window.addEventListener("resize", S), () => {
|
|
3879
|
+
document.removeEventListener("mousedown", N), window.removeEventListener("scroll", S, !0), window.removeEventListener("resize", S);
|
|
3884
3880
|
};
|
|
3885
|
-
}, [
|
|
3881
|
+
}, [m, M]);
|
|
3886
3882
|
const P = (N) => {
|
|
3887
|
-
const
|
|
3883
|
+
const S = r.find(
|
|
3888
3884
|
(V) => V.value === N
|
|
3889
3885
|
);
|
|
3890
|
-
if (!
|
|
3886
|
+
if (!S) return;
|
|
3891
3887
|
let F;
|
|
3892
|
-
s ? (F = h.some((
|
|
3888
|
+
s ? (F = h.some((Q) => Q.value === N) ? h.filter((Q) => Q.value !== N) : [...h, S], O(F), o(F)) : (F = [S], O(F), o(S), k(!1), z(""));
|
|
3893
3889
|
}, B = (N) => {
|
|
3894
|
-
|
|
3890
|
+
z(N), a?.(N);
|
|
3895
3891
|
}, $ = i ? r.filter(
|
|
3896
|
-
(N) => N.label.toLowerCase().includes(
|
|
3892
|
+
(N) => N.label.toLowerCase().includes(y.toLowerCase())
|
|
3897
3893
|
) : r, X = () => h.length === 0 ? d : s ? h.length === 1 ? h[0].label : `${h.length} selected` : h[0]?.label || d;
|
|
3898
|
-
return /* @__PURE__ */
|
|
3899
|
-
e && /* @__PURE__ */
|
|
3894
|
+
return /* @__PURE__ */ p("div", { className: c("mb-6", l), children: [
|
|
3895
|
+
e && /* @__PURE__ */ p(
|
|
3900
3896
|
"label",
|
|
3901
3897
|
{
|
|
3902
|
-
className: c("block mb-2 text-sm font-medium",
|
|
3898
|
+
className: c("block mb-2 text-sm font-medium", A()),
|
|
3903
3899
|
children: [
|
|
3904
3900
|
e,
|
|
3905
|
-
|
|
3901
|
+
v && /* @__PURE__ */ n("span", { className: "text-danger ml-1", children: "*" })
|
|
3906
3902
|
]
|
|
3907
3903
|
}
|
|
3908
3904
|
),
|
|
3909
|
-
/* @__PURE__ */
|
|
3910
|
-
/* @__PURE__ */
|
|
3905
|
+
/* @__PURE__ */ p("div", { ref: R, className: "relative w-full", children: [
|
|
3906
|
+
/* @__PURE__ */ p(
|
|
3911
3907
|
"button",
|
|
3912
3908
|
{
|
|
3913
3909
|
type: "button",
|
|
3914
3910
|
onClick: (N) => {
|
|
3915
|
-
N.preventDefault(), N.stopPropagation(),
|
|
3911
|
+
N.preventDefault(), N.stopPropagation(), m || M(), k(!m);
|
|
3916
3912
|
},
|
|
3917
3913
|
className: c(
|
|
3918
3914
|
Z(),
|
|
3919
3915
|
"inline-flex items-center justify-between cursor-pointer h-auto min-h-14",
|
|
3920
3916
|
u && "cursor-not-allowed",
|
|
3921
|
-
|
|
3917
|
+
m && "ring-1"
|
|
3922
3918
|
),
|
|
3923
3919
|
disabled: u,
|
|
3924
|
-
...
|
|
3920
|
+
...w,
|
|
3925
3921
|
children: [
|
|
3926
|
-
/* @__PURE__ */
|
|
3922
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
3927
3923
|
h.length > 0 && h[0].hex && /* @__PURE__ */ n(
|
|
3928
3924
|
"div",
|
|
3929
3925
|
{
|
|
@@ -3944,55 +3940,55 @@ function pt({
|
|
|
3944
3940
|
{
|
|
3945
3941
|
className: c(
|
|
3946
3942
|
"h-5 w-5 transition-transform duration-200",
|
|
3947
|
-
|
|
3943
|
+
m && "rotate-180"
|
|
3948
3944
|
),
|
|
3949
|
-
children: /* @__PURE__ */ n(
|
|
3945
|
+
children: /* @__PURE__ */ n(je, { className: "h-5 w-5" })
|
|
3950
3946
|
}
|
|
3951
3947
|
)
|
|
3952
3948
|
]
|
|
3953
3949
|
}
|
|
3954
3950
|
),
|
|
3955
|
-
|
|
3951
|
+
m && /* @__PURE__ */ p(
|
|
3956
3952
|
"div",
|
|
3957
3953
|
{
|
|
3958
3954
|
className: c(
|
|
3959
3955
|
"fixed z-9999 rounded-lg border-2 bg-white shadow-xl",
|
|
3960
|
-
g ? "border-danger" :
|
|
3956
|
+
g ? "border-danger" : f === "primary" ? "border-primary" : "border-secondary"
|
|
3961
3957
|
),
|
|
3962
3958
|
style: {
|
|
3963
|
-
top: `${
|
|
3964
|
-
left: `${
|
|
3965
|
-
width: `${
|
|
3966
|
-
transform:
|
|
3959
|
+
top: `${D.top + (D.openUpward ? 0 : 8)}px`,
|
|
3960
|
+
left: `${D.left}px`,
|
|
3961
|
+
width: `${D.width}px`,
|
|
3962
|
+
transform: D.openUpward ? "translateY(-100%)" : "none"
|
|
3967
3963
|
},
|
|
3968
3964
|
children: [
|
|
3969
|
-
i && /* @__PURE__ */ n("div", { className: "border-b border-border p-3", children: /* @__PURE__ */
|
|
3970
|
-
/* @__PURE__ */ n(
|
|
3965
|
+
i && /* @__PURE__ */ n("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ p("div", { className: "relative", children: [
|
|
3966
|
+
/* @__PURE__ */ n(_r, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
|
|
3971
3967
|
/* @__PURE__ */ n(
|
|
3972
3968
|
"input",
|
|
3973
3969
|
{
|
|
3974
3970
|
ref: W,
|
|
3975
3971
|
type: "text",
|
|
3976
|
-
value:
|
|
3972
|
+
value: y,
|
|
3977
3973
|
onChange: (N) => B(N.target.value),
|
|
3978
3974
|
placeholder: b,
|
|
3979
3975
|
className: c(
|
|
3980
3976
|
"w-full rounded-lg border-2 py-2 pr-10 pl-10 text-sm transition-all duration-300 focus:outline-none focus:ring-1",
|
|
3981
|
-
|
|
3977
|
+
f === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
|
|
3982
3978
|
)
|
|
3983
3979
|
}
|
|
3984
3980
|
),
|
|
3985
|
-
|
|
3981
|
+
y && /* @__PURE__ */ n(
|
|
3986
3982
|
"button",
|
|
3987
3983
|
{
|
|
3988
3984
|
type: "button",
|
|
3989
|
-
onClick: () =>
|
|
3985
|
+
onClick: () => z(""),
|
|
3990
3986
|
className: "absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform text-text-muted hover:text-text",
|
|
3991
|
-
children: /* @__PURE__ */ n(
|
|
3987
|
+
children: /* @__PURE__ */ n($r, { className: "h-4 w-4" })
|
|
3992
3988
|
}
|
|
3993
3989
|
)
|
|
3994
3990
|
] }) }),
|
|
3995
|
-
/* @__PURE__ */
|
|
3991
|
+
/* @__PURE__ */ p("div", { className: "max-h-60 overflow-y-auto py-1", children: [
|
|
3996
3992
|
$.map((N) => /* @__PURE__ */ n(
|
|
3997
3993
|
"button",
|
|
3998
3994
|
{
|
|
@@ -4000,18 +3996,18 @@ function pt({
|
|
|
4000
3996
|
onClick: () => P(N.value ?? ""),
|
|
4001
3997
|
className: c(
|
|
4002
3998
|
"w-full px-4 py-3 text-left text-sm transition-colors",
|
|
4003
|
-
h.some((
|
|
3999
|
+
h.some((S) => S.value === N.value) ? f === "primary" ? "bg-primary/10 text-primary font-medium" : "bg-secondary/10 text-secondary font-medium" : "text-text hover:bg-background-light"
|
|
4004
4000
|
),
|
|
4005
|
-
children: /* @__PURE__ */
|
|
4001
|
+
children: /* @__PURE__ */ p("div", { className: "flex items-center gap-3", children: [
|
|
4006
4002
|
s && /* @__PURE__ */ n(
|
|
4007
4003
|
"div",
|
|
4008
4004
|
{
|
|
4009
4005
|
className: c(
|
|
4010
4006
|
"flex h-4 w-4 items-center justify-center rounded border-2 transition-colors",
|
|
4011
|
-
h.some((
|
|
4007
|
+
h.some((S) => S.value === N.value) ? f === "primary" ? "border-primary bg-primary" : "border-secondary bg-secondary" : "border-border"
|
|
4012
4008
|
),
|
|
4013
4009
|
children: h.some(
|
|
4014
|
-
(
|
|
4010
|
+
(S) => S.value === N.value
|
|
4015
4011
|
) && /* @__PURE__ */ n(
|
|
4016
4012
|
"svg",
|
|
4017
4013
|
{
|
|
@@ -4042,7 +4038,7 @@ function pt({
|
|
|
4042
4038
|
},
|
|
4043
4039
|
N.value
|
|
4044
4040
|
)),
|
|
4045
|
-
$.length === 0 &&
|
|
4041
|
+
$.length === 0 && y && r.length > 0 && /* @__PURE__ */ n("div", { className: "px-4 py-3", children: /* @__PURE__ */ n("span", { className: "text-sm text-text-muted", children: x }) })
|
|
4046
4042
|
] })
|
|
4047
4043
|
]
|
|
4048
4044
|
}
|
|
@@ -4051,7 +4047,7 @@ function pt({
|
|
|
4051
4047
|
g && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: g })
|
|
4052
4048
|
] });
|
|
4053
4049
|
}
|
|
4054
|
-
const
|
|
4050
|
+
const ft = ({
|
|
4055
4051
|
id: e,
|
|
4056
4052
|
name: r,
|
|
4057
4053
|
onFilesSelected: t,
|
|
@@ -4064,12 +4060,12 @@ const mt = ({
|
|
|
4064
4060
|
colorScheme: u = "secondary",
|
|
4065
4061
|
// "primary" | "secondary"
|
|
4066
4062
|
className: g = "",
|
|
4067
|
-
accept:
|
|
4063
|
+
accept: v = "*/*",
|
|
4068
4064
|
// Tipos de archivo aceptados: "image/*", "application/pdf", ".doc,.docx", etc.
|
|
4069
|
-
multiple:
|
|
4070
|
-
...
|
|
4065
|
+
multiple: f = !1,
|
|
4066
|
+
...x
|
|
4071
4067
|
}) => {
|
|
4072
|
-
const b =
|
|
4068
|
+
const b = ue(null), [w, m] = _(!1), [k, y] = _([]), z = () => {
|
|
4073
4069
|
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]";
|
|
4074
4070
|
if (i)
|
|
4075
4071
|
return c(
|
|
@@ -4089,7 +4085,7 @@ const mt = ({
|
|
|
4089
4085
|
"border-secondary focus:border-secondary focus:ring-1 focus:ring-secondary hover:border-secondary-dark"
|
|
4090
4086
|
);
|
|
4091
4087
|
}
|
|
4092
|
-
},
|
|
4088
|
+
}, D = () => {
|
|
4093
4089
|
switch (u) {
|
|
4094
4090
|
case "primary":
|
|
4095
4091
|
return "text-primary";
|
|
@@ -4097,10 +4093,10 @@ const mt = ({
|
|
|
4097
4093
|
default:
|
|
4098
4094
|
return "text-secondary";
|
|
4099
4095
|
}
|
|
4100
|
-
},
|
|
4101
|
-
M.preventDefault(), M.stopPropagation(), a || (M.type === "dragenter" || M.type === "dragover" ?
|
|
4096
|
+
}, L = (M) => {
|
|
4097
|
+
M.preventDefault(), M.stopPropagation(), a || (M.type === "dragenter" || M.type === "dragover" ? m(!0) : M.type === "dragleave" && m(!1));
|
|
4102
4098
|
}, E = (M) => {
|
|
4103
|
-
if (M.preventDefault(), M.stopPropagation(),
|
|
4099
|
+
if (M.preventDefault(), M.stopPropagation(), m(!1), a) return;
|
|
4104
4100
|
const P = M.dataTransfer.files;
|
|
4105
4101
|
O(P);
|
|
4106
4102
|
}, h = (M) => {
|
|
@@ -4108,49 +4104,49 @@ const mt = ({
|
|
|
4108
4104
|
P && O(P);
|
|
4109
4105
|
}, O = (M) => {
|
|
4110
4106
|
const P = Array.from(M);
|
|
4111
|
-
if (
|
|
4112
|
-
const B = P.filter(($) => R($,
|
|
4107
|
+
if (v !== "*/*") {
|
|
4108
|
+
const B = P.filter(($) => R($, v));
|
|
4113
4109
|
if (B.length === 0) {
|
|
4114
4110
|
console.warn("No valid files selected");
|
|
4115
4111
|
return;
|
|
4116
4112
|
}
|
|
4117
|
-
f
|
|
4113
|
+
y(f ? B : [B[0]]), t(f ? B : [B[0]]);
|
|
4118
4114
|
} else
|
|
4119
|
-
f
|
|
4115
|
+
y(f ? P : [P[0]]), t(f ? P : [P[0]]);
|
|
4120
4116
|
}, R = (M, P) => P.split(",").map(($) => $.trim()).some(($) => {
|
|
4121
4117
|
if ($.startsWith("."))
|
|
4122
4118
|
return M.name.toLowerCase().endsWith($.toLowerCase());
|
|
4123
4119
|
if ($.includes("/")) {
|
|
4124
|
-
const [X, N] = $.split("/"),
|
|
4125
|
-
return N === "*" ?
|
|
4120
|
+
const [X, N] = $.split("/"), S = M.type.split("/")[0];
|
|
4121
|
+
return N === "*" ? S === X : M.type === $;
|
|
4126
4122
|
}
|
|
4127
4123
|
return !1;
|
|
4128
4124
|
}), W = () => {
|
|
4129
4125
|
a || b.current?.click();
|
|
4130
4126
|
}, Z = (M) => {
|
|
4131
|
-
const P =
|
|
4132
|
-
|
|
4133
|
-
},
|
|
4127
|
+
const P = k.filter((B, $) => $ !== M);
|
|
4128
|
+
y(P), t(P);
|
|
4129
|
+
}, A = (M) => {
|
|
4134
4130
|
(M.key === "Enter" || M.key === " ") && (M.preventDefault(), W());
|
|
4135
4131
|
};
|
|
4136
|
-
return /* @__PURE__ */
|
|
4137
|
-
l && /* @__PURE__ */
|
|
4132
|
+
return /* @__PURE__ */ p("div", { className: `mb-6 ${g}`, children: [
|
|
4133
|
+
l && /* @__PURE__ */ p("label", { className: `block mb-2 text-sm font-medium ${D()}`, children: [
|
|
4138
4134
|
l,
|
|
4139
4135
|
d && /* @__PURE__ */ n("span", { className: "text-danger ml-1", children: "*" })
|
|
4140
4136
|
] }),
|
|
4141
|
-
/* @__PURE__ */
|
|
4137
|
+
/* @__PURE__ */ p(
|
|
4142
4138
|
"div",
|
|
4143
4139
|
{
|
|
4144
4140
|
className: c(
|
|
4145
|
-
|
|
4146
|
-
|
|
4141
|
+
z(),
|
|
4142
|
+
w && "bg-background-light border-2-dashed"
|
|
4147
4143
|
),
|
|
4148
|
-
onDragEnter:
|
|
4149
|
-
onDragLeave:
|
|
4150
|
-
onDragOver:
|
|
4144
|
+
onDragEnter: L,
|
|
4145
|
+
onDragLeave: L,
|
|
4146
|
+
onDragOver: L,
|
|
4151
4147
|
onDrop: E,
|
|
4152
4148
|
onClick: W,
|
|
4153
|
-
onKeyDown:
|
|
4149
|
+
onKeyDown: A,
|
|
4154
4150
|
role: "button",
|
|
4155
4151
|
tabIndex: a ? -1 : 0,
|
|
4156
4152
|
children: [
|
|
@@ -4164,13 +4160,13 @@ const mt = ({
|
|
|
4164
4160
|
onChange: h,
|
|
4165
4161
|
disabled: a,
|
|
4166
4162
|
required: d,
|
|
4167
|
-
accept:
|
|
4168
|
-
multiple:
|
|
4163
|
+
accept: v,
|
|
4164
|
+
multiple: f,
|
|
4169
4165
|
className: "hidden",
|
|
4170
|
-
...
|
|
4166
|
+
...x
|
|
4171
4167
|
}
|
|
4172
4168
|
),
|
|
4173
|
-
/* @__PURE__ */
|
|
4169
|
+
/* @__PURE__ */ p("div", { className: "flex flex-col items-center justify-center py-4", children: [
|
|
4174
4170
|
/* @__PURE__ */ n(
|
|
4175
4171
|
"svg",
|
|
4176
4172
|
{
|
|
@@ -4189,25 +4185,25 @@ const mt = ({
|
|
|
4189
4185
|
)
|
|
4190
4186
|
}
|
|
4191
4187
|
),
|
|
4192
|
-
/* @__PURE__ */ n("p", { className: `text-sm ${
|
|
4188
|
+
/* @__PURE__ */ n("p", { className: `text-sm ${D()}`, children: o })
|
|
4193
4189
|
] })
|
|
4194
4190
|
]
|
|
4195
4191
|
}
|
|
4196
4192
|
),
|
|
4197
|
-
/* @__PURE__ */
|
|
4198
|
-
/* @__PURE__ */
|
|
4199
|
-
|
|
4193
|
+
/* @__PURE__ */ p("div", { className: "mt-4 space-y-2", children: [
|
|
4194
|
+
/* @__PURE__ */ p("p", { className: `text-sm font-medium ${D()}`, children: [
|
|
4195
|
+
k.length,
|
|
4200
4196
|
" ",
|
|
4201
4197
|
s,
|
|
4202
4198
|
"(s) seleccionado(s):"
|
|
4203
4199
|
] }),
|
|
4204
|
-
/* @__PURE__ */ n("ul", { className: "space-y-1", children:
|
|
4200
|
+
/* @__PURE__ */ n("ul", { className: "space-y-1", children: k.map((M, P) => /* @__PURE__ */ p(
|
|
4205
4201
|
"li",
|
|
4206
4202
|
{
|
|
4207
4203
|
className: "flex items-center justify-between p-2 bg-light rounded border border-border",
|
|
4208
4204
|
children: [
|
|
4209
|
-
/* @__PURE__ */
|
|
4210
|
-
/* @__PURE__ */
|
|
4205
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
4206
|
+
/* @__PURE__ */ p(
|
|
4211
4207
|
"svg",
|
|
4212
4208
|
{
|
|
4213
4209
|
className: "w-4 h-4 text-text-muted shrink-0",
|
|
@@ -4239,7 +4235,7 @@ const mt = ({
|
|
|
4239
4235
|
] }),
|
|
4240
4236
|
i && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
|
|
4241
4237
|
] });
|
|
4242
|
-
},
|
|
4238
|
+
}, ht = ({
|
|
4243
4239
|
text: e,
|
|
4244
4240
|
className: r = "",
|
|
4245
4241
|
variant: t = "default",
|
|
@@ -4257,7 +4253,7 @@ const mt = ({
|
|
|
4257
4253
|
}, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", a = l[t] || l.default;
|
|
4258
4254
|
return /* @__PURE__ */ n("div", { className: `${i} ${a} ${r}`, ...s, children: e });
|
|
4259
4255
|
};
|
|
4260
|
-
function
|
|
4256
|
+
function yt({
|
|
4261
4257
|
isOpen: e,
|
|
4262
4258
|
onClose: r,
|
|
4263
4259
|
title: t,
|
|
@@ -4269,16 +4265,16 @@ function gt({
|
|
|
4269
4265
|
closeOnOverlayClick: d = !0,
|
|
4270
4266
|
closeOnEscape: u = !0
|
|
4271
4267
|
}) {
|
|
4272
|
-
if (
|
|
4268
|
+
if (U(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
4273
4269
|
document.body.style.overflow = "unset";
|
|
4274
|
-
}), [e]),
|
|
4270
|
+
}), [e]), U(() => {
|
|
4275
4271
|
if (!u || !e)
|
|
4276
4272
|
return;
|
|
4277
|
-
const
|
|
4273
|
+
const x = (b) => {
|
|
4278
4274
|
b.key === "Escape" && r();
|
|
4279
4275
|
};
|
|
4280
|
-
return document.addEventListener("keydown",
|
|
4281
|
-
document.removeEventListener("keydown",
|
|
4276
|
+
return document.addEventListener("keydown", x), () => {
|
|
4277
|
+
document.removeEventListener("keydown", x);
|
|
4282
4278
|
};
|
|
4283
4279
|
}, [e, r, u]), !e) return null;
|
|
4284
4280
|
const g = {
|
|
@@ -4287,20 +4283,20 @@ function gt({
|
|
|
4287
4283
|
lg: "max-w-lg",
|
|
4288
4284
|
xl: "max-w-xl",
|
|
4289
4285
|
"2xl": "max-w-2xl"
|
|
4290
|
-
},
|
|
4286
|
+
}, v = () => {
|
|
4291
4287
|
d && r();
|
|
4292
|
-
},
|
|
4288
|
+
}, f = /* @__PURE__ */ n(
|
|
4293
4289
|
"div",
|
|
4294
4290
|
{
|
|
4295
4291
|
className: c(
|
|
4296
4292
|
"fixed inset-0 bg-black/40 flex items-center justify-center z-9999 p-4",
|
|
4297
4293
|
i
|
|
4298
4294
|
),
|
|
4299
|
-
onClick:
|
|
4295
|
+
onClick: v,
|
|
4300
4296
|
role: "dialog",
|
|
4301
4297
|
"aria-modal": "true",
|
|
4302
4298
|
"aria-labelledby": t ? "modal-title" : void 0,
|
|
4303
|
-
children: /* @__PURE__ */
|
|
4299
|
+
children: /* @__PURE__ */ p(
|
|
4304
4300
|
"div",
|
|
4305
4301
|
{
|
|
4306
4302
|
className: c(
|
|
@@ -4308,9 +4304,9 @@ function gt({
|
|
|
4308
4304
|
g[s],
|
|
4309
4305
|
l
|
|
4310
4306
|
),
|
|
4311
|
-
onClick: (
|
|
4307
|
+
onClick: (x) => x.stopPropagation(),
|
|
4312
4308
|
children: [
|
|
4313
|
-
(t || a) && /* @__PURE__ */
|
|
4309
|
+
(t || a) && /* @__PURE__ */ p("div", { className: "flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0", children: [
|
|
4314
4310
|
t && /* @__PURE__ */ n(
|
|
4315
4311
|
"h2",
|
|
4316
4312
|
{
|
|
@@ -4336,9 +4332,9 @@ function gt({
|
|
|
4336
4332
|
)
|
|
4337
4333
|
}
|
|
4338
4334
|
);
|
|
4339
|
-
return
|
|
4335
|
+
return Fe(f, document.body);
|
|
4340
4336
|
}
|
|
4341
|
-
function
|
|
4337
|
+
function xt({
|
|
4342
4338
|
id: e,
|
|
4343
4339
|
name: r,
|
|
4344
4340
|
checked: t = !1,
|
|
@@ -4351,10 +4347,10 @@ function ht({
|
|
|
4351
4347
|
className: u = "",
|
|
4352
4348
|
...g
|
|
4353
4349
|
}) {
|
|
4354
|
-
const
|
|
4350
|
+
const v = (f, x) => {
|
|
4355
4351
|
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";
|
|
4356
|
-
if (
|
|
4357
|
-
switch (
|
|
4352
|
+
if (f === "outline")
|
|
4353
|
+
switch (x) {
|
|
4358
4354
|
case "primary":
|
|
4359
4355
|
return `${b} checkbox-outline checkbox-primary`;
|
|
4360
4356
|
case "secondary":
|
|
@@ -4362,7 +4358,7 @@ function ht({
|
|
|
4362
4358
|
return `${b} checkbox-outline checkbox-secondary`;
|
|
4363
4359
|
}
|
|
4364
4360
|
else
|
|
4365
|
-
switch (
|
|
4361
|
+
switch (x) {
|
|
4366
4362
|
case "primary":
|
|
4367
4363
|
return `${b} checkbox-solid checkbox-primary`;
|
|
4368
4364
|
case "secondary":
|
|
@@ -4370,7 +4366,7 @@ function ht({
|
|
|
4370
4366
|
return `${b} checkbox-solid checkbox-secondary`;
|
|
4371
4367
|
}
|
|
4372
4368
|
};
|
|
4373
|
-
return d ? /* @__PURE__ */
|
|
4369
|
+
return d ? /* @__PURE__ */ p("div", { className: `flex items-center gap-2 ${u}`, children: [
|
|
4374
4370
|
/* @__PURE__ */ n(
|
|
4375
4371
|
"input",
|
|
4376
4372
|
{
|
|
@@ -4381,11 +4377,11 @@ function ht({
|
|
|
4381
4377
|
onChange: o,
|
|
4382
4378
|
disabled: s,
|
|
4383
4379
|
required: l,
|
|
4384
|
-
className:
|
|
4380
|
+
className: v(a, i),
|
|
4385
4381
|
...g
|
|
4386
4382
|
}
|
|
4387
4383
|
),
|
|
4388
|
-
/* @__PURE__ */
|
|
4384
|
+
/* @__PURE__ */ p(
|
|
4389
4385
|
"label",
|
|
4390
4386
|
{
|
|
4391
4387
|
htmlFor: e,
|
|
@@ -4406,7 +4402,7 @@ function ht({
|
|
|
4406
4402
|
onChange: o,
|
|
4407
4403
|
disabled: s,
|
|
4408
4404
|
required: l,
|
|
4409
|
-
className: `${
|
|
4405
|
+
className: `${v(a, i)} ${u}`,
|
|
4410
4406
|
style: {
|
|
4411
4407
|
accentColor: "white"
|
|
4412
4408
|
},
|
|
@@ -4414,158 +4410,216 @@ function ht({
|
|
|
4414
4410
|
}
|
|
4415
4411
|
);
|
|
4416
4412
|
}
|
|
4417
|
-
const
|
|
4413
|
+
const se = (e) => String(e).padStart(2, "0"), ke = (e) => !e || Number.isNaN(e.getTime()) ? "" : `${e.getFullYear()}-${se(e.getMonth() + 1)}-${se(e.getDate())}T${se(e.getHours())}:${se(e.getMinutes())}`, Hr = (e) => {
|
|
4414
|
+
if (!e) return null;
|
|
4415
|
+
const r = new Date(e);
|
|
4416
|
+
return Number.isNaN(r.getTime()) ? null : r;
|
|
4417
|
+
};
|
|
4418
|
+
function wt({
|
|
4419
|
+
id: e,
|
|
4420
|
+
name: r,
|
|
4421
|
+
value: t,
|
|
4422
|
+
onChange: o,
|
|
4423
|
+
min: s,
|
|
4424
|
+
label: l,
|
|
4425
|
+
error: i,
|
|
4426
|
+
disabled: a = !1,
|
|
4427
|
+
required: d = !1,
|
|
4428
|
+
colorScheme: u = "secondary",
|
|
4429
|
+
className: g = "",
|
|
4430
|
+
...v
|
|
4431
|
+
}) {
|
|
4432
|
+
const f = c(
|
|
4433
|
+
"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",
|
|
4434
|
+
i ? "border-danger focus:border-danger focus:shadow-danger-light" : u === "primary" ? "text-primary border-primary focus:border-primary" : "text-secondary border-secondary focus:border-secondary"
|
|
4435
|
+
);
|
|
4436
|
+
return /* @__PURE__ */ p("div", { className: c("mb-6", g), children: [
|
|
4437
|
+
l && /* @__PURE__ */ p(
|
|
4438
|
+
"label",
|
|
4439
|
+
{
|
|
4440
|
+
htmlFor: e,
|
|
4441
|
+
className: c(
|
|
4442
|
+
"block mb-2 text-sm font-medium",
|
|
4443
|
+
u === "primary" ? "text-primary" : "text-secondary"
|
|
4444
|
+
),
|
|
4445
|
+
children: [
|
|
4446
|
+
l,
|
|
4447
|
+
d && /* @__PURE__ */ n("span", { className: "text-danger ml-1", children: "*" })
|
|
4448
|
+
]
|
|
4449
|
+
}
|
|
4450
|
+
),
|
|
4451
|
+
/* @__PURE__ */ n(
|
|
4452
|
+
"input",
|
|
4453
|
+
{
|
|
4454
|
+
id: e,
|
|
4455
|
+
name: r,
|
|
4456
|
+
type: "datetime-local",
|
|
4457
|
+
value: ke(t),
|
|
4458
|
+
onChange: (x) => o(Hr(x.target.value)),
|
|
4459
|
+
min: s ? ke(s) : void 0,
|
|
4460
|
+
disabled: a,
|
|
4461
|
+
required: d,
|
|
4462
|
+
"aria-invalid": i ? !0 : void 0,
|
|
4463
|
+
className: f,
|
|
4464
|
+
...v
|
|
4465
|
+
}
|
|
4466
|
+
),
|
|
4467
|
+
i && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
|
|
4468
|
+
] });
|
|
4469
|
+
}
|
|
4470
|
+
const Ur = {
|
|
4418
4471
|
pulse: "cmp-skeleton-pulse",
|
|
4419
4472
|
wave: "cmp-skeleton-wave",
|
|
4420
4473
|
none: ""
|
|
4421
|
-
},
|
|
4474
|
+
}, j = ({ className: e = "", animation: r = "pulse" }) => {
|
|
4422
4475
|
const t = /(^|\s)rounded/.test(e);
|
|
4423
4476
|
return /* @__PURE__ */ n(
|
|
4424
4477
|
"div",
|
|
4425
4478
|
{
|
|
4426
4479
|
className: c(
|
|
4427
4480
|
"bg-gray-200",
|
|
4428
|
-
|
|
4481
|
+
Ur[r],
|
|
4429
4482
|
!t && "rounded-md",
|
|
4430
4483
|
e
|
|
4431
4484
|
)
|
|
4432
4485
|
}
|
|
4433
4486
|
);
|
|
4434
|
-
},
|
|
4487
|
+
}, vt = ({
|
|
4435
4488
|
count: e = 6,
|
|
4436
4489
|
className: r = "",
|
|
4437
4490
|
animation: t = "pulse"
|
|
4438
|
-
}) => /* @__PURE__ */ n("div", { className: c("divide-y divide-gray-200", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */
|
|
4439
|
-
/* @__PURE__ */
|
|
4440
|
-
/* @__PURE__ */ n(
|
|
4441
|
-
/* @__PURE__ */ n(
|
|
4491
|
+
}) => /* @__PURE__ */ n("div", { className: c("divide-y divide-gray-200", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */ p("div", { className: "flex items-center justify-between py-3", children: [
|
|
4492
|
+
/* @__PURE__ */ p("div", { className: "flex flex-col gap-1.5 min-w-0", children: [
|
|
4493
|
+
/* @__PURE__ */ n(j, { className: "h-4 w-40", animation: t }),
|
|
4494
|
+
/* @__PURE__ */ n(j, { className: "h-3 w-28", animation: t })
|
|
4442
4495
|
] }),
|
|
4443
|
-
/* @__PURE__ */ n(
|
|
4444
|
-
] }, s)) }),
|
|
4496
|
+
/* @__PURE__ */ n(j, { className: "h-4 w-12 shrink-0 ml-3", animation: t })
|
|
4497
|
+
] }, s)) }), Yr = ({ animation: e }) => /* @__PURE__ */ p("div", { className: "bg-white border border-gray-200 rounded-xl shadow-sm flex items-stretch overflow-hidden", children: [
|
|
4445
4498
|
/* @__PURE__ */ n(
|
|
4446
|
-
|
|
4499
|
+
j,
|
|
4447
4500
|
{
|
|
4448
4501
|
className: "shrink-0 w-36 h-[120px] rounded-none",
|
|
4449
4502
|
animation: e
|
|
4450
4503
|
}
|
|
4451
4504
|
),
|
|
4452
|
-
/* @__PURE__ */
|
|
4453
|
-
/* @__PURE__ */ n(
|
|
4454
|
-
/* @__PURE__ */
|
|
4455
|
-
/* @__PURE__ */ n(
|
|
4456
|
-
/* @__PURE__ */ n(
|
|
4457
|
-
/* @__PURE__ */ n(
|
|
4505
|
+
/* @__PURE__ */ p("div", { className: "flex-1 p-4 min-w-0 flex flex-col justify-center gap-2", children: [
|
|
4506
|
+
/* @__PURE__ */ n(j, { className: "h-5 w-1/3", animation: e }),
|
|
4507
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-1.5", children: [
|
|
4508
|
+
/* @__PURE__ */ n(j, { className: "h-4 w-16 rounded-full", animation: e }),
|
|
4509
|
+
/* @__PURE__ */ n(j, { className: "h-4 w-20 rounded-full", animation: e }),
|
|
4510
|
+
/* @__PURE__ */ n(j, { className: "h-4 w-24 rounded-full", animation: e })
|
|
4458
4511
|
] }),
|
|
4459
|
-
/* @__PURE__ */ n(
|
|
4512
|
+
/* @__PURE__ */ n(j, { className: "h-3 w-2/3", animation: e })
|
|
4460
4513
|
] }),
|
|
4461
|
-
/* @__PURE__ */
|
|
4462
|
-
/* @__PURE__ */ n(
|
|
4463
|
-
/* @__PURE__ */ n(
|
|
4464
|
-
/* @__PURE__ */ n(
|
|
4514
|
+
/* @__PURE__ */ p("div", { className: "shrink-0 flex items-center gap-2 px-4 border-l border-gray-100", children: [
|
|
4515
|
+
/* @__PURE__ */ n(j, { className: "h-8 w-8", animation: e }),
|
|
4516
|
+
/* @__PURE__ */ n(j, { className: "h-8 w-8", animation: e }),
|
|
4517
|
+
/* @__PURE__ */ n(j, { className: "h-8 w-8", animation: e })
|
|
4465
4518
|
] })
|
|
4466
|
-
] }),
|
|
4519
|
+
] }), kt = ({
|
|
4467
4520
|
count: e = 6,
|
|
4468
4521
|
className: r = "",
|
|
4469
4522
|
animation: t = "pulse"
|
|
4470
|
-
}) => /* @__PURE__ */ n("div", { className: c("flex flex-col gap-3", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */ n(
|
|
4523
|
+
}) => /* @__PURE__ */ n("div", { className: c("flex flex-col gap-3", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */ n(Yr, { animation: t }, s)) }), Jr = {
|
|
4471
4524
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
4472
4525
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
4473
4526
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
4474
|
-
},
|
|
4527
|
+
}, Kr = {
|
|
4475
4528
|
video: "aspect-video",
|
|
4476
4529
|
square: "aspect-square",
|
|
4477
4530
|
"4/3": "aspect-4/3",
|
|
4478
4531
|
auto: ""
|
|
4479
|
-
},
|
|
4532
|
+
}, Zr = ({
|
|
4480
4533
|
aspect: e,
|
|
4481
4534
|
animation: r
|
|
4482
|
-
}) => /* @__PURE__ */
|
|
4535
|
+
}) => /* @__PURE__ */ p("div", { className: "bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden flex flex-col", children: [
|
|
4483
4536
|
/* @__PURE__ */ n(
|
|
4484
|
-
|
|
4537
|
+
j,
|
|
4485
4538
|
{
|
|
4486
|
-
className: c("w-full rounded-none",
|
|
4539
|
+
className: c("w-full rounded-none", Kr[e] || "h-40"),
|
|
4487
4540
|
animation: r
|
|
4488
4541
|
}
|
|
4489
4542
|
),
|
|
4490
|
-
/* @__PURE__ */
|
|
4491
|
-
/* @__PURE__ */ n(
|
|
4492
|
-
/* @__PURE__ */ n(
|
|
4493
|
-
/* @__PURE__ */ n(
|
|
4494
|
-
/* @__PURE__ */
|
|
4495
|
-
/* @__PURE__ */ n(
|
|
4496
|
-
/* @__PURE__ */ n(
|
|
4543
|
+
/* @__PURE__ */ p("div", { className: "p-4 flex-1 flex flex-col", children: [
|
|
4544
|
+
/* @__PURE__ */ n(j, { className: "h-5 w-4/5 mb-2", animation: r }),
|
|
4545
|
+
/* @__PURE__ */ n(j, { className: "h-3 w-full mb-1.5", animation: r }),
|
|
4546
|
+
/* @__PURE__ */ n(j, { className: "h-3 w-2/3 mb-3", animation: r }),
|
|
4547
|
+
/* @__PURE__ */ p("div", { className: "mt-auto flex items-center justify-between", children: [
|
|
4548
|
+
/* @__PURE__ */ n(j, { className: "h-3 w-16", animation: r }),
|
|
4549
|
+
/* @__PURE__ */ n(j, { className: "h-8 w-24 rounded-lg", animation: r })
|
|
4497
4550
|
] })
|
|
4498
4551
|
] })
|
|
4499
|
-
] }),
|
|
4552
|
+
] }), Nt = ({
|
|
4500
4553
|
count: e = 6,
|
|
4501
4554
|
columns: r = 3,
|
|
4502
4555
|
aspect: t = "4/3",
|
|
4503
4556
|
className: o = "",
|
|
4504
4557
|
animation: s = "pulse"
|
|
4505
|
-
}) => /* @__PURE__ */ n("div", { className: c("grid gap-6",
|
|
4558
|
+
}) => /* @__PURE__ */ n("div", { className: c("grid gap-6", Jr[r], o), children: Array.from({ length: e }).map((l, i) => /* @__PURE__ */ n(Zr, { aspect: t, animation: s }, i)) }), Ct = ({
|
|
4506
4559
|
rows: e = 8,
|
|
4507
4560
|
columns: r = 6,
|
|
4508
4561
|
className: t = "",
|
|
4509
4562
|
animation: o = "pulse"
|
|
4510
|
-
}) => /* @__PURE__ */
|
|
4511
|
-
/* @__PURE__ */ n("div", { className: "flex gap-4 border-b border-gray-200 pb-3 mb-3", children: Array.from({ length: r }).map((s, l) => /* @__PURE__ */ n(
|
|
4563
|
+
}) => /* @__PURE__ */ p("div", { className: c("w-full", t), children: [
|
|
4564
|
+
/* @__PURE__ */ n("div", { className: "flex gap-4 border-b border-gray-200 pb-3 mb-3", children: Array.from({ length: r }).map((s, l) => /* @__PURE__ */ n(j, { className: "h-4 flex-1", animation: o }, l)) }),
|
|
4512
4565
|
Array.from({ length: e }).map((s, l) => /* @__PURE__ */ n(
|
|
4513
4566
|
"div",
|
|
4514
4567
|
{
|
|
4515
4568
|
className: "flex gap-4 py-3 border-b border-gray-100 last:border-0",
|
|
4516
|
-
children: Array.from({ length: r }).map((i, a) => /* @__PURE__ */ n(
|
|
4569
|
+
children: Array.from({ length: r }).map((i, a) => /* @__PURE__ */ n(j, { className: "h-4 flex-1", animation: o }, a))
|
|
4517
4570
|
},
|
|
4518
4571
|
l
|
|
4519
4572
|
))
|
|
4520
|
-
] }),
|
|
4573
|
+
] }), Mt = ({
|
|
4521
4574
|
count: e = 3,
|
|
4522
4575
|
className: r = "",
|
|
4523
4576
|
animation: t = "pulse"
|
|
4524
|
-
}) => /* @__PURE__ */ n("div", { className: c("space-y-4", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */
|
|
4525
|
-
/* @__PURE__ */
|
|
4526
|
-
/* @__PURE__ */ n(
|
|
4527
|
-
/* @__PURE__ */ n(
|
|
4577
|
+
}) => /* @__PURE__ */ n("div", { className: c("space-y-4", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */ p("div", { children: [
|
|
4578
|
+
/* @__PURE__ */ p("div", { className: "flex justify-between mb-1", children: [
|
|
4579
|
+
/* @__PURE__ */ n(j, { className: "h-3 w-32", animation: t }),
|
|
4580
|
+
/* @__PURE__ */ n(j, { className: "h-3 w-10", animation: t })
|
|
4528
4581
|
] }),
|
|
4529
|
-
/* @__PURE__ */ n(
|
|
4530
|
-
] }, s)) }), { Input:
|
|
4582
|
+
/* @__PURE__ */ n(j, { className: "h-2 w-full rounded-full", animation: t })
|
|
4583
|
+
] }, s)) }), { Input: zt, InputArea: Lt } = Ee;
|
|
4531
4584
|
export {
|
|
4532
|
-
|
|
4585
|
+
ht as Badge,
|
|
4533
4586
|
ee as Button,
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
Rr as
|
|
4539
|
-
|
|
4540
|
-
Fr as
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
ut as
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4587
|
+
pt as Calendar,
|
|
4588
|
+
xt as Checkbox,
|
|
4589
|
+
wt as DateTimePicker,
|
|
4590
|
+
gt as Dropdown,
|
|
4591
|
+
Rr as EN_DEFAULT_DAY_NAMES,
|
|
4592
|
+
Vr as EN_DEFAULT_MONTH_NAMES,
|
|
4593
|
+
Fr as ES_DEFAULT_DAY_NAMES,
|
|
4594
|
+
Br as ES_DEFAULT_MONTH_NAMES,
|
|
4595
|
+
dt as ExpandableCard,
|
|
4596
|
+
ft as FileDropZone,
|
|
4597
|
+
zt as Input,
|
|
4598
|
+
Lt as InputArea,
|
|
4599
|
+
Mr as Loader,
|
|
4600
|
+
st as Login,
|
|
4601
|
+
yt as Modal,
|
|
4602
|
+
ct as Pagination,
|
|
4603
|
+
it as SearchInput,
|
|
4604
|
+
j as Skeleton,
|
|
4605
|
+
Mt as SkeletonBars,
|
|
4606
|
+
kt as SkeletonCardList,
|
|
4607
|
+
Nt as SkeletonGrid,
|
|
4608
|
+
vt as SkeletonList,
|
|
4609
|
+
Ct as SkeletonTable,
|
|
4610
|
+
ut as TabPanel,
|
|
4611
|
+
bt as Table,
|
|
4612
|
+
mt as Tabs,
|
|
4613
|
+
ot as ThemeProvider,
|
|
4614
|
+
nt as Toggle,
|
|
4561
4615
|
c as cn,
|
|
4562
4616
|
T as defaultTheme,
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4617
|
+
ce as generateColorVariants,
|
|
4618
|
+
wr as hexToHsl,
|
|
4619
|
+
fe as hslToHex,
|
|
4620
|
+
jr as useDebounce,
|
|
4621
|
+
lt as useIsMobile,
|
|
4622
|
+
tt as useTheme,
|
|
4623
|
+
at as useToast
|
|
4570
4624
|
};
|
|
4571
4625
|
//# sourceMappingURL=index.js.map
|