shekel-fe-shared-lib 1.0.2 → 1.0.6

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.mjs CHANGED
@@ -1,305 +1,28 @@
1
- import se, { useState as _, useRef as J, useEffect as z } from "react";
2
- var I = { exports: {} }, A = {};
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var K;
13
- function ne() {
14
- if (K) return A;
15
- K = 1;
16
- var s = Symbol.for("react.transitional.element"), l = Symbol.for("react.fragment");
17
- function n(r, a, c) {
18
- var u = null;
19
- if (c !== void 0 && (u = "" + c), a.key !== void 0 && (u = "" + a.key), "key" in a) {
20
- c = {};
21
- for (var f in a)
22
- f !== "key" && (c[f] = a[f]);
23
- } else c = a;
24
- return a = c.ref, {
25
- $$typeof: s,
26
- type: r,
27
- key: u,
28
- ref: a !== void 0 ? a : null,
29
- props: c
30
- };
31
- }
32
- return A.Fragment = l, A.jsx = n, A.jsxs = n, A;
33
- }
34
- var M = {};
35
- /**
36
- * @license React
37
- * react-jsx-runtime.development.js
38
- *
39
- * Copyright (c) Meta Platforms, Inc. and affiliates.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */
44
- var ee;
45
- function ae() {
46
- return ee || (ee = 1, process.env.NODE_ENV !== "production" && (function() {
47
- function s(t) {
48
- if (t == null) return null;
49
- if (typeof t == "function")
50
- return t.$$typeof === D ? null : t.displayName || t.name || null;
51
- if (typeof t == "string") return t;
52
- switch (t) {
53
- case i:
54
- return "Fragment";
55
- case b:
56
- return "Profiler";
57
- case k:
58
- return "StrictMode";
59
- case T:
60
- return "Suspense";
61
- case S:
62
- return "SuspenseList";
63
- case W:
64
- return "Activity";
65
- }
66
- if (typeof t == "object")
67
- switch (typeof t.tag == "number" && console.error(
68
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
- ), t.$$typeof) {
70
- case y:
71
- return "Portal";
72
- case $:
73
- return t.displayName || "Context";
74
- case N:
75
- return (t._context.displayName || "Context") + ".Consumer";
76
- case R:
77
- var g = t.render;
78
- return t = t.displayName, t || (t = g.displayName || g.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
79
- case L:
80
- return g = t.displayName || null, g !== null ? g : s(t.type) || "Memo";
81
- case P:
82
- g = t._payload, t = t._init;
83
- try {
84
- return s(t(g));
85
- } catch {
86
- }
87
- }
88
- return null;
89
- }
90
- function l(t) {
91
- return "" + t;
92
- }
93
- function n(t) {
94
- try {
95
- l(t);
96
- var g = !1;
97
- } catch {
98
- g = !0;
99
- }
100
- if (g) {
101
- g = console;
102
- var w = g.error, C = typeof Symbol == "function" && Symbol.toStringTag && t[Symbol.toStringTag] || t.constructor.name || "Object";
103
- return w.call(
104
- g,
105
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
- C
107
- ), l(t);
108
- }
109
- }
110
- function r(t) {
111
- if (t === i) return "<>";
112
- if (typeof t == "object" && t !== null && t.$$typeof === P)
113
- return "<...>";
114
- try {
115
- var g = s(t);
116
- return g ? "<" + g + ">" : "<...>";
117
- } catch {
118
- return "<...>";
119
- }
120
- }
121
- function a() {
122
- var t = B.A;
123
- return t === null ? null : t.getOwner();
124
- }
125
- function c() {
126
- return Error("react-stack-top-frame");
127
- }
128
- function u(t) {
129
- if (j.call(t, "key")) {
130
- var g = Object.getOwnPropertyDescriptor(t, "key").get;
131
- if (g && g.isReactWarning) return !1;
132
- }
133
- return t.key !== void 0;
134
- }
135
- function f(t, g) {
136
- function w() {
137
- G || (G = !0, console.error(
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
- g
140
- ));
141
- }
142
- w.isReactWarning = !0, Object.defineProperty(t, "key", {
143
- get: w,
144
- configurable: !0
145
- });
146
- }
147
- function m() {
148
- var t = s(this.type);
149
- return H[t] || (H[t] = !0, console.error(
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
- )), t = this.props.ref, t !== void 0 ? t : null;
152
- }
153
- function h(t, g, w, C, F, U) {
154
- var E = w.ref;
155
- return t = {
156
- $$typeof: o,
157
- type: t,
158
- key: g,
159
- props: w,
160
- _owner: C
161
- }, (E !== void 0 ? E : null) !== null ? Object.defineProperty(t, "ref", {
162
- enumerable: !1,
163
- get: m
164
- }) : Object.defineProperty(t, "ref", { enumerable: !1, value: null }), t._store = {}, Object.defineProperty(t._store, "validated", {
165
- configurable: !1,
166
- enumerable: !1,
167
- writable: !0,
168
- value: 0
169
- }), Object.defineProperty(t, "_debugInfo", {
170
- configurable: !1,
171
- enumerable: !1,
172
- writable: !0,
173
- value: null
174
- }), Object.defineProperty(t, "_debugStack", {
175
- configurable: !1,
176
- enumerable: !1,
177
- writable: !0,
178
- value: F
179
- }), Object.defineProperty(t, "_debugTask", {
180
- configurable: !1,
181
- enumerable: !1,
182
- writable: !0,
183
- value: U
184
- }), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
185
- }
186
- function v(t, g, w, C, F, U) {
187
- var E = g.children;
188
- if (E !== void 0)
189
- if (C)
190
- if (Y(E)) {
191
- for (C = 0; C < E.length; C++)
192
- p(E[C]);
193
- Object.freeze && Object.freeze(E);
194
- } else
195
- console.error(
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
- );
198
- else p(E);
199
- if (j.call(g, "key")) {
200
- E = s(t);
201
- var O = Object.keys(g).filter(function(re) {
202
- return re !== "key";
203
- });
204
- C = 0 < O.length ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}", Z[E + C] || (O = 0 < O.length ? "{" + O.join(": ..., ") + ": ...}" : "{}", console.error(
205
- `A props object containing a "key" prop is being spread into JSX:
206
- let props = %s;
207
- <%s {...props} />
208
- React keys must be passed directly to JSX without using spread:
209
- let props = %s;
210
- <%s key={someKey} {...props} />`,
211
- C,
212
- E,
213
- O,
214
- E
215
- ), Z[E + C] = !0);
216
- }
217
- if (E = null, w !== void 0 && (n(w), E = "" + w), u(g) && (n(g.key), E = "" + g.key), "key" in g) {
218
- w = {};
219
- for (var q in g)
220
- q !== "key" && (w[q] = g[q]);
221
- } else w = g;
222
- return E && f(
223
- w,
224
- typeof t == "function" ? t.displayName || t.name || "Unknown" : t
225
- ), h(
226
- t,
227
- E,
228
- w,
229
- a(),
230
- F,
231
- U
232
- );
233
- }
234
- function p(t) {
235
- d(t) ? t._store && (t._store.validated = 1) : typeof t == "object" && t !== null && t.$$typeof === P && (t._payload.status === "fulfilled" ? d(t._payload.value) && t._payload.value._store && (t._payload.value._store.validated = 1) : t._store && (t._store.validated = 1));
236
- }
237
- function d(t) {
238
- return typeof t == "object" && t !== null && t.$$typeof === o;
239
- }
240
- var x = se, o = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), B = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, Y = Array.isArray, V = console.createTask ? console.createTask : function() {
241
- return null;
242
- };
243
- x = {
244
- react_stack_bottom_frame: function(t) {
245
- return t();
246
- }
247
- };
248
- var G, H = {}, X = x.react_stack_bottom_frame.bind(
249
- x,
250
- c
251
- )(), Q = V(r(c)), Z = {};
252
- M.Fragment = i, M.jsx = function(t, g, w) {
253
- var C = 1e4 > B.recentlyCreatedOwnerStacks++;
254
- return v(
255
- t,
256
- g,
257
- w,
258
- !1,
259
- C ? Error("react-stack-top-frame") : X,
260
- C ? V(r(t)) : Q
261
- );
262
- }, M.jsxs = function(t, g, w) {
263
- var C = 1e4 > B.recentlyCreatedOwnerStacks++;
264
- return v(
265
- t,
266
- g,
267
- w,
268
- !0,
269
- C ? Error("react-stack-top-frame") : X,
270
- C ? V(r(t)) : Q
271
- );
272
- };
273
- })()), M;
274
- }
275
- var te;
276
- function le() {
277
- return te || (te = 1, process.env.NODE_ENV === "production" ? I.exports = ne() : I.exports = ae()), I.exports;
278
- }
279
- var e = le();
280
- const de = ({
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
+ import { useState as k, useRef as j, useEffect as M } from "react";
3
+ const D = ({
281
4
  variant: s = "primary",
282
- size: l = "md",
283
- fullWidth: n = !1,
284
- icon: r,
285
- iconPosition: a = "left",
286
- loading: c = !1,
287
- hoverColor: u,
288
- className: f = "",
289
- children: m,
290
- disabled: h,
5
+ size: a = "md",
6
+ fullWidth: o = !1,
7
+ icon: t,
8
+ iconPosition: c = "left",
9
+ loading: d = !1,
10
+ hoverColor: i,
11
+ className: g = "",
12
+ children: h,
13
+ disabled: m,
291
14
  ...v
292
15
  }) => {
293
- const p = "inline-flex items-center justify-center font-normal rounded-lg transition-all duration-300 ease-out focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-95", d = {
16
+ const p = "inline-flex items-center justify-center font-normal rounded-lg transition-all duration-300 ease-out focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-95", l = {
294
17
  primary: "bg-[#EC615B] hover:bg-[#D4554F] text-white focus:ring-[#EC615B] shadow-sm hover:shadow-md",
295
18
  outlined: "border border-gray-300 bg-white hover:bg-gray-50 text-[#181918] focus:ring-gray-300",
296
19
  ghost: "bg-gray-100 hover:bg-gray-200 text-[#181918] focus:ring-gray-300",
297
20
  text: "text-[#181918] hover:bg-gray-100 focus:ring-gray-300"
298
- }, x = {
21
+ }, u = {
299
22
  sm: "px-3 py-1.5 text-sm gap-1.5",
300
23
  md: "px-4 py-2 text-base gap-2",
301
24
  lg: "px-6 py-3 text-lg gap-2.5"
302
- }, o = n ? "w-full" : "", y = `${p} ${d[s]} ${x[l]} ${o} ${f}`, i = () => c ? /* @__PURE__ */ e.jsxs(
25
+ }, r = o ? "w-full" : "", b = `${p} ${l[s]} ${u[a]} ${r} ${g}`, n = () => d ? /* @__PURE__ */ f(
303
26
  "svg",
304
27
  {
305
28
  className: "animate-spin h-4 w-4",
@@ -307,7 +30,7 @@ const de = ({
307
30
  fill: "none",
308
31
  viewBox: "0 0 24 24",
309
32
  children: [
310
- /* @__PURE__ */ e.jsx(
33
+ /* @__PURE__ */ e(
311
34
  "circle",
312
35
  {
313
36
  className: "opacity-25",
@@ -318,7 +41,7 @@ const de = ({
318
41
  strokeWidth: "4"
319
42
  }
320
43
  ),
321
- /* @__PURE__ */ e.jsx(
44
+ /* @__PURE__ */ e(
322
45
  "path",
323
46
  {
324
47
  className: "opacity-75",
@@ -328,54 +51,54 @@ const de = ({
328
51
  )
329
52
  ]
330
53
  }
331
- ) : r;
332
- return /* @__PURE__ */ e.jsxs(
54
+ ) : t;
55
+ return /* @__PURE__ */ f(
333
56
  "button",
334
57
  {
335
- className: y,
336
- disabled: h || c,
337
- style: u ? {
338
- "--hover-color": u
58
+ className: b,
59
+ disabled: m || d,
60
+ style: i ? {
61
+ "--hover-color": i
339
62
  } : void 0,
340
- onMouseEnter: (k) => {
341
- u && !h && !c && (k.currentTarget.style.backgroundColor = u);
63
+ onMouseEnter: (N) => {
64
+ i && !m && !d && (N.currentTarget.style.backgroundColor = i);
342
65
  },
343
- onMouseLeave: (k) => {
344
- u && !h && !c && (k.currentTarget.style.backgroundColor = "");
66
+ onMouseLeave: (N) => {
67
+ i && !m && !d && (N.currentTarget.style.backgroundColor = "");
345
68
  },
346
69
  ...v,
347
70
  children: [
348
- a === "left" && i(),
349
- m,
350
- a === "right" && i()
71
+ c === "left" && n(),
72
+ h,
73
+ c === "right" && n()
351
74
  ]
352
75
  }
353
76
  );
354
- }, ue = ({
77
+ }, A = ({
355
78
  label: s,
356
- value: l,
357
- selected: n = !1,
358
- onClick: r,
359
- className: a = ""
79
+ value: a,
80
+ selected: o = !1,
81
+ onClick: t,
82
+ className: c = ""
360
83
  }) => {
361
- const f = `stat-card relative flex flex-col p-4 rounded-lg border transition-all duration-500 ease-in-out cursor-pointer overflow-hidden ${n ? "border-[#181918] bg-[#F4F4F4] shadow-sm scale-[1.02]" : "border-gray-200 bg-white hover:border-gray-300 hover:shadow-sm"} ${a}`;
362
- return /* @__PURE__ */ e.jsxs("div", { className: f, onClick: r, children: [
363
- n && /* @__PURE__ */ e.jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-[#EC615B]/5 to-transparent animate-slide-in pointer-events-none" }),
364
- /* @__PURE__ */ e.jsxs("div", { className: "relative z-10 transition-transform duration-300 ease-out hover:scale-[0.98] active:scale-[0.96]", children: [
365
- /* @__PURE__ */ e.jsx("span", { className: `text-sm font-normal mb-2 block transition-colors duration-500 ${n ? "text-gray-700" : "text-gray-600"}`, children: s }),
366
- /* @__PURE__ */ e.jsx("span", { className: `text-3xl font-semibold stat-value block transition-all duration-500 ${n ? "text-[#181918] scale-105" : "text-[#181918]"}`, children: l })
84
+ const g = `stat-card relative flex flex-col p-4 rounded-lg border transition-all duration-500 ease-in-out cursor-pointer overflow-hidden ${o ? "border-[#181918] bg-[#F4F4F4] shadow-sm scale-[1.02]" : "border-gray-200 bg-white hover:border-gray-300 hover:shadow-sm"} ${c}`;
85
+ return /* @__PURE__ */ f("div", { className: g, onClick: t, children: [
86
+ o && /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-[#EC615B]/5 to-transparent animate-slide-in pointer-events-none" }),
87
+ /* @__PURE__ */ f("div", { className: "relative z-10 transition-transform duration-300 ease-out hover:scale-[0.98] active:scale-[0.96]", children: [
88
+ /* @__PURE__ */ e("span", { className: `text-sm font-normal mb-2 block transition-colors duration-500 ${o ? "text-gray-700" : "text-gray-600"}`, children: s }),
89
+ /* @__PURE__ */ e("span", { className: `text-3xl font-semibold stat-value block transition-all duration-500 ${o ? "text-[#181918] scale-105" : "text-[#181918]"}`, children: a })
367
90
  ] })
368
91
  ] });
369
- }, xe = ({
92
+ }, V = ({
370
93
  icon: s,
371
- iconPosition: l = "left",
372
- size: n = "md",
373
- fullWidth: r = !1,
374
- className: a = "",
375
- onIconClick: c,
376
- ...u
94
+ iconPosition: a = "left",
95
+ size: o = "md",
96
+ fullWidth: t = !1,
97
+ className: c = "",
98
+ onIconClick: d,
99
+ ...i
377
100
  }) => {
378
- const f = "relative inline-flex items-center", m = "border border-gray-300 rounded-lg focus:outline-none focus:ring-1 focus:ring-[#EC615B] focus:border-[#EC615B] transition-all duration-200 ease-in-out placeholder:text-gray-400", h = {
101
+ const g = "relative inline-flex items-center", h = "border border-gray-300 rounded-lg focus:outline-none focus:ring-1 focus:ring-[#EC615B] focus:border-[#EC615B] transition-all duration-200 ease-in-out placeholder:text-gray-400", m = {
379
102
  sm: "px-3 py-1.5 text-sm",
380
103
  md: "px-4 py-2 text-base",
381
104
  lg: "px-5 py-3 text-lg"
@@ -383,15 +106,15 @@ const de = ({
383
106
  sm: "w-4 h-4",
384
107
  md: "w-5 h-5",
385
108
  lg: "w-6 h-6"
386
- }, p = l === "left" ? n === "sm" ? "pl-9" : n === "md" ? "pl-10" : "pl-12" : n === "sm" ? "pr-9" : n === "md" ? "pr-10" : "pr-12", d = r ? "w-full" : "", x = `${m} ${h[n]} ${s ? p : ""} ${d} ${a}`, o = l === "left" ? "left-3" : "right-3", y = /* @__PURE__ */ e.jsx(
109
+ }, p = a === "left" ? o === "sm" ? "pl-9" : o === "md" ? "pl-10" : "pl-12" : o === "sm" ? "pr-9" : o === "md" ? "pr-10" : "pr-12", l = t ? "w-full" : "", u = `${h} ${m[o]} ${s ? p : ""} ${l} ${c}`, r = a === "left" ? "left-3" : "right-3", b = /* @__PURE__ */ e(
387
110
  "svg",
388
111
  {
389
- className: v[n],
112
+ className: v[o],
390
113
  xmlns: "http://www.w3.org/2000/svg",
391
114
  fill: "none",
392
115
  viewBox: "0 0 24 24",
393
116
  stroke: "currentColor",
394
- children: /* @__PURE__ */ e.jsx(
117
+ children: /* @__PURE__ */ e(
395
118
  "path",
396
119
  {
397
120
  strokeLinecap: "round",
@@ -402,28 +125,28 @@ const de = ({
402
125
  )
403
126
  }
404
127
  );
405
- return /* @__PURE__ */ e.jsxs("div", { className: `${f} ${d}`, children: [
406
- s && /* @__PURE__ */ e.jsx(
128
+ return /* @__PURE__ */ f("div", { className: `${g} ${l}`, children: [
129
+ s && /* @__PURE__ */ e(
407
130
  "div",
408
131
  {
409
- className: `absolute ${o} text-gray-400 ${c ? "cursor-pointer hover:text-gray-600" : ""}`,
410
- onClick: c,
411
- children: s === !0 ? y : s
132
+ className: `absolute ${r} text-gray-400 ${d ? "cursor-pointer hover:text-gray-600" : ""}`,
133
+ onClick: d,
134
+ children: s === !0 ? b : s
412
135
  }
413
136
  ),
414
- /* @__PURE__ */ e.jsx("input", { type: "text", className: x, ...u })
137
+ /* @__PURE__ */ e("input", { type: "text", className: u, ...i })
415
138
  ] });
416
- }, fe = ({
139
+ }, H = ({
417
140
  padding: s = "md",
418
- shadow: l = "sm",
419
- hover: n = !1,
420
- bordered: r = !0,
421
- rounded: a = "lg",
422
- className: c = "",
423
- children: u,
424
- ...f
141
+ shadow: a = "sm",
142
+ hover: o = !1,
143
+ bordered: t = !0,
144
+ rounded: c = "lg",
145
+ className: d = "",
146
+ children: i,
147
+ ...g
425
148
  }) => {
426
- const m = "card bg-white transition-all duration-300 ease-out", h = {
149
+ const h = "card bg-white transition-all duration-300 ease-out", m = {
427
150
  none: "p-0",
428
151
  sm: "p-3",
429
152
  md: "p-4",
@@ -439,220 +162,220 @@ const de = ({
439
162
  md: "rounded-md",
440
163
  lg: "rounded-lg",
441
164
  xl: "rounded-xl"
442
- }, d = r ? "border border-gray-200" : "", x = n ? "cursor-pointer" : "", o = `${m} ${h[s]} ${v[l]} ${p[a]} ${d} ${x} ${c}`;
443
- return /* @__PURE__ */ e.jsx("div", { className: o, ...f, children: /* @__PURE__ */ e.jsx("div", { className: n ? "transition-transform duration-300 ease-out hover:scale-[0.98] active:scale-[0.96]" : "", children: u }) });
444
- }, me = ({
165
+ }, l = t ? "border border-gray-200" : "", u = o ? "cursor-pointer" : "", r = `${h} ${m[s]} ${v[a]} ${p[c]} ${l} ${u} ${d}`;
166
+ return /* @__PURE__ */ e("div", { className: r, ...g, children: /* @__PURE__ */ e("div", { className: o ? "transition-transform duration-300 ease-out hover:scale-[0.98] active:scale-[0.96]" : "", children: i }) });
167
+ }, Q = ({
445
168
  items: s,
446
- trigger: l = "click",
447
- placement: n = "bottomLeft",
448
- children: r,
449
- className: a = "",
450
- overlayClassName: c = "",
451
- disabled: u = !1
169
+ trigger: a = "click",
170
+ placement: o = "bottomLeft",
171
+ children: t,
172
+ className: c = "",
173
+ overlayClassName: d = "",
174
+ disabled: i = !1
452
175
  }) => {
453
- const [f, m] = _(!1), h = J(null);
454
- z(() => {
455
- const i = (k) => {
456
- h.current && !h.current.contains(k.target) && m(!1);
176
+ const [g, h] = k(!1), m = j(null);
177
+ M(() => {
178
+ const n = (N) => {
179
+ m.current && !m.current.contains(N.target) && h(!1);
457
180
  };
458
- return f && document.addEventListener("mousedown", i), () => {
459
- document.removeEventListener("mousedown", i);
181
+ return g && document.addEventListener("mousedown", n), () => {
182
+ document.removeEventListener("mousedown", n);
460
183
  };
461
- }, [f]);
184
+ }, [g]);
462
185
  const v = () => {
463
- !u && l === "click" && m(!f);
186
+ !i && a === "click" && h(!g);
464
187
  }, p = () => {
465
- !u && l === "hover" && m(!0);
466
- }, d = () => {
467
- !u && l === "hover" && m(!1);
468
- }, x = (i) => {
469
- !i.disabled && i.onClick && i.onClick(), m(!1);
470
- }, o = {
188
+ !i && a === "hover" && h(!0);
189
+ }, l = () => {
190
+ !i && a === "hover" && h(!1);
191
+ }, u = (n) => {
192
+ !n.disabled && n.onClick && n.onClick(), h(!1);
193
+ }, r = {
471
194
  bottomLeft: "top-full left-0 mt-1",
472
195
  bottomRight: "top-full right-0 mt-1",
473
196
  topLeft: "bottom-full left-0 mb-1",
474
197
  topRight: "bottom-full right-0 mb-1"
475
- }, y = n.startsWith("bottom") ? "dropdown-slide-down" : "dropdown-slide-up";
476
- return /* @__PURE__ */ e.jsxs(
198
+ }, b = o.startsWith("bottom") ? "dropdown-slide-down" : "dropdown-slide-up";
199
+ return /* @__PURE__ */ f(
477
200
  "div",
478
201
  {
479
- ref: h,
480
- className: `relative inline-block ${a}`,
202
+ ref: m,
203
+ className: `relative inline-block ${c}`,
481
204
  onMouseEnter: p,
482
- onMouseLeave: d,
205
+ onMouseLeave: l,
483
206
  children: [
484
- /* @__PURE__ */ e.jsx(
207
+ /* @__PURE__ */ e(
485
208
  "div",
486
209
  {
487
210
  onClick: v,
488
- className: `inline-flex ${u ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
489
- children: r
211
+ className: `inline-flex ${i ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
212
+ children: t
490
213
  }
491
214
  ),
492
- f && !u && /* @__PURE__ */ e.jsx(
215
+ g && !i && /* @__PURE__ */ e(
493
216
  "div",
494
217
  {
495
- className: `absolute ${o[n]} ${y} z-50 min-w-[160px] ${c}`,
496
- children: /* @__PURE__ */ e.jsx("div", { className: "dropdown-menu bg-white rounded-lg shadow-lg border border-gray-200 py-1 overflow-hidden", children: s.map((i) => /* @__PURE__ */ e.jsxs(
218
+ className: `absolute ${r[o]} ${b} z-50 min-w-[160px] ${d}`,
219
+ children: /* @__PURE__ */ e("div", { className: "dropdown-menu bg-white rounded-lg shadow-lg border border-gray-200 py-1 overflow-hidden", children: s.map((n) => /* @__PURE__ */ f(
497
220
  "div",
498
221
  {
499
- onClick: () => x(i),
222
+ onClick: () => u(n),
500
223
  className: `
501
224
  dropdown-menu-item
502
225
  flex items-center gap-2 px-4 py-2 text-sm cursor-pointer transition-all duration-200 ease-out
503
- ${i.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-gray-50"}
504
- ${i.danger ? "text-red-600 hover:bg-red-50" : "text-gray-700"}
226
+ ${n.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-gray-50"}
227
+ ${n.danger ? "text-red-600 hover:bg-red-50" : "text-gray-700"}
505
228
  `,
506
229
  children: [
507
- i.icon && /* @__PURE__ */ e.jsx("span", { className: "flex-shrink-0", children: i.icon }),
508
- /* @__PURE__ */ e.jsx("span", { children: i.label })
230
+ n.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: n.icon }),
231
+ /* @__PURE__ */ e("span", { children: n.label })
509
232
  ]
510
233
  },
511
- i.key
234
+ n.key
512
235
  )) })
513
236
  }
514
237
  )
515
238
  ]
516
239
  }
517
240
  );
518
- }, oe = ({
241
+ }, P = ({
519
242
  options: s,
520
- value: l,
521
- defaultValue: n,
522
- placeholder: r = "Select an option",
523
- onChange: a,
524
- disabled: c = !1,
525
- size: u = "md",
526
- fullWidth: f = !1,
527
- className: m = "",
528
- allowClear: h = !1,
243
+ value: a,
244
+ defaultValue: o,
245
+ placeholder: t = "Select an option",
246
+ onChange: c,
247
+ disabled: d = !1,
248
+ size: i = "md",
249
+ fullWidth: g = !1,
250
+ className: h = "",
251
+ allowClear: m = !1,
529
252
  showSearch: v = !1,
530
253
  searchPlaceholder: p = "Search..."
531
254
  }) => {
532
- const [d, x] = _(!1), [o, y] = _(
533
- n
534
- ), [i, k] = _(""), b = J(null), N = J(null), $ = l !== void 0 ? l : o;
535
- z(() => {
536
- const j = (Y) => {
537
- b.current && !b.current.contains(Y.target) && (x(!1), k(""));
255
+ const [l, u] = k(!1), [r, b] = k(
256
+ o
257
+ ), [n, N] = k(""), x = j(null), w = j(null), C = a !== void 0 ? a : r;
258
+ M(() => {
259
+ const y = (R) => {
260
+ x.current && !x.current.contains(R.target) && (u(!1), N(""));
538
261
  };
539
- return d && (document.addEventListener("mousedown", j), v && N.current && N.current.focus()), () => {
540
- document.removeEventListener("mousedown", j);
262
+ return l && (document.addEventListener("mousedown", y), v && w.current && w.current.focus()), () => {
263
+ document.removeEventListener("mousedown", y);
541
264
  };
542
- }, [d, v]);
543
- const R = (j) => {
544
- l === void 0 && y(j), a == null || a(j), x(!1), k("");
545
- }, T = (j) => {
546
- j.stopPropagation(), l === void 0 && y(void 0), a == null || a("");
547
- }, S = s.find((j) => j.value === $), L = v ? s.filter(
548
- (j) => j.label.toLowerCase().includes(i.toLowerCase())
549
- ) : s, P = {
265
+ }, [l, v]);
266
+ const $ = (y) => {
267
+ a === void 0 && b(y), c == null || c(y), u(!1), N("");
268
+ }, E = (y) => {
269
+ y.stopPropagation(), a === void 0 && b(void 0), c == null || c("");
270
+ }, L = s.find((y) => y.value === C), B = v ? s.filter(
271
+ (y) => y.label.toLowerCase().includes(n.toLowerCase())
272
+ ) : s, S = {
550
273
  sm: "px-3 py-1.5 text-sm",
551
274
  md: "px-4 py-2 text-base",
552
275
  lg: "px-5 py-3 text-lg"
553
- }, W = f ? "w-full" : "min-w-[200px]", D = /* @__PURE__ */ e.jsx(
276
+ }, F = g ? "w-full" : "min-w-[200px]", z = /* @__PURE__ */ e(
554
277
  "svg",
555
278
  {
556
- className: `w-4 h-4 transition-transform duration-200 ease-out ${d ? "rotate-180" : ""}`,
279
+ className: `w-4 h-4 transition-transform duration-200 ease-out ${l ? "rotate-180" : ""}`,
557
280
  fill: "none",
558
281
  stroke: "currentColor",
559
282
  viewBox: "0 0 24 24",
560
- children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
283
+ children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
561
284
  }
562
- ), B = /* @__PURE__ */ e.jsx("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) });
563
- return /* @__PURE__ */ e.jsxs("div", { ref: b, className: `relative ${W} ${m}`, children: [
564
- /* @__PURE__ */ e.jsxs(
285
+ ), I = /* @__PURE__ */ e("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) });
286
+ return /* @__PURE__ */ f("div", { ref: x, className: `relative ${F} ${h}`, children: [
287
+ /* @__PURE__ */ f(
565
288
  "div",
566
289
  {
567
- onClick: () => !c && x(!d),
290
+ onClick: () => !d && u(!l),
568
291
  className: `
569
292
  select-trigger
570
293
  flex items-center justify-between gap-2
571
294
  border border-gray-300 rounded-lg
572
295
  bg-white
573
296
  transition-all duration-200 ease-out
574
- ${P[u]}
575
- ${c ? "opacity-50 cursor-not-allowed bg-gray-50" : "cursor-pointer hover:border-gray-400"}
576
- ${d ? "border-[#EC615B] ring-2 ring-[#EC615B] ring-opacity-20" : ""}
297
+ ${S[i]}
298
+ ${d ? "opacity-50 cursor-not-allowed bg-gray-50" : "cursor-pointer hover:border-gray-400"}
299
+ ${l ? "border-[#EC615B] ring-2 ring-[#EC615B] ring-opacity-20" : ""}
577
300
  `,
578
301
  children: [
579
- /* @__PURE__ */ e.jsx("span", { className: S ? "text-gray-900" : "text-gray-400", children: S ? S.label : r }),
580
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1", children: [
581
- h && $ && !c && /* @__PURE__ */ e.jsx(
302
+ /* @__PURE__ */ e("span", { className: L ? "text-gray-900" : "text-gray-400", children: L ? L.label : t }),
303
+ /* @__PURE__ */ f("div", { className: "flex items-center gap-1", children: [
304
+ m && C && !d && /* @__PURE__ */ e(
582
305
  "span",
583
306
  {
584
- onClick: T,
307
+ onClick: E,
585
308
  className: "text-gray-400 hover:text-gray-600 transition-colors duration-200 ease-out",
586
- children: B
309
+ children: I
587
310
  }
588
311
  ),
589
- /* @__PURE__ */ e.jsx("span", { className: "text-gray-400", children: D })
312
+ /* @__PURE__ */ e("span", { className: "text-gray-400", children: z })
590
313
  ] })
591
314
  ]
592
315
  }
593
316
  ),
594
- d && !c && /* @__PURE__ */ e.jsx("div", { className: "absolute top-full left-0 right-0 mt-1 z-50 dropdown-slide-down", children: /* @__PURE__ */ e.jsxs("div", { className: "select-dropdown bg-white rounded-lg shadow-lg border border-gray-200 py-1 max-h-[300px] overflow-auto", children: [
595
- v && /* @__PURE__ */ e.jsx("div", { className: "px-2 py-2 border-b border-gray-200", children: /* @__PURE__ */ e.jsx(
317
+ l && !d && /* @__PURE__ */ e("div", { className: "absolute top-full left-0 right-0 mt-1 z-50 dropdown-slide-down", children: /* @__PURE__ */ f("div", { className: "select-dropdown bg-white rounded-lg shadow-lg border border-gray-200 py-1 max-h-[300px] overflow-auto", children: [
318
+ v && /* @__PURE__ */ e("div", { className: "px-2 py-2 border-b border-gray-200", children: /* @__PURE__ */ e(
596
319
  "input",
597
320
  {
598
- ref: N,
321
+ ref: w,
599
322
  type: "text",
600
- value: i,
601
- onChange: (j) => k(j.target.value),
323
+ value: n,
324
+ onChange: (y) => N(y.target.value),
602
325
  placeholder: p,
603
326
  className: "w-full px-3 py-1.5 text-sm border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-[#EC615B] focus:border-[#EC615B] transition-all duration-200 ease-out",
604
- onClick: (j) => j.stopPropagation()
327
+ onClick: (y) => y.stopPropagation()
605
328
  }
606
329
  ) }),
607
- L.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "px-4 py-3 text-sm text-gray-500 text-center", children: "No results found" }) : L.map((j) => /* @__PURE__ */ e.jsx(
330
+ B.length === 0 ? /* @__PURE__ */ e("div", { className: "px-4 py-3 text-sm text-gray-500 text-center", children: "No results found" }) : B.map((y) => /* @__PURE__ */ e(
608
331
  "div",
609
332
  {
610
- onClick: () => !j.disabled && R(j.value),
333
+ onClick: () => !y.disabled && $(y.value),
611
334
  className: `
612
335
  select-option
613
336
  px-4 py-2 text-sm cursor-pointer transition-all duration-200 ease-out
614
- ${j.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-gray-50"}
615
- ${j.value === $ ? "bg-[#FCEAE9] text-[#EC615B] font-medium" : "text-[#181918]"}
337
+ ${y.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-gray-50"}
338
+ ${y.value === C ? "bg-[#FCEAE9] text-[#EC615B] font-medium" : "text-[#181918]"}
616
339
  `,
617
- children: j.label
340
+ children: y.label
618
341
  },
619
- j.value
342
+ y.value
620
343
  ))
621
344
  ] }) })
622
345
  ] });
623
- }, he = ({
346
+ }, q = ({
624
347
  columns: s,
625
- dataSource: l,
626
- rowKey: n = "id",
627
- pagination: r,
628
- loading: a = !1,
629
- onRow: c,
630
- className: u = "",
631
- bordered: f = !1,
632
- striped: m = !1
348
+ dataSource: a,
349
+ rowKey: o = "id",
350
+ pagination: t,
351
+ loading: c = !1,
352
+ onRow: d,
353
+ className: i = "",
354
+ bordered: g = !1,
355
+ striped: h = !1
633
356
  }) => {
634
- const [h, v] = _(
635
- r && typeof r == "object" && r.current || 1
636
- ), [p, d] = _(
637
- r && typeof r == "object" && r.pageSize || 10
638
- ), x = (b, N) => typeof n == "function" ? n(b) : b[n] || String(N), o = (b, N) => N ? N.split(".").reduce(($, R) => $ == null ? void 0 : $[R], b) : b, y = r === !1 ? l : l.slice((h - 1) * p, h * p), i = (b) => {
639
- v(b), r && typeof r == "object" && r.onChange && r.onChange(b, p);
640
- }, k = (b) => {
641
- d(b), v(1), r && typeof r == "object" && r.onChange && r.onChange(1, b);
357
+ const [m, v] = k(
358
+ t && typeof t == "object" && t.current || 1
359
+ ), [p, l] = k(
360
+ t && typeof t == "object" && t.pageSize || 10
361
+ ), u = (x, w) => typeof o == "function" ? o(x) : x[o] || String(w), r = (x, w) => w ? w.split(".").reduce((C, $) => C == null ? void 0 : C[$], x) : x, b = t === !1 ? a : a.slice((m - 1) * p, m * p), n = (x) => {
362
+ v(x), t && typeof t == "object" && t.onChange && t.onChange(x, p);
363
+ }, N = (x) => {
364
+ l(x), v(1), t && typeof t == "object" && t.onChange && t.onChange(1, x);
642
365
  };
643
- return /* @__PURE__ */ e.jsxs("div", { className: "w-full", children: [
644
- /* @__PURE__ */ e.jsx("div", { className: "overflow-x-auto rounded-2xl border border-[#EEEEEE]", children: /* @__PURE__ */ e.jsxs("table", { className: `w-full ${f ? "border-collapse" : ""} ${u}`, children: [
645
- /* @__PURE__ */ e.jsx("thead", { className: "bg-[#F5F6F7]", children: /* @__PURE__ */ e.jsx("tr", { children: s.map((b, N) => /* @__PURE__ */ e.jsx(
366
+ return /* @__PURE__ */ f("div", { className: "w-full", children: [
367
+ /* @__PURE__ */ e("div", { className: "overflow-x-auto rounded-2xl border border-[#EEEEEE]", children: /* @__PURE__ */ f("table", { className: `w-full ${g ? "border-collapse" : ""} ${i}`, children: [
368
+ /* @__PURE__ */ e("thead", { className: "bg-[#F5F6F7]", children: /* @__PURE__ */ e("tr", { children: s.map((x, w) => /* @__PURE__ */ e(
646
369
  "th",
647
370
  {
648
- className: `px-4 py-3 text-left text-xs font-medium text-[#333333] uppercase tracking-wider ${f && N !== s.length - 1 ? "border-r border-[#EEEEEE]" : ""} ${b.align === "center" ? "text-center" : b.align === "right" ? "text-right" : ""}`,
649
- style: { width: b.width },
650
- children: b.title
371
+ className: `px-4 py-3 text-left text-xs font-medium text-[#333333] uppercase tracking-wider ${g && w !== s.length - 1 ? "border-r border-[#EEEEEE]" : ""} ${x.align === "center" ? "text-center" : x.align === "right" ? "text-right" : ""}`,
372
+ style: { width: x.width },
373
+ children: x.title
651
374
  },
652
- b.key
375
+ x.key
653
376
  )) }) }),
654
- /* @__PURE__ */ e.jsx("tbody", { className: "bg-white divide-y divide-gray-200", children: a ? /* @__PURE__ */ e.jsx("tr", { children: /* @__PURE__ */ e.jsx("td", { colSpan: s.length, className: "px-4 py-8 text-center text-[#333333]", children: /* @__PURE__ */ e.jsxs("div", { className: "flex justify-center items-center", children: [
655
- /* @__PURE__ */ e.jsxs(
377
+ /* @__PURE__ */ e("tbody", { className: "bg-white divide-y divide-gray-200", children: c ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: s.length, className: "px-4 py-8 text-center text-[#333333]", children: /* @__PURE__ */ f("div", { className: "flex justify-center items-center", children: [
378
+ /* @__PURE__ */ f(
656
379
  "svg",
657
380
  {
658
381
  className: "animate-spin h-5 w-5 mr-2",
@@ -660,7 +383,7 @@ const de = ({
660
383
  fill: "none",
661
384
  viewBox: "0 0 24 24",
662
385
  children: [
663
- /* @__PURE__ */ e.jsx(
386
+ /* @__PURE__ */ e(
664
387
  "circle",
665
388
  {
666
389
  className: "opacity-25",
@@ -671,7 +394,7 @@ const de = ({
671
394
  strokeWidth: "4"
672
395
  }
673
396
  ),
674
- /* @__PURE__ */ e.jsx(
397
+ /* @__PURE__ */ e(
675
398
  "path",
676
399
  {
677
400
  className: "opacity-75",
@@ -683,56 +406,56 @@ const de = ({
683
406
  }
684
407
  ),
685
408
  "Loading..."
686
- ] }) }) }) : y.length === 0 ? /* @__PURE__ */ e.jsx("tr", { children: /* @__PURE__ */ e.jsx("td", { colSpan: s.length, className: "px-4 py-8 text-center text-[#333333]", children: "No data" }) }) : y.map((b, N) => {
687
- const $ = c ? c(b, N) : {};
688
- return /* @__PURE__ */ e.jsx(
409
+ ] }) }) }) : b.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: s.length, className: "px-4 py-8 text-center text-[#333333]", children: "No data" }) }) : b.map((x, w) => {
410
+ const C = d ? d(x, w) : {};
411
+ return /* @__PURE__ */ e(
689
412
  "tr",
690
413
  {
691
- className: `${m && N % 2 === 1 ? "bg-[#F5F6F7]" : ""} hover:bg-gray-50 transition-colors duration-200 ease-out`,
692
- ...$,
693
- children: s.map((R, T) => {
694
- const S = o(b, R.dataIndex), L = R.render ? R.render(S, b, N) : S;
695
- return /* @__PURE__ */ e.jsx(
414
+ className: `${h && w % 2 === 1 ? "bg-[#F5F6F7]" : ""} hover:bg-gray-50 transition-colors duration-200 ease-out`,
415
+ ...C,
416
+ children: s.map(($, E) => {
417
+ const L = r(x, $.dataIndex), B = $.render ? $.render(L, x, w) : L;
418
+ return /* @__PURE__ */ e(
696
419
  "td",
697
420
  {
698
- className: `px-4 py-4 text-sm text-gray-900 ${f && T !== s.length - 1 ? "border-r border-[#EEEEEE]" : ""} ${R.align === "center" ? "text-center" : R.align === "right" ? "text-right" : ""}`,
699
- children: L
421
+ className: `px-4 py-4 text-sm text-gray-900 ${g && E !== s.length - 1 ? "border-r border-[#EEEEEE]" : ""} ${$.align === "center" ? "text-center" : $.align === "right" ? "text-right" : ""}`,
422
+ children: B
700
423
  },
701
- R.key
424
+ $.key
702
425
  );
703
426
  })
704
427
  },
705
- x(b, N)
428
+ u(x, w)
706
429
  );
707
430
  }) })
708
431
  ] }) }),
709
- r !== !1 && /* @__PURE__ */ e.jsx(
710
- ie,
432
+ t !== !1 && /* @__PURE__ */ e(
433
+ T,
711
434
  {
712
- current: h,
435
+ current: m,
713
436
  pageSize: p,
714
- total: l.length,
715
- onChange: i,
716
- onPageSizeChange: k,
717
- showSizeChanger: r && typeof r == "object" ? r.showSizeChanger : !0,
718
- pageSizeOptions: r && typeof r == "object" ? r.pageSizeOptions : [10, 20, 50, 100],
719
- showTotal: r && typeof r == "object" ? r.showTotal : !0,
720
- size: r && typeof r == "object" ? r.size : "md"
437
+ total: a.length,
438
+ onChange: n,
439
+ onPageSizeChange: N,
440
+ showSizeChanger: t && typeof t == "object" ? t.showSizeChanger : !0,
441
+ pageSizeOptions: t && typeof t == "object" ? t.pageSizeOptions : [10, 20, 50, 100],
442
+ showTotal: t && typeof t == "object" ? t.showTotal : !0,
443
+ size: t && typeof t == "object" ? t.size : "md"
721
444
  }
722
445
  )
723
446
  ] });
724
- }, ie = ({
447
+ }, T = ({
725
448
  current: s,
726
- pageSize: l,
727
- total: n,
728
- onChange: r,
729
- onPageSizeChange: a,
730
- showSizeChanger: c = !0,
731
- pageSizeOptions: u = [10, 20, 50, 100],
732
- showTotal: f = !0,
733
- size: m = "md"
449
+ pageSize: a,
450
+ total: o,
451
+ onChange: t,
452
+ onPageSizeChange: c,
453
+ showSizeChanger: d = !0,
454
+ pageSizeOptions: i = [10, 20, 50, 100],
455
+ showTotal: g = !0,
456
+ size: h = "md"
734
457
  }) => {
735
- const h = Math.ceil(n / l), v = (s - 1) * l + 1, p = Math.min(s * l, n), d = {
458
+ const m = Math.ceil(o / a), v = (s - 1) * a + 1, p = Math.min(s * a, o), l = {
736
459
  sm: {
737
460
  button: "px-2.5 py-1 text-xs",
738
461
  icon: "h-3.5 w-3.5",
@@ -748,55 +471,55 @@ const de = ({
748
471
  icon: "h-6 w-6",
749
472
  nav: "px-3 py-3"
750
473
  }
751
- }, x = () => {
752
- const o = [];
753
- if (h <= 7)
754
- for (let i = 1; i <= h; i++)
755
- o.push(i);
474
+ }, u = () => {
475
+ const r = [];
476
+ if (m <= 7)
477
+ for (let n = 1; n <= m; n++)
478
+ r.push(n);
756
479
  else if (s <= 3) {
757
- for (let i = 1; i <= 5; i++) o.push(i);
758
- o.push("..."), o.push(h);
759
- } else if (s >= h - 2) {
760
- o.push(1), o.push("...");
761
- for (let i = h - 4; i <= h; i++) o.push(i);
480
+ for (let n = 1; n <= 5; n++) r.push(n);
481
+ r.push("..."), r.push(m);
482
+ } else if (s >= m - 2) {
483
+ r.push(1), r.push("...");
484
+ for (let n = m - 4; n <= m; n++) r.push(n);
762
485
  } else {
763
- o.push(1), o.push("...");
764
- for (let i = s - 1; i <= s + 1; i++) o.push(i);
765
- o.push("..."), o.push(h);
486
+ r.push(1), r.push("...");
487
+ for (let n = s - 1; n <= s + 1; n++) r.push(n);
488
+ r.push("..."), r.push(m);
766
489
  }
767
- return o;
490
+ return r;
768
491
  };
769
- return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between px-4 py-3 border-t border-[#EEEEEE] sm:px-6 mt-4", children: [
770
- f && /* @__PURE__ */ e.jsxs("div", { className: "text-sm text-[#181918]", children: [
492
+ return /* @__PURE__ */ f("div", { className: "flex items-center justify-between px-4 py-3 border-t border-[#EEEEEE] sm:px-6 mt-4", children: [
493
+ g && /* @__PURE__ */ f("div", { className: "text-sm text-[#181918]", children: [
771
494
  v,
772
495
  "-",
773
496
  p,
774
497
  " of ",
775
- n,
498
+ o,
776
499
  " items"
777
500
  ] }),
778
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
779
- c && /* @__PURE__ */ e.jsx(
780
- oe,
501
+ /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
502
+ d && /* @__PURE__ */ e(
503
+ P,
781
504
  {
782
- value: l.toString(),
783
- onChange: (o) => a(Number(o)),
784
- options: u.map((o) => ({
785
- value: o.toString(),
786
- label: `${o} / page`
505
+ value: a.toString(),
506
+ onChange: (r) => c(Number(r)),
507
+ options: i.map((r) => ({
508
+ value: r.toString(),
509
+ label: `${r} / page`
787
510
  })),
788
511
  size: "sm",
789
512
  className: "w-32"
790
513
  }
791
514
  ),
792
- /* @__PURE__ */ e.jsxs("nav", { className: "inline-flex gap-1 items-center", "aria-label": "Pagination", children: [
793
- /* @__PURE__ */ e.jsx(
515
+ /* @__PURE__ */ f("nav", { className: "inline-flex gap-1 items-center", "aria-label": "Pagination", children: [
516
+ /* @__PURE__ */ e(
794
517
  "button",
795
518
  {
796
- onClick: () => r(s - 1),
519
+ onClick: () => t(s - 1),
797
520
  disabled: s === 1,
798
- className: `relative inline-flex items-center justify-center rounded-md ${d[m].nav} text-[#181918] hover:bg-gray-100 focus:z-20 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-transparent transition-all duration-300 ease-out hover:scale-110 active:scale-95`,
799
- children: /* @__PURE__ */ e.jsx("svg", { className: d[m].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ e.jsx(
521
+ className: `relative inline-flex items-center justify-center rounded-md ${l[h].nav} text-[#181918] hover:bg-gray-100 focus:z-20 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-transparent transition-all duration-300 ease-out hover:scale-110 active:scale-95`,
522
+ children: /* @__PURE__ */ e("svg", { className: l[h].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ e(
800
523
  "path",
801
524
  {
802
525
  strokeLinecap: "round",
@@ -807,29 +530,29 @@ const de = ({
807
530
  ) })
808
531
  }
809
532
  ),
810
- x().map((o, y) => o === "..." ? /* @__PURE__ */ e.jsx(
533
+ u().map((r, b) => r === "..." ? /* @__PURE__ */ e(
811
534
  "span",
812
535
  {
813
- className: `relative inline-flex items-center justify-center ${d[m].button} font-normal text-[#181918]`,
536
+ className: `relative inline-flex items-center justify-center ${l[h].button} font-normal text-[#181918]`,
814
537
  children: "..."
815
538
  },
816
- `ellipsis-${y}`
817
- ) : /* @__PURE__ */ e.jsx(
539
+ `ellipsis-${b}`
540
+ ) : /* @__PURE__ */ e(
818
541
  "button",
819
542
  {
820
- onClick: () => r(o),
821
- className: `relative inline-flex items-center justify-center rounded-md ${d[m].button} font-medium transition-all duration-300 ease-out focus:z-20 hover:scale-105 active:scale-95 ${s === o ? "bg-[#EC615B] text-white shadow-sm" : "text-[#181918] hover:bg-gray-100"}`,
822
- children: o
543
+ onClick: () => t(r),
544
+ className: `relative inline-flex items-center justify-center rounded-md ${l[h].button} font-medium transition-all duration-300 ease-out focus:z-20 hover:scale-105 active:scale-95 ${s === r ? "bg-[#EC615B] text-white shadow-sm" : "text-[#181918] hover:bg-gray-100"}`,
545
+ children: r
823
546
  },
824
- o
547
+ r
825
548
  )),
826
- /* @__PURE__ */ e.jsx(
549
+ /* @__PURE__ */ e(
827
550
  "button",
828
551
  {
829
- onClick: () => r(s + 1),
830
- disabled: s === h,
831
- className: `relative inline-flex items-center justify-center rounded-md ${d[m].nav} text-[#181918] hover:bg-gray-100 focus:z-20 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-transparent transition-all duration-300 ease-out hover:scale-110 active:scale-95`,
832
- children: /* @__PURE__ */ e.jsx("svg", { className: d[m].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ e.jsx(
552
+ onClick: () => t(s + 1),
553
+ disabled: s === m,
554
+ className: `relative inline-flex items-center justify-center rounded-md ${l[h].nav} text-[#181918] hover:bg-gray-100 focus:z-20 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-transparent transition-all duration-300 ease-out hover:scale-110 active:scale-95`,
555
+ children: /* @__PURE__ */ e("svg", { className: l[h].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ e(
833
556
  "path",
834
557
  {
835
558
  strokeLinecap: "round",
@@ -843,33 +566,33 @@ const de = ({
843
566
  ] })
844
567
  ] })
845
568
  ] });
846
- }, ge = ({
569
+ }, G = ({
847
570
  title: s,
848
- description: l,
849
- searchPlaceholder: n = "Search...",
850
- onSearch: r,
851
- actions: a,
852
- filters: c,
853
- className: u = ""
571
+ description: a,
572
+ searchPlaceholder: o = "Search...",
573
+ onSearch: t,
574
+ actions: c,
575
+ filters: d,
576
+ className: i = ""
854
577
  }) => {
855
- const f = (m) => {
856
- r == null || r(m.target.value);
578
+ const g = (h) => {
579
+ t == null || t(h.target.value);
857
580
  };
858
- return /* @__PURE__ */ e.jsxs("div", { className: `space-y-4 mb-4 ${u}`, children: [
859
- (s || l) && /* @__PURE__ */ e.jsxs("div", { children: [
860
- s && /* @__PURE__ */ e.jsx("h2", { className: "text-xl font-semibold text-gray-900", children: s }),
861
- l && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-gray-500 mt-1", children: l })
581
+ return /* @__PURE__ */ f("div", { className: `space-y-4 mb-4 ${i}`, children: [
582
+ (s || a) && /* @__PURE__ */ f("div", { children: [
583
+ s && /* @__PURE__ */ e("h2", { className: "text-xl font-semibold text-gray-900", children: s }),
584
+ a && /* @__PURE__ */ e("p", { className: "text-sm text-gray-500 mt-1", children: a })
862
585
  ] }),
863
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
864
- r && /* @__PURE__ */ e.jsx("div", { className: "flex-1 max-w-md", children: /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
865
- /* @__PURE__ */ e.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ e.jsx(
586
+ /* @__PURE__ */ f("div", { className: "flex items-center justify-between gap-4", children: [
587
+ t && /* @__PURE__ */ e("div", { className: "flex-1 max-w-md", children: /* @__PURE__ */ f("div", { className: "relative", children: [
588
+ /* @__PURE__ */ e("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: /* @__PURE__ */ e(
866
589
  "svg",
867
590
  {
868
591
  className: "h-5 w-5 text-gray-400",
869
592
  fill: "none",
870
593
  stroke: "currentColor",
871
594
  viewBox: "0 0 24 24",
872
- children: /* @__PURE__ */ e.jsx(
595
+ children: /* @__PURE__ */ e(
873
596
  "path",
874
597
  {
875
598
  strokeLinecap: "round",
@@ -880,90 +603,90 @@ const de = ({
880
603
  )
881
604
  }
882
605
  ) }),
883
- /* @__PURE__ */ e.jsx(
606
+ /* @__PURE__ */ e(
884
607
  "input",
885
608
  {
886
609
  type: "text",
887
- placeholder: n,
888
- onChange: f,
610
+ placeholder: o,
611
+ onChange: g,
889
612
  className: "block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm"
890
613
  }
891
614
  )
892
615
  ] }) }),
893
- a && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: a })
616
+ c && /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: c })
894
617
  ] }),
895
- c && /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: c })
618
+ d && /* @__PURE__ */ e("div", { className: "flex items-center gap-3", children: d })
896
619
  ] });
897
- }, pe = ({
620
+ }, J = ({
898
621
  open: s,
899
- onClose: l,
900
- title: n,
901
- children: r,
902
- footer: a,
903
- width: c = "520px",
904
- closable: u = !0,
905
- maskClosable: f = !0,
906
- centered: m = !0,
907
- className: h = ""
622
+ onClose: a,
623
+ title: o,
624
+ children: t,
625
+ footer: c,
626
+ width: d = "520px",
627
+ closable: i = !0,
628
+ maskClosable: g = !0,
629
+ centered: h = !0,
630
+ className: m = ""
908
631
  }) => {
909
- const [v, p] = _(!1), [d, x] = _(!1);
910
- if (z(() => {
632
+ const [v, p] = k(!1), [l, u] = k(!1);
633
+ if (M(() => {
911
634
  if (s)
912
- p(!0), setTimeout(() => x(!0), 10), document.body.style.overflow = "hidden";
635
+ p(!0), setTimeout(() => u(!0), 10), document.body.style.overflow = "hidden";
913
636
  else {
914
- x(!1);
915
- const i = setTimeout(() => {
637
+ u(!1);
638
+ const n = setTimeout(() => {
916
639
  p(!1);
917
640
  }, 200);
918
- return document.body.style.overflow = "unset", () => clearTimeout(i);
641
+ return document.body.style.overflow = "unset", () => clearTimeout(n);
919
642
  }
920
- }, [s]), z(() => {
921
- const i = (k) => {
922
- k.key === "Escape" && u && s && l();
643
+ }, [s]), M(() => {
644
+ const n = (N) => {
645
+ N.key === "Escape" && i && s && a();
923
646
  };
924
- return s && document.addEventListener("keydown", i), () => {
925
- document.removeEventListener("keydown", i);
647
+ return s && document.addEventListener("keydown", n), () => {
648
+ document.removeEventListener("keydown", n);
926
649
  };
927
- }, [s, l, u]), !v) return null;
928
- const o = () => {
929
- f && l();
930
- }, y = (i) => {
931
- i.stopPropagation();
650
+ }, [s, a, i]), !v) return null;
651
+ const r = () => {
652
+ g && a();
653
+ }, b = (n) => {
654
+ n.stopPropagation();
932
655
  };
933
- return /* @__PURE__ */ e.jsxs(
656
+ return /* @__PURE__ */ f(
934
657
  "div",
935
658
  {
936
659
  className: "fixed inset-0 z-50 overflow-y-auto",
937
- onClick: o,
660
+ onClick: r,
938
661
  children: [
939
- /* @__PURE__ */ e.jsx(
662
+ /* @__PURE__ */ e(
940
663
  "div",
941
664
  {
942
- className: `fixed inset-0 bg-black transition-opacity duration-200 ease-out ${d ? "opacity-50" : "opacity-0"}`
665
+ className: `fixed inset-0 bg-black transition-opacity duration-200 ease-out ${l ? "opacity-50" : "opacity-0"}`
943
666
  }
944
667
  ),
945
- /* @__PURE__ */ e.jsx("div", { className: `flex min-h-full items-center justify-center p-4 ${m ? "items-center" : "items-start pt-20"}`, children: /* @__PURE__ */ e.jsxs(
668
+ /* @__PURE__ */ e("div", { className: `flex min-h-full items-center justify-center p-4 ${h ? "items-center" : "items-start pt-20"}`, children: /* @__PURE__ */ f(
946
669
  "div",
947
670
  {
948
- className: `relative bg-white rounded-lg shadow-xl transition-all duration-200 ease-out ${d ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 -translate-y-4"} ${h}`,
949
- style: { width: c, maxWidth: "90vw" },
950
- onClick: y,
671
+ className: `relative bg-white rounded-lg shadow-xl transition-all duration-200 ease-out ${l ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 -translate-y-4"} ${m}`,
672
+ style: { width: d, maxWidth: "90vw" },
673
+ onClick: b,
951
674
  children: [
952
- (n || u) && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between px-6 py-4 border-b border-gray-200", children: [
953
- n && /* @__PURE__ */ e.jsx("h3", { className: "text-lg font-semibold text-gray-900", children: n }),
954
- u && /* @__PURE__ */ e.jsx(
675
+ (o || i) && /* @__PURE__ */ f("div", { className: "flex items-center justify-between px-6 py-4 border-b border-gray-200", children: [
676
+ o && /* @__PURE__ */ e("h3", { className: "text-lg font-semibold text-gray-900", children: o }),
677
+ i && /* @__PURE__ */ e(
955
678
  "button",
956
679
  {
957
- onClick: l,
680
+ onClick: a,
958
681
  className: "text-gray-400 hover:text-gray-600 transition-colors duration-200 ease-out",
959
- children: /* @__PURE__ */ e.jsx(
682
+ children: /* @__PURE__ */ e(
960
683
  "svg",
961
684
  {
962
685
  className: "w-5 h-5",
963
686
  fill: "none",
964
687
  stroke: "currentColor",
965
688
  viewBox: "0 0 24 24",
966
- children: /* @__PURE__ */ e.jsx(
689
+ children: /* @__PURE__ */ e(
967
690
  "path",
968
691
  {
969
692
  strokeLinecap: "round",
@@ -977,35 +700,35 @@ const de = ({
977
700
  }
978
701
  )
979
702
  ] }),
980
- /* @__PURE__ */ e.jsx("div", { className: "px-6 py-4 max-h-[70vh] overflow-y-auto", children: r }),
981
- a && /* @__PURE__ */ e.jsx("div", { className: "px-6 py-4 border-t border-gray-200 flex justify-end gap-2", children: a })
703
+ /* @__PURE__ */ e("div", { className: "px-6 py-4 max-h-[70vh] overflow-y-auto", children: t }),
704
+ c && /* @__PURE__ */ e("div", { className: "px-6 py-4 border-t border-gray-200 flex justify-end gap-2", children: c })
982
705
  ]
983
706
  }
984
707
  ) })
985
708
  ]
986
709
  }
987
710
  );
988
- }, ve = ({
711
+ }, U = ({
989
712
  children: s,
990
- variant: l = "default",
991
- size: n = "md",
992
- dot: r = !1,
993
- icon: a,
994
- iconPosition: c = "left",
995
- className: u = ""
713
+ variant: a = "default",
714
+ size: o = "md",
715
+ dot: t = !1,
716
+ icon: c,
717
+ iconPosition: d = "left",
718
+ className: i = ""
996
719
  }) => {
997
- const f = {
720
+ const g = {
998
721
  default: "bg-gray-100 text-[#181918]",
999
722
  primary: "bg-[#FCEAE9] text-[#EC615B]",
1000
723
  success: "bg-green-100 text-green-800",
1001
724
  warning: "bg-yellow-100 text-yellow-800",
1002
725
  danger: "bg-red-100 text-red-800",
1003
726
  info: "bg-cyan-100 text-cyan-800"
1004
- }, m = {
727
+ }, h = {
1005
728
  sm: "px-2 py-0.5 text-xs",
1006
729
  md: "px-2.5 py-1 text-sm",
1007
730
  lg: "px-3 py-1.5 text-base"
1008
- }, h = {
731
+ }, m = {
1009
732
  sm: "w-1.5 h-1.5",
1010
733
  md: "w-2 h-2",
1011
734
  lg: "w-2.5 h-2.5"
@@ -1021,72 +744,72 @@ const de = ({
1021
744
  md: "w-3.5 h-3.5",
1022
745
  lg: "w-4 h-4"
1023
746
  };
1024
- return /* @__PURE__ */ e.jsxs(
747
+ return /* @__PURE__ */ f(
1025
748
  "span",
1026
749
  {
1027
- className: `inline-flex items-center gap-1.5 font-medium rounded-full transition-all duration-200 ${f[l]} ${m[n]} ${u}`,
750
+ className: `inline-flex items-center gap-1.5 font-medium rounded-full transition-all duration-200 ${g[a]} ${h[o]} ${i}`,
1028
751
  children: [
1029
- r && /* @__PURE__ */ e.jsx("span", { className: `rounded-full ${h[n]} ${v[l]}` }),
1030
- a && c === "left" && /* @__PURE__ */ e.jsx("span", { className: `inline-flex items-center ${p[n]}`, children: a }),
752
+ t && /* @__PURE__ */ e("span", { className: `rounded-full ${m[o]} ${v[a]}` }),
753
+ c && d === "left" && /* @__PURE__ */ e("span", { className: `inline-flex items-center ${p[o]}`, children: c }),
1031
754
  s,
1032
- a && c === "right" && /* @__PURE__ */ e.jsx("span", { className: `inline-flex items-center ${p[n]}`, children: a })
755
+ c && d === "right" && /* @__PURE__ */ e("span", { className: `inline-flex items-center ${p[o]}`, children: c })
1033
756
  ]
1034
757
  }
1035
758
  );
1036
- }, be = ({
759
+ }, X = ({
1037
760
  items: s,
1038
- current: l = 0,
1039
- direction: n = "vertical",
1040
- size: r = "md",
1041
- variant: a = "default",
1042
- className: c = ""
761
+ current: a = 0,
762
+ direction: o = "vertical",
763
+ size: t = "md",
764
+ variant: c = "default",
765
+ className: d = ""
1043
766
  }) => {
1044
- const u = (d, x) => x.status ? x.status : d < l ? "finish" : d === l ? "process" : "wait", f = {
767
+ const i = (l, u) => u.status ? u.status : l < a ? "finish" : l === a ? "process" : "wait", g = {
1045
768
  sm: "w-6 h-6",
1046
769
  md: "w-8 h-8",
1047
770
  lg: "w-10 h-10"
1048
- }, m = {
771
+ }, h = {
1049
772
  sm: "text-sm",
1050
773
  md: "text-base",
1051
774
  lg: "text-lg"
1052
- }, h = {
775
+ }, m = {
1053
776
  sm: "text-xs",
1054
777
  md: "text-sm",
1055
778
  lg: "text-base"
1056
- }, v = (d, x) => x || (d === "finish" ? /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx(
779
+ }, v = (l, u) => u || (l === "finish" ? /* @__PURE__ */ e("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e(
1057
780
  "path",
1058
781
  {
1059
782
  fillRule: "evenodd",
1060
783
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
1061
784
  clipRule: "evenodd"
1062
785
  }
1063
- ) }) : d === "error" ? /* @__PURE__ */ e.jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx(
786
+ ) }) : l === "error" ? /* @__PURE__ */ e("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e(
1064
787
  "path",
1065
788
  {
1066
789
  fillRule: "evenodd",
1067
790
  d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
1068
791
  clipRule: "evenodd"
1069
792
  }
1070
- ) }) : null), p = (d) => {
1071
- const x = a === "outline";
1072
- switch (d) {
793
+ ) }) : null), p = (l) => {
794
+ const u = c === "outline";
795
+ switch (l) {
1073
796
  case "finish":
1074
797
  return {
1075
- icon: x ? "bg-white text-green-500 border-green-500" : "bg-green-500 text-white border-green-500",
798
+ icon: u ? "bg-white text-green-500 border-green-500" : "bg-green-500 text-white border-green-500",
1076
799
  title: "text-[#181918]",
1077
800
  description: "text-gray-600",
1078
801
  line: "bg-green-500"
1079
802
  };
1080
803
  case "process":
1081
804
  return {
1082
- icon: x ? "bg-white text-[#EC615B] border-[#EC615B]" : "bg-[#EC615B] text-white border-[#EC615B]",
805
+ icon: u ? "bg-white text-[#EC615B] border-[#EC615B]" : "bg-[#EC615B] text-white border-[#EC615B]",
1083
806
  title: "text-[#181918] font-semibold",
1084
807
  description: "text-gray-700",
1085
808
  line: "bg-gray-300"
1086
809
  };
1087
810
  case "error":
1088
811
  return {
1089
- icon: x ? "bg-white text-red-500 border-red-500" : "bg-red-500 text-white border-red-500",
812
+ icon: u ? "bg-white text-red-500 border-red-500" : "bg-red-500 text-white border-red-500",
1090
813
  title: "text-red-600",
1091
814
  description: "text-red-500",
1092
815
  line: "bg-gray-300"
@@ -1100,89 +823,89 @@ const de = ({
1100
823
  };
1101
824
  }
1102
825
  };
1103
- return n === "horizontal" ? /* @__PURE__ */ e.jsx("div", { className: `flex items-start ${c}`, children: s.map((d, x) => {
1104
- const o = u(x, d), y = p(o), i = x === s.length - 1;
1105
- return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-start", children: [
1106
- /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center", children: [
1107
- /* @__PURE__ */ e.jsx(
826
+ return o === "horizontal" ? /* @__PURE__ */ e("div", { className: `flex items-start ${d}`, children: s.map((l, u) => {
827
+ const r = i(u, l), b = p(r), n = u === s.length - 1;
828
+ return /* @__PURE__ */ f("div", { className: "flex flex-1 items-start", children: [
829
+ /* @__PURE__ */ f("div", { className: "flex flex-col items-center", children: [
830
+ /* @__PURE__ */ e(
1108
831
  "div",
1109
832
  {
1110
- className: `flex items-center justify-center ${f[r]} rounded-full border transition-all duration-300 ${y.icon}`,
1111
- children: v(o, d.icon)
833
+ className: `flex items-center justify-center ${g[t]} rounded-full border transition-all duration-300 ${b.icon}`,
834
+ children: v(r, l.icon)
1112
835
  }
1113
836
  ),
1114
- /* @__PURE__ */ e.jsxs("div", { className: "mt-2 text-center", children: [
1115
- /* @__PURE__ */ e.jsx(
837
+ /* @__PURE__ */ f("div", { className: "mt-2 text-center", children: [
838
+ /* @__PURE__ */ e(
1116
839
  "div",
1117
840
  {
1118
- className: `${m[r]} ${y.title} transition-colors duration-300`,
1119
- children: d.title
841
+ className: `${h[t]} ${b.title} transition-colors duration-300`,
842
+ children: l.title
1120
843
  }
1121
844
  ),
1122
- d.description && /* @__PURE__ */ e.jsx(
845
+ l.description && /* @__PURE__ */ e(
1123
846
  "div",
1124
847
  {
1125
- className: `${h[r]} ${y.description} mt-1 transition-colors duration-300`,
1126
- children: d.description
848
+ className: `${m[t]} ${b.description} mt-1 transition-colors duration-300`,
849
+ children: l.description
1127
850
  }
1128
851
  )
1129
852
  ] })
1130
853
  ] }),
1131
- !i && /* @__PURE__ */ e.jsx(
854
+ !n && /* @__PURE__ */ e(
1132
855
  "div",
1133
856
  {
1134
- className: `flex-1 h-0.5 mt-4 mx-2 ${y.line} transition-colors duration-300`
857
+ className: `flex-1 h-0.5 mt-4 mx-2 ${b.line} transition-colors duration-300`
1135
858
  }
1136
859
  )
1137
- ] }, x);
1138
- }) }) : /* @__PURE__ */ e.jsx("div", { className: `flex flex-col ${c}`, children: s.map((d, x) => {
1139
- const o = u(x, d), y = p(o), i = x === s.length - 1;
1140
- return /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1141
- /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center mr-4", children: [
1142
- /* @__PURE__ */ e.jsx(
860
+ ] }, u);
861
+ }) }) : /* @__PURE__ */ e("div", { className: `flex flex-col ${d}`, children: s.map((l, u) => {
862
+ const r = i(u, l), b = p(r), n = u === s.length - 1;
863
+ return /* @__PURE__ */ f("div", { className: "flex", children: [
864
+ /* @__PURE__ */ f("div", { className: "flex flex-col items-center mr-4", children: [
865
+ /* @__PURE__ */ e(
1143
866
  "div",
1144
867
  {
1145
- className: `flex items-center justify-center ${f[r]} rounded-full border transition-all duration-300 ${y.icon}`,
1146
- children: v(o, d.icon)
868
+ className: `flex items-center justify-center ${g[t]} rounded-full border transition-all duration-300 ${b.icon}`,
869
+ children: v(r, l.icon)
1147
870
  }
1148
871
  ),
1149
- !i && /* @__PURE__ */ e.jsx(
872
+ !n && /* @__PURE__ */ e(
1150
873
  "div",
1151
874
  {
1152
- className: `w-0.5 flex-1 my-1 ${y.line} transition-colors duration-300`,
875
+ className: `w-0.5 flex-1 my-1 ${b.line} transition-colors duration-300`,
1153
876
  style: { minHeight: "20px" }
1154
877
  }
1155
878
  )
1156
879
  ] }),
1157
- /* @__PURE__ */ e.jsxs("div", { className: "flex-1 pb-6", children: [
1158
- /* @__PURE__ */ e.jsx(
880
+ /* @__PURE__ */ f("div", { className: "flex-1 pb-6", children: [
881
+ /* @__PURE__ */ e(
1159
882
  "div",
1160
883
  {
1161
- className: `${m[r]} ${y.title} transition-colors duration-300`,
1162
- children: d.title
884
+ className: `${h[t]} ${b.title} transition-colors duration-300`,
885
+ children: l.title
1163
886
  }
1164
887
  ),
1165
- d.description && /* @__PURE__ */ e.jsx(
888
+ l.description && /* @__PURE__ */ e(
1166
889
  "div",
1167
890
  {
1168
- className: `${h[r]} ${y.description} mt-1 transition-colors duration-300`,
1169
- children: d.description
891
+ className: `${m[t]} ${b.description} mt-1 transition-colors duration-300`,
892
+ children: l.description
1170
893
  }
1171
894
  )
1172
895
  ] })
1173
- ] }, x);
896
+ ] }, u);
1174
897
  }) });
1175
- }, ye = ({
898
+ }, Y = ({
1176
899
  percent: s = 0,
1177
- status: l = "normal",
1178
- showInfo: n = !0,
1179
- strokeColor: r,
1180
- strokeWidth: a,
1181
- size: c = "md",
1182
- className: u = "",
1183
- format: f
900
+ status: a = "normal",
901
+ showInfo: o = !0,
902
+ strokeColor: t,
903
+ strokeWidth: c,
904
+ size: d = "md",
905
+ className: i = "",
906
+ format: g
1184
907
  }) => {
1185
- const m = Math.min(100, Math.max(0, s)), h = {
908
+ const h = Math.min(100, Math.max(0, s)), m = {
1186
909
  sm: "h-1.5",
1187
910
  md: "h-2",
1188
911
  lg: "h-3"
@@ -1191,8 +914,8 @@ const de = ({
1191
914
  md: "text-sm",
1192
915
  lg: "text-base"
1193
916
  }, p = () => {
1194
- if (r) return r;
1195
- switch (l) {
917
+ if (t) return t;
918
+ switch (a) {
1196
919
  case "success":
1197
920
  return "bg-green-500";
1198
921
  case "exception":
@@ -1200,135 +923,135 @@ const de = ({
1200
923
  case "active":
1201
924
  return "bg-[#EC615B]";
1202
925
  default:
1203
- return m === 100 ? "bg-green-500" : "bg-[#EC615B]";
926
+ return h === 100 ? "bg-green-500" : "bg-[#EC615B]";
1204
927
  }
1205
- }, d = () => l === "success" || m === 100 ? /* @__PURE__ */ e.jsx("svg", { className: "w-4 h-4 text-green-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx(
928
+ }, l = () => a === "success" || h === 100 ? /* @__PURE__ */ e("svg", { className: "w-4 h-4 text-green-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e(
1206
929
  "path",
1207
930
  {
1208
931
  fillRule: "evenodd",
1209
932
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
1210
933
  clipRule: "evenodd"
1211
934
  }
1212
- ) }) : l === "exception" ? /* @__PURE__ */ e.jsx("svg", { className: "w-4 h-4 text-red-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e.jsx(
935
+ ) }) : a === "exception" ? /* @__PURE__ */ e("svg", { className: "w-4 h-4 text-red-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ e(
1213
936
  "path",
1214
937
  {
1215
938
  fillRule: "evenodd",
1216
939
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",
1217
940
  clipRule: "evenodd"
1218
941
  }
1219
- ) }) : null, x = () => f ? f(m) : `${Math.round(m)}%`, o = a ? `${a}px` : void 0;
1220
- return /* @__PURE__ */ e.jsxs("div", { className: `flex items-center gap-2 ${u}`, children: [
1221
- /* @__PURE__ */ e.jsx("div", { className: "flex-1", children: /* @__PURE__ */ e.jsx(
942
+ ) }) : null, u = () => g ? g(h) : `${Math.round(h)}%`, r = c ? `${c}px` : void 0;
943
+ return /* @__PURE__ */ f("div", { className: `flex items-center gap-2 ${i}`, children: [
944
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
1222
945
  "div",
1223
946
  {
1224
- className: `w-full bg-gray-200 rounded-full overflow-hidden ${h[c]}`,
1225
- style: { height: o },
1226
- children: /* @__PURE__ */ e.jsx(
947
+ className: `w-full bg-gray-200 rounded-full overflow-hidden ${m[d]}`,
948
+ style: { height: r },
949
+ children: /* @__PURE__ */ e(
1227
950
  "div",
1228
951
  {
1229
- className: `${p()} ${h[c]} rounded-full transition-all duration-300 ease-out ${l === "active" ? "progress-active" : ""}`,
952
+ className: `${p()} ${m[d]} rounded-full transition-all duration-300 ease-out ${a === "active" ? "progress-active" : ""}`,
1230
953
  style: {
1231
- width: `${m}%`,
1232
- height: o
954
+ width: `${h}%`,
955
+ height: r
1233
956
  }
1234
957
  }
1235
958
  )
1236
959
  }
1237
960
  ) }),
1238
- n && /* @__PURE__ */ e.jsx("div", { className: `flex items-center gap-1 ${v[c]} text-gray-600 font-normal`, children: d() || x() })
961
+ o && /* @__PURE__ */ e("div", { className: `flex items-center gap-1 ${v[d]} text-gray-600 font-normal`, children: l() || u() })
1239
962
  ] });
1240
- }, je = ({
963
+ }, Z = ({
1241
964
  checked: s,
1242
- defaultChecked: l = !1,
1243
- onChange: n,
1244
- disabled: r = !1,
1245
- indeterminate: a = !1,
1246
- size: c = "md",
1247
- variant: u = "filled",
1248
- className: f = "",
1249
- id: m,
1250
- name: h,
965
+ defaultChecked: a = !1,
966
+ onChange: o,
967
+ disabled: t = !1,
968
+ indeterminate: c = !1,
969
+ size: d = "md",
970
+ variant: i = "filled",
971
+ className: g = "",
972
+ id: h,
973
+ name: m,
1251
974
  value: v
1252
975
  }) => {
1253
- const [p, d] = _(l), x = s !== void 0, o = x ? s : p, y = (R) => {
1254
- if (r) return;
1255
- const T = R.target.checked;
1256
- x || d(T), n == null || n(T);
1257
- }, i = {
976
+ const [p, l] = k(a), u = s !== void 0, r = u ? s : p, b = ($) => {
977
+ if (t) return;
978
+ const E = $.target.checked;
979
+ u || l(E), o == null || o(E);
980
+ }, n = {
1258
981
  sm: "w-4 h-4",
1259
982
  md: "w-5 h-5",
1260
983
  lg: "w-6 h-6"
1261
- }, k = {
984
+ }, N = {
1262
985
  sm: "w-3 h-3",
1263
986
  md: "w-3.5 h-3.5",
1264
987
  lg: "w-4 h-4"
1265
- }, b = u === "filled", N = () => r ? "cursor-not-allowed opacity-50 border-gray-300 bg-gray-100" : b ? !o && !a ? "border-gray-300 bg-white hover:border-gray-400" : "border-[#EC615B] bg-[#EC615B] hover:bg-[#D4554F] hover:border-[#D4554F]" : !o && !a ? "border-gray-300 bg-white hover:border-gray-400" : "border-[#EC615B] bg-white hover:border-[#D4554F]", $ = () => b ? "text-white" : "text-[#EC615B]";
1266
- return /* @__PURE__ */ e.jsxs("div", { className: "inline-flex items-center", children: [
1267
- /* @__PURE__ */ e.jsx(
988
+ }, x = i === "filled", w = () => t ? "cursor-not-allowed opacity-50 border-gray-300 bg-gray-100" : x ? !r && !c ? "border-gray-300 bg-white hover:border-gray-400" : "border-[#EC615B] bg-[#EC615B] hover:bg-[#D4554F] hover:border-[#D4554F]" : !r && !c ? "border-gray-300 bg-white hover:border-gray-400" : "border-[#EC615B] bg-white hover:border-[#D4554F]", C = () => x ? "text-white" : "text-[#EC615B]";
989
+ return /* @__PURE__ */ f("div", { className: "inline-flex items-center", children: [
990
+ /* @__PURE__ */ e(
1268
991
  "input",
1269
992
  {
1270
993
  type: "checkbox",
1271
- id: m,
1272
- name: h,
994
+ id: h,
995
+ name: m,
1273
996
  value: v,
1274
- checked: o,
1275
- onChange: y,
1276
- disabled: r,
997
+ checked: r,
998
+ onChange: b,
999
+ disabled: t,
1277
1000
  className: "sr-only"
1278
1001
  }
1279
1002
  ),
1280
- /* @__PURE__ */ e.jsxs(
1003
+ /* @__PURE__ */ f(
1281
1004
  "label",
1282
1005
  {
1283
- htmlFor: m,
1006
+ htmlFor: h,
1284
1007
  className: `
1285
1008
  relative flex items-center justify-center
1286
- ${i[c]}
1287
- ${u === "outline" ? "border" : "border-2"}
1009
+ ${n[d]}
1010
+ ${i === "outline" ? "border" : "border-2"}
1288
1011
  rounded
1289
1012
  transition-all duration-200 ease-out
1290
1013
  cursor-pointer
1291
- ${N()}
1292
- ${f}
1014
+ ${w()}
1015
+ ${g}
1293
1016
  `,
1294
1017
  children: [
1295
- o && !a && /* @__PURE__ */ e.jsx(
1018
+ r && !c && /* @__PURE__ */ e(
1296
1019
  "svg",
1297
1020
  {
1298
- className: `${k[c]} ${$()}`,
1021
+ className: `${N[d]} ${C()}`,
1299
1022
  fill: "none",
1300
1023
  stroke: "currentColor",
1301
1024
  viewBox: "0 0 24 24",
1302
1025
  strokeWidth: 3,
1303
- children: /* @__PURE__ */ e.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
1026
+ children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
1304
1027
  }
1305
1028
  ),
1306
- a && /* @__PURE__ */ e.jsx(
1029
+ c && /* @__PURE__ */ e(
1307
1030
  "svg",
1308
1031
  {
1309
- className: `${k[c]} ${$()}`,
1032
+ className: `${N[d]} ${C()}`,
1310
1033
  fill: "currentColor",
1311
1034
  viewBox: "0 0 24 24",
1312
- children: /* @__PURE__ */ e.jsx("rect", { x: "4", y: "11", width: "16", height: "2", rx: "1" })
1035
+ children: /* @__PURE__ */ e("rect", { x: "4", y: "11", width: "16", height: "2", rx: "1" })
1313
1036
  }
1314
1037
  )
1315
1038
  ]
1316
1039
  }
1317
1040
  )
1318
1041
  ] });
1319
- }, we = ({
1042
+ }, _ = ({
1320
1043
  items: s,
1321
- onRemove: l,
1322
- emptyMessage: n = "No items selected",
1323
- className: r = "",
1324
- itemClassName: a = "",
1325
- maxHeight: c = "300px"
1326
- }) => s.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: `text-center py-8 text-gray-500 text-sm ${r}`, children: n }) : /* @__PURE__ */ e.jsx(
1044
+ onRemove: a,
1045
+ emptyMessage: o = "No items selected",
1046
+ className: t = "",
1047
+ itemClassName: c = "",
1048
+ maxHeight: d = "300px"
1049
+ }) => s.length === 0 ? /* @__PURE__ */ e("div", { className: `text-center py-8 text-gray-500 text-sm ${t}`, children: o }) : /* @__PURE__ */ e(
1327
1050
  "div",
1328
1051
  {
1329
- className: `space-y-2 overflow-y-auto ${r}`,
1330
- style: { maxHeight: c },
1331
- children: s.map((u, f) => /* @__PURE__ */ e.jsxs(
1052
+ className: `space-y-2 overflow-y-auto ${t}`,
1053
+ style: { maxHeight: d },
1054
+ children: s.map((i, g) => /* @__PURE__ */ f(
1332
1055
  "div",
1333
1056
  {
1334
1057
  className: `
@@ -1337,20 +1060,20 @@ const de = ({
1337
1060
  transition-all duration-300 ease-out
1338
1061
  hover:bg-[#EBEBEB] hover:shadow-sm
1339
1062
  animate-slide-in-item
1340
- ${a}
1063
+ ${c}
1341
1064
  `,
1342
1065
  style: {
1343
- animationDelay: `${f * 50}ms`
1066
+ animationDelay: `${g * 50}ms`
1344
1067
  },
1345
1068
  children: [
1346
- /* @__PURE__ */ e.jsxs("div", { className: "flex-1 min-w-0", children: [
1347
- u.sublabel && /* @__PURE__ */ e.jsx("div", { className: "text-xs text-gray-500 font-normal mb-0.5", children: u.sublabel }),
1348
- /* @__PURE__ */ e.jsx("div", { className: "text-sm font-medium text-[#181918] truncate", children: u.label })
1069
+ /* @__PURE__ */ f("div", { className: "flex-1 min-w-0", children: [
1070
+ i.sublabel && /* @__PURE__ */ e("div", { className: "text-xs text-gray-500 font-normal mb-0.5", children: i.sublabel }),
1071
+ /* @__PURE__ */ e("div", { className: "text-sm font-medium text-[#181918] truncate", children: i.label })
1349
1072
  ] }),
1350
- /* @__PURE__ */ e.jsx(
1073
+ /* @__PURE__ */ e(
1351
1074
  "button",
1352
1075
  {
1353
- onClick: () => l(u.id),
1076
+ onClick: () => a(i.id),
1354
1077
  className: `
1355
1078
  ml-3 flex-shrink-0
1356
1079
  w-6 h-6 rounded-full
@@ -1361,15 +1084,15 @@ const de = ({
1361
1084
  active:scale-95
1362
1085
  focus:outline-none focus:ring-2 focus:ring-[#EC615B] focus:ring-opacity-50
1363
1086
  `,
1364
- "aria-label": `Remove ${u.label}`,
1365
- children: /* @__PURE__ */ e.jsx(
1087
+ "aria-label": `Remove ${i.label}`,
1088
+ children: /* @__PURE__ */ e(
1366
1089
  "svg",
1367
1090
  {
1368
1091
  className: "w-4 h-4",
1369
1092
  fill: "none",
1370
1093
  stroke: "currentColor",
1371
1094
  viewBox: "0 0 24 24",
1372
- children: /* @__PURE__ */ e.jsx(
1095
+ children: /* @__PURE__ */ e(
1373
1096
  "path",
1374
1097
  {
1375
1098
  strokeLinecap: "round",
@@ -1384,24 +1107,24 @@ const de = ({
1384
1107
  )
1385
1108
  ]
1386
1109
  },
1387
- u.id
1110
+ i.id
1388
1111
  ))
1389
1112
  }
1390
1113
  );
1391
1114
  export {
1392
- ve as Badge,
1393
- de as Button,
1394
- fe as Card,
1395
- je as Checkbox,
1396
- me as Dropdown,
1397
- pe as Modal,
1398
- ye as Progress,
1399
- xe as SearchInput,
1400
- oe as Select,
1401
- we as SelectedItemsList,
1402
- ue as StatCard,
1403
- be as Steps,
1404
- he as Table,
1405
- ge as TableTop
1115
+ U as Badge,
1116
+ D as Button,
1117
+ H as Card,
1118
+ Z as Checkbox,
1119
+ Q as Dropdown,
1120
+ J as Modal,
1121
+ Y as Progress,
1122
+ V as SearchInput,
1123
+ P as Select,
1124
+ _ as SelectedItemsList,
1125
+ A as StatCard,
1126
+ X as Steps,
1127
+ q as Table,
1128
+ G as TableTop
1406
1129
  };
1407
1130
  //# sourceMappingURL=index.mjs.map