@epam/ai-dial-ui-kit 0.5.0-rc.36 → 0.5.0-rc.38
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/dial-ui-kit.cjs.js +2 -2
- package/dist/dial-ui-kit.es.js +24 -37
- package/dist/src/components/Alert/Alert.d.ts +2 -2
- package/dist/src/components/Alert/constants.d.ts +2 -2
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +8 -8
- package/dist/src/components/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/dist/src/components/Breadcrumb/constants.d.ts +10 -10
- package/dist/src/components/DraggableItem/DraggableItem.d.ts +8 -8
- package/dist/src/components/DraggableItem/constants.d.ts +2 -2
- package/dist/src/components/Icon/Icon.d.ts +0 -1
- package/dist/src/models/breadcrumb.d.ts +1 -1
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -2955,7 +2955,7 @@ const Av = {
|
|
|
2955
2955
|
}, Ov = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", M8 = ({
|
|
2956
2956
|
variant: e = bo.Info,
|
|
2957
2957
|
message: t,
|
|
2958
|
-
|
|
2958
|
+
className: s,
|
|
2959
2959
|
closable: o = !1,
|
|
2960
2960
|
onClose: i
|
|
2961
2961
|
}) => /* @__PURE__ */ z(
|
|
@@ -2978,7 +2978,7 @@ const Av = {
|
|
|
2978
2978
|
className: "ml-2 text-secondary hover:text-primary",
|
|
2979
2979
|
"aria-label": "Close alert",
|
|
2980
2980
|
iconBefore: /* @__PURE__ */ v(Uo, { size: 16 }),
|
|
2981
|
-
onClick:
|
|
2981
|
+
onClick: i
|
|
2982
2982
|
}
|
|
2983
2983
|
)
|
|
2984
2984
|
]
|
|
@@ -5319,10 +5319,10 @@ function Wh(e, t) {
|
|
|
5319
5319
|
const fd = "column", X1 = "flex items-center", J1 = "mr-3 cursor-move text-secondary", A8 = ({
|
|
5320
5320
|
id: e,
|
|
5321
5321
|
children: t,
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5322
|
+
className: s,
|
|
5323
|
+
onFind: o,
|
|
5324
|
+
onMove: i,
|
|
5325
|
+
ariaLabel: n = "Drag item"
|
|
5326
5326
|
}) => {
|
|
5327
5327
|
const r = L(null), a = L(null), l = typeof o == "function" ? o(e) : -1, [{ isDragging: c }, d, u] = U1(
|
|
5328
5328
|
() => ({
|
|
@@ -5360,15 +5360,7 @@ const fd = "column", X1 = "flex items-center", J1 = "mr-3 cursor-move text-secon
|
|
|
5360
5360
|
style: { opacity: c ? 0 : 1 },
|
|
5361
5361
|
"aria-roledescription": "Draggable item",
|
|
5362
5362
|
children: [
|
|
5363
|
-
/* @__PURE__ */ v(
|
|
5364
|
-
"div",
|
|
5365
|
-
{
|
|
5366
|
-
ref: r,
|
|
5367
|
-
className: J1,
|
|
5368
|
-
"aria-label": n,
|
|
5369
|
-
children: /* @__PURE__ */ v(hC, { ...re })
|
|
5370
|
-
}
|
|
5371
|
-
),
|
|
5363
|
+
/* @__PURE__ */ v("div", { ref: r, className: J1, "aria-label": n, children: /* @__PURE__ */ v(hC, { ...re }) }),
|
|
5372
5364
|
t
|
|
5373
5365
|
]
|
|
5374
5366
|
}
|
|
@@ -5455,7 +5447,6 @@ const fd = "column", X1 = "flex items-center", J1 = "mr-3 cursor-move text-secon
|
|
|
5455
5447
|
Ne,
|
|
5456
5448
|
{
|
|
5457
5449
|
className: be("text-accent-primary", s),
|
|
5458
|
-
label: "Shared entity indicator",
|
|
5459
5450
|
icon: /* @__PURE__ */ v(
|
|
5460
5451
|
NC,
|
|
5461
5452
|
{
|
|
@@ -6029,15 +6020,18 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6029
6020
|
disabled: o,
|
|
6030
6021
|
isLast: i,
|
|
6031
6022
|
separator: n = Qh,
|
|
6032
|
-
|
|
6023
|
+
className: r,
|
|
6033
6024
|
iconBefore: a,
|
|
6034
|
-
|
|
6025
|
+
titleClassName: l
|
|
6035
6026
|
}) => {
|
|
6036
6027
|
const c = be(
|
|
6037
6028
|
Yh,
|
|
6038
6029
|
i ? Rb : yb,
|
|
6039
6030
|
r
|
|
6040
|
-
), d = (!!t || !!s) && !i && !o, u = d ? be(
|
|
6031
|
+
), d = (!!t || !!s) && !i && !o, u = d ? be(
|
|
6032
|
+
bd,
|
|
6033
|
+
xb
|
|
6034
|
+
) : be(
|
|
6041
6035
|
bd,
|
|
6042
6036
|
Fb,
|
|
6043
6037
|
o ? "pointer-events-none opacity-75" : ""
|
|
@@ -6073,20 +6067,13 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6073
6067
|
pathItems: e,
|
|
6074
6068
|
separator: t = Qh,
|
|
6075
6069
|
ariaLabel: s = "Breadcrumb",
|
|
6076
|
-
|
|
6070
|
+
className: o,
|
|
6077
6071
|
children: i,
|
|
6078
|
-
|
|
6072
|
+
titleClassName: n
|
|
6079
6073
|
}) => {
|
|
6080
6074
|
const r = B(() => e?.length ? e : oC.toArray(i).filter(Hl).map((c) => {
|
|
6081
|
-
const d = c.props;
|
|
6082
|
-
return
|
|
6083
|
-
title: d.title,
|
|
6084
|
-
href: d.href,
|
|
6085
|
-
onClick: d.onClick,
|
|
6086
|
-
disabled: d.disabled,
|
|
6087
|
-
iconBefore: d.iconBefore,
|
|
6088
|
-
cssClass: d.cssClass
|
|
6089
|
-
};
|
|
6075
|
+
const d = c.props, { titleClassName: u, isLast: h, separator: g, ...p } = d;
|
|
6076
|
+
return p;
|
|
6090
6077
|
}), [e, i]), a = k(
|
|
6091
6078
|
(c) => {
|
|
6092
6079
|
const d = parseInt(c.key, 10), u = r[d];
|
|
@@ -6103,7 +6090,7 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6103
6090
|
key: `item-${f}`,
|
|
6104
6091
|
isLast: f === r.length - 1,
|
|
6105
6092
|
separator: t,
|
|
6106
|
-
|
|
6093
|
+
titleClassName: n
|
|
6107
6094
|
}
|
|
6108
6095
|
));
|
|
6109
6096
|
const c = r.at(0), d = r.slice(1, -2), u = r.at(-2), h = r.at(-1);
|
|
@@ -6120,7 +6107,7 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6120
6107
|
...c,
|
|
6121
6108
|
key: "item-0",
|
|
6122
6109
|
separator: t,
|
|
6123
|
-
|
|
6110
|
+
titleClassName: n
|
|
6124
6111
|
}
|
|
6125
6112
|
),
|
|
6126
6113
|
/* @__PURE__ */ z("li", { className: be(Yh), children: [
|
|
@@ -6152,7 +6139,7 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6152
6139
|
...u,
|
|
6153
6140
|
key: `item-${r.length - 2}`,
|
|
6154
6141
|
separator: t,
|
|
6155
|
-
|
|
6142
|
+
titleClassName: n
|
|
6156
6143
|
}
|
|
6157
6144
|
),
|
|
6158
6145
|
/* @__PURE__ */ ui(
|
|
@@ -6162,7 +6149,7 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6162
6149
|
key: `item-${r.length - 1}`,
|
|
6163
6150
|
isLast: !0,
|
|
6164
6151
|
separator: t,
|
|
6165
|
-
|
|
6152
|
+
titleClassName: n
|
|
6166
6153
|
}
|
|
6167
6154
|
)
|
|
6168
6155
|
] });
|
|
@@ -8790,7 +8777,7 @@ const dg = ({
|
|
|
8790
8777
|
) });
|
|
8791
8778
|
}, z0 = "w-full h-[12] flex items-center justify-between gap-4", W0 = "min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded", _0 = "w-[260px]", U0 = ({
|
|
8792
8779
|
ariaLabel: e = "Breadcrumb",
|
|
8793
|
-
|
|
8780
|
+
titleClassName: t,
|
|
8794
8781
|
onItemClick: s,
|
|
8795
8782
|
path: o,
|
|
8796
8783
|
makeHref: i,
|
|
@@ -8848,8 +8835,8 @@ const dg = ({
|
|
|
8848
8835
|
{
|
|
8849
8836
|
pathItems: w,
|
|
8850
8837
|
ariaLabel: e,
|
|
8851
|
-
|
|
8852
|
-
|
|
8838
|
+
titleClassName: t,
|
|
8839
|
+
className: l
|
|
8853
8840
|
}
|
|
8854
8841
|
) }),
|
|
8855
8842
|
c && /* @__PURE__ */ v(
|
|
@@ -3,7 +3,7 @@ import { AlertVariant } from '../../types/alert';
|
|
|
3
3
|
export interface DialAlertProps {
|
|
4
4
|
variant?: AlertVariant;
|
|
5
5
|
message: string | ReactNode;
|
|
6
|
-
|
|
6
|
+
className?: string;
|
|
7
7
|
closable?: boolean;
|
|
8
8
|
onClose?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
9
9
|
}
|
|
@@ -35,7 +35,7 @@ export interface DialAlertProps {
|
|
|
35
35
|
*
|
|
36
36
|
* @param [variant=AlertVariant.Info] - Defines the visual style and icon of the alert
|
|
37
37
|
* @param message - Message text to display inside the alert
|
|
38
|
-
* @param [
|
|
38
|
+
* @param [className] - Additional CSS classes applied to the alert container
|
|
39
39
|
* @param [closable=false] - Whether the alert has a close button
|
|
40
40
|
* @param [onClose] - Callback fired when the close button is clicked
|
|
41
41
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertVariant } from '../../types/alert';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export declare const variantIcons: Record<AlertVariant, ReactNode>;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const alertVariantClassNameMap: Record<AlertVariant, string>;
|
|
5
|
+
export declare const alertBaseClassName = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex";
|
|
@@ -4,9 +4,9 @@ export interface DialBreadcrumbProps {
|
|
|
4
4
|
pathItems?: DialBreadcrumbPathItem[];
|
|
5
5
|
separator?: ReactNode;
|
|
6
6
|
ariaLabel?: string;
|
|
7
|
-
|
|
7
|
+
className?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
|
-
|
|
9
|
+
titleClassName?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Breadcrumb navigation component with horizontal scroll on overflow.
|
|
@@ -31,11 +31,11 @@ export interface DialBreadcrumbProps {
|
|
|
31
31
|
* </DialBreadcrumb>
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
|
-
* @param pathItems - Array of breadcrumb pathItems (see `DialBreadcrumbItem`).
|
|
35
|
-
* @param separator - Custom separator node (default: right chevron icon).
|
|
36
|
-
* @param ariaLabel - Aria label for the `<nav>` element (default: "Breadcrumb").
|
|
37
|
-
* @param
|
|
38
|
-
* @param children - Alternatively, compose with `<DialBreadcrumbItem/>` as children.
|
|
39
|
-
* @param
|
|
34
|
+
* @param [pathItems] - Array of breadcrumb pathItems (see `DialBreadcrumbItem`).
|
|
35
|
+
* @param [separator] - Custom separator node (default: right chevron icon).
|
|
36
|
+
* @param [ariaLabel] - Aria label for the `<nav>` element (default: "Breadcrumb").
|
|
37
|
+
* @param [className] - Additional CSS classes for the `<nav>` container.
|
|
38
|
+
* @param [children] - Alternatively, compose with `<DialBreadcrumbItem/>` as children.
|
|
39
|
+
* @param [titleClassName] - Additional CSS classes applied to each item when using `pathItems` prop.
|
|
40
40
|
*/
|
|
41
41
|
export declare const DialBreadcrumb: FC<DialBreadcrumbProps>;
|
|
@@ -5,8 +5,8 @@ export interface DialBreadcrumbItemProps {
|
|
|
5
5
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
iconBefore?: ReactNode;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
className?: string;
|
|
9
|
+
titleClassName?: string;
|
|
10
10
|
isLast?: boolean;
|
|
11
11
|
separator?: ReactNode;
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
2
|
+
export declare const breadcrumbBaseClassName = "w-full overflow-hidden";
|
|
3
|
+
export declare const breadcrumbListClassName = "flex flex-nowrap items-center gap-2 min-w-0 px-0 py-0 whitespace-nowrap";
|
|
4
|
+
export declare const breadcrumbItemBaseClassName = "flex items-center gap-2 min-w-0 shrink-0 dial-small";
|
|
5
|
+
export declare const breadcrumbItemVisibleClassName = "max-w-[20%] basis-[20%] flex-none";
|
|
6
|
+
export declare const breadcrumbItemLastClassName = "flex-1 min-w-0";
|
|
7
|
+
export declare const breadcrumbLinkBaseClassName = "inline-flex items-center gap-1 min-w-0 transition-colors";
|
|
8
|
+
export declare const breadcrumbLinkInteractiveClassName = "text-secondary hover:text-accent-primary";
|
|
9
|
+
export declare const breadcrumbCurrentClassName = "text-primary cursor-default";
|
|
10
|
+
export declare const breadcrumbSeparatorClassName = "flex-none inline-flex items-center leading-none text-icon-secondary";
|
|
11
|
+
export declare const breadcrumbEllipsisButtonClassName = "items-center gap-1 min-w-0 transition-colors text-secondary hover:text-accent-primary";
|
|
12
12
|
export declare const defaultSeparator: ReactNode;
|
|
@@ -2,10 +2,10 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
export interface DialDraggableItemProps {
|
|
3
3
|
id: string;
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
className?: string;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
onFind?: (field: string) => number;
|
|
8
|
+
onMove?: (field: string, atIndex: number) => void;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* A lightweight wrapper that makes its children sortable via drag-and-drop.
|
|
@@ -23,9 +23,9 @@ export interface DialDraggableItemProps {
|
|
|
23
23
|
*
|
|
24
24
|
* @param id - Unique identifier of the draggable item
|
|
25
25
|
* @param children - Content rendered within the draggable row
|
|
26
|
-
* @param [
|
|
27
|
-
* @param [
|
|
28
|
-
* @param [
|
|
29
|
-
* @param [
|
|
26
|
+
* @param [className] - Additional CSS classes applied to the root container
|
|
27
|
+
* @param [onFind] - Function to resolve an item's current index by id
|
|
28
|
+
* @param [onMove] - Function to move an item (by id) to a target index
|
|
29
|
+
* @param [ariaLabel='Drag item'] - Accessible label for the handle
|
|
30
30
|
*/
|
|
31
31
|
export declare const DialDraggableItem: FC<DialDraggableItemProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const DRAG_TYPE = "column";
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const containerBaseClassName = "flex items-center";
|
|
3
|
+
export declare const handleBaseClassName = "mr-3 cursor-move text-secondary";
|