@fileverse/ui 4.1.6-patch-5 → 4.1.6-patch-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +13 -0
- package/dist/index.es.d.ts +3 -1
- package/dist/index.es.js +119 -97
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2589,6 +2589,19 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2589
2589
|
margin: 0 0.5rem !important;
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
+
.toast-mini {
|
|
2593
|
+
padding: 12px !important;
|
|
2594
|
+
gap: 8px !important;
|
|
2595
|
+
width: -moz-fit-content !important;
|
|
2596
|
+
width: fit-content !important;
|
|
2597
|
+
border-radius: 8px !important;
|
|
2598
|
+
place-self: end !important;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
.toast-mini > * + * {
|
|
2602
|
+
margin-left: 0;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2592
2605
|
.file\:text-body-sm::file-selector-button {
|
|
2593
2606
|
font-family: system-ui;
|
|
2594
2607
|
font-size: 14px;
|
package/dist/index.es.d.ts
CHANGED
|
@@ -847,12 +847,13 @@ declare type ThemeProviderProps = {
|
|
|
847
847
|
export declare const ThemeToggle: () => JSX_2.Element;
|
|
848
848
|
|
|
849
849
|
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
850
|
-
variant?: "default" | "danger" | "secondary" | "success" | null | undefined;
|
|
850
|
+
variant?: "default" | "danger" | "secondary" | "success" | "mini" | null | undefined;
|
|
851
851
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom" | null | undefined;
|
|
852
852
|
} & ClassProp) | undefined) => string> & {
|
|
853
853
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
854
854
|
duration?: number;
|
|
855
855
|
hasIcon?: boolean;
|
|
856
|
+
customIcon?: string;
|
|
856
857
|
} & React_2.RefAttributes<HTMLLIElement>>;
|
|
857
858
|
|
|
858
859
|
export declare function toast({ ...props }: Toast_2): {
|
|
@@ -876,6 +877,7 @@ export declare const Toaster: ({ position, duration, }: ToasterProps) => JSX_2.E
|
|
|
876
877
|
export declare interface ToasterProps {
|
|
877
878
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
878
879
|
duration?: number;
|
|
880
|
+
customIcon?: string;
|
|
879
881
|
}
|
|
880
882
|
|
|
881
883
|
declare type ToasterToast = ToastProps & {
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import I, { forwardRef as Et, createElement as P, useLayoutEffect as er, useEffect as Ne, createContext as Wt, useRef as
|
|
2
|
+
import I, { forwardRef as Et, createElement as P, useLayoutEffect as er, useEffect as Ne, createContext as Wt, useRef as Le, useId as Zi, useContext as xe, useInsertionEffect as wd, useCallback as Ve, useMemo as Ke, Children as C6, isValidElement as b6, useState as ve, Fragment as Nn, Component as xd, memo as Cd, createRef as n1, Suspense as L6 } from "react";
|
|
3
3
|
import * as An from "react-dom";
|
|
4
4
|
import j6 from "react-dom";
|
|
5
5
|
var eo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -132,14 +132,14 @@ function S6() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var T = Object.assign, G = 0, q, V, B, Q, me,
|
|
135
|
+
var T = Object.assign, G = 0, q, V, B, Q, me, be, z;
|
|
136
136
|
function W() {
|
|
137
137
|
}
|
|
138
138
|
W.__reactDisabledLog = !0;
|
|
139
139
|
function K() {
|
|
140
140
|
{
|
|
141
141
|
if (G === 0) {
|
|
142
|
-
q = console.log, V = console.info, B = console.warn, Q = console.error, me = console.group,
|
|
142
|
+
q = console.log, V = console.info, B = console.warn, Q = console.error, me = console.group, be = console.groupCollapsed, z = console.groupEnd;
|
|
143
143
|
var b = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
@@ -184,7 +184,7 @@ function S6() {
|
|
|
184
184
|
value: me
|
|
185
185
|
}),
|
|
186
186
|
groupCollapsed: T({}, b, {
|
|
187
|
-
value:
|
|
187
|
+
value: be
|
|
188
188
|
}),
|
|
189
189
|
groupEnd: T({}, b, {
|
|
190
190
|
value: z
|
|
@@ -874,7 +874,7 @@ const Ae = (e) => {
|
|
|
874
874
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
875
875
|
$6.test(e) && !U6.test(e)
|
|
876
876
|
), Sd = () => !1, o5 = (e) => W6.test(e), r5 = (e) => Y6.test(e), i5 = () => {
|
|
877
|
-
const e = Ae("colors"), t = Ae("spacing"), a = Ae("blur"), n = Ae("brightness"), o = Ae("borderColor"), i = Ae("borderRadius"), s = Ae("borderSpacing"), c = Ae("borderWidth"), f = Ae("contrast"), d = Ae("grayscale"), u = Ae("hueRotate"), h = Ae("invert"), y = Ae("gap"), m = Ae("gradientColorStops"), v = Ae("gradientColorStopPositions"), k = Ae("inset"), g = Ae("margin"), M = Ae("opacity"), w = Ae("padding"), x = Ae("saturate"), C = Ae("scale"), L = Ae("sepia"), N = Ae("skew"), j = Ae("space"), A = Ae("translate"), D = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", oe, t], R = () => [oe, t], _ = () => ["", Qt, o1], T = () => ["auto", ua, oe], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], q = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Q = () => ["", "0", oe], me = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"],
|
|
877
|
+
const e = Ae("colors"), t = Ae("spacing"), a = Ae("blur"), n = Ae("brightness"), o = Ae("borderColor"), i = Ae("borderRadius"), s = Ae("borderSpacing"), c = Ae("borderWidth"), f = Ae("contrast"), d = Ae("grayscale"), u = Ae("hueRotate"), h = Ae("invert"), y = Ae("gap"), m = Ae("gradientColorStops"), v = Ae("gradientColorStopPositions"), k = Ae("inset"), g = Ae("margin"), M = Ae("opacity"), w = Ae("padding"), x = Ae("saturate"), C = Ae("scale"), L = Ae("sepia"), N = Ae("skew"), j = Ae("space"), A = Ae("translate"), D = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], Z = () => ["auto", oe, t], R = () => [oe, t], _ = () => ["", Qt, o1], T = () => ["auto", ua, oe], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], q = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Q = () => ["", "0", oe], me = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], be = () => [ua, oe];
|
|
878
878
|
return {
|
|
879
879
|
cacheSize: 500,
|
|
880
880
|
separator: ":",
|
|
@@ -882,26 +882,26 @@ const Ae = (e) => {
|
|
|
882
882
|
colors: [$a],
|
|
883
883
|
spacing: [Qt, o1],
|
|
884
884
|
blur: ["none", "", r1, oe],
|
|
885
|
-
brightness:
|
|
885
|
+
brightness: be(),
|
|
886
886
|
borderColor: [e],
|
|
887
887
|
borderRadius: ["none", "", "full", r1, oe],
|
|
888
888
|
borderSpacing: R(),
|
|
889
889
|
borderWidth: _(),
|
|
890
|
-
contrast:
|
|
890
|
+
contrast: be(),
|
|
891
891
|
grayscale: Q(),
|
|
892
|
-
hueRotate:
|
|
892
|
+
hueRotate: be(),
|
|
893
893
|
invert: Q(),
|
|
894
894
|
gap: R(),
|
|
895
895
|
gradientColorStops: [e],
|
|
896
896
|
gradientColorStopPositions: [Q6, o1],
|
|
897
897
|
inset: Z(),
|
|
898
898
|
margin: Z(),
|
|
899
|
-
opacity:
|
|
899
|
+
opacity: be(),
|
|
900
900
|
padding: R(),
|
|
901
|
-
saturate:
|
|
902
|
-
scale:
|
|
901
|
+
saturate: be(),
|
|
902
|
+
scale: be(),
|
|
903
903
|
sepia: Q(),
|
|
904
|
-
skew:
|
|
904
|
+
skew: be(),
|
|
905
905
|
space: R(),
|
|
906
906
|
translate: R()
|
|
907
907
|
},
|
|
@@ -2476,7 +2476,7 @@ const Ae = (e) => {
|
|
|
2476
2476
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2477
2477
|
*/
|
|
2478
2478
|
duration: [{
|
|
2479
|
-
duration:
|
|
2479
|
+
duration: be()
|
|
2480
2480
|
}],
|
|
2481
2481
|
/**
|
|
2482
2482
|
* Transition Timing Function
|
|
@@ -2490,7 +2490,7 @@ const Ae = (e) => {
|
|
|
2490
2490
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2491
2491
|
*/
|
|
2492
2492
|
delay: [{
|
|
2493
|
-
delay:
|
|
2493
|
+
delay: be()
|
|
2494
2494
|
}],
|
|
2495
2495
|
/**
|
|
2496
2496
|
* Animation
|
|
@@ -27673,7 +27673,7 @@ const Bue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
27673
27673
|
defaultVariants: {
|
|
27674
27674
|
size: "md"
|
|
27675
27675
|
}
|
|
27676
|
-
}),
|
|
27676
|
+
}), Ce = Et(
|
|
27677
27677
|
({ name: e, className: t, size: a, strokeWidth: n, fill: o, stroke: i, ...s }, c) => {
|
|
27678
27678
|
const f = Zue[e];
|
|
27679
27679
|
return f ? /* @__PURE__ */ l.jsx(
|
|
@@ -27690,7 +27690,7 @@ const Bue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
27690
27690
|
) : null;
|
|
27691
27691
|
}
|
|
27692
27692
|
);
|
|
27693
|
-
|
|
27693
|
+
Ce.displayName = "LucideIcon";
|
|
27694
27694
|
const Gue = Lt(
|
|
27695
27695
|
"inline-flex items-center justify-center whitespace-nowrap rounded ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:color-button-disabled",
|
|
27696
27696
|
{
|
|
@@ -27738,7 +27738,7 @@ const Gue = Lt(
|
|
|
27738
27738
|
onClick: c,
|
|
27739
27739
|
...u,
|
|
27740
27740
|
children: f ? /* @__PURE__ */ l.jsx(
|
|
27741
|
-
|
|
27741
|
+
Ce,
|
|
27742
27742
|
{
|
|
27743
27743
|
name: "LoaderCircle",
|
|
27744
27744
|
size: a === "sm" ? "sm" : "md",
|
|
@@ -27748,7 +27748,7 @@ const Gue = Lt(
|
|
|
27748
27748
|
}
|
|
27749
27749
|
) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
27750
27750
|
n && /* @__PURE__ */ l.jsx("span", { className: "start-adornment", children: /* @__PURE__ */ l.jsx(
|
|
27751
|
-
|
|
27751
|
+
Ce,
|
|
27752
27752
|
{
|
|
27753
27753
|
size: a === "sm" ? "sm" : "md",
|
|
27754
27754
|
name: i,
|
|
@@ -27759,7 +27759,7 @@ const Gue = Lt(
|
|
|
27759
27759
|
) }),
|
|
27760
27760
|
u.children,
|
|
27761
27761
|
o && /* @__PURE__ */ l.jsx("span", { className: "end-adornment", children: /* @__PURE__ */ l.jsx(
|
|
27762
|
-
|
|
27762
|
+
Ce,
|
|
27763
27763
|
{
|
|
27764
27764
|
size: a === "sm" ? "sm" : "md",
|
|
27765
27765
|
name: s,
|
|
@@ -27817,7 +27817,7 @@ const Vwe = ({ children: e, className: t }) => {
|
|
|
27817
27817
|
size: a,
|
|
27818
27818
|
...f,
|
|
27819
27819
|
children: /* @__PURE__ */ l.jsx(
|
|
27820
|
-
|
|
27820
|
+
Ce,
|
|
27821
27821
|
{
|
|
27822
27822
|
"data-testid": "icon",
|
|
27823
27823
|
"data-role": "icon",
|
|
@@ -29946,10 +29946,10 @@ var o0 = "PopperContent", [Mhe, whe] = ol(o0), fl = p.forwardRef(
|
|
|
29946
29946
|
bhe({ arrowWidth: j, arrowHeight: A }),
|
|
29947
29947
|
y && yhe({ strategy: "referenceHidden", ..._ })
|
|
29948
29948
|
]
|
|
29949
|
-
}), [Q, me] = ul(q),
|
|
29949
|
+
}), [Q, me] = ul(q), be = ct(v);
|
|
29950
29950
|
We(() => {
|
|
29951
|
-
V && (
|
|
29952
|
-
}, [V,
|
|
29951
|
+
V && (be == null || be());
|
|
29952
|
+
}, [V, be]);
|
|
29953
29953
|
const z = (O = B.arrow) == null ? void 0 : O.x, W = (X = B.arrow) == null ? void 0 : X.y, K = ((re = B.arrow) == null ? void 0 : re.centerOffset) !== 0, [U, ne] = p.useState();
|
|
29954
29954
|
return We(() => {
|
|
29955
29955
|
M && ne(window.getComputedStyle(M).zIndex);
|
|
@@ -30485,7 +30485,7 @@ function Fhe(e) {
|
|
|
30485
30485
|
var xl = pl, Ghe = yl, $he = ml, Uhe = kl, Whe = gl, Yhe = wl;
|
|
30486
30486
|
const s0 = Wt({});
|
|
30487
30487
|
function c0(e) {
|
|
30488
|
-
const t =
|
|
30488
|
+
const t = Le(null);
|
|
30489
30489
|
return t.current === null && (t.current = e()), t.current;
|
|
30490
30490
|
}
|
|
30491
30491
|
const ur = Wt(null), f0 = Wt({
|
|
@@ -30512,7 +30512,7 @@ class Qhe extends p.Component {
|
|
|
30512
30512
|
}
|
|
30513
30513
|
}
|
|
30514
30514
|
function Jhe({ children: e, isPresent: t }) {
|
|
30515
|
-
const a = Zi(), n =
|
|
30515
|
+
const a = Zi(), n = Le(null), o = Le({
|
|
30516
30516
|
width: 0,
|
|
30517
30517
|
height: 0,
|
|
30518
30518
|
top: 0,
|
|
@@ -30588,7 +30588,7 @@ function hc(e) {
|
|
|
30588
30588
|
}), t;
|
|
30589
30589
|
}
|
|
30590
30590
|
const d0 = typeof window < "u", bl = d0 ? er : Ne, e3e = ({ children: e, custom: t, initial: a = !0, onExitComplete: n, presenceAffectsLayout: o = !0, mode: i = "sync", propagate: s = !1 }) => {
|
|
30591
|
-
const [c, f] = Cl(s), d = Ke(() => hc(e), [e]), u = s && !c ? [] : d.map(no), h =
|
|
30591
|
+
const [c, f] = Cl(s), d = Ke(() => hc(e), [e]), u = s && !c ? [] : d.map(no), h = Le(!0), y = Le(d), m = c0(() => /* @__PURE__ */ new Map()), [v, k] = ve(d), [g, M] = ve(d);
|
|
30592
30592
|
bl(() => {
|
|
30593
30593
|
h.current = !1, y.current = d;
|
|
30594
30594
|
for (let C = 0; C < g.length; C++) {
|
|
@@ -30869,7 +30869,7 @@ function u3e(e, t, a) {
|
|
|
30869
30869
|
const p0 = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), h3e = "framerAppearId", Sl = "data-" + p0(h3e), { schedule: y0 } = Ll(queueMicrotask, !1), Il = Wt({});
|
|
30870
30870
|
function p3e(e, t, a, n, o) {
|
|
30871
30871
|
var i, s;
|
|
30872
|
-
const { visualElement: c } = xe(pr), f = xe(jl), d = xe(ur), u = xe(f0).reducedMotion, h =
|
|
30872
|
+
const { visualElement: c } = xe(pr), f = xe(jl), d = xe(ur), u = xe(f0).reducedMotion, h = Le(null);
|
|
30873
30873
|
n = n || f.renderer, !h.current && n && (h.current = n(e, {
|
|
30874
30874
|
visualState: t,
|
|
30875
30875
|
parent: c,
|
|
@@ -30880,11 +30880,11 @@ function p3e(e, t, a, n, o) {
|
|
|
30880
30880
|
}));
|
|
30881
30881
|
const y = h.current, m = xe(Il);
|
|
30882
30882
|
y && !y.projection && o && (y.type === "html" || y.type === "svg") && y3e(h.current, a, o, m);
|
|
30883
|
-
const v =
|
|
30883
|
+
const v = Le(!1);
|
|
30884
30884
|
wd(() => {
|
|
30885
30885
|
y && v.current && y.update(a, d);
|
|
30886
30886
|
});
|
|
30887
|
-
const k = a[Sl], g =
|
|
30887
|
+
const k = a[Sl], g = Le(!!k && !(!((i = window.MotionHandoffIsComplete) === null || i === void 0) && i.call(window, k)) && ((s = window.MotionHasOptimisedAnimation) === null || s === void 0 ? void 0 : s.call(window, k)));
|
|
30888
30888
|
return bl(() => {
|
|
30889
30889
|
y && (v.current = !0, window.MotionIsMounted = !0, y.updateFeatures(), y0.render(y.render), g.current && y.animationState && y.animationState.animateChanges());
|
|
30890
30890
|
}), Ne(() => {
|
|
@@ -35423,7 +35423,7 @@ const T5e = Lt(
|
|
|
35423
35423
|
ref: o,
|
|
35424
35424
|
children: [
|
|
35425
35425
|
n.icon && /* @__PURE__ */ l.jsx(
|
|
35426
|
-
|
|
35426
|
+
Ce,
|
|
35427
35427
|
{
|
|
35428
35428
|
name: n.icon,
|
|
35429
35429
|
size: "sm",
|
|
@@ -35458,7 +35458,7 @@ const Zwe = ({
|
|
|
35458
35458
|
onAddTag: a,
|
|
35459
35459
|
isPreviewMode: n
|
|
35460
35460
|
}) => {
|
|
35461
|
-
const [o, i] = ve(""), [s, c] = ve(!1), f =
|
|
35461
|
+
const [o, i] = ve(""), [s, c] = ve(!1), f = Le(null), d = (m) => {
|
|
35462
35462
|
i(m), c(!0);
|
|
35463
35463
|
}, u = (m) => {
|
|
35464
35464
|
const v = e.find(
|
|
@@ -35485,7 +35485,7 @@ const Zwe = ({
|
|
|
35485
35485
|
variant: "ghost",
|
|
35486
35486
|
className: "min-w-fit !h-6 px-2",
|
|
35487
35487
|
children: [
|
|
35488
|
-
/* @__PURE__ */ l.jsx(
|
|
35488
|
+
/* @__PURE__ */ l.jsx(Ce, { name: "Plus", size: "sm", className: "mr-1 text-[#77818A]" }),
|
|
35489
35489
|
/* @__PURE__ */ l.jsx("span", { className: "text-[#77818A] text-helper-text-sm", children: "Add Tag" })
|
|
35490
35490
|
]
|
|
35491
35491
|
}
|
|
@@ -39330,7 +39330,7 @@ var It = 10, [Qh, w1] = Pa(q1), i7e = "SelectContentImpl", Jh = p.forwardRef(
|
|
|
39330
39330
|
window.removeEventListener("blur", O), window.removeEventListener("resize", O);
|
|
39331
39331
|
};
|
|
39332
39332
|
}, [B]);
|
|
39333
|
-
const [me,
|
|
39333
|
+
const [me, be] = y3((O) => {
|
|
39334
39334
|
const X = R().filter((fe) => !fe.disabled), re = X.find((fe) => fe.ref.current === document.activeElement), ie = m3(X, O, re);
|
|
39335
39335
|
ie && setTimeout(() => ie.ref.current.focus());
|
|
39336
39336
|
}), z = p.useCallback(
|
|
@@ -39416,7 +39416,7 @@ var It = 10, [Qh, w1] = Pa(q1), i7e = "SelectContentImpl", Jh = p.forwardRef(
|
|
|
39416
39416
|
},
|
|
39417
39417
|
onKeyDown: F(M.onKeyDown, (O) => {
|
|
39418
39418
|
const X = O.ctrlKey || O.altKey || O.metaKey;
|
|
39419
|
-
if (O.key === "Tab" && O.preventDefault(), !X && O.key.length === 1 &&
|
|
39419
|
+
if (O.key === "Tab" && O.preventDefault(), !X && O.key.length === 1 && be(O.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(O.key)) {
|
|
39420
39420
|
let ie = R().filter((fe) => !fe.disabled).map((fe) => fe.ref.current);
|
|
39421
39421
|
if (["ArrowUp", "End"].includes(O.key) && (ie = ie.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(O.key)) {
|
|
39422
39422
|
const fe = O.target, ke = ie.indexOf(fe);
|
|
@@ -39458,7 +39458,7 @@ var s7e = "SelectItemAlignedPosition", Kh = p.forwardRef((e, t) => {
|
|
|
39458
39458
|
]);
|
|
39459
39459
|
c.style.minWidth = J + "px", c.style.right = gt + "px";
|
|
39460
39460
|
}
|
|
39461
|
-
const Z = y(), R = window.innerHeight - It * 2, _ = k.scrollHeight, T = window.getComputedStyle(d), G = parseInt(T.borderTopWidth, 10), q = parseInt(T.paddingTop, 10), V = parseInt(T.borderBottomWidth, 10), B = parseInt(T.paddingBottom, 10), Q = G + q + _ + B + V, me = Math.min(g.offsetHeight * 5, Q),
|
|
39461
|
+
const Z = y(), R = window.innerHeight - It * 2, _ = k.scrollHeight, T = window.getComputedStyle(d), G = parseInt(T.borderTopWidth, 10), q = parseInt(T.paddingTop, 10), V = parseInt(T.borderBottomWidth, 10), B = parseInt(T.paddingBottom, 10), Q = G + q + _ + B + V, me = Math.min(g.offsetHeight * 5, Q), be = window.getComputedStyle(k), z = parseInt(be.paddingTop, 10), W = parseInt(be.paddingBottom, 10), K = j.top + j.height / 2 - It, U = R - K, ne = g.offsetHeight / 2, O = g.offsetTop + ne, X = G + q + O, re = Q - X;
|
|
39462
39462
|
if (X <= K) {
|
|
39463
39463
|
const fe = Z.length > 0 && g === Z[Z.length - 1].ref.current;
|
|
39464
39464
|
c.style.bottom = "0px";
|
|
@@ -40159,7 +40159,7 @@ var [z7e, D7e] = b3(Pr, {
|
|
|
40159
40159
|
}),
|
|
40160
40160
|
onPointerMove: F(e.onPointerMove, (T) => {
|
|
40161
40161
|
if (!x.current) return;
|
|
40162
|
-
const G = T.clientX - x.current.x, q = T.clientY - x.current.y, V = !!C.current, B = ["left", "right"].includes(k.swipeDirection), Q = ["left", "up"].includes(k.swipeDirection) ? Math.min : Math.max, me = B ? Q(0, G) : 0,
|
|
40162
|
+
const G = T.clientX - x.current.x, q = T.clientY - x.current.y, V = !!C.current, B = ["left", "right"].includes(k.swipeDirection), Q = ["left", "up"].includes(k.swipeDirection) ? Math.min : Math.max, me = B ? Q(0, G) : 0, be = B ? 0 : Q(0, q), z = T.pointerType === "touch" ? 10 : 2, W = { x: me, y: be }, K = { originalEvent: T, delta: W };
|
|
40163
40163
|
V ? (C.current = W, uo(S7e, h, K, {
|
|
40164
40164
|
discrete: !1
|
|
40165
40165
|
})) : Zf(W, k.swipeDirection, z) ? (C.current = W, uo(A7e, u, K, {
|
|
@@ -40510,9 +40510,9 @@ const ep = p.forwardRef((e, t) => {
|
|
|
40510
40510
|
ep.displayName = "Grid";
|
|
40511
40511
|
const lme = I.forwardRef(({ children: e, size: t, liked: a, onLike: n, onClick: o, ...i }, s) => {
|
|
40512
40512
|
const c = [
|
|
40513
|
-
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
40513
|
+
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(Ce, { name: "Share", size: "md" }) }),
|
|
40514
40514
|
/* @__PURE__ */ l.jsx("div", { onClick: n, children: /* @__PURE__ */ l.jsx(
|
|
40515
|
-
|
|
40515
|
+
Ce,
|
|
40516
40516
|
{
|
|
40517
40517
|
name: "Heart",
|
|
40518
40518
|
size: "md",
|
|
@@ -40597,9 +40597,9 @@ const ho = {
|
|
|
40597
40597
|
(m) => ho[m] === e
|
|
40598
40598
|
)
|
|
40599
40599
|
), y = [
|
|
40600
|
-
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
40601
|
-
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
40602
|
-
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
40600
|
+
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(Ce, { fill: "none", name: "Square", size: "sm" }) }),
|
|
40601
|
+
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(Ce, { fill: "none", name: "RectangleHorizontal" }) }),
|
|
40602
|
+
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(Ce, { fill: "none", name: "Square", size: "md" }) })
|
|
40603
40603
|
];
|
|
40604
40604
|
return Ne(() => {
|
|
40605
40605
|
d(ho[u]), o == null || o(ho[u]);
|
|
@@ -40829,7 +40829,7 @@ const txe = (e) => /* @__PURE__ */ l.jsx(Y3, { children: /* @__PURE__ */ l.jsx(e
|
|
|
40829
40829
|
"data-testid": "list-mode-button",
|
|
40830
40830
|
className: "color-text-default",
|
|
40831
40831
|
children: /* @__PURE__ */ l.jsx(
|
|
40832
|
-
|
|
40832
|
+
Ce,
|
|
40833
40833
|
{
|
|
40834
40834
|
fill: "none",
|
|
40835
40835
|
name: "List",
|
|
@@ -40845,7 +40845,7 @@ const txe = (e) => /* @__PURE__ */ l.jsx(Y3, { children: /* @__PURE__ */ l.jsx(e
|
|
|
40845
40845
|
"data-testid": "card-mode-button",
|
|
40846
40846
|
className: "color-text-default",
|
|
40847
40847
|
children: /* @__PURE__ */ l.jsx(
|
|
40848
|
-
|
|
40848
|
+
Ce,
|
|
40849
40849
|
{
|
|
40850
40850
|
fill: "none",
|
|
40851
40851
|
name: "LayoutGrid",
|
|
@@ -41528,7 +41528,7 @@ function Wme({ open: e, onOpenChange: t, children: a, onDrag: n, onRelease: o, s
|
|
|
41528
41528
|
document.body.style.pointerEvents = "auto";
|
|
41529
41529
|
}), ee || (document.body.style.pointerEvents = "auto");
|
|
41530
41530
|
}
|
|
41531
|
-
}), [V, B] = I.useState(!1), [Q, me] = I.useState(!1), [
|
|
41531
|
+
}), [V, B] = I.useState(!1), [Q, me] = I.useState(!1), [be, z] = I.useState(!1), W = I.useRef(null), K = I.useRef(null), U = I.useRef(null), ne = I.useRef(null), O = I.useRef(null), X = I.useRef(!1), re = I.useRef(null), ie = I.useRef(0), fe = I.useRef(!1), ke = I.useRef(!L), Fe = I.useRef(0), J = I.useRef(null), lt = I.useRef(((_ = J.current) == null ? void 0 : _.getBoundingClientRect().height) || 0), nt = I.useRef(((T = J.current) == null ? void 0 : T.getBoundingClientRect().width) || 0), gt = I.useRef(0), K1 = I.useCallback((ee) => {
|
|
41532
41532
|
i && ee === L1.length - 1 && (K.current = /* @__PURE__ */ new Date());
|
|
41533
41533
|
}, []), { activeSnapPoint: At, activeSnapPointIndex: a1, setActiveSnapPoint: Yn, onRelease: Ha, snapPointsOffset: L1, onDrag: Jr, shouldFade: Va, getPercentageDragged: Qn } = Fme({
|
|
41534
41534
|
snapPoints: i,
|
|
@@ -41543,7 +41543,7 @@ function Wme({ open: e, onOpenChange: t, children: a, onDrag: n, onRelease: o, s
|
|
|
41543
41543
|
snapToSequentialPoint: j
|
|
41544
41544
|
});
|
|
41545
41545
|
Dme({
|
|
41546
|
-
isDisabled: !G || Q || !g ||
|
|
41546
|
+
isDisabled: !G || Q || !g || be || !V || !D || !N
|
|
41547
41547
|
});
|
|
41548
41548
|
const { restorePositionSetting: Jn } = Ume({
|
|
41549
41549
|
isOpen: G,
|
|
@@ -42022,7 +42022,7 @@ const ks = p.forwardRef(
|
|
|
42022
42022
|
...i,
|
|
42023
42023
|
children: [
|
|
42024
42024
|
t,
|
|
42025
|
-
a && /* @__PURE__ */ l.jsx(hp, { className: "absolute top-3 right-4 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default", children: /* @__PURE__ */ l.jsx(
|
|
42025
|
+
a && /* @__PURE__ */ l.jsx(hp, { className: "absolute top-3 right-4 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default", children: /* @__PURE__ */ l.jsx(Ce, { name: "X", className: "h-5 w-5" }) })
|
|
42026
42026
|
]
|
|
42027
42027
|
}
|
|
42028
42028
|
) })
|
|
@@ -42102,7 +42102,7 @@ const Ms = p.forwardRef(
|
|
|
42102
42102
|
{
|
|
42103
42103
|
onClick: () => o == null ? void 0 : o(!1),
|
|
42104
42104
|
className: "absolute top-3 right-4 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default",
|
|
42105
|
-
children: /* @__PURE__ */ l.jsx(
|
|
42105
|
+
children: /* @__PURE__ */ l.jsx(Ce, { name: "X", className: "h-5 w-5" })
|
|
42106
42106
|
}
|
|
42107
42107
|
)
|
|
42108
42108
|
]
|
|
@@ -42403,7 +42403,7 @@ const lke = ({
|
|
|
42403
42403
|
content: i,
|
|
42404
42404
|
size: s
|
|
42405
42405
|
}) => {
|
|
42406
|
-
const c =
|
|
42406
|
+
const c = Le(null), f = () => {
|
|
42407
42407
|
c.current && c.current.click();
|
|
42408
42408
|
};
|
|
42409
42409
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -42486,7 +42486,7 @@ const lke = ({
|
|
|
42486
42486
|
}
|
|
42487
42487
|
)
|
|
42488
42488
|
), uke = ({ content: e }) => {
|
|
42489
|
-
const [t, a] = ve(0), n =
|
|
42489
|
+
const [t, a] = ve(0), n = Le(null);
|
|
42490
42490
|
return Ne(() => {
|
|
42491
42491
|
e && n.current ? a(n.current.scrollHeight) : a(0);
|
|
42492
42492
|
}, [e]), /* @__PURE__ */ l.jsx(
|
|
@@ -42622,7 +42622,7 @@ const lke = ({
|
|
|
42622
42622
|
/* @__PURE__ */ l.jsxs("span", { className: "inline-flex gap-2 items-center", children: [
|
|
42623
42623
|
i,
|
|
42624
42624
|
u && /* @__PURE__ */ l.jsx(
|
|
42625
|
-
|
|
42625
|
+
Ce,
|
|
42626
42626
|
{
|
|
42627
42627
|
name: "LoaderCircle",
|
|
42628
42628
|
size: "sm",
|
|
@@ -42733,7 +42733,7 @@ const mke = Lt(
|
|
|
42733
42733
|
{
|
|
42734
42734
|
ref: f,
|
|
42735
42735
|
className: "absolute right-4 top-3 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default",
|
|
42736
|
-
children: n && /* @__PURE__ */ l.jsx(
|
|
42736
|
+
children: n && /* @__PURE__ */ l.jsx(Ce, { name: "X", className: "h-5 w-5" })
|
|
42737
42737
|
}
|
|
42738
42738
|
),
|
|
42739
42739
|
i
|
|
@@ -42812,7 +42812,7 @@ const uxe = ({
|
|
|
42812
42812
|
hideCloseButton: n === "X",
|
|
42813
42813
|
children: [
|
|
42814
42814
|
a && /* @__PURE__ */ l.jsx(bp, { className: s, children: /* @__PURE__ */ l.jsxs(Lp, { className: "text-heading-sm inline-flex gap-2 items-center", children: [
|
|
42815
|
-
n && (n !== "X" ? /* @__PURE__ */ l.jsx(
|
|
42815
|
+
n && (n !== "X" ? /* @__PURE__ */ l.jsx(Ce, { name: n, size: "md" }) : /* @__PURE__ */ l.jsx(pke, { className: "rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default", children: /* @__PURE__ */ l.jsx(Ce, { name: n, size: "md" }) })),
|
|
42816
42816
|
a
|
|
42817
42817
|
] }) }),
|
|
42818
42818
|
o
|
|
@@ -43066,7 +43066,7 @@ const gxe = ({
|
|
|
43066
43066
|
"gap-2": !y.icon
|
|
43067
43067
|
}),
|
|
43068
43068
|
children: [
|
|
43069
|
-
y.icon === void 0 && y.avatar === void 0 ? null : y.icon ? /* @__PURE__ */ l.jsx(
|
|
43069
|
+
y.icon === void 0 && y.avatar === void 0 ? null : y.icon ? /* @__PURE__ */ l.jsx(Ce, { size: "sm", name: y.icon, className: "min-w-fit" }) : y.avatar ? /* @__PURE__ */ l.jsx(
|
|
43070
43070
|
zo,
|
|
43071
43071
|
{
|
|
43072
43072
|
size: "lg",
|
|
@@ -43152,7 +43152,7 @@ const vxe = ({
|
|
|
43152
43152
|
...s
|
|
43153
43153
|
}) => /* @__PURE__ */ l.jsxs(zp, { variant: a, className: o, ...s, children: [
|
|
43154
43154
|
/* @__PURE__ */ l.jsx(
|
|
43155
|
-
|
|
43155
|
+
Ce,
|
|
43156
43156
|
{
|
|
43157
43157
|
size: "md",
|
|
43158
43158
|
name: n,
|
|
@@ -60266,7 +60266,7 @@ function Pge(e) {
|
|
|
60266
60266
|
}
|
|
60267
60267
|
function ad(e, t) {
|
|
60268
60268
|
t === void 0 && (t = 0);
|
|
60269
|
-
var a = ve(e), n = a[0], o = a[1], i =
|
|
60269
|
+
var a = ve(e), n = a[0], o = a[1], i = Le(null);
|
|
60270
60270
|
function s(c) {
|
|
60271
60271
|
return new Promise(function(f) {
|
|
60272
60272
|
var d;
|
|
@@ -60284,7 +60284,7 @@ function Ege() {
|
|
|
60284
60284
|
};
|
|
60285
60285
|
}
|
|
60286
60286
|
function fy() {
|
|
60287
|
-
var e =
|
|
60287
|
+
var e = Le({}), t = zge();
|
|
60288
60288
|
return Ke(function() {
|
|
60289
60289
|
var a = parseFloat("" + t);
|
|
60290
60290
|
return !t || Number.isNaN(a) ? e.current : Vr.reduce(function(n, o) {
|
|
@@ -60308,7 +60308,7 @@ function Vge(e) {
|
|
|
60308
60308
|
}, [e]);
|
|
60309
60309
|
}
|
|
60310
60310
|
function Oge(e) {
|
|
60311
|
-
var t = e.children, a = fy(), n = Mge(), o = Tge(), i =
|
|
60311
|
+
var t = e.children, a = fy(), n = Mge(), o = Tge(), i = Le(ln), s = Le(!1), c = Le(!1), f = Le(a), d = ad(Date.now(), 200), u = ad("", 100), h = ve(!1), y = ve(n), m = ve(null), v = ve(/* @__PURE__ */ new Set()), k = ve(null), g = ve(o), M = ve(!1), w = M[0], x = M[1];
|
|
60312
60312
|
return Vge(x), P(jt.Provider, {
|
|
60313
60313
|
value: {
|
|
60314
60314
|
activeCategoryState: m,
|
|
@@ -60437,7 +60437,7 @@ function bn() {
|
|
|
60437
60437
|
return document.activeElement;
|
|
60438
60438
|
}
|
|
60439
60439
|
function Zge(e) {
|
|
60440
|
-
var t = e.children, a =
|
|
60440
|
+
var t = e.children, a = Le(null), n = Le(null), o = Le(null), i = Le(null), s = Le(null), c = Le(null), f = Le(null), d = Le(null);
|
|
60441
60441
|
return P(yy.Provider, {
|
|
60442
60442
|
value: {
|
|
60443
60443
|
AnchoredEmojiRef: n,
|
|
@@ -61412,7 +61412,7 @@ function Fy(e) {
|
|
|
61412
61412
|
return e.imgUrl !== void 0;
|
|
61413
61413
|
}
|
|
61414
61414
|
function Gy(e, t) {
|
|
61415
|
-
var a =
|
|
61415
|
+
var a = Le(), n = Cy(), o = qge(), i = Ra(), s = i[1], c = Q1(), f = _s(), d = f[0], u = bge(t), h = ly(), y = h[1], m = Y1(), v = W1(), k = Ve(function(x) {
|
|
61416
61416
|
if (!o.current) {
|
|
61417
61417
|
c();
|
|
61418
61418
|
var C = dd(x), L = C[0], N = C[1];
|
|
@@ -61886,7 +61886,7 @@ function nMe(e) {
|
|
|
61886
61886
|
})) : null;
|
|
61887
61887
|
}
|
|
61888
61888
|
function oMe() {
|
|
61889
|
-
var e = ry(), t =
|
|
61889
|
+
var e = ry(), t = Le(0);
|
|
61890
61890
|
return P("ul", {
|
|
61891
61891
|
className: pe(iMe.emojiList)
|
|
61892
61892
|
}, e.map(function(a) {
|
|
@@ -62836,7 +62836,7 @@ function WMe(e) {
|
|
|
62836
62836
|
}
|
|
62837
62837
|
const Mxe = Et(
|
|
62838
62838
|
({ handleEmojiClick: e, handleAvatarInput: t, onRemove: a, className: n, ...o }, i) => {
|
|
62839
|
-
const [s, c] = ve("emojiPicker"), f =
|
|
62839
|
+
const [s, c] = ve("emojiPicker"), f = Le(null), d = () => {
|
|
62840
62840
|
f.current && f.current.click();
|
|
62841
62841
|
};
|
|
62842
62842
|
return /* @__PURE__ */ l.jsx("div", { ref: i, className: n, ...o, children: /* @__PURE__ */ l.jsxs(
|
|
@@ -63129,7 +63129,7 @@ var Xa = '[cmdk-group=""]', F2 = '[cmdk-group-items=""]', owe = '[cmdk-group-hea
|
|
|
63129
63129
|
}
|
|
63130
63130
|
let Q = () => q(G().length - 1), me = (z) => {
|
|
63131
63131
|
z.preventDefault(), z.metaKey ? Q() : z.altKey ? B(1) : V(1);
|
|
63132
|
-
},
|
|
63132
|
+
}, be = (z) => {
|
|
63133
63133
|
z.preventDefault(), z.metaKey ? q(0) : z.altKey ? B(-1) : V(-1);
|
|
63134
63134
|
};
|
|
63135
63135
|
return p.createElement(Y.div, { ref: t, tabIndex: -1, ...M, "cmdk-root": "", onKeyDown: (z) => {
|
|
@@ -63148,11 +63148,11 @@ var Xa = '[cmdk-group=""]', F2 = '[cmdk-group-items=""]', owe = '[cmdk-group-hea
|
|
|
63148
63148
|
}
|
|
63149
63149
|
case "p":
|
|
63150
63150
|
case "k": {
|
|
63151
|
-
g && z.ctrlKey &&
|
|
63151
|
+
g && z.ctrlKey && be(z);
|
|
63152
63152
|
break;
|
|
63153
63153
|
}
|
|
63154
63154
|
case "ArrowUp": {
|
|
63155
|
-
|
|
63155
|
+
be(z);
|
|
63156
63156
|
break;
|
|
63157
63157
|
}
|
|
63158
63158
|
case "Home": {
|
|
@@ -63468,14 +63468,15 @@ const xwe = ({ duration: e, variant: t }) => {
|
|
|
63468
63468
|
));
|
|
63469
63469
|
d6.displayName = R3.displayName;
|
|
63470
63470
|
const bwe = Lt(
|
|
63471
|
-
"group pointer-events-auto relative flex w-full items-center justify-between
|
|
63471
|
+
"group pointer-events-auto relative flex w-full items-center justify-between overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80",
|
|
63472
63472
|
{
|
|
63473
63473
|
variants: {
|
|
63474
63474
|
variant: {
|
|
63475
|
-
default: "default group color-bg-default-inverse color-text-inverse dark:text-[#363B3F]",
|
|
63476
|
-
secondary: "secondary group color-bg-secondary color-text-default color-border-default",
|
|
63477
|
-
danger: "danger group color-bg-danger-light color-text-danger color-border-danger",
|
|
63478
|
-
success: "success group color-bg-success-light color-text-success color-border-default"
|
|
63475
|
+
default: "default group color-bg-default-inverse color-text-inverse dark:text-[#363B3F] space-x-4",
|
|
63476
|
+
secondary: "secondary group color-bg-secondary color-text-default color-border-default space-x-4",
|
|
63477
|
+
danger: "danger group color-bg-danger-light color-text-danger color-border-danger space-x-4",
|
|
63478
|
+
success: "success group color-bg-success-light color-text-success color-border-default space-x-4",
|
|
63479
|
+
mini: "toast-mini group color-bg-default-inverse color-text-inverse dark:text-[#363B3F] space-x-0"
|
|
63479
63480
|
},
|
|
63480
63481
|
position: {
|
|
63481
63482
|
"top-right": "data-[state=open]:slide-in-from-top-full data-[state=closed]:slide-out-to-right-full data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)]",
|
|
@@ -63490,24 +63491,41 @@ const bwe = Lt(
|
|
|
63490
63491
|
variant: "default"
|
|
63491
63492
|
}
|
|
63492
63493
|
}
|
|
63493
|
-
), l6 = p.forwardRef(
|
|
63494
|
-
|
|
63495
|
-
|
|
63496
|
-
|
|
63497
|
-
|
|
63498
|
-
|
|
63499
|
-
|
|
63500
|
-
|
|
63501
|
-
|
|
63502
|
-
|
|
63503
|
-
|
|
63504
|
-
|
|
63505
|
-
|
|
63506
|
-
|
|
63507
|
-
|
|
63508
|
-
|
|
63509
|
-
|
|
63510
|
-
)
|
|
63494
|
+
), l6 = p.forwardRef(
|
|
63495
|
+
({
|
|
63496
|
+
className: e,
|
|
63497
|
+
variant: t,
|
|
63498
|
+
position: a,
|
|
63499
|
+
duration: n,
|
|
63500
|
+
hasIcon: o = !1,
|
|
63501
|
+
customIcon: i,
|
|
63502
|
+
...s
|
|
63503
|
+
}, c) => /* @__PURE__ */ l.jsxs(
|
|
63504
|
+
H3,
|
|
63505
|
+
{
|
|
63506
|
+
ref: c,
|
|
63507
|
+
className: S(bwe({ variant: t, position: a }), e),
|
|
63508
|
+
...s,
|
|
63509
|
+
children: [
|
|
63510
|
+
o && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
63511
|
+
t === "danger" && /* @__PURE__ */ l.jsx(Ce, { name: "CircleX", className: "min-w-5 aspect-square" }),
|
|
63512
|
+
t === "success" && /* @__PURE__ */ l.jsx(Ce, { name: "CircleCheck", className: "min-w-5 aspect-square" }),
|
|
63513
|
+
t === "default" && /* @__PURE__ */ l.jsx(Ce, { name: "TriangleAlert", className: "min-w-5 aspect-square" }),
|
|
63514
|
+
t === "secondary" && /* @__PURE__ */ l.jsx(Ce, { name: "Info", className: "min-w-5 aspect-square" })
|
|
63515
|
+
] }),
|
|
63516
|
+
i && /* @__PURE__ */ l.jsx(Ce, { name: i, className: "w-4 aspect-square" }),
|
|
63517
|
+
s.children,
|
|
63518
|
+
t !== "mini" && /* @__PURE__ */ l.jsx(
|
|
63519
|
+
xwe,
|
|
63520
|
+
{
|
|
63521
|
+
duration: n || 3e3,
|
|
63522
|
+
variant: t || "default"
|
|
63523
|
+
}
|
|
63524
|
+
)
|
|
63525
|
+
]
|
|
63526
|
+
}
|
|
63527
|
+
)
|
|
63528
|
+
);
|
|
63511
63529
|
l6.displayName = H3.displayName;
|
|
63512
63530
|
const Lwe = p.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
63513
63531
|
q3,
|
|
@@ -63539,7 +63557,7 @@ const u6 = p.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
63539
63557
|
),
|
|
63540
63558
|
"toast-close": "",
|
|
63541
63559
|
...t,
|
|
63542
|
-
children: /* @__PURE__ */ l.jsx(
|
|
63560
|
+
children: /* @__PURE__ */ l.jsx(Ce, { name: "X", className: "w-4 h-4" })
|
|
63543
63561
|
}
|
|
63544
63562
|
));
|
|
63545
63563
|
u6.displayName = B3.displayName;
|
|
@@ -63682,24 +63700,28 @@ const Nxe = ({
|
|
|
63682
63700
|
action: c,
|
|
63683
63701
|
variant: f,
|
|
63684
63702
|
hasIcon: d,
|
|
63685
|
-
|
|
63703
|
+
customIcon: u,
|
|
63704
|
+
position: h,
|
|
63705
|
+
duration: y,
|
|
63706
|
+
...m
|
|
63686
63707
|
}) {
|
|
63687
63708
|
return /* @__PURE__ */ l.jsxs(
|
|
63688
63709
|
l6,
|
|
63689
63710
|
{
|
|
63690
|
-
...
|
|
63711
|
+
...m,
|
|
63691
63712
|
variant: f,
|
|
63692
|
-
position:
|
|
63713
|
+
position: h,
|
|
63693
63714
|
className: "justify-start relative",
|
|
63694
|
-
duration:
|
|
63715
|
+
duration: y,
|
|
63695
63716
|
hasIcon: d,
|
|
63717
|
+
customIcon: u,
|
|
63696
63718
|
children: [
|
|
63697
63719
|
/* @__PURE__ */ l.jsxs("div", { className: "grid gap-1 ", children: [
|
|
63698
63720
|
i && /* @__PURE__ */ l.jsx(h6, { children: i }),
|
|
63699
63721
|
s && /* @__PURE__ */ l.jsx(p6, { children: s })
|
|
63700
63722
|
] }),
|
|
63701
63723
|
c,
|
|
63702
|
-
/* @__PURE__ */ l.jsx(u6, {})
|
|
63724
|
+
f !== "mini" && /* @__PURE__ */ l.jsx(u6, {})
|
|
63703
63725
|
]
|
|
63704
63726
|
},
|
|
63705
63727
|
o
|
|
@@ -63730,7 +63752,7 @@ const Nxe = ({
|
|
|
63730
63752
|
}, Sxe = () => {
|
|
63731
63753
|
const { theme: e, toggleTheme: t } = zwe();
|
|
63732
63754
|
return /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
63733
|
-
/* @__PURE__ */ l.jsx(
|
|
63755
|
+
/* @__PURE__ */ l.jsx(Ce, { name: "Sun", size: "sm" }),
|
|
63734
63756
|
/* @__PURE__ */ l.jsx(
|
|
63735
63757
|
Yi,
|
|
63736
63758
|
{
|
|
@@ -63739,7 +63761,7 @@ const Nxe = ({
|
|
|
63739
63761
|
"aria-label": "Toggle theme"
|
|
63740
63762
|
}
|
|
63741
63763
|
),
|
|
63742
|
-
/* @__PURE__ */ l.jsx(
|
|
63764
|
+
/* @__PURE__ */ l.jsx(Ce, { name: "Moon", size: "sm" })
|
|
63743
63765
|
] });
|
|
63744
63766
|
}, m6 = ({
|
|
63745
63767
|
direction: e = "horizontal",
|
|
@@ -63777,7 +63799,7 @@ var Bi = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.CARD = "CARD", e))(Bi || {}
|
|
|
63777
63799
|
const Dwe = ({
|
|
63778
63800
|
delay: e = 2e3
|
|
63779
63801
|
}) => {
|
|
63780
|
-
const [t, a] = ve(!1), [n, o] = ve(!1), i =
|
|
63802
|
+
const [t, a] = ve(!1), [n, o] = ve(!1), i = Le(null), s = Ve(() => {
|
|
63781
63803
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
63782
63804
|
a(!0), o(!0);
|
|
63783
63805
|
}, e);
|
|
@@ -63880,7 +63902,7 @@ export {
|
|
|
63880
63902
|
ar as IconButton,
|
|
63881
63903
|
Z1 as Label,
|
|
63882
63904
|
Bi as LayoutModes,
|
|
63883
|
-
|
|
63905
|
+
Ce as LucideIcon,
|
|
63884
63906
|
Ls as Popover,
|
|
63885
63907
|
pxe as PopoverAnchor,
|
|
63886
63908
|
yxe as PopoverClose,
|