shekel-fe-shared-lib 1.0.41 → 1.0.43
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.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +212 -212
- package/dist/index.mjs.map +1 -1
- package/dist/shekel-fe-shared-lib.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -90,16 +90,16 @@ const V0 = ({
|
|
|
90
90
|
...s.style
|
|
91
91
|
},
|
|
92
92
|
onMouseEnter: (c) => {
|
|
93
|
-
var
|
|
94
|
-
s.disabled || (e === "primary" ? c.target.style.backgroundColor = "#D8524D" : e === "secondary" ? c.target.style.backgroundColor = "#4B5563" : e === "outline" ? c.target.style.backgroundColor = "#F3F4F6" : e === "ghost" && (c.target.style.backgroundColor = "#E1E4E6")), (
|
|
93
|
+
var u;
|
|
94
|
+
s.disabled || (e === "primary" ? c.target.style.backgroundColor = "#D8524D" : e === "secondary" ? c.target.style.backgroundColor = "#4B5563" : e === "outline" ? c.target.style.backgroundColor = "#F3F4F6" : e === "ghost" && (c.target.style.backgroundColor = "#E1E4E6")), (u = s.onMouseEnter) == null || u.call(s, c);
|
|
95
95
|
},
|
|
96
96
|
onMouseLeave: (c) => {
|
|
97
|
-
var
|
|
97
|
+
var u;
|
|
98
98
|
if (!s.disabled) {
|
|
99
99
|
const p = l();
|
|
100
100
|
c.target.style.backgroundColor = p.backgroundColor || "";
|
|
101
101
|
}
|
|
102
|
-
(
|
|
102
|
+
(u = s.onMouseLeave) == null || u.call(s, c);
|
|
103
103
|
},
|
|
104
104
|
children: n
|
|
105
105
|
}
|
|
@@ -115,13 +115,13 @@ const V0 = ({
|
|
|
115
115
|
progressText: l,
|
|
116
116
|
badge: a,
|
|
117
117
|
width: c = 347,
|
|
118
|
-
className:
|
|
118
|
+
className: u = "",
|
|
119
119
|
selected: p = !1,
|
|
120
120
|
onClick: h,
|
|
121
121
|
size: b = "md",
|
|
122
122
|
rounded: L = "2xl"
|
|
123
123
|
}) => {
|
|
124
|
-
const g = b === "sm" ? "p-3" : b === "lg" ? "p-6" : "p-4",
|
|
124
|
+
const g = b === "sm" ? "p-3" : b === "lg" ? "p-6" : "p-4", f = {
|
|
125
125
|
none: "rounded-none",
|
|
126
126
|
sm: "rounded-sm",
|
|
127
127
|
md: "rounded-md",
|
|
@@ -136,7 +136,7 @@ const V0 = ({
|
|
|
136
136
|
return /* @__PURE__ */ d(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
|
-
className: `bg-white border flex flex-col justify-between transition-all duration-300 ease-in-out hover:border-gray-300 hover:-translate-y-1 cursor-pointer ${g} ${
|
|
139
|
+
className: `bg-white border flex flex-col justify-between transition-all duration-300 ease-in-out hover:border-gray-300 hover:-translate-y-1 cursor-pointer ${g} ${f} ${p ? "border-[#EC615B]" : "border-[#E6E6E6]"} ${u}`,
|
|
140
140
|
style: {
|
|
141
141
|
width: typeof c == "number" ? `${c}px` : c,
|
|
142
142
|
boxShadow: p ? "0 0 0 1px #EC615B" : "0 0 0 0 rgba(0, 0, 0, 0)",
|
|
@@ -186,7 +186,7 @@ const V0 = ({
|
|
|
186
186
|
bgColor: l,
|
|
187
187
|
borderColor: a,
|
|
188
188
|
focusBorderColor: c,
|
|
189
|
-
iconColor:
|
|
189
|
+
iconColor: u,
|
|
190
190
|
textColor: p,
|
|
191
191
|
placeholderColor: h,
|
|
192
192
|
rounded: b = "md",
|
|
@@ -196,7 +196,7 @@ const V0 = ({
|
|
|
196
196
|
process.env.NODE_ENV !== "production" && console.warn(
|
|
197
197
|
"[Shekel Shared Lib] SearchInput is deprecated as of v1.0.11. Please use the new Input component instead for better functionality and consistent styling."
|
|
198
198
|
);
|
|
199
|
-
const w = "relative inline-flex items-center",
|
|
199
|
+
const w = "relative inline-flex items-center", f = "border focus:outline-none focus:ring-1 transition-all duration-200 ease-in-out", v = {
|
|
200
200
|
sm: "px-3 py-1.5 text-sm",
|
|
201
201
|
md: "px-4 py-2 text-base",
|
|
202
202
|
lg: "px-5 py-3 text-lg",
|
|
@@ -212,12 +212,12 @@ const V0 = ({
|
|
|
212
212
|
md: "rounded-lg",
|
|
213
213
|
lg: "rounded-xl",
|
|
214
214
|
full: "rounded-full"
|
|
215
|
-
}, _ = r === "left" ? o === "sm" ? "pl-9" : o === "md" ? "pl-10" : o === "lg" ? "pl-12" : "pl-9 sm:pl-10 md:pl-12" : o === "sm" ? "pr-9" : o === "md" ? "pr-10" : o === "lg" ? "pr-12" : "pr-9 sm:pr-10 md:pr-12", C = n ? "w-full" : "",
|
|
215
|
+
}, _ = r === "left" ? o === "sm" ? "pl-9" : o === "md" ? "pl-10" : o === "lg" ? "pl-12" : "pl-9 sm:pl-10 md:pl-12" : o === "sm" ? "pr-9" : o === "md" ? "pr-10" : o === "lg" ? "pr-12" : "pr-9 sm:pr-10 md:pr-12", C = n ? "w-full" : "", m = {
|
|
216
216
|
backgroundColor: l,
|
|
217
217
|
borderColor: a || "#D1D5DB",
|
|
218
218
|
color: p,
|
|
219
219
|
...L
|
|
220
|
-
}, k = h ? "" : "placeholder:text-gray-400", U = a ? "" : "border-gray-300", H = p ? "" : "text-gray-900", B = c ? "" : "focus:ring-[#EC615B] focus:border-[#EC615B]", G = `${
|
|
220
|
+
}, k = h ? "" : "placeholder:text-gray-400", U = a ? "" : "border-gray-300", H = p ? "" : "text-gray-900", B = c ? "" : "focus:ring-[#EC615B] focus:border-[#EC615B]", G = `${f} ${!s.includes("px-") && !s.includes("py-") ? v[o] : ""} ${e ? _ : ""} ${C} ${s.includes("rounded") ? "" : x[b]} ${s.includes("border-") ? "" : U} ${H} ${B} ${k} ${s}`, E = r === "left" ? "left-3" : "right-3", S = u || "text-gray-400", M = u ? "" : "hover:text-gray-600", N = /* @__PURE__ */ t(
|
|
221
221
|
"svg",
|
|
222
222
|
{
|
|
223
223
|
className: `${y[o]} ${S}`,
|
|
@@ -251,7 +251,7 @@ const V0 = ({
|
|
|
251
251
|
type: "text",
|
|
252
252
|
className: G,
|
|
253
253
|
style: {
|
|
254
|
-
...
|
|
254
|
+
...m,
|
|
255
255
|
...c && {
|
|
256
256
|
"--focus-border-color": c
|
|
257
257
|
},
|
|
@@ -293,7 +293,7 @@ const V0 = ({
|
|
|
293
293
|
disabled: l = !1,
|
|
294
294
|
size: a = "md",
|
|
295
295
|
menuBgColor: c,
|
|
296
|
-
menuItemHoverColor:
|
|
296
|
+
menuItemHoverColor: u,
|
|
297
297
|
dangerColor: p,
|
|
298
298
|
borderColor: h,
|
|
299
299
|
style: b
|
|
@@ -307,7 +307,7 @@ const V0 = ({
|
|
|
307
307
|
document.removeEventListener("mousedown", $);
|
|
308
308
|
};
|
|
309
309
|
}, [L]);
|
|
310
|
-
const
|
|
310
|
+
const f = () => {
|
|
311
311
|
!l && r === "click" && g(!L);
|
|
312
312
|
}, v = () => {
|
|
313
313
|
!l && r === "hover" && g(!0);
|
|
@@ -320,7 +320,7 @@ const V0 = ({
|
|
|
320
320
|
bottomRight: "top-full right-0 mt-1",
|
|
321
321
|
topLeft: "bottom-full left-0 mb-1",
|
|
322
322
|
topRight: "bottom-full right-0 mb-1"
|
|
323
|
-
}, C = o.startsWith("bottom") ? "dropdown-slide-down" : "dropdown-slide-up",
|
|
323
|
+
}, C = o.startsWith("bottom") ? "dropdown-slide-down" : "dropdown-slide-up", m = {
|
|
324
324
|
sm: "min-w-[120px] text-xs",
|
|
325
325
|
md: "min-w-[160px] text-sm",
|
|
326
326
|
lg: "min-w-[220px] text-base",
|
|
@@ -330,7 +330,7 @@ const V0 = ({
|
|
|
330
330
|
md: "px-4 py-2 text-sm gap-2",
|
|
331
331
|
lg: "px-5 py-3 text-base gap-2.5",
|
|
332
332
|
responsive: "px-3 sm:px-4 md:px-5 py-1.5 sm:py-2 md:py-3 text-xs sm:text-sm md:text-base gap-1.5 sm:gap-2 md:gap-2.5"
|
|
333
|
-
}, U = "hover:bg-gray-50", H = "border-gray-200", B = "text-red-600", G =
|
|
333
|
+
}, U = "hover:bg-gray-50", H = "border-gray-200", B = "text-red-600", G = u ? { backgroundColor: u } : {}, E = u ? "" : U, S = p ? { color: p } : {}, M = p ? { backgroundColor: p + "15" } : {}, N = h || H;
|
|
334
334
|
return /* @__PURE__ */ d(
|
|
335
335
|
"div",
|
|
336
336
|
{
|
|
@@ -343,7 +343,7 @@ const V0 = ({
|
|
|
343
343
|
/* @__PURE__ */ t(
|
|
344
344
|
"div",
|
|
345
345
|
{
|
|
346
|
-
onClick:
|
|
346
|
+
onClick: f,
|
|
347
347
|
className: `inline-flex ${l ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
|
|
348
348
|
children: n
|
|
349
349
|
}
|
|
@@ -351,7 +351,7 @@ const V0 = ({
|
|
|
351
351
|
L && !l && /* @__PURE__ */ t(
|
|
352
352
|
"div",
|
|
353
353
|
{
|
|
354
|
-
className: `absolute ${_[o]} ${C} z-50 ${
|
|
354
|
+
className: `absolute ${_[o]} ${C} z-50 ${m[a]} ${i}`,
|
|
355
355
|
children: /* @__PURE__ */ t(
|
|
356
356
|
"div",
|
|
357
357
|
{
|
|
@@ -362,7 +362,7 @@ const V0 = ({
|
|
|
362
362
|
return $.disabled || ($.danger ? Z = {
|
|
363
363
|
...S,
|
|
364
364
|
...M
|
|
365
|
-
} :
|
|
365
|
+
} : u && (Z = G)), /* @__PURE__ */ d(
|
|
366
366
|
"div",
|
|
367
367
|
{
|
|
368
368
|
onClick: () => x($),
|
|
@@ -422,8 +422,8 @@ var k2 = (e) => /^\w*$/.test(e), i2 = (e) => e === void 0, A2 = (e) => Array.isA
|
|
|
422
422
|
const a = s[n];
|
|
423
423
|
let c = o;
|
|
424
424
|
if (n !== l) {
|
|
425
|
-
const
|
|
426
|
-
c = R(
|
|
425
|
+
const u = e[a];
|
|
426
|
+
c = R(u) || Array.isArray(u) ? u : isNaN(+s[n + 1]) ? {} : [];
|
|
427
427
|
}
|
|
428
428
|
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
429
429
|
return;
|
|
@@ -467,10 +467,10 @@ function T2(e) {
|
|
|
467
467
|
name: s,
|
|
468
468
|
formState: c.current,
|
|
469
469
|
exact: i,
|
|
470
|
-
callback: (
|
|
470
|
+
callback: (u) => {
|
|
471
471
|
!n && a({
|
|
472
472
|
...o._formState,
|
|
473
|
-
...
|
|
473
|
+
...u
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}), [s, n, i]), V.useEffect(() => {
|
|
@@ -502,34 +502,34 @@ function Y(e, r, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
502
502
|
return !0;
|
|
503
503
|
}
|
|
504
504
|
function K2(e) {
|
|
505
|
-
const r = c2(), { control: o = r, name: n, defaultValue: s, disabled: i, exact: l, compute: a } = e || {}, c = V.useRef(s),
|
|
506
|
-
|
|
505
|
+
const r = c2(), { control: o = r, name: n, defaultValue: s, disabled: i, exact: l, compute: a } = e || {}, c = V.useRef(s), u = V.useRef(a), p = V.useRef(void 0), h = V.useRef(o), b = V.useRef(n);
|
|
506
|
+
u.current = a;
|
|
507
507
|
const [L, g] = V.useState(() => {
|
|
508
508
|
const _ = o._getWatch(n, c.current);
|
|
509
|
-
return
|
|
509
|
+
return u.current ? u.current(_) : _;
|
|
510
510
|
}), w = V.useCallback((_) => {
|
|
511
511
|
const C = y2(n, o._names, _ || o._formValues, !1, c.current);
|
|
512
|
-
return
|
|
513
|
-
}, [o._formValues, o._names, n]),
|
|
512
|
+
return u.current ? u.current(C) : C;
|
|
513
|
+
}, [o._formValues, o._names, n]), f = V.useCallback((_) => {
|
|
514
514
|
if (!i) {
|
|
515
515
|
const C = y2(n, o._names, _ || o._formValues, !1, c.current);
|
|
516
|
-
if (
|
|
517
|
-
const
|
|
518
|
-
Y(
|
|
516
|
+
if (u.current) {
|
|
517
|
+
const m = u.current(C);
|
|
518
|
+
Y(m, p.current) || (g(m), p.current = m);
|
|
519
519
|
} else
|
|
520
520
|
g(C);
|
|
521
521
|
}
|
|
522
522
|
}, [o._formValues, o._names, i, n]);
|
|
523
|
-
F2(() => ((h.current !== o || !Y(b.current, n)) && (h.current = o, b.current = n,
|
|
523
|
+
F2(() => ((h.current !== o || !Y(b.current, n)) && (h.current = o, b.current = n, f()), o._subscribe({
|
|
524
524
|
name: n,
|
|
525
525
|
formState: {
|
|
526
526
|
values: !0
|
|
527
527
|
},
|
|
528
528
|
exact: l,
|
|
529
529
|
callback: (_) => {
|
|
530
|
-
|
|
530
|
+
f(_.values);
|
|
531
531
|
}
|
|
532
|
-
})), [o, l, n,
|
|
532
|
+
})), [o, l, n, f]), V.useEffect(() => o._removeUnmounted());
|
|
533
533
|
const v = h.current !== o, y = b.current, x = V.useMemo(() => {
|
|
534
534
|
if (i)
|
|
535
535
|
return null;
|
|
@@ -539,10 +539,10 @@ function K2(e) {
|
|
|
539
539
|
return x !== null ? x : L;
|
|
540
540
|
}
|
|
541
541
|
function A(e) {
|
|
542
|
-
const r = c2(), { name: o, disabled: n, control: s = r, shouldUnregister: i, defaultValue: l, exact: a = !0 } = e, c = P2(s._names.array, o),
|
|
542
|
+
const r = c2(), { name: o, disabled: n, control: s = r, shouldUnregister: i, defaultValue: l, exact: a = !0 } = e, c = P2(s._names.array, o), u = V.useMemo(() => z(s._formValues, o, z(s._defaultValues, o, l)), [s, o, l]), p = K2({
|
|
543
543
|
control: s,
|
|
544
544
|
name: o,
|
|
545
|
-
defaultValue:
|
|
545
|
+
defaultValue: u,
|
|
546
546
|
exact: a
|
|
547
547
|
}), h = T2({
|
|
548
548
|
control: s,
|
|
@@ -575,7 +575,7 @@ function A(e) {
|
|
|
575
575
|
enumerable: !0,
|
|
576
576
|
get: () => z(h.errors, o)
|
|
577
577
|
}
|
|
578
|
-
}), [h, o]),
|
|
578
|
+
}), [h, o]), f = V.useCallback((_) => g.current.onChange({
|
|
579
579
|
target: {
|
|
580
580
|
value: D2(_),
|
|
581
581
|
name: o
|
|
@@ -592,33 +592,33 @@ function A(e) {
|
|
|
592
592
|
C && C._f && _ && (C._f.ref = {
|
|
593
593
|
focus: () => J(_.focus) && _.focus(),
|
|
594
594
|
select: () => J(_.select) && _.select(),
|
|
595
|
-
setCustomValidity: (
|
|
595
|
+
setCustomValidity: (m) => J(_.setCustomValidity) && _.setCustomValidity(m),
|
|
596
596
|
reportValidity: () => J(_.reportValidity) && _.reportValidity()
|
|
597
597
|
});
|
|
598
598
|
}, [s._fields, o]), x = V.useMemo(() => ({
|
|
599
599
|
name: o,
|
|
600
600
|
value: p,
|
|
601
601
|
...s2(n) || h.disabled ? { disabled: h.disabled || n } : {},
|
|
602
|
-
onChange:
|
|
602
|
+
onChange: f,
|
|
603
603
|
onBlur: v,
|
|
604
604
|
ref: y
|
|
605
|
-
}), [o, n, h.disabled,
|
|
605
|
+
}), [o, n, h.disabled, f, v, y, p]);
|
|
606
606
|
return V.useEffect(() => {
|
|
607
607
|
const _ = s._options.shouldUnregister || i, C = L.current;
|
|
608
608
|
C && C !== o && !c && s.unregister(C), s.register(o, {
|
|
609
609
|
...b.current.rules,
|
|
610
610
|
...s2(b.current.disabled) ? { disabled: b.current.disabled } : {}
|
|
611
611
|
});
|
|
612
|
-
const
|
|
612
|
+
const m = (k, U) => {
|
|
613
613
|
const H = z(s._fields, k);
|
|
614
614
|
H && H._f && (H._f.mount = U);
|
|
615
615
|
};
|
|
616
|
-
if (
|
|
616
|
+
if (m(o, !0), _) {
|
|
617
617
|
const k = w2(z(s._options.defaultValues, o, b.current.defaultValue));
|
|
618
618
|
m2(s._defaultValues, o, k), i2(z(s._formValues, o)) && m2(s._formValues, o, k);
|
|
619
619
|
}
|
|
620
620
|
return !c && s.register(o), L.current = o, () => {
|
|
621
|
-
(c ? _ && !s._state.action : _) ? s.unregister(o) :
|
|
621
|
+
(c ? _ && !s._state.action : _) ? s.unregister(o) : m(o, !1);
|
|
622
622
|
};
|
|
623
623
|
}, [o, s, c, i]), V.useEffect(() => {
|
|
624
624
|
s._setDisabledField({
|
|
@@ -643,20 +643,20 @@ const V2 = ({
|
|
|
643
643
|
name: l,
|
|
644
644
|
disabled: a = !1,
|
|
645
645
|
size: c = "md",
|
|
646
|
-
fullWidth:
|
|
646
|
+
fullWidth: u = !1,
|
|
647
647
|
className: p = "",
|
|
648
648
|
allowClear: h = !1,
|
|
649
649
|
showSearch: b = !1,
|
|
650
650
|
searchPlaceholder: L = "Search...",
|
|
651
651
|
bgColor: g,
|
|
652
652
|
borderColor: w,
|
|
653
|
-
focusBorderColor:
|
|
653
|
+
focusBorderColor: f = "#EC615B",
|
|
654
654
|
selectedBgColor: v,
|
|
655
655
|
selectedTextColor: y,
|
|
656
656
|
hoverBgColor: x,
|
|
657
657
|
rounded: _ = "lg",
|
|
658
658
|
style: C,
|
|
659
|
-
label:
|
|
659
|
+
label: m,
|
|
660
660
|
error: k,
|
|
661
661
|
helperText: U
|
|
662
662
|
}) => {
|
|
@@ -686,7 +686,7 @@ const V2 = ({
|
|
|
686
686
|
md: "rounded-md",
|
|
687
687
|
lg: "rounded-lg",
|
|
688
688
|
full: "rounded-full"
|
|
689
|
-
}, H2 =
|
|
689
|
+
}, H2 = u ? "w-full" : "min-w-[200px]", r2 = () => {
|
|
690
690
|
const F = {};
|
|
691
691
|
return g && (F.backgroundColor = g), w && (F.borderColor = w), F;
|
|
692
692
|
}, N2 = () => {
|
|
@@ -703,7 +703,7 @@ const V2 = ({
|
|
|
703
703
|
}
|
|
704
704
|
), $2 = /* @__PURE__ */ t("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ t("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) });
|
|
705
705
|
return /* @__PURE__ */ d("div", { className: `relative inline-block ${H2}`, style: C, children: [
|
|
706
|
-
|
|
706
|
+
m && /* @__PURE__ */ t("label", { className: "block text-sm font-medium mb-2", style: { color: k ? "#C21919" : "#181918" }, children: m }),
|
|
707
707
|
/* @__PURE__ */ d("div", { ref: N, className: "relative", children: [
|
|
708
708
|
/* @__PURE__ */ t("input", { type: "hidden", name: l, value: Z ?? "", readOnly: !0 }),
|
|
709
709
|
/* @__PURE__ */ d(
|
|
@@ -725,8 +725,8 @@ const V2 = ({
|
|
|
725
725
|
backgroundColor: g || r2().backgroundColor || "#FFFFFF",
|
|
726
726
|
borderColor: k ? "#C21919" : w || r2().borderColor || "#D1D5DB",
|
|
727
727
|
...H && {
|
|
728
|
-
borderColor: k ? "#C21919" :
|
|
729
|
-
boxShadow: `0 0 0 2px ${k ? "#C21919" :
|
|
728
|
+
borderColor: k ? "#C21919" : f,
|
|
729
|
+
boxShadow: `0 0 0 2px ${k ? "#C21919" : f}20`
|
|
730
730
|
},
|
|
731
731
|
...!a && !H && x && {
|
|
732
732
|
cursor: "pointer"
|
|
@@ -766,7 +766,7 @@ const V2 = ({
|
|
|
766
766
|
className: "w-full px-3 py-1.5 text-sm border border-gray-300 rounded focus:outline-none focus:ring-2 transition-all duration-200 ease-out",
|
|
767
767
|
style: {
|
|
768
768
|
borderColor: w,
|
|
769
|
-
boxShadow: `0 0 0 2px ${
|
|
769
|
+
boxShadow: `0 0 0 2px ${f}20`
|
|
770
770
|
},
|
|
771
771
|
onClick: (F) => F.stopPropagation()
|
|
772
772
|
}
|
|
@@ -840,14 +840,14 @@ const V2 = ({
|
|
|
840
840
|
className: l = "",
|
|
841
841
|
bordered: a = !1,
|
|
842
842
|
striped: c = !1,
|
|
843
|
-
size:
|
|
843
|
+
size: u = "md",
|
|
844
844
|
headerBgColor: p,
|
|
845
845
|
headerTextColor: h,
|
|
846
846
|
rowHoverColor: b,
|
|
847
847
|
borderColor: L,
|
|
848
848
|
stripedRowColor: g,
|
|
849
849
|
rounded: w = "md",
|
|
850
|
-
style:
|
|
850
|
+
style: f
|
|
851
851
|
}) => {
|
|
852
852
|
const [v, y] = O(
|
|
853
853
|
n && typeof n == "object" && n.current || 1
|
|
@@ -882,19 +882,19 @@ const V2 = ({
|
|
|
882
882
|
rowFontSize: "text-xs sm:text-xs md:text-sm",
|
|
883
883
|
containerRounded: "rounded-md sm:rounded-lg md:rounded-lg"
|
|
884
884
|
}
|
|
885
|
-
},
|
|
885
|
+
}, m = {
|
|
886
886
|
none: "",
|
|
887
887
|
sm: "rounded-sm",
|
|
888
888
|
md: "rounded-md",
|
|
889
889
|
lg: "rounded-lg",
|
|
890
890
|
xl: "rounded-xl",
|
|
891
891
|
"2xl": "rounded-2xl"
|
|
892
|
-
}, k = C[
|
|
892
|
+
}, k = C[u], U = m[w], H = (M, N) => typeof o == "function" ? o(M) : M[o] || String(N), B = (M, N) => N ? N.split(".").reduce(($, Z) => $ == null ? void 0 : $[Z], M) : M, G = n === !1 ? r : r.slice((v - 1) * x, v * x), E = (M) => {
|
|
893
893
|
y(M), n && typeof n == "object" && n.onChange && n.onChange(M, x);
|
|
894
894
|
}, S = (M) => {
|
|
895
895
|
_(M), y(1), n && typeof n == "object" && n.onChange && n.onChange(1, M);
|
|
896
896
|
};
|
|
897
|
-
return /* @__PURE__ */ d("div", { className: "w-full", style:
|
|
897
|
+
return /* @__PURE__ */ d("div", { className: "w-full", style: f, children: [
|
|
898
898
|
/* @__PURE__ */ t(
|
|
899
899
|
"div",
|
|
900
900
|
{
|
|
@@ -1026,7 +1026,7 @@ const V2 = ({
|
|
|
1026
1026
|
showSizeChanger: n && typeof n == "object" ? n.showSizeChanger : !0,
|
|
1027
1027
|
pageSizeOptions: n && typeof n == "object" ? n.pageSizeOptions : [10, 20, 50, 100],
|
|
1028
1028
|
showTotal: n && typeof n == "object" ? n.showTotal : !0,
|
|
1029
|
-
size: n && typeof n == "object" && n.size ? n.size :
|
|
1029
|
+
size: n && typeof n == "object" && n.size ? n.size : u === "responsive" ? "md" : u
|
|
1030
1030
|
}
|
|
1031
1031
|
)
|
|
1032
1032
|
] });
|
|
@@ -1041,7 +1041,7 @@ const V2 = ({
|
|
|
1041
1041
|
showTotal: a = !0,
|
|
1042
1042
|
size: c = "md"
|
|
1043
1043
|
}) => {
|
|
1044
|
-
const
|
|
1044
|
+
const u = Math.ceil(o / r), p = (e - 1) * r + 1, h = Math.min(e * r, o), b = {
|
|
1045
1045
|
sm: {
|
|
1046
1046
|
button: "px-2.5 py-1 text-xs",
|
|
1047
1047
|
icon: "h-3.5 w-3.5",
|
|
@@ -1059,19 +1059,19 @@ const V2 = ({
|
|
|
1059
1059
|
}
|
|
1060
1060
|
}, L = () => {
|
|
1061
1061
|
const g = [];
|
|
1062
|
-
if (
|
|
1063
|
-
for (let
|
|
1064
|
-
g.push(
|
|
1062
|
+
if (u <= 7)
|
|
1063
|
+
for (let f = 1; f <= u; f++)
|
|
1064
|
+
g.push(f);
|
|
1065
1065
|
else if (e <= 3) {
|
|
1066
|
-
for (let
|
|
1067
|
-
g.push("..."), g.push(
|
|
1068
|
-
} else if (e >=
|
|
1066
|
+
for (let f = 1; f <= 5; f++) g.push(f);
|
|
1067
|
+
g.push("..."), g.push(u);
|
|
1068
|
+
} else if (e >= u - 2) {
|
|
1069
1069
|
g.push(1), g.push("...");
|
|
1070
|
-
for (let
|
|
1070
|
+
for (let f = u - 4; f <= u; f++) g.push(f);
|
|
1071
1071
|
} else {
|
|
1072
1072
|
g.push(1), g.push("...");
|
|
1073
|
-
for (let
|
|
1074
|
-
g.push("..."), g.push(
|
|
1073
|
+
for (let f = e - 1; f <= e + 1; f++) g.push(f);
|
|
1074
|
+
g.push("..."), g.push(u);
|
|
1075
1075
|
}
|
|
1076
1076
|
return g;
|
|
1077
1077
|
};
|
|
@@ -1136,7 +1136,7 @@ const V2 = ({
|
|
|
1136
1136
|
"button",
|
|
1137
1137
|
{
|
|
1138
1138
|
onClick: () => n(e + 1),
|
|
1139
|
-
disabled: e ===
|
|
1139
|
+
disabled: e === u,
|
|
1140
1140
|
className: `relative inline-flex items-center justify-center rounded-md ${b[c].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`,
|
|
1141
1141
|
children: /* @__PURE__ */ t("svg", { className: b[c].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ t(
|
|
1142
1142
|
"path",
|
|
@@ -1162,14 +1162,14 @@ const V2 = ({
|
|
|
1162
1162
|
className: l = "",
|
|
1163
1163
|
size: a = "responsive",
|
|
1164
1164
|
titleColor: c,
|
|
1165
|
-
descriptionColor:
|
|
1165
|
+
descriptionColor: u,
|
|
1166
1166
|
searchBgColor: p = "white",
|
|
1167
1167
|
searchBorderColor: h = "#d1d5db",
|
|
1168
1168
|
searchFocusBorderColor: b = "#3b82f6",
|
|
1169
1169
|
rounded: L = "md",
|
|
1170
1170
|
style: g,
|
|
1171
1171
|
hideActionButtons: w = !1,
|
|
1172
|
-
selectedActionButton:
|
|
1172
|
+
selectedActionButton: f
|
|
1173
1173
|
}) => {
|
|
1174
1174
|
const v = (k) => {
|
|
1175
1175
|
n == null || n(k.target.value);
|
|
@@ -1232,7 +1232,7 @@ const V2 = ({
|
|
|
1232
1232
|
md: "rounded-md",
|
|
1233
1233
|
lg: "rounded-lg",
|
|
1234
1234
|
full: "rounded-full"
|
|
1235
|
-
}[L],
|
|
1235
|
+
}[L], m = {
|
|
1236
1236
|
backgroundColor: p,
|
|
1237
1237
|
borderColor: h
|
|
1238
1238
|
};
|
|
@@ -1255,7 +1255,7 @@ const V2 = ({
|
|
|
1255
1255
|
"p",
|
|
1256
1256
|
{
|
|
1257
1257
|
className: `${x.descriptionSize} ${x.descriptionMargin}`,
|
|
1258
|
-
style: { color:
|
|
1258
|
+
style: { color: u || "#6b7280" },
|
|
1259
1259
|
children: r
|
|
1260
1260
|
}
|
|
1261
1261
|
)
|
|
@@ -1287,7 +1287,7 @@ const V2 = ({
|
|
|
1287
1287
|
placeholder: o,
|
|
1288
1288
|
onChange: v,
|
|
1289
1289
|
className: `block w-full ${x.searchPaddingLeft} pr-3 ${x.searchInputPy} border ${C} focus:outline-none focus:ring-2 focus:ring-opacity-50 ${x.searchInputSize} transition-colors duration-200`,
|
|
1290
|
-
style:
|
|
1290
|
+
style: m,
|
|
1291
1291
|
onFocus: (k) => {
|
|
1292
1292
|
k.currentTarget.style.borderColor = b, k.currentTarget.style.boxShadow = "0 0 0 2px rgba(59, 130, 246, 0.1)";
|
|
1293
1293
|
},
|
|
@@ -1297,7 +1297,7 @@ const V2 = ({
|
|
|
1297
1297
|
}
|
|
1298
1298
|
)
|
|
1299
1299
|
] }) }),
|
|
1300
|
-
/* @__PURE__ */ t("div", { className: "flex items-center gap-2 w-full sm:w-auto", children: w &&
|
|
1300
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-2 w-full sm:w-auto", children: w && f ? f : s })
|
|
1301
1301
|
] }),
|
|
1302
1302
|
i && /* @__PURE__ */ t("div", { className: `flex flex-wrap items-center ${x.gap}`, children: i })
|
|
1303
1303
|
]
|
|
@@ -1320,14 +1320,14 @@ const V2 = ({
|
|
|
1320
1320
|
size: l = "md",
|
|
1321
1321
|
closable: a = !0,
|
|
1322
1322
|
maskClosable: c = !0,
|
|
1323
|
-
centered:
|
|
1323
|
+
centered: u = !0,
|
|
1324
1324
|
className: p = "",
|
|
1325
1325
|
bgColor: h = "#ffffff",
|
|
1326
1326
|
headerBgColor: b = "#ffffff",
|
|
1327
1327
|
overlayColor: L = "rgba(0, 0, 0, 0.5)",
|
|
1328
1328
|
bodyClassName: g = "",
|
|
1329
1329
|
headerClassName: w = "",
|
|
1330
|
-
maxHeight:
|
|
1330
|
+
maxHeight: f = "70vh"
|
|
1331
1331
|
}) => {
|
|
1332
1332
|
const [v, y] = O(!1), [x, _] = O(!1), C = i || X2[l], k = {
|
|
1333
1333
|
width: typeof C == "number" ? `${C}px` : C,
|
|
@@ -1374,11 +1374,11 @@ const V2 = ({
|
|
|
1374
1374
|
style: H
|
|
1375
1375
|
}
|
|
1376
1376
|
),
|
|
1377
|
-
/* @__PURE__ */ t("div", { className: `flex min-h-full items-center justify-center p-4 ${
|
|
1377
|
+
/* @__PURE__ */ t("div", { className: `flex min-h-full items-center justify-center p-4 ${u ? "items-center" : "items-start pt-20"}`, children: /* @__PURE__ */ d(
|
|
1378
1378
|
"div",
|
|
1379
1379
|
{
|
|
1380
1380
|
className: `relative rounded-lg shadow-xl transition-all duration-200 ease-out overflow-y-auto ${x ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 -translate-y-4"} ${p}`,
|
|
1381
|
-
style: { ...k, maxHeight: typeof
|
|
1381
|
+
style: { ...k, maxHeight: typeof f == "number" ? `${f}px` : f },
|
|
1382
1382
|
onClick: G,
|
|
1383
1383
|
children: [
|
|
1384
1384
|
(o || a) && /* @__PURE__ */ d(
|
|
@@ -1440,7 +1440,7 @@ const V2 = ({
|
|
|
1440
1440
|
className: l = "",
|
|
1441
1441
|
bgColor: a,
|
|
1442
1442
|
textColor: c,
|
|
1443
|
-
borderColor:
|
|
1443
|
+
borderColor: u,
|
|
1444
1444
|
rounded: p = "full",
|
|
1445
1445
|
style: h
|
|
1446
1446
|
}) => {
|
|
@@ -1468,7 +1468,7 @@ const V2 = ({
|
|
|
1468
1468
|
warning: "bg-yellow-600",
|
|
1469
1469
|
danger: "bg-red-600",
|
|
1470
1470
|
info: "bg-cyan-600"
|
|
1471
|
-
},
|
|
1471
|
+
}, f = {
|
|
1472
1472
|
sm: "w-3 h-3",
|
|
1473
1473
|
md: "w-3.5 h-3.5",
|
|
1474
1474
|
lg: "w-4 h-4",
|
|
@@ -1482,7 +1482,7 @@ const V2 = ({
|
|
|
1482
1482
|
}, y = {
|
|
1483
1483
|
...a && { backgroundColor: a },
|
|
1484
1484
|
...c && { color: c },
|
|
1485
|
-
...
|
|
1485
|
+
...u && { borderColor: u, borderWidth: "1px", borderStyle: "solid" },
|
|
1486
1486
|
...h
|
|
1487
1487
|
};
|
|
1488
1488
|
return /* @__PURE__ */ d(
|
|
@@ -1492,9 +1492,9 @@ const V2 = ({
|
|
|
1492
1492
|
style: y,
|
|
1493
1493
|
children: [
|
|
1494
1494
|
n && /* @__PURE__ */ t("span", { className: `rounded-full ${g[o]} ${w[r]}` }),
|
|
1495
|
-
s && i === "left" && /* @__PURE__ */ t("span", { className: `inline-flex items-center ${
|
|
1495
|
+
s && i === "left" && /* @__PURE__ */ t("span", { className: `inline-flex items-center ${f[o]}`, children: s }),
|
|
1496
1496
|
e,
|
|
1497
|
-
s && i === "right" && /* @__PURE__ */ t("span", { className: `inline-flex items-center ${
|
|
1497
|
+
s && i === "right" && /* @__PURE__ */ t("span", { className: `inline-flex items-center ${f[o]}`, children: s })
|
|
1498
1498
|
]
|
|
1499
1499
|
}
|
|
1500
1500
|
);
|
|
@@ -1508,7 +1508,7 @@ const V2 = ({
|
|
|
1508
1508
|
style: l,
|
|
1509
1509
|
finishColor: a,
|
|
1510
1510
|
processColor: c,
|
|
1511
|
-
waitColor:
|
|
1511
|
+
waitColor: u,
|
|
1512
1512
|
errorColor: p,
|
|
1513
1513
|
lineColor: h
|
|
1514
1514
|
}) => {
|
|
@@ -1527,7 +1527,7 @@ const V2 = ({
|
|
|
1527
1527
|
md: "text-sm",
|
|
1528
1528
|
lg: "text-base",
|
|
1529
1529
|
responsive: "text-xs sm:text-xs md:text-sm lg:text-base"
|
|
1530
|
-
},
|
|
1530
|
+
}, f = (y, x) => x || (y === "finish" ? /* @__PURE__ */ t("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ t(
|
|
1531
1531
|
"path",
|
|
1532
1532
|
{
|
|
1533
1533
|
fillRule: "evenodd",
|
|
@@ -1574,12 +1574,12 @@ const V2 = ({
|
|
|
1574
1574
|
title: "text-gray-500",
|
|
1575
1575
|
description: "text-gray-400",
|
|
1576
1576
|
line: h ? `bg-[${h}]` : "bg-gray-300",
|
|
1577
|
-
iconColor:
|
|
1577
|
+
iconColor: u
|
|
1578
1578
|
};
|
|
1579
1579
|
}
|
|
1580
1580
|
};
|
|
1581
1581
|
return o === "horizontal" ? /* @__PURE__ */ t("div", { className: `flex items-start ${i}`, style: l, children: e.map((y, x) => {
|
|
1582
|
-
const _ = b(x, y), C = v(_),
|
|
1582
|
+
const _ = b(x, y), C = v(_), m = x === e.length - 1, k = {};
|
|
1583
1583
|
return C.iconColor && (k.color = C.iconColor), /* @__PURE__ */ d("div", { className: "flex flex-1 items-start", children: [
|
|
1584
1584
|
/* @__PURE__ */ d("div", { className: "flex flex-col items-center", children: [
|
|
1585
1585
|
/* @__PURE__ */ t(
|
|
@@ -1587,7 +1587,7 @@ const V2 = ({
|
|
|
1587
1587
|
{
|
|
1588
1588
|
className: `flex items-center justify-center ${L[n]} rounded-full border transition-all duration-300 ${C.icon}`,
|
|
1589
1589
|
style: k,
|
|
1590
|
-
children:
|
|
1590
|
+
children: f(_, y.icon)
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
1593
1593
|
/* @__PURE__ */ d("div", { className: "mt-2 text-center", children: [
|
|
@@ -1607,7 +1607,7 @@ const V2 = ({
|
|
|
1607
1607
|
)
|
|
1608
1608
|
] })
|
|
1609
1609
|
] }),
|
|
1610
|
-
!
|
|
1610
|
+
!m && /* @__PURE__ */ t(
|
|
1611
1611
|
"div",
|
|
1612
1612
|
{
|
|
1613
1613
|
className: `flex-1 h-0.5 mt-4 mx-2 ${C.line} transition-colors duration-300`
|
|
@@ -1615,7 +1615,7 @@ const V2 = ({
|
|
|
1615
1615
|
)
|
|
1616
1616
|
] }, x);
|
|
1617
1617
|
}) }) : /* @__PURE__ */ t("div", { className: `flex flex-col ${i}`, style: l, children: e.map((y, x) => {
|
|
1618
|
-
const _ = b(x, y), C = v(_),
|
|
1618
|
+
const _ = b(x, y), C = v(_), m = x === e.length - 1, k = {};
|
|
1619
1619
|
return C.iconColor && (k.color = C.iconColor), /* @__PURE__ */ d("div", { className: "flex", children: [
|
|
1620
1620
|
/* @__PURE__ */ d("div", { className: "flex flex-col items-center mr-4", children: [
|
|
1621
1621
|
/* @__PURE__ */ t(
|
|
@@ -1623,10 +1623,10 @@ const V2 = ({
|
|
|
1623
1623
|
{
|
|
1624
1624
|
className: `flex items-center justify-center ${L[n]} rounded-full border transition-all duration-300 ${C.icon}`,
|
|
1625
1625
|
style: k,
|
|
1626
|
-
children:
|
|
1626
|
+
children: f(_, y.icon)
|
|
1627
1627
|
}
|
|
1628
1628
|
),
|
|
1629
|
-
!
|
|
1629
|
+
!m && /* @__PURE__ */ t(
|
|
1630
1630
|
"div",
|
|
1631
1631
|
{
|
|
1632
1632
|
className: `w-0.5 flex-1 my-1 ${C.line} transition-colors duration-300`,
|
|
@@ -1662,7 +1662,7 @@ const V2 = ({
|
|
|
1662
1662
|
className: l = "",
|
|
1663
1663
|
format: a,
|
|
1664
1664
|
bgColor: c,
|
|
1665
|
-
successColor:
|
|
1665
|
+
successColor: u,
|
|
1666
1666
|
exceptionColor: p,
|
|
1667
1667
|
trackColor: h,
|
|
1668
1668
|
rounded: b = "full"
|
|
@@ -1677,7 +1677,7 @@ const V2 = ({
|
|
|
1677
1677
|
md: "text-sm",
|
|
1678
1678
|
lg: "text-base",
|
|
1679
1679
|
responsive: "text-xs sm:text-sm md:text-base lg:text-lg"
|
|
1680
|
-
},
|
|
1680
|
+
}, f = {
|
|
1681
1681
|
none: "rounded-none",
|
|
1682
1682
|
sm: "rounded-sm",
|
|
1683
1683
|
md: "rounded-md",
|
|
@@ -1687,13 +1687,13 @@ const V2 = ({
|
|
|
1687
1687
|
if (n) return n;
|
|
1688
1688
|
switch (r) {
|
|
1689
1689
|
case "success":
|
|
1690
|
-
return
|
|
1690
|
+
return u || "bg-green-500";
|
|
1691
1691
|
case "exception":
|
|
1692
1692
|
return p || "bg-red-500";
|
|
1693
1693
|
case "active":
|
|
1694
1694
|
return c || "bg-[#EC615B]";
|
|
1695
1695
|
default:
|
|
1696
|
-
return L === 100 ?
|
|
1696
|
+
return L === 100 ? u || "bg-green-500" : c || "bg-[#EC615B]";
|
|
1697
1697
|
}
|
|
1698
1698
|
}, y = () => h || "bg-gray-200", x = () => r === "success" || L === 100 ? /* @__PURE__ */ t("svg", { className: "w-4 h-4 text-green-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ t(
|
|
1699
1699
|
"path",
|
|
@@ -1714,12 +1714,12 @@ const V2 = ({
|
|
|
1714
1714
|
/* @__PURE__ */ t("div", { className: "flex-1", children: /* @__PURE__ */ t(
|
|
1715
1715
|
"div",
|
|
1716
1716
|
{
|
|
1717
|
-
className: `w-full overflow-hidden ${g[i]} ${
|
|
1717
|
+
className: `w-full overflow-hidden ${g[i]} ${f[b]} ${y()}`,
|
|
1718
1718
|
style: { height: C },
|
|
1719
1719
|
children: /* @__PURE__ */ t(
|
|
1720
1720
|
"div",
|
|
1721
1721
|
{
|
|
1722
|
-
className: `${v()} ${g[i]} ${
|
|
1722
|
+
className: `${v()} ${g[i]} ${f[b]} transition-all duration-300 ease-out ${r === "active" ? "progress-active" : ""}`,
|
|
1723
1723
|
style: {
|
|
1724
1724
|
width: `${L}%`,
|
|
1725
1725
|
height: C
|
|
@@ -1740,17 +1740,17 @@ const V2 = ({
|
|
|
1740
1740
|
variant: l = "filled",
|
|
1741
1741
|
className: a = "",
|
|
1742
1742
|
id: c,
|
|
1743
|
-
name:
|
|
1743
|
+
name: u,
|
|
1744
1744
|
value: p,
|
|
1745
1745
|
checkedColor: h = "#EC615B",
|
|
1746
1746
|
uncheckedColor: b = "#ffffff",
|
|
1747
1747
|
checkedBorderColor: L = "#EC615B",
|
|
1748
1748
|
style: g
|
|
1749
1749
|
}) => {
|
|
1750
|
-
const [w,
|
|
1750
|
+
const [w, f] = O(r), v = e !== void 0, y = v ? e : w, x = (B) => {
|
|
1751
1751
|
if (n) return;
|
|
1752
1752
|
const G = B.target.checked;
|
|
1753
|
-
v ||
|
|
1753
|
+
v || f(G), o == null || o(G);
|
|
1754
1754
|
}, _ = {
|
|
1755
1755
|
sm: "w-4 h-4",
|
|
1756
1756
|
md: "w-5 h-5",
|
|
@@ -1761,23 +1761,23 @@ const V2 = ({
|
|
|
1761
1761
|
md: "w-3.5 h-3.5",
|
|
1762
1762
|
lg: "w-4 h-4",
|
|
1763
1763
|
responsive: "w-2.5 h-2.5 sm:w-3.5 sm:h-3.5 lg:w-4 lg:h-4"
|
|
1764
|
-
},
|
|
1764
|
+
}, m = l === "filled", k = () => n ? "cursor-not-allowed opacity-50 border-gray-300 bg-gray-100" : !y && !s ? "border-gray-300 bg-white hover:border-gray-400" : "", U = () => {
|
|
1765
1765
|
if (!n && !(!y && !s))
|
|
1766
|
-
return
|
|
1766
|
+
return m ? {
|
|
1767
1767
|
borderColor: L,
|
|
1768
1768
|
backgroundColor: h
|
|
1769
1769
|
} : {
|
|
1770
1770
|
borderColor: L,
|
|
1771
1771
|
backgroundColor: b
|
|
1772
1772
|
};
|
|
1773
|
-
}, H = () =>
|
|
1773
|
+
}, H = () => m && (y || s) ? "text-white" : "";
|
|
1774
1774
|
return /* @__PURE__ */ d("div", { className: "inline-flex items-center", style: g, children: [
|
|
1775
1775
|
/* @__PURE__ */ t(
|
|
1776
1776
|
"input",
|
|
1777
1777
|
{
|
|
1778
1778
|
type: "checkbox",
|
|
1779
1779
|
id: c,
|
|
1780
|
-
name:
|
|
1780
|
+
name: u,
|
|
1781
1781
|
value: p,
|
|
1782
1782
|
checked: y,
|
|
1783
1783
|
onChange: x,
|
|
@@ -1809,7 +1809,7 @@ const V2 = ({
|
|
|
1809
1809
|
stroke: "currentColor",
|
|
1810
1810
|
viewBox: "0 0 24 24",
|
|
1811
1811
|
strokeWidth: 3,
|
|
1812
|
-
style: !
|
|
1812
|
+
style: !m && (y || s) ? { color: h } : void 0,
|
|
1813
1813
|
children: /* @__PURE__ */ t("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
|
|
1814
1814
|
}
|
|
1815
1815
|
),
|
|
@@ -1819,7 +1819,7 @@ const V2 = ({
|
|
|
1819
1819
|
className: `${C[i]} ${H()}`,
|
|
1820
1820
|
fill: "currentColor",
|
|
1821
1821
|
viewBox: "0 0 24 24",
|
|
1822
|
-
style: !
|
|
1822
|
+
style: !m && (y || s) ? { color: h } : void 0,
|
|
1823
1823
|
children: /* @__PURE__ */ t("rect", { x: "4", y: "11", width: "16", height: "2", rx: "1" })
|
|
1824
1824
|
}
|
|
1825
1825
|
)
|
|
@@ -1876,14 +1876,14 @@ const V2 = ({
|
|
|
1876
1876
|
size: l = "md",
|
|
1877
1877
|
bgColor: a,
|
|
1878
1878
|
hoverBgColor: c,
|
|
1879
|
-
textColor:
|
|
1879
|
+
textColor: u,
|
|
1880
1880
|
sublabelColor: p,
|
|
1881
1881
|
removeButtonColor: h,
|
|
1882
1882
|
removeButtonHoverColor: b,
|
|
1883
1883
|
rounded: L = "md",
|
|
1884
1884
|
style: g
|
|
1885
1885
|
}) => {
|
|
1886
|
-
const w = e0(l),
|
|
1886
|
+
const w = e0(l), f = t0(L), v = "#F4F4F4", y = "#EBEBEB", x = "#181918", _ = "#999999", C = "#9CA3AF", m = "#EC615B", k = a || v, U = c || y, H = u || x, B = p || _, G = h || C, E = b || m;
|
|
1887
1887
|
return e.length === 0 ? /* @__PURE__ */ t(
|
|
1888
1888
|
"div",
|
|
1889
1889
|
{
|
|
@@ -1904,7 +1904,7 @@ const V2 = ({
|
|
|
1904
1904
|
{
|
|
1905
1905
|
className: `
|
|
1906
1906
|
group flex items-center justify-between
|
|
1907
|
-
${
|
|
1907
|
+
${f}
|
|
1908
1908
|
transition-all duration-300 ease-out
|
|
1909
1909
|
hover:shadow-sm
|
|
1910
1910
|
animate-slide-in-item
|
|
@@ -1994,15 +1994,14 @@ const V2 = ({
|
|
|
1994
1994
|
helperText: o,
|
|
1995
1995
|
className: n = "",
|
|
1996
1996
|
status: s,
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
e
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
/* @__PURE__ */ t("style", { children: r && `
|
|
1997
|
+
required: i,
|
|
1998
|
+
...l
|
|
1999
|
+
}, a) => /* @__PURE__ */ d("div", { className: "w-full", children: [
|
|
2000
|
+
e && /* @__PURE__ */ d("label", { className: "block text-sm font-medium mb-2", style: { color: r ? "#C21919" : "#181918" }, children: [
|
|
2001
|
+
e,
|
|
2002
|
+
i && /* @__PURE__ */ t("span", { style: { color: "#C21919" }, children: "*" })
|
|
2003
|
+
] }),
|
|
2004
|
+
/* @__PURE__ */ t("style", { children: r && `
|
|
2006
2005
|
.input-error-state .ant-input-group-addon {
|
|
2007
2006
|
border-color: #C21919 !important;
|
|
2008
2007
|
}
|
|
@@ -2018,42 +2017,42 @@ const V2 = ({
|
|
|
2018
2017
|
box-shadow: 0 0 0 2px rgba(194, 25, 25, 0.1) !important;
|
|
2019
2018
|
}
|
|
2020
2019
|
` }),
|
|
2020
|
+
/* @__PURE__ */ t(
|
|
2021
|
+
q,
|
|
2022
|
+
{
|
|
2023
|
+
ref: a,
|
|
2024
|
+
className: `${n} ${r ? "input-error-state" : ""}`,
|
|
2025
|
+
status: r ? "error" : s,
|
|
2026
|
+
...l,
|
|
2027
|
+
style: {
|
|
2028
|
+
height: "44px",
|
|
2029
|
+
borderRadius: "12px",
|
|
2030
|
+
padding: "4px 11px",
|
|
2031
|
+
...l.style
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
),
|
|
2035
|
+
r && /* @__PURE__ */ d("div", { className: "flex items-center mt-1 text-xs text-[#C21919]", children: [
|
|
2021
2036
|
/* @__PURE__ */ t(
|
|
2022
|
-
|
|
2037
|
+
"svg",
|
|
2023
2038
|
{
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2039
|
+
className: "w-3 h-3 mr-1",
|
|
2040
|
+
fill: "currentColor",
|
|
2041
|
+
viewBox: "0 0 20 20",
|
|
2042
|
+
children: /* @__PURE__ */ t(
|
|
2043
|
+
"path",
|
|
2044
|
+
{
|
|
2045
|
+
fillRule: "evenodd",
|
|
2046
|
+
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
|
|
2047
|
+
clipRule: "evenodd"
|
|
2048
|
+
}
|
|
2049
|
+
)
|
|
2033
2050
|
}
|
|
2034
2051
|
),
|
|
2035
|
-
r
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
className: "w-3 h-3 mr-1",
|
|
2040
|
-
fill: "currentColor",
|
|
2041
|
-
viewBox: "0 0 20 20",
|
|
2042
|
-
children: /* @__PURE__ */ t(
|
|
2043
|
-
"path",
|
|
2044
|
-
{
|
|
2045
|
-
fillRule: "evenodd",
|
|
2046
|
-
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
|
|
2047
|
-
clipRule: "evenodd"
|
|
2048
|
-
}
|
|
2049
|
-
)
|
|
2050
|
-
}
|
|
2051
|
-
),
|
|
2052
|
-
r
|
|
2053
|
-
] }),
|
|
2054
|
-
!r && o && /* @__PURE__ */ t("div", { className: "mt-1 text-xs text-gray-500", children: o })
|
|
2055
|
-
] });
|
|
2056
|
-
});
|
|
2052
|
+
r
|
|
2053
|
+
] }),
|
|
2054
|
+
!r && o && /* @__PURE__ */ t("div", { className: "mt-1 text-xs text-gray-500", children: o })
|
|
2055
|
+
] }));
|
|
2057
2056
|
d2.displayName = "InputBase";
|
|
2058
2057
|
const o0 = ({
|
|
2059
2058
|
control: e,
|
|
@@ -2079,13 +2078,14 @@ const p2 = V.forwardRef(({
|
|
|
2079
2078
|
helperText: o,
|
|
2080
2079
|
className: n = "",
|
|
2081
2080
|
status: s,
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2081
|
+
required: i,
|
|
2082
|
+
...l
|
|
2083
|
+
}, a) => {
|
|
2084
|
+
const u = `password-input-custom ${n} ${r ? "password-input-error-state" : ""}`;
|
|
2085
2085
|
return /* @__PURE__ */ d("div", { className: "w-full", children: [
|
|
2086
2086
|
e && /* @__PURE__ */ d("label", { className: "block text-sm font-medium mb-2", style: { color: r ? "#C21919" : "#181918" }, children: [
|
|
2087
2087
|
e,
|
|
2088
|
-
i
|
|
2088
|
+
i && /* @__PURE__ */ t("span", { style: { color: "#C21919" }, children: "*" })
|
|
2089
2089
|
] }),
|
|
2090
2090
|
/* @__PURE__ */ t("style", { children: r && `
|
|
2091
2091
|
.password-input-error-state .ant-input-group-addon {
|
|
@@ -2108,14 +2108,14 @@ const p2 = V.forwardRef(({
|
|
|
2108
2108
|
/* @__PURE__ */ t(
|
|
2109
2109
|
q.Password,
|
|
2110
2110
|
{
|
|
2111
|
-
ref:
|
|
2112
|
-
className:
|
|
2111
|
+
ref: a,
|
|
2112
|
+
className: u,
|
|
2113
2113
|
status: r ? "error" : s,
|
|
2114
|
-
...
|
|
2114
|
+
...l,
|
|
2115
2115
|
style: {
|
|
2116
2116
|
height: "44px",
|
|
2117
2117
|
borderRadius: "12px",
|
|
2118
|
-
...
|
|
2118
|
+
...l.style
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
2121
|
),
|
|
@@ -2171,47 +2171,47 @@ const M2 = ({
|
|
|
2171
2171
|
disabled: a = !1,
|
|
2172
2172
|
className: c = ""
|
|
2173
2173
|
}) => {
|
|
2174
|
-
const [
|
|
2174
|
+
const [u, p] = O(Array(e).fill("")), h = e2([]);
|
|
2175
2175
|
I(() => {
|
|
2176
2176
|
if (r) {
|
|
2177
|
-
const w = r.split("").slice(0, e),
|
|
2178
|
-
p(
|
|
2177
|
+
const w = r.split("").slice(0, e), f = [...w, ...Array(e - w.length).fill("")];
|
|
2178
|
+
p(f);
|
|
2179
2179
|
}
|
|
2180
2180
|
}, [r, e]);
|
|
2181
|
-
const b = (w,
|
|
2181
|
+
const b = (w, f) => {
|
|
2182
2182
|
var x;
|
|
2183
|
-
if (
|
|
2184
|
-
const v = [...
|
|
2185
|
-
v[w] =
|
|
2183
|
+
if (f && !/^\d+$/.test(f)) return;
|
|
2184
|
+
const v = [...u];
|
|
2185
|
+
v[w] = f.slice(-1), p(v);
|
|
2186
2186
|
const y = v.join("");
|
|
2187
|
-
o == null || o(y),
|
|
2188
|
-
}, L = (w,
|
|
2187
|
+
o == null || o(y), f && w < e - 1 && ((x = h.current[w + 1]) == null || x.focus()), v.every((_) => _ !== "") && (s == null || s(y));
|
|
2188
|
+
}, L = (w, f) => {
|
|
2189
2189
|
var v;
|
|
2190
|
-
|
|
2190
|
+
f.key === "Backspace" && !u[w] && w > 0 && ((v = h.current[w - 1]) == null || v.focus());
|
|
2191
2191
|
}, g = (w) => {
|
|
2192
2192
|
var C;
|
|
2193
2193
|
w.preventDefault();
|
|
2194
|
-
const
|
|
2195
|
-
if (!/^\d+$/.test(
|
|
2196
|
-
const v =
|
|
2194
|
+
const f = w.clipboardData.getData("text/plain");
|
|
2195
|
+
if (!/^\d+$/.test(f)) return;
|
|
2196
|
+
const v = f.split("").slice(0, e), y = [...v, ...Array(e - v.length).fill("")];
|
|
2197
2197
|
p(y);
|
|
2198
2198
|
const x = y.join("");
|
|
2199
2199
|
o == null || o(x);
|
|
2200
2200
|
const _ = Math.min(v.length, e - 1);
|
|
2201
|
-
(C = h.current[_]) == null || C.focus(), y.every((
|
|
2201
|
+
(C = h.current[_]) == null || C.focus(), y.every((m) => m !== "") && (s == null || s(x));
|
|
2202
2202
|
};
|
|
2203
2203
|
return /* @__PURE__ */ d("div", { className: "w-full", children: [
|
|
2204
|
-
/* @__PURE__ */ t("div", { className: `flex gap-2 justify-center ${c}`, onBlur: n, children:
|
|
2204
|
+
/* @__PURE__ */ t("div", { className: `flex gap-2 justify-center ${c}`, onBlur: n, children: u.map((w, f) => /* @__PURE__ */ d(V.Fragment, { children: [
|
|
2205
2205
|
/* @__PURE__ */ t(
|
|
2206
2206
|
q,
|
|
2207
2207
|
{
|
|
2208
2208
|
ref: (v) => {
|
|
2209
|
-
h.current[
|
|
2209
|
+
h.current[f] = v;
|
|
2210
2210
|
},
|
|
2211
2211
|
placeholder: "",
|
|
2212
2212
|
value: w,
|
|
2213
|
-
onChange: (v) => b(
|
|
2214
|
-
onKeyDown: (v) => L(
|
|
2213
|
+
onChange: (v) => b(f, v.target.value),
|
|
2214
|
+
onKeyDown: (v) => L(f, v),
|
|
2215
2215
|
onPaste: g,
|
|
2216
2216
|
disabled: a,
|
|
2217
2217
|
maxLength: 1,
|
|
@@ -2224,8 +2224,8 @@ const M2 = ({
|
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
2226
|
),
|
|
2227
|
-
|
|
2228
|
-
] },
|
|
2227
|
+
f === Math.floor(e / 2) - 1 && /* @__PURE__ */ t("div", { className: "flex items-center justify-center px-1", children: /* @__PURE__ */ t("span", { className: "text-gray-400 text-xl", children: "—" }) })
|
|
2228
|
+
] }, f)) }),
|
|
2229
2229
|
i && l && /* @__PURE__ */ d("div", { className: "flex items-center justify-center mt-2 text-xs text-[#C21919]", children: [
|
|
2230
2230
|
/* @__PURE__ */ t("svg", { className: "w-3 h-3 mr-1", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ t(
|
|
2231
2231
|
"path",
|
|
@@ -2273,36 +2273,36 @@ const M2 = ({
|
|
|
2273
2273
|
],
|
|
2274
2274
|
showCountryCodeDropdown: a = !0,
|
|
2275
2275
|
format: c = "spaced",
|
|
2276
|
-
customFormat:
|
|
2276
|
+
customFormat: u,
|
|
2277
2277
|
value: p,
|
|
2278
2278
|
onChange: h,
|
|
2279
2279
|
...b
|
|
2280
2280
|
}, L) => {
|
|
2281
|
-
const g = r ? "phone-input-error-state" : "", [w,
|
|
2281
|
+
const g = r ? "phone-input-error-state" : "", [w, f] = O("");
|
|
2282
2282
|
I(() => {
|
|
2283
2283
|
if (p !== void 0) {
|
|
2284
|
-
const C = String(p).replace(/\D/g, ""),
|
|
2285
|
-
|
|
2284
|
+
const C = String(p).replace(/\D/g, ""), m = v(C);
|
|
2285
|
+
f(m);
|
|
2286
2286
|
}
|
|
2287
2287
|
}, [p, c, s]);
|
|
2288
2288
|
const v = (C) => {
|
|
2289
|
-
const
|
|
2290
|
-
if (
|
|
2291
|
-
return m
|
|
2289
|
+
const m = C.replace(/\D/g, "");
|
|
2290
|
+
if (u)
|
|
2291
|
+
return u(m);
|
|
2292
2292
|
if (c === "none")
|
|
2293
|
-
return
|
|
2293
|
+
return m;
|
|
2294
2294
|
let k = "";
|
|
2295
|
-
return c === "spaced" ?
|
|
2295
|
+
return c === "spaced" ? m.length <= 3 ? k = m : m.length <= 6 ? k = `${m.slice(0, 3)} ${m.slice(3)}` : k = `${m.slice(0, 3)} ${m.slice(3, 6)} ${m.slice(6, 10)}` : c === "dashed" ? m.length <= 3 ? k = m : m.length <= 6 ? k = `${m.slice(0, 3)}-${m.slice(3)}` : k = `${m.slice(0, 3)}-${m.slice(3, 6)}-${m.slice(6, 10)}` : s === "+1" ? m.length <= 3 ? k = m : m.length <= 6 ? k = `(${m.slice(0, 3)}) ${m.slice(3)}` : k = `(${m.slice(0, 3)}) ${m.slice(3, 6)}-${m.slice(6, 10)}` : m.length <= 3 ? k = m : m.length <= 6 ? k = `${m.slice(0, 3)} ${m.slice(3)}` : k = `${m.slice(0, 3)} ${m.slice(3, 6)} ${m.slice(6, 10)}`, k;
|
|
2296
2296
|
}, y = (C) => {
|
|
2297
|
-
var
|
|
2298
|
-
!/^\d$/.test(C.key) && C.key !== "Backspace" && C.key !== "Delete" && C.key !== "Tab" && C.key !== "ArrowLeft" && C.key !== "ArrowRight" && C.key !== "Home" && C.key !== "End" && C.preventDefault(), (
|
|
2297
|
+
var m;
|
|
2298
|
+
!/^\d$/.test(C.key) && C.key !== "Backspace" && C.key !== "Delete" && C.key !== "Tab" && C.key !== "ArrowLeft" && C.key !== "ArrowRight" && C.key !== "Home" && C.key !== "End" && C.preventDefault(), (m = b.onKeyDown) == null || m.call(b, C);
|
|
2299
2299
|
}, x = (C) => {
|
|
2300
|
-
const
|
|
2301
|
-
|
|
2300
|
+
const m = C.target, k = m.selectionStart || 0, U = m.value.replace(/\D/g, ""), H = v(U);
|
|
2301
|
+
f(H);
|
|
2302
2302
|
const B = w.length, E = H.length - B;
|
|
2303
2303
|
if (requestAnimationFrame(() => {
|
|
2304
2304
|
const S = Math.max(0, Math.min(k + E, H.length));
|
|
2305
|
-
|
|
2305
|
+
m.setSelectionRange(S, S);
|
|
2306
2306
|
}), h) {
|
|
2307
2307
|
const S = {
|
|
2308
2308
|
...C,
|
|
@@ -2314,7 +2314,7 @@ const M2 = ({
|
|
|
2314
2314
|
var S;
|
|
2315
2315
|
C.preventDefault();
|
|
2316
2316
|
const k = C.clipboardData.getData("text/plain").replace(/\D/g, ""), H = C.target.selectionStart || 0, G = w.replace(/\D/g, "").slice(0, H) + k, E = v(G);
|
|
2317
|
-
if (
|
|
2317
|
+
if (f(E), h) {
|
|
2318
2318
|
const M = {
|
|
2319
2319
|
...C,
|
|
2320
2320
|
target: { ...C.target, value: G }
|
|
@@ -2468,11 +2468,11 @@ const u2 = V.forwardRef(({
|
|
|
2468
2468
|
formatAmount: l = !1,
|
|
2469
2469
|
onChange: a,
|
|
2470
2470
|
value: c,
|
|
2471
|
-
...
|
|
2471
|
+
...u
|
|
2472
2472
|
}, p) => {
|
|
2473
2473
|
const h = r ? "currency-input-error-state" : "", [b, L] = O(""), g = (v) => {
|
|
2474
|
-
const x = v.replace(/[^\d.]/g, "").split("."), _ = x[0], C = x[1],
|
|
2475
|
-
return C !== void 0 ? `${
|
|
2474
|
+
const x = v.replace(/[^\d.]/g, "").split("."), _ = x[0], C = x[1], m = _.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
2475
|
+
return C !== void 0 ? `${m}.${C}` : m;
|
|
2476
2476
|
}, w = (v) => v.replace(/,/g, "");
|
|
2477
2477
|
I(() => {
|
|
2478
2478
|
if (c !== void 0) {
|
|
@@ -2480,7 +2480,7 @@ const u2 = V.forwardRef(({
|
|
|
2480
2480
|
L(l ? g(v) : v);
|
|
2481
2481
|
}
|
|
2482
2482
|
}, [c, l]);
|
|
2483
|
-
const
|
|
2483
|
+
const f = (v) => {
|
|
2484
2484
|
const y = v.target.value;
|
|
2485
2485
|
if (l) {
|
|
2486
2486
|
const x = w(y), _ = g(x);
|
|
@@ -2496,7 +2496,7 @@ const u2 = V.forwardRef(({
|
|
|
2496
2496
|
style: { color: r ? "#C21919" : "#181918" },
|
|
2497
2497
|
children: [
|
|
2498
2498
|
e,
|
|
2499
|
-
|
|
2499
|
+
u.required && /* @__PURE__ */ t("span", { style: { color: "#C21919" }, children: "*" })
|
|
2500
2500
|
]
|
|
2501
2501
|
}
|
|
2502
2502
|
),
|
|
@@ -2545,12 +2545,12 @@ const u2 = V.forwardRef(({
|
|
|
2545
2545
|
className: `currency-input-wrapper ${n} ${h}`,
|
|
2546
2546
|
status: r ? "error" : s,
|
|
2547
2547
|
prefix: /* @__PURE__ */ t("span", { children: i }),
|
|
2548
|
-
...
|
|
2548
|
+
...u,
|
|
2549
2549
|
value: l ? b : c,
|
|
2550
|
-
onChange:
|
|
2550
|
+
onChange: f,
|
|
2551
2551
|
style: {
|
|
2552
2552
|
borderColor: r ? "#C21919" : "#D1D1D1",
|
|
2553
|
-
...
|
|
2553
|
+
...u.style
|
|
2554
2554
|
}
|
|
2555
2555
|
}
|
|
2556
2556
|
),
|
|
@@ -2759,7 +2759,7 @@ const P0 = ({
|
|
|
2759
2759
|
] }),
|
|
2760
2760
|
// Add searchable text for filtering
|
|
2761
2761
|
searchLabel: `${p.name} ${p.code}`.toLowerCase()
|
|
2762
|
-
})),
|
|
2762
|
+
})), u = (p, h) => {
|
|
2763
2763
|
var b;
|
|
2764
2764
|
return ((b = h == null ? void 0 : h.searchLabel) == null ? void 0 : b.includes(p.toLowerCase())) || !1;
|
|
2765
2765
|
};
|
|
@@ -2815,7 +2815,7 @@ const P0 = ({
|
|
|
2815
2815
|
onChange: l,
|
|
2816
2816
|
options: c,
|
|
2817
2817
|
showSearch: n,
|
|
2818
|
-
filterOption:
|
|
2818
|
+
filterOption: u,
|
|
2819
2819
|
placeholder: "Search country...",
|
|
2820
2820
|
suffixIcon: /* @__PURE__ */ t("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", children: /* @__PURE__ */ t(
|
|
2821
2821
|
"path",
|
|
@@ -2859,7 +2859,7 @@ const P0 = ({
|
|
|
2859
2859
|
}
|
|
2860
2860
|
], c = ({ key: p }) => {
|
|
2861
2861
|
s && s(p);
|
|
2862
|
-
},
|
|
2862
|
+
}, u = (p) => {
|
|
2863
2863
|
const h = p.split(" ");
|
|
2864
2864
|
return h.length >= 2 ? `${h[0][0]}${h[1][0]}`.toUpperCase() : p.substring(0, 2).toUpperCase();
|
|
2865
2865
|
};
|
|
@@ -2956,7 +2956,7 @@ const P0 = ({
|
|
|
2956
2956
|
className: `user-profile-dropdown ${i}`,
|
|
2957
2957
|
style: { width: typeof l == "number" ? `${l}px` : l },
|
|
2958
2958
|
children: [
|
|
2959
|
-
/* @__PURE__ */ t("div", { className: "user-profile-avatar", children: o ? /* @__PURE__ */ t("img", { src: o, alt: e }) :
|
|
2959
|
+
/* @__PURE__ */ t("div", { className: "user-profile-avatar", children: o ? /* @__PURE__ */ t("img", { src: o, alt: e }) : u(e) }),
|
|
2960
2960
|
/* @__PURE__ */ d("div", { className: "user-profile-info", children: [
|
|
2961
2961
|
/* @__PURE__ */ t("div", { className: "user-profile-name", children: e }),
|
|
2962
2962
|
r && /* @__PURE__ */ t("div", { className: "user-profile-role", children: r })
|
|
@@ -3063,7 +3063,7 @@ const P0 = ({
|
|
|
3063
3063
|
ledgerBalance: l,
|
|
3064
3064
|
backgroundPattern: a = "wave",
|
|
3065
3065
|
backgroundImage: c,
|
|
3066
|
-
topRight:
|
|
3066
|
+
topRight: u,
|
|
3067
3067
|
width: p = 348,
|
|
3068
3068
|
className: h = ""
|
|
3069
3069
|
}) => {
|
|
@@ -3083,11 +3083,11 @@ const P0 = ({
|
|
|
3083
3083
|
boxShadow: "0 0 0 0 rgba(0, 0, 0, 0)",
|
|
3084
3084
|
transition: "all 0.3s ease-in-out"
|
|
3085
3085
|
},
|
|
3086
|
-
onMouseEnter: (
|
|
3087
|
-
|
|
3086
|
+
onMouseEnter: (f) => {
|
|
3087
|
+
f.currentTarget.style.boxShadow = "0 0 24px 0 rgba(0, 0, 0, 0.15)";
|
|
3088
3088
|
},
|
|
3089
|
-
onMouseLeave: (
|
|
3090
|
-
|
|
3089
|
+
onMouseLeave: (f) => {
|
|
3090
|
+
f.currentTarget.style.boxShadow = "0 0 0 0 rgba(0, 0, 0, 0)";
|
|
3091
3091
|
},
|
|
3092
3092
|
children: [
|
|
3093
3093
|
a !== "none" && /* @__PURE__ */ t(
|
|
@@ -3105,7 +3105,7 @@ const P0 = ({
|
|
|
3105
3105
|
/* @__PURE__ */ d("div", { className: "relative z-10", children: [
|
|
3106
3106
|
/* @__PURE__ */ d("div", { className: "flex items-center justify-between mb-4", children: [
|
|
3107
3107
|
/* @__PURE__ */ t("div", { className: "w-10 h-10 bg-[#616161] rounded-full flex items-center justify-center text-white transition-transform duration-300 ease-in-out hover:scale-110", children: o || w }),
|
|
3108
|
-
|
|
3108
|
+
u && /* @__PURE__ */ t("div", { children: u })
|
|
3109
3109
|
] }),
|
|
3110
3110
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-2 mt-3", children: [
|
|
3111
3111
|
/* @__PURE__ */ t("span", { className: "text-sm text-[#E6E6E6] font-light transition-colors duration-200", children: e }),
|