@epam/ai-dial-ui-kit 0.16.0-dev.14 → 0.16.0-dev.15
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/CHANGELOG.md
CHANGED
|
@@ -36,6 +36,8 @@ Versions match the git tags on the `development` branch.
|
|
|
36
36
|
|
|
37
37
|
### Fixed
|
|
38
38
|
|
|
39
|
+
- **`FolderPath` (2.0) — a collapsed path shows the full path in a tooltip instead of a click menu** — a path of more than three segments collapsed its middle into a `…` button inherited from `DialBreadcrumb` that opened a dropdown of the hidden segments on click. In a read-only path every item in it was disabled, the menu listed only the hidden part, and inside a clickable card (the catalog card) the click also opened the card. The `…` is now plain, non-interactive text: hovering it shows the full path as `Shared > Team > Sub > Reports` in a `Tooltip`, and the hidden segments stay in the accessible text. Paths of three segments or fewer, the props and the public class are unchanged. Reported on the catalog cards in ai-dial-chat.
|
|
40
|
+
|
|
39
41
|
- **`ConfirmationPopup` (2.0) — Cancel/Confirm split the row evenly on mobile** — the `Popup` mobile footer split did not reach `ConfirmationPopup`, which renders its own footer. Below the `mobile` breakpoint (768px) its Cancel and Confirm buttons now take an equal share of the row. Desktop is unchanged, `confirmClassName` still merges on top, and a caller's `footer` is not touched. Reported on the log-out confirmation in ai-dial-chat.
|
|
40
42
|
|
|
41
43
|
- **Package — test declarations no longer published** — `dist/` carried 36 `.d.ts` files for specs, tests and mocks (`*.spec.ts`, `*.test.tsx`, `__tests__/`, `__mocks__/`), because the declaration build excluded only `*.spec.tsx` and stories. They are no longer emitted; the declarations `package.json` `exports` points to are unchanged.
|
|
@@ -1,65 +1,111 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { IconFolder as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { jsx as r, jsxs as l, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { IconFolder as S, IconDots as _, IconChevronRight as L } from "@tabler/icons-react";
|
|
3
|
+
import { DialBreadcrumbItem as x } from "../../Breadcrumb/BreadcrumbItem.js";
|
|
4
|
+
import { breadcrumbListClassName as D, breadcrumbSeparatorClassName as y, breadcrumbItemBaseClassName as A, breadcrumbBaseClassName as B } from "../../Breadcrumb/constants.js";
|
|
5
|
+
import { DialIcon as m } from "../../Icon/Icon.js";
|
|
6
|
+
import { DIAL_KIT_ICON_STROKE as t } from "../constants/icon.js";
|
|
7
|
+
import { Tooltip as E } from "../Tooltip/Tooltip.js";
|
|
8
|
+
import { DIAL_ICON_SIZE as n } from "../../../constants/icon.js";
|
|
9
|
+
import { mergeClasses as i } from "../../../utils/merge-classes.js";
|
|
10
|
+
import { DIAL_KIT_CLASS as F } from "../../../constants/public-class-names.js";
|
|
11
|
+
const T = 3, G = ({
|
|
10
12
|
segments: e,
|
|
11
|
-
labelClassName:
|
|
12
|
-
leafClassName:
|
|
13
|
-
className:
|
|
14
|
-
ariaLabel:
|
|
13
|
+
labelClassName: d = "dial-small-text",
|
|
14
|
+
leafClassName: h = "dial-small-semi-text",
|
|
15
|
+
className: p,
|
|
16
|
+
ariaLabel: N = "Folder path"
|
|
15
17
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
+
const I = /* @__PURE__ */ r(
|
|
19
|
+
m,
|
|
18
20
|
{
|
|
19
21
|
icon: /* @__PURE__ */ r(
|
|
20
|
-
|
|
22
|
+
S,
|
|
21
23
|
{
|
|
22
|
-
size:
|
|
23
|
-
stroke:
|
|
24
|
+
size: n.SM,
|
|
25
|
+
stroke: t,
|
|
24
26
|
"aria-hidden": "true"
|
|
25
27
|
}
|
|
26
28
|
),
|
|
27
29
|
className: "text-secondary"
|
|
28
30
|
}
|
|
29
|
-
),
|
|
30
|
-
|
|
31
|
-
disabled: !0,
|
|
32
|
-
...a === 0 ? { iconBefore: n } : {}
|
|
33
|
-
}));
|
|
34
|
-
return /* @__PURE__ */ r(
|
|
35
|
-
h,
|
|
31
|
+
), c = /* @__PURE__ */ r(
|
|
32
|
+
m,
|
|
36
33
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
separator: /* @__PURE__ */ r(
|
|
40
|
-
t,
|
|
34
|
+
icon: /* @__PURE__ */ r(
|
|
35
|
+
L,
|
|
41
36
|
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
stroke: s,
|
|
47
|
-
"aria-hidden": "true",
|
|
48
|
-
className: "rtl:scale-x-[-1]"
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
className: "text-secondary"
|
|
37
|
+
size: 14,
|
|
38
|
+
stroke: t,
|
|
39
|
+
"aria-hidden": "true",
|
|
40
|
+
className: "rtl:scale-x-[-1]"
|
|
52
41
|
}
|
|
53
42
|
),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
43
|
+
className: "text-secondary"
|
|
44
|
+
}
|
|
45
|
+
), f = i(
|
|
46
|
+
d,
|
|
47
|
+
"text-secondary",
|
|
48
|
+
"!cursor-default"
|
|
49
|
+
), o = (a) => {
|
|
50
|
+
const s = a === e.length - 1;
|
|
51
|
+
return /* @__PURE__ */ r(
|
|
52
|
+
x,
|
|
53
|
+
{
|
|
54
|
+
label: s ? /* @__PURE__ */ r("span", { className: h, children: e[a] }) : e[a],
|
|
55
|
+
disabled: !0,
|
|
56
|
+
iconBefore: a === 0 ? I : void 0,
|
|
57
|
+
isFirst: a === 0 && e.length > 1,
|
|
58
|
+
isLast: s,
|
|
59
|
+
separator: c,
|
|
60
|
+
labelClassName: f
|
|
61
|
+
},
|
|
62
|
+
`item-${a}`
|
|
63
|
+
);
|
|
64
|
+
}, u = e.length > T, b = e.slice(1, -2);
|
|
65
|
+
return /* @__PURE__ */ r(
|
|
66
|
+
"nav",
|
|
67
|
+
{
|
|
68
|
+
"aria-label": N,
|
|
69
|
+
className: i(
|
|
70
|
+
B,
|
|
71
|
+
p,
|
|
72
|
+
F.folderPath
|
|
73
|
+
),
|
|
74
|
+
children: /* @__PURE__ */ r("ol", { className: D, children: u ? /* @__PURE__ */ l(C, { children: [
|
|
75
|
+
o(0),
|
|
76
|
+
/* @__PURE__ */ l(
|
|
77
|
+
"li",
|
|
78
|
+
{
|
|
79
|
+
className: i(A, "shrink-0"),
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ l(
|
|
82
|
+
E,
|
|
83
|
+
{
|
|
84
|
+
tooltip: e.join(" > "),
|
|
85
|
+
triggerClassName: "inline-flex cursor-default items-center text-secondary",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ r(
|
|
88
|
+
_,
|
|
89
|
+
{
|
|
90
|
+
size: n.SM,
|
|
91
|
+
stroke: t,
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ r("span", { className: "sr-only", children: b.join(", ") })
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ r("span", { className: y, children: c })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
o(e.length - 2),
|
|
104
|
+
o(e.length - 1)
|
|
105
|
+
] }) : e.map((a, s) => o(s)) })
|
|
60
106
|
}
|
|
61
107
|
);
|
|
62
108
|
};
|
|
63
109
|
export {
|
|
64
|
-
|
|
110
|
+
G as FolderPath
|
|
65
111
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.16.0-dev.
|
|
3
|
-
"generatedAt": "2026-10-
|
|
2
|
+
"version": "0.16.0-dev.15",
|
|
3
|
+
"generatedAt": "2026-10-19T17:10:28.825Z",
|
|
4
4
|
"kit": {
|
|
5
5
|
"name": "@epam/ai-dial-ui-kit",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
"name": "FolderPath",
|
|
533
533
|
"category": "Components_2_0",
|
|
534
534
|
"generation": "2.0",
|
|
535
|
-
"description": "A read-only, non-clickable folder/location path
|
|
535
|
+
"description": "A read-only, non-clickable folder/location path styled like `DialBreadcrumb`.\naliases: FolderBreadcrumb|LocationPath\nDesign system 2.0\n\nEvery segment is disabled (no navigation); the first segment gets a leading\nfolder icon and the last segment is styled as the current/leaf item. A path\nof more than three segments collapses its middle into a non-interactive `…`\nthat shows the full path (`Shared > Team > Sub > Reports`) in a tooltip on\nhover; the hidden segments stay in the accessible text.",
|
|
536
536
|
"props": [
|
|
537
537
|
{
|
|
538
538
|
"name": "segments",
|
|
@@ -558,14 +558,14 @@
|
|
|
558
558
|
"name": "className",
|
|
559
559
|
"type": "string",
|
|
560
560
|
"required": false,
|
|
561
|
-
"description": "Additional CSS classes applied to the
|
|
561
|
+
"description": "Additional CSS classes applied to the `<nav>` element.\nThe nav clips on overflow, so this must not shrink it to content width\n(e.g. never `w-auto`)."
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
564
|
"name": "ariaLabel",
|
|
565
565
|
"type": "string",
|
|
566
566
|
"required": false,
|
|
567
567
|
"defaultValue": "'Folder path'",
|
|
568
|
-
"description": "Accessible name for the
|
|
568
|
+
"description": "Accessible name for the `<nav>`. A path\nhas no navigable items, so it is not named \"Breadcrumb\"; override it when a\npage shows more than one."
|
|
569
569
|
}
|
|
570
570
|
],
|
|
571
571
|
"examples": [
|