@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.
- package/dist/CHANGELOG.md +2 -0
- package/dist/components/FileManager/FileManager.js +2 -2
- package/dist/components/New/Notification/Notification.js +37 -35
- package/dist/components-manifest.json +9 -3
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/file-manager.cjs +1 -1
- package/dist/src/components/New/Notification/Notification.d.ts +18 -0
- package/dist/{use-file-manager-tabs-Atz7tLcd.cjs → use-file-manager-tabs-DgIKWJoV.cjs} +1 -1
- package/package.json +1 -1
package/dist/file-manager.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-
|
|
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
|