@fileverse/ui 4.1.6-patch-5 → 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 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
  }
@@ -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 be, 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";
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, Ce, z;
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, Ce = console.groupCollapsed, z = console.groupEnd;
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: Ce
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"], Ce = () => [ua, oe];
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: Ce(),
885
+ brightness: be(),
886
886
  borderColor: [e],
887
887
  borderRadius: ["none", "", "full", r1, oe],
888
888
  borderSpacing: R(),
889
889
  borderWidth: _(),
890
- contrast: Ce(),
890
+ contrast: be(),
891
891
  grayscale: Q(),
892
- hueRotate: Ce(),
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: Ce(),
899
+ opacity: be(),
900
900
  padding: R(),
901
- saturate: Ce(),
902
- scale: Ce(),
901
+ saturate: be(),
902
+ scale: be(),
903
903
  sepia: Q(),
904
- skew: Ce(),
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: Ce()
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: Ce()
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
- }), Le = Et(
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
- Le.displayName = "LucideIcon";
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
- Le,
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
- Le,
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
- Le,
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
- Le,
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), Ce = ct(v);
29949
+ }), [Q, me] = ul(q), be = ct(v);
29950
29950
  We(() => {
29951
- V && (Ce == null || Ce());
29952
- }, [V, Ce]);
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 = be(null);
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 = be(null), o = be({
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 = be(!0), y = be(d), m = c0(() => /* @__PURE__ */ new Map()), [v, k] = ve(d), [g, M] = ve(d);
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 = be(null);
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 = be(!1);
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 = be(!!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)));
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
- Le,
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 = be(null), d = (m) => {
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(Le, { name: "Plus", size: "sm", className: "mr-1 text-[#77818A]" }),
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, Ce] = y3((O) => {
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 && Ce(O.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(O.key)) {
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), Ce = window.getComputedStyle(k), z = parseInt(Ce.paddingTop, 10), W = parseInt(Ce.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;
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, Ce = B ? 0 : Q(0, q), z = T.pointerType === "touch" ? 10 : 2, W = { x: me, y: Ce }, K = { originalEvent: T, delta: W };
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(Le, { name: "Share", size: "md" }) }),
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
- Le,
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(Le, { fill: "none", name: "Square", size: "sm" }) }),
40601
- /* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(Le, { fill: "none", name: "RectangleHorizontal" }) }),
40602
- /* @__PURE__ */ l.jsx("div", { children: /* @__PURE__ */ l.jsx(Le, { fill: "none", name: "Square", size: "md" }) })
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
- Le,
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
- Le,
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), [Ce, 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) => {
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 || Ce || !V || !D || !N
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(Le, { name: "X", className: "h-5 w-5" }) })
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(Le, { name: "X", className: "h-5 w-5" })
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 = be(null), f = () => {
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 = be(null);
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
- Le,
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(Le, { name: "X", className: "h-5 w-5" })
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(Le, { 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(Le, { name: n, size: "md" }) })),
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(Le, { size: "sm", name: y.icon, className: "min-w-fit" }) : y.avatar ? /* @__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
- Le,
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 = be(null);
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 = be({}), t = zge();
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 = be(ln), s = be(!1), c = be(!1), f = be(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];
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 = be(null), n = be(null), o = be(null), i = be(null), s = be(null), c = be(null), f = be(null), d = be(null);
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 = be(), 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) {
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 = be(0);
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 = be(null), d = () => {
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
- }, Ce = (z) => {
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 && Ce(z);
63151
+ g && z.ctrlKey && be(z);
63152
63152
  break;
63153
63153
  }
63154
63154
  case "ArrowUp": {
63155
- Ce(z);
63155
+ be(z);
63156
63156
  break;
63157
63157
  }
63158
63158
  case "Home": {
@@ -63459,7 +63459,7 @@ const xwe = ({ duration: e, variant: t }) => {
63459
63459
  "bottom-0 right-0": t === "bottom-right",
63460
63460
  "bottom-0 left-0": t === "bottom-left",
63461
63461
  "top-0 left-1/2 -translate-x-1/2": t === "center-top",
63462
- "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"
63463
63463
  },
63464
63464
  e
63465
63465
  ),
@@ -63475,7 +63475,8 @@ const bwe = Lt(
63475
63475
  default: "default group color-bg-default-inverse color-text-inverse dark:text-[#363B3F]",
63476
63476
  secondary: "secondary group color-bg-secondary color-text-default color-border-default",
63477
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"
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]"
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(({ className: e, variant: t, position: a, duration: n, hasIcon: o = !1, ...i }, s) => /* @__PURE__ */ l.jsxs(
63494
- H3,
63495
- {
63496
- ref: s,
63497
- className: S(bwe({ variant: t, position: a }), e),
63498
- ...i,
63499
- children: [
63500
- o && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
63501
- t === "danger" && /* @__PURE__ */ l.jsx(Le, { name: "CircleX", className: "min-w-5 aspect-square" }),
63502
- t === "success" && /* @__PURE__ */ l.jsx(Le, { name: "CircleCheck", className: "min-w-5 aspect-square" }),
63503
- t === "default" && /* @__PURE__ */ l.jsx(Le, { name: "TriangleAlert", className: "min-w-5 aspect-square" }),
63504
- t === "secondary" && /* @__PURE__ */ l.jsx(Le, { name: "Info", className: "min-w-5 aspect-square" })
63505
- ] }),
63506
- i.children,
63507
- /* @__PURE__ */ l.jsx(xwe, { duration: n || 3e3, variant: t || "default" })
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(Le, { name: "X", className: "w-4 h-4" })
63560
+ children: /* @__PURE__ */ l.jsx(Ce, { name: "X", className: "w-4 h-4" })
63543
63561
  }
63544
63562
  ));
63545
63563
  u6.displayName = B3.displayName;
@@ -63654,9 +63672,10 @@ function Twe() {
63654
63672
  }
63655
63673
  const Nxe = ({
63656
63674
  position: e = "top-right",
63657
- duration: t = 5e3
63675
+ duration: t = 5e3,
63676
+ customIcon: a
63658
63677
  }) => {
63659
- const { toasts: a } = Twe(), n = Ke(() => {
63678
+ const { toasts: n } = Twe(), o = Ke(() => {
63660
63679
  switch (e) {
63661
63680
  case "top-right":
63662
63681
  return "right";
@@ -63674,35 +63693,36 @@ const Nxe = ({
63674
63693
  return "right";
63675
63694
  }
63676
63695
  }, [e]);
63677
- return /* @__PURE__ */ l.jsxs(Cwe, { swipeDirection: n, duration: t, children: [
63678
- a.map(function({
63679
- id: o,
63680
- title: i,
63681
- description: s,
63682
- action: c,
63683
- variant: f,
63684
- hasIcon: d,
63685
- ...u
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
63686
63705
  }) {
63687
63706
  return /* @__PURE__ */ l.jsxs(
63688
63707
  l6,
63689
63708
  {
63690
- ...u,
63691
- variant: f,
63709
+ ...h,
63710
+ variant: d,
63692
63711
  position: e,
63693
63712
  className: "justify-start relative",
63694
63713
  duration: t,
63695
- hasIcon: d,
63714
+ hasIcon: u,
63715
+ customIcon: a,
63696
63716
  children: [
63697
63717
  /* @__PURE__ */ l.jsxs("div", { className: "grid gap-1 ", children: [
63698
- i && /* @__PURE__ */ l.jsx(h6, { children: i }),
63699
- s && /* @__PURE__ */ l.jsx(p6, { children: s })
63718
+ s && /* @__PURE__ */ l.jsx(h6, { children: s }),
63719
+ c && /* @__PURE__ */ l.jsx(p6, { children: c })
63700
63720
  ] }),
63701
- c,
63702
- /* @__PURE__ */ l.jsx(u6, {})
63721
+ f,
63722
+ d !== "mini" && /* @__PURE__ */ l.jsx(u6, {})
63703
63723
  ]
63704
63724
  },
63705
- o
63725
+ i
63706
63726
  );
63707
63727
  }),
63708
63728
  /* @__PURE__ */ l.jsx(d6, { position: e })
@@ -63730,7 +63750,7 @@ const Nxe = ({
63730
63750
  }, Sxe = () => {
63731
63751
  const { theme: e, toggleTheme: t } = zwe();
63732
63752
  return /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
63733
- /* @__PURE__ */ l.jsx(Le, { name: "Sun", size: "sm" }),
63753
+ /* @__PURE__ */ l.jsx(Ce, { name: "Sun", size: "sm" }),
63734
63754
  /* @__PURE__ */ l.jsx(
63735
63755
  Yi,
63736
63756
  {
@@ -63739,7 +63759,7 @@ const Nxe = ({
63739
63759
  "aria-label": "Toggle theme"
63740
63760
  }
63741
63761
  ),
63742
- /* @__PURE__ */ l.jsx(Le, { name: "Moon", size: "sm" })
63762
+ /* @__PURE__ */ l.jsx(Ce, { name: "Moon", size: "sm" })
63743
63763
  ] });
63744
63764
  }, m6 = ({
63745
63765
  direction: e = "horizontal",
@@ -63777,7 +63797,7 @@ var Bi = /* @__PURE__ */ ((e) => (e.LIST = "LIST", e.CARD = "CARD", e))(Bi || {}
63777
63797
  const Dwe = ({
63778
63798
  delay: e = 2e3
63779
63799
  }) => {
63780
- const [t, a] = ve(!1), [n, o] = ve(!1), i = be(null), s = Ve(() => {
63800
+ const [t, a] = ve(!1), [n, o] = ve(!1), i = Le(null), s = Ve(() => {
63781
63801
  i.current && clearTimeout(i.current), i.current = setTimeout(() => {
63782
63802
  a(!0), o(!0);
63783
63803
  }, e);
@@ -63880,7 +63900,7 @@ export {
63880
63900
  ar as IconButton,
63881
63901
  Z1 as Label,
63882
63902
  Bi as LayoutModes,
63883
- Le as LucideIcon,
63903
+ Ce as LucideIcon,
63884
63904
  Ls as Popover,
63885
63905
  pxe as PopoverAnchor,
63886
63906
  yxe as PopoverClose,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse/ui",
3
- "version": "4.1.6-patch-5",
3
+ "version": "4.1.6-patch-6",
4
4
  "files": [
5
5
  "/dist"
6
6
  ],