componentables 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/componentables.css +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/types.d.ts +2 -1
- package/dist/components/Tabs/types.d.ts.map +1 -1
- package/dist/components/Toggle/Toggle.d.ts +1 -4
- package/dist/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -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 +300 -293
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import B, { useMemo as Ie, useEffect as
|
|
1
|
+
import { jsxs as y, jsx as s, Fragment as Ae } from "react/jsx-runtime";
|
|
2
|
+
import B, { useMemo as Ie, useEffect as W, createContext as je, useContext as Oe, useState as $, useCallback as ve, useRef as ce } from "react";
|
|
3
3
|
import { Oval as Te } from "react-loader-spinner";
|
|
4
4
|
import { createPortal as $e } from "react-dom";
|
|
5
5
|
import { toast as re } from "react-toastify";
|
|
@@ -123,12 +123,12 @@ const ue = "-", Re = (e) => {
|
|
|
123
123
|
experimentalParseClassName: t
|
|
124
124
|
} = e, o = r.length === 1, a = r[0], l = r.length, i = (n) => {
|
|
125
125
|
const c = [];
|
|
126
|
-
let d = 0,
|
|
126
|
+
let d = 0, b = 0, k;
|
|
127
127
|
for (let u = 0; u < n.length; u++) {
|
|
128
128
|
let w = n[u];
|
|
129
129
|
if (d === 0) {
|
|
130
130
|
if (w === a && (o || n.slice(u, u + l) === r)) {
|
|
131
|
-
c.push(n.slice(
|
|
131
|
+
c.push(n.slice(b, u)), b = u + l;
|
|
132
132
|
continue;
|
|
133
133
|
}
|
|
134
134
|
if (w === "/") {
|
|
@@ -138,12 +138,12 @@ const ue = "-", Re = (e) => {
|
|
|
138
138
|
}
|
|
139
139
|
w === "[" ? d++ : w === "]" && d--;
|
|
140
140
|
}
|
|
141
|
-
const f = c.length === 0 ? n : n.substring(
|
|
141
|
+
const f = c.length === 0 ? n : n.substring(b), v = f.startsWith(Ce), m = v ? f.substring(1) : f, x = k && k > b ? k - b : void 0;
|
|
142
142
|
return {
|
|
143
143
|
modifiers: c,
|
|
144
144
|
hasImportantModifier: v,
|
|
145
|
-
baseClassName:
|
|
146
|
-
maybePostfixModifierPosition:
|
|
145
|
+
baseClassName: m,
|
|
146
|
+
maybePostfixModifierPosition: x
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
return t ? (n) => t({
|
|
@@ -171,28 +171,28 @@ const ue = "-", Re = (e) => {
|
|
|
171
171
|
let n = "";
|
|
172
172
|
for (let c = i.length - 1; c >= 0; c -= 1) {
|
|
173
173
|
const d = i[c], {
|
|
174
|
-
modifiers:
|
|
174
|
+
modifiers: b,
|
|
175
175
|
hasImportantModifier: k,
|
|
176
176
|
baseClassName: f,
|
|
177
177
|
maybePostfixModifierPosition: v
|
|
178
178
|
} = t(d);
|
|
179
|
-
let
|
|
180
|
-
if (!
|
|
181
|
-
if (!
|
|
179
|
+
let m = !!v, x = o(m ? f.substring(0, v) : f);
|
|
180
|
+
if (!x) {
|
|
181
|
+
if (!m) {
|
|
182
182
|
n = d + (n.length > 0 ? " " + n : n);
|
|
183
183
|
continue;
|
|
184
184
|
}
|
|
185
|
-
if (
|
|
185
|
+
if (x = o(f), !x) {
|
|
186
186
|
n = d + (n.length > 0 ? " " + n : n);
|
|
187
187
|
continue;
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
m = !1;
|
|
190
190
|
}
|
|
191
|
-
const u = Ue(
|
|
191
|
+
const u = Ue(b).join(":"), w = k ? u + Ce : u, h = w + x;
|
|
192
192
|
if (l.includes(h))
|
|
193
193
|
continue;
|
|
194
194
|
l.push(h);
|
|
195
|
-
const L = a(
|
|
195
|
+
const L = a(x, m);
|
|
196
196
|
for (let E = 0; E < L.length; ++E) {
|
|
197
197
|
const z = L[E];
|
|
198
198
|
l.push(w + z);
|
|
@@ -218,15 +218,15 @@ const Ne = (e) => {
|
|
|
218
218
|
function Xe(e, ...r) {
|
|
219
219
|
let t, o, a, l = i;
|
|
220
220
|
function i(c) {
|
|
221
|
-
const d = r.reduce((
|
|
221
|
+
const d = r.reduce((b, k) => k(b), e());
|
|
222
222
|
return t = Ye(d), o = t.cache.get, a = t.cache.set, l = n, n(c);
|
|
223
223
|
}
|
|
224
224
|
function n(c) {
|
|
225
225
|
const d = o(c);
|
|
226
226
|
if (d)
|
|
227
227
|
return d;
|
|
228
|
-
const
|
|
229
|
-
return a(c,
|
|
228
|
+
const b = Ke(c, t);
|
|
229
|
+
return a(c, b), b;
|
|
230
230
|
}
|
|
231
231
|
return function() {
|
|
232
232
|
return l(Ze.apply(null, arguments));
|
|
@@ -235,7 +235,7 @@ function Xe(e, ...r) {
|
|
|
235
235
|
const I = (e) => {
|
|
236
236
|
const r = (t) => t[e] || [];
|
|
237
237
|
return r.isThemeGetter = !0, r;
|
|
238
|
-
}, Me = /^\[(?:([a-z-]+):)?(.+)\]$/i, Qe = /^\d+\/\d+$/, qe = /* @__PURE__ */ new Set(["px", "full", "screen"]), er = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
238
|
+
}, Me = /^\[(?:([a-z-]+):)?(.+)\]$/i, Qe = /^\d+\/\d+$/, qe = /* @__PURE__ */ new Set(["px", "full", "screen"]), er = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Q(e) || qe.has(e) || Qe.test(e), U = (e) => ee(e, "length", pr), Q = (e) => !!e && !Number.isNaN(Number(e)), se = (e) => ee(e, "number", Q), te = (e) => !!e && Number.isInteger(Number(e)), ar = (e) => e.endsWith("%") && Q(e.slice(0, -1)), N = (e) => Me.test(e), Y = (e) => er.test(e), sr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lr = (e) => ee(e, sr, ze), ir = (e) => ee(e, "position", ze), cr = /* @__PURE__ */ new Set(["image", "url"]), dr = (e) => ee(e, cr, br), ur = (e) => ee(e, "", mr), oe = () => !0, ee = (e, r, t) => {
|
|
239
239
|
const o = Me.exec(e);
|
|
240
240
|
return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
|
|
241
241
|
}, pr = (e) => (
|
|
@@ -244,13 +244,13 @@ const I = (e) => {
|
|
|
244
244
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
245
245
|
rr.test(e) && !tr.test(e)
|
|
246
246
|
), ze = () => !1, mr = (e) => or.test(e), br = (e) => nr.test(e), gr = () => {
|
|
247
|
-
const e = I("colors"), r = I("spacing"), t = I("blur"), o = I("brightness"), a = I("borderColor"), l = I("borderRadius"), i = I("borderSpacing"), n = I("borderWidth"), c = I("contrast"), d = I("grayscale"),
|
|
247
|
+
const e = I("colors"), r = I("spacing"), t = I("blur"), o = I("brightness"), a = I("borderColor"), l = I("borderRadius"), i = I("borderSpacing"), n = I("borderWidth"), c = I("contrast"), d = I("grayscale"), b = I("hueRotate"), k = I("invert"), f = I("gap"), v = I("gradientColorStops"), m = I("gradientColorStopPositions"), x = I("inset"), u = I("margin"), w = I("opacity"), h = I("padding"), L = I("saturate"), E = I("scale"), z = I("sepia"), P = I("skew"), g = I("space"), j = I("translate"), F = () => ["auto", "contain", "none"], G = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", N, r], S = () => [N, r], M = () => ["", H, U], A = () => ["auto", Q, N], V = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], C = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", N], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [Q, N];
|
|
248
248
|
return {
|
|
249
249
|
cacheSize: 500,
|
|
250
250
|
separator: ":",
|
|
251
251
|
theme: {
|
|
252
252
|
colors: [oe],
|
|
253
|
-
spacing: [
|
|
253
|
+
spacing: [H, U],
|
|
254
254
|
blur: ["none", "", Y, N],
|
|
255
255
|
brightness: _(),
|
|
256
256
|
borderColor: [e],
|
|
@@ -421,63 +421,63 @@ const I = (e) => {
|
|
|
421
421
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
422
422
|
*/
|
|
423
423
|
inset: [{
|
|
424
|
-
inset: [
|
|
424
|
+
inset: [x]
|
|
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": [x]
|
|
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": [x]
|
|
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: [x]
|
|
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: [x]
|
|
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: [x]
|
|
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: [x]
|
|
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: [x]
|
|
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: [x]
|
|
481
481
|
}],
|
|
482
482
|
/**
|
|
483
483
|
* Visibility
|
|
@@ -990,7 +990,7 @@ const I = (e) => {
|
|
|
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, N]
|
|
994
994
|
}],
|
|
995
995
|
/**
|
|
996
996
|
* List Style Image
|
|
@@ -1066,14 +1066,14 @@ const I = (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, U]
|
|
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, N]
|
|
1077
1077
|
}],
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Text Decoration Color
|
|
@@ -1215,21 +1215,21 @@ const I = (e) => {
|
|
|
1215
1215
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1216
1216
|
*/
|
|
1217
1217
|
"gradient-from-pos": [{
|
|
1218
|
-
from: [
|
|
1218
|
+
from: [m]
|
|
1219
1219
|
}],
|
|
1220
1220
|
/**
|
|
1221
1221
|
* Gradient Color Stops Via Position
|
|
1222
1222
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1223
1223
|
*/
|
|
1224
1224
|
"gradient-via-pos": [{
|
|
1225
|
-
via: [
|
|
1225
|
+
via: [m]
|
|
1226
1226
|
}],
|
|
1227
1227
|
/**
|
|
1228
1228
|
* Gradient Color Stops To Position
|
|
1229
1229
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1230
1230
|
*/
|
|
1231
1231
|
"gradient-to-pos": [{
|
|
1232
|
-
to: [
|
|
1232
|
+
to: [m]
|
|
1233
1233
|
}],
|
|
1234
1234
|
/**
|
|
1235
1235
|
* Gradient Color Stops From
|
|
@@ -1555,14 +1555,14 @@ const I = (e) => {
|
|
|
1555
1555
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1556
1556
|
*/
|
|
1557
1557
|
"outline-offset": [{
|
|
1558
|
-
"outline-offset": [
|
|
1558
|
+
"outline-offset": [H, N]
|
|
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, U]
|
|
1566
1566
|
}],
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Outline Color
|
|
@@ -1602,7 +1602,7 @@ const I = (e) => {
|
|
|
1602
1602
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1603
1603
|
*/
|
|
1604
1604
|
"ring-offset-w": [{
|
|
1605
|
-
"ring-offset": [
|
|
1605
|
+
"ring-offset": [H, U]
|
|
1606
1606
|
}],
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Ring Offset Color
|
|
@@ -1696,7 +1696,7 @@ const I = (e) => {
|
|
|
1696
1696
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
1697
1697
|
*/
|
|
1698
1698
|
"hue-rotate": [{
|
|
1699
|
-
"hue-rotate": [
|
|
1699
|
+
"hue-rotate": [b]
|
|
1700
1700
|
}],
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Invert
|
|
@@ -1760,7 +1760,7 @@ const I = (e) => {
|
|
|
1760
1760
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
1761
1761
|
*/
|
|
1762
1762
|
"backdrop-hue-rotate": [{
|
|
1763
|
-
"backdrop-hue-rotate": [
|
|
1763
|
+
"backdrop-hue-rotate": [b]
|
|
1764
1764
|
}],
|
|
1765
1765
|
/**
|
|
1766
1766
|
* Backdrop Invert
|
|
@@ -2197,7 +2197,7 @@ const I = (e) => {
|
|
|
2197
2197
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2198
2198
|
*/
|
|
2199
2199
|
"stroke-w": [{
|
|
2200
|
-
stroke: [
|
|
2200
|
+
stroke: [H, U, se]
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Stroke
|
|
@@ -2336,7 +2336,7 @@ const O = {
|
|
|
2336
2336
|
active: "#4338ca"
|
|
2337
2337
|
}
|
|
2338
2338
|
}, Le = je(O);
|
|
2339
|
-
function
|
|
2339
|
+
function Yr() {
|
|
2340
2340
|
return Oe(Le);
|
|
2341
2341
|
}
|
|
2342
2342
|
function ge(e) {
|
|
@@ -2373,7 +2373,7 @@ function ge(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 Jr({
|
|
2377
2377
|
children: e,
|
|
2378
2378
|
theme: r
|
|
2379
2379
|
}) {
|
|
@@ -2404,7 +2404,7 @@ function Zr({
|
|
|
2404
2404
|
}
|
|
2405
2405
|
};
|
|
2406
2406
|
}, [r]);
|
|
2407
|
-
return typeof window < "u" && ge(t),
|
|
2407
|
+
return typeof window < "u" && ge(t), W(() => {
|
|
2408
2408
|
ge(t);
|
|
2409
2409
|
}, [t]), B.createElement(Le.Provider, { value: t }, e);
|
|
2410
2410
|
}
|
|
@@ -2434,7 +2434,7 @@ function q({
|
|
|
2434
2434
|
className: c = "",
|
|
2435
2435
|
...d
|
|
2436
2436
|
}) {
|
|
2437
|
-
return /* @__PURE__ */
|
|
2437
|
+
return /* @__PURE__ */ y(
|
|
2438
2438
|
"button",
|
|
2439
2439
|
{
|
|
2440
2440
|
type: o,
|
|
@@ -2450,7 +2450,7 @@ function q({
|
|
|
2450
2450
|
),
|
|
2451
2451
|
...d,
|
|
2452
2452
|
children: [
|
|
2453
|
-
n && /* @__PURE__ */
|
|
2453
|
+
n && /* @__PURE__ */ y(
|
|
2454
2454
|
"svg",
|
|
2455
2455
|
{
|
|
2456
2456
|
className: "w-4 h-4 mr-2 animate-spin",
|
|
@@ -2495,37 +2495,37 @@ function vr({
|
|
|
2495
2495
|
error: n,
|
|
2496
2496
|
disabled: c = !1,
|
|
2497
2497
|
required: d = !1,
|
|
2498
|
-
colorScheme:
|
|
2498
|
+
colorScheme: b = "secondary",
|
|
2499
2499
|
className: k = "",
|
|
2500
2500
|
...f
|
|
2501
2501
|
}) {
|
|
2502
2502
|
const v = () => {
|
|
2503
|
-
const
|
|
2503
|
+
const x = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
|
|
2504
2504
|
if (n)
|
|
2505
2505
|
return p(
|
|
2506
|
-
|
|
2506
|
+
x,
|
|
2507
2507
|
"border-danger focus:border-danger focus:shadow-danger-light"
|
|
2508
2508
|
);
|
|
2509
|
-
switch (
|
|
2509
|
+
switch (b) {
|
|
2510
2510
|
case "primary":
|
|
2511
2511
|
return p(
|
|
2512
|
-
|
|
2512
|
+
x,
|
|
2513
2513
|
"text-primary border-primary focus:border-primary"
|
|
2514
2514
|
);
|
|
2515
2515
|
case "secondary":
|
|
2516
2516
|
default:
|
|
2517
2517
|
return p(
|
|
2518
|
-
|
|
2518
|
+
x,
|
|
2519
2519
|
"text-secondary border-secondary focus:border-secondary"
|
|
2520
2520
|
);
|
|
2521
2521
|
}
|
|
2522
|
-
},
|
|
2523
|
-
return /* @__PURE__ */
|
|
2524
|
-
i && /* @__PURE__ */
|
|
2522
|
+
}, m = () => b === "primary" ? "text-primary" : "text-secondary";
|
|
2523
|
+
return /* @__PURE__ */ y("div", { className: p("mb-6", k), children: [
|
|
2524
|
+
i && /* @__PURE__ */ y(
|
|
2525
2525
|
"label",
|
|
2526
2526
|
{
|
|
2527
2527
|
htmlFor: e,
|
|
2528
|
-
className: p("block mb-2 text-sm font-medium",
|
|
2528
|
+
className: p("block mb-2 text-sm font-medium", m()),
|
|
2529
2529
|
children: [
|
|
2530
2530
|
i,
|
|
2531
2531
|
d && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
|
|
@@ -2561,37 +2561,37 @@ function wr({
|
|
|
2561
2561
|
disabled: n = !1,
|
|
2562
2562
|
required: c = !1,
|
|
2563
2563
|
colorScheme: d = "secondary",
|
|
2564
|
-
className:
|
|
2564
|
+
className: b = "",
|
|
2565
2565
|
rows: k = 4,
|
|
2566
2566
|
...f
|
|
2567
2567
|
}) {
|
|
2568
2568
|
const v = () => {
|
|
2569
|
-
const
|
|
2569
|
+
const x = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted resize-none";
|
|
2570
2570
|
if (i)
|
|
2571
2571
|
return p(
|
|
2572
|
-
|
|
2572
|
+
x,
|
|
2573
2573
|
"border-danger focus:border-danger focus:shadow-danger-light"
|
|
2574
2574
|
);
|
|
2575
2575
|
switch (d) {
|
|
2576
2576
|
case "primary":
|
|
2577
2577
|
return p(
|
|
2578
|
-
|
|
2578
|
+
x,
|
|
2579
2579
|
"text-primary border-primary focus:border-primary"
|
|
2580
2580
|
);
|
|
2581
2581
|
case "secondary":
|
|
2582
2582
|
default:
|
|
2583
2583
|
return p(
|
|
2584
|
-
|
|
2584
|
+
x,
|
|
2585
2585
|
"text-secondary border-secondary focus:border-secondary"
|
|
2586
2586
|
);
|
|
2587
2587
|
}
|
|
2588
|
-
},
|
|
2589
|
-
return /* @__PURE__ */
|
|
2590
|
-
l && /* @__PURE__ */
|
|
2588
|
+
}, m = () => d === "primary" ? "text-primary" : "text-secondary";
|
|
2589
|
+
return /* @__PURE__ */ y("div", { className: p("mb-6", b), children: [
|
|
2590
|
+
l && /* @__PURE__ */ y(
|
|
2591
2591
|
"label",
|
|
2592
2592
|
{
|
|
2593
2593
|
htmlFor: e,
|
|
2594
|
-
className: p("block mb-2 text-sm font-medium",
|
|
2594
|
+
className: p("block mb-2 text-sm font-medium", m()),
|
|
2595
2595
|
children: [
|
|
2596
2596
|
l,
|
|
2597
2597
|
c && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
|
|
@@ -2617,7 +2617,7 @@ function wr({
|
|
|
2617
2617
|
] });
|
|
2618
2618
|
}
|
|
2619
2619
|
const De = { Input: vr, InputArea: wr };
|
|
2620
|
-
function
|
|
2620
|
+
function Kr({
|
|
2621
2621
|
id: e,
|
|
2622
2622
|
name: r,
|
|
2623
2623
|
checked: t = !1,
|
|
@@ -2629,7 +2629,11 @@ function kr({
|
|
|
2629
2629
|
className: c = "",
|
|
2630
2630
|
...d
|
|
2631
2631
|
}) {
|
|
2632
|
-
const [
|
|
2632
|
+
const [b, k] = $(t);
|
|
2633
|
+
W(() => {
|
|
2634
|
+
k(t);
|
|
2635
|
+
}, [t]);
|
|
2636
|
+
const f = (h) => {
|
|
2633
2637
|
const L = h.target.checked;
|
|
2634
2638
|
k(L), o?.(L);
|
|
2635
2639
|
}, v = () => ({
|
|
@@ -2643,7 +2647,7 @@ function kr({
|
|
|
2643
2647
|
border: "border-secondary",
|
|
2644
2648
|
text: "text-secondary"
|
|
2645
2649
|
}
|
|
2646
|
-
})[i],
|
|
2650
|
+
})[i], m = () => {
|
|
2647
2651
|
switch (n) {
|
|
2648
2652
|
case "sm":
|
|
2649
2653
|
return "w-10 h-6";
|
|
@@ -2653,7 +2657,7 @@ function kr({
|
|
|
2653
2657
|
default:
|
|
2654
2658
|
return "w-13 h-7";
|
|
2655
2659
|
}
|
|
2656
|
-
},
|
|
2660
|
+
}, x = () => {
|
|
2657
2661
|
switch (n) {
|
|
2658
2662
|
case "sm":
|
|
2659
2663
|
return "w-5 h-5";
|
|
@@ -2664,7 +2668,7 @@ function kr({
|
|
|
2664
2668
|
return "w-6 h-6";
|
|
2665
2669
|
}
|
|
2666
2670
|
}, u = () => {
|
|
2667
|
-
if (!
|
|
2671
|
+
if (!b) return "translate-x-0";
|
|
2668
2672
|
switch (n) {
|
|
2669
2673
|
case "sm":
|
|
2670
2674
|
return "translate-x-5";
|
|
@@ -2675,15 +2679,15 @@ function kr({
|
|
|
2675
2679
|
return "translate-x-6";
|
|
2676
2680
|
}
|
|
2677
2681
|
}, w = v();
|
|
2678
|
-
return /* @__PURE__ */
|
|
2679
|
-
/* @__PURE__ */
|
|
2682
|
+
return /* @__PURE__ */ y("div", { className: p("flex items-center gap-3", c), children: [
|
|
2683
|
+
/* @__PURE__ */ y("div", { className: "relative", children: [
|
|
2680
2684
|
/* @__PURE__ */ s(
|
|
2681
2685
|
"input",
|
|
2682
2686
|
{
|
|
2683
2687
|
type: "checkbox",
|
|
2684
2688
|
id: e,
|
|
2685
2689
|
name: r,
|
|
2686
|
-
checked:
|
|
2690
|
+
checked: b,
|
|
2687
2691
|
onChange: f,
|
|
2688
2692
|
disabled: a,
|
|
2689
2693
|
className: "sr-only",
|
|
@@ -2696,8 +2700,8 @@ function kr({
|
|
|
2696
2700
|
htmlFor: e,
|
|
2697
2701
|
className: p(
|
|
2698
2702
|
"block cursor-pointer transition-all duration-300 rounded-full border-2",
|
|
2699
|
-
|
|
2700
|
-
|
|
2703
|
+
m(),
|
|
2704
|
+
b ? p(w.bg, w.border) : "bg-gray-200 border-gray-300",
|
|
2701
2705
|
a ? "opacity-50 cursor-not-allowed" : "hover:shadow-md"
|
|
2702
2706
|
),
|
|
2703
2707
|
children: /* @__PURE__ */ s(
|
|
@@ -2705,7 +2709,7 @@ function kr({
|
|
|
2705
2709
|
{
|
|
2706
2710
|
className: p(
|
|
2707
2711
|
"absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",
|
|
2708
|
-
|
|
2712
|
+
x(),
|
|
2709
2713
|
u()
|
|
2710
2714
|
)
|
|
2711
2715
|
}
|
|
@@ -2727,7 +2731,7 @@ function kr({
|
|
|
2727
2731
|
)
|
|
2728
2732
|
] });
|
|
2729
2733
|
}
|
|
2730
|
-
const
|
|
2734
|
+
const kr = ({
|
|
2731
2735
|
size: e = 40,
|
|
2732
2736
|
wrapperStyle: r = {},
|
|
2733
2737
|
wrapperClass: t = "",
|
|
@@ -2744,7 +2748,7 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2744
2748
|
minHeight: "100px",
|
|
2745
2749
|
...r
|
|
2746
2750
|
};
|
|
2747
|
-
return /* @__PURE__ */
|
|
2751
|
+
return /* @__PURE__ */ y("div", { style: n, className: t, children: [
|
|
2748
2752
|
/* @__PURE__ */ s("label", { children: a }),
|
|
2749
2753
|
/* @__PURE__ */ s(
|
|
2750
2754
|
Te,
|
|
@@ -2760,7 +2764,7 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2760
2764
|
}
|
|
2761
2765
|
)
|
|
2762
2766
|
] });
|
|
2763
|
-
}, { Input: ie } = De,
|
|
2767
|
+
}, { Input: ie } = De, Zr = ({
|
|
2764
2768
|
title: e = "Iniciar Sesión",
|
|
2765
2769
|
showForgotPassword: r = !0,
|
|
2766
2770
|
onlyForgotPassword: t = !1,
|
|
@@ -2771,9 +2775,9 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2771
2775
|
const [i, n] = $({
|
|
2772
2776
|
email: "",
|
|
2773
2777
|
password: ""
|
|
2774
|
-
}), [c, d] = $({}), [
|
|
2778
|
+
}), [c, d] = $({}), [b, k] = $(!1), [f, v] = $(
|
|
2775
2779
|
t ? "forgot" : "login"
|
|
2776
|
-
),
|
|
2780
|
+
), m = (P, g) => {
|
|
2777
2781
|
switch (P) {
|
|
2778
2782
|
case "email":
|
|
2779
2783
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g) ? "" : "Por favor ingresa un email válido";
|
|
@@ -2782,7 +2786,7 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2782
2786
|
default:
|
|
2783
2787
|
return "";
|
|
2784
2788
|
}
|
|
2785
|
-
},
|
|
2789
|
+
}, x = (P) => {
|
|
2786
2790
|
const { name: g, value: j } = P.target;
|
|
2787
2791
|
n((F) => ({
|
|
2788
2792
|
...F,
|
|
@@ -2792,9 +2796,9 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2792
2796
|
[g]: ""
|
|
2793
2797
|
}));
|
|
2794
2798
|
}, u = () => {
|
|
2795
|
-
const P = {}, g =
|
|
2799
|
+
const P = {}, g = m("email", i.email);
|
|
2796
2800
|
if (g && (P.email = g), f === "login") {
|
|
2797
|
-
const j =
|
|
2801
|
+
const j = m("password", i.password);
|
|
2798
2802
|
j && (P.password = j);
|
|
2799
2803
|
}
|
|
2800
2804
|
return d(P), Object.keys(P).length === 0;
|
|
@@ -2833,14 +2837,14 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2833
2837
|
placeholder: "Ingresa tu email",
|
|
2834
2838
|
label: "Email",
|
|
2835
2839
|
value: i.email,
|
|
2836
|
-
onChange:
|
|
2840
|
+
onChange: x,
|
|
2837
2841
|
error: c.email,
|
|
2838
|
-
disabled:
|
|
2842
|
+
disabled: b,
|
|
2839
2843
|
colorScheme: "secondary"
|
|
2840
2844
|
}
|
|
2841
2845
|
);
|
|
2842
2846
|
default:
|
|
2843
|
-
return /* @__PURE__ */
|
|
2847
|
+
return /* @__PURE__ */ y(Ae, { children: [
|
|
2844
2848
|
/* @__PURE__ */ s(
|
|
2845
2849
|
ie,
|
|
2846
2850
|
{
|
|
@@ -2850,9 +2854,9 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2850
2854
|
placeholder: "Ingresa tu email",
|
|
2851
2855
|
label: "Email",
|
|
2852
2856
|
value: i.email,
|
|
2853
|
-
onChange:
|
|
2857
|
+
onChange: x,
|
|
2854
2858
|
error: c.email,
|
|
2855
|
-
disabled:
|
|
2859
|
+
disabled: b,
|
|
2856
2860
|
colorScheme: "secondary"
|
|
2857
2861
|
}
|
|
2858
2862
|
),
|
|
@@ -2865,9 +2869,9 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2865
2869
|
placeholder: "Ingresa tu contraseña",
|
|
2866
2870
|
label: "Contraseña",
|
|
2867
2871
|
value: i.password,
|
|
2868
|
-
onChange:
|
|
2872
|
+
onChange: x,
|
|
2869
2873
|
error: c.password,
|
|
2870
|
-
disabled:
|
|
2874
|
+
disabled: b,
|
|
2871
2875
|
colorScheme: "secondary"
|
|
2872
2876
|
}
|
|
2873
2877
|
)
|
|
@@ -2881,8 +2885,8 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2881
2885
|
return e;
|
|
2882
2886
|
}
|
|
2883
2887
|
}, z = () => {
|
|
2884
|
-
if (
|
|
2885
|
-
return /* @__PURE__ */ s(
|
|
2888
|
+
if (b)
|
|
2889
|
+
return /* @__PURE__ */ s(kr, { size: 20, wrapperStyle: { minHeight: "auto" } });
|
|
2886
2890
|
switch (f) {
|
|
2887
2891
|
case "forgot":
|
|
2888
2892
|
return "Enviar Enlace";
|
|
@@ -2894,20 +2898,20 @@ const Cr = { Toggle: kr }, Nr = ({
|
|
|
2894
2898
|
"div",
|
|
2895
2899
|
{
|
|
2896
2900
|
className: `flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${o || ""}`,
|
|
2897
|
-
children: /* @__PURE__ */
|
|
2901
|
+
children: /* @__PURE__ */ y("div", { className: "w-full max-w-100 p-12 bg-white rounded-2xl shadow-lg animate-[fadeIn_0.3s_ease-out] sm:p-8", children: [
|
|
2898
2902
|
/* @__PURE__ */ s("h2", { className: "text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8", children: E() }),
|
|
2899
2903
|
/* @__PURE__ */ s("div", { className: "space-y-4 mb-6", children: L() }),
|
|
2900
2904
|
/* @__PURE__ */ s("form", { onSubmit: w, children: /* @__PURE__ */ s(
|
|
2901
2905
|
q,
|
|
2902
2906
|
{
|
|
2903
2907
|
type: "submit",
|
|
2904
|
-
disabled:
|
|
2905
|
-
loading:
|
|
2908
|
+
disabled: b,
|
|
2909
|
+
loading: b,
|
|
2906
2910
|
fullWidth: !0,
|
|
2907
2911
|
variant: "primary",
|
|
2908
2912
|
size: "lg",
|
|
2909
2913
|
className: "mb-6",
|
|
2910
|
-
children: !
|
|
2914
|
+
children: !b && z()
|
|
2911
2915
|
}
|
|
2912
2916
|
) }),
|
|
2913
2917
|
f === "login" && r && /* @__PURE__ */ s(
|
|
@@ -2944,10 +2948,10 @@ var Se = {
|
|
|
2944
2948
|
className: void 0,
|
|
2945
2949
|
style: void 0,
|
|
2946
2950
|
attr: void 0
|
|
2947
|
-
}, fe = B.createContext && /* @__PURE__ */ B.createContext(Se),
|
|
2948
|
-
function
|
|
2951
|
+
}, fe = B.createContext && /* @__PURE__ */ B.createContext(Se), Cr = ["attr", "size", "title"];
|
|
2952
|
+
function Nr(e, r) {
|
|
2949
2953
|
if (e == null) return {};
|
|
2950
|
-
var t =
|
|
2954
|
+
var t = Mr(e, r), o, a;
|
|
2951
2955
|
if (Object.getOwnPropertySymbols) {
|
|
2952
2956
|
var l = Object.getOwnPropertySymbols(e);
|
|
2953
2957
|
for (a = 0; a < l.length; a++)
|
|
@@ -2955,7 +2959,7 @@ function zr(e, r) {
|
|
|
2955
2959
|
}
|
|
2956
2960
|
return t;
|
|
2957
2961
|
}
|
|
2958
|
-
function
|
|
2962
|
+
function Mr(e, r) {
|
|
2959
2963
|
if (e == null) return {};
|
|
2960
2964
|
var t = {};
|
|
2961
2965
|
for (var o in e)
|
|
@@ -2989,21 +2993,21 @@ function ae(e) {
|
|
|
2989
2993
|
for (var r = 1; r < arguments.length; r++) {
|
|
2990
2994
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
2991
2995
|
r % 2 ? he(Object(t), !0).forEach(function(o) {
|
|
2992
|
-
|
|
2996
|
+
zr(e, o, t[o]);
|
|
2993
2997
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : he(Object(t)).forEach(function(o) {
|
|
2994
2998
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
2995
2999
|
});
|
|
2996
3000
|
}
|
|
2997
3001
|
return e;
|
|
2998
3002
|
}
|
|
2999
|
-
function
|
|
3000
|
-
return r =
|
|
3003
|
+
function zr(e, r, t) {
|
|
3004
|
+
return r = Lr(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
3001
3005
|
}
|
|
3002
|
-
function
|
|
3003
|
-
var r =
|
|
3006
|
+
function Lr(e) {
|
|
3007
|
+
var r = Dr(e, "string");
|
|
3004
3008
|
return typeof r == "symbol" ? r : r + "";
|
|
3005
3009
|
}
|
|
3006
|
-
function
|
|
3010
|
+
function Dr(e, r) {
|
|
3007
3011
|
if (typeof e != "object" || !e) return e;
|
|
3008
3012
|
var t = e[Symbol.toPrimitive];
|
|
3009
3013
|
if (t !== void 0) {
|
|
@@ -3019,17 +3023,17 @@ function Ee(e) {
|
|
|
3019
3023
|
}, r.attr), Ee(r.child)));
|
|
3020
3024
|
}
|
|
3021
3025
|
function J(e) {
|
|
3022
|
-
return (r) => /* @__PURE__ */ B.createElement(
|
|
3026
|
+
return (r) => /* @__PURE__ */ B.createElement(Sr, ne({
|
|
3023
3027
|
attr: ae({}, e.attr)
|
|
3024
3028
|
}, r), Ee(e.child));
|
|
3025
3029
|
}
|
|
3026
|
-
function
|
|
3030
|
+
function Sr(e) {
|
|
3027
3031
|
var r = (t) => {
|
|
3028
3032
|
var {
|
|
3029
3033
|
attr: o,
|
|
3030
3034
|
size: a,
|
|
3031
3035
|
title: l
|
|
3032
|
-
} = e, i =
|
|
3036
|
+
} = e, i = Nr(e, Cr), n = a || t.size || "1em", c;
|
|
3033
3037
|
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ B.createElement("svg", ne({
|
|
3034
3038
|
stroke: "currentColor",
|
|
3035
3039
|
fill: "currentColor",
|
|
@@ -3046,18 +3050,18 @@ function Pr(e) {
|
|
|
3046
3050
|
};
|
|
3047
3051
|
return fe !== void 0 ? /* @__PURE__ */ B.createElement(fe.Consumer, null, (t) => r(t)) : r(Se);
|
|
3048
3052
|
}
|
|
3049
|
-
function
|
|
3053
|
+
function Er(e) {
|
|
3050
3054
|
return J({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "11", cy: "11", r: "8" }, child: [] }, { tag: "line", attr: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }, child: [] }] })(e);
|
|
3051
3055
|
}
|
|
3052
|
-
const
|
|
3056
|
+
const Pr = (e, r = 500) => {
|
|
3053
3057
|
const [t, o] = $(e);
|
|
3054
|
-
return
|
|
3058
|
+
return W(() => {
|
|
3055
3059
|
const a = setTimeout(() => {
|
|
3056
3060
|
o(e);
|
|
3057
3061
|
}, r);
|
|
3058
3062
|
return () => clearTimeout(a);
|
|
3059
3063
|
}, [e, r]), t;
|
|
3060
|
-
},
|
|
3064
|
+
}, Xr = () => ({ showToast: (r, t) => {
|
|
3061
3065
|
const o = {
|
|
3062
3066
|
position: "bottom-right",
|
|
3063
3067
|
autoClose: 2e3,
|
|
@@ -3085,9 +3089,9 @@ const Ir = (e, r = 500) => {
|
|
|
3085
3089
|
break;
|
|
3086
3090
|
}
|
|
3087
3091
|
} });
|
|
3088
|
-
function
|
|
3092
|
+
function Qr(e = 768) {
|
|
3089
3093
|
const [r, t] = $(() => typeof window > "u" ? !1 : window.innerWidth < e);
|
|
3090
|
-
return
|
|
3094
|
+
return W(() => {
|
|
3091
3095
|
if (typeof window > "u")
|
|
3092
3096
|
return;
|
|
3093
3097
|
const o = () => {
|
|
@@ -3098,7 +3102,7 @@ function qr(e = 768) {
|
|
|
3098
3102
|
};
|
|
3099
3103
|
}, [e]), r;
|
|
3100
3104
|
}
|
|
3101
|
-
function
|
|
3105
|
+
function qr({
|
|
3102
3106
|
value: e,
|
|
3103
3107
|
onChange: r,
|
|
3104
3108
|
placeholder: t = "Search...",
|
|
@@ -3109,8 +3113,8 @@ function et({
|
|
|
3109
3113
|
debounceDelay: n = 500,
|
|
3110
3114
|
...c
|
|
3111
3115
|
}) {
|
|
3112
|
-
const [d,
|
|
3113
|
-
|
|
3116
|
+
const [d, b] = $(e || ""), k = Pr(d, n), f = ve(r, [r]);
|
|
3117
|
+
W(() => {
|
|
3114
3118
|
f(k);
|
|
3115
3119
|
}, [k, f]);
|
|
3116
3120
|
const v = () => {
|
|
@@ -3128,22 +3132,22 @@ function et({
|
|
|
3128
3132
|
"text-secondary border-secondary focus:border-secondary"
|
|
3129
3133
|
);
|
|
3130
3134
|
}
|
|
3131
|
-
},
|
|
3132
|
-
return /* @__PURE__ */
|
|
3135
|
+
}, m = () => a === "primary" ? "text-primary" : "text-secondary", x = () => a === "primary" ? "text-primary" : "text-secondary";
|
|
3136
|
+
return /* @__PURE__ */ y("div", { className: p("mb-0", i), children: [
|
|
3133
3137
|
l && /* @__PURE__ */ s(
|
|
3134
3138
|
"label",
|
|
3135
3139
|
{
|
|
3136
|
-
className: p("block mb-2 text-sm font-medium",
|
|
3140
|
+
className: p("block mb-2 text-sm font-medium", x()),
|
|
3137
3141
|
children: l
|
|
3138
3142
|
}
|
|
3139
3143
|
),
|
|
3140
|
-
/* @__PURE__ */
|
|
3144
|
+
/* @__PURE__ */ y("div", { className: "relative w-full", children: [
|
|
3141
3145
|
/* @__PURE__ */ s(
|
|
3142
|
-
|
|
3146
|
+
Er,
|
|
3143
3147
|
{
|
|
3144
3148
|
className: p(
|
|
3145
3149
|
"absolute left-3 top-1/2 -translate-y-1/2 text-base pointer-events-none",
|
|
3146
|
-
|
|
3150
|
+
m()
|
|
3147
3151
|
)
|
|
3148
3152
|
}
|
|
3149
3153
|
),
|
|
@@ -3152,7 +3156,7 @@ function et({
|
|
|
3152
3156
|
{
|
|
3153
3157
|
type: "text",
|
|
3154
3158
|
value: d,
|
|
3155
|
-
onChange: (u) =>
|
|
3159
|
+
onChange: (u) => b(u.target.value),
|
|
3156
3160
|
placeholder: t,
|
|
3157
3161
|
disabled: o,
|
|
3158
3162
|
className: v(),
|
|
@@ -3162,13 +3166,13 @@ function et({
|
|
|
3162
3166
|
] })
|
|
3163
3167
|
] });
|
|
3164
3168
|
}
|
|
3165
|
-
function
|
|
3169
|
+
function Ar(e) {
|
|
3166
3170
|
return J({ 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);
|
|
3167
3171
|
}
|
|
3168
|
-
function
|
|
3172
|
+
function Ir(e) {
|
|
3169
3173
|
return J({ 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);
|
|
3170
3174
|
}
|
|
3171
|
-
function
|
|
3175
|
+
function et({
|
|
3172
3176
|
labelPage: e = "Page",
|
|
3173
3177
|
labelOf: r = "of",
|
|
3174
3178
|
setPagination: t,
|
|
@@ -3179,7 +3183,7 @@ function rt({
|
|
|
3179
3183
|
isLoading: n = !1,
|
|
3180
3184
|
fetchPage: c
|
|
3181
3185
|
}) {
|
|
3182
|
-
const d = parseInt(String(a)) === 1 || parseInt(String(o)) === 0 || n,
|
|
3186
|
+
const d = parseInt(String(a)) === 1 || parseInt(String(o)) === 0 || n, b = parseInt(String(a)) === parseInt(String(o)) || parseInt(String(o)) === 0 || n, k = () => {
|
|
3183
3187
|
n || (c ? c(a - 1) : t && t((v) => ({
|
|
3184
3188
|
...v,
|
|
3185
3189
|
page: v.page - 1
|
|
@@ -3190,24 +3194,24 @@ function rt({
|
|
|
3190
3194
|
page: v.page + 1
|
|
3191
3195
|
})));
|
|
3192
3196
|
};
|
|
3193
|
-
return /* @__PURE__ */
|
|
3197
|
+
return /* @__PURE__ */ y("div", { className: p("flex justify-center items-center mt-8", i), children: [
|
|
3194
3198
|
/* @__PURE__ */ s(
|
|
3195
3199
|
q,
|
|
3196
3200
|
{
|
|
3197
3201
|
disabled: d,
|
|
3198
3202
|
onClick: k,
|
|
3199
3203
|
variant: "secondary",
|
|
3200
|
-
children: /* @__PURE__ */ s(
|
|
3204
|
+
children: /* @__PURE__ */ s(Ar, { size: 14 })
|
|
3201
3205
|
}
|
|
3202
3206
|
),
|
|
3203
3207
|
/* @__PURE__ */ s("h5", { className: "font-bold mx-2.5 text-text", children: `${l ? e : ""} ${a}${l ? ` ${r} ` : " / "}${o}` }),
|
|
3204
3208
|
/* @__PURE__ */ s(
|
|
3205
3209
|
q,
|
|
3206
3210
|
{
|
|
3207
|
-
disabled:
|
|
3211
|
+
disabled: b,
|
|
3208
3212
|
onClick: f,
|
|
3209
3213
|
variant: "primary",
|
|
3210
|
-
children: /* @__PURE__ */ s(
|
|
3214
|
+
children: /* @__PURE__ */ s(Ir, { size: 14 })
|
|
3211
3215
|
}
|
|
3212
3216
|
)
|
|
3213
3217
|
] });
|
|
@@ -3215,13 +3219,13 @@ function rt({
|
|
|
3215
3219
|
function Pe(e) {
|
|
3216
3220
|
return J({ 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);
|
|
3217
3221
|
}
|
|
3218
|
-
function
|
|
3222
|
+
function jr(e) {
|
|
3219
3223
|
return J({ 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);
|
|
3220
3224
|
}
|
|
3221
|
-
function
|
|
3225
|
+
function Or(e) {
|
|
3222
3226
|
return J({ 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);
|
|
3223
3227
|
}
|
|
3224
|
-
function
|
|
3228
|
+
function rt({
|
|
3225
3229
|
title: e,
|
|
3226
3230
|
subtitle: r,
|
|
3227
3231
|
children: t,
|
|
@@ -3232,28 +3236,28 @@ function tt({
|
|
|
3232
3236
|
colorScheme: n = "primary",
|
|
3233
3237
|
icon: c,
|
|
3234
3238
|
disabled: d = !1,
|
|
3235
|
-
headerExtra:
|
|
3239
|
+
headerExtra: b
|
|
3236
3240
|
}) {
|
|
3237
|
-
const [k, f] = $(o), v = a !== void 0 ? a : k,
|
|
3241
|
+
const [k, f] = $(o), v = a !== void 0 ? a : k, m = () => {
|
|
3238
3242
|
if (d) return;
|
|
3239
3243
|
const h = !v;
|
|
3240
3244
|
a === void 0 && f(h), l?.(h);
|
|
3241
|
-
},
|
|
3242
|
-
return /* @__PURE__ */
|
|
3245
|
+
}, x = () => n === "primary" ? "border-primary" : "border-secondary", u = () => n === "primary" ? "text-primary" : "text-secondary", w = () => n === "primary" ? "hover:bg-primary/5" : "hover:bg-secondary/5";
|
|
3246
|
+
return /* @__PURE__ */ y(
|
|
3243
3247
|
"div",
|
|
3244
3248
|
{
|
|
3245
3249
|
className: p(
|
|
3246
3250
|
"w-full rounded-lg border-2 bg-background transition-all duration-300",
|
|
3247
|
-
|
|
3251
|
+
x(),
|
|
3248
3252
|
v && "shadow-lg",
|
|
3249
3253
|
i
|
|
3250
3254
|
),
|
|
3251
3255
|
children: [
|
|
3252
|
-
/* @__PURE__ */
|
|
3256
|
+
/* @__PURE__ */ y(
|
|
3253
3257
|
"button",
|
|
3254
3258
|
{
|
|
3255
3259
|
type: "button",
|
|
3256
|
-
onClick:
|
|
3260
|
+
onClick: m,
|
|
3257
3261
|
disabled: d,
|
|
3258
3262
|
className: p(
|
|
3259
3263
|
"w-full flex cursor-pointer items-center justify-between p-4 text-left transition-all duration-300 rounded-lg",
|
|
@@ -3262,9 +3266,9 @@ function tt({
|
|
|
3262
3266
|
),
|
|
3263
3267
|
"aria-expanded": v,
|
|
3264
3268
|
children: [
|
|
3265
|
-
/* @__PURE__ */
|
|
3269
|
+
/* @__PURE__ */ y("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
|
|
3266
3270
|
c && /* @__PURE__ */ s("div", { className: p("shrink-0", u()), children: c }),
|
|
3267
|
-
/* @__PURE__ */
|
|
3271
|
+
/* @__PURE__ */ y("div", { className: "flex-1 min-w-0", children: [
|
|
3268
3272
|
/* @__PURE__ */ s(
|
|
3269
3273
|
"h3",
|
|
3270
3274
|
{
|
|
@@ -3275,8 +3279,8 @@ function tt({
|
|
|
3275
3279
|
r && /* @__PURE__ */ s("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
|
|
3276
3280
|
] })
|
|
3277
3281
|
] }),
|
|
3278
|
-
/* @__PURE__ */
|
|
3279
|
-
|
|
3282
|
+
/* @__PURE__ */ y("div", { className: "flex items-center gap-3 shrink-0", children: [
|
|
3283
|
+
b && /* @__PURE__ */ s("div", { onClick: (h) => h.stopPropagation(), children: b }),
|
|
3280
3284
|
/* @__PURE__ */ s(
|
|
3281
3285
|
"div",
|
|
3282
3286
|
{
|
|
@@ -3299,17 +3303,17 @@ function tt({
|
|
|
3299
3303
|
"overflow-hidden transition-all duration-300 ease-in-out",
|
|
3300
3304
|
v ? "max-h-500 opacity-100" : "max-h-0 opacity-0"
|
|
3301
3305
|
),
|
|
3302
|
-
children: /* @__PURE__ */ s("div", { className: p("p-4 pt-0 border-t-0",
|
|
3306
|
+
children: /* @__PURE__ */ s("div", { className: p("p-4 pt-0 border-t-0", x()), children: /* @__PURE__ */ s("div", { className: "border-t border-border pt-4", children: t }) })
|
|
3303
3307
|
}
|
|
3304
3308
|
)
|
|
3305
3309
|
]
|
|
3306
3310
|
}
|
|
3307
3311
|
);
|
|
3308
3312
|
}
|
|
3309
|
-
function
|
|
3313
|
+
function tt({ children: e, className: r = "" }) {
|
|
3310
3314
|
return /* @__PURE__ */ s("div", { className: p("py-4", r), children: e });
|
|
3311
3315
|
}
|
|
3312
|
-
function
|
|
3316
|
+
function ot({
|
|
3313
3317
|
options: e,
|
|
3314
3318
|
value: r,
|
|
3315
3319
|
onChange: t,
|
|
@@ -3320,11 +3324,11 @@ function nt({
|
|
|
3320
3324
|
}) {
|
|
3321
3325
|
const [n, c] = $(
|
|
3322
3326
|
r ?? e[0]?.value ?? ""
|
|
3323
|
-
), d = r !== void 0 ? r : n,
|
|
3324
|
-
r === void 0 && c(
|
|
3325
|
-
}, k = (
|
|
3326
|
-
const u = d ===
|
|
3327
|
-
if (
|
|
3327
|
+
), d = r !== void 0 ? r : n, b = (m) => {
|
|
3328
|
+
r === void 0 && c(m), t?.(m);
|
|
3329
|
+
}, k = (m, x) => {
|
|
3330
|
+
const u = d === m, w = "px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";
|
|
3331
|
+
if (x)
|
|
3328
3332
|
return p(w, "text-text-muted");
|
|
3329
3333
|
switch (i) {
|
|
3330
3334
|
case "filled":
|
|
@@ -3343,8 +3347,8 @@ function nt({
|
|
|
3343
3347
|
default:
|
|
3344
3348
|
return p(
|
|
3345
3349
|
w,
|
|
3346
|
-
"border-b-2",
|
|
3347
|
-
u ? l === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-
|
|
3350
|
+
"border-b-2 flex items-center gap-2",
|
|
3351
|
+
u ? l === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-gray-500 hover:text-gray-700"
|
|
3348
3352
|
);
|
|
3349
3353
|
}
|
|
3350
3354
|
}, f = () => {
|
|
@@ -3355,23 +3359,26 @@ function nt({
|
|
|
3355
3359
|
return "flex gap-2 flex-wrap";
|
|
3356
3360
|
case "underline":
|
|
3357
3361
|
default:
|
|
3358
|
-
return "flex border-b
|
|
3362
|
+
return "flex gap-2 border-b border-gray-200";
|
|
3359
3363
|
}
|
|
3360
|
-
}, v = B.Children.toArray(o).find((
|
|
3361
|
-
return /* @__PURE__ */
|
|
3362
|
-
/* @__PURE__ */ s("div", { className: f(), role: "tablist", children: e.map((
|
|
3364
|
+
}, v = B.Children.toArray(o).find((m) => B.isValidElement(m) ? m.props.value === d : !1);
|
|
3365
|
+
return /* @__PURE__ */ y("div", { className: p("w-full", a), children: [
|
|
3366
|
+
/* @__PURE__ */ s("div", { className: f(), role: "tablist", children: e.map((m) => /* @__PURE__ */ y(
|
|
3363
3367
|
"button",
|
|
3364
3368
|
{
|
|
3365
3369
|
type: "button",
|
|
3366
3370
|
role: "tab",
|
|
3367
|
-
"aria-selected": d ===
|
|
3368
|
-
"aria-controls": `tabpanel-${
|
|
3369
|
-
disabled:
|
|
3370
|
-
onClick: () => !
|
|
3371
|
-
className: k(
|
|
3372
|
-
children:
|
|
3371
|
+
"aria-selected": d === m.value,
|
|
3372
|
+
"aria-controls": `tabpanel-${m.value}`,
|
|
3373
|
+
disabled: m.disabled,
|
|
3374
|
+
onClick: () => !m.disabled && b(m.value),
|
|
3375
|
+
className: k(m.value, m.disabled),
|
|
3376
|
+
children: [
|
|
3377
|
+
m.icon && /* @__PURE__ */ s("span", { className: "shrink-0", children: m.icon }),
|
|
3378
|
+
m.label
|
|
3379
|
+
]
|
|
3373
3380
|
},
|
|
3374
|
-
|
|
3381
|
+
m.value
|
|
3375
3382
|
)) }),
|
|
3376
3383
|
/* @__PURE__ */ s("div", { role: "tabpanel", id: `tabpanel-${d}`, children: v })
|
|
3377
3384
|
] });
|
|
@@ -3382,7 +3389,7 @@ function ye(e) {
|
|
|
3382
3389
|
function xe(e) {
|
|
3383
3390
|
return J({ 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);
|
|
3384
3391
|
}
|
|
3385
|
-
const
|
|
3392
|
+
const Tr = [
|
|
3386
3393
|
"Mon",
|
|
3387
3394
|
"Tue",
|
|
3388
3395
|
"Wed",
|
|
@@ -3390,7 +3397,7 @@ const Fr = [
|
|
|
3390
3397
|
"Fri",
|
|
3391
3398
|
"Sat",
|
|
3392
3399
|
"Sun"
|
|
3393
|
-
],
|
|
3400
|
+
], $r = [
|
|
3394
3401
|
"Lun",
|
|
3395
3402
|
"Mar",
|
|
3396
3403
|
"Mié",
|
|
@@ -3398,7 +3405,7 @@ const Fr = [
|
|
|
3398
3405
|
"Vie",
|
|
3399
3406
|
"Sáb",
|
|
3400
3407
|
"Dom"
|
|
3401
|
-
],
|
|
3408
|
+
], Fr = [
|
|
3402
3409
|
"January",
|
|
3403
3410
|
"February",
|
|
3404
3411
|
"March",
|
|
@@ -3411,7 +3418,7 @@ const Fr = [
|
|
|
3411
3418
|
"October",
|
|
3412
3419
|
"November",
|
|
3413
3420
|
"December"
|
|
3414
|
-
],
|
|
3421
|
+
], Rr = [
|
|
3415
3422
|
"Enero",
|
|
3416
3423
|
"Febrero",
|
|
3417
3424
|
"Marzo",
|
|
@@ -3425,14 +3432,14 @@ const Fr = [
|
|
|
3425
3432
|
"Noviembre",
|
|
3426
3433
|
"Diciembre"
|
|
3427
3434
|
];
|
|
3428
|
-
function
|
|
3435
|
+
function _r(e) {
|
|
3429
3436
|
return new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
3430
3437
|
}
|
|
3431
|
-
function
|
|
3438
|
+
function Vr(e) {
|
|
3432
3439
|
const r = new Date(e.getFullYear(), e.getMonth(), 1).getDay();
|
|
3433
3440
|
return r === 0 ? 6 : r - 1;
|
|
3434
3441
|
}
|
|
3435
|
-
function
|
|
3442
|
+
function nt({
|
|
3436
3443
|
value: e,
|
|
3437
3444
|
onChange: r,
|
|
3438
3445
|
disabled: t = !1,
|
|
@@ -3444,15 +3451,15 @@ function at({
|
|
|
3444
3451
|
const [n, c] = $(e || /* @__PURE__ */ new Date()), d = {
|
|
3445
3452
|
en: "en-US",
|
|
3446
3453
|
es: "es-ES"
|
|
3447
|
-
},
|
|
3454
|
+
}, b = {
|
|
3455
|
+
en: Tr,
|
|
3456
|
+
es: $r
|
|
3457
|
+
}, k = {
|
|
3448
3458
|
en: Fr,
|
|
3449
3459
|
es: Rr
|
|
3450
|
-
},
|
|
3451
|
-
en: _r,
|
|
3452
|
-
es: Vr
|
|
3453
|
-
}, f = Br(n), v = Gr(n), b = [];
|
|
3460
|
+
}, f = _r(n), v = Vr(n), m = [];
|
|
3454
3461
|
for (let g = 0; g < v; g++)
|
|
3455
|
-
|
|
3462
|
+
m.push(null);
|
|
3456
3463
|
for (let g = 1; g <= f; g++) {
|
|
3457
3464
|
const j = new Date(
|
|
3458
3465
|
n.getFullYear(),
|
|
@@ -3462,9 +3469,9 @@ function at({
|
|
|
3462
3469
|
0,
|
|
3463
3470
|
0
|
|
3464
3471
|
);
|
|
3465
|
-
|
|
3472
|
+
m.push(j);
|
|
3466
3473
|
}
|
|
3467
|
-
const
|
|
3474
|
+
const x = () => {
|
|
3468
3475
|
c(
|
|
3469
3476
|
new Date(
|
|
3470
3477
|
n.getFullYear(),
|
|
@@ -3539,7 +3546,7 @@ function at({
|
|
|
3539
3546
|
};
|
|
3540
3547
|
}
|
|
3541
3548
|
})(), P = (g) => g && e ? g.toDateString() === e.toDateString() : !1;
|
|
3542
|
-
return /* @__PURE__ */
|
|
3549
|
+
return /* @__PURE__ */ y(
|
|
3543
3550
|
"div",
|
|
3544
3551
|
{
|
|
3545
3552
|
className: p(
|
|
@@ -3548,8 +3555,8 @@ function at({
|
|
|
3548
3555
|
),
|
|
3549
3556
|
...i,
|
|
3550
3557
|
children: [
|
|
3551
|
-
/* @__PURE__ */
|
|
3552
|
-
/* @__PURE__ */
|
|
3558
|
+
/* @__PURE__ */ y("div", { className: "mb-6", children: [
|
|
3559
|
+
/* @__PURE__ */ y(
|
|
3553
3560
|
"div",
|
|
3554
3561
|
{
|
|
3555
3562
|
className: p(
|
|
@@ -3589,12 +3596,12 @@ function at({
|
|
|
3589
3596
|
]
|
|
3590
3597
|
}
|
|
3591
3598
|
),
|
|
3592
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ y("div", { className: p("flex items-center justify-between", z.header), children: [
|
|
3593
3600
|
/* @__PURE__ */ s(
|
|
3594
3601
|
"button",
|
|
3595
3602
|
{
|
|
3596
3603
|
type: "button",
|
|
3597
|
-
onClick:
|
|
3604
|
+
onClick: x,
|
|
3598
3605
|
disabled: t,
|
|
3599
3606
|
className: p(
|
|
3600
3607
|
"p-2 rounded-lg border transition-all duration-300",
|
|
@@ -3621,7 +3628,7 @@ function at({
|
|
|
3621
3628
|
)
|
|
3622
3629
|
] })
|
|
3623
3630
|
] }),
|
|
3624
|
-
/* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2 mb-4", children:
|
|
3631
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2 mb-4", children: b[l].map((g) => /* @__PURE__ */ s(
|
|
3625
3632
|
"div",
|
|
3626
3633
|
{
|
|
3627
3634
|
className: p(
|
|
@@ -3632,7 +3639,7 @@ function at({
|
|
|
3632
3639
|
},
|
|
3633
3640
|
g
|
|
3634
3641
|
)) }),
|
|
3635
|
-
/* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2", children:
|
|
3642
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2", children: m.map((g, j) => /* @__PURE__ */ s(
|
|
3636
3643
|
"button",
|
|
3637
3644
|
{
|
|
3638
3645
|
type: "button",
|
|
@@ -3669,7 +3676,7 @@ function at({
|
|
|
3669
3676
|
}
|
|
3670
3677
|
);
|
|
3671
3678
|
}
|
|
3672
|
-
function
|
|
3679
|
+
function at({
|
|
3673
3680
|
headers: e,
|
|
3674
3681
|
data: r,
|
|
3675
3682
|
loading: t,
|
|
@@ -3680,17 +3687,17 @@ function st({
|
|
|
3680
3687
|
className: n = "",
|
|
3681
3688
|
rowClassName: c = "",
|
|
3682
3689
|
cellClassName: d = "",
|
|
3683
|
-
headerClassName:
|
|
3690
|
+
headerClassName: b = "",
|
|
3684
3691
|
emptyText: k = "No data available",
|
|
3685
3692
|
showCount: f = !0,
|
|
3686
|
-
countText: v = (
|
|
3687
|
-
keyExtractor:
|
|
3693
|
+
countText: v = (x) => `Showing ${x} record${x !== 1 ? "s" : ""}`,
|
|
3694
|
+
keyExtractor: m = (x, u) => x._id || x.id || u
|
|
3688
3695
|
}) {
|
|
3689
3696
|
if (t)
|
|
3690
3697
|
return /* @__PURE__ */ s("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ s("div", { className: "text-lg text-text-light", children: o }) });
|
|
3691
3698
|
if (r.length === 0)
|
|
3692
3699
|
return /* @__PURE__ */ s("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ s("div", { className: "text-lg text-text-muted", children: k }) });
|
|
3693
|
-
const
|
|
3700
|
+
const x = (u, w) => {
|
|
3694
3701
|
const h = w.toLowerCase().replace(/\s+/g, "_");
|
|
3695
3702
|
let L = u[h];
|
|
3696
3703
|
if (L === void 0) {
|
|
@@ -3713,15 +3720,15 @@ function st({
|
|
|
3713
3720
|
}
|
|
3714
3721
|
return L != null ? String(L) : "N/A";
|
|
3715
3722
|
};
|
|
3716
|
-
return /* @__PURE__ */
|
|
3717
|
-
/* @__PURE__ */
|
|
3718
|
-
/* @__PURE__ */ s("thead", { children: /* @__PURE__ */
|
|
3723
|
+
return /* @__PURE__ */ y("div", { className: p("overflow-x-auto", n), children: [
|
|
3724
|
+
/* @__PURE__ */ y("table", { className: "w-full border-collapse", children: [
|
|
3725
|
+
/* @__PURE__ */ s("thead", { children: /* @__PURE__ */ y("tr", { className: "border-b-2 border-border", children: [
|
|
3719
3726
|
e.map((u, w) => /* @__PURE__ */ s(
|
|
3720
3727
|
"th",
|
|
3721
3728
|
{
|
|
3722
3729
|
className: p(
|
|
3723
3730
|
"text-left py-3 px-4 font-semibold text-text",
|
|
3724
|
-
|
|
3731
|
+
b
|
|
3725
3732
|
),
|
|
3726
3733
|
children: u
|
|
3727
3734
|
},
|
|
@@ -3732,13 +3739,13 @@ function st({
|
|
|
3732
3739
|
{
|
|
3733
3740
|
className: p(
|
|
3734
3741
|
"text-center py-3 px-4 font-semibold text-text",
|
|
3735
|
-
|
|
3742
|
+
b
|
|
3736
3743
|
),
|
|
3737
3744
|
children: l
|
|
3738
3745
|
}
|
|
3739
3746
|
)
|
|
3740
3747
|
] }) }),
|
|
3741
|
-
/* @__PURE__ */ s("tbody", { children: r.map((u, w) => /* @__PURE__ */
|
|
3748
|
+
/* @__PURE__ */ s("tbody", { children: r.map((u, w) => /* @__PURE__ */ y(
|
|
3742
3749
|
"tr",
|
|
3743
3750
|
{
|
|
3744
3751
|
className: p(
|
|
@@ -3748,14 +3755,14 @@ function st({
|
|
|
3748
3755
|
),
|
|
3749
3756
|
onClick: () => i?.(u),
|
|
3750
3757
|
children: [
|
|
3751
|
-
e.map((h, L) => /* @__PURE__ */ s("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ s("div", { className: "text-text-light", children:
|
|
3758
|
+
e.map((h, L) => /* @__PURE__ */ s("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ s("div", { className: "text-text-light", children: x(u, h) }) }, L)),
|
|
3752
3759
|
a && /* @__PURE__ */ s("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ s("div", { className: "flex gap-2 justify-center", children: a.map((h, L) => {
|
|
3753
3760
|
const E = (z) => {
|
|
3754
3761
|
z?.stopPropagation(), h.onClick?.(u);
|
|
3755
3762
|
};
|
|
3756
3763
|
if (h.component) {
|
|
3757
3764
|
const z = h.component;
|
|
3758
|
-
return /* @__PURE__ */
|
|
3765
|
+
return /* @__PURE__ */ y(
|
|
3759
3766
|
z,
|
|
3760
3767
|
{
|
|
3761
3768
|
onClick: E,
|
|
@@ -3769,7 +3776,7 @@ function st({
|
|
|
3769
3776
|
L
|
|
3770
3777
|
);
|
|
3771
3778
|
}
|
|
3772
|
-
return /* @__PURE__ */
|
|
3779
|
+
return /* @__PURE__ */ y(
|
|
3773
3780
|
q,
|
|
3774
3781
|
{
|
|
3775
3782
|
onClick: E,
|
|
@@ -3785,13 +3792,13 @@ function st({
|
|
|
3785
3792
|
}) }) })
|
|
3786
3793
|
]
|
|
3787
3794
|
},
|
|
3788
|
-
|
|
3795
|
+
m(u, w)
|
|
3789
3796
|
)) })
|
|
3790
3797
|
] }),
|
|
3791
3798
|
f && r.length > 0 && /* @__PURE__ */ s("div", { className: "mt-6 text-center text-text-light text-sm", children: v(r.length) })
|
|
3792
3799
|
] });
|
|
3793
3800
|
}
|
|
3794
|
-
function
|
|
3801
|
+
function st({
|
|
3795
3802
|
label: e,
|
|
3796
3803
|
options: r,
|
|
3797
3804
|
value: t = "",
|
|
@@ -3802,12 +3809,12 @@ function lt({
|
|
|
3802
3809
|
onSearchInputCustom: n,
|
|
3803
3810
|
placeholder: c = "Select...",
|
|
3804
3811
|
disabled: d = !1,
|
|
3805
|
-
error:
|
|
3812
|
+
error: b,
|
|
3806
3813
|
required: k = !1,
|
|
3807
3814
|
colorScheme: f = "primary",
|
|
3808
3815
|
noResultsText: v = "No results found",
|
|
3809
|
-
searchPlaceholder:
|
|
3810
|
-
...
|
|
3816
|
+
searchPlaceholder: m = "Search...",
|
|
3817
|
+
...x
|
|
3811
3818
|
}) {
|
|
3812
3819
|
const [u, w] = $(!1), [h, L] = $(""), [E, z] = $({
|
|
3813
3820
|
top: 0,
|
|
@@ -3817,7 +3824,7 @@ function lt({
|
|
|
3817
3824
|
P.map((C) => r.find((D) => D.value === C)).filter(Boolean)
|
|
3818
3825
|
), F = ce(null), G = ce(null), K = () => {
|
|
3819
3826
|
const C = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed";
|
|
3820
|
-
if (
|
|
3827
|
+
if (b)
|
|
3821
3828
|
return p(C, "border-danger focus:border-danger");
|
|
3822
3829
|
switch (f) {
|
|
3823
3830
|
case "primary":
|
|
@@ -3833,10 +3840,10 @@ function lt({
|
|
|
3833
3840
|
);
|
|
3834
3841
|
}
|
|
3835
3842
|
}, S = () => f === "primary" ? "text-primary" : "text-secondary";
|
|
3836
|
-
|
|
3843
|
+
W(() => {
|
|
3837
3844
|
const D = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((R) => r.find((_) => _.value === R)).filter(Boolean);
|
|
3838
3845
|
j(D);
|
|
3839
|
-
}, [t, r]),
|
|
3846
|
+
}, [t, r]), W(() => {
|
|
3840
3847
|
u && i && G.current && G.current.focus();
|
|
3841
3848
|
}, [u, i]);
|
|
3842
3849
|
const M = ve(() => {
|
|
@@ -3849,7 +3856,7 @@ function lt({
|
|
|
3849
3856
|
openUpward: X
|
|
3850
3857
|
});
|
|
3851
3858
|
}, []);
|
|
3852
|
-
|
|
3859
|
+
W(() => {
|
|
3853
3860
|
function C(R) {
|
|
3854
3861
|
F.current && !F.current.contains(R.target) && w(!1);
|
|
3855
3862
|
}
|
|
@@ -3872,8 +3879,8 @@ function lt({
|
|
|
3872
3879
|
}, T = i ? r.filter(
|
|
3873
3880
|
(C) => C.label.toLowerCase().includes(h.toLowerCase())
|
|
3874
3881
|
) : r, Z = () => g.length === 0 ? c : a ? g.length === 1 ? g[0].label : `${g.length} selected` : g[0]?.label || c;
|
|
3875
|
-
return /* @__PURE__ */
|
|
3876
|
-
e && /* @__PURE__ */
|
|
3882
|
+
return /* @__PURE__ */ y("div", { className: p("mb-6", l), children: [
|
|
3883
|
+
e && /* @__PURE__ */ y(
|
|
3877
3884
|
"label",
|
|
3878
3885
|
{
|
|
3879
3886
|
className: p("block mb-2 text-sm font-medium", S()),
|
|
@@ -3883,8 +3890,8 @@ function lt({
|
|
|
3883
3890
|
]
|
|
3884
3891
|
}
|
|
3885
3892
|
),
|
|
3886
|
-
/* @__PURE__ */
|
|
3887
|
-
/* @__PURE__ */
|
|
3893
|
+
/* @__PURE__ */ y("div", { ref: F, className: "relative w-full", children: [
|
|
3894
|
+
/* @__PURE__ */ y(
|
|
3888
3895
|
"button",
|
|
3889
3896
|
{
|
|
3890
3897
|
type: "button",
|
|
@@ -3898,9 +3905,9 @@ function lt({
|
|
|
3898
3905
|
u && "ring-1"
|
|
3899
3906
|
),
|
|
3900
3907
|
disabled: d,
|
|
3901
|
-
...
|
|
3908
|
+
...x,
|
|
3902
3909
|
children: [
|
|
3903
|
-
/* @__PURE__ */
|
|
3910
|
+
/* @__PURE__ */ y("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
3904
3911
|
g.length > 0 && g[0].hex && /* @__PURE__ */ s(
|
|
3905
3912
|
"div",
|
|
3906
3913
|
{
|
|
@@ -3929,12 +3936,12 @@ function lt({
|
|
|
3929
3936
|
]
|
|
3930
3937
|
}
|
|
3931
3938
|
),
|
|
3932
|
-
u && /* @__PURE__ */
|
|
3939
|
+
u && /* @__PURE__ */ y(
|
|
3933
3940
|
"div",
|
|
3934
3941
|
{
|
|
3935
3942
|
className: p(
|
|
3936
3943
|
"fixed z-9999 rounded-lg border-2 bg-white shadow-xl",
|
|
3937
|
-
|
|
3944
|
+
b ? "border-danger" : f === "primary" ? "border-primary" : "border-secondary"
|
|
3938
3945
|
),
|
|
3939
3946
|
style: {
|
|
3940
3947
|
top: `${E.top + (E.openUpward ? 0 : 8)}px`,
|
|
@@ -3943,8 +3950,8 @@ function lt({
|
|
|
3943
3950
|
transform: E.openUpward ? "translateY(-100%)" : "none"
|
|
3944
3951
|
},
|
|
3945
3952
|
children: [
|
|
3946
|
-
i && /* @__PURE__ */ s("div", { className: "border-b border-border p-3", children: /* @__PURE__ */
|
|
3947
|
-
/* @__PURE__ */ s(
|
|
3953
|
+
i && /* @__PURE__ */ s("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ y("div", { className: "relative", children: [
|
|
3954
|
+
/* @__PURE__ */ s(Or, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
|
|
3948
3955
|
/* @__PURE__ */ s(
|
|
3949
3956
|
"input",
|
|
3950
3957
|
{
|
|
@@ -3952,7 +3959,7 @@ function lt({
|
|
|
3952
3959
|
type: "text",
|
|
3953
3960
|
value: h,
|
|
3954
3961
|
onChange: (C) => V(C.target.value),
|
|
3955
|
-
placeholder:
|
|
3962
|
+
placeholder: m,
|
|
3956
3963
|
className: p(
|
|
3957
3964
|
"w-full rounded-lg border-2 py-2 pr-10 pl-10 text-sm transition-all duration-300 focus:outline-none focus:ring-1",
|
|
3958
3965
|
f === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
|
|
@@ -3965,11 +3972,11 @@ function lt({
|
|
|
3965
3972
|
type: "button",
|
|
3966
3973
|
onClick: () => L(""),
|
|
3967
3974
|
className: "absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform text-text-muted hover:text-text",
|
|
3968
|
-
children: /* @__PURE__ */ s(
|
|
3975
|
+
children: /* @__PURE__ */ s(jr, { className: "h-4 w-4" })
|
|
3969
3976
|
}
|
|
3970
3977
|
)
|
|
3971
3978
|
] }) }),
|
|
3972
|
-
/* @__PURE__ */
|
|
3979
|
+
/* @__PURE__ */ y("div", { className: "max-h-60 overflow-y-auto py-1", children: [
|
|
3973
3980
|
T.map((C) => /* @__PURE__ */ s(
|
|
3974
3981
|
"button",
|
|
3975
3982
|
{
|
|
@@ -3979,7 +3986,7 @@ function lt({
|
|
|
3979
3986
|
"w-full px-4 py-3 text-left text-sm transition-colors",
|
|
3980
3987
|
g.some((D) => D.value === C.value) ? f === "primary" ? "bg-primary/10 text-primary font-medium" : "bg-secondary/10 text-secondary font-medium" : "text-text hover:bg-background-light"
|
|
3981
3988
|
),
|
|
3982
|
-
children: /* @__PURE__ */
|
|
3989
|
+
children: /* @__PURE__ */ y("div", { className: "flex items-center gap-3", children: [
|
|
3983
3990
|
a && /* @__PURE__ */ s(
|
|
3984
3991
|
"div",
|
|
3985
3992
|
{
|
|
@@ -4025,10 +4032,10 @@ function lt({
|
|
|
4025
4032
|
}
|
|
4026
4033
|
)
|
|
4027
4034
|
] }),
|
|
4028
|
-
|
|
4035
|
+
b && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: b })
|
|
4029
4036
|
] });
|
|
4030
4037
|
}
|
|
4031
|
-
const
|
|
4038
|
+
const lt = ({
|
|
4032
4039
|
id: e,
|
|
4033
4040
|
name: r,
|
|
4034
4041
|
onFilesSelected: t,
|
|
@@ -4040,13 +4047,13 @@ const it = ({
|
|
|
4040
4047
|
required: c = !1,
|
|
4041
4048
|
colorScheme: d = "secondary",
|
|
4042
4049
|
// "primary" | "secondary"
|
|
4043
|
-
className:
|
|
4050
|
+
className: b = "",
|
|
4044
4051
|
accept: k = "*/*",
|
|
4045
4052
|
// Tipos de archivo aceptados: "image/*", "application/pdf", ".doc,.docx", etc.
|
|
4046
4053
|
multiple: f = !1,
|
|
4047
4054
|
...v
|
|
4048
4055
|
}) => {
|
|
4049
|
-
const
|
|
4056
|
+
const m = ce(null), [x, u] = $(!1), [w, h] = $([]), L = () => {
|
|
4050
4057
|
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]";
|
|
4051
4058
|
if (i)
|
|
4052
4059
|
return p(
|
|
@@ -4103,24 +4110,24 @@ const it = ({
|
|
|
4103
4110
|
}
|
|
4104
4111
|
return !1;
|
|
4105
4112
|
}), G = () => {
|
|
4106
|
-
n ||
|
|
4113
|
+
n || m.current?.click();
|
|
4107
4114
|
}, K = (M) => {
|
|
4108
4115
|
const A = w.filter((V, T) => T !== M);
|
|
4109
4116
|
h(A), t(A);
|
|
4110
4117
|
}, S = (M) => {
|
|
4111
4118
|
(M.key === "Enter" || M.key === " ") && (M.preventDefault(), G());
|
|
4112
4119
|
};
|
|
4113
|
-
return /* @__PURE__ */
|
|
4114
|
-
l && /* @__PURE__ */
|
|
4120
|
+
return /* @__PURE__ */ y("div", { className: `mb-6 ${b}`, children: [
|
|
4121
|
+
l && /* @__PURE__ */ y("label", { className: `block mb-2 text-sm font-medium ${E()}`, children: [
|
|
4115
4122
|
l,
|
|
4116
4123
|
c && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
|
|
4117
4124
|
] }),
|
|
4118
|
-
/* @__PURE__ */
|
|
4125
|
+
/* @__PURE__ */ y(
|
|
4119
4126
|
"div",
|
|
4120
4127
|
{
|
|
4121
4128
|
className: p(
|
|
4122
4129
|
L(),
|
|
4123
|
-
|
|
4130
|
+
x && "bg-background-light border-2-dashed"
|
|
4124
4131
|
),
|
|
4125
4132
|
onDragEnter: z,
|
|
4126
4133
|
onDragLeave: z,
|
|
@@ -4134,7 +4141,7 @@ const it = ({
|
|
|
4134
4141
|
/* @__PURE__ */ s(
|
|
4135
4142
|
"input",
|
|
4136
4143
|
{
|
|
4137
|
-
ref:
|
|
4144
|
+
ref: m,
|
|
4138
4145
|
id: e,
|
|
4139
4146
|
name: r,
|
|
4140
4147
|
type: "file",
|
|
@@ -4147,7 +4154,7 @@ const it = ({
|
|
|
4147
4154
|
...v
|
|
4148
4155
|
}
|
|
4149
4156
|
),
|
|
4150
|
-
/* @__PURE__ */
|
|
4157
|
+
/* @__PURE__ */ y("div", { className: "flex flex-col items-center justify-center py-4", children: [
|
|
4151
4158
|
/* @__PURE__ */ s(
|
|
4152
4159
|
"svg",
|
|
4153
4160
|
{
|
|
@@ -4171,20 +4178,20 @@ const it = ({
|
|
|
4171
4178
|
]
|
|
4172
4179
|
}
|
|
4173
4180
|
),
|
|
4174
|
-
/* @__PURE__ */
|
|
4175
|
-
/* @__PURE__ */
|
|
4181
|
+
/* @__PURE__ */ y("div", { className: "mt-4 space-y-2", children: [
|
|
4182
|
+
/* @__PURE__ */ y("p", { className: `text-sm font-medium ${E()}`, children: [
|
|
4176
4183
|
w.length,
|
|
4177
4184
|
" ",
|
|
4178
4185
|
a,
|
|
4179
4186
|
"(s) seleccionado(s):"
|
|
4180
4187
|
] }),
|
|
4181
|
-
/* @__PURE__ */ s("ul", { className: "space-y-1", children: w.map((M, A) => /* @__PURE__ */
|
|
4188
|
+
/* @__PURE__ */ s("ul", { className: "space-y-1", children: w.map((M, A) => /* @__PURE__ */ y(
|
|
4182
4189
|
"li",
|
|
4183
4190
|
{
|
|
4184
4191
|
className: "flex items-center justify-between p-2 bg-light rounded border border-border",
|
|
4185
4192
|
children: [
|
|
4186
|
-
/* @__PURE__ */
|
|
4187
|
-
/* @__PURE__ */
|
|
4193
|
+
/* @__PURE__ */ y("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
|
|
4194
|
+
/* @__PURE__ */ y(
|
|
4188
4195
|
"svg",
|
|
4189
4196
|
{
|
|
4190
4197
|
className: "w-4 h-4 text-text-muted shrink-0",
|
|
@@ -4216,7 +4223,7 @@ const it = ({
|
|
|
4216
4223
|
] }),
|
|
4217
4224
|
i && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
|
|
4218
4225
|
] });
|
|
4219
|
-
},
|
|
4226
|
+
}, it = ({
|
|
4220
4227
|
text: e,
|
|
4221
4228
|
className: r = "",
|
|
4222
4229
|
variant: t = "default",
|
|
@@ -4234,7 +4241,7 @@ const it = ({
|
|
|
4234
4241
|
}, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", n = l[t] || l.default;
|
|
4235
4242
|
return /* @__PURE__ */ s("div", { className: `${i} ${n} ${r}`, ...a, children: e });
|
|
4236
4243
|
};
|
|
4237
|
-
function
|
|
4244
|
+
function ct({
|
|
4238
4245
|
isOpen: e,
|
|
4239
4246
|
onClose: r,
|
|
4240
4247
|
title: t,
|
|
@@ -4246,19 +4253,19 @@ function dt({
|
|
|
4246
4253
|
closeOnOverlayClick: c = !0,
|
|
4247
4254
|
closeOnEscape: d = !0
|
|
4248
4255
|
}) {
|
|
4249
|
-
if (
|
|
4256
|
+
if (W(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
4250
4257
|
document.body.style.overflow = "unset";
|
|
4251
|
-
}), [e]),
|
|
4258
|
+
}), [e]), W(() => {
|
|
4252
4259
|
if (!d || !e)
|
|
4253
4260
|
return;
|
|
4254
|
-
const v = (
|
|
4255
|
-
|
|
4261
|
+
const v = (m) => {
|
|
4262
|
+
m.key === "Escape" && r();
|
|
4256
4263
|
};
|
|
4257
4264
|
return document.addEventListener("keydown", v), () => {
|
|
4258
4265
|
document.removeEventListener("keydown", v);
|
|
4259
4266
|
};
|
|
4260
4267
|
}, [e, r, d]), !e) return null;
|
|
4261
|
-
const
|
|
4268
|
+
const b = {
|
|
4262
4269
|
sm: "max-w-sm",
|
|
4263
4270
|
md: "max-w-md",
|
|
4264
4271
|
lg: "max-w-lg",
|
|
@@ -4277,17 +4284,17 @@ function dt({
|
|
|
4277
4284
|
role: "dialog",
|
|
4278
4285
|
"aria-modal": "true",
|
|
4279
4286
|
"aria-labelledby": t ? "modal-title" : void 0,
|
|
4280
|
-
children: /* @__PURE__ */
|
|
4287
|
+
children: /* @__PURE__ */ y(
|
|
4281
4288
|
"div",
|
|
4282
4289
|
{
|
|
4283
4290
|
className: p(
|
|
4284
4291
|
"relative bg-white rounded-xl shadow-2xl max-h-[90vh] flex flex-col w-full transition-all duration-300",
|
|
4285
|
-
|
|
4292
|
+
b[a],
|
|
4286
4293
|
l
|
|
4287
4294
|
),
|
|
4288
4295
|
onClick: (v) => v.stopPropagation(),
|
|
4289
4296
|
children: [
|
|
4290
|
-
(t || n) && /* @__PURE__ */
|
|
4297
|
+
(t || n) && /* @__PURE__ */ y("div", { className: "flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0", children: [
|
|
4291
4298
|
t && /* @__PURE__ */ s(
|
|
4292
4299
|
"h2",
|
|
4293
4300
|
{
|
|
@@ -4315,7 +4322,7 @@ function dt({
|
|
|
4315
4322
|
);
|
|
4316
4323
|
return $e(f, document.body);
|
|
4317
4324
|
}
|
|
4318
|
-
function
|
|
4325
|
+
function dt({
|
|
4319
4326
|
id: e,
|
|
4320
4327
|
name: r,
|
|
4321
4328
|
checked: t = !1,
|
|
@@ -4326,28 +4333,28 @@ function ut({
|
|
|
4326
4333
|
variant: n = "solid",
|
|
4327
4334
|
label: c,
|
|
4328
4335
|
className: d = "",
|
|
4329
|
-
...
|
|
4336
|
+
...b
|
|
4330
4337
|
}) {
|
|
4331
4338
|
const k = (f, v) => {
|
|
4332
|
-
const
|
|
4339
|
+
const m = "checkbox-input size-4 shrink-0 rounded transition-all duration-300 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50";
|
|
4333
4340
|
if (f === "outline")
|
|
4334
4341
|
switch (v) {
|
|
4335
4342
|
case "primary":
|
|
4336
|
-
return `${
|
|
4343
|
+
return `${m} checkbox-outline checkbox-primary`;
|
|
4337
4344
|
case "secondary":
|
|
4338
4345
|
default:
|
|
4339
|
-
return `${
|
|
4346
|
+
return `${m} checkbox-outline checkbox-secondary`;
|
|
4340
4347
|
}
|
|
4341
4348
|
else
|
|
4342
4349
|
switch (v) {
|
|
4343
4350
|
case "primary":
|
|
4344
|
-
return `${
|
|
4351
|
+
return `${m} checkbox-solid checkbox-primary`;
|
|
4345
4352
|
case "secondary":
|
|
4346
4353
|
default:
|
|
4347
|
-
return `${
|
|
4354
|
+
return `${m} checkbox-solid checkbox-secondary`;
|
|
4348
4355
|
}
|
|
4349
4356
|
};
|
|
4350
|
-
return c ? /* @__PURE__ */
|
|
4357
|
+
return c ? /* @__PURE__ */ y("div", { className: `flex items-center gap-2 ${d}`, children: [
|
|
4351
4358
|
/* @__PURE__ */ s(
|
|
4352
4359
|
"input",
|
|
4353
4360
|
{
|
|
@@ -4359,10 +4366,10 @@ function ut({
|
|
|
4359
4366
|
disabled: a,
|
|
4360
4367
|
required: l,
|
|
4361
4368
|
className: k(n, i),
|
|
4362
|
-
...
|
|
4369
|
+
...b
|
|
4363
4370
|
}
|
|
4364
4371
|
),
|
|
4365
|
-
/* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ y(
|
|
4366
4373
|
"label",
|
|
4367
4374
|
{
|
|
4368
4375
|
htmlFor: e,
|
|
@@ -4387,43 +4394,43 @@ function ut({
|
|
|
4387
4394
|
style: {
|
|
4388
4395
|
accentColor: "white"
|
|
4389
4396
|
},
|
|
4390
|
-
...
|
|
4397
|
+
...b
|
|
4391
4398
|
}
|
|
4392
4399
|
);
|
|
4393
4400
|
}
|
|
4394
|
-
const { Input:
|
|
4401
|
+
const { Input: ut, InputArea: pt } = De;
|
|
4395
4402
|
export {
|
|
4396
|
-
|
|
4403
|
+
it as Badge,
|
|
4397
4404
|
q as Button,
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4405
|
+
nt as Calendar,
|
|
4406
|
+
dt as Checkbox,
|
|
4407
|
+
st as Dropdown,
|
|
4408
|
+
Tr as EN_DEFAULT_DAY_NAMES,
|
|
4409
|
+
Fr as EN_DEFAULT_MONTH_NAMES,
|
|
4410
|
+
$r as ES_DEFAULT_DAY_NAMES,
|
|
4411
|
+
Rr as ES_DEFAULT_MONTH_NAMES,
|
|
4412
|
+
rt as ExpandableCard,
|
|
4413
|
+
lt as FileDropZone,
|
|
4414
|
+
ut as Input,
|
|
4415
|
+
pt as InputArea,
|
|
4416
|
+
kr as Loader,
|
|
4417
|
+
Zr as Login,
|
|
4418
|
+
ct as Modal,
|
|
4419
|
+
et as Pagination,
|
|
4420
|
+
qr as SearchInput,
|
|
4421
|
+
tt as TabPanel,
|
|
4422
|
+
at as Table,
|
|
4423
|
+
ot as Tabs,
|
|
4424
|
+
Jr as ThemeProvider,
|
|
4425
|
+
Kr as Toggle,
|
|
4419
4426
|
p as cn,
|
|
4420
4427
|
O as defaultTheme,
|
|
4421
4428
|
le as generateColorVariants,
|
|
4422
4429
|
hr as hexToHsl,
|
|
4423
4430
|
be as hslToHex,
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4431
|
+
Pr as useDebounce,
|
|
4432
|
+
Qr as useIsMobile,
|
|
4433
|
+
Yr as useTheme,
|
|
4434
|
+
Xr as useToast
|
|
4428
4435
|
};
|
|
4429
4436
|
//# sourceMappingURL=index.js.map
|