impact-nova 2.2.5 → 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.
- package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +2 -1
- package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +12 -11
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +109 -87
- package/dist/components/data/ag-grid-react/index.d.ts +2 -0
- package/dist/components/data/ag-grid-react/index.js +41 -36
- package/dist/components/data/data-table/data-table-saved-views.js +216 -191
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +44 -30
- package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +158 -184
- package/dist/components/data-display/statistics-card/statistics-card.js +138 -111
- package/dist/components/feedback/tooltip/index.d.ts +3 -0
- package/dist/components/feedback/tooltip/index.js +13 -9
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +2 -0
- package/dist/components/feedback/tooltip/overflow-tooltip.js +69 -0
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +37 -0
- package/dist/components/feedback/tooltip/use-overflow-tooltip.d.ts +3 -0
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +55 -0
- package/dist/components/flows/command-palette/shortcut-settings.js +85 -66
- package/dist/components/flows/filter-panel/filter-panel.js +76 -69
- package/dist/components/flows/filter-strip/filter-summary.js +184 -163
- package/dist/components/flows/filter-strip/filter-tag-list.js +121 -105
- package/dist/components/forms/select/components/SelectOptionRow.js +35 -27
- package/dist/components/forms/select/components/SelectTriggerValue.js +49 -20
- package/dist/components/forms/select/components/Submenu.js +40 -31
- package/dist/components/layout/horizontal-scroller/index.d.ts +4 -0
- package/dist/components/layout/horizontal-scroller/index.js +6 -2
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +10 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +124 -0
- package/dist/components/layout/horizontal-scroller/use-horizontal-scroll-overflow.d.ts +13 -0
- package/dist/components/layout/horizontal-scroller/use-horizontal-scroll-overflow.js +40 -0
- package/dist/components/primitives/stepper/stepper.js +61 -42
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +468 -460
- package/dist/lib/overflow/is-text-overflowing.d.ts +3 -0
- package/dist/lib/overflow/is-text-overflowing.js +6 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/best-practices.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/llms/rules/troubleshooting.js +1 -1
- package/package.json +1 -1
|
@@ -1,90 +1,96 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { ChevronRight as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { useImpactNovaI18n as
|
|
6
|
-
import { Popover as
|
|
7
|
-
import { Tooltip as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
24
|
-
onEditSavedFilter:
|
|
25
|
-
onDeleteSavedFilter:
|
|
26
|
-
onSetDefaultSavedFilter:
|
|
24
|
+
isLoadingFilterPreferencesList: Y = !1,
|
|
25
|
+
onEditSavedFilter: w,
|
|
26
|
+
onDeleteSavedFilter: C,
|
|
27
|
+
onSetDefaultSavedFilter: S
|
|
27
28
|
}) => {
|
|
28
|
-
const { t:
|
|
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 =
|
|
31
|
-
a && a.id !==
|
|
32
|
-
}, [
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
}, [
|
|
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
|
-
|
|
39
|
+
K(T);
|
|
39
40
|
}, 300);
|
|
40
41
|
return () => clearTimeout(a);
|
|
41
|
-
}, [
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
}, [T]), l.useEffect(() => {
|
|
43
|
+
x && x(
|
|
44
|
+
h,
|
|
44
45
|
c === "All" ? void 0 : c
|
|
45
46
|
);
|
|
46
|
-
}, [
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
p && (
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
},
|
|
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:
|
|
58
|
-
const
|
|
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:
|
|
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
|
-
|
|
66
|
+
b && "bg-accent"
|
|
66
67
|
),
|
|
67
|
-
onClick: () =>
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
|
|
70
|
-
|
|
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(
|
|
77
|
-
] }),
|
|
78
|
-
if (
|
|
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(
|
|
80
|
-
let a =
|
|
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 (!
|
|
84
|
-
(t) => t.label.toLowerCase().includes(
|
|
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 (!!
|
|
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 =
|
|
112
|
-
const
|
|
113
|
-
return /* @__PURE__ */
|
|
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:
|
|
118
|
-
"group mb-1 flex items-center
|
|
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 &&
|
|
121
|
-
!i && !
|
|
126
|
+
!i && Q && "bg-accent",
|
|
127
|
+
!i && !Q && "text-foreground",
|
|
122
128
|
i && "pointer-events-none"
|
|
123
129
|
),
|
|
124
|
-
onClick: () => !i &&
|
|
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__ */
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
146
|
-
/* @__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": `${
|
|
152
|
-
className:
|
|
165
|
+
"aria-label": `${r("filterStrip.deleteFilter")} ${t.label}`,
|
|
166
|
+
className: o(
|
|
153
167
|
"p-1 rounded transition-colors hover:bg-stroke-hairline",
|
|
154
|
-
|
|
168
|
+
u && "opacity-0 group-hover:opacity-100"
|
|
155
169
|
),
|
|
156
|
-
onClick: (
|
|
157
|
-
|
|
170
|
+
onClick: (g) => {
|
|
171
|
+
g.stopPropagation(), C(t);
|
|
158
172
|
},
|
|
159
|
-
children: /* @__PURE__ */ e(
|
|
173
|
+
children: /* @__PURE__ */ e(ne, { className: "h-3.5 w-3.5 text-secondary-foreground" })
|
|
160
174
|
}
|
|
161
175
|
) }),
|
|
162
|
-
/* @__PURE__ */ e(
|
|
176
|
+
/* @__PURE__ */ e(M, { variant: "tertiary", side: "top", children: r("filterStrip.deleteFilter") })
|
|
163
177
|
] }),
|
|
164
|
-
|
|
165
|
-
/* @__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": `${
|
|
171
|
-
className:
|
|
184
|
+
"aria-label": `${r("filterStrip.editFilter")} ${t.label}`,
|
|
185
|
+
className: o(
|
|
172
186
|
"p-1 rounded transition-colors hover:bg-stroke-hairline",
|
|
173
|
-
|
|
187
|
+
u && "opacity-0 group-hover:opacity-100"
|
|
174
188
|
),
|
|
175
|
-
onClick: (
|
|
176
|
-
|
|
189
|
+
onClick: (g) => {
|
|
190
|
+
g.stopPropagation(), w(t);
|
|
177
191
|
},
|
|
178
|
-
children: /* @__PURE__ */ e(
|
|
192
|
+
children: /* @__PURE__ */ e(le, { className: "h-3.5 w-3.5 text-secondary-foreground" })
|
|
179
193
|
}
|
|
180
194
|
) }),
|
|
181
|
-
/* @__PURE__ */ e(
|
|
195
|
+
/* @__PURE__ */ e(M, { variant: "tertiary", side: "top", children: r("filterStrip.editFilter") })
|
|
182
196
|
] }),
|
|
183
|
-
|
|
184
|
-
/* @__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:
|
|
189
|
-
"aria-label": `${t.isDefault ?
|
|
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: (
|
|
193
|
-
|
|
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
|
-
|
|
210
|
+
oe,
|
|
197
211
|
{
|
|
198
|
-
className:
|
|
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(
|
|
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__ */
|
|
215
|
-
|
|
228
|
+
return /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
|
|
229
|
+
s && /* @__PURE__ */ n(
|
|
216
230
|
"div",
|
|
217
231
|
{
|
|
218
|
-
className:
|
|
232
|
+
className: o(
|
|
219
233
|
"transition-all duration-500 ease-out",
|
|
220
|
-
|
|
234
|
+
I === s.id && "animate-in fade-in slide-in-from-bottom-2 motion-reduce:animate-none"
|
|
221
235
|
),
|
|
222
236
|
children: [
|
|
223
|
-
|
|
224
|
-
|
|
237
|
+
v(s, !0),
|
|
238
|
+
b.length > 0 && /* @__PURE__ */ e($, { className: "my-1" })
|
|
225
239
|
]
|
|
226
240
|
},
|
|
227
|
-
`default-${
|
|
241
|
+
`default-${s.id}`
|
|
228
242
|
),
|
|
229
|
-
|
|
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:
|
|
234
|
-
children:
|
|
247
|
+
onScroll: V,
|
|
248
|
+
children: b.map((t) => /* @__PURE__ */ e(
|
|
235
249
|
"div",
|
|
236
250
|
{
|
|
237
|
-
className:
|
|
251
|
+
className: o(
|
|
238
252
|
"transition-all duration-300",
|
|
239
|
-
|
|
253
|
+
z === t.id && "opacity-50"
|
|
240
254
|
),
|
|
241
|
-
children:
|
|
255
|
+
children: v(t, !1)
|
|
242
256
|
},
|
|
243
257
|
t.id
|
|
244
258
|
))
|
|
245
259
|
}
|
|
246
260
|
)
|
|
247
261
|
] });
|
|
248
|
-
},
|
|
249
|
-
return /* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */ e(
|
|
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":
|
|
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:
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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:
|
|
295
|
+
className: o(
|
|
275
296
|
"flex h-8 w-8 items-center justify-center rounded-lg bg-secondary transition-transform duration-200",
|
|
276
|
-
|
|
297
|
+
f && "rotate-180"
|
|
277
298
|
),
|
|
278
299
|
"aria-hidden": "true",
|
|
279
|
-
children: /* @__PURE__ */ e(
|
|
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
|
-
|
|
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__ */
|
|
296
|
-
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */ e("div", { className: "px-1 py-[6px] text-xs font-medium text-secondary-foreground font-['Manrope']", children:
|
|
299
|
-
/* @__PURE__ */
|
|
300
|
-
|
|
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) =>
|
|
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__ */
|
|
309
|
-
/* @__PURE__ */ e(
|
|
310
|
-
/* @__PURE__ */ e(
|
|
311
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
335
|
+
me,
|
|
315
336
|
{
|
|
316
|
-
prefix: /* @__PURE__ */ e(
|
|
317
|
-
placeholder:
|
|
318
|
-
value:
|
|
319
|
-
onChange:
|
|
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(
|
|
329
|
-
/* @__PURE__ */
|
|
330
|
-
/* @__PURE__ */ e(
|
|
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
|
-
|
|
353
|
+
B,
|
|
333
354
|
{
|
|
334
355
|
variant: "default",
|
|
335
|
-
onClick:
|
|
336
|
-
disabled: !
|
|
337
|
-
children:
|
|
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
|
-
|
|
368
|
+
Ae as FilterSummary
|
|
348
369
|
};
|