@epam/ai-dial-ui-kit 0.5.0-rc.110 → 0.5.0-rc.111
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 +1 -1
- package/dist/dial-ui-kit.es.js +4 -4
- package/dist/src/components/Alert/Alert.d.ts +1 -1
- package/dist/src/components/Button/Button.d.ts +1 -1
- package/dist/src/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +1 -1
- package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +1 -1
- package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +1 -1
- package/dist/src/components/Field/Field.d.ts +1 -1
- package/dist/src/components/FileIcon/FileIcon.d.ts +1 -1
- package/dist/src/components/FileManager/FileManager.d.ts +3 -3
- package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +2 -2
- package/dist/src/components/FileManager/components/FileManagerDeleteConfirmationPopup/FileManagerDeleteConfirmationPopup.d.ts +1 -1
- package/dist/src/components/FileManager/components/FileMetadataPopup/FileMetadataPopup.d.ts +2 -2
- package/dist/src/components/FormItem/FormItem.d.ts +1 -1
- package/dist/src/components/Popup/Popup.d.ts +1 -1
- package/dist/src/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +2 -2
- package/dist/src/components/Switch/Switch.d.ts +2 -2
- package/dist/src/models/tab.d.ts +1 -1
- package/dist/src/types/form-item.d.ts +2 -2
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -2933,7 +2933,7 @@ const e1 = {
|
|
|
2933
2933
|
...l,
|
|
2934
2934
|
type: a,
|
|
2935
2935
|
className: d,
|
|
2936
|
-
"aria-label": e || l["aria-label"],
|
|
2936
|
+
"aria-label": typeof e == "string" && e || l["aria-label"],
|
|
2937
2937
|
children: [
|
|
2938
2938
|
/* @__PURE__ */ m(ze, { icon: n }),
|
|
2939
2939
|
e && /* @__PURE__ */ m("span", { className: c, children: e }),
|
|
@@ -3244,7 +3244,7 @@ const l1 = (e, t) => {
|
|
|
3244
3244
|
a
|
|
3245
3245
|
), g = ee(
|
|
3246
3246
|
"cursor-pointer dial-input-radio",
|
|
3247
|
-
s && "mr-2",
|
|
3247
|
+
!!s && "mr-2",
|
|
3248
3248
|
r
|
|
3249
3249
|
), p = ee(
|
|
3250
3250
|
"flex flex-col",
|
|
@@ -5462,7 +5462,7 @@ const _u = "column", w0 = "flex items-center", b0 = "mr-3 cursor-move text-secon
|
|
|
5462
5462
|
})(), c = (Uu[a] ?? Uu.default)({
|
|
5463
5463
|
size: t,
|
|
5464
5464
|
stroke: s
|
|
5465
|
-
}), d = n
|
|
5465
|
+
}), d = typeof n == "string" ? n : `${a.slice(1).toUpperCase()} file icon`;
|
|
5466
5466
|
return /* @__PURE__ */ z(
|
|
5467
5467
|
"span",
|
|
5468
5468
|
{
|
|
@@ -5488,7 +5488,7 @@ const _u = "column", w0 = "flex items-center", b0 = "mr-3 cursor-move text-secon
|
|
|
5488
5488
|
{
|
|
5489
5489
|
size: t,
|
|
5490
5490
|
stroke: i,
|
|
5491
|
-
"aria-label": e,
|
|
5491
|
+
"aria-label": typeof e == "string" ? e : void 0,
|
|
5492
5492
|
className: "bg-layer-3",
|
|
5493
5493
|
role: "img"
|
|
5494
5494
|
}
|
|
@@ -2,7 +2,7 @@ import { FC, MouseEvent, ReactNode, HTMLAttributes } from 'react';
|
|
|
2
2
|
import { AlertVariant } from '../../types/alert';
|
|
3
3
|
export interface DialAlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
variant?: AlertVariant;
|
|
5
|
-
message:
|
|
5
|
+
message: ReactNode;
|
|
6
6
|
closable?: boolean;
|
|
7
7
|
iconSize?: number;
|
|
8
8
|
iconStroke?: number;
|
|
@@ -3,7 +3,7 @@ import { ButtonVariant } from '../../types/button';
|
|
|
3
3
|
export interface DialButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
4
4
|
variant?: ButtonVariant;
|
|
5
5
|
textClassName?: string;
|
|
6
|
-
label?:
|
|
6
|
+
label?: ReactNode;
|
|
7
7
|
iconBefore?: ReactNode;
|
|
8
8
|
iconAfter?: ReactNode;
|
|
9
9
|
hideTitleOnMobile?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode, LabelHTMLAttributes } from 'react';
|
|
2
2
|
export interface DialCheckboxProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'onChange'> {
|
|
3
3
|
id: string;
|
|
4
|
-
label?:
|
|
4
|
+
label?: ReactNode;
|
|
5
5
|
checked: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
indeterminate?: boolean;
|
|
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
import { DialPopupProps } from '../Popup/Popup';
|
|
3
3
|
import { ConfirmationPopupVariant } from '../../types/confirmation-popup';
|
|
4
4
|
export interface DialConfirmationPopupProps extends DialPopupProps {
|
|
5
|
-
description?:
|
|
5
|
+
description?: ReactNode;
|
|
6
6
|
descriptionClassName?: string;
|
|
7
7
|
confirmLabel?: string;
|
|
8
8
|
cancelLabel?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { DialTooltipContainerOptions } from '../Tooltip/TooltipContext';
|
|
3
3
|
export interface DialEllipsisTooltipProps extends DialTooltipContainerOptions {
|
|
4
|
-
text:
|
|
4
|
+
text: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
contentClassName?: string;
|
|
7
7
|
hideTooltip?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
type NativeLabelProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'defaultValue' | 'onChange'>;
|
|
3
3
|
export interface DialFieldLabelProps extends NativeLabelProps {
|
|
4
|
-
fieldTitle?:
|
|
4
|
+
fieldTitle?: ReactNode;
|
|
5
5
|
optional?: boolean;
|
|
6
6
|
optionalText?: string;
|
|
7
7
|
description?: string;
|
|
@@ -24,7 +24,7 @@ export interface FileMetadataPopupOptions {
|
|
|
24
24
|
fileMetadata?: DialFile;
|
|
25
25
|
loading?: boolean;
|
|
26
26
|
clearMetadata?: () => void;
|
|
27
|
-
title?:
|
|
27
|
+
title?: ReactNode;
|
|
28
28
|
nameLabel?: string;
|
|
29
29
|
pathLabel?: string;
|
|
30
30
|
modifiedDateLabel?: string;
|
|
@@ -33,7 +33,7 @@ export interface FileMetadataPopupOptions {
|
|
|
33
33
|
}
|
|
34
34
|
export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 'selectedPath' | 'onItemClick'> {
|
|
35
35
|
width?: number;
|
|
36
|
-
title?:
|
|
36
|
+
title?: ReactNode;
|
|
37
37
|
containerClassName?: string;
|
|
38
38
|
additionalButtons?: ReactNode;
|
|
39
39
|
collapsed?: boolean;
|
|
@@ -53,7 +53,7 @@ export interface FileTreeOptions extends Omit<DialFoldersTreeProps, 'items' | 's
|
|
|
53
53
|
}
|
|
54
54
|
export interface DeleteConfirmationOptions {
|
|
55
55
|
cancelLabel?: string;
|
|
56
|
-
titleRenderer?: (fileNames: string[]) => ReactNode
|
|
56
|
+
titleRenderer?: (fileNames: string[]) => ReactNode;
|
|
57
57
|
confirmLabel?: string;
|
|
58
58
|
contentRenderer?: (fileNames: string[]) => ReactNode;
|
|
59
59
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DialFileManagerProps } from '../../FileManager';
|
|
2
|
-
import { FC } from 'react';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
3
|
export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
onConfirm?: () => void;
|
|
@@ -11,7 +11,7 @@ export interface DestinationFolderPopupProps extends DialFileManagerProps {
|
|
|
11
11
|
addFolderLabel?: string;
|
|
12
12
|
hiddenFilesSwitcherLabel?: string;
|
|
13
13
|
mode?: 'copy' | 'move';
|
|
14
|
-
title?:
|
|
14
|
+
title?: ReactNode;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* DestinationFolderPopup
|
|
@@ -7,7 +7,7 @@ export interface FileManagerDeleteConfirmationPopupProps {
|
|
|
7
7
|
onConfirm: () => void;
|
|
8
8
|
cancelLabel?: string;
|
|
9
9
|
confirmLabel?: string;
|
|
10
|
-
titleRenderer?: (fileNames: string[]) => ReactNode
|
|
10
|
+
titleRenderer?: (fileNames: string[]) => ReactNode;
|
|
11
11
|
contentRenderer?: (fileNames: string[]) => ReactNode;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { DialFile } from '../../../../models/file';
|
|
3
3
|
export interface FileMetadataPopupProps {
|
|
4
4
|
open: boolean;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
fileMetadata?: DialFile;
|
|
7
7
|
loading?: boolean;
|
|
8
|
-
title?:
|
|
8
|
+
title?: ReactNode;
|
|
9
9
|
nameLabel?: string;
|
|
10
10
|
pathLabel?: string;
|
|
11
11
|
modifiedDateLabel?: string;
|
|
@@ -2,7 +2,7 @@ import { FC, MouseEvent, ReactNode } from 'react';
|
|
|
2
2
|
import { PopupSize } from '../../types/popup';
|
|
3
3
|
export interface DialPopupProps {
|
|
4
4
|
open?: boolean;
|
|
5
|
-
title?:
|
|
5
|
+
title?: ReactNode;
|
|
6
6
|
portalId?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
overlayClassName?: string;
|
package/dist/src/models/tab.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ export declare enum FormItemOrientation {
|
|
|
22
22
|
* @param orientation - Layout orientation for the form item
|
|
23
23
|
*/
|
|
24
24
|
export interface DialFormItemBaseProps {
|
|
25
|
-
label?:
|
|
25
|
+
label?: ReactNode;
|
|
26
26
|
optional?: boolean;
|
|
27
27
|
optionalText?: string;
|
|
28
28
|
description?: string;
|
|
29
|
-
error?:
|
|
29
|
+
error?: ReactNode;
|
|
30
30
|
captionDescription?: string;
|
|
31
31
|
readonly?: boolean;
|
|
32
32
|
orientation?: FormItemOrientation;
|