@epam/ai-dial-ui-kit 0.15.0-dev.14 → 0.15.0-dev.16

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-Atz7tLcd.cjs");exports.DialDestinationFolderPopup=e.DialDestinationFolderPopup;exports.DialFileManager=e.DialFileManager;exports.DialFileManagerActions=e.DialFileManagerActions;exports.DialFileManagerTabs=e.DialFileManagerTabs;exports.DialFoldersTree=e.DialFoldersTree;exports.FileManagerColumnKey=e.FileManagerColumnKey;exports.FileManagerProvider=e.FileManagerProvider;exports.NAME_COLUMN=e.NAME_COLUMN;exports.SIZE_COLUMN=e.SIZE_COLUMN;exports.UPDATED_AT_COLUMN=e.UPDATED_AT_COLUMN;exports.useDialFileManagerTabs=e.useDialFileManagerTabs;exports.useFileManagerContext=e.useFileManagerContext;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-DgIKWJoV.cjs");exports.DialDestinationFolderPopup=e.DialDestinationFolderPopup;exports.DialFileManager=e.DialFileManager;exports.DialFileManagerActions=e.DialFileManagerActions;exports.DialFileManagerTabs=e.DialFileManagerTabs;exports.DialFoldersTree=e.DialFoldersTree;exports.FileManagerColumnKey=e.FileManagerColumnKey;exports.FileManagerProvider=e.FileManagerProvider;exports.NAME_COLUMN=e.NAME_COLUMN;exports.SIZE_COLUMN=e.SIZE_COLUMN;exports.UPDATED_AT_COLUMN=e.UPDATED_AT_COLUMN;exports.useDialFileManagerTabs=e.useDialFileManagerTabs;exports.useFileManagerContext=e.useFileManagerContext;
@@ -5,6 +5,7 @@ export interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>,
5
5
  type?: NotificationType;
6
6
  title?: ReactNode;
7
7
  message: ReactNode;
8
+ action?: ReactNode;
8
9
  closable?: boolean;
9
10
  iconSize?: number;
10
11
  iconStroke?: number;
@@ -57,12 +58,29 @@ export interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>,
57
58
  * title="Title"
58
59
  * message="Description text example"
59
60
  * />
61
+ *
62
+ * <Notification
63
+ * variant={NotificationVariant.Error}
64
+ * type={NotificationType.SectionMessage}
65
+ * title="Couldn't finish this response"
66
+ * message="Something went wrong. Try again in a moment."
67
+ * action={
68
+ * <Button
69
+ * variant={ButtonVariant.Neutral}
70
+ * appearance={ButtonAppearance.Outlined}
71
+ * size={ElementSize.Small}
72
+ * label="Try again"
73
+ * onClick={handleRetry}
74
+ * />
75
+ * }
76
+ * />
60
77
  * ```
61
78
  *
62
79
  * @param [variant=NotificationVariant.Info] - Defines the visual style and icon of the alert
63
80
  * @param [type=NotificationType.Toast] - Defines the type of notification, either a toast or a section message
64
81
  * @param [title] - Optional heading displayed above the message in semibold
65
82
  * @param message - Message text to display inside the alert
83
+ * @param [action] - Optional control (typically a small `Button`) rendered at the inline end, after the text and before the close button; the caller supplies its accessible name
66
84
  * @param [className] - Additional CSS classes applied to the alert container
67
85
  * @param [textClassName] - Additional CSS classes applied to the message text
68
86
  * @param [closable=false] - Whether the alert has a close button