@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.
- package/dist/CHANGELOG.md +10 -0
- package/dist/DateCellRenderer-D3WA9Jzg.cjs +1 -0
- package/dist/components/New/BottomSheet/BottomSheet.js +82 -68
- package/dist/components/New/Select/CollapsedSelectTags.js +127 -0
- package/dist/components/New/Select/MultiSelectTags.js +18 -15
- package/dist/components/New/Select/Select.js +184 -173
- package/dist/components/New/SideDrawer/SideDrawer.js +38 -34
- package/dist/components/New/constants/overlay.js +7 -5
- package/dist/components-manifest.json +45 -2
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/grid.cjs +1 -1
- package/dist/src/components/New/BottomSheet/BottomSheet.d.ts +13 -1
- package/dist/src/components/New/Select/CollapsedSelectTags.d.ts +22 -0
- package/dist/src/components/New/Select/MultiSelectTags.d.ts +5 -0
- package/dist/src/components/New/Select/Select.d.ts +9 -0
- package/dist/src/components/New/SideDrawer/SideDrawer.d.ts +10 -1
- package/package.json +1 -1
- package/dist/DateCellRenderer-DABG5c2F.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { useFloating as
|
|
3
|
-
import { IconChevronLeft as
|
|
4
|
-
import { useId as
|
|
5
|
-
import { CloseButton as
|
|
6
|
-
import { DIAL_KIT_ICON_STROKE as
|
|
7
|
-
import { GhostIconButton as
|
|
8
|
-
import { useThemeScope as
|
|
9
|
-
import { DIAL_ICON_SIZE as
|
|
10
|
-
import { DIAL_KIT_CLASS as
|
|
11
|
-
import { ElementSize as
|
|
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
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
style: w,
|
|
31
|
+
overlayStyle: N,
|
|
32
|
+
bodyClassName: k,
|
|
33
|
+
titleClassName: F,
|
|
34
|
+
portalId: C
|
|
33
35
|
}) => {
|
|
34
|
-
const
|
|
36
|
+
const D = q(), d = `side-drawer-title-${G()}`, s = typeof o == "string", { refs: m, context: a } = A({
|
|
35
37
|
open: t,
|
|
36
|
-
onOpenChange: (
|
|
37
|
-
|
|
38
|
+
onOpenChange: (z) => {
|
|
39
|
+
z || l();
|
|
38
40
|
}
|
|
39
|
-
}),
|
|
40
|
-
return /* @__PURE__ */ e(
|
|
41
|
-
|
|
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
|
-
|
|
50
|
+
D,
|
|
48
51
|
v
|
|
49
52
|
),
|
|
50
53
|
children: /* @__PURE__ */ e(
|
|
51
|
-
|
|
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
|
-
|
|
76
|
+
Q.sideDrawer
|
|
73
77
|
),
|
|
74
78
|
children: [
|
|
75
|
-
|
|
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
|
-
|
|
88
|
+
$,
|
|
85
89
|
{
|
|
86
90
|
"aria-label": u,
|
|
87
91
|
disabled: x,
|
|
88
92
|
onClick: i,
|
|
89
93
|
icon: /* @__PURE__ */ e(
|
|
90
|
-
|
|
94
|
+
B,
|
|
91
95
|
{
|
|
92
|
-
size:
|
|
93
|
-
stroke:
|
|
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
|
-
|
|
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
|
-
|
|
117
|
+
H,
|
|
114
118
|
{
|
|
115
119
|
ariaLabel: g,
|
|
116
120
|
onClose: l,
|
|
117
121
|
disabled: b,
|
|
118
|
-
size:
|
|
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
|
-
|
|
133
|
+
k
|
|
130
134
|
),
|
|
131
135
|
children: y
|
|
132
136
|
}
|
|
@@ -140,5 +144,5 @@ const ae = ({
|
|
|
140
144
|
) });
|
|
141
145
|
};
|
|
142
146
|
export {
|
|
143
|
-
|
|
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",
|
|
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
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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.
|
|
3
|
-
"generatedAt": "2026-
|
|
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",
|