@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.
@@ -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 ?? `${a.slice(1).toUpperCase()} file icon`;
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: string | ReactNode;
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?: string;
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?: string | ReactNode;
4
+ label?: ReactNode;
5
5
  checked: boolean;
6
6
  disabled?: boolean;
7
7
  indeterminate?: boolean;
@@ -2,7 +2,7 @@ import { FC, ReactNode, MouseEvent } from 'react';
2
2
  export interface DialCollapsibleSidebarProps {
3
3
  children: ReactNode;
4
4
  width?: number;
5
- title: string;
5
+ title: ReactNode;
6
6
  titleClassName?: string;
7
7
  containerClassName?: string;
8
8
  iconSize?: number;
@@ -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?: string | ReactNode;
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: string | ReactNode;
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?: string | ReactNode;
4
+ fieldTitle?: ReactNode;
5
5
  optional?: boolean;
6
6
  optionalText?: string;
7
7
  description?: string;
@@ -5,7 +5,7 @@ export interface DialFileIconProps {
5
5
  stroke?: number;
6
6
  className?: string;
7
7
  decorative?: boolean;
8
- label?: string;
8
+ label?: ReactNode;
9
9
  indicator?: ReactNode;
10
10
  }
11
11
  /**
@@ -24,7 +24,7 @@ export interface FileMetadataPopupOptions {
24
24
  fileMetadata?: DialFile;
25
25
  loading?: boolean;
26
26
  clearMetadata?: () => void;
27
- title?: string;
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?: string;
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 | string;
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?: string;
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 | string;
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?: string;
8
+ title?: ReactNode;
9
9
  nameLabel?: string;
10
10
  pathLabel?: string;
11
11
  modifiedDateLabel?: string;
@@ -8,7 +8,7 @@ export interface DialFormItemProps extends DialFormItemBaseProps {
8
8
  labelClassName?: string;
9
9
  errorClassName?: string;
10
10
  children: ReactNode;
11
- value?: ReactNode | string;
11
+ value?: ReactNode;
12
12
  defaultEmptyText?: string;
13
13
  }
14
14
  /**
@@ -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?: string | ReactNode;
5
+ title?: ReactNode;
6
6
  portalId?: string;
7
7
  className?: string;
8
8
  overlayClassName?: string;
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
2
2
  export interface DialRadioButtonProps {
3
3
  name: string;
4
4
  value: string;
5
- title?: string;
5
+ title?: ReactNode;
6
6
  description?: ReactNode;
7
7
  checked?: boolean;
8
8
  inputId: string;
@@ -1,6 +1,6 @@
1
- import { FC } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  export interface DialSharedEntityIndicatorProps {
3
- label?: string;
3
+ label?: ReactNode;
4
4
  size?: number;
5
5
  className?: string;
6
6
  stroke?: number;
@@ -1,6 +1,6 @@
1
- import { FC } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  export interface DialSwitchProps {
3
- title?: string;
3
+ title?: ReactNode;
4
4
  switchId: string;
5
5
  isOn?: boolean;
6
6
  disabled?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface TabModel {
3
3
  id: string;
4
- label: string | ReactNode;
4
+ label: ReactNode;
5
5
  invalid?: boolean;
6
6
  disabled?: boolean;
7
7
  }
@@ -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?: string | ReactNode;
25
+ label?: ReactNode;
26
26
  optional?: boolean;
27
27
  optionalText?: string;
28
28
  description?: string;
29
- error?: string | ReactNode | boolean;
29
+ error?: ReactNode;
30
30
  captionDescription?: string;
31
31
  readonly?: boolean;
32
32
  orientation?: FormItemOrientation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.5.0-rc.110",
3
+ "version": "0.5.0-rc.111",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",