impact-nova 1.3.0 → 1.5.2
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/README.md +49 -0
- package/dist/components/layout/dashboard-layout.d.ts +15 -1
- package/dist/components/ui/accordion-nested-list/accordion-nested-list.js +65 -64
- package/dist/components/ui/accordion.js +38 -34
- package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +1 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/cell-renderer-utils.d.ts +58 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/cell-renderer-utils.js +104 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +62 -54
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +4 -6
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +54 -68
- package/dist/components/ui/ag-grid-react/cell-renderers/index.d.ts +3 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/index.js +33 -27
- package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.d.ts +3 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +28 -12
- package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.d.ts +2 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +45 -44
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.d.ts +4 -6
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +23 -37
- package/dist/components/ui/ag-grid-react/cell-renderers/types.d.ts +33 -17
- package/dist/components/ui/ag-grid-react/editable-utils.d.ts +27 -0
- package/dist/components/ui/ag-grid-react/editable-utils.js +62 -0
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +99 -98
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +110 -143
- package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +72 -69
- package/dist/components/ui/ag-grid-react/headers/components/header-info.js +36 -35
- package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +14 -12
- package/dist/components/ui/ag-grid-react/headers/custom-header.js +111 -110
- package/dist/components/ui/ag-grid-react/headers/header-search-input.js +204 -203
- package/dist/components/ui/alert.js +62 -58
- package/dist/components/ui/breadcrumb.js +81 -74
- package/dist/components/ui/calendar.js +354 -354
- package/dist/components/ui/chart/chart.js +63 -62
- package/dist/components/ui/chips.js +42 -38
- package/dist/components/ui/command-palette/command-palette-context.d.ts +52 -0
- package/dist/components/ui/command-palette/command-palette-context.js +110 -0
- package/dist/components/ui/command-palette/command-palette.d.ts +67 -0
- package/dist/components/ui/command-palette/command-palette.js +402 -0
- package/dist/components/ui/command-palette/index.d.ts +23 -0
- package/dist/components/ui/command-palette/index.js +44 -0
- package/dist/components/ui/command-palette/kbd.d.ts +28 -0
- package/dist/components/ui/command-palette/kbd.js +52 -0
- package/dist/components/ui/command-palette/shortcut-registry.d.ts +68 -0
- package/dist/components/ui/command-palette/shortcut-registry.js +183 -0
- package/dist/components/ui/command-palette/shortcut-scope-provider.d.ts +55 -0
- package/dist/components/ui/command-palette/shortcut-scope-provider.js +55 -0
- package/dist/components/ui/command-palette/shortcut-settings.d.ts +27 -0
- package/dist/components/ui/command-palette/shortcut-settings.js +266 -0
- package/dist/components/ui/command-palette/use-browser-shortcuts.d.ts +32 -0
- package/dist/components/ui/command-palette/use-browser-shortcuts.js +48 -0
- package/dist/components/ui/command-palette/use-global-shortcut.d.ts +3 -0
- package/dist/components/ui/command-palette/use-global-shortcut.js +7 -0
- package/dist/components/ui/command-palette/use-shortcut.d.ts +47 -0
- package/dist/components/ui/command-palette/use-shortcut.js +49 -0
- package/dist/components/ui/command-palette/utils.d.ts +119 -0
- package/dist/components/ui/command-palette/utils.js +248 -0
- package/dist/components/ui/data-table/data-table-column-list.js +87 -86
- package/dist/components/ui/data-table/data-table-format-options.js +45 -44
- package/dist/components/ui/data-table/data-table-view-options.js +39 -38
- package/dist/components/ui/date-picker/date-picker.js +89 -87
- package/dist/components/ui/date-picker/date-range-picker.js +140 -138
- package/dist/components/ui/date-picker/month-picker.js +82 -81
- package/dist/components/ui/date-picker/month-range-picker.js +108 -105
- package/dist/components/ui/date-picker/multi-date-picker.js +68 -66
- package/dist/components/ui/date-picker/multi-month-picker.js +59 -58
- package/dist/components/ui/date-picker/multi-week-picker.js +80 -78
- package/dist/components/ui/date-picker/week-picker.js +117 -115
- package/dist/components/ui/date-picker/week-range-picker.js +166 -164
- package/dist/components/ui/dialog.js +78 -73
- package/dist/components/ui/drawer.js +71 -66
- package/dist/components/ui/file-upload.js +131 -127
- package/dist/components/ui/filter-panel/filter-panel.js +98 -94
- package/dist/components/ui/filter-strip/filter-strip.js +95 -91
- package/dist/components/ui/filter-strip/filter-summary.js +91 -90
- package/dist/components/ui/header.js +57 -53
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +78 -76
- package/dist/components/ui/loader.js +17 -16
- package/dist/components/ui/nested-list/components/NestedListHeader.d.ts +1 -0
- package/dist/components/ui/nested-list/components/NestedListHeader.js +51 -48
- package/dist/components/ui/nested-list/components/SortableItem.js +60 -59
- package/dist/components/ui/nested-list/nested-list.js +184 -182
- package/dist/components/ui/notification-panel/notification-panel.js +60 -53
- package/dist/components/ui/popover.js +45 -40
- package/dist/components/ui/prompt.js +90 -86
- package/dist/components/ui/select/select.js +206 -209
- package/dist/components/ui/sheet.d.ts +1 -0
- package/dist/components/ui/sheet.js +50 -48
- package/dist/components/ui/sidebar.js +273 -267
- package/dist/components/ui/stepper.js +75 -63
- package/dist/components/ui/tag.js +48 -44
- package/dist/components/ui/toast.js +46 -41
- package/dist/i18n/ImpactNovaI18nContext.d.ts +21 -0
- package/dist/i18n/ImpactNovaI18nContext.js +76 -0
- package/dist/i18n/defaultMessages.d.ts +231 -0
- package/dist/i18n/defaultMessages.js +206 -0
- package/dist/i18n/getDateFnsLocale.d.ts +11 -0
- package/dist/i18n/getDateFnsLocale.js +21 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/locales/de.d.ts +2 -0
- package/dist/i18n/locales/de.js +206 -0
- package/dist/i18n/locales/es.d.ts +2 -0
- package/dist/i18n/locales/es.js +206 -0
- package/dist/i18n/locales/hi.d.ts +2 -0
- package/dist/i18n/locales/hi.js +206 -0
- package/dist/i18n/locales/index.d.ts +4 -0
- package/dist/i18n/locales/kn.d.ts +2 -0
- package/dist/i18n/locales/kn.js +206 -0
- package/dist/icons/assets/boxAdd.svg.js +5 -0
- package/dist/icons/assets/boxed.svg.js +5 -0
- package/dist/icons/assets/trolley.svg.js +5 -0
- package/dist/icons/assets/unlocked.svg.js +5 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +179 -171
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +232 -172
- package/package.json +36 -4
- package/dist/components/ui/ag-grid-react/cell-renderers/types.js +0 -74
|
@@ -1,76 +1,77 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { ChevronDown as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Popover as
|
|
6
|
-
import { Tooltip as m, TooltipTrigger as
|
|
7
|
-
import { Button as
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { ChevronDown as V, Search as Y } from "lucide-react";
|
|
4
|
+
import { cn as y } from "../../../lib/utils.js";
|
|
5
|
+
import { Popover as q, PopoverTrigger as H, PopoverContent as J } from "../popover.js";
|
|
6
|
+
import { Tooltip as m, TooltipTrigger as h, TooltipContent as u } from "../tooltip.js";
|
|
7
|
+
import { Button as S } from "../button.js";
|
|
8
8
|
import { Separator as C } from "../separator.js";
|
|
9
|
-
import { Tabs as
|
|
10
|
-
import { Input as
|
|
11
|
-
import { Badge as
|
|
12
|
-
import { Skeleton as
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import { Tabs as K, TabsList as U, TabsTrigger as N } from "../tabs.js";
|
|
10
|
+
import { Input as W } from "../input.js";
|
|
11
|
+
import { Badge as X } from "../badge.js";
|
|
12
|
+
import { Skeleton as Z } from "../skeleton.js";
|
|
13
|
+
import { useImpactNovaI18n as $ } from "../../../i18n/ImpactNovaI18nContext.js";
|
|
14
|
+
const fe = ({
|
|
15
|
+
selectedFilter: c,
|
|
15
16
|
onSelectedFilterChange: w,
|
|
16
|
-
savedFilters:
|
|
17
|
-
recentFilters:
|
|
18
|
-
onApplySavedFilter:
|
|
19
|
-
onSavedFilterSearch:
|
|
20
|
-
onSavedFiltersScroll:
|
|
17
|
+
savedFilters: T,
|
|
18
|
+
recentFilters: x,
|
|
19
|
+
onApplySavedFilter: k,
|
|
20
|
+
onSavedFilterSearch: f,
|
|
21
|
+
onSavedFiltersScroll: P,
|
|
21
22
|
onDropdownOpenChange: A,
|
|
22
|
-
isLoadingFilterPreferencesList:
|
|
23
|
+
isLoadingFilterPreferencesList: j = !1
|
|
23
24
|
}) => {
|
|
24
|
-
const [
|
|
25
|
-
|
|
26
|
-
}, [
|
|
27
|
-
|
|
25
|
+
const { t: r } = $(), [p, v] = s.useState(!1), I = (a) => {
|
|
26
|
+
v(a), A?.(a);
|
|
27
|
+
}, [b, M] = s.useState(""), [d, O] = s.useState(""), [n, G] = s.useState("All"), [i, g] = s.useState(null);
|
|
28
|
+
s.useEffect(() => {
|
|
28
29
|
const a = setTimeout(() => {
|
|
29
|
-
|
|
30
|
+
O(b);
|
|
30
31
|
}, 300);
|
|
31
32
|
return () => clearTimeout(a);
|
|
32
|
-
}, [
|
|
33
|
-
|
|
34
|
-
}, [
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
const
|
|
33
|
+
}, [b]), s.useEffect(() => {
|
|
34
|
+
f && f(d, n === "All" ? void 0 : n);
|
|
35
|
+
}, [d, n, f]), s.useEffect(() => {
|
|
36
|
+
p && g({ label: c });
|
|
37
|
+
}, [p, c]);
|
|
38
|
+
const L = (a) => {
|
|
38
39
|
M(a.target.value);
|
|
39
|
-
}, L = () => {
|
|
40
|
-
s && (w?.(s.label), s.savedItem && T?.(s.savedItem), x(!1));
|
|
41
40
|
}, Q = () => {
|
|
42
|
-
|
|
43
|
-
}, _ = () =>
|
|
41
|
+
i && (w?.(i.label), i.savedItem && k?.(i.savedItem), v(!1));
|
|
42
|
+
}, _ = () => {
|
|
43
|
+
v(!1);
|
|
44
|
+
}, E = () => !x || x.length === 0 ? null : /* @__PURE__ */ t("div", { className: "flex flex-col", children: [
|
|
44
45
|
/* @__PURE__ */ e("div", { className: "px-1 py-[6px] text-xs font-medium text-[#60697d] font-['Manrope']", children: "Recent" }),
|
|
45
|
-
/* @__PURE__ */ e("div", { className: "mb-[6px] flex flex-col", children:
|
|
46
|
-
const
|
|
46
|
+
/* @__PURE__ */ e("div", { className: "mb-[6px] flex flex-col", children: x.map((a, l) => {
|
|
47
|
+
const o = a.map((z) => z.label).join(", "), D = i?.label === o;
|
|
47
48
|
return /* @__PURE__ */ e(
|
|
48
49
|
"div",
|
|
49
50
|
{
|
|
50
|
-
className:
|
|
51
|
+
className: y(
|
|
51
52
|
"flex cursor-pointer flex-row px-3 py-2 rounded-lg hover:bg-[#f5f6fa]",
|
|
52
|
-
|
|
53
|
+
D && "bg-[#edf0ff]"
|
|
53
54
|
),
|
|
54
|
-
onClick: () =>
|
|
55
|
+
onClick: () => g({ label: o }),
|
|
55
56
|
children: /* @__PURE__ */ t(m, { children: [
|
|
56
|
-
/* @__PURE__ */ e(
|
|
57
|
-
/* @__PURE__ */ e(
|
|
57
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "text-sm font-['Manrope'] truncate text-[#1f2b4d]", children: o }) }),
|
|
58
|
+
/* @__PURE__ */ e(u, { variant: "tertiary", side: "right", children: o })
|
|
58
59
|
] })
|
|
59
60
|
},
|
|
60
61
|
l
|
|
61
62
|
);
|
|
62
63
|
}) }),
|
|
63
64
|
/* @__PURE__ */ e(C, { className: "mb-2" })
|
|
64
|
-
] }),
|
|
65
|
-
if (
|
|
66
|
-
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((l) => /* @__PURE__ */ e(
|
|
67
|
-
let a =
|
|
68
|
-
(l) =>
|
|
65
|
+
] }), R = () => {
|
|
66
|
+
if (j)
|
|
67
|
+
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((l) => /* @__PURE__ */ e(Z, { className: "h-9 w-full rounded-lg" }, l)) });
|
|
68
|
+
let a = T?.filter(
|
|
69
|
+
(l) => n === "All" || l.type === n
|
|
69
70
|
);
|
|
70
|
-
if (!
|
|
71
|
+
if (!f && d && (a = a?.filter((l) => l.label.toLowerCase().includes(d.toLowerCase()))), !a || a.length === 0) {
|
|
71
72
|
let l = "No saved filters found";
|
|
72
|
-
if (!!
|
|
73
|
-
switch (
|
|
73
|
+
if (!!d)
|
|
74
|
+
switch (n) {
|
|
74
75
|
case "Personal":
|
|
75
76
|
l = "No personal filters match your search";
|
|
76
77
|
break;
|
|
@@ -81,7 +82,7 @@ const oe = ({
|
|
|
81
82
|
l = "No saved filters match your search";
|
|
82
83
|
}
|
|
83
84
|
else
|
|
84
|
-
switch (
|
|
85
|
+
switch (n) {
|
|
85
86
|
case "Personal":
|
|
86
87
|
l = "You haven't created any personal filters yet.";
|
|
87
88
|
break;
|
|
@@ -97,20 +98,20 @@ const oe = ({
|
|
|
97
98
|
"div",
|
|
98
99
|
{
|
|
99
100
|
className: "flex max-h-[160px] flex-col overflow-y-auto",
|
|
100
|
-
onScroll:
|
|
101
|
+
onScroll: P,
|
|
101
102
|
children: a.map((l) => {
|
|
102
|
-
const
|
|
103
|
+
const o = i?.label === l.label;
|
|
103
104
|
return /* @__PURE__ */ e(
|
|
104
105
|
"div",
|
|
105
106
|
{
|
|
106
|
-
className:
|
|
107
|
+
className: y(
|
|
107
108
|
"mb-1 flex justify-between cursor-pointer rounded-lg px-3 py-2 text-sm font-medium font-['Manrope'] hover:bg-[#f5f6fa]",
|
|
108
|
-
|
|
109
|
+
o ? "bg-[#edf0ff]" : "text-[#1f2b4d]"
|
|
109
110
|
),
|
|
110
|
-
onClick: () =>
|
|
111
|
+
onClick: () => g({ label: l.label, savedItem: l }),
|
|
111
112
|
children: /* @__PURE__ */ t(m, { children: [
|
|
112
|
-
/* @__PURE__ */ e(
|
|
113
|
-
/* @__PURE__ */ e(
|
|
113
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "truncate", children: l.label }) }),
|
|
114
|
+
/* @__PURE__ */ e(u, { variant: "tertiary", side: "right", children: l.label })
|
|
114
115
|
] })
|
|
115
116
|
},
|
|
116
117
|
l.id
|
|
@@ -118,71 +119,71 @@ const oe = ({
|
|
|
118
119
|
})
|
|
119
120
|
}
|
|
120
121
|
);
|
|
121
|
-
},
|
|
122
|
-
return /* @__PURE__ */ t(
|
|
123
|
-
/* @__PURE__ */ e(
|
|
124
|
-
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-[#60697d] font-['Manrope']", children: "
|
|
122
|
+
}, B = i?.label !== c;
|
|
123
|
+
return /* @__PURE__ */ t(q, { open: p, onOpenChange: I, children: [
|
|
124
|
+
/* @__PURE__ */ e(H, { asChild: !0, children: /* @__PURE__ */ t("div", { className: "flex cursor-pointer items-center gap-2", children: [
|
|
125
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium text-[#60697d] font-['Manrope']", children: r("filterStrip.filtersApplied") }),
|
|
125
126
|
/* @__PURE__ */ t(m, { children: [
|
|
126
|
-
/* @__PURE__ */ e(
|
|
127
|
-
|
|
127
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(
|
|
128
|
+
X,
|
|
128
129
|
{
|
|
129
130
|
color: "primary",
|
|
130
131
|
variant: "outline",
|
|
131
132
|
className: "font-['Manrope'] max-w-[140px] truncate",
|
|
132
|
-
children:
|
|
133
|
+
children: c || r("filterStrip.notSelected")
|
|
133
134
|
}
|
|
134
135
|
) }),
|
|
135
|
-
/* @__PURE__ */ e(
|
|
136
|
+
/* @__PURE__ */ e(u, { variant: "tertiary", side: "top", children: c || r("filterStrip.notSelected") })
|
|
136
137
|
] }),
|
|
137
138
|
/* @__PURE__ */ t(m, { children: [
|
|
138
|
-
/* @__PURE__ */ e(
|
|
139
|
+
/* @__PURE__ */ e(h, { asChild: !0, children: /* @__PURE__ */ e(
|
|
139
140
|
"div",
|
|
140
141
|
{
|
|
141
|
-
className:
|
|
142
|
+
className: y(
|
|
142
143
|
"flex h-8 w-8 items-center justify-center rounded-lg bg-[#f5f6fa] transition-transform duration-200",
|
|
143
|
-
|
|
144
|
+
p && "rotate-180"
|
|
144
145
|
),
|
|
145
|
-
children: /* @__PURE__ */ e(
|
|
146
|
+
children: /* @__PURE__ */ e(V, { className: "h-4 w-4 text-[#1f2b4d]" })
|
|
146
147
|
}
|
|
147
148
|
) }),
|
|
148
|
-
/* @__PURE__ */ e(
|
|
149
|
+
/* @__PURE__ */ e(u, { variant: "tertiary", side: "top", children: r("filterStrip.selectFilter") })
|
|
149
150
|
] })
|
|
150
151
|
] }) }),
|
|
151
152
|
/* @__PURE__ */ e(
|
|
152
|
-
|
|
153
|
+
J,
|
|
153
154
|
{
|
|
154
155
|
align: "start",
|
|
155
156
|
className: "w-[280px] p-0 shadow-[0_0_4px_0_rgba(0,0,0,0.12)]",
|
|
156
157
|
sideOffset: 8,
|
|
157
158
|
children: /* @__PURE__ */ t("div", { className: "flex w-full flex-col py-[8px] px-[6px]", children: [
|
|
158
|
-
|
|
159
|
+
E(),
|
|
159
160
|
/* @__PURE__ */ t("div", { className: "flex flex-col", children: [
|
|
160
|
-
/* @__PURE__ */ e("div", { className: "px-1 py-[6px] text-xs font-medium text-[#60697d] font-['Manrope']", children: "
|
|
161
|
+
/* @__PURE__ */ e("div", { className: "px-1 py-[6px] text-xs font-medium text-[#60697d] font-['Manrope']", children: r("filterStrip.savedFilters") }),
|
|
161
162
|
/* @__PURE__ */ t(
|
|
162
|
-
|
|
163
|
+
K,
|
|
163
164
|
{
|
|
164
|
-
value:
|
|
165
|
-
onValueChange: (a) =>
|
|
165
|
+
value: n,
|
|
166
|
+
onValueChange: (a) => G(a),
|
|
166
167
|
variant: "outline",
|
|
167
168
|
size: "sm",
|
|
168
169
|
className: "w-full px-1",
|
|
169
170
|
children: [
|
|
170
|
-
/* @__PURE__ */ e("div", { className: "py-[8px]", children: /* @__PURE__ */ t(
|
|
171
|
+
/* @__PURE__ */ e("div", { className: "py-[8px]", children: /* @__PURE__ */ t(U, { children: [
|
|
171
172
|
/* @__PURE__ */ e(N, { value: "All", children: "All" }),
|
|
172
173
|
/* @__PURE__ */ e(N, { value: "Global", children: "Global" }),
|
|
173
174
|
/* @__PURE__ */ e(N, { value: "Personal", children: "Personal" })
|
|
174
175
|
] }) }),
|
|
175
176
|
/* @__PURE__ */ e("div", { className: "pb-[8px]", children: /* @__PURE__ */ e(
|
|
176
|
-
|
|
177
|
+
W,
|
|
177
178
|
{
|
|
178
|
-
prefix: /* @__PURE__ */ e(
|
|
179
|
-
placeholder: "
|
|
180
|
-
value:
|
|
181
|
-
onChange:
|
|
179
|
+
prefix: /* @__PURE__ */ e(Y, { className: "h-4 w-4 text-gray-500" }),
|
|
180
|
+
placeholder: r("filterStrip.searchFiltersPlaceholder"),
|
|
181
|
+
value: b,
|
|
182
|
+
onChange: L,
|
|
182
183
|
className: "h-9 px-1 border-none shadow-none focus-visible:ring-0"
|
|
183
184
|
}
|
|
184
185
|
) }),
|
|
185
|
-
/* @__PURE__ */ e("div", { className: "mt-0", children:
|
|
186
|
+
/* @__PURE__ */ e("div", { className: "mt-0", children: R() })
|
|
186
187
|
]
|
|
187
188
|
}
|
|
188
189
|
)
|
|
@@ -190,20 +191,20 @@ const oe = ({
|
|
|
190
191
|
/* @__PURE__ */ e(C, { className: "my-2" }),
|
|
191
192
|
/* @__PURE__ */ t("div", { className: "flex justify-end gap-2 px-3 pb-1", children: [
|
|
192
193
|
/* @__PURE__ */ e(
|
|
193
|
-
|
|
194
|
+
S,
|
|
194
195
|
{
|
|
195
196
|
variant: "secondary",
|
|
196
|
-
onClick:
|
|
197
|
-
children: "
|
|
197
|
+
onClick: _,
|
|
198
|
+
children: r("prompt.cancel")
|
|
198
199
|
}
|
|
199
200
|
),
|
|
200
201
|
/* @__PURE__ */ e(
|
|
201
|
-
|
|
202
|
+
S,
|
|
202
203
|
{
|
|
203
204
|
variant: "default",
|
|
204
|
-
onClick:
|
|
205
|
-
disabled: !
|
|
206
|
-
children: "
|
|
205
|
+
onClick: Q,
|
|
206
|
+
disabled: !B,
|
|
207
|
+
children: r("filterStrip.applyFilter")
|
|
207
208
|
}
|
|
208
209
|
)
|
|
209
210
|
] })
|
|
@@ -213,5 +214,5 @@ const oe = ({
|
|
|
213
214
|
] });
|
|
214
215
|
};
|
|
215
216
|
export {
|
|
216
|
-
|
|
217
|
+
fe as FilterSummary
|
|
217
218
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
1
|
+
import { jsx as i, jsxs as c, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { cn as s } from "../../lib/utils.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { Separator as
|
|
6
|
-
import { Alan as
|
|
4
|
+
import { Button as f } from "./button.js";
|
|
5
|
+
import { Separator as m } from "./separator.js";
|
|
6
|
+
import { Alan as p, IA as x, Bell as h } from "../../icons/index.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
|
|
8
|
+
import { useImpactNovaI18n as N } from "../../i18n/ImpactNovaI18nContext.js";
|
|
9
|
+
const u = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
|
|
9
10
|
"header",
|
|
10
11
|
{
|
|
11
12
|
ref: r,
|
|
@@ -17,8 +18,8 @@ const h = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__
|
|
|
17
18
|
children: e
|
|
18
19
|
}
|
|
19
20
|
));
|
|
20
|
-
|
|
21
|
-
const
|
|
21
|
+
u.displayName = "Header";
|
|
22
|
+
const w = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
|
|
22
23
|
"div",
|
|
23
24
|
{
|
|
24
25
|
ref: r,
|
|
@@ -27,8 +28,8 @@ const N = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__
|
|
|
27
28
|
children: e
|
|
28
29
|
}
|
|
29
30
|
));
|
|
30
|
-
|
|
31
|
-
const
|
|
31
|
+
w.displayName = "HeaderLeft";
|
|
32
|
+
const g = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
34
35
|
ref: r,
|
|
@@ -37,20 +38,20 @@ const u = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__
|
|
|
37
38
|
children: e
|
|
38
39
|
}
|
|
39
40
|
));
|
|
40
|
-
|
|
41
|
-
const
|
|
41
|
+
g.displayName = "HeaderRight";
|
|
42
|
+
const y = o.forwardRef(({ className: t, children: e, href: a = "/", ...r }, n) => /* @__PURE__ */ i(
|
|
42
43
|
"a",
|
|
43
44
|
{
|
|
44
45
|
href: a,
|
|
45
46
|
ref: n,
|
|
46
47
|
className: s("h-9 flex items-center justify-center cursor-pointer", t),
|
|
47
48
|
...r,
|
|
48
|
-
children: e || /* @__PURE__ */ i(
|
|
49
|
+
children: e || /* @__PURE__ */ i(x, { width: 91, height: 36 })
|
|
49
50
|
}
|
|
50
51
|
));
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
y.displayName = "HeaderLogo";
|
|
53
|
+
const v = o.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ i(
|
|
54
|
+
m,
|
|
54
55
|
{
|
|
55
56
|
ref: a,
|
|
56
57
|
orientation: "vertical",
|
|
@@ -58,8 +59,8 @@ const g = o.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ i(
|
|
|
58
59
|
...e
|
|
59
60
|
}
|
|
60
61
|
));
|
|
61
|
-
|
|
62
|
-
const
|
|
62
|
+
v.displayName = "HeaderSeparator";
|
|
63
|
+
const H = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
|
|
63
64
|
"h1",
|
|
64
65
|
{
|
|
65
66
|
ref: r,
|
|
@@ -71,8 +72,8 @@ const y = o.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__
|
|
|
71
72
|
children: e
|
|
72
73
|
}
|
|
73
74
|
));
|
|
74
|
-
|
|
75
|
-
const
|
|
75
|
+
H.displayName = "HeaderTitle";
|
|
76
|
+
const L = o.forwardRef(
|
|
76
77
|
({ className: t, children: e, ...a }, r) => /* @__PURE__ */ i(
|
|
77
78
|
"button",
|
|
78
79
|
{
|
|
@@ -83,44 +84,47 @@ const _ = o.forwardRef(
|
|
|
83
84
|
t
|
|
84
85
|
),
|
|
85
86
|
...a,
|
|
86
|
-
children: e || /* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */ i(
|
|
87
|
+
children: e || /* @__PURE__ */ c(l, { children: [
|
|
88
|
+
/* @__PURE__ */ i(p, { size: 20, className: "text-white" }),
|
|
88
89
|
/* @__PURE__ */ i("span", { className: "text-sm font-semibold leading-[20px] text-white whitespace-nowrap", children: "Ask Alan" })
|
|
89
90
|
] })
|
|
90
91
|
}
|
|
91
92
|
)
|
|
92
|
-
),
|
|
93
|
-
({ className: t, showIndicator: e, children: a, ...r }, n) =>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/* @__PURE__ */ i(
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
93
|
+
), b = o.forwardRef(
|
|
94
|
+
({ className: t, showIndicator: e, children: a, ...r }, n) => {
|
|
95
|
+
const { t: d } = N();
|
|
96
|
+
return /* @__PURE__ */ c(
|
|
97
|
+
f,
|
|
98
|
+
{
|
|
99
|
+
variant: "ghost",
|
|
100
|
+
size: "icon",
|
|
101
|
+
ref: n,
|
|
102
|
+
"aria-label": d("notificationPanel.title"),
|
|
103
|
+
"data-indicator": e ? "" : void 0,
|
|
104
|
+
className: s(
|
|
105
|
+
"text-gray-500 relative [&_svg]:size-6 hover:text-gray-900",
|
|
106
|
+
t
|
|
107
|
+
),
|
|
108
|
+
...r,
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ i(h, { size: 24 }),
|
|
111
|
+
e && /* @__PURE__ */ c("div", { className: "notification-indicator", children: [
|
|
112
|
+
/* @__PURE__ */ i("div", { className: "notification-pulse" }),
|
|
113
|
+
/* @__PURE__ */ i("div", { className: "notification-dot" })
|
|
114
|
+
] })
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
}
|
|
115
119
|
);
|
|
116
|
-
|
|
120
|
+
b.displayName = "NotificationIconButton";
|
|
117
121
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
u as Header,
|
|
123
|
+
L as HeaderBotButton,
|
|
124
|
+
w as HeaderLeft,
|
|
125
|
+
y as HeaderLogo,
|
|
126
|
+
g as HeaderRight,
|
|
127
|
+
v as HeaderSeparator,
|
|
128
|
+
H as HeaderTitle,
|
|
129
|
+
b as NotificationIconButton
|
|
126
130
|
};
|