@epam/ai-dial-ui-kit 0.14.0-dev.46 → 0.14.0-dev.49
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/DateCellRenderer-D437_mi0.cjs +1 -0
- package/dist/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.js +94 -87
- package/dist/components/FileManager/utils.js +31 -23
- package/dist/components/New/Dropdown/Dropdown.js +94 -93
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +52 -50
- package/dist/components-manifest.json +8 -2
- package/dist/dial-ui-kit.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/src/components/FileManager/FileManager.d.ts +2 -1
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +2 -0
- package/dist/src/components/FileManager/utils.d.ts +11 -0
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +10 -0
- package/dist/{use-file-manager-tabs-dJ-RvTEw.cjs → use-file-manager-tabs-DjdR_mYM.cjs} +2 -2
- package/package.json +1 -1
- package/dist/DateCellRenderer-BYItGoO_.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as N, Fragment as
|
|
2
|
-
import { useFloatingNodeId as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { InteractiveTooltip as
|
|
5
|
-
import { DropdownTrigger as y, DropdownItemType as
|
|
6
|
-
import { MenuItemMark as
|
|
7
|
-
import { dropdownGap as w, dropdownDividerClassName as
|
|
8
|
-
import { CloseButton as
|
|
9
|
-
import { MenuItem as
|
|
10
|
-
import { useThemeScope as
|
|
1
|
+
import { jsxs as N, Fragment as M, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useFloatingNodeId as he, useFloating as ge, autoUpdate as ye, offset as we, autoPlacement as ve, flip as xe, shift as Ce, size as ke, useClick as be, useHover as Pe, safePolygon as Ee, useDismiss as Ie, useRole as Ne, useInteractions as Me, FloatingTree as De, FloatingNode as Fe, FloatingPortal as Ae, FloatingFocusManager as Oe } from "@floating-ui/react";
|
|
3
|
+
import { useState as W, useRef as Re, useCallback as m, useId as Te, useEffect as j, useMemo as Se, Fragment as Le } from "react";
|
|
4
|
+
import { InteractiveTooltip as $e } from "../InteractiveTooltip/InteractiveTooltip.js";
|
|
5
|
+
import { DropdownTrigger as y, DropdownItemType as K } from "../../../types/dropdown.js";
|
|
6
|
+
import { MenuItemMark as Be } from "../../../types/menu-item.js";
|
|
7
|
+
import { dropdownGap as w, dropdownDividerClassName as Ye, dropdownBaseClassName as _e, dropdownListBaseClassName as We } from "./constants.js";
|
|
8
|
+
import { CloseButton as je } from "../CloseButton/CloseButton.js";
|
|
9
|
+
import { MenuItem as Ke } from "../MenuItem/MenuItem.js";
|
|
10
|
+
import { useThemeScope as Ue } from "../ThemeScope/ThemeScope.js";
|
|
11
11
|
import { mergeClasses as v } from "../../../utils/merge-classes.js";
|
|
12
|
-
import { DropdownSubMenuItem as
|
|
13
|
-
import { resolveItemMark as
|
|
14
|
-
const
|
|
12
|
+
import { DropdownSubMenuItem as Ve } from "./DropdownSubMenuItem.js";
|
|
13
|
+
import { resolveItemMark as Xe, getItemRole as qe } from "./item-mark.js";
|
|
14
|
+
const ze = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]', Ge = (l) => !l.hasAttribute("disabled") && l.getAttribute("aria-disabled") !== "true", He = ["ArrowDown", "ArrowUp", "Home", "End"], Je = (l, d, u) => {
|
|
15
15
|
if (l === "Home") return 0;
|
|
16
16
|
if (l === "End") return u - 1;
|
|
17
17
|
const a = l === "ArrowDown" ? 1 : -1;
|
|
18
18
|
return d === -1 ? a === 1 ? 0 : u - 1 : (d + a + u) % u;
|
|
19
|
-
},
|
|
19
|
+
}, Qe = (l) => "clientWidth" in l ? l.clientWidth : l.getBoundingClientRect?.()?.width ?? 0, ft = ({
|
|
20
20
|
children: l,
|
|
21
21
|
items: d,
|
|
22
22
|
onItemClick: u,
|
|
@@ -24,48 +24,49 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
24
24
|
menuFooter: h,
|
|
25
25
|
renderOverlay: P,
|
|
26
26
|
trigger: f = [y.Click],
|
|
27
|
-
placement:
|
|
27
|
+
placement: D,
|
|
28
28
|
disabled: i = !1,
|
|
29
|
-
open:
|
|
30
|
-
defaultOpen:
|
|
29
|
+
open: F,
|
|
30
|
+
defaultOpen: U = !1,
|
|
31
31
|
onOpenChange: A,
|
|
32
|
-
closable:
|
|
33
|
-
onClose:
|
|
34
|
-
className:
|
|
32
|
+
closable: V = !1,
|
|
33
|
+
onClose: X,
|
|
34
|
+
className: q,
|
|
35
35
|
overlayContentClassName: O,
|
|
36
36
|
separatorClassName: R,
|
|
37
|
-
listClassName:
|
|
37
|
+
listClassName: z,
|
|
38
38
|
outsidePressIgnoreRef: T,
|
|
39
|
-
outsideClosable:
|
|
40
|
-
allowedPlacements:
|
|
39
|
+
outsideClosable: G = !0,
|
|
40
|
+
allowedPlacements: H,
|
|
41
41
|
anchorToMouse: x = !1,
|
|
42
42
|
matchReferenceWidth: E = !0,
|
|
43
|
-
maxDropdownHeight: S
|
|
43
|
+
maxDropdownHeight: S,
|
|
44
|
+
initialFocus: L
|
|
44
45
|
}) => {
|
|
45
|
-
const
|
|
46
|
+
const J = Ue(), [Q, Z] = W(U), I = F !== void 0, c = I ? !!F : Q, C = Re(null), [ee, te] = W(!0), o = m(
|
|
46
47
|
(e, t, r) => {
|
|
47
|
-
e &&
|
|
48
|
+
e && te(r !== "hover" && r !== "safe-polygon"), I || Z(e), A?.(e);
|
|
48
49
|
},
|
|
49
50
|
[I, A]
|
|
50
|
-
),
|
|
51
|
-
nodeId:
|
|
52
|
-
placement:
|
|
51
|
+
), $ = Te(), ne = D === void 0, B = he(), { refs: p, floatingStyles: oe, context: g } = ge({
|
|
52
|
+
nodeId: B,
|
|
53
|
+
placement: D,
|
|
53
54
|
open: c,
|
|
54
55
|
onOpenChange: o,
|
|
55
|
-
whileElementsMounted:
|
|
56
|
+
whileElementsMounted: ye,
|
|
56
57
|
middleware: [
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
we({ mainAxis: w, crossAxis: 0 }),
|
|
59
|
+
ne ? ve({
|
|
59
60
|
alignment: "start",
|
|
60
61
|
crossAxis: !0,
|
|
61
62
|
padding: w,
|
|
62
|
-
allowedPlacements:
|
|
63
|
-
}) :
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
allowedPlacements: H
|
|
64
|
+
}) : xe({ padding: w }),
|
|
65
|
+
Ce({ padding: w }),
|
|
66
|
+
ke({
|
|
66
67
|
padding: w,
|
|
67
68
|
apply({ availableWidth: e, availableHeight: t, elements: r }) {
|
|
68
|
-
const s = r.floating, b =
|
|
69
|
+
const s = r.floating, b = Qe(r.reference);
|
|
69
70
|
s.style.setProperty(
|
|
70
71
|
"--fui-available-height",
|
|
71
72
|
`${Math.floor(t)}px`
|
|
@@ -73,32 +74,32 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
73
74
|
"--reference-width",
|
|
74
75
|
E ? `${Math.round(b)}px` : "0px"
|
|
75
76
|
), E ? s.style.minWidth = `${Math.round(b)}px` : s.style.removeProperty("min-width"), s.style.maxWidth = `${Math.floor(e)}px`;
|
|
76
|
-
const
|
|
77
|
-
s.style.maxHeight = `${S ? Math.min(
|
|
77
|
+
const _ = Math.floor(t);
|
|
78
|
+
s.style.maxHeight = `${S ? Math.min(_, S) : _}px`;
|
|
78
79
|
}
|
|
79
80
|
})
|
|
80
81
|
]
|
|
81
|
-
}), oe = ke(g, {
|
|
82
|
-
enabled: f.includes(y.Click) && !i
|
|
83
82
|
}), re = be(g, {
|
|
83
|
+
enabled: f.includes(y.Click) && !i
|
|
84
|
+
}), se = Pe(g, {
|
|
84
85
|
enabled: f.includes(y.Hover) && !i,
|
|
85
86
|
move: !1,
|
|
86
87
|
restMs: 40,
|
|
87
|
-
handleClose:
|
|
88
|
+
handleClose: Ee(),
|
|
88
89
|
delay: { open: 80, close: 80 }
|
|
89
|
-
}),
|
|
90
|
+
}), le = Ie(g, {
|
|
90
91
|
bubbles: !0,
|
|
91
92
|
referencePress: !1,
|
|
92
93
|
outsidePress: (e) => {
|
|
93
|
-
if (!
|
|
94
|
+
if (!G) return !1;
|
|
94
95
|
const t = e.target;
|
|
95
96
|
return !(T?.current && t instanceof Node && T.current.contains(t));
|
|
96
97
|
}
|
|
97
|
-
}),
|
|
98
|
-
oe,
|
|
98
|
+
}), ie = Ne(g, { role: "menu" }), { getReferenceProps: ce, getFloatingProps: ae } = Me([
|
|
99
99
|
re,
|
|
100
100
|
se,
|
|
101
|
-
le
|
|
101
|
+
le,
|
|
102
|
+
ie
|
|
102
103
|
]), k = m(
|
|
103
104
|
(e, t) => {
|
|
104
105
|
p.setPositionReference({
|
|
@@ -115,7 +116,7 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
115
116
|
});
|
|
116
117
|
},
|
|
117
118
|
[p]
|
|
118
|
-
),
|
|
119
|
+
), de = m(
|
|
119
120
|
(e) => {
|
|
120
121
|
!f.includes(y.ContextMenu) || i || (e.preventDefault(), x && (k(e.clientX, e.clientY), C.current = document.elementFromPoint(
|
|
121
122
|
e.clientX,
|
|
@@ -123,7 +124,7 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
123
124
|
)), o(!0));
|
|
124
125
|
},
|
|
125
126
|
[x, i, o, k, f]
|
|
126
|
-
),
|
|
127
|
+
), ue = m(
|
|
127
128
|
(e) => {
|
|
128
129
|
!x || i || (f.includes(y.ContextMenu) && c && o(!1), k(e.clientX, e.clientY), C.current = document.elementFromPoint(
|
|
129
130
|
e.clientX,
|
|
@@ -132,30 +133,30 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
132
133
|
},
|
|
133
134
|
[x, i, k, c, f, o]
|
|
134
135
|
);
|
|
135
|
-
|
|
136
|
+
j(() => {
|
|
136
137
|
i && c && o(!1);
|
|
137
138
|
}, [i, c, o]);
|
|
138
|
-
const
|
|
139
|
+
const fe = m(
|
|
139
140
|
(e) => {
|
|
140
|
-
if (e.defaultPrevented || !
|
|
141
|
+
if (e.defaultPrevented || !He.includes(e.key)) return;
|
|
141
142
|
const t = Array.from(
|
|
142
143
|
e.currentTarget.querySelectorAll(
|
|
143
|
-
|
|
144
|
+
ze
|
|
144
145
|
)
|
|
145
|
-
).filter(
|
|
146
|
+
).filter(Ge);
|
|
146
147
|
if (t.length === 0) return;
|
|
147
148
|
e.preventDefault();
|
|
148
149
|
const r = e.currentTarget.ownerDocument.activeElement, s = t.findIndex((b) => b === r);
|
|
149
|
-
t[
|
|
150
|
+
t[Je(e.key, s, t.length)]?.focus();
|
|
150
151
|
},
|
|
151
152
|
[]
|
|
152
|
-
),
|
|
153
|
+
), Y = m(
|
|
153
154
|
(e) => (t) => {
|
|
154
155
|
e.disabled || (e.onClick?.({ key: e.key, domEvent: t }), u?.({ key: e.key, domEvent: t }), e.selectable || o(!1));
|
|
155
156
|
},
|
|
156
157
|
[u, o]
|
|
157
|
-
),
|
|
158
|
-
a && /* @__PURE__ */ n(
|
|
158
|
+
), pe = Se(() => P ? P() : d ? /* @__PURE__ */ N(M, { children: [
|
|
159
|
+
a && /* @__PURE__ */ n(M, { children: typeof a == "function" ? a() : a }),
|
|
159
160
|
/* @__PURE__ */ n(
|
|
160
161
|
"div",
|
|
161
162
|
{
|
|
@@ -163,19 +164,19 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
163
164
|
className: v("py-1", O),
|
|
164
165
|
"aria-label": "dropdown",
|
|
165
166
|
children: d.map((e) => {
|
|
166
|
-
if (e.type ===
|
|
167
|
+
if (e.type === K.Divider)
|
|
167
168
|
return /* @__PURE__ */ n(
|
|
168
169
|
"div",
|
|
169
170
|
{
|
|
170
171
|
role: "separator",
|
|
171
172
|
className: v(
|
|
172
|
-
|
|
173
|
+
Ye,
|
|
173
174
|
R
|
|
174
175
|
)
|
|
175
176
|
},
|
|
176
177
|
e.key
|
|
177
178
|
);
|
|
178
|
-
if (e.type ===
|
|
179
|
+
if (e.type === K.PlainText)
|
|
179
180
|
return /* @__PURE__ */ n(
|
|
180
181
|
"div",
|
|
181
182
|
{
|
|
@@ -189,19 +190,19 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
189
190
|
);
|
|
190
191
|
if (e.children?.length)
|
|
191
192
|
return /* @__PURE__ */ n(
|
|
192
|
-
|
|
193
|
+
Ve,
|
|
193
194
|
{
|
|
194
195
|
item: e,
|
|
195
196
|
onRootClose: () => o(!1)
|
|
196
197
|
},
|
|
197
198
|
e.key
|
|
198
199
|
);
|
|
199
|
-
const t =
|
|
200
|
-
|
|
200
|
+
const t = Xe(e), r = qe(e), s = /* @__PURE__ */ n(
|
|
201
|
+
Ke,
|
|
201
202
|
{
|
|
202
203
|
role: r,
|
|
203
204
|
"aria-checked": r === "menuitem" ? void 0 : !!e.checked,
|
|
204
|
-
"aria-current": t ===
|
|
205
|
+
"aria-current": t === Be.Highlight && e.checked ? !0 : void 0,
|
|
205
206
|
"aria-disabled": !!e.disabled,
|
|
206
207
|
disabled: e.disabled,
|
|
207
208
|
mark: t,
|
|
@@ -211,12 +212,12 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
211
212
|
label: e.label,
|
|
212
213
|
className: e.className,
|
|
213
214
|
rightControl: e.rightControl,
|
|
214
|
-
onClick:
|
|
215
|
+
onClick: Y(e),
|
|
215
216
|
children: e.renderItem?.(e)
|
|
216
217
|
}
|
|
217
218
|
);
|
|
218
|
-
return /* @__PURE__ */ n(
|
|
219
|
-
|
|
219
|
+
return /* @__PURE__ */ n(Le, { children: e.interactiveTooltip ? /* @__PURE__ */ n(
|
|
220
|
+
$e,
|
|
220
221
|
{
|
|
221
222
|
asChild: !0,
|
|
222
223
|
placement: e.interactiveTooltip.placement,
|
|
@@ -228,9 +229,9 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
228
229
|
})
|
|
229
230
|
}
|
|
230
231
|
),
|
|
231
|
-
h && /* @__PURE__ */ n(
|
|
232
|
+
h && /* @__PURE__ */ n(M, { children: typeof h == "function" ? h() : h })
|
|
232
233
|
] }) : null, [
|
|
233
|
-
|
|
234
|
+
Y,
|
|
234
235
|
d,
|
|
235
236
|
h,
|
|
236
237
|
a,
|
|
@@ -238,11 +239,11 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
238
239
|
o,
|
|
239
240
|
O,
|
|
240
241
|
R
|
|
241
|
-
]),
|
|
242
|
-
onContextMenu:
|
|
243
|
-
onMouseDown:
|
|
242
|
+
]), me = ce({
|
|
243
|
+
onContextMenu: de,
|
|
244
|
+
onMouseDown: ue
|
|
244
245
|
});
|
|
245
|
-
return
|
|
246
|
+
return j(() => {
|
|
246
247
|
if (!c) return;
|
|
247
248
|
const e = p.reference.current;
|
|
248
249
|
let t = null;
|
|
@@ -254,55 +255,55 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
254
255
|
{ root: null, threshold: 0 }
|
|
255
256
|
);
|
|
256
257
|
return r.observe(t), () => r.disconnect();
|
|
257
|
-
}, [c, p.reference, o]), /* @__PURE__ */ n(
|
|
258
|
+
}, [c, p.reference, o]), /* @__PURE__ */ n(De, { children: /* @__PURE__ */ N(Fe, { id: B, children: [
|
|
258
259
|
/* @__PURE__ */ n(
|
|
259
260
|
"span",
|
|
260
261
|
{
|
|
261
262
|
ref: p.setReference,
|
|
262
263
|
className: v(
|
|
263
|
-
|
|
264
|
+
_e,
|
|
264
265
|
i && "!cursor-not-allowed opacity-75",
|
|
265
|
-
|
|
266
|
+
q
|
|
266
267
|
),
|
|
267
268
|
"aria-haspopup": "menu",
|
|
268
269
|
"aria-expanded": c,
|
|
269
|
-
"aria-controls":
|
|
270
|
-
...
|
|
270
|
+
"aria-controls": $,
|
|
271
|
+
...me,
|
|
271
272
|
children: l
|
|
272
273
|
}
|
|
273
274
|
),
|
|
274
|
-
c && /* @__PURE__ */ n(
|
|
275
|
-
|
|
275
|
+
c && /* @__PURE__ */ n(Ae, { children: /* @__PURE__ */ n(
|
|
276
|
+
Oe,
|
|
276
277
|
{
|
|
277
278
|
context: g,
|
|
278
279
|
modal: !1,
|
|
279
|
-
initialFocus:
|
|
280
|
+
initialFocus: L !== void 0 ? L : ee ? 0 : -1,
|
|
280
281
|
returnFocus: !0,
|
|
281
282
|
children: /* @__PURE__ */ N(
|
|
282
283
|
"div",
|
|
283
284
|
{
|
|
284
|
-
id:
|
|
285
|
+
id: $,
|
|
285
286
|
ref: p.setFloating,
|
|
286
|
-
style:
|
|
287
|
+
style: oe,
|
|
287
288
|
className: v(
|
|
288
|
-
|
|
289
|
+
We,
|
|
289
290
|
!E && "w-max",
|
|
290
291
|
"overflow-auto",
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
J,
|
|
293
|
+
z
|
|
293
294
|
),
|
|
294
|
-
...
|
|
295
|
+
...ae({ onKeyDown: fe }),
|
|
295
296
|
children: [
|
|
296
|
-
|
|
297
|
-
|
|
297
|
+
V && /* @__PURE__ */ n("div", { className: "flex items-center justify-between px-2 pt-2", children: /* @__PURE__ */ n(
|
|
298
|
+
je,
|
|
298
299
|
{
|
|
299
300
|
ariaLabel: "Close dropdown",
|
|
300
301
|
onClose: (e) => {
|
|
301
|
-
|
|
302
|
+
X?.(e), o(!1);
|
|
302
303
|
}
|
|
303
304
|
}
|
|
304
305
|
) }),
|
|
305
|
-
|
|
306
|
+
pe
|
|
306
307
|
]
|
|
307
308
|
}
|
|
308
309
|
)
|
|
@@ -311,5 +312,5 @@ const qe = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
|
|
|
311
312
|
] }) });
|
|
312
313
|
};
|
|
313
314
|
export {
|
|
314
|
-
|
|
315
|
+
ft as Dropdown
|
|
315
316
|
};
|
|
@@ -1,65 +1,67 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useFloatingNodeId as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useThemeScope as
|
|
1
|
+
import { jsx as n, jsxs as w, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { useFloatingNodeId as H, useFloating as U, autoUpdate as G, offset as Y, flip as k, shift as q, useHover as z, safePolygon as B, useFocus as J, useDismiss as K, useInteractions as Q, useMergeRefs as u, FloatingPortal as W, FloatingFocusManager as X } from "@floating-ui/react";
|
|
3
|
+
import { useState as Z, useRef as $, useMemo as d, isValidElement as ee, cloneElement as oe } from "react";
|
|
4
|
+
import { useThemeScope as se } from "../ThemeScope/ThemeScope.js";
|
|
5
5
|
import { useIsMobileScreen as te } from "../../../hooks/use-is-mobile-screen.js";
|
|
6
|
-
import { TooltipPlacement as
|
|
7
|
-
import { mergeClasses as
|
|
8
|
-
import { INTERACTIVE_TOOLTIP_GAP as
|
|
9
|
-
const
|
|
6
|
+
import { TooltipPlacement as ne } from "../../../types/tooltip.js";
|
|
7
|
+
import { mergeClasses as g } from "../../../utils/merge-classes.js";
|
|
8
|
+
import { INTERACTIVE_TOOLTIP_GAP as le, INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY as ae, interactiveTooltipClassName as re } from "./constants.js";
|
|
9
|
+
const Re = ({
|
|
10
10
|
content: a,
|
|
11
|
-
placement:
|
|
11
|
+
placement: R = ne.Right,
|
|
12
12
|
children: e,
|
|
13
|
-
asChild:
|
|
14
|
-
hideTooltip:
|
|
15
|
-
initialOpen:
|
|
16
|
-
open:
|
|
17
|
-
onOpenChange:
|
|
13
|
+
asChild: F = !1,
|
|
14
|
+
hideTooltip: T = !1,
|
|
15
|
+
initialOpen: h = !1,
|
|
16
|
+
open: s,
|
|
17
|
+
onOpenChange: I,
|
|
18
18
|
triggerClassName: r,
|
|
19
|
-
contentClassName:
|
|
19
|
+
contentClassName: E
|
|
20
20
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const P = te(), C = se(), [N, O] = Z(h), i = s ?? N, v = (m) => {
|
|
22
|
+
I?.(m), s == null && O(m);
|
|
23
|
+
}, M = H(), { refs: t, floatingStyles: _, context: o } = U({
|
|
24
|
+
nodeId: M,
|
|
25
|
+
placement: R,
|
|
24
26
|
open: i,
|
|
25
|
-
onOpenChange:
|
|
26
|
-
whileElementsMounted:
|
|
27
|
+
onOpenChange: v,
|
|
28
|
+
whileElementsMounted: G,
|
|
27
29
|
middleware: [
|
|
28
|
-
|
|
30
|
+
Y(le),
|
|
29
31
|
/* No `fallbackAxisSideDirection`: a panel placed to the right should
|
|
30
32
|
flip to the left when it does not fit, not drop to the perpendicular
|
|
31
33
|
top/bottom axis, which reads as the panel landing in the wrong place.*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
k({ padding: 5 }),
|
|
35
|
+
q({ padding: 5 })
|
|
34
36
|
]
|
|
35
|
-
}),
|
|
36
|
-
enabled:
|
|
37
|
+
}), S = z(o, {
|
|
38
|
+
enabled: s == null,
|
|
37
39
|
/* Lets the pointer cross the gap between the trigger and the panel
|
|
38
40
|
without closing it, so it can actually be reached and used. */
|
|
39
|
-
handleClose:
|
|
40
|
-
delay: { open:
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
]),
|
|
46
|
-
d(() => [t.setFloating,
|
|
47
|
-
), f =
|
|
41
|
+
handleClose: B(),
|
|
42
|
+
delay: { open: ae, close: 0 }
|
|
43
|
+
}), V = J(o, { enabled: s == null }), b = K(o), { getReferenceProps: c, getFloatingProps: x } = Q([
|
|
44
|
+
S,
|
|
45
|
+
V,
|
|
46
|
+
b
|
|
47
|
+
]), y = $(null), A = u(
|
|
48
|
+
d(() => [t.setFloating, y], [t.setFloating])
|
|
49
|
+
), f = F && ee(e), l = f ? e.props?.ref : null, p = u(
|
|
48
50
|
d(
|
|
49
51
|
() => [t.setReference, ...l ? [l] : []],
|
|
50
52
|
[t.setReference, l]
|
|
51
53
|
)
|
|
52
|
-
),
|
|
54
|
+
), L = !T && !P && !!a, j = f ? oe(
|
|
53
55
|
e,
|
|
54
56
|
c({
|
|
55
57
|
...e.props,
|
|
56
58
|
ref: p,
|
|
57
|
-
className:
|
|
59
|
+
className: g(
|
|
58
60
|
e.props.className,
|
|
59
61
|
r
|
|
60
62
|
) || void 0
|
|
61
63
|
})
|
|
62
|
-
) : /* @__PURE__ */
|
|
64
|
+
) : /* @__PURE__ */ n(
|
|
63
65
|
"span",
|
|
64
66
|
{
|
|
65
67
|
ref: p,
|
|
@@ -68,27 +70,27 @@ const ge = ({
|
|
|
68
70
|
children: e
|
|
69
71
|
}
|
|
70
72
|
);
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
-
|
|
73
|
-
i &&
|
|
74
|
-
|
|
73
|
+
return /* @__PURE__ */ w(D, { children: [
|
|
74
|
+
j,
|
|
75
|
+
i && L && /* @__PURE__ */ n(W, { id: "interactive-tooltip-portal", children: /* @__PURE__ */ n(
|
|
76
|
+
X,
|
|
75
77
|
{
|
|
76
78
|
context: o,
|
|
77
79
|
modal: !1,
|
|
78
80
|
initialFocus: -1,
|
|
79
81
|
returnFocus: !1,
|
|
80
82
|
order: ["reference", "content"],
|
|
81
|
-
children: /* @__PURE__ */
|
|
83
|
+
children: /* @__PURE__ */ n(
|
|
82
84
|
"div",
|
|
83
85
|
{
|
|
84
|
-
ref:
|
|
86
|
+
ref: A,
|
|
85
87
|
"data-placement": o.placement,
|
|
86
|
-
style:
|
|
87
|
-
...
|
|
88
|
-
className:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
style: _,
|
|
89
|
+
...x(),
|
|
90
|
+
className: g(
|
|
91
|
+
re,
|
|
92
|
+
C,
|
|
93
|
+
E
|
|
92
94
|
),
|
|
93
95
|
children: a
|
|
94
96
|
}
|
|
@@ -98,5 +100,5 @@ const ge = ({
|
|
|
98
100
|
] });
|
|
99
101
|
};
|
|
100
102
|
export {
|
|
101
|
-
|
|
103
|
+
Re as InteractiveTooltip
|
|
102
104
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.14.0-dev.
|
|
3
|
-
"generatedAt": "2026-09-
|
|
2
|
+
"version": "0.14.0-dev.49",
|
|
3
|
+
"generatedAt": "2026-09-10T20:07:22.493Z",
|
|
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",
|
|
@@ -2028,6 +2028,12 @@
|
|
|
2028
2028
|
"type": "number | null",
|
|
2029
2029
|
"required": false,
|
|
2030
2030
|
"description": "Maximum height of the dropdown menu; when omitted, no limit is applied"
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
"name": "initialFocus",
|
|
2034
|
+
"type": "0 | -1 | RefObject<HTMLElement | null>",
|
|
2035
|
+
"required": false,
|
|
2036
|
+
"description": "Initial focus target inside the overlay on open, forwarded to `FloatingFocusManager`; when omitted, matches pre-existing behavior"
|
|
2031
2037
|
}
|
|
2032
2038
|
],
|
|
2033
2039
|
"examples": [
|