@epam/ai-dial-ui-kit 0.14.0-dev.41 → 0.14.0-dev.44
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 +1 -0
- package/dist/DateCellRenderer-B_oow9gn.cjs +1 -0
- package/dist/{DateCellRenderer-p6k-mVZt.cjs → DateCellRenderer-CS8ZbiFh.cjs} +5 -5
- package/dist/JsonEditor-BlaSMX26.cjs +1 -0
- package/dist/{MarkdownEditor-CBH7ILah.cjs → MarkdownEditor-5kljDPcm.cjs} +1 -1
- package/dist/{MarkdownEditor-CMRC_XsQ.cjs → MarkdownEditor-C0_gU7Fi.cjs} +1 -1
- package/dist/MarkdownEditorContainer-BqTGQArV.cjs +1 -0
- package/dist/components/Analytics/BarGroup/BarGroup.js +60 -58
- package/dist/components/Grid/constants.js +2 -2
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
- package/dist/components/New/Dropdown/Dropdown.js +163 -152
- package/dist/components/New/Dropdown/DropdownSubMenuItem.js +75 -55
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +45 -44
- package/dist/components/New/Select/SelectSubMenuItem.js +26 -24
- package/dist/components-manifest.json +7 -3
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/lazy-B1eG0EeX.cjs +1 -0
- package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +9 -2
- package/dist/src/models/dropdown.d.ts +23 -0
- package/dist/src/utils/sub-menu-floating.d.ts +1 -0
- package/dist/{use-file-manager-tabs-CIQjiyK-.cjs → use-file-manager-tabs-D0RFLbl1.cjs} +1 -1
- package/dist/utils/sub-menu-floating.js +45 -38
- package/package.json +1 -1
- package/dist/DateCellRenderer-DNPEX0I7.cjs +0 -1
- package/dist/JsonEditor-BZCyPc2D.cjs +0 -1
- package/dist/MarkdownEditorContainer-B_6-Gd-T.cjs +0 -1
- package/dist/editor-BKQqPhwX.cjs +0 -1
- package/dist/lazy-CJ-0Pjkj.cjs +0 -1
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { useFloating as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useThemeScope as
|
|
5
|
-
import { useIsMobileScreen as
|
|
6
|
-
import { TooltipPlacement as
|
|
7
|
-
import { mergeClasses as
|
|
8
|
-
import { INTERACTIVE_TOOLTIP_GAP as
|
|
9
|
-
const
|
|
1
|
+
import { jsx as s, jsxs as j, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { useFloatingNodeId as D, useFloating as H, autoUpdate as U, offset as G, flip as Y, shift as k, useHover as q, safePolygon as z, useFocus as B, useDismiss as J, useInteractions as K, useMergeRefs as m, FloatingPortal as Q, FloatingFocusManager as W } from "@floating-ui/react";
|
|
3
|
+
import { useState as X, useRef as Z, useMemo as d, isValidElement as $, cloneElement as ee } from "react";
|
|
4
|
+
import { useThemeScope as oe } from "../ThemeScope/ThemeScope.js";
|
|
5
|
+
import { useIsMobileScreen as te } from "../../../hooks/use-is-mobile-screen.js";
|
|
6
|
+
import { TooltipPlacement as se } from "../../../types/tooltip.js";
|
|
7
|
+
import { mergeClasses as u } from "../../../utils/merge-classes.js";
|
|
8
|
+
import { INTERACTIVE_TOOLTIP_GAP as ne, INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY as le, interactiveTooltipClassName as ae } from "./constants.js";
|
|
9
|
+
const ge = ({
|
|
10
10
|
content: a,
|
|
11
|
-
placement: g =
|
|
11
|
+
placement: g = se.Right,
|
|
12
12
|
children: e,
|
|
13
13
|
asChild: R = !1,
|
|
14
|
-
hideTooltip:
|
|
15
|
-
initialOpen:
|
|
14
|
+
hideTooltip: F = !1,
|
|
15
|
+
initialOpen: T = !1,
|
|
16
16
|
open: n,
|
|
17
|
-
onOpenChange:
|
|
17
|
+
onOpenChange: h,
|
|
18
18
|
triggerClassName: r,
|
|
19
|
-
contentClassName:
|
|
19
|
+
contentClassName: I
|
|
20
20
|
}) => {
|
|
21
|
-
const
|
|
21
|
+
const E = te(), P = oe(), [O, C] = X(T), i = n ?? O, N = h ?? C, v = D(), { refs: t, floatingStyles: M, context: o } = H({
|
|
22
|
+
nodeId: v,
|
|
22
23
|
placement: g,
|
|
23
24
|
open: i,
|
|
24
|
-
onOpenChange:
|
|
25
|
-
whileElementsMounted:
|
|
25
|
+
onOpenChange: N,
|
|
26
|
+
whileElementsMounted: U,
|
|
26
27
|
middleware: [
|
|
27
|
-
|
|
28
|
+
G(ne),
|
|
28
29
|
/* No `fallbackAxisSideDirection`: a panel placed to the right should
|
|
29
30
|
flip to the left when it does not fit, not drop to the perpendicular
|
|
30
31
|
top/bottom axis, which reads as the panel landing in the wrong place.*/
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
Y({ padding: 5 }),
|
|
33
|
+
k({ padding: 5 })
|
|
33
34
|
]
|
|
34
|
-
}),
|
|
35
|
+
}), _ = q(o, {
|
|
35
36
|
enabled: n == null,
|
|
36
37
|
/* Lets the pointer cross the gap between the trigger and the panel
|
|
37
38
|
without closing it, so it can actually be reached and used. */
|
|
38
|
-
handleClose:
|
|
39
|
-
delay: { open:
|
|
40
|
-
}),
|
|
41
|
-
M,
|
|
39
|
+
handleClose: z(),
|
|
40
|
+
delay: { open: le, close: 0 }
|
|
41
|
+
}), x = B(o, { enabled: n == null }), S = J(o), { getReferenceProps: c, getFloatingProps: V } = K([
|
|
42
42
|
_,
|
|
43
|
-
x
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
x,
|
|
44
|
+
S
|
|
45
|
+
]), b = Z(null), y = m(
|
|
46
|
+
d(() => [t.setFloating, b], [t.setFloating])
|
|
47
|
+
), f = R && $(e), l = f ? e.props?.ref : null, p = m(
|
|
48
|
+
d(
|
|
48
49
|
() => [t.setReference, ...l ? [l] : []],
|
|
49
50
|
[t.setReference, l]
|
|
50
51
|
)
|
|
51
|
-
),
|
|
52
|
+
), A = !F && !E && !!a, L = f ? ee(
|
|
52
53
|
e,
|
|
53
54
|
c({
|
|
54
55
|
...e.props,
|
|
55
56
|
ref: p,
|
|
56
|
-
className:
|
|
57
|
+
className: u(
|
|
57
58
|
e.props.className,
|
|
58
59
|
r
|
|
59
60
|
) || void 0
|
|
@@ -67,10 +68,10 @@ const ue = ({
|
|
|
67
68
|
children: e
|
|
68
69
|
}
|
|
69
70
|
);
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
i &&
|
|
73
|
-
|
|
71
|
+
return /* @__PURE__ */ j(w, { children: [
|
|
72
|
+
L,
|
|
73
|
+
i && A && /* @__PURE__ */ s(Q, { id: "interactive-tooltip-portal", children: /* @__PURE__ */ s(
|
|
74
|
+
W,
|
|
74
75
|
{
|
|
75
76
|
context: o,
|
|
76
77
|
modal: !1,
|
|
@@ -80,14 +81,14 @@ const ue = ({
|
|
|
80
81
|
children: /* @__PURE__ */ s(
|
|
81
82
|
"div",
|
|
82
83
|
{
|
|
83
|
-
ref:
|
|
84
|
+
ref: y,
|
|
84
85
|
"data-placement": o.placement,
|
|
85
|
-
style:
|
|
86
|
-
...
|
|
87
|
-
className:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
style: M,
|
|
87
|
+
...V(),
|
|
88
|
+
className: u(
|
|
89
|
+
ae,
|
|
90
|
+
P,
|
|
91
|
+
I
|
|
91
92
|
),
|
|
92
93
|
children: a
|
|
93
94
|
}
|
|
@@ -97,5 +98,5 @@ const ue = ({
|
|
|
97
98
|
] });
|
|
98
99
|
};
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
+
ge as InteractiveTooltip
|
|
101
102
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as n, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { FloatingNode as T } from "@floating-ui/react";
|
|
3
|
+
import { Fragment as M } from "react";
|
|
3
4
|
import { InteractiveTooltip as s } from "../InteractiveTooltip/InteractiveTooltip.js";
|
|
4
5
|
import { MenuItem as c } from "../MenuItem/MenuItem.js";
|
|
5
|
-
import { MenuItemMark as
|
|
6
|
+
import { MenuItemMark as N } from "../../../types/menu-item.js";
|
|
6
7
|
import { useSubMenuFloating as S, SubMenuPanel as x } from "../../../utils/sub-menu-floating.js";
|
|
7
|
-
import { selectSubMenuGap as
|
|
8
|
-
const
|
|
8
|
+
import { selectSubMenuGap as I, selectSubMenuCaretIcon as F, selectSubMenuClassName as P } from "./constants.js";
|
|
9
|
+
const q = ({
|
|
9
10
|
opt: t,
|
|
10
11
|
selectedValues: a,
|
|
11
|
-
mark: m =
|
|
12
|
-
onSelect:
|
|
12
|
+
mark: m = N.Tint,
|
|
13
|
+
onSelect: d
|
|
13
14
|
}) => {
|
|
14
15
|
const {
|
|
15
16
|
isOpen: i,
|
|
17
|
+
nodeId: u,
|
|
16
18
|
refs: l,
|
|
17
19
|
floatingStyles: b,
|
|
18
|
-
context:
|
|
19
|
-
getReferenceProps:
|
|
20
|
+
context: p,
|
|
21
|
+
getReferenceProps: f,
|
|
20
22
|
getFloatingProps: v
|
|
21
|
-
} = S(
|
|
23
|
+
} = S(I, "listbox", !!t.disabled), g = t.children?.some(
|
|
22
24
|
(e) => a.includes(e.value)
|
|
23
|
-
),
|
|
25
|
+
), o = (
|
|
24
26
|
/*
|
|
25
27
|
The trigger carries no mark of its own: the check belongs to the child
|
|
26
28
|
that is actually chosen, one panel over. While its panel is open the row
|
|
@@ -33,18 +35,18 @@ const G = ({
|
|
|
33
35
|
role: "option",
|
|
34
36
|
"aria-haspopup": "listbox",
|
|
35
37
|
"aria-expanded": i,
|
|
36
|
-
"aria-selected": !!
|
|
38
|
+
"aria-selected": !!g,
|
|
37
39
|
"aria-disabled": !!t.disabled,
|
|
38
40
|
disabled: t.disabled,
|
|
39
41
|
ellipsisLabel: !0,
|
|
40
42
|
icon: t.icon,
|
|
41
43
|
label: t.labelNode ?? t.label,
|
|
42
44
|
trailing: F,
|
|
43
|
-
...
|
|
45
|
+
...f()
|
|
44
46
|
}
|
|
45
47
|
)
|
|
46
48
|
);
|
|
47
|
-
return /* @__PURE__ */
|
|
49
|
+
return /* @__PURE__ */ C(T, { id: u, children: [
|
|
48
50
|
t.interactiveTooltip ? /* @__PURE__ */ n(
|
|
49
51
|
s,
|
|
50
52
|
{
|
|
@@ -52,20 +54,20 @@ const G = ({
|
|
|
52
54
|
placement: t.interactiveTooltip.placement,
|
|
53
55
|
content: t.interactiveTooltip.content,
|
|
54
56
|
contentClassName: t.interactiveTooltip.contentClassName,
|
|
55
|
-
children:
|
|
57
|
+
children: o
|
|
56
58
|
}
|
|
57
|
-
) :
|
|
59
|
+
) : o,
|
|
58
60
|
i && /* @__PURE__ */ n(
|
|
59
61
|
x,
|
|
60
62
|
{
|
|
61
63
|
refs: l,
|
|
62
64
|
floatingStyles: b,
|
|
63
|
-
context:
|
|
65
|
+
context: p,
|
|
64
66
|
getFloatingProps: v,
|
|
65
67
|
role: "listbox",
|
|
66
|
-
surfaceClassName:
|
|
68
|
+
surfaceClassName: P,
|
|
67
69
|
children: t.children.map((e) => {
|
|
68
|
-
const
|
|
70
|
+
const r = /* @__PURE__ */ n(
|
|
69
71
|
c,
|
|
70
72
|
{
|
|
71
73
|
role: "option",
|
|
@@ -78,24 +80,24 @@ const G = ({
|
|
|
78
80
|
icon: e.icon,
|
|
79
81
|
label: e.labelNode ?? e.label,
|
|
80
82
|
rightControl: e.rightControl,
|
|
81
|
-
onClick: () => !e.disabled &&
|
|
83
|
+
onClick: () => !e.disabled && d(e.value)
|
|
82
84
|
}
|
|
83
85
|
);
|
|
84
|
-
return /* @__PURE__ */ n(
|
|
86
|
+
return /* @__PURE__ */ n(M, { children: e.interactiveTooltip ? /* @__PURE__ */ n(
|
|
85
87
|
s,
|
|
86
88
|
{
|
|
87
89
|
asChild: !0,
|
|
88
90
|
placement: e.interactiveTooltip.placement,
|
|
89
91
|
content: e.interactiveTooltip.content,
|
|
90
92
|
contentClassName: e.interactiveTooltip.contentClassName,
|
|
91
|
-
children:
|
|
93
|
+
children: r
|
|
92
94
|
}
|
|
93
|
-
) :
|
|
95
|
+
) : r }, e.value);
|
|
94
96
|
})
|
|
95
97
|
}
|
|
96
98
|
)
|
|
97
99
|
] });
|
|
98
100
|
};
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
q as SelectSubMenuItem
|
|
101
103
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.14.0-dev.
|
|
3
|
-
"generatedAt": "2026-09-
|
|
2
|
+
"version": "0.14.0-dev.44",
|
|
3
|
+
"generatedAt": "2026-09-10T09:28:48.353Z",
|
|
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",
|
|
@@ -4337,7 +4337,7 @@
|
|
|
4337
4337
|
"name": "barClassName",
|
|
4338
4338
|
"type": "string",
|
|
4339
4339
|
"required": false,
|
|
4340
|
-
"description": "Additional CSS classes for each bar's outer container."
|
|
4340
|
+
"description": "Additional CSS classes for each bar's outer container. In compare mode they apply to the shared pair container (one continuous block); the entry is a Tailwind `group` — use `group-hover:` for pair hover; when `onBarClick` is set that container also gets a default accent fill on hover and `:focus-visible`."
|
|
4341
4341
|
},
|
|
4342
4342
|
{
|
|
4343
4343
|
"name": "barDescriptions",
|
|
@@ -9834,6 +9834,10 @@
|
|
|
9834
9834
|
{
|
|
9835
9835
|
"name": "subMenuHoverOptions?",
|
|
9836
9836
|
"value": "DropdownSubMenuHoverOptions"
|
|
9837
|
+
},
|
|
9838
|
+
{
|
|
9839
|
+
"name": "interactiveTooltip?",
|
|
9840
|
+
"value": "DropdownItemInteractiveTooltip"
|
|
9837
9841
|
}
|
|
9838
9842
|
],
|
|
9839
9843
|
"sourceFile": "models/dropdown.ts"
|