componentables 0.1.21 → 0.1.24

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,55 +1,55 @@
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
- import { Oval as Te } from "react-loader-spinner";
4
- import { createPortal as $e } from "react-dom";
5
- import { toast as re } from "react-toastify";
6
- function we(e) {
1
+ import { jsxs as m, jsx as n, Fragment as je } from "react/jsx-runtime";
2
+ import G, { useMemo as Ie, useEffect as H, createContext as Oe, useContext as Te, useState as _, useCallback as ve, useRef as de } from "react";
3
+ import { Oval as $e } from "react-loader-spinner";
4
+ import { createPortal as _e } from "react-dom";
5
+ import { toast as te } from "react-toastify";
6
+ function ke(e) {
7
7
  var r, t, o = "";
8
8
  if (typeof e == "string" || typeof e == "number") o += e;
9
9
  else if (typeof e == "object") if (Array.isArray(e)) {
10
- var a = e.length;
11
- for (r = 0; r < a; r++) e[r] && (t = we(e[r])) && (o && (o += " "), o += t);
10
+ var s = e.length;
11
+ for (r = 0; r < s; r++) e[r] && (t = ke(e[r])) && (o && (o += " "), o += t);
12
12
  } else for (t in e) e[t] && (o && (o += " "), o += t);
13
13
  return o;
14
14
  }
15
15
  function Re() {
16
- for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = we(e)) && (o && (o += " "), o += r);
16
+ for (var e, r, t = 0, o = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (r = ke(e)) && (o && (o += " "), o += r);
17
17
  return o;
18
18
  }
19
- const ue = "-", Fe = (e) => {
20
- const r = Ve(e), {
19
+ const pe = "-", Fe = (e) => {
20
+ const r = Be(e), {
21
21
  conflictingClassGroups: t,
22
22
  conflictingClassGroupModifiers: o
23
23
  } = e;
24
24
  return {
25
25
  getClassGroupId: (i) => {
26
- const n = i.split(ue);
27
- return n[0] === "" && n.length !== 1 && n.shift(), ke(n, r) || _e(i);
26
+ const a = i.split(pe);
27
+ return a[0] === "" && a.length !== 1 && a.shift(), Ne(a, r) || Ve(i);
28
28
  },
29
- getConflictingClassGroupIds: (i, n) => {
30
- const c = t[i] || [];
31
- return n && o[i] ? [...c, ...o[i]] : c;
29
+ getConflictingClassGroupIds: (i, a) => {
30
+ const d = t[i] || [];
31
+ return a && o[i] ? [...d, ...o[i]] : d;
32
32
  }
33
33
  };
34
- }, ke = (e, r) => {
34
+ }, Ne = (e, r) => {
35
35
  if (e.length === 0)
36
36
  return r.classGroupId;
37
- const t = e[0], o = r.nextPart.get(t), a = o ? ke(e.slice(1), o) : void 0;
38
- if (a)
39
- return a;
37
+ const t = e[0], o = r.nextPart.get(t), s = o ? Ne(e.slice(1), o) : void 0;
38
+ if (s)
39
+ return s;
40
40
  if (r.validators.length === 0)
41
41
  return;
42
- const s = e.join(ue);
42
+ const l = e.join(pe);
43
43
  return r.validators.find(({
44
44
  validator: i
45
- }) => i(s))?.classGroupId;
46
- }, pe = /^\[(.+)\]$/, _e = (e) => {
47
- if (pe.test(e)) {
48
- const r = pe.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
45
+ }) => i(l))?.classGroupId;
46
+ }, me = /^\[(.+)\]$/, Ve = (e) => {
47
+ if (me.test(e)) {
48
+ const r = me.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
49
49
  if (t)
50
50
  return "arbitrary.." + t;
51
51
  }
52
- }, Ve = (e) => {
52
+ }, Be = (e) => {
53
53
  const {
54
54
  theme: r,
55
55
  prefix: t
@@ -57,43 +57,43 @@ const ue = "-", Fe = (e) => {
57
57
  nextPart: /* @__PURE__ */ new Map(),
58
58
  validators: []
59
59
  };
60
- return Ge(Object.entries(e.classGroups), t).forEach(([s, i]) => {
61
- de(i, o, s, r);
60
+ return We(Object.entries(e.classGroups), t).forEach(([l, i]) => {
61
+ ue(i, o, l, r);
62
62
  }), o;
63
- }, de = (e, r, t, o) => {
64
- e.forEach((a) => {
65
- if (typeof a == "string") {
66
- const s = a === "" ? r : me(r, a);
67
- s.classGroupId = t;
63
+ }, ue = (e, r, t, o) => {
64
+ e.forEach((s) => {
65
+ if (typeof s == "string") {
66
+ const l = s === "" ? r : be(r, s);
67
+ l.classGroupId = t;
68
68
  return;
69
69
  }
70
- if (typeof a == "function") {
71
- if (Be(a)) {
72
- de(a(o), r, t, o);
70
+ if (typeof s == "function") {
71
+ if (Ge(s)) {
72
+ ue(s(o), r, t, o);
73
73
  return;
74
74
  }
75
75
  r.validators.push({
76
- validator: a,
76
+ validator: s,
77
77
  classGroupId: t
78
78
  });
79
79
  return;
80
80
  }
81
- Object.entries(a).forEach(([s, i]) => {
82
- de(i, me(r, s), t, o);
81
+ Object.entries(s).forEach(([l, i]) => {
82
+ ue(i, be(r, l), t, o);
83
83
  });
84
84
  });
85
- }, me = (e, r) => {
85
+ }, be = (e, r) => {
86
86
  let t = e;
87
- return r.split(ue).forEach((o) => {
87
+ return r.split(pe).forEach((o) => {
88
88
  t.nextPart.has(o) || t.nextPart.set(o, {
89
89
  nextPart: /* @__PURE__ */ new Map(),
90
90
  validators: []
91
91
  }), t = t.nextPart.get(o);
92
92
  }), t;
93
- }, Be = (e) => e.isThemeGetter, Ge = (e, r) => r ? e.map(([t, o]) => {
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
- return [t, a];
96
- }) : e, We = (e) => {
93
+ }, Ge = (e) => e.isThemeGetter, We = (e, r) => r ? e.map(([t, o]) => {
94
+ const s = o.map((l) => typeof l == "string" ? r + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([i, a]) => [r + i, a])) : l);
95
+ return [t, s];
96
+ }) : e, He = (e) => {
97
97
  if (e < 1)
98
98
  return {
99
99
  get: () => {
@@ -102,55 +102,55 @@ const ue = "-", Fe = (e) => {
102
102
  }
103
103
  };
104
104
  let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
105
- const a = (s, i) => {
106
- t.set(s, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
105
+ const s = (l, i) => {
106
+ t.set(l, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
107
107
  };
108
108
  return {
109
- get(s) {
110
- let i = t.get(s);
109
+ get(l) {
110
+ let i = t.get(l);
111
111
  if (i !== void 0)
112
112
  return i;
113
- if ((i = o.get(s)) !== void 0)
114
- return a(s, i), i;
113
+ if ((i = o.get(l)) !== void 0)
114
+ return s(l, i), i;
115
115
  },
116
- set(s, i) {
117
- t.has(s) ? t.set(s, i) : a(s, i);
116
+ set(l, i) {
117
+ t.has(l) ? t.set(l, i) : s(l, i);
118
118
  }
119
119
  };
120
- }, Ce = "!", He = (e) => {
120
+ }, Ce = "!", Ue = (e) => {
121
121
  const {
122
122
  separator: r,
123
123
  experimentalParseClassName: t
124
- } = e, o = r.length === 1, a = r[0], s = r.length, i = (n) => {
125
- const c = [];
126
- let d = 0, b = 0, k;
127
- for (let u = 0; u < n.length; u++) {
128
- let w = n[u];
129
- if (d === 0) {
130
- if (w === a && (o || n.slice(u, u + s) === r)) {
131
- c.push(n.slice(b, u)), b = u + s;
124
+ } = e, o = r.length === 1, s = r[0], l = r.length, i = (a) => {
125
+ const d = [];
126
+ let u = 0, g = 0, k;
127
+ for (let p = 0; p < a.length; p++) {
128
+ let v = a[p];
129
+ if (u === 0) {
130
+ if (v === s && (o || a.slice(p, p + l) === r)) {
131
+ d.push(a.slice(g, p)), g = p + l;
132
132
  continue;
133
133
  }
134
- if (w === "/") {
135
- k = u;
134
+ if (v === "/") {
135
+ k = p;
136
136
  continue;
137
137
  }
138
138
  }
139
- w === "[" ? d++ : w === "]" && d--;
139
+ v === "[" ? u++ : v === "]" && u--;
140
140
  }
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;
141
+ const y = d.length === 0 ? a : a.substring(g), w = y.startsWith(Ce), b = w ? y.substring(1) : y, x = k && k > g ? k - g : void 0;
142
142
  return {
143
- modifiers: c,
144
- hasImportantModifier: v,
145
- baseClassName: m,
143
+ modifiers: d,
144
+ hasImportantModifier: w,
145
+ baseClassName: b,
146
146
  maybePostfixModifierPosition: x
147
147
  };
148
148
  };
149
- return t ? (n) => t({
150
- className: n,
149
+ return t ? (a) => t({
150
+ className: a,
151
151
  parseClassName: i
152
152
  }) : i;
153
- }, Ue = (e) => {
153
+ }, Ye = (e) => {
154
154
  if (e.length <= 1)
155
155
  return e;
156
156
  const r = [];
@@ -158,122 +158,122 @@ const ue = "-", Fe = (e) => {
158
158
  return e.forEach((o) => {
159
159
  o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
160
160
  }), r.push(...t.sort()), r;
161
- }, Ye = (e) => ({
162
- cache: We(e.cacheSize),
163
- parseClassName: He(e),
161
+ }, Je = (e) => ({
162
+ cache: He(e.cacheSize),
163
+ parseClassName: Ue(e),
164
164
  ...Fe(e)
165
- }), Je = /\s+/, Ke = (e, r) => {
165
+ }), Ke = /\s+/, Ze = (e, r) => {
166
166
  const {
167
167
  parseClassName: t,
168
168
  getClassGroupId: o,
169
- getConflictingClassGroupIds: a
170
- } = r, s = [], i = e.trim().split(Je);
171
- let n = "";
172
- for (let c = i.length - 1; c >= 0; c -= 1) {
173
- const d = i[c], {
174
- modifiers: b,
169
+ getConflictingClassGroupIds: s
170
+ } = r, l = [], i = e.trim().split(Ke);
171
+ let a = "";
172
+ for (let d = i.length - 1; d >= 0; d -= 1) {
173
+ const u = i[d], {
174
+ modifiers: g,
175
175
  hasImportantModifier: k,
176
- baseClassName: h,
177
- maybePostfixModifierPosition: v
178
- } = t(d);
179
- let m = !!v, x = o(m ? h.substring(0, v) : h);
176
+ baseClassName: y,
177
+ maybePostfixModifierPosition: w
178
+ } = t(u);
179
+ let b = !!w, x = o(b ? y.substring(0, w) : y);
180
180
  if (!x) {
181
- if (!m) {
182
- n = d + (n.length > 0 ? " " + n : n);
181
+ if (!b) {
182
+ a = u + (a.length > 0 ? " " + a : a);
183
183
  continue;
184
184
  }
185
- if (x = o(h), !x) {
186
- n = d + (n.length > 0 ? " " + n : n);
185
+ if (x = o(y), !x) {
186
+ a = u + (a.length > 0 ? " " + a : a);
187
187
  continue;
188
188
  }
189
- m = !1;
189
+ b = !1;
190
190
  }
191
- const u = Ue(b).join(":"), w = k ? u + Ce : u, f = w + x;
192
- if (s.includes(f))
191
+ const p = Ye(g).join(":"), v = k ? p + Ce : p, f = v + x;
192
+ if (l.includes(f))
193
193
  continue;
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);
194
+ l.push(f);
195
+ const S = s(x, b);
196
+ for (let A = 0; A < S.length; ++A) {
197
+ const z = S[A];
198
+ l.push(v + z);
199
199
  }
200
- n = d + (n.length > 0 ? " " + n : n);
200
+ a = u + (a.length > 0 ? " " + a : a);
201
201
  }
202
- return n;
202
+ return a;
203
203
  };
204
- function Ze() {
204
+ function Xe() {
205
205
  let e = 0, r, t, o = "";
206
206
  for (; e < arguments.length; )
207
- (r = arguments[e++]) && (t = Ne(r)) && (o && (o += " "), o += t);
207
+ (r = arguments[e++]) && (t = Me(r)) && (o && (o += " "), o += t);
208
208
  return o;
209
209
  }
210
- const Ne = (e) => {
210
+ const Me = (e) => {
211
211
  if (typeof e == "string")
212
212
  return e;
213
213
  let r, t = "";
214
214
  for (let o = 0; o < e.length; o++)
215
- e[o] && (r = Ne(e[o])) && (t && (t += " "), t += r);
215
+ e[o] && (r = Me(e[o])) && (t && (t += " "), t += r);
216
216
  return t;
217
217
  };
218
- function Xe(e, ...r) {
219
- let t, o, a, s = i;
220
- function i(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);
218
+ function qe(e, ...r) {
219
+ let t, o, s, l = i;
220
+ function i(d) {
221
+ const u = r.reduce((g, k) => k(g), e());
222
+ return t = Je(u), o = t.cache.get, s = t.cache.set, l = a, a(d);
223
223
  }
224
- function n(c) {
225
- const d = o(c);
226
- if (d)
227
- return d;
228
- const b = Ke(c, t);
229
- return a(c, b), b;
224
+ function a(d) {
225
+ const u = o(d);
226
+ if (u)
227
+ return u;
228
+ const g = Ze(d, t);
229
+ return s(d, g), g;
230
230
  }
231
231
  return function() {
232
- return s(Ze.apply(null, arguments));
232
+ return l(Xe.apply(null, arguments));
233
233
  };
234
234
  }
235
- const I = (e) => {
235
+ const j = (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)\(.+\)$/, 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
- const o = Me.exec(e);
238
+ }, ze = /^\[(?:([a-z-]+):)?(.+)\]$/i, Qe = /^\d+\/\d+$/, er = /* @__PURE__ */ new Set(["px", "full", "screen"]), rr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, tr = /\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$/, or = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, nr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, sr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, U = (e) => Q(e) || er.has(e) || Qe.test(e), Y = (e) => re(e, "length", mr), Q = (e) => !!e && !Number.isNaN(Number(e)), le = (e) => re(e, "number", Q), oe = (e) => !!e && Number.isInteger(Number(e)), ar = (e) => e.endsWith("%") && Q(e.slice(0, -1)), C = (e) => ze.test(e), J = (e) => rr.test(e), lr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), ir = (e) => re(e, lr, Le), cr = (e) => re(e, "position", Le), dr = /* @__PURE__ */ new Set(["image", "url"]), ur = (e) => re(e, dr, gr), pr = (e) => re(e, "", br), ne = () => !0, re = (e, r, t) => {
239
+ const o = ze.exec(e);
240
240
  return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
241
- }, pr = (e) => (
241
+ }, mr = (e) => (
242
242
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
243
243
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
244
244
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
245
- rr.test(e) && !tr.test(e)
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"), 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];
245
+ tr.test(e) && !or.test(e)
246
+ ), Le = () => !1, br = (e) => nr.test(e), gr = (e) => sr.test(e), hr = () => {
247
+ const e = j("colors"), r = j("spacing"), t = j("blur"), o = j("brightness"), s = j("borderColor"), l = j("borderRadius"), i = j("borderSpacing"), a = j("borderWidth"), d = j("contrast"), u = j("grayscale"), g = j("hueRotate"), k = j("invert"), y = j("gap"), w = j("gradientColorStops"), b = j("gradientColorStopPositions"), x = j("inset"), p = j("margin"), v = j("opacity"), f = j("padding"), S = j("saturate"), A = j("scale"), z = j("sepia"), E = j("skew"), h = j("space"), O = j("translate"), R = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", C, r], D = () => [C, r], M = () => ["", U, Y], P = () => ["auto", Q, C], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], X = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], N = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], L = () => ["", "0", C], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [Q, C];
248
248
  return {
249
249
  cacheSize: 500,
250
250
  separator: ":",
251
251
  theme: {
252
- colors: [oe],
253
- spacing: [H, U],
254
- blur: ["none", "", Y, N],
255
- brightness: _(),
252
+ colors: [ne],
253
+ spacing: [U, Y],
254
+ blur: ["none", "", J, C],
255
+ brightness: V(),
256
256
  borderColor: [e],
257
- borderRadius: ["none", "", "full", Y, N],
258
- borderSpacing: S(),
257
+ borderRadius: ["none", "", "full", J, C],
258
+ borderSpacing: D(),
259
259
  borderWidth: M(),
260
- contrast: _(),
260
+ contrast: V(),
261
261
  grayscale: L(),
262
- hueRotate: _(),
262
+ hueRotate: V(),
263
263
  invert: L(),
264
- gap: S(),
264
+ gap: D(),
265
265
  gradientColorStops: [e],
266
- gradientColorStopPositions: [ar, U],
267
- inset: K(),
268
- margin: K(),
269
- opacity: _(),
270
- padding: S(),
271
- saturate: _(),
272
- scale: _(),
266
+ gradientColorStopPositions: [ar, Y],
267
+ inset: Z(),
268
+ margin: Z(),
269
+ opacity: V(),
270
+ padding: D(),
271
+ saturate: V(),
272
+ scale: V(),
273
273
  sepia: L(),
274
- skew: _(),
275
- space: S(),
276
- translate: S()
274
+ skew: V(),
275
+ space: D(),
276
+ translate: D()
277
277
  },
278
278
  classGroups: {
279
279
  // Layout
@@ -282,7 +282,7 @@ const I = (e) => {
282
282
  * @see https://tailwindcss.com/docs/aspect-ratio
283
283
  */
284
284
  aspect: [{
285
- aspect: ["auto", "square", "video", N]
285
+ aspect: ["auto", "square", "video", C]
286
286
  }],
287
287
  /**
288
288
  * Container
@@ -294,7 +294,7 @@ const I = (e) => {
294
294
  * @see https://tailwindcss.com/docs/columns
295
295
  */
296
296
  columns: [{
297
- columns: [Y]
297
+ columns: [J]
298
298
  }],
299
299
  /**
300
300
  * Break After
@@ -367,28 +367,28 @@ const I = (e) => {
367
367
  * @see https://tailwindcss.com/docs/object-position
368
368
  */
369
369
  "object-position": [{
370
- object: [...V(), N]
370
+ object: [...B(), C]
371
371
  }],
372
372
  /**
373
373
  * Overflow
374
374
  * @see https://tailwindcss.com/docs/overflow
375
375
  */
376
376
  overflow: [{
377
- overflow: G()
377
+ overflow: W()
378
378
  }],
379
379
  /**
380
380
  * Overflow X
381
381
  * @see https://tailwindcss.com/docs/overflow
382
382
  */
383
383
  "overflow-x": [{
384
- "overflow-x": G()
384
+ "overflow-x": W()
385
385
  }],
386
386
  /**
387
387
  * Overflow Y
388
388
  * @see https://tailwindcss.com/docs/overflow
389
389
  */
390
390
  "overflow-y": [{
391
- "overflow-y": G()
391
+ "overflow-y": W()
392
392
  }],
393
393
  /**
394
394
  * Overscroll Behavior
@@ -489,7 +489,7 @@ const I = (e) => {
489
489
  * @see https://tailwindcss.com/docs/z-index
490
490
  */
491
491
  z: [{
492
- z: ["auto", te, N]
492
+ z: ["auto", oe, C]
493
493
  }],
494
494
  // Flexbox and Grid
495
495
  /**
@@ -497,7 +497,7 @@ const I = (e) => {
497
497
  * @see https://tailwindcss.com/docs/flex-basis
498
498
  */
499
499
  basis: [{
500
- basis: K()
500
+ basis: Z()
501
501
  }],
502
502
  /**
503
503
  * Flex Direction
@@ -518,7 +518,7 @@ const I = (e) => {
518
518
  * @see https://tailwindcss.com/docs/flex
519
519
  */
520
520
  flex: [{
521
- flex: ["1", "auto", "initial", "none", N]
521
+ flex: ["1", "auto", "initial", "none", C]
522
522
  }],
523
523
  /**
524
524
  * Flex Grow
@@ -539,14 +539,14 @@ const I = (e) => {
539
539
  * @see https://tailwindcss.com/docs/order
540
540
  */
541
541
  order: [{
542
- order: ["first", "last", "none", te, N]
542
+ order: ["first", "last", "none", oe, C]
543
543
  }],
544
544
  /**
545
545
  * Grid Template Columns
546
546
  * @see https://tailwindcss.com/docs/grid-template-columns
547
547
  */
548
548
  "grid-cols": [{
549
- "grid-cols": [oe]
549
+ "grid-cols": [ne]
550
550
  }],
551
551
  /**
552
552
  * Grid Column Start / End
@@ -554,29 +554,29 @@ const I = (e) => {
554
554
  */
555
555
  "col-start-end": [{
556
556
  col: ["auto", {
557
- span: ["full", te, N]
558
- }, N]
557
+ span: ["full", oe, C]
558
+ }, C]
559
559
  }],
560
560
  /**
561
561
  * Grid Column Start
562
562
  * @see https://tailwindcss.com/docs/grid-column
563
563
  */
564
564
  "col-start": [{
565
- "col-start": A()
565
+ "col-start": P()
566
566
  }],
567
567
  /**
568
568
  * Grid Column End
569
569
  * @see https://tailwindcss.com/docs/grid-column
570
570
  */
571
571
  "col-end": [{
572
- "col-end": A()
572
+ "col-end": P()
573
573
  }],
574
574
  /**
575
575
  * Grid Template Rows
576
576
  * @see https://tailwindcss.com/docs/grid-template-rows
577
577
  */
578
578
  "grid-rows": [{
579
- "grid-rows": [oe]
579
+ "grid-rows": [ne]
580
580
  }],
581
581
  /**
582
582
  * Grid Row Start / End
@@ -584,22 +584,22 @@ const I = (e) => {
584
584
  */
585
585
  "row-start-end": [{
586
586
  row: ["auto", {
587
- span: [te, N]
588
- }, N]
587
+ span: [oe, C]
588
+ }, C]
589
589
  }],
590
590
  /**
591
591
  * Grid Row Start
592
592
  * @see https://tailwindcss.com/docs/grid-row
593
593
  */
594
594
  "row-start": [{
595
- "row-start": A()
595
+ "row-start": P()
596
596
  }],
597
597
  /**
598
598
  * Grid Row End
599
599
  * @see https://tailwindcss.com/docs/grid-row
600
600
  */
601
601
  "row-end": [{
602
- "row-end": A()
602
+ "row-end": P()
603
603
  }],
604
604
  /**
605
605
  * Grid Auto Flow
@@ -613,42 +613,42 @@ const I = (e) => {
613
613
  * @see https://tailwindcss.com/docs/grid-auto-columns
614
614
  */
615
615
  "auto-cols": [{
616
- "auto-cols": ["auto", "min", "max", "fr", N]
616
+ "auto-cols": ["auto", "min", "max", "fr", C]
617
617
  }],
618
618
  /**
619
619
  * Grid Auto Rows
620
620
  * @see https://tailwindcss.com/docs/grid-auto-rows
621
621
  */
622
622
  "auto-rows": [{
623
- "auto-rows": ["auto", "min", "max", "fr", N]
623
+ "auto-rows": ["auto", "min", "max", "fr", C]
624
624
  }],
625
625
  /**
626
626
  * Gap
627
627
  * @see https://tailwindcss.com/docs/gap
628
628
  */
629
629
  gap: [{
630
- gap: [h]
630
+ gap: [y]
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": [h]
637
+ "gap-x": [y]
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": [h]
644
+ "gap-y": [y]
645
645
  }],
646
646
  /**
647
647
  * Justify Content
648
648
  * @see https://tailwindcss.com/docs/justify-content
649
649
  */
650
650
  "justify-content": [{
651
- justify: ["normal", ...C()]
651
+ justify: ["normal", ...N()]
652
652
  }],
653
653
  /**
654
654
  * Justify Items
@@ -669,7 +669,7 @@ const I = (e) => {
669
669
  * @see https://tailwindcss.com/docs/align-content
670
670
  */
671
671
  "align-content": [{
672
- content: ["normal", ...C(), "baseline"]
672
+ content: ["normal", ...N(), "baseline"]
673
673
  }],
674
674
  /**
675
675
  * Align Items
@@ -690,7 +690,7 @@ const I = (e) => {
690
690
  * @see https://tailwindcss.com/docs/place-content
691
691
  */
692
692
  "place-content": [{
693
- "place-content": [...C(), "baseline"]
693
+ "place-content": [...N(), "baseline"]
694
694
  }],
695
695
  /**
696
696
  * Place Items
@@ -775,70 +775,70 @@ const I = (e) => {
775
775
  * @see https://tailwindcss.com/docs/margin
776
776
  */
777
777
  m: [{
778
- m: [u]
778
+ m: [p]
779
779
  }],
780
780
  /**
781
781
  * Margin X
782
782
  * @see https://tailwindcss.com/docs/margin
783
783
  */
784
784
  mx: [{
785
- mx: [u]
785
+ mx: [p]
786
786
  }],
787
787
  /**
788
788
  * Margin Y
789
789
  * @see https://tailwindcss.com/docs/margin
790
790
  */
791
791
  my: [{
792
- my: [u]
792
+ my: [p]
793
793
  }],
794
794
  /**
795
795
  * Margin Start
796
796
  * @see https://tailwindcss.com/docs/margin
797
797
  */
798
798
  ms: [{
799
- ms: [u]
799
+ ms: [p]
800
800
  }],
801
801
  /**
802
802
  * Margin End
803
803
  * @see https://tailwindcss.com/docs/margin
804
804
  */
805
805
  me: [{
806
- me: [u]
806
+ me: [p]
807
807
  }],
808
808
  /**
809
809
  * Margin Top
810
810
  * @see https://tailwindcss.com/docs/margin
811
811
  */
812
812
  mt: [{
813
- mt: [u]
813
+ mt: [p]
814
814
  }],
815
815
  /**
816
816
  * Margin Right
817
817
  * @see https://tailwindcss.com/docs/margin
818
818
  */
819
819
  mr: [{
820
- mr: [u]
820
+ mr: [p]
821
821
  }],
822
822
  /**
823
823
  * Margin Bottom
824
824
  * @see https://tailwindcss.com/docs/margin
825
825
  */
826
826
  mb: [{
827
- mb: [u]
827
+ mb: [p]
828
828
  }],
829
829
  /**
830
830
  * Margin Left
831
831
  * @see https://tailwindcss.com/docs/margin
832
832
  */
833
833
  ml: [{
834
- ml: [u]
834
+ ml: [p]
835
835
  }],
836
836
  /**
837
837
  * Space Between X
838
838
  * @see https://tailwindcss.com/docs/space
839
839
  */
840
840
  "space-x": [{
841
- "space-x": [g]
841
+ "space-x": [h]
842
842
  }],
843
843
  /**
844
844
  * Space Between X Reverse
@@ -850,7 +850,7 @@ const I = (e) => {
850
850
  * @see https://tailwindcss.com/docs/space
851
851
  */
852
852
  "space-y": [{
853
- "space-y": [g]
853
+ "space-y": [h]
854
854
  }],
855
855
  /**
856
856
  * Space Between Y Reverse
@@ -863,51 +863,51 @@ const I = (e) => {
863
863
  * @see https://tailwindcss.com/docs/width
864
864
  */
865
865
  w: [{
866
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", N, r]
866
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", C, r]
867
867
  }],
868
868
  /**
869
869
  * Min-Width
870
870
  * @see https://tailwindcss.com/docs/min-width
871
871
  */
872
872
  "min-w": [{
873
- "min-w": [N, r, "min", "max", "fit"]
873
+ "min-w": [C, r, "min", "max", "fit"]
874
874
  }],
875
875
  /**
876
876
  * Max-Width
877
877
  * @see https://tailwindcss.com/docs/max-width
878
878
  */
879
879
  "max-w": [{
880
- "max-w": [N, r, "none", "full", "min", "max", "fit", "prose", {
881
- screen: [Y]
882
- }, Y]
880
+ "max-w": [C, r, "none", "full", "min", "max", "fit", "prose", {
881
+ screen: [J]
882
+ }, J]
883
883
  }],
884
884
  /**
885
885
  * Height
886
886
  * @see https://tailwindcss.com/docs/height
887
887
  */
888
888
  h: [{
889
- h: [N, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
889
+ h: [C, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
890
890
  }],
891
891
  /**
892
892
  * Min-Height
893
893
  * @see https://tailwindcss.com/docs/min-height
894
894
  */
895
895
  "min-h": [{
896
- "min-h": [N, r, "min", "max", "fit", "svh", "lvh", "dvh"]
896
+ "min-h": [C, r, "min", "max", "fit", "svh", "lvh", "dvh"]
897
897
  }],
898
898
  /**
899
899
  * Max-Height
900
900
  * @see https://tailwindcss.com/docs/max-height
901
901
  */
902
902
  "max-h": [{
903
- "max-h": [N, r, "min", "max", "fit", "svh", "lvh", "dvh"]
903
+ "max-h": [C, r, "min", "max", "fit", "svh", "lvh", "dvh"]
904
904
  }],
905
905
  /**
906
906
  * Size
907
907
  * @see https://tailwindcss.com/docs/size
908
908
  */
909
909
  size: [{
910
- size: [N, r, "auto", "min", "max", "fit"]
910
+ size: [C, r, "auto", "min", "max", "fit"]
911
911
  }],
912
912
  // Typography
913
913
  /**
@@ -915,7 +915,7 @@ const I = (e) => {
915
915
  * @see https://tailwindcss.com/docs/font-size
916
916
  */
917
917
  "font-size": [{
918
- text: ["base", Y, U]
918
+ text: ["base", J, Y]
919
919
  }],
920
920
  /**
921
921
  * Font Smoothing
@@ -932,14 +932,14 @@ const I = (e) => {
932
932
  * @see https://tailwindcss.com/docs/font-weight
933
933
  */
934
934
  "font-weight": [{
935
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", se]
935
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", le]
936
936
  }],
937
937
  /**
938
938
  * Font Family
939
939
  * @see https://tailwindcss.com/docs/font-family
940
940
  */
941
941
  "font-family": [{
942
- font: [oe]
942
+ font: [ne]
943
943
  }],
944
944
  /**
945
945
  * Font Variant Numeric
@@ -976,35 +976,35 @@ const I = (e) => {
976
976
  * @see https://tailwindcss.com/docs/letter-spacing
977
977
  */
978
978
  tracking: [{
979
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", N]
979
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", C]
980
980
  }],
981
981
  /**
982
982
  * Line Clamp
983
983
  * @see https://tailwindcss.com/docs/line-clamp
984
984
  */
985
985
  "line-clamp": [{
986
- "line-clamp": ["none", Q, se]
986
+ "line-clamp": ["none", Q, le]
987
987
  }],
988
988
  /**
989
989
  * Line Height
990
990
  * @see https://tailwindcss.com/docs/line-height
991
991
  */
992
992
  leading: [{
993
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", H, N]
993
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", U, C]
994
994
  }],
995
995
  /**
996
996
  * List Style Image
997
997
  * @see https://tailwindcss.com/docs/list-style-image
998
998
  */
999
999
  "list-image": [{
1000
- "list-image": ["none", N]
1000
+ "list-image": ["none", C]
1001
1001
  }],
1002
1002
  /**
1003
1003
  * List Style Type
1004
1004
  * @see https://tailwindcss.com/docs/list-style-type
1005
1005
  */
1006
1006
  "list-style-type": [{
1007
- list: ["none", "disc", "decimal", N]
1007
+ list: ["none", "disc", "decimal", C]
1008
1008
  }],
1009
1009
  /**
1010
1010
  * List Style Position
@@ -1026,7 +1026,7 @@ const I = (e) => {
1026
1026
  * @see https://tailwindcss.com/docs/placeholder-opacity
1027
1027
  */
1028
1028
  "placeholder-opacity": [{
1029
- "placeholder-opacity": [w]
1029
+ "placeholder-opacity": [v]
1030
1030
  }],
1031
1031
  /**
1032
1032
  * Text Alignment
@@ -1047,7 +1047,7 @@ const I = (e) => {
1047
1047
  * @see https://tailwindcss.com/docs/text-opacity
1048
1048
  */
1049
1049
  "text-opacity": [{
1050
- "text-opacity": [w]
1050
+ "text-opacity": [v]
1051
1051
  }],
1052
1052
  /**
1053
1053
  * Text Decoration
@@ -1059,21 +1059,21 @@ const I = (e) => {
1059
1059
  * @see https://tailwindcss.com/docs/text-decoration-style
1060
1060
  */
1061
1061
  "text-decoration-style": [{
1062
- decoration: [...T(), "wavy"]
1062
+ decoration: [...$(), "wavy"]
1063
1063
  }],
1064
1064
  /**
1065
1065
  * Text Decoration Thickness
1066
1066
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1067
1067
  */
1068
1068
  "text-decoration-thickness": [{
1069
- decoration: ["auto", "from-font", H, U]
1069
+ decoration: ["auto", "from-font", U, Y]
1070
1070
  }],
1071
1071
  /**
1072
1072
  * Text Underline Offset
1073
1073
  * @see https://tailwindcss.com/docs/text-underline-offset
1074
1074
  */
1075
1075
  "underline-offset": [{
1076
- "underline-offset": ["auto", H, N]
1076
+ "underline-offset": ["auto", U, C]
1077
1077
  }],
1078
1078
  /**
1079
1079
  * Text Decoration Color
@@ -1104,14 +1104,14 @@ const I = (e) => {
1104
1104
  * @see https://tailwindcss.com/docs/text-indent
1105
1105
  */
1106
1106
  indent: [{
1107
- indent: S()
1107
+ indent: D()
1108
1108
  }],
1109
1109
  /**
1110
1110
  * Vertical Alignment
1111
1111
  * @see https://tailwindcss.com/docs/vertical-align
1112
1112
  */
1113
1113
  "vertical-align": [{
1114
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", N]
1114
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", C]
1115
1115
  }],
1116
1116
  /**
1117
1117
  * Whitespace
@@ -1139,7 +1139,7 @@ const I = (e) => {
1139
1139
  * @see https://tailwindcss.com/docs/content
1140
1140
  */
1141
1141
  content: [{
1142
- content: ["none", N]
1142
+ content: ["none", C]
1143
1143
  }],
1144
1144
  // Backgrounds
1145
1145
  /**
@@ -1162,7 +1162,7 @@ const I = (e) => {
1162
1162
  * @see https://tailwindcss.com/docs/background-opacity
1163
1163
  */
1164
1164
  "bg-opacity": [{
1165
- "bg-opacity": [w]
1165
+ "bg-opacity": [v]
1166
1166
  }],
1167
1167
  /**
1168
1168
  * Background Origin
@@ -1176,7 +1176,7 @@ const I = (e) => {
1176
1176
  * @see https://tailwindcss.com/docs/background-position
1177
1177
  */
1178
1178
  "bg-position": [{
1179
- bg: [...V(), ir]
1179
+ bg: [...B(), cr]
1180
1180
  }],
1181
1181
  /**
1182
1182
  * Background Repeat
@@ -1192,7 +1192,7 @@ const I = (e) => {
1192
1192
  * @see https://tailwindcss.com/docs/background-size
1193
1193
  */
1194
1194
  "bg-size": [{
1195
- bg: ["auto", "cover", "contain", lr]
1195
+ bg: ["auto", "cover", "contain", ir]
1196
1196
  }],
1197
1197
  /**
1198
1198
  * Background Image
@@ -1201,7 +1201,7 @@ const I = (e) => {
1201
1201
  "bg-image": [{
1202
1202
  bg: ["none", {
1203
1203
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1204
- }, dr]
1204
+ }, ur]
1205
1205
  }],
1206
1206
  /**
1207
1207
  * Background Color
@@ -1215,42 +1215,42 @@ const I = (e) => {
1215
1215
  * @see https://tailwindcss.com/docs/gradient-color-stops
1216
1216
  */
1217
1217
  "gradient-from-pos": [{
1218
- from: [m]
1218
+ from: [b]
1219
1219
  }],
1220
1220
  /**
1221
1221
  * Gradient Color Stops Via Position
1222
1222
  * @see https://tailwindcss.com/docs/gradient-color-stops
1223
1223
  */
1224
1224
  "gradient-via-pos": [{
1225
- via: [m]
1225
+ via: [b]
1226
1226
  }],
1227
1227
  /**
1228
1228
  * Gradient Color Stops To Position
1229
1229
  * @see https://tailwindcss.com/docs/gradient-color-stops
1230
1230
  */
1231
1231
  "gradient-to-pos": [{
1232
- to: [m]
1232
+ to: [b]
1233
1233
  }],
1234
1234
  /**
1235
1235
  * Gradient Color Stops From
1236
1236
  * @see https://tailwindcss.com/docs/gradient-color-stops
1237
1237
  */
1238
1238
  "gradient-from": [{
1239
- from: [v]
1239
+ from: [w]
1240
1240
  }],
1241
1241
  /**
1242
1242
  * Gradient Color Stops Via
1243
1243
  * @see https://tailwindcss.com/docs/gradient-color-stops
1244
1244
  */
1245
1245
  "gradient-via": [{
1246
- via: [v]
1246
+ via: [w]
1247
1247
  }],
1248
1248
  /**
1249
1249
  * Gradient Color Stops To
1250
1250
  * @see https://tailwindcss.com/docs/gradient-color-stops
1251
1251
  */
1252
1252
  "gradient-to": [{
1253
- to: [v]
1253
+ to: [w]
1254
1254
  }],
1255
1255
  // Borders
1256
1256
  /**
@@ -1258,189 +1258,189 @@ const I = (e) => {
1258
1258
  * @see https://tailwindcss.com/docs/border-radius
1259
1259
  */
1260
1260
  rounded: [{
1261
- rounded: [s]
1261
+ rounded: [l]
1262
1262
  }],
1263
1263
  /**
1264
1264
  * Border Radius Start
1265
1265
  * @see https://tailwindcss.com/docs/border-radius
1266
1266
  */
1267
1267
  "rounded-s": [{
1268
- "rounded-s": [s]
1268
+ "rounded-s": [l]
1269
1269
  }],
1270
1270
  /**
1271
1271
  * Border Radius End
1272
1272
  * @see https://tailwindcss.com/docs/border-radius
1273
1273
  */
1274
1274
  "rounded-e": [{
1275
- "rounded-e": [s]
1275
+ "rounded-e": [l]
1276
1276
  }],
1277
1277
  /**
1278
1278
  * Border Radius Top
1279
1279
  * @see https://tailwindcss.com/docs/border-radius
1280
1280
  */
1281
1281
  "rounded-t": [{
1282
- "rounded-t": [s]
1282
+ "rounded-t": [l]
1283
1283
  }],
1284
1284
  /**
1285
1285
  * Border Radius Right
1286
1286
  * @see https://tailwindcss.com/docs/border-radius
1287
1287
  */
1288
1288
  "rounded-r": [{
1289
- "rounded-r": [s]
1289
+ "rounded-r": [l]
1290
1290
  }],
1291
1291
  /**
1292
1292
  * Border Radius Bottom
1293
1293
  * @see https://tailwindcss.com/docs/border-radius
1294
1294
  */
1295
1295
  "rounded-b": [{
1296
- "rounded-b": [s]
1296
+ "rounded-b": [l]
1297
1297
  }],
1298
1298
  /**
1299
1299
  * Border Radius Left
1300
1300
  * @see https://tailwindcss.com/docs/border-radius
1301
1301
  */
1302
1302
  "rounded-l": [{
1303
- "rounded-l": [s]
1303
+ "rounded-l": [l]
1304
1304
  }],
1305
1305
  /**
1306
1306
  * Border Radius Start Start
1307
1307
  * @see https://tailwindcss.com/docs/border-radius
1308
1308
  */
1309
1309
  "rounded-ss": [{
1310
- "rounded-ss": [s]
1310
+ "rounded-ss": [l]
1311
1311
  }],
1312
1312
  /**
1313
1313
  * Border Radius Start End
1314
1314
  * @see https://tailwindcss.com/docs/border-radius
1315
1315
  */
1316
1316
  "rounded-se": [{
1317
- "rounded-se": [s]
1317
+ "rounded-se": [l]
1318
1318
  }],
1319
1319
  /**
1320
1320
  * Border Radius End End
1321
1321
  * @see https://tailwindcss.com/docs/border-radius
1322
1322
  */
1323
1323
  "rounded-ee": [{
1324
- "rounded-ee": [s]
1324
+ "rounded-ee": [l]
1325
1325
  }],
1326
1326
  /**
1327
1327
  * Border Radius End Start
1328
1328
  * @see https://tailwindcss.com/docs/border-radius
1329
1329
  */
1330
1330
  "rounded-es": [{
1331
- "rounded-es": [s]
1331
+ "rounded-es": [l]
1332
1332
  }],
1333
1333
  /**
1334
1334
  * Border Radius Top Left
1335
1335
  * @see https://tailwindcss.com/docs/border-radius
1336
1336
  */
1337
1337
  "rounded-tl": [{
1338
- "rounded-tl": [s]
1338
+ "rounded-tl": [l]
1339
1339
  }],
1340
1340
  /**
1341
1341
  * Border Radius Top Right
1342
1342
  * @see https://tailwindcss.com/docs/border-radius
1343
1343
  */
1344
1344
  "rounded-tr": [{
1345
- "rounded-tr": [s]
1345
+ "rounded-tr": [l]
1346
1346
  }],
1347
1347
  /**
1348
1348
  * Border Radius Bottom Right
1349
1349
  * @see https://tailwindcss.com/docs/border-radius
1350
1350
  */
1351
1351
  "rounded-br": [{
1352
- "rounded-br": [s]
1352
+ "rounded-br": [l]
1353
1353
  }],
1354
1354
  /**
1355
1355
  * Border Radius Bottom Left
1356
1356
  * @see https://tailwindcss.com/docs/border-radius
1357
1357
  */
1358
1358
  "rounded-bl": [{
1359
- "rounded-bl": [s]
1359
+ "rounded-bl": [l]
1360
1360
  }],
1361
1361
  /**
1362
1362
  * Border Width
1363
1363
  * @see https://tailwindcss.com/docs/border-width
1364
1364
  */
1365
1365
  "border-w": [{
1366
- border: [n]
1366
+ border: [a]
1367
1367
  }],
1368
1368
  /**
1369
1369
  * Border Width X
1370
1370
  * @see https://tailwindcss.com/docs/border-width
1371
1371
  */
1372
1372
  "border-w-x": [{
1373
- "border-x": [n]
1373
+ "border-x": [a]
1374
1374
  }],
1375
1375
  /**
1376
1376
  * Border Width Y
1377
1377
  * @see https://tailwindcss.com/docs/border-width
1378
1378
  */
1379
1379
  "border-w-y": [{
1380
- "border-y": [n]
1380
+ "border-y": [a]
1381
1381
  }],
1382
1382
  /**
1383
1383
  * Border Width Start
1384
1384
  * @see https://tailwindcss.com/docs/border-width
1385
1385
  */
1386
1386
  "border-w-s": [{
1387
- "border-s": [n]
1387
+ "border-s": [a]
1388
1388
  }],
1389
1389
  /**
1390
1390
  * Border Width End
1391
1391
  * @see https://tailwindcss.com/docs/border-width
1392
1392
  */
1393
1393
  "border-w-e": [{
1394
- "border-e": [n]
1394
+ "border-e": [a]
1395
1395
  }],
1396
1396
  /**
1397
1397
  * Border Width Top
1398
1398
  * @see https://tailwindcss.com/docs/border-width
1399
1399
  */
1400
1400
  "border-w-t": [{
1401
- "border-t": [n]
1401
+ "border-t": [a]
1402
1402
  }],
1403
1403
  /**
1404
1404
  * Border Width Right
1405
1405
  * @see https://tailwindcss.com/docs/border-width
1406
1406
  */
1407
1407
  "border-w-r": [{
1408
- "border-r": [n]
1408
+ "border-r": [a]
1409
1409
  }],
1410
1410
  /**
1411
1411
  * Border Width Bottom
1412
1412
  * @see https://tailwindcss.com/docs/border-width
1413
1413
  */
1414
1414
  "border-w-b": [{
1415
- "border-b": [n]
1415
+ "border-b": [a]
1416
1416
  }],
1417
1417
  /**
1418
1418
  * Border Width Left
1419
1419
  * @see https://tailwindcss.com/docs/border-width
1420
1420
  */
1421
1421
  "border-w-l": [{
1422
- "border-l": [n]
1422
+ "border-l": [a]
1423
1423
  }],
1424
1424
  /**
1425
1425
  * Border Opacity
1426
1426
  * @see https://tailwindcss.com/docs/border-opacity
1427
1427
  */
1428
1428
  "border-opacity": [{
1429
- "border-opacity": [w]
1429
+ "border-opacity": [v]
1430
1430
  }],
1431
1431
  /**
1432
1432
  * Border Style
1433
1433
  * @see https://tailwindcss.com/docs/border-style
1434
1434
  */
1435
1435
  "border-style": [{
1436
- border: [...T(), "hidden"]
1436
+ border: [...$(), "hidden"]
1437
1437
  }],
1438
1438
  /**
1439
1439
  * Divide Width X
1440
1440
  * @see https://tailwindcss.com/docs/divide-width
1441
1441
  */
1442
1442
  "divide-x": [{
1443
- "divide-x": [n]
1443
+ "divide-x": [a]
1444
1444
  }],
1445
1445
  /**
1446
1446
  * Divide Width X Reverse
@@ -1452,7 +1452,7 @@ const I = (e) => {
1452
1452
  * @see https://tailwindcss.com/docs/divide-width
1453
1453
  */
1454
1454
  "divide-y": [{
1455
- "divide-y": [n]
1455
+ "divide-y": [a]
1456
1456
  }],
1457
1457
  /**
1458
1458
  * Divide Width Y Reverse
@@ -1464,105 +1464,105 @@ const I = (e) => {
1464
1464
  * @see https://tailwindcss.com/docs/divide-opacity
1465
1465
  */
1466
1466
  "divide-opacity": [{
1467
- "divide-opacity": [w]
1467
+ "divide-opacity": [v]
1468
1468
  }],
1469
1469
  /**
1470
1470
  * Divide Style
1471
1471
  * @see https://tailwindcss.com/docs/divide-style
1472
1472
  */
1473
1473
  "divide-style": [{
1474
- divide: T()
1474
+ divide: $()
1475
1475
  }],
1476
1476
  /**
1477
1477
  * Border Color
1478
1478
  * @see https://tailwindcss.com/docs/border-color
1479
1479
  */
1480
1480
  "border-color": [{
1481
- border: [a]
1481
+ border: [s]
1482
1482
  }],
1483
1483
  /**
1484
1484
  * Border Color X
1485
1485
  * @see https://tailwindcss.com/docs/border-color
1486
1486
  */
1487
1487
  "border-color-x": [{
1488
- "border-x": [a]
1488
+ "border-x": [s]
1489
1489
  }],
1490
1490
  /**
1491
1491
  * Border Color Y
1492
1492
  * @see https://tailwindcss.com/docs/border-color
1493
1493
  */
1494
1494
  "border-color-y": [{
1495
- "border-y": [a]
1495
+ "border-y": [s]
1496
1496
  }],
1497
1497
  /**
1498
1498
  * Border Color S
1499
1499
  * @see https://tailwindcss.com/docs/border-color
1500
1500
  */
1501
1501
  "border-color-s": [{
1502
- "border-s": [a]
1502
+ "border-s": [s]
1503
1503
  }],
1504
1504
  /**
1505
1505
  * Border Color E
1506
1506
  * @see https://tailwindcss.com/docs/border-color
1507
1507
  */
1508
1508
  "border-color-e": [{
1509
- "border-e": [a]
1509
+ "border-e": [s]
1510
1510
  }],
1511
1511
  /**
1512
1512
  * Border Color Top
1513
1513
  * @see https://tailwindcss.com/docs/border-color
1514
1514
  */
1515
1515
  "border-color-t": [{
1516
- "border-t": [a]
1516
+ "border-t": [s]
1517
1517
  }],
1518
1518
  /**
1519
1519
  * Border Color Right
1520
1520
  * @see https://tailwindcss.com/docs/border-color
1521
1521
  */
1522
1522
  "border-color-r": [{
1523
- "border-r": [a]
1523
+ "border-r": [s]
1524
1524
  }],
1525
1525
  /**
1526
1526
  * Border Color Bottom
1527
1527
  * @see https://tailwindcss.com/docs/border-color
1528
1528
  */
1529
1529
  "border-color-b": [{
1530
- "border-b": [a]
1530
+ "border-b": [s]
1531
1531
  }],
1532
1532
  /**
1533
1533
  * Border Color Left
1534
1534
  * @see https://tailwindcss.com/docs/border-color
1535
1535
  */
1536
1536
  "border-color-l": [{
1537
- "border-l": [a]
1537
+ "border-l": [s]
1538
1538
  }],
1539
1539
  /**
1540
1540
  * Divide Color
1541
1541
  * @see https://tailwindcss.com/docs/divide-color
1542
1542
  */
1543
1543
  "divide-color": [{
1544
- divide: [a]
1544
+ divide: [s]
1545
1545
  }],
1546
1546
  /**
1547
1547
  * Outline Style
1548
1548
  * @see https://tailwindcss.com/docs/outline-style
1549
1549
  */
1550
1550
  "outline-style": [{
1551
- outline: ["", ...T()]
1551
+ outline: ["", ...$()]
1552
1552
  }],
1553
1553
  /**
1554
1554
  * Outline Offset
1555
1555
  * @see https://tailwindcss.com/docs/outline-offset
1556
1556
  */
1557
1557
  "outline-offset": [{
1558
- "outline-offset": [H, N]
1558
+ "outline-offset": [U, C]
1559
1559
  }],
1560
1560
  /**
1561
1561
  * Outline Width
1562
1562
  * @see https://tailwindcss.com/docs/outline-width
1563
1563
  */
1564
1564
  "outline-w": [{
1565
- outline: [H, U]
1565
+ outline: [U, Y]
1566
1566
  }],
1567
1567
  /**
1568
1568
  * Outline Color
@@ -1595,14 +1595,14 @@ const I = (e) => {
1595
1595
  * @see https://tailwindcss.com/docs/ring-opacity
1596
1596
  */
1597
1597
  "ring-opacity": [{
1598
- "ring-opacity": [w]
1598
+ "ring-opacity": [v]
1599
1599
  }],
1600
1600
  /**
1601
1601
  * Ring Offset Width
1602
1602
  * @see https://tailwindcss.com/docs/ring-offset-width
1603
1603
  */
1604
1604
  "ring-offset-w": [{
1605
- "ring-offset": [H, U]
1605
+ "ring-offset": [U, Y]
1606
1606
  }],
1607
1607
  /**
1608
1608
  * Ring Offset Color
@@ -1617,35 +1617,35 @@ const I = (e) => {
1617
1617
  * @see https://tailwindcss.com/docs/box-shadow
1618
1618
  */
1619
1619
  shadow: [{
1620
- shadow: ["", "inner", "none", Y, ur]
1620
+ shadow: ["", "inner", "none", J, pr]
1621
1621
  }],
1622
1622
  /**
1623
1623
  * Box Shadow Color
1624
1624
  * @see https://tailwindcss.com/docs/box-shadow-color
1625
1625
  */
1626
1626
  "shadow-color": [{
1627
- shadow: [oe]
1627
+ shadow: [ne]
1628
1628
  }],
1629
1629
  /**
1630
1630
  * Opacity
1631
1631
  * @see https://tailwindcss.com/docs/opacity
1632
1632
  */
1633
1633
  opacity: [{
1634
- opacity: [w]
1634
+ opacity: [v]
1635
1635
  }],
1636
1636
  /**
1637
1637
  * Mix Blend Mode
1638
1638
  * @see https://tailwindcss.com/docs/mix-blend-mode
1639
1639
  */
1640
1640
  "mix-blend": [{
1641
- "mix-blend": [...Z(), "plus-lighter", "plus-darker"]
1641
+ "mix-blend": [...X(), "plus-lighter", "plus-darker"]
1642
1642
  }],
1643
1643
  /**
1644
1644
  * Background Blend Mode
1645
1645
  * @see https://tailwindcss.com/docs/background-blend-mode
1646
1646
  */
1647
1647
  "bg-blend": [{
1648
- "bg-blend": Z()
1648
+ "bg-blend": X()
1649
1649
  }],
1650
1650
  // Filters
1651
1651
  /**
@@ -1675,28 +1675,28 @@ const I = (e) => {
1675
1675
  * @see https://tailwindcss.com/docs/contrast
1676
1676
  */
1677
1677
  contrast: [{
1678
- contrast: [c]
1678
+ contrast: [d]
1679
1679
  }],
1680
1680
  /**
1681
1681
  * Drop Shadow
1682
1682
  * @see https://tailwindcss.com/docs/drop-shadow
1683
1683
  */
1684
1684
  "drop-shadow": [{
1685
- "drop-shadow": ["", "none", Y, N]
1685
+ "drop-shadow": ["", "none", J, C]
1686
1686
  }],
1687
1687
  /**
1688
1688
  * Grayscale
1689
1689
  * @see https://tailwindcss.com/docs/grayscale
1690
1690
  */
1691
1691
  grayscale: [{
1692
- grayscale: [d]
1692
+ grayscale: [u]
1693
1693
  }],
1694
1694
  /**
1695
1695
  * Hue Rotate
1696
1696
  * @see https://tailwindcss.com/docs/hue-rotate
1697
1697
  */
1698
1698
  "hue-rotate": [{
1699
- "hue-rotate": [b]
1699
+ "hue-rotate": [g]
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: [D]
1713
+ saturate: [S]
1714
1714
  }],
1715
1715
  /**
1716
1716
  * Sepia
@@ -1746,21 +1746,21 @@ const I = (e) => {
1746
1746
  * @see https://tailwindcss.com/docs/backdrop-contrast
1747
1747
  */
1748
1748
  "backdrop-contrast": [{
1749
- "backdrop-contrast": [c]
1749
+ "backdrop-contrast": [d]
1750
1750
  }],
1751
1751
  /**
1752
1752
  * Backdrop Grayscale
1753
1753
  * @see https://tailwindcss.com/docs/backdrop-grayscale
1754
1754
  */
1755
1755
  "backdrop-grayscale": [{
1756
- "backdrop-grayscale": [d]
1756
+ "backdrop-grayscale": [u]
1757
1757
  }],
1758
1758
  /**
1759
1759
  * Backdrop Hue Rotate
1760
1760
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1761
1761
  */
1762
1762
  "backdrop-hue-rotate": [{
1763
- "backdrop-hue-rotate": [b]
1763
+ "backdrop-hue-rotate": [g]
1764
1764
  }],
1765
1765
  /**
1766
1766
  * Backdrop Invert
@@ -1774,14 +1774,14 @@ const I = (e) => {
1774
1774
  * @see https://tailwindcss.com/docs/backdrop-opacity
1775
1775
  */
1776
1776
  "backdrop-opacity": [{
1777
- "backdrop-opacity": [w]
1777
+ "backdrop-opacity": [v]
1778
1778
  }],
1779
1779
  /**
1780
1780
  * Backdrop Saturate
1781
1781
  * @see https://tailwindcss.com/docs/backdrop-saturate
1782
1782
  */
1783
1783
  "backdrop-saturate": [{
1784
- "backdrop-saturate": [D]
1784
+ "backdrop-saturate": [S]
1785
1785
  }],
1786
1786
  /**
1787
1787
  * Backdrop Sepia
@@ -1839,35 +1839,35 @@ const I = (e) => {
1839
1839
  * @see https://tailwindcss.com/docs/transition-property
1840
1840
  */
1841
1841
  transition: [{
1842
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", N]
1842
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", C]
1843
1843
  }],
1844
1844
  /**
1845
1845
  * Transition Duration
1846
1846
  * @see https://tailwindcss.com/docs/transition-duration
1847
1847
  */
1848
1848
  duration: [{
1849
- duration: _()
1849
+ duration: V()
1850
1850
  }],
1851
1851
  /**
1852
1852
  * Transition Timing Function
1853
1853
  * @see https://tailwindcss.com/docs/transition-timing-function
1854
1854
  */
1855
1855
  ease: [{
1856
- ease: ["linear", "in", "out", "in-out", N]
1856
+ ease: ["linear", "in", "out", "in-out", C]
1857
1857
  }],
1858
1858
  /**
1859
1859
  * Transition Delay
1860
1860
  * @see https://tailwindcss.com/docs/transition-delay
1861
1861
  */
1862
1862
  delay: [{
1863
- delay: _()
1863
+ delay: V()
1864
1864
  }],
1865
1865
  /**
1866
1866
  * Animation
1867
1867
  * @see https://tailwindcss.com/docs/animation
1868
1868
  */
1869
1869
  animate: [{
1870
- animate: ["none", "spin", "ping", "pulse", "bounce", N]
1870
+ animate: ["none", "spin", "ping", "pulse", "bounce", C]
1871
1871
  }],
1872
1872
  // Transforms
1873
1873
  /**
@@ -1882,63 +1882,63 @@ const I = (e) => {
1882
1882
  * @see https://tailwindcss.com/docs/scale
1883
1883
  */
1884
1884
  scale: [{
1885
- scale: [E]
1885
+ scale: [A]
1886
1886
  }],
1887
1887
  /**
1888
1888
  * Scale X
1889
1889
  * @see https://tailwindcss.com/docs/scale
1890
1890
  */
1891
1891
  "scale-x": [{
1892
- "scale-x": [E]
1892
+ "scale-x": [A]
1893
1893
  }],
1894
1894
  /**
1895
1895
  * Scale Y
1896
1896
  * @see https://tailwindcss.com/docs/scale
1897
1897
  */
1898
1898
  "scale-y": [{
1899
- "scale-y": [E]
1899
+ "scale-y": [A]
1900
1900
  }],
1901
1901
  /**
1902
1902
  * Rotate
1903
1903
  * @see https://tailwindcss.com/docs/rotate
1904
1904
  */
1905
1905
  rotate: [{
1906
- rotate: [te, N]
1906
+ rotate: [oe, C]
1907
1907
  }],
1908
1908
  /**
1909
1909
  * Translate X
1910
1910
  * @see https://tailwindcss.com/docs/translate
1911
1911
  */
1912
1912
  "translate-x": [{
1913
- "translate-x": [j]
1913
+ "translate-x": [O]
1914
1914
  }],
1915
1915
  /**
1916
1916
  * Translate Y
1917
1917
  * @see https://tailwindcss.com/docs/translate
1918
1918
  */
1919
1919
  "translate-y": [{
1920
- "translate-y": [j]
1920
+ "translate-y": [O]
1921
1921
  }],
1922
1922
  /**
1923
1923
  * Skew X
1924
1924
  * @see https://tailwindcss.com/docs/skew
1925
1925
  */
1926
1926
  "skew-x": [{
1927
- "skew-x": [P]
1927
+ "skew-x": [E]
1928
1928
  }],
1929
1929
  /**
1930
1930
  * Skew Y
1931
1931
  * @see https://tailwindcss.com/docs/skew
1932
1932
  */
1933
1933
  "skew-y": [{
1934
- "skew-y": [P]
1934
+ "skew-y": [E]
1935
1935
  }],
1936
1936
  /**
1937
1937
  * Transform Origin
1938
1938
  * @see https://tailwindcss.com/docs/transform-origin
1939
1939
  */
1940
1940
  "transform-origin": [{
1941
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", N]
1941
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", C]
1942
1942
  }],
1943
1943
  // Interactivity
1944
1944
  /**
@@ -1960,7 +1960,7 @@ const I = (e) => {
1960
1960
  * @see https://tailwindcss.com/docs/cursor
1961
1961
  */
1962
1962
  cursor: [{
1963
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", N]
1963
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", C]
1964
1964
  }],
1965
1965
  /**
1966
1966
  * Caret Color
@@ -1995,126 +1995,126 @@ const I = (e) => {
1995
1995
  * @see https://tailwindcss.com/docs/scroll-margin
1996
1996
  */
1997
1997
  "scroll-m": [{
1998
- "scroll-m": S()
1998
+ "scroll-m": D()
1999
1999
  }],
2000
2000
  /**
2001
2001
  * Scroll Margin X
2002
2002
  * @see https://tailwindcss.com/docs/scroll-margin
2003
2003
  */
2004
2004
  "scroll-mx": [{
2005
- "scroll-mx": S()
2005
+ "scroll-mx": D()
2006
2006
  }],
2007
2007
  /**
2008
2008
  * Scroll Margin Y
2009
2009
  * @see https://tailwindcss.com/docs/scroll-margin
2010
2010
  */
2011
2011
  "scroll-my": [{
2012
- "scroll-my": S()
2012
+ "scroll-my": D()
2013
2013
  }],
2014
2014
  /**
2015
2015
  * Scroll Margin Start
2016
2016
  * @see https://tailwindcss.com/docs/scroll-margin
2017
2017
  */
2018
2018
  "scroll-ms": [{
2019
- "scroll-ms": S()
2019
+ "scroll-ms": D()
2020
2020
  }],
2021
2021
  /**
2022
2022
  * Scroll Margin End
2023
2023
  * @see https://tailwindcss.com/docs/scroll-margin
2024
2024
  */
2025
2025
  "scroll-me": [{
2026
- "scroll-me": S()
2026
+ "scroll-me": D()
2027
2027
  }],
2028
2028
  /**
2029
2029
  * Scroll Margin Top
2030
2030
  * @see https://tailwindcss.com/docs/scroll-margin
2031
2031
  */
2032
2032
  "scroll-mt": [{
2033
- "scroll-mt": S()
2033
+ "scroll-mt": D()
2034
2034
  }],
2035
2035
  /**
2036
2036
  * Scroll Margin Right
2037
2037
  * @see https://tailwindcss.com/docs/scroll-margin
2038
2038
  */
2039
2039
  "scroll-mr": [{
2040
- "scroll-mr": S()
2040
+ "scroll-mr": D()
2041
2041
  }],
2042
2042
  /**
2043
2043
  * Scroll Margin Bottom
2044
2044
  * @see https://tailwindcss.com/docs/scroll-margin
2045
2045
  */
2046
2046
  "scroll-mb": [{
2047
- "scroll-mb": S()
2047
+ "scroll-mb": D()
2048
2048
  }],
2049
2049
  /**
2050
2050
  * Scroll Margin Left
2051
2051
  * @see https://tailwindcss.com/docs/scroll-margin
2052
2052
  */
2053
2053
  "scroll-ml": [{
2054
- "scroll-ml": S()
2054
+ "scroll-ml": D()
2055
2055
  }],
2056
2056
  /**
2057
2057
  * Scroll Padding
2058
2058
  * @see https://tailwindcss.com/docs/scroll-padding
2059
2059
  */
2060
2060
  "scroll-p": [{
2061
- "scroll-p": S()
2061
+ "scroll-p": D()
2062
2062
  }],
2063
2063
  /**
2064
2064
  * Scroll Padding X
2065
2065
  * @see https://tailwindcss.com/docs/scroll-padding
2066
2066
  */
2067
2067
  "scroll-px": [{
2068
- "scroll-px": S()
2068
+ "scroll-px": D()
2069
2069
  }],
2070
2070
  /**
2071
2071
  * Scroll Padding Y
2072
2072
  * @see https://tailwindcss.com/docs/scroll-padding
2073
2073
  */
2074
2074
  "scroll-py": [{
2075
- "scroll-py": S()
2075
+ "scroll-py": D()
2076
2076
  }],
2077
2077
  /**
2078
2078
  * Scroll Padding Start
2079
2079
  * @see https://tailwindcss.com/docs/scroll-padding
2080
2080
  */
2081
2081
  "scroll-ps": [{
2082
- "scroll-ps": S()
2082
+ "scroll-ps": D()
2083
2083
  }],
2084
2084
  /**
2085
2085
  * Scroll Padding End
2086
2086
  * @see https://tailwindcss.com/docs/scroll-padding
2087
2087
  */
2088
2088
  "scroll-pe": [{
2089
- "scroll-pe": S()
2089
+ "scroll-pe": D()
2090
2090
  }],
2091
2091
  /**
2092
2092
  * Scroll Padding Top
2093
2093
  * @see https://tailwindcss.com/docs/scroll-padding
2094
2094
  */
2095
2095
  "scroll-pt": [{
2096
- "scroll-pt": S()
2096
+ "scroll-pt": D()
2097
2097
  }],
2098
2098
  /**
2099
2099
  * Scroll Padding Right
2100
2100
  * @see https://tailwindcss.com/docs/scroll-padding
2101
2101
  */
2102
2102
  "scroll-pr": [{
2103
- "scroll-pr": S()
2103
+ "scroll-pr": D()
2104
2104
  }],
2105
2105
  /**
2106
2106
  * Scroll Padding Bottom
2107
2107
  * @see https://tailwindcss.com/docs/scroll-padding
2108
2108
  */
2109
2109
  "scroll-pb": [{
2110
- "scroll-pb": S()
2110
+ "scroll-pb": D()
2111
2111
  }],
2112
2112
  /**
2113
2113
  * Scroll Padding Left
2114
2114
  * @see https://tailwindcss.com/docs/scroll-padding
2115
2115
  */
2116
2116
  "scroll-pl": [{
2117
- "scroll-pl": S()
2117
+ "scroll-pl": D()
2118
2118
  }],
2119
2119
  /**
2120
2120
  * Scroll Snap Align
@@ -2182,7 +2182,7 @@ const I = (e) => {
2182
2182
  * @see https://tailwindcss.com/docs/will-change
2183
2183
  */
2184
2184
  "will-change": [{
2185
- "will-change": ["auto", "scroll", "contents", "transform", N]
2185
+ "will-change": ["auto", "scroll", "contents", "transform", C]
2186
2186
  }],
2187
2187
  // SVG
2188
2188
  /**
@@ -2197,7 +2197,7 @@ const I = (e) => {
2197
2197
  * @see https://tailwindcss.com/docs/stroke-width
2198
2198
  */
2199
2199
  "stroke-w": [{
2200
- stroke: [H, U, se]
2200
+ stroke: [U, Y, le]
2201
2201
  }],
2202
2202
  /**
2203
2203
  * Stroke
@@ -2272,47 +2272,47 @@ const I = (e) => {
2272
2272
  "font-size": ["leading"]
2273
2273
  }
2274
2274
  };
2275
- }, fr = /* @__PURE__ */ Xe(gr);
2276
- function p(...e) {
2275
+ }, fr = /* @__PURE__ */ qe(hr);
2276
+ function c(...e) {
2277
2277
  return fr(Re(e));
2278
2278
  }
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), s = Math.min(r, t, o);
2281
- let i = 0, n = 0;
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) {
2279
+ function yr(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, s = Math.max(r, t, o), l = Math.min(r, t, o);
2281
+ let i = 0, a = 0;
2282
+ const d = (s + l) / 2;
2283
+ if (s !== l) {
2284
+ const u = s - l;
2285
+ switch (a = d > 0.5 ? u / (2 - s - l) : u / (s + l), s) {
2286
2286
  case r:
2287
- i = ((t - o) / d + (t < o ? 6 : 0)) / 6;
2287
+ i = ((t - o) / u + (t < o ? 6 : 0)) / 6;
2288
2288
  break;
2289
2289
  case t:
2290
- i = ((o - r) / d + 2) / 6;
2290
+ i = ((o - r) / u + 2) / 6;
2291
2291
  break;
2292
2292
  case o:
2293
- i = ((r - t) / d + 4) / 6;
2293
+ i = ((r - t) / u + 4) / 6;
2294
2294
  break;
2295
2295
  }
2296
2296
  }
2297
- return [i * 360, n * 100, c * 100];
2297
+ return [i * 360, a * 100, d * 100];
2298
2298
  }
2299
- function be(e, r, t) {
2299
+ function ge(e, r, t) {
2300
2300
  t /= 100;
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
- return Math.round(255 * n).toString(16).padStart(2, "0");
2301
+ const o = r * Math.min(t, 1 - t) / 100, s = (l) => {
2302
+ const i = (l + e / 30) % 12, a = t - o * Math.max(Math.min(i - 3, 9 - i, 1), -1);
2303
+ return Math.round(255 * a).toString(16).padStart(2, "0");
2304
2304
  };
2305
- return `#${a(0)}${a(8)}${a(4)}`;
2305
+ return `#${s(0)}${s(8)}${s(4)}`;
2306
2306
  }
2307
- function le(e) {
2308
- const [r, t, o] = hr(e);
2307
+ function ie(e) {
2308
+ const [r, t, o] = yr(e);
2309
2309
  return {
2310
2310
  base: e,
2311
- light: be(r, Math.max(0, t - 10), Math.min(100, o + 15)),
2312
- dark: be(r, Math.min(100, t + 10), Math.max(0, o - 15))
2311
+ light: ge(r, Math.max(0, t - 10), Math.min(100, o + 15)),
2312
+ dark: ge(r, Math.min(100, t + 10), Math.max(0, o - 15))
2313
2313
  };
2314
2314
  }
2315
- const O = {
2315
+ const T = {
2316
2316
  colors: {
2317
2317
  primary: "#6366f1",
2318
2318
  primaryLight: "#818cf8",
@@ -2335,11 +2335,11 @@ const O = {
2335
2335
  light: "#f9fafb",
2336
2336
  active: "#4338ca"
2337
2337
  }
2338
- }, Le = je(O);
2339
- function Yr() {
2340
- return Oe(Le);
2338
+ }, Se = Oe(T);
2339
+ function Qr() {
2340
+ return Te(Se);
2341
2341
  }
2342
- function ge(e) {
2342
+ function he(e) {
2343
2343
  const r = document.documentElement;
2344
2344
  r.style.setProperty("--componentables-primary", e.colors.primary), r.style.setProperty(
2345
2345
  "--componentables-primary-light",
@@ -2373,42 +2373,42 @@ 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 Jr({
2376
+ function et({
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, s = o.secondary ? le(o.secondary) : null, i = o.danger ? le(o.danger) : null;
2381
+ const o = r?.colors || {}, s = o.primary ? ie(o.primary) : null, l = o.secondary ? ie(o.secondary) : null, i = o.danger ? ie(o.danger) : null;
2382
2382
  return {
2383
2383
  colors: {
2384
- primary: o.primary || O.colors.primary,
2385
- primaryLight: a?.light || O.colors.primaryLight,
2386
- primaryDark: a?.dark || O.colors.primaryDark,
2387
- secondary: o.secondary || O.colors.secondary,
2388
- secondaryLight: s?.light || O.colors.secondaryLight,
2389
- secondaryDark: s?.dark || O.colors.secondaryDark,
2390
- danger: o.danger || O.colors.danger,
2391
- dangerLight: i?.light || O.colors.dangerLight,
2392
- dangerDark: i?.dark || O.colors.dangerDark,
2393
- text: o.text || O.colors.text,
2394
- textMuted: o.textMuted || O.colors.textMuted,
2395
- textLight: o.textLight || O.colors.textLight,
2396
- border: o.border || O.colors.border,
2397
- borderDark: o.borderDark || O.colors.borderDark,
2398
- background: o.background || O.colors.background,
2399
- backgroundDark: o.backgroundDark || O.colors.backgroundDark,
2400
- backgroundLight: o.backgroundLight || O.colors.backgroundLight,
2401
- disabled: o.disabled || O.colors.disabled,
2402
- light: o.light || O.colors.light,
2403
- active: o.active || O.colors.active
2384
+ primary: o.primary || T.colors.primary,
2385
+ primaryLight: s?.light || T.colors.primaryLight,
2386
+ primaryDark: s?.dark || T.colors.primaryDark,
2387
+ secondary: o.secondary || T.colors.secondary,
2388
+ secondaryLight: l?.light || T.colors.secondaryLight,
2389
+ secondaryDark: l?.dark || T.colors.secondaryDark,
2390
+ danger: o.danger || T.colors.danger,
2391
+ dangerLight: i?.light || T.colors.dangerLight,
2392
+ dangerDark: i?.dark || T.colors.dangerDark,
2393
+ text: o.text || T.colors.text,
2394
+ textMuted: o.textMuted || T.colors.textMuted,
2395
+ textLight: o.textLight || T.colors.textLight,
2396
+ border: o.border || T.colors.border,
2397
+ borderDark: o.borderDark || T.colors.borderDark,
2398
+ background: o.background || T.colors.background,
2399
+ backgroundDark: o.backgroundDark || T.colors.backgroundDark,
2400
+ backgroundLight: o.backgroundLight || T.colors.backgroundLight,
2401
+ disabled: o.disabled || T.colors.disabled,
2402
+ light: o.light || T.colors.light,
2403
+ active: o.active || T.colors.active
2404
2404
  }
2405
2405
  };
2406
2406
  }, [r]);
2407
- return typeof window < "u" && ge(t), W(() => {
2408
- ge(t);
2409
- }, [t]), B.createElement(Le.Provider, { value: t }, e);
2407
+ return typeof window < "u" && he(t), H(() => {
2408
+ he(t);
2409
+ }, [t]), G.createElement(Se.Provider, { value: t }, e);
2410
2410
  }
2411
- const yr = {
2411
+ const xr = {
2412
2412
  primary: "bg-primary text-white border-primary hover:bg-primary-dark hover:border-primary-dark active:bg-active",
2413
2413
  secondary: "bg-secondary text-white border-secondary hover:bg-secondary-dark hover:border-secondary-dark",
2414
2414
  "primary-outline": "bg-transparent text-primary border-primary hover:bg-primary hover:text-white",
@@ -2418,48 +2418,48 @@ const yr = {
2418
2418
  danger: "bg-transparent text-danger border-danger hover:text-white hover:bg-danger hover:border-danger active:bg-danger-dark",
2419
2419
  link: "bg-transparent text-secondary-light! underline hover:text-primary! border-0",
2420
2420
  dark: "bg-gray-800 text-white border-gray-800 hover:bg-gray-900 hover:border-gray-900"
2421
- }, xr = {
2421
+ }, wr = {
2422
2422
  sm: "px-3 py-1.5 text-sm",
2423
2423
  md: "px-4 py-2 text-base",
2424
2424
  lg: "px-6 py-3 text-lg",
2425
2425
  xl: "px-8 py-4 text-xl"
2426
2426
  };
2427
- function q({
2427
+ function ee({
2428
2428
  children: e,
2429
2429
  onClick: r,
2430
2430
  disabled: t = !1,
2431
2431
  type: o = "button",
2432
- variant: a = "primary",
2433
- size: s = "md",
2432
+ variant: s = "primary",
2433
+ size: l = "md",
2434
2434
  fullWidth: i = !1,
2435
- loading: n = !1,
2436
- className: c = "",
2437
- ...d
2435
+ loading: a = !1,
2436
+ className: d = "",
2437
+ ...u
2438
2438
  }) {
2439
- return /* @__PURE__ */ y(
2439
+ return /* @__PURE__ */ m(
2440
2440
  "button",
2441
2441
  {
2442
2442
  type: o,
2443
- onClick: t || n ? void 0 : r,
2444
- disabled: t || n,
2445
- className: p(
2443
+ onClick: t || a ? void 0 : r,
2444
+ disabled: t || a,
2445
+ className: c(
2446
2446
  "inline-flex shadow-md hover:shadow-lg cursor-pointer items-center justify-center font-medium rounded-lg border transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50",
2447
- t || n ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" : yr[a],
2448
- xr[s],
2447
+ t || a ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" : xr[s],
2448
+ wr[l],
2449
2449
  i && "w-full",
2450
- n && "cursor-wait opacity-75",
2451
- c
2450
+ a && "cursor-wait opacity-75",
2451
+ d
2452
2452
  ),
2453
- ...d,
2453
+ ...u,
2454
2454
  children: [
2455
- n && /* @__PURE__ */ y(
2455
+ a && /* @__PURE__ */ m(
2456
2456
  "svg",
2457
2457
  {
2458
2458
  className: "w-4 h-4 mr-2 animate-spin",
2459
2459
  fill: "none",
2460
2460
  viewBox: "0 0 24 24",
2461
2461
  children: [
2462
- /* @__PURE__ */ l(
2462
+ /* @__PURE__ */ n(
2463
2463
  "circle",
2464
2464
  {
2465
2465
  className: "opacity-25",
@@ -2470,7 +2470,7 @@ function q({
2470
2470
  strokeWidth: "4"
2471
2471
  }
2472
2472
  ),
2473
- /* @__PURE__ */ l(
2473
+ /* @__PURE__ */ n(
2474
2474
  "path",
2475
2475
  {
2476
2476
  className: "opacity-75",
@@ -2491,155 +2491,155 @@ function vr({
2491
2491
  name: r,
2492
2492
  type: t = "text",
2493
2493
  value: o,
2494
- onChange: a,
2495
- placeholder: s,
2494
+ onChange: s,
2495
+ placeholder: l,
2496
2496
  label: i,
2497
- error: n,
2498
- disabled: c = !1,
2499
- required: d = !1,
2500
- colorScheme: b = "secondary",
2497
+ error: a,
2498
+ disabled: d = !1,
2499
+ required: u = !1,
2500
+ colorScheme: g = "secondary",
2501
2501
  className: k = "",
2502
- ...h
2502
+ ...y
2503
2503
  }) {
2504
- const v = () => {
2504
+ const w = () => {
2505
2505
  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";
2506
- if (n)
2507
- return p(
2506
+ if (a)
2507
+ return c(
2508
2508
  x,
2509
2509
  "border-danger focus:border-danger focus:shadow-danger-light"
2510
2510
  );
2511
- switch (b) {
2511
+ switch (g) {
2512
2512
  case "primary":
2513
- return p(
2513
+ return c(
2514
2514
  x,
2515
2515
  "text-primary border-primary focus:border-primary"
2516
2516
  );
2517
2517
  case "secondary":
2518
2518
  default:
2519
- return p(
2519
+ return c(
2520
2520
  x,
2521
2521
  "text-secondary border-secondary focus:border-secondary"
2522
2522
  );
2523
2523
  }
2524
- }, m = () => b === "primary" ? "text-primary" : "text-secondary";
2525
- return /* @__PURE__ */ y("div", { className: p("mb-6", k), children: [
2526
- i && /* @__PURE__ */ y(
2524
+ }, b = () => g === "primary" ? "text-primary" : "text-secondary";
2525
+ return /* @__PURE__ */ m("div", { className: c("mb-6", k), children: [
2526
+ i && /* @__PURE__ */ m(
2527
2527
  "label",
2528
2528
  {
2529
2529
  htmlFor: e,
2530
- className: p("block mb-2 text-sm font-medium", m()),
2530
+ className: c("block mb-2 text-sm font-medium", b()),
2531
2531
  children: [
2532
2532
  i,
2533
- d && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
2533
+ u && /* @__PURE__ */ n("span", { className: "text-danger ml-1", children: "*" })
2534
2534
  ]
2535
2535
  }
2536
2536
  ),
2537
- /* @__PURE__ */ l(
2537
+ /* @__PURE__ */ n(
2538
2538
  "input",
2539
2539
  {
2540
2540
  id: e,
2541
2541
  name: r,
2542
2542
  type: t,
2543
2543
  value: o,
2544
- onChange: a,
2545
- placeholder: s,
2546
- disabled: c,
2547
- required: d,
2548
- className: v(),
2549
- ...h
2544
+ onChange: s,
2545
+ placeholder: l,
2546
+ disabled: d,
2547
+ required: u,
2548
+ className: w(),
2549
+ ...y
2550
2550
  }
2551
2551
  ),
2552
- n && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: n })
2552
+ a && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: a })
2553
2553
  ] });
2554
2554
  }
2555
- function wr({
2555
+ function kr({
2556
2556
  id: e,
2557
2557
  name: r,
2558
2558
  value: t,
2559
2559
  onChange: o,
2560
- placeholder: a,
2561
- label: s,
2560
+ placeholder: s,
2561
+ label: l,
2562
2562
  error: i,
2563
- disabled: n = !1,
2564
- required: c = !1,
2565
- colorScheme: d = "secondary",
2566
- className: b = "",
2563
+ disabled: a = !1,
2564
+ required: d = !1,
2565
+ colorScheme: u = "secondary",
2566
+ className: g = "",
2567
2567
  rows: k = 4,
2568
- ...h
2568
+ ...y
2569
2569
  }) {
2570
- const v = () => {
2570
+ const w = () => {
2571
2571
  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";
2572
2572
  if (i)
2573
- return p(
2573
+ return c(
2574
2574
  x,
2575
2575
  "border-danger focus:border-danger focus:shadow-danger-light"
2576
2576
  );
2577
- switch (d) {
2577
+ switch (u) {
2578
2578
  case "primary":
2579
- return p(
2579
+ return c(
2580
2580
  x,
2581
2581
  "text-primary border-primary focus:border-primary"
2582
2582
  );
2583
2583
  case "secondary":
2584
2584
  default:
2585
- return p(
2585
+ return c(
2586
2586
  x,
2587
2587
  "text-secondary border-secondary focus:border-secondary"
2588
2588
  );
2589
2589
  }
2590
- }, m = () => d === "primary" ? "text-primary" : "text-secondary";
2591
- return /* @__PURE__ */ y("div", { className: p("mb-6", b), children: [
2592
- s && /* @__PURE__ */ y(
2590
+ }, b = () => u === "primary" ? "text-primary" : "text-secondary";
2591
+ return /* @__PURE__ */ m("div", { className: c("mb-6", g), children: [
2592
+ l && /* @__PURE__ */ m(
2593
2593
  "label",
2594
2594
  {
2595
2595
  htmlFor: e,
2596
- className: p("block mb-2 text-sm font-medium", m()),
2596
+ className: c("block mb-2 text-sm font-medium", b()),
2597
2597
  children: [
2598
- s,
2599
- c && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
2598
+ l,
2599
+ d && /* @__PURE__ */ n("span", { className: "text-danger ml-1", children: "*" })
2600
2600
  ]
2601
2601
  }
2602
2602
  ),
2603
- /* @__PURE__ */ l(
2603
+ /* @__PURE__ */ n(
2604
2604
  "textarea",
2605
2605
  {
2606
2606
  id: e,
2607
2607
  name: r,
2608
2608
  value: t,
2609
2609
  onChange: o,
2610
- placeholder: a,
2611
- disabled: n,
2612
- required: c,
2610
+ placeholder: s,
2611
+ disabled: a,
2612
+ required: d,
2613
2613
  rows: k,
2614
- className: v(),
2615
- ...h
2614
+ className: w(),
2615
+ ...y
2616
2616
  }
2617
2617
  ),
2618
- i && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
2618
+ i && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
2619
2619
  ] });
2620
2620
  }
2621
- const De = { Input: vr, InputArea: wr };
2622
- function Kr({
2621
+ const De = { Input: vr, InputArea: kr };
2622
+ function rt({
2623
2623
  id: e,
2624
2624
  name: r,
2625
2625
  checked: t = !1,
2626
2626
  onChange: o,
2627
- disabled: a = !1,
2628
- label: s,
2627
+ disabled: s = !1,
2628
+ label: l,
2629
2629
  colorScheme: i = "secondary",
2630
- size: n = "md",
2631
- className: c = "",
2632
- ...d
2630
+ size: a = "md",
2631
+ className: d = "",
2632
+ ...u
2633
2633
  }) {
2634
- const [b, k] = $(t);
2635
- W(() => {
2634
+ const [g, k] = _(t);
2635
+ H(() => {
2636
2636
  k(t);
2637
2637
  }, [t]);
2638
- const h = () => {
2639
- if (a) return;
2640
- const f = !b;
2638
+ const y = () => {
2639
+ if (s) return;
2640
+ const f = !g;
2641
2641
  k(f), o?.(f);
2642
- }, v = () => ({
2642
+ }, w = () => ({
2643
2643
  primary: {
2644
2644
  bg: "bg-primary",
2645
2645
  border: "border-primary",
@@ -2650,8 +2650,8 @@ function Kr({
2650
2650
  border: "border-secondary",
2651
2651
  text: "text-secondary"
2652
2652
  }
2653
- })[i], m = () => {
2654
- switch (n) {
2653
+ })[i], b = () => {
2654
+ switch (a) {
2655
2655
  case "sm":
2656
2656
  return "w-10 h-6";
2657
2657
  case "lg":
@@ -2661,7 +2661,7 @@ function Kr({
2661
2661
  return "w-13 h-7";
2662
2662
  }
2663
2663
  }, x = () => {
2664
- switch (n) {
2664
+ switch (a) {
2665
2665
  case "sm":
2666
2666
  return "w-5 h-5";
2667
2667
  case "lg":
@@ -2670,9 +2670,9 @@ function Kr({
2670
2670
  default:
2671
2671
  return "w-6 h-6";
2672
2672
  }
2673
- }, u = () => {
2674
- if (!b) return "translate-x-0";
2675
- switch (n) {
2673
+ }, p = () => {
2674
+ if (!g) return "translate-x-0";
2675
+ switch (a) {
2676
2676
  case "sm":
2677
2677
  return "translate-x-5";
2678
2678
  case "lg":
@@ -2681,80 +2681,80 @@ function Kr({
2681
2681
  default:
2682
2682
  return "translate-x-6";
2683
2683
  }
2684
- }, w = v();
2685
- return /* @__PURE__ */ y(
2684
+ }, v = w();
2685
+ return /* @__PURE__ */ m(
2686
2686
  "div",
2687
2687
  {
2688
- className: p(
2688
+ className: c(
2689
2689
  "flex items-center gap-3",
2690
- a ? "cursor-not-allowed" : "cursor-pointer",
2691
- c
2690
+ s ? "cursor-not-allowed" : "cursor-pointer",
2691
+ d
2692
2692
  ),
2693
- onClick: h,
2693
+ onClick: y,
2694
2694
  children: [
2695
- /* @__PURE__ */ y("div", { className: "relative", children: [
2696
- /* @__PURE__ */ l(
2695
+ /* @__PURE__ */ m("div", { className: "relative", children: [
2696
+ /* @__PURE__ */ n(
2697
2697
  "input",
2698
2698
  {
2699
2699
  type: "checkbox",
2700
2700
  id: e,
2701
2701
  name: r,
2702
- checked: b,
2702
+ checked: g,
2703
2703
  onChange: () => {
2704
2704
  },
2705
- disabled: a,
2705
+ disabled: s,
2706
2706
  className: "sr-only",
2707
- "aria-label": s || r,
2708
- ...d
2707
+ "aria-label": l || r,
2708
+ ...u
2709
2709
  }
2710
2710
  ),
2711
- /* @__PURE__ */ l(
2711
+ /* @__PURE__ */ n(
2712
2712
  "div",
2713
2713
  {
2714
- className: p(
2714
+ className: c(
2715
2715
  "block transition-all duration-300 rounded-full border-2",
2716
- m(),
2717
- b ? p(w.bg, w.border) : "bg-gray-200 border-gray-300",
2718
- a ? "opacity-50" : "hover:shadow-md"
2716
+ b(),
2717
+ g ? c(v.bg, v.border) : "bg-gray-200 border-gray-300",
2718
+ s ? "opacity-50" : "hover:shadow-md"
2719
2719
  ),
2720
- children: /* @__PURE__ */ l(
2720
+ children: /* @__PURE__ */ n(
2721
2721
  "span",
2722
2722
  {
2723
- className: p(
2723
+ className: c(
2724
2724
  "absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",
2725
2725
  x(),
2726
- u()
2726
+ p()
2727
2727
  )
2728
2728
  }
2729
2729
  )
2730
2730
  }
2731
2731
  )
2732
2732
  ] }),
2733
- s && /* @__PURE__ */ l(
2733
+ l && /* @__PURE__ */ n(
2734
2734
  "span",
2735
2735
  {
2736
- className: p(
2736
+ className: c(
2737
2737
  "text-sm font-medium select-none",
2738
- w.text,
2739
- a && "opacity-50"
2738
+ v.text,
2739
+ s && "opacity-50"
2740
2740
  ),
2741
- children: s
2741
+ children: l
2742
2742
  }
2743
2743
  )
2744
2744
  ]
2745
2745
  }
2746
2746
  );
2747
2747
  }
2748
- const kr = ({
2748
+ const Nr = ({
2749
2749
  size: e = 40,
2750
2750
  wrapperStyle: r = {},
2751
2751
  wrapperClass: t = "",
2752
2752
  ariaLabel: o = "Cargando...",
2753
- label: a = "Cargando...",
2754
- visible: s = !0,
2753
+ label: s = "Cargando...",
2754
+ visible: l = !0,
2755
2755
  direction: i = "column"
2756
2756
  }) => {
2757
- const n = {
2757
+ const a = {
2758
2758
  display: "flex",
2759
2759
  flexDirection: i,
2760
2760
  justifyContent: "center",
@@ -2762,12 +2762,12 @@ const kr = ({
2762
2762
  minHeight: "100px",
2763
2763
  ...r
2764
2764
  };
2765
- return /* @__PURE__ */ y("div", { style: n, className: t, children: [
2766
- /* @__PURE__ */ l("label", { children: a }),
2767
- /* @__PURE__ */ l(
2768
- Te,
2765
+ return /* @__PURE__ */ m("div", { style: a, className: t, children: [
2766
+ /* @__PURE__ */ n("label", { children: s }),
2767
+ /* @__PURE__ */ n(
2768
+ $e,
2769
2769
  {
2770
- visible: s,
2770
+ visible: l,
2771
2771
  height: e,
2772
2772
  width: e,
2773
2773
  ariaLabel: o,
@@ -2778,72 +2778,72 @@ const kr = ({
2778
2778
  }
2779
2779
  )
2780
2780
  ] });
2781
- }, { Input: ie } = De, Zr = ({
2781
+ }, { Input: ce } = De, tt = ({
2782
2782
  title: e = "Iniciar Sesión",
2783
2783
  showForgotPassword: r = !0,
2784
2784
  onlyForgotPassword: t = !1,
2785
2785
  className: o = "",
2786
- onLogin: a,
2787
- onForgotPassword: s
2786
+ onLogin: s,
2787
+ onForgotPassword: l
2788
2788
  }) => {
2789
- const [i, n] = $({
2789
+ const [i, a] = _({
2790
2790
  email: "",
2791
2791
  password: ""
2792
- }), [c, d] = $({}), [b, k] = $(!1), [h, v] = $(
2792
+ }), [d, u] = _({}), [g, k] = _(!1), [y, w] = _(
2793
2793
  t ? "forgot" : "login"
2794
- ), m = (P, g) => {
2795
- switch (P) {
2794
+ ), b = (E, h) => {
2795
+ switch (E) {
2796
2796
  case "email":
2797
- return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g) ? "" : "Por favor ingresa un email válido";
2797
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h) ? "" : "Por favor ingresa un email válido";
2798
2798
  case "password":
2799
- return g.length >= 6 ? "" : "La contraseña debe tener al menos 6 caracteres";
2799
+ return h.length >= 6 ? "" : "La contraseña debe tener al menos 6 caracteres";
2800
2800
  default:
2801
2801
  return "";
2802
2802
  }
2803
- }, x = (P) => {
2804
- const { name: g, value: j } = P.target;
2805
- n((R) => ({
2803
+ }, x = (E) => {
2804
+ const { name: h, value: O } = E.target;
2805
+ a((R) => ({
2806
2806
  ...R,
2807
- [g]: j
2808
- })), c[g] && d((R) => ({
2807
+ [h]: O
2808
+ })), d[h] && u((R) => ({
2809
2809
  ...R,
2810
- [g]: ""
2810
+ [h]: ""
2811
2811
  }));
2812
- }, u = () => {
2813
- const P = {}, g = m("email", i.email);
2814
- if (g && (P.email = g), h === "login") {
2815
- const j = m("password", i.password);
2816
- j && (P.password = j);
2812
+ }, p = () => {
2813
+ const E = {}, h = b("email", i.email);
2814
+ if (h && (E.email = h), y === "login") {
2815
+ const O = b("password", i.password);
2816
+ O && (E.password = O);
2817
2817
  }
2818
- return d(P), Object.keys(P).length === 0;
2819
- }, w = async (P) => {
2820
- if (P.preventDefault(), !!u()) {
2818
+ return u(E), Object.keys(E).length === 0;
2819
+ }, v = async (E) => {
2820
+ if (E.preventDefault(), !!p()) {
2821
2821
  k(!0);
2822
2822
  try {
2823
- switch (h) {
2823
+ switch (y) {
2824
2824
  case "login":
2825
- a && await a({
2825
+ s && await s({
2826
2826
  email: i.email,
2827
2827
  password: i.password
2828
2828
  });
2829
2829
  break;
2830
2830
  case "forgot":
2831
- s && await s(i.email);
2831
+ l && await l(i.email);
2832
2832
  break;
2833
2833
  }
2834
- } catch (g) {
2835
- console.error("Login error:", g);
2834
+ } catch (h) {
2835
+ console.error("Login error:", h);
2836
2836
  } finally {
2837
2837
  k(!1);
2838
2838
  }
2839
2839
  }
2840
- }, f = (P) => {
2841
- v(P), d({}), n({ email: i.email, password: "" });
2842
- }, D = () => {
2843
- switch (h) {
2840
+ }, f = (E) => {
2841
+ w(E), u({}), a({ email: i.email, password: "" });
2842
+ }, S = () => {
2843
+ switch (y) {
2844
2844
  case "forgot":
2845
- return /* @__PURE__ */ l(
2846
- ie,
2845
+ return /* @__PURE__ */ n(
2846
+ ce,
2847
2847
  {
2848
2848
  id: "email",
2849
2849
  type: "email",
@@ -2852,15 +2852,15 @@ const kr = ({
2852
2852
  label: "Email",
2853
2853
  value: i.email,
2854
2854
  onChange: x,
2855
- error: c.email,
2856
- disabled: b,
2855
+ error: d.email,
2856
+ disabled: g,
2857
2857
  colorScheme: "secondary"
2858
2858
  }
2859
2859
  );
2860
2860
  default:
2861
- return /* @__PURE__ */ y(Ae, { children: [
2862
- /* @__PURE__ */ l(
2863
- ie,
2861
+ return /* @__PURE__ */ m(je, { children: [
2862
+ /* @__PURE__ */ n(
2863
+ ce,
2864
2864
  {
2865
2865
  id: "email",
2866
2866
  type: "email",
@@ -2869,13 +2869,13 @@ const kr = ({
2869
2869
  label: "Email",
2870
2870
  value: i.email,
2871
2871
  onChange: x,
2872
- error: c.email,
2873
- disabled: b,
2872
+ error: d.email,
2873
+ disabled: g,
2874
2874
  colorScheme: "secondary"
2875
2875
  }
2876
2876
  ),
2877
- /* @__PURE__ */ l(
2878
- ie,
2877
+ /* @__PURE__ */ n(
2878
+ ce,
2879
2879
  {
2880
2880
  id: "password",
2881
2881
  type: "password",
@@ -2884,52 +2884,54 @@ const kr = ({
2884
2884
  label: "Contraseña",
2885
2885
  value: i.password,
2886
2886
  onChange: x,
2887
- error: c.password,
2888
- disabled: b,
2887
+ error: d.password,
2888
+ disabled: g,
2889
2889
  colorScheme: "secondary"
2890
2890
  }
2891
2891
  )
2892
2892
  ] });
2893
2893
  }
2894
- }, E = () => {
2895
- switch (h) {
2894
+ }, A = () => {
2895
+ switch (y) {
2896
2896
  case "forgot":
2897
2897
  return t ? "Cambiar Contraseña" : "Recuperar Contraseña";
2898
2898
  default:
2899
2899
  return e;
2900
2900
  }
2901
2901
  }, z = () => {
2902
- if (b)
2903
- return /* @__PURE__ */ l(kr, { size: 20, wrapperStyle: { minHeight: "auto" } });
2904
- switch (h) {
2902
+ if (g)
2903
+ return /* @__PURE__ */ n(Nr, { size: 20, wrapperStyle: { minHeight: "auto" } });
2904
+ switch (y) {
2905
2905
  case "forgot":
2906
2906
  return "Enviar Enlace";
2907
2907
  default:
2908
2908
  return "Entrar";
2909
2909
  }
2910
2910
  };
2911
- return /* @__PURE__ */ l(
2911
+ return /* @__PURE__ */ n(
2912
2912
  "div",
2913
2913
  {
2914
2914
  className: `flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${o || ""}`,
2915
- 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: [
2916
- /* @__PURE__ */ l("h2", { className: "text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8", children: E() }),
2917
- /* @__PURE__ */ l("div", { className: "space-y-4 mb-6", children: D() }),
2918
- /* @__PURE__ */ l("form", { onSubmit: w, children: /* @__PURE__ */ l(
2919
- q,
2920
- {
2921
- type: "submit",
2922
- disabled: b,
2923
- loading: b,
2924
- fullWidth: !0,
2925
- variant: "primary",
2926
- size: "lg",
2927
- className: "mb-6",
2928
- children: !b && z()
2929
- }
2930
- ) }),
2931
- h === "login" && r && /* @__PURE__ */ l(
2932
- q,
2915
+ children: /* @__PURE__ */ m("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: [
2916
+ /* @__PURE__ */ n("h2", { className: "text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8", children: A() }),
2917
+ /* @__PURE__ */ m("form", { onSubmit: v, children: [
2918
+ /* @__PURE__ */ n("div", { className: "space-y-4 mb-6", children: S() }),
2919
+ /* @__PURE__ */ n(
2920
+ ee,
2921
+ {
2922
+ type: "submit",
2923
+ disabled: g,
2924
+ loading: g,
2925
+ fullWidth: !0,
2926
+ variant: "primary",
2927
+ size: "lg",
2928
+ className: "mb-6",
2929
+ children: !g && z()
2930
+ }
2931
+ )
2932
+ ] }),
2933
+ y === "login" && r && /* @__PURE__ */ n(
2934
+ ee,
2933
2935
  {
2934
2936
  type: "button",
2935
2937
  onClick: () => f("forgot"),
@@ -2940,8 +2942,8 @@ const kr = ({
2940
2942
  children: "¿Olvidaste tu contraseña?"
2941
2943
  }
2942
2944
  ),
2943
- h === "forgot" && !t && /* @__PURE__ */ l(
2944
- q,
2945
+ y === "forgot" && !t && /* @__PURE__ */ n(
2946
+ ee,
2945
2947
  {
2946
2948
  type: "button",
2947
2949
  onClick: () => f("login"),
@@ -2956,24 +2958,24 @@ const kr = ({
2956
2958
  }
2957
2959
  );
2958
2960
  };
2959
- var Se = {
2961
+ var Ae = {
2960
2962
  color: void 0,
2961
2963
  size: void 0,
2962
2964
  className: void 0,
2963
2965
  style: void 0,
2964
2966
  attr: void 0
2965
- }, fe = B.createContext && /* @__PURE__ */ B.createContext(Se), Cr = ["attr", "size", "title"];
2966
- function Nr(e, r) {
2967
+ }, fe = G.createContext && /* @__PURE__ */ G.createContext(Ae), Cr = ["attr", "size", "title"];
2968
+ function Mr(e, r) {
2967
2969
  if (e == null) return {};
2968
- var t = Mr(e, r), o, a;
2970
+ var t = zr(e, r), o, s;
2969
2971
  if (Object.getOwnPropertySymbols) {
2970
- var s = Object.getOwnPropertySymbols(e);
2971
- for (a = 0; a < s.length; a++)
2972
- o = s[a], !(r.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
2972
+ var l = Object.getOwnPropertySymbols(e);
2973
+ for (s = 0; s < l.length; s++)
2974
+ o = l[s], !(r.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
2973
2975
  }
2974
2976
  return t;
2975
2977
  }
2976
- function Mr(e, r) {
2978
+ function zr(e, r) {
2977
2979
  if (e == null) return {};
2978
2980
  var t = {};
2979
2981
  for (var o in e)
@@ -2983,22 +2985,22 @@ function Mr(e, r) {
2983
2985
  }
2984
2986
  return t;
2985
2987
  }
2986
- function ne() {
2987
- return ne = Object.assign ? Object.assign.bind() : function(e) {
2988
+ function se() {
2989
+ return se = Object.assign ? Object.assign.bind() : function(e) {
2988
2990
  for (var r = 1; r < arguments.length; r++) {
2989
2991
  var t = arguments[r];
2990
2992
  for (var o in t)
2991
2993
  Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
2992
2994
  }
2993
2995
  return e;
2994
- }, ne.apply(this, arguments);
2996
+ }, se.apply(this, arguments);
2995
2997
  }
2996
- function he(e, r) {
2998
+ function ye(e, r) {
2997
2999
  var t = Object.keys(e);
2998
3000
  if (Object.getOwnPropertySymbols) {
2999
3001
  var o = Object.getOwnPropertySymbols(e);
3000
- r && (o = o.filter(function(a) {
3001
- return Object.getOwnPropertyDescriptor(e, a).enumerable;
3002
+ r && (o = o.filter(function(s) {
3003
+ return Object.getOwnPropertyDescriptor(e, s).enumerable;
3002
3004
  })), t.push.apply(t, o);
3003
3005
  }
3004
3006
  return t;
@@ -3006,18 +3008,18 @@ function he(e, r) {
3006
3008
  function ae(e) {
3007
3009
  for (var r = 1; r < arguments.length; r++) {
3008
3010
  var t = arguments[r] != null ? arguments[r] : {};
3009
- r % 2 ? he(Object(t), !0).forEach(function(o) {
3010
- zr(e, o, t[o]);
3011
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : he(Object(t)).forEach(function(o) {
3011
+ r % 2 ? ye(Object(t), !0).forEach(function(o) {
3012
+ Lr(e, o, t[o]);
3013
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ye(Object(t)).forEach(function(o) {
3012
3014
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
3013
3015
  });
3014
3016
  }
3015
3017
  return e;
3016
3018
  }
3017
- function zr(e, r, t) {
3018
- return r = Lr(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
3019
+ function Lr(e, r, t) {
3020
+ return r = Sr(r), r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
3019
3021
  }
3020
- function Lr(e) {
3022
+ function Sr(e) {
3021
3023
  var r = Dr(e, "string");
3022
3024
  return typeof r == "symbol" ? r : r + "";
3023
3025
  }
@@ -3032,50 +3034,50 @@ function Dr(e, r) {
3032
3034
  return (r === "string" ? String : Number)(e);
3033
3035
  }
3034
3036
  function Ee(e) {
3035
- return e && e.map((r, t) => /* @__PURE__ */ B.createElement(r.tag, ae({
3037
+ return e && e.map((r, t) => /* @__PURE__ */ G.createElement(r.tag, ae({
3036
3038
  key: t
3037
3039
  }, r.attr), Ee(r.child)));
3038
3040
  }
3039
- function J(e) {
3040
- return (r) => /* @__PURE__ */ B.createElement(Sr, ne({
3041
+ function K(e) {
3042
+ return (r) => /* @__PURE__ */ G.createElement(Ar, se({
3041
3043
  attr: ae({}, e.attr)
3042
3044
  }, r), Ee(e.child));
3043
3045
  }
3044
- function Sr(e) {
3046
+ function Ar(e) {
3045
3047
  var r = (t) => {
3046
3048
  var {
3047
3049
  attr: o,
3048
- size: a,
3049
- title: s
3050
- } = e, i = Nr(e, Cr), n = a || t.size || "1em", c;
3051
- return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ B.createElement("svg", ne({
3050
+ size: s,
3051
+ title: l
3052
+ } = e, i = Mr(e, Cr), a = s || t.size || "1em", d;
3053
+ return t.className && (d = t.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ G.createElement("svg", se({
3052
3054
  stroke: "currentColor",
3053
3055
  fill: "currentColor",
3054
3056
  strokeWidth: "0"
3055
3057
  }, t.attr, o, i, {
3056
- className: c,
3058
+ className: d,
3057
3059
  style: ae(ae({
3058
3060
  color: e.color || t.color
3059
3061
  }, t.style), e.style),
3060
- height: n,
3061
- width: n,
3062
+ height: a,
3063
+ width: a,
3062
3064
  xmlns: "http://www.w3.org/2000/svg"
3063
- }), s && /* @__PURE__ */ B.createElement("title", null, s), e.children);
3065
+ }), l && /* @__PURE__ */ G.createElement("title", null, l), e.children);
3064
3066
  };
3065
- return fe !== void 0 ? /* @__PURE__ */ B.createElement(fe.Consumer, null, (t) => r(t)) : r(Se);
3067
+ return fe !== void 0 ? /* @__PURE__ */ G.createElement(fe.Consumer, null, (t) => r(t)) : r(Ae);
3066
3068
  }
3067
3069
  function Er(e) {
3068
- 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);
3070
+ return K({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "11", cy: "11", r: "8" }, child: [] }, { tag: "line", attr: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }, child: [] }] })(e);
3069
3071
  }
3070
3072
  const Pr = (e, r = 500) => {
3071
- const [t, o] = $(e);
3072
- return W(() => {
3073
- const a = setTimeout(() => {
3073
+ const [t, o] = _(e);
3074
+ return H(() => {
3075
+ const s = setTimeout(() => {
3074
3076
  o(e);
3075
3077
  }, r);
3076
- return () => clearTimeout(a);
3078
+ return () => clearTimeout(s);
3077
3079
  }, [e, r]), t;
3078
- }, Xr = () => ({ showToast: (r, t) => {
3080
+ }, ot = () => ({ showToast: (r, t) => {
3079
3081
  const o = {
3080
3082
  position: "bottom-right",
3081
3083
  autoClose: 2e3,
@@ -3087,25 +3089,25 @@ const Pr = (e, r = 500) => {
3087
3089
  };
3088
3090
  switch (r) {
3089
3091
  case "success":
3090
- re.success(t, o);
3092
+ te.success(t, o);
3091
3093
  break;
3092
3094
  case "error":
3093
- re.error(t, o);
3095
+ te.error(t, o);
3094
3096
  break;
3095
3097
  case "warning":
3096
- re.warning(t, o);
3098
+ te.warning(t, o);
3097
3099
  break;
3098
3100
  case "info":
3099
- re.info(t, o);
3101
+ te.info(t, o);
3100
3102
  break;
3101
3103
  default:
3102
- re(t, o);
3104
+ te(t, o);
3103
3105
  break;
3104
3106
  }
3105
3107
  } });
3106
- function Qr(e = 768) {
3107
- const [r, t] = $(() => typeof window > "u" ? !1 : window.innerWidth < e);
3108
- return W(() => {
3108
+ function nt(e = 768) {
3109
+ const [r, t] = _(() => typeof window > "u" ? !1 : window.innerWidth < e);
3110
+ return H(() => {
3109
3111
  if (typeof window > "u")
3110
3112
  return;
3111
3113
  const o = () => {
@@ -3116,256 +3118,256 @@ function Qr(e = 768) {
3116
3118
  };
3117
3119
  }, [e]), r;
3118
3120
  }
3119
- function qr({
3121
+ function st({
3120
3122
  value: e,
3121
3123
  onChange: r,
3122
3124
  placeholder: t = "Search...",
3123
3125
  disabled: o = !1,
3124
- colorScheme: a = "secondary",
3125
- label: s,
3126
+ colorScheme: s = "secondary",
3127
+ label: l,
3126
3128
  className: i = "",
3127
- debounceDelay: n = 500,
3128
- ...c
3129
+ debounceDelay: a = 500,
3130
+ ...d
3129
3131
  }) {
3130
- const [d, b] = $(e || ""), k = Pr(d, n), h = ve(r, [r]);
3131
- W(() => {
3132
- h(k);
3133
- }, [k, h]);
3134
- const v = () => {
3135
- const u = "w-full px-4 py-2.5 pl-10 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
3136
- switch (a) {
3132
+ const [u, g] = _(e || ""), k = Pr(u, a), y = ve(r, [r]);
3133
+ H(() => {
3134
+ y(k);
3135
+ }, [k, y]);
3136
+ const w = () => {
3137
+ const p = "w-full px-4 py-2.5 pl-10 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
3138
+ switch (s) {
3137
3139
  case "primary":
3138
- return p(
3139
- u,
3140
+ return c(
3141
+ p,
3140
3142
  "text-primary border-primary focus:border-primary"
3141
3143
  );
3142
3144
  case "secondary":
3143
3145
  default:
3144
- return p(
3145
- u,
3146
+ return c(
3147
+ p,
3146
3148
  "text-secondary border-secondary focus:border-secondary"
3147
3149
  );
3148
3150
  }
3149
- }, m = () => a === "primary" ? "text-primary" : "text-secondary", x = () => a === "primary" ? "text-primary" : "text-secondary";
3150
- return /* @__PURE__ */ y("div", { className: p("mb-0", i), children: [
3151
- s && /* @__PURE__ */ l(
3151
+ }, b = () => s === "primary" ? "text-primary" : "text-secondary", x = () => s === "primary" ? "text-primary" : "text-secondary";
3152
+ return /* @__PURE__ */ m("div", { className: c("mb-0", i), children: [
3153
+ l && /* @__PURE__ */ n(
3152
3154
  "label",
3153
3155
  {
3154
- className: p("block mb-2 text-sm font-medium", x()),
3155
- children: s
3156
+ className: c("block mb-2 text-sm font-medium", x()),
3157
+ children: l
3156
3158
  }
3157
3159
  ),
3158
- /* @__PURE__ */ y("div", { className: "relative w-full", children: [
3159
- /* @__PURE__ */ l(
3160
+ /* @__PURE__ */ m("div", { className: "relative w-full", children: [
3161
+ /* @__PURE__ */ n(
3160
3162
  Er,
3161
3163
  {
3162
- className: p(
3164
+ className: c(
3163
3165
  "absolute left-3 top-1/2 -translate-y-1/2 text-base pointer-events-none",
3164
- m()
3166
+ b()
3165
3167
  )
3166
3168
  }
3167
3169
  ),
3168
- /* @__PURE__ */ l(
3170
+ /* @__PURE__ */ n(
3169
3171
  "input",
3170
3172
  {
3171
3173
  type: "text",
3172
- value: d,
3173
- onChange: (u) => b(u.target.value),
3174
+ value: u,
3175
+ onChange: (p) => g(p.target.value),
3174
3176
  placeholder: t,
3175
3177
  disabled: o,
3176
- className: v(),
3177
- ...c
3178
+ className: w(),
3179
+ ...d
3178
3180
  }
3179
3181
  )
3180
3182
  ] })
3181
3183
  ] });
3182
3184
  }
3183
- function Ar(e) {
3184
- 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);
3185
+ function jr(e) {
3186
+ return K({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z" }, child: [] }] })(e);
3185
3187
  }
3186
3188
  function Ir(e) {
3187
- 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);
3189
+ return K({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z" }, child: [] }] })(e);
3188
3190
  }
3189
- function et({
3191
+ function at({
3190
3192
  labelPage: e = "Page",
3191
3193
  labelOf: r = "of",
3192
3194
  setPagination: t,
3193
3195
  totalPages: o,
3194
- currentPage: a,
3195
- showLabel: s = !0,
3196
+ currentPage: s,
3197
+ showLabel: l = !0,
3196
3198
  className: i = "",
3197
- isLoading: n = !1,
3198
- fetchPage: c
3199
+ isLoading: a = !1,
3200
+ fetchPage: d
3199
3201
  }) {
3200
- const d = parseInt(String(a)) === 1 || parseInt(String(o)) === 0 || n, b = parseInt(String(a)) === parseInt(String(o)) || parseInt(String(o)) === 0 || n, k = () => {
3201
- n || (c ? c(a - 1) : t && t((v) => ({
3202
- ...v,
3203
- page: v.page - 1
3202
+ const u = parseInt(String(s)) === 1 || parseInt(String(o)) === 0 || a, g = parseInt(String(s)) === parseInt(String(o)) || parseInt(String(o)) === 0 || a, k = () => {
3203
+ a || (d ? d(s - 1) : t && t((w) => ({
3204
+ ...w,
3205
+ page: w.page - 1
3204
3206
  })));
3205
- }, h = () => {
3206
- n || (c ? c(a + 1) : t && t((v) => ({
3207
- ...v,
3208
- page: v.page + 1
3207
+ }, y = () => {
3208
+ a || (d ? d(s + 1) : t && t((w) => ({
3209
+ ...w,
3210
+ page: w.page + 1
3209
3211
  })));
3210
3212
  };
3211
- return /* @__PURE__ */ y("div", { className: p("flex justify-center items-center mt-8", i), children: [
3212
- /* @__PURE__ */ l(
3213
- q,
3213
+ return /* @__PURE__ */ m("div", { className: c("flex justify-center items-center mt-8", i), children: [
3214
+ /* @__PURE__ */ n(
3215
+ ee,
3214
3216
  {
3215
- disabled: d,
3217
+ disabled: u,
3216
3218
  onClick: k,
3217
3219
  variant: "secondary",
3218
- children: /* @__PURE__ */ l(Ar, { size: 14 })
3220
+ children: /* @__PURE__ */ n(jr, { size: 14 })
3219
3221
  }
3220
3222
  ),
3221
- /* @__PURE__ */ l("h5", { className: "font-bold mx-2.5 text-text", children: `${s ? e : ""} ${a}${s ? ` ${r} ` : " / "}${o}` }),
3222
- /* @__PURE__ */ l(
3223
- q,
3223
+ /* @__PURE__ */ n("h5", { className: "font-bold mx-2.5 text-text", children: `${l ? e : ""} ${s}${l ? ` ${r} ` : " / "}${o}` }),
3224
+ /* @__PURE__ */ n(
3225
+ ee,
3224
3226
  {
3225
- disabled: b,
3226
- onClick: h,
3227
+ disabled: g,
3228
+ onClick: y,
3227
3229
  variant: "primary",
3228
- children: /* @__PURE__ */ l(Ir, { size: 14 })
3230
+ children: /* @__PURE__ */ n(Ir, { size: 14 })
3229
3231
  }
3230
3232
  )
3231
3233
  ] });
3232
3234
  }
3233
3235
  function Pe(e) {
3234
- 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);
3235
- }
3236
- function jr(e) {
3237
- 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);
3236
+ return K({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "48", d: "m112 184 144 144 144-144" }, child: [] }] })(e);
3238
3237
  }
3239
3238
  function Or(e) {
3240
- 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);
3239
+ return K({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(e);
3241
3240
  }
3242
- function rt({
3241
+ function Tr(e) {
3242
+ return K({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M456.69 421.39 362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8 124.95 124.95 0 0 1-124.8-124.8z" }, child: [] }] })(e);
3243
+ }
3244
+ function lt({
3243
3245
  title: e,
3244
3246
  subtitle: r,
3245
3247
  children: t,
3246
3248
  defaultExpanded: o = !1,
3247
- expanded: a,
3248
- onToggle: s,
3249
+ expanded: s,
3250
+ onToggle: l,
3249
3251
  className: i = "",
3250
- colorScheme: n = "primary",
3251
- icon: c,
3252
- disabled: d = !1,
3253
- headerExtra: b
3252
+ colorScheme: a = "primary",
3253
+ icon: d,
3254
+ disabled: u = !1,
3255
+ headerExtra: g
3254
3256
  }) {
3255
- const [k, h] = $(o), v = a !== void 0 ? a : k, m = () => {
3256
- if (d) return;
3257
- const f = !v;
3258
- a === void 0 && h(f), s?.(f);
3259
- }, 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";
3260
- return /* @__PURE__ */ y(
3257
+ const [k, y] = _(o), w = s !== void 0 ? s : k, b = () => {
3258
+ if (u) return;
3259
+ const f = !w;
3260
+ s === void 0 && y(f), l?.(f);
3261
+ }, x = () => a === "primary" ? "border-primary" : "border-secondary", p = () => a === "primary" ? "text-primary" : "text-secondary", v = () => a === "primary" ? "hover:bg-primary/5" : "hover:bg-secondary/5";
3262
+ return /* @__PURE__ */ m(
3261
3263
  "div",
3262
3264
  {
3263
- className: p(
3265
+ className: c(
3264
3266
  "w-full rounded-lg border-2 bg-background transition-all duration-300",
3265
3267
  x(),
3266
- v && "shadow-lg",
3268
+ w && "shadow-lg",
3267
3269
  i
3268
3270
  ),
3269
3271
  children: [
3270
- /* @__PURE__ */ y(
3272
+ /* @__PURE__ */ m(
3271
3273
  "button",
3272
3274
  {
3273
3275
  type: "button",
3274
- onClick: m,
3275
- disabled: d,
3276
- className: p(
3276
+ onClick: b,
3277
+ disabled: u,
3278
+ className: c(
3277
3279
  "w-full flex cursor-pointer items-center justify-between p-4 text-left transition-all duration-300 rounded-lg",
3278
- !d && w(),
3279
- d && "opacity-50"
3280
+ !u && v(),
3281
+ u && "opacity-50"
3280
3282
  ),
3281
- "aria-expanded": v,
3283
+ "aria-expanded": w,
3282
3284
  children: [
3283
- /* @__PURE__ */ y("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
3284
- c && /* @__PURE__ */ l("div", { className: p("shrink-0", u()), children: c }),
3285
- /* @__PURE__ */ y("div", { className: "flex-1 min-w-0", children: [
3286
- /* @__PURE__ */ l(
3285
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
3286
+ d && /* @__PURE__ */ n("div", { className: c("shrink-0", p()), children: d }),
3287
+ /* @__PURE__ */ m("div", { className: "flex-1 min-w-0", children: [
3288
+ /* @__PURE__ */ n(
3287
3289
  "h3",
3288
3290
  {
3289
- className: p("text-base font-medium truncate", u()),
3291
+ className: c("text-base font-medium truncate", p()),
3290
3292
  children: e
3291
3293
  }
3292
3294
  ),
3293
- r && /* @__PURE__ */ l("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
3295
+ r && /* @__PURE__ */ n("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
3294
3296
  ] })
3295
3297
  ] }),
3296
- /* @__PURE__ */ y("div", { className: "flex items-center gap-3 shrink-0", children: [
3297
- b && /* @__PURE__ */ l("div", { onClick: (f) => f.stopPropagation(), children: b }),
3298
- /* @__PURE__ */ l(
3298
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-3 shrink-0", children: [
3299
+ g && /* @__PURE__ */ n("div", { onClick: (f) => f.stopPropagation(), children: g }),
3300
+ /* @__PURE__ */ n(
3299
3301
  "div",
3300
3302
  {
3301
- className: p(
3303
+ className: c(
3302
3304
  "h-5 w-5 transition-transform duration-300",
3303
- u(),
3304
- v && "rotate-180"
3305
+ p(),
3306
+ w && "rotate-180"
3305
3307
  ),
3306
- children: /* @__PURE__ */ l(Pe, { className: "h-5 w-5" })
3308
+ children: /* @__PURE__ */ n(Pe, { className: "h-5 w-5" })
3307
3309
  }
3308
3310
  )
3309
3311
  ] })
3310
3312
  ]
3311
3313
  }
3312
3314
  ),
3313
- /* @__PURE__ */ l(
3315
+ /* @__PURE__ */ n(
3314
3316
  "div",
3315
3317
  {
3316
- className: p(
3318
+ className: c(
3317
3319
  "overflow-hidden transition-all duration-300 ease-in-out",
3318
- v ? "max-h-500 opacity-100" : "max-h-0 opacity-0"
3320
+ w ? "max-h-500 opacity-100" : "max-h-0 opacity-0"
3319
3321
  ),
3320
- 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 }) })
3322
+ children: /* @__PURE__ */ n("div", { className: c("p-4 pt-0 border-t-0", x()), children: /* @__PURE__ */ n("div", { className: "border-t border-border pt-4", children: t }) })
3321
3323
  }
3322
3324
  )
3323
3325
  ]
3324
3326
  }
3325
3327
  );
3326
3328
  }
3327
- function tt({ children: e, className: r = "" }) {
3328
- return /* @__PURE__ */ l("div", { className: p("py-4", r), children: e });
3329
+ function it({ children: e, className: r = "" }) {
3330
+ return /* @__PURE__ */ n("div", { className: c("py-4", r), children: e });
3329
3331
  }
3330
- function ot({
3332
+ function ct({
3331
3333
  options: e,
3332
3334
  value: r,
3333
3335
  onChange: t,
3334
3336
  children: o,
3335
- className: a = "",
3336
- colorScheme: s = "primary",
3337
+ className: s = "",
3338
+ colorScheme: l = "primary",
3337
3339
  variant: i = "underline"
3338
3340
  }) {
3339
- const [n, c] = $(
3341
+ const [a, d] = _(
3340
3342
  r ?? e[0]?.value ?? ""
3341
- ), d = r !== void 0 ? r : n, b = (m) => {
3342
- r === void 0 && c(m), t?.(m);
3343
- }, k = (m, x) => {
3344
- 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";
3343
+ ), u = r !== void 0 ? r : a, g = (b) => {
3344
+ r === void 0 && d(b), t?.(b);
3345
+ }, k = (b, x) => {
3346
+ const p = u === b, v = "px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";
3345
3347
  if (x)
3346
- return p(w, "text-text-muted");
3348
+ return c(v, "text-text-muted");
3347
3349
  switch (i) {
3348
3350
  case "filled":
3349
- return p(
3350
- w,
3351
+ return c(
3352
+ v,
3351
3353
  "rounded-lg",
3352
- u ? s === "primary" ? "bg-primary text-white" : "bg-secondary text-white" : "text-text-muted hover:bg-background-light"
3354
+ p ? l === "primary" ? "bg-primary text-white" : "bg-secondary text-white" : "text-text-muted hover:bg-background-light"
3353
3355
  );
3354
3356
  case "pills":
3355
- return p(
3356
- w,
3357
+ return c(
3358
+ v,
3357
3359
  "rounded-full",
3358
- 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"
3360
+ p ? 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"
3359
3361
  );
3360
3362
  case "underline":
3361
3363
  default:
3362
- return p(
3363
- w,
3364
+ return c(
3365
+ v,
3364
3366
  "border-b-2 flex items-center gap-2",
3365
- u ? s === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-gray-500 hover:text-gray-700"
3367
+ p ? l === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-gray-500 hover:text-gray-700"
3366
3368
  );
3367
3369
  }
3368
- }, h = () => {
3370
+ }, y = () => {
3369
3371
  switch (i) {
3370
3372
  case "filled":
3371
3373
  return "flex gap-1 p-1 bg-background-light rounded-lg";
@@ -3375,35 +3377,35 @@ function ot({
3375
3377
  default:
3376
3378
  return "flex gap-2 border-b border-gray-200";
3377
3379
  }
3378
- }, v = B.Children.toArray(o).find((m) => B.isValidElement(m) ? m.props.value === d : !1);
3379
- return /* @__PURE__ */ y("div", { className: p("w-full", a), children: [
3380
- /* @__PURE__ */ l("div", { className: h(), role: "tablist", children: e.map((m) => /* @__PURE__ */ y(
3380
+ }, w = G.Children.toArray(o).find((b) => G.isValidElement(b) ? b.props.value === u : !1);
3381
+ return /* @__PURE__ */ m("div", { className: c("w-full", s), children: [
3382
+ /* @__PURE__ */ n("div", { className: y(), role: "tablist", children: e.map((b) => /* @__PURE__ */ m(
3381
3383
  "button",
3382
3384
  {
3383
3385
  type: "button",
3384
3386
  role: "tab",
3385
- "aria-selected": d === m.value,
3386
- "aria-controls": `tabpanel-${m.value}`,
3387
- disabled: m.disabled,
3388
- onClick: () => !m.disabled && b(m.value),
3389
- className: k(m.value, m.disabled),
3387
+ "aria-selected": u === b.value,
3388
+ "aria-controls": `tabpanel-${b.value}`,
3389
+ disabled: b.disabled,
3390
+ onClick: () => !b.disabled && g(b.value),
3391
+ className: k(b.value, b.disabled),
3390
3392
  children: [
3391
- m.icon && /* @__PURE__ */ l("span", { className: "shrink-0", children: m.icon }),
3392
- m.label
3393
+ b.icon && /* @__PURE__ */ n("span", { className: "shrink-0", children: b.icon }),
3394
+ b.label
3393
3395
  ]
3394
3396
  },
3395
- m.value
3397
+ b.value
3396
3398
  )) }),
3397
- /* @__PURE__ */ l("div", { role: "tabpanel", id: `tabpanel-${d}`, children: v })
3399
+ /* @__PURE__ */ n("div", { role: "tabpanel", id: `tabpanel-${u}`, children: w })
3398
3400
  ] });
3399
3401
  }
3400
- function ye(e) {
3401
- return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z" }, child: [] }] })(e);
3402
- }
3403
3402
  function xe(e) {
3404
- 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);
3403
+ return K({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z" }, child: [] }] })(e);
3404
+ }
3405
+ function we(e) {
3406
+ return K({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }, child: [] }] })(e);
3405
3407
  }
3406
- const Tr = [
3408
+ const $r = [
3407
3409
  "Mon",
3408
3410
  "Tue",
3409
3411
  "Wed",
@@ -3411,7 +3413,7 @@ const Tr = [
3411
3413
  "Fri",
3412
3414
  "Sat",
3413
3415
  "Sun"
3414
- ], $r = [
3416
+ ], _r = [
3415
3417
  "Lun",
3416
3418
  "Mar",
3417
3419
  "Mié",
@@ -3446,72 +3448,72 @@ const Tr = [
3446
3448
  "Noviembre",
3447
3449
  "Diciembre"
3448
3450
  ];
3449
- function _r(e) {
3451
+ function Vr(e) {
3450
3452
  return new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
3451
3453
  }
3452
- function Vr(e) {
3454
+ function Br(e) {
3453
3455
  const r = new Date(e.getFullYear(), e.getMonth(), 1).getDay();
3454
3456
  return r === 0 ? 6 : r - 1;
3455
3457
  }
3456
- function nt({
3458
+ function dt({
3457
3459
  value: e,
3458
3460
  onChange: r,
3459
3461
  disabled: t = !1,
3460
3462
  className: o = "",
3461
- colorScheme: a = "secondary",
3462
- lang: s = "en",
3463
+ colorScheme: s = "secondary",
3464
+ lang: l = "en",
3463
3465
  ...i
3464
3466
  }) {
3465
- const [n, c] = $(e || /* @__PURE__ */ new Date()), d = {
3467
+ const [a, d] = _(e || /* @__PURE__ */ new Date()), u = {
3466
3468
  en: "en-US",
3467
3469
  es: "es-ES"
3468
- }, b = {
3469
- en: Tr,
3470
- es: $r
3470
+ }, g = {
3471
+ en: $r,
3472
+ es: _r
3471
3473
  }, k = {
3472
3474
  en: Rr,
3473
3475
  es: Fr
3474
- }, h = _r(n), v = Vr(n), m = [];
3475
- for (let g = 0; g < v; g++)
3476
- m.push(null);
3477
- for (let g = 1; g <= h; g++) {
3478
- const j = new Date(
3479
- n.getFullYear(),
3480
- n.getMonth(),
3481
- g,
3476
+ }, y = Vr(a), w = Br(a), b = [];
3477
+ for (let h = 0; h < w; h++)
3478
+ b.push(null);
3479
+ for (let h = 1; h <= y; h++) {
3480
+ const O = new Date(
3481
+ a.getFullYear(),
3482
+ a.getMonth(),
3483
+ h,
3482
3484
  12,
3483
3485
  0,
3484
3486
  0
3485
3487
  );
3486
- m.push(j);
3488
+ b.push(O);
3487
3489
  }
3488
3490
  const x = () => {
3489
- c(
3491
+ d(
3490
3492
  new Date(
3491
- n.getFullYear(),
3492
- n.getMonth() - 1,
3493
+ a.getFullYear(),
3494
+ a.getMonth() - 1,
3493
3495
  1,
3494
3496
  12,
3495
3497
  0,
3496
3498
  0
3497
3499
  )
3498
3500
  );
3499
- }, u = () => {
3500
- c(
3501
+ }, p = () => {
3502
+ d(
3501
3503
  new Date(
3502
- n.getFullYear(),
3503
- n.getMonth() + 1,
3504
+ a.getFullYear(),
3505
+ a.getMonth() + 1,
3504
3506
  1,
3505
3507
  12,
3506
3508
  0,
3507
3509
  0
3508
3510
  )
3509
3511
  );
3510
- }, w = () => {
3511
- c(
3512
+ }, v = () => {
3513
+ d(
3512
3514
  new Date(
3513
- n.getFullYear() - 1,
3514
- n.getMonth(),
3515
+ a.getFullYear() - 1,
3516
+ a.getMonth(),
3515
3517
  1,
3516
3518
  12,
3517
3519
  0,
@@ -3519,30 +3521,30 @@ function nt({
3519
3521
  )
3520
3522
  );
3521
3523
  }, f = () => {
3522
- c(
3524
+ d(
3523
3525
  new Date(
3524
- n.getFullYear() + 1,
3525
- n.getMonth(),
3526
+ a.getFullYear() + 1,
3527
+ a.getMonth(),
3526
3528
  1,
3527
3529
  12,
3528
3530
  0,
3529
3531
  0
3530
3532
  )
3531
3533
  );
3532
- }, D = (g) => {
3533
- if (g && !t) {
3534
- const j = new Date(
3535
- g.getFullYear(),
3536
- g.getMonth(),
3537
- g.getDate(),
3534
+ }, S = (h) => {
3535
+ if (h && !t) {
3536
+ const O = new Date(
3537
+ h.getFullYear(),
3538
+ h.getMonth(),
3539
+ h.getDate(),
3538
3540
  12,
3539
3541
  0,
3540
3542
  0
3541
3543
  );
3542
- c(j), r?.(j);
3544
+ d(O), r?.(O);
3543
3545
  }
3544
3546
  }, z = (() => {
3545
- switch (a) {
3547
+ switch (s) {
3546
3548
  case "primary":
3547
3549
  return {
3548
3550
  header: "text-primary",
@@ -3559,127 +3561,127 @@ function nt({
3559
3561
  button: "text-secondary border-secondary hover:bg-secondary/20"
3560
3562
  };
3561
3563
  }
3562
- })(), P = (g) => g && e ? g.toDateString() === e.toDateString() : !1;
3563
- return /* @__PURE__ */ y(
3564
+ })(), E = (h) => h && e ? h.toDateString() === e.toDateString() : !1;
3565
+ return /* @__PURE__ */ m(
3564
3566
  "div",
3565
3567
  {
3566
- className: p(
3568
+ className: c(
3567
3569
  "w-full max-w-sm bg-background border-2 border-border rounded-lg p-6 shadow-md",
3568
3570
  o
3569
3571
  ),
3570
3572
  ...i,
3571
3573
  children: [
3572
- /* @__PURE__ */ y("div", { className: "mb-6", children: [
3573
- /* @__PURE__ */ y(
3574
+ /* @__PURE__ */ m("div", { className: "mb-6", children: [
3575
+ /* @__PURE__ */ m(
3574
3576
  "div",
3575
3577
  {
3576
- className: p(
3578
+ className: c(
3577
3579
  "flex items-center justify-between mb-4",
3578
3580
  z.header
3579
3581
  ),
3580
3582
  children: [
3581
- /* @__PURE__ */ l(
3583
+ /* @__PURE__ */ n(
3582
3584
  "button",
3583
3585
  {
3584
3586
  type: "button",
3585
- onClick: w,
3587
+ onClick: v,
3586
3588
  disabled: t,
3587
- className: p(
3589
+ className: c(
3588
3590
  "p-2 rounded-lg border transition-all duration-300",
3589
3591
  z.button,
3590
3592
  t && "opacity-50 cursor-not-allowed"
3591
3593
  ),
3592
- children: /* @__PURE__ */ l(ye, { size: 18 })
3594
+ children: /* @__PURE__ */ n(xe, { size: 18 })
3593
3595
  }
3594
3596
  ),
3595
- /* @__PURE__ */ l("h2", { className: "font-semibold text-lg", children: n.getFullYear() }),
3596
- /* @__PURE__ */ l(
3597
+ /* @__PURE__ */ n("h2", { className: "font-semibold text-lg", children: a.getFullYear() }),
3598
+ /* @__PURE__ */ n(
3597
3599
  "button",
3598
3600
  {
3599
3601
  type: "button",
3600
3602
  onClick: f,
3601
3603
  disabled: t,
3602
- className: p(
3604
+ className: c(
3603
3605
  "p-2 rounded-lg border transition-all duration-300",
3604
3606
  z.button,
3605
3607
  t && "opacity-50 cursor-not-allowed"
3606
3608
  ),
3607
- children: /* @__PURE__ */ l(xe, { size: 18 })
3609
+ children: /* @__PURE__ */ n(we, { size: 18 })
3608
3610
  }
3609
3611
  )
3610
3612
  ]
3611
3613
  }
3612
3614
  ),
3613
- /* @__PURE__ */ y("div", { className: p("flex items-center justify-between", z.header), children: [
3614
- /* @__PURE__ */ l(
3615
+ /* @__PURE__ */ m("div", { className: c("flex items-center justify-between", z.header), children: [
3616
+ /* @__PURE__ */ n(
3615
3617
  "button",
3616
3618
  {
3617
3619
  type: "button",
3618
3620
  onClick: x,
3619
3621
  disabled: t,
3620
- className: p(
3622
+ className: c(
3621
3623
  "p-2 rounded-lg border transition-all duration-300",
3622
3624
  z.button,
3623
3625
  t && "opacity-50 cursor-not-allowed"
3624
3626
  ),
3625
- children: /* @__PURE__ */ l(ye, { size: 18 })
3627
+ children: /* @__PURE__ */ n(xe, { size: 18 })
3626
3628
  }
3627
3629
  ),
3628
- /* @__PURE__ */ l("h2", { className: "font-semibold text-lg", children: k[s][n.getMonth()] }),
3629
- /* @__PURE__ */ l(
3630
+ /* @__PURE__ */ n("h2", { className: "font-semibold text-lg", children: k[l][a.getMonth()] }),
3631
+ /* @__PURE__ */ n(
3630
3632
  "button",
3631
3633
  {
3632
3634
  type: "button",
3633
- onClick: u,
3635
+ onClick: p,
3634
3636
  disabled: t,
3635
- className: p(
3637
+ className: c(
3636
3638
  "p-2 rounded-lg border transition-all duration-300",
3637
3639
  z.button,
3638
3640
  t && "opacity-50 cursor-not-allowed"
3639
3641
  ),
3640
- children: /* @__PURE__ */ l(xe, { size: 18 })
3642
+ children: /* @__PURE__ */ n(we, { size: 18 })
3641
3643
  }
3642
3644
  )
3643
3645
  ] })
3644
3646
  ] }),
3645
- /* @__PURE__ */ l("div", { className: "grid grid-cols-7 gap-2 mb-4", children: b[s].map((g) => /* @__PURE__ */ l(
3647
+ /* @__PURE__ */ n("div", { className: "grid grid-cols-7 gap-2 mb-4", children: g[l].map((h) => /* @__PURE__ */ n(
3646
3648
  "div",
3647
3649
  {
3648
- className: p(
3650
+ className: c(
3649
3651
  "text-center text-sm font-medium py-2",
3650
3652
  z.header
3651
3653
  ),
3652
- children: g
3654
+ children: h
3653
3655
  },
3654
- g
3656
+ h
3655
3657
  )) }),
3656
- /* @__PURE__ */ l("div", { className: "grid grid-cols-7 gap-2", children: m.map((g, j) => /* @__PURE__ */ l(
3658
+ /* @__PURE__ */ n("div", { className: "grid grid-cols-7 gap-2", children: b.map((h, O) => /* @__PURE__ */ n(
3657
3659
  "button",
3658
3660
  {
3659
3661
  type: "button",
3660
- onClick: () => D(g),
3661
- disabled: !g || t,
3662
- className: p(
3662
+ onClick: () => S(h),
3663
+ disabled: !h || t,
3664
+ className: c(
3663
3665
  "p-2 rounded-lg text-sm font-medium transition-all duration-300",
3664
- g ? p(
3666
+ h ? c(
3665
3667
  "cursor-pointer",
3666
3668
  z.hover,
3667
- P(g) ? z.selected : "text-text border border-transparent hover:border-border",
3669
+ E(h) ? z.selected : "text-text border border-transparent hover:border-border",
3668
3670
  t && "opacity-50 cursor-not-allowed"
3669
3671
  ) : "cursor-default"
3670
3672
  ),
3671
- children: g ? g.getDate() : ""
3673
+ children: h ? h.getDate() : ""
3672
3674
  },
3673
- j
3675
+ O
3674
3676
  )) }),
3675
- e && /* @__PURE__ */ l(
3677
+ e && /* @__PURE__ */ n(
3676
3678
  "div",
3677
3679
  {
3678
- className: p(
3680
+ className: c(
3679
3681
  "mt-6 p-3 rounded-lg bg-background-dark border border-border text-center text-sm font-medium",
3680
3682
  z.header
3681
3683
  ),
3682
- children: e.toLocaleDateString(d[s], {
3684
+ children: e.toLocaleDateString(u[l], {
3683
3685
  year: "numeric",
3684
3686
  month: "long",
3685
3687
  day: "numeric"
@@ -3690,333 +3692,333 @@ function nt({
3690
3692
  }
3691
3693
  );
3692
3694
  }
3693
- function at({
3695
+ function ut({
3694
3696
  headers: e,
3695
3697
  data: r,
3696
3698
  loading: t,
3697
3699
  loadingText: o = "Loading...",
3698
- actions: a,
3699
- actionsHeader: s = "Actions",
3700
+ actions: s,
3701
+ actionsHeader: l = "Actions",
3700
3702
  onRowClick: i,
3701
- className: n = "",
3702
- rowClassName: c = "",
3703
- cellClassName: d = "",
3704
- headerClassName: b = "",
3703
+ className: a = "",
3704
+ rowClassName: d = "",
3705
+ cellClassName: u = "",
3706
+ headerClassName: g = "",
3705
3707
  emptyText: k = "No data available",
3706
- showCount: h = !0,
3707
- countText: v = (x) => `Showing ${x} record${x !== 1 ? "s" : ""}`,
3708
- keyExtractor: m = (x, u) => x._id || x.id || u
3708
+ showCount: y = !0,
3709
+ countText: w = (x) => `Showing ${x} record${x !== 1 ? "s" : ""}`,
3710
+ keyExtractor: b = (x, p) => x._id || x.id || p
3709
3711
  }) {
3710
3712
  if (t)
3711
- 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 }) });
3713
+ return /* @__PURE__ */ n("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ n("div", { className: "text-lg text-text-light", children: o }) });
3712
3714
  if (r.length === 0)
3713
- 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 }) });
3714
- const x = (u, w) => {
3715
- const f = w.toLowerCase().replace(/\s+/g, "_");
3716
- let D = u[f];
3717
- if (D === void 0) {
3718
- const E = [
3715
+ return /* @__PURE__ */ n("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ n("div", { className: "text-lg text-text-muted", children: k }) });
3716
+ const x = (p, v) => {
3717
+ const f = v.toLowerCase().replace(/\s+/g, "_");
3718
+ let S = p[f];
3719
+ if (S === void 0) {
3720
+ const A = [
3719
3721
  f.replace(/_/g, ""),
3720
- w.toLowerCase().replace(/\s+/g, ""),
3721
- f.replace(/_([a-z])/g, (z, P) => P.toUpperCase())
3722
+ v.toLowerCase().replace(/\s+/g, ""),
3723
+ f.replace(/_([a-z])/g, (z, E) => E.toUpperCase())
3722
3724
  ];
3723
- for (const z of E)
3724
- if (u[z] !== void 0) {
3725
- D = u[z];
3725
+ for (const z of A)
3726
+ if (p[z] !== void 0) {
3727
+ S = p[z];
3726
3728
  break;
3727
3729
  }
3728
3730
  }
3729
- if (D === void 0) {
3730
- const E = w.toLowerCase().split(" "), z = Object.keys(u).find(
3731
- (P) => E.some((g) => P.toLowerCase().includes(g))
3731
+ if (S === void 0) {
3732
+ const A = v.toLowerCase().split(" "), z = Object.keys(p).find(
3733
+ (E) => A.some((h) => E.toLowerCase().includes(h))
3732
3734
  );
3733
- z && (D = u[z]);
3735
+ z && (S = p[z]);
3734
3736
  }
3735
- return D != null ? String(D) : "N/A";
3737
+ return S != null ? String(S) : "N/A";
3736
3738
  };
3737
- return /* @__PURE__ */ y("div", { className: p("overflow-x-auto", n), children: [
3738
- /* @__PURE__ */ y("table", { className: "w-full border-collapse", children: [
3739
- /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ y("tr", { className: "border-b-2 border-border", children: [
3740
- e.map((u, w) => /* @__PURE__ */ l(
3739
+ return /* @__PURE__ */ m("div", { className: c("overflow-x-auto", a), children: [
3740
+ /* @__PURE__ */ m("table", { className: "w-full border-collapse", children: [
3741
+ /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ m("tr", { className: "border-b-2 border-border", children: [
3742
+ e.map((p, v) => /* @__PURE__ */ n(
3741
3743
  "th",
3742
3744
  {
3743
- className: p(
3745
+ className: c(
3744
3746
  "text-left py-3 px-4 font-semibold text-text",
3745
- b
3747
+ g
3746
3748
  ),
3747
- children: u
3749
+ children: p
3748
3750
  },
3749
- w
3751
+ v
3750
3752
  )),
3751
- a && /* @__PURE__ */ l(
3753
+ s && /* @__PURE__ */ n(
3752
3754
  "th",
3753
3755
  {
3754
- className: p(
3756
+ className: c(
3755
3757
  "text-center py-3 px-4 font-semibold text-text",
3756
- b
3758
+ g
3757
3759
  ),
3758
- children: s
3760
+ children: l
3759
3761
  }
3760
3762
  )
3761
3763
  ] }) }),
3762
- /* @__PURE__ */ l("tbody", { children: r.map((u, w) => /* @__PURE__ */ y(
3764
+ /* @__PURE__ */ n("tbody", { children: r.map((p, v) => /* @__PURE__ */ m(
3763
3765
  "tr",
3764
3766
  {
3765
- className: p(
3767
+ className: c(
3766
3768
  "border-b border-border-dark hover:bg-background-light transition-colors",
3767
3769
  i && "cursor-pointer",
3768
- c
3770
+ d
3769
3771
  ),
3770
- onClick: () => i?.(u),
3772
+ onClick: () => i?.(p),
3771
3773
  children: [
3772
- 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)),
3773
- 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) => {
3774
- const E = (z) => {
3775
- z?.stopPropagation(), f.onClick?.(u);
3774
+ e.map((f, S) => /* @__PURE__ */ n("td", { className: c("py-4 px-4", u), children: /* @__PURE__ */ n("div", { className: "text-text-light", children: x(p, f) }) }, S)),
3775
+ s && /* @__PURE__ */ n("td", { className: c("py-4 px-4", u), children: /* @__PURE__ */ n("div", { className: "flex gap-2 justify-center", children: s.map((f, S) => {
3776
+ const A = (z) => {
3777
+ z?.stopPropagation(), f.onClick?.(p);
3776
3778
  };
3777
3779
  if (f.component) {
3778
3780
  const z = f.component;
3779
- return /* @__PURE__ */ y(
3781
+ return /* @__PURE__ */ m(
3780
3782
  z,
3781
3783
  {
3782
- onClick: E,
3784
+ onClick: A,
3783
3785
  className: f.className || "",
3784
3786
  ...f.props || {},
3785
3787
  children: [
3786
- f.icon && /* @__PURE__ */ l("span", { className: "inline-block", children: B.createElement(f.icon) }),
3788
+ f.icon && /* @__PURE__ */ n("span", { className: "inline-block", children: G.createElement(f.icon) }),
3787
3789
  f.label && f.label
3788
3790
  ]
3789
3791
  },
3790
- D
3792
+ S
3791
3793
  );
3792
3794
  }
3793
- return /* @__PURE__ */ y(
3794
- q,
3795
+ return /* @__PURE__ */ m(
3796
+ ee,
3795
3797
  {
3796
- onClick: E,
3798
+ onClick: A,
3797
3799
  className: f.className || "",
3798
3800
  ...f.props || {},
3799
3801
  children: [
3800
- f.icon && /* @__PURE__ */ l("span", { className: "inline-block", children: B.createElement(f.icon) }),
3802
+ f.icon && /* @__PURE__ */ n("span", { className: "inline-block", children: G.createElement(f.icon) }),
3801
3803
  f.label && f.label
3802
3804
  ]
3803
3805
  },
3804
- D
3806
+ S
3805
3807
  );
3806
3808
  }) }) })
3807
3809
  ]
3808
3810
  },
3809
- m(u, w)
3811
+ b(p, v)
3810
3812
  )) })
3811
3813
  ] }),
3812
- h && r.length > 0 && /* @__PURE__ */ l("div", { className: "mt-6 text-center text-text-light text-sm", children: v(r.length) })
3814
+ y && r.length > 0 && /* @__PURE__ */ n("div", { className: "mt-6 text-center text-text-light text-sm", children: w(r.length) })
3813
3815
  ] });
3814
3816
  }
3815
- function st({
3817
+ function pt({
3816
3818
  label: e,
3817
3819
  options: r,
3818
3820
  value: t = "",
3819
3821
  onChange: o,
3820
- multiple: a = !1,
3821
- className: s = "",
3822
+ multiple: s = !1,
3823
+ className: l = "",
3822
3824
  searchable: i = !1,
3823
- onSearchInputCustom: n,
3824
- placeholder: c = "Select...",
3825
- disabled: d = !1,
3826
- error: b,
3825
+ onSearchInputCustom: a,
3826
+ placeholder: d = "Select...",
3827
+ disabled: u = !1,
3828
+ error: g,
3827
3829
  required: k = !1,
3828
- colorScheme: h = "primary",
3829
- noResultsText: v = "No results found",
3830
- searchPlaceholder: m = "Search...",
3830
+ colorScheme: y = "primary",
3831
+ noResultsText: w = "No results found",
3832
+ searchPlaceholder: b = "Search...",
3831
3833
  ...x
3832
3834
  }) {
3833
- const [u, w] = $(!1), [f, D] = $(""), [E, z] = $({
3835
+ const [p, v] = _(!1), [f, S] = _(""), [A, z] = _({
3834
3836
  top: 0,
3835
3837
  left: 0,
3836
3838
  openUpward: !1
3837
- }), P = Array.isArray(t) ? t : t ? [t] : [], [g, j] = $(
3838
- P.map((C) => r.find((L) => L.value === C)).filter(Boolean)
3839
- ), R = ce(null), G = ce(null), K = () => {
3840
- 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";
3841
- if (b)
3842
- return p(C, "border-danger focus:border-danger");
3843
- switch (h) {
3839
+ }), E = Array.isArray(t) ? t : t ? [t] : [], [h, O] = _(
3840
+ E.map((N) => r.find((L) => L.value === N)).filter(Boolean)
3841
+ ), R = de(null), W = de(null), Z = () => {
3842
+ const N = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed";
3843
+ if (g)
3844
+ return c(N, "border-danger focus:border-danger");
3845
+ switch (y) {
3844
3846
  case "primary":
3845
- return p(
3846
- C,
3847
+ return c(
3848
+ N,
3847
3849
  "text-primary border-primary focus:border-primary"
3848
3850
  );
3849
3851
  case "secondary":
3850
3852
  default:
3851
- return p(
3852
- C,
3853
+ return c(
3854
+ N,
3853
3855
  "text-secondary border-secondary focus:border-secondary"
3854
3856
  );
3855
3857
  }
3856
- }, S = () => h === "primary" ? "text-primary" : "text-secondary";
3857
- W(() => {
3858
- const L = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((F) => r.find((_) => _.value === F)).filter(Boolean);
3859
- j(L);
3860
- }, [t, r]), W(() => {
3861
- u && i && G.current && G.current.focus();
3862
- }, [u, i]);
3858
+ }, D = () => y === "primary" ? "text-primary" : "text-secondary";
3859
+ H(() => {
3860
+ const L = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((F) => r.find((V) => V.value === F)).filter(Boolean);
3861
+ O(L);
3862
+ }, [t, r]), H(() => {
3863
+ p && i && W.current && W.current.focus();
3864
+ }, [p, i]);
3863
3865
  const M = ve(() => {
3864
3866
  if (!R.current) return;
3865
- const C = R.current.getBoundingClientRect(), L = window.innerHeight, F = 250, X = L - C.bottom < F && C.top > F;
3867
+ const N = R.current.getBoundingClientRect(), L = window.innerHeight, F = 250, q = L - N.bottom < F && N.top > F;
3866
3868
  z({
3867
- top: X ? C.top : C.bottom,
3868
- left: C.left,
3869
- width: C.width,
3870
- openUpward: X
3869
+ top: q ? N.top : N.bottom,
3870
+ left: N.left,
3871
+ width: N.width,
3872
+ openUpward: q
3871
3873
  });
3872
3874
  }, []);
3873
- W(() => {
3874
- function C(F) {
3875
- R.current && !R.current.contains(F.target) && w(!1);
3875
+ H(() => {
3876
+ function N(F) {
3877
+ R.current && !R.current.contains(F.target) && v(!1);
3876
3878
  }
3877
3879
  function L() {
3878
- u && M();
3880
+ p && M();
3879
3881
  }
3880
- return document.addEventListener("mousedown", C), window.addEventListener("scroll", L, !0), window.addEventListener("resize", L), () => {
3881
- document.removeEventListener("mousedown", C), window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L);
3882
+ return document.addEventListener("mousedown", N), window.addEventListener("scroll", L, !0), window.addEventListener("resize", L), () => {
3883
+ document.removeEventListener("mousedown", N), window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L);
3882
3884
  };
3883
- }, [u, M]);
3884
- const A = (C) => {
3885
+ }, [p, M]);
3886
+ const P = (N) => {
3885
3887
  const L = r.find(
3886
- (_) => _.value === C
3888
+ (V) => V.value === N
3887
3889
  );
3888
3890
  if (!L) return;
3889
3891
  let F;
3890
- 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(""));
3891
- }, V = (C) => {
3892
- D(C), n?.(C);
3893
- }, T = i ? r.filter(
3894
- (C) => C.label.toLowerCase().includes(f.toLowerCase())
3895
- ) : r, Z = () => g.length === 0 ? c : a ? g.length === 1 ? g[0].label : `${g.length} selected` : g[0]?.label || c;
3896
- return /* @__PURE__ */ y("div", { className: p("mb-6", s), children: [
3897
- e && /* @__PURE__ */ y(
3892
+ s ? (F = h.some((q) => q.value === N) ? h.filter((q) => q.value !== N) : [...h, L], O(F), o(F)) : (F = [L], O(F), o(L), v(!1), S(""));
3893
+ }, B = (N) => {
3894
+ S(N), a?.(N);
3895
+ }, $ = i ? r.filter(
3896
+ (N) => N.label.toLowerCase().includes(f.toLowerCase())
3897
+ ) : r, X = () => h.length === 0 ? d : s ? h.length === 1 ? h[0].label : `${h.length} selected` : h[0]?.label || d;
3898
+ return /* @__PURE__ */ m("div", { className: c("mb-6", l), children: [
3899
+ e && /* @__PURE__ */ m(
3898
3900
  "label",
3899
3901
  {
3900
- className: p("block mb-2 text-sm font-medium", S()),
3902
+ className: c("block mb-2 text-sm font-medium", D()),
3901
3903
  children: [
3902
3904
  e,
3903
- k && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
3905
+ k && /* @__PURE__ */ n("span", { className: "text-danger ml-1", children: "*" })
3904
3906
  ]
3905
3907
  }
3906
3908
  ),
3907
- /* @__PURE__ */ y("div", { ref: R, className: "relative w-full", children: [
3908
- /* @__PURE__ */ y(
3909
+ /* @__PURE__ */ m("div", { ref: R, className: "relative w-full", children: [
3910
+ /* @__PURE__ */ m(
3909
3911
  "button",
3910
3912
  {
3911
3913
  type: "button",
3912
- onClick: (C) => {
3913
- C.preventDefault(), C.stopPropagation(), u || M(), w(!u);
3914
+ onClick: (N) => {
3915
+ N.preventDefault(), N.stopPropagation(), p || M(), v(!p);
3914
3916
  },
3915
- className: p(
3916
- K(),
3917
+ className: c(
3918
+ Z(),
3917
3919
  "inline-flex items-center justify-between cursor-pointer h-auto min-h-14",
3918
- d && "cursor-not-allowed",
3919
- u && "ring-1"
3920
+ u && "cursor-not-allowed",
3921
+ p && "ring-1"
3920
3922
  ),
3921
- disabled: d,
3923
+ disabled: u,
3922
3924
  ...x,
3923
3925
  children: [
3924
- /* @__PURE__ */ y("div", { className: "flex items-center gap-2 flex-1", children: [
3925
- g.length > 0 && g[0].hex && /* @__PURE__ */ l(
3926
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-2 flex-1", children: [
3927
+ h.length > 0 && h[0].hex && /* @__PURE__ */ n(
3926
3928
  "div",
3927
3929
  {
3928
3930
  className: "h-4 w-4 rounded border border-border",
3929
- style: { backgroundColor: g[0].hex }
3931
+ style: { backgroundColor: h[0].hex }
3930
3932
  }
3931
3933
  ),
3932
- /* @__PURE__ */ l(
3934
+ /* @__PURE__ */ n(
3933
3935
  "span",
3934
3936
  {
3935
- className: g.length > 0 ? "" : "text-text-muted",
3936
- children: Z()
3937
+ className: h.length > 0 ? "" : "text-text-muted",
3938
+ children: X()
3937
3939
  }
3938
3940
  )
3939
3941
  ] }),
3940
- /* @__PURE__ */ l(
3942
+ /* @__PURE__ */ n(
3941
3943
  "div",
3942
3944
  {
3943
- className: p(
3945
+ className: c(
3944
3946
  "h-5 w-5 transition-transform duration-200",
3945
- u && "rotate-180"
3947
+ p && "rotate-180"
3946
3948
  ),
3947
- children: /* @__PURE__ */ l(Pe, { className: "h-5 w-5" })
3949
+ children: /* @__PURE__ */ n(Pe, { className: "h-5 w-5" })
3948
3950
  }
3949
3951
  )
3950
3952
  ]
3951
3953
  }
3952
3954
  ),
3953
- u && /* @__PURE__ */ y(
3955
+ p && /* @__PURE__ */ m(
3954
3956
  "div",
3955
3957
  {
3956
- className: p(
3958
+ className: c(
3957
3959
  "fixed z-9999 rounded-lg border-2 bg-white shadow-xl",
3958
- b ? "border-danger" : h === "primary" ? "border-primary" : "border-secondary"
3960
+ g ? "border-danger" : y === "primary" ? "border-primary" : "border-secondary"
3959
3961
  ),
3960
3962
  style: {
3961
- top: `${E.top + (E.openUpward ? 0 : 8)}px`,
3962
- left: `${E.left}px`,
3963
- width: `${E.width}px`,
3964
- transform: E.openUpward ? "translateY(-100%)" : "none"
3963
+ top: `${A.top + (A.openUpward ? 0 : 8)}px`,
3964
+ left: `${A.left}px`,
3965
+ width: `${A.width}px`,
3966
+ transform: A.openUpward ? "translateY(-100%)" : "none"
3965
3967
  },
3966
3968
  children: [
3967
- i && /* @__PURE__ */ l("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ y("div", { className: "relative", children: [
3968
- /* @__PURE__ */ l(Or, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
3969
- /* @__PURE__ */ l(
3969
+ i && /* @__PURE__ */ n("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ m("div", { className: "relative", children: [
3970
+ /* @__PURE__ */ n(Tr, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
3971
+ /* @__PURE__ */ n(
3970
3972
  "input",
3971
3973
  {
3972
- ref: G,
3974
+ ref: W,
3973
3975
  type: "text",
3974
3976
  value: f,
3975
- onChange: (C) => V(C.target.value),
3976
- placeholder: m,
3977
- className: p(
3977
+ onChange: (N) => B(N.target.value),
3978
+ placeholder: b,
3979
+ className: c(
3978
3980
  "w-full rounded-lg border-2 py-2 pr-10 pl-10 text-sm transition-all duration-300 focus:outline-none focus:ring-1",
3979
- h === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
3981
+ y === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
3980
3982
  )
3981
3983
  }
3982
3984
  ),
3983
- f && /* @__PURE__ */ l(
3985
+ f && /* @__PURE__ */ n(
3984
3986
  "button",
3985
3987
  {
3986
3988
  type: "button",
3987
- onClick: () => D(""),
3989
+ onClick: () => S(""),
3988
3990
  className: "absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform text-text-muted hover:text-text",
3989
- children: /* @__PURE__ */ l(jr, { className: "h-4 w-4" })
3991
+ children: /* @__PURE__ */ n(Or, { className: "h-4 w-4" })
3990
3992
  }
3991
3993
  )
3992
3994
  ] }) }),
3993
- /* @__PURE__ */ y("div", { className: "max-h-60 overflow-y-auto py-1", children: [
3994
- T.map((C) => /* @__PURE__ */ l(
3995
+ /* @__PURE__ */ m("div", { className: "max-h-60 overflow-y-auto py-1", children: [
3996
+ $.map((N) => /* @__PURE__ */ n(
3995
3997
  "button",
3996
3998
  {
3997
3999
  type: "button",
3998
- onClick: () => A(C.value ?? ""),
3999
- className: p(
4000
+ onClick: () => P(N.value ?? ""),
4001
+ className: c(
4000
4002
  "w-full px-4 py-3 text-left text-sm transition-colors",
4001
- 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"
4003
+ h.some((L) => L.value === N.value) ? y === "primary" ? "bg-primary/10 text-primary font-medium" : "bg-secondary/10 text-secondary font-medium" : "text-text hover:bg-background-light"
4002
4004
  ),
4003
- children: /* @__PURE__ */ y("div", { className: "flex items-center gap-3", children: [
4004
- a && /* @__PURE__ */ l(
4005
+ children: /* @__PURE__ */ m("div", { className: "flex items-center gap-3", children: [
4006
+ s && /* @__PURE__ */ n(
4005
4007
  "div",
4006
4008
  {
4007
- className: p(
4009
+ className: c(
4008
4010
  "flex h-4 w-4 items-center justify-center rounded border-2 transition-colors",
4009
- g.some((L) => L.value === C.value) ? h === "primary" ? "border-primary bg-primary" : "border-secondary bg-secondary" : "border-border"
4011
+ h.some((L) => L.value === N.value) ? y === "primary" ? "border-primary bg-primary" : "border-secondary bg-secondary" : "border-border"
4010
4012
  ),
4011
- children: g.some(
4012
- (L) => L.value === C.value
4013
- ) && /* @__PURE__ */ l(
4013
+ children: h.some(
4014
+ (L) => L.value === N.value
4015
+ ) && /* @__PURE__ */ n(
4014
4016
  "svg",
4015
4017
  {
4016
4018
  className: "h-3 w-3 text-white",
4017
4019
  fill: "currentColor",
4018
4020
  viewBox: "0 0 20 20",
4019
- children: /* @__PURE__ */ l(
4021
+ children: /* @__PURE__ */ n(
4020
4022
  "path",
4021
4023
  {
4022
4024
  fillRule: "evenodd",
@@ -4028,67 +4030,67 @@ function st({
4028
4030
  )
4029
4031
  }
4030
4032
  ),
4031
- C.hex && /* @__PURE__ */ l(
4033
+ N.hex && /* @__PURE__ */ n(
4032
4034
  "div",
4033
4035
  {
4034
4036
  className: "h-4 w-4 rounded border border-border",
4035
- style: { backgroundColor: C.hex }
4037
+ style: { backgroundColor: N.hex }
4036
4038
  }
4037
4039
  ),
4038
- /* @__PURE__ */ l("span", { children: C.label })
4040
+ /* @__PURE__ */ n("span", { children: N.label })
4039
4041
  ] })
4040
4042
  },
4041
- C.value
4043
+ N.value
4042
4044
  )),
4043
- 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 }) })
4045
+ $.length === 0 && f && r.length > 0 && /* @__PURE__ */ n("div", { className: "px-4 py-3", children: /* @__PURE__ */ n("span", { className: "text-sm text-text-muted", children: w }) })
4044
4046
  ] })
4045
4047
  ]
4046
4048
  }
4047
4049
  )
4048
4050
  ] }),
4049
- b && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: b })
4051
+ g && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: g })
4050
4052
  ] });
4051
4053
  }
4052
- const lt = ({
4054
+ const mt = ({
4053
4055
  id: e,
4054
4056
  name: r,
4055
4057
  onFilesSelected: t,
4056
4058
  placeholder: o = "Arrastra y suelta archivos aquí o haz clic para seleccionar",
4057
- labelSelectedFiles: a = "archivo:",
4058
- label: s,
4059
+ labelSelectedFiles: s = "archivo:",
4060
+ label: l,
4059
4061
  error: i,
4060
- disabled: n = !1,
4061
- required: c = !1,
4062
- colorScheme: d = "secondary",
4062
+ disabled: a = !1,
4063
+ required: d = !1,
4064
+ colorScheme: u = "secondary",
4063
4065
  // "primary" | "secondary"
4064
- className: b = "",
4066
+ className: g = "",
4065
4067
  accept: k = "*/*",
4066
4068
  // Tipos de archivo aceptados: "image/*", "application/pdf", ".doc,.docx", etc.
4067
- multiple: h = !1,
4068
- ...v
4069
+ multiple: y = !1,
4070
+ ...w
4069
4071
  }) => {
4070
- const m = ce(null), [x, u] = $(!1), [w, f] = $([]), D = () => {
4072
+ const b = de(null), [x, p] = _(!1), [v, f] = _([]), S = () => {
4071
4073
  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]";
4072
4074
  if (i)
4073
- return p(
4075
+ return c(
4074
4076
  M,
4075
4077
  "border-danger focus:border-danger focus:ring-1 focus:ring-danger"
4076
4078
  );
4077
- switch (d) {
4079
+ switch (u) {
4078
4080
  case "primary":
4079
- return p(
4081
+ return c(
4080
4082
  M,
4081
4083
  "border-primary focus:border-primary focus:ring-1 focus:ring-primary hover:border-primary-dark"
4082
4084
  );
4083
4085
  case "secondary":
4084
4086
  default:
4085
- return p(
4087
+ return c(
4086
4088
  M,
4087
4089
  "border-secondary focus:border-secondary focus:ring-1 focus:ring-secondary hover:border-secondary-dark"
4088
4090
  );
4089
4091
  }
4090
- }, E = () => {
4091
- switch (d) {
4092
+ }, A = () => {
4093
+ switch (u) {
4092
4094
  case "primary":
4093
4095
  return "text-primary";
4094
4096
  case "secondary":
@@ -4096,87 +4098,87 @@ const lt = ({
4096
4098
  return "text-secondary";
4097
4099
  }
4098
4100
  }, z = (M) => {
4099
- M.preventDefault(), M.stopPropagation(), n || (M.type === "dragenter" || M.type === "dragover" ? u(!0) : M.type === "dragleave" && u(!1));
4100
- }, P = (M) => {
4101
- if (M.preventDefault(), M.stopPropagation(), u(!1), n) return;
4102
- const A = M.dataTransfer.files;
4103
- j(A);
4104
- }, g = (M) => {
4105
- const A = M.target.files;
4106
- A && j(A);
4107
- }, j = (M) => {
4108
- const A = Array.from(M);
4101
+ M.preventDefault(), M.stopPropagation(), a || (M.type === "dragenter" || M.type === "dragover" ? p(!0) : M.type === "dragleave" && p(!1));
4102
+ }, E = (M) => {
4103
+ if (M.preventDefault(), M.stopPropagation(), p(!1), a) return;
4104
+ const P = M.dataTransfer.files;
4105
+ O(P);
4106
+ }, h = (M) => {
4107
+ const P = M.target.files;
4108
+ P && O(P);
4109
+ }, O = (M) => {
4110
+ const P = Array.from(M);
4109
4111
  if (k !== "*/*") {
4110
- const V = A.filter((T) => R(T, k));
4111
- if (V.length === 0) {
4112
+ const B = P.filter(($) => R($, k));
4113
+ if (B.length === 0) {
4112
4114
  console.warn("No valid files selected");
4113
4115
  return;
4114
4116
  }
4115
- f(h ? V : [V[0]]), t(h ? V : [V[0]]);
4117
+ f(y ? B : [B[0]]), t(y ? B : [B[0]]);
4116
4118
  } else
4117
- f(h ? A : [A[0]]), t(h ? A : [A[0]]);
4118
- }, R = (M, A) => A.split(",").map((T) => T.trim()).some((T) => {
4119
- if (T.startsWith("."))
4120
- return M.name.toLowerCase().endsWith(T.toLowerCase());
4121
- if (T.includes("/")) {
4122
- const [Z, C] = T.split("/"), L = M.type.split("/")[0];
4123
- return C === "*" ? L === Z : M.type === T;
4119
+ f(y ? P : [P[0]]), t(y ? P : [P[0]]);
4120
+ }, R = (M, P) => P.split(",").map(($) => $.trim()).some(($) => {
4121
+ if ($.startsWith("."))
4122
+ return M.name.toLowerCase().endsWith($.toLowerCase());
4123
+ if ($.includes("/")) {
4124
+ const [X, N] = $.split("/"), L = M.type.split("/")[0];
4125
+ return N === "*" ? L === X : M.type === $;
4124
4126
  }
4125
4127
  return !1;
4126
- }), G = () => {
4127
- n || m.current?.click();
4128
- }, K = (M) => {
4129
- const A = w.filter((V, T) => T !== M);
4130
- f(A), t(A);
4131
- }, S = (M) => {
4132
- (M.key === "Enter" || M.key === " ") && (M.preventDefault(), G());
4128
+ }), W = () => {
4129
+ a || b.current?.click();
4130
+ }, Z = (M) => {
4131
+ const P = v.filter((B, $) => $ !== M);
4132
+ f(P), t(P);
4133
+ }, D = (M) => {
4134
+ (M.key === "Enter" || M.key === " ") && (M.preventDefault(), W());
4133
4135
  };
4134
- return /* @__PURE__ */ y("div", { className: `mb-6 ${b}`, children: [
4135
- s && /* @__PURE__ */ y("label", { className: `block mb-2 text-sm font-medium ${E()}`, children: [
4136
- s,
4137
- c && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
4136
+ return /* @__PURE__ */ m("div", { className: `mb-6 ${g}`, children: [
4137
+ l && /* @__PURE__ */ m("label", { className: `block mb-2 text-sm font-medium ${A()}`, children: [
4138
+ l,
4139
+ d && /* @__PURE__ */ n("span", { className: "text-danger ml-1", children: "*" })
4138
4140
  ] }),
4139
- /* @__PURE__ */ y(
4141
+ /* @__PURE__ */ m(
4140
4142
  "div",
4141
4143
  {
4142
- className: p(
4143
- D(),
4144
+ className: c(
4145
+ S(),
4144
4146
  x && "bg-background-light border-2-dashed"
4145
4147
  ),
4146
4148
  onDragEnter: z,
4147
4149
  onDragLeave: z,
4148
4150
  onDragOver: z,
4149
- onDrop: P,
4150
- onClick: G,
4151
- onKeyDown: S,
4151
+ onDrop: E,
4152
+ onClick: W,
4153
+ onKeyDown: D,
4152
4154
  role: "button",
4153
- tabIndex: n ? -1 : 0,
4155
+ tabIndex: a ? -1 : 0,
4154
4156
  children: [
4155
- /* @__PURE__ */ l(
4157
+ /* @__PURE__ */ n(
4156
4158
  "input",
4157
4159
  {
4158
- ref: m,
4160
+ ref: b,
4159
4161
  id: e,
4160
4162
  name: r,
4161
4163
  type: "file",
4162
- onChange: g,
4163
- disabled: n,
4164
- required: c,
4164
+ onChange: h,
4165
+ disabled: a,
4166
+ required: d,
4165
4167
  accept: k,
4166
- multiple: h,
4168
+ multiple: y,
4167
4169
  className: "hidden",
4168
- ...v
4170
+ ...w
4169
4171
  }
4170
4172
  ),
4171
- /* @__PURE__ */ y("div", { className: "flex flex-col items-center justify-center py-4", children: [
4172
- /* @__PURE__ */ l(
4173
+ /* @__PURE__ */ m("div", { className: "flex flex-col items-center justify-center py-4", children: [
4174
+ /* @__PURE__ */ n(
4173
4175
  "svg",
4174
4176
  {
4175
- className: `w-8 h-8 mb-2 ${d === "primary" ? "text-primary" : "text-secondary"}`,
4177
+ className: `w-8 h-8 mb-2 ${u === "primary" ? "text-primary" : "text-secondary"}`,
4176
4178
  fill: "none",
4177
4179
  stroke: "currentColor",
4178
4180
  viewBox: "0 0 24 24",
4179
- children: /* @__PURE__ */ l(
4181
+ children: /* @__PURE__ */ n(
4180
4182
  "path",
4181
4183
  {
4182
4184
  strokeLinecap: "round",
@@ -4187,43 +4189,43 @@ const lt = ({
4187
4189
  )
4188
4190
  }
4189
4191
  ),
4190
- /* @__PURE__ */ l("p", { className: `text-sm ${E()}`, children: o })
4192
+ /* @__PURE__ */ n("p", { className: `text-sm ${A()}`, children: o })
4191
4193
  ] })
4192
4194
  ]
4193
4195
  }
4194
4196
  ),
4195
- /* @__PURE__ */ y("div", { className: "mt-4 space-y-2", children: [
4196
- /* @__PURE__ */ y("p", { className: `text-sm font-medium ${E()}`, children: [
4197
- w.length,
4197
+ /* @__PURE__ */ m("div", { className: "mt-4 space-y-2", children: [
4198
+ /* @__PURE__ */ m("p", { className: `text-sm font-medium ${A()}`, children: [
4199
+ v.length,
4198
4200
  " ",
4199
- a,
4201
+ s,
4200
4202
  "(s) seleccionado(s):"
4201
4203
  ] }),
4202
- /* @__PURE__ */ l("ul", { className: "space-y-1", children: w.map((M, A) => /* @__PURE__ */ y(
4204
+ /* @__PURE__ */ n("ul", { className: "space-y-1", children: v.map((M, P) => /* @__PURE__ */ m(
4203
4205
  "li",
4204
4206
  {
4205
4207
  className: "flex items-center justify-between p-2 bg-light rounded border border-border",
4206
4208
  children: [
4207
- /* @__PURE__ */ y("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
4208
- /* @__PURE__ */ y(
4209
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
4210
+ /* @__PURE__ */ m(
4209
4211
  "svg",
4210
4212
  {
4211
4213
  className: "w-4 h-4 text-text-muted shrink-0",
4212
4214
  fill: "currentColor",
4213
4215
  viewBox: "0 0 20 20",
4214
4216
  children: [
4215
- /* @__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" }),
4216
- /* @__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" })
4217
+ /* @__PURE__ */ n("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" }),
4218
+ /* @__PURE__ */ n("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" })
4217
4219
  ]
4218
4220
  }
4219
4221
  ),
4220
- /* @__PURE__ */ l("span", { className: "text-sm text-text truncate", children: M.name })
4222
+ /* @__PURE__ */ n("span", { className: "text-sm text-text truncate", children: M.name })
4221
4223
  ] }),
4222
- /* @__PURE__ */ l(
4224
+ /* @__PURE__ */ n(
4223
4225
  "button",
4224
4226
  {
4225
- onClick: (V) => {
4226
- V.stopPropagation(), K(A);
4227
+ onClick: (B) => {
4228
+ B.stopPropagation(), Z(P);
4227
4229
  },
4228
4230
  className: "ml-2 text-danger hover:text-danger-dark shrink-0",
4229
4231
  type: "button",
@@ -4232,65 +4234,65 @@ const lt = ({
4232
4234
  )
4233
4235
  ]
4234
4236
  },
4235
- A
4237
+ P
4236
4238
  )) })
4237
4239
  ] }),
4238
- i && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
4240
+ i && /* @__PURE__ */ n("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
4239
4241
  ] });
4240
- }, it = ({
4242
+ }, bt = ({
4241
4243
  text: e,
4242
4244
  className: r = "",
4243
4245
  variant: t = "default",
4244
4246
  visible: o = !0,
4245
- ...a
4247
+ ...s
4246
4248
  }) => {
4247
4249
  if (!o) return null;
4248
- const s = {
4250
+ const l = {
4249
4251
  default: "bg-gray-200 text-gray-800",
4250
4252
  primary: "bg-primary text-white",
4251
4253
  secondary: "bg-secondary text-white",
4252
4254
  secondaryDark: "bg-secondary-dark text-white",
4253
4255
  danger: "bg-danger text-white",
4254
4256
  warning: "bg-warning text-white"
4255
- }, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", n = s[t] || s.default;
4256
- return /* @__PURE__ */ l("div", { className: `${i} ${n} ${r}`, ...a, children: e });
4257
+ }, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", a = l[t] || l.default;
4258
+ return /* @__PURE__ */ n("div", { className: `${i} ${a} ${r}`, ...s, children: e });
4257
4259
  };
4258
- function ct({
4260
+ function gt({
4259
4261
  isOpen: e,
4260
4262
  onClose: r,
4261
4263
  title: t,
4262
4264
  children: o,
4263
- size: a = "md",
4264
- className: s = "",
4265
+ size: s = "md",
4266
+ className: l = "",
4265
4267
  overlayClassName: i = "",
4266
- showCloseButton: n = !0,
4267
- closeOnOverlayClick: c = !0,
4268
- closeOnEscape: d = !0
4268
+ showCloseButton: a = !0,
4269
+ closeOnOverlayClick: d = !0,
4270
+ closeOnEscape: u = !0
4269
4271
  }) {
4270
- if (W(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
4272
+ if (H(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
4271
4273
  document.body.style.overflow = "unset";
4272
- }), [e]), W(() => {
4273
- if (!d || !e)
4274
+ }), [e]), H(() => {
4275
+ if (!u || !e)
4274
4276
  return;
4275
- const v = (m) => {
4276
- m.key === "Escape" && r();
4277
+ const w = (b) => {
4278
+ b.key === "Escape" && r();
4277
4279
  };
4278
- return document.addEventListener("keydown", v), () => {
4279
- document.removeEventListener("keydown", v);
4280
+ return document.addEventListener("keydown", w), () => {
4281
+ document.removeEventListener("keydown", w);
4280
4282
  };
4281
- }, [e, r, d]), !e) return null;
4282
- const b = {
4283
+ }, [e, r, u]), !e) return null;
4284
+ const g = {
4283
4285
  sm: "max-w-sm",
4284
4286
  md: "max-w-md",
4285
4287
  lg: "max-w-lg",
4286
4288
  xl: "max-w-xl",
4287
4289
  "2xl": "max-w-2xl"
4288
4290
  }, k = () => {
4289
- c && r();
4290
- }, h = /* @__PURE__ */ l(
4291
+ d && r();
4292
+ }, y = /* @__PURE__ */ n(
4291
4293
  "div",
4292
4294
  {
4293
- className: p(
4295
+ className: c(
4294
4296
  "fixed inset-0 bg-black/40 flex items-center justify-center z-9999 p-4",
4295
4297
  i
4296
4298
  ),
@@ -4298,18 +4300,18 @@ function ct({
4298
4300
  role: "dialog",
4299
4301
  "aria-modal": "true",
4300
4302
  "aria-labelledby": t ? "modal-title" : void 0,
4301
- children: /* @__PURE__ */ y(
4303
+ children: /* @__PURE__ */ m(
4302
4304
  "div",
4303
4305
  {
4304
- className: p(
4306
+ className: c(
4305
4307
  "relative bg-white rounded-xl shadow-2xl max-h-[90vh] flex flex-col w-full transition-all duration-300",
4306
- b[a],
4307
- s
4308
+ g[s],
4309
+ l
4308
4310
  ),
4309
- onClick: (v) => v.stopPropagation(),
4311
+ onClick: (w) => w.stopPropagation(),
4310
4312
  children: [
4311
- (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: [
4312
- t && /* @__PURE__ */ l(
4313
+ (t || a) && /* @__PURE__ */ m("div", { className: "flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0", children: [
4314
+ t && /* @__PURE__ */ n(
4313
4315
  "h2",
4314
4316
  {
4315
4317
  id: "modal-title",
@@ -4317,59 +4319,59 @@ function ct({
4317
4319
  children: t
4318
4320
  }
4319
4321
  ),
4320
- n && /* @__PURE__ */ l(
4322
+ a && /* @__PURE__ */ n(
4321
4323
  "button",
4322
4324
  {
4323
4325
  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",
4324
4326
  onClick: r,
4325
4327
  "aria-label": "Cerrar modal",
4326
4328
  type: "button",
4327
- children: /* @__PURE__ */ l("span", { className: "text-2xl font-light leading-none", children: "×" })
4329
+ children: /* @__PURE__ */ n("span", { className: "text-2xl font-light leading-none", children: "×" })
4328
4330
  }
4329
4331
  )
4330
4332
  ] }),
4331
- /* @__PURE__ */ l("div", { className: "p-6 overflow-y-auto flex-1", children: o })
4333
+ /* @__PURE__ */ n("div", { className: "p-6 overflow-y-auto flex-1", children: o })
4332
4334
  ]
4333
4335
  }
4334
4336
  )
4335
4337
  }
4336
4338
  );
4337
- return $e(h, document.body);
4339
+ return _e(y, document.body);
4338
4340
  }
4339
- function dt({
4341
+ function ht({
4340
4342
  id: e,
4341
4343
  name: r,
4342
4344
  checked: t = !1,
4343
4345
  onChange: o,
4344
- disabled: a = !1,
4345
- required: s = !1,
4346
+ disabled: s = !1,
4347
+ required: l = !1,
4346
4348
  colorScheme: i = "secondary",
4347
- variant: n = "solid",
4348
- label: c,
4349
- className: d = "",
4350
- ...b
4349
+ variant: a = "solid",
4350
+ label: d,
4351
+ className: u = "",
4352
+ ...g
4351
4353
  }) {
4352
- const k = (h, v) => {
4353
- 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";
4354
- if (h === "outline")
4355
- switch (v) {
4354
+ const k = (y, w) => {
4355
+ const b = "checkbox-input size-4 shrink-0 rounded transition-all duration-300 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50";
4356
+ if (y === "outline")
4357
+ switch (w) {
4356
4358
  case "primary":
4357
- return `${m} checkbox-outline checkbox-primary`;
4359
+ return `${b} checkbox-outline checkbox-primary`;
4358
4360
  case "secondary":
4359
4361
  default:
4360
- return `${m} checkbox-outline checkbox-secondary`;
4362
+ return `${b} checkbox-outline checkbox-secondary`;
4361
4363
  }
4362
4364
  else
4363
- switch (v) {
4365
+ switch (w) {
4364
4366
  case "primary":
4365
- return `${m} checkbox-solid checkbox-primary`;
4367
+ return `${b} checkbox-solid checkbox-primary`;
4366
4368
  case "secondary":
4367
4369
  default:
4368
- return `${m} checkbox-solid checkbox-secondary`;
4370
+ return `${b} checkbox-solid checkbox-secondary`;
4369
4371
  }
4370
4372
  };
4371
- return c ? /* @__PURE__ */ y("div", { className: `flex items-center gap-2 ${d}`, children: [
4372
- /* @__PURE__ */ l(
4373
+ return d ? /* @__PURE__ */ m("div", { className: `flex items-center gap-2 ${u}`, children: [
4374
+ /* @__PURE__ */ n(
4373
4375
  "input",
4374
4376
  {
4375
4377
  id: e,
@@ -4377,24 +4379,24 @@ function dt({
4377
4379
  type: "checkbox",
4378
4380
  checked: t,
4379
4381
  onChange: o,
4380
- disabled: a,
4381
- required: s,
4382
- className: k(n, i),
4383
- ...b
4382
+ disabled: s,
4383
+ required: l,
4384
+ className: k(a, i),
4385
+ ...g
4384
4386
  }
4385
4387
  ),
4386
- /* @__PURE__ */ y(
4388
+ /* @__PURE__ */ m(
4387
4389
  "label",
4388
4390
  {
4389
4391
  htmlFor: e,
4390
4392
  className: "text-sm text-text cursor-pointer font-medium",
4391
4393
  children: [
4392
- c,
4393
- s && /* @__PURE__ */ l("span", { className: "text-red-500 ml-1", children: "*" })
4394
+ d,
4395
+ l && /* @__PURE__ */ n("span", { className: "text-red-500 ml-1", children: "*" })
4394
4396
  ]
4395
4397
  }
4396
4398
  )
4397
- ] }) : /* @__PURE__ */ l(
4399
+ ] }) : /* @__PURE__ */ n(
4398
4400
  "input",
4399
4401
  {
4400
4402
  id: e,
@@ -4402,49 +4404,168 @@ function dt({
4402
4404
  type: "checkbox",
4403
4405
  checked: t,
4404
4406
  onChange: o,
4405
- disabled: a,
4406
- required: s,
4407
- className: `${k(n, i)} ${d}`,
4407
+ disabled: s,
4408
+ required: l,
4409
+ className: `${k(a, i)} ${u}`,
4408
4410
  style: {
4409
4411
  accentColor: "white"
4410
4412
  },
4411
- ...b
4413
+ ...g
4412
4414
  }
4413
4415
  );
4414
4416
  }
4415
- const { Input: ut, InputArea: pt } = De;
4417
+ const Gr = {
4418
+ pulse: "cmp-skeleton-pulse",
4419
+ wave: "cmp-skeleton-wave",
4420
+ none: ""
4421
+ }, I = ({ className: e = "", animation: r = "pulse" }) => {
4422
+ const t = /(^|\s)rounded/.test(e);
4423
+ return /* @__PURE__ */ n(
4424
+ "div",
4425
+ {
4426
+ className: c(
4427
+ "bg-gray-200",
4428
+ Gr[r],
4429
+ !t && "rounded-md",
4430
+ e
4431
+ )
4432
+ }
4433
+ );
4434
+ }, ft = ({
4435
+ count: e = 6,
4436
+ className: r = "",
4437
+ animation: t = "pulse"
4438
+ }) => /* @__PURE__ */ n("div", { className: c("divide-y divide-gray-200", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */ m("div", { className: "flex items-center justify-between py-3", children: [
4439
+ /* @__PURE__ */ m("div", { className: "flex flex-col gap-1.5 min-w-0", children: [
4440
+ /* @__PURE__ */ n(I, { className: "h-4 w-40", animation: t }),
4441
+ /* @__PURE__ */ n(I, { className: "h-3 w-28", animation: t })
4442
+ ] }),
4443
+ /* @__PURE__ */ n(I, { className: "h-4 w-12 shrink-0 ml-3", animation: t })
4444
+ ] }, s)) }), Wr = ({ animation: e }) => /* @__PURE__ */ m("div", { className: "bg-white border border-gray-200 rounded-xl shadow-sm flex items-stretch overflow-hidden", children: [
4445
+ /* @__PURE__ */ n(
4446
+ I,
4447
+ {
4448
+ className: "shrink-0 w-36 h-[120px] rounded-none",
4449
+ animation: e
4450
+ }
4451
+ ),
4452
+ /* @__PURE__ */ m("div", { className: "flex-1 p-4 min-w-0 flex flex-col justify-center gap-2", children: [
4453
+ /* @__PURE__ */ n(I, { className: "h-5 w-1/3", animation: e }),
4454
+ /* @__PURE__ */ m("div", { className: "flex items-center gap-1.5", children: [
4455
+ /* @__PURE__ */ n(I, { className: "h-4 w-16 rounded-full", animation: e }),
4456
+ /* @__PURE__ */ n(I, { className: "h-4 w-20 rounded-full", animation: e }),
4457
+ /* @__PURE__ */ n(I, { className: "h-4 w-24 rounded-full", animation: e })
4458
+ ] }),
4459
+ /* @__PURE__ */ n(I, { className: "h-3 w-2/3", animation: e })
4460
+ ] }),
4461
+ /* @__PURE__ */ m("div", { className: "shrink-0 flex items-center gap-2 px-4 border-l border-gray-100", children: [
4462
+ /* @__PURE__ */ n(I, { className: "h-8 w-8", animation: e }),
4463
+ /* @__PURE__ */ n(I, { className: "h-8 w-8", animation: e }),
4464
+ /* @__PURE__ */ n(I, { className: "h-8 w-8", animation: e })
4465
+ ] })
4466
+ ] }), yt = ({
4467
+ count: e = 6,
4468
+ className: r = "",
4469
+ animation: t = "pulse"
4470
+ }) => /* @__PURE__ */ n("div", { className: c("flex flex-col gap-3", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */ n(Wr, { animation: t }, s)) }), Hr = {
4471
+ 2: "grid-cols-1 sm:grid-cols-2",
4472
+ 3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
4473
+ 4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
4474
+ }, Ur = {
4475
+ video: "aspect-video",
4476
+ square: "aspect-square",
4477
+ "4/3": "aspect-4/3",
4478
+ auto: ""
4479
+ }, Yr = ({
4480
+ aspect: e,
4481
+ animation: r
4482
+ }) => /* @__PURE__ */ m("div", { className: "bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden flex flex-col", children: [
4483
+ /* @__PURE__ */ n(
4484
+ I,
4485
+ {
4486
+ className: c("w-full rounded-none", Ur[e] || "h-40"),
4487
+ animation: r
4488
+ }
4489
+ ),
4490
+ /* @__PURE__ */ m("div", { className: "p-4 flex-1 flex flex-col", children: [
4491
+ /* @__PURE__ */ n(I, { className: "h-5 w-4/5 mb-2", animation: r }),
4492
+ /* @__PURE__ */ n(I, { className: "h-3 w-full mb-1.5", animation: r }),
4493
+ /* @__PURE__ */ n(I, { className: "h-3 w-2/3 mb-3", animation: r }),
4494
+ /* @__PURE__ */ m("div", { className: "mt-auto flex items-center justify-between", children: [
4495
+ /* @__PURE__ */ n(I, { className: "h-3 w-16", animation: r }),
4496
+ /* @__PURE__ */ n(I, { className: "h-8 w-24 rounded-lg", animation: r })
4497
+ ] })
4498
+ ] })
4499
+ ] }), xt = ({
4500
+ count: e = 6,
4501
+ columns: r = 3,
4502
+ aspect: t = "4/3",
4503
+ className: o = "",
4504
+ animation: s = "pulse"
4505
+ }) => /* @__PURE__ */ n("div", { className: c("grid gap-6", Hr[r], o), children: Array.from({ length: e }).map((l, i) => /* @__PURE__ */ n(Yr, { aspect: t, animation: s }, i)) }), wt = ({
4506
+ rows: e = 8,
4507
+ columns: r = 6,
4508
+ className: t = "",
4509
+ animation: o = "pulse"
4510
+ }) => /* @__PURE__ */ m("div", { className: c("w-full", t), children: [
4511
+ /* @__PURE__ */ n("div", { className: "flex gap-4 border-b border-gray-200 pb-3 mb-3", children: Array.from({ length: r }).map((s, l) => /* @__PURE__ */ n(I, { className: "h-4 flex-1", animation: o }, l)) }),
4512
+ Array.from({ length: e }).map((s, l) => /* @__PURE__ */ n(
4513
+ "div",
4514
+ {
4515
+ className: "flex gap-4 py-3 border-b border-gray-100 last:border-0",
4516
+ children: Array.from({ length: r }).map((i, a) => /* @__PURE__ */ n(I, { className: "h-4 flex-1", animation: o }, a))
4517
+ },
4518
+ l
4519
+ ))
4520
+ ] }), vt = ({
4521
+ count: e = 3,
4522
+ className: r = "",
4523
+ animation: t = "pulse"
4524
+ }) => /* @__PURE__ */ n("div", { className: c("space-y-4", r), children: Array.from({ length: e }).map((o, s) => /* @__PURE__ */ m("div", { children: [
4525
+ /* @__PURE__ */ m("div", { className: "flex justify-between mb-1", children: [
4526
+ /* @__PURE__ */ n(I, { className: "h-3 w-32", animation: t }),
4527
+ /* @__PURE__ */ n(I, { className: "h-3 w-10", animation: t })
4528
+ ] }),
4529
+ /* @__PURE__ */ n(I, { className: "h-2 w-full rounded-full", animation: t })
4530
+ ] }, s)) }), { Input: kt, InputArea: Nt } = De;
4416
4531
  export {
4417
- it as Badge,
4418
- q as Button,
4419
- nt as Calendar,
4420
- dt as Checkbox,
4421
- st as Dropdown,
4422
- Tr as EN_DEFAULT_DAY_NAMES,
4532
+ bt as Badge,
4533
+ ee as Button,
4534
+ dt as Calendar,
4535
+ ht as Checkbox,
4536
+ pt as Dropdown,
4537
+ $r as EN_DEFAULT_DAY_NAMES,
4423
4538
  Rr as EN_DEFAULT_MONTH_NAMES,
4424
- $r as ES_DEFAULT_DAY_NAMES,
4539
+ _r as ES_DEFAULT_DAY_NAMES,
4425
4540
  Fr as ES_DEFAULT_MONTH_NAMES,
4426
- rt as ExpandableCard,
4427
- lt as FileDropZone,
4428
- ut as Input,
4429
- pt as InputArea,
4430
- kr as Loader,
4431
- Zr as Login,
4432
- ct as Modal,
4433
- et as Pagination,
4434
- qr as SearchInput,
4435
- tt as TabPanel,
4436
- at as Table,
4437
- ot as Tabs,
4438
- Jr as ThemeProvider,
4439
- Kr as Toggle,
4440
- p as cn,
4441
- O as defaultTheme,
4442
- le as generateColorVariants,
4443
- hr as hexToHsl,
4444
- be as hslToHex,
4541
+ lt as ExpandableCard,
4542
+ mt as FileDropZone,
4543
+ kt as Input,
4544
+ Nt as InputArea,
4545
+ Nr as Loader,
4546
+ tt as Login,
4547
+ gt as Modal,
4548
+ at as Pagination,
4549
+ st as SearchInput,
4550
+ I as Skeleton,
4551
+ vt as SkeletonBars,
4552
+ yt as SkeletonCardList,
4553
+ xt as SkeletonGrid,
4554
+ ft as SkeletonList,
4555
+ wt as SkeletonTable,
4556
+ it as TabPanel,
4557
+ ut as Table,
4558
+ ct as Tabs,
4559
+ et as ThemeProvider,
4560
+ rt as Toggle,
4561
+ c as cn,
4562
+ T as defaultTheme,
4563
+ ie as generateColorVariants,
4564
+ yr as hexToHsl,
4565
+ ge as hslToHex,
4445
4566
  Pr as useDebounce,
4446
- Qr as useIsMobile,
4447
- Yr as useTheme,
4448
- Xr as useToast
4567
+ nt as useIsMobile,
4568
+ Qr as useTheme,
4569
+ ot as useToast
4449
4570
  };
4450
4571
  //# sourceMappingURL=index.js.map