@epam/ai-dial-ui-kit 0.15.0-dev.35 → 0.15.0-dev.37

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,16 +1,16 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { useFloating as O, useRole as z, useDismiss as A, useInteractions as E, FloatingPortal as K, FloatingOverlay as P, FloatingFocusManager as j } from "@floating-ui/react";
3
- import { IconChevronLeft as M } from "@tabler/icons-react";
4
- import { useId as R } from "react";
5
- import { CloseButton as B } from "../CloseButton/CloseButton.js";
6
- import { DIAL_KIT_ICON_STROKE as G } from "../constants/icon.js";
7
- import { GhostIconButton as H } from "../IconButton/IconButtonWrappers.js";
8
- import { useThemeScope as Z } from "../ThemeScope/ThemeScope.js";
9
- import { DIAL_ICON_SIZE as $ } from "../../../constants/icon.js";
10
- import { DIAL_KIT_CLASS as q } from "../../../constants/public-class-names.js";
11
- import { ElementSize as J } from "../../../types/size.js";
2
+ import { useFloating as A, useRole as E, useDismiss as K, useInteractions as P, FloatingPortal as j, FloatingOverlay as M, FloatingFocusManager as R } from "@floating-ui/react";
3
+ import { IconChevronLeft as B } from "@tabler/icons-react";
4
+ import { useId as G } from "react";
5
+ import { CloseButton as H } from "../CloseButton/CloseButton.js";
6
+ import { DIAL_KIT_ICON_STROKE as Z } from "../constants/icon.js";
7
+ import { GhostIconButton as $ } from "../IconButton/IconButtonWrappers.js";
8
+ import { useThemeScope as q } from "../ThemeScope/ThemeScope.js";
9
+ import { DIAL_ICON_SIZE as J } from "../../../constants/icon.js";
10
+ import { DIAL_KIT_CLASS as Q } from "../../../constants/public-class-names.js";
11
+ import { ElementSize as U } from "../../../types/size.js";
12
12
  import { mergeClasses as r } from "../../../utils/merge-classes.js";
13
- const ae = ({
13
+ const ne = ({
14
14
  open: t,
15
15
  onClose: l,
16
16
  header: o,
@@ -27,28 +27,31 @@ const ae = ({
27
27
  className: I,
28
28
  overlayClassName: v,
29
29
  headerClassName: S,
30
- bodyClassName: w,
31
- titleClassName: N,
32
- portalId: k
30
+ style: w,
31
+ overlayStyle: N,
32
+ bodyClassName: k,
33
+ titleClassName: F,
34
+ portalId: C
33
35
  }) => {
34
- const F = Z(), d = `side-drawer-title-${R()}`, s = typeof o == "string", { refs: m, context: a } = O({
36
+ const D = q(), d = `side-drawer-title-${G()}`, s = typeof o == "string", { refs: m, context: a } = A({
35
37
  open: t,
36
- onOpenChange: (T) => {
37
- T || l();
38
+ onOpenChange: (z) => {
39
+ z || l();
38
40
  }
39
- }), C = z(a, { role: "dialog" }), D = A(a, { outsidePress: h }), { getFloatingProps: _ } = E([C, D]), L = o != null || i != null || !n;
40
- return /* @__PURE__ */ e(K, { id: k, children: /* @__PURE__ */ e(
41
- P,
41
+ }), _ = E(a, { role: "dialog" }), L = K(a, { outsidePress: h }), { getFloatingProps: T } = P([_, L]), O = o != null || i != null || !n;
42
+ return /* @__PURE__ */ e(j, { id: C, children: /* @__PURE__ */ e(
43
+ M,
42
44
  {
43
45
  lockScroll: t,
46
+ style: N,
44
47
  className: r(
45
48
  "z-popup bg-backdrop transition-opacity duration-300 motion-reduce:transition-none",
46
49
  t ? "opacity-100" : "pointer-events-none opacity-0",
47
- F,
50
+ D,
48
51
  v
49
52
  ),
50
53
  children: /* @__PURE__ */ e(
51
- j,
54
+ R,
52
55
  {
53
56
  context: a,
54
57
  disabled: !t,
@@ -57,22 +60,23 @@ const ae = ({
57
60
  "div",
58
61
  {
59
62
  ref: m.setFloating,
60
- ..._(),
63
+ ...T(),
61
64
  role: "dialog",
62
65
  "aria-modal": "true",
63
66
  "aria-labelledby": s ? d : void 0,
64
67
  "aria-label": s ? void 0 : f,
65
68
  inert: !t,
69
+ style: w,
66
70
  className: r(
67
71
  "fixed inset-y-0 end-0 flex w-full flex-col overflow-hidden bg-layer-raised outline-none",
68
72
  "desktop:w-[540px] desktop:rounded-s-xl desktop:border-s desktop:border-secondary",
69
73
  "transition-transform duration-300 motion-reduce:transition-none",
70
74
  t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full",
71
75
  I,
72
- q.sideDrawer
76
+ Q.sideDrawer
73
77
  ),
74
78
  children: [
75
- L && /* @__PURE__ */ c(
79
+ O && /* @__PURE__ */ c(
76
80
  "div",
77
81
  {
78
82
  className: r(
@@ -81,16 +85,16 @@ const ae = ({
81
85
  ),
82
86
  children: [
83
87
  i && /* @__PURE__ */ e(
84
- H,
88
+ $,
85
89
  {
86
90
  "aria-label": u,
87
91
  disabled: x,
88
92
  onClick: i,
89
93
  icon: /* @__PURE__ */ e(
90
- M,
94
+ B,
91
95
  {
92
- size: $.MD,
93
- stroke: G,
96
+ size: J.MD,
97
+ stroke: Z,
94
98
  className: "rtl:-scale-x-100",
95
99
  "aria-hidden": "true"
96
100
  }
@@ -103,19 +107,19 @@ const ae = ({
103
107
  id: d,
104
108
  className: r(
105
109
  "min-w-0 flex-1 truncate text-primary",
106
- N ?? "dial-h2-text"
110
+ F ?? "dial-h2-text"
107
111
  ),
108
112
  children: o
109
113
  }
110
114
  ) : /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: o }),
111
115
  p,
112
116
  !n && /* @__PURE__ */ e(
113
- B,
117
+ H,
114
118
  {
115
119
  ariaLabel: g,
116
120
  onClose: l,
117
121
  disabled: b,
118
- size: J.Standard
122
+ size: U.Standard
119
123
  }
120
124
  )
121
125
  ]
@@ -126,7 +130,7 @@ const ae = ({
126
130
  {
127
131
  className: r(
128
132
  "min-h-0 flex-1 overflow-y-auto",
129
- w
133
+ k
130
134
  ),
131
135
  children: y
132
136
  }
@@ -140,5 +144,5 @@ const ae = ({
140
144
  ) });
141
145
  };
142
146
  export {
143
- ae as SideDrawer
147
+ ne as SideDrawer
144
148
  };
@@ -1,13 +1,15 @@
1
1
  import { mergeClasses as e } from "../../../utils/merge-classes.js";
2
- const a = "rounded-xl bg-layer-raised p-1 shadow-md", l = "flex flex-col gap-0.5", s = e(
2
+ const a = "rounded-xl bg-layer-raised p-1 shadow-md", s = "flex flex-col gap-0.5", l = e(
3
3
  a,
4
4
  "w-max"
5
5
  ), r = e(
6
- s,
7
6
  l,
7
+ s,
8
8
  "py-2"
9
9
  ), n = e(
10
- "flex w-full cursor-pointer items-center gap-2 px-3 h-[40px] rounded-lg",
10
+ // `shrink-0` keeps the 40px: a column squeezed by the panel's height cap
11
+ // would otherwise collapse the rows to their content.
12
+ "flex w-full shrink-0 cursor-pointer items-center gap-2 px-3 h-[40px] rounded-lg",
11
13
  "dial-small-text text-primary truncate",
12
14
  // Hover sits one step up the accent-alpha ramp from the selected tint, so a
13
15
  // hovered row reads as hovered whether or not it is also selected.
@@ -26,8 +28,8 @@ export {
26
28
  m as overlayItemDisabledClassName,
27
29
  c as overlayItemHighlightClassName,
28
30
  t as overlayItemSelectedClassName,
29
- l as overlayListClassName,
30
- s as overlaySubMenuClassName,
31
+ s as overlayListClassName,
32
+ l as overlaySubMenuClassName,
31
33
  r as overlaySubMenuListClassName,
32
34
  a as overlaySurfaceClassName
33
35
  };
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.15.0-dev.35",
3
- "generatedAt": "2026-09-30T21:21:02.534Z",
2
+ "version": "0.15.0-dev.37",
3
+ "generatedAt": "2026-10-05T11:16:33.468Z",
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",
@@ -1250,6 +1250,13 @@
1250
1250
  "defaultValue": "'Select all'",
1251
1251
  "description": "Label for the \"Select All\" checkbox."
1252
1252
  },
1253
+ {
1254
+ "name": "collapseTagOverflow",
1255
+ "type": "boolean",
1256
+ "required": false,
1257
+ "defaultValue": "false",
1258
+ "description": "Keep a multi-select's tags on one row, folding those that do not fit into a `+N` counter by the width available; the hover panel lists them and removes them."
1259
+ },
1253
1260
  {
1254
1261
  "name": "selectedOptionMark",
1255
1262
  "type": "| MenuItemMark.Tint\n | MenuItemMark.Check\n | MenuItemMark.Highlight",
@@ -1403,6 +1410,12 @@
1403
1410
  "type": "(\n event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>,\n val: string,\n ) => void",
1404
1411
  "required": false,
1405
1412
  "description": "Called with the value whose tag was removed; when omitted the tags are not removable"
1413
+ },
1414
+ {
1415
+ "name": "tagClassName",
1416
+ "type": "string",
1417
+ "required": false,
1418
+ "description": "Additional classes for every tag"
1406
1419
  }
1407
1420
  ],
1408
1421
  "examples": [],
@@ -3533,6 +3546,24 @@
3533
3546
  "required": false,
3534
3547
  "description": "Additional CSS classes for the backdrop"
3535
3548
  },
3549
+ {
3550
+ "name": "headerClassName",
3551
+ "type": "string",
3552
+ "required": false,
3553
+ "description": "Additional CSS classes for the header row"
3554
+ },
3555
+ {
3556
+ "name": "style",
3557
+ "type": "CSSProperties",
3558
+ "required": false,
3559
+ "description": "Inline style for the panel, e.g. custom properties"
3560
+ },
3561
+ {
3562
+ "name": "overlayStyle",
3563
+ "type": "CSSProperties",
3564
+ "required": false,
3565
+ "description": "Inline style for the backdrop"
3566
+ },
3536
3567
  {
3537
3568
  "name": "bodyClassName",
3538
3569
  "type": "string",
@@ -3778,6 +3809,18 @@
3778
3809
  "required": false,
3779
3810
  "description": "Additional CSS classes for the header row"
3780
3811
  },
3812
+ {
3813
+ "name": "style",
3814
+ "type": "CSSProperties",
3815
+ "required": false,
3816
+ "description": "Inline style for the panel, e.g. custom properties"
3817
+ },
3818
+ {
3819
+ "name": "overlayStyle",
3820
+ "type": "CSSProperties",
3821
+ "required": false,
3822
+ "description": "Inline style for the backdrop"
3823
+ },
3781
3824
  {
3782
3825
  "name": "bodyClassName",
3783
3826
  "type": "string",