@epam/ai-dial-ui-kit 0.15.0-dev.53 → 0.15.0-dev.54

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.
@@ -1,63 +1,64 @@
1
1
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
2
- import { useFloating as J, useRole as Q, useDismiss as U, useInteractions as W, FloatingPortal as X, FloatingOverlay as Y, FloatingFocusManager as ee } from "@floating-ui/react";
3
- import { useRef as oe, useId as re } from "react";
4
- import { Button as se } from "../Button/Button.js";
5
- import { CloseButton as ae } from "../CloseButton/CloseButton.js";
6
- import { GhostIconButton as ie } from "../IconButton/IconButtonWrappers.js";
7
- import { Tooltip as le } from "../Tooltip/Tooltip.js";
8
- import { DIAL_KIT_ICON_STROKE as te } from "../constants/icon.js";
9
- import { DIAL_ICON_SIZE as ne } from "../../../constants/icon.js";
10
- import { ButtonVariant as pe } from "../../../types/button.js";
11
- import { PopupSize as me } from "../../../types/popup.js";
12
- import { ElementSize as ce } from "../../../types/size.js";
13
- import { useThemeScope as de } from "../ThemeScope/ThemeScope.js";
2
+ import { useFloating as Q, useRole as U, useDismiss as W, useInteractions as X, FloatingPortal as Y, FloatingOverlay as ee, FloatingFocusManager as oe } from "@floating-ui/react";
3
+ import { useRef as re, useId as se } from "react";
4
+ import { Button as ae } from "../Button/Button.js";
5
+ import { CloseButton as ie } from "../CloseButton/CloseButton.js";
6
+ import { GhostIconButton as le } from "../IconButton/IconButtonWrappers.js";
7
+ import { Tooltip as te } from "../Tooltip/Tooltip.js";
8
+ import { DIAL_KIT_ICON_STROKE as ne } from "../constants/icon.js";
9
+ import { DIAL_ICON_SIZE as pe } from "../../../constants/icon.js";
10
+ import { ButtonVariant as me } from "../../../types/button.js";
11
+ import { PopupSize as ce } from "../../../types/popup.js";
12
+ import { ElementSize as de } from "../../../types/size.js";
13
+ import { useThemeScope as ue } from "../ThemeScope/ThemeScope.js";
14
14
  import { mergeClasses as r } from "../../../utils/merge-classes.js";
15
- import { IconChevronLeft as ue } from "@tabler/icons-react";
16
- import { popupActionsGroupClassName as l, popupHeaderDividerClassName as fe, popupHeaderClassName as ge, popupSizeClassMap as he, popupBaseClassName as Ne, popupOverlayBaseClassName as Ce, popupTitleClassName as ve, popupFooterDividerClassName as Ie, popupFooterClassName as Fe } from "./constants.js";
17
- import { DIAL_KIT_CLASS as Se } from "../../../constants/public-class-names.js";
18
- const $e = ({
15
+ import { IconChevronLeft as fe } from "@tabler/icons-react";
16
+ import { popupActionsGroupClassName as l, popupHeaderDividerClassName as ge, popupHeaderClassName as he, popupSizeClassMap as Ne, popupBaseClassName as Ce, popupOverlayBaseClassName as ve, popupTitleClassName as Ie, popupFooterDividerClassName as Fe, popupFooterClassName as Se } from "./constants.js";
17
+ import { DIAL_KIT_CLASS as xe } from "../../../constants/public-class-names.js";
18
+ const je = ({
19
19
  open: t = !1,
20
20
  header: n,
21
21
  ariaLabel: F,
22
22
  portalId: S,
23
23
  className: x,
24
24
  overlayClassName: T,
25
- titleClassName: _,
26
- headerClassName: b,
25
+ overlayStyle: _,
26
+ titleClassName: b,
27
+ headerClassName: y,
27
28
  bodyClassName: z,
28
29
  children: D,
29
30
  footer: p,
30
- footerClassName: y,
31
+ footerClassName: B,
31
32
  onClose: m,
32
33
  onBack: c,
33
- backAriaLabel: B = "Back",
34
+ backAriaLabel: L = "Back",
34
35
  headerActions: d,
35
- headerDivider: L = !1,
36
+ headerDivider: P = !1,
36
37
  mainButtons: u,
37
38
  additionalButtons: f,
38
39
  additionalButtonsOnLeft: g = !1,
39
- footerDivider: P = !1,
40
- size: A = me.Md,
41
- hideClose: M = !1,
42
- closeAriaLabel: R = "Close dialog",
43
- closeOnOutsideClick: w = !0,
40
+ footerDivider: A = !1,
41
+ size: M = ce.Md,
42
+ hideClose: R = !1,
43
+ closeAriaLabel: w = "Close dialog",
44
+ closeOnOutsideClick: E = !0,
44
45
  preventKeyboardOnOpen: h = !1
45
46
  }) => {
46
- const E = de(), N = oe(null), G = re(), { refs: C, context: a } = J({
47
+ const G = ue(), N = re(null), O = se(), { refs: C, context: a } = Q({
47
48
  open: t,
48
49
  onOpenChange: (e) => {
49
50
  e || m?.(null);
50
51
  }
51
- }), O = Q(a, { role: "dialog" }), $ = U(a, { outsidePress: w }), { getFloatingProps: j } = W([O, $]);
52
+ }), $ = U(a, { role: "dialog" }), j = W(a, { outsidePress: E }), { getFloatingProps: k } = X([$, j]);
52
53
  if (!t) return null;
53
- const i = typeof n == "string" ? `popup-heading-${G}` : void 0, k = (e) => e ? typeof e == "string" ? /* @__PURE__ */ o(
54
+ const i = typeof n == "string" ? `popup-heading-${O}` : void 0, H = (e) => e ? typeof e == "string" ? /* @__PURE__ */ o(
54
55
  "h2",
55
56
  {
56
57
  id: i,
57
- className: r(ve, _),
58
- children: /* @__PURE__ */ o(le, { tooltip: e, triggerClassName: "truncate", children: e })
58
+ className: r(Ie, b),
59
+ children: /* @__PURE__ */ o(te, { tooltip: e, triggerClassName: "truncate", children: e })
59
60
  }
60
- ) : e : /* @__PURE__ */ o("span", {}), v = M ? null : /* @__PURE__ */ o(ae, { ariaLabel: R, onClose: (e) => m?.(e) }), I = (e, K = []) => K.map(({ variant: V = pe.Neutral, ...Z }, q) => /* @__PURE__ */ o(se, { variant: V, ...Z }, `${e}-${q}`)), H = () => {
61
+ ) : e : /* @__PURE__ */ o("span", {}), v = R ? null : /* @__PURE__ */ o(ie, { ariaLabel: w, onClose: (e) => m?.(e) }), I = (e, V = []) => V.map(({ variant: Z = me.Neutral, ...q }, J) => /* @__PURE__ */ o(ae, { variant: Z, ...q }, `${e}-${J}`)), K = () => {
61
62
  if (p !== void 0) return p;
62
63
  if (!u?.length && !f?.length) return null;
63
64
  const e = I("additional", f);
@@ -65,9 +66,9 @@ const $e = ({
65
66
  "div",
66
67
  {
67
68
  className: r(
68
- Fe,
69
- P && Ie,
70
- y
69
+ Se,
70
+ A && Fe,
71
+ B
71
72
  ),
72
73
  children: [
73
74
  g && e.length > 0 && /* @__PURE__ */ o("div", { className: l, children: e }),
@@ -79,16 +80,17 @@ const $e = ({
79
80
  }
80
81
  );
81
82
  };
82
- return /* @__PURE__ */ o(X, { id: S, children: /* @__PURE__ */ o(
83
- Y,
83
+ return /* @__PURE__ */ o(Y, { id: S, children: /* @__PURE__ */ o(
84
+ ee,
84
85
  {
86
+ style: _,
85
87
  className: r(
86
- Ce,
87
- E,
88
+ ve,
89
+ G,
88
90
  T
89
91
  ),
90
92
  children: /* @__PURE__ */ o(
91
- ee,
93
+ oe,
92
94
  {
93
95
  context: a,
94
96
  initialFocus: h ? N : C.floating,
@@ -96,16 +98,16 @@ const $e = ({
96
98
  "div",
97
99
  {
98
100
  ref: C.setFloating,
99
- ...j(),
101
+ ...k(),
100
102
  role: "dialog",
101
103
  "aria-modal": "true",
102
104
  "aria-labelledby": i,
103
105
  "aria-label": i ? void 0 : F,
104
106
  className: r(
105
- Ne,
106
- he[A],
107
+ Ce,
108
+ Ne[M],
107
109
  x,
108
- Se.popup
110
+ xe.popup
109
111
  ),
110
112
  children: [
111
113
  h && /* @__PURE__ */ o(
@@ -121,29 +123,29 @@ const $e = ({
121
123
  "div",
122
124
  {
123
125
  className: r(
124
- ge,
125
- L && fe,
126
- b
126
+ he,
127
+ P && ge,
128
+ y
127
129
  ),
128
130
  children: [
129
131
  c && /* @__PURE__ */ o(
130
- ie,
132
+ le,
131
133
  {
132
- "aria-label": B,
133
- size: ce.Small,
134
+ "aria-label": L,
135
+ size: de.Small,
134
136
  className: "mr-2",
135
137
  onClick: c,
136
138
  icon: /* @__PURE__ */ o(
137
- ue,
139
+ fe,
138
140
  {
139
- size: ne.SM,
140
- stroke: te,
141
+ size: pe.SM,
142
+ stroke: ne,
141
143
  "aria-hidden": "true"
142
144
  }
143
145
  )
144
146
  }
145
147
  ),
146
- k(n),
148
+ H(n),
147
149
  d ? /* @__PURE__ */ s("div", { className: l, children: [
148
150
  d,
149
151
  v
@@ -152,7 +154,7 @@ const $e = ({
152
154
  }
153
155
  ),
154
156
  /* @__PURE__ */ o("div", { className: r("grow overflow-auto", z), children: D }),
155
- H()
157
+ K()
156
158
  ]
157
159
  }
158
160
  )
@@ -162,5 +164,5 @@ const $e = ({
162
164
  ) });
163
165
  };
164
166
  export {
165
- $e as Popup
167
+ je as Popup
166
168
  };
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.15.0-dev.53",
3
- "generatedAt": "2026-10-08T11:41:20.370Z",
2
+ "version": "0.15.0-dev.54",
3
+ "generatedAt": "2026-10-08T11:59:00.519Z",
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",
@@ -1768,6 +1768,12 @@
1768
1768
  "required": false,
1769
1769
  "description": "Additional CSS classes applied to the overlay"
1770
1770
  },
1771
+ {
1772
+ "name": "overlayStyle",
1773
+ "type": "CSSProperties",
1774
+ "required": false,
1775
+ "description": "Inline styles merged over Floating UI's own overlay styles (`position`, `inset`, `overflow: auto`)"
1776
+ },
1771
1777
  {
1772
1778
  "name": "titleClassName",
1773
1779
  "type": "string",