@epam/ai-dial-ui-kit 0.16.0-dev.56 → 0.16.0-dev.57

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.
@@ -15,19 +15,19 @@ import { mergeClasses as x } from "../../../utils/merge-classes.js";
15
15
  import { DropdownSubMenuItem as Ro } from "./DropdownSubMenuItem.js";
16
16
  import { resolveItemMark as Ao, getItemRole as Oo } from "./item-mark.js";
17
17
  import { highlightDropdownItems as Lo, filterDropdownItems as _o } from "./search.js";
18
- const $o = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]', Ho = (t) => !t.hasAttribute("disabled") && t.getAttribute("aria-disabled") !== "true", Wo = ["ArrowDown", "ArrowUp", "Home", "End"], Yo = (t, d, f) => {
18
+ const $o = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]', Ho = (t) => !t.hasAttribute("disabled") && t.getAttribute("aria-disabled") !== "true", Wo = ["ArrowDown", "ArrowUp", "Home", "End"], Yo = (t, d, p) => {
19
19
  if (t === "Home") return 0;
20
- if (t === "End") return f - 1;
20
+ if (t === "End") return p - 1;
21
21
  const u = t === "ArrowDown" ? 1 : -1;
22
- return d === -1 ? u === 1 ? 0 : f - 1 : (d + u + f) % f;
22
+ return d === -1 ? u === 1 ? 0 : p - 1 : (d + u + p) % p;
23
23
  }, Bo = (t) => "clientWidth" in t ? t.clientWidth : t.getBoundingClientRect?.()?.width ?? 0, it = ({
24
24
  children: t,
25
25
  items: d,
26
- onItemClick: f,
26
+ onItemClick: p,
27
27
  menuHeader: u,
28
28
  menuFooter: C,
29
29
  renderOverlay: N,
30
- trigger: p = [y.Click],
30
+ trigger: f = [y.Click],
31
31
  placement: B,
32
32
  disabled: a = !1,
33
33
  open: K,
@@ -102,9 +102,9 @@ const $o = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
102
102
  })
103
103
  ]
104
104
  }), Oe = ro(E, {
105
- enabled: p.includes(y.Click) && !a
105
+ enabled: f.includes(y.Click) && !a
106
106
  }), Le = so(E, {
107
- enabled: p.includes(y.Hover) && !a,
107
+ enabled: f.includes(y.Hover) && !a,
108
108
  move: !1,
109
109
  restMs: 40,
110
110
  handleClose: io(),
@@ -143,20 +143,20 @@ const $o = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
143
143
  [w]
144
144
  ), Ye = h(
145
145
  (o) => {
146
- !p.includes(y.ContextMenu) || a || (o.preventDefault(), M && (T(o.clientX, o.clientY), I.current = document.elementFromPoint(
146
+ !f.includes(y.ContextMenu) || a || (o.preventDefault(), M && (T(o.clientX, o.clientY), I.current = document.elementFromPoint(
147
147
  o.clientX,
148
148
  o.clientY
149
149
  )), r(!0));
150
150
  },
151
- [M, a, r, T, p]
151
+ [M, a, r, T, f]
152
152
  ), Be = h(
153
153
  (o) => {
154
- !M || a || (p.includes(y.ContextMenu) && c && r(!1), T(o.clientX, o.clientY), I.current = document.elementFromPoint(
154
+ !M || a || (f.includes(y.ContextMenu) && c && r(!1), T(o.clientX, o.clientY), I.current = document.elementFromPoint(
155
155
  o.clientX,
156
156
  o.clientY
157
157
  ));
158
158
  },
159
- [M, a, T, c, p, r]
159
+ [M, a, T, c, f, r]
160
160
  );
161
161
  ge(() => {
162
162
  a && c && r(!1);
@@ -178,9 +178,9 @@ const $o = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
178
178
  [re]
179
179
  ), le = h(
180
180
  (o) => (e) => {
181
- o.disabled || (o.onClick?.({ key: o.key, domEvent: e }), f?.({ key: o.key, domEvent: e }), o.selectable || r(!1));
181
+ o.disabled || (o.onClick?.({ key: o.key, domEvent: e }), p?.({ key: o.key, domEvent: e }), o.selectable || r(!1));
182
182
  },
183
- [f, r]
183
+ [p, r]
184
184
  ), b = he(() => !d || !l ? d : Lo(
185
185
  _o(d, m, ee),
186
186
  m
@@ -333,7 +333,7 @@ const $o = '[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]
333
333
  "aria-haspopup": ae,
334
334
  "aria-expanded": ce,
335
335
  "aria-controls": de
336
- }, fe = wo(t) && p.some((o) => o !== y.ContextMenu), Xe = fe ? yo(t, {
336
+ }, fe = wo(t) && (f.length === 0 || f.some((o) => o !== y.ContextMenu)), Xe = fe ? yo(t, {
337
337
  "aria-haspopup": t.props["aria-haspopup"] ?? ae,
338
338
  "aria-expanded": t.props["aria-expanded"] ?? ce,
339
339
  "aria-controls": t.props["aria-controls"] ?? de
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.16.0-dev.56",
3
- "generatedAt": "2026-10-29T18:34:13.437Z",
2
+ "version": "0.16.0-dev.57",
3
+ "generatedAt": "2026-10-29T22:34:30.711Z",
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",