@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.
Files changed (32) hide show
  1. package/dist/CHANGELOG.md +1 -0
  2. package/dist/DateCellRenderer-B_oow9gn.cjs +1 -0
  3. package/dist/{DateCellRenderer-p6k-mVZt.cjs → DateCellRenderer-CS8ZbiFh.cjs} +5 -5
  4. package/dist/JsonEditor-BlaSMX26.cjs +1 -0
  5. package/dist/{MarkdownEditor-CBH7ILah.cjs → MarkdownEditor-5kljDPcm.cjs} +1 -1
  6. package/dist/{MarkdownEditor-CMRC_XsQ.cjs → MarkdownEditor-C0_gU7Fi.cjs} +1 -1
  7. package/dist/MarkdownEditorContainer-BqTGQArV.cjs +1 -0
  8. package/dist/components/Analytics/BarGroup/BarGroup.js +60 -58
  9. package/dist/components/Grid/constants.js +2 -2
  10. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
  11. package/dist/components/New/Dropdown/Dropdown.js +163 -152
  12. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +75 -55
  13. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +45 -44
  14. package/dist/components/New/Select/SelectSubMenuItem.js +26 -24
  15. package/dist/components-manifest.json +7 -3
  16. package/dist/dial-ui-kit.cjs +2 -2
  17. package/dist/editors.cjs +1 -1
  18. package/dist/file-manager.cjs +1 -1
  19. package/dist/grid.cjs +1 -1
  20. package/dist/index.css +1 -1
  21. package/dist/lazy-B1eG0EeX.cjs +1 -0
  22. package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +9 -2
  23. package/dist/src/models/dropdown.d.ts +23 -0
  24. package/dist/src/utils/sub-menu-floating.d.ts +1 -0
  25. package/dist/{use-file-manager-tabs-CIQjiyK-.cjs → use-file-manager-tabs-D0RFLbl1.cjs} +1 -1
  26. package/dist/utils/sub-menu-floating.js +45 -38
  27. package/package.json +1 -1
  28. package/dist/DateCellRenderer-DNPEX0I7.cjs +0 -1
  29. package/dist/JsonEditor-BZCyPc2D.cjs +0 -1
  30. package/dist/MarkdownEditorContainer-B_6-Gd-T.cjs +0 -1
  31. package/dist/editor-BKQqPhwX.cjs +0 -1
  32. package/dist/lazy-CJ-0Pjkj.cjs +0 -1
@@ -1,59 +1,60 @@
1
- import { jsx as s, jsxs as L, Fragment as j } from "react/jsx-runtime";
2
- import { useFloating as w, autoUpdate as D, offset as H, flip as U, shift as G, useHover as Y, safePolygon as k, useFocus as q, useDismiss as z, useInteractions as B, useMergeRefs as m, FloatingPortal as J, FloatingFocusManager as K } from "@floating-ui/react";
3
- import { useState as Q, useRef as W, useMemo as u, isValidElement as X, cloneElement as Z } from "react";
4
- import { useThemeScope as $ } from "../ThemeScope/ThemeScope.js";
5
- import { useIsMobileScreen as ee } from "../../../hooks/use-is-mobile-screen.js";
6
- import { TooltipPlacement as oe } from "../../../types/tooltip.js";
7
- import { mergeClasses as d } from "../../../utils/merge-classes.js";
8
- import { INTERACTIVE_TOOLTIP_GAP as te, INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY as se, interactiveTooltipClassName as ne } from "./constants.js";
9
- const ue = ({
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 = oe.Right,
11
+ placement: g = se.Right,
12
12
  children: e,
13
13
  asChild: R = !1,
14
- hideTooltip: T = !1,
15
- initialOpen: h = !1,
14
+ hideTooltip: F = !1,
15
+ initialOpen: T = !1,
16
16
  open: n,
17
- onOpenChange: F,
17
+ onOpenChange: h,
18
18
  triggerClassName: r,
19
- contentClassName: E
19
+ contentClassName: I
20
20
  }) => {
21
- const P = ee(), I = $(), [O, C] = Q(h), i = n ?? O, v = F ?? C, { refs: t, floatingStyles: N, context: o } = w({
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: v,
25
- whileElementsMounted: D,
25
+ onOpenChange: N,
26
+ whileElementsMounted: U,
26
27
  middleware: [
27
- H(te),
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
- U({ padding: 5 }),
32
- G({ padding: 5 })
32
+ Y({ padding: 5 }),
33
+ k({ padding: 5 })
33
34
  ]
34
- }), M = Y(o, {
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: k(),
39
- delay: { open: se, close: 0 }
40
- }), _ = q(o, { enabled: n == null }), x = z(o), { getReferenceProps: c, getFloatingProps: S } = B([
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
- ]), V = W(null), b = m(
45
- u(() => [t.setFloating, V], [t.setFloating])
46
- ), f = R && X(e), l = f ? e.props?.ref : null, p = m(
47
- u(
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
- ), y = !T && !P && !!a, A = f ? Z(
52
+ ), A = !F && !E && !!a, L = f ? ee(
52
53
  e,
53
54
  c({
54
55
  ...e.props,
55
56
  ref: p,
56
- className: d(
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__ */ L(j, { children: [
71
- A,
72
- i && y && /* @__PURE__ */ s(J, { id: "interactive-tooltip-portal", children: /* @__PURE__ */ s(
73
- K,
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: b,
84
+ ref: y,
84
85
  "data-placement": o.placement,
85
- style: N,
86
- ...S(),
87
- className: d(
88
- ne,
89
- I,
90
- E
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
- ue as InteractiveTooltip
101
+ ge as InteractiveTooltip
101
102
  };
@@ -1,26 +1,28 @@
1
- import { jsx as n, jsxs as g, Fragment as C } from "react/jsx-runtime";
2
- import { Fragment as T } from "react";
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 M } from "../../../types/menu-item.js";
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 N, selectSubMenuCaretIcon as F, selectSubMenuClassName as I } from "./constants.js";
8
- const G = ({
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 = M.Tint,
12
- onSelect: u
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: d,
19
- getReferenceProps: p,
20
+ context: p,
21
+ getReferenceProps: f,
20
22
  getFloatingProps: v
21
- } = S(N, "listbox", !!t.disabled), f = t.children?.some(
23
+ } = S(I, "listbox", !!t.disabled), g = t.children?.some(
22
24
  (e) => a.includes(e.value)
23
- ), r = (
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": !!f,
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
- ...p()
45
+ ...f()
44
46
  }
45
47
  )
46
48
  );
47
- return /* @__PURE__ */ g(C, { children: [
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: r
57
+ children: o
56
58
  }
57
- ) : r,
59
+ ) : o,
58
60
  i && /* @__PURE__ */ n(
59
61
  x,
60
62
  {
61
63
  refs: l,
62
64
  floatingStyles: b,
63
- context: d,
65
+ context: p,
64
66
  getFloatingProps: v,
65
67
  role: "listbox",
66
- surfaceClassName: I,
68
+ surfaceClassName: P,
67
69
  children: t.children.map((e) => {
68
- const o = /* @__PURE__ */ n(
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 && u(e.value)
83
+ onClick: () => !e.disabled && d(e.value)
82
84
  }
83
85
  );
84
- return /* @__PURE__ */ n(T, { children: e.interactiveTooltip ? /* @__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: o
93
+ children: r
92
94
  }
93
- ) : o }, e.value);
95
+ ) : r }, e.value);
94
96
  })
95
97
  }
96
98
  )
97
99
  ] });
98
100
  };
99
101
  export {
100
- G as SelectSubMenuItem
102
+ q as SelectSubMenuItem
101
103
  };
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.14.0-dev.41",
3
- "generatedAt": "2026-09-09T12:45:15.102Z",
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"