@fileverse/ui 4.1.6-patch-4 → 4.1.6-patch-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +22 -0
- package/dist/index.es.d.ts +4 -2
- package/dist/index.es.js +138 -109
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1450,6 +1450,10 @@ video {
|
|
|
1450
1450
|
.\!w-\[95\%\] {
|
|
1451
1451
|
width: 95% !important;
|
|
1452
1452
|
}
|
|
1453
|
+
.\!w-fit {
|
|
1454
|
+
width: -moz-fit-content !important;
|
|
1455
|
+
width: fit-content !important;
|
|
1456
|
+
}
|
|
1453
1457
|
.\!w-full {
|
|
1454
1458
|
width: 100% !important;
|
|
1455
1459
|
}
|
|
@@ -1869,6 +1873,9 @@ video {
|
|
|
1869
1873
|
.\!gap-1 {
|
|
1870
1874
|
gap: 0.25rem !important;
|
|
1871
1875
|
}
|
|
1876
|
+
.\!gap-2 {
|
|
1877
|
+
gap: 0.5rem !important;
|
|
1878
|
+
}
|
|
1872
1879
|
.gap-1 {
|
|
1873
1880
|
gap: 0.25rem;
|
|
1874
1881
|
}
|
|
@@ -1896,6 +1903,11 @@ video {
|
|
|
1896
1903
|
.gap-8 {
|
|
1897
1904
|
gap: 2rem;
|
|
1898
1905
|
}
|
|
1906
|
+
.\!space-x-0 > :not([hidden]) ~ :not([hidden]) {
|
|
1907
|
+
--tw-space-x-reverse: 0 !important;
|
|
1908
|
+
margin-right: calc(0px * var(--tw-space-x-reverse)) !important;
|
|
1909
|
+
margin-left: calc(0px * calc(1 - var(--tw-space-x-reverse))) !important;
|
|
1910
|
+
}
|
|
1899
1911
|
.-space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1900
1912
|
--tw-space-x-reverse: 0;
|
|
1901
1913
|
margin-right: calc(-0.25rem * var(--tw-space-x-reverse));
|
|
@@ -1985,6 +1997,9 @@ video {
|
|
|
1985
1997
|
.\!rounded {
|
|
1986
1998
|
border-radius: 0.25rem !important;
|
|
1987
1999
|
}
|
|
2000
|
+
.\!rounded-\[8px\] {
|
|
2001
|
+
border-radius: 8px !important;
|
|
2002
|
+
}
|
|
1988
2003
|
.\!rounded-lg {
|
|
1989
2004
|
border-radius: var(--radius) !important;
|
|
1990
2005
|
}
|
|
@@ -2127,6 +2142,9 @@ video {
|
|
|
2127
2142
|
-o-object-fit: cover;
|
|
2128
2143
|
object-fit: cover;
|
|
2129
2144
|
}
|
|
2145
|
+
.\!p-3 {
|
|
2146
|
+
padding: 0.75rem !important;
|
|
2147
|
+
}
|
|
2130
2148
|
.p-0 {
|
|
2131
2149
|
padding: 0px;
|
|
2132
2150
|
}
|
|
@@ -2418,6 +2436,10 @@ video {
|
|
|
2418
2436
|
.ring-offset-white {
|
|
2419
2437
|
--tw-ring-offset-color: #fff;
|
|
2420
2438
|
}
|
|
2439
|
+
.blur {
|
|
2440
|
+
--tw-blur: blur(8px);
|
|
2441
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2442
|
+
}
|
|
2421
2443
|
.drop-shadow {
|
|
2422
2444
|
--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
|
|
2423
2445
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
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): {
|
|
@@ -871,11 +872,12 @@ export declare const ToastClose: React_2.ForwardRefExoticComponent<Omit<ToastPri
|
|
|
871
872
|
|
|
872
873
|
export declare const ToastDescription: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
873
874
|
|
|
874
|
-
export declare const Toaster: ({ position, duration, }: ToasterProps) => JSX_2.Element;
|
|
875
|
+
export declare const Toaster: ({ position, duration, customIcon, }: ToasterProps) => JSX_2.Element;
|
|
875
876
|
|
|
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(() => {
|
|
@@ -35348,7 +35348,16 @@ const w5e = (e, t) => m0(e) ? new M5e(t) : new v5e(t, {
|
|
|
35348
35348
|
return h && u === "start" ? "[&>span]:!left-[10%]" : y && u === "start" ? "[&>span]:!top-[20%]" : h && u === "end" ? "[&>span]:!left-[80%]" : y && u === "end" ? "[&>span]:!top-[60%]" : y && u === "center" ? "my-0 -mx-1" : "-my-1";
|
|
35349
35349
|
};
|
|
35350
35350
|
return /* @__PURE__ */ l.jsx(C5e, { children: /* @__PURE__ */ l.jsxs(b5e, { children: [
|
|
35351
|
-
/* @__PURE__ */ l.jsx(
|
|
35351
|
+
/* @__PURE__ */ l.jsx(
|
|
35352
|
+
L5e,
|
|
35353
|
+
{
|
|
35354
|
+
"data-testid": "tooltip-trigger",
|
|
35355
|
+
onClick: (d) => {
|
|
35356
|
+
d.currentTarget.blur();
|
|
35357
|
+
},
|
|
35358
|
+
children: e
|
|
35359
|
+
}
|
|
35360
|
+
),
|
|
35352
35361
|
/* @__PURE__ */ l.jsx(N5e, { children: /* @__PURE__ */ l.jsx(
|
|
35353
35362
|
R1.div,
|
|
35354
35363
|
{
|
|
@@ -35414,7 +35423,7 @@ const T5e = Lt(
|
|
|
35414
35423
|
ref: o,
|
|
35415
35424
|
children: [
|
|
35416
35425
|
n.icon && /* @__PURE__ */ l.jsx(
|
|
35417
|
-
|
|
35426
|
+
Ce,
|
|
35418
35427
|
{
|
|
35419
35428
|
name: n.icon,
|
|
35420
35429
|
size: "sm",
|
|
@@ -35449,7 +35458,7 @@ const Zwe = ({
|
|
|
35449
35458
|
onAddTag: a,
|
|
35450
35459
|
isPreviewMode: n
|
|
35451
35460
|
}) => {
|
|
35452
|
-
const [o, i] = ve(""), [s, c] = ve(!1), f =
|
|
35461
|
+
const [o, i] = ve(""), [s, c] = ve(!1), f = Le(null), d = (m) => {
|
|
35453
35462
|
i(m), c(!0);
|
|
35454
35463
|
}, u = (m) => {
|
|
35455
35464
|
const v = e.find(
|
|
@@ -35476,7 +35485,7 @@ const Zwe = ({
|
|
|
35476
35485
|
variant: "ghost",
|
|
35477
35486
|
className: "min-w-fit !h-6 px-2",
|
|
35478
35487
|
children: [
|
|
35479
|
-
/* @__PURE__ */ l.jsx(
|
|
35488
|
+
/* @__PURE__ */ l.jsx(Ce, { name: "Plus", size: "sm", className: "mr-1 text-[#77818A]" }),
|
|
35480
35489
|
/* @__PURE__ */ l.jsx("span", { className: "text-[#77818A] text-helper-text-sm", children: "Add Tag" })
|
|
35481
35490
|
]
|
|
35482
35491
|
}
|
|
@@ -39321,7 +39330,7 @@ var It = 10, [Qh, w1] = Pa(q1), i7e = "SelectContentImpl", Jh = p.forwardRef(
|
|
|
39321
39330
|
window.removeEventListener("blur", O), window.removeEventListener("resize", O);
|
|
39322
39331
|
};
|
|
39323
39332
|
}, [B]);
|
|
39324
|
-
const [me,
|
|
39333
|
+
const [me, be] = y3((O) => {
|
|
39325
39334
|
const X = R().filter((fe) => !fe.disabled), re = X.find((fe) => fe.ref.current === document.activeElement), ie = m3(X, O, re);
|
|
39326
39335
|
ie && setTimeout(() => ie.ref.current.focus());
|
|
39327
39336
|
}), z = p.useCallback(
|
|
@@ -39407,7 +39416,7 @@ var It = 10, [Qh, w1] = Pa(q1), i7e = "SelectContentImpl", Jh = p.forwardRef(
|
|
|
39407
39416
|
},
|
|
39408
39417
|
onKeyDown: F(M.onKeyDown, (O) => {
|
|
39409
39418
|
const X = O.ctrlKey || O.altKey || O.metaKey;
|
|
39410
|
-
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)) {
|
|
39411
39420
|
let ie = R().filter((fe) => !fe.disabled).map((fe) => fe.ref.current);
|
|
39412
39421
|
if (["ArrowUp", "End"].includes(O.key) && (ie = ie.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(O.key)) {
|
|
39413
39422
|
const fe = O.target, ke = ie.indexOf(fe);
|
|
@@ -39449,7 +39458,7 @@ var s7e = "SelectItemAlignedPosition", Kh = p.forwardRef((e, t) => {
|
|
|
39449
39458
|
]);
|
|
39450
39459
|
c.style.minWidth = J + "px", c.style.right = gt + "px";
|
|
39451
39460
|
}
|
|
39452
|
-
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;
|
|
39453
39462
|
if (X <= K) {
|
|
39454
39463
|
const fe = Z.length > 0 && g === Z[Z.length - 1].ref.current;
|
|
39455
39464
|
c.style.bottom = "0px";
|
|
@@ -40150,7 +40159,7 @@ var [z7e, D7e] = b3(Pr, {
|
|
|
40150
40159
|
}),
|
|
40151
40160
|
onPointerMove: F(e.onPointerMove, (T) => {
|
|
40152
40161
|
if (!x.current) return;
|
|
40153
|
-
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 };
|
|
40154
40163
|
V ? (C.current = W, uo(S7e, h, K, {
|
|
40155
40164
|
discrete: !1
|
|
40156
40165
|
})) : Zf(W, k.swipeDirection, z) ? (C.current = W, uo(A7e, u, K, {
|
|
@@ -40501,9 +40510,9 @@ const ep = p.forwardRef((e, t) => {
|
|
|
40501
40510
|
ep.displayName = "Grid";
|
|
40502
40511
|
const lme = I.forwardRef(({ children: e, size: t, liked: a, onLike: n, onClick: o, ...i }, s) => {
|
|
40503
40512
|
const c = [
|
|
40504
|
-
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
40513
|
+
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(Ce, { name: "Share", size: "md" }) }),
|
|
40505
40514
|
/* @__PURE__ */ l.jsx("div", { onClick: n, children: /* @__PURE__ */ l.jsx(
|
|
40506
|
-
|
|
40515
|
+
Ce,
|
|
40507
40516
|
{
|
|
40508
40517
|
name: "Heart",
|
|
40509
40518
|
size: "md",
|
|
@@ -40588,9 +40597,9 @@ const ho = {
|
|
|
40588
40597
|
(m) => ho[m] === e
|
|
40589
40598
|
)
|
|
40590
40599
|
), y = [
|
|
40591
|
-
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
40592
|
-
/* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(
|
|
40593
|
-
/* @__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" }) })
|
|
40594
40603
|
];
|
|
40595
40604
|
return Ne(() => {
|
|
40596
40605
|
d(ho[u]), o == null || o(ho[u]);
|
|
@@ -40820,7 +40829,7 @@ const txe = (e) => /* @__PURE__ */ l.jsx(Y3, { children: /* @__PURE__ */ l.jsx(e
|
|
|
40820
40829
|
"data-testid": "list-mode-button",
|
|
40821
40830
|
className: "color-text-default",
|
|
40822
40831
|
children: /* @__PURE__ */ l.jsx(
|
|
40823
|
-
|
|
40832
|
+
Ce,
|
|
40824
40833
|
{
|
|
40825
40834
|
fill: "none",
|
|
40826
40835
|
name: "List",
|
|
@@ -40836,7 +40845,7 @@ const txe = (e) => /* @__PURE__ */ l.jsx(Y3, { children: /* @__PURE__ */ l.jsx(e
|
|
|
40836
40845
|
"data-testid": "card-mode-button",
|
|
40837
40846
|
className: "color-text-default",
|
|
40838
40847
|
children: /* @__PURE__ */ l.jsx(
|
|
40839
|
-
|
|
40848
|
+
Ce,
|
|
40840
40849
|
{
|
|
40841
40850
|
fill: "none",
|
|
40842
40851
|
name: "LayoutGrid",
|
|
@@ -41519,7 +41528,7 @@ function Wme({ open: e, onOpenChange: t, children: a, onDrag: n, onRelease: o, s
|
|
|
41519
41528
|
document.body.style.pointerEvents = "auto";
|
|
41520
41529
|
}), ee || (document.body.style.pointerEvents = "auto");
|
|
41521
41530
|
}
|
|
41522
|
-
}), [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) => {
|
|
41523
41532
|
i && ee === L1.length - 1 && (K.current = /* @__PURE__ */ new Date());
|
|
41524
41533
|
}, []), { activeSnapPoint: At, activeSnapPointIndex: a1, setActiveSnapPoint: Yn, onRelease: Ha, snapPointsOffset: L1, onDrag: Jr, shouldFade: Va, getPercentageDragged: Qn } = Fme({
|
|
41525
41534
|
snapPoints: i,
|
|
@@ -41534,7 +41543,7 @@ function Wme({ open: e, onOpenChange: t, children: a, onDrag: n, onRelease: o, s
|
|
|
41534
41543
|
snapToSequentialPoint: j
|
|
41535
41544
|
});
|
|
41536
41545
|
Dme({
|
|
41537
|
-
isDisabled: !G || Q || !g ||
|
|
41546
|
+
isDisabled: !G || Q || !g || be || !V || !D || !N
|
|
41538
41547
|
});
|
|
41539
41548
|
const { restorePositionSetting: Jn } = Ume({
|
|
41540
41549
|
isOpen: G,
|
|
@@ -42013,7 +42022,7 @@ const ks = p.forwardRef(
|
|
|
42013
42022
|
...i,
|
|
42014
42023
|
children: [
|
|
42015
42024
|
t,
|
|
42016
|
-
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" }) })
|
|
42017
42026
|
]
|
|
42018
42027
|
}
|
|
42019
42028
|
) })
|
|
@@ -42093,7 +42102,7 @@ const Ms = p.forwardRef(
|
|
|
42093
42102
|
{
|
|
42094
42103
|
onClick: () => o == null ? void 0 : o(!1),
|
|
42095
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",
|
|
42096
|
-
children: /* @__PURE__ */ l.jsx(
|
|
42105
|
+
children: /* @__PURE__ */ l.jsx(Ce, { name: "X", className: "h-5 w-5" })
|
|
42097
42106
|
}
|
|
42098
42107
|
)
|
|
42099
42108
|
]
|
|
@@ -42394,7 +42403,7 @@ const lke = ({
|
|
|
42394
42403
|
content: i,
|
|
42395
42404
|
size: s
|
|
42396
42405
|
}) => {
|
|
42397
|
-
const c =
|
|
42406
|
+
const c = Le(null), f = () => {
|
|
42398
42407
|
c.current && c.current.click();
|
|
42399
42408
|
};
|
|
42400
42409
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -42477,7 +42486,7 @@ const lke = ({
|
|
|
42477
42486
|
}
|
|
42478
42487
|
)
|
|
42479
42488
|
), uke = ({ content: e }) => {
|
|
42480
|
-
const [t, a] = ve(0), n =
|
|
42489
|
+
const [t, a] = ve(0), n = Le(null);
|
|
42481
42490
|
return Ne(() => {
|
|
42482
42491
|
e && n.current ? a(n.current.scrollHeight) : a(0);
|
|
42483
42492
|
}, [e]), /* @__PURE__ */ l.jsx(
|
|
@@ -42613,7 +42622,7 @@ const lke = ({
|
|
|
42613
42622
|
/* @__PURE__ */ l.jsxs("span", { className: "inline-flex gap-2 items-center", children: [
|
|
42614
42623
|
i,
|
|
42615
42624
|
u && /* @__PURE__ */ l.jsx(
|
|
42616
|
-
|
|
42625
|
+
Ce,
|
|
42617
42626
|
{
|
|
42618
42627
|
name: "LoaderCircle",
|
|
42619
42628
|
size: "sm",
|
|
@@ -42724,7 +42733,7 @@ const mke = Lt(
|
|
|
42724
42733
|
{
|
|
42725
42734
|
ref: f,
|
|
42726
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",
|
|
42727
|
-
children: n && /* @__PURE__ */ l.jsx(
|
|
42736
|
+
children: n && /* @__PURE__ */ l.jsx(Ce, { name: "X", className: "h-5 w-5" })
|
|
42728
42737
|
}
|
|
42729
42738
|
),
|
|
42730
42739
|
i
|
|
@@ -42803,7 +42812,7 @@ const uxe = ({
|
|
|
42803
42812
|
hideCloseButton: n === "X",
|
|
42804
42813
|
children: [
|
|
42805
42814
|
a && /* @__PURE__ */ l.jsx(bp, { className: s, children: /* @__PURE__ */ l.jsxs(Lp, { className: "text-heading-sm inline-flex gap-2 items-center", children: [
|
|
42806
|
-
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" }) })),
|
|
42807
42816
|
a
|
|
42808
42817
|
] }) }),
|
|
42809
42818
|
o
|
|
@@ -43057,7 +43066,7 @@ const gxe = ({
|
|
|
43057
43066
|
"gap-2": !y.icon
|
|
43058
43067
|
}),
|
|
43059
43068
|
children: [
|
|
43060
|
-
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(
|
|
43061
43070
|
zo,
|
|
43062
43071
|
{
|
|
43063
43072
|
size: "lg",
|
|
@@ -43143,7 +43152,7 @@ const vxe = ({
|
|
|
43143
43152
|
...s
|
|
43144
43153
|
}) => /* @__PURE__ */ l.jsxs(zp, { variant: a, className: o, ...s, children: [
|
|
43145
43154
|
/* @__PURE__ */ l.jsx(
|
|
43146
|
-
|
|
43155
|
+
Ce,
|
|
43147
43156
|
{
|
|
43148
43157
|
size: "md",
|
|
43149
43158
|
name: n,
|
|
@@ -60257,7 +60266,7 @@ function Pge(e) {
|
|
|
60257
60266
|
}
|
|
60258
60267
|
function ad(e, t) {
|
|
60259
60268
|
t === void 0 && (t = 0);
|
|
60260
|
-
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);
|
|
60261
60270
|
function s(c) {
|
|
60262
60271
|
return new Promise(function(f) {
|
|
60263
60272
|
var d;
|
|
@@ -60275,7 +60284,7 @@ function Ege() {
|
|
|
60275
60284
|
};
|
|
60276
60285
|
}
|
|
60277
60286
|
function fy() {
|
|
60278
|
-
var e =
|
|
60287
|
+
var e = Le({}), t = zge();
|
|
60279
60288
|
return Ke(function() {
|
|
60280
60289
|
var a = parseFloat("" + t);
|
|
60281
60290
|
return !t || Number.isNaN(a) ? e.current : Vr.reduce(function(n, o) {
|
|
@@ -60299,7 +60308,7 @@ function Vge(e) {
|
|
|
60299
60308
|
}, [e]);
|
|
60300
60309
|
}
|
|
60301
60310
|
function Oge(e) {
|
|
60302
|
-
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];
|
|
60303
60312
|
return Vge(x), P(jt.Provider, {
|
|
60304
60313
|
value: {
|
|
60305
60314
|
activeCategoryState: m,
|
|
@@ -60428,7 +60437,7 @@ function bn() {
|
|
|
60428
60437
|
return document.activeElement;
|
|
60429
60438
|
}
|
|
60430
60439
|
function Zge(e) {
|
|
60431
|
-
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);
|
|
60432
60441
|
return P(yy.Provider, {
|
|
60433
60442
|
value: {
|
|
60434
60443
|
AnchoredEmojiRef: n,
|
|
@@ -61403,7 +61412,7 @@ function Fy(e) {
|
|
|
61403
61412
|
return e.imgUrl !== void 0;
|
|
61404
61413
|
}
|
|
61405
61414
|
function Gy(e, t) {
|
|
61406
|
-
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) {
|
|
61407
61416
|
if (!o.current) {
|
|
61408
61417
|
c();
|
|
61409
61418
|
var C = dd(x), L = C[0], N = C[1];
|
|
@@ -61877,7 +61886,7 @@ function nMe(e) {
|
|
|
61877
61886
|
})) : null;
|
|
61878
61887
|
}
|
|
61879
61888
|
function oMe() {
|
|
61880
|
-
var e = ry(), t =
|
|
61889
|
+
var e = ry(), t = Le(0);
|
|
61881
61890
|
return P("ul", {
|
|
61882
61891
|
className: pe(iMe.emojiList)
|
|
61883
61892
|
}, e.map(function(a) {
|
|
@@ -62827,7 +62836,7 @@ function WMe(e) {
|
|
|
62827
62836
|
}
|
|
62828
62837
|
const Mxe = Et(
|
|
62829
62838
|
({ handleEmojiClick: e, handleAvatarInput: t, onRemove: a, className: n, ...o }, i) => {
|
|
62830
|
-
const [s, c] = ve("emojiPicker"), f =
|
|
62839
|
+
const [s, c] = ve("emojiPicker"), f = Le(null), d = () => {
|
|
62831
62840
|
f.current && f.current.click();
|
|
62832
62841
|
};
|
|
62833
62842
|
return /* @__PURE__ */ l.jsx("div", { ref: i, className: n, ...o, children: /* @__PURE__ */ l.jsxs(
|
|
@@ -63120,7 +63129,7 @@ var Xa = '[cmdk-group=""]', F2 = '[cmdk-group-items=""]', owe = '[cmdk-group-hea
|
|
|
63120
63129
|
}
|
|
63121
63130
|
let Q = () => q(G().length - 1), me = (z) => {
|
|
63122
63131
|
z.preventDefault(), z.metaKey ? Q() : z.altKey ? B(1) : V(1);
|
|
63123
|
-
},
|
|
63132
|
+
}, be = (z) => {
|
|
63124
63133
|
z.preventDefault(), z.metaKey ? q(0) : z.altKey ? B(-1) : V(-1);
|
|
63125
63134
|
};
|
|
63126
63135
|
return p.createElement(Y.div, { ref: t, tabIndex: -1, ...M, "cmdk-root": "", onKeyDown: (z) => {
|
|
@@ -63139,11 +63148,11 @@ var Xa = '[cmdk-group=""]', F2 = '[cmdk-group-items=""]', owe = '[cmdk-group-hea
|
|
|
63139
63148
|
}
|
|
63140
63149
|
case "p":
|
|
63141
63150
|
case "k": {
|
|
63142
|
-
g && z.ctrlKey &&
|
|
63151
|
+
g && z.ctrlKey && be(z);
|
|
63143
63152
|
break;
|
|
63144
63153
|
}
|
|
63145
63154
|
case "ArrowUp": {
|
|
63146
|
-
|
|
63155
|
+
be(z);
|
|
63147
63156
|
break;
|
|
63148
63157
|
}
|
|
63149
63158
|
case "Home": {
|
|
@@ -63450,7 +63459,7 @@ const xwe = ({ duration: e, variant: t }) => {
|
|
|
63450
63459
|
"bottom-0 right-0": t === "bottom-right",
|
|
63451
63460
|
"bottom-0 left-0": t === "bottom-left",
|
|
63452
63461
|
"top-0 left-1/2 -translate-x-1/2": t === "center-top",
|
|
63453
|
-
"bottom-0 left-1/2 -translate-x-1/2": t === "center-bottom"
|
|
63462
|
+
"bottom-0 left-1/2 -translate-x-1/2 items-center": t === "center-bottom"
|
|
63454
63463
|
},
|
|
63455
63464
|
e
|
|
63456
63465
|
),
|
|
@@ -63466,7 +63475,8 @@ const bwe = Lt(
|
|
|
63466
63475
|
default: "default group color-bg-default-inverse color-text-inverse dark:text-[#363B3F]",
|
|
63467
63476
|
secondary: "secondary group color-bg-secondary color-text-default color-border-default",
|
|
63468
63477
|
danger: "danger group color-bg-danger-light color-text-danger color-border-danger",
|
|
63469
|
-
success: "success group color-bg-success-light color-text-success color-border-default"
|
|
63478
|
+
success: "success group color-bg-success-light color-text-success color-border-default",
|
|
63479
|
+
mini: "default group color-bg-default-inverse color-text-inverse dark:text-[#363B3F] !p-3 !gap-2 !w-fit !space-x-0 !rounded-[8px]"
|
|
63470
63480
|
},
|
|
63471
63481
|
position: {
|
|
63472
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)]",
|
|
@@ -63481,24 +63491,41 @@ const bwe = Lt(
|
|
|
63481
63491
|
variant: "default"
|
|
63482
63492
|
}
|
|
63483
63493
|
}
|
|
63484
|
-
), l6 = p.forwardRef(
|
|
63485
|
-
|
|
63486
|
-
|
|
63487
|
-
|
|
63488
|
-
|
|
63489
|
-
|
|
63490
|
-
|
|
63491
|
-
|
|
63492
|
-
|
|
63493
|
-
|
|
63494
|
-
|
|
63495
|
-
|
|
63496
|
-
|
|
63497
|
-
|
|
63498
|
-
|
|
63499
|
-
|
|
63500
|
-
|
|
63501
|
-
)
|
|
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
|
+
);
|
|
63502
63529
|
l6.displayName = H3.displayName;
|
|
63503
63530
|
const Lwe = p.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
63504
63531
|
q3,
|
|
@@ -63530,7 +63557,7 @@ const u6 = p.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ l.jsx(
|
|
|
63530
63557
|
),
|
|
63531
63558
|
"toast-close": "",
|
|
63532
63559
|
...t,
|
|
63533
|
-
children: /* @__PURE__ */ l.jsx(
|
|
63560
|
+
children: /* @__PURE__ */ l.jsx(Ce, { name: "X", className: "w-4 h-4" })
|
|
63534
63561
|
}
|
|
63535
63562
|
));
|
|
63536
63563
|
u6.displayName = B3.displayName;
|
|
@@ -63645,9 +63672,10 @@ function Twe() {
|
|
|
63645
63672
|
}
|
|
63646
63673
|
const Nxe = ({
|
|
63647
63674
|
position: e = "top-right",
|
|
63648
|
-
duration: t = 5e3
|
|
63675
|
+
duration: t = 5e3,
|
|
63676
|
+
customIcon: a
|
|
63649
63677
|
}) => {
|
|
63650
|
-
const { toasts:
|
|
63678
|
+
const { toasts: n } = Twe(), o = Ke(() => {
|
|
63651
63679
|
switch (e) {
|
|
63652
63680
|
case "top-right":
|
|
63653
63681
|
return "right";
|
|
@@ -63665,35 +63693,36 @@ const Nxe = ({
|
|
|
63665
63693
|
return "right";
|
|
63666
63694
|
}
|
|
63667
63695
|
}, [e]);
|
|
63668
|
-
return /* @__PURE__ */ l.jsxs(Cwe, { swipeDirection:
|
|
63669
|
-
|
|
63670
|
-
id:
|
|
63671
|
-
title:
|
|
63672
|
-
description:
|
|
63673
|
-
action:
|
|
63674
|
-
variant:
|
|
63675
|
-
hasIcon:
|
|
63676
|
-
...
|
|
63696
|
+
return /* @__PURE__ */ l.jsxs(Cwe, { swipeDirection: o, duration: t, children: [
|
|
63697
|
+
n.map(function({
|
|
63698
|
+
id: i,
|
|
63699
|
+
title: s,
|
|
63700
|
+
description: c,
|
|
63701
|
+
action: f,
|
|
63702
|
+
variant: d,
|
|
63703
|
+
hasIcon: u,
|
|
63704
|
+
...h
|
|
63677
63705
|
}) {
|
|
63678
63706
|
return /* @__PURE__ */ l.jsxs(
|
|
63679
63707
|
l6,
|
|
63680
63708
|
{
|
|
63681
|
-
...
|
|
63682
|
-
variant:
|
|
63709
|
+
...h,
|
|
63710
|
+
variant: d,
|
|
63683
63711
|
position: e,
|
|
63684
63712
|
className: "justify-start relative",
|
|
63685
63713
|
duration: t,
|
|
63686
|
-
hasIcon:
|
|
63714
|
+
hasIcon: u,
|
|
63715
|
+
customIcon: a,
|
|
63687
63716
|
children: [
|
|
63688
63717
|
/* @__PURE__ */ l.jsxs("div", { className: "grid gap-1 ", children: [
|
|
63689
|
-
|
|
63690
|
-
|
|
63718
|
+
s && /* @__PURE__ */ l.jsx(h6, { children: s }),
|
|
63719
|
+
c && /* @__PURE__ */ l.jsx(p6, { children: c })
|
|
63691
63720
|
] }),
|
|
63692
|
-
|
|
63693
|
-
/* @__PURE__ */ l.jsx(u6, {})
|
|
63721
|
+
f,
|
|
63722
|
+
d !== "mini" && /* @__PURE__ */ l.jsx(u6, {})
|
|
63694
63723
|
]
|
|
63695
63724
|
},
|
|
63696
|
-
|
|
63725
|
+
i
|
|
63697
63726
|
);
|
|
63698
63727
|
}),
|
|
63699
63728
|
/* @__PURE__ */ l.jsx(d6, { position: e })
|
|
@@ -63721,7 +63750,7 @@ const Nxe = ({
|
|
|
63721
63750
|
}, Sxe = () => {
|
|
63722
63751
|
const { theme: e, toggleTheme: t } = zwe();
|
|
63723
63752
|
return /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
63724
|
-
/* @__PURE__ */ l.jsx(
|
|
63753
|
+
/* @__PURE__ */ l.jsx(Ce, { name: "Sun", size: "sm" }),
|
|
63725
63754
|
/* @__PURE__ */ l.jsx(
|
|
63726
63755
|
Yi,
|
|
63727
63756
|
{
|
|
@@ -63730,7 +63759,7 @@ const Nxe = ({
|
|
|
63730
63759
|
"aria-label": "Toggle theme"
|
|
63731
63760
|
}
|
|
63732
63761
|
),
|
|
63733
|
-
/* @__PURE__ */ l.jsx(
|
|
63762
|
+
/* @__PURE__ */ l.jsx(Ce, { name: "Moon", size: "sm" })
|
|
63734
63763
|
] });
|
|
63735
63764
|
}, m6 = ({
|
|
63736
63765
|
direction: e = "horizontal",
|
|
@@ -63768,7 +63797,7 @@ var Bi = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.CARD = "CARD", e))(Bi || {}
|
|
|
63768
63797
|
const Dwe = ({
|
|
63769
63798
|
delay: e = 2e3
|
|
63770
63799
|
}) => {
|
|
63771
|
-
const [t, a] = ve(!1), [n, o] = ve(!1), i =
|
|
63800
|
+
const [t, a] = ve(!1), [n, o] = ve(!1), i = Le(null), s = Ve(() => {
|
|
63772
63801
|
i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
63773
63802
|
a(!0), o(!0);
|
|
63774
63803
|
}, e);
|
|
@@ -63871,7 +63900,7 @@ export {
|
|
|
63871
63900
|
ar as IconButton,
|
|
63872
63901
|
Z1 as Label,
|
|
63873
63902
|
Bi as LayoutModes,
|
|
63874
|
-
|
|
63903
|
+
Ce as LucideIcon,
|
|
63875
63904
|
Ls as Popover,
|
|
63876
63905
|
pxe as PopoverAnchor,
|
|
63877
63906
|
yxe as PopoverClose,
|