@neuctra/ui 0.2.6 → 0.2.7

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.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import _e, { forwardRef as de, createElement as he, createContext as Fe, useState as D, useCallback as me, useContext as Be, memo as ze, useRef as K, useEffect as X, useMemo as ce, useImperativeHandle as Se } from "react";
2
- var ue = { exports: {} }, oe = {};
1
+ import Re, { forwardRef as ie, createElement as pe, createContext as Oe, useState as L, useCallback as he, useContext as Fe, memo as _e, useRef as K, useEffect as X, useMemo as de, useImperativeHandle as ze } from "react";
2
+ var ce = { exports: {} }, oe = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.js
@@ -10,11 +10,11 @@ var ue = { exports: {} }, oe = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var je;
13
- function Ye() {
13
+ function Be() {
14
14
  if (je) return oe;
15
15
  je = 1;
16
- var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
17
- function s(r, o, l) {
16
+ var n = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
17
+ function s(t, o, l) {
18
18
  var i = null;
19
19
  if (l !== void 0 && (i = "" + l), o.key !== void 0 && (i = "" + o.key), "key" in o) {
20
20
  l = {};
@@ -23,13 +23,13 @@ function Ye() {
23
23
  } else l = o;
24
24
  return o = l.ref, {
25
25
  $$typeof: n,
26
- type: r,
26
+ type: t,
27
27
  key: i,
28
28
  ref: o !== void 0 ? o : null,
29
29
  props: l
30
30
  };
31
31
  }
32
- return oe.Fragment = t, oe.jsx = s, oe.jsxs = s, oe;
32
+ return oe.Fragment = r, oe.jsx = s, oe.jsxs = s, oe;
33
33
  }
34
34
  var le = {};
35
35
  /**
@@ -41,126 +41,126 @@ var le = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var ke;
45
- function Ve() {
46
- return ke || (ke = 1, process.env.NODE_ENV !== "production" && (function() {
44
+ var we;
45
+ function Ye() {
46
+ return we || (we = 1, process.env.NODE_ENV !== "production" && (function() {
47
47
  function n(a) {
48
48
  if (a == null) return null;
49
49
  if (typeof a == "function")
50
- return a.$$typeof === F ? null : a.displayName || a.name || null;
50
+ return a.$$typeof === q ? null : a.displayName || a.name || null;
51
51
  if (typeof a == "string") return a;
52
52
  switch (a) {
53
- case E:
53
+ case M:
54
54
  return "Fragment";
55
- case z:
55
+ case E:
56
56
  return "Profiler";
57
- case w:
57
+ case k:
58
58
  return "StrictMode";
59
- case g:
59
+ case m:
60
60
  return "Suspense";
61
61
  case p:
62
62
  return "SuspenseList";
63
- case L:
63
+ case O:
64
64
  return "Activity";
65
65
  }
66
66
  if (typeof a == "object")
67
67
  switch (typeof a.tag == "number" && console.error(
68
68
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
69
  ), a.$$typeof) {
70
- case h:
70
+ case w:
71
71
  return "Portal";
72
72
  case R:
73
73
  return a.displayName || "Context";
74
74
  case A:
75
75
  return (a._context.displayName || "Context") + ".Consumer";
76
- case v:
77
- var y = a.render;
78
- return a = a.displayName, a || (a = y.displayName || y.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a;
76
+ case y:
77
+ var b = a.render;
78
+ return a = a.displayName, a || (a = b.displayName || b.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a;
79
79
  case x:
80
- return y = a.displayName || null, y !== null ? y : n(a.type) || "Memo";
81
- case C:
82
- y = a._payload, a = a._init;
80
+ return b = a.displayName || null, b !== null ? b : n(a.type) || "Memo";
81
+ case P:
82
+ b = a._payload, a = a._init;
83
83
  try {
84
- return n(a(y));
84
+ return n(a(b));
85
85
  } catch {
86
86
  }
87
87
  }
88
88
  return null;
89
89
  }
90
- function t(a) {
90
+ function r(a) {
91
91
  return "" + a;
92
92
  }
93
93
  function s(a) {
94
94
  try {
95
- t(a);
96
- var y = !1;
95
+ r(a);
96
+ var b = !1;
97
97
  } catch {
98
- y = !0;
98
+ b = !0;
99
99
  }
100
- if (y) {
101
- y = console;
102
- var j = y.error, I = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
103
- return j.call(
104
- y,
100
+ if (b) {
101
+ b = console;
102
+ var v = b.error, I = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
103
+ return v.call(
104
+ b,
105
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
106
  I
107
- ), t(a);
107
+ ), r(a);
108
108
  }
109
109
  }
110
- function r(a) {
111
- if (a === E) return "<>";
112
- if (typeof a == "object" && a !== null && a.$$typeof === C)
110
+ function t(a) {
111
+ if (a === M) return "<>";
112
+ if (typeof a == "object" && a !== null && a.$$typeof === P)
113
113
  return "<...>";
114
114
  try {
115
- var y = n(a);
116
- return y ? "<" + y + ">" : "<...>";
115
+ var b = n(a);
116
+ return b ? "<" + b + ">" : "<...>";
117
117
  } catch {
118
118
  return "<...>";
119
119
  }
120
120
  }
121
121
  function o() {
122
- var a = V.A;
122
+ var a = Y.A;
123
123
  return a === null ? null : a.getOwner();
124
124
  }
125
125
  function l() {
126
126
  return Error("react-stack-top-frame");
127
127
  }
128
128
  function i(a) {
129
- if (H.call(a, "key")) {
130
- var y = Object.getOwnPropertyDescriptor(a, "key").get;
131
- if (y && y.isReactWarning) return !1;
129
+ if (W.call(a, "key")) {
130
+ var b = Object.getOwnPropertyDescriptor(a, "key").get;
131
+ if (b && b.isReactWarning) return !1;
132
132
  }
133
133
  return a.key !== void 0;
134
134
  }
135
- function d(a, y) {
136
- function j() {
137
- f || (f = !0, console.error(
135
+ function d(a, b) {
136
+ function v() {
137
+ u || (u = !0, console.error(
138
138
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
139
- y
139
+ b
140
140
  ));
141
141
  }
142
- j.isReactWarning = !0, Object.defineProperty(a, "key", {
143
- get: j,
142
+ v.isReactWarning = !0, Object.defineProperty(a, "key", {
143
+ get: v,
144
144
  configurable: !0
145
145
  });
146
146
  }
147
- function $() {
147
+ function j() {
148
148
  var a = n(this.type);
149
- return M[a] || (M[a] = !0, console.error(
149
+ return S[a] || (S[a] = !0, console.error(
150
150
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
151
  )), a = this.props.ref, a !== void 0 ? a : null;
152
152
  }
153
- function m(a, y, j, I, q, te) {
154
- var Y = j.ref;
153
+ function h(a, b, v, I, H, te) {
154
+ var B = v.ref;
155
155
  return a = {
156
- $$typeof: T,
156
+ $$typeof: z,
157
157
  type: a,
158
- key: y,
159
- props: j,
158
+ key: b,
159
+ props: v,
160
160
  _owner: I
161
- }, (Y !== void 0 ? Y : null) !== null ? Object.defineProperty(a, "ref", {
161
+ }, (B !== void 0 ? B : null) !== null ? Object.defineProperty(a, "ref", {
162
162
  enumerable: !1,
163
- get: $
163
+ get: j
164
164
  }) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
@@ -175,7 +175,7 @@ function Ve() {
175
175
  configurable: !1,
176
176
  enumerable: !1,
177
177
  writable: !0,
178
- value: q
178
+ value: H
179
179
  }), Object.defineProperty(a, "_debugTask", {
180
180
  configurable: !1,
181
181
  enumerable: !1,
@@ -183,25 +183,25 @@ function Ve() {
183
183
  value: te
184
184
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
185
185
  }
186
- function b(a, y, j, I, q, te) {
187
- var Y = y.children;
188
- if (Y !== void 0)
186
+ function g(a, b, v, I, H, te) {
187
+ var B = b.children;
188
+ if (B !== void 0)
189
189
  if (I)
190
- if (B(Y)) {
191
- for (I = 0; I < Y.length; I++)
192
- c(Y[I]);
193
- Object.freeze && Object.freeze(Y);
190
+ if (F(B)) {
191
+ for (I = 0; I < B.length; I++)
192
+ c(B[I]);
193
+ Object.freeze && Object.freeze(B);
194
194
  } else
195
195
  console.error(
196
196
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
197
  );
198
- else c(Y);
199
- if (H.call(y, "key")) {
200
- Y = n(a);
201
- var Q = Object.keys(y).filter(function(S) {
202
- return S !== "key";
198
+ else c(B);
199
+ if (W.call(b, "key")) {
200
+ B = n(a);
201
+ var Q = Object.keys(b).filter(function(_) {
202
+ return _ !== "key";
203
203
  });
204
- I = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", Z[Y + I] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ I = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", Z[B + I] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
205
205
  `A props object containing a "key" prop is being spread into JSX:
206
206
  let props = %s;
207
207
  <%s {...props} />
@@ -209,89 +209,89 @@ React keys must be passed directly to JSX without using spread:
209
209
  let props = %s;
210
210
  <%s key={someKey} {...props} />`,
211
211
  I,
212
- Y,
212
+ B,
213
213
  Q,
214
- Y
215
- ), Z[Y + I] = !0);
214
+ B
215
+ ), Z[B + I] = !0);
216
216
  }
217
- if (Y = null, j !== void 0 && (s(j), Y = "" + j), i(y) && (s(y.key), Y = "" + y.key), "key" in y) {
218
- j = {};
219
- for (var J in y)
220
- J !== "key" && (j[J] = y[J]);
221
- } else j = y;
222
- return Y && d(
223
- j,
217
+ if (B = null, v !== void 0 && (s(v), B = "" + v), i(b) && (s(b.key), B = "" + b.key), "key" in b) {
218
+ v = {};
219
+ for (var J in b)
220
+ J !== "key" && (v[J] = b[J]);
221
+ } else v = b;
222
+ return B && d(
223
+ v,
224
224
  typeof a == "function" ? a.displayName || a.name || "Unknown" : a
225
- ), m(
225
+ ), h(
226
226
  a,
227
- Y,
228
- j,
227
+ B,
228
+ v,
229
229
  o(),
230
- q,
230
+ H,
231
231
  te
232
232
  );
233
233
  }
234
234
  function c(a) {
235
- u(a) ? a._store && (a._store.validated = 1) : typeof a == "object" && a !== null && a.$$typeof === C && (a._payload.status === "fulfilled" ? u(a._payload.value) && a._payload.value._store && (a._payload.value._store.validated = 1) : a._store && (a._store.validated = 1));
235
+ f(a) ? a._store && (a._store.validated = 1) : typeof a == "object" && a !== null && a.$$typeof === P && (a._payload.status === "fulfilled" ? f(a._payload.value) && a._payload.value._store && (a._payload.value._store.validated = 1) : a._store && (a._store.validated = 1));
236
236
  }
237
- function u(a) {
238
- return typeof a == "object" && a !== null && a.$$typeof === T;
237
+ function f(a) {
238
+ return typeof a == "object" && a !== null && a.$$typeof === z;
239
239
  }
240
- var k = _e, T = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), R = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), V = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, B = Array.isArray, N = console.createTask ? console.createTask : function() {
240
+ var N = Re, z = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), M = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), R = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), Y = N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, F = Array.isArray, $ = console.createTask ? console.createTask : function() {
241
241
  return null;
242
242
  };
243
- k = {
243
+ N = {
244
244
  react_stack_bottom_frame: function(a) {
245
245
  return a();
246
246
  }
247
247
  };
248
- var f, M = {}, U = k.react_stack_bottom_frame.bind(
249
- k,
248
+ var u, S = {}, V = N.react_stack_bottom_frame.bind(
249
+ N,
250
250
  l
251
- )(), G = N(r(l)), Z = {};
252
- le.Fragment = E, le.jsx = function(a, y, j) {
253
- var I = 1e4 > V.recentlyCreatedOwnerStacks++;
254
- return b(
251
+ )(), G = $(t(l)), Z = {};
252
+ le.Fragment = M, le.jsx = function(a, b, v) {
253
+ var I = 1e4 > Y.recentlyCreatedOwnerStacks++;
254
+ return g(
255
255
  a,
256
- y,
257
- j,
256
+ b,
257
+ v,
258
258
  !1,
259
- I ? Error("react-stack-top-frame") : U,
260
- I ? N(r(a)) : G
259
+ I ? Error("react-stack-top-frame") : V,
260
+ I ? $(t(a)) : G
261
261
  );
262
- }, le.jsxs = function(a, y, j) {
263
- var I = 1e4 > V.recentlyCreatedOwnerStacks++;
264
- return b(
262
+ }, le.jsxs = function(a, b, v) {
263
+ var I = 1e4 > Y.recentlyCreatedOwnerStacks++;
264
+ return g(
265
265
  a,
266
- y,
267
- j,
266
+ b,
267
+ v,
268
268
  !0,
269
- I ? Error("react-stack-top-frame") : U,
270
- I ? N(r(a)) : G
269
+ I ? Error("react-stack-top-frame") : V,
270
+ I ? $(t(a)) : G
271
271
  );
272
272
  };
273
273
  })()), le;
274
274
  }
275
- var $e;
276
- function Ue() {
277
- return $e || ($e = 1, process.env.NODE_ENV === "production" ? ue.exports = Ye() : ue.exports = Ve()), ue.exports;
275
+ var ke;
276
+ function Ve() {
277
+ return ke || (ke = 1, process.env.NODE_ENV === "production" ? ce.exports = Be() : ce.exports = Ye()), ce.exports;
278
278
  }
279
- var e = Ue();
279
+ var e = Ve();
280
280
  /**
281
281
  * @license lucide-react v0.536.0 - ISC
282
282
  *
283
283
  * This source code is licensed under the ISC license.
284
284
  * See the LICENSE file in the root directory of this source tree.
285
285
  */
286
- const We = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), He = (n) => n.replace(
286
+ const Ue = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), We = (n) => n.replace(
287
287
  /^([A-Z])|[\s-_]+(\w)/g,
288
- (t, s, r) => r ? r.toUpperCase() : s.toLowerCase()
289
- ), Ne = (n) => {
290
- const t = He(n);
291
- return t.charAt(0).toUpperCase() + t.slice(1);
292
- }, Ee = (...n) => n.filter((t, s, r) => !!t && t.trim() !== "" && r.indexOf(t) === s).join(" ").trim(), qe = (n) => {
293
- for (const t in n)
294
- if (t.startsWith("aria-") || t === "role" || t === "title")
288
+ (r, s, t) => t ? t.toUpperCase() : s.toLowerCase()
289
+ ), $e = (n) => {
290
+ const r = We(n);
291
+ return r.charAt(0).toUpperCase() + r.slice(1);
292
+ }, Ee = (...n) => n.filter((r, s, t) => !!r && r.trim() !== "" && t.indexOf(r) === s).join(" ").trim(), qe = (n) => {
293
+ for (const r in n)
294
+ if (r.startsWith("aria-") || r === "role" || r === "title")
295
295
  return !0;
296
296
  };
297
297
  /**
@@ -300,7 +300,7 @@ const We = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), He = (
300
300
  * This source code is licensed under the ISC license.
301
301
  * See the LICENSE file in the root directory of this source tree.
302
302
  */
303
- var Ge = {
303
+ var He = {
304
304
  xmlns: "http://www.w3.org/2000/svg",
305
305
  width: 24,
306
306
  height: 24,
@@ -317,31 +317,31 @@ var Ge = {
317
317
  * This source code is licensed under the ISC license.
318
318
  * See the LICENSE file in the root directory of this source tree.
319
319
  */
320
- const Xe = de(
320
+ const Ge = ie(
321
321
  ({
322
322
  color: n = "currentColor",
323
- size: t = 24,
323
+ size: r = 24,
324
324
  strokeWidth: s = 2,
325
- absoluteStrokeWidth: r,
325
+ absoluteStrokeWidth: t,
326
326
  className: o = "",
327
327
  children: l,
328
328
  iconNode: i,
329
329
  ...d
330
- }, $) => he(
330
+ }, j) => pe(
331
331
  "svg",
332
332
  {
333
- ref: $,
334
- ...Ge,
335
- width: t,
336
- height: t,
333
+ ref: j,
334
+ ...He,
335
+ width: r,
336
+ height: r,
337
337
  stroke: n,
338
- strokeWidth: r ? Number(s) * 24 / Number(t) : s,
338
+ strokeWidth: t ? Number(s) * 24 / Number(r) : s,
339
339
  className: Ee("lucide", o),
340
340
  ...!l && !qe(d) && { "aria-hidden": "true" },
341
341
  ...d
342
342
  },
343
343
  [
344
- ...i.map(([m, b]) => he(m, b)),
344
+ ...i.map(([h, g]) => pe(h, g)),
345
345
  ...Array.isArray(l) ? l : [l]
346
346
  ]
347
347
  )
@@ -352,20 +352,20 @@ const Xe = de(
352
352
  * This source code is licensed under the ISC license.
353
353
  * See the LICENSE file in the root directory of this source tree.
354
354
  */
355
- const W = (n, t) => {
356
- const s = de(
357
- ({ className: r, ...o }, l) => he(Xe, {
355
+ const U = (n, r) => {
356
+ const s = ie(
357
+ ({ className: t, ...o }, l) => pe(Ge, {
358
358
  ref: l,
359
- iconNode: t,
359
+ iconNode: r,
360
360
  className: Ee(
361
- `lucide-${We(Ne(n))}`,
361
+ `lucide-${Ue($e(n))}`,
362
362
  `lucide-${n}`,
363
- r
363
+ t
364
364
  ),
365
365
  ...o
366
366
  })
367
367
  );
368
- return s.displayName = Ne(n), s;
368
+ return s.displayName = $e(n), s;
369
369
  };
370
370
  /**
371
371
  * @license lucide-react v0.536.0 - ISC
@@ -373,42 +373,42 @@ const W = (n, t) => {
373
373
  * This source code is licensed under the ISC license.
374
374
  * See the LICENSE file in the root directory of this source tree.
375
375
  */
376
- const Je = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Me = W("chevron-down", Je);
376
+ const Xe = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Se = U("chevron-down", Xe);
377
377
  /**
378
378
  * @license lucide-react v0.536.0 - ISC
379
379
  *
380
380
  * This source code is licensed under the ISC license.
381
381
  * See the LICENSE file in the root directory of this source tree.
382
382
  */
383
- const Ke = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ze = W("chevron-up", Ke);
383
+ const Je = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ke = U("chevron-up", Je);
384
384
  /**
385
385
  * @license lucide-react v0.536.0 - ISC
386
386
  *
387
387
  * This source code is licensed under the ISC license.
388
388
  * See the LICENSE file in the root directory of this source tree.
389
389
  */
390
- const Qe = [
390
+ const Ze = [
391
391
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
392
392
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
393
393
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
394
- ], et = W("circle-alert", Qe);
394
+ ], Qe = U("circle-alert", Ze);
395
395
  /**
396
396
  * @license lucide-react v0.536.0 - ISC
397
397
  *
398
398
  * This source code is licensed under the ISC license.
399
399
  * See the LICENSE file in the root directory of this source tree.
400
400
  */
401
- const tt = [
401
+ const et = [
402
402
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
403
403
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
404
- ], rt = W("circle-check-big", tt);
404
+ ], tt = U("circle-check-big", et);
405
405
  /**
406
406
  * @license lucide-react v0.536.0 - ISC
407
407
  *
408
408
  * This source code is licensed under the ISC license.
409
409
  * See the LICENSE file in the root directory of this source tree.
410
410
  */
411
- const nt = [
411
+ const rt = [
412
412
  [
413
413
  "path",
414
414
  {
@@ -425,14 +425,14 @@ const nt = [
425
425
  }
426
426
  ],
427
427
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
428
- ], st = W("eye-off", nt);
428
+ ], nt = U("eye-off", rt);
429
429
  /**
430
430
  * @license lucide-react v0.536.0 - ISC
431
431
  *
432
432
  * This source code is licensed under the ISC license.
433
433
  * See the LICENSE file in the root directory of this source tree.
434
434
  */
435
- const at = [
435
+ const st = [
436
436
  [
437
437
  "path",
438
438
  {
@@ -441,14 +441,14 @@ const at = [
441
441
  }
442
442
  ],
443
443
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
444
- ], ot = W("eye", at);
444
+ ], at = U("eye", st);
445
445
  /**
446
446
  * @license lucide-react v0.536.0 - ISC
447
447
  *
448
448
  * This source code is licensed under the ISC license.
449
449
  * See the LICENSE file in the root directory of this source tree.
450
450
  */
451
- const lt = [
451
+ const ot = [
452
452
  [
453
453
  "path",
454
454
  {
@@ -456,70 +456,70 @@ const lt = [
456
456
  key: "mvr1a0"
457
457
  }
458
458
  ]
459
- ], it = W("heart", lt);
459
+ ], lt = U("heart", ot);
460
460
  /**
461
461
  * @license lucide-react v0.536.0 - ISC
462
462
  *
463
463
  * This source code is licensed under the ISC license.
464
464
  * See the LICENSE file in the root directory of this source tree.
465
465
  */
466
- const ct = [
466
+ const it = [
467
467
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
468
468
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
469
469
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
470
- ], dt = W("info", ct);
470
+ ], ct = U("info", it);
471
471
  /**
472
472
  * @license lucide-react v0.536.0 - ISC
473
473
  *
474
474
  * This source code is licensed under the ISC license.
475
475
  * See the LICENSE file in the root directory of this source tree.
476
476
  */
477
- const ut = [
477
+ const dt = [
478
478
  ["path", { d: "M8 3H5a2 2 0 0 0-2 2v3", key: "1dcmit" }],
479
479
  ["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3", key: "1e4gt3" }],
480
480
  ["path", { d: "M3 16v3a2 2 0 0 0 2 2h3", key: "wsl5sc" }],
481
481
  ["path", { d: "M16 21h3a2 2 0 0 0 2-2v-3", key: "18trek" }]
482
- ], ft = W("maximize", ut);
482
+ ], ut = U("maximize", dt);
483
483
  /**
484
484
  * @license lucide-react v0.536.0 - ISC
485
485
  *
486
486
  * This source code is licensed under the ISC license.
487
487
  * See the LICENSE file in the root directory of this source tree.
488
488
  */
489
- const xt = [
489
+ const ft = [
490
490
  ["path", { d: "M8 3v3a2 2 0 0 1-2 2H3", key: "hohbtr" }],
491
491
  ["path", { d: "M21 8h-3a2 2 0 0 1-2-2V3", key: "5jw1f3" }],
492
492
  ["path", { d: "M3 16h3a2 2 0 0 1 2 2v3", key: "198tvr" }],
493
493
  ["path", { d: "M16 21v-3a2 2 0 0 1 2-2h3", key: "ph8mxp" }]
494
- ], pt = W("minimize", xt);
494
+ ], xt = U("minimize", ft);
495
495
  /**
496
496
  * @license lucide-react v0.536.0 - ISC
497
497
  *
498
498
  * This source code is licensed under the ISC license.
499
499
  * See the LICENSE file in the root directory of this source tree.
500
500
  */
501
- const ht = [
501
+ const pt = [
502
502
  ["path", { d: "M9 18V5l12-2v13", key: "1jmyc2" }],
503
503
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
504
504
  ["circle", { cx: "18", cy: "16", r: "3", key: "1hluhg" }]
505
- ], Te = W("music", ht);
505
+ ], Ne = U("music", pt);
506
506
  /**
507
507
  * @license lucide-react v0.536.0 - ISC
508
508
  *
509
509
  * This source code is licensed under the ISC license.
510
510
  * See the LICENSE file in the root directory of this source tree.
511
511
  */
512
- const mt = [
512
+ const ht = [
513
513
  ["rect", { x: "14", y: "3", width: "5", height: "18", rx: "1", key: "kaeet6" }],
514
514
  ["rect", { x: "5", y: "3", width: "5", height: "18", rx: "1", key: "1wsw3u" }]
515
- ], ge = W("pause", mt);
515
+ ], me = U("pause", ht);
516
516
  /**
517
517
  * @license lucide-react v0.536.0 - ISC
518
518
  *
519
519
  * This source code is licensed under the ISC license.
520
520
  * See the LICENSE file in the root directory of this source tree.
521
521
  */
522
- const gt = [
522
+ const mt = [
523
523
  [
524
524
  "path",
525
525
  {
@@ -527,7 +527,7 @@ const gt = [
527
527
  key: "10ikf1"
528
528
  }
529
529
  ]
530
- ], be = W("play", gt);
530
+ ], be = U("play", mt);
531
531
  /**
532
532
  * @license lucide-react v0.536.0 - ISC
533
533
  *
@@ -537,27 +537,27 @@ const gt = [
537
537
  const bt = [
538
538
  ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
539
539
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }]
540
- ], Ae = W("rotate-ccw", bt);
540
+ ], Me = U("rotate-ccw", bt);
541
541
  /**
542
542
  * @license lucide-react v0.536.0 - ISC
543
543
  *
544
544
  * This source code is licensed under the ISC license.
545
545
  * See the LICENSE file in the root directory of this source tree.
546
546
  */
547
- const yt = [
547
+ const gt = [
548
548
  ["path", { d: "m18 14 4 4-4 4", key: "10pe0f" }],
549
549
  ["path", { d: "m18 2 4 4-4 4", key: "pucp1d" }],
550
550
  ["path", { d: "M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22", key: "1ailkh" }],
551
551
  ["path", { d: "M2 6h1.972a4 4 0 0 1 3.6 2.2", key: "km57vx" }],
552
552
  ["path", { d: "M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45", key: "os18l9" }]
553
- ], vt = W("shuffle", yt);
553
+ ], yt = U("shuffle", gt);
554
554
  /**
555
555
  * @license lucide-react v0.536.0 - ISC
556
556
  *
557
557
  * This source code is licensed under the ISC license.
558
558
  * See the LICENSE file in the root directory of this source tree.
559
559
  */
560
- const wt = [
560
+ const vt = [
561
561
  [
562
562
  "path",
563
563
  {
@@ -566,7 +566,7 @@ const wt = [
566
566
  }
567
567
  ],
568
568
  ["path", { d: "M3 20V4", key: "1ptbpl" }]
569
- ], ye = W("skip-back", wt);
569
+ ], ge = U("skip-back", vt);
570
570
  /**
571
571
  * @license lucide-react v0.536.0 - ISC
572
572
  *
@@ -582,14 +582,14 @@ const jt = [
582
582
  key: "zs4d6"
583
583
  }
584
584
  ]
585
- ], ve = W("skip-forward", jt);
585
+ ], ye = U("skip-forward", jt);
586
586
  /**
587
587
  * @license lucide-react v0.536.0 - ISC
588
588
  *
589
589
  * This source code is licensed under the ISC license.
590
590
  * See the LICENSE file in the root directory of this source tree.
591
591
  */
592
- const kt = [
592
+ const wt = [
593
593
  [
594
594
  "path",
595
595
  {
@@ -599,24 +599,24 @@ const kt = [
599
599
  ],
600
600
  ["path", { d: "M12 9v4", key: "juzpu7" }],
601
601
  ["path", { d: "M12 17h.01", key: "p32p05" }]
602
- ], $t = W("triangle-alert", kt);
602
+ ], kt = U("triangle-alert", wt);
603
603
  /**
604
604
  * @license lucide-react v0.536.0 - ISC
605
605
  *
606
606
  * This source code is licensed under the ISC license.
607
607
  * See the LICENSE file in the root directory of this source tree.
608
608
  */
609
- const Nt = [
609
+ const $t = [
610
610
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
611
611
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
612
- ], Tt = W("user", Nt);
612
+ ], Nt = U("user", $t);
613
613
  /**
614
614
  * @license lucide-react v0.536.0 - ISC
615
615
  *
616
616
  * This source code is licensed under the ISC license.
617
617
  * See the LICENSE file in the root directory of this source tree.
618
618
  */
619
- const Rt = [
619
+ const Tt = [
620
620
  [
621
621
  "path",
622
622
  {
@@ -626,14 +626,14 @@ const Rt = [
626
626
  ],
627
627
  ["path", { d: "M16 9a5 5 0 0 1 0 6", key: "1q6k2b" }],
628
628
  ["path", { d: "M19.364 18.364a9 9 0 0 0 0-12.728", key: "ijwkga" }]
629
- ], Ie = W("volume-2", Rt);
629
+ ], Ae = U("volume-2", Tt);
630
630
  /**
631
631
  * @license lucide-react v0.536.0 - ISC
632
632
  *
633
633
  * This source code is licensed under the ISC license.
634
634
  * See the LICENSE file in the root directory of this source tree.
635
635
  */
636
- const _t = [
636
+ const Rt = [
637
637
  [
638
638
  "path",
639
639
  {
@@ -643,38 +643,38 @@ const _t = [
643
643
  ],
644
644
  ["line", { x1: "22", x2: "16", y1: "9", y2: "15", key: "1ewh16" }],
645
645
  ["line", { x1: "16", x2: "22", y1: "9", y2: "15", key: "5ykzw1" }]
646
- ], Ce = W("volume-x", _t);
646
+ ], Ie = U("volume-x", Rt);
647
647
  /**
648
648
  * @license lucide-react v0.536.0 - ISC
649
649
  *
650
650
  * This source code is licensed under the ISC license.
651
651
  * See the LICENSE file in the root directory of this source tree.
652
652
  */
653
- const zt = [
653
+ const _t = [
654
654
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
655
655
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
656
- ], we = W("x", zt), Le = Fe(void 0), Wt = () => {
657
- const n = Be(Le);
656
+ ], ve = U("x", _t), Ce = Oe(void 0), Ut = () => {
657
+ const n = Fe(Ce);
658
658
  if (!n) throw new Error("useToast must be used within ToastProvider");
659
659
  return n;
660
- }, Ht = ({ children: n }) => {
661
- const [t, s] = D([]), r = me((l) => {
660
+ }, Wt = ({ children: n }) => {
661
+ const [r, s] = L([]), t = he((l) => {
662
662
  s((i) => i.filter((d) => d.id !== l));
663
- }, []), o = me((l) => {
663
+ }, []), o = he((l) => {
664
664
  const i = Date.now() + Math.random();
665
- s((d) => [...d, { ...l, id: i }]), l.duration !== 0 && setTimeout(() => r(i), l.duration ?? 4e3);
666
- }, [r]);
667
- return /* @__PURE__ */ e.jsxs(Le.Provider, { value: { addToast: o }, children: [
665
+ s((d) => [...d, { ...l, id: i }]), l.duration !== 0 && setTimeout(() => t(i), l.duration ?? 4e3);
666
+ }, [t]);
667
+ return /* @__PURE__ */ e.jsxs(Ce.Provider, { value: { addToast: o }, children: [
668
668
  n,
669
- /* @__PURE__ */ e.jsx("div", { className: "fixed top-5 right-5 flex flex-col gap-3 z-50", children: t.map((l) => /* @__PURE__ */ e.jsx(Et, { toast: l, onClose: () => r(l.id) }, l.id)) })
669
+ /* @__PURE__ */ e.jsx("div", { className: "fixed top-5 right-5 flex flex-col gap-3 z-50", children: r.map((l) => /* @__PURE__ */ e.jsx(Et, { toast: l, onClose: () => t(l.id) }, l.id)) })
670
670
  ] });
671
- }, St = {
672
- success: { bg: "bg-green-50", border: "border-green-400", icon: /* @__PURE__ */ e.jsx(rt, { size: 20, className: "text-green-600" }) },
673
- error: { bg: "bg-red-50", border: "border-red-400", icon: /* @__PURE__ */ e.jsx(et, { size: 20, className: "text-red-600" }) },
674
- warning: { bg: "bg-yellow-50", border: "border-yellow-400", icon: /* @__PURE__ */ e.jsx($t, { size: 20, className: "text-yellow-600" }) },
675
- info: { bg: "bg-blue-50", border: "border-blue-400", icon: /* @__PURE__ */ e.jsx(dt, { size: 20, className: "text-blue-600" }) }
676
- }, Et = ({ toast: n, onClose: t }) => {
677
- const { title: s, description: r, type: o = "info" } = n, { bg: l, border: i, icon: d } = St[o];
671
+ }, zt = {
672
+ success: { bg: "bg-green-50", border: "border-green-400", icon: /* @__PURE__ */ e.jsx(tt, { size: 20, className: "text-green-600" }) },
673
+ error: { bg: "bg-red-50", border: "border-red-400", icon: /* @__PURE__ */ e.jsx(Qe, { size: 20, className: "text-red-600" }) },
674
+ warning: { bg: "bg-yellow-50", border: "border-yellow-400", icon: /* @__PURE__ */ e.jsx(kt, { size: 20, className: "text-yellow-600" }) },
675
+ info: { bg: "bg-blue-50", border: "border-blue-400", icon: /* @__PURE__ */ e.jsx(ct, { size: 20, className: "text-blue-600" }) }
676
+ }, Et = ({ toast: n, onClose: r }) => {
677
+ const { title: s, description: t, type: o = "info" } = n, { bg: l, border: i, icon: d } = zt[o];
678
678
  return /* @__PURE__ */ e.jsxs(
679
679
  "div",
680
680
  {
@@ -684,211 +684,211 @@ const zt = [
684
684
  /* @__PURE__ */ e.jsx("div", { children: d }),
685
685
  /* @__PURE__ */ e.jsxs("div", { className: "flex-1 min-w-0", children: [
686
686
  s && /* @__PURE__ */ e.jsx("div", { className: "font-semibold text-sm mb-1", children: s }),
687
- r && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-gray-700", children: r })
687
+ t && /* @__PURE__ */ e.jsx("div", { className: "text-sm text-gray-700", children: t })
688
688
  ] }),
689
- /* @__PURE__ */ e.jsx("button", { onClick: t, className: "text-gray-500 hover:text-gray-700", children: /* @__PURE__ */ e.jsx(we, { size: 16 }) })
689
+ /* @__PURE__ */ e.jsx("button", { onClick: r, className: "text-gray-500 hover:text-gray-700", children: /* @__PURE__ */ e.jsx(ve, { size: 16 }) })
690
690
  ]
691
691
  }
692
692
  );
693
- }, Mt = ze(
693
+ }, St = _e(
694
694
  ({
695
695
  items: n,
696
- allowMultiple: t = !1,
696
+ allowMultiple: r = !1,
697
697
  defaultOpen: s = [],
698
- borderColor: r = "#e5e7eb",
698
+ borderColor: t = "#e5e7eb",
699
699
  backgroundColor: o = "#fff",
700
700
  textColor: l = "#111827",
701
701
  hoverBgColor: i = "#f3f4f6",
702
702
  hoverTextColor: d = "#111827",
703
- contentBgColor: $ = "#fff",
704
- contentTextColor: m = "#374151",
705
- paddingY: b = "1rem",
703
+ contentBgColor: j = "#fff",
704
+ contentTextColor: h = "#374151",
705
+ paddingY: g = "1rem",
706
706
  paddingX: c = "1rem",
707
- marginY: u = "0.5rem",
708
- borderRadius: k = "0.5rem",
709
- contentPadding: T = "1rem",
710
- fontSize: h = "1rem",
711
- fontWeight: E = 600,
712
- contentFontSize: w = "0.95rem",
713
- contentFontWeight: z = 400,
707
+ marginY: f = "0.5rem",
708
+ borderRadius: N = "0.5rem",
709
+ contentPadding: z = "1rem",
710
+ fontSize: w = "1rem",
711
+ fontWeight: M = 600,
712
+ contentFontSize: k = "0.95rem",
713
+ contentFontWeight: E = 400,
714
714
  iconOpen: A,
715
715
  iconClose: R,
716
- iconSize: v = "1.25rem",
717
- transitionDuration: g = "300ms",
716
+ iconSize: y = "1.25rem",
717
+ transitionDuration: m = "300ms",
718
718
  shadow: p = "0 1px 4px rgba(0,0,0,0.08)",
719
719
  className: x = "",
720
- style: C
720
+ style: P
721
721
  }) => {
722
- const [L, F] = D(s), V = K([]);
722
+ const [O, q] = L(s), Y = K([]);
723
723
  X(() => {
724
- V.current.forEach((N, f) => {
725
- N && (N.style.maxHeight = L.includes(f) ? `${N.scrollHeight}px` : "0px");
724
+ Y.current.forEach(($, u) => {
725
+ $ && ($.style.maxHeight = O.includes(u) ? `${$.scrollHeight}px` : "0px");
726
726
  });
727
- }, [L]);
728
- const H = (N) => {
729
- F(
730
- (f) => t ? f.includes(N) ? f.filter((M) => M !== N) : [...f, N] : f.includes(N) ? [] : [N]
727
+ }, [O]);
728
+ const W = ($) => {
729
+ q(
730
+ (u) => r ? u.includes($) ? u.filter((S) => S !== $) : [...u, $] : u.includes($) ? [] : [$]
731
731
  );
732
- }, B = (N) => N !== void 0 ? typeof N == "number" ? `${N}px` : N : void 0;
732
+ }, F = ($) => $ !== void 0 ? typeof $ == "number" ? `${$}px` : $ : void 0;
733
733
  return /* @__PURE__ */ e.jsx(
734
734
  "div",
735
735
  {
736
736
  className: `space-y-2 ${x}`,
737
- style: { width: "100%", ...C },
738
- children: n.map((N, f) => {
739
- const M = L.includes(f);
737
+ style: { width: "100%", ...P },
738
+ children: n.map(($, u) => {
739
+ const S = O.includes(u);
740
740
  return /* @__PURE__ */ e.jsxs(
741
741
  "div",
742
742
  {
743
743
  className: "border shadow-sm overflow-hidden transition-all duration-300",
744
744
  style: {
745
- borderColor: r,
746
- borderRadius: B(k),
747
- margin: `${B(u)} 0`,
745
+ borderColor: t,
746
+ borderRadius: F(N),
747
+ margin: `${F(f)} 0`,
748
748
  boxShadow: p
749
749
  },
750
750
  children: [
751
751
  /* @__PURE__ */ e.jsxs(
752
752
  "button",
753
753
  {
754
- onClick: () => H(f),
754
+ onClick: () => W(u),
755
755
  className: "w-full flex justify-between items-center transition-colors duration-300",
756
756
  style: {
757
757
  backgroundColor: o,
758
758
  color: l,
759
- padding: `${B(b)} ${B(c)}`,
760
- fontWeight: E,
761
- fontSize: B(h),
759
+ padding: `${F(g)} ${F(c)}`,
760
+ fontWeight: M,
761
+ fontSize: F(w),
762
762
  cursor: "pointer",
763
763
  border: "none",
764
764
  outline: "none"
765
765
  },
766
- onMouseEnter: (U) => {
767
- U.currentTarget.style.backgroundColor = i, U.currentTarget.style.color = d;
766
+ onMouseEnter: (V) => {
767
+ V.currentTarget.style.backgroundColor = i, V.currentTarget.style.color = d;
768
768
  },
769
- onMouseLeave: (U) => {
770
- U.currentTarget.style.backgroundColor = o, U.currentTarget.style.color = l;
769
+ onMouseLeave: (V) => {
770
+ V.currentTarget.style.backgroundColor = o, V.currentTarget.style.color = l;
771
771
  },
772
772
  children: [
773
- /* @__PURE__ */ e.jsx("span", { children: N.title }),
774
- /* @__PURE__ */ e.jsx("span", { style: { fontSize: B(v) }, children: M ? A || /* @__PURE__ */ e.jsx(Ze, { size: 16 }) : R || /* @__PURE__ */ e.jsx(Me, { size: 16 }) })
773
+ /* @__PURE__ */ e.jsx("span", { children: $.title }),
774
+ /* @__PURE__ */ e.jsx("span", { style: { fontSize: F(y) }, children: S ? A || /* @__PURE__ */ e.jsx(Ke, { size: 16 }) : R || /* @__PURE__ */ e.jsx(Se, { size: 16 }) })
775
775
  ]
776
776
  }
777
777
  ),
778
778
  /* @__PURE__ */ e.jsx(
779
779
  "div",
780
780
  {
781
- ref: (U) => {
782
- V.current[f] = U;
781
+ ref: (V) => {
782
+ Y.current[u] = V;
783
783
  },
784
784
  className: "overflow-hidden transition-all duration-300",
785
785
  style: {
786
- maxHeight: M ? `${V.current[f]?.scrollHeight ?? 0}px` : "0px",
787
- transition: `max-height ${g} ease-in-out`
786
+ maxHeight: S ? `${Y.current[u]?.scrollHeight ?? 0}px` : "0px",
787
+ transition: `max-height ${m} ease-in-out`
788
788
  },
789
789
  children: /* @__PURE__ */ e.jsx(
790
790
  "div",
791
791
  {
792
792
  style: {
793
- borderTop: `1px solid ${r}`,
794
- backgroundColor: $,
795
- color: m,
796
- padding: B(T),
797
- fontSize: B(w),
798
- fontWeight: z
793
+ borderTop: `1px solid ${t}`,
794
+ backgroundColor: j,
795
+ color: h,
796
+ padding: F(z),
797
+ fontSize: F(k),
798
+ fontWeight: E
799
799
  },
800
- children: N.content
800
+ children: $.content
801
801
  }
802
802
  )
803
803
  }
804
804
  )
805
805
  ]
806
806
  },
807
- f
807
+ u
808
808
  );
809
809
  })
810
810
  }
811
811
  );
812
812
  }
813
813
  );
814
- Mt.displayName = "Accordion";
815
- const At = {
814
+ St.displayName = "Accordion";
815
+ const Mt = {
816
816
  xs: 24,
817
817
  sm: 32,
818
818
  md: 40,
819
819
  lg: 48,
820
820
  xl: 56,
821
821
  "2xl": 64
822
- }, It = {
822
+ }, At = {
823
823
  xs: "text-[10px]",
824
824
  sm: "text-[12px]",
825
825
  md: "text-[14px]",
826
826
  lg: "text-[16px]",
827
827
  xl: "text-[18px]",
828
828
  "2xl": "text-[20px]"
829
- }, Ct = {
829
+ }, It = {
830
830
  xs: "w-6 h-6",
831
831
  sm: "w-8 h-8",
832
832
  md: "w-10 h-10",
833
833
  lg: "w-12 h-12",
834
834
  xl: "w-14 h-14",
835
835
  "2xl": "w-16 h-16"
836
- }, xe = {
836
+ }, fe = {
837
837
  circular: "rounded-full",
838
838
  rounded: "rounded-lg",
839
839
  square: "rounded-none"
840
- }, Lt = {
840
+ }, Ct = {
841
841
  "top-left": "top-0 left-0",
842
842
  "top-right": "top-0 right-0",
843
843
  "bottom-left": "bottom-0 left-0",
844
844
  "bottom-right": "bottom-0 right-0"
845
845
  }, qt = ({
846
846
  src: n,
847
- alt: t = "User avatar",
847
+ alt: r = "User avatar",
848
848
  size: s = "md",
849
- variant: r = "circular",
849
+ variant: t = "circular",
850
850
  isOnline: o = !1,
851
851
  isOffline: l = !1,
852
852
  fallback: i,
853
853
  ring: d = !1,
854
- ringColor: $ = "#3b82f6",
855
- onClick: m,
856
- statusPosition: b = "bottom-right",
854
+ ringColor: j = "#3b82f6",
855
+ onClick: h,
856
+ statusPosition: g = "bottom-right",
857
857
  className: c = "",
858
- statusClassName: u = "",
859
- style: k,
860
- statusStyle: T
858
+ statusClassName: f = "",
859
+ style: N,
860
+ statusStyle: z
861
861
  }) => {
862
- const [h, E] = D(!1), w = !!m, z = i || t.split(" ").map((v) => v[0]).join("").toUpperCase().slice(0, 2), A = o ? "bg-green-500" : l ? "bg-gray-400" : "", R = At[s];
862
+ const [w, M] = L(!1), k = !!h, E = i || r.split(" ").map((y) => y[0]).join("").toUpperCase().slice(0, 2), A = o ? "bg-green-500" : l ? "bg-gray-400" : "", R = Mt[s];
863
863
  return /* @__PURE__ */ e.jsxs(
864
864
  "div",
865
865
  {
866
- role: w ? "button" : "img",
867
- tabIndex: w ? 0 : -1,
868
- "aria-label": t,
869
- onClick: m,
870
- className: `relative inline-flex items-center justify-center overflow-hidden ${Ct[s]} ${xe[r]} transition-all duration-200 ${w ? "cursor-pointer hover:scale-105" : ""} ${d ? "ring-2" : ""} ${c}`,
866
+ role: k ? "button" : "img",
867
+ tabIndex: k ? 0 : -1,
868
+ "aria-label": r,
869
+ onClick: h,
870
+ className: `relative inline-flex items-center justify-center overflow-hidden ${It[s]} ${fe[t]} transition-all duration-200 ${k ? "cursor-pointer hover:scale-105" : ""} ${d ? "ring-2" : ""} ${c}`,
871
871
  style: {
872
- ...k,
873
- ...d ? { boxShadow: `0 0 0 2px ${$}` } : {}
872
+ ...N,
873
+ ...d ? { boxShadow: `0 0 0 2px ${j}` } : {}
874
874
  },
875
- onKeyDown: (v) => {
876
- w && (v.key === "Enter" || v.key === " ") && (v.preventDefault(), m?.());
875
+ onKeyDown: (y) => {
876
+ k && (y.key === "Enter" || y.key === " ") && (y.preventDefault(), h?.());
877
877
  },
878
878
  children: [
879
- n && !h ? /* @__PURE__ */ e.jsx(
879
+ n && !w ? /* @__PURE__ */ e.jsx(
880
880
  "img",
881
881
  {
882
882
  src: n,
883
- alt: t,
884
- onError: () => E(!0),
885
- className: `w-full h-full object-cover ${xe[r]} transition-opacity duration-300`
883
+ alt: r,
884
+ onError: () => M(!0),
885
+ className: `w-full h-full object-cover ${fe[t]} transition-opacity duration-300`
886
886
  }
887
887
  ) : /* @__PURE__ */ e.jsx(
888
888
  "div",
889
889
  {
890
- className: `w-full h-full flex items-center justify-center bg-gradient-to-tr from-purple-500 to-blue-500 text-white font-semibold ${It[s]} ${xe[r]}`,
891
- children: z || /* @__PURE__ */ e.jsx(Tt, { className: "text-white" })
890
+ className: `w-full h-full flex items-center justify-center bg-gradient-to-tr from-purple-500 to-blue-500 text-white font-semibold ${At[s]} ${fe[t]}`,
891
+ children: E || /* @__PURE__ */ e.jsx(Nt, { className: "text-white" })
892
892
  }
893
893
  ),
894
894
  (o || l) && /* @__PURE__ */ e.jsx(
@@ -896,65 +896,65 @@ const At = {
896
896
  {
897
897
  "aria-label": o ? "Online" : "Offline",
898
898
  title: o ? "Online" : "Offline",
899
- className: `absolute ${Lt[b]} ${A} border-2 border-white rounded-full shadow-sm ${u}`,
899
+ className: `absolute ${Ct[g]} ${A} border-2 border-white rounded-full shadow-sm ${f}`,
900
900
  style: {
901
901
  width: R / 3,
902
902
  height: R / 3,
903
- ...T
903
+ ...z
904
904
  }
905
905
  }
906
906
  )
907
907
  ]
908
908
  }
909
909
  );
910
- }, Gt = ({
910
+ }, Ht = ({
911
911
  src: n,
912
- thumbnail: t,
912
+ thumbnail: r,
913
913
  autoPlay: s = !1,
914
- loop: r = !1,
914
+ loop: t = !1,
915
915
  backgroundColor: o = "#0a0a0a",
916
916
  primaryColor: l = "#10b981",
917
917
  secondaryColor: i = "#ffffff",
918
918
  borderRadius: d = "12px",
919
- padding: $ = "12px",
920
- width: m = "100%",
921
- className: b
919
+ padding: j = "12px",
920
+ width: h = "100%",
921
+ className: g
922
922
  }) => {
923
- const c = K(null), u = K(null), [k, T] = D(s), [h, E] = D(0), [w, z] = D(0), [A, R] = D(0.7), [v, g] = D(!1), [p, x] = D(r);
923
+ const c = K(null), f = K(null), [N, z] = L(s), [w, M] = L(0), [k, E] = L(0), [A, R] = L(0.7), [y, m] = L(!1), [p, x] = L(t);
924
924
  X(() => {
925
925
  c.current && (c.current.volume = A);
926
926
  }, [A]), X(() => {
927
927
  c.current && (c.current.loop = p);
928
928
  }, [p]);
929
- const C = () => {
930
- c.current && (k ? c.current.pause() : c.current.play(), T(!k));
931
- }, L = () => {
932
- c.current && (E(c.current.currentTime), z(c.current.duration));
933
- }, F = (N) => {
929
+ const P = () => {
930
+ c.current && (N ? c.current.pause() : c.current.play(), z(!N));
931
+ }, O = () => {
932
+ c.current && (M(c.current.currentTime), E(c.current.duration));
933
+ }, q = ($) => {
934
934
  if (!c.current) return;
935
- const f = N.currentTarget.getBoundingClientRect(), M = (N.clientX - f.left) / f.width;
936
- c.current.currentTime = M * w, E(M * w);
937
- }, V = (N) => {
938
- c.current && (c.current.currentTime += N);
939
- }, H = () => {
940
- u.current && (v ? document.exitFullscreen?.() : u.current.requestFullscreen?.(), g(!v));
941
- }, B = (N) => {
942
- const f = Math.floor(N / 60), M = Math.floor(N % 60);
943
- return `${f}:${M < 10 ? "0" : ""}${M}`;
935
+ const u = $.currentTarget.getBoundingClientRect(), S = ($.clientX - u.left) / u.width;
936
+ c.current.currentTime = S * k, M(S * k);
937
+ }, Y = ($) => {
938
+ c.current && (c.current.currentTime += $);
939
+ }, W = () => {
940
+ f.current && (y ? document.exitFullscreen?.() : f.current.requestFullscreen?.(), m(!y));
941
+ }, F = ($) => {
942
+ const u = Math.floor($ / 60), S = Math.floor($ % 60);
943
+ return `${u}:${S < 10 ? "0" : ""}${S}`;
944
944
  };
945
945
  return /* @__PURE__ */ e.jsxs(
946
946
  "div",
947
947
  {
948
- ref: u,
949
- className: b,
948
+ ref: f,
949
+ className: g,
950
950
  style: {
951
951
  display: "flex",
952
952
  alignItems: "center",
953
953
  gap: "12px",
954
- width: m,
954
+ width: h,
955
955
  backgroundColor: o,
956
956
  borderRadius: d,
957
- padding: $,
957
+ padding: j,
958
958
  boxSizing: "border-box",
959
959
  color: i,
960
960
  boxShadow: "0 6px 16px rgba(0,0,0,0.2)",
@@ -967,15 +967,15 @@ const At = {
967
967
  ref: c,
968
968
  src: n,
969
969
  autoPlay: s,
970
- loop: r,
971
- onTimeUpdate: L,
972
- onLoadedMetadata: L
970
+ loop: t,
971
+ onTimeUpdate: O,
972
+ onLoadedMetadata: O
973
973
  }
974
974
  ),
975
- t && /* @__PURE__ */ e.jsx(
975
+ r && /* @__PURE__ */ e.jsx(
976
976
  "img",
977
977
  {
978
- src: t,
978
+ src: r,
979
979
  alt: "Audio Thumbnail",
980
980
  style: {
981
981
  width: "60px",
@@ -1000,7 +1000,7 @@ const At = {
1000
1000
  /* @__PURE__ */ e.jsx(
1001
1001
  "button",
1002
1002
  {
1003
- onClick: () => V(-10),
1003
+ onClick: () => Y(-10),
1004
1004
  style: {
1005
1005
  background: "transparent",
1006
1006
  border: "none",
@@ -1008,13 +1008,13 @@ const At = {
1008
1008
  cursor: "pointer"
1009
1009
  },
1010
1010
  "aria-label": "Skip Back 10s",
1011
- children: /* @__PURE__ */ e.jsx(ye, { size: 20 })
1011
+ children: /* @__PURE__ */ e.jsx(ge, { size: 20 })
1012
1012
  }
1013
1013
  ),
1014
1014
  /* @__PURE__ */ e.jsx(
1015
1015
  "button",
1016
1016
  {
1017
- onClick: C,
1017
+ onClick: P,
1018
1018
  style: {
1019
1019
  background: l,
1020
1020
  borderRadius: "50%",
@@ -1025,14 +1025,14 @@ const At = {
1025
1025
  alignItems: "center",
1026
1026
  justifyContent: "center"
1027
1027
  },
1028
- "aria-label": k ? "Pause" : "Play",
1029
- children: k ? /* @__PURE__ */ e.jsx(ge, { size: 20 }) : /* @__PURE__ */ e.jsx(be, { size: 20 })
1028
+ "aria-label": N ? "Pause" : "Play",
1029
+ children: N ? /* @__PURE__ */ e.jsx(me, { size: 20 }) : /* @__PURE__ */ e.jsx(be, { size: 20 })
1030
1030
  }
1031
1031
  ),
1032
1032
  /* @__PURE__ */ e.jsx(
1033
1033
  "button",
1034
1034
  {
1035
- onClick: () => V(10),
1035
+ onClick: () => Y(10),
1036
1036
  style: {
1037
1037
  background: "transparent",
1038
1038
  border: "none",
@@ -1040,13 +1040,13 @@ const At = {
1040
1040
  cursor: "pointer"
1041
1041
  },
1042
1042
  "aria-label": "Skip Forward 10s",
1043
- children: /* @__PURE__ */ e.jsx(ve, { size: 20 })
1043
+ children: /* @__PURE__ */ e.jsx(ye, { size: 20 })
1044
1044
  }
1045
1045
  ),
1046
1046
  /* @__PURE__ */ e.jsx(
1047
1047
  "div",
1048
1048
  {
1049
- onClick: F,
1049
+ onClick: q,
1050
1050
  style: {
1051
1051
  flex: 1,
1052
1052
  height: "6px",
@@ -1059,7 +1059,7 @@ const At = {
1059
1059
  "div",
1060
1060
  {
1061
1061
  style: {
1062
- width: `${h / w * 100 || 0}%`,
1062
+ width: `${w / k * 100 || 0}%`,
1063
1063
  height: "100%",
1064
1064
  background: l,
1065
1065
  borderRadius: "3px"
@@ -1069,9 +1069,9 @@ const At = {
1069
1069
  }
1070
1070
  ),
1071
1071
  /* @__PURE__ */ e.jsxs("div", { style: { minWidth: "70px", textAlign: "right", fontSize: "0.8rem" }, children: [
1072
- B(h),
1072
+ F(w),
1073
1073
  " / ",
1074
- B(w)
1074
+ F(k)
1075
1075
  ] }),
1076
1076
  /* @__PURE__ */ e.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
1077
1077
  /* @__PURE__ */ e.jsx(
@@ -1085,7 +1085,7 @@ const At = {
1085
1085
  color: p ? l : i
1086
1086
  },
1087
1087
  "aria-label": "Toggle Loop",
1088
- children: /* @__PURE__ */ e.jsx(Ae, { size: 18 })
1088
+ children: /* @__PURE__ */ e.jsx(Me, { size: 18 })
1089
1089
  }
1090
1090
  ),
1091
1091
  /* @__PURE__ */ e.jsx(
@@ -1099,13 +1099,13 @@ const At = {
1099
1099
  color: i
1100
1100
  },
1101
1101
  "aria-label": "Toggle Mute",
1102
- children: A > 0 ? /* @__PURE__ */ e.jsx(Ie, { size: 18 }) : /* @__PURE__ */ e.jsx(Ce, { size: 18 })
1102
+ children: A > 0 ? /* @__PURE__ */ e.jsx(Ae, { size: 18 }) : /* @__PURE__ */ e.jsx(Ie, { size: 18 })
1103
1103
  }
1104
1104
  ),
1105
1105
  /* @__PURE__ */ e.jsx(
1106
1106
  "button",
1107
1107
  {
1108
- onClick: H,
1108
+ onClick: W,
1109
1109
  style: {
1110
1110
  background: "transparent",
1111
1111
  border: "none",
@@ -1113,7 +1113,7 @@ const At = {
1113
1113
  color: i
1114
1114
  },
1115
1115
  "aria-label": "Toggle Fullscreen",
1116
- children: v ? /* @__PURE__ */ e.jsx(pt, { size: 18 }) : /* @__PURE__ */ e.jsx(ft, { size: 18 })
1116
+ children: y ? /* @__PURE__ */ e.jsx(xt, { size: 18 }) : /* @__PURE__ */ e.jsx(ut, { size: 18 })
1117
1117
  }
1118
1118
  )
1119
1119
  ] })
@@ -1146,79 +1146,79 @@ const At = {
1146
1146
  thumbnail: "https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=300&h=300&fit=crop"
1147
1147
  }
1148
1148
  ];
1149
- function Xt({
1149
+ function Gt({
1150
1150
  tracks: n = Pt,
1151
- className: t = "",
1151
+ className: r = "",
1152
1152
  galleryTitle: s = "Audio Gallery",
1153
- primaryColor: r = "#8b5cf6",
1153
+ primaryColor: t = "#8b5cf6",
1154
1154
  backgroundColor: o = "#0f0f23",
1155
1155
  textColor: l = "#e4e4e7",
1156
1156
  secondaryColor: i = "#1a1a2e",
1157
1157
  border: d = 0,
1158
- borderColor: $,
1159
- maxWidth: m = 420,
1160
- autoplay: b = !1,
1158
+ borderColor: j,
1159
+ maxWidth: h = 420,
1160
+ autoplay: g = !1,
1161
1161
  loop: c = !1
1162
1162
  }) {
1163
- const [u, k] = D(
1163
+ const [f, N] = L(
1164
1164
  null
1165
- ), [T, h] = D(!1), [E, w] = D(0), [z, A] = D(0), [R, v] = D(0.7), [g, p] = D(!1), [x, C] = D(c), [L, F] = D(!1), [V, H] = D(!1), [B, N] = D(!1), f = K(null), M = K(null), U = K(null);
1165
+ ), [z, w] = L(!1), [M, k] = L(0), [E, A] = L(0), [R, y] = L(0.7), [m, p] = L(!1), [x, P] = L(c), [O, q] = L(!1), [Y, W] = L(!1), [F, $] = L(!1), u = K(null), S = K(null), V = K(null);
1166
1166
  X(() => {
1167
- f.current && (f.current.volume = R);
1167
+ u.current && (u.current.volume = R);
1168
1168
  }, [R]), X(() => {
1169
- f.current && (f.current.loop = x);
1169
+ u.current && (u.current.loop = x);
1170
1170
  }, [x]), X(() => {
1171
- u === null && f.current && (f.current.pause(), h(!1), w(0), A(0));
1172
- }, [u]);
1173
- const G = (S) => {
1174
- if (u === S) {
1175
- if (!f.current) return;
1176
- f.current.paused ? (f.current.play().catch(() => {
1177
- }), h(!0)) : (f.current.pause(), h(!1));
1171
+ f === null && u.current && (u.current.pause(), w(!1), k(0), A(0));
1172
+ }, [f]);
1173
+ const G = (_) => {
1174
+ if (f === _) {
1175
+ if (!u.current) return;
1176
+ u.current.paused ? (u.current.play().catch(() => {
1177
+ }), w(!0)) : (u.current.pause(), w(!1));
1178
1178
  } else
1179
- k(S), setTimeout(() => {
1180
- f.current && (f.current.play().catch(() => {
1181
- }), h(!0));
1179
+ N(_), setTimeout(() => {
1180
+ u.current && (u.current.play().catch(() => {
1181
+ }), w(!0));
1182
1182
  }, 100);
1183
1183
  }, Z = () => {
1184
- f.current && (w(f.current.currentTime), f.current.duration && A(f.current.duration));
1185
- }, a = (S) => {
1186
- if (!f.current || !z) return;
1187
- const _ = S.currentTarget.getBoundingClientRect(), re = (S.clientX - _.left) / _.width * z;
1188
- f.current.currentTime = re, w(re);
1189
- }, y = (S) => {
1190
- const _ = S.currentTarget.getBoundingClientRect(), ee = (S.clientX - _.left) / _.width, re = Math.max(0, Math.min(1, ee));
1191
- v(re);
1192
- }, j = (S) => {
1193
- if (f.current && z) {
1194
- let _ = f.current.currentTime + S;
1195
- _ = Math.min(Math.max(_, 0), z), f.current.currentTime = _, w(_);
1184
+ u.current && (k(u.current.currentTime), u.current.duration && A(u.current.duration));
1185
+ }, a = (_) => {
1186
+ if (!u.current || !E) return;
1187
+ const T = _.currentTarget.getBoundingClientRect(), re = (_.clientX - T.left) / T.width * E;
1188
+ u.current.currentTime = re, k(re);
1189
+ }, b = (_) => {
1190
+ const T = _.currentTarget.getBoundingClientRect(), ee = (_.clientX - T.left) / T.width, re = Math.max(0, Math.min(1, ee));
1191
+ y(re);
1192
+ }, v = (_) => {
1193
+ if (u.current && E) {
1194
+ let T = u.current.currentTime + _;
1195
+ T = Math.min(Math.max(T, 0), E), u.current.currentTime = T, k(T);
1196
1196
  }
1197
1197
  }, I = () => {
1198
- if (u === null) return;
1199
- let S;
1200
- L ? S = Math.floor(Math.random() * n.length) : S = (u + 1) % n.length, G(S);
1201
- }, q = () => {
1202
- if (u === null) return;
1203
- let S;
1204
- L ? S = Math.floor(Math.random() * n.length) : S = (u - 1 + n.length) % n.length, G(S);
1198
+ if (f === null) return;
1199
+ let _;
1200
+ O ? _ = Math.floor(Math.random() * n.length) : _ = (f + 1) % n.length, G(_);
1201
+ }, H = () => {
1202
+ if (f === null) return;
1203
+ let _;
1204
+ O ? _ = Math.floor(Math.random() * n.length) : _ = (f - 1 + n.length) % n.length, G(_);
1205
1205
  }, te = () => {
1206
- v((S) => S > 0 ? 0 : 0.7);
1207
- }, Y = () => {
1208
- N(!0), U.current && clearTimeout(U.current), U.current = setTimeout(() => {
1209
- N(!1);
1206
+ y((_) => _ > 0 ? 0 : 0.7);
1207
+ }, B = () => {
1208
+ $(!0), V.current && clearTimeout(V.current), V.current = setTimeout(() => {
1209
+ $(!1);
1210
1210
  }, 3e3);
1211
- }, Q = (S) => {
1212
- if (isNaN(S)) return "0:00";
1213
- const _ = Math.floor(S / 60), O = Math.floor(S % 60);
1214
- return `${_}:${O < 10 ? "0" : ""}${O}`;
1215
- }, J = u !== null ? n[u] : null;
1211
+ }, Q = (_) => {
1212
+ if (isNaN(_)) return "0:00";
1213
+ const T = Math.floor(_ / 60), D = Math.floor(_ % 60);
1214
+ return `${T}:${D < 10 ? "0" : ""}${D}`;
1215
+ }, J = f !== null ? n[f] : null;
1216
1216
  return /* @__PURE__ */ e.jsxs(
1217
1217
  "div",
1218
1218
  {
1219
- className: t,
1219
+ className: r,
1220
1220
  style: {
1221
- maxWidth: `${m}px`,
1221
+ maxWidth: `${h}px`,
1222
1222
  margin: "20px auto",
1223
1223
  background: `linear-gradient(145deg, ${o}, ${i})`,
1224
1224
  color: l,
@@ -1227,7 +1227,7 @@ function Xt({
1227
1227
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
1228
1228
  userSelect: "none",
1229
1229
  backdropFilter: "blur(20px)",
1230
- border: `${d}px solid ${$}40`
1230
+ border: `${d}px solid ${j}40`
1231
1231
  },
1232
1232
  children: [
1233
1233
  /* @__PURE__ */ e.jsxs(
@@ -1248,12 +1248,12 @@ function Xt({
1248
1248
  width: "40px",
1249
1249
  height: "40px",
1250
1250
  borderRadius: "12px",
1251
- background: `linear-gradient(135deg, ${r}, ${i})`,
1251
+ background: `linear-gradient(135deg, ${t}, ${i})`,
1252
1252
  display: "flex",
1253
1253
  alignItems: "center",
1254
1254
  justifyContent: "center"
1255
1255
  },
1256
- children: /* @__PURE__ */ e.jsx(Te, { size: 20, color: "white" })
1256
+ children: /* @__PURE__ */ e.jsx(Ne, { size: 20, color: "white" })
1257
1257
  }
1258
1258
  ),
1259
1259
  /* @__PURE__ */ e.jsxs("div", { children: [
@@ -1264,7 +1264,7 @@ function Xt({
1264
1264
  margin: 0,
1265
1265
  fontSize: "1.25rem",
1266
1266
  fontWeight: "700",
1267
- color: r
1267
+ color: t
1268
1268
  // fallback for browsers without WebkitTextFillColor
1269
1269
  },
1270
1270
  children: s
@@ -1279,18 +1279,18 @@ function Xt({
1279
1279
  /* @__PURE__ */ e.jsx(
1280
1280
  "button",
1281
1281
  {
1282
- onClick: () => F(!L),
1282
+ onClick: () => q(!O),
1283
1283
  style: {
1284
- background: L ? r : "transparent",
1284
+ background: O ? t : "transparent",
1285
1285
  border: "none",
1286
1286
  borderRadius: "12px",
1287
1287
  padding: "8px",
1288
1288
  cursor: "pointer",
1289
1289
  transition: "all 0.3s ease",
1290
- opacity: L ? 1 : 0.6
1290
+ opacity: O ? 1 : 0.6
1291
1291
  },
1292
1292
  "aria-label": "Toggle Shuffle",
1293
- children: /* @__PURE__ */ e.jsx(vt, { size: 18, color: L ? "white" : l })
1293
+ children: /* @__PURE__ */ e.jsx(yt, { size: 18, color: O ? "white" : l })
1294
1294
  }
1295
1295
  )
1296
1296
  ]
@@ -1308,22 +1308,22 @@ function Xt({
1308
1308
  overflowY: "auto",
1309
1309
  paddingRight: "4px"
1310
1310
  },
1311
- children: n.map((S, _) => {
1312
- const O = u === _, ee = O && T;
1311
+ children: n.map((_, T) => {
1312
+ const D = f === T, ee = D && z;
1313
1313
  return /* @__PURE__ */ e.jsxs(
1314
1314
  "div",
1315
1315
  {
1316
- onClick: () => G(_),
1316
+ onClick: () => G(T),
1317
1317
  style: {
1318
1318
  display: "flex",
1319
1319
  alignItems: "center",
1320
1320
  padding: "12px 16px",
1321
1321
  borderRadius: "16px",
1322
- background: O ? `linear-gradient(135deg, ${r}20, ${r}10)` : "rgba(255,255,255,0.05)",
1323
- border: O ? `1px solid ${r}40` : "1px solid transparent",
1322
+ background: D ? `linear-gradient(135deg, ${t}20, ${t}10)` : "rgba(255,255,255,0.05)",
1323
+ border: D ? `1px solid ${t}40` : "1px solid transparent",
1324
1324
  cursor: "pointer",
1325
1325
  transition: "all 0.3s ease",
1326
- backdropFilter: O ? "blur(20px)" : "none"
1326
+ backdropFilter: D ? "blur(20px)" : "none"
1327
1327
  },
1328
1328
  children: [
1329
1329
  /* @__PURE__ */ e.jsxs(
@@ -1333,7 +1333,7 @@ function Xt({
1333
1333
  width: "48px",
1334
1334
  height: "48px",
1335
1335
  borderRadius: "12px",
1336
- background: S.thumbnail ? `url(${S.thumbnail}) center/cover` : r,
1336
+ background: _.thumbnail ? `url(${_.thumbnail}) center/cover` : t,
1337
1337
  display: "flex",
1338
1338
  alignItems: "center",
1339
1339
  justifyContent: "center",
@@ -1342,7 +1342,7 @@ function Xt({
1342
1342
  overflow: "hidden"
1343
1343
  },
1344
1344
  children: [
1345
- !S.thumbnail && /* @__PURE__ */ e.jsx(Te, { size: 20, color: "white" }),
1345
+ !_.thumbnail && /* @__PURE__ */ e.jsx(Ne, { size: 20, color: "white" }),
1346
1346
  ee && /* @__PURE__ */ e.jsx(
1347
1347
  "div",
1348
1348
  {
@@ -1395,15 +1395,15 @@ function Xt({
1395
1395
  style: {
1396
1396
  fontWeight: "600",
1397
1397
  fontSize: "0.95rem",
1398
- color: O ? r : l,
1398
+ color: D ? t : l,
1399
1399
  whiteSpace: "nowrap",
1400
1400
  overflow: "hidden",
1401
1401
  textOverflow: "ellipsis"
1402
1402
  },
1403
- children: S.title
1403
+ children: _.title
1404
1404
  }
1405
1405
  ),
1406
- S.artist && /* @__PURE__ */ e.jsx(
1406
+ _.artist && /* @__PURE__ */ e.jsx(
1407
1407
  "div",
1408
1408
  {
1409
1409
  style: {
@@ -1413,7 +1413,7 @@ function Xt({
1413
1413
  overflow: "hidden",
1414
1414
  textOverflow: "ellipsis"
1415
1415
  },
1416
- children: S.artist
1416
+ children: _.artist
1417
1417
  }
1418
1418
  )
1419
1419
  ] }),
@@ -1422,7 +1422,7 @@ function Xt({
1422
1422
  {
1423
1423
  style: { display: "flex", alignItems: "center", gap: "12px" },
1424
1424
  children: [
1425
- S.duration && /* @__PURE__ */ e.jsx("span", { style: { fontSize: "0.8rem", opacity: 0.6 }, children: S.duration }),
1425
+ _.duration && /* @__PURE__ */ e.jsx("span", { style: { fontSize: "0.8rem", opacity: 0.6 }, children: _.duration }),
1426
1426
  /* @__PURE__ */ e.jsx(
1427
1427
  "div",
1428
1428
  {
@@ -1430,13 +1430,13 @@ function Xt({
1430
1430
  width: "32px",
1431
1431
  height: "32px",
1432
1432
  borderRadius: "8px",
1433
- background: O ? r : "rgba(255,255,255,0.1)",
1433
+ background: D ? t : "rgba(255,255,255,0.1)",
1434
1434
  display: "flex",
1435
1435
  alignItems: "center",
1436
1436
  justifyContent: "center",
1437
1437
  transition: "all 0.3s ease"
1438
1438
  },
1439
- children: ee ? /* @__PURE__ */ e.jsx(ge, { size: 16, color: "white" }) : /* @__PURE__ */ e.jsx(be, { size: 16, color: "white" })
1439
+ children: ee ? /* @__PURE__ */ e.jsx(me, { size: 16, color: "white" }) : /* @__PURE__ */ e.jsx(be, { size: 16, color: "white" })
1440
1440
  }
1441
1441
  )
1442
1442
  ]
@@ -1444,7 +1444,7 @@ function Xt({
1444
1444
  )
1445
1445
  ]
1446
1446
  },
1447
- _
1447
+ T
1448
1448
  );
1449
1449
  })
1450
1450
  }
@@ -1452,12 +1452,12 @@ function Xt({
1452
1452
  J && /* @__PURE__ */ e.jsxs(
1453
1453
  "div",
1454
1454
  {
1455
- ref: M,
1455
+ ref: S,
1456
1456
  style: {
1457
1457
  background: `linear-gradient(135deg, ${i}, ${o})`,
1458
1458
  borderRadius: "20px",
1459
1459
  padding: "20px",
1460
- border: `1px solid ${r}40`,
1460
+ border: `1px solid ${t}40`,
1461
1461
  backdropFilter: "blur(20px)",
1462
1462
  position: "relative",
1463
1463
  overflow: "hidden"
@@ -1489,7 +1489,7 @@ function Xt({
1489
1489
  margin: "0 0 4px 0",
1490
1490
  fontSize: "1.1rem",
1491
1491
  fontWeight: "700",
1492
- color: r
1492
+ color: t
1493
1493
  },
1494
1494
  children: J.title
1495
1495
  }
@@ -1510,20 +1510,20 @@ function Xt({
1510
1510
  /* @__PURE__ */ e.jsx(
1511
1511
  "button",
1512
1512
  {
1513
- onClick: q,
1513
+ onClick: H,
1514
1514
  style: ne(l, "rgba(255,255,255,0.1)"),
1515
1515
  "aria-label": "Previous Track",
1516
- children: /* @__PURE__ */ e.jsx(ye, { size: 20 })
1516
+ children: /* @__PURE__ */ e.jsx(ge, { size: 20 })
1517
1517
  }
1518
1518
  ),
1519
1519
  /* @__PURE__ */ e.jsxs(
1520
1520
  "button",
1521
1521
  {
1522
- onClick: () => j(-10),
1522
+ onClick: () => v(-10),
1523
1523
  style: ne(l, "rgba(255,255,255,0.1)"),
1524
1524
  "aria-label": "Skip back 10 seconds",
1525
1525
  children: [
1526
- /* @__PURE__ */ e.jsx(ye, { size: 16 }),
1526
+ /* @__PURE__ */ e.jsx(ge, { size: 16 }),
1527
1527
  /* @__PURE__ */ e.jsx("span", { style: { fontSize: "0.7rem", marginLeft: "2px" }, children: "10" })
1528
1528
  ]
1529
1529
  }
@@ -1532,29 +1532,29 @@ function Xt({
1532
1532
  "button",
1533
1533
  {
1534
1534
  onClick: () => {
1535
- f.current && (T ? (f.current.pause(), h(!1)) : (f.current.play().catch(() => {
1536
- }), h(!0)));
1535
+ u.current && (z ? (u.current.pause(), w(!1)) : (u.current.play().catch(() => {
1536
+ }), w(!0)));
1537
1537
  },
1538
1538
  style: {
1539
- ...ne("#fff", r),
1539
+ ...ne("#fff", t),
1540
1540
  width: "60px",
1541
1541
  height: "60px",
1542
1542
  borderRadius: "50%",
1543
- boxShadow: `0 8px 25px ${r}40`
1543
+ boxShadow: `0 8px 25px ${t}40`
1544
1544
  },
1545
- "aria-label": T ? "Pause" : "Play",
1546
- children: T ? /* @__PURE__ */ e.jsx(ge, { size: 24 }) : /* @__PURE__ */ e.jsx(be, { size: 24 })
1545
+ "aria-label": z ? "Pause" : "Play",
1546
+ children: z ? /* @__PURE__ */ e.jsx(me, { size: 24 }) : /* @__PURE__ */ e.jsx(be, { size: 24 })
1547
1547
  }
1548
1548
  ),
1549
1549
  /* @__PURE__ */ e.jsxs(
1550
1550
  "button",
1551
1551
  {
1552
- onClick: () => j(10),
1552
+ onClick: () => v(10),
1553
1553
  style: ne(l, "rgba(255,255,255,0.1)"),
1554
1554
  "aria-label": "Skip forward 10 seconds",
1555
1555
  children: [
1556
1556
  /* @__PURE__ */ e.jsx("span", { style: { fontSize: "0.7rem", marginRight: "2px" }, children: "10" }),
1557
- /* @__PURE__ */ e.jsx(ve, { size: 16 })
1557
+ /* @__PURE__ */ e.jsx(ye, { size: 16 })
1558
1558
  ]
1559
1559
  }
1560
1560
  ),
@@ -1564,7 +1564,7 @@ function Xt({
1564
1564
  onClick: I,
1565
1565
  style: ne(l, "rgba(255,255,255,0.1)"),
1566
1566
  "aria-label": "Next Track",
1567
- children: /* @__PURE__ */ e.jsx(ve, { size: 20 })
1567
+ children: /* @__PURE__ */ e.jsx(ye, { size: 20 })
1568
1568
  }
1569
1569
  )
1570
1570
  ]
@@ -1583,8 +1583,8 @@ function Xt({
1583
1583
  opacity: 0.7
1584
1584
  },
1585
1585
  children: [
1586
- /* @__PURE__ */ e.jsx("span", { children: Q(E) }),
1587
- /* @__PURE__ */ e.jsx("span", { children: Q(z) })
1586
+ /* @__PURE__ */ e.jsx("span", { children: Q(M) }),
1587
+ /* @__PURE__ */ e.jsx("span", { children: Q(E) })
1588
1588
  ]
1589
1589
  }
1590
1590
  ),
@@ -1604,9 +1604,9 @@ function Xt({
1604
1604
  "div",
1605
1605
  {
1606
1606
  style: {
1607
- width: `${E / z * 100 || 0}%`,
1607
+ width: `${M / E * 100 || 0}%`,
1608
1608
  height: "100%",
1609
- background: `linear-gradient(90deg, ${r}, #ec4899)`,
1609
+ background: `linear-gradient(90deg, ${t}, #ec4899)`,
1610
1610
  borderRadius: "3px",
1611
1611
  position: "relative"
1612
1612
  },
@@ -1620,9 +1620,9 @@ function Xt({
1620
1620
  transform: "translateY(-50%)",
1621
1621
  width: "12px",
1622
1622
  height: "12px",
1623
- background: r,
1623
+ background: t,
1624
1624
  borderRadius: "50%",
1625
- boxShadow: `0 2px 8px ${r}60`
1625
+ boxShadow: `0 2px 8px ${t}60`
1626
1626
  }
1627
1627
  }
1628
1628
  )
@@ -1644,25 +1644,25 @@ function Xt({
1644
1644
  /* @__PURE__ */ e.jsx(
1645
1645
  "button",
1646
1646
  {
1647
- onClick: () => H(!V),
1647
+ onClick: () => W(!Y),
1648
1648
  style: ne(
1649
- V ? "#ec4899" : l,
1649
+ Y ? "#ec4899" : l,
1650
1650
  "rgba(255,255,255,0.1)"
1651
1651
  ),
1652
1652
  "aria-label": "Like",
1653
- children: /* @__PURE__ */ e.jsx(it, { size: 16, fill: V ? "#ec4899" : "none" })
1653
+ children: /* @__PURE__ */ e.jsx(lt, { size: 16, fill: Y ? "#ec4899" : "none" })
1654
1654
  }
1655
1655
  ),
1656
1656
  /* @__PURE__ */ e.jsx(
1657
1657
  "button",
1658
1658
  {
1659
- onClick: () => C(!x),
1659
+ onClick: () => P(!x),
1660
1660
  style: ne(
1661
- x ? r : l,
1661
+ x ? t : l,
1662
1662
  "rgba(255,255,255,0.1)"
1663
1663
  ),
1664
1664
  "aria-label": "Toggle Loop",
1665
- children: /* @__PURE__ */ e.jsx(Ae, { size: 16 })
1665
+ children: /* @__PURE__ */ e.jsx(Me, { size: 16 })
1666
1666
  }
1667
1667
  )
1668
1668
  ] }),
@@ -1676,10 +1676,10 @@ function Xt({
1676
1676
  position: "relative"
1677
1677
  },
1678
1678
  children: [
1679
- B && /* @__PURE__ */ e.jsx(
1679
+ F && /* @__PURE__ */ e.jsx(
1680
1680
  "div",
1681
1681
  {
1682
- onClick: y,
1682
+ onClick: b,
1683
1683
  style: {
1684
1684
  width: "80px",
1685
1685
  height: "4px",
@@ -1694,7 +1694,7 @@ function Xt({
1694
1694
  style: {
1695
1695
  width: `${R * 100}%`,
1696
1696
  height: "100%",
1697
- background: r,
1697
+ background: t,
1698
1698
  borderRadius: "2px"
1699
1699
  }
1700
1700
  }
@@ -1705,10 +1705,10 @@ function Xt({
1705
1705
  "button",
1706
1706
  {
1707
1707
  onClick: te,
1708
- onMouseEnter: Y,
1708
+ onMouseEnter: B,
1709
1709
  style: ne(l, "rgba(255,255,255,0.1)"),
1710
1710
  "aria-label": R > 0 ? "Mute" : "Unmute",
1711
- children: R > 0 ? /* @__PURE__ */ e.jsx(Ie, { size: 16 }) : /* @__PURE__ */ e.jsx(Ce, { size: 16 })
1711
+ children: R > 0 ? /* @__PURE__ */ e.jsx(Ae, { size: 16 }) : /* @__PURE__ */ e.jsx(Ie, { size: 16 })
1712
1712
  }
1713
1713
  )
1714
1714
  ]
@@ -1721,13 +1721,13 @@ function Xt({
1721
1721
  /* @__PURE__ */ e.jsx(
1722
1722
  "audio",
1723
1723
  {
1724
- ref: f,
1724
+ ref: u,
1725
1725
  src: J.src,
1726
- autoPlay: b,
1726
+ autoPlay: g,
1727
1727
  loop: x,
1728
1728
  onTimeUpdate: Z,
1729
1729
  onEnded: () => {
1730
- h(!1), x || I();
1730
+ w(!1), x || I();
1731
1731
  },
1732
1732
  onLoadedMetadata: Z,
1733
1733
  preload: "metadata",
@@ -1754,22 +1754,22 @@ function Xt({
1754
1754
  }
1755
1755
 
1756
1756
  div::-webkit-scrollbar-thumb {
1757
- background: ${r};
1757
+ background: ${t};
1758
1758
  border-radius: 2px;
1759
1759
  }
1760
1760
 
1761
1761
  div::-webkit-scrollbar-thumb:hover {
1762
- background: ${r}dd;
1762
+ background: ${t}dd;
1763
1763
  }
1764
1764
  ` })
1765
1765
  ]
1766
1766
  }
1767
1767
  );
1768
1768
  }
1769
- function ne(n, t) {
1769
+ function ne(n, r) {
1770
1770
  return {
1771
1771
  border: "none",
1772
- backgroundColor: t,
1772
+ backgroundColor: r,
1773
1773
  color: n,
1774
1774
  cursor: "pointer",
1775
1775
  padding: "10px",
@@ -1782,133 +1782,133 @@ function ne(n, t) {
1782
1782
  };
1783
1783
  }
1784
1784
  function Pe(n) {
1785
- var t, s, r = "";
1786
- if (typeof n == "string" || typeof n == "number") r += n;
1785
+ var r, s, t = "";
1786
+ if (typeof n == "string" || typeof n == "number") t += n;
1787
1787
  else if (typeof n == "object") if (Array.isArray(n)) {
1788
1788
  var o = n.length;
1789
- for (t = 0; t < o; t++) n[t] && (s = Pe(n[t])) && (r && (r += " "), r += s);
1790
- } else for (s in n) n[s] && (r && (r += " "), r += s);
1791
- return r;
1789
+ for (r = 0; r < o; r++) n[r] && (s = Pe(n[r])) && (t && (t += " "), t += s);
1790
+ } else for (s in n) n[s] && (t && (t += " "), t += s);
1791
+ return t;
1792
1792
  }
1793
- function P() {
1794
- for (var n, t, s = 0, r = "", o = arguments.length; s < o; s++) (n = arguments[s]) && (t = Pe(n)) && (r && (r += " "), r += t);
1795
- return r;
1793
+ function C() {
1794
+ for (var n, r, s = 0, t = "", o = arguments.length; s < o; s++) (n = arguments[s]) && (r = Pe(n)) && (t && (t += " "), t += r);
1795
+ return t;
1796
1796
  }
1797
- const Dt = ze(
1797
+ const Lt = _e(
1798
1798
  ({
1799
1799
  text: n,
1800
- icon: t,
1800
+ icon: r,
1801
1801
  iconPosition: s = "left",
1802
- primaryTheme: r = !0,
1802
+ primaryTheme: t = !0,
1803
1803
  primaryColor: o = "#3b82f6",
1804
1804
  size: l = "md",
1805
1805
  rounded: i = !0,
1806
1806
  notificationDot: d = !1,
1807
- dotColor: $ = "#ef4444",
1808
- count: m,
1809
- pulse: b = !1,
1807
+ dotColor: j = "#ef4444",
1808
+ count: h,
1809
+ pulse: g = !1,
1810
1810
  className: c,
1811
- onClick: u
1811
+ onClick: f
1812
1812
  }) => {
1813
- const k = {
1813
+ const N = {
1814
1814
  sm: "px-2 py-0.5 text-xs",
1815
1815
  md: "px-3 py-1 text-xs",
1816
1816
  lg: "px-4 py-1.5 text-sm"
1817
- }, T = r ? "bg-[var(--primary)] text-white" : "", h = r ? {} : {
1817
+ }, z = t ? "bg-[var(--primary)] text-white" : "", w = t ? {} : {
1818
1818
  backgroundColor: o,
1819
1819
  color: "#fff"
1820
1820
  };
1821
1821
  return /* @__PURE__ */ e.jsxs(
1822
1822
  "span",
1823
1823
  {
1824
- onClick: u,
1825
- style: r ? void 0 : h,
1826
- className: P(
1824
+ onClick: f,
1825
+ style: t ? void 0 : w,
1826
+ className: C(
1827
1827
  "relative inline-flex items-center justify-center gap-1 font-medium",
1828
1828
  "transition-all duration-200 select-none",
1829
1829
  i ? "rounded-full" : "rounded-md",
1830
- k[l],
1831
- T,
1832
- u && "cursor-pointer hover:opacity-90",
1830
+ N[l],
1831
+ z,
1832
+ f && "cursor-pointer hover:opacity-90",
1833
1833
  c
1834
1834
  ),
1835
1835
  children: [
1836
1836
  d && /* @__PURE__ */ e.jsx(
1837
1837
  "span",
1838
1838
  {
1839
- style: r ? void 0 : { backgroundColor: $ },
1840
- className: P(
1839
+ style: t ? void 0 : { backgroundColor: j },
1840
+ className: C(
1841
1841
  "absolute -top-1 -right-1 w-2 h-2 rounded-full",
1842
- b && "animate-ping",
1843
- r ? "bg-red-500" : ""
1842
+ g && "animate-ping",
1843
+ t ? "bg-red-500" : ""
1844
1844
  )
1845
1845
  }
1846
1846
  ),
1847
- m !== void 0 && /* @__PURE__ */ e.jsx(
1847
+ h !== void 0 && /* @__PURE__ */ e.jsx(
1848
1848
  "span",
1849
1849
  {
1850
- style: r ? void 0 : { backgroundColor: $ },
1851
- className: P(
1850
+ style: t ? void 0 : { backgroundColor: j },
1851
+ className: C(
1852
1852
  "absolute -top-2 -right-2 min-w-[18px] h-[18px] px-1 text-[10px]",
1853
1853
  "flex items-center justify-center rounded-full text-white",
1854
- r ? "bg-red-500" : ""
1854
+ t ? "bg-red-500" : ""
1855
1855
  ),
1856
- children: m
1856
+ children: h
1857
1857
  }
1858
1858
  ),
1859
- t && s === "left" && /* @__PURE__ */ e.jsx("span", { className: "flex items-center", children: t }),
1859
+ r && s === "left" && /* @__PURE__ */ e.jsx("span", { className: "flex items-center", children: r }),
1860
1860
  n && /* @__PURE__ */ e.jsx("span", { children: n }),
1861
- t && s === "right" && /* @__PURE__ */ e.jsx("span", { className: "flex items-center", children: t })
1861
+ r && s === "right" && /* @__PURE__ */ e.jsx("span", { className: "flex items-center", children: r })
1862
1862
  ]
1863
1863
  }
1864
1864
  );
1865
1865
  }
1866
1866
  );
1867
- Dt.displayName = "Badge";
1868
- const Ot = de(
1867
+ Lt.displayName = "Badge";
1868
+ const Dt = ie(
1869
1869
  ({
1870
1870
  children: n,
1871
- iconBefore: t,
1871
+ iconBefore: r,
1872
1872
  iconAfter: s,
1873
- loading: r = !1,
1873
+ loading: t = !1,
1874
1874
  loadingText: o = "Loading...",
1875
1875
  fullWidth: l = !1,
1876
1876
  primaryTheme: i = !0,
1877
1877
  primaryColor: d = "#3b82f6",
1878
- size: $ = "md",
1879
- disabled: m,
1880
- className: b,
1878
+ size: j = "md",
1879
+ disabled: h,
1880
+ className: g,
1881
1881
  ...c
1882
- }, u) => {
1883
- const k = {
1882
+ }, f) => {
1883
+ const N = {
1884
1884
  sm: "px-3 py-1.5 text-sm",
1885
1885
  md: "px-5 py-2.5 text-sm",
1886
1886
  lg: "px-6 py-3 text-base"
1887
- }, T = i ? "bg-[var(--primary)] text-white hover:bg-[var(--primary)]/90 focus:ring-[var(--primary)]/30" : "", h = i ? {} : {
1887
+ }, z = i ? "bg-[var(--primary)] text-white hover:bg-[var(--primary)]/90 focus:ring-[var(--primary)]/30" : "", w = i ? {} : {
1888
1888
  backgroundColor: d,
1889
1889
  color: "#fff"
1890
1890
  };
1891
1891
  return /* @__PURE__ */ e.jsx(
1892
1892
  "button",
1893
1893
  {
1894
- ref: u,
1895
- disabled: m || r,
1896
- style: i ? void 0 : h,
1897
- className: P(
1894
+ ref: f,
1895
+ disabled: h || t,
1896
+ style: i ? void 0 : w,
1897
+ className: C(
1898
1898
  "inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-200",
1899
1899
  "focus:outline-none focus:ring-2 focus:ring-offset-1",
1900
- k[$],
1901
- T,
1900
+ N[j],
1901
+ z,
1902
1902
  l && "w-full",
1903
- (m || r) && "opacity-60 cursor-not-allowed",
1904
- b
1903
+ (h || t) && "opacity-60 cursor-not-allowed",
1904
+ g
1905
1905
  ),
1906
1906
  ...c,
1907
- children: r ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1907
+ children: t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1908
1908
  /* @__PURE__ */ e.jsx("span", { className: "w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin" }),
1909
1909
  /* @__PURE__ */ e.jsx("span", { children: o })
1910
1910
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1911
- t && /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: t }),
1911
+ r && /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: r }),
1912
1912
  /* @__PURE__ */ e.jsx("span", { children: n }),
1913
1913
  s && /* @__PURE__ */ e.jsx("span", { className: "flex items-center justify-center", children: s })
1914
1914
  ] })
@@ -1916,91 +1916,91 @@ const Ot = de(
1916
1916
  );
1917
1917
  }
1918
1918
  );
1919
- Ot.displayName = "Button";
1920
- const Jt = ({
1919
+ Dt.displayName = "Button";
1920
+ const Xt = ({
1921
1921
  name: n,
1922
- options: t,
1922
+ options: r,
1923
1923
  selectedValues: s = [],
1924
- onChange: r,
1924
+ onChange: t,
1925
1925
  disabled: o = !1,
1926
1926
  readOnly: l = !1,
1927
1927
  required: i = !1,
1928
1928
  error: d,
1929
- className: $,
1930
- customIcon: m,
1931
- style: b,
1929
+ className: j,
1930
+ customIcon: h,
1931
+ style: g,
1932
1932
  labelStyle: c,
1933
- iconSize: u = 20,
1934
- iconCheckedBgColor: k = "#2563eb",
1935
- iconUncheckedBorderColor: T = "#9ca3af",
1936
- textColor: h = "#374151",
1937
- errorStyle: E,
1938
- darkMode: w = !1
1933
+ iconSize: f = 20,
1934
+ iconCheckedBgColor: N = "#2563eb",
1935
+ iconUncheckedBorderColor: z = "#9ca3af",
1936
+ textColor: w = "#374151",
1937
+ errorStyle: M,
1938
+ darkMode: k = !1
1939
1939
  }) => {
1940
- const z = K(null), [A, R] = D(null), v = (g) => {
1941
- if (!r || o || l) return;
1942
- const p = s.includes(g) ? s.filter((x) => x !== g) : [...s, g];
1943
- r(p);
1940
+ const E = K(null), [A, R] = L(null), y = (m) => {
1941
+ if (!t || o || l) return;
1942
+ const p = s.includes(m) ? s.filter((x) => x !== m) : [...s, m];
1943
+ t(p);
1944
1944
  };
1945
1945
  return X(() => {
1946
- const g = z.current;
1947
- if (!g) return;
1946
+ const m = E.current;
1947
+ if (!m) return;
1948
1948
  const p = (x) => {
1949
1949
  if (o || A === null) return;
1950
- const C = A;
1951
- (x.key === "ArrowDown" || x.key === "ArrowRight") && (x.preventDefault(), R((C + 1) % t.length)), (x.key === "ArrowUp" || x.key === "ArrowLeft") && (x.preventDefault(), R((C - 1 + t.length) % t.length)), (x.key === " " || x.key === "Enter") && (x.preventDefault(), v(t[C].value));
1950
+ const P = A;
1951
+ (x.key === "ArrowDown" || x.key === "ArrowRight") && (x.preventDefault(), R((P + 1) % r.length)), (x.key === "ArrowUp" || x.key === "ArrowLeft") && (x.preventDefault(), R((P - 1 + r.length) % r.length)), (x.key === " " || x.key === "Enter") && (x.preventDefault(), y(r[P].value));
1952
1952
  };
1953
- return g.addEventListener("keydown", p), () => g.removeEventListener("keydown", p);
1954
- }, [A, t, s, o]), /* @__PURE__ */ e.jsxs(
1953
+ return m.addEventListener("keydown", p), () => m.removeEventListener("keydown", p);
1954
+ }, [A, r, s, o]), /* @__PURE__ */ e.jsxs(
1955
1955
  "div",
1956
1956
  {
1957
- ref: z,
1957
+ ref: E,
1958
1958
  role: "group",
1959
1959
  "aria-disabled": o,
1960
1960
  "aria-invalid": !!d,
1961
1961
  tabIndex: 0,
1962
- className: P("flex flex-col gap-2", $),
1963
- style: { ...b },
1962
+ className: C("flex flex-col gap-2", j),
1963
+ style: { ...g },
1964
1964
  children: [
1965
- t.map((g, p) => {
1966
- const x = s.includes(g.value), C = A === p;
1965
+ r.map((m, p) => {
1966
+ const x = s.includes(m.value), P = A === p;
1967
1967
  return /* @__PURE__ */ e.jsxs(
1968
1968
  "label",
1969
1969
  {
1970
- className: P(
1970
+ className: C(
1971
1971
  "flex items-center justify-between cursor-pointer select-none transition-opacity",
1972
1972
  o ? "opacity-50 cursor-not-allowed" : "opacity-100",
1973
- C ? "ring-2 ring-blue-400" : ""
1973
+ P ? "ring-2 ring-blue-400" : ""
1974
1974
  ),
1975
1975
  style: { ...c },
1976
1976
  onFocus: () => R(p),
1977
1977
  children: [
1978
- /* @__PURE__ */ e.jsx("span", { style: { color: h, fontSize: 14 }, children: g.label }),
1978
+ /* @__PURE__ */ e.jsx("span", { style: { color: w, fontSize: 14 }, children: m.label }),
1979
1979
  /* @__PURE__ */ e.jsx(
1980
1980
  "input",
1981
1981
  {
1982
1982
  type: "checkbox",
1983
1983
  name: n,
1984
- value: g.value,
1984
+ value: m.value,
1985
1985
  checked: x,
1986
1986
  disabled: o || l,
1987
1987
  required: i,
1988
- onChange: () => v(g.value),
1988
+ onChange: () => y(m.value),
1989
1989
  style: { display: "none" }
1990
1990
  }
1991
1991
  ),
1992
- m ? m(x) : /* @__PURE__ */ e.jsx(
1992
+ h ? h(x) : /* @__PURE__ */ e.jsx(
1993
1993
  "span",
1994
1994
  {
1995
1995
  style: {
1996
1996
  display: "inline-flex",
1997
1997
  justifyContent: "center",
1998
1998
  alignItems: "center",
1999
- width: u,
2000
- height: u,
1999
+ width: f,
2000
+ height: f,
2001
2001
  borderRadius: 4,
2002
- border: `2px solid ${x ? k : T}`,
2003
- backgroundColor: x ? k : "transparent",
2002
+ border: `2px solid ${x ? N : z}`,
2003
+ backgroundColor: x ? N : "transparent",
2004
2004
  transition: "all 0.25s ease"
2005
2005
  },
2006
2006
  children: x && /* @__PURE__ */ e.jsx(
@@ -2012,7 +2012,7 @@ const Jt = ({
2012
2012
  strokeWidth: 3,
2013
2013
  strokeLinecap: "round",
2014
2014
  strokeLinejoin: "round",
2015
- style: { width: u * 0.6, height: u * 0.6 },
2015
+ style: { width: f * 0.6, height: f * 0.6 },
2016
2016
  children: /* @__PURE__ */ e.jsx("polyline", { points: "20 6 9 17 4 12" })
2017
2017
  }
2018
2018
  )
@@ -2020,7 +2020,7 @@ const Jt = ({
2020
2020
  )
2021
2021
  ]
2022
2022
  },
2023
- g.value
2023
+ m.value
2024
2024
  );
2025
2025
  }),
2026
2026
  d && /* @__PURE__ */ e.jsx(
@@ -2031,7 +2031,7 @@ const Jt = ({
2031
2031
  color: "#dc2626",
2032
2032
  fontSize: 12,
2033
2033
  marginTop: 4,
2034
- ...E
2034
+ ...M
2035
2035
  },
2036
2036
  children: d
2037
2037
  }
@@ -2039,93 +2039,93 @@ const Jt = ({
2039
2039
  ]
2040
2040
  }
2041
2041
  );
2042
- }, Kt = ({
2042
+ }, Jt = ({
2043
2043
  name: n,
2044
- options: t,
2044
+ options: r,
2045
2045
  selectedValue: s,
2046
- onChange: r,
2046
+ onChange: t,
2047
2047
  disabled: o = !1,
2048
2048
  readOnly: l = !1,
2049
2049
  required: i = !1,
2050
2050
  error: d,
2051
- className: $,
2052
- style: m,
2053
- labelStyle: b,
2051
+ className: j,
2052
+ style: h,
2053
+ labelStyle: g,
2054
2054
  iconSize: c = 20,
2055
- iconCheckedBgColor: u = "#2563eb",
2056
- iconUncheckedBorderColor: k = "#9ca3af",
2057
- textColor: T = "#374151",
2058
- errorStyle: h,
2059
- darkMode: E = !1
2055
+ iconCheckedBgColor: f = "#2563eb",
2056
+ iconUncheckedBorderColor: N = "#9ca3af",
2057
+ textColor: z = "#374151",
2058
+ errorStyle: w,
2059
+ darkMode: M = !1
2060
2060
  }) => {
2061
- const w = K(null), [z, A] = D(null);
2061
+ const k = K(null), [E, A] = L(null);
2062
2062
  return X(() => {
2063
- const R = w.current;
2063
+ const R = k.current;
2064
2064
  if (!R) return;
2065
- const v = (g) => {
2065
+ const y = (m) => {
2066
2066
  if (o) return;
2067
- const p = z ?? t.findIndex((x) => x.value === s) ?? 0;
2068
- if (g.key === "ArrowDown" || g.key === "ArrowRight") {
2069
- g.preventDefault();
2070
- const x = (p + 1) % t.length;
2071
- r && r(t[x].value), A(x);
2067
+ const p = E ?? r.findIndex((x) => x.value === s) ?? 0;
2068
+ if (m.key === "ArrowDown" || m.key === "ArrowRight") {
2069
+ m.preventDefault();
2070
+ const x = (p + 1) % r.length;
2071
+ t && t(r[x].value), A(x);
2072
2072
  }
2073
- if (g.key === "ArrowUp" || g.key === "ArrowLeft") {
2074
- g.preventDefault();
2075
- const x = (p - 1 + t.length) % t.length;
2076
- r && r(t[x].value), A(x);
2073
+ if (m.key === "ArrowUp" || m.key === "ArrowLeft") {
2074
+ m.preventDefault();
2075
+ const x = (p - 1 + r.length) % r.length;
2076
+ t && t(r[x].value), A(x);
2077
2077
  }
2078
2078
  };
2079
- return R.addEventListener("keydown", v), () => R.removeEventListener("keydown", v);
2080
- }, [z, t, s, r, o]), /* @__PURE__ */ e.jsxs(
2079
+ return R.addEventListener("keydown", y), () => R.removeEventListener("keydown", y);
2080
+ }, [E, r, s, t, o]), /* @__PURE__ */ e.jsxs(
2081
2081
  "div",
2082
2082
  {
2083
- ref: w,
2083
+ ref: k,
2084
2084
  role: "radiogroup",
2085
2085
  "aria-disabled": o,
2086
2086
  "aria-invalid": !!d,
2087
- className: P("flex flex-col gap-2", $),
2088
- style: { ...m },
2087
+ className: C("flex flex-col gap-2", j),
2088
+ style: { ...h },
2089
2089
  tabIndex: 0,
2090
2090
  children: [
2091
- t.map((R, v) => {
2092
- const g = s === R.value, p = z === v;
2091
+ r.map((R, y) => {
2092
+ const m = s === R.value, p = E === y;
2093
2093
  return /* @__PURE__ */ e.jsxs(
2094
2094
  "label",
2095
2095
  {
2096
- className: P(
2096
+ className: C(
2097
2097
  "flex items-center justify-between cursor-pointer select-none gap-2",
2098
2098
  o ? "opacity-50 cursor-not-allowed" : "opacity-100",
2099
2099
  p ? "ring-2 ring-blue-400" : ""
2100
2100
  ),
2101
- style: { ...b },
2101
+ style: { ...g },
2102
2102
  children: [
2103
- /* @__PURE__ */ e.jsx("span", { style: { color: T, fontSize: 14 }, children: R.label }),
2103
+ /* @__PURE__ */ e.jsx("span", { style: { color: z, fontSize: 14 }, children: R.label }),
2104
2104
  /* @__PURE__ */ e.jsx(
2105
2105
  "input",
2106
2106
  {
2107
2107
  type: "radio",
2108
2108
  name: n,
2109
2109
  value: R.value,
2110
- checked: g,
2110
+ checked: m,
2111
2111
  disabled: o || l,
2112
2112
  required: i,
2113
- onChange: () => r && r(R.value),
2113
+ onChange: () => t && t(R.value),
2114
2114
  style: { display: "none" }
2115
2115
  }
2116
2116
  ),
2117
2117
  /* @__PURE__ */ e.jsx(
2118
2118
  "span",
2119
2119
  {
2120
- className: P("inline-flex items-center justify-center rounded-full transition-all"),
2120
+ className: C("inline-flex items-center justify-center rounded-full transition-all"),
2121
2121
  style: {
2122
2122
  width: c,
2123
2123
  height: c,
2124
- border: `2px solid ${g ? u : k}`,
2125
- backgroundColor: g ? u : "transparent",
2124
+ border: `2px solid ${m ? f : N}`,
2125
+ backgroundColor: m ? f : "transparent",
2126
2126
  transition: "all 0.2s ease"
2127
2127
  },
2128
- children: g && /* @__PURE__ */ e.jsx(
2128
+ children: m && /* @__PURE__ */ e.jsx(
2129
2129
  "span",
2130
2130
  {
2131
2131
  style: {
@@ -2151,7 +2151,7 @@ const Jt = ({
2151
2151
  color: "#dc2626",
2152
2152
  fontSize: 12,
2153
2153
  marginTop: 4,
2154
- ...h
2154
+ ...w
2155
2155
  },
2156
2156
  children: d
2157
2157
  }
@@ -2159,95 +2159,95 @@ const Jt = ({
2159
2159
  ]
2160
2160
  }
2161
2161
  );
2162
- }, Zt = ({
2162
+ }, Kt = ({
2163
2163
  name: n,
2164
- options: t,
2164
+ options: r,
2165
2165
  selectedValues: s = [],
2166
- onChange: r,
2166
+ onChange: t,
2167
2167
  disabled: o = !1,
2168
2168
  readOnly: l = !1,
2169
2169
  required: i = !1,
2170
2170
  error: d,
2171
- className: $,
2172
- style: m,
2173
- labelStyle: b,
2171
+ className: j,
2172
+ style: h,
2173
+ labelStyle: g,
2174
2174
  iconSize: c = 20,
2175
- iconCheckedBgColor: u = "#2563eb",
2176
- switchBgColor: k = "#d1d5db",
2177
- textColor: T = "#374151",
2178
- errorStyle: h,
2179
- darkMode: E = !1
2175
+ iconCheckedBgColor: f = "#2563eb",
2176
+ switchBgColor: N = "#d1d5db",
2177
+ textColor: z = "#374151",
2178
+ errorStyle: w,
2179
+ darkMode: M = !1
2180
2180
  }) => {
2181
- const w = K(null), [z, A] = D(null), R = (v) => {
2182
- if (!r || o || l) return;
2183
- const g = s.includes(v) ? s.filter((p) => p !== v) : [...s, v];
2184
- r(g);
2181
+ const k = K(null), [E, A] = L(null), R = (y) => {
2182
+ if (!t || o || l) return;
2183
+ const m = s.includes(y) ? s.filter((p) => p !== y) : [...s, y];
2184
+ t(m);
2185
2185
  };
2186
2186
  return X(() => {
2187
- const v = w.current;
2188
- if (!v) return;
2189
- const g = (p) => {
2190
- if (o || z === null) return;
2191
- const x = z;
2187
+ const y = k.current;
2188
+ if (!y) return;
2189
+ const m = (p) => {
2190
+ if (o || E === null) return;
2191
+ const x = E;
2192
2192
  if (p.key === "ArrowRight" || p.key === "ArrowDown") {
2193
2193
  p.preventDefault();
2194
- const C = (x + 1) % t.length;
2195
- A(C);
2194
+ const P = (x + 1) % r.length;
2195
+ A(P);
2196
2196
  }
2197
2197
  if (p.key === "ArrowLeft" || p.key === "ArrowUp") {
2198
2198
  p.preventDefault();
2199
- const C = (x - 1 + t.length) % t.length;
2200
- A(C);
2199
+ const P = (x - 1 + r.length) % r.length;
2200
+ A(P);
2201
2201
  }
2202
- (p.key === " " || p.key === "Enter") && (p.preventDefault(), R(t[x].value));
2202
+ (p.key === " " || p.key === "Enter") && (p.preventDefault(), R(r[x].value));
2203
2203
  };
2204
- return v.addEventListener("keydown", g), () => v.removeEventListener("keydown", g);
2205
- }, [z, t, s, o]), /* @__PURE__ */ e.jsxs(
2204
+ return y.addEventListener("keydown", m), () => y.removeEventListener("keydown", m);
2205
+ }, [E, r, s, o]), /* @__PURE__ */ e.jsxs(
2206
2206
  "div",
2207
2207
  {
2208
- ref: w,
2208
+ ref: k,
2209
2209
  role: "group",
2210
2210
  "aria-disabled": o,
2211
2211
  "aria-invalid": !!d,
2212
2212
  tabIndex: 0,
2213
- className: P("flex flex-col gap-2", $),
2214
- style: { ...m },
2213
+ className: C("flex flex-col gap-2", j),
2214
+ style: { ...h },
2215
2215
  children: [
2216
- t.map((v, g) => {
2217
- const p = s.includes(v.value), x = z === g;
2216
+ r.map((y, m) => {
2217
+ const p = s.includes(y.value), x = E === m;
2218
2218
  return /* @__PURE__ */ e.jsxs(
2219
2219
  "label",
2220
2220
  {
2221
- className: P(
2221
+ className: C(
2222
2222
  "flex items-center justify-between cursor-pointer select-none transition-opacity",
2223
2223
  o ? "opacity-50 cursor-not-allowed" : "opacity-100",
2224
2224
  x ? "ring-2 ring-blue-400" : ""
2225
2225
  ),
2226
- style: { ...b },
2227
- onFocus: () => A(g),
2226
+ style: { ...g },
2227
+ onFocus: () => A(m),
2228
2228
  children: [
2229
- /* @__PURE__ */ e.jsx("span", { style: { color: T, fontSize: 14 }, children: v.label }),
2229
+ /* @__PURE__ */ e.jsx("span", { style: { color: z, fontSize: 14 }, children: y.label }),
2230
2230
  /* @__PURE__ */ e.jsx(
2231
2231
  "input",
2232
2232
  {
2233
2233
  type: "checkbox",
2234
2234
  name: n,
2235
- value: v.value,
2235
+ value: y.value,
2236
2236
  checked: p,
2237
2237
  disabled: o || l,
2238
2238
  required: i,
2239
- onChange: () => R(v.value),
2239
+ onChange: () => R(y.value),
2240
2240
  style: { display: "none" }
2241
2241
  }
2242
2242
  ),
2243
2243
  /* @__PURE__ */ e.jsx(
2244
2244
  "span",
2245
2245
  {
2246
- className: P("relative inline-flex rounded-full transition-colors"),
2246
+ className: C("relative inline-flex rounded-full transition-colors"),
2247
2247
  style: {
2248
2248
  width: c * 2,
2249
2249
  height: c * 1.1,
2250
- backgroundColor: p ? u : k,
2250
+ backgroundColor: p ? f : N,
2251
2251
  transition: "background-color 0.25s ease",
2252
2252
  borderRadius: 9999
2253
2253
  },
@@ -2272,7 +2272,7 @@ const Jt = ({
2272
2272
  )
2273
2273
  ]
2274
2274
  },
2275
- v.value
2275
+ y.value
2276
2276
  );
2277
2277
  }),
2278
2278
  d && /* @__PURE__ */ e.jsx(
@@ -2283,7 +2283,7 @@ const Jt = ({
2283
2283
  color: "#dc2626",
2284
2284
  fontSize: 12,
2285
2285
  marginTop: 4,
2286
- ...h
2286
+ ...w
2287
2287
  },
2288
2288
  children: d
2289
2289
  }
@@ -2291,131 +2291,131 @@ const Jt = ({
2291
2291
  ]
2292
2292
  }
2293
2293
  );
2294
- }, Ft = {
2294
+ }, Ot = {
2295
2295
  sm: "max-w-sm",
2296
2296
  md: "max-w-md",
2297
2297
  lg: "max-w-lg",
2298
2298
  xl: "max-w-xl",
2299
2299
  "2xl": "max-w-2xl",
2300
2300
  full: "w-full"
2301
- }, Bt = {
2301
+ }, Ft = {
2302
2302
  none: "p-0",
2303
2303
  sm: "p-4",
2304
2304
  md: "p-6",
2305
2305
  lg: "p-8",
2306
2306
  xl: "p-12"
2307
- }, Qt = ({
2307
+ }, Zt = ({
2308
2308
  size: n = "lg",
2309
- padding: t = "md",
2309
+ padding: r = "md",
2310
2310
  center: s = !0,
2311
- className: r = "",
2311
+ className: t = "",
2312
2312
  children: o
2313
2313
  }) => {
2314
- const l = P(
2314
+ const l = C(
2315
2315
  "w-full box-border",
2316
- Ft[n],
2317
- Bt[t],
2316
+ Ot[n],
2317
+ Ft[r],
2318
2318
  s && "mx-auto",
2319
- r
2319
+ t
2320
2320
  );
2321
2321
  return /* @__PURE__ */ e.jsx("div", { className: l, children: o });
2322
- }, ae = (n, t) => t == null ? "" : typeof t != "object" ? `${n}-${t}` : Object.entries(t).map(([s, r]) => `${s}:${n}-${r}`).join(" "), er = ({
2322
+ }, ae = (n, r) => r == null ? "" : typeof r != "object" ? `${n}-${r}` : Object.entries(r).map(([s, t]) => `${s}:${n}-${t}`).join(" "), Qt = ({
2323
2323
  direction: n = { sm: "column", md: "row" },
2324
- align: t = "center",
2324
+ align: r = "center",
2325
2325
  justify: s = "between",
2326
- wrap: r = "wrap",
2326
+ wrap: t = "wrap",
2327
2327
  gap: o,
2328
2328
  padding: l,
2329
2329
  margin: i,
2330
2330
  className: d,
2331
- children: $
2331
+ children: j
2332
2332
  }) => {
2333
- const m = P(
2333
+ const h = C(
2334
2334
  "flex",
2335
2335
  ae("flex", n),
2336
- ae("items", t),
2336
+ ae("items", r),
2337
2337
  ae("justify", s),
2338
- ae("flex", r),
2338
+ ae("flex", t),
2339
2339
  // wrap classes: flex-wrap, flex-nowrap, flex-wrap-reverse
2340
2340
  o ? ae("gap", o) : "",
2341
2341
  l ? ae("p", l) : "",
2342
2342
  i ? ae("m", i) : "",
2343
2343
  d
2344
2344
  );
2345
- return /* @__PURE__ */ e.jsx("div", { className: m, children: $ });
2346
- }, Re = (n, t) => t == null ? "" : typeof t != "object" ? `${n}-${t}` : Object.entries(t).map(([s, r]) => `${s}:${n}-${r}`).join(" "), De = ({
2345
+ return /* @__PURE__ */ e.jsx("div", { className: h, children: j });
2346
+ }, Te = (n, r) => r == null ? "" : typeof r != "object" ? `${n}-${r}` : Object.entries(r).map(([s, t]) => `${s}:${n}-${t}`).join(" "), Le = ({
2347
2347
  direction: n = { sm: "vertical", md: "horizontal" },
2348
- gap: t = 4,
2348
+ gap: r = 4,
2349
2349
  align: s = "center",
2350
- justify: r = "start",
2350
+ justify: t = "start",
2351
2351
  wrap: o = "nowrap",
2352
2352
  className: l,
2353
2353
  children: i
2354
2354
  }) => {
2355
- const d = P(
2355
+ const d = C(
2356
2356
  "flex",
2357
- Re("flex", n),
2357
+ Te("flex", n),
2358
2358
  // flex-col or flex-row
2359
- Re("gap", t),
2359
+ Te("gap", r),
2360
2360
  s !== "stretch" ? `items-${s}` : "items-stretch",
2361
- r !== "start" ? `justify-${r}` : "justify-start",
2361
+ t !== "start" ? `justify-${t}` : "justify-start",
2362
2362
  o !== "nowrap" ? `flex-${o}` : "flex-nowrap",
2363
2363
  l
2364
2364
  );
2365
2365
  return /* @__PURE__ */ e.jsx("div", { className: d, children: i });
2366
- }, tr = (n) => /* @__PURE__ */ e.jsx(De, { direction: "horizontal", ...n }), rr = (n) => /* @__PURE__ */ e.jsx(De, { direction: "vertical", ...n }), pe = (n, t) => t == null ? "" : typeof t != "object" ? `${n}-${t}` : Object.entries(t).map(([s, r]) => `${s}:${n}-${r}`).join(" "), nr = ({
2366
+ }, er = (n) => /* @__PURE__ */ e.jsx(Le, { direction: "horizontal", ...n }), tr = (n) => /* @__PURE__ */ e.jsx(Le, { direction: "vertical", ...n }), xe = (n, r) => r == null ? "" : typeof r != "object" ? `${n}-${r}` : Object.entries(r).map(([s, t]) => `${s}:${n}-${t}`).join(" "), rr = ({
2367
2367
  columns: n = { sm: 1, md: 2, lg: 3 },
2368
- gap: t = 4,
2368
+ gap: r = 4,
2369
2369
  padding: s = 4,
2370
- alignItems: r = "stretch",
2370
+ alignItems: t = "stretch",
2371
2371
  justifyItems: o = "stretch",
2372
2372
  className: l,
2373
2373
  children: i
2374
2374
  }) => {
2375
- const d = P(
2375
+ const d = C(
2376
2376
  "grid",
2377
- pe("grid-cols", n),
2378
- pe("gap", t),
2379
- pe("p", s),
2380
- r !== "stretch" ? `items-${r}` : "items-stretch",
2377
+ xe("grid-cols", n),
2378
+ xe("gap", r),
2379
+ xe("p", s),
2380
+ t !== "stretch" ? `items-${t}` : "items-stretch",
2381
2381
  o !== "stretch" ? `justify-items-${o}` : "justify-items-stretch",
2382
2382
  l
2383
2383
  );
2384
2384
  return /* @__PURE__ */ e.jsx("div", { className: d, children: i });
2385
- }, sr = ({
2385
+ }, nr = ({
2386
2386
  label: n = "Open Drawer",
2387
- icon: t,
2387
+ icon: r,
2388
2388
  iconPosition: s = "left",
2389
- onClick: r,
2389
+ onClick: t,
2390
2390
  className: o = ""
2391
2391
  }) => /* @__PURE__ */ e.jsxs(
2392
2392
  "button",
2393
2393
  {
2394
2394
  type: "button",
2395
- onClick: r,
2395
+ onClick: t,
2396
2396
  className: `inline-flex items-center justify-center gap-2 px-4 py-2 rounded-md font-medium text-white bg-blue-600 hover:bg-blue-700 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-400 ${o}`,
2397
2397
  children: [
2398
- t && s === "left" && t,
2398
+ r && s === "left" && r,
2399
2399
  n,
2400
- t && s === "right" && t
2400
+ r && s === "right" && r
2401
2401
  ]
2402
2402
  }
2403
- ), ar = ({
2403
+ ), sr = ({
2404
2404
  open: n,
2405
- onClose: t,
2405
+ onClose: r,
2406
2406
  position: s = "right",
2407
- size: r = "320px",
2407
+ size: t = "320px",
2408
2408
  children: o,
2409
2409
  showCloseButton: l = !0,
2410
2410
  className: i = "",
2411
2411
  overlayClassName: d = "",
2412
- closeButtonClassName: $ = ""
2412
+ closeButtonClassName: j = ""
2413
2413
  }) => {
2414
- const [m, b] = D(n);
2414
+ const [h, g] = L(n);
2415
2415
  X(() => {
2416
- n ? b(!0) : setTimeout(() => b(!1), 300);
2416
+ n ? g(!0) : setTimeout(() => g(!1), 300);
2417
2417
  }, [n]);
2418
- const c = ce(() => {
2418
+ const c = de(() => {
2419
2419
  if (n) return "translate(0,0)";
2420
2420
  switch (s) {
2421
2421
  case "left":
@@ -2430,11 +2430,11 @@ const Jt = ({
2430
2430
  return "translate(0,0)";
2431
2431
  }
2432
2432
  }, [n, s]);
2433
- return !m && !n ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2433
+ return !h && !n ? null : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2434
2434
  /* @__PURE__ */ e.jsx(
2435
2435
  "div",
2436
2436
  {
2437
- onClick: t,
2437
+ onClick: r,
2438
2438
  className: `fixed inset-0 bg-black/50 transition-opacity ${n ? "opacity-100" : "opacity-0"} ${d}`
2439
2439
  }
2440
2440
  ),
@@ -2443,8 +2443,8 @@ const Jt = ({
2443
2443
  {
2444
2444
  className: `fixed bg-white shadow-lg flex flex-col transition-transform duration-300 ${i}`,
2445
2445
  style: {
2446
- width: s === "left" || s === "right" ? r : "100%",
2447
- height: s === "top" || s === "bottom" ? r : "100%",
2446
+ width: s === "left" || s === "right" ? t : "100%",
2447
+ height: s === "top" || s === "bottom" ? t : "100%",
2448
2448
  top: (s === "bottom" || s === "top") && s === "bottom" ? "auto" : 0,
2449
2449
  bottom: s === "bottom" ? 0 : "auto",
2450
2450
  left: s === "left" ? 0 : s === "right" ? "auto" : 0,
@@ -2455,10 +2455,10 @@ const Jt = ({
2455
2455
  l && /* @__PURE__ */ e.jsx(
2456
2456
  "button",
2457
2457
  {
2458
- onClick: t,
2459
- className: `absolute top-4 right-4 p-1 rounded-full hover:bg-gray-200 transition-colors ${$}`,
2458
+ onClick: r,
2459
+ className: `absolute top-4 right-4 p-1 rounded-full hover:bg-gray-200 transition-colors ${j}`,
2460
2460
  "aria-label": "Close drawer",
2461
- children: /* @__PURE__ */ e.jsx(we, { size: 20 })
2461
+ children: /* @__PURE__ */ e.jsx(ve, { size: 20 })
2462
2462
  }
2463
2463
  ),
2464
2464
  /* @__PURE__ */ e.jsx("div", { className: "flex-1 overflow-auto p-4", children: o })
@@ -2466,44 +2466,44 @@ const Jt = ({
2466
2466
  }
2467
2467
  )
2468
2468
  ] });
2469
- }, Yt = de(
2470
- (n, t) => {
2469
+ }, Bt = ie(
2470
+ (n, r) => {
2471
2471
  const {
2472
2472
  label: s,
2473
- name: r = "",
2473
+ name: t = "",
2474
2474
  value: o,
2475
2475
  defaultValue: l,
2476
2476
  onChange: i,
2477
2477
  options: d = [],
2478
- placeholder: $ = "Select an option",
2479
- required: m,
2480
- disabled: b,
2478
+ placeholder: j = "Select an option",
2479
+ required: h,
2480
+ disabled: g,
2481
2481
  error: c,
2482
- success: u,
2483
- helperText: k,
2484
- labelIcon: T,
2485
- prefixIcon: h,
2486
- variant: E = "dark",
2487
- primaryTheme: w = !0,
2488
- primaryColor: z = "#3b82f6",
2482
+ success: f,
2483
+ helperText: N,
2484
+ labelIcon: z,
2485
+ prefixIcon: w,
2486
+ variant: M = "dark",
2487
+ primaryTheme: k = !0,
2488
+ primaryColor: E = "#3b82f6",
2489
2489
  containerClassName: A = "",
2490
2490
  labelClassName: R = "",
2491
- triggerClassName: v = "",
2492
- dropdownClassName: g = "",
2491
+ triggerClassName: y = "",
2492
+ dropdownClassName: m = "",
2493
2493
  optionClassName: p = "",
2494
2494
  className: x = ""
2495
- } = n, C = K(null);
2496
- Se(t, () => C.current);
2497
- const [L, F] = D(!1), [V, H] = D(l || ""), B = o !== void 0 ? o : V, N = d.find((j) => j.value === B);
2495
+ } = n, P = K(null);
2496
+ ze(r, () => P.current);
2497
+ const [O, q] = L(!1), [Y, W] = L(l || ""), F = o !== void 0 ? o : Y, $ = d.find((v) => v.value === F);
2498
2498
  X(() => {
2499
- const j = (I) => {
2500
- C.current && !C.current.contains(I.target) && F(!1);
2499
+ const v = (I) => {
2500
+ P.current && !P.current.contains(I.target) && q(!1);
2501
2501
  };
2502
- return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
2502
+ return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
2503
2503
  }, []);
2504
- const f = (j) => {
2505
- H(j.value), i?.(r, j.value), F(!1);
2506
- }, M = {
2504
+ const u = (v) => {
2505
+ W(v.value), i?.(t, v.value), q(!1);
2506
+ }, S = {
2507
2507
  dark: {
2508
2508
  bg: "bg-zinc-900",
2509
2509
  text: "text-white",
@@ -2518,11 +2518,11 @@ const Jt = ({
2518
2518
  dropdown: "bg-white border-gray-200",
2519
2519
  option: "text-gray-700 hover:bg-gray-100"
2520
2520
  }
2521
- }[E], U = w ? {} : { color: z }, G = w ? {} : { borderColor: z }, Z = w ? {} : { backgroundColor: `${z}20` }, a = c ? "border-rose-500" : u ? "border-emerald-500" : M.border, y = h ? "pl-12 pr-10" : "px-4";
2521
+ }[M], V = k ? {} : { color: E }, G = k ? {} : { borderColor: E }, Z = k ? {} : { backgroundColor: `${E}20` }, a = c ? "border-rose-500" : f ? "border-emerald-500" : S.border, b = w ? "pl-12 pr-10" : "px-4";
2522
2522
  return /* @__PURE__ */ e.jsxs(
2523
2523
  "div",
2524
2524
  {
2525
- ref: C,
2525
+ ref: P,
2526
2526
  className: `w-full space-y-1 ${A} ${x}`,
2527
2527
  children: [
2528
2528
  s && /* @__PURE__ */ e.jsxs(
@@ -2530,91 +2530,91 @@ const Jt = ({
2530
2530
  {
2531
2531
  className: `flex items-center gap-2 text-[13px] font-medium ${R}`,
2532
2532
  children: [
2533
- T && /* @__PURE__ */ e.jsx(
2534
- T,
2533
+ z && /* @__PURE__ */ e.jsx(
2534
+ z,
2535
2535
  {
2536
- className: w ? "w-4 h-4 text-[var(--primary)]" : "w-4 h-4",
2537
- style: w ? void 0 : U
2536
+ className: k ? "w-4 h-4 text-[var(--primary)]" : "w-4 h-4",
2537
+ style: k ? void 0 : V
2538
2538
  }
2539
2539
  ),
2540
2540
  s,
2541
- m && /* @__PURE__ */ e.jsx("span", { className: "text-rose-500", children: "*" })
2541
+ h && /* @__PURE__ */ e.jsx("span", { className: "text-rose-500", children: "*" })
2542
2542
  ]
2543
2543
  }
2544
2544
  ),
2545
2545
  /* @__PURE__ */ e.jsxs("div", { className: "relative group", children: [
2546
- h && /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 top-1/2 -translate-y-1/2 z-10", children: /* @__PURE__ */ e.jsx(
2547
- h,
2546
+ w && /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 top-1/2 -translate-y-1/2 z-10", children: /* @__PURE__ */ e.jsx(
2547
+ w,
2548
2548
  {
2549
- className: w ? "w-4 h-4 text-zinc-500 group-focus-within:text-[var(--primary)]" : "w-4 h-4 text-zinc-500",
2550
- style: w ? void 0 : U
2549
+ className: k ? "w-4 h-4 text-zinc-500 group-focus-within:text-[var(--primary)]" : "w-4 h-4 text-zinc-500",
2550
+ style: k ? void 0 : V
2551
2551
  }
2552
2552
  ) }),
2553
2553
  /* @__PURE__ */ e.jsxs(
2554
2554
  "button",
2555
2555
  {
2556
2556
  type: "button",
2557
- disabled: b,
2558
- onClick: () => F((j) => !j),
2559
- style: w ? void 0 : G,
2557
+ disabled: g,
2558
+ onClick: () => q((v) => !v),
2559
+ style: k ? void 0 : G,
2560
2560
  className: `
2561
2561
  w-full py-2.5 rounded-lg text-left text-sm
2562
2562
  border transition-all duration-200
2563
- ${M.bg} ${M.text}
2564
- ${y}
2563
+ ${S.bg} ${S.text}
2564
+ ${b}
2565
2565
  ${a}
2566
2566
  focus:ring-2
2567
- ${w ? "focus:ring-[var(--primary)]/30 focus:border-[var(--primary)]" : ""}
2567
+ ${k ? "focus:ring-[var(--primary)]/30 focus:border-[var(--primary)]" : ""}
2568
2568
  disabled:opacity-50 disabled:cursor-not-allowed
2569
- ${v}
2569
+ ${y}
2570
2570
  `,
2571
2571
  children: [
2572
- /* @__PURE__ */ e.jsx("span", { className: N ? M.text : "text-zinc-500", children: N ? N.label : $ }),
2572
+ /* @__PURE__ */ e.jsx("span", { className: $ ? S.text : "text-zinc-500", children: $ ? $.label : j }),
2573
2573
  /* @__PURE__ */ e.jsx(
2574
- Me,
2574
+ Se,
2575
2575
  {
2576
- className: `absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 transition-transform ${L ? "rotate-180" : ""} text-zinc-400`
2576
+ className: `absolute right-4 top-1/2 -translate-y-1/2 w-4 h-4 transition-transform ${O ? "rotate-180" : ""} text-zinc-400`
2577
2577
  }
2578
2578
  )
2579
2579
  ]
2580
2580
  }
2581
2581
  ),
2582
- L && /* @__PURE__ */ e.jsx(
2582
+ O && /* @__PURE__ */ e.jsx(
2583
2583
  "div",
2584
2584
  {
2585
2585
  className: `
2586
2586
  absolute z-50 mt-2 w-full rounded-xl border shadow-xl overflow-hidden
2587
- ${M.dropdown}
2588
- ${g}
2587
+ ${S.dropdown}
2588
+ ${m}
2589
2589
  `,
2590
- children: /* @__PURE__ */ e.jsx("ul", { className: "max-h-60 overflow-y-auto", children: d.map((j) => {
2591
- const I = B === j.value;
2590
+ children: /* @__PURE__ */ e.jsx("ul", { className: "max-h-60 overflow-y-auto", children: d.map((v) => {
2591
+ const I = F === v.value;
2592
2592
  return /* @__PURE__ */ e.jsxs(
2593
2593
  "li",
2594
2594
  {
2595
- onClick: () => f(j),
2596
- style: !w && I ? Z : void 0,
2595
+ onClick: () => u(v),
2596
+ style: !k && I ? Z : void 0,
2597
2597
  className: `
2598
2598
  px-4 py-3 cursor-pointer text-sm flex items-center gap-2
2599
- ${I ? w ? "bg-[var(--primary)]/15 text-[var(--primary)]" : "" : M.option}
2599
+ ${I ? k ? "bg-[var(--primary)]/15 text-[var(--primary)]" : "" : S.option}
2600
2600
  ${p}
2601
2601
  `,
2602
2602
  children: [
2603
- j.icon && /* @__PURE__ */ e.jsx("span", { children: j.icon }),
2604
- j.label
2603
+ v.icon && /* @__PURE__ */ e.jsx("span", { children: v.icon }),
2604
+ v.label
2605
2605
  ]
2606
2606
  },
2607
- j.value
2607
+ v.value
2608
2608
  );
2609
2609
  }) })
2610
2610
  }
2611
2611
  )
2612
2612
  ] }),
2613
- (k || c) && /* @__PURE__ */ e.jsx(
2613
+ (N || c) && /* @__PURE__ */ e.jsx(
2614
2614
  "p",
2615
2615
  {
2616
- className: `text-xs ${c ? "text-rose-500" : u ? "text-emerald-500" : "text-zinc-500"}`,
2617
- children: typeof c == "string" ? c : k
2616
+ className: `text-xs ${c ? "text-rose-500" : f ? "text-emerald-500" : "text-zinc-500"}`,
2617
+ children: typeof c == "string" ? c : N
2618
2618
  }
2619
2619
  )
2620
2620
  ]
@@ -2622,78 +2622,78 @@ const Jt = ({
2622
2622
  );
2623
2623
  }
2624
2624
  );
2625
- Yt.displayName = "Dropdown";
2626
- const or = de((n, t) => {
2625
+ Bt.displayName = "Dropdown";
2626
+ const ar = ie((n, r) => {
2627
2627
  const {
2628
2628
  label: s,
2629
- name: r = "",
2629
+ name: t = "",
2630
2630
  type: o = "text",
2631
2631
  placeholder: l = "",
2632
2632
  value: i,
2633
2633
  defaultValue: d,
2634
- onChange: $,
2635
- required: m,
2636
- disabled: b,
2634
+ onChange: j,
2635
+ required: h,
2636
+ disabled: g,
2637
2637
  readOnly: c,
2638
- error: u,
2639
- success: k,
2640
- helperText: T,
2641
- icon: h,
2642
- prefix: E,
2643
- prefixIcon: w,
2644
- suffixIcon: z,
2638
+ error: f,
2639
+ success: N,
2640
+ helperText: z,
2641
+ icon: w,
2642
+ prefix: M,
2643
+ prefixIcon: k,
2644
+ suffixIcon: E,
2645
2645
  min: A,
2646
2646
  max: R,
2647
- step: v,
2648
- rows: g = 4,
2647
+ step: y,
2648
+ rows: m = 4,
2649
2649
  primaryTheme: p = !0,
2650
2650
  primaryColor: x = "#3b82f6",
2651
- className: C = ""
2652
- } = n, L = K(null);
2653
- Se(t, () => L.current);
2654
- const [F, V] = D(d || ""), [H, B] = D(!1), N = !!w, f = !!E, M = N || f, U = i !== void 0 ? i : F, G = (q) => {
2655
- const te = q.target.value;
2656
- V(te), $?.(r, te);
2657
- }, Z = (q) => {
2658
- o === "number" && q.key === "-" && q.preventDefault();
2659
- }, a = () => M ? N && f ? "pl-20 pr-4" : f ? "pl-14 pr-4" : N ? "pl-10 pr-4" : "px-4" : "px-4", y = p ? {} : {
2651
+ className: P = ""
2652
+ } = n, O = K(null);
2653
+ ze(r, () => O.current);
2654
+ const [q, Y] = L(d || ""), [W, F] = L(!1), $ = !!k, u = !!M, S = $ || u, V = i !== void 0 ? i : q, G = (H) => {
2655
+ const te = H.target.value;
2656
+ Y(te), j?.(t, te);
2657
+ }, Z = (H) => {
2658
+ o === "number" && H.key === "-" && H.preventDefault();
2659
+ }, a = () => S ? $ && u ? "pl-20 pr-4" : u ? "pl-14 pr-4" : $ ? "pl-10 pr-4" : "px-4" : "px-4", b = p ? {} : {
2660
2660
  borderColor: x,
2661
2661
  boxShadow: `0 0 0 1px ${x}`
2662
- }, j = p ? {} : { color: x }, I = u ? "border-red-500" : k ? "border-emerald-500" : "border-zinc-300 dark:border-zinc-800";
2663
- return /* @__PURE__ */ e.jsxs("div", { className: `w-full space-y-1 ${C}`, children: [
2662
+ }, v = p ? {} : { color: x }, I = f ? "border-red-500" : N ? "border-emerald-500" : "border-zinc-300 dark:border-zinc-800";
2663
+ return /* @__PURE__ */ e.jsxs("div", { className: `w-full space-y-1 ${P}`, children: [
2664
2664
  s && /* @__PURE__ */ e.jsxs("label", { className: "flex items-center gap-2 text-[12px] font-medium text-gray-700 dark:text-zinc-100", children: [
2665
- h && /* @__PURE__ */ e.jsx(
2666
- h,
2665
+ w && /* @__PURE__ */ e.jsx(
2666
+ w,
2667
2667
  {
2668
2668
  size: 16,
2669
2669
  className: p ? "text-[var(--primary)]" : "",
2670
- style: p ? void 0 : j
2670
+ style: p ? void 0 : v
2671
2671
  }
2672
2672
  ),
2673
2673
  s,
2674
- m && /* @__PURE__ */ e.jsx("span", { className: "text-red-500", children: "*" })
2674
+ h && /* @__PURE__ */ e.jsx("span", { className: "text-red-500", children: "*" })
2675
2675
  ] }),
2676
2676
  /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
2677
- M && /* @__PURE__ */ e.jsxs("div", { className: "absolute inset-y-0 left-0 flex items-center pl-3 gap-2 text-sm text-zinc-400 pointer-events-none", children: [
2678
- w && /* @__PURE__ */ e.jsx(w, { size: 14 }),
2679
- f && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2680
- /* @__PURE__ */ e.jsx("span", { className: "font-medium text-zinc-600 dark:text-zinc-200", children: E }),
2677
+ S && /* @__PURE__ */ e.jsxs("div", { className: "absolute inset-y-0 left-0 flex items-center pl-3 gap-2 text-sm text-zinc-400 pointer-events-none", children: [
2678
+ k && /* @__PURE__ */ e.jsx(k, { size: 14 }),
2679
+ u && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2680
+ /* @__PURE__ */ e.jsx("span", { className: "font-medium text-zinc-600 dark:text-zinc-200", children: M }),
2681
2681
  /* @__PURE__ */ e.jsx("span", { className: "h-4 w-px bg-zinc-300 dark:bg-zinc-700" })
2682
2682
  ] })
2683
2683
  ] }),
2684
2684
  o === "textarea" ? /* @__PURE__ */ e.jsx(
2685
2685
  "textarea",
2686
2686
  {
2687
- ref: L,
2688
- name: r,
2689
- value: U,
2687
+ ref: O,
2688
+ name: t,
2689
+ value: V,
2690
2690
  onChange: G,
2691
2691
  placeholder: l,
2692
- required: m,
2693
- disabled: b,
2692
+ required: h,
2693
+ disabled: g,
2694
2694
  readOnly: c,
2695
- rows: g,
2696
- style: p ? void 0 : y,
2695
+ rows: m,
2696
+ style: p ? void 0 : b,
2697
2697
  className: `
2698
2698
  w-full rounded-lg text-sm
2699
2699
  bg-white dark:bg-zinc-900 border
@@ -2709,20 +2709,20 @@ const or = de((n, t) => {
2709
2709
  ) : /* @__PURE__ */ e.jsx(
2710
2710
  "input",
2711
2711
  {
2712
- ref: L,
2713
- type: o === "password" ? H ? "text" : "password" : o,
2714
- name: r,
2715
- value: U,
2712
+ ref: O,
2713
+ type: o === "password" ? W ? "text" : "password" : o,
2714
+ name: t,
2715
+ value: V,
2716
2716
  onChange: G,
2717
2717
  onKeyDown: Z,
2718
2718
  placeholder: l,
2719
- required: m,
2720
- disabled: b,
2719
+ required: h,
2720
+ disabled: g,
2721
2721
  readOnly: c,
2722
2722
  min: o === "number" ? A ?? 0 : void 0,
2723
2723
  max: R,
2724
- step: v,
2725
- style: p ? void 0 : y,
2724
+ step: y,
2725
+ style: p ? void 0 : b,
2726
2726
  className: `
2727
2727
  w-full rounded-lg text-sm
2728
2728
  bg-white dark:bg-zinc-900 border
@@ -2741,114 +2741,114 @@ const or = de((n, t) => {
2741
2741
  "button",
2742
2742
  {
2743
2743
  type: "button",
2744
- onClick: () => B(!H),
2744
+ onClick: () => F(!W),
2745
2745
  className: "absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400",
2746
- children: H ? /* @__PURE__ */ e.jsx(st, { size: 18 }) : /* @__PURE__ */ e.jsx(ot, { size: 18 })
2746
+ children: W ? /* @__PURE__ */ e.jsx(nt, { size: 18 }) : /* @__PURE__ */ e.jsx(at, { size: 18 })
2747
2747
  }
2748
2748
  ),
2749
- z && o !== "password" && /* @__PURE__ */ e.jsx("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400", children: z })
2749
+ E && o !== "password" && /* @__PURE__ */ e.jsx("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-zinc-400", children: E })
2750
2750
  ] }),
2751
- (T || u) && /* @__PURE__ */ e.jsx(
2751
+ (z || f) && /* @__PURE__ */ e.jsx(
2752
2752
  "p",
2753
2753
  {
2754
- className: `text-xs ${u ? "text-red-500" : k ? "text-emerald-500" : "text-zinc-500"}`,
2755
- children: u && typeof u == "string" ? u : T
2754
+ className: `text-xs ${f ? "text-red-500" : N ? "text-emerald-500" : "text-zinc-500"}`,
2755
+ children: f && typeof f == "string" ? f : z
2756
2756
  }
2757
2757
  )
2758
2758
  ] });
2759
- }), lr = ({
2759
+ }), or = ({
2760
2760
  src: n,
2761
- alt: t = "Image",
2761
+ alt: r = "Image",
2762
2762
  title: s,
2763
- width: r = "w-full",
2763
+ width: t = "w-full",
2764
2764
  height: o = "h-auto",
2765
2765
  rounded: l = "rounded-lg",
2766
2766
  borderColor: i = "transparent",
2767
2767
  borderWidth: d = "0",
2768
- shadow: $ = !1,
2769
- opacity: m = 1,
2770
- objectFit: b = "cover",
2768
+ shadow: j = !1,
2769
+ opacity: h = 1,
2770
+ objectFit: g = "cover",
2771
2771
  overlayText: c,
2772
- overlayColor: u = "rgba(0,0,0,0.5)",
2773
- svgIcon: k,
2774
- responsive: T = !1,
2775
- p: h,
2776
- m: E,
2777
- hoverScale: w = 1.05,
2778
- hoverRotate: z = 0,
2772
+ overlayColor: f = "rgba(0,0,0,0.5)",
2773
+ svgIcon: N,
2774
+ responsive: z = !1,
2775
+ p: w,
2776
+ m: M,
2777
+ hoverScale: k = 1.05,
2778
+ hoverRotate: E = 0,
2779
2779
  hoverOpacity: A,
2780
2780
  hoverShadow: R = !1,
2781
- transitionDuration: v = "300ms",
2782
- overflow: g = "hidden",
2781
+ transitionDuration: y = "300ms",
2782
+ overflow: m = "hidden",
2783
2783
  className: p = "",
2784
2784
  style: x,
2785
- onClick: C,
2786
- onLoad: L,
2787
- onError: F
2785
+ onClick: P,
2786
+ onLoad: O,
2787
+ onError: q
2788
2788
  }) => {
2789
- const V = ce(() => [
2789
+ const Y = de(() => [
2790
2790
  "relative inline-block transition-all",
2791
- $ ? "shadow-md" : "",
2791
+ j ? "shadow-md" : "",
2792
2792
  l,
2793
- h ?? "",
2794
- E ?? "",
2795
- T ? "w-full h-auto" : "",
2793
+ w ?? "",
2794
+ M ?? "",
2795
+ z ? "w-full h-auto" : "",
2796
2796
  p
2797
- ].join(" "), [$, l, h, E, T, p]), H = ce(
2797
+ ].join(" "), [j, l, w, M, z, p]), W = de(
2798
2798
  () => ({
2799
- width: typeof r == "number" ? r : void 0,
2799
+ width: typeof t == "number" ? t : void 0,
2800
2800
  height: typeof o == "number" ? o : void 0,
2801
- objectFit: b,
2802
- opacity: m,
2801
+ objectFit: g,
2802
+ opacity: h,
2803
2803
  borderColor: i,
2804
2804
  borderWidth: d,
2805
- transition: `all ${v} ease`,
2805
+ transition: `all ${y} ease`,
2806
2806
  ...x
2807
2807
  }),
2808
- [r, o, b, m, i, d, v, x]
2809
- ), B = ce(() => {
2810
- switch (g) {
2808
+ [t, o, g, h, i, d, y, x]
2809
+ ), F = de(() => {
2810
+ switch (m) {
2811
2811
  case "x":
2812
2812
  return { overflowX: "hidden" };
2813
2813
  case "y":
2814
2814
  return { overflowY: "hidden" };
2815
2815
  default:
2816
- return { overflow: g };
2816
+ return { overflow: m };
2817
2817
  }
2818
- }, [g]), N = (M) => {
2819
- A !== void 0 && (M.currentTarget.style.opacity = A.toString()), M.currentTarget.style.transform = `scale(${w}) rotate(${z}deg)`, R && (M.currentTarget.style.boxShadow = "0 8px 20px rgba(0,0,0,0.3)");
2820
- }, f = (M) => {
2821
- M.currentTarget.style.opacity = m.toString(), M.currentTarget.style.transform = "scale(1) rotate(0deg)", R && (M.currentTarget.style.boxShadow = "");
2818
+ }, [m]), $ = (S) => {
2819
+ A !== void 0 && (S.currentTarget.style.opacity = A.toString()), S.currentTarget.style.transform = `scale(${k}) rotate(${E}deg)`, R && (S.currentTarget.style.boxShadow = "0 8px 20px rgba(0,0,0,0.3)");
2820
+ }, u = (S) => {
2821
+ S.currentTarget.style.opacity = h.toString(), S.currentTarget.style.transform = "scale(1) rotate(0deg)", R && (S.currentTarget.style.boxShadow = "");
2822
2822
  };
2823
2823
  return /* @__PURE__ */ e.jsxs(
2824
2824
  "div",
2825
2825
  {
2826
2826
  role: "img",
2827
- "aria-label": t,
2828
- title: s || t,
2829
- onClick: C,
2830
- className: V,
2831
- style: { position: "relative", cursor: C ? "pointer" : "default", ...B },
2827
+ "aria-label": r,
2828
+ title: s || r,
2829
+ onClick: P,
2830
+ className: Y,
2831
+ style: { position: "relative", cursor: P ? "pointer" : "default", ...F },
2832
2832
  children: [
2833
- k ? /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex items-center justify-center", children: k }) : /* @__PURE__ */ e.jsx(
2833
+ N ? /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex items-center justify-center", children: N }) : /* @__PURE__ */ e.jsx(
2834
2834
  "img",
2835
2835
  {
2836
2836
  src: n,
2837
- alt: t,
2838
- title: s || t,
2837
+ alt: r,
2838
+ title: s || r,
2839
2839
  loading: "lazy",
2840
- style: H,
2840
+ style: W,
2841
2841
  className: "block",
2842
- onLoad: L,
2843
- onError: F,
2844
- onMouseEnter: N,
2845
- onMouseLeave: f
2842
+ onLoad: O,
2843
+ onError: q,
2844
+ onMouseEnter: $,
2845
+ onMouseLeave: u
2846
2846
  }
2847
2847
  ),
2848
2848
  c && /* @__PURE__ */ e.jsx(
2849
2849
  "div",
2850
2850
  {
2851
- style: { backgroundColor: u },
2851
+ style: { backgroundColor: f },
2852
2852
  className: "absolute inset-0 flex items-center justify-center text-white font-bold text-center p-4",
2853
2853
  children: c
2854
2854
  }
@@ -2856,39 +2856,39 @@ const or = de((n, t) => {
2856
2856
  ]
2857
2857
  }
2858
2858
  );
2859
- }, Oe = ({
2859
+ }, De = ({
2860
2860
  text: n,
2861
- icon: t,
2861
+ icon: r,
2862
2862
  onClick: s,
2863
- subItems: r,
2863
+ subItems: t,
2864
2864
  isInline: o,
2865
2865
  isOrdered: l,
2866
2866
  primaryTheme: i = !0,
2867
2867
  primaryColor: d = "#3b82f6",
2868
- itemClassName: $,
2869
- bulletClassName: m
2868
+ itemClassName: j,
2869
+ bulletClassName: h
2870
2870
  }) => {
2871
- const b = i ? {} : { color: d }, c = i ? {} : { backgroundColor: d };
2872
- return /* @__PURE__ */ e.jsxs("li", { className: P(!o && "mb-3"), children: [
2871
+ const g = i ? {} : { color: d }, c = i ? {} : { backgroundColor: d };
2872
+ return /* @__PURE__ */ e.jsxs("li", { className: C(!o && "mb-3"), children: [
2873
2873
  /* @__PURE__ */ e.jsxs(
2874
2874
  "div",
2875
2875
  {
2876
2876
  onClick: s,
2877
- style: i ? void 0 : b,
2878
- className: P(
2877
+ style: i ? void 0 : g,
2878
+ className: C(
2879
2879
  "flex items-center gap-2 text-sm text-zinc-800 dark:text-zinc-200 transition-all",
2880
2880
  s && (i ? "cursor-pointer hover:text-[var(--primary)]" : "cursor-pointer"),
2881
- $
2881
+ j
2882
2882
  ),
2883
2883
  children: [
2884
- t ? /* @__PURE__ */ e.jsx("span", { className: "text-base", children: t }) : !o && !l && /* @__PURE__ */ e.jsx(
2884
+ r ? /* @__PURE__ */ e.jsx("span", { className: "text-base", children: r }) : !o && !l && /* @__PURE__ */ e.jsx(
2885
2885
  "span",
2886
2886
  {
2887
2887
  style: i ? void 0 : c,
2888
- className: P(
2888
+ className: C(
2889
2889
  "w-2 h-2 rounded-full",
2890
2890
  i && "bg-[var(--primary)]",
2891
- m
2891
+ h
2892
2892
  )
2893
2893
  }
2894
2894
  ),
@@ -2896,46 +2896,46 @@ const or = de((n, t) => {
2896
2896
  ]
2897
2897
  }
2898
2898
  ),
2899
- r && r.length > 0 && /* @__PURE__ */ e.jsx(
2899
+ t && t.length > 0 && /* @__PURE__ */ e.jsx(
2900
2900
  "ul",
2901
2901
  {
2902
- className: P(
2902
+ className: C(
2903
2903
  "pl-5 mt-2 space-y-2",
2904
2904
  l ? "list-decimal" : "list-none"
2905
2905
  ),
2906
- children: r.map((u, k) => /* @__PURE__ */ e.jsx(
2907
- Oe,
2906
+ children: t.map((f, N) => /* @__PURE__ */ e.jsx(
2907
+ De,
2908
2908
  {
2909
- ...u,
2909
+ ...f,
2910
2910
  isInline: !1,
2911
2911
  isOrdered: l,
2912
2912
  primaryTheme: i,
2913
2913
  primaryColor: d,
2914
- itemClassName: $,
2915
- bulletClassName: m
2914
+ itemClassName: j,
2915
+ bulletClassName: h
2916
2916
  },
2917
- k
2917
+ N
2918
2918
  ))
2919
2919
  }
2920
2920
  )
2921
2921
  ] });
2922
- }, ir = ({
2922
+ }, lr = ({
2923
2923
  title: n,
2924
- titleIcon: t,
2924
+ titleIcon: r,
2925
2925
  items: s,
2926
- type: r = "unordered",
2926
+ type: t = "unordered",
2927
2927
  primaryTheme: o = !0,
2928
2928
  primaryColor: l = "#3b82f6",
2929
2929
  className: i,
2930
2930
  itemClassName: d,
2931
- titleClassName: $,
2932
- bulletClassName: m
2931
+ titleClassName: j,
2932
+ bulletClassName: h
2933
2933
  }) => {
2934
- const b = r === "ordered", c = r === "inline", u = b ? "ol" : "ul";
2934
+ const g = t === "ordered", c = t === "inline", f = g ? "ol" : "ul";
2935
2935
  return /* @__PURE__ */ e.jsxs(
2936
2936
  "div",
2937
2937
  {
2938
- className: P(
2938
+ className: C(
2939
2939
  "bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl p-4",
2940
2940
  i
2941
2941
  ),
@@ -2943,114 +2943,114 @@ const or = de((n, t) => {
2943
2943
  n && /* @__PURE__ */ e.jsxs(
2944
2944
  "div",
2945
2945
  {
2946
- className: P(
2946
+ className: C(
2947
2947
  "flex items-center gap-2 mb-3 text-base font-semibold text-zinc-900 dark:text-white",
2948
- $
2948
+ j
2949
2949
  ),
2950
2950
  children: [
2951
- t && /* @__PURE__ */ e.jsx("span", { children: t }),
2951
+ r && /* @__PURE__ */ e.jsx("span", { children: r }),
2952
2952
  /* @__PURE__ */ e.jsx("span", { children: n })
2953
2953
  ]
2954
2954
  }
2955
2955
  ),
2956
2956
  /* @__PURE__ */ e.jsx(
2957
- u,
2957
+ f,
2958
2958
  {
2959
- className: P(
2960
- c ? "flex flex-wrap gap-4" : b ? "list-decimal pl-5 space-y-2" : "list-none p-0"
2959
+ className: C(
2960
+ c ? "flex flex-wrap gap-4" : g ? "list-decimal pl-5 space-y-2" : "list-none p-0"
2961
2961
  ),
2962
- children: s.map((k, T) => /* @__PURE__ */ e.jsx(
2963
- Oe,
2962
+ children: s.map((N, z) => /* @__PURE__ */ e.jsx(
2963
+ De,
2964
2964
  {
2965
- ...k,
2965
+ ...N,
2966
2966
  isInline: c,
2967
- isOrdered: b,
2967
+ isOrdered: g,
2968
2968
  primaryTheme: o,
2969
2969
  primaryColor: l,
2970
2970
  itemClassName: d,
2971
- bulletClassName: m
2971
+ bulletClassName: h
2972
2972
  },
2973
- T
2973
+ z
2974
2974
  ))
2975
2975
  }
2976
2976
  )
2977
2977
  ]
2978
2978
  }
2979
2979
  );
2980
- }, cr = ({
2980
+ }, ir = ({
2981
2981
  isOpen: n,
2982
- onClose: t,
2982
+ onClose: r,
2983
2983
  children: s,
2984
- title: r,
2984
+ title: t,
2985
2985
  icon: o,
2986
2986
  ariaLabel: l,
2987
2987
  className: i,
2988
2988
  overlayClassName: d,
2989
- contentClassName: $,
2990
- closeButtonClassName: m,
2991
- disableOverlayClose: b = !1,
2989
+ contentClassName: j,
2990
+ closeButtonClassName: h,
2991
+ disableOverlayClose: g = !1,
2992
2992
  darkMode: c = !1,
2993
- transitionDuration: u = 200
2993
+ transitionDuration: f = 200
2994
2994
  }) => {
2995
- const k = K(null);
2995
+ const N = K(null);
2996
2996
  X(() => {
2997
- const h = (E) => {
2998
- E.key === "Escape" && t();
2997
+ const w = (M) => {
2998
+ M.key === "Escape" && r();
2999
2999
  };
3000
- return n && document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
3001
- }, [n, t]), X(() => {
3000
+ return n && document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
3001
+ }, [n, r]), X(() => {
3002
3002
  if (n) {
3003
- const h = document.body.style.overflow;
3003
+ const w = document.body.style.overflow;
3004
3004
  return document.body.style.overflow = "hidden", () => {
3005
- document.body.style.overflow = h;
3005
+ document.body.style.overflow = w;
3006
3006
  };
3007
3007
  }
3008
3008
  }, [n]);
3009
- const T = me(() => {
3010
- b || t();
3011
- }, [b, t]);
3009
+ const z = he(() => {
3010
+ g || r();
3011
+ }, [g, r]);
3012
3012
  return n ? /* @__PURE__ */ e.jsx(
3013
3013
  "div",
3014
3014
  {
3015
3015
  role: "dialog",
3016
3016
  "aria-modal": "true",
3017
- "aria-label": l || r || "Modal",
3018
- className: P(
3017
+ "aria-label": l || t || "Modal",
3018
+ className: C(
3019
3019
  "fixed inset-0 flex items-center justify-center z-50 transition-opacity",
3020
3020
  c ? "bg-black/80" : "bg-black/60",
3021
3021
  d
3022
3022
  ),
3023
- style: { transitionDuration: `${u}ms` },
3024
- onClick: T,
3023
+ style: { transitionDuration: `${f}ms` },
3024
+ onClick: z,
3025
3025
  children: /* @__PURE__ */ e.jsxs(
3026
3026
  "div",
3027
3027
  {
3028
- ref: k,
3029
- className: P(
3028
+ ref: N,
3029
+ className: C(
3030
3030
  "relative w-[90vw] max-w-2xl max-h-[90vh] overflow-y-auto p-6 rounded-lg shadow-lg transition-transform",
3031
3031
  c ? "bg-zinc-900 text-white" : "bg-white text-gray-900",
3032
3032
  "scale-100",
3033
- $
3033
+ j
3034
3034
  ),
3035
- style: { transitionDuration: `${u}ms` },
3036
- onClick: (h) => h.stopPropagation(),
3035
+ style: { transitionDuration: `${f}ms` },
3036
+ onClick: (w) => w.stopPropagation(),
3037
3037
  children: [
3038
3038
  /* @__PURE__ */ e.jsx(
3039
3039
  "button",
3040
3040
  {
3041
- onClick: t,
3041
+ onClick: r,
3042
3042
  "aria-label": "Close modal",
3043
- className: P(
3043
+ className: C(
3044
3044
  "absolute top-4 right-4 p-1 rounded-full hover:scale-110 transition-transform",
3045
3045
  c ? "text-white hover:text-gray-200" : "text-gray-700 hover:text-gray-900",
3046
- m
3046
+ h
3047
3047
  ),
3048
- children: /* @__PURE__ */ e.jsx(we, { size: 24 })
3048
+ children: /* @__PURE__ */ e.jsx(ve, { size: 24 })
3049
3049
  }
3050
3050
  ),
3051
- r && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
3051
+ t && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
3052
3052
  o && /* @__PURE__ */ e.jsx("span", { className: "flex-shrink-0", children: o }),
3053
- /* @__PURE__ */ e.jsx("h2", { className: "text-xl font-semibold", children: r })
3053
+ /* @__PURE__ */ e.jsx("h2", { className: "text-xl font-semibold", children: t })
3054
3054
  ] }),
3055
3055
  s
3056
3056
  ]
@@ -3058,13 +3058,13 @@ const or = de((n, t) => {
3058
3058
  )
3059
3059
  }
3060
3060
  ) : null;
3061
- }, dr = ({ children: n, style: t, className: s }) => /* @__PURE__ */ e.jsx(
3061
+ }, cr = ({ children: n, style: r, className: s }) => /* @__PURE__ */ e.jsx(
3062
3062
  "div",
3063
3063
  {
3064
- className: P("overflow-x-auto rounded-lg shadow-sm border border-gray-200", s),
3064
+ className: C("overflow-x-auto rounded-lg shadow-sm border border-gray-200", s),
3065
3065
  style: {
3066
3066
  background: "#ffffff",
3067
- ...t
3067
+ ...r
3068
3068
  },
3069
3069
  children: /* @__PURE__ */ e.jsx(
3070
3070
  "table",
@@ -3079,36 +3079,36 @@ const or = de((n, t) => {
3079
3079
  }
3080
3080
  )
3081
3081
  }
3082
- ), ur = ({
3082
+ ), dr = ({
3083
3083
  children: n,
3084
- style: t,
3084
+ style: r,
3085
3085
  className: s
3086
3086
  }) => /* @__PURE__ */ e.jsx(
3087
3087
  "thead",
3088
3088
  {
3089
- className: P("bg-gray-100 text-gray-900 font-semibold", s),
3089
+ className: C("bg-gray-100 text-gray-900 font-semibold", s),
3090
3090
  style: {
3091
- ...t
3091
+ ...r
3092
3092
  },
3093
3093
  children: n
3094
3094
  }
3095
- ), fr = ({ children: n, style: t, className: s }) => /* @__PURE__ */ e.jsx("tbody", { className: P("bg-white", s), style: { ...t }, children: n }), xr = ({
3095
+ ), ur = ({ children: n, style: r, className: s }) => /* @__PURE__ */ e.jsx("tbody", { className: C("bg-white", s), style: { ...r }, children: n }), fr = ({
3096
3096
  children: n,
3097
- style: t,
3097
+ style: r,
3098
3098
  className: s,
3099
- onClick: r,
3099
+ onClick: t,
3100
3100
  hoverBgColor: o = "#f9fafb",
3101
3101
  darkMode: l = !1
3102
3102
  }) => /* @__PURE__ */ e.jsx(
3103
3103
  "tr",
3104
3104
  {
3105
- className: P(
3105
+ className: C(
3106
3106
  "transition-colors duration-200 cursor-default",
3107
- r ? "hover:cursor-pointer" : "",
3107
+ t ? "hover:cursor-pointer" : "",
3108
3108
  s
3109
3109
  ),
3110
- style: { borderBottom: "1px solid #e5e7eb", ...t },
3111
- onClick: r,
3110
+ style: { borderBottom: "1px solid #e5e7eb", ...r },
3111
+ onClick: t,
3112
3112
  onMouseEnter: (i) => {
3113
3113
  l ? i.currentTarget.style.backgroundColor = "#1f2937" : i.currentTarget.style.backgroundColor = o;
3114
3114
  },
@@ -3117,60 +3117,60 @@ const or = de((n, t) => {
3117
3117
  },
3118
3118
  children: n
3119
3119
  }
3120
- ), pr = ({ children: n, style: t, className: s }) => /* @__PURE__ */ e.jsx(
3120
+ ), xr = ({ children: n, style: r, className: s }) => /* @__PURE__ */ e.jsx(
3121
3121
  "th",
3122
3122
  {
3123
- className: P("text-left px-4 py-3 text-sm text-gray-700 border-b-2 border-gray-200", s),
3124
- style: { ...t },
3123
+ className: C("text-left px-4 py-3 text-sm text-gray-700 border-b-2 border-gray-200", s),
3124
+ style: { ...r },
3125
3125
  children: n
3126
3126
  }
3127
- ), hr = ({ children: n, style: t, className: s }) => /* @__PURE__ */ e.jsx(
3127
+ ), pr = ({ children: n, style: r, className: s }) => /* @__PURE__ */ e.jsx(
3128
3128
  "td",
3129
3129
  {
3130
- className: P("px-4 py-3 text-sm text-gray-600", s),
3131
- style: { ...t },
3130
+ className: C("px-4 py-3 text-sm text-gray-600", s),
3131
+ style: { ...r },
3132
3132
  children: n
3133
3133
  }
3134
- ), mr = ({
3134
+ ), hr = ({
3135
3135
  tabs: n,
3136
- defaultActive: t = 0,
3136
+ defaultActive: r = 0,
3137
3137
  position: s = "top",
3138
- variant: r = "solid",
3138
+ variant: t = "solid",
3139
3139
  fullWidth: o = !1,
3140
3140
  gap: l = 8,
3141
3141
  radius: i = 8,
3142
3142
  padding: d = "12px 18px",
3143
- transitionDuration: $ = 200,
3144
- elevation: m = 1,
3145
- bordered: b = !1,
3143
+ transitionDuration: j = 200,
3144
+ elevation: h = 1,
3145
+ bordered: g = !1,
3146
3146
  primaryColor: c = "#2563eb",
3147
- backgroundColor: u = "transparent",
3148
- textColor: k = "#374151",
3149
- hoverColor: T = "#1d4ed8",
3150
- activeColor: h = "#ffffff",
3151
- borderColor: E = "#e5e7eb",
3152
- disabledColor: w = "#9ca3af",
3153
- responsiveBreakpoint: z = 768,
3147
+ backgroundColor: f = "transparent",
3148
+ textColor: N = "#374151",
3149
+ hoverColor: z = "#1d4ed8",
3150
+ activeColor: w = "#ffffff",
3151
+ borderColor: M = "#e5e7eb",
3152
+ disabledColor: k = "#9ca3af",
3153
+ responsiveBreakpoint: E = 768,
3154
3154
  showDrawerLabel: A = "Select Tab",
3155
3155
  drawerIcon: R = "☰",
3156
- onTabChange: v,
3157
- className: g = "",
3156
+ onTabChange: y,
3157
+ className: m = "",
3158
3158
  style: p,
3159
3159
  tabClassName: x = "",
3160
- contentClassName: C = "",
3161
- activeTabStyle: L,
3162
- inactiveTabStyle: F,
3163
- contentStyle: V
3160
+ contentClassName: P = "",
3161
+ activeTabStyle: O,
3162
+ inactiveTabStyle: q,
3163
+ contentStyle: Y
3164
3164
  }) => {
3165
- const [H, B] = D(t), [N, f] = D(null), [M, U] = D(!1), [G, Z] = D(!1), a = K(null);
3165
+ const [W, F] = L(r), [$, u] = L(null), [S, V] = L(!1), [G, Z] = L(!1), a = K(null);
3166
3166
  X(() => {
3167
- const _ = () => U(window.innerWidth <= z);
3168
- return _(), window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
3169
- }, [z]);
3170
- const y = (_) => {
3171
- n[_].disabled || (B(_), v?.(_), M && Z(!1));
3172
- }, j = (_, O) => {
3173
- _.key === "ArrowRight" || _.key === "ArrowDown" ? (_.preventDefault(), y((O + 1) % n.length)) : (_.key === "ArrowLeft" || _.key === "ArrowUp") && (_.preventDefault(), y((O - 1 + n.length) % n.length));
3167
+ const T = () => V(window.innerWidth <= E);
3168
+ return T(), window.addEventListener("resize", T), () => window.removeEventListener("resize", T);
3169
+ }, [E]);
3170
+ const b = (T) => {
3171
+ n[T].disabled || (F(T), y?.(T), S && Z(!1));
3172
+ }, v = (T, D) => {
3173
+ T.key === "ArrowRight" || T.key === "ArrowDown" ? (T.preventDefault(), b((D + 1) % n.length)) : (T.key === "ArrowLeft" || T.key === "ArrowUp") && (T.preventDefault(), b((D - 1 + n.length) % n.length));
3174
3174
  }, I = {
3175
3175
  padding: d,
3176
3176
  borderRadius: i,
@@ -3180,48 +3180,48 @@ const or = de((n, t) => {
3180
3180
  gap: 8,
3181
3181
  justifyContent: "center",
3182
3182
  fontWeight: 500,
3183
- transition: `all ${$}ms ease`,
3183
+ transition: `all ${j}ms ease`,
3184
3184
  background: "transparent",
3185
- border: r === "outline" ? `1px solid ${E}` : "none",
3186
- borderBottom: r === "underline" ? "2px solid transparent" : void 0,
3187
- color: k,
3185
+ border: t === "outline" ? `1px solid ${M}` : "none",
3186
+ borderBottom: t === "underline" ? "2px solid transparent" : void 0,
3187
+ color: N,
3188
3188
  width: o ? "100%" : "auto",
3189
3189
  userSelect: "none"
3190
- }, q = {
3191
- background: r === "solid" ? c : "transparent",
3192
- color: h,
3193
- borderBottom: r === "underline" ? `2px solid ${c}` : void 0,
3194
- boxShadow: m > 0 ? `0 ${m}px ${m * 4}px ${c}33` : void 0,
3195
- ...L
3190
+ }, H = {
3191
+ background: t === "solid" ? c : "transparent",
3192
+ color: w,
3193
+ borderBottom: t === "underline" ? `2px solid ${c}` : void 0,
3194
+ boxShadow: h > 0 ? `0 ${h}px ${h * 4}px ${c}33` : void 0,
3195
+ ...O
3196
3196
  }, te = {
3197
- ...r === "outline" ? { borderColor: E } : {},
3198
- ...r === "underline" ? { borderBottomColor: "transparent" } : {},
3199
- ...F
3200
- }, Y = {
3201
- color: T,
3202
- background: r === "solid" ? `${c}11` : r === "outline" ? `${c}11` : "transparent"
3197
+ ...t === "outline" ? { borderColor: M } : {},
3198
+ ...t === "underline" ? { borderBottomColor: "transparent" } : {},
3199
+ ...q
3200
+ }, B = {
3201
+ color: z,
3202
+ background: t === "solid" ? `${c}11` : t === "outline" ? `${c}11` : "transparent"
3203
3203
  }, Q = {
3204
- color: w,
3204
+ color: k,
3205
3205
  cursor: "not-allowed",
3206
3206
  opacity: 0.6
3207
3207
  }, J = {
3208
3208
  flexGrow: 1,
3209
- borderTop: b && s === "top" ? `1px solid ${E}` : void 0,
3210
- borderLeft: b && s === "left" ? `1px solid ${E}` : void 0,
3211
- borderRight: b && s === "right" ? `1px solid ${E}` : void 0,
3209
+ borderTop: g && s === "top" ? `1px solid ${M}` : void 0,
3210
+ borderLeft: g && s === "left" ? `1px solid ${M}` : void 0,
3211
+ borderRight: g && s === "right" ? `1px solid ${M}` : void 0,
3212
3212
  borderRadius: i,
3213
- ...V
3214
- }, S = s === "left" || s === "right";
3213
+ ...Y
3214
+ }, _ = s === "left" || s === "right";
3215
3215
  return /* @__PURE__ */ e.jsxs(
3216
3216
  "div",
3217
3217
  {
3218
3218
  ref: a,
3219
- className: `modern-tabs ${g}`,
3219
+ className: `modern-tabs ${m}`,
3220
3220
  style: {
3221
3221
  display: "flex",
3222
- flexDirection: S ? s === "right" ? "row-reverse" : "row" : "column",
3223
- background: u,
3224
- border: b ? `1px solid ${E}` : void 0,
3222
+ flexDirection: _ ? s === "right" ? "row-reverse" : "row" : "column",
3223
+ background: f,
3224
+ border: g ? `1px solid ${M}` : void 0,
3225
3225
  borderRadius: i,
3226
3226
  overflow: "hidden",
3227
3227
  ...p
@@ -3233,17 +3233,17 @@ const or = de((n, t) => {
3233
3233
  to { opacity: 1; transform: translateY(0); }
3234
3234
  }
3235
3235
  .modern-tabs__content {
3236
- animation: tab-fade ${$}ms ease;
3236
+ animation: tab-fade ${j}ms ease;
3237
3237
  }
3238
3238
  ` }),
3239
- M ? /* @__PURE__ */ e.jsxs("div", { style: { width: "100%", padding: 8 }, children: [
3239
+ S ? /* @__PURE__ */ e.jsxs("div", { style: { width: "100%", padding: 8 }, children: [
3240
3240
  /* @__PURE__ */ e.jsxs(
3241
3241
  "button",
3242
3242
  {
3243
3243
  onClick: () => Z(!G),
3244
3244
  style: {
3245
3245
  ...I,
3246
- ...q,
3246
+ ...H,
3247
3247
  justifyContent: "space-between",
3248
3248
  width: "100%",
3249
3249
  fontSize: 16
@@ -3254,29 +3254,29 @@ const or = de((n, t) => {
3254
3254
  ]
3255
3255
  }
3256
3256
  ),
3257
- G && /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "column", marginTop: 8, gap: l }, children: n.map((_, O) => {
3258
- const ee = O === H, re = N === O, se = _.disabled;
3257
+ G && /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "column", marginTop: 8, gap: l }, children: n.map((T, D) => {
3258
+ const ee = D === W, re = $ === D, se = T.disabled;
3259
3259
  return /* @__PURE__ */ e.jsxs(
3260
3260
  "button",
3261
3261
  {
3262
3262
  disabled: se,
3263
- onClick: () => y(O),
3264
- onKeyDown: (fe) => j(fe, O),
3265
- onMouseEnter: () => f(O),
3266
- onMouseLeave: () => f(null),
3263
+ onClick: () => b(D),
3264
+ onKeyDown: (ue) => v(ue, D),
3265
+ onMouseEnter: () => u(D),
3266
+ onMouseLeave: () => u(null),
3267
3267
  className: x,
3268
3268
  style: {
3269
3269
  ...I,
3270
- ...ee ? q : te,
3271
- ...re && !ee && !se ? Y : {},
3270
+ ...ee ? H : te,
3271
+ ...re && !ee && !se ? B : {},
3272
3272
  ...se ? Q : {}
3273
3273
  },
3274
3274
  children: [
3275
- _.icon && /* @__PURE__ */ e.jsx("span", { children: _.icon }),
3276
- _.label
3275
+ T.icon && /* @__PURE__ */ e.jsx("span", { children: T.icon }),
3276
+ T.label
3277
3277
  ]
3278
3278
  },
3279
- O
3279
+ D
3280
3280
  );
3281
3281
  }) })
3282
3282
  ] }) : /* @__PURE__ */ e.jsx(
@@ -3284,36 +3284,36 @@ const or = de((n, t) => {
3284
3284
  {
3285
3285
  style: {
3286
3286
  display: "flex",
3287
- flexDirection: S ? "column" : "row",
3287
+ flexDirection: _ ? "column" : "row",
3288
3288
  gap: l,
3289
3289
  padding: 8,
3290
- minWidth: S ? 200 : void 0
3290
+ minWidth: _ ? 200 : void 0
3291
3291
  },
3292
- children: n.map((_, O) => {
3293
- const ee = O === H, re = N === O, se = _.disabled;
3292
+ children: n.map((T, D) => {
3293
+ const ee = D === W, re = $ === D, se = T.disabled;
3294
3294
  return /* @__PURE__ */ e.jsxs(
3295
3295
  "button",
3296
3296
  {
3297
3297
  disabled: se,
3298
- onClick: () => y(O),
3299
- onKeyDown: (fe) => j(fe, O),
3300
- onMouseEnter: () => f(O),
3301
- onMouseLeave: () => f(null),
3298
+ onClick: () => b(D),
3299
+ onKeyDown: (ue) => v(ue, D),
3300
+ onMouseEnter: () => u(D),
3301
+ onMouseLeave: () => u(null),
3302
3302
  className: x,
3303
3303
  style: {
3304
3304
  ...I,
3305
- ...ee ? q : te,
3306
- ...re && !ee && !se ? Y : {},
3305
+ ...ee ? H : te,
3306
+ ...re && !ee && !se ? B : {},
3307
3307
  ...se ? Q : {}
3308
3308
  },
3309
3309
  role: "tab",
3310
3310
  "aria-selected": ee,
3311
3311
  children: [
3312
- _.icon && /* @__PURE__ */ e.jsx("span", { children: _.icon }),
3313
- _.label
3312
+ T.icon && /* @__PURE__ */ e.jsx("span", { children: T.icon }),
3313
+ T.label
3314
3314
  ]
3315
3315
  },
3316
- O
3316
+ D
3317
3317
  );
3318
3318
  })
3319
3319
  }
@@ -3321,155 +3321,87 @@ const or = de((n, t) => {
3321
3321
  /* @__PURE__ */ e.jsx(
3322
3322
  "div",
3323
3323
  {
3324
- className: `modern-tabs__content ${C}`,
3324
+ className: `modern-tabs__content ${P}`,
3325
3325
  style: J,
3326
3326
  role: "tabpanel",
3327
- children: n[H]?.content
3327
+ children: n[W]?.content
3328
3328
  }
3329
3329
  )
3330
3330
  ]
3331
3331
  }
3332
3332
  );
3333
+ }, Yt = {
3334
+ xs: "text-xs",
3335
+ sm: "text-sm",
3336
+ md: "text-base",
3337
+ lg: "text-lg",
3338
+ xl: "text-xl",
3339
+ "2xl": "text-2xl"
3333
3340
  };
3334
- function ie(n, t) {
3335
- return "#" + n.replace(/^#/, "").replace(
3336
- /../g,
3337
- (s) => ("0" + Math.min(255, Math.max(0, parseInt(s, 16) + t)).toString(16)).slice(-2)
3338
- );
3339
- }
3340
- const Vt = {
3341
- light: {
3342
- default: "#111",
3343
- primary: "#2563eb",
3344
- secondary: "#64748b",
3345
- success: "#16a34a",
3346
- danger: "#dc2626",
3347
- white: "#ffffff",
3348
- muted: "#6b7280"
3349
- },
3350
- dark: {
3351
- default: "#f8fafc",
3352
- primary: "#60a5fa",
3353
- secondary: "#94a3b8",
3354
- success: "#22c55e",
3355
- danger: "#f87171",
3356
- white: "#ffffff",
3357
- muted: "#9ca3af"
3358
- }
3359
- };
3360
- function gr({
3341
+ function mr({
3361
3342
  as: n,
3362
- children: t,
3363
- color: s = "default",
3364
- size: r = "md",
3365
- weight: o = "normal",
3366
- align: l = "left",
3367
- transform: i = "none",
3368
- italic: d = !1,
3369
- underline: $ = !1,
3370
- strikethrough: m = !1,
3371
- truncate: b = !1,
3372
- selectable: c = !0,
3373
- hoverable: u = !1,
3374
- onClick: k,
3375
- darkMode: T = !1,
3376
- baseColor: h,
3377
- className: E = "",
3378
- style: w = {},
3379
- ...z
3343
+ children: r,
3344
+ size: s = "md",
3345
+ weight: t = 400,
3346
+ align: o = "left",
3347
+ truncate: l = !1,
3348
+ className: i,
3349
+ style: d,
3350
+ ...j
3380
3351
  }) {
3381
- const A = n || "p", R = ce(() => {
3382
- if (!h) return Vt[T ? "dark" : "light"];
3383
- const L = {
3384
- default: "#111",
3385
- primary: h,
3386
- secondary: ie(h, -50),
3387
- success: ie(h, -30),
3388
- danger: "#dc2626",
3389
- white: "#ffffff",
3390
- muted: "#6b7280"
3391
- }, F = {
3392
- default: "#f8fafc",
3393
- primary: ie(h, 80),
3394
- secondary: ie(h, 120),
3395
- success: ie(h, 100),
3396
- danger: "#f87171",
3397
- white: "#ffffff",
3398
- muted: "#9ca3af"
3399
- };
3400
- return T ? F : L;
3401
- }, [h, T]), v = {
3402
- xs: "0.75rem",
3403
- sm: "0.875rem",
3404
- md: "1rem",
3405
- lg: "1.25rem",
3406
- xl: "1.5rem",
3407
- "2xl": "2rem"
3408
- }, g = {
3409
- color: R[s] || s,
3410
- fontSize: v[r] || r,
3411
- fontWeight: o,
3412
- textAlign: l,
3413
- textTransform: i,
3414
- fontStyle: d ? "italic" : "normal",
3415
- textDecoration: $ ? "underline" : m ? "line-through" : "none",
3416
- userSelect: c ? "text" : "none",
3417
- overflow: b ? "hidden" : void 0,
3418
- whiteSpace: b ? "nowrap" : void 0,
3419
- textOverflow: b ? "ellipsis" : void 0,
3420
- cursor: k ? "pointer" : "default",
3421
- transition: "all 0.25s ease-in-out",
3422
- ...w
3423
- }, C = {
3424
- className: E,
3425
- style: g,
3426
- onClick: k,
3427
- onMouseEnter: (L) => {
3428
- if (!u) return;
3429
- const F = L.currentTarget;
3430
- F instanceof HTMLElement && (F.style.opacity = "0.8");
3431
- },
3432
- onMouseLeave: (L) => {
3433
- if (!u) return;
3434
- const F = L.currentTarget;
3435
- F instanceof HTMLElement && (F.style.opacity = "1");
3352
+ const h = n || "p";
3353
+ return Re.createElement(
3354
+ h,
3355
+ {
3356
+ className: C(
3357
+ "text-inherit",
3358
+ // inherits parent color
3359
+ Yt[s] || "",
3360
+ l && "truncate",
3361
+ i
3362
+ ),
3363
+ style: {
3364
+ fontWeight: t,
3365
+ textAlign: o,
3366
+ ...d
3367
+ },
3368
+ ...j
3436
3369
  },
3437
- ...z
3438
- };
3439
- return _e.createElement(A, C, t);
3370
+ r
3371
+ );
3440
3372
  }
3441
3373
  export {
3442
- Mt as Accordion,
3443
- Xt as AudioGallery,
3444
- Gt as AudioPlayer,
3374
+ St as Accordion,
3375
+ Gt as AudioGallery,
3376
+ Ht as AudioPlayer,
3445
3377
  qt as Avatar,
3446
- Dt as Badge,
3447
- Ot as Button,
3448
- Jt as CheckboxGroup,
3449
- Qt as Container,
3450
- ar as Drawer,
3451
- sr as DrawerButton,
3452
- Yt as Dropdown,
3453
- er as FlexView,
3454
- nr as GridView,
3455
- tr as HStack,
3456
- lr as Image,
3457
- or as Input,
3458
- ir as List,
3459
- cr as Modal,
3460
- Kt as RadioGroup,
3461
- De as Stack,
3462
- Zt as SwitchGroup,
3463
- fr as TBody,
3464
- hr as TD,
3465
- pr as TH,
3466
- ur as THead,
3467
- xr as TRow,
3468
- dr as Table,
3469
- mr as Tabs,
3470
- gr as Text,
3471
- Ht as ToastProvider,
3472
- rr as VStack,
3473
- Wt as useToast
3378
+ Lt as Badge,
3379
+ Dt as Button,
3380
+ Xt as CheckboxGroup,
3381
+ Zt as Container,
3382
+ sr as Drawer,
3383
+ nr as DrawerButton,
3384
+ Bt as Dropdown,
3385
+ Qt as FlexView,
3386
+ rr as GridView,
3387
+ er as HStack,
3388
+ or as Image,
3389
+ ar as Input,
3390
+ lr as List,
3391
+ ir as Modal,
3392
+ Jt as RadioGroup,
3393
+ Le as Stack,
3394
+ Kt as SwitchGroup,
3395
+ ur as TBody,
3396
+ pr as TD,
3397
+ xr as TH,
3398
+ dr as THead,
3399
+ fr as TRow,
3400
+ cr as Table,
3401
+ hr as Tabs,
3402
+ mr as Text,
3403
+ Wt as ToastProvider,
3404
+ tr as VStack,
3405
+ Ut as useToast
3474
3406
  };
3475
3407
  //# sourceMappingURL=index.es.js.map