impact-nova 2.2.4 → 2.2.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.
Files changed (47) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +2 -1
  2. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +12 -11
  3. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +109 -87
  4. package/dist/components/data/ag-grid-react/index.d.ts +2 -0
  5. package/dist/components/data/ag-grid-react/index.js +41 -36
  6. package/dist/components/data/data-table/data-table-saved-views.js +216 -191
  7. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.d.ts +2 -1
  8. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +30 -27
  9. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +44 -30
  10. package/dist/components/data/expandable-list-item/expandable-list-item-parts.d.ts +1 -1
  11. package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +162 -127
  12. package/dist/components/data/expandable-list-item/expandable-list-item-preset.js +30 -29
  13. package/dist/components/data/expandable-list-item/expandable-list-item.types.d.ts +8 -1
  14. package/dist/components/data/expandable-list-item/index.d.ts +1 -1
  15. package/dist/components/data-display/statistics-card/statistics-card.js +138 -111
  16. package/dist/components/feedback/tooltip/index.d.ts +3 -0
  17. package/dist/components/feedback/tooltip/index.js +13 -9
  18. package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +2 -0
  19. package/dist/components/feedback/tooltip/overflow-tooltip.js +69 -0
  20. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +37 -0
  21. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  22. package/dist/components/feedback/tooltip/use-overflow-tooltip.d.ts +3 -0
  23. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +55 -0
  24. package/dist/components/flows/command-palette/shortcut-settings.js +85 -66
  25. package/dist/components/flows/filter-panel/filter-panel.js +76 -69
  26. package/dist/components/flows/filter-strip/filter-summary.js +184 -163
  27. package/dist/components/flows/filter-strip/filter-tag-list.js +119 -103
  28. package/dist/components/forms/select/components/SelectOptionRow.js +35 -27
  29. package/dist/components/forms/select/components/SelectTriggerValue.js +49 -20
  30. package/dist/components/forms/select/components/Submenu.js +40 -31
  31. package/dist/components/layout/horizontal-scroller/index.d.ts +4 -0
  32. package/dist/components/layout/horizontal-scroller/index.js +6 -2
  33. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +10 -0
  34. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +124 -0
  35. package/dist/components/layout/horizontal-scroller/use-horizontal-scroll-overflow.d.ts +13 -0
  36. package/dist/components/layout/horizontal-scroller/use-horizontal-scroll-overflow.js +40 -0
  37. package/dist/components/primitives/stepper/stepper.js +61 -42
  38. package/dist/impact-nova.css +1 -1
  39. package/dist/index.js +468 -460
  40. package/dist/lib/overflow/is-text-overflowing.d.ts +3 -0
  41. package/dist/lib/overflow/is-text-overflowing.js +6 -0
  42. package/dist/llms/rules/ag-grid.js +1 -1
  43. package/dist/llms/rules/best-practices.js +1 -1
  44. package/dist/llms/rules/installation.js +1 -1
  45. package/dist/llms/rules/requirements.js +1 -1
  46. package/dist/llms/rules/troubleshooting.js +1 -1
  47. package/package.json +1 -1
@@ -1,90 +1,96 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
- import { ChevronRight as ee, Search as te, Bin as ae, Pencil as re, Star as ne } from "impact-nova-icons";
4
- import { cn as s } from "../../../lib/utils.js";
5
- import { useImpactNovaI18n as le } from "../../../i18n/use-impact-nova-i18n.js";
6
- import { Popover as ie, PopoverTrigger as oe, PopoverContent as se } from "../../feedback/popover/popover.js";
7
- import { Tooltip as f, TooltipTrigger as h, TooltipContent as m } from "../../feedback/tooltip/tooltip.js";
8
- import { Button as Q } from "../../primitives/button/button.js";
9
- import { Separator as M } from "../../data-display/separator/separator.js";
10
- import { Tabs as ce, TabsList as de, TabsTrigger as $ } from "../../primitives/tabs/tabs.js";
11
- import { Input as pe } from "../../forms/input/input.js";
12
- import { Badge as ue } from "../../data-display/badge/badge.js";
13
- import { Skeleton as fe } from "../../data-display/skeleton/skeleton.js";
14
- const Ie = ({
15
- selectedFilter: u,
16
- onSelectedFilterChange: B,
17
- savedFilters: C,
18
- recentFilters: S,
19
- onApplySavedFilter: z,
20
- onSavedFilterSearch: N,
21
- onSavedFiltersScroll: E,
3
+ import { ChevronRight as ae, Search as re, Bin as ne, Pencil as le, Star as oe } from "impact-nova-icons";
4
+ import { cn as o } from "../../../lib/utils.js";
5
+ import { useImpactNovaI18n as ie } from "../../../i18n/use-impact-nova-i18n.js";
6
+ import { Popover as se, PopoverTrigger as ce, PopoverContent as de } from "../../feedback/popover/popover.js";
7
+ import { Tooltip as A, TooltipTrigger as D, TooltipContent as M } from "../../feedback/tooltip/tooltip.js";
8
+ import { OverflowTooltip as O } from "../../feedback/tooltip/overflow-tooltip.js";
9
+ import { Button as B } from "../../primitives/button/button.js";
10
+ import { Separator as $ } from "../../data-display/separator/separator.js";
11
+ import { Tabs as pe, TabsList as ue, TabsTrigger as j } from "../../primitives/tabs/tabs.js";
12
+ import { Input as me } from "../../forms/input/input.js";
13
+ import { badgeVariants as fe } from "../../data-display/badge/badge.variants.js";
14
+ import { Skeleton as he } from "../../data-display/skeleton/skeleton.js";
15
+ const Ae = ({
16
+ selectedFilter: m,
17
+ onSelectedFilterChange: E,
18
+ savedFilters: y,
19
+ recentFilters: N,
20
+ onApplySavedFilter: U,
21
+ onSavedFilterSearch: x,
22
+ onSavedFiltersScroll: V,
22
23
  onDropdownOpenChange: R,
23
- isLoadingFilterPreferencesList: U = !1,
24
- onEditSavedFilter: k,
25
- onDeleteSavedFilter: I,
26
- onSetDefaultSavedFilter: P
24
+ isLoadingFilterPreferencesList: Y = !1,
25
+ onEditSavedFilter: w,
26
+ onDeleteSavedFilter: C,
27
+ onSetDefaultSavedFilter: S
27
28
  }) => {
28
- const { t: n } = le(), [b, T] = l.useState(!1), [O, G] = l.useState(null), [A, V] = l.useState(null);
29
+ const { t: r } = ie(), [f, k] = l.useState(!1), [z, L] = l.useState(null), [I, q] = l.useState(null);
29
30
  l.useEffect(() => {
30
- const a = C?.find((d) => d.isDefault);
31
- a && a.id !== A && V(a.id);
32
- }, [C, A]);
33
- const Y = (a) => {
34
- T(a), R?.(a);
35
- }, [D, q] = l.useState(""), [g, H] = l.useState(""), [c, J] = l.useState("All"), [p, j] = l.useState(null);
31
+ const a = y?.find((d) => d.isDefault);
32
+ a && a.id !== I && q(a.id);
33
+ }, [y, I]);
34
+ const H = (a) => {
35
+ k(a), R?.(a);
36
+ }, [T, J] = l.useState(""), [h, K] = l.useState(""), [c, W] = l.useState("All"), [p, P] = l.useState(null);
36
37
  l.useEffect(() => {
37
38
  const a = setTimeout(() => {
38
- H(D);
39
+ K(T);
39
40
  }, 300);
40
41
  return () => clearTimeout(a);
41
- }, [D]), l.useEffect(() => {
42
- N && N(
43
- g,
42
+ }, [T]), l.useEffect(() => {
43
+ x && x(
44
+ h,
44
45
  c === "All" ? void 0 : c
45
46
  );
46
- }, [g, c, N]), l.useEffect(() => {
47
- b && j(u != null ? { label: u } : null);
48
- }, [b, u]);
49
- const K = (a) => {
50
- q(a.target.value);
51
- }, W = () => {
52
- p && (B?.(p.label), p.savedItem && z?.(p.savedItem), T(!1));
53
- }, X = () => {
54
- T(!1);
55
- }, Z = () => !S || S.length === 0 ? null : /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
47
+ }, [h, c, x]), l.useEffect(() => {
48
+ f && P(m != null ? { label: m } : null);
49
+ }, [f, m]);
50
+ const X = (a) => {
51
+ J(a.target.value);
52
+ }, Z = () => {
53
+ p && (E?.(p.label), p.savedItem && U?.(p.savedItem), k(!1));
54
+ }, _ = () => {
55
+ k(!1);
56
+ }, F = () => !N || N.length === 0 ? null : /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
56
57
  /* @__PURE__ */ e("div", { className: "px-1 py-[6px] text-xs font-medium text-secondary-foreground font-['Manrope']", children: "Recent" }),
57
- /* @__PURE__ */ e("div", { className: "mb-[6px] flex flex-col", children: S.map((a, d) => {
58
- const o = a.map((w) => w.label).join(", "), x = p?.label === o;
58
+ /* @__PURE__ */ e("div", { className: "mb-[6px] flex flex-col", children: N.map((a, d) => {
59
+ const s = a.map((v) => v.label).join(", "), b = p?.label === s;
59
60
  return /* @__PURE__ */ e(
60
61
  "button",
61
62
  {
62
63
  type: "button",
63
- className: s(
64
+ className: o(
64
65
  "flex cursor-pointer flex-row px-3 py-2 rounded-lg hover:bg-secondary w-full text-start bg-transparent border-none",
65
- x && "bg-accent"
66
+ b && "bg-accent"
66
67
  ),
67
- onClick: () => j({ label: o }),
68
- children: /* @__PURE__ */ r(f, { children: [
69
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "text-sm font-['Manrope'] truncate text-foreground", children: o }) }),
70
- /* @__PURE__ */ e(m, { variant: "tertiary", side: "right", children: o })
71
- ] })
68
+ onClick: () => P({ label: s }),
69
+ children: /* @__PURE__ */ e(
70
+ O,
71
+ {
72
+ triggerClassName: "truncate block min-w-0 w-full text-sm font-['Manrope'] text-foreground",
73
+ content: s,
74
+ side: "right",
75
+ children: s
76
+ }
77
+ )
72
78
  },
73
79
  d
74
80
  );
75
81
  }) }),
76
- /* @__PURE__ */ e(M, { className: "mb-2" })
77
- ] }), _ = () => {
78
- if (U)
79
- return /* @__PURE__ */ e("div", { className: "flex max-h-[160px] flex-col overflow-y-auto px-3 py-2 space-y-2", children: [1, 2, 3, 4, 5].map((t) => /* @__PURE__ */ e(fe, { className: "h-9 w-full rounded-lg" }, t)) });
80
- let a = C?.filter(
82
+ /* @__PURE__ */ e($, { className: "mb-2" })
83
+ ] }), ee = () => {
84
+ if (Y)
85
+ return /* @__PURE__ */ e("div", { className: "flex max-h-[160px] flex-col overflow-y-auto px-3 py-2 space-y-2", children: [1, 2, 3, 4, 5].map((t) => /* @__PURE__ */ e(he, { className: "h-9 w-full rounded-lg" }, t)) });
86
+ let a = y?.filter(
81
87
  (t) => c === "All" || t.type === c
82
88
  );
83
- if (!N && g && (a = a?.filter(
84
- (t) => t.label.toLowerCase().includes(g.toLowerCase())
89
+ if (!x && h && (a = a?.filter(
90
+ (t) => t.label.toLowerCase().includes(h.toLowerCase())
85
91
  )), !a || a.length === 0) {
86
92
  let t = "No saved filters found";
87
- if (!!g)
93
+ if (!!h)
88
94
  switch (c) {
89
95
  case "Personal":
90
96
  t = "No personal filters match your search";
@@ -108,20 +114,20 @@ const Ie = ({
108
114
  }
109
115
  return /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-8 text-center min-h-[100px] px-6", children: /* @__PURE__ */ e("span", { className: "text-sm text-secondary-foreground font-['Manrope'] leading-relaxed", children: t }) });
110
116
  }
111
- const d = k || I || P, o = a.find((t) => t.isDefault), x = a.filter((t) => !t.isDefault), w = (t, y = !1) => {
112
- const L = p?.label === t.label, i = O === t.id;
113
- return /* @__PURE__ */ r(
117
+ const d = w || C || S, s = a.find((t) => t.isDefault), b = a.filter((t) => !t.isDefault), v = (t, u = !1) => {
118
+ const Q = p?.label === t.label, i = z === t.id;
119
+ return /* @__PURE__ */ n(
114
120
  "button",
115
121
  {
116
122
  type: "button",
117
- className: s(
118
- "group mb-1 flex items-center justify-between cursor-pointer rounded-lg px-3 py-2 text-sm font-medium font-['Manrope'] w-full text-start bg-transparent border-none transition-all duration-300 relative overflow-hidden",
123
+ className: o(
124
+ "group mb-1 flex min-w-0 items-center cursor-pointer rounded-lg px-3 py-2 text-sm font-medium font-['Manrope'] w-full text-start bg-transparent border-none transition-all duration-300 relative overflow-hidden",
119
125
  !i && "hover:bg-secondary",
120
- !i && L && "bg-accent",
121
- !i && !L && "text-foreground",
126
+ !i && Q && "bg-accent",
127
+ !i && !Q && "text-foreground",
122
128
  i && "pointer-events-none"
123
129
  ),
124
- onClick: () => !i && j({ label: t.label, savedItem: t }),
130
+ onClick: () => !i && P({ label: t.label, savedItem: t }),
125
131
  disabled: i,
126
132
  children: [
127
133
  i && /* @__PURE__ */ e(
@@ -134,68 +140,76 @@ const Ie = ({
134
140
  }
135
141
  }
136
142
  ),
137
- /* @__PURE__ */ r(f, { children: [
138
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "truncate flex-1 min-w-0", children: t.label }) }),
139
- /* @__PURE__ */ e(m, { variant: "tertiary", side: "right", children: t.label })
140
- ] }),
141
- d && /* @__PURE__ */ r("div", { className: s(
142
- "flex items-center gap-1 ms-2 transition-opacity shrink-0",
143
- y ? "opacity-100" : "opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto"
143
+ /* @__PURE__ */ e(
144
+ O,
145
+ {
146
+ triggerClassName: o(
147
+ "relative z-[1] truncate block min-w-0 w-full text-start",
148
+ u ? "pe-7 group-hover:pe-[4.75rem]" : "pe-0 group-hover:pe-[4.75rem]"
149
+ ),
150
+ content: t.label,
151
+ side: "right",
152
+ children: t.label
153
+ }
154
+ ),
155
+ d && /* @__PURE__ */ n("div", { className: o(
156
+ "absolute end-2 top-1/2 z-[2] flex -translate-y-1/2 items-center gap-1 transition-opacity",
157
+ u ? "opacity-100" : "pointer-events-none opacity-0 group-hover:pointer-events-auto group-hover:opacity-100"
144
158
  ), children: [
145
- I && /* @__PURE__ */ r(f, { children: [
146
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(
159
+ C && /* @__PURE__ */ n(A, { children: [
160
+ /* @__PURE__ */ e(D, { asChild: !0, children: /* @__PURE__ */ e(
147
161
  "button",
148
162
  {
149
163
  type: "button",
150
164
  tabIndex: -1,
151
- "aria-label": `${n("filterStrip.deleteFilter")} ${t.label}`,
152
- className: s(
165
+ "aria-label": `${r("filterStrip.deleteFilter")} ${t.label}`,
166
+ className: o(
153
167
  "p-1 rounded transition-colors hover:bg-stroke-hairline",
154
- y && "opacity-0 group-hover:opacity-100"
168
+ u && "opacity-0 group-hover:opacity-100"
155
169
  ),
156
- onClick: (v) => {
157
- v.stopPropagation(), I(t);
170
+ onClick: (g) => {
171
+ g.stopPropagation(), C(t);
158
172
  },
159
- children: /* @__PURE__ */ e(ae, { className: "h-3.5 w-3.5 text-secondary-foreground" })
173
+ children: /* @__PURE__ */ e(ne, { className: "h-3.5 w-3.5 text-secondary-foreground" })
160
174
  }
161
175
  ) }),
162
- /* @__PURE__ */ e(m, { variant: "tertiary", side: "top", children: n("filterStrip.deleteFilter") })
176
+ /* @__PURE__ */ e(M, { variant: "tertiary", side: "top", children: r("filterStrip.deleteFilter") })
163
177
  ] }),
164
- k && /* @__PURE__ */ r(f, { children: [
165
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(
178
+ w && /* @__PURE__ */ n(A, { children: [
179
+ /* @__PURE__ */ e(D, { asChild: !0, children: /* @__PURE__ */ e(
166
180
  "button",
167
181
  {
168
182
  type: "button",
169
183
  tabIndex: -1,
170
- "aria-label": `${n("filterStrip.editFilter")} ${t.label}`,
171
- className: s(
184
+ "aria-label": `${r("filterStrip.editFilter")} ${t.label}`,
185
+ className: o(
172
186
  "p-1 rounded transition-colors hover:bg-stroke-hairline",
173
- y && "opacity-0 group-hover:opacity-100"
187
+ u && "opacity-0 group-hover:opacity-100"
174
188
  ),
175
- onClick: (v) => {
176
- v.stopPropagation(), k(t);
189
+ onClick: (g) => {
190
+ g.stopPropagation(), w(t);
177
191
  },
178
- children: /* @__PURE__ */ e(re, { className: "h-3.5 w-3.5 text-secondary-foreground" })
192
+ children: /* @__PURE__ */ e(le, { className: "h-3.5 w-3.5 text-secondary-foreground" })
179
193
  }
180
194
  ) }),
181
- /* @__PURE__ */ e(m, { variant: "tertiary", side: "top", children: n("filterStrip.editFilter") })
195
+ /* @__PURE__ */ e(M, { variant: "tertiary", side: "top", children: r("filterStrip.editFilter") })
182
196
  ] }),
183
- P && /* @__PURE__ */ r(f, { children: [
184
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(
197
+ S && /* @__PURE__ */ n(A, { children: [
198
+ /* @__PURE__ */ e(D, { asChild: !0, children: /* @__PURE__ */ e(
185
199
  "button",
186
200
  {
187
201
  type: "button",
188
- tabIndex: y ? 0 : -1,
189
- "aria-label": `${t.isDefault ? n("filterStrip.defaultFilter") : n("filterStrip.setAsDefault")} ${t.label}`,
202
+ tabIndex: u ? 0 : -1,
203
+ "aria-label": `${t.isDefault ? r("filterStrip.defaultFilter") : r("filterStrip.setAsDefault")} ${t.label}`,
190
204
  className: "p-1 rounded hover:bg-stroke-hairline transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
191
205
  disabled: i,
192
- onClick: (v) => {
193
- v.stopPropagation(), G(t.id), P(t), setTimeout(() => G(null), 1200);
206
+ onClick: (g) => {
207
+ g.stopPropagation(), L(t.id), S(t), setTimeout(() => L(null), 1200);
194
208
  },
195
209
  children: i ? /* @__PURE__ */ e("div", { className: "h-3.5 w-3.5 animate-spin motion-reduce:animate-none rounded-full border-2 border-warning border-t-transparent" }) : /* @__PURE__ */ e(
196
- ne,
210
+ oe,
197
211
  {
198
- className: s(
212
+ className: o(
199
213
  "h-3.5 w-3.5 transition-all duration-300",
200
214
  t.isDefault ? "fill-warning text-warning" : "text-secondary-foreground"
201
215
  )
@@ -203,7 +217,7 @@ const Ie = ({
203
217
  )
204
218
  }
205
219
  ) }),
206
- /* @__PURE__ */ e(m, { variant: "tertiary", side: "top", children: i ? n("filterStrip.updating") : t.isDefault ? n("filterStrip.defaultFilter") : n("filterStrip.setAsDefault") })
220
+ /* @__PURE__ */ e(M, { variant: "tertiary", side: "top", children: i ? r("filterStrip.updating") : t.isDefault ? r("filterStrip.defaultFilter") : r("filterStrip.setAsDefault") })
207
221
  ] })
208
222
  ] })
209
223
  ]
@@ -211,79 +225,86 @@ const Ie = ({
211
225
  t.id
212
226
  );
213
227
  };
214
- return /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
215
- o && /* @__PURE__ */ r(
228
+ return /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
229
+ s && /* @__PURE__ */ n(
216
230
  "div",
217
231
  {
218
- className: s(
232
+ className: o(
219
233
  "transition-all duration-500 ease-out",
220
- A === o.id && "animate-in fade-in slide-in-from-bottom-2 motion-reduce:animate-none"
234
+ I === s.id && "animate-in fade-in slide-in-from-bottom-2 motion-reduce:animate-none"
221
235
  ),
222
236
  children: [
223
- w(o, !0),
224
- x.length > 0 && /* @__PURE__ */ e(M, { className: "my-1" })
237
+ v(s, !0),
238
+ b.length > 0 && /* @__PURE__ */ e($, { className: "my-1" })
225
239
  ]
226
240
  },
227
- `default-${o.id}`
241
+ `default-${s.id}`
228
242
  ),
229
- x.length > 0 && /* @__PURE__ */ e(
243
+ b.length > 0 && /* @__PURE__ */ e(
230
244
  "div",
231
245
  {
232
246
  className: "flex max-h-[160px] flex-col overflow-y-auto",
233
- onScroll: E,
234
- children: x.map((t) => /* @__PURE__ */ e(
247
+ onScroll: V,
248
+ children: b.map((t) => /* @__PURE__ */ e(
235
249
  "div",
236
250
  {
237
- className: s(
251
+ className: o(
238
252
  "transition-all duration-300",
239
- O === t.id && "opacity-50"
253
+ z === t.id && "opacity-50"
240
254
  ),
241
- children: w(t, !1)
255
+ children: v(t, !1)
242
256
  },
243
257
  t.id
244
258
  ))
245
259
  }
246
260
  )
247
261
  ] });
248
- }, F = p?.label !== u;
249
- return /* @__PURE__ */ r(ie, { open: b, onOpenChange: Y, children: [
250
- /* @__PURE__ */ e(oe, { asChild: !0, children: /* @__PURE__ */ r(
262
+ }, te = p?.label !== m, G = m || r("filterStrip.notSelected");
263
+ return /* @__PURE__ */ n(se, { open: f, onOpenChange: H, children: [
264
+ /* @__PURE__ */ e(ce, { asChild: !0, children: /* @__PURE__ */ n(
251
265
  "button",
252
266
  {
253
267
  type: "button",
254
268
  className: "flex cursor-pointer items-center gap-2 bg-transparent border-none p-0",
255
- "aria-expanded": b,
269
+ "aria-expanded": f,
256
270
  "aria-haspopup": "dialog",
257
271
  children: [
258
- /* @__PURE__ */ e("span", { className: "text-sm font-medium text-secondary-foreground font-['Manrope']", children: n("filterStrip.filtersApplied") }),
259
- /* @__PURE__ */ r(f, { children: [
260
- /* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(
261
- ue,
262
- {
263
- color: "primary",
264
- variant: "outline",
265
- className: "font-['Manrope'] max-w-[140px]",
266
- children: u || n("filterStrip.notSelected")
267
- }
268
- ) }),
269
- /* @__PURE__ */ e(m, { variant: "tertiary", side: "top", children: u || n("filterStrip.notSelected") })
270
- ] }),
272
+ /* @__PURE__ */ e("span", { className: "text-sm font-medium text-secondary-foreground font-['Manrope']", children: r("filterStrip.filtersApplied") }),
273
+ /* @__PURE__ */ e(
274
+ O,
275
+ {
276
+ as: "div",
277
+ triggerClassName: o(
278
+ fe({
279
+ variant: "outline",
280
+ color: "primary",
281
+ size: "md",
282
+ shape: "circle",
283
+ layout: "default"
284
+ }),
285
+ "font-['Manrope'] max-w-[140px] min-w-0 truncate"
286
+ ),
287
+ content: G,
288
+ side: "top",
289
+ children: G
290
+ }
291
+ ),
271
292
  /* @__PURE__ */ e(
272
293
  "div",
273
294
  {
274
- className: s(
295
+ className: o(
275
296
  "flex h-8 w-8 items-center justify-center rounded-lg bg-secondary transition-transform duration-200",
276
- b && "rotate-180"
297
+ f && "rotate-180"
277
298
  ),
278
299
  "aria-hidden": "true",
279
- children: /* @__PURE__ */ e(ee, { className: "h-4 w-4 rotate-90 text-foreground" })
300
+ children: /* @__PURE__ */ e(ae, { className: "h-4 w-4 rotate-90 text-foreground" })
280
301
  }
281
302
  )
282
303
  ]
283
304
  }
284
305
  ) }),
285
306
  /* @__PURE__ */ e(
286
- se,
307
+ de,
287
308
  {
288
309
  align: "start",
289
310
  className: "w-[280px] p-0 shadow-elevation-floating overflow-visible",
@@ -292,49 +313,49 @@ const Ie = ({
292
313
  const d = a.target;
293
314
  (d.closest('[role="dialog"]') || d.closest("[data-radix-dialog-content]")) && a.preventDefault();
294
315
  },
295
- children: /* @__PURE__ */ r("div", { className: "flex w-full flex-col py-[8px] px-[6px]", children: [
296
- Z(),
297
- /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
298
- /* @__PURE__ */ e("div", { className: "px-1 py-[6px] text-xs font-medium text-secondary-foreground font-['Manrope']", children: n("filterStrip.savedFilters") }),
299
- /* @__PURE__ */ r(
300
- ce,
316
+ children: /* @__PURE__ */ n("div", { className: "flex w-full flex-col py-[8px] px-[6px]", children: [
317
+ F(),
318
+ /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
319
+ /* @__PURE__ */ e("div", { className: "px-1 py-[6px] text-xs font-medium text-secondary-foreground font-['Manrope']", children: r("filterStrip.savedFilters") }),
320
+ /* @__PURE__ */ n(
321
+ pe,
301
322
  {
302
323
  value: c,
303
- onValueChange: (a) => J(a),
324
+ onValueChange: (a) => W(a),
304
325
  variant: "outline",
305
326
  size: "sm",
306
327
  className: "w-full px-1",
307
328
  children: [
308
- /* @__PURE__ */ e("div", { className: "py-[8px]", children: /* @__PURE__ */ r(de, { children: [
309
- /* @__PURE__ */ e($, { value: "All", children: "All" }),
310
- /* @__PURE__ */ e($, { value: "Global", children: "Global" }),
311
- /* @__PURE__ */ e($, { value: "Personal", children: "Personal" })
329
+ /* @__PURE__ */ e("div", { className: "py-[8px]", children: /* @__PURE__ */ n(ue, { children: [
330
+ /* @__PURE__ */ e(j, { value: "All", children: "All" }),
331
+ /* @__PURE__ */ e(j, { value: "Global", children: "Global" }),
332
+ /* @__PURE__ */ e(j, { value: "Personal", children: "Personal" })
312
333
  ] }) }),
313
334
  /* @__PURE__ */ e("div", { className: "pb-[8px]", children: /* @__PURE__ */ e(
314
- pe,
335
+ me,
315
336
  {
316
- prefix: /* @__PURE__ */ e(te, { className: "h-4 w-4 text-content-secondary" }),
317
- placeholder: n("filterStrip.searchFiltersPlaceholder"),
318
- value: D,
319
- onChange: K,
337
+ prefix: /* @__PURE__ */ e(re, { className: "h-4 w-4 text-content-secondary" }),
338
+ placeholder: r("filterStrip.searchFiltersPlaceholder"),
339
+ value: T,
340
+ onChange: X,
320
341
  className: "h-9 px-1 border-none shadow-none focus-visible:ring-0"
321
342
  }
322
343
  ) }),
323
- /* @__PURE__ */ e("div", { className: "mt-0", children: _() })
344
+ /* @__PURE__ */ e("div", { className: "mt-0", children: ee() })
324
345
  ]
325
346
  }
326
347
  )
327
348
  ] }),
328
- /* @__PURE__ */ e(M, { className: "my-2" }),
329
- /* @__PURE__ */ r("div", { className: "flex justify-end gap-2 px-3 pb-1", children: [
330
- /* @__PURE__ */ e(Q, { variant: "secondary", onClick: X, children: n("prompt.cancel") }),
349
+ /* @__PURE__ */ e($, { className: "my-2" }),
350
+ /* @__PURE__ */ n("div", { className: "flex justify-end gap-2 px-3 pb-1", children: [
351
+ /* @__PURE__ */ e(B, { variant: "secondary", onClick: _, children: r("prompt.cancel") }),
331
352
  /* @__PURE__ */ e(
332
- Q,
353
+ B,
333
354
  {
334
355
  variant: "default",
335
- onClick: W,
336
- disabled: !F,
337
- children: n("filterStrip.applyFilter")
356
+ onClick: Z,
357
+ disabled: !te,
358
+ children: r("filterStrip.applyFilter")
338
359
  }
339
360
  )
340
361
  ] })
@@ -344,5 +365,5 @@ const Ie = ({
344
365
  ] });
345
366
  };
346
367
  export {
347
- Ie as FilterSummary
368
+ Ae as FilterSummary
348
369
  };