componentables 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsxs as x, jsx as s, Fragment as Ae } from "react/jsx-runtime";
2
- import B, { useMemo as Ie, useEffect as H, createContext as je, useContext as Oe, useState as $, useCallback as ve, useRef as ce } from "react";
1
+ import { jsxs as y, jsx as l, 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";
@@ -12,11 +12,11 @@ function we(e) {
12
12
  } else for (t in e) e[t] && (o && (o += " "), o += t);
13
13
  return o;
14
14
  }
15
- function Fe() {
15
+ function Re() {
16
16
  for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = we(e)) && (o && (o += " "), o += r);
17
17
  return o;
18
18
  }
19
- const ue = "-", Re = (e) => {
19
+ const ue = "-", Fe = (e) => {
20
20
  const r = Ve(e), {
21
21
  conflictingClassGroups: t,
22
22
  conflictingClassGroupModifiers: o
@@ -39,10 +39,10 @@ const ue = "-", Re = (e) => {
39
39
  return a;
40
40
  if (r.validators.length === 0)
41
41
  return;
42
- const l = e.join(ue);
42
+ const s = e.join(ue);
43
43
  return r.validators.find(({
44
44
  validator: i
45
- }) => i(l))?.classGroupId;
45
+ }) => i(s))?.classGroupId;
46
46
  }, pe = /^\[(.+)\]$/, _e = (e) => {
47
47
  if (pe.test(e)) {
48
48
  const r = pe.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
@@ -57,14 +57,14 @@ const ue = "-", Re = (e) => {
57
57
  nextPart: /* @__PURE__ */ new Map(),
58
58
  validators: []
59
59
  };
60
- return Ge(Object.entries(e.classGroups), t).forEach(([l, i]) => {
61
- de(i, o, l, r);
60
+ return Ge(Object.entries(e.classGroups), t).forEach(([s, i]) => {
61
+ de(i, o, s, r);
62
62
  }), o;
63
63
  }, de = (e, r, t, o) => {
64
64
  e.forEach((a) => {
65
65
  if (typeof a == "string") {
66
- const l = a === "" ? r : me(r, a);
67
- l.classGroupId = t;
66
+ const s = a === "" ? r : me(r, a);
67
+ s.classGroupId = t;
68
68
  return;
69
69
  }
70
70
  if (typeof a == "function") {
@@ -78,8 +78,8 @@ const ue = "-", Re = (e) => {
78
78
  });
79
79
  return;
80
80
  }
81
- Object.entries(a).forEach(([l, i]) => {
82
- de(i, me(r, l), t, o);
81
+ Object.entries(a).forEach(([s, i]) => {
82
+ de(i, me(r, s), t, o);
83
83
  });
84
84
  });
85
85
  }, me = (e, r) => {
@@ -91,7 +91,7 @@ const ue = "-", Re = (e) => {
91
91
  }), t = t.nextPart.get(o);
92
92
  }), t;
93
93
  }, Be = (e) => e.isThemeGetter, Ge = (e, r) => r ? e.map(([t, o]) => {
94
- const a = o.map((l) => typeof l == "string" ? r + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([i, n]) => [r + i, n])) : l);
94
+ const a = o.map((s) => typeof s == "string" ? r + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([i, n]) => [r + i, n])) : s);
95
95
  return [t, a];
96
96
  }) : e, We = (e) => {
97
97
  if (e < 1)
@@ -102,33 +102,33 @@ const ue = "-", Re = (e) => {
102
102
  }
103
103
  };
104
104
  let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
105
- const a = (l, i) => {
106
- t.set(l, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
105
+ const a = (s, i) => {
106
+ t.set(s, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
107
107
  };
108
108
  return {
109
- get(l) {
110
- let i = t.get(l);
109
+ get(s) {
110
+ let i = t.get(s);
111
111
  if (i !== void 0)
112
112
  return i;
113
- if ((i = o.get(l)) !== void 0)
114
- return a(l, i), i;
113
+ if ((i = o.get(s)) !== void 0)
114
+ return a(s, i), i;
115
115
  },
116
- set(l, i) {
117
- t.has(l) ? t.set(l, i) : a(l, i);
116
+ set(s, i) {
117
+ t.has(s) ? t.set(s, i) : a(s, i);
118
118
  }
119
119
  };
120
120
  }, Ce = "!", He = (e) => {
121
121
  const {
122
122
  separator: r,
123
123
  experimentalParseClassName: t
124
- } = e, o = r.length === 1, a = r[0], l = r.length, i = (n) => {
124
+ } = e, o = r.length === 1, a = r[0], s = r.length, i = (n) => {
125
125
  const c = [];
126
- let d = 0, m = 0, k;
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
- if (w === a && (o || n.slice(u, u + l) === r)) {
131
- c.push(n.slice(m, u)), m = u + l;
130
+ if (w === a && (o || n.slice(u, u + s) === r)) {
131
+ c.push(n.slice(b, u)), b = u + s;
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(m), v = f.startsWith(Ce), b = v ? f.substring(1) : f, y = k && k > m ? k - m : void 0;
141
+ const h = c.length === 0 ? n : n.substring(b), v = h.startsWith(Ce), m = v ? h.substring(1) : h, x = k && k > b ? k - b : void 0;
142
142
  return {
143
143
  modifiers: c,
144
144
  hasImportantModifier: v,
145
- baseClassName: b,
146
- maybePostfixModifierPosition: y
145
+ baseClassName: m,
146
+ maybePostfixModifierPosition: x
147
147
  };
148
148
  };
149
149
  return t ? (n) => t({
@@ -161,41 +161,41 @@ const ue = "-", Re = (e) => {
161
161
  }, Ye = (e) => ({
162
162
  cache: We(e.cacheSize),
163
163
  parseClassName: He(e),
164
- ...Re(e)
164
+ ...Fe(e)
165
165
  }), Je = /\s+/, Ke = (e, r) => {
166
166
  const {
167
167
  parseClassName: t,
168
168
  getClassGroupId: o,
169
169
  getConflictingClassGroupIds: a
170
- } = r, l = [], i = e.trim().split(Je);
170
+ } = r, s = [], i = e.trim().split(Je);
171
171
  let n = "";
172
172
  for (let c = i.length - 1; c >= 0; c -= 1) {
173
173
  const d = i[c], {
174
- modifiers: m,
174
+ modifiers: b,
175
175
  hasImportantModifier: k,
176
- baseClassName: f,
176
+ baseClassName: h,
177
177
  maybePostfixModifierPosition: v
178
178
  } = t(d);
179
- let b = !!v, y = o(b ? f.substring(0, v) : f);
180
- if (!y) {
181
- if (!b) {
179
+ let m = !!v, x = o(m ? h.substring(0, v) : h);
180
+ if (!x) {
181
+ if (!m) {
182
182
  n = d + (n.length > 0 ? " " + n : n);
183
183
  continue;
184
184
  }
185
- if (y = o(f), !y) {
185
+ if (x = o(h), !x) {
186
186
  n = d + (n.length > 0 ? " " + n : n);
187
187
  continue;
188
188
  }
189
- b = !1;
189
+ m = !1;
190
190
  }
191
- const u = Ue(m).join(":"), w = k ? u + Ce : u, h = w + y;
192
- if (l.includes(h))
191
+ const u = Ue(b).join(":"), w = k ? u + Ce : u, f = w + x;
192
+ if (s.includes(f))
193
193
  continue;
194
- l.push(h);
195
- const L = a(y, b);
196
- for (let E = 0; E < L.length; ++E) {
197
- const z = L[E];
198
- l.push(w + z);
194
+ s.push(f);
195
+ const D = a(x, m);
196
+ for (let E = 0; E < D.length; ++E) {
197
+ const z = D[E];
198
+ s.push(w + z);
199
199
  }
200
200
  n = d + (n.length > 0 ? " " + n : n);
201
201
  }
@@ -216,26 +216,26 @@ const Ne = (e) => {
216
216
  return t;
217
217
  };
218
218
  function Xe(e, ...r) {
219
- let t, o, a, l = i;
219
+ let t, o, a, s = i;
220
220
  function i(c) {
221
- const d = r.reduce((m, k) => k(m), e());
222
- return t = Ye(d), o = t.cache.get, a = t.cache.set, l = n, n(c);
221
+ const d = r.reduce((b, k) => k(b), e());
222
+ return t = Ye(d), o = t.cache.get, a = t.cache.set, s = 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 m = Ke(c, t);
229
- return a(c, m), m;
228
+ const b = Ke(c, t);
229
+ return a(c, b), b;
230
230
  }
231
231
  return function() {
232
- return l(Ze.apply(null, arguments));
232
+ return s(Ze.apply(null, arguments));
233
233
  };
234
234
  }
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)\(.+\)$/, W = (e) => Q(e) || qe.has(e) || Qe.test(e), U = (e) => ee(e, "length", pr), Q = (e) => !!e && !Number.isNaN(Number(e)), se = (e) => ee(e, "number", Q), te = (e) => !!e && Number.isInteger(Number(e)), ar = (e) => e.endsWith("%") && Q(e.slice(0, -1)), N = (e) => Me.test(e), Y = (e) => er.test(e), sr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lr = (e) => ee(e, sr, ze), ir = (e) => ee(e, "position", ze), cr = /* @__PURE__ */ new Set(["image", "url"]), dr = (e) => ee(e, cr, br), ur = (e) => ee(e, "", mr), oe = () => !0, ee = (e, r, t) => {
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"), m = I("hueRotate"), k = I("invert"), f = I("gap"), v = I("gradientColorStops"), b = I("gradientColorStopPositions"), y = I("inset"), u = I("margin"), w = I("opacity"), h = I("padding"), L = I("saturate"), 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 = () => ["", W, U], A = () => ["auto", Q, N], V = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], C = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", N], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [Q, N];
247
+ const e = I("colors"), r = I("spacing"), t = I("blur"), o = I("brightness"), a = I("borderColor"), s = I("borderRadius"), i = I("borderSpacing"), n = I("borderWidth"), c = I("contrast"), d = I("grayscale"), b = I("hueRotate"), k = I("invert"), h = I("gap"), v = I("gradientColorStops"), m = I("gradientColorStopPositions"), x = I("inset"), u = I("margin"), w = I("opacity"), f = I("padding"), D = I("saturate"), E = I("scale"), z = I("sepia"), P = I("skew"), g = I("space"), j = I("translate"), R = () => ["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"], L = () => ["", "0", N], F = () => ["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: [W, U],
253
+ spacing: [H, U],
254
254
  blur: ["none", "", Y, N],
255
255
  brightness: _(),
256
256
  borderColor: [e],
@@ -258,9 +258,9 @@ const I = (e) => {
258
258
  borderSpacing: S(),
259
259
  borderWidth: M(),
260
260
  contrast: _(),
261
- grayscale: D(),
261
+ grayscale: L(),
262
262
  hueRotate: _(),
263
- invert: D(),
263
+ invert: L(),
264
264
  gap: S(),
265
265
  gradientColorStops: [e],
266
266
  gradientColorStopPositions: [ar, U],
@@ -270,7 +270,7 @@ const I = (e) => {
270
270
  padding: S(),
271
271
  saturate: _(),
272
272
  scale: _(),
273
- sepia: D(),
273
+ sepia: L(),
274
274
  skew: _(),
275
275
  space: S(),
276
276
  translate: S()
@@ -301,14 +301,14 @@ const I = (e) => {
301
301
  * @see https://tailwindcss.com/docs/break-after
302
302
  */
303
303
  "break-after": [{
304
- "break-after": R()
304
+ "break-after": F()
305
305
  }],
306
306
  /**
307
307
  * Break Before
308
308
  * @see https://tailwindcss.com/docs/break-before
309
309
  */
310
310
  "break-before": [{
311
- "break-before": R()
311
+ "break-before": F()
312
312
  }],
313
313
  /**
314
314
  * Break Inside
@@ -395,21 +395,21 @@ const I = (e) => {
395
395
  * @see https://tailwindcss.com/docs/overscroll-behavior
396
396
  */
397
397
  overscroll: [{
398
- overscroll: F()
398
+ overscroll: R()
399
399
  }],
400
400
  /**
401
401
  * Overscroll Behavior X
402
402
  * @see https://tailwindcss.com/docs/overscroll-behavior
403
403
  */
404
404
  "overscroll-x": [{
405
- "overscroll-x": F()
405
+ "overscroll-x": R()
406
406
  }],
407
407
  /**
408
408
  * Overscroll Behavior Y
409
409
  * @see https://tailwindcss.com/docs/overscroll-behavior
410
410
  */
411
411
  "overscroll-y": [{
412
- "overscroll-y": F()
412
+ "overscroll-y": R()
413
413
  }],
414
414
  /**
415
415
  * Position
@@ -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: [y]
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": [y]
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": [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: [y]
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: [y]
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: [y]
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: [y]
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: [y]
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: [y]
480
+ left: [x]
481
481
  }],
482
482
  /**
483
483
  * Visibility
@@ -525,14 +525,14 @@ const I = (e) => {
525
525
  * @see https://tailwindcss.com/docs/flex-grow
526
526
  */
527
527
  grow: [{
528
- grow: D()
528
+ grow: L()
529
529
  }],
530
530
  /**
531
531
  * Flex Shrink
532
532
  * @see https://tailwindcss.com/docs/flex-shrink
533
533
  */
534
534
  shrink: [{
535
- shrink: D()
535
+ shrink: L()
536
536
  }],
537
537
  /**
538
538
  * Order
@@ -627,21 +627,21 @@ const I = (e) => {
627
627
  * @see https://tailwindcss.com/docs/gap
628
628
  */
629
629
  gap: [{
630
- gap: [f]
630
+ gap: [h]
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": [f]
637
+ "gap-x": [h]
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": [f]
644
+ "gap-y": [h]
645
645
  }],
646
646
  /**
647
647
  * Justify Content
@@ -712,63 +712,63 @@ const I = (e) => {
712
712
  * @see https://tailwindcss.com/docs/padding
713
713
  */
714
714
  p: [{
715
- p: [h]
715
+ p: [f]
716
716
  }],
717
717
  /**
718
718
  * Padding X
719
719
  * @see https://tailwindcss.com/docs/padding
720
720
  */
721
721
  px: [{
722
- px: [h]
722
+ px: [f]
723
723
  }],
724
724
  /**
725
725
  * Padding Y
726
726
  * @see https://tailwindcss.com/docs/padding
727
727
  */
728
728
  py: [{
729
- py: [h]
729
+ py: [f]
730
730
  }],
731
731
  /**
732
732
  * Padding Start
733
733
  * @see https://tailwindcss.com/docs/padding
734
734
  */
735
735
  ps: [{
736
- ps: [h]
736
+ ps: [f]
737
737
  }],
738
738
  /**
739
739
  * Padding End
740
740
  * @see https://tailwindcss.com/docs/padding
741
741
  */
742
742
  pe: [{
743
- pe: [h]
743
+ pe: [f]
744
744
  }],
745
745
  /**
746
746
  * Padding Top
747
747
  * @see https://tailwindcss.com/docs/padding
748
748
  */
749
749
  pt: [{
750
- pt: [h]
750
+ pt: [f]
751
751
  }],
752
752
  /**
753
753
  * Padding Right
754
754
  * @see https://tailwindcss.com/docs/padding
755
755
  */
756
756
  pr: [{
757
- pr: [h]
757
+ pr: [f]
758
758
  }],
759
759
  /**
760
760
  * Padding Bottom
761
761
  * @see https://tailwindcss.com/docs/padding
762
762
  */
763
763
  pb: [{
764
- pb: [h]
764
+ pb: [f]
765
765
  }],
766
766
  /**
767
767
  * Padding Left
768
768
  * @see https://tailwindcss.com/docs/padding
769
769
  */
770
770
  pl: [{
771
- pl: [h]
771
+ pl: [f]
772
772
  }],
773
773
  /**
774
774
  * Margin
@@ -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", W, N]
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", W, U]
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", W, N]
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: [b]
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: [b]
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: [b]
1232
+ to: [m]
1233
1233
  }],
1234
1234
  /**
1235
1235
  * Gradient Color Stops From
@@ -1258,105 +1258,105 @@ const I = (e) => {
1258
1258
  * @see https://tailwindcss.com/docs/border-radius
1259
1259
  */
1260
1260
  rounded: [{
1261
- rounded: [l]
1261
+ rounded: [s]
1262
1262
  }],
1263
1263
  /**
1264
1264
  * Border Radius Start
1265
1265
  * @see https://tailwindcss.com/docs/border-radius
1266
1266
  */
1267
1267
  "rounded-s": [{
1268
- "rounded-s": [l]
1268
+ "rounded-s": [s]
1269
1269
  }],
1270
1270
  /**
1271
1271
  * Border Radius End
1272
1272
  * @see https://tailwindcss.com/docs/border-radius
1273
1273
  */
1274
1274
  "rounded-e": [{
1275
- "rounded-e": [l]
1275
+ "rounded-e": [s]
1276
1276
  }],
1277
1277
  /**
1278
1278
  * Border Radius Top
1279
1279
  * @see https://tailwindcss.com/docs/border-radius
1280
1280
  */
1281
1281
  "rounded-t": [{
1282
- "rounded-t": [l]
1282
+ "rounded-t": [s]
1283
1283
  }],
1284
1284
  /**
1285
1285
  * Border Radius Right
1286
1286
  * @see https://tailwindcss.com/docs/border-radius
1287
1287
  */
1288
1288
  "rounded-r": [{
1289
- "rounded-r": [l]
1289
+ "rounded-r": [s]
1290
1290
  }],
1291
1291
  /**
1292
1292
  * Border Radius Bottom
1293
1293
  * @see https://tailwindcss.com/docs/border-radius
1294
1294
  */
1295
1295
  "rounded-b": [{
1296
- "rounded-b": [l]
1296
+ "rounded-b": [s]
1297
1297
  }],
1298
1298
  /**
1299
1299
  * Border Radius Left
1300
1300
  * @see https://tailwindcss.com/docs/border-radius
1301
1301
  */
1302
1302
  "rounded-l": [{
1303
- "rounded-l": [l]
1303
+ "rounded-l": [s]
1304
1304
  }],
1305
1305
  /**
1306
1306
  * Border Radius Start Start
1307
1307
  * @see https://tailwindcss.com/docs/border-radius
1308
1308
  */
1309
1309
  "rounded-ss": [{
1310
- "rounded-ss": [l]
1310
+ "rounded-ss": [s]
1311
1311
  }],
1312
1312
  /**
1313
1313
  * Border Radius Start End
1314
1314
  * @see https://tailwindcss.com/docs/border-radius
1315
1315
  */
1316
1316
  "rounded-se": [{
1317
- "rounded-se": [l]
1317
+ "rounded-se": [s]
1318
1318
  }],
1319
1319
  /**
1320
1320
  * Border Radius End End
1321
1321
  * @see https://tailwindcss.com/docs/border-radius
1322
1322
  */
1323
1323
  "rounded-ee": [{
1324
- "rounded-ee": [l]
1324
+ "rounded-ee": [s]
1325
1325
  }],
1326
1326
  /**
1327
1327
  * Border Radius End Start
1328
1328
  * @see https://tailwindcss.com/docs/border-radius
1329
1329
  */
1330
1330
  "rounded-es": [{
1331
- "rounded-es": [l]
1331
+ "rounded-es": [s]
1332
1332
  }],
1333
1333
  /**
1334
1334
  * Border Radius Top Left
1335
1335
  * @see https://tailwindcss.com/docs/border-radius
1336
1336
  */
1337
1337
  "rounded-tl": [{
1338
- "rounded-tl": [l]
1338
+ "rounded-tl": [s]
1339
1339
  }],
1340
1340
  /**
1341
1341
  * Border Radius Top Right
1342
1342
  * @see https://tailwindcss.com/docs/border-radius
1343
1343
  */
1344
1344
  "rounded-tr": [{
1345
- "rounded-tr": [l]
1345
+ "rounded-tr": [s]
1346
1346
  }],
1347
1347
  /**
1348
1348
  * Border Radius Bottom Right
1349
1349
  * @see https://tailwindcss.com/docs/border-radius
1350
1350
  */
1351
1351
  "rounded-br": [{
1352
- "rounded-br": [l]
1352
+ "rounded-br": [s]
1353
1353
  }],
1354
1354
  /**
1355
1355
  * Border Radius Bottom Left
1356
1356
  * @see https://tailwindcss.com/docs/border-radius
1357
1357
  */
1358
1358
  "rounded-bl": [{
1359
- "rounded-bl": [l]
1359
+ "rounded-bl": [s]
1360
1360
  }],
1361
1361
  /**
1362
1362
  * Border Width
@@ -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": [W, N]
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: [W, U]
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": [W, U]
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": [m]
1699
+ "hue-rotate": [b]
1700
1700
  }],
1701
1701
  /**
1702
1702
  * Invert
@@ -1710,7 +1710,7 @@ const I = (e) => {
1710
1710
  * @see https://tailwindcss.com/docs/saturate
1711
1711
  */
1712
1712
  saturate: [{
1713
- saturate: [L]
1713
+ saturate: [D]
1714
1714
  }],
1715
1715
  /**
1716
1716
  * Sepia
@@ -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": [m]
1763
+ "backdrop-hue-rotate": [b]
1764
1764
  }],
1765
1765
  /**
1766
1766
  * Backdrop Invert
@@ -1781,7 +1781,7 @@ const I = (e) => {
1781
1781
  * @see https://tailwindcss.com/docs/backdrop-saturate
1782
1782
  */
1783
1783
  "backdrop-saturate": [{
1784
- "backdrop-saturate": [L]
1784
+ "backdrop-saturate": [D]
1785
1785
  }],
1786
1786
  /**
1787
1787
  * Backdrop Sepia
@@ -2197,7 +2197,7 @@ const I = (e) => {
2197
2197
  * @see https://tailwindcss.com/docs/stroke-width
2198
2198
  */
2199
2199
  "stroke-w": [{
2200
- stroke: [W, U, se]
2200
+ stroke: [H, U, se]
2201
2201
  }],
2202
2202
  /**
2203
2203
  * Stroke
@@ -2274,15 +2274,15 @@ const I = (e) => {
2274
2274
  };
2275
2275
  }, fr = /* @__PURE__ */ Xe(gr);
2276
2276
  function p(...e) {
2277
- return fr(Fe(e));
2277
+ return fr(Re(e));
2278
2278
  }
2279
2279
  function hr(e) {
2280
- const r = parseInt(e.slice(1, 3), 16) / 255, t = parseInt(e.slice(3, 5), 16) / 255, o = parseInt(e.slice(5, 7), 16) / 255, a = Math.max(r, t, o), l = Math.min(r, t, o);
2280
+ const r = parseInt(e.slice(1, 3), 16) / 255, t = parseInt(e.slice(3, 5), 16) / 255, o = parseInt(e.slice(5, 7), 16) / 255, a = Math.max(r, t, o), s = Math.min(r, t, o);
2281
2281
  let i = 0, n = 0;
2282
- const c = (a + l) / 2;
2283
- if (a !== l) {
2284
- const d = a - l;
2285
- switch (n = c > 0.5 ? d / (2 - a - l) : d / (a + l), a) {
2282
+ const c = (a + s) / 2;
2283
+ if (a !== s) {
2284
+ const d = a - s;
2285
+ switch (n = c > 0.5 ? d / (2 - a - s) : d / (a + s), a) {
2286
2286
  case r:
2287
2287
  i = ((t - o) / d + (t < o ? 6 : 0)) / 6;
2288
2288
  break;
@@ -2298,8 +2298,8 @@ function hr(e) {
2298
2298
  }
2299
2299
  function be(e, r, t) {
2300
2300
  t /= 100;
2301
- const o = r * Math.min(t, 1 - t) / 100, a = (l) => {
2302
- const i = (l + e / 30) % 12, n = t - o * Math.max(Math.min(i - 3, 9 - i, 1), -1);
2301
+ const o = r * Math.min(t, 1 - t) / 100, a = (s) => {
2302
+ const i = (s + e / 30) % 12, n = t - o * Math.max(Math.min(i - 3, 9 - i, 1), -1);
2303
2303
  return Math.round(255 * n).toString(16).padStart(2, "0");
2304
2304
  };
2305
2305
  return `#${a(0)}${a(8)}${a(4)}`;
@@ -2336,7 +2336,7 @@ const O = {
2336
2336
  active: "#4338ca"
2337
2337
  }
2338
2338
  }, Le = je(O);
2339
- function Kr() {
2339
+ function Yr() {
2340
2340
  return Oe(Le);
2341
2341
  }
2342
2342
  function ge(e) {
@@ -2373,20 +2373,20 @@ 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 Zr({
2376
+ function Jr({
2377
2377
  children: e,
2378
2378
  theme: r
2379
2379
  }) {
2380
2380
  const t = Ie(() => {
2381
- const o = r?.colors || {}, a = o.primary ? le(o.primary) : null, l = o.secondary ? le(o.secondary) : null, i = o.danger ? le(o.danger) : null;
2381
+ const o = r?.colors || {}, a = o.primary ? le(o.primary) : null, s = o.secondary ? le(o.secondary) : null, i = o.danger ? le(o.danger) : null;
2382
2382
  return {
2383
2383
  colors: {
2384
2384
  primary: o.primary || O.colors.primary,
2385
2385
  primaryLight: a?.light || O.colors.primaryLight,
2386
2386
  primaryDark: a?.dark || O.colors.primaryDark,
2387
2387
  secondary: o.secondary || O.colors.secondary,
2388
- secondaryLight: l?.light || O.colors.secondaryLight,
2389
- secondaryDark: l?.dark || O.colors.secondaryDark,
2388
+ secondaryLight: s?.light || O.colors.secondaryLight,
2389
+ secondaryDark: s?.dark || O.colors.secondaryDark,
2390
2390
  danger: o.danger || O.colors.danger,
2391
2391
  dangerLight: i?.light || O.colors.dangerLight,
2392
2392
  dangerDark: i?.dark || O.colors.dangerDark,
@@ -2404,14 +2404,15 @@ function Zr({
2404
2404
  }
2405
2405
  };
2406
2406
  }, [r]);
2407
- return typeof window < "u" && ge(t), H(() => {
2407
+ return typeof window < "u" && ge(t), W(() => {
2408
2408
  ge(t);
2409
2409
  }, [t]), B.createElement(Le.Provider, { value: t }, e);
2410
2410
  }
2411
2411
  const yr = {
2412
2412
  primary: "bg-primary text-white border-primary hover:bg-primary-dark hover:border-primary-dark active:bg-active",
2413
2413
  secondary: "bg-secondary text-white border-secondary hover:bg-secondary-dark hover:border-secondary-dark",
2414
- outline: "bg-transparent text-primary border-primary hover:bg-primary hover:text-white",
2414
+ "primary-outline": "bg-transparent text-primary border-primary hover:bg-primary hover:text-white",
2415
+ "secondary-outline": "bg-transparent text-secondary border-secondary hover:bg-secondary hover:text-white",
2415
2416
  ghost: "bg-transparent text-primary border-transparent hover:bg-primary hover:text-white hover:border-primary",
2416
2417
  light: "bg-light text-text border-border hover:bg-background-light",
2417
2418
  danger: "bg-transparent text-danger border-danger hover:text-white hover:bg-danger hover:border-danger active:bg-danger-dark",
@@ -2428,13 +2429,13 @@ function q({
2428
2429
  disabled: t = !1,
2429
2430
  type: o = "button",
2430
2431
  variant: a = "primary",
2431
- size: l = "md",
2432
+ size: s = "md",
2432
2433
  fullWidth: i = !1,
2433
2434
  loading: n = !1,
2434
2435
  className: c = "",
2435
2436
  ...d
2436
2437
  }) {
2437
- return /* @__PURE__ */ x(
2438
+ return /* @__PURE__ */ y(
2438
2439
  "button",
2439
2440
  {
2440
2441
  type: o,
@@ -2443,21 +2444,21 @@ function q({
2443
2444
  className: p(
2444
2445
  "inline-flex shadow-md hover:shadow-lg cursor-pointer items-center justify-center font-medium rounded-lg border transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50",
2445
2446
  t || n ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" : yr[a],
2446
- xr[l],
2447
+ xr[s],
2447
2448
  i && "w-full",
2448
2449
  n && "cursor-wait opacity-75",
2449
2450
  c
2450
2451
  ),
2451
2452
  ...d,
2452
2453
  children: [
2453
- n && /* @__PURE__ */ x(
2454
+ n && /* @__PURE__ */ y(
2454
2455
  "svg",
2455
2456
  {
2456
2457
  className: "w-4 h-4 mr-2 animate-spin",
2457
2458
  fill: "none",
2458
2459
  viewBox: "0 0 24 24",
2459
2460
  children: [
2460
- /* @__PURE__ */ s(
2461
+ /* @__PURE__ */ l(
2461
2462
  "circle",
2462
2463
  {
2463
2464
  className: "opacity-25",
@@ -2468,7 +2469,7 @@ function q({
2468
2469
  strokeWidth: "4"
2469
2470
  }
2470
2471
  ),
2471
- /* @__PURE__ */ s(
2472
+ /* @__PURE__ */ l(
2472
2473
  "path",
2473
2474
  {
2474
2475
  className: "opacity-75",
@@ -2490,49 +2491,49 @@ function vr({
2490
2491
  type: t = "text",
2491
2492
  value: o,
2492
2493
  onChange: a,
2493
- placeholder: l,
2494
+ placeholder: s,
2494
2495
  label: i,
2495
2496
  error: n,
2496
2497
  disabled: c = !1,
2497
2498
  required: d = !1,
2498
- colorScheme: m = "secondary",
2499
+ colorScheme: b = "secondary",
2499
2500
  className: k = "",
2500
- ...f
2501
+ ...h
2501
2502
  }) {
2502
2503
  const v = () => {
2503
- const y = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
2504
+ 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
2505
  if (n)
2505
2506
  return p(
2506
- y,
2507
+ x,
2507
2508
  "border-danger focus:border-danger focus:shadow-danger-light"
2508
2509
  );
2509
- switch (m) {
2510
+ switch (b) {
2510
2511
  case "primary":
2511
2512
  return p(
2512
- y,
2513
+ x,
2513
2514
  "text-primary border-primary focus:border-primary"
2514
2515
  );
2515
2516
  case "secondary":
2516
2517
  default:
2517
2518
  return p(
2518
- y,
2519
+ x,
2519
2520
  "text-secondary border-secondary focus:border-secondary"
2520
2521
  );
2521
2522
  }
2522
- }, b = () => m === "primary" ? "text-primary" : "text-secondary";
2523
- return /* @__PURE__ */ x("div", { className: p("mb-6", k), children: [
2524
- i && /* @__PURE__ */ x(
2523
+ }, m = () => b === "primary" ? "text-primary" : "text-secondary";
2524
+ return /* @__PURE__ */ y("div", { className: p("mb-6", k), children: [
2525
+ i && /* @__PURE__ */ y(
2525
2526
  "label",
2526
2527
  {
2527
2528
  htmlFor: e,
2528
- className: p("block mb-2 text-sm font-medium", b()),
2529
+ className: p("block mb-2 text-sm font-medium", m()),
2529
2530
  children: [
2530
2531
  i,
2531
- d && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
2532
+ d && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
2532
2533
  ]
2533
2534
  }
2534
2535
  ),
2535
- /* @__PURE__ */ s(
2536
+ /* @__PURE__ */ l(
2536
2537
  "input",
2537
2538
  {
2538
2539
  id: e,
@@ -2540,14 +2541,14 @@ function vr({
2540
2541
  type: t,
2541
2542
  value: o,
2542
2543
  onChange: a,
2543
- placeholder: l,
2544
+ placeholder: s,
2544
2545
  disabled: c,
2545
2546
  required: d,
2546
2547
  className: v(),
2547
- ...f
2548
+ ...h
2548
2549
  }
2549
2550
  ),
2550
- n && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: n })
2551
+ n && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: n })
2551
2552
  ] });
2552
2553
  }
2553
2554
  function wr({
@@ -2556,49 +2557,49 @@ function wr({
2556
2557
  value: t,
2557
2558
  onChange: o,
2558
2559
  placeholder: a,
2559
- label: l,
2560
+ label: s,
2560
2561
  error: i,
2561
2562
  disabled: n = !1,
2562
2563
  required: c = !1,
2563
2564
  colorScheme: d = "secondary",
2564
- className: m = "",
2565
+ className: b = "",
2565
2566
  rows: k = 4,
2566
- ...f
2567
+ ...h
2567
2568
  }) {
2568
2569
  const v = () => {
2569
- const y = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted resize-none";
2570
+ 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
2571
  if (i)
2571
2572
  return p(
2572
- y,
2573
+ x,
2573
2574
  "border-danger focus:border-danger focus:shadow-danger-light"
2574
2575
  );
2575
2576
  switch (d) {
2576
2577
  case "primary":
2577
2578
  return p(
2578
- y,
2579
+ x,
2579
2580
  "text-primary border-primary focus:border-primary"
2580
2581
  );
2581
2582
  case "secondary":
2582
2583
  default:
2583
2584
  return p(
2584
- y,
2585
+ x,
2585
2586
  "text-secondary border-secondary focus:border-secondary"
2586
2587
  );
2587
2588
  }
2588
- }, b = () => d === "primary" ? "text-primary" : "text-secondary";
2589
- return /* @__PURE__ */ x("div", { className: p("mb-6", m), children: [
2590
- l && /* @__PURE__ */ x(
2589
+ }, m = () => d === "primary" ? "text-primary" : "text-secondary";
2590
+ return /* @__PURE__ */ y("div", { className: p("mb-6", b), children: [
2591
+ s && /* @__PURE__ */ y(
2591
2592
  "label",
2592
2593
  {
2593
2594
  htmlFor: e,
2594
- className: p("block mb-2 text-sm font-medium", b()),
2595
+ className: p("block mb-2 text-sm font-medium", m()),
2595
2596
  children: [
2596
- l,
2597
- c && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
2597
+ s,
2598
+ c && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
2598
2599
  ]
2599
2600
  }
2600
2601
  ),
2601
- /* @__PURE__ */ s(
2602
+ /* @__PURE__ */ l(
2602
2603
  "textarea",
2603
2604
  {
2604
2605
  id: e,
@@ -2610,28 +2611,33 @@ function wr({
2610
2611
  required: c,
2611
2612
  rows: k,
2612
2613
  className: v(),
2613
- ...f
2614
+ ...h
2614
2615
  }
2615
2616
  ),
2616
- i && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
2617
+ i && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
2617
2618
  ] });
2618
2619
  }
2619
2620
  const De = { Input: vr, InputArea: wr };
2620
- function kr({
2621
+ function Kr({
2621
2622
  id: e,
2622
2623
  name: r,
2623
2624
  checked: t = !1,
2624
2625
  onChange: o,
2625
2626
  disabled: a = !1,
2626
- label: l,
2627
+ label: s,
2627
2628
  colorScheme: i = "secondary",
2628
2629
  size: n = "md",
2629
2630
  className: c = "",
2630
2631
  ...d
2631
2632
  }) {
2632
- const [m, k] = $(t), f = (h) => {
2633
- const L = h.target.checked;
2634
- k(L), o?.(L);
2633
+ const [b, k] = $(t);
2634
+ W(() => {
2635
+ k(t);
2636
+ }, [t]);
2637
+ const h = () => {
2638
+ if (a) return;
2639
+ const f = !b;
2640
+ k(f), o?.(f);
2635
2641
  }, v = () => ({
2636
2642
  primary: {
2637
2643
  bg: "bg-primary",
@@ -2643,7 +2649,7 @@ function kr({
2643
2649
  border: "border-secondary",
2644
2650
  text: "text-secondary"
2645
2651
  }
2646
- })[i], b = () => {
2652
+ })[i], m = () => {
2647
2653
  switch (n) {
2648
2654
  case "sm":
2649
2655
  return "w-10 h-6";
@@ -2653,7 +2659,7 @@ function kr({
2653
2659
  default:
2654
2660
  return "w-13 h-7";
2655
2661
  }
2656
- }, y = () => {
2662
+ }, x = () => {
2657
2663
  switch (n) {
2658
2664
  case "sm":
2659
2665
  return "w-5 h-5";
@@ -2664,7 +2670,7 @@ function kr({
2664
2670
  return "w-6 h-6";
2665
2671
  }
2666
2672
  }, u = () => {
2667
- if (!m) return "translate-x-0";
2673
+ if (!b) return "translate-x-0";
2668
2674
  switch (n) {
2669
2675
  case "sm":
2670
2676
  return "translate-x-5";
@@ -2675,65 +2681,76 @@ function kr({
2675
2681
  return "translate-x-6";
2676
2682
  }
2677
2683
  }, w = v();
2678
- return /* @__PURE__ */ x("div", { className: p("flex items-center gap-3", c), children: [
2679
- /* @__PURE__ */ x("div", { className: "relative", children: [
2680
- /* @__PURE__ */ s(
2681
- "input",
2682
- {
2683
- type: "checkbox",
2684
- id: e,
2685
- name: r,
2686
- checked: m,
2687
- onChange: f,
2688
- disabled: a,
2689
- className: "sr-only",
2690
- ...d
2691
- }
2684
+ return /* @__PURE__ */ y(
2685
+ "div",
2686
+ {
2687
+ className: p(
2688
+ "flex items-center gap-3",
2689
+ a ? "cursor-not-allowed" : "cursor-pointer",
2690
+ c
2692
2691
  ),
2693
- /* @__PURE__ */ s(
2694
- "label",
2695
- {
2696
- htmlFor: e,
2697
- className: p(
2698
- "block cursor-pointer transition-all duration-300 rounded-full border-2",
2699
- b(),
2700
- m ? p(w.bg, w.border) : "bg-gray-200 border-gray-300",
2701
- a ? "opacity-50 cursor-not-allowed" : "hover:shadow-md"
2692
+ onClick: h,
2693
+ children: [
2694
+ /* @__PURE__ */ y("div", { className: "relative", children: [
2695
+ /* @__PURE__ */ l(
2696
+ "input",
2697
+ {
2698
+ type: "checkbox",
2699
+ id: e,
2700
+ name: r,
2701
+ checked: b,
2702
+ onChange: () => {
2703
+ },
2704
+ disabled: a,
2705
+ className: "sr-only",
2706
+ "aria-label": s || r,
2707
+ ...d
2708
+ }
2702
2709
  ),
2703
- children: /* @__PURE__ */ s(
2704
- "span",
2710
+ /* @__PURE__ */ l(
2711
+ "div",
2705
2712
  {
2706
2713
  className: p(
2707
- "absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",
2708
- y(),
2709
- u()
2714
+ "block transition-all duration-300 rounded-full border-2",
2715
+ m(),
2716
+ b ? p(w.bg, w.border) : "bg-gray-200 border-gray-300",
2717
+ a ? "opacity-50" : "hover:shadow-md"
2718
+ ),
2719
+ children: /* @__PURE__ */ l(
2720
+ "span",
2721
+ {
2722
+ className: p(
2723
+ "absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",
2724
+ x(),
2725
+ u()
2726
+ )
2727
+ }
2710
2728
  )
2711
2729
  }
2712
2730
  )
2713
- }
2714
- )
2715
- ] }),
2716
- l && /* @__PURE__ */ s(
2717
- "label",
2718
- {
2719
- htmlFor: e,
2720
- className: p(
2721
- "text-sm font-medium cursor-pointer select-none",
2722
- w.text,
2723
- a && "opacity-50 cursor-not-allowed"
2724
- ),
2725
- children: l
2726
- }
2727
- )
2728
- ] });
2731
+ ] }),
2732
+ s && /* @__PURE__ */ l(
2733
+ "span",
2734
+ {
2735
+ className: p(
2736
+ "text-sm font-medium select-none",
2737
+ w.text,
2738
+ a && "opacity-50"
2739
+ ),
2740
+ children: s
2741
+ }
2742
+ )
2743
+ ]
2744
+ }
2745
+ );
2729
2746
  }
2730
- const Cr = { Toggle: kr }, Nr = ({
2747
+ const kr = ({
2731
2748
  size: e = 40,
2732
2749
  wrapperStyle: r = {},
2733
2750
  wrapperClass: t = "",
2734
2751
  ariaLabel: o = "Cargando...",
2735
2752
  label: a = "Cargando...",
2736
- visible: l = !0,
2753
+ visible: s = !0,
2737
2754
  direction: i = "column"
2738
2755
  }) => {
2739
2756
  const n = {
@@ -2744,12 +2761,12 @@ const Cr = { Toggle: kr }, Nr = ({
2744
2761
  minHeight: "100px",
2745
2762
  ...r
2746
2763
  };
2747
- return /* @__PURE__ */ x("div", { style: n, className: t, children: [
2748
- /* @__PURE__ */ s("label", { children: a }),
2749
- /* @__PURE__ */ s(
2764
+ return /* @__PURE__ */ y("div", { style: n, className: t, children: [
2765
+ /* @__PURE__ */ l("label", { children: a }),
2766
+ /* @__PURE__ */ l(
2750
2767
  Te,
2751
2768
  {
2752
- visible: l,
2769
+ visible: s,
2753
2770
  height: e,
2754
2771
  width: e,
2755
2772
  ariaLabel: o,
@@ -2760,20 +2777,20 @@ const Cr = { Toggle: kr }, Nr = ({
2760
2777
  }
2761
2778
  )
2762
2779
  ] });
2763
- }, { Input: ie } = De, Xr = ({
2780
+ }, { Input: ie } = De, Zr = ({
2764
2781
  title: e = "Iniciar Sesión",
2765
2782
  showForgotPassword: r = !0,
2766
2783
  onlyForgotPassword: t = !1,
2767
2784
  className: o = "",
2768
2785
  onLogin: a,
2769
- onForgotPassword: l
2786
+ onForgotPassword: s
2770
2787
  }) => {
2771
2788
  const [i, n] = $({
2772
2789
  email: "",
2773
2790
  password: ""
2774
- }), [c, d] = $({}), [m, k] = $(!1), [f, v] = $(
2791
+ }), [c, d] = $({}), [b, k] = $(!1), [h, v] = $(
2775
2792
  t ? "forgot" : "login"
2776
- ), b = (P, g) => {
2793
+ ), m = (P, g) => {
2777
2794
  switch (P) {
2778
2795
  case "email":
2779
2796
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g) ? "" : "Por favor ingresa un email válido";
@@ -2782,19 +2799,19 @@ const Cr = { Toggle: kr }, Nr = ({
2782
2799
  default:
2783
2800
  return "";
2784
2801
  }
2785
- }, y = (P) => {
2802
+ }, x = (P) => {
2786
2803
  const { name: g, value: j } = P.target;
2787
- n((F) => ({
2788
- ...F,
2804
+ n((R) => ({
2805
+ ...R,
2789
2806
  [g]: j
2790
- })), c[g] && d((F) => ({
2791
- ...F,
2807
+ })), c[g] && d((R) => ({
2808
+ ...R,
2792
2809
  [g]: ""
2793
2810
  }));
2794
2811
  }, u = () => {
2795
- const P = {}, g = b("email", i.email);
2796
- if (g && (P.email = g), f === "login") {
2797
- const j = b("password", i.password);
2812
+ const P = {}, g = m("email", i.email);
2813
+ if (g && (P.email = g), h === "login") {
2814
+ const j = m("password", i.password);
2798
2815
  j && (P.password = j);
2799
2816
  }
2800
2817
  return d(P), Object.keys(P).length === 0;
@@ -2802,7 +2819,7 @@ const Cr = { Toggle: kr }, Nr = ({
2802
2819
  if (P.preventDefault(), !!u()) {
2803
2820
  k(!0);
2804
2821
  try {
2805
- switch (f) {
2822
+ switch (h) {
2806
2823
  case "login":
2807
2824
  a && await a({
2808
2825
  email: i.email,
@@ -2810,7 +2827,7 @@ const Cr = { Toggle: kr }, Nr = ({
2810
2827
  });
2811
2828
  break;
2812
2829
  case "forgot":
2813
- l && await l(i.email);
2830
+ s && await s(i.email);
2814
2831
  break;
2815
2832
  }
2816
2833
  } catch (g) {
@@ -2819,12 +2836,12 @@ const Cr = { Toggle: kr }, Nr = ({
2819
2836
  k(!1);
2820
2837
  }
2821
2838
  }
2822
- }, h = (P) => {
2839
+ }, f = (P) => {
2823
2840
  v(P), d({}), n({ email: i.email, password: "" });
2824
- }, L = () => {
2825
- switch (f) {
2841
+ }, D = () => {
2842
+ switch (h) {
2826
2843
  case "forgot":
2827
- return /* @__PURE__ */ s(
2844
+ return /* @__PURE__ */ l(
2828
2845
  ie,
2829
2846
  {
2830
2847
  id: "email",
@@ -2833,15 +2850,15 @@ const Cr = { Toggle: kr }, Nr = ({
2833
2850
  placeholder: "Ingresa tu email",
2834
2851
  label: "Email",
2835
2852
  value: i.email,
2836
- onChange: y,
2853
+ onChange: x,
2837
2854
  error: c.email,
2838
- disabled: m,
2855
+ disabled: b,
2839
2856
  colorScheme: "secondary"
2840
2857
  }
2841
2858
  );
2842
2859
  default:
2843
- return /* @__PURE__ */ x(Ae, { children: [
2844
- /* @__PURE__ */ s(
2860
+ return /* @__PURE__ */ y(Ae, { children: [
2861
+ /* @__PURE__ */ l(
2845
2862
  ie,
2846
2863
  {
2847
2864
  id: "email",
@@ -2850,13 +2867,13 @@ const Cr = { Toggle: kr }, Nr = ({
2850
2867
  placeholder: "Ingresa tu email",
2851
2868
  label: "Email",
2852
2869
  value: i.email,
2853
- onChange: y,
2870
+ onChange: x,
2854
2871
  error: c.email,
2855
- disabled: m,
2872
+ disabled: b,
2856
2873
  colorScheme: "secondary"
2857
2874
  }
2858
2875
  ),
2859
- /* @__PURE__ */ s(
2876
+ /* @__PURE__ */ l(
2860
2877
  ie,
2861
2878
  {
2862
2879
  id: "password",
@@ -2865,56 +2882,56 @@ const Cr = { Toggle: kr }, Nr = ({
2865
2882
  placeholder: "Ingresa tu contraseña",
2866
2883
  label: "Contraseña",
2867
2884
  value: i.password,
2868
- onChange: y,
2885
+ onChange: x,
2869
2886
  error: c.password,
2870
- disabled: m,
2887
+ disabled: b,
2871
2888
  colorScheme: "secondary"
2872
2889
  }
2873
2890
  )
2874
2891
  ] });
2875
2892
  }
2876
2893
  }, E = () => {
2877
- switch (f) {
2894
+ switch (h) {
2878
2895
  case "forgot":
2879
2896
  return t ? "Cambiar Contraseña" : "Recuperar Contraseña";
2880
2897
  default:
2881
2898
  return e;
2882
2899
  }
2883
2900
  }, z = () => {
2884
- if (m)
2885
- return /* @__PURE__ */ s(Nr, { size: 20, wrapperStyle: { minHeight: "auto" } });
2886
- switch (f) {
2901
+ if (b)
2902
+ return /* @__PURE__ */ l(kr, { size: 20, wrapperStyle: { minHeight: "auto" } });
2903
+ switch (h) {
2887
2904
  case "forgot":
2888
2905
  return "Enviar Enlace";
2889
2906
  default:
2890
2907
  return "Entrar";
2891
2908
  }
2892
2909
  };
2893
- return /* @__PURE__ */ s(
2910
+ return /* @__PURE__ */ l(
2894
2911
  "div",
2895
2912
  {
2896
2913
  className: `flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${o || ""}`,
2897
- children: /* @__PURE__ */ x("div", { className: "w-full max-w-100 p-12 bg-white rounded-2xl shadow-lg animate-[fadeIn_0.3s_ease-out] sm:p-8", children: [
2898
- /* @__PURE__ */ s("h2", { className: "text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8", children: E() }),
2899
- /* @__PURE__ */ s("div", { className: "space-y-4 mb-6", children: L() }),
2900
- /* @__PURE__ */ s("form", { onSubmit: w, children: /* @__PURE__ */ s(
2914
+ 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: [
2915
+ /* @__PURE__ */ l("h2", { className: "text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8", children: E() }),
2916
+ /* @__PURE__ */ l("div", { className: "space-y-4 mb-6", children: D() }),
2917
+ /* @__PURE__ */ l("form", { onSubmit: w, children: /* @__PURE__ */ l(
2901
2918
  q,
2902
2919
  {
2903
2920
  type: "submit",
2904
- disabled: m,
2905
- loading: m,
2921
+ disabled: b,
2922
+ loading: b,
2906
2923
  fullWidth: !0,
2907
2924
  variant: "primary",
2908
2925
  size: "lg",
2909
2926
  className: "mb-6",
2910
- children: !m && z()
2927
+ children: !b && z()
2911
2928
  }
2912
2929
  ) }),
2913
- f === "login" && r && /* @__PURE__ */ s(
2930
+ h === "login" && r && /* @__PURE__ */ l(
2914
2931
  q,
2915
2932
  {
2916
2933
  type: "button",
2917
- onClick: () => h("forgot"),
2934
+ onClick: () => f("forgot"),
2918
2935
  variant: "link",
2919
2936
  size: "sm",
2920
2937
  fullWidth: !0,
@@ -2922,11 +2939,11 @@ const Cr = { Toggle: kr }, Nr = ({
2922
2939
  children: "¿Olvidaste tu contraseña?"
2923
2940
  }
2924
2941
  ),
2925
- f === "forgot" && !t && /* @__PURE__ */ s(
2942
+ h === "forgot" && !t && /* @__PURE__ */ l(
2926
2943
  q,
2927
2944
  {
2928
2945
  type: "button",
2929
- onClick: () => h("login"),
2946
+ onClick: () => f("login"),
2930
2947
  variant: "link",
2931
2948
  size: "sm",
2932
2949
  fullWidth: !0,
@@ -2944,18 +2961,18 @@ var Se = {
2944
2961
  className: void 0,
2945
2962
  style: void 0,
2946
2963
  attr: void 0
2947
- }, fe = B.createContext && /* @__PURE__ */ B.createContext(Se), Mr = ["attr", "size", "title"];
2948
- function zr(e, r) {
2964
+ }, fe = B.createContext && /* @__PURE__ */ B.createContext(Se), Cr = ["attr", "size", "title"];
2965
+ function Nr(e, r) {
2949
2966
  if (e == null) return {};
2950
- var t = Lr(e, r), o, a;
2967
+ var t = Mr(e, r), o, a;
2951
2968
  if (Object.getOwnPropertySymbols) {
2952
- var l = Object.getOwnPropertySymbols(e);
2953
- for (a = 0; a < l.length; a++)
2954
- o = l[a], !(r.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
2969
+ var s = Object.getOwnPropertySymbols(e);
2970
+ for (a = 0; a < s.length; a++)
2971
+ o = s[a], !(r.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
2955
2972
  }
2956
2973
  return t;
2957
2974
  }
2958
- function Lr(e, r) {
2975
+ function Mr(e, r) {
2959
2976
  if (e == null) return {};
2960
2977
  var t = {};
2961
2978
  for (var o in e)
@@ -2989,21 +3006,21 @@ function ae(e) {
2989
3006
  for (var r = 1; r < arguments.length; r++) {
2990
3007
  var t = arguments[r] != null ? arguments[r] : {};
2991
3008
  r % 2 ? he(Object(t), !0).forEach(function(o) {
2992
- Dr(e, o, t[o]);
3009
+ zr(e, o, t[o]);
2993
3010
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : he(Object(t)).forEach(function(o) {
2994
3011
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
2995
3012
  });
2996
3013
  }
2997
3014
  return e;
2998
3015
  }
2999
- function Dr(e, r, t) {
3000
- return r = Sr(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
3016
+ function zr(e, r, t) {
3017
+ return r = Lr(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
3001
3018
  }
3002
- function Sr(e) {
3003
- var r = Er(e, "string");
3019
+ function Lr(e) {
3020
+ var r = Dr(e, "string");
3004
3021
  return typeof r == "symbol" ? r : r + "";
3005
3022
  }
3006
- function Er(e, r) {
3023
+ function Dr(e, r) {
3007
3024
  if (typeof e != "object" || !e) return e;
3008
3025
  var t = e[Symbol.toPrimitive];
3009
3026
  if (t !== void 0) {
@@ -3019,17 +3036,17 @@ function Ee(e) {
3019
3036
  }, r.attr), Ee(r.child)));
3020
3037
  }
3021
3038
  function J(e) {
3022
- return (r) => /* @__PURE__ */ B.createElement(Pr, ne({
3039
+ return (r) => /* @__PURE__ */ B.createElement(Sr, ne({
3023
3040
  attr: ae({}, e.attr)
3024
3041
  }, r), Ee(e.child));
3025
3042
  }
3026
- function Pr(e) {
3043
+ function Sr(e) {
3027
3044
  var r = (t) => {
3028
3045
  var {
3029
3046
  attr: o,
3030
3047
  size: a,
3031
- title: l
3032
- } = e, i = zr(e, Mr), n = a || t.size || "1em", c;
3048
+ title: s
3049
+ } = e, i = Nr(e, Cr), n = a || t.size || "1em", c;
3033
3050
  return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ B.createElement("svg", ne({
3034
3051
  stroke: "currentColor",
3035
3052
  fill: "currentColor",
@@ -3042,22 +3059,22 @@ function Pr(e) {
3042
3059
  height: n,
3043
3060
  width: n,
3044
3061
  xmlns: "http://www.w3.org/2000/svg"
3045
- }), l && /* @__PURE__ */ B.createElement("title", null, l), e.children);
3062
+ }), s && /* @__PURE__ */ B.createElement("title", null, s), e.children);
3046
3063
  };
3047
3064
  return fe !== void 0 ? /* @__PURE__ */ B.createElement(fe.Consumer, null, (t) => r(t)) : r(Se);
3048
3065
  }
3049
- function Ar(e) {
3066
+ function Er(e) {
3050
3067
  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
3068
  }
3052
- const Ir = (e, r = 500) => {
3069
+ const Pr = (e, r = 500) => {
3053
3070
  const [t, o] = $(e);
3054
- return H(() => {
3071
+ return W(() => {
3055
3072
  const a = setTimeout(() => {
3056
3073
  o(e);
3057
3074
  }, r);
3058
3075
  return () => clearTimeout(a);
3059
3076
  }, [e, r]), t;
3060
- }, Qr = () => ({ showToast: (r, t) => {
3077
+ }, Xr = () => ({ showToast: (r, t) => {
3061
3078
  const o = {
3062
3079
  position: "bottom-right",
3063
3080
  autoClose: 2e3,
@@ -3085,9 +3102,9 @@ const Ir = (e, r = 500) => {
3085
3102
  break;
3086
3103
  }
3087
3104
  } });
3088
- function qr(e = 768) {
3105
+ function Qr(e = 768) {
3089
3106
  const [r, t] = $(() => typeof window > "u" ? !1 : window.innerWidth < e);
3090
- return H(() => {
3107
+ return W(() => {
3091
3108
  if (typeof window > "u")
3092
3109
  return;
3093
3110
  const o = () => {
@@ -3098,21 +3115,21 @@ function qr(e = 768) {
3098
3115
  };
3099
3116
  }, [e]), r;
3100
3117
  }
3101
- function et({
3118
+ function qr({
3102
3119
  value: e,
3103
3120
  onChange: r,
3104
3121
  placeholder: t = "Search...",
3105
3122
  disabled: o = !1,
3106
3123
  colorScheme: a = "secondary",
3107
- label: l,
3124
+ label: s,
3108
3125
  className: i = "",
3109
3126
  debounceDelay: n = 500,
3110
3127
  ...c
3111
3128
  }) {
3112
- const [d, m] = $(e || ""), k = Ir(d, n), f = ve(r, [r]);
3113
- H(() => {
3114
- f(k);
3115
- }, [k, f]);
3129
+ const [d, b] = $(e || ""), k = Pr(d, n), h = ve(r, [r]);
3130
+ W(() => {
3131
+ h(k);
3132
+ }, [k, h]);
3116
3133
  const v = () => {
3117
3134
  const u = "w-full px-4 py-4 pl-10 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
3118
3135
  switch (a) {
@@ -3128,31 +3145,31 @@ function et({
3128
3145
  "text-secondary border-secondary focus:border-secondary"
3129
3146
  );
3130
3147
  }
3131
- }, b = () => a === "primary" ? "text-primary" : "text-secondary", y = () => a === "primary" ? "text-primary" : "text-secondary";
3132
- return /* @__PURE__ */ x("div", { className: p("mb-0", i), children: [
3133
- l && /* @__PURE__ */ s(
3148
+ }, m = () => a === "primary" ? "text-primary" : "text-secondary", x = () => a === "primary" ? "text-primary" : "text-secondary";
3149
+ return /* @__PURE__ */ y("div", { className: p("mb-0", i), children: [
3150
+ s && /* @__PURE__ */ l(
3134
3151
  "label",
3135
3152
  {
3136
- className: p("block mb-2 text-sm font-medium", y()),
3137
- children: l
3153
+ className: p("block mb-2 text-sm font-medium", x()),
3154
+ children: s
3138
3155
  }
3139
3156
  ),
3140
- /* @__PURE__ */ x("div", { className: "relative w-full", children: [
3141
- /* @__PURE__ */ s(
3142
- Ar,
3157
+ /* @__PURE__ */ y("div", { className: "relative w-full", children: [
3158
+ /* @__PURE__ */ l(
3159
+ Er,
3143
3160
  {
3144
3161
  className: p(
3145
3162
  "absolute left-3 top-1/2 -translate-y-1/2 text-base pointer-events-none",
3146
- b()
3163
+ m()
3147
3164
  )
3148
3165
  }
3149
3166
  ),
3150
- /* @__PURE__ */ s(
3167
+ /* @__PURE__ */ l(
3151
3168
  "input",
3152
3169
  {
3153
3170
  type: "text",
3154
3171
  value: d,
3155
- onChange: (u) => m(u.target.value),
3172
+ onChange: (u) => b(u.target.value),
3156
3173
  placeholder: t,
3157
3174
  disabled: o,
3158
3175
  className: v(),
@@ -3162,52 +3179,52 @@ function et({
3162
3179
  ] })
3163
3180
  ] });
3164
3181
  }
3165
- function jr(e) {
3182
+ function Ar(e) {
3166
3183
  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
3184
  }
3168
- function Or(e) {
3185
+ function Ir(e) {
3169
3186
  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
3187
  }
3171
- function rt({
3188
+ function et({
3172
3189
  labelPage: e = "Page",
3173
3190
  labelOf: r = "of",
3174
3191
  setPagination: t,
3175
3192
  totalPages: o,
3176
3193
  currentPage: a,
3177
- showLabel: l = !0,
3194
+ showLabel: s = !0,
3178
3195
  className: i = "",
3179
3196
  isLoading: n = !1,
3180
3197
  fetchPage: c
3181
3198
  }) {
3182
- const d = parseInt(String(a)) === 1 || parseInt(String(o)) === 0 || n, m = parseInt(String(a)) === parseInt(String(o)) || parseInt(String(o)) === 0 || n, k = () => {
3199
+ 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
3200
  n || (c ? c(a - 1) : t && t((v) => ({
3184
3201
  ...v,
3185
3202
  page: v.page - 1
3186
3203
  })));
3187
- }, f = () => {
3204
+ }, h = () => {
3188
3205
  n || (c ? c(a + 1) : t && t((v) => ({
3189
3206
  ...v,
3190
3207
  page: v.page + 1
3191
3208
  })));
3192
3209
  };
3193
- return /* @__PURE__ */ x("div", { className: p("flex justify-center items-center mt-8", i), children: [
3194
- /* @__PURE__ */ s(
3210
+ return /* @__PURE__ */ y("div", { className: p("flex justify-center items-center mt-8", i), children: [
3211
+ /* @__PURE__ */ l(
3195
3212
  q,
3196
3213
  {
3197
3214
  disabled: d,
3198
3215
  onClick: k,
3199
3216
  variant: "secondary",
3200
- children: /* @__PURE__ */ s(jr, { size: 14 })
3217
+ children: /* @__PURE__ */ l(Ar, { size: 14 })
3201
3218
  }
3202
3219
  ),
3203
- /* @__PURE__ */ s("h5", { className: "font-bold mx-2.5 text-text", children: `${l ? e : ""} ${a}${l ? ` ${r} ` : " / "}${o}` }),
3204
- /* @__PURE__ */ s(
3220
+ /* @__PURE__ */ l("h5", { className: "font-bold mx-2.5 text-text", children: `${s ? e : ""} ${a}${s ? ` ${r} ` : " / "}${o}` }),
3221
+ /* @__PURE__ */ l(
3205
3222
  q,
3206
3223
  {
3207
- disabled: m,
3208
- onClick: f,
3224
+ disabled: b,
3225
+ onClick: h,
3209
3226
  variant: "primary",
3210
- children: /* @__PURE__ */ s(Or, { size: 14 })
3227
+ children: /* @__PURE__ */ l(Ir, { size: 14 })
3211
3228
  }
3212
3229
  )
3213
3230
  ] });
@@ -3215,45 +3232,45 @@ function rt({
3215
3232
  function Pe(e) {
3216
3233
  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
3234
  }
3218
- function Tr(e) {
3235
+ function jr(e) {
3219
3236
  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
3237
  }
3221
- function $r(e) {
3238
+ function Or(e) {
3222
3239
  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
3240
  }
3224
- function tt({
3241
+ function rt({
3225
3242
  title: e,
3226
3243
  subtitle: r,
3227
3244
  children: t,
3228
3245
  defaultExpanded: o = !1,
3229
3246
  expanded: a,
3230
- onToggle: l,
3247
+ onToggle: s,
3231
3248
  className: i = "",
3232
3249
  colorScheme: n = "primary",
3233
3250
  icon: c,
3234
3251
  disabled: d = !1,
3235
- headerExtra: m
3252
+ headerExtra: b
3236
3253
  }) {
3237
- const [k, f] = $(o), v = a !== void 0 ? a : k, b = () => {
3254
+ const [k, h] = $(o), v = a !== void 0 ? a : k, m = () => {
3238
3255
  if (d) return;
3239
- const h = !v;
3240
- a === void 0 && f(h), l?.(h);
3241
- }, y = () => n === "primary" ? "border-primary" : "border-secondary", u = () => n === "primary" ? "text-primary" : "text-secondary", w = () => n === "primary" ? "hover:bg-primary/5" : "hover:bg-secondary/5";
3242
- return /* @__PURE__ */ x(
3256
+ const f = !v;
3257
+ a === void 0 && h(f), s?.(f);
3258
+ }, 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";
3259
+ return /* @__PURE__ */ y(
3243
3260
  "div",
3244
3261
  {
3245
3262
  className: p(
3246
3263
  "w-full rounded-lg border-2 bg-background transition-all duration-300",
3247
- y(),
3264
+ x(),
3248
3265
  v && "shadow-lg",
3249
3266
  i
3250
3267
  ),
3251
3268
  children: [
3252
- /* @__PURE__ */ x(
3269
+ /* @__PURE__ */ y(
3253
3270
  "button",
3254
3271
  {
3255
3272
  type: "button",
3256
- onClick: b,
3273
+ onClick: m,
3257
3274
  disabled: d,
3258
3275
  className: p(
3259
3276
  "w-full flex cursor-pointer items-center justify-between p-4 text-left transition-all duration-300 rounded-lg",
@@ -3262,22 +3279,22 @@ function tt({
3262
3279
  ),
3263
3280
  "aria-expanded": v,
3264
3281
  children: [
3265
- /* @__PURE__ */ x("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
3266
- c && /* @__PURE__ */ s("div", { className: p("shrink-0", u()), children: c }),
3267
- /* @__PURE__ */ x("div", { className: "flex-1 min-w-0", children: [
3268
- /* @__PURE__ */ s(
3282
+ /* @__PURE__ */ y("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
3283
+ c && /* @__PURE__ */ l("div", { className: p("shrink-0", u()), children: c }),
3284
+ /* @__PURE__ */ y("div", { className: "flex-1 min-w-0", children: [
3285
+ /* @__PURE__ */ l(
3269
3286
  "h3",
3270
3287
  {
3271
3288
  className: p("text-base font-medium truncate", u()),
3272
3289
  children: e
3273
3290
  }
3274
3291
  ),
3275
- r && /* @__PURE__ */ s("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
3292
+ r && /* @__PURE__ */ l("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
3276
3293
  ] })
3277
3294
  ] }),
3278
- /* @__PURE__ */ x("div", { className: "flex items-center gap-3 shrink-0", children: [
3279
- m && /* @__PURE__ */ s("div", { onClick: (h) => h.stopPropagation(), children: m }),
3280
- /* @__PURE__ */ s(
3295
+ /* @__PURE__ */ y("div", { className: "flex items-center gap-3 shrink-0", children: [
3296
+ b && /* @__PURE__ */ l("div", { onClick: (f) => f.stopPropagation(), children: b }),
3297
+ /* @__PURE__ */ l(
3281
3298
  "div",
3282
3299
  {
3283
3300
  className: p(
@@ -3285,69 +3302,69 @@ function tt({
3285
3302
  u(),
3286
3303
  v && "rotate-180"
3287
3304
  ),
3288
- children: /* @__PURE__ */ s(Pe, { className: "h-5 w-5" })
3305
+ children: /* @__PURE__ */ l(Pe, { className: "h-5 w-5" })
3289
3306
  }
3290
3307
  )
3291
3308
  ] })
3292
3309
  ]
3293
3310
  }
3294
3311
  ),
3295
- /* @__PURE__ */ s(
3312
+ /* @__PURE__ */ l(
3296
3313
  "div",
3297
3314
  {
3298
3315
  className: p(
3299
3316
  "overflow-hidden transition-all duration-300 ease-in-out",
3300
3317
  v ? "max-h-500 opacity-100" : "max-h-0 opacity-0"
3301
3318
  ),
3302
- children: /* @__PURE__ */ s("div", { className: p("p-4 pt-0 border-t-0", y()), children: /* @__PURE__ */ s("div", { className: "border-t border-border pt-4", children: t }) })
3319
+ children: /* @__PURE__ */ l("div", { className: p("p-4 pt-0 border-t-0", x()), children: /* @__PURE__ */ l("div", { className: "border-t border-border pt-4", children: t }) })
3303
3320
  }
3304
3321
  )
3305
3322
  ]
3306
3323
  }
3307
3324
  );
3308
3325
  }
3309
- function ot({ children: e, className: r = "" }) {
3310
- return /* @__PURE__ */ s("div", { className: p("py-4", r), children: e });
3326
+ function tt({ children: e, className: r = "" }) {
3327
+ return /* @__PURE__ */ l("div", { className: p("py-4", r), children: e });
3311
3328
  }
3312
- function nt({
3329
+ function ot({
3313
3330
  options: e,
3314
3331
  value: r,
3315
3332
  onChange: t,
3316
3333
  children: o,
3317
3334
  className: a = "",
3318
- colorScheme: l = "primary",
3335
+ colorScheme: s = "primary",
3319
3336
  variant: i = "underline"
3320
3337
  }) {
3321
3338
  const [n, c] = $(
3322
3339
  r ?? e[0]?.value ?? ""
3323
- ), d = r !== void 0 ? r : n, m = (b) => {
3324
- r === void 0 && c(b), t?.(b);
3325
- }, k = (b, y) => {
3326
- const u = d === b, w = "px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";
3327
- if (y)
3340
+ ), d = r !== void 0 ? r : n, b = (m) => {
3341
+ r === void 0 && c(m), t?.(m);
3342
+ }, k = (m, x) => {
3343
+ 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";
3344
+ if (x)
3328
3345
  return p(w, "text-text-muted");
3329
3346
  switch (i) {
3330
3347
  case "filled":
3331
3348
  return p(
3332
3349
  w,
3333
3350
  "rounded-lg",
3334
- u ? l === "primary" ? "bg-primary text-white" : "bg-secondary text-white" : "text-text-muted hover:bg-background-light"
3351
+ u ? s === "primary" ? "bg-primary text-white" : "bg-secondary text-white" : "text-text-muted hover:bg-background-light"
3335
3352
  );
3336
3353
  case "pills":
3337
3354
  return p(
3338
3355
  w,
3339
3356
  "rounded-full",
3340
- u ? l === "primary" ? "bg-primary/10 text-primary border-2 border-primary" : "bg-secondary/10 text-secondary border-2 border-secondary" : "text-text-muted hover:bg-background-light border-2 border-transparent"
3357
+ u ? s === "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"
3341
3358
  );
3342
3359
  case "underline":
3343
3360
  default:
3344
3361
  return p(
3345
3362
  w,
3346
- "border-b-2",
3347
- u ? l === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-text-muted hover:text-text hover:border-border"
3363
+ "border-b-2 flex items-center gap-2",
3364
+ u ? s === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-gray-500 hover:text-gray-700"
3348
3365
  );
3349
3366
  }
3350
- }, f = () => {
3367
+ }, h = () => {
3351
3368
  switch (i) {
3352
3369
  case "filled":
3353
3370
  return "flex gap-1 p-1 bg-background-light rounded-lg";
@@ -3355,25 +3372,28 @@ function nt({
3355
3372
  return "flex gap-2 flex-wrap";
3356
3373
  case "underline":
3357
3374
  default:
3358
- return "flex border-b-2 border-border";
3375
+ return "flex gap-2 border-b border-gray-200";
3359
3376
  }
3360
- }, v = B.Children.toArray(o).find((b) => B.isValidElement(b) ? b.props.value === d : !1);
3361
- return /* @__PURE__ */ x("div", { className: p("w-full", a), children: [
3362
- /* @__PURE__ */ s("div", { className: f(), role: "tablist", children: e.map((b) => /* @__PURE__ */ s(
3377
+ }, v = B.Children.toArray(o).find((m) => B.isValidElement(m) ? m.props.value === d : !1);
3378
+ return /* @__PURE__ */ y("div", { className: p("w-full", a), children: [
3379
+ /* @__PURE__ */ l("div", { className: h(), role: "tablist", children: e.map((m) => /* @__PURE__ */ y(
3363
3380
  "button",
3364
3381
  {
3365
3382
  type: "button",
3366
3383
  role: "tab",
3367
- "aria-selected": d === b.value,
3368
- "aria-controls": `tabpanel-${b.value}`,
3369
- disabled: b.disabled,
3370
- onClick: () => !b.disabled && m(b.value),
3371
- className: k(b.value, b.disabled),
3372
- children: b.label
3384
+ "aria-selected": d === m.value,
3385
+ "aria-controls": `tabpanel-${m.value}`,
3386
+ disabled: m.disabled,
3387
+ onClick: () => !m.disabled && b(m.value),
3388
+ className: k(m.value, m.disabled),
3389
+ children: [
3390
+ m.icon && /* @__PURE__ */ l("span", { className: "shrink-0", children: m.icon }),
3391
+ m.label
3392
+ ]
3373
3393
  },
3374
- b.value
3394
+ m.value
3375
3395
  )) }),
3376
- /* @__PURE__ */ s("div", { role: "tabpanel", id: `tabpanel-${d}`, children: v })
3396
+ /* @__PURE__ */ l("div", { role: "tabpanel", id: `tabpanel-${d}`, children: v })
3377
3397
  ] });
3378
3398
  }
3379
3399
  function ye(e) {
@@ -3382,7 +3402,7 @@ function ye(e) {
3382
3402
  function xe(e) {
3383
3403
  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
3404
  }
3385
- const Fr = [
3405
+ const Tr = [
3386
3406
  "Mon",
3387
3407
  "Tue",
3388
3408
  "Wed",
@@ -3390,7 +3410,7 @@ const Fr = [
3390
3410
  "Fri",
3391
3411
  "Sat",
3392
3412
  "Sun"
3393
- ], Rr = [
3413
+ ], $r = [
3394
3414
  "Lun",
3395
3415
  "Mar",
3396
3416
  "Mié",
@@ -3398,7 +3418,7 @@ const Fr = [
3398
3418
  "Vie",
3399
3419
  "Sáb",
3400
3420
  "Dom"
3401
- ], _r = [
3421
+ ], Rr = [
3402
3422
  "January",
3403
3423
  "February",
3404
3424
  "March",
@@ -3411,7 +3431,7 @@ const Fr = [
3411
3431
  "October",
3412
3432
  "November",
3413
3433
  "December"
3414
- ], Vr = [
3434
+ ], Fr = [
3415
3435
  "Enero",
3416
3436
  "Febrero",
3417
3437
  "Marzo",
@@ -3425,35 +3445,35 @@ const Fr = [
3425
3445
  "Noviembre",
3426
3446
  "Diciembre"
3427
3447
  ];
3428
- function Br(e) {
3448
+ function _r(e) {
3429
3449
  return new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
3430
3450
  }
3431
- function Gr(e) {
3451
+ function Vr(e) {
3432
3452
  const r = new Date(e.getFullYear(), e.getMonth(), 1).getDay();
3433
3453
  return r === 0 ? 6 : r - 1;
3434
3454
  }
3435
- function at({
3455
+ function nt({
3436
3456
  value: e,
3437
3457
  onChange: r,
3438
3458
  disabled: t = !1,
3439
3459
  className: o = "",
3440
3460
  colorScheme: a = "secondary",
3441
- lang: l = "en",
3461
+ lang: s = "en",
3442
3462
  ...i
3443
3463
  }) {
3444
3464
  const [n, c] = $(e || /* @__PURE__ */ new Date()), d = {
3445
3465
  en: "en-US",
3446
3466
  es: "es-ES"
3447
- }, m = {
3448
- en: Fr,
3449
- es: Rr
3467
+ }, b = {
3468
+ en: Tr,
3469
+ es: $r
3450
3470
  }, k = {
3451
- en: _r,
3452
- es: Vr
3453
- }, f = Br(n), v = Gr(n), b = [];
3471
+ en: Rr,
3472
+ es: Fr
3473
+ }, h = _r(n), v = Vr(n), m = [];
3454
3474
  for (let g = 0; g < v; g++)
3455
- b.push(null);
3456
- for (let g = 1; g <= f; g++) {
3475
+ m.push(null);
3476
+ for (let g = 1; g <= h; g++) {
3457
3477
  const j = new Date(
3458
3478
  n.getFullYear(),
3459
3479
  n.getMonth(),
@@ -3462,9 +3482,9 @@ function at({
3462
3482
  0,
3463
3483
  0
3464
3484
  );
3465
- b.push(j);
3485
+ m.push(j);
3466
3486
  }
3467
- const y = () => {
3487
+ const x = () => {
3468
3488
  c(
3469
3489
  new Date(
3470
3490
  n.getFullYear(),
@@ -3497,7 +3517,7 @@ function at({
3497
3517
  0
3498
3518
  )
3499
3519
  );
3500
- }, h = () => {
3520
+ }, f = () => {
3501
3521
  c(
3502
3522
  new Date(
3503
3523
  n.getFullYear() + 1,
@@ -3508,7 +3528,7 @@ function at({
3508
3528
  0
3509
3529
  )
3510
3530
  );
3511
- }, L = (g) => {
3531
+ }, D = (g) => {
3512
3532
  if (g && !t) {
3513
3533
  const j = new Date(
3514
3534
  g.getFullYear(),
@@ -3539,7 +3559,7 @@ function at({
3539
3559
  };
3540
3560
  }
3541
3561
  })(), P = (g) => g && e ? g.toDateString() === e.toDateString() : !1;
3542
- return /* @__PURE__ */ x(
3562
+ return /* @__PURE__ */ y(
3543
3563
  "div",
3544
3564
  {
3545
3565
  className: p(
@@ -3548,8 +3568,8 @@ function at({
3548
3568
  ),
3549
3569
  ...i,
3550
3570
  children: [
3551
- /* @__PURE__ */ x("div", { className: "mb-6", children: [
3552
- /* @__PURE__ */ x(
3571
+ /* @__PURE__ */ y("div", { className: "mb-6", children: [
3572
+ /* @__PURE__ */ y(
3553
3573
  "div",
3554
3574
  {
3555
3575
  className: p(
@@ -3557,7 +3577,7 @@ function at({
3557
3577
  z.header
3558
3578
  ),
3559
3579
  children: [
3560
- /* @__PURE__ */ s(
3580
+ /* @__PURE__ */ l(
3561
3581
  "button",
3562
3582
  {
3563
3583
  type: "button",
@@ -3568,44 +3588,44 @@ function at({
3568
3588
  z.button,
3569
3589
  t && "opacity-50 cursor-not-allowed"
3570
3590
  ),
3571
- children: /* @__PURE__ */ s(ye, { size: 18 })
3591
+ children: /* @__PURE__ */ l(ye, { size: 18 })
3572
3592
  }
3573
3593
  ),
3574
- /* @__PURE__ */ s("h2", { className: "font-semibold text-lg", children: n.getFullYear() }),
3575
- /* @__PURE__ */ s(
3594
+ /* @__PURE__ */ l("h2", { className: "font-semibold text-lg", children: n.getFullYear() }),
3595
+ /* @__PURE__ */ l(
3576
3596
  "button",
3577
3597
  {
3578
3598
  type: "button",
3579
- onClick: h,
3599
+ onClick: f,
3580
3600
  disabled: t,
3581
3601
  className: p(
3582
3602
  "p-2 rounded-lg border transition-all duration-300",
3583
3603
  z.button,
3584
3604
  t && "opacity-50 cursor-not-allowed"
3585
3605
  ),
3586
- children: /* @__PURE__ */ s(xe, { size: 18 })
3606
+ children: /* @__PURE__ */ l(xe, { size: 18 })
3587
3607
  }
3588
3608
  )
3589
3609
  ]
3590
3610
  }
3591
3611
  ),
3592
- /* @__PURE__ */ x("div", { className: p("flex items-center justify-between", z.header), children: [
3593
- /* @__PURE__ */ s(
3612
+ /* @__PURE__ */ y("div", { className: p("flex items-center justify-between", z.header), children: [
3613
+ /* @__PURE__ */ l(
3594
3614
  "button",
3595
3615
  {
3596
3616
  type: "button",
3597
- onClick: y,
3617
+ onClick: x,
3598
3618
  disabled: t,
3599
3619
  className: p(
3600
3620
  "p-2 rounded-lg border transition-all duration-300",
3601
3621
  z.button,
3602
3622
  t && "opacity-50 cursor-not-allowed"
3603
3623
  ),
3604
- children: /* @__PURE__ */ s(ye, { size: 18 })
3624
+ children: /* @__PURE__ */ l(ye, { size: 18 })
3605
3625
  }
3606
3626
  ),
3607
- /* @__PURE__ */ s("h2", { className: "font-semibold text-lg", children: k[l][n.getMonth()] }),
3608
- /* @__PURE__ */ s(
3627
+ /* @__PURE__ */ l("h2", { className: "font-semibold text-lg", children: k[s][n.getMonth()] }),
3628
+ /* @__PURE__ */ l(
3609
3629
  "button",
3610
3630
  {
3611
3631
  type: "button",
@@ -3616,12 +3636,12 @@ function at({
3616
3636
  z.button,
3617
3637
  t && "opacity-50 cursor-not-allowed"
3618
3638
  ),
3619
- children: /* @__PURE__ */ s(xe, { size: 18 })
3639
+ children: /* @__PURE__ */ l(xe, { size: 18 })
3620
3640
  }
3621
3641
  )
3622
3642
  ] })
3623
3643
  ] }),
3624
- /* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2 mb-4", children: m[l].map((g) => /* @__PURE__ */ s(
3644
+ /* @__PURE__ */ l("div", { className: "grid grid-cols-7 gap-2 mb-4", children: b[s].map((g) => /* @__PURE__ */ l(
3625
3645
  "div",
3626
3646
  {
3627
3647
  className: p(
@@ -3632,11 +3652,11 @@ function at({
3632
3652
  },
3633
3653
  g
3634
3654
  )) }),
3635
- /* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2", children: b.map((g, j) => /* @__PURE__ */ s(
3655
+ /* @__PURE__ */ l("div", { className: "grid grid-cols-7 gap-2", children: m.map((g, j) => /* @__PURE__ */ l(
3636
3656
  "button",
3637
3657
  {
3638
3658
  type: "button",
3639
- onClick: () => L(g),
3659
+ onClick: () => D(g),
3640
3660
  disabled: !g || t,
3641
3661
  className: p(
3642
3662
  "p-2 rounded-lg text-sm font-medium transition-all duration-300",
@@ -3651,14 +3671,14 @@ function at({
3651
3671
  },
3652
3672
  j
3653
3673
  )) }),
3654
- e && /* @__PURE__ */ s(
3674
+ e && /* @__PURE__ */ l(
3655
3675
  "div",
3656
3676
  {
3657
3677
  className: p(
3658
3678
  "mt-6 p-3 rounded-lg bg-background-dark border border-border text-center text-sm font-medium",
3659
3679
  z.header
3660
3680
  ),
3661
- children: e.toLocaleDateString(d[l], {
3681
+ children: e.toLocaleDateString(d[s], {
3662
3682
  year: "numeric",
3663
3683
  month: "long",
3664
3684
  day: "numeric"
@@ -3669,76 +3689,76 @@ function at({
3669
3689
  }
3670
3690
  );
3671
3691
  }
3672
- function st({
3692
+ function at({
3673
3693
  headers: e,
3674
3694
  data: r,
3675
3695
  loading: t,
3676
3696
  loadingText: o = "Loading...",
3677
3697
  actions: a,
3678
- actionsHeader: l = "Actions",
3698
+ actionsHeader: s = "Actions",
3679
3699
  onRowClick: i,
3680
3700
  className: n = "",
3681
3701
  rowClassName: c = "",
3682
3702
  cellClassName: d = "",
3683
- headerClassName: m = "",
3703
+ headerClassName: b = "",
3684
3704
  emptyText: k = "No data available",
3685
- showCount: f = !0,
3686
- countText: v = (y) => `Showing ${y} record${y !== 1 ? "s" : ""}`,
3687
- keyExtractor: b = (y, u) => y._id || y.id || u
3705
+ showCount: h = !0,
3706
+ countText: v = (x) => `Showing ${x} record${x !== 1 ? "s" : ""}`,
3707
+ keyExtractor: m = (x, u) => x._id || x.id || u
3688
3708
  }) {
3689
3709
  if (t)
3690
- return /* @__PURE__ */ s("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ s("div", { className: "text-lg text-text-light", children: o }) });
3710
+ return /* @__PURE__ */ l("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ l("div", { className: "text-lg text-text-light", children: o }) });
3691
3711
  if (r.length === 0)
3692
- return /* @__PURE__ */ s("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ s("div", { className: "text-lg text-text-muted", children: k }) });
3693
- const y = (u, w) => {
3694
- const h = w.toLowerCase().replace(/\s+/g, "_");
3695
- let L = u[h];
3696
- if (L === void 0) {
3712
+ return /* @__PURE__ */ l("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ l("div", { className: "text-lg text-text-muted", children: k }) });
3713
+ const x = (u, w) => {
3714
+ const f = w.toLowerCase().replace(/\s+/g, "_");
3715
+ let D = u[f];
3716
+ if (D === void 0) {
3697
3717
  const E = [
3698
- h.replace(/_/g, ""),
3718
+ f.replace(/_/g, ""),
3699
3719
  w.toLowerCase().replace(/\s+/g, ""),
3700
- h.replace(/_([a-z])/g, (z, P) => P.toUpperCase())
3720
+ f.replace(/_([a-z])/g, (z, P) => P.toUpperCase())
3701
3721
  ];
3702
3722
  for (const z of E)
3703
3723
  if (u[z] !== void 0) {
3704
- L = u[z];
3724
+ D = u[z];
3705
3725
  break;
3706
3726
  }
3707
3727
  }
3708
- if (L === void 0) {
3728
+ if (D === void 0) {
3709
3729
  const E = w.toLowerCase().split(" "), z = Object.keys(u).find(
3710
3730
  (P) => E.some((g) => P.toLowerCase().includes(g))
3711
3731
  );
3712
- z && (L = u[z]);
3732
+ z && (D = u[z]);
3713
3733
  }
3714
- return L != null ? String(L) : "N/A";
3734
+ return D != null ? String(D) : "N/A";
3715
3735
  };
3716
- return /* @__PURE__ */ x("div", { className: p("overflow-x-auto", n), children: [
3717
- /* @__PURE__ */ x("table", { className: "w-full border-collapse", children: [
3718
- /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ x("tr", { className: "border-b-2 border-border", children: [
3719
- e.map((u, w) => /* @__PURE__ */ s(
3736
+ return /* @__PURE__ */ y("div", { className: p("overflow-x-auto", n), children: [
3737
+ /* @__PURE__ */ y("table", { className: "w-full border-collapse", children: [
3738
+ /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ y("tr", { className: "border-b-2 border-border", children: [
3739
+ e.map((u, w) => /* @__PURE__ */ l(
3720
3740
  "th",
3721
3741
  {
3722
3742
  className: p(
3723
3743
  "text-left py-3 px-4 font-semibold text-text",
3724
- m
3744
+ b
3725
3745
  ),
3726
3746
  children: u
3727
3747
  },
3728
3748
  w
3729
3749
  )),
3730
- a && /* @__PURE__ */ s(
3750
+ a && /* @__PURE__ */ l(
3731
3751
  "th",
3732
3752
  {
3733
3753
  className: p(
3734
3754
  "text-center py-3 px-4 font-semibold text-text",
3735
- m
3755
+ b
3736
3756
  ),
3737
- children: l
3757
+ children: s
3738
3758
  }
3739
3759
  )
3740
3760
  ] }) }),
3741
- /* @__PURE__ */ s("tbody", { children: r.map((u, w) => /* @__PURE__ */ x(
3761
+ /* @__PURE__ */ l("tbody", { children: r.map((u, w) => /* @__PURE__ */ y(
3742
3762
  "tr",
3743
3763
  {
3744
3764
  className: p(
@@ -3748,78 +3768,78 @@ function st({
3748
3768
  ),
3749
3769
  onClick: () => i?.(u),
3750
3770
  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: y(u, h) }) }, L)),
3752
- a && /* @__PURE__ */ s("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ s("div", { className: "flex gap-2 justify-center", children: a.map((h, L) => {
3771
+ e.map((f, D) => /* @__PURE__ */ l("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ l("div", { className: "text-text-light", children: x(u, f) }) }, D)),
3772
+ a && /* @__PURE__ */ l("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ l("div", { className: "flex gap-2 justify-center", children: a.map((f, D) => {
3753
3773
  const E = (z) => {
3754
- z?.stopPropagation(), h.onClick?.(u);
3774
+ z?.stopPropagation(), f.onClick?.(u);
3755
3775
  };
3756
- if (h.component) {
3757
- const z = h.component;
3758
- return /* @__PURE__ */ x(
3776
+ if (f.component) {
3777
+ const z = f.component;
3778
+ return /* @__PURE__ */ y(
3759
3779
  z,
3760
3780
  {
3761
3781
  onClick: E,
3762
- className: h.className || "",
3763
- ...h.props || {},
3782
+ className: f.className || "",
3783
+ ...f.props || {},
3764
3784
  children: [
3765
- h.icon && /* @__PURE__ */ s("span", { className: "inline-block", children: B.createElement(h.icon) }),
3766
- h.label && h.label
3785
+ f.icon && /* @__PURE__ */ l("span", { className: "inline-block", children: B.createElement(f.icon) }),
3786
+ f.label && f.label
3767
3787
  ]
3768
3788
  },
3769
- L
3789
+ D
3770
3790
  );
3771
3791
  }
3772
- return /* @__PURE__ */ x(
3792
+ return /* @__PURE__ */ y(
3773
3793
  q,
3774
3794
  {
3775
3795
  onClick: E,
3776
- className: h.className || "",
3777
- ...h.props || {},
3796
+ className: f.className || "",
3797
+ ...f.props || {},
3778
3798
  children: [
3779
- h.icon && /* @__PURE__ */ s("span", { className: "inline-block", children: B.createElement(h.icon) }),
3780
- h.label && h.label
3799
+ f.icon && /* @__PURE__ */ l("span", { className: "inline-block", children: B.createElement(f.icon) }),
3800
+ f.label && f.label
3781
3801
  ]
3782
3802
  },
3783
- L
3803
+ D
3784
3804
  );
3785
3805
  }) }) })
3786
3806
  ]
3787
3807
  },
3788
- b(u, w)
3808
+ m(u, w)
3789
3809
  )) })
3790
3810
  ] }),
3791
- f && r.length > 0 && /* @__PURE__ */ s("div", { className: "mt-6 text-center text-text-light text-sm", children: v(r.length) })
3811
+ h && r.length > 0 && /* @__PURE__ */ l("div", { className: "mt-6 text-center text-text-light text-sm", children: v(r.length) })
3792
3812
  ] });
3793
3813
  }
3794
- function lt({
3814
+ function st({
3795
3815
  label: e,
3796
3816
  options: r,
3797
3817
  value: t = "",
3798
3818
  onChange: o,
3799
3819
  multiple: a = !1,
3800
- className: l = "",
3820
+ className: s = "",
3801
3821
  searchable: i = !1,
3802
3822
  onSearchInputCustom: n,
3803
3823
  placeholder: c = "Select...",
3804
3824
  disabled: d = !1,
3805
- error: m,
3825
+ error: b,
3806
3826
  required: k = !1,
3807
- colorScheme: f = "primary",
3827
+ colorScheme: h = "primary",
3808
3828
  noResultsText: v = "No results found",
3809
- searchPlaceholder: b = "Search...",
3810
- ...y
3829
+ searchPlaceholder: m = "Search...",
3830
+ ...x
3811
3831
  }) {
3812
- const [u, w] = $(!1), [h, L] = $(""), [E, z] = $({
3832
+ const [u, w] = $(!1), [f, D] = $(""), [E, z] = $({
3813
3833
  top: 0,
3814
3834
  left: 0,
3815
3835
  openUpward: !1
3816
3836
  }), P = Array.isArray(t) ? t : t ? [t] : [], [g, j] = $(
3817
- P.map((C) => r.find((D) => D.value === C)).filter(Boolean)
3818
- ), F = ce(null), G = ce(null), K = () => {
3837
+ P.map((C) => r.find((L) => L.value === C)).filter(Boolean)
3838
+ ), R = ce(null), G = ce(null), K = () => {
3819
3839
  const C = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed";
3820
- if (m)
3840
+ if (b)
3821
3841
  return p(C, "border-danger focus:border-danger");
3822
- switch (f) {
3842
+ switch (h) {
3823
3843
  case "primary":
3824
3844
  return p(
3825
3845
  C,
@@ -3832,16 +3852,16 @@ function lt({
3832
3852
  "text-secondary border-secondary focus:border-secondary"
3833
3853
  );
3834
3854
  }
3835
- }, S = () => f === "primary" ? "text-primary" : "text-secondary";
3836
- H(() => {
3837
- const D = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((R) => r.find((_) => _.value === R)).filter(Boolean);
3838
- j(D);
3839
- }, [t, r]), H(() => {
3855
+ }, S = () => h === "primary" ? "text-primary" : "text-secondary";
3856
+ W(() => {
3857
+ const L = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((F) => r.find((_) => _.value === F)).filter(Boolean);
3858
+ j(L);
3859
+ }, [t, r]), W(() => {
3840
3860
  u && i && G.current && G.current.focus();
3841
3861
  }, [u, i]);
3842
3862
  const M = ve(() => {
3843
- if (!F.current) return;
3844
- const C = F.current.getBoundingClientRect(), D = window.innerHeight, R = 250, X = D - C.bottom < R && C.top > R;
3863
+ if (!R.current) return;
3864
+ const C = R.current.getBoundingClientRect(), L = window.innerHeight, F = 250, X = L - C.bottom < F && C.top > F;
3845
3865
  z({
3846
3866
  top: X ? C.top : C.bottom,
3847
3867
  left: C.left,
@@ -3849,42 +3869,42 @@ function lt({
3849
3869
  openUpward: X
3850
3870
  });
3851
3871
  }, []);
3852
- H(() => {
3853
- function C(R) {
3854
- F.current && !F.current.contains(R.target) && w(!1);
3872
+ W(() => {
3873
+ function C(F) {
3874
+ R.current && !R.current.contains(F.target) && w(!1);
3855
3875
  }
3856
- function D() {
3876
+ function L() {
3857
3877
  u && M();
3858
3878
  }
3859
- return document.addEventListener("mousedown", C), window.addEventListener("scroll", D, !0), window.addEventListener("resize", D), () => {
3860
- document.removeEventListener("mousedown", C), window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D);
3879
+ return document.addEventListener("mousedown", C), window.addEventListener("scroll", L, !0), window.addEventListener("resize", L), () => {
3880
+ document.removeEventListener("mousedown", C), window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L);
3861
3881
  };
3862
3882
  }, [u, M]);
3863
3883
  const A = (C) => {
3864
- const D = r.find(
3884
+ const L = r.find(
3865
3885
  (_) => _.value === C
3866
3886
  );
3867
- if (!D) return;
3868
- let R;
3869
- a ? (R = g.some((X) => X.value === C) ? g.filter((X) => X.value !== C) : [...g, D], j(R), o(R)) : (R = [D], j(R), o(D), w(!1), L(""));
3887
+ if (!L) return;
3888
+ let F;
3889
+ a ? (F = g.some((X) => X.value === C) ? g.filter((X) => X.value !== C) : [...g, L], j(F), o(F)) : (F = [L], j(F), o(L), w(!1), D(""));
3870
3890
  }, V = (C) => {
3871
- L(C), n?.(C);
3891
+ D(C), n?.(C);
3872
3892
  }, T = i ? r.filter(
3873
- (C) => C.label.toLowerCase().includes(h.toLowerCase())
3893
+ (C) => C.label.toLowerCase().includes(f.toLowerCase())
3874
3894
  ) : r, Z = () => g.length === 0 ? c : a ? g.length === 1 ? g[0].label : `${g.length} selected` : g[0]?.label || c;
3875
- return /* @__PURE__ */ x("div", { className: p("mb-6", l), children: [
3876
- e && /* @__PURE__ */ x(
3895
+ return /* @__PURE__ */ y("div", { className: p("mb-6", s), children: [
3896
+ e && /* @__PURE__ */ y(
3877
3897
  "label",
3878
3898
  {
3879
3899
  className: p("block mb-2 text-sm font-medium", S()),
3880
3900
  children: [
3881
3901
  e,
3882
- k && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
3902
+ k && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
3883
3903
  ]
3884
3904
  }
3885
3905
  ),
3886
- /* @__PURE__ */ x("div", { ref: F, className: "relative w-full", children: [
3887
- /* @__PURE__ */ x(
3906
+ /* @__PURE__ */ y("div", { ref: R, className: "relative w-full", children: [
3907
+ /* @__PURE__ */ y(
3888
3908
  "button",
3889
3909
  {
3890
3910
  type: "button",
@@ -3898,17 +3918,17 @@ function lt({
3898
3918
  u && "ring-1"
3899
3919
  ),
3900
3920
  disabled: d,
3901
- ...y,
3921
+ ...x,
3902
3922
  children: [
3903
- /* @__PURE__ */ x("div", { className: "flex items-center gap-2 flex-1", children: [
3904
- g.length > 0 && g[0].hex && /* @__PURE__ */ s(
3923
+ /* @__PURE__ */ y("div", { className: "flex items-center gap-2 flex-1", children: [
3924
+ g.length > 0 && g[0].hex && /* @__PURE__ */ l(
3905
3925
  "div",
3906
3926
  {
3907
3927
  className: "h-4 w-4 rounded border border-border",
3908
3928
  style: { backgroundColor: g[0].hex }
3909
3929
  }
3910
3930
  ),
3911
- /* @__PURE__ */ s(
3931
+ /* @__PURE__ */ l(
3912
3932
  "span",
3913
3933
  {
3914
3934
  className: g.length > 0 ? "" : "text-text-muted",
@@ -3916,25 +3936,25 @@ function lt({
3916
3936
  }
3917
3937
  )
3918
3938
  ] }),
3919
- /* @__PURE__ */ s(
3939
+ /* @__PURE__ */ l(
3920
3940
  "div",
3921
3941
  {
3922
3942
  className: p(
3923
3943
  "h-5 w-5 transition-transform duration-200",
3924
3944
  u && "rotate-180"
3925
3945
  ),
3926
- children: /* @__PURE__ */ s(Pe, { className: "h-5 w-5" })
3946
+ children: /* @__PURE__ */ l(Pe, { className: "h-5 w-5" })
3927
3947
  }
3928
3948
  )
3929
3949
  ]
3930
3950
  }
3931
3951
  ),
3932
- u && /* @__PURE__ */ x(
3952
+ u && /* @__PURE__ */ y(
3933
3953
  "div",
3934
3954
  {
3935
3955
  className: p(
3936
3956
  "fixed z-9999 rounded-lg border-2 bg-white shadow-xl",
3937
- m ? "border-danger" : f === "primary" ? "border-primary" : "border-secondary"
3957
+ b ? "border-danger" : h === "primary" ? "border-primary" : "border-secondary"
3938
3958
  ),
3939
3959
  style: {
3940
3960
  top: `${E.top + (E.openUpward ? 0 : 8)}px`,
@@ -3943,59 +3963,59 @@ function lt({
3943
3963
  transform: E.openUpward ? "translateY(-100%)" : "none"
3944
3964
  },
3945
3965
  children: [
3946
- i && /* @__PURE__ */ s("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ x("div", { className: "relative", children: [
3947
- /* @__PURE__ */ s($r, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
3948
- /* @__PURE__ */ s(
3966
+ i && /* @__PURE__ */ l("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ y("div", { className: "relative", children: [
3967
+ /* @__PURE__ */ l(Or, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
3968
+ /* @__PURE__ */ l(
3949
3969
  "input",
3950
3970
  {
3951
3971
  ref: G,
3952
3972
  type: "text",
3953
- value: h,
3973
+ value: f,
3954
3974
  onChange: (C) => V(C.target.value),
3955
- placeholder: b,
3975
+ placeholder: m,
3956
3976
  className: p(
3957
3977
  "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
- f === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
3978
+ h === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
3959
3979
  )
3960
3980
  }
3961
3981
  ),
3962
- h && /* @__PURE__ */ s(
3982
+ f && /* @__PURE__ */ l(
3963
3983
  "button",
3964
3984
  {
3965
3985
  type: "button",
3966
- onClick: () => L(""),
3986
+ onClick: () => D(""),
3967
3987
  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(Tr, { className: "h-4 w-4" })
3988
+ children: /* @__PURE__ */ l(jr, { className: "h-4 w-4" })
3969
3989
  }
3970
3990
  )
3971
3991
  ] }) }),
3972
- /* @__PURE__ */ x("div", { className: "max-h-60 overflow-y-auto py-1", children: [
3973
- T.map((C) => /* @__PURE__ */ s(
3992
+ /* @__PURE__ */ y("div", { className: "max-h-60 overflow-y-auto py-1", children: [
3993
+ T.map((C) => /* @__PURE__ */ l(
3974
3994
  "button",
3975
3995
  {
3976
3996
  type: "button",
3977
3997
  onClick: () => A(C.value ?? ""),
3978
3998
  className: p(
3979
3999
  "w-full px-4 py-3 text-left text-sm transition-colors",
3980
- g.some((D) => D.value === C.value) ? f === "primary" ? "bg-primary/10 text-primary font-medium" : "bg-secondary/10 text-secondary font-medium" : "text-text hover:bg-background-light"
4000
+ g.some((L) => L.value === C.value) ? h === "primary" ? "bg-primary/10 text-primary font-medium" : "bg-secondary/10 text-secondary font-medium" : "text-text hover:bg-background-light"
3981
4001
  ),
3982
- children: /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
3983
- a && /* @__PURE__ */ s(
4002
+ children: /* @__PURE__ */ y("div", { className: "flex items-center gap-3", children: [
4003
+ a && /* @__PURE__ */ l(
3984
4004
  "div",
3985
4005
  {
3986
4006
  className: p(
3987
4007
  "flex h-4 w-4 items-center justify-center rounded border-2 transition-colors",
3988
- g.some((D) => D.value === C.value) ? f === "primary" ? "border-primary bg-primary" : "border-secondary bg-secondary" : "border-border"
4008
+ g.some((L) => L.value === C.value) ? h === "primary" ? "border-primary bg-primary" : "border-secondary bg-secondary" : "border-border"
3989
4009
  ),
3990
4010
  children: g.some(
3991
- (D) => D.value === C.value
3992
- ) && /* @__PURE__ */ s(
4011
+ (L) => L.value === C.value
4012
+ ) && /* @__PURE__ */ l(
3993
4013
  "svg",
3994
4014
  {
3995
4015
  className: "h-3 w-3 text-white",
3996
4016
  fill: "currentColor",
3997
4017
  viewBox: "0 0 20 20",
3998
- children: /* @__PURE__ */ s(
4018
+ children: /* @__PURE__ */ l(
3999
4019
  "path",
4000
4020
  {
4001
4021
  fillRule: "evenodd",
@@ -4007,46 +4027,46 @@ function lt({
4007
4027
  )
4008
4028
  }
4009
4029
  ),
4010
- C.hex && /* @__PURE__ */ s(
4030
+ C.hex && /* @__PURE__ */ l(
4011
4031
  "div",
4012
4032
  {
4013
4033
  className: "h-4 w-4 rounded border border-border",
4014
4034
  style: { backgroundColor: C.hex }
4015
4035
  }
4016
4036
  ),
4017
- /* @__PURE__ */ s("span", { children: C.label })
4037
+ /* @__PURE__ */ l("span", { children: C.label })
4018
4038
  ] })
4019
4039
  },
4020
4040
  C.value
4021
4041
  )),
4022
- T.length === 0 && h && r.length > 0 && /* @__PURE__ */ s("div", { className: "px-4 py-3", children: /* @__PURE__ */ s("span", { className: "text-sm text-text-muted", children: v }) })
4042
+ T.length === 0 && f && r.length > 0 && /* @__PURE__ */ l("div", { className: "px-4 py-3", children: /* @__PURE__ */ l("span", { className: "text-sm text-text-muted", children: v }) })
4023
4043
  ] })
4024
4044
  ]
4025
4045
  }
4026
4046
  )
4027
4047
  ] }),
4028
- m && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: m })
4048
+ b && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: b })
4029
4049
  ] });
4030
4050
  }
4031
- const it = ({
4051
+ const lt = ({
4032
4052
  id: e,
4033
4053
  name: r,
4034
4054
  onFilesSelected: t,
4035
4055
  placeholder: o = "Arrastra y suelta archivos aquí o haz clic para seleccionar",
4036
4056
  labelSelectedFiles: a = "archivo:",
4037
- label: l,
4057
+ label: s,
4038
4058
  error: i,
4039
4059
  disabled: n = !1,
4040
4060
  required: c = !1,
4041
4061
  colorScheme: d = "secondary",
4042
4062
  // "primary" | "secondary"
4043
- className: m = "",
4063
+ className: b = "",
4044
4064
  accept: k = "*/*",
4045
4065
  // Tipos de archivo aceptados: "image/*", "application/pdf", ".doc,.docx", etc.
4046
- multiple: f = !1,
4066
+ multiple: h = !1,
4047
4067
  ...v
4048
4068
  }) => {
4049
- const b = ce(null), [y, u] = $(!1), [w, h] = $([]), L = () => {
4069
+ const m = ce(null), [x, u] = $(!1), [w, f] = $([]), D = () => {
4050
4070
  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
4071
  if (i)
4052
4072
  return p(
@@ -4086,41 +4106,41 @@ const it = ({
4086
4106
  }, j = (M) => {
4087
4107
  const A = Array.from(M);
4088
4108
  if (k !== "*/*") {
4089
- const V = A.filter((T) => F(T, k));
4109
+ const V = A.filter((T) => R(T, k));
4090
4110
  if (V.length === 0) {
4091
4111
  console.warn("No valid files selected");
4092
4112
  return;
4093
4113
  }
4094
- h(f ? V : [V[0]]), t(f ? V : [V[0]]);
4114
+ f(h ? V : [V[0]]), t(h ? V : [V[0]]);
4095
4115
  } else
4096
- h(f ? A : [A[0]]), t(f ? A : [A[0]]);
4097
- }, F = (M, A) => A.split(",").map((T) => T.trim()).some((T) => {
4116
+ f(h ? A : [A[0]]), t(h ? A : [A[0]]);
4117
+ }, R = (M, A) => A.split(",").map((T) => T.trim()).some((T) => {
4098
4118
  if (T.startsWith("."))
4099
4119
  return M.name.toLowerCase().endsWith(T.toLowerCase());
4100
4120
  if (T.includes("/")) {
4101
- const [Z, C] = T.split("/"), D = M.type.split("/")[0];
4102
- return C === "*" ? D === Z : M.type === T;
4121
+ const [Z, C] = T.split("/"), L = M.type.split("/")[0];
4122
+ return C === "*" ? L === Z : M.type === T;
4103
4123
  }
4104
4124
  return !1;
4105
4125
  }), G = () => {
4106
- n || b.current?.click();
4126
+ n || m.current?.click();
4107
4127
  }, K = (M) => {
4108
4128
  const A = w.filter((V, T) => T !== M);
4109
- h(A), t(A);
4129
+ f(A), t(A);
4110
4130
  }, S = (M) => {
4111
4131
  (M.key === "Enter" || M.key === " ") && (M.preventDefault(), G());
4112
4132
  };
4113
- return /* @__PURE__ */ x("div", { className: `mb-6 ${m}`, children: [
4114
- l && /* @__PURE__ */ x("label", { className: `block mb-2 text-sm font-medium ${E()}`, children: [
4115
- l,
4116
- c && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
4133
+ return /* @__PURE__ */ y("div", { className: `mb-6 ${b}`, children: [
4134
+ s && /* @__PURE__ */ y("label", { className: `block mb-2 text-sm font-medium ${E()}`, children: [
4135
+ s,
4136
+ c && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
4117
4137
  ] }),
4118
- /* @__PURE__ */ x(
4138
+ /* @__PURE__ */ y(
4119
4139
  "div",
4120
4140
  {
4121
4141
  className: p(
4122
- L(),
4123
- y && "bg-background-light border-2-dashed"
4142
+ D(),
4143
+ x && "bg-background-light border-2-dashed"
4124
4144
  ),
4125
4145
  onDragEnter: z,
4126
4146
  onDragLeave: z,
@@ -4131,10 +4151,10 @@ const it = ({
4131
4151
  role: "button",
4132
4152
  tabIndex: n ? -1 : 0,
4133
4153
  children: [
4134
- /* @__PURE__ */ s(
4154
+ /* @__PURE__ */ l(
4135
4155
  "input",
4136
4156
  {
4137
- ref: b,
4157
+ ref: m,
4138
4158
  id: e,
4139
4159
  name: r,
4140
4160
  type: "file",
@@ -4142,20 +4162,20 @@ const it = ({
4142
4162
  disabled: n,
4143
4163
  required: c,
4144
4164
  accept: k,
4145
- multiple: f,
4165
+ multiple: h,
4146
4166
  className: "hidden",
4147
4167
  ...v
4148
4168
  }
4149
4169
  ),
4150
- /* @__PURE__ */ x("div", { className: "flex flex-col items-center justify-center py-4", children: [
4151
- /* @__PURE__ */ s(
4170
+ /* @__PURE__ */ y("div", { className: "flex flex-col items-center justify-center py-4", children: [
4171
+ /* @__PURE__ */ l(
4152
4172
  "svg",
4153
4173
  {
4154
4174
  className: `w-8 h-8 mb-2 ${d === "primary" ? "text-primary" : "text-secondary"}`,
4155
4175
  fill: "none",
4156
4176
  stroke: "currentColor",
4157
4177
  viewBox: "0 0 24 24",
4158
- children: /* @__PURE__ */ s(
4178
+ children: /* @__PURE__ */ l(
4159
4179
  "path",
4160
4180
  {
4161
4181
  strokeLinecap: "round",
@@ -4166,39 +4186,39 @@ const it = ({
4166
4186
  )
4167
4187
  }
4168
4188
  ),
4169
- /* @__PURE__ */ s("p", { className: `text-sm ${E()}`, children: o })
4189
+ /* @__PURE__ */ l("p", { className: `text-sm ${E()}`, children: o })
4170
4190
  ] })
4171
4191
  ]
4172
4192
  }
4173
4193
  ),
4174
- /* @__PURE__ */ x("div", { className: "mt-4 space-y-2", children: [
4175
- /* @__PURE__ */ x("p", { className: `text-sm font-medium ${E()}`, children: [
4194
+ /* @__PURE__ */ y("div", { className: "mt-4 space-y-2", children: [
4195
+ /* @__PURE__ */ y("p", { className: `text-sm font-medium ${E()}`, children: [
4176
4196
  w.length,
4177
4197
  " ",
4178
4198
  a,
4179
4199
  "(s) seleccionado(s):"
4180
4200
  ] }),
4181
- /* @__PURE__ */ s("ul", { className: "space-y-1", children: w.map((M, A) => /* @__PURE__ */ x(
4201
+ /* @__PURE__ */ l("ul", { className: "space-y-1", children: w.map((M, A) => /* @__PURE__ */ y(
4182
4202
  "li",
4183
4203
  {
4184
4204
  className: "flex items-center justify-between p-2 bg-light rounded border border-border",
4185
4205
  children: [
4186
- /* @__PURE__ */ x("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
4187
- /* @__PURE__ */ x(
4206
+ /* @__PURE__ */ y("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
4207
+ /* @__PURE__ */ y(
4188
4208
  "svg",
4189
4209
  {
4190
4210
  className: "w-4 h-4 text-text-muted shrink-0",
4191
4211
  fill: "currentColor",
4192
4212
  viewBox: "0 0 20 20",
4193
4213
  children: [
4194
- /* @__PURE__ */ s("path", { d: "M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" }),
4195
- /* @__PURE__ */ s("path", { d: "M3 4a1 1 0 00-1 1v10a1 1 0 001 1h1.05a2.5 2.5 0 014.9 0H10a1 1 0 001-1V5a1 1 0 00-1-1H3zM14 7a1 1 0 00-1 1v6.05A2.5 2.5 0 0115.95 10H17a1 1 0 001-1v-3a1 1 0 00-1-1h-3z" })
4214
+ /* @__PURE__ */ l("path", { d: "M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" }),
4215
+ /* @__PURE__ */ l("path", { d: "M3 4a1 1 0 00-1 1v10a1 1 0 001 1h1.05a2.5 2.5 0 014.9 0H10a1 1 0 001-1V5a1 1 0 00-1-1H3zM14 7a1 1 0 00-1 1v6.05A2.5 2.5 0 0115.95 10H17a1 1 0 001-1v-3a1 1 0 00-1-1h-3z" })
4196
4216
  ]
4197
4217
  }
4198
4218
  ),
4199
- /* @__PURE__ */ s("span", { className: "text-sm text-text truncate", children: M.name })
4219
+ /* @__PURE__ */ l("span", { className: "text-sm text-text truncate", children: M.name })
4200
4220
  ] }),
4201
- /* @__PURE__ */ s(
4221
+ /* @__PURE__ */ l(
4202
4222
  "button",
4203
4223
  {
4204
4224
  onClick: (V) => {
@@ -4214,9 +4234,9 @@ const it = ({
4214
4234
  A
4215
4235
  )) })
4216
4236
  ] }),
4217
- i && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
4237
+ i && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
4218
4238
  ] });
4219
- }, ct = ({
4239
+ }, it = ({
4220
4240
  text: e,
4221
4241
  className: r = "",
4222
4242
  variant: t = "default",
@@ -4224,41 +4244,41 @@ const it = ({
4224
4244
  ...a
4225
4245
  }) => {
4226
4246
  if (!o) return null;
4227
- const l = {
4247
+ const s = {
4228
4248
  default: "bg-gray-200 text-gray-800",
4229
4249
  primary: "bg-primary text-white",
4230
4250
  secondary: "bg-secondary text-white",
4231
4251
  secondaryDark: "bg-secondary-dark text-white",
4232
4252
  danger: "bg-danger text-white",
4233
4253
  warning: "bg-warning text-white"
4234
- }, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", n = l[t] || l.default;
4235
- return /* @__PURE__ */ s("div", { className: `${i} ${n} ${r}`, ...a, children: e });
4254
+ }, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", n = s[t] || s.default;
4255
+ return /* @__PURE__ */ l("div", { className: `${i} ${n} ${r}`, ...a, children: e });
4236
4256
  };
4237
- function dt({
4257
+ function ct({
4238
4258
  isOpen: e,
4239
4259
  onClose: r,
4240
4260
  title: t,
4241
4261
  children: o,
4242
4262
  size: a = "md",
4243
- className: l = "",
4263
+ className: s = "",
4244
4264
  overlayClassName: i = "",
4245
4265
  showCloseButton: n = !0,
4246
4266
  closeOnOverlayClick: c = !0,
4247
4267
  closeOnEscape: d = !0
4248
4268
  }) {
4249
- if (H(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
4269
+ if (W(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
4250
4270
  document.body.style.overflow = "unset";
4251
- }), [e]), H(() => {
4271
+ }), [e]), W(() => {
4252
4272
  if (!d || !e)
4253
4273
  return;
4254
- const v = (b) => {
4255
- b.key === "Escape" && r();
4274
+ const v = (m) => {
4275
+ m.key === "Escape" && r();
4256
4276
  };
4257
4277
  return document.addEventListener("keydown", v), () => {
4258
4278
  document.removeEventListener("keydown", v);
4259
4279
  };
4260
4280
  }, [e, r, d]), !e) return null;
4261
- const m = {
4281
+ const b = {
4262
4282
  sm: "max-w-sm",
4263
4283
  md: "max-w-md",
4264
4284
  lg: "max-w-lg",
@@ -4266,7 +4286,7 @@ function dt({
4266
4286
  "2xl": "max-w-2xl"
4267
4287
  }, k = () => {
4268
4288
  c && r();
4269
- }, f = /* @__PURE__ */ s(
4289
+ }, h = /* @__PURE__ */ l(
4270
4290
  "div",
4271
4291
  {
4272
4292
  className: p(
@@ -4277,18 +4297,18 @@ function dt({
4277
4297
  role: "dialog",
4278
4298
  "aria-modal": "true",
4279
4299
  "aria-labelledby": t ? "modal-title" : void 0,
4280
- children: /* @__PURE__ */ x(
4300
+ children: /* @__PURE__ */ y(
4281
4301
  "div",
4282
4302
  {
4283
4303
  className: p(
4284
4304
  "relative bg-white rounded-xl shadow-2xl max-h-[90vh] flex flex-col w-full transition-all duration-300",
4285
- m[a],
4286
- l
4305
+ b[a],
4306
+ s
4287
4307
  ),
4288
4308
  onClick: (v) => v.stopPropagation(),
4289
4309
  children: [
4290
- (t || n) && /* @__PURE__ */ x("div", { className: "flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0", children: [
4291
- t && /* @__PURE__ */ s(
4310
+ (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: [
4311
+ t && /* @__PURE__ */ l(
4292
4312
  "h2",
4293
4313
  {
4294
4314
  id: "modal-title",
@@ -4296,59 +4316,59 @@ function dt({
4296
4316
  children: t
4297
4317
  }
4298
4318
  ),
4299
- n && /* @__PURE__ */ s(
4319
+ n && /* @__PURE__ */ l(
4300
4320
  "button",
4301
4321
  {
4302
4322
  className: "flex items-center justify-center w-8 h-8 text-text-muted hover:text-text hover:bg-background-light transition-colors duration-200 rounded-lg",
4303
4323
  onClick: r,
4304
4324
  "aria-label": "Cerrar modal",
4305
4325
  type: "button",
4306
- children: /* @__PURE__ */ s("span", { className: "text-2xl font-light leading-none", children: "×" })
4326
+ children: /* @__PURE__ */ l("span", { className: "text-2xl font-light leading-none", children: "×" })
4307
4327
  }
4308
4328
  )
4309
4329
  ] }),
4310
- /* @__PURE__ */ s("div", { className: "p-6 overflow-y-auto flex-1", children: o })
4330
+ /* @__PURE__ */ l("div", { className: "p-6 overflow-y-auto flex-1", children: o })
4311
4331
  ]
4312
4332
  }
4313
4333
  )
4314
4334
  }
4315
4335
  );
4316
- return $e(f, document.body);
4336
+ return $e(h, document.body);
4317
4337
  }
4318
- function ut({
4338
+ function dt({
4319
4339
  id: e,
4320
4340
  name: r,
4321
4341
  checked: t = !1,
4322
4342
  onChange: o,
4323
4343
  disabled: a = !1,
4324
- required: l = !1,
4344
+ required: s = !1,
4325
4345
  colorScheme: i = "secondary",
4326
4346
  variant: n = "solid",
4327
4347
  label: c,
4328
4348
  className: d = "",
4329
- ...m
4349
+ ...b
4330
4350
  }) {
4331
- const k = (f, v) => {
4332
- const b = "checkbox-input size-4 shrink-0 rounded transition-all duration-300 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50";
4333
- if (f === "outline")
4351
+ const k = (h, v) => {
4352
+ 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";
4353
+ if (h === "outline")
4334
4354
  switch (v) {
4335
4355
  case "primary":
4336
- return `${b} checkbox-outline checkbox-primary`;
4356
+ return `${m} checkbox-outline checkbox-primary`;
4337
4357
  case "secondary":
4338
4358
  default:
4339
- return `${b} checkbox-outline checkbox-secondary`;
4359
+ return `${m} checkbox-outline checkbox-secondary`;
4340
4360
  }
4341
4361
  else
4342
4362
  switch (v) {
4343
4363
  case "primary":
4344
- return `${b} checkbox-solid checkbox-primary`;
4364
+ return `${m} checkbox-solid checkbox-primary`;
4345
4365
  case "secondary":
4346
4366
  default:
4347
- return `${b} checkbox-solid checkbox-secondary`;
4367
+ return `${m} checkbox-solid checkbox-secondary`;
4348
4368
  }
4349
4369
  };
4350
- return c ? /* @__PURE__ */ x("div", { className: `flex items-center gap-2 ${d}`, children: [
4351
- /* @__PURE__ */ s(
4370
+ return c ? /* @__PURE__ */ y("div", { className: `flex items-center gap-2 ${d}`, children: [
4371
+ /* @__PURE__ */ l(
4352
4372
  "input",
4353
4373
  {
4354
4374
  id: e,
@@ -4357,23 +4377,23 @@ function ut({
4357
4377
  checked: t,
4358
4378
  onChange: o,
4359
4379
  disabled: a,
4360
- required: l,
4380
+ required: s,
4361
4381
  className: k(n, i),
4362
- ...m
4382
+ ...b
4363
4383
  }
4364
4384
  ),
4365
- /* @__PURE__ */ x(
4385
+ /* @__PURE__ */ y(
4366
4386
  "label",
4367
4387
  {
4368
4388
  htmlFor: e,
4369
4389
  className: "text-sm text-text cursor-pointer font-medium",
4370
4390
  children: [
4371
4391
  c,
4372
- l && /* @__PURE__ */ s("span", { className: "text-red-500 ml-1", children: "*" })
4392
+ s && /* @__PURE__ */ l("span", { className: "text-red-500 ml-1", children: "*" })
4373
4393
  ]
4374
4394
  }
4375
4395
  )
4376
- ] }) : /* @__PURE__ */ s(
4396
+ ] }) : /* @__PURE__ */ l(
4377
4397
  "input",
4378
4398
  {
4379
4399
  id: e,
@@ -4382,48 +4402,48 @@ function ut({
4382
4402
  checked: t,
4383
4403
  onChange: o,
4384
4404
  disabled: a,
4385
- required: l,
4405
+ required: s,
4386
4406
  className: `${k(n, i)} ${d}`,
4387
4407
  style: {
4388
4408
  accentColor: "white"
4389
4409
  },
4390
- ...m
4410
+ ...b
4391
4411
  }
4392
4412
  );
4393
4413
  }
4394
- const { Input: pt, InputArea: mt } = De, { Toggle: bt } = Cr;
4414
+ const { Input: ut, InputArea: pt } = De;
4395
4415
  export {
4396
- ct as Badge,
4416
+ it as Badge,
4397
4417
  q as Button,
4398
- at as Calendar,
4399
- ut as Checkbox,
4400
- lt as Dropdown,
4401
- Fr as EN_DEFAULT_DAY_NAMES,
4402
- _r as EN_DEFAULT_MONTH_NAMES,
4403
- Rr as ES_DEFAULT_DAY_NAMES,
4404
- Vr as ES_DEFAULT_MONTH_NAMES,
4405
- tt as ExpandableCard,
4406
- it as FileDropZone,
4407
- pt as Input,
4408
- mt as InputArea,
4409
- Nr as Loader,
4410
- Xr as Login,
4411
- dt as Modal,
4412
- rt as Pagination,
4413
- et as SearchInput,
4414
- ot as TabPanel,
4415
- st as Table,
4416
- nt as Tabs,
4417
- Zr as ThemeProvider,
4418
- bt as Toggle,
4418
+ nt as Calendar,
4419
+ dt as Checkbox,
4420
+ st as Dropdown,
4421
+ Tr as EN_DEFAULT_DAY_NAMES,
4422
+ Rr as EN_DEFAULT_MONTH_NAMES,
4423
+ $r as ES_DEFAULT_DAY_NAMES,
4424
+ Fr as ES_DEFAULT_MONTH_NAMES,
4425
+ rt as ExpandableCard,
4426
+ lt as FileDropZone,
4427
+ ut as Input,
4428
+ pt as InputArea,
4429
+ kr as Loader,
4430
+ Zr as Login,
4431
+ ct as Modal,
4432
+ et as Pagination,
4433
+ qr as SearchInput,
4434
+ tt as TabPanel,
4435
+ at as Table,
4436
+ ot as Tabs,
4437
+ Jr as ThemeProvider,
4438
+ Kr as Toggle,
4419
4439
  p as cn,
4420
4440
  O as defaultTheme,
4421
4441
  le as generateColorVariants,
4422
4442
  hr as hexToHsl,
4423
4443
  be as hslToHex,
4424
- Ir as useDebounce,
4425
- qr as useIsMobile,
4426
- Kr as useTheme,
4427
- Qr as useToast
4444
+ Pr as useDebounce,
4445
+ Qr as useIsMobile,
4446
+ Yr as useTheme,
4447
+ Xr as useToast
4428
4448
  };
4429
4449
  //# sourceMappingURL=index.js.map