@qodo/design-system 0.20.17 → 0.20.18

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.d.ts CHANGED
@@ -79,12 +79,17 @@ export declare interface ActionItemType extends BaseMenuItemType, TypeGuard<"Act
79
79
  isHidden?: boolean;
80
80
  }
81
81
 
82
- export declare const ActionsCell: ({ menuItems, triggerElement: TriggerElement, triggerProps, className, size, asChild, side, modal, }: ActionsCellProps) => JSX_2.Element;
82
+ export declare const ActionsCell: ({ menuItems, triggerElement: TriggerElement, triggerProps, className, size, asChild, side, modal, showOnHover, }: ActionsCellProps) => JSX_2.Element;
83
83
 
84
84
  export declare type ActionsCellProps = OmittedDropdownProps & {
85
85
  triggerElement?: FunctionComponent<TriggerProps>;
86
86
  className?: string;
87
87
  triggerProps?: TriggerProps;
88
+ /**
89
+ * Whether to show the actions cell only on row hover
90
+ * @default true
91
+ */
92
+ showOnHover?: boolean;
88
93
  };
89
94
 
90
95
  export declare function Badge({ className, variant, size, disabled, active, ...props }: BadgeProps): JSX_2.Element;
@@ -365,7 +370,7 @@ export declare function DialogTitle({ className, ...props }: React_2.ComponentPr
365
370
 
366
371
  export declare function DialogTrigger({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>): JSX_2.Element;
367
372
 
368
- export declare const Dropdown: ({ menuItems, header, footer, triggerElement, size, asChild, side, modal, disabled, className, }: DropdownProps) => JSX_2.Element;
373
+ export declare const Dropdown: ({ menuItems, header, footer, triggerElement, size, asChild, side, modal, disabled, className, open, onOpenChange, }: DropdownProps) => JSX_2.Element;
369
374
 
370
375
  declare type DropdownMenuItem = (RadioGroupType | ActionItemType | CheckboxGroupType | SubMenuItemType | MenuLabelType | SeparatorType) & {
371
376
  isHidden?: boolean;
@@ -384,6 +389,8 @@ declare interface DropdownProps {
384
389
  modal?: boolean;
385
390
  disabled?: boolean;
386
391
  className?: string;
392
+ open?: boolean;
393
+ onOpenChange?: (open: boolean) => void;
387
394
  }
388
395
 
389
396
  export declare interface EmailChipProps {
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as d from "react";
2
- import B, { forwardRef as Ve, createElement as Bn, useLayoutEffect as Gl, useState as je, useRef as xe, useCallback as Ne, useEffect as ze, createContext as Ha, useContext as Ua, useMemo as Wn, memo as xg, isValidElement as bg, Children as yg, cloneElement as wg, useId as Cg } from "react";
2
+ import B, { forwardRef as Ve, createElement as Bn, useLayoutEffect as Gl, useState as Se, useRef as xe, useCallback as je, useEffect as ze, createContext as Ha, useContext as Ua, useMemo as Wn, memo as xg, isValidElement as bg, Children as yg, cloneElement as wg, useId as Cg } from "react";
3
3
  import * as io from "react-dom";
4
4
  import Sg, { flushSync as Ka } from "react-dom";
5
5
  const kk = {
@@ -995,7 +995,7 @@ const bi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, yi = ql, q
995
995
  return o(c, f), f;
996
996
  };
997
997
  return a = s, (...c) => a(Hg(...c));
998
- }, Kg = [], Ee = (e) => {
998
+ }, Kg = [], Ne = (e) => {
999
999
  const t = (r) => r[e] || Kg;
1000
1000
  return t.isThemeGetter = !0, t;
1001
1001
  }, Xl = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Yg = /^\d+\/\d+$/, Xg = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Jg = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Qg = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ev = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rr = (e) => Yg.test(e), ue = (e) => !!e && !Number.isNaN(Number(e)), ht = (e) => !!e && Number.isInteger(Number(e)), Qo = (e) => e.endsWith("%") && ue(e.slice(0, -1)), dt = (e) => Xg.test(e), tv = () => !0, rv = (e) => (
@@ -1010,7 +1010,7 @@ const bi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, yi = ql, q
1010
1010
  const n = Zl.exec(e);
1011
1011
  return n ? n[1] ? t(n[1]) : r : !1;
1012
1012
  }, Ql = (e) => e === "position" || e === "percentage", ec = (e) => e === "image" || e === "url", tc = (e) => e === "length" || e === "size" || e === "bg-size", rc = (e) => e === "length", dv = (e) => e === "number", fv = (e) => e === "family-name", nc = (e) => e === "shadow", pv = () => {
1013
- const e = Ee("color"), t = Ee("font"), r = Ee("text"), n = Ee("font-weight"), o = Ee("tracking"), a = Ee("leading"), s = Ee("breakpoint"), i = Ee("container"), c = Ee("spacing"), u = Ee("radius"), f = Ee("shadow"), p = Ee("inset-shadow"), m = Ee("text-shadow"), g = Ee("drop-shadow"), h = Ee("blur"), v = Ee("perspective"), x = Ee("aspect"), b = Ee("ease"), y = Ee("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
1013
+ const e = Ne("color"), t = Ne("font"), r = Ne("text"), n = Ne("font-weight"), o = Ne("tracking"), a = Ne("leading"), s = Ne("breakpoint"), i = Ne("container"), c = Ne("spacing"), u = Ne("radius"), f = Ne("shadow"), p = Ne("inset-shadow"), m = Ne("text-shadow"), g = Ne("drop-shadow"), h = Ne("blur"), v = Ne("perspective"), x = Ne("aspect"), b = Ne("ease"), y = Ne("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
1014
1014
  "center",
1015
1015
  "top",
1016
1016
  "bottom",
@@ -3564,7 +3564,7 @@ const yv = Ve(
3564
3564
  * This source code is licensed under the ISC license.
3565
3565
  * See the LICENSE file in the root directory of this source tree.
3566
3566
  */
3567
- const Se = (e, t) => {
3567
+ const Ee = (e, t) => {
3568
3568
  const r = Ve(
3569
3569
  ({ className: n, ...o }, a) => Bn(yv, {
3570
3570
  ref: a,
@@ -3590,42 +3590,42 @@ const wv = [
3590
3590
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
3591
3591
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
3592
3592
  ["path", { d: "M7 4v16", key: "1glfcx" }]
3593
- ], Cv = Se("arrow-up-down", wv);
3593
+ ], Cv = Ee("arrow-up-down", wv);
3594
3594
  /**
3595
3595
  * @license lucide-react v0.525.0 - ISC
3596
3596
  *
3597
3597
  * This source code is licensed under the ISC license.
3598
3598
  * See the LICENSE file in the root directory of this source tree.
3599
3599
  */
3600
- const Sv = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], br = Se("check", Sv);
3600
+ const Sv = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], br = Ee("check", Sv);
3601
3601
  /**
3602
3602
  * @license lucide-react v0.525.0 - ISC
3603
3603
  *
3604
3604
  * This source code is licensed under the ISC license.
3605
3605
  * See the LICENSE file in the root directory of this source tree.
3606
3606
  */
3607
- const Ev = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], lo = Se("chevron-down", Ev);
3607
+ const Ev = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], lo = Ee("chevron-down", Ev);
3608
3608
  /**
3609
3609
  * @license lucide-react v0.525.0 - ISC
3610
3610
  *
3611
3611
  * This source code is licensed under the ISC license.
3612
3612
  * See the LICENSE file in the root directory of this source tree.
3613
3613
  */
3614
- const Nv = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ac = Se("chevron-left", Nv);
3614
+ const Nv = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ac = Ee("chevron-left", Nv);
3615
3615
  /**
3616
3616
  * @license lucide-react v0.525.0 - ISC
3617
3617
  *
3618
3618
  * This source code is licensed under the ISC license.
3619
3619
  * See the LICENSE file in the root directory of this source tree.
3620
3620
  */
3621
- const jv = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Xa = Se("chevron-right", jv);
3621
+ const jv = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Xa = Ee("chevron-right", jv);
3622
3622
  /**
3623
3623
  * @license lucide-react v0.525.0 - ISC
3624
3624
  *
3625
3625
  * This source code is licensed under the ISC license.
3626
3626
  * See the LICENSE file in the root directory of this source tree.
3627
3627
  */
3628
- const Rv = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], kv = Se("chevron-up", Rv);
3628
+ const Rv = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], kv = Ee("chevron-up", Rv);
3629
3629
  /**
3630
3630
  * @license lucide-react v0.525.0 - ISC
3631
3631
  *
@@ -3635,14 +3635,14 @@ const Rv = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], kv = Se("chevron-
3635
3635
  const Pv = [
3636
3636
  ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
3637
3637
  ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
3638
- ], Tv = Se("chevrons-up-down", Pv);
3638
+ ], Tv = Ee("chevrons-up-down", Pv);
3639
3639
  /**
3640
3640
  * @license lucide-react v0.525.0 - ISC
3641
3641
  *
3642
3642
  * This source code is licensed under the ISC license.
3643
3643
  * See the LICENSE file in the root directory of this source tree.
3644
3644
  */
3645
- const Av = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Iv = Se("circle", Av);
3645
+ const Av = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Iv = Ee("circle", Av);
3646
3646
  /**
3647
3647
  * @license lucide-react v0.525.0 - ISC
3648
3648
  *
@@ -3653,7 +3653,7 @@ const _v = [
3653
3653
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
3654
3654
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
3655
3655
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
3656
- ], sc = Se("ellipsis", _v);
3656
+ ], sc = Ee("ellipsis", _v);
3657
3657
  /**
3658
3658
  * @license lucide-react v0.525.0 - ISC
3659
3659
  *
@@ -3664,7 +3664,7 @@ const Ov = [
3664
3664
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
3665
3665
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
3666
3666
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
3667
- ], Mv = Se("info", Ov);
3667
+ ], Mv = Ee("info", Ov);
3668
3668
  /**
3669
3669
  * @license lucide-react v0.525.0 - ISC
3670
3670
  *
@@ -3675,14 +3675,14 @@ const Dv = [
3675
3675
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
3676
3676
  ["path", { d: "M7 12h10", key: "b7w52i" }],
3677
3677
  ["path", { d: "M10 18h4", key: "1ulq68" }]
3678
- ], $v = Se("list-filter", Dv);
3678
+ ], $v = Ee("list-filter", Dv);
3679
3679
  /**
3680
3680
  * @license lucide-react v0.525.0 - ISC
3681
3681
  *
3682
3682
  * This source code is licensed under the ISC license.
3683
3683
  * See the LICENSE file in the root directory of this source tree.
3684
3684
  */
3685
- const Lv = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ic = Se("loader-circle", Lv);
3685
+ const Lv = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ic = Ee("loader-circle", Lv);
3686
3686
  /**
3687
3687
  * @license lucide-react v0.525.0 - ISC
3688
3688
  *
@@ -3692,14 +3692,14 @@ const Lv = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ic =
3692
3692
  const Fv = [
3693
3693
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
3694
3694
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
3695
- ], Vv = Se("mail", Fv);
3695
+ ], Vv = Ee("mail", Fv);
3696
3696
  /**
3697
3697
  * @license lucide-react v0.525.0 - ISC
3698
3698
  *
3699
3699
  * This source code is licensed under the ISC license.
3700
3700
  * See the LICENSE file in the root directory of this source tree.
3701
3701
  */
3702
- const Bv = [["path", { d: "M5 12h14", key: "1ays0h" }]], Wv = Se("minus", Bv);
3702
+ const Bv = [["path", { d: "M5 12h14", key: "1ays0h" }]], Wv = Ee("minus", Bv);
3703
3703
  /**
3704
3704
  * @license lucide-react v0.525.0 - ISC
3705
3705
  *
@@ -3709,7 +3709,7 @@ const Bv = [["path", { d: "M5 12h14", key: "1ays0h" }]], Wv = Se("minus", Bv);
3709
3709
  const Gv = [
3710
3710
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
3711
3711
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
3712
- ], lc = Se("search", Gv);
3712
+ ], lc = Ee("search", Gv);
3713
3713
  /**
3714
3714
  * @license lucide-react v0.525.0 - ISC
3715
3715
  *
@@ -3725,7 +3725,7 @@ const zv = [
3725
3725
  }
3726
3726
  ],
3727
3727
  ["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
3728
- ], qv = Se("tag", zv);
3728
+ ], qv = Ee("tag", zv);
3729
3729
  /**
3730
3730
  * @license lucide-react v0.525.0 - ISC
3731
3731
  *
@@ -3738,7 +3738,7 @@ const Hv = [
3738
3738
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
3739
3739
  ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
3740
3740
  ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
3741
- ], Uv = Se("trash-2", Hv);
3741
+ ], Uv = Ee("trash-2", Hv);
3742
3742
  /**
3743
3743
  * @license lucide-react v0.525.0 - ISC
3744
3744
  *
@@ -3749,7 +3749,7 @@ const Kv = [
3749
3749
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
3750
3750
  ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
3751
3751
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }]
3752
- ], Yv = Se("trash", Kv);
3752
+ ], Yv = Ee("trash", Kv);
3753
3753
  /**
3754
3754
  * @license lucide-react v0.525.0 - ISC
3755
3755
  *
@@ -3766,7 +3766,7 @@ const Xv = [
3766
3766
  ],
3767
3767
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3768
3768
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3769
- ], Zv = Se("triangle-alert", Xv);
3769
+ ], Zv = Ee("triangle-alert", Xv);
3770
3770
  /**
3771
3771
  * @license lucide-react v0.525.0 - ISC
3772
3772
  *
@@ -3776,7 +3776,7 @@ const Xv = [
3776
3776
  const Jv = [
3777
3777
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3778
3778
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3779
- ], co = Se("x", Jv);
3779
+ ], co = Ee("x", Jv);
3780
3780
  function K(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
3781
3781
  return function(o) {
3782
3782
  if (e == null || e(o), r === !1 || !o.defaultPrevented)
@@ -6615,7 +6615,7 @@ function ia(e, t) {
6615
6615
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
6616
6616
  }
6617
6617
  function Vb(e, t) {
6618
- var r = je(function() {
6618
+ var r = Se(function() {
6619
6619
  return {
6620
6620
  // value
6621
6621
  value: e,
@@ -12131,7 +12131,7 @@ function eo(e, t, r) {
12131
12131
  }
12132
12132
  eo.globalOptions = void 0;
12133
12133
  function Ds(e = {}, t = []) {
12134
- const r = xe(e), n = xe(t), [o, a] = je(), [s, i] = je(), c = Ne(() => {
12134
+ const r = xe(e), n = xe(t), [o, a] = Se(), [s, i] = Se(), c = je(() => {
12135
12135
  o && o.reInit(r.current, n.current);
12136
12136
  }, [o]);
12137
12137
  return ze(() => {
@@ -13538,7 +13538,7 @@ const v1 = B.forwardRef(
13538
13538
  onResetTags: w = () => {
13539
13539
  }
13540
13540
  }) => {
13541
- const [C, E] = je(""), [R, N] = je(!1), j = xe(null), D = xe(null), V = xe(null), [W, Q] = je();
13541
+ const [C, E] = Se(""), [R, N] = Se(!1), j = xe(null), D = xe(null), V = xe(null), [W, Q] = Se();
13542
13542
  ze(() => {
13543
13543
  D.current && Q(D.current.offsetWidth);
13544
13544
  }, []);
@@ -14295,7 +14295,7 @@ function aN({
14295
14295
  contentMaxWidth: R,
14296
14296
  ...N
14297
14297
  }) {
14298
- const [j, D] = je(0), [V, W] = je(!1), [Q, ee] = je(""), G = xe(null), O = a === vl.MULTIPLE, [I, M] = je(
14298
+ const [j, D] = Se(0), [V, W] = Se(!1), [Q, ee] = Se(""), G = xe(null), O = a === vl.MULTIPLE, [I, M] = Se(
14299
14299
  e !== void 0 ? e : O ? [] : ""
14300
14300
  ), P = YE(I), _ = new Set(P);
14301
14301
  ze(() => {
@@ -14759,7 +14759,7 @@ function ON(e) {
14759
14759
  }
14760
14760
  var MN = () => (e) => Array.from(new Set(e)), $p = typeof globalThis.document < "u" ? Gl : ze;
14761
14761
  function oo(e) {
14762
- const t = e().value ?? e().defaultValue, r = e().isEqual ?? Object.is, [n] = je(t), [o, a] = je(n), s = e().value !== void 0, i = xe(o);
14762
+ const t = e().value ?? e().defaultValue, r = e().isEqual ?? Object.is, [n] = Se(t), [o, a] = Se(n), s = e().value !== void 0, i = xe(o);
14763
14763
  i.current = s ? e().value : o;
14764
14764
  const c = xe(i.current);
14765
14765
  $p(() => {
@@ -16044,7 +16044,7 @@ const kj = ({
16044
16044
  table: e,
16045
16045
  isLoading: t = !1
16046
16046
  }) => {
16047
- const r = e.getPageCount(), n = e.getState().pagination.pageIndex + 1, [o, a] = je(r);
16047
+ const r = e.getPageCount(), n = e.getState().pagination.pageIndex + 1, [o, a] = Se(r);
16048
16048
  ze(() => {
16049
16049
  r >= 1 && a(r);
16050
16050
  }, [r]);
@@ -16072,7 +16072,7 @@ const kj = ({
16072
16072
  t && b
16073
16073
  )
16074
16074
  };
16075
- }, [n, r, t]), i = Ne(
16075
+ }, [n, r, t]), i = je(
16076
16076
  (g) => {
16077
16077
  if (t) return;
16078
16078
  const h = g - 1;
@@ -16082,11 +16082,11 @@ const kj = ({
16082
16082
  }));
16083
16083
  },
16084
16084
  [e, t]
16085
- ), c = Ne(() => {
16085
+ ), c = je(() => {
16086
16086
  t || n <= 1 || i(n - 1);
16087
- }, [n, i, t]), u = Ne(() => {
16087
+ }, [n, i, t]), u = je(() => {
16088
16088
  t || r <= 1 || n >= r || i(n + 1);
16089
- }, [r, n, i, t]), f = Ne(
16089
+ }, [r, n, i, t]), f = je(
16090
16090
  (g) => {
16091
16091
  if (g <= 1)
16092
16092
  return [];
@@ -16118,7 +16118,7 @@ const kj = ({
16118
16118
  return f(g);
16119
16119
  }
16120
16120
  return f(r);
16121
- }, [r, o, f]), m = Ne(
16121
+ }, [r, o, f]), m = je(
16122
16122
  (g, h) => g === "ellipsis" ? /* @__PURE__ */ l.jsx(Gr, { children: /* @__PURE__ */ l.jsx(om, {}) }, `ellipsis-${h}`) : /* @__PURE__ */ l.jsx(
16123
16123
  Gr,
16124
16124
  {
@@ -16180,7 +16180,7 @@ function Tj({
16180
16180
  threshold: o,
16181
16181
  findScrollableContainer: a
16182
16182
  }) {
16183
- const s = xe(null), [i, c] = je(!1), [u, f] = je(!0), p = xe(null), m = xe(!1), g = r !== void 0 ? r : u, h = Ne(async () => {
16183
+ const s = xe(null), [i, c] = Se(!1), [u, f] = Se(!0), p = xe(null), m = xe(!1), g = r !== void 0 ? r : u, h = je(async () => {
16184
16184
  if (!(!t || m.current || !g)) {
16185
16185
  m.current = !0, c(!0);
16186
16186
  try {
@@ -16259,7 +16259,7 @@ const Aj = 150, On = {
16259
16259
  className: y,
16260
16260
  ...w
16261
16261
  }) => {
16262
- const C = e.getVisibleFlatColumns().length, E = g === On.PAGINATION && e.options.manualPagination && e.options.onPaginationChange, R = e.getRowModel().rows.length === 0, N = e.getCoreRowModel().rows.length === 0 && !o, j = !o && (a || N || R), D = "hover:bg-transparent cursor-default", V = xe(null), W = Ne(() => V.current ? V.current.querySelector(
16262
+ const C = e.getVisibleFlatColumns().length, E = g === On.PAGINATION && e.options.manualPagination && e.options.onPaginationChange, R = e.getRowModel().rows.length === 0, N = e.getCoreRowModel().rows.length === 0 && !o, j = !o && (a || N || R), D = "hover:bg-transparent cursor-default", V = xe(null), W = je(() => V.current ? V.current.querySelector(
16263
16263
  "[data-table-scroll-container]"
16264
16264
  ) || V.current : null, []), { loadMoreRef: Q, hasMore: ee } = Tj({
16265
16265
  enabled: g === On.INFINITE_SCROLL,
@@ -16384,7 +16384,7 @@ const Aj = 150, On = {
16384
16384
  children: t,
16385
16385
  tooltipContent: r
16386
16386
  }) => {
16387
- const [n, o] = je(!1), a = e.getCanSort();
16387
+ const [n, o] = Se(!1), a = e.getCanSort();
16388
16388
  let s = t;
16389
16389
  return r && (s = /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1", children: [
16390
16390
  /* @__PURE__ */ l.jsx("span", { children: t }),
@@ -17512,9 +17512,11 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17512
17512
  side: s = "bottom",
17513
17513
  modal: i = !1,
17514
17514
  disabled: c = !1,
17515
- className: u = ""
17515
+ className: u = "",
17516
+ open: f,
17517
+ onOpenChange: p
17516
17518
  }) => {
17517
- const f = gv(
17519
+ const m = gv(
17518
17520
  ck,
17519
17521
  {
17520
17522
  [o]: o,
@@ -17522,7 +17524,7 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17522
17524
  },
17523
17525
  !1
17524
17526
  );
17525
- return /* @__PURE__ */ l.jsx("div", { className: k("qodo qodo-dropdown"), children: /* @__PURE__ */ l.jsxs(YR, { modal: i, children: [
17527
+ return /* @__PURE__ */ l.jsx("div", { className: k("qodo qodo-dropdown"), children: /* @__PURE__ */ l.jsxs(YR, { modal: i, open: f, onOpenChange: p, children: [
17526
17528
  /* @__PURE__ */ l.jsx(
17527
17529
  XR,
17528
17530
  {
@@ -17537,10 +17539,10 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17537
17539
  {
17538
17540
  side: s,
17539
17541
  align: "end",
17540
- className: f,
17542
+ className: m,
17541
17543
  children: [
17542
17544
  /* @__PURE__ */ l.jsx(dk, { header: t }),
17543
- e.filter((p) => !p.isHidden).map((p, m) => cg(p, m)),
17545
+ e.filter((g) => !g.isHidden).map((g, h) => cg(g, h)),
17544
17546
  /* @__PURE__ */ l.jsx(fk, { footer: r })
17545
17547
  ]
17546
17548
  }
@@ -17554,9 +17556,9 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17554
17556
  Ze,
17555
17557
  {
17556
17558
  variant: "ghost",
17557
- size: "icon",
17559
+ size: "icon-sm",
17558
17560
  "aria-label": e,
17559
- className: k("flex items-center justify-center h-4 w-4", t),
17561
+ className: k("flex items-center justify-center", t),
17560
17562
  ...r,
17561
17563
  children: /* @__PURE__ */ l.jsx(sc, { className: "h-4 w-4" })
17562
17564
  }
@@ -17568,28 +17570,47 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17568
17570
  size: o = "s",
17569
17571
  asChild: a = !1,
17570
17572
  side: s = "bottom",
17571
- modal: i = !1
17572
- }) => /* @__PURE__ */ l.jsx("div", { className: n, onClick: (c) => c.stopPropagation(), children: /* @__PURE__ */ l.jsx(
17573
- pk,
17574
- {
17575
- triggerElement: /* @__PURE__ */ l.jsx(
17576
- t,
17577
- {
17578
- className: k(
17579
- "flex items-center justify-center",
17580
- r == null ? void 0 : r.className
17581
- ),
17582
- ...r
17583
- }
17584
- ),
17585
- menuItems: e,
17586
- size: o,
17587
- asChild: a,
17588
- side: s,
17589
- modal: i,
17590
- disabled: r == null ? void 0 : r.disabled
17591
- }
17592
- ) }), gk = {
17573
+ modal: i = !1,
17574
+ showOnHover: c = !0
17575
+ }) => {
17576
+ const [u, f] = Se(!1);
17577
+ return /* @__PURE__ */ l.jsx(
17578
+ "div",
17579
+ {
17580
+ className: k(
17581
+ "flex justify-end",
17582
+ {
17583
+ "opacity-0 group-hover:opacity-100 transition-opacity": c && !u,
17584
+ "opacity-100": c && u
17585
+ },
17586
+ n
17587
+ ),
17588
+ onClick: (p) => p.stopPropagation(),
17589
+ children: /* @__PURE__ */ l.jsx(
17590
+ pk,
17591
+ {
17592
+ triggerElement: /* @__PURE__ */ l.jsx(
17593
+ t,
17594
+ {
17595
+ className: k(
17596
+ "flex items-center justify-center",
17597
+ r == null ? void 0 : r.className
17598
+ ),
17599
+ ...r
17600
+ }
17601
+ ),
17602
+ menuItems: e,
17603
+ size: o,
17604
+ asChild: a,
17605
+ side: s,
17606
+ modal: i,
17607
+ disabled: r == null ? void 0 : r.disabled,
17608
+ onOpenChange: f
17609
+ }
17610
+ )
17611
+ }
17612
+ );
17613
+ }, gk = {
17593
17614
  // Password Manager Blocking (all valid data attributes)
17594
17615
  "data-lpignore": "true",
17595
17616
  "data-1p-ignore": "true",
@@ -17668,17 +17689,17 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17668
17689
  },
17669
17690
  organization: t
17670
17691
  }) => {
17671
- const [r, n] = je([]), o = Ne(
17692
+ const [r, n] = Se([]), o = je(
17672
17693
  (u) => {
17673
17694
  e(u);
17674
17695
  },
17675
17696
  [e]
17676
- ), a = Ne(
17697
+ ), a = je(
17677
17698
  (u) => {
17678
17699
  n(u), o(u);
17679
17700
  },
17680
17701
  [o]
17681
- ), s = Ne(
17702
+ ), s = je(
17682
17703
  (u) => {
17683
17704
  const f = xk(u);
17684
17705
  if (f.length === 0)
@@ -17687,9 +17708,9 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17687
17708
  a(p);
17688
17709
  },
17689
17710
  [r, a, t]
17690
- ), i = Ne(() => {
17711
+ ), i = je(() => {
17691
17712
  a([]);
17692
- }, [a]), c = Ne(
17713
+ }, [a]), c = je(
17693
17714
  (u) => {
17694
17715
  const f = r.filter(
17695
17716
  (p) => p.email !== u
@@ -17857,7 +17878,7 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17857
17878
  invalidEmailError: c = "Invalid email",
17858
17879
  invalidDomainError: u = "Email domain is not allowed"
17859
17880
  }) => {
17860
- const f = xe(null), p = xe(null), [m, g] = je(""), [h, v] = je(!1), { emails: x, setEmails: b, addTokens: y, removeToken: w, clearAll: C, notify: E } = Ck({ onChange: e, organization: o }), R = Sk({
17881
+ const f = xe(null), p = xe(null), [m, g] = Se(""), [h, v] = Se(!1), { emails: x, setEmails: b, addTokens: y, removeToken: w, clearAll: C, notify: E } = Ck({ onChange: e, organization: o }), R = Sk({
17861
17882
  draft: m,
17862
17883
  setDraft: g,
17863
17884
  addTokens: y,
@@ -17871,25 +17892,25 @@ const tk = ({ radioItem: e }) => /* @__PURE__ */ l.jsxs(
17871
17892
  var J;
17872
17893
  const U = ((J = o == null ? void 0 : o.domains) == null ? void 0 : J[0]) || "example.com";
17873
17894
  return r({ domain: U });
17874
- }, j = Ne(
17895
+ }, j = je(
17875
17896
  (U) => {
17876
17897
  g(U.target.value);
17877
17898
  },
17878
17899
  []
17879
- ), D = Ne(() => {
17900
+ ), D = je(() => {
17880
17901
  m.trim() && (y(m), g("")), v(!1);
17881
- }, [m, y]), V = Ne(
17902
+ }, [m, y]), V = je(
17882
17903
  (U) => {
17883
17904
  const J = U.clipboardData.getData("text");
17884
17905
  J && (U.preventDefault(), y(J), g(""));
17885
17906
  },
17886
17907
  [y]
17887
- ), W = Ne(() => {
17908
+ ), W = je(() => {
17888
17909
  var U;
17889
17910
  (U = p.current) == null || U.focus();
17890
- }, [p]), Q = Ne(() => {
17911
+ }, [p]), Q = je(() => {
17891
17912
  v(!1);
17892
- }, []), ee = Ne(
17913
+ }, []), ee = je(
17893
17914
  (U) => {
17894
17915
  var T;
17895
17916
  const J = U.relatedTarget;