impact-nova 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +96 -120
  2. package/dist/components/data/data-table/data-table-saved-views.js +70 -79
  3. package/dist/components/data-display/badge/badge.variants.d.ts +2 -2
  4. package/dist/components/feedback/alert/alert.variants.d.ts +1 -1
  5. package/dist/components/feedback/tooltip/badge-overflow-tooltip.d.ts +19 -0
  6. package/dist/components/feedback/tooltip/badge-overflow-tooltip.js +48 -0
  7. package/dist/components/feedback/tooltip/index.d.ts +2 -0
  8. package/dist/components/feedback/tooltip/index.js +11 -9
  9. package/dist/components/feedback/tooltip/overflow-tooltip.js +73 -50
  10. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +5 -0
  11. package/dist/components/feedback/tooltip/tooltip.d.ts +2 -2
  12. package/dist/components/feedback/tooltip/tooltip.js +65 -28
  13. package/dist/components/feedback/tooltip/tooltip.variants.js +1 -1
  14. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +89 -35
  15. package/dist/components/flows/filter-panel/filter-panel.js +33 -29
  16. package/dist/components/flows/filter-strip/filter-summary.js +126 -137
  17. package/dist/components/flows/filter-strip/filter-tag-list.js +18 -18
  18. package/dist/components/forms/prompt/prompt.variants.d.ts +1 -1
  19. package/dist/components/forms/select/components/SelectMenuPanel.js +26 -22
  20. package/dist/components/forms/select/components/SelectOptionRow.js +67 -64
  21. package/dist/components/forms/select/components/Submenu.js +40 -35
  22. package/dist/components/forms/select/hooks/useSuppressOptionClickForTextSelection.d.ts +5 -0
  23. package/dist/components/forms/select/hooks/useSuppressOptionClickForTextSelection.js +28 -0
  24. package/dist/components/forms/select/select.js +121 -120
  25. package/dist/components/forms/select/utils/shouldSuppressOptionClickForTextSelection.d.ts +5 -0
  26. package/dist/components/forms/select/utils/shouldSuppressOptionClickForTextSelection.js +16 -0
  27. package/dist/components/primitives/tag/tag.variants.d.ts +1 -1
  28. package/dist/impact-nova.css +1 -1
  29. package/dist/index.js +153 -151
  30. package/dist/lib/overlay/prevent-dismiss-on-tooltip-outside.d.ts +3 -0
  31. package/dist/lib/overlay/prevent-dismiss-on-tooltip-outside.js +34 -0
  32. package/dist/lib/tooltip/tooltip-content-interaction.d.ts +4 -0
  33. package/dist/lib/tooltip/tooltip-content-interaction.js +21 -0
  34. package/dist/llms/rules/installation.js +1 -1
  35. package/dist/llms/rules/requirements.js +1 -1
  36. package/dist/providers/app-providers.js +18 -11
  37. package/package.json +1 -1
@@ -1,170 +1,146 @@
1
- import { jsx as a, jsxs as j } from "react/jsx-runtime";
2
- import { useMemo as R, useCallback as C, useState as H, useRef as I, useEffect as P } from "react";
1
+ import { jsx as c, jsxs as j } from "react/jsx-runtime";
2
+ import { useMemo as b, useCallback as T } from "react";
3
3
  import { Badge as V } from "../../../data-display/badge/badge.js";
4
- import { evaluateValidationRules as U, getFieldValue as v, mapBadgeVariant as G, mapBadgeColor as _ } from "./cell-renderer-utils.js";
5
- import { resolveGridIcon as z } from "./gridIconResolver.js";
6
- import { Tooltip as M, TooltipTrigger as Q, TooltipContent as W } from "../../../feedback/tooltip/tooltip.js";
7
- const q = (e, n, r, d) => {
4
+ import { evaluateValidationRules as I, getFieldValue as m, mapBadgeVariant as L, mapBadgeColor as U } from "./cell-renderer-utils.js";
5
+ import { resolveGridIcon as H } from "./gridIconResolver.js";
6
+ import { Tooltip as _, TooltipTrigger as z, TooltipContent as G } from "../../../feedback/tooltip/tooltip.js";
7
+ const M = (e, n, r, a) => {
8
8
  if (!n) return e;
9
- let l = e;
10
- return l = l.replace(/\$\{value\}/g, String(d ?? "")), l = l.replace(/\$\{field\}/g, String(r ?? "")), Object.keys(n).forEach((o) => {
11
- const i = new RegExp(`\\$\\{${o}\\}`, "g");
12
- l = l.replace(i, String(n[o] ?? ""));
13
- }), l;
14
- }, A = ({
9
+ let t = e;
10
+ return t = t.replace(/\$\{value\}/g, String(a ?? "")), t = t.replace(/\$\{field\}/g, String(r ?? "")), Object.keys(n).forEach((i) => {
11
+ const o = new RegExp(`\\$\\{${i}\\}`, "g");
12
+ t = t.replace(o, String(n[i] ?? ""));
13
+ }), t;
14
+ }, Q = ({
15
15
  iconConfig: e,
16
16
  rowData: n,
17
17
  rowId: r,
18
- field: d
18
+ field: a
19
19
  }) => {
20
- const [l, o] = H(!1), i = I(null);
21
- P(() => {
22
- const x = i.current;
23
- if (!x || !e.showOnHover)
24
- return;
25
- const y = x.closest(".group");
26
- if (!y)
27
- return;
28
- const c = () => o(!1);
29
- return y.addEventListener("mouseleave", c), () => {
30
- y.removeEventListener("mouseleave", c);
31
- };
32
- }, [e.showOnHover]), P(() => () => o(!1), []);
33
- let s = null;
34
- const u = v(e.iconField, e.icon, n);
35
- if (typeof u == "string" ? s = z(u, { size: 16 }) : s = u, !s) return null;
36
- const k = v(e.backgroundColorField, e.backgroundColor, n), h = v(e.colorField, e.color, n) ?? "var(--color-foreground-icon)", g = v(e.tooltipField, e.tooltip, n), S = /* @__PURE__ */ a(
20
+ let t = null;
21
+ const i = m(e.iconField, e.icon, n);
22
+ if (typeof i == "string" ? t = H(i, { size: 16 }) : t = i, !t) return null;
23
+ const o = m(e.backgroundColorField, e.backgroundColor, n), s = m(e.colorField, e.color, n) ?? "var(--color-foreground-icon)", f = m(e.tooltipField, e.tooltip, n), h = /* @__PURE__ */ c(
37
24
  "div",
38
25
  {
39
- ref: i,
40
- className: `flex items-center justify-center bg-[var(--icon-bg)] text-[var(--icon-fg)] ${e.onClick ? "cursor-pointer" : ""} ${e.showOnHover ? "invisible opacity-0 pointer-events-none group-hover:visible group-hover:opacity-100 group-hover:pointer-events-auto transition-opacity" : ""}`,
26
+ className: `flex shrink-0 items-center justify-center bg-[var(--icon-bg)] text-[var(--icon-fg)] ${e.onClick ? "cursor-pointer" : ""} ${e.showOnHover ? "max-w-0 min-w-0 overflow-hidden p-0 opacity-0 pointer-events-none group-hover:max-w-none group-hover:min-w-[18px] group-hover:p-0.5 group-hover:opacity-100 group-hover:pointer-events-auto" : "p-0.5 min-w-[18px]"}`,
41
27
  style: {
42
- "--icon-bg": k,
43
- "--icon-fg": h,
28
+ "--icon-bg": o,
29
+ "--icon-fg": s,
44
30
  borderRadius: "4px",
45
- padding: "2px",
46
- minWidth: "18px",
47
31
  minHeight: "18px"
48
32
  },
49
- onClick: e.onClick ? () => e.onClick?.({ rowId: r, field: d, rowData: n ?? {} }) : void 0,
50
- children: s
33
+ onClick: e.onClick ? () => e.onClick?.({ rowId: r, field: a, rowData: n ?? {} }) : void 0,
34
+ children: t
51
35
  }
52
36
  );
53
- return g ? /* @__PURE__ */ j(
54
- M,
55
- {
56
- open: l,
57
- onOpenChange: o,
58
- disableHoverableContent: !0,
59
- children: [
60
- /* @__PURE__ */ a(Q, { asChild: !0, children: S }),
61
- /* @__PURE__ */ a(W, { variant: "tertiary", side: e.tooltipSide || "top", children: g })
62
- ]
63
- }
64
- ) : null;
65
- }, J = ({
37
+ return f ? /* @__PURE__ */ j(_, { children: [
38
+ /* @__PURE__ */ c(z, { asChild: !0, children: h }),
39
+ /* @__PURE__ */ c(G, { variant: "tertiary", side: e.tooltipSide || "top", children: f })
40
+ ] }) : h;
41
+ }, q = ({
66
42
  badgeConfig: e,
67
43
  rowData: n,
68
44
  rowId: r,
69
- field: d
45
+ field: a
70
46
  }) => {
71
- const l = v(e.labelField, e.label, n);
72
- if (!l) return null;
73
- const o = v(e.colorField, e.color, n), i = v(e.variantField, e.variant, n);
74
- return /* @__PURE__ */ a(
47
+ const t = m(e.labelField, e.label, n);
48
+ if (!t) return null;
49
+ const i = m(e.colorField, e.color, n), o = m(e.variantField, e.variant, n);
50
+ return /* @__PURE__ */ c(
75
51
  V,
76
52
  {
77
53
  className: "font-medium",
78
- color: _(o),
79
- variant: G(i),
80
- onClick: e.onClick ? () => e.onClick?.({ rowId: r, field: d, rowData: n ?? {} }) : void 0,
81
- children: l
54
+ color: U(i),
55
+ variant: L(o),
56
+ onClick: e.onClick ? () => e.onClick?.({ rowId: r, field: a, rowData: n ?? {} }) : void 0,
57
+ children: t
82
58
  }
83
59
  );
84
- }, X = (e) => {
60
+ }, A = (e) => {
85
61
  const {
86
62
  value: n,
87
63
  data: r,
88
- node: d,
89
- colDef: l,
90
- onClick: o,
91
- redirectUrl: i,
64
+ node: a,
65
+ colDef: t,
66
+ onClick: i,
67
+ redirectUrl: o,
92
68
  updateQueryParams: s,
93
- navigate: u,
94
- setSearchParams: k,
95
- rightSideContent: h,
96
- valueFormatter: g,
69
+ navigate: f,
70
+ setSearchParams: h,
71
+ rightSideContent: y,
72
+ valueFormatter: k,
97
73
  disableOnPinnedRows: S = !0,
98
- disableLinkStyle: x,
99
- validationRules: y
100
- } = e, c = d.id ?? String(r?.id ?? ""), p = l?.field ?? "", $ = r && typeof r == "object" && "_isPinned" in r && r._isPinned === !0, w = R(() => x || S && $ || U(y, r) ? !1 : !!(s || i || o), [x, S, $, s, i, o, y, r]), T = C(
101
- (f) => {
102
- if (f.stopPropagation(), s && k)
103
- k((t) => {
104
- const b = new URLSearchParams(t);
105
- return Object.entries(s).forEach(([E, N]) => {
106
- let m = String(N);
107
- m = m.replace(/\$\{value\}/g, String(n ?? "")), m = m.replace(/\$\{field\}/g, p), r && Object.keys(r).forEach((F) => {
108
- const B = new RegExp(`\\$\\{${F}\\}`, "g");
109
- m = m.replace(B, String(r[F] ?? ""));
110
- }), b.set(E, m);
111
- }), b;
74
+ disableLinkStyle: w,
75
+ validationRules: $
76
+ } = e, v = a.id ?? String(r?.id ?? ""), d = t?.field ?? "", R = r && typeof r == "object" && "_isPinned" in r && r._isPinned === !0, E = b(() => w || S && R || I($, r) ? !1 : !!(s || o || i), [w, S, R, s, o, i, $, r]), N = T(
77
+ (u) => {
78
+ if (u.stopPropagation(), s && h)
79
+ h((l) => {
80
+ const g = new URLSearchParams(l);
81
+ return Object.entries(s).forEach(([x, C]) => {
82
+ let p = String(C);
83
+ p = p.replace(/\$\{value\}/g, String(n ?? "")), p = p.replace(/\$\{field\}/g, d), r && Object.keys(r).forEach((P) => {
84
+ const O = new RegExp(`\\$\\{${P}\\}`, "g");
85
+ p = p.replace(O, String(r[P] ?? ""));
86
+ }), g.set(x, p);
87
+ }), g;
112
88
  });
113
- else if (i && u) {
114
- const t = q(i, r, p, n);
115
- u(t);
116
- } else o && o({ rowId: c, field: p, rowData: r ?? {}, value: n });
89
+ else if (o && f) {
90
+ const l = M(o, r, d, n);
91
+ f(l);
92
+ } else i && i({ rowId: v, field: d, rowData: r ?? {}, value: n });
117
93
  },
118
- [s, k, i, u, o, r, p, n, c]
119
- ), L = R(() => g ? g(n, r ?? {}) : String(n ?? ""), [n, g, r]), O = R(() => {
120
- if (!h?.items || h.items.length === 0) return null;
121
- const f = [];
122
- return h.items.forEach((t, b) => {
123
- if (t.type === "icon" && t.icon)
124
- f.push(
125
- /* @__PURE__ */ a(
126
- A,
94
+ [s, h, o, f, i, r, d, n, v]
95
+ ), B = b(() => k ? k(n, r ?? {}) : String(n ?? ""), [n, k, r]), F = b(() => {
96
+ if (!y?.items || y.items.length === 0) return null;
97
+ const u = [];
98
+ return y.items.forEach((l, g) => {
99
+ if (l.type === "icon" && l.icon)
100
+ u.push(
101
+ /* @__PURE__ */ c(
102
+ Q,
127
103
  {
128
- iconConfig: t.icon,
104
+ iconConfig: l.icon,
129
105
  rowData: r,
130
- rowId: c,
131
- field: p
106
+ rowId: v,
107
+ field: d
132
108
  },
133
- `icon-${b}`
109
+ `icon-${g}`
134
110
  )
135
111
  );
136
- else if (t.type === "badge" && t.badge)
137
- f.push(
138
- /* @__PURE__ */ a(
139
- J,
112
+ else if (l.type === "badge" && l.badge)
113
+ u.push(
114
+ /* @__PURE__ */ c(
115
+ q,
140
116
  {
141
- badgeConfig: t.badge,
117
+ badgeConfig: l.badge,
142
118
  rowData: r,
143
- rowId: c,
144
- field: p
119
+ rowId: v,
120
+ field: d
145
121
  },
146
- `badge-${b}`
122
+ `badge-${g}`
147
123
  )
148
124
  );
149
- else if (t.type === "dynamic" && t.dynamic) {
150
- const E = typeof t.dynamic == "function" ? t.dynamic(r ?? {}) : t.dynamic;
151
- f.push(/* @__PURE__ */ a("span", { children: E }, `dyn-${b}`));
125
+ else if (l.type === "dynamic" && l.dynamic) {
126
+ const x = typeof l.dynamic == "function" ? l.dynamic(r ?? {}) : l.dynamic;
127
+ u.push(/* @__PURE__ */ c("span", { children: x }, `dyn-${g}`));
152
128
  }
153
- }), f.length > 0 ? f : null;
154
- }, [h, r, c, p]);
129
+ }), u.length > 0 ? u : null;
130
+ }, [y, r, v, d]);
155
131
  return /* @__PURE__ */ j("div", { className: "w-full h-full flex items-center justify-between gap-2 group ag-cell-inner-padding", children: [
156
- /* @__PURE__ */ a(
132
+ /* @__PURE__ */ c(
157
133
  "div",
158
134
  {
159
- className: `flex-1 truncate min-w-0 ${w ? "text-brand cursor-pointer hover:underline font-medium" : ""}`,
160
- onClick: w ? T : void 0,
161
- children: L
135
+ className: `flex-1 truncate min-w-0 ${E ? "text-brand cursor-pointer hover:underline font-medium" : ""}`,
136
+ onClick: E ? N : void 0,
137
+ children: B
162
138
  }
163
139
  ),
164
- O && /* @__PURE__ */ a("div", { className: "flex items-center gap-1 flex-shrink-0", children: O })
140
+ F && /* @__PURE__ */ c("div", { className: "flex items-center gap-1 flex-shrink-0", children: F })
165
141
  ] });
166
142
  };
167
- X.displayName = "LinkCellRenderer";
143
+ A.displayName = "LinkCellRenderer";
168
144
  export {
169
- X as LinkCellRenderer
145
+ A as LinkCellRenderer
170
146
  };
@@ -1,48 +1,48 @@
1
1
  import { jsxs as l, Fragment as X, jsx as t } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import { ChevronRight as ye, Star as I, Search as we, Bookmark as Ne, Pencil as Te, Bin as Ve } from "impact-nova-icons";
3
+ import { ChevronRight as xe, Star as I, Search as ye, Bookmark as we, Pencil as Ne, Bin as Te } from "impact-nova-icons";
4
4
  import { cn as m } from "../../../lib/utils.js";
5
- import { useImpactNovaI18n as ke } from "../../../i18n/use-impact-nova-i18n.js";
6
- import { Popover as De, PopoverTrigger as Se, PopoverContent as Ce } from "../../feedback/popover/popover.js";
7
- import { OverflowTooltip as Z } from "../../feedback/tooltip/overflow-tooltip.js";
5
+ import { useImpactNovaI18n as Ve } from "../../../i18n/use-impact-nova-i18n.js";
6
+ import { Popover as ke, PopoverTrigger as De, PopoverContent as Ce } from "../../feedback/popover/popover.js";
7
+ import { OverflowTooltip as Se } from "../../feedback/tooltip/overflow-tooltip.js";
8
+ import { BadgeOverflowTooltip as ze } from "../../feedback/tooltip/badge-overflow-tooltip.js";
8
9
  import { Button as u } from "../../primitives/button/button.js";
9
- import { Badge as q } from "../../data-display/badge/badge.js";
10
- import { badgeVariants as ze } from "../../data-display/badge/badge.variants.js";
10
+ import { Badge as Z } from "../../data-display/badge/badge.js";
11
11
  import { Input as Me } from "../../forms/input/input.js";
12
- import { Separator as ee } from "../../data-display/separator/separator.js";
12
+ import { Separator as q } from "../../data-display/separator/separator.js";
13
13
  import { Skeleton as R } from "../../data-display/skeleton/skeleton.js";
14
14
  import { Prompt as Ae } from "../../forms/prompt/prompt.js";
15
15
  function Pe(v) {
16
16
  return v.isSystemView ? "system" : v.isDefaultView ? "default" : v.isActive ? "active" : "other";
17
17
  }
18
- const Oe = ["default", "active", "system"], Ge = ({
18
+ const Oe = ["default", "active", "system"], We = ({
19
19
  isSaveViewEnabled: v = !0,
20
20
  views: o,
21
- activeViewSummary: te,
22
- viewTypeOptions: ae,
21
+ activeViewSummary: ee,
22
+ viewTypeOptions: te,
23
23
  menuOpen: E,
24
- defaultMenuOpen: ne = !1,
24
+ defaultMenuOpen: ae = !1,
25
25
  onMenuOpenChange: j,
26
26
  onSearch: D,
27
27
  isLoadingViews: L = !1,
28
28
  customListContent: U,
29
- disableApply: ie = !1,
30
- className: re,
31
- onSaveViewClick: le,
32
- onApply: se,
33
- onCancel: oe,
34
- onEditView: de,
35
- onDeleteView: ce,
29
+ disableApply: ne = !1,
30
+ className: ie,
31
+ onSaveViewClick: re,
32
+ onApply: le,
33
+ onCancel: se,
34
+ onEditView: oe,
35
+ onDeleteView: de,
36
36
  onSetDefaultView: Q
37
37
  }) => {
38
- const { t: a } = ke(), S = E !== void 0, [me, N] = n.useState(null), [ue, pe] = n.useState(
39
- ne
40
- ), p = S ? !!E : ue, f = n.useCallback(
38
+ const { t: a } = Ve(), C = E !== void 0, [ce, N] = n.useState(null), [me, ue] = n.useState(
39
+ ae
40
+ ), p = C ? !!E : me, f = n.useCallback(
41
41
  (e) => {
42
- S || pe(e), j?.(e);
42
+ C || ue(e), j?.(e);
43
43
  },
44
- [S, j]
45
- ), [x, C] = n.useState("All"), [T, z] = n.useState(""), [F, M] = n.useState("");
44
+ [C, j]
45
+ ), [x, S] = n.useState("All"), [T, z] = n.useState(""), [F, M] = n.useState("");
46
46
  n.useEffect(() => {
47
47
  const e = window.setTimeout(() => M(T), 300);
48
48
  return () => window.clearTimeout(e);
@@ -52,12 +52,12 @@ const Oe = ["default", "active", "system"], Ge = ({
52
52
  const Y = n.useMemo(
53
53
  () => o.find((e) => e.isActive),
54
54
  [o]
55
- ), d = Y ?? null, _ = te ?? Y?.viewName ?? a("dataTable.savedViewsNotApplicable"), [V, A] = n.useState(null), [y, $] = n.useState(null), K = n.useRef(!1);
55
+ ), d = Y ?? null, _ = ee ?? Y?.viewName ?? a("dataTable.savedViewsNotApplicable"), [V, A] = n.useState(null), [y, $] = n.useState(null), K = n.useRef(!1);
56
56
  n.useEffect(() => {
57
57
  const e = p && !K.current;
58
58
  if (K.current = p, e) {
59
59
  const i = o.find((c) => c.isActive);
60
- A(i?.id ?? null), C("All"), z(""), M("");
60
+ A(i?.id ?? null), S("All"), z(""), M("");
61
61
  }
62
62
  }, [p, o]);
63
63
  const w = n.useMemo(() => x === "All" ? o : o.filter((e) => e.viewType === x), [o, x]), h = T.trim().toLowerCase(), k = n.useCallback(
@@ -76,27 +76,27 @@ const Oe = ["default", "active", "system"], Ge = ({
76
76
  }, [w, h, k]), O = n.useMemo(() => {
77
77
  const e = new Set(b.map((i) => i.id));
78
78
  return P.filter((i) => !e.has(i.id));
79
- }, [P, b]), G = V === null ? null : o.find((e) => e.id === V) ?? null, fe = () => {
80
- se?.(G, { activeView: d }), f(!1);
81
- }, he = () => {
82
- oe?.({ activeView: d, pendingView: G }), f(!1);
83
- }, be = (e) => {
79
+ }, [P, b]), W = V === null ? null : o.find((e) => e.id === V) ?? null, pe = () => {
80
+ le?.(W, { activeView: d }), f(!1);
81
+ }, fe = () => {
82
+ se?.({ activeView: d, pendingView: W }), f(!1);
83
+ }, he = (e) => {
84
84
  f(e), e || (z(""), M(""));
85
85
  };
86
86
  if (!v)
87
87
  return null;
88
- const ge = o.length > 0, H = (e, i, c) => {
89
- const B = V === e.id, s = me === e.id, J = i === "priority" && !!e.isActive, ve = i === "list" && !!e.isActive, xe = !!(e.isEditable || e.isDeletable), g = !e.hideDefaultStar, W = xe || g;
88
+ const be = o.length > 0, G = (e, i, c) => {
89
+ const B = V === e.id, s = ce === e.id, H = i === "priority" && !!e.isActive, ge = i === "list" && !!e.isActive, ve = !!(e.isEditable || e.isDeletable), g = !e.hideDefaultStar, J = ve || g;
90
90
  return /* @__PURE__ */ l(
91
91
  "div",
92
92
  {
93
93
  tabIndex: 0,
94
94
  className: m(
95
- "group mb-1 flex min-w-0 cursor-pointer items-center rounded-lg px-3 py-2 text-left text-sm font-medium font-['Manrope'] transition-all duration-300 relative overflow-hidden",
95
+ "group mb-1 flex min-w-0 cursor-pointer items-stretch rounded-lg px-3 py-2 text-left text-sm font-medium font-['Manrope'] transition-all duration-300 relative overflow-hidden",
96
96
  !s && "hover:bg-canvas-muted",
97
- !s && J && !B && "bg-primary/10 dark:bg-primary/15",
97
+ !s && H && !B && "bg-primary/10 dark:bg-primary/15",
98
98
  !s && B && "bg-badge-info-muted text-badge-info-foreground",
99
- !s && !B && !J && "text-foreground",
99
+ !s && !B && !H && "text-foreground",
100
100
  s && "pointer-events-none"
101
101
  ),
102
102
  onClick: () => !s && A(e.id),
@@ -115,12 +115,12 @@ const Oe = ["default", "active", "system"], Ge = ({
115
115
  }
116
116
  ),
117
117
  /* @__PURE__ */ t(
118
- Z,
118
+ Se,
119
119
  {
120
120
  triggerClassName: m(
121
- "relative z-10 block min-w-0 w-full truncate text-start",
122
- W && (e.isDefaultView && g ? "pe-7 group-hover:pe-[4.75rem]" : "pe-0 group-hover:pe-[4.75rem]"),
123
- ve && "underline decoration-primary decoration-2 underline-offset-2"
121
+ "relative z-10 block min-w-0 flex-1 self-stretch truncate text-start overflow-hidden",
122
+ J && (e.isDefaultView && g ? "pe-7 group-hover:pe-[4.75rem]" : "pe-0 group-hover:pe-[4.75rem]"),
123
+ ge && "underline decoration-primary decoration-2 underline-offset-2"
124
124
  ),
125
125
  content: e.viewName,
126
126
  side: "right",
@@ -128,7 +128,7 @@ const Oe = ["default", "active", "system"], Ge = ({
128
128
  children: e.viewName
129
129
  }
130
130
  ),
131
- W ? /* @__PURE__ */ l(
131
+ J ? /* @__PURE__ */ l(
132
132
  "div",
133
133
  {
134
134
  className: m(
@@ -148,9 +148,9 @@ const Oe = ["default", "active", "system"], Ge = ({
148
148
  ),
149
149
  "aria-label": a("dataTable.savedViewsEdit"),
150
150
  onClick: (r) => {
151
- r.stopPropagation(), r.preventDefault(), f(!1), de?.(e, { activeView: d });
151
+ r.stopPropagation(), r.preventDefault(), f(!1), oe?.(e, { activeView: d });
152
152
  },
153
- children: /* @__PURE__ */ t(Te, { className: "size-3.5" })
153
+ children: /* @__PURE__ */ t(Ne, { className: "size-3.5" })
154
154
  }
155
155
  ) : null,
156
156
  e.isDeletable ? /* @__PURE__ */ t(
@@ -167,7 +167,7 @@ const Oe = ["default", "active", "system"], Ge = ({
167
167
  onClick: (r) => {
168
168
  r.stopPropagation(), r.preventDefault(), f(!1), $(e);
169
169
  },
170
- children: /* @__PURE__ */ t(Ve, { className: "size-3.5" })
170
+ children: /* @__PURE__ */ t(Te, { className: "size-3.5" })
171
171
  }
172
172
  ) : null,
173
173
  g ? e.isDefaultView ? /* @__PURE__ */ t(
@@ -214,14 +214,14 @@ const Oe = ["default", "active", "system"], Ge = ({
214
214
  "data-component": "data-table-saved-views",
215
215
  className: m(
216
216
  "saved-view-bar-gradient mb-2 mx-4 flex min-w-0 flex-nowrap items-center justify-between gap-2 rounded-lg px-2 py-3",
217
- re
217
+ ie
218
218
  ),
219
219
  children: [
220
220
  L ? /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-1 overflow-hidden", children: [
221
221
  /* @__PURE__ */ t(R, { className: "h-6 w-24 rounded-full bg-scrim-skeleton" }),
222
222
  /* @__PURE__ */ t(R, { className: "h-6 w-6 shrink-0 rounded-md bg-scrim-skeleton" })
223
- ] }) : ge ? /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 items-center justify-start gap-1 overflow-hidden", children: /* @__PURE__ */ l(De, { open: p, onOpenChange: be, children: [
224
- /* @__PURE__ */ t(Se, { asChild: !0, children: /* @__PURE__ */ l(
223
+ ] }) : be ? /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 items-center justify-start gap-1 overflow-hidden", children: /* @__PURE__ */ l(ke, { open: p, onOpenChange: he, children: [
224
+ /* @__PURE__ */ t(De, { asChild: !0, children: /* @__PURE__ */ l(
225
225
  "button",
226
226
  {
227
227
  type: "button",
@@ -231,23 +231,14 @@ const Oe = ["default", "active", "system"], Ge = ({
231
231
  "aria-label": a("dataTable.savedViewsOpenMenu"),
232
232
  children: [
233
233
  /* @__PURE__ */ t(
234
- Z,
234
+ ze,
235
235
  {
236
- as: "div",
237
- triggerClassName: m(
238
- ze({
239
- variant: "outline",
240
- color: "success",
241
- size: "md",
242
- shape: "circle",
243
- layout: "default"
244
- }),
245
- "w-fit max-w-full min-w-0 shrink truncate font-['Manrope']"
246
- ),
236
+ label: _,
247
237
  content: _,
238
+ badgeColor: "success",
239
+ maxWidthClassName: "max-w-full",
248
240
  side: "top",
249
- variant: "tertiary",
250
- children: _
241
+ variant: "tertiary"
251
242
  }
252
243
  ),
253
244
  /* @__PURE__ */ t(
@@ -258,7 +249,7 @@ const Oe = ["default", "active", "system"], Ge = ({
258
249
  p && "rotate-180"
259
250
  ),
260
251
  "aria-hidden": !0,
261
- children: /* @__PURE__ */ t(ye, { className: "size-3.5 rotate-90 text-content-charcoal" })
252
+ children: /* @__PURE__ */ t(xe, { className: "size-3.5 rotate-90 text-content-charcoal" })
262
253
  }
263
254
  )
264
255
  ]
@@ -284,9 +275,9 @@ const Oe = ["default", "active", "system"], Ge = ({
284
275
  {
285
276
  type: "button",
286
277
  className: "border-none bg-transparent p-0",
287
- onClick: () => C("All"),
278
+ onClick: () => S("All"),
288
279
  children: /* @__PURE__ */ t(
289
- q,
280
+ Z,
290
281
  {
291
282
  color: x === "All" ? "primary" : "neutral",
292
283
  variant: "outline",
@@ -297,14 +288,14 @@ const Oe = ["default", "active", "system"], Ge = ({
297
288
  )
298
289
  }
299
290
  ),
300
- ae?.map((e) => /* @__PURE__ */ t(
291
+ te?.map((e) => /* @__PURE__ */ t(
301
292
  "button",
302
293
  {
303
294
  type: "button",
304
295
  className: "border-none bg-transparent p-0",
305
- onClick: () => C(e.value),
296
+ onClick: () => S(e.value),
306
297
  children: /* @__PURE__ */ t(
307
- q,
298
+ Z,
308
299
  {
309
300
  color: x === e.value ? "primary" : "neutral",
310
301
  variant: "outline",
@@ -325,7 +316,7 @@ const Oe = ["default", "active", "system"], Ge = ({
325
316
  value: T,
326
317
  onChange: (e) => z(e.target.value),
327
318
  prefix: /* @__PURE__ */ t(
328
- we,
319
+ ye,
329
320
  {
330
321
  className: "size-4 shrink-0 text-secondary-foreground",
331
322
  "aria-hidden": !0
@@ -337,17 +328,17 @@ const Oe = ["default", "active", "system"], Ge = ({
337
328
  ) }),
338
329
  /* @__PURE__ */ t("div", { className: "min-h-[72px] px-1", children: U || (L ? /* @__PURE__ */ t("div", { className: "flex max-h-[160px] flex-col gap-2 overflow-y-auto px-2 py-1", children: [1, 2, 3, 4, 5].map((e) => /* @__PURE__ */ t(R, { className: "h-9 w-full rounded-lg" }, e)) }) : P.length === 0 && b.length === 0 ? /* @__PURE__ */ t("div", { className: "flex min-h-[100px] flex-col items-center justify-center px-4 py-6 text-center", children: /* @__PURE__ */ t("span", { className: "text-sm leading-relaxed text-content-tertiary font-['Manrope']", children: a("dataTable.savedViewsEmptyList") }) }) : /* @__PURE__ */ l("div", { className: "flex max-h-[220px] flex-col gap-0 overflow-y-auto", children: [
339
330
  b.length > 0 ? /* @__PURE__ */ t("div", { className: "flex flex-col px-1 pb-1 ", children: b.map(
340
- (e) => H(
331
+ (e) => G(
341
332
  e,
342
333
  "priority",
343
334
  `priority-${e.id}`
344
335
  )
345
336
  ) }) : null,
346
- b.length > 0 && O.length > 0 ? /* @__PURE__ */ t(ee, { className: "mb-2 bg-stroke-hairline" }) : null,
337
+ b.length > 0 && O.length > 0 ? /* @__PURE__ */ t(q, { className: "mb-2 bg-stroke-hairline" }) : null,
347
338
  O.length > 0 ? /* @__PURE__ */ l(X, { children: [
348
339
  /* @__PURE__ */ t("div", { className: "px-3 pb-1.5 pt-0.5 text-xs font-medium tracking-wide text-content-placeholder font-['Manrope']", children: a("dataTable.savedViewsAllSavedViews") }),
349
340
  /* @__PURE__ */ t("div", { className: "flex flex-col px-1 pb-1", children: O.map(
350
- (e) => H(
341
+ (e) => G(
351
342
  e,
352
343
  "list",
353
344
  `list-${e.id}`
@@ -355,7 +346,7 @@ const Oe = ["default", "active", "system"], Ge = ({
355
346
  ) })
356
347
  ] }) : null
357
348
  ] })) }),
358
- /* @__PURE__ */ t(ee, { className: "my-1 bg-[var(--color-border-hairline)]" }),
349
+ /* @__PURE__ */ t(q, { className: "my-1 bg-[var(--color-border-hairline)]" }),
359
350
  /* @__PURE__ */ l("div", { className: "flex justify-end gap-2 px-3 pt-1", children: [
360
351
  /* @__PURE__ */ t(
361
352
  u,
@@ -363,7 +354,7 @@ const Oe = ["default", "active", "system"], Ge = ({
363
354
  type: "button",
364
355
  variant: "tertiary",
365
356
  size: "md",
366
- onClick: he,
357
+ onClick: fe,
367
358
  children: a("dataTable.savedViewsCancel")
368
359
  }
369
360
  ),
@@ -373,8 +364,8 @@ const Oe = ["default", "active", "system"], Ge = ({
373
364
  type: "button",
374
365
  variant: "default",
375
366
  size: "md",
376
- disabled: ie || V === d?.id,
377
- onClick: fe,
367
+ disabled: ne || V === d?.id,
368
+ onClick: pe,
378
369
  children: a("dataTable.savedViewsApply")
379
370
  }
380
371
  )
@@ -383,7 +374,7 @@ const Oe = ["default", "active", "system"], Ge = ({
383
374
  }
384
375
  )
385
376
  ] }) }) : /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-content-tertiary", children: [
386
- /* @__PURE__ */ t(Ne, { className: "size-4 shrink-0", "aria-hidden": !0 }),
377
+ /* @__PURE__ */ t(we, { className: "size-4 shrink-0", "aria-hidden": !0 }),
387
378
  /* @__PURE__ */ t("span", { className: "text-sm font-medium font-['Manrope']", children: a("dataTable.savedViewsNoneYet") })
388
379
  ] }),
389
380
  /* @__PURE__ */ t(
@@ -394,7 +385,7 @@ const Oe = ["default", "active", "system"], Ge = ({
394
385
  size: "sm",
395
386
  className: "shrink-0 font-['Manrope']",
396
387
  onClick: () => {
397
- f(!1), le?.({ activeView: d });
388
+ f(!1), re?.({ activeView: d });
398
389
  },
399
390
  children: a("dataTable.savedViewsSave")
400
391
  }
@@ -416,12 +407,12 @@ const Oe = ["default", "active", "system"], Ge = ({
416
407
  }) : void 0,
417
408
  confirmLabel: a("dataTable.savedViewsDeleteConfirmButton"),
418
409
  onConfirm: () => {
419
- y && ce?.(y, { activeView: d });
410
+ y && de?.(y, { activeView: d });
420
411
  }
421
412
  }
422
413
  )
423
414
  ] });
424
415
  };
425
416
  export {
426
- Ge as DataTableSavedViews
417
+ We as DataTableSavedViews
427
418
  };
@@ -1,6 +1,6 @@
1
1
  export declare const badgeVariants: (props?: ({
2
- variant?: "outline" | "solid" | "subtle" | null | undefined;
3
- color?: "primary" | "destructive" | "warning" | "success" | "neutral" | null | undefined;
2
+ variant?: "solid" | "outline" | "subtle" | null | undefined;
3
+ color?: "primary" | "success" | "warning" | "destructive" | "neutral" | null | undefined;
4
4
  size?: "sm" | "md" | null | undefined;
5
5
  shape?: "circle" | "square" | null | undefined;
6
6
  layout?: "default" | "iconOnly" | null | undefined;
@@ -1,4 +1,4 @@
1
1
  export declare const alertVariants: (props?: ({
2
- variant?: "default" | "error" | "info" | "warning" | "success" | null | undefined;
2
+ variant?: "default" | "error" | "success" | "warning" | "info" | null | undefined;
3
3
  emphasis?: "flat" | "elevated" | null | undefined;
4
4
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;