@commercetools-uikit/notifications 19.9.0 → 19.10.0
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.
|
@@ -148,7 +148,7 @@ ContentNotification.displayName = 'ContentNotification';
|
|
|
148
148
|
var ContentNotification$1 = ContentNotification;
|
|
149
149
|
|
|
150
150
|
// NOTE: This string will be replaced on build time with the package version.
|
|
151
|
-
var version = "19.
|
|
151
|
+
var version = "19.10.0";
|
|
152
152
|
|
|
153
153
|
exports.ContentNotification = ContentNotification$1;
|
|
154
154
|
exports.version = version;
|
|
@@ -131,7 +131,7 @@ ContentNotification.displayName = 'ContentNotification';
|
|
|
131
131
|
var ContentNotification$1 = ContentNotification;
|
|
132
132
|
|
|
133
133
|
// NOTE: This string will be replaced on build time with the package version.
|
|
134
|
-
var version = "19.
|
|
134
|
+
var version = "19.10.0";
|
|
135
135
|
|
|
136
136
|
exports.ContentNotification = ContentNotification$1;
|
|
137
137
|
exports.version = version;
|
|
@@ -131,6 +131,6 @@ ContentNotification.displayName = 'ContentNotification';
|
|
|
131
131
|
var ContentNotification$1 = ContentNotification;
|
|
132
132
|
|
|
133
133
|
// NOTE: This string will be replaced on build time with the package version.
|
|
134
|
-
var version = "19.
|
|
134
|
+
var version = "19.10.0";
|
|
135
135
|
|
|
136
136
|
export { ContentNotification$1 as ContentNotification, version };
|
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
import type { MessageDescriptor } from 'react-intl';
|
|
2
2
|
import { type ReactNode, type MouseEvent, type KeyboardEvent } from 'react';
|
|
3
3
|
export type TContentNotificationProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Determines the color/type of notification.
|
|
6
|
+
*/
|
|
4
7
|
type: 'error' | 'info' | 'warning' | 'success';
|
|
8
|
+
/**
|
|
9
|
+
* An `intl` message object that will be rendered with `FormattedMessage`.
|
|
10
|
+
* <br />
|
|
11
|
+
* Required if `children` is not provided.
|
|
12
|
+
*/
|
|
5
13
|
intlMessage?: MessageDescriptor & {
|
|
6
14
|
values?: Record<string, ReactNode>;
|
|
7
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* When provided, a close button will be rendered and this callback will be
|
|
18
|
+
* called when it is clicked.
|
|
19
|
+
*/
|
|
8
20
|
onRemove?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;
|
|
21
|
+
/**
|
|
22
|
+
* The content of the notification.
|
|
23
|
+
* <br />
|
|
24
|
+
* Required if `intlMessage` is not provided.
|
|
25
|
+
*/
|
|
9
26
|
children?: ReactNode;
|
|
10
27
|
};
|
|
11
28
|
declare const ContentNotification: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/notifications",
|
|
3
3
|
"description": "Notification components.",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.10.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "19.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/icons": "19.
|
|
27
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "19.10.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.10.0",
|
|
26
|
+
"@commercetools-uikit/icons": "19.10.0",
|
|
27
|
+
"@commercetools-uikit/utils": "19.10.0",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"prop-types": "15.8.1"
|
|
30
30
|
},
|