impact-nova 1.5.6 → 1.5.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.
- package/dist/components/ui/ag-grid-react/cell-renderers/date-display-renderer.js +39 -32
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.js +47 -47
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/select-cell-editor.js +39 -36
- package/dist/components/ui/ag-grid-react/cell-renderers/select-display-renderer.js +18 -12
- package/dist/components/ui/badge.d.ts +2 -1
- package/dist/components/ui/badge.js +17 -12
- package/dist/components/ui/command-palette/command-palette.d.ts +20 -4
- package/dist/components/ui/command-palette/command-palette.js +210 -180
- package/dist/components/ui/command-palette/shortcut-settings.d.ts +14 -3
- package/dist/components/ui/command-palette/shortcut-settings.js +97 -90
- package/dist/components/ui/filter-strip/filter-strip.d.ts +1 -1
- package/dist/components/ui/filter-strip/filter-strip.js +24 -22
- package/dist/components/ui/filter-strip/filter-tag-list.js +4 -4
- package/dist/components/ui/select/select.js +41 -41
- package/dist/components/ui/tabs.js +46 -45
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +108 -107
- package/dist/impact-nova.css +1 -1
- package/package.json +1 -1
|
@@ -1,158 +1,167 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as g, Fragment as U } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { User as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { ModuleRegistry as
|
|
6
|
-
import { AllEnterpriseModule as
|
|
7
|
-
import { DataTable as
|
|
8
|
-
import { AG_CELL_NO_PADDING as
|
|
9
|
-
import { Kbd as
|
|
10
|
-
import { useCommandPalette as
|
|
11
|
-
import { keybindingToString as
|
|
12
|
-
import { BadgeCellRenderer as
|
|
13
|
-
|
|
14
|
-
const
|
|
3
|
+
import { User as _, Monitor as K, AlertTriangle as j, Lock as G, RotateCcw as z } from "lucide-react";
|
|
4
|
+
import { cn as h } from "../../../lib/utils.js";
|
|
5
|
+
import { ModuleRegistry as B, AllCommunityModule as O } from "ag-grid-community";
|
|
6
|
+
import { AllEnterpriseModule as $ } from "ag-grid-enterprise";
|
|
7
|
+
import { DataTable as H, DataTableContent as V } from "../data-table/data-table.js";
|
|
8
|
+
import { AG_CELL_NO_PADDING as A } from "../ag-grid-react/cell-renderers/index.js";
|
|
9
|
+
import { Kbd as q } from "./kbd.js";
|
|
10
|
+
import { useCommandPalette as J } from "./command-palette-context.js";
|
|
11
|
+
import { keybindingToString as Q, keybindingFromEvent as X, isReservedShortcut as Y } from "./utils.js";
|
|
12
|
+
import { BadgeCellRenderer as Z } from "../ag-grid-react/cell-renderers/badge-cell-renderer.js";
|
|
13
|
+
B.registerModules([O, $]);
|
|
14
|
+
const W = {
|
|
15
15
|
system: "System",
|
|
16
16
|
user: "User",
|
|
17
17
|
"ag-grid": "AG Grid",
|
|
18
18
|
browser: "Browser"
|
|
19
19
|
};
|
|
20
|
-
function
|
|
21
|
-
const e =
|
|
22
|
-
return e ? /* @__PURE__ */
|
|
23
|
-
!e.customisable && /* @__PURE__ */ r(
|
|
24
|
-
/* @__PURE__ */
|
|
20
|
+
function ee(i) {
|
|
21
|
+
const e = i.data;
|
|
22
|
+
return e ? /* @__PURE__ */ g("div", { className: "flex items-center gap-2 min-w-0 h-full", children: [
|
|
23
|
+
!e.customisable && /* @__PURE__ */ r(G, { className: "h-3 w-3 text-[#9ca3af] shrink-0" }),
|
|
24
|
+
/* @__PURE__ */ g("div", { className: "flex flex-col min-w-0 gap-0", children: [
|
|
25
25
|
/* @__PURE__ */ r("span", { className: "truncate font-medium text-[#374151] text-xs leading-tight", children: e.command }),
|
|
26
26
|
e.description && /* @__PURE__ */ r("span", { className: "truncate text-[10px] text-[#9ca3af] leading-tight", children: e.description })
|
|
27
27
|
] })
|
|
28
28
|
] }) : null;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const e =
|
|
30
|
+
function te(i) {
|
|
31
|
+
const e = i.data;
|
|
32
32
|
if (!e) return null;
|
|
33
|
-
const c =
|
|
34
|
-
return /* @__PURE__ */ r("div", { className:
|
|
33
|
+
const c = i.recordingCommandId === e.id;
|
|
34
|
+
return /* @__PURE__ */ r("div", { className: h(
|
|
35
35
|
"w-full h-full flex items-center ag-cell-inner-padding",
|
|
36
36
|
e.customisable ? "in-ag-editable-cell-highlight" : ""
|
|
37
37
|
), children: /* @__PURE__ */ r(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
40
|
+
className: h(
|
|
41
41
|
"flex items-center justify-between w-full h-7 rounded-[8px] px-1.5 group/row relative",
|
|
42
42
|
e.customisable ? "bg-white" : "bg-transparent",
|
|
43
43
|
c && "ring-1 ring-[#4259ee] border border-[#4259ee]"
|
|
44
44
|
),
|
|
45
|
-
children: c ? /* @__PURE__ */ r("span", { className: "text-xs text-[#4259ee] font-medium animate-pulse", children: "Press desired shortcut..." }) : /* @__PURE__ */
|
|
45
|
+
children: c ? /* @__PURE__ */ r("span", { className: "text-xs text-[#4259ee] font-medium animate-pulse", children: i.recordingLabel ?? "Press desired shortcut..." }) : /* @__PURE__ */ g(U, { children: [
|
|
46
46
|
e.keybinding ? /* @__PURE__ */ r(
|
|
47
47
|
"button",
|
|
48
48
|
{
|
|
49
|
+
type: "button",
|
|
49
50
|
onClick: (a) => {
|
|
50
|
-
a.stopPropagation(), e.customisable &&
|
|
51
|
+
a.stopPropagation(), e.customisable && i.onStartRecording(e.id);
|
|
51
52
|
},
|
|
52
53
|
disabled: !e.customisable,
|
|
53
|
-
className:
|
|
54
|
+
className: h(
|
|
54
55
|
"flex items-center justify-end h-full w-full text-right",
|
|
55
56
|
e.customisable ? "cursor-pointer" : "cursor-default opacity-70"
|
|
56
57
|
),
|
|
57
|
-
children: /* @__PURE__ */ r(
|
|
58
|
+
children: /* @__PURE__ */ r(q, { keybinding: e.keybinding, size: "sm" })
|
|
58
59
|
}
|
|
59
60
|
) : e.customisable ? /* @__PURE__ */ r(
|
|
60
61
|
"button",
|
|
61
62
|
{
|
|
63
|
+
type: "button",
|
|
62
64
|
onClick: (a) => {
|
|
63
|
-
a.stopPropagation(),
|
|
65
|
+
a.stopPropagation(), i.onStartRecording(e.id);
|
|
64
66
|
},
|
|
65
67
|
className: "flex items-center justify-end h-full w-full text-xs text-[#9ca3af] hover:text-[#4259ee] transition-colors cursor-pointer text-right",
|
|
66
|
-
children: "Add shortcut"
|
|
68
|
+
children: i.addShortcutLabel ?? "Add shortcut"
|
|
67
69
|
}
|
|
68
70
|
) : /* @__PURE__ */ r("span", { className: "text-xs text-transparent", children: "--" }),
|
|
69
71
|
e.hasOverride && e.customisable && !c && /* @__PURE__ */ r(
|
|
70
72
|
"button",
|
|
71
73
|
{
|
|
74
|
+
type: "button",
|
|
72
75
|
onClick: (a) => {
|
|
73
|
-
a.stopPropagation(),
|
|
76
|
+
a.stopPropagation(), i.onReset(e.id);
|
|
74
77
|
},
|
|
75
78
|
className: "absolute right-1 p-0.5 rounded bg-white hover:bg-[#f3f4f6] hover:text-[#ef4444] cursor-pointer opacity-0 group-hover/row:opacity-100 transition-opacity z-10",
|
|
76
79
|
title: "Reset to default",
|
|
77
|
-
children: /* @__PURE__ */ r(
|
|
80
|
+
children: /* @__PURE__ */ r(z, { className: "h-3 w-3" })
|
|
78
81
|
}
|
|
79
82
|
)
|
|
80
83
|
] })
|
|
81
84
|
}
|
|
82
85
|
) });
|
|
83
86
|
}
|
|
84
|
-
function
|
|
85
|
-
const e =
|
|
87
|
+
function re(i) {
|
|
88
|
+
const e = i.data;
|
|
86
89
|
return e ? /* @__PURE__ */ r("div", { className: "flex items-center h-full", children: /* @__PURE__ */ r("span", { className: "text-xs text-[#6b7280] capitalize", children: e.scope }) }) : null;
|
|
87
90
|
}
|
|
88
|
-
function
|
|
89
|
-
className:
|
|
91
|
+
function se({
|
|
92
|
+
className: i,
|
|
90
93
|
scopes: e,
|
|
91
94
|
sources: c,
|
|
92
95
|
renderStatus: a,
|
|
93
|
-
|
|
96
|
+
recordingLabel: ie,
|
|
97
|
+
pressShortcutLabel: b,
|
|
98
|
+
addShortcutLabel: x,
|
|
99
|
+
conflictWarnLabel: y = "Conflicts with other shortcuts",
|
|
100
|
+
reservedWarnLabel: p = "This shortcut is reserved by the browser",
|
|
101
|
+
recordingInstruction: P = "Recording: Press shortcut or Esc",
|
|
102
|
+
...le
|
|
94
103
|
}) {
|
|
95
104
|
const {
|
|
96
|
-
getSettingsCommands:
|
|
97
|
-
getEffectiveKeybinding:
|
|
98
|
-
updateKeybinding:
|
|
99
|
-
resetKeybinding:
|
|
100
|
-
version:
|
|
101
|
-
} =
|
|
102
|
-
let s =
|
|
105
|
+
getSettingsCommands: w,
|
|
106
|
+
getEffectiveKeybinding: C,
|
|
107
|
+
updateKeybinding: v,
|
|
108
|
+
resetKeybinding: S,
|
|
109
|
+
version: D
|
|
110
|
+
} = J(), [o, m] = n.useState(null), [d, l] = n.useState(null), T = n.useMemo(() => {
|
|
111
|
+
let s = w();
|
|
103
112
|
return e && (s = s.filter((t) => e.includes(t.scope))), c && (s = s.filter((t) => t.source && c.includes(t.source))), s.map((t) => {
|
|
104
|
-
const u =
|
|
113
|
+
const u = C(t.id), f = t.source ?? "user", E = W[f] ?? t.source ?? "User", M = E.toLowerCase() === "user";
|
|
105
114
|
return {
|
|
106
115
|
id: t.id,
|
|
107
116
|
command: t.label,
|
|
108
117
|
description: t.description || "",
|
|
109
118
|
category: t.category || "General",
|
|
110
119
|
keybinding: u,
|
|
111
|
-
keybindingDisplay: u ?
|
|
120
|
+
keybindingDisplay: u ? Q(u) : "",
|
|
112
121
|
scope: t.scope,
|
|
113
|
-
source:
|
|
114
|
-
sourceColor:
|
|
115
|
-
sourceIcon:
|
|
122
|
+
source: E,
|
|
123
|
+
sourceColor: M ? "primary" : "neutral",
|
|
124
|
+
sourceIcon: M ? /* @__PURE__ */ r(_, { className: "h-3 w-3" }) : /* @__PURE__ */ r(K, { className: "h-3 w-3" }),
|
|
116
125
|
customisable: t.customisable !== !1,
|
|
117
126
|
passive: t.passive === !0,
|
|
118
127
|
hasOverride: t.keybinding !== void 0,
|
|
119
128
|
_def: t
|
|
120
129
|
};
|
|
121
130
|
});
|
|
122
|
-
}, [
|
|
123
|
-
|
|
124
|
-
}, []),
|
|
125
|
-
|
|
126
|
-
}, [
|
|
131
|
+
}, [D, e, c, w, C]), N = n.useCallback((s) => {
|
|
132
|
+
m(s), l(null);
|
|
133
|
+
}, []), R = n.useCallback((s) => {
|
|
134
|
+
S(s), l(null);
|
|
135
|
+
}, [S]);
|
|
127
136
|
n.useEffect(() => {
|
|
128
137
|
if (!o) return;
|
|
129
138
|
const s = (t) => {
|
|
130
139
|
if (t.preventDefault(), t.stopPropagation(), t.key === "Escape") {
|
|
131
|
-
|
|
140
|
+
m(null), l(null);
|
|
132
141
|
return;
|
|
133
142
|
}
|
|
134
|
-
const u =
|
|
143
|
+
const u = X(t);
|
|
135
144
|
if (!u) return;
|
|
136
|
-
if (
|
|
137
|
-
|
|
145
|
+
if (Y(u)) {
|
|
146
|
+
l({ type: "reserved", text: p }), m(null), setTimeout(() => l(null), 3e3);
|
|
138
147
|
return;
|
|
139
148
|
}
|
|
140
|
-
const
|
|
141
|
-
|
|
149
|
+
const f = v(o, u);
|
|
150
|
+
f.success ? (m(null), l(null)) : f.conflict ? (l({
|
|
142
151
|
type: "conflict",
|
|
143
|
-
text:
|
|
144
|
-
}),
|
|
152
|
+
text: y
|
|
153
|
+
}), m(null), setTimeout(() => l(null), 3e3)) : f.reserved && (l({ type: "reserved", text: p }), m(null), setTimeout(() => l(null), 3e3));
|
|
145
154
|
};
|
|
146
155
|
return window.addEventListener("keydown", s, !0), () => window.removeEventListener("keydown", s, !0);
|
|
147
|
-
}, [o,
|
|
148
|
-
const
|
|
156
|
+
}, [o, v, p, y]);
|
|
157
|
+
const F = n.useMemo(() => [
|
|
149
158
|
{
|
|
150
159
|
field: "command",
|
|
151
160
|
headerName: "Command",
|
|
152
161
|
flex: 1,
|
|
153
162
|
minWidth: 200,
|
|
154
163
|
filter: "agTextColumnFilter",
|
|
155
|
-
cellRenderer:
|
|
164
|
+
cellRenderer: ee,
|
|
156
165
|
filterValueGetter: (s) => {
|
|
157
166
|
const t = s.data;
|
|
158
167
|
return t ? `${t.command} ${t.description}` : "";
|
|
@@ -170,12 +179,14 @@ function Z({
|
|
|
170
179
|
width: 180,
|
|
171
180
|
type: "rightAligned",
|
|
172
181
|
filter: "agTextColumnFilter",
|
|
173
|
-
cellRenderer:
|
|
174
|
-
cellClass:
|
|
182
|
+
cellRenderer: te,
|
|
183
|
+
cellClass: A,
|
|
175
184
|
cellRendererParams: {
|
|
176
185
|
recordingCommandId: o,
|
|
177
|
-
onStartRecording:
|
|
178
|
-
onReset:
|
|
186
|
+
onStartRecording: N,
|
|
187
|
+
onReset: R,
|
|
188
|
+
recordingLabel: b,
|
|
189
|
+
addShortcutLabel: x
|
|
179
190
|
},
|
|
180
191
|
sortable: !0
|
|
181
192
|
},
|
|
@@ -184,15 +195,15 @@ function Z({
|
|
|
184
195
|
headerName: "Scope",
|
|
185
196
|
width: 100,
|
|
186
197
|
filter: "agSetColumnFilter",
|
|
187
|
-
cellRenderer:
|
|
198
|
+
cellRenderer: re
|
|
188
199
|
},
|
|
189
200
|
{
|
|
190
201
|
field: "source",
|
|
191
202
|
headerName: "Source",
|
|
192
203
|
width: 130,
|
|
193
204
|
filter: "agSetColumnFilter",
|
|
194
|
-
cellClass:
|
|
195
|
-
cellRenderer:
|
|
205
|
+
cellClass: A,
|
|
206
|
+
cellRenderer: Z,
|
|
196
207
|
cellRendererParams: {
|
|
197
208
|
variant: "subtle",
|
|
198
209
|
colorField: "sourceColor",
|
|
@@ -212,16 +223,16 @@ function Z({
|
|
|
212
223
|
isMultiSelect: !0
|
|
213
224
|
}
|
|
214
225
|
}
|
|
215
|
-
], [o,
|
|
226
|
+
], [o, N, R, b, x]), L = n.useMemo(() => ({
|
|
216
227
|
filter: {
|
|
217
228
|
filterModel: {
|
|
218
229
|
source: {
|
|
219
230
|
filterType: "set",
|
|
220
|
-
values: ["
|
|
231
|
+
values: ["User", "AG Grid"]
|
|
221
232
|
}
|
|
222
233
|
}
|
|
223
234
|
}
|
|
224
|
-
}), []),
|
|
235
|
+
}), []), I = n.useMemo(() => ({
|
|
225
236
|
sortable: !0,
|
|
226
237
|
resizable: !0,
|
|
227
238
|
filter: !0,
|
|
@@ -229,26 +240,22 @@ function Z({
|
|
|
229
240
|
isSearchable: !0,
|
|
230
241
|
advanceSearchEnabled: !0
|
|
231
242
|
}
|
|
232
|
-
}), []),
|
|
243
|
+
}), []), k = d || o ? /* @__PURE__ */ g("div", { className: h(
|
|
233
244
|
"px-3 py-1.5 text-[10px] md:text-sm font-medium rounded-md whitespace-nowrap flex items-center gap-2",
|
|
234
245
|
d?.type === "conflict" ? "bg-[#fef3c7] text-[#92400e]" : d?.type === "reserved" ? "bg-[#fee2e2] text-[#991b1b]" : o ? "bg-[#eff6ff] text-[#1e40af] animate-[pulse_1.5s_ease-in-out_infinite]" : ""
|
|
235
246
|
), children: [
|
|
236
|
-
d?.type === "conflict" ? /* @__PURE__ */ r(
|
|
237
|
-
/* @__PURE__ */ r("span", { children: d ? d.text :
|
|
238
|
-
/* @__PURE__ */ r("strong", { children: "Recording:" }),
|
|
239
|
-
" Press shortcut or ",
|
|
240
|
-
/* @__PURE__ */ r("strong", { children: "Esc" })
|
|
241
|
-
] }) })
|
|
247
|
+
d?.type === "conflict" ? /* @__PURE__ */ r(j, { className: "h-3.5 w-3.5 shrink-0" }) : d?.type === "reserved" ? /* @__PURE__ */ r(G, { className: "h-3.5 w-3.5 shrink-0" }) : o ? /* @__PURE__ */ r("span", { className: "shrink-0 text-base", children: "⌨️" }) : null,
|
|
248
|
+
/* @__PURE__ */ r("span", { children: d ? d.text : P })
|
|
242
249
|
] }) : null;
|
|
243
|
-
return /* @__PURE__ */
|
|
244
|
-
a ? a(
|
|
250
|
+
return /* @__PURE__ */ g(H, { className: h("flex flex-col w-full h-full border-t-0", i), children: [
|
|
251
|
+
a ? a(k) : k,
|
|
245
252
|
/* @__PURE__ */ r(
|
|
246
|
-
|
|
253
|
+
V,
|
|
247
254
|
{
|
|
248
|
-
rowData:
|
|
249
|
-
columnDefs:
|
|
250
|
-
defaultColDef:
|
|
251
|
-
initialState:
|
|
255
|
+
rowData: T,
|
|
256
|
+
columnDefs: F,
|
|
257
|
+
defaultColDef: I,
|
|
258
|
+
initialState: L,
|
|
252
259
|
rowHeight: 44,
|
|
253
260
|
animateRows: !1,
|
|
254
261
|
rowSelection: "single",
|
|
@@ -260,7 +267,7 @@ function Z({
|
|
|
260
267
|
)
|
|
261
268
|
] });
|
|
262
269
|
}
|
|
263
|
-
|
|
270
|
+
se.displayName = "ShortcutSettings";
|
|
264
271
|
export {
|
|
265
|
-
|
|
272
|
+
se as ShortcutSettings
|
|
266
273
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FilterStripProps } from '../types/filter-strip.types';
|
|
2
|
-
declare const FilterStrip: ({ filters, onFilterRemove, onAllFiltersClick, savedFilters, recentFilters, onApplySavedFilter, onSavedFilterSearch, onSavedFiltersScroll, onViewAll, selectedFilter, onSelectedFilterChange, onDropdownOpenChange, isLoadingFilterPreferencesList, isLoading, className, }: FilterStripProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const FilterStrip: ({ filters, onFilterRemove, onAllFiltersClick, savedFilters, recentFilters, onApplySavedFilter, onSavedFilterSearch, onSavedFiltersScroll, onViewAll, onOverflowClick, selectedFilter, onSelectedFilterChange, onDropdownOpenChange, isLoadingFilterPreferencesList, isLoading, className, }: FilterStripProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { FilterStrip };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { ListFilter as
|
|
2
|
+
import { ListFilter as u } from "lucide-react";
|
|
3
3
|
import { cn as a } from "../../../lib/utils.js";
|
|
4
|
-
import { Button as
|
|
4
|
+
import { Button as b } from "../button.js";
|
|
5
5
|
import { Skeleton as t } from "../skeleton.js";
|
|
6
|
-
import { FilterSummary as
|
|
7
|
-
import { FilterTagList as
|
|
8
|
-
import { useImpactNovaI18n as
|
|
9
|
-
const
|
|
6
|
+
import { FilterSummary as F } from "./filter-summary.js";
|
|
7
|
+
import { FilterTagList as S } from "./filter-tag-list.js";
|
|
8
|
+
import { useImpactNovaI18n as y } from "../../../i18n/ImpactNovaI18nContext.js";
|
|
9
|
+
const q = ({
|
|
10
10
|
filters: l,
|
|
11
11
|
onFilterRemove: m,
|
|
12
12
|
onAllFiltersClick: n,
|
|
@@ -16,15 +16,16 @@ const T = ({
|
|
|
16
16
|
onSavedFilterSearch: f,
|
|
17
17
|
onSavedFiltersScroll: h,
|
|
18
18
|
onViewAll: d,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
onOverflowClick: w,
|
|
20
|
+
selectedFilter: x,
|
|
21
|
+
onSelectedFilterChange: N,
|
|
22
|
+
onDropdownOpenChange: g,
|
|
23
|
+
isLoadingFilterPreferencesList: v,
|
|
24
|
+
isLoading: k,
|
|
24
25
|
className: r
|
|
25
26
|
}) => {
|
|
26
|
-
const { t: s } =
|
|
27
|
-
return
|
|
27
|
+
const { t: s } = y();
|
|
28
|
+
return k ? /* @__PURE__ */ e(
|
|
28
29
|
"div",
|
|
29
30
|
{
|
|
30
31
|
"data-component": "filter-strip",
|
|
@@ -59,37 +60,38 @@ const T = ({
|
|
|
59
60
|
),
|
|
60
61
|
children: [
|
|
61
62
|
/* @__PURE__ */ e(
|
|
62
|
-
|
|
63
|
+
F,
|
|
63
64
|
{
|
|
64
|
-
selectedFilter:
|
|
65
|
-
onSelectedFilterChange:
|
|
65
|
+
selectedFilter: x,
|
|
66
|
+
onSelectedFilterChange: N,
|
|
66
67
|
savedFilters: p,
|
|
67
68
|
recentFilters: c,
|
|
68
69
|
onApplySavedFilter: o,
|
|
69
70
|
onSavedFilterSearch: f,
|
|
70
71
|
onSavedFiltersScroll: h,
|
|
71
|
-
onDropdownOpenChange:
|
|
72
|
-
isLoadingFilterPreferencesList:
|
|
72
|
+
onDropdownOpenChange: g,
|
|
73
|
+
isLoadingFilterPreferencesList: v
|
|
73
74
|
}
|
|
74
75
|
),
|
|
75
76
|
/* @__PURE__ */ e("div", { className: "h-4 w-[1px] bg-[#e6e8f0] mx-1 shrink-0" }),
|
|
76
77
|
/* @__PURE__ */ e(
|
|
77
|
-
|
|
78
|
+
S,
|
|
78
79
|
{
|
|
79
80
|
filters: l,
|
|
80
81
|
onFilterRemove: m,
|
|
82
|
+
onOverflowClick: w,
|
|
81
83
|
onViewAll: d
|
|
82
84
|
}
|
|
83
85
|
),
|
|
84
86
|
/* @__PURE__ */ e("div", { className: "h-4 w-[1px] bg-[#e6e8f0] mx-1 shrink-0" }),
|
|
85
87
|
/* @__PURE__ */ i(
|
|
86
|
-
|
|
88
|
+
b,
|
|
87
89
|
{
|
|
88
90
|
variant: "tertiary",
|
|
89
91
|
onClick: n,
|
|
90
92
|
"data-component": "filter-strip-all-filters",
|
|
91
93
|
children: [
|
|
92
|
-
/* @__PURE__ */ e(
|
|
94
|
+
/* @__PURE__ */ e(u, { className: "h-4 w-4" }),
|
|
93
95
|
s("filterStrip.allFilters")
|
|
94
96
|
]
|
|
95
97
|
}
|
|
@@ -99,5 +101,5 @@ const T = ({
|
|
|
99
101
|
);
|
|
100
102
|
};
|
|
101
103
|
export {
|
|
102
|
-
|
|
104
|
+
q as FilterStrip
|
|
103
105
|
};
|
|
@@ -111,8 +111,8 @@ const O = ({
|
|
|
111
111
|
) : (
|
|
112
112
|
// Client-side overflow: Popover
|
|
113
113
|
/* @__PURE__ */ o(k, { children: [
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */ r(u, { asChild: !0, children: /* @__PURE__ */ r(
|
|
114
|
+
/* @__PURE__ */ o(v, { children: [
|
|
115
|
+
/* @__PURE__ */ r(u, { asChild: !0, children: /* @__PURE__ */ r(S, { asChild: !0, children: /* @__PURE__ */ r(
|
|
116
116
|
b,
|
|
117
117
|
{
|
|
118
118
|
variant: "secondary",
|
|
@@ -121,12 +121,12 @@ const O = ({
|
|
|
121
121
|
className: "whitespace-nowrap bg-[#eceefd] text-[#4259ee] hover:bg-[#dce1fc] border-0 h-6 px-2 text-xs font-medium font-['Manrope'] cursor-pointer",
|
|
122
122
|
children: w
|
|
123
123
|
}
|
|
124
|
-
) }),
|
|
124
|
+
) }) }),
|
|
125
125
|
/* @__PURE__ */ o(f, { variant: "tertiary", side: "top", children: [
|
|
126
126
|
t.length,
|
|
127
127
|
" more filters"
|
|
128
128
|
] })
|
|
129
|
-
] })
|
|
129
|
+
] }),
|
|
130
130
|
/* @__PURE__ */ r(
|
|
131
131
|
O,
|
|
132
132
|
{
|