@epam/ai-dial-navigation-panel 1.1.0-dev.242 → 1.1.0-dev.244
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/index.js +19 -19
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildCssVars as e, mergeClasses as t } from "@epam/ai-dial-chat-shared";
|
|
2
|
-
import { BASE_ICON_SIZE as n, DIAL_ICON_SIZE as r,
|
|
2
|
+
import { BASE_ICON_SIZE as n, DIAL_ICON_SIZE as r, Dropdown as i, DropdownItemType as a, EllipsisTooltip as o, IconButton as s, Tooltip as c } from "@epam/ai-dial-ui-kit";
|
|
3
3
|
import { Fragment as l, createContext as u, memo as d, useCallback as f, useContext as p, useEffect as m, useMemo as h, useState as g } from "react";
|
|
4
4
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
5
5
|
import { IconCheck as b, IconChevronRight as x, IconLogout as S, IconSettings as C, IconUser as w } from "@tabler/icons-react";
|
|
@@ -12,7 +12,7 @@ var E = {
|
|
|
12
12
|
href: e.href,
|
|
13
13
|
className: "contents",
|
|
14
14
|
children: t
|
|
15
|
-
}), O = d(({ items: n, labels: i, logo: a, footer: o, renderLink:
|
|
15
|
+
}), O = d(({ items: n, labels: i, logo: a, footer: o, renderLink: c = D, styles: u }) => {
|
|
16
16
|
let { colors: d, typography: f, className: p, cssVars: m } = u ?? {}, g = h(() => e({
|
|
17
17
|
"--np-bg": d?.background,
|
|
18
18
|
"--np-item-text": d?.itemText,
|
|
@@ -40,7 +40,7 @@ var E = {
|
|
|
40
40
|
})
|
|
41
41
|
}), /* @__PURE__ */ v("div", {
|
|
42
42
|
className: "flex flex-col items-center gap-2 p-2",
|
|
43
|
-
children: n.map((e) => /* @__PURE__ */ v(l, { children:
|
|
43
|
+
children: n.map((e) => /* @__PURE__ */ v(l, { children: c(e, /* @__PURE__ */ v(s, {
|
|
44
44
|
icon: /* @__PURE__ */ v(e.icon, {
|
|
45
45
|
size: r.LG,
|
|
46
46
|
stroke: 1.5
|
|
@@ -88,7 +88,7 @@ var E = {
|
|
|
88
88
|
wrapper: "_wrapper_1nw3p_1",
|
|
89
89
|
trigger: "_trigger_1nw3p_5",
|
|
90
90
|
identityText: "_identityText_1nw3p_14"
|
|
91
|
-
}, P = d(({ profile: n, labels:
|
|
91
|
+
}, P = d(({ profile: n, labels: s, groups: l, onLogout: u, onSettings: d, isTooltipHidden: f, styles: p }) => {
|
|
92
92
|
let { colors: m, typography: g, className: _, cssVars: b } = p ?? {}, x = g?.fontClassName ?? "dial-small-text", w = h(() => e({
|
|
93
93
|
"--np-avatar-bg": m?.avatarBackground,
|
|
94
94
|
"--np-avatar-text": m?.avatarText,
|
|
@@ -118,10 +118,10 @@ var E = {
|
|
|
118
118
|
return [
|
|
119
119
|
{
|
|
120
120
|
key: "identity",
|
|
121
|
-
type:
|
|
121
|
+
type: a.PlainText,
|
|
122
122
|
label: /* @__PURE__ */ y("div", {
|
|
123
123
|
className: "flex h-[40px] min-w-0 items-center gap-3",
|
|
124
|
-
children: [/* @__PURE__ */ v(A, { shortName: n.shortName }), /* @__PURE__ */ v(
|
|
124
|
+
children: [/* @__PURE__ */ v(A, { shortName: n.shortName }), /* @__PURE__ */ v(o, {
|
|
125
125
|
text: n.displayName,
|
|
126
126
|
className: t(N.identityText, x, "min-w-0 flex-1 truncate")
|
|
127
127
|
})]
|
|
@@ -130,13 +130,13 @@ var E = {
|
|
|
130
130
|
...e,
|
|
131
131
|
{
|
|
132
132
|
key: "divider-1",
|
|
133
|
-
type:
|
|
133
|
+
type: a.Divider
|
|
134
134
|
},
|
|
135
135
|
...d ? [{
|
|
136
136
|
key: "settings",
|
|
137
137
|
label: /* @__PURE__ */ v("span", {
|
|
138
138
|
className: x,
|
|
139
|
-
children:
|
|
139
|
+
children: s.settings
|
|
140
140
|
}),
|
|
141
141
|
icon: /* @__PURE__ */ v(C, {
|
|
142
142
|
size: r.SM,
|
|
@@ -148,7 +148,7 @@ var E = {
|
|
|
148
148
|
key: "logout",
|
|
149
149
|
label: /* @__PURE__ */ v("span", {
|
|
150
150
|
className: x,
|
|
151
|
-
children:
|
|
151
|
+
children: s.logOut
|
|
152
152
|
}),
|
|
153
153
|
icon: /* @__PURE__ */ v(S, {
|
|
154
154
|
size: r.SM,
|
|
@@ -160,8 +160,8 @@ var E = {
|
|
|
160
160
|
}, [
|
|
161
161
|
l,
|
|
162
162
|
x,
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
s.logOut,
|
|
164
|
+
s.settings,
|
|
165
165
|
u,
|
|
166
166
|
d,
|
|
167
167
|
n.displayName,
|
|
@@ -173,20 +173,20 @@ var E = {
|
|
|
173
173
|
...w
|
|
174
174
|
},
|
|
175
175
|
className: t(N.wrapper, "flex size-[60px] items-center justify-center", _),
|
|
176
|
-
children: /* @__PURE__ */ v(
|
|
176
|
+
children: /* @__PURE__ */ v(i, {
|
|
177
177
|
placement: "top-end",
|
|
178
178
|
matchReferenceWidth: !1,
|
|
179
179
|
items: T,
|
|
180
180
|
children: /* @__PURE__ */ v("button", {
|
|
181
181
|
type: "button",
|
|
182
182
|
className: t(N.trigger, "flex size-[44px] items-center justify-center rounded-full border border-transparent"),
|
|
183
|
-
"aria-label":
|
|
184
|
-
children: /* @__PURE__ */ v(
|
|
183
|
+
"aria-label": s.trigger,
|
|
184
|
+
children: /* @__PURE__ */ v(c, {
|
|
185
185
|
tooltip: n.email,
|
|
186
186
|
hideTooltip: f,
|
|
187
187
|
children: /* @__PURE__ */ v(M, {
|
|
188
188
|
profile: n,
|
|
189
|
-
alt:
|
|
189
|
+
alt: s.avatarAlt
|
|
190
190
|
})
|
|
191
191
|
})
|
|
192
192
|
})
|
|
@@ -271,15 +271,15 @@ var E = {
|
|
|
271
271
|
}
|
|
272
272
|
}, e.id))
|
|
273
273
|
});
|
|
274
|
-
}), V = d(({ profile: e, logOutLabel: r, onLogout:
|
|
275
|
-
let { push: c, close: l } = L(), u = (
|
|
274
|
+
}), V = d(({ profile: e, logOutLabel: r, onLogout: i, groups: a, textClassName: s = "dial-small-text" }) => {
|
|
275
|
+
let { push: c, close: l } = L(), u = (a ?? []).filter(({ options: e }) => e.length > 0);
|
|
276
276
|
return /* @__PURE__ */ y(_, { children: [
|
|
277
277
|
/* @__PURE__ */ y("div", {
|
|
278
278
|
className: "flex h-[56px] items-center gap-3 px-4 py-2",
|
|
279
279
|
children: [/* @__PURE__ */ v(M, {
|
|
280
280
|
profile: e,
|
|
281
281
|
alt: ""
|
|
282
|
-
}), /* @__PURE__ */ v(
|
|
282
|
+
}), /* @__PURE__ */ v(o, {
|
|
283
283
|
text: e.displayName,
|
|
284
284
|
className: t(R.mutedText, s, "min-w-0 flex-1 truncate")
|
|
285
285
|
})]
|
|
@@ -316,7 +316,7 @@ var E = {
|
|
|
316
316
|
"aria-hidden": !0
|
|
317
317
|
}),
|
|
318
318
|
onClick: () => {
|
|
319
|
-
l(),
|
|
319
|
+
l(), i();
|
|
320
320
|
}
|
|
321
321
|
})
|
|
322
322
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-navigation-panel",
|
|
3
3
|
"description": "Primary application navigation — desktop nav rail, user menu, and mobile navigation bottom sheet",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.244",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"@tabler/icons-react": "^3.44.0",
|
|
22
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
23
|
-
"@epam/ai-dial-conversation-input": "1.1.0-dev.
|
|
24
|
-
"@epam/ai-dial-ui-kit": "
|
|
22
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.244",
|
|
23
|
+
"@epam/ai-dial-conversation-input": "1.1.0-dev.244",
|
|
24
|
+
"@epam/ai-dial-ui-kit": "*"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|