@youversion/design-system-components 2.10.0 → 3.1.0
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/CHANGELOG.md +66 -0
- package/dist/index.es.js +154 -153
- package/dist/index.umd.js +2 -2
- package/dist/src/Button/Button.d.ts +2 -1
- package/dist/src/Button/Button.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -224,8 +224,8 @@ var Xe = Object.defineProperty, Ye = Object.defineProperties, Ke = Object.getOwn
|
|
|
224
224
|
bold: 700
|
|
225
225
|
},
|
|
226
226
|
fontFamily: {
|
|
227
|
-
"aktiv-grotesk": '
|
|
228
|
-
"aktiv-grotesk-
|
|
227
|
+
"aktiv-grotesk": '"aktiv-grotesk", "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
|
|
228
|
+
"aktiv-grotesk-expanded": '"aktiv-grotesk-expanded", "aktiv-grotesk", "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
|
|
229
229
|
"untitled-serif": "Untitled Serif, Baskerville, Georgia, Times New Roman, serif"
|
|
230
230
|
},
|
|
231
231
|
lineHeight: {
|
|
@@ -387,11 +387,11 @@ function s2(l) {
|
|
|
387
387
|
}
|
|
388
388
|
k === "[" ? g++ : k === "]" && g--;
|
|
389
389
|
}
|
|
390
|
-
var
|
|
390
|
+
var x = f.length === 0 ? c : c.substring(p), I = x.startsWith(J0), m = I ? x.substring(1) : x, z = b && b > p ? b - p : void 0;
|
|
391
391
|
return {
|
|
392
392
|
modifiers: f,
|
|
393
393
|
hasImportantModifier: I,
|
|
394
|
-
baseClassName:
|
|
394
|
+
baseClassName: m,
|
|
395
395
|
maybePostfixModifierPosition: z
|
|
396
396
|
};
|
|
397
397
|
};
|
|
@@ -416,7 +416,7 @@ var v2 = /\s+/;
|
|
|
416
416
|
function f2(l, r) {
|
|
417
417
|
var e = r.splitModifiers, t = r.getClassGroupId, a = r.getConflictingClassGroupIds, i = /* @__PURE__ */ new Set();
|
|
418
418
|
return l.trim().split(v2).map(function(c) {
|
|
419
|
-
var f = e(c), g = f.modifiers, p = f.hasImportantModifier, b = f.baseClassName, w = f.maybePostfixModifierPosition, k = t(w ? b.substring(0, w) : b),
|
|
419
|
+
var f = e(c), g = f.modifiers, p = f.hasImportantModifier, b = f.baseClassName, w = f.maybePostfixModifierPosition, k = t(w ? b.substring(0, w) : b), x = !!w;
|
|
420
420
|
if (!k) {
|
|
421
421
|
if (!w)
|
|
422
422
|
return {
|
|
@@ -428,15 +428,15 @@ function f2(l, r) {
|
|
|
428
428
|
isTailwindClass: !1,
|
|
429
429
|
originalClassName: c
|
|
430
430
|
};
|
|
431
|
-
|
|
431
|
+
x = !1;
|
|
432
432
|
}
|
|
433
|
-
var I = h2(g).join(":"),
|
|
433
|
+
var I = h2(g).join(":"), m = p ? I + J0 : I;
|
|
434
434
|
return {
|
|
435
435
|
isTailwindClass: !0,
|
|
436
|
-
modifierId:
|
|
436
|
+
modifierId: m,
|
|
437
437
|
classGroupId: k,
|
|
438
438
|
originalClassName: c,
|
|
439
|
-
hasPostfixModifier:
|
|
439
|
+
hasPostfixModifier: x
|
|
440
440
|
};
|
|
441
441
|
}).reverse().filter(function(c) {
|
|
442
442
|
if (!c.isTailwindClass)
|
|
@@ -454,8 +454,8 @@ function g0() {
|
|
|
454
454
|
r[e] = arguments[e];
|
|
455
455
|
var t, a, i, c = f;
|
|
456
456
|
function f(p) {
|
|
457
|
-
var b = r[0], w = r.slice(1), k = w.reduce(function(
|
|
458
|
-
return I(
|
|
457
|
+
var b = r[0], w = r.slice(1), k = w.reduce(function(x, I) {
|
|
458
|
+
return I(x);
|
|
459
459
|
}, b());
|
|
460
460
|
return t = u2(k), a = t.cache.get, i = t.cache.set, c = g, g(p);
|
|
461
461
|
}
|
|
@@ -536,7 +536,7 @@ function R2(l) {
|
|
|
536
536
|
return m2.test(l);
|
|
537
537
|
}
|
|
538
538
|
function w0() {
|
|
539
|
-
var l = F("colors"), r = F("spacing"), e = F("blur"), t = F("brightness"), a = F("borderColor"), i = F("borderRadius"), c = F("borderSpacing"), f = F("borderWidth"), g = F("contrast"), p = F("grayscale"), b = F("hueRotate"), w = F("invert"), k = F("gap"),
|
|
539
|
+
var l = F("colors"), r = F("spacing"), e = F("blur"), t = F("brightness"), a = F("borderColor"), i = F("borderRadius"), c = F("borderSpacing"), f = F("borderWidth"), g = F("contrast"), p = F("grayscale"), b = F("hueRotate"), w = F("invert"), k = F("gap"), x = F("gradientColorStops"), I = F("gradientColorStopPositions"), m = F("inset"), z = F("margin"), y = F("opacity"), S = F("padding"), A = F("saturate"), H = F("scale"), O = F("sepia"), N = F("skew"), M = F("space"), C = F("translate"), R = function() {
|
|
540
540
|
return ["auto", "contain", "none"];
|
|
541
541
|
}, B = function() {
|
|
542
542
|
return ["auto", "hidden", "clip", "visible", "scroll"];
|
|
@@ -738,63 +738,63 @@ function w0() {
|
|
|
738
738
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
739
739
|
*/
|
|
740
740
|
inset: [{
|
|
741
|
-
inset: [
|
|
741
|
+
inset: [m]
|
|
742
742
|
}],
|
|
743
743
|
/**
|
|
744
744
|
* Right / Left
|
|
745
745
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
746
746
|
*/
|
|
747
747
|
"inset-x": [{
|
|
748
|
-
"inset-x": [
|
|
748
|
+
"inset-x": [m]
|
|
749
749
|
}],
|
|
750
750
|
/**
|
|
751
751
|
* Top / Bottom
|
|
752
752
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
753
753
|
*/
|
|
754
754
|
"inset-y": [{
|
|
755
|
-
"inset-y": [
|
|
755
|
+
"inset-y": [m]
|
|
756
756
|
}],
|
|
757
757
|
/**
|
|
758
758
|
* Start
|
|
759
759
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
760
760
|
*/
|
|
761
761
|
start: [{
|
|
762
|
-
start: [
|
|
762
|
+
start: [m]
|
|
763
763
|
}],
|
|
764
764
|
/**
|
|
765
765
|
* End
|
|
766
766
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
767
767
|
*/
|
|
768
768
|
end: [{
|
|
769
|
-
end: [
|
|
769
|
+
end: [m]
|
|
770
770
|
}],
|
|
771
771
|
/**
|
|
772
772
|
* Top
|
|
773
773
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
774
774
|
*/
|
|
775
775
|
top: [{
|
|
776
|
-
top: [
|
|
776
|
+
top: [m]
|
|
777
777
|
}],
|
|
778
778
|
/**
|
|
779
779
|
* Right
|
|
780
780
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
781
781
|
*/
|
|
782
782
|
right: [{
|
|
783
|
-
right: [
|
|
783
|
+
right: [m]
|
|
784
784
|
}],
|
|
785
785
|
/**
|
|
786
786
|
* Bottom
|
|
787
787
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
788
788
|
*/
|
|
789
789
|
bottom: [{
|
|
790
|
-
bottom: [
|
|
790
|
+
bottom: [m]
|
|
791
791
|
}],
|
|
792
792
|
/**
|
|
793
793
|
* Left
|
|
794
794
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
795
795
|
*/
|
|
796
796
|
left: [{
|
|
797
|
-
left: [
|
|
797
|
+
left: [m]
|
|
798
798
|
}],
|
|
799
799
|
/**
|
|
800
800
|
* Visibility
|
|
@@ -1539,21 +1539,21 @@ function w0() {
|
|
|
1539
1539
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1540
1540
|
*/
|
|
1541
1541
|
"gradient-from": [{
|
|
1542
|
-
from: [
|
|
1542
|
+
from: [x]
|
|
1543
1543
|
}],
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Gradient Color Stops Via
|
|
1546
1546
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1547
1547
|
*/
|
|
1548
1548
|
"gradient-via": [{
|
|
1549
|
-
via: [
|
|
1549
|
+
via: [x]
|
|
1550
1550
|
}],
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Gradient Color Stops To
|
|
1553
1553
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1554
1554
|
*/
|
|
1555
1555
|
"gradient-to": [{
|
|
1556
|
-
to: [
|
|
1556
|
+
to: [x]
|
|
1557
1557
|
}],
|
|
1558
1558
|
// Borders
|
|
1559
1559
|
/**
|
|
@@ -2627,7 +2627,7 @@ const K1 = (l) => {
|
|
|
2627
2627
|
padding: b,
|
|
2628
2628
|
width: w,
|
|
2629
2629
|
...k
|
|
2630
|
-
},
|
|
2630
|
+
}, x) => {
|
|
2631
2631
|
const I = {
|
|
2632
2632
|
0: "",
|
|
2633
2633
|
1: "shadow-light-1 dark:shadow-dark-1",
|
|
@@ -2635,13 +2635,13 @@ const K1 = (l) => {
|
|
|
2635
2635
|
4: "shadow-light-4 dark:shadow-dark-4",
|
|
2636
2636
|
8: "shadow-light-8 dark:shadow-dark-8",
|
|
2637
2637
|
12: "shadow-light-12 dark:shadow-dark-12"
|
|
2638
|
-
},
|
|
2638
|
+
}, m = K1(c), z = K1(l), y = K1(r), S = b0(b), A = b0(p), H = v(
|
|
2639
2639
|
e,
|
|
2640
2640
|
t,
|
|
2641
2641
|
I[f],
|
|
2642
2642
|
A,
|
|
2643
2643
|
S,
|
|
2644
|
-
|
|
2644
|
+
m,
|
|
2645
2645
|
z,
|
|
2646
2646
|
y,
|
|
2647
2647
|
w,
|
|
@@ -2651,7 +2651,7 @@ const K1 = (l) => {
|
|
|
2651
2651
|
return a1(i, {
|
|
2652
2652
|
className: H,
|
|
2653
2653
|
...k,
|
|
2654
|
-
ref:
|
|
2654
|
+
ref: x
|
|
2655
2655
|
});
|
|
2656
2656
|
}, L = o(F2);
|
|
2657
2657
|
L.displayName = "Box";
|
|
@@ -2805,19 +2805,19 @@ const G2 = ({
|
|
|
2805
2805
|
onChange: b,
|
|
2806
2806
|
placeholder: w,
|
|
2807
2807
|
prefix: k,
|
|
2808
|
-
startIcon:
|
|
2808
|
+
startIcon: x,
|
|
2809
2809
|
suffix: I,
|
|
2810
|
-
value:
|
|
2810
|
+
value: m,
|
|
2811
2811
|
...z
|
|
2812
2812
|
}, y) => {
|
|
2813
|
-
const S = q(null), A = N1({ forwardedRef: y, innerRef: S }), [H, O] = _(!!
|
|
2813
|
+
const S = q(null), A = N1({ forwardedRef: y, innerRef: S }), [H, O] = _(!!m), [N, M] = _(!1);
|
|
2814
2814
|
o1(() => {
|
|
2815
2815
|
var P;
|
|
2816
|
-
O(!!((P = A == null ? void 0 : A.current) != null && P.value) || !!(
|
|
2817
|
-
}, [
|
|
2816
|
+
O(!!((P = A == null ? void 0 : A.current) != null && P.value) || !!(m || w));
|
|
2817
|
+
}, [m, w, A]);
|
|
2818
2818
|
const C = (P) => {
|
|
2819
2819
|
var $;
|
|
2820
|
-
O(!!(($ = A == null ? void 0 : A.current) != null && $.value) || !!(
|
|
2820
|
+
O(!!(($ = A == null ? void 0 : A.current) != null && $.value) || !!(m || w)), b && b(P);
|
|
2821
2821
|
}, R = () => {
|
|
2822
2822
|
r || !A.current || (A.current.focus(), M(!0));
|
|
2823
2823
|
}, B = () => {
|
|
@@ -2837,14 +2837,14 @@ const G2 = ({
|
|
|
2837
2837
|
onClick: R,
|
|
2838
2838
|
onFocus: R,
|
|
2839
2839
|
children: [
|
|
2840
|
-
|
|
2840
|
+
x ? /* @__PURE__ */ n("div", { className: "text-text-muted-light dark:text-text-muted-dark pis-1.5", children: x }) : null,
|
|
2841
2841
|
/* @__PURE__ */ d("span", { className: "relative flex flex-1 overflow-hidden", children: [
|
|
2842
2842
|
k && (N || H) ? /* @__PURE__ */ n(
|
|
2843
2843
|
V,
|
|
2844
2844
|
{
|
|
2845
2845
|
className: v(
|
|
2846
2846
|
"text-text-muted-light dark:text-text-muted-dark select-none pointer-events-none",
|
|
2847
|
-
|
|
2847
|
+
x ? "pis-1 -mie-1" : "pis-2 -mie-2",
|
|
2848
2848
|
g ? "pbs-3 pbe-1" : "pbs-2 pbe-2"
|
|
2849
2849
|
),
|
|
2850
2850
|
children: k
|
|
@@ -2855,7 +2855,7 @@ const G2 = ({
|
|
|
2855
2855
|
{
|
|
2856
2856
|
className: v([
|
|
2857
2857
|
"self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",
|
|
2858
|
-
|
|
2858
|
+
x ? "pis-1" : "pis-2",
|
|
2859
2859
|
t ? "pie-1" : "pie-2",
|
|
2860
2860
|
g ? "pbs-3 pbe-1" : "plb-2",
|
|
2861
2861
|
e ? null : "cursor-pointer caret-transparent",
|
|
@@ -2867,7 +2867,7 @@ const G2 = ({
|
|
|
2867
2867
|
onChange: C,
|
|
2868
2868
|
placeholder: w,
|
|
2869
2869
|
ref: A,
|
|
2870
|
-
value:
|
|
2870
|
+
value: m,
|
|
2871
2871
|
...z
|
|
2872
2872
|
}
|
|
2873
2873
|
),
|
|
@@ -2887,7 +2887,7 @@ const G2 = ({
|
|
|
2887
2887
|
{
|
|
2888
2888
|
className: v(
|
|
2889
2889
|
"items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",
|
|
2890
|
-
|
|
2890
|
+
x ? "inline-start-1" : "inline-start-2",
|
|
2891
2891
|
N || H ? "text-13 -translate-y-1.5" : "text-16"
|
|
2892
2892
|
),
|
|
2893
2893
|
htmlFor: p,
|
|
@@ -2995,26 +2995,26 @@ const J2 = ({
|
|
|
2995
2995
|
value: b,
|
|
2996
2996
|
...w
|
|
2997
2997
|
}, k) => {
|
|
2998
|
-
const
|
|
2998
|
+
const x = q(null), I = q(null), [m, z] = _(b), [y, S] = _(!1);
|
|
2999
2999
|
U0(
|
|
3000
3000
|
k,
|
|
3001
3001
|
() => ({
|
|
3002
3002
|
clearSelection() {
|
|
3003
3003
|
z(null), g("");
|
|
3004
3004
|
},
|
|
3005
|
-
...
|
|
3005
|
+
...x.current
|
|
3006
3006
|
}),
|
|
3007
3007
|
[g]
|
|
3008
3008
|
);
|
|
3009
3009
|
const A = (M) => {
|
|
3010
|
-
y || S(!0), !M.length &&
|
|
3010
|
+
y || S(!0), !M.length && m && z(null), g(M);
|
|
3011
3011
|
}, H = (M) => {
|
|
3012
3012
|
p(M), g(M.label), z(M.label), S(!1);
|
|
3013
3013
|
}, O = X1(
|
|
3014
3014
|
(M) => {
|
|
3015
|
-
I.current && !I.current.contains(M.target) && (!
|
|
3015
|
+
I.current && !I.current.contains(M.target) && (!m && b && g(""), m && b && g(m), S(!1));
|
|
3016
3016
|
},
|
|
3017
|
-
[g,
|
|
3017
|
+
[g, m, b]
|
|
3018
3018
|
), N = Q(() => t.filter((M) => M.label.toLowerCase().includes(b.toLowerCase())) ?? [], [t, b]);
|
|
3019
3019
|
return o1(() => (document.addEventListener("click", O, !0), () => {
|
|
3020
3020
|
document.removeEventListener("click", O, !0);
|
|
@@ -3035,7 +3035,7 @@ const J2 = ({
|
|
|
3035
3035
|
A(M.target.value);
|
|
3036
3036
|
},
|
|
3037
3037
|
onFocus: () => S(!0),
|
|
3038
|
-
ref:
|
|
3038
|
+
ref: x,
|
|
3039
3039
|
role: "combobox",
|
|
3040
3040
|
value: b ?? "",
|
|
3041
3041
|
...w
|
|
@@ -3050,7 +3050,7 @@ const J2 = ({
|
|
|
3050
3050
|
children: N.length ? N.map((M, C) => /* @__PURE__ */ n(
|
|
3051
3051
|
"div",
|
|
3052
3052
|
{
|
|
3053
|
-
"aria-selected":
|
|
3053
|
+
"aria-selected": m !== M.value,
|
|
3054
3054
|
className: "p-2 cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50",
|
|
3055
3055
|
id: `${M.value}-${C}`,
|
|
3056
3056
|
onClick: () => H(M),
|
|
@@ -4131,44 +4131,45 @@ X["risk:stroked"] = v(X.risk, "uppercase");
|
|
|
4131
4131
|
const Pn = ({
|
|
4132
4132
|
className: l,
|
|
4133
4133
|
children: r,
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4134
|
+
contentClassNames: e,
|
|
4135
|
+
disabled: t,
|
|
4136
|
+
icon: a,
|
|
4137
|
+
iconAction: i,
|
|
4138
|
+
iconPosition: c,
|
|
4139
|
+
isLoading: f,
|
|
4140
|
+
loadingSpinnerLabel: g,
|
|
4141
|
+
size: p = "md",
|
|
4142
|
+
type: b = "button",
|
|
4143
|
+
variant: w = "filled:default",
|
|
4144
|
+
...k
|
|
4145
|
+
}, x) => {
|
|
4146
|
+
const I = be(a !== void 0 ? c : void 0), m = v(
|
|
4146
4147
|
me,
|
|
4147
|
-
X[
|
|
4148
|
-
|
|
4149
|
-
{ "disabled:opacity-100":
|
|
4148
|
+
X[w],
|
|
4149
|
+
I[p],
|
|
4150
|
+
{ "disabled:opacity-100": f },
|
|
4150
4151
|
l
|
|
4151
4152
|
);
|
|
4152
|
-
return /* @__PURE__ */ d("button", { className:
|
|
4153
|
-
|
|
4154
|
-
className:
|
|
4155
|
-
onClick:
|
|
4156
|
-
size: S1[
|
|
4153
|
+
return /* @__PURE__ */ d("button", { className: m, disabled: t || f, ref: x, type: b, ...k, children: [
|
|
4154
|
+
c === "start" && a !== void 0 ? a1(a, {
|
|
4155
|
+
className: p === "xs" ? "mie-0.25" : "mie-0.5",
|
|
4156
|
+
onClick: i ?? void 0,
|
|
4157
|
+
size: S1[p]
|
|
4157
4158
|
}) : null,
|
|
4158
|
-
/* @__PURE__ */ n("span", { className: "w-full", children: r }),
|
|
4159
|
-
|
|
4160
|
-
className:
|
|
4161
|
-
onClick:
|
|
4162
|
-
size: S1[
|
|
4159
|
+
/* @__PURE__ */ n("span", { className: v("w-full", e), children: r }),
|
|
4160
|
+
c === "end" && a !== void 0 ? a1(a, {
|
|
4161
|
+
className: p === "xs" ? "mis-0.25" : "mis-0.5",
|
|
4162
|
+
onClick: i ?? void 0,
|
|
4163
|
+
size: S1[p]
|
|
4163
4164
|
}) : null,
|
|
4164
|
-
|
|
4165
|
+
f !== void 0 ? /* @__PURE__ */ n(
|
|
4165
4166
|
"div",
|
|
4166
4167
|
{
|
|
4167
4168
|
className: v(
|
|
4168
4169
|
"bg-tertiary-light z-100 absolute inset-0 transition-opacity",
|
|
4169
|
-
|
|
4170
|
+
f ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
4170
4171
|
),
|
|
4171
|
-
children:
|
|
4172
|
+
children: f ? /* @__PURE__ */ n(A1, { "aria-label": g, color: "text-[#777a7b]", iconSize: S1[p] }) : null
|
|
4172
4173
|
}
|
|
4173
4174
|
) : null
|
|
4174
4175
|
] });
|
|
@@ -4229,16 +4230,16 @@ const Tn = ({
|
|
|
4229
4230
|
resetValue: b = "#FFFFFF",
|
|
4230
4231
|
value: w,
|
|
4231
4232
|
...k
|
|
4232
|
-
},
|
|
4233
|
+
}, x) => {
|
|
4233
4234
|
"use client";
|
|
4234
|
-
const I = /^#[0-9A-F]{0,6}$/i,
|
|
4235
|
+
const I = /^#[0-9A-F]{0,6}$/i, m = /^#([0-9A-F]{3}){1,2}$/i, z = q(null), y = q(null), [S, A] = _(!1), H = x ?? z, O = (R) => {
|
|
4235
4236
|
if (!R.target.value.length)
|
|
4236
4237
|
return f(R);
|
|
4237
4238
|
const B = R.target.value.startsWith("#") ? R.target.value : `#${R.target.value}`;
|
|
4238
4239
|
I.test(B) && (R.target.value = B, f(R));
|
|
4239
4240
|
};
|
|
4240
4241
|
function N(R) {
|
|
4241
|
-
const B =
|
|
4242
|
+
const B = m.test(b) ? b : "";
|
|
4242
4243
|
R.target.value = B, R.target.name = c, f(R);
|
|
4243
4244
|
}
|
|
4244
4245
|
function M() {
|
|
@@ -4587,11 +4588,11 @@ const zd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
4587
4588
|
"border border-transparent focus:border-info focus:dark:border-info",
|
|
4588
4589
|
"hover:border-transparent hover:dark:border-transparent",
|
|
4589
4590
|
l
|
|
4590
|
-
),
|
|
4591
|
+
), x = k, I = v(
|
|
4591
4592
|
w,
|
|
4592
4593
|
"bg-yv-red !text-white dark:!text-white",
|
|
4593
4594
|
b
|
|
4594
|
-
),
|
|
4595
|
+
), m = Q(
|
|
4595
4596
|
() => Vd({
|
|
4596
4597
|
page: r.findIndex((z) => z === e) + 1,
|
|
4597
4598
|
pages: r
|
|
@@ -4604,7 +4605,7 @@ const zd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
4604
4605
|
L,
|
|
4605
4606
|
{
|
|
4606
4607
|
"aria-label": g,
|
|
4607
|
-
className: v(
|
|
4608
|
+
className: v(x, "hidden md:flex mli-0"),
|
|
4608
4609
|
component: a,
|
|
4609
4610
|
onClick: () => t(r[0]),
|
|
4610
4611
|
children: [
|
|
@@ -4617,7 +4618,7 @@ const zd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
4617
4618
|
L,
|
|
4618
4619
|
{
|
|
4619
4620
|
"aria-label": f,
|
|
4620
|
-
className: v(
|
|
4621
|
+
className: v(x, "mli-0"),
|
|
4621
4622
|
component: a,
|
|
4622
4623
|
onClick: () => t(r[r.findIndex((z) => z === e) - 1]),
|
|
4623
4624
|
children: [
|
|
@@ -4627,7 +4628,7 @@ const zd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
4627
4628
|
}
|
|
4628
4629
|
)
|
|
4629
4630
|
] }) : null,
|
|
4630
|
-
|
|
4631
|
+
m.map((z) => /* @__PURE__ */ n(
|
|
4631
4632
|
L,
|
|
4632
4633
|
{
|
|
4633
4634
|
"aria-label": i(r.findIndex((y) => y === z) + 1),
|
|
@@ -4660,7 +4661,7 @@ const zd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
4660
4661
|
L,
|
|
4661
4662
|
{
|
|
4662
4663
|
"aria-label": c,
|
|
4663
|
-
className: v(k,
|
|
4664
|
+
className: v(k, x, "mli-0"),
|
|
4664
4665
|
component: a,
|
|
4665
4666
|
onClick: () => t(r[r.findIndex((z) => z === e) + 1]),
|
|
4666
4667
|
children: [
|
|
@@ -4673,7 +4674,7 @@ const zd = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
4673
4674
|
L,
|
|
4674
4675
|
{
|
|
4675
4676
|
"aria-label": p,
|
|
4676
|
-
className: v(k,
|
|
4677
|
+
className: v(k, x, "hidden md:flex mli-0"),
|
|
4677
4678
|
component: a,
|
|
4678
4679
|
onClick: () => t(r[r.length - 1]),
|
|
4679
4680
|
children: [
|
|
@@ -4818,9 +4819,9 @@ const jd = 10, Ed = o(
|
|
|
4818
4819
|
minHeight: b,
|
|
4819
4820
|
noDataComponent: w,
|
|
4820
4821
|
noDataText: k = "-",
|
|
4821
|
-
onRowClick:
|
|
4822
|
+
onRowClick: x,
|
|
4822
4823
|
outerClassNames: I,
|
|
4823
|
-
paginationClassNames:
|
|
4824
|
+
paginationClassNames: m,
|
|
4824
4825
|
paginationData: z,
|
|
4825
4826
|
rowEndIcon: y,
|
|
4826
4827
|
rowImageClassNames: S,
|
|
@@ -4928,7 +4929,7 @@ const jd = 10, Ed = o(
|
|
|
4928
4929
|
);
|
|
4929
4930
|
}) }) }) : null,
|
|
4930
4931
|
/* @__PURE__ */ n(Ld, { className: B, children: A == null ? void 0 : A.map((Z, G) => {
|
|
4931
|
-
const b1 = !!(y || Z != null && Z.endIcon), k1 = !!
|
|
4932
|
+
const b1 = !!(y || Z != null && Z.endIcon), k1 = !!x;
|
|
4932
4933
|
return /* @__PURE__ */ n(
|
|
4933
4934
|
P0,
|
|
4934
4935
|
{
|
|
@@ -4940,7 +4941,7 @@ const jd = 10, Ed = o(
|
|
|
4940
4941
|
Z != null && Z.rowLink || k1 ? "cursor-pointer" : "",
|
|
4941
4942
|
g1
|
|
4942
4943
|
),
|
|
4943
|
-
onClick: () =>
|
|
4944
|
+
onClick: () => x == null ? void 0 : x(G),
|
|
4944
4945
|
style: Z.width ? {
|
|
4945
4946
|
background: K(Z.width)
|
|
4946
4947
|
} : {},
|
|
@@ -5029,7 +5030,7 @@ const jd = 10, Ed = o(
|
|
|
5029
5030
|
]
|
|
5030
5031
|
}
|
|
5031
5032
|
) }),
|
|
5032
|
-
/* @__PURE__ */ n("div", { className: v("flex flex-row items-center justify-end",
|
|
5033
|
+
/* @__PURE__ */ n("div", { className: v("flex flex-row items-center justify-end", m), children: c1 ?? (z ? /* @__PURE__ */ n(
|
|
5033
5034
|
$d,
|
|
5034
5035
|
{
|
|
5035
5036
|
currentPage: z.currentPage,
|
|
@@ -5167,7 +5168,7 @@ const Ne = ({ autoFocus: l = !0, children: r, className: e }) => {
|
|
|
5167
5168
|
isDismissableOnOutsideClick: b = !0,
|
|
5168
5169
|
onClose: w,
|
|
5169
5170
|
...k
|
|
5170
|
-
},
|
|
5171
|
+
}, x) => (P2(), /* @__PURE__ */ d("div", { className: "w-full h-screen z-[1400] fixed inset-0", children: [
|
|
5171
5172
|
/* @__PURE__ */ n(
|
|
5172
5173
|
"div",
|
|
5173
5174
|
{
|
|
@@ -5186,7 +5187,7 @@ const Ne = ({ autoFocus: l = !0, children: r, className: e }) => {
|
|
|
5186
5187
|
e
|
|
5187
5188
|
),
|
|
5188
5189
|
open: !0,
|
|
5189
|
-
ref:
|
|
5190
|
+
ref: x,
|
|
5190
5191
|
...k,
|
|
5191
5192
|
children: [
|
|
5192
5193
|
f === "modal" ? /* @__PURE__ */ n(
|
|
@@ -5201,9 +5202,9 @@ const Ne = ({ autoFocus: l = !0, children: r, className: e }) => {
|
|
|
5201
5202
|
) : null,
|
|
5202
5203
|
/* @__PURE__ */ n("div", { children: g ? /* @__PURE__ */ n(M1, { className: v("pbe-1", p), size: "md", variant: "headline", children: g }) : null }),
|
|
5203
5204
|
/* @__PURE__ */ n("div", { children: r }),
|
|
5204
|
-
/* @__PURE__ */ n("div", { className: v("w-full flex justify-end items-center gap-0.5 pbs-2", c), children: i == null ? void 0 : i.map(({ label:
|
|
5205
|
+
/* @__PURE__ */ n("div", { className: v("w-full flex justify-end items-center gap-0.5 pbs-2", c), children: i == null ? void 0 : i.map(({ label: m, ...z }, y) => (
|
|
5205
5206
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
5206
|
-
/* @__PURE__ */ n(B1, { "aria-label":
|
|
5207
|
+
/* @__PURE__ */ n(B1, { "aria-label": m, size: "sm", variant: "borderless", ...z, children: m }, `${m}${y}`)
|
|
5207
5208
|
)) })
|
|
5208
5209
|
]
|
|
5209
5210
|
}
|
|
@@ -5285,9 +5286,9 @@ const io = ({
|
|
|
5285
5286
|
onSelect: b,
|
|
5286
5287
|
optionHoverClassNames: w,
|
|
5287
5288
|
optionsContainerClassNames: k,
|
|
5288
|
-
selectedOptionClassNames:
|
|
5289
|
+
selectedOptionClassNames: x,
|
|
5289
5290
|
defaultValue: I,
|
|
5290
|
-
...
|
|
5291
|
+
...m
|
|
5291
5292
|
}, z) => {
|
|
5292
5293
|
const y = q(null), [S, A] = _(I ?? null), [H, O] = _(!1), N = (R) => {
|
|
5293
5294
|
b(R), A(R), O(!1);
|
|
@@ -5321,7 +5322,7 @@ const io = ({
|
|
|
5321
5322
|
role: "combobox",
|
|
5322
5323
|
spellCheck: "false",
|
|
5323
5324
|
value: (S == null ? void 0 : S.label) ?? "",
|
|
5324
|
-
...
|
|
5325
|
+
...m
|
|
5325
5326
|
}
|
|
5326
5327
|
),
|
|
5327
5328
|
H ? /* @__PURE__ */ n(L, { className: v("absolute top-0 right-0 left-0 z-50", k), children: /* @__PURE__ */ n(L, { className: "rounded-1 shadow-light-2 dark:shadow-dark-2", children: /* @__PURE__ */ n(d0, { className: v("p-1 rounded-1", "max-h-[288px] overflow-y-auto"), role: "listbox", children: c.length ? c.map((R, B) => /* @__PURE__ */ n(
|
|
@@ -5334,7 +5335,7 @@ const io = ({
|
|
|
5334
5335
|
onSelect: N,
|
|
5335
5336
|
option: R,
|
|
5336
5337
|
optionHoverClassNames: w,
|
|
5337
|
-
selectedOptionClassNames:
|
|
5338
|
+
selectedOptionClassNames: x
|
|
5338
5339
|
},
|
|
5339
5340
|
`${R.value}-${B}`
|
|
5340
5341
|
)) : /* @__PURE__ */ n(z1, { children: p }, "no-options") }) }) }) : null,
|
|
@@ -5533,9 +5534,9 @@ const $o = ({
|
|
|
5533
5534
|
fileMinSizeError: b = (B) => `${B} is too small to upload. The minimum dimensions are ${C == null ? void 0 : C.minWidth}x${C == null ? void 0 : C.minHeight}. Please try again.`,
|
|
5534
5535
|
fileRatioError: w = (B) => `${B} must have a ratio of, ${C == null ? void 0 : C.imageRatio}. Please try again.`,
|
|
5535
5536
|
fileCallback: k,
|
|
5536
|
-
hero:
|
|
5537
|
+
hero: x = !1,
|
|
5537
5538
|
hideDismissIcon: I = !1,
|
|
5538
|
-
hint:
|
|
5539
|
+
hint: m,
|
|
5539
5540
|
imageWidth: z = 160,
|
|
5540
5541
|
imageSrc: y,
|
|
5541
5542
|
inputContainerClassName: S,
|
|
@@ -5567,9 +5568,9 @@ const $o = ({
|
|
|
5567
5568
|
className: v([
|
|
5568
5569
|
"object-fit w-full h-full",
|
|
5569
5570
|
M === "circle" ? "rounded-full" : "rounded-0.5",
|
|
5570
|
-
M !== "unset" || !
|
|
5571
|
-
M === "unset" &&
|
|
5572
|
-
M === "unset" && !
|
|
5571
|
+
M !== "unset" || !x ? "aspect-square" : "",
|
|
5572
|
+
M === "unset" && x ? "aspect-video" : "",
|
|
5573
|
+
M === "unset" && !x ? "!aspect-auto" : ""
|
|
5573
5574
|
]),
|
|
5574
5575
|
onLoad: () => {
|
|
5575
5576
|
var Y;
|
|
@@ -5598,7 +5599,7 @@ const $o = ({
|
|
|
5598
5599
|
i,
|
|
5599
5600
|
y,
|
|
5600
5601
|
M,
|
|
5601
|
-
|
|
5602
|
+
x,
|
|
5602
5603
|
n1,
|
|
5603
5604
|
z,
|
|
5604
5605
|
a,
|
|
@@ -5641,11 +5642,11 @@ const $o = ({
|
|
|
5641
5642
|
if (J instanceof Error)
|
|
5642
5643
|
throw J;
|
|
5643
5644
|
}
|
|
5644
|
-
}, C1 = v([M === "circle" && !
|
|
5645
|
-
M === "unset" && !
|
|
5646
|
-
M === "unset" && $.status !== "idle" && !
|
|
5647
|
-
M === "unset" && $.status !== "resolved" && !
|
|
5648
|
-
]), U = v([
|
|
5645
|
+
}, C1 = v([M === "circle" && !x ? "rounded-full aspect-square" : ""]), s1 = v([M === "square" && !x ? "aspect-square rounded-1" : ""]), u1 = v([
|
|
5646
|
+
M === "unset" && !x ? "rounded-1" : "",
|
|
5647
|
+
M === "unset" && $.status !== "idle" && !x ? "aspect-auto" : "",
|
|
5648
|
+
M === "unset" && $.status !== "resolved" && !x ? "aspect-square" : ""
|
|
5649
|
+
]), U = v([x ? "rounded-1 aspect-video" : ""]), w1 = f || $.error;
|
|
5649
5650
|
return /* @__PURE__ */ d(L, { className: v([t]), children: [
|
|
5650
5651
|
/* @__PURE__ */ d(
|
|
5651
5652
|
L,
|
|
@@ -5664,7 +5665,7 @@ const $o = ({
|
|
|
5664
5665
|
{
|
|
5665
5666
|
className: v([
|
|
5666
5667
|
"flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",
|
|
5667
|
-
|
|
5668
|
+
x ? "w-full" : "md:w-1/2 w-4/5",
|
|
5668
5669
|
a ? "border-small border-solid border-tertiary-light" : "",
|
|
5669
5670
|
$.status !== "resolved" ? "bg-gray-10 dark:bg-gray-40" : "",
|
|
5670
5671
|
C1,
|
|
@@ -5680,7 +5681,7 @@ const $o = ({
|
|
|
5680
5681
|
{
|
|
5681
5682
|
className: v([
|
|
5682
5683
|
"my-auto !border-gray-15 dark:!border-gray-30 !border-1 disabled:!bg-gray-15 disabled:!border-none",
|
|
5683
|
-
|
|
5684
|
+
x ? "!mbs-2" : ""
|
|
5684
5685
|
]),
|
|
5685
5686
|
disabled: a,
|
|
5686
5687
|
onClick: y1,
|
|
@@ -5710,7 +5711,7 @@ const $o = ({
|
|
|
5710
5711
|
}
|
|
5711
5712
|
),
|
|
5712
5713
|
w1 ? /* @__PURE__ */ n(V, { className: "dark:!text-alert-dark !text-alert-light text-13", children: w1 }) : null,
|
|
5713
|
-
|
|
5714
|
+
m ? /* @__PURE__ */ n(V, { className: "text-text-muted-light dark:text-text-muted-dark text-13", children: m }) : null
|
|
5714
5715
|
] });
|
|
5715
5716
|
}, Lo = o($o);
|
|
5716
5717
|
Lo.displayName = "ImageUpload";
|
|
@@ -5861,8 +5862,8 @@ const Cc = ({ children: l, className: r, ...e }) => /* @__PURE__ */ n("div", { c
|
|
|
5861
5862
|
onClose: g,
|
|
5862
5863
|
...p
|
|
5863
5864
|
}) => {
|
|
5864
|
-
function b(
|
|
5865
|
-
c &&
|
|
5865
|
+
function b(x) {
|
|
5866
|
+
c && x.key === "Escape" && g();
|
|
5866
5867
|
}
|
|
5867
5868
|
function w() {
|
|
5868
5869
|
c && g();
|
|
@@ -6013,9 +6014,9 @@ const l9 = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
6013
6014
|
dismissButtonLabel: p,
|
|
6014
6015
|
...b
|
|
6015
6016
|
}, w) => {
|
|
6016
|
-
const k = q(null),
|
|
6017
|
+
const k = q(null), x = N1({ forwardedRef: w, innerRef: k }), I = (z) => {
|
|
6017
6018
|
c && c(z.target.value);
|
|
6018
|
-
},
|
|
6019
|
+
}, m = () => {
|
|
6019
6020
|
c && c("");
|
|
6020
6021
|
};
|
|
6021
6022
|
return /* @__PURE__ */ d("div", { className: v(["flex items-start flex-col gap-0.5", l]), children: [
|
|
@@ -6038,7 +6039,7 @@ const l9 = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
6038
6039
|
name: i,
|
|
6039
6040
|
onChange: I,
|
|
6040
6041
|
placeholder: f,
|
|
6041
|
-
ref:
|
|
6042
|
+
ref: x,
|
|
6042
6043
|
type: "search",
|
|
6043
6044
|
value: g,
|
|
6044
6045
|
...b
|
|
@@ -6050,7 +6051,7 @@ const l9 = ({ title: l, titleId: r, ...e }, t) => /* @__PURE__ */ d(
|
|
|
6050
6051
|
{
|
|
6051
6052
|
"aria-label": p,
|
|
6052
6053
|
className: "mie-1.5 p-0.25 bg-text-muted-light hover:bg-gray-20 dark:bg-text-muted-dark dark:hover:bg-gray-25 text-canvas-light dark:text-canvas-dark dark:hover:text-canvas-dark",
|
|
6053
|
-
onClick:
|
|
6054
|
+
onClick: m,
|
|
6054
6055
|
variant: "primary",
|
|
6055
6056
|
children: /* @__PURE__ */ n(je, {})
|
|
6056
6057
|
}
|
|
@@ -6078,21 +6079,21 @@ const d9 = ({
|
|
|
6078
6079
|
value: p,
|
|
6079
6080
|
...b
|
|
6080
6081
|
}, w) => {
|
|
6081
|
-
const k = q(null),
|
|
6082
|
+
const k = q(null), x = q(null), [I, m] = _(p), [z, y] = _(!1);
|
|
6082
6083
|
U0(
|
|
6083
6084
|
w,
|
|
6084
6085
|
() => ({
|
|
6085
6086
|
clearSelection() {
|
|
6086
|
-
|
|
6087
|
+
m(null), f("");
|
|
6087
6088
|
},
|
|
6088
6089
|
...k.current
|
|
6089
6090
|
}),
|
|
6090
6091
|
[f]
|
|
6091
6092
|
);
|
|
6092
6093
|
const S = (N) => {
|
|
6093
|
-
z || y(!0), !N.length && I &&
|
|
6094
|
+
z || y(!0), !N.length && I && m(null), f(N);
|
|
6094
6095
|
}, A = (N) => {
|
|
6095
|
-
g(N), f(N.label),
|
|
6096
|
+
g(N), f(N.label), m(N.label), y(!1);
|
|
6096
6097
|
}, H = X1(() => {
|
|
6097
6098
|
!I && p && f(""), I && p && f(I), y(!1);
|
|
6098
6099
|
}, [f, I, p]), O = Q(() => {
|
|
@@ -6101,14 +6102,14 @@ const d9 = ({
|
|
|
6101
6102
|
}, [e, p]);
|
|
6102
6103
|
return re({
|
|
6103
6104
|
handler: H,
|
|
6104
|
-
ref:
|
|
6105
|
+
ref: x
|
|
6105
6106
|
}), /* @__PURE__ */ d(
|
|
6106
6107
|
L,
|
|
6107
6108
|
{
|
|
6108
6109
|
className: v("relative p-1", {
|
|
6109
6110
|
"bg-canvas-light dark:bg-canvas-secondary-dark rounded-t-1": z
|
|
6110
6111
|
}),
|
|
6111
|
-
ref:
|
|
6112
|
+
ref: x,
|
|
6112
6113
|
children: [
|
|
6113
6114
|
/* @__PURE__ */ n(
|
|
6114
6115
|
Ee,
|
|
@@ -6144,8 +6145,8 @@ function c9({
|
|
|
6144
6145
|
activeItemClassName: c,
|
|
6145
6146
|
...f
|
|
6146
6147
|
}, g) {
|
|
6147
|
-
const [p, b] = _(r ?? 0), w = p > 0 ? p - 1 : 0, k = (
|
|
6148
|
-
b(
|
|
6148
|
+
const [p, b] = _(r ?? 0), w = p > 0 ? p - 1 : 0, k = (x) => {
|
|
6149
|
+
b(x), e(x);
|
|
6149
6150
|
};
|
|
6150
6151
|
return /* @__PURE__ */ n(
|
|
6151
6152
|
"div",
|
|
@@ -6153,7 +6154,7 @@ function c9({
|
|
|
6153
6154
|
...f,
|
|
6154
6155
|
className: `inline-flex overflow-hidden text-gray-40 dark:text-white ${l}`,
|
|
6155
6156
|
ref: g,
|
|
6156
|
-
children: t.map((
|
|
6157
|
+
children: t.map((x, I) => /* @__PURE__ */ n(
|
|
6157
6158
|
h9,
|
|
6158
6159
|
{
|
|
6159
6160
|
activeIndex: p,
|
|
@@ -6164,9 +6165,9 @@ function c9({
|
|
|
6164
6165
|
onSelectedValue: k,
|
|
6165
6166
|
prevIndex: w,
|
|
6166
6167
|
size: a,
|
|
6167
|
-
value:
|
|
6168
|
+
value: x
|
|
6168
6169
|
},
|
|
6169
|
-
|
|
6170
|
+
x
|
|
6170
6171
|
))
|
|
6171
6172
|
}
|
|
6172
6173
|
);
|
|
@@ -6231,22 +6232,22 @@ const v9 = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
6231
6232
|
selectClassName: b,
|
|
6232
6233
|
size: w = "md",
|
|
6233
6234
|
value: k,
|
|
6234
|
-
...
|
|
6235
|
+
...x
|
|
6235
6236
|
}, I) => {
|
|
6236
6237
|
var C;
|
|
6237
|
-
const
|
|
6238
|
+
const m = v(u9, v9), z = q(null), y = N1({ forwardedRef: I, innerRef: z }), [S, A] = _(!!(k || (C = y == null ? void 0 : y.current) != null && C.value));
|
|
6238
6239
|
o1(() => {
|
|
6239
6240
|
var R;
|
|
6240
6241
|
A(!!((R = y == null ? void 0 : y.current) != null && R.value || k));
|
|
6241
6242
|
}, [k, y]);
|
|
6242
6243
|
const H = w !== "sm" && (!!f || !!c), O = Q(() => {
|
|
6243
6244
|
const R = v(
|
|
6244
|
-
|
|
6245
|
+
m,
|
|
6245
6246
|
w9,
|
|
6246
6247
|
H ? b9 : null
|
|
6247
|
-
), B = v(
|
|
6248
|
+
), B = v(m, l0);
|
|
6248
6249
|
return S ? R : B;
|
|
6249
|
-
}, [
|
|
6250
|
+
}, [m, S, H]), N = Q(() => {
|
|
6250
6251
|
const R = v(D0, p9), B = v(D0);
|
|
6251
6252
|
return S ? R : B;
|
|
6252
6253
|
}, [S]), M = (R) => {
|
|
@@ -6258,7 +6259,7 @@ const v9 = "appearance-none outline-none bg-transparent disabled:bg-gray-10 dark
|
|
|
6258
6259
|
/* @__PURE__ */ n(
|
|
6259
6260
|
"select",
|
|
6260
6261
|
{
|
|
6261
|
-
...
|
|
6262
|
+
...x,
|
|
6262
6263
|
className: v(
|
|
6263
6264
|
[O, a ? f9 : g9],
|
|
6264
6265
|
{
|
|
@@ -6645,11 +6646,11 @@ const q9 = {
|
|
|
6645
6646
|
placeholder: b,
|
|
6646
6647
|
value: w,
|
|
6647
6648
|
...k
|
|
6648
|
-
},
|
|
6649
|
-
const I = q(null),
|
|
6649
|
+
}, x) => {
|
|
6650
|
+
const I = q(null), m = N1({ forwardedRef: x, innerRef: I }), [z, y] = _(!!(w || b)), [S, A] = _(!1), H = (M) => {
|
|
6650
6651
|
y(!!(M.target.value || b)), p && p(M);
|
|
6651
6652
|
}, O = () => {
|
|
6652
|
-
r || !
|
|
6653
|
+
r || !m.current || (m.current.focus(), A(!0));
|
|
6653
6654
|
}, N = () => {
|
|
6654
6655
|
A(!1);
|
|
6655
6656
|
};
|
|
@@ -6679,7 +6680,7 @@ const q9 = {
|
|
|
6679
6680
|
onBlur: N,
|
|
6680
6681
|
onChange: H,
|
|
6681
6682
|
placeholder: b,
|
|
6682
|
-
ref:
|
|
6683
|
+
ref: m,
|
|
6683
6684
|
value: w,
|
|
6684
6685
|
...k
|
|
6685
6686
|
}
|
|
@@ -6750,35 +6751,35 @@ const lc = {
|
|
|
6750
6751
|
const f = q(null), [g, p] = _(l1.START);
|
|
6751
6752
|
o1(() => {
|
|
6752
6753
|
if (g === l1.START) {
|
|
6753
|
-
const
|
|
6754
|
-
return () => clearTimeout(
|
|
6754
|
+
const m = setTimeout(() => p(l1.SHOW), 100);
|
|
6755
|
+
return () => clearTimeout(m);
|
|
6755
6756
|
} else if (g === l1.DISMISS) {
|
|
6756
|
-
const
|
|
6757
|
+
const m = setTimeout(() => {
|
|
6757
6758
|
e && e(), p(l1.REMOVE);
|
|
6758
6759
|
}, 1e3);
|
|
6759
|
-
return () => clearTimeout(
|
|
6760
|
+
return () => clearTimeout(m);
|
|
6760
6761
|
} else if (t && g !== l1.REMOVE) {
|
|
6761
|
-
const
|
|
6762
|
-
return () => clearTimeout(
|
|
6762
|
+
const m = setTimeout(() => p(l1.DISMISS), t);
|
|
6763
|
+
return () => clearTimeout(m);
|
|
6763
6764
|
}
|
|
6764
6765
|
}, [t, g, e]);
|
|
6765
6766
|
const b = Q(() => {
|
|
6766
|
-
var
|
|
6767
|
-
return g === l1.DISMISS && ((
|
|
6767
|
+
var m;
|
|
6768
|
+
return g === l1.DISMISS && ((m = f == null ? void 0 : f.current) != null && m.clientHeight) ? `-${f.current.clientHeight}px` : "0px";
|
|
6768
6769
|
}, [f, g]), w = () => p(l1.DISMISS), k = Q(() => {
|
|
6769
|
-
const
|
|
6770
|
+
const m = "flex items-start justify-start p-2 text-white rounded-1 width-full max-w-[400px] border-0 opacity-0 transition-[opacity, transform] duration-1000 ease-in-out min-w-[276px]";
|
|
6770
6771
|
switch (c) {
|
|
6771
6772
|
case "inlineEnd":
|
|
6772
|
-
return g === l1.SHOW ? `${
|
|
6773
|
+
return g === l1.SHOW ? `${m} translate-x-0 opacity-1` : `${m} translate-x-[400px]`;
|
|
6773
6774
|
case "inlineStart":
|
|
6774
6775
|
default:
|
|
6775
|
-
return g === l1.SHOW ? `${
|
|
6776
|
+
return g === l1.SHOW ? `${m} translate-x-[-400px]` : `${m} opacity-1 translate-x-0`;
|
|
6776
6777
|
}
|
|
6777
|
-
}, [c, g]),
|
|
6778
|
-
const
|
|
6779
|
-
return c === "inlineEnd" ? `${
|
|
6778
|
+
}, [c, g]), x = Q(() => {
|
|
6779
|
+
const m = "flex flex-col transition-[margin] duration-500 ease-in-out overflow-hidden";
|
|
6780
|
+
return c === "inlineEnd" ? `${m} items-end` : `${m} items-start`;
|
|
6780
6781
|
}, [c]), I = Q(() => lc[i], [i]);
|
|
6781
|
-
return g === l1.REMOVE ? null : /* @__PURE__ */ n("div", { className: v(
|
|
6782
|
+
return g === l1.REMOVE ? null : /* @__PURE__ */ n("div", { className: v(x), style: { marginBlockEnd: b }, children: /* @__PURE__ */ d("div", { className: v(k, I, l), ref: f, children: [
|
|
6782
6783
|
!a && /* @__PURE__ */ n("button", { "aria-label": "Dismiss", className: "mie-1", onClick: w, children: /* @__PURE__ */ n(je, {}) }),
|
|
6783
6784
|
r
|
|
6784
6785
|
] }) });
|