impact-nova 1.5.14 → 1.6.0
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/accordion.d.ts +4 -1
- package/dist/components/ui/accordion.js +28 -22
- package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +11 -11
- package/dist/components/ui/ag-grid-react/cell-renderers/checkbox-display-renderer.js +12 -12
- package/dist/components/ui/ag-grid-react/cell-renderers/date-display-renderer.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/date-cell-editor.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +30 -30
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/percent-progress-cell-editor.js +13 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +16 -16
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +17 -17
- package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +11 -11
- package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -2
- package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +11 -13
- package/dist/components/ui/ag-grid-react/cell-renderers/select-display-renderer.js +8 -8
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +6 -6
- package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.d.ts +1 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/status-badge-renderer.js +14 -14
- package/dist/components/ui/ag-grid-react/cell-renderers/switch-display-renderer.js +18 -18
- package/dist/components/ui/ag-grid-react/cell-renderers/textarea-display-renderer.js +6 -6
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +14 -14
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +35 -35
- package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +49 -49
- package/dist/components/ui/ag-grid-react/headers/components/header-info.js +29 -29
- package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +9 -9
- package/dist/components/ui/ag-grid-react/headers/components/section-renderers.js +20 -20
- package/dist/components/ui/ag-grid-react/headers/custom-header-group.js +10 -10
- package/dist/components/ui/ag-grid-react/headers/custom-header.js +76 -76
- package/dist/components/ui/ag-grid-react/headers/header-search-input.js +118 -118
- package/dist/components/ui/ag-grid-react/index.js +121 -102
- package/dist/components/ui/alert-dialog.js +6 -6
- package/dist/components/ui/alert.d.ts +4 -3
- package/dist/components/ui/alert.js +182 -64
- package/dist/components/ui/avatar.js +5 -5
- package/dist/components/ui/badge.d.ts +7 -2
- package/dist/components/ui/badge.js +105 -32
- package/dist/components/ui/breadcrumb.js +26 -21
- package/dist/components/ui/button-group.d.ts +7 -0
- package/dist/components/ui/button-group.js +116 -91
- package/dist/components/ui/button-variants.d.ts +7 -2
- package/dist/components/ui/button-variants.js +31 -16
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +10 -10
- package/dist/components/ui/calendar.js +185 -184
- package/dist/components/ui/card.js +24 -24
- package/dist/components/ui/chart/chart.js +27 -27
- package/dist/components/ui/chart/chart.utils.js +50 -50
- package/dist/components/ui/checkbox.js +22 -22
- package/dist/components/ui/chips.d.ts +19 -3
- package/dist/components/ui/chips.js +140 -41
- package/dist/components/ui/command-palette/command-palette-layout.d.ts +28 -0
- package/dist/components/ui/command-palette/command-palette-layout.js +59 -0
- package/dist/components/ui/command-palette/command-palette.js +254 -264
- package/dist/components/ui/command-palette/index.d.ts +1 -1
- package/dist/components/ui/command-palette/index.js +42 -41
- package/dist/components/ui/command-palette/kbd.js +18 -18
- package/dist/components/ui/command-palette/shortcut-settings.d.ts +3 -3
- package/dist/components/ui/command-palette/shortcut-settings.js +105 -111
- package/dist/components/ui/command-palette/utils.d.ts +6 -1
- package/dist/components/ui/command-palette/utils.js +81 -74
- package/dist/components/ui/data-table/data-table-column-list.js +31 -31
- package/dist/components/ui/data-table/data-table-constants.d.ts +6 -0
- package/dist/components/ui/data-table/data-table-constants.js +4 -0
- package/dist/components/ui/data-table/data-table-context.d.ts +4 -0
- package/dist/components/ui/data-table/data-table-format-options.js +35 -35
- package/dist/components/ui/data-table/data-table-sheet.d.ts +4 -4
- package/dist/components/ui/data-table/data-table-sheet.js +91 -58
- package/dist/components/ui/data-table/data-table-view-options.js +29 -29
- package/dist/components/ui/data-table/data-table.js +84 -52
- package/dist/components/ui/data-table/index.d.ts +1 -0
- package/dist/components/ui/data-table/index.js +15 -13
- package/dist/components/ui/date-picker/date-picker.js +35 -35
- package/dist/components/ui/date-picker/date-range-picker.js +166 -164
- package/dist/components/ui/date-picker/month-picker.js +14 -14
- package/dist/components/ui/date-picker/month-range-picker.js +198 -189
- package/dist/components/ui/date-picker/multi-date-picker.js +14 -14
- package/dist/components/ui/date-picker/multi-month-picker.js +1 -1
- package/dist/components/ui/date-picker/multi-week-picker.js +1 -1
- package/dist/components/ui/date-picker/week-picker.js +2 -2
- package/dist/components/ui/date-picker/week-range-picker.js +164 -162
- package/dist/components/ui/dialog.js +25 -28
- package/dist/components/ui/drawer.js +40 -40
- package/dist/components/ui/dropdown-menu.js +72 -72
- package/dist/components/ui/empty-container.js +73 -69
- package/dist/components/ui/file-upload.js +137 -135
- package/dist/components/ui/filter-panel/filter-panel.d.ts +2 -2
- package/dist/components/ui/filter-panel/filter-panel.js +175 -97
- package/dist/components/ui/filter-strip/filter-strip.d.ts +1 -1
- package/dist/components/ui/filter-strip/filter-strip.js +63 -50
- package/dist/components/ui/filter-strip/filter-summary.d.ts +4 -1
- package/dist/components/ui/filter-strip/filter-summary.js +230 -146
- package/dist/components/ui/filter-strip/filter-tag-list.js +125 -91
- package/dist/components/ui/header.d.ts +7 -3
- package/dist/components/ui/header.js +87 -79
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +44 -44
- package/dist/components/ui/hover-card.js +10 -10
- package/dist/components/ui/input.js +79 -70
- package/dist/components/ui/loader.js +16 -16
- package/dist/components/ui/nested-list/components/NestedListCategoryFilters.js +16 -16
- package/dist/components/ui/nested-list/components/NestedListHeader.js +27 -27
- package/dist/components/ui/nested-list/components/SortableItem.js +58 -58
- package/dist/components/ui/notification-panel/notification-item.js +32 -32
- package/dist/components/ui/notification-panel/notification-list.js +24 -24
- package/dist/components/ui/notification-panel/notification-panel.js +26 -26
- package/dist/components/ui/popover.js +22 -22
- package/dist/components/ui/progress.js +34 -34
- package/dist/components/ui/prompt.js +48 -48
- package/dist/components/ui/radio-group.js +63 -54
- package/dist/components/ui/select/components/LabelWithSequence.js +6 -6
- package/dist/components/ui/select/components/Submenu.js +33 -33
- package/dist/components/ui/select/select.js +425 -376
- package/dist/components/ui/sheet.js +88 -66
- package/dist/components/ui/sidebar.js +342 -296
- package/dist/components/ui/skeleton.js +6 -6
- package/dist/components/ui/slider.js +17 -17
- package/dist/components/ui/statistics-card.d.ts +86 -0
- package/dist/components/ui/statistics-card.hooks.d.ts +150 -0
- package/dist/components/ui/statistics-card.hooks.js +100 -0
- package/dist/components/ui/statistics-card.js +259 -0
- package/dist/components/ui/stepper.js +51 -51
- package/dist/components/ui/switch.js +7 -7
- package/dist/components/ui/tabs.js +70 -70
- package/dist/components/ui/tag-group.d.ts +1 -0
- package/dist/components/ui/tag-group.js +14 -13
- package/dist/components/ui/tag.js +43 -43
- package/dist/components/ui/textarea.js +86 -58
- package/dist/components/ui/toast.js +39 -39
- package/dist/components/ui/tooltip.js +23 -23
- package/dist/components/ui/types/date-picker.types.d.ts +1 -0
- package/dist/components/ui/types/filter-panel.types.d.ts +3 -0
- package/dist/components/ui/types/filter-strip.types.d.ts +14 -0
- package/dist/components/ui/types/horizontal-scroller.types.d.ts +1 -1
- package/dist/components/ui/types/statistics-card.types.d.ts +1 -0
- package/dist/i18n/defaultMessages.d.ts +8 -0
- package/dist/i18n/defaultMessages.js +15 -9
- package/dist/i18n/locales/de.js +7 -1
- package/dist/i18n/locales/es.js +7 -1
- package/dist/i18n/locales/hi.js +7 -1
- package/dist/i18n/locales/kn.js +7 -1
- package/dist/icons/assets/bulk-edit.svg.js +5 -0
- package/dist/icons/assets/clock.svg.js +5 -0
- package/dist/icons/assets/statistics.svg.js +5 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.js +254 -206
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +361 -347
- package/package.json +3 -2
- package/tailwind.config.js +259 -152
- /package/dist/icons/assets/{PivotMode.svg.js → pivotMode.svg.js} +0 -0
|
@@ -1,139 +1,173 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { TagGroup as
|
|
5
|
-
import { Tag as
|
|
6
|
-
import { Tooltip as
|
|
7
|
-
import { Popover as
|
|
8
|
-
import { Button as
|
|
9
|
-
import { X as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import * as k from "react";
|
|
3
|
+
import T from "../horizontal-scroller/horizontal-scroller.js";
|
|
4
|
+
import { TagGroup as z } from "../tag-group.js";
|
|
5
|
+
import { Tag as y } from "../tag.js";
|
|
6
|
+
import { Tooltip as x, TooltipTrigger as f, TooltipContent as g } from "../tooltip.js";
|
|
7
|
+
import { Popover as j, PopoverTrigger as O, PopoverContent as I } from "../popover.js";
|
|
8
|
+
import { Button as P } from "../button.js";
|
|
9
|
+
import { X as V } from "lucide-react";
|
|
10
|
+
import { cn as i } from "../../../lib/utils.js";
|
|
11
|
+
const C = i(
|
|
12
|
+
"h-auto min-h-0 border-0 shadow-none",
|
|
13
|
+
"inline-flex items-center justify-start gap-2.5 rounded-lg bg-brand-subtle px-2 py-1.5",
|
|
14
|
+
"text-xs font-medium capitalize leading-4 font-['Manrope']",
|
|
15
|
+
"[&_[data-component=tag-remove]]:ml-0"
|
|
16
|
+
), A = i(
|
|
17
|
+
C,
|
|
18
|
+
"text-content",
|
|
19
|
+
"hover:bg-canvas-muted"
|
|
20
|
+
), N = i(
|
|
21
|
+
C,
|
|
22
|
+
"text-brand",
|
|
23
|
+
"hover:bg-brand-tint-hover"
|
|
24
|
+
), F = ({
|
|
25
|
+
remainingValues: n,
|
|
26
|
+
viewAllTrigger: l = "expand",
|
|
27
|
+
onViewAll: d,
|
|
28
|
+
onItemRemove: m,
|
|
29
|
+
isRemovable: w
|
|
16
30
|
}) => {
|
|
17
|
-
const [e,
|
|
18
|
-
|
|
31
|
+
const [e, p] = k.useState(!1), s = e ? n : n.slice(0, 3), h = n.length > 3, o = () => {
|
|
32
|
+
l === "custom" ? d?.() : p(!0);
|
|
19
33
|
};
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
|
|
34
|
+
return /* @__PURE__ */ t(
|
|
35
|
+
I,
|
|
22
36
|
{
|
|
23
|
-
className: "w-[200px] p-0 rounded-[8px] bg-
|
|
37
|
+
className: "w-[200px] p-0 rounded-[8px] bg-canvas-elevated shadow-elevation-floating border-none",
|
|
24
38
|
align: "start",
|
|
25
39
|
sideOffset: 8,
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
children: /* @__PURE__ */ r("div", { className: "flex flex-col py-2 px-[6px]", children: [
|
|
41
|
+
/* @__PURE__ */ t(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: `flex flex-col gap-1 mb-2 ${e ? "max-h-[200px] overflow-y-auto" : ""}`,
|
|
45
|
+
children: s.map((a, v) => /* @__PURE__ */ r(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: "flex items-center justify-between text-[14px] font-medium leading-[20px] text-content px-3 py-2 overflow-hidden hover:bg-canvas-muted rounded group shrink-0",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ r(x, { children: [
|
|
51
|
+
/* @__PURE__ */ t(f, { asChild: !0, children: /* @__PURE__ */ t("span", { className: "truncate", children: String(a) }) }),
|
|
52
|
+
/* @__PURE__ */ t(g, { variant: "tertiary", side: "right", children: String(a) })
|
|
53
|
+
] }),
|
|
54
|
+
w && /* @__PURE__ */ t(
|
|
55
|
+
"button",
|
|
56
|
+
{
|
|
57
|
+
onClick: (u) => {
|
|
58
|
+
u.stopPropagation(), m(a);
|
|
59
|
+
},
|
|
60
|
+
className: "ml-2 flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-content-icon hover:bg-muted/60 hover:text-content-secondary opacity-0 group-hover:opacity-100 transition-opacity",
|
|
61
|
+
children: /* @__PURE__ */ t(V, { size: 12 })
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
]
|
|
37
65
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
j,
|
|
66
|
+
v
|
|
67
|
+
))
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
!e && h && /* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: [
|
|
71
|
+
/* @__PURE__ */ t("div", { className: "h-[1px] bg-stroke-hairline w-full" }),
|
|
72
|
+
/* @__PURE__ */ t(
|
|
73
|
+
P,
|
|
47
74
|
{
|
|
48
75
|
variant: "secondary",
|
|
49
|
-
size: "sm",
|
|
50
76
|
className: "w-full justify-center",
|
|
51
|
-
onClick:
|
|
52
|
-
children:
|
|
77
|
+
onClick: o,
|
|
78
|
+
children: l === "custom" ? "View all" : `View all (${n.length})`
|
|
53
79
|
}
|
|
54
80
|
)
|
|
55
81
|
] })
|
|
56
82
|
] })
|
|
57
83
|
}
|
|
58
84
|
);
|
|
59
|
-
},
|
|
60
|
-
filters:
|
|
61
|
-
onFilterRemove:
|
|
62
|
-
onOverflowClick:
|
|
63
|
-
onViewAll:
|
|
64
|
-
}) => /* @__PURE__ */
|
|
65
|
-
|
|
85
|
+
}, X = ({
|
|
86
|
+
filters: n,
|
|
87
|
+
onFilterRemove: l,
|
|
88
|
+
onOverflowClick: d,
|
|
89
|
+
onViewAll: m
|
|
90
|
+
}) => /* @__PURE__ */ t("div", { className: "flex flex-1 items-center min-w-0", children: /* @__PURE__ */ t(
|
|
91
|
+
T,
|
|
66
92
|
{
|
|
67
|
-
items:
|
|
68
|
-
renderItem: (e,
|
|
69
|
-
const s = Array.isArray(e.value) ? e.value : [e.value],
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
93
|
+
items: n,
|
|
94
|
+
renderItem: (e, p) => {
|
|
95
|
+
const s = Array.isArray(e.value) ? e.value : [e.value], h = s.slice(0, 2), o = s.slice(2), a = !!e.overflow, v = e.overflow?.label ? e.overflow.label : e.overflow?.count ? `+${e.overflow.count}` : null, u = o.length > 0, S = a || u, b = `+${o.length}`;
|
|
96
|
+
return /* @__PURE__ */ r("div", { className: "flex items-center px-1", children: [
|
|
97
|
+
p > 0 && /* @__PURE__ */ t("div", { className: "mx-3 h-4 w-[1px] bg-stroke-hairline shrink-0" }),
|
|
98
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
|
|
99
|
+
/* @__PURE__ */ r("span", { className: "text-xs font-medium leading-[21px] text-content-tertiary whitespace-nowrap", children: [
|
|
74
100
|
e.label,
|
|
75
|
-
e.required && /* @__PURE__ */
|
|
101
|
+
e.required && /* @__PURE__ */ t("span", { className: "text-validation ml-0.5", children: "*" })
|
|
76
102
|
] }),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
103
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-1", children: [
|
|
104
|
+
/* @__PURE__ */ t(
|
|
105
|
+
z,
|
|
80
106
|
{
|
|
81
|
-
spacing: "
|
|
82
|
-
|
|
83
|
-
|
|
107
|
+
spacing: "none",
|
|
108
|
+
className: "gap-2.5",
|
|
109
|
+
tags: h.map((c) => ({
|
|
110
|
+
label: String(c),
|
|
84
111
|
variant: "secondary",
|
|
85
|
-
size: "
|
|
112
|
+
size: "sm",
|
|
86
113
|
shape: "rounded",
|
|
87
114
|
removable: e.removable,
|
|
88
|
-
onRemove: () =>
|
|
115
|
+
onRemove: () => l(e.id, c),
|
|
116
|
+
className: A
|
|
89
117
|
}))
|
|
90
118
|
}
|
|
91
119
|
),
|
|
92
|
-
|
|
120
|
+
S && (a ? (
|
|
93
121
|
// Server-side overflow: Simple tag, no popover
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
|
|
122
|
+
/* @__PURE__ */ r(x, { children: [
|
|
123
|
+
/* @__PURE__ */ t(f, { asChild: !0, children: /* @__PURE__ */ t(
|
|
124
|
+
y,
|
|
97
125
|
{
|
|
98
126
|
variant: "secondary",
|
|
99
|
-
size: "
|
|
127
|
+
size: "sm",
|
|
100
128
|
shape: "rounded",
|
|
101
|
-
className:
|
|
102
|
-
|
|
103
|
-
|
|
129
|
+
className: i(
|
|
130
|
+
N,
|
|
131
|
+
"cursor-pointer whitespace-nowrap"
|
|
132
|
+
),
|
|
133
|
+
onClick: () => d?.(e.id),
|
|
134
|
+
children: v || b
|
|
104
135
|
}
|
|
105
136
|
) }),
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
e.overflow?.count ||
|
|
137
|
+
/* @__PURE__ */ r(g, { variant: "tertiary", side: "top", children: [
|
|
138
|
+
e.overflow?.count || o.length,
|
|
108
139
|
" more filters"
|
|
109
140
|
] })
|
|
110
141
|
] })
|
|
111
142
|
) : (
|
|
112
143
|
// Client-side overflow: Popover
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
|
|
144
|
+
/* @__PURE__ */ r(j, { children: [
|
|
145
|
+
/* @__PURE__ */ r(x, { children: [
|
|
146
|
+
/* @__PURE__ */ t(f, { asChild: !0, children: /* @__PURE__ */ t(O, { asChild: !0, children: /* @__PURE__ */ t(
|
|
147
|
+
y,
|
|
117
148
|
{
|
|
118
149
|
variant: "secondary",
|
|
119
|
-
size: "
|
|
150
|
+
size: "sm",
|
|
120
151
|
shape: "rounded",
|
|
121
|
-
className:
|
|
122
|
-
|
|
152
|
+
className: i(
|
|
153
|
+
N,
|
|
154
|
+
"cursor-pointer whitespace-nowrap"
|
|
155
|
+
),
|
|
156
|
+
children: b
|
|
123
157
|
}
|
|
124
158
|
) }) }),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
|
|
159
|
+
/* @__PURE__ */ r(g, { variant: "tertiary", side: "top", children: [
|
|
160
|
+
o.length,
|
|
127
161
|
" more filters"
|
|
128
162
|
] })
|
|
129
163
|
] }),
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
|
|
164
|
+
/* @__PURE__ */ t(
|
|
165
|
+
F,
|
|
132
166
|
{
|
|
133
|
-
remainingValues:
|
|
167
|
+
remainingValues: o,
|
|
134
168
|
viewAllTrigger: e.viewAllTrigger,
|
|
135
|
-
onViewAll:
|
|
136
|
-
onItemRemove: (
|
|
169
|
+
onViewAll: m,
|
|
170
|
+
onItemRemove: (c) => l(e.id, c),
|
|
137
171
|
isRemovable: e.removable
|
|
138
172
|
}
|
|
139
173
|
)
|
|
@@ -148,5 +182,5 @@ const O = ({
|
|
|
148
182
|
}
|
|
149
183
|
) });
|
|
150
184
|
export {
|
|
151
|
-
|
|
185
|
+
X as FilterTagList
|
|
152
186
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KeyBinding } from './command-palette/utils';
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
declare const Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
3
4
|
declare const HeaderLeft: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,11 +6,14 @@ declare const HeaderRight: React.ForwardRefExoticComponent<React.HTMLAttributes<
|
|
|
5
6
|
declare const HeaderLogo: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement>>;
|
|
6
7
|
declare const HeaderSeparator: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-separator').SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
8
|
declare const HeaderTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
8
|
-
|
|
9
|
-
}
|
|
9
|
+
type HeaderBotButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
10
10
|
declare const HeaderBotButton: React.ForwardRefExoticComponent<HeaderBotButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
interface NotificationIconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
|
+
interface NotificationIconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
12
12
|
showIndicator?: boolean;
|
|
13
|
+
/** Passed through to the underlying icon `Button` tooltip. */
|
|
14
|
+
tooltipSide?: "top" | "bottom" | "left" | "right";
|
|
15
|
+
/** Keyboard shortcut shown in the tooltip next to the label (requires `aria-label`). */
|
|
16
|
+
tooltipKeybinding?: KeyBinding;
|
|
13
17
|
}
|
|
14
18
|
declare const NotificationIconButton: React.ForwardRefExoticComponent<NotificationIconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
19
|
export { Header, HeaderLeft, HeaderRight, HeaderLogo, HeaderSeparator, HeaderTitle, HeaderBotButton, NotificationIconButton, };
|
|
@@ -1,130 +1,138 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { Separator as
|
|
6
|
-
import { Alan as
|
|
1
|
+
import { jsx as o, jsxs as d, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { cn as n } from "../../lib/utils.js";
|
|
4
|
+
import { Button as m } from "./button.js";
|
|
5
|
+
import { Separator as p } from "./separator.js";
|
|
6
|
+
import { Alan as x, IA as h, Bell as N } from "../../icons/index.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { useImpactNovaI18n as
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
import { useImpactNovaI18n as u } from "../../i18n/ImpactNovaI18nContext.js";
|
|
9
|
+
const g = i.forwardRef(
|
|
10
|
+
({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
|
|
11
|
+
"header",
|
|
12
|
+
{
|
|
13
|
+
ref: r,
|
|
14
|
+
className: n(
|
|
15
|
+
"sticky top-0 z-40 flex h-14 w-full items-center justify-between bg-canvas-elevated px-6 shadow-elevation-header",
|
|
16
|
+
t
|
|
17
|
+
),
|
|
18
|
+
...a,
|
|
19
|
+
children: e
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
g.displayName = "Header";
|
|
24
|
+
const v = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
|
|
23
25
|
"div",
|
|
24
26
|
{
|
|
25
27
|
ref: r,
|
|
26
|
-
className:
|
|
28
|
+
className: n("flex flex-row items-center justify-start", t),
|
|
27
29
|
...a,
|
|
28
30
|
children: e
|
|
29
31
|
}
|
|
30
32
|
));
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
+
v.displayName = "HeaderLeft";
|
|
34
|
+
const w = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
|
|
33
35
|
"div",
|
|
34
36
|
{
|
|
35
37
|
ref: r,
|
|
36
|
-
className:
|
|
38
|
+
className: n("flex flex-row items-center justify-start gap-5", t),
|
|
37
39
|
...a,
|
|
38
40
|
children: e
|
|
39
41
|
}
|
|
40
42
|
));
|
|
41
|
-
|
|
42
|
-
const y =
|
|
43
|
+
w.displayName = "HeaderRight";
|
|
44
|
+
const y = i.forwardRef(({ className: t, children: e, href: a = "/", ...r }, s) => /* @__PURE__ */ o(
|
|
43
45
|
"a",
|
|
44
46
|
{
|
|
45
47
|
href: a,
|
|
46
|
-
ref:
|
|
47
|
-
className:
|
|
48
|
+
ref: s,
|
|
49
|
+
className: n(
|
|
50
|
+
"h-9 flex items-center justify-center cursor-pointer",
|
|
51
|
+
t
|
|
52
|
+
),
|
|
48
53
|
...r,
|
|
49
|
-
children: e || /* @__PURE__ */
|
|
54
|
+
children: e || /* @__PURE__ */ o(h, { width: 91, height: 36 })
|
|
50
55
|
}
|
|
51
56
|
));
|
|
52
57
|
y.displayName = "HeaderLogo";
|
|
53
|
-
const
|
|
54
|
-
|
|
58
|
+
const H = i.forwardRef(({ className: t, ...e }, a) => /* @__PURE__ */ o(
|
|
59
|
+
p,
|
|
55
60
|
{
|
|
56
61
|
ref: a,
|
|
57
62
|
orientation: "vertical",
|
|
58
|
-
className:
|
|
63
|
+
className: n("h-6 mx-3", t),
|
|
59
64
|
...e
|
|
60
65
|
}
|
|
61
66
|
));
|
|
62
|
-
|
|
63
|
-
const
|
|
67
|
+
H.displayName = "HeaderSeparator";
|
|
68
|
+
const b = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
|
|
64
69
|
"h1",
|
|
65
70
|
{
|
|
66
71
|
ref: r,
|
|
67
|
-
className:
|
|
68
|
-
"text-base font-extrabold leading-6 text-foreground",
|
|
69
|
-
t
|
|
70
|
-
),
|
|
72
|
+
className: n("text-base font-extrabold leading-6 text-content", t),
|
|
71
73
|
...a,
|
|
72
74
|
children: e
|
|
73
75
|
}
|
|
74
76
|
));
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
77
|
+
b.displayName = "HeaderTitle";
|
|
78
|
+
const k = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__ */ o(
|
|
79
|
+
"button",
|
|
80
|
+
{
|
|
81
|
+
ref: r,
|
|
82
|
+
type: "button",
|
|
83
|
+
className: n(
|
|
84
|
+
"impact-header-bot-container relative flex items-center justify-center w-[106px] h-[34px] gap-[7px] px-[11px] py-0 rounded-lg cursor-pointer border-0 outline-none",
|
|
85
|
+
t
|
|
86
|
+
),
|
|
87
|
+
...a,
|
|
88
|
+
children: e || /* @__PURE__ */ d(f, { children: [
|
|
89
|
+
/* @__PURE__ */ o(x, { size: 20, className: "text-brand-foreground" }),
|
|
90
|
+
/* @__PURE__ */ o("span", { className: "text-sm font-semibold leading-[20px] text-brand-foreground whitespace-nowrap", children: "Ask Alan" })
|
|
91
|
+
] })
|
|
92
|
+
}
|
|
93
|
+
)), R = i.forwardRef(
|
|
94
|
+
({
|
|
95
|
+
className: t,
|
|
96
|
+
showIndicator: e,
|
|
97
|
+
tooltipSide: a = "top",
|
|
98
|
+
tooltipKeybinding: r,
|
|
99
|
+
...s
|
|
100
|
+
}, c) => {
|
|
101
|
+
const { t: l } = u();
|
|
102
|
+
return /* @__PURE__ */ d(
|
|
103
|
+
m,
|
|
98
104
|
{
|
|
99
105
|
variant: "ghost",
|
|
100
106
|
size: "icon",
|
|
101
|
-
ref:
|
|
102
|
-
"aria-label":
|
|
107
|
+
ref: c,
|
|
108
|
+
"aria-label": l("notificationPanel.title"),
|
|
109
|
+
tooltipSide: a,
|
|
110
|
+
tooltipKeybinding: r,
|
|
103
111
|
"data-indicator": e ? "" : void 0,
|
|
104
|
-
className:
|
|
105
|
-
"text-
|
|
112
|
+
className: n(
|
|
113
|
+
"relative text-content-header-notification [&_svg]:size-6 hover:text-content",
|
|
106
114
|
t
|
|
107
115
|
),
|
|
108
|
-
...
|
|
116
|
+
...s,
|
|
109
117
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
e && /* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ o(N, { size: 24 }),
|
|
119
|
+
e && /* @__PURE__ */ d("div", { className: "notification-indicator", children: [
|
|
120
|
+
/* @__PURE__ */ o("div", { className: "notification-pulse" }),
|
|
121
|
+
/* @__PURE__ */ o("div", { className: "notification-dot" })
|
|
114
122
|
] })
|
|
115
123
|
]
|
|
116
124
|
}
|
|
117
125
|
);
|
|
118
126
|
}
|
|
119
127
|
);
|
|
120
|
-
|
|
128
|
+
R.displayName = "NotificationIconButton";
|
|
121
129
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
130
|
+
g as Header,
|
|
131
|
+
k as HeaderBotButton,
|
|
132
|
+
v as HeaderLeft,
|
|
125
133
|
y as HeaderLogo,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
134
|
+
w as HeaderRight,
|
|
135
|
+
H as HeaderSeparator,
|
|
136
|
+
b as HeaderTitle,
|
|
137
|
+
R as NotificationIconButton
|
|
130
138
|
};
|