impact-nova 2.1.0-alpha.2 → 2.1.0-alpha.4
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/feedback/dropdown-menu/dropdown-menu.js +2 -2
- package/dist/components/feedback/popover/popover.js +9 -2
- package/dist/components/forms/combobox/combobox.js +1 -1
- package/dist/components/forms/select/components/SelectMenuPanel.js +1 -1
- package/dist/components/forms/select/components/SelectTrigger.js +90 -85
- package/dist/components/forms/select/components/Submenu.js +1 -1
- package/dist/components/forms/select/select.js +28 -28
- package/dist/components/forms/select/select.variants.js +3 -3
- package/dist/components/layout/header/header.js +34 -34
- package/dist/components/primitives/tag/tag.variants.js +2 -2
- package/dist/impact-nova-components.css +5 -0
- package/dist/impact-nova-tokens.scss +13 -0
- package/dist/impact-nova.css +1 -1
- package/package.json +1 -1
|
@@ -4,55 +4,55 @@ import { cn as n } from "../../../lib/utils.js";
|
|
|
4
4
|
import { Button as p } from "../../primitives/button/button.js";
|
|
5
5
|
import { Badge as u } from "../../data-display/badge/badge.js";
|
|
6
6
|
import { Separator as x } from "../../data-display/separator/separator.js";
|
|
7
|
-
import { Alan as
|
|
7
|
+
import { Alan as h, Bell as g } from "impact-nova-icons";
|
|
8
8
|
import { useImpactNovaI18n as m } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
|
-
const
|
|
10
|
-
({ className:
|
|
9
|
+
const b = i.forwardRef(
|
|
10
|
+
({ className: a, children: e, ...t }, r) => /* @__PURE__ */ o(
|
|
11
11
|
"header",
|
|
12
12
|
{
|
|
13
13
|
ref: r,
|
|
14
14
|
"data-component": "header",
|
|
15
15
|
className: n(
|
|
16
16
|
"sticky top-0 z-40 flex h-14 w-full items-center justify-between bg-canvas-elevated px-6 shadow-elevation-header",
|
|
17
|
-
|
|
17
|
+
a
|
|
18
18
|
),
|
|
19
|
-
...
|
|
19
|
+
...t,
|
|
20
20
|
children: e
|
|
21
21
|
}
|
|
22
22
|
)
|
|
23
23
|
);
|
|
24
|
-
|
|
25
|
-
const N = i.forwardRef(({ className:
|
|
24
|
+
b.displayName = "Header";
|
|
25
|
+
const N = i.forwardRef(({ className: a, children: e, ...t }, r) => /* @__PURE__ */ o(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
ref: r,
|
|
29
|
-
className: n("flex flex-row items-center justify-start",
|
|
30
|
-
...
|
|
29
|
+
className: n("flex flex-row items-center justify-start", a),
|
|
30
|
+
...t,
|
|
31
31
|
children: e
|
|
32
32
|
}
|
|
33
33
|
));
|
|
34
34
|
N.displayName = "HeaderLeft";
|
|
35
|
-
const v = i.forwardRef(({ className:
|
|
35
|
+
const v = i.forwardRef(({ className: a, children: e, ...t }, r) => /* @__PURE__ */ o(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
ref: r,
|
|
39
|
-
className: n("flex flex-row items-center justify-start gap-5",
|
|
40
|
-
...
|
|
39
|
+
className: n("flex flex-row items-center justify-start gap-5", a),
|
|
40
|
+
...t,
|
|
41
41
|
children: e
|
|
42
42
|
}
|
|
43
43
|
));
|
|
44
44
|
v.displayName = "HeaderRight";
|
|
45
|
-
const y = i.forwardRef(({ className:
|
|
45
|
+
const y = i.forwardRef(({ className: a, children: e, href: t = "/", "aria-label": r, ...s }, d) => {
|
|
46
46
|
const { t: l } = m();
|
|
47
47
|
return /* @__PURE__ */ o(
|
|
48
48
|
"a",
|
|
49
49
|
{
|
|
50
|
-
href:
|
|
50
|
+
href: t,
|
|
51
51
|
ref: d,
|
|
52
52
|
"aria-label": r ?? l("aria.home"),
|
|
53
53
|
className: n(
|
|
54
54
|
"h-9 flex items-center justify-center cursor-pointer",
|
|
55
|
-
|
|
55
|
+
a
|
|
56
56
|
),
|
|
57
57
|
...s,
|
|
58
58
|
children: e
|
|
@@ -60,38 +60,38 @@ const y = i.forwardRef(({ className: t, children: e, href: a = "/", "aria-label"
|
|
|
60
60
|
);
|
|
61
61
|
});
|
|
62
62
|
y.displayName = "HeaderLogo";
|
|
63
|
-
const w = i.forwardRef(({ className:
|
|
63
|
+
const w = i.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(
|
|
64
64
|
x,
|
|
65
65
|
{
|
|
66
|
-
ref:
|
|
66
|
+
ref: t,
|
|
67
67
|
orientation: "vertical",
|
|
68
|
-
className: n("h-6 mx-3",
|
|
68
|
+
className: n("h-6 mx-3", a),
|
|
69
69
|
...e
|
|
70
70
|
}
|
|
71
71
|
));
|
|
72
72
|
w.displayName = "HeaderSeparator";
|
|
73
|
-
const H = i.forwardRef(({ className:
|
|
73
|
+
const H = i.forwardRef(({ className: a, children: e, ...t }, r) => /* @__PURE__ */ o(
|
|
74
74
|
"h1",
|
|
75
75
|
{
|
|
76
76
|
ref: r,
|
|
77
|
-
className: n("text-base font-extrabold leading-6 text-content",
|
|
78
|
-
...
|
|
77
|
+
className: n("text-base font-extrabold leading-6 text-content", a),
|
|
78
|
+
...t,
|
|
79
79
|
children: e
|
|
80
80
|
}
|
|
81
|
-
)), R = ({ className:
|
|
81
|
+
)), R = ({ className: a, children: e, style: t, ...r }) => /* @__PURE__ */ o(
|
|
82
82
|
u,
|
|
83
83
|
{
|
|
84
84
|
size: "sm",
|
|
85
85
|
shape: "circle",
|
|
86
|
-
className: n("border-none
|
|
87
|
-
style:
|
|
86
|
+
className: n("border-none header-badge-gradient text-white", a),
|
|
87
|
+
style: t,
|
|
88
88
|
...r,
|
|
89
89
|
children: e
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
R.displayName = "HeaderBadge";
|
|
93
93
|
H.displayName = "HeaderTitle";
|
|
94
|
-
const T = i.forwardRef(({ className:
|
|
94
|
+
const T = i.forwardRef(({ className: a, children: e, ...t }, r) => /* @__PURE__ */ o(
|
|
95
95
|
"button",
|
|
96
96
|
{
|
|
97
97
|
ref: r,
|
|
@@ -100,19 +100,19 @@ const T = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__
|
|
|
100
100
|
"relative flex items-center justify-center w-[106px] h-[34px] gap-[7px] px-[11px] py-0 rounded-lg cursor-pointer border-0 outline-none",
|
|
101
101
|
"header-bot-button-gradient",
|
|
102
102
|
"animate-header-bot-gradient hover:animate-header-bot-gradient-fast motion-reduce:animate-none",
|
|
103
|
-
|
|
103
|
+
a
|
|
104
104
|
),
|
|
105
|
-
...
|
|
105
|
+
...t,
|
|
106
106
|
children: e || /* @__PURE__ */ c(f, { children: [
|
|
107
|
-
/* @__PURE__ */ o(
|
|
107
|
+
/* @__PURE__ */ o(h, { size: 20, className: "text-brand-foreground" }),
|
|
108
108
|
/* @__PURE__ */ o("span", { className: "text-sm font-semibold leading-[20px] text-brand-foreground whitespace-nowrap", children: "Ask Alan" })
|
|
109
109
|
] })
|
|
110
110
|
}
|
|
111
111
|
)), z = i.forwardRef(
|
|
112
112
|
({
|
|
113
|
-
className:
|
|
113
|
+
className: a,
|
|
114
114
|
showIndicator: e,
|
|
115
|
-
tooltipSide:
|
|
115
|
+
tooltipSide: t = "top",
|
|
116
116
|
tooltipKeybinding: r,
|
|
117
117
|
...s
|
|
118
118
|
}, d) => {
|
|
@@ -124,16 +124,16 @@ const T = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__
|
|
|
124
124
|
size: "icon",
|
|
125
125
|
ref: d,
|
|
126
126
|
"aria-label": l("notificationPanel.title"),
|
|
127
|
-
tooltipSide:
|
|
127
|
+
tooltipSide: t,
|
|
128
128
|
tooltipKeybinding: r,
|
|
129
129
|
"data-indicator": e ? "" : void 0,
|
|
130
130
|
className: n(
|
|
131
131
|
"relative text-content-header-notification [&_svg]:size-6 hover:text-content",
|
|
132
|
-
|
|
132
|
+
a
|
|
133
133
|
),
|
|
134
134
|
...s,
|
|
135
135
|
children: [
|
|
136
|
-
/* @__PURE__ */ o(
|
|
136
|
+
/* @__PURE__ */ o(g, { size: 24 }),
|
|
137
137
|
e && /* @__PURE__ */ c("div", { className: "absolute top-1.5 right-1.5 size-2.5 pointer-events-none z-10", children: [
|
|
138
138
|
/* @__PURE__ */ o("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-2.5 rounded-full bg-feedback-error-surface animate-notification-waves motion-reduce:animate-none" }),
|
|
139
139
|
/* @__PURE__ */ o("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-2 rounded-full bg-destructive" })
|
|
@@ -145,7 +145,7 @@ const T = i.forwardRef(({ className: t, children: e, ...a }, r) => /* @__PURE__
|
|
|
145
145
|
);
|
|
146
146
|
z.displayName = "NotificationIconButton";
|
|
147
147
|
export {
|
|
148
|
-
|
|
148
|
+
b as Header,
|
|
149
149
|
R as HeaderBadge,
|
|
150
150
|
T as HeaderBotButton,
|
|
151
151
|
N as HeaderLeft,
|
|
@@ -7,8 +7,8 @@ const r = e(
|
|
|
7
7
|
default: "bg-brand text-brand-foreground hover:bg-brand/90",
|
|
8
8
|
secondary: "bg-accent text-content hover:bg-brand-tint-hover",
|
|
9
9
|
outline: "border border-stroke-accent bg-canvas-elevated text-content-tertiary hover:bg-canvas-muted",
|
|
10
|
-
tertiary: "bg-secondary text-content hover:bg-muted",
|
|
11
|
-
ghost: "bg-transparent text-content-tertiary hover:bg-muted",
|
|
10
|
+
tertiary: "bg-secondary text-content hover:bg-canvas-muted",
|
|
11
|
+
ghost: "bg-transparent text-content-tertiary hover:bg-canvas-muted",
|
|
12
12
|
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive-hover",
|
|
13
13
|
success: "bg-feedback-success-surface text-success hover:bg-success/15 border border-success-border",
|
|
14
14
|
warning: "bg-feedback-warning-surface text-content hover:bg-warning/15 border border-warning-border",
|
|
@@ -134,6 +134,11 @@
|
|
|
134
134
|
.header-bot-button-gradient:hover {
|
|
135
135
|
background-image: linear-gradient(-45deg, var(--color-header-bot-gradient-teal-hover), var(--color-header-bot-gradient-indigo-hover), var(--color-header-bot-gradient-orange-hover));
|
|
136
136
|
}
|
|
137
|
+
|
|
138
|
+
/* Header title badge — violet → primary (Figma Violet/500 → Primary) */
|
|
139
|
+
.header-badge-gradient {
|
|
140
|
+
background-image: linear-gradient(270deg, var(--color-header-badge-gradient-from) 0%, var(--color-header-badge-gradient-to) 100%);
|
|
141
|
+
}
|
|
137
142
|
/* Custom AG Grid Styles — plain CSS (no SCSS nesting). */
|
|
138
143
|
|
|
139
144
|
.ag-pinned-left-cols-container,
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
--color-primary-soft-hover: #d5dafb;
|
|
32
32
|
--color-primary-variant: #4459e4;
|
|
33
33
|
--color-primary-variant-hover: #3347c7;
|
|
34
|
+
/* Not Figma Violet — use --color-header-badge-gradient-from for header Beta badge */
|
|
34
35
|
|
|
35
36
|
--color-secondary: #f5f6fa;
|
|
36
37
|
--color-secondary-foreground: #60697d;
|
|
@@ -61,6 +62,11 @@
|
|
|
61
62
|
--color-header-bot-gradient-teal-hover: #2ac2ee;
|
|
62
63
|
--color-header-bot-gradient-indigo-hover: #6962ef;
|
|
63
64
|
--color-header-bot-gradient-orange-hover: #f26921;
|
|
65
|
+
|
|
66
|
+
/* Header title badge — Figma Violet/500 → Primary (Item Smart “Beta” pill) */
|
|
67
|
+
--color-header-badge-gradient-from: #be77ee;
|
|
68
|
+
--color-header-badge-gradient-to: var(--color-primary);
|
|
69
|
+
|
|
64
70
|
// --color-secondary: #31416E;
|
|
65
71
|
|
|
66
72
|
--color-neutral-charcoal: #41536c;
|
|
@@ -170,6 +176,10 @@
|
|
|
170
176
|
|
|
171
177
|
--radius: 0.5rem;
|
|
172
178
|
|
|
179
|
+
/* Overlay stacking — shell (sheet/dialog) at 50; floating menus above at 100 */
|
|
180
|
+
--z-overlay-shell: 50;
|
|
181
|
+
--z-overlay-floating: 100;
|
|
182
|
+
|
|
173
183
|
/* —— Alert elevation (emphasis) —— */
|
|
174
184
|
--shadow-alert-elevated: 0 0 16px 5px rgb(0 0 0 / 0.12);
|
|
175
185
|
}
|
|
@@ -223,6 +233,9 @@
|
|
|
223
233
|
--color-foreground-icon: #9aa3b5;
|
|
224
234
|
--color-header-notification-icon: #b4bac7;
|
|
225
235
|
|
|
236
|
+
--color-header-badge-gradient-from: #be77ee;
|
|
237
|
+
--color-header-badge-gradient-to: var(--color-primary);
|
|
238
|
+
|
|
226
239
|
--color-neutral-charcoal: #b4bac7;
|
|
227
240
|
--color-neutral-badge: #9aa3b5;
|
|
228
241
|
|