@epam/ai-dial-ui-kit 0.5.0-rc.36 → 0.5.0-rc.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/dial-ui-kit.cjs.js +2 -2
- package/dist/dial-ui-kit.es.js +17 -21
- 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/models/breadcrumb.d.ts +1 -1
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -6029,15 +6029,18 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6029
6029
|
disabled: o,
|
|
6030
6030
|
isLast: i,
|
|
6031
6031
|
separator: n = Qh,
|
|
6032
|
-
|
|
6032
|
+
className: r,
|
|
6033
6033
|
iconBefore: a,
|
|
6034
|
-
|
|
6034
|
+
titleClassName: l
|
|
6035
6035
|
}) => {
|
|
6036
6036
|
const c = be(
|
|
6037
6037
|
Yh,
|
|
6038
6038
|
i ? Rb : yb,
|
|
6039
6039
|
r
|
|
6040
|
-
), d = (!!t || !!s) && !i && !o, u = d ? be(
|
|
6040
|
+
), d = (!!t || !!s) && !i && !o, u = d ? be(
|
|
6041
|
+
bd,
|
|
6042
|
+
xb
|
|
6043
|
+
) : be(
|
|
6041
6044
|
bd,
|
|
6042
6045
|
Fb,
|
|
6043
6046
|
o ? "pointer-events-none opacity-75" : ""
|
|
@@ -6073,20 +6076,13 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6073
6076
|
pathItems: e,
|
|
6074
6077
|
separator: t = Qh,
|
|
6075
6078
|
ariaLabel: s = "Breadcrumb",
|
|
6076
|
-
|
|
6079
|
+
className: o,
|
|
6077
6080
|
children: i,
|
|
6078
|
-
|
|
6081
|
+
titleClassName: n
|
|
6079
6082
|
}) => {
|
|
6080
6083
|
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
|
-
};
|
|
6084
|
+
const d = c.props, { titleClassName: u, isLast: h, separator: g, ...p } = d;
|
|
6085
|
+
return p;
|
|
6090
6086
|
}), [e, i]), a = k(
|
|
6091
6087
|
(c) => {
|
|
6092
6088
|
const d = parseInt(c.key, 10), u = r[d];
|
|
@@ -6103,7 +6099,7 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6103
6099
|
key: `item-${f}`,
|
|
6104
6100
|
isLast: f === r.length - 1,
|
|
6105
6101
|
separator: t,
|
|
6106
|
-
|
|
6102
|
+
titleClassName: n
|
|
6107
6103
|
}
|
|
6108
6104
|
));
|
|
6109
6105
|
const c = r.at(0), d = r.slice(1, -2), u = r.at(-2), h = r.at(-1);
|
|
@@ -6120,7 +6116,7 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6120
6116
|
...c,
|
|
6121
6117
|
key: "item-0",
|
|
6122
6118
|
separator: t,
|
|
6123
|
-
|
|
6119
|
+
titleClassName: n
|
|
6124
6120
|
}
|
|
6125
6121
|
),
|
|
6126
6122
|
/* @__PURE__ */ z("li", { className: be(Yh), children: [
|
|
@@ -6152,7 +6148,7 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6152
6148
|
...u,
|
|
6153
6149
|
key: `item-${r.length - 2}`,
|
|
6154
6150
|
separator: t,
|
|
6155
|
-
|
|
6151
|
+
titleClassName: n
|
|
6156
6152
|
}
|
|
6157
6153
|
),
|
|
6158
6154
|
/* @__PURE__ */ ui(
|
|
@@ -6162,7 +6158,7 @@ const vd = () => typeof window < "u" && window.innerWidth < 640, wd = () => {
|
|
|
6162
6158
|
key: `item-${r.length - 1}`,
|
|
6163
6159
|
isLast: !0,
|
|
6164
6160
|
separator: t,
|
|
6165
|
-
|
|
6161
|
+
titleClassName: n
|
|
6166
6162
|
}
|
|
6167
6163
|
)
|
|
6168
6164
|
] });
|
|
@@ -8790,7 +8786,7 @@ const dg = ({
|
|
|
8790
8786
|
) });
|
|
8791
8787
|
}, 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
8788
|
ariaLabel: e = "Breadcrumb",
|
|
8793
|
-
|
|
8789
|
+
titleClassName: t,
|
|
8794
8790
|
onItemClick: s,
|
|
8795
8791
|
path: o,
|
|
8796
8792
|
makeHref: i,
|
|
@@ -8848,8 +8844,8 @@ const dg = ({
|
|
|
8848
8844
|
{
|
|
8849
8845
|
pathItems: w,
|
|
8850
8846
|
ariaLabel: e,
|
|
8851
|
-
|
|
8852
|
-
|
|
8847
|
+
titleClassName: t,
|
|
8848
|
+
className: l
|
|
8853
8849
|
}
|
|
8854
8850
|
) }),
|
|
8855
8851
|
c && /* @__PURE__ */ v(
|
|
@@ -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;
|