@synerise/ds-alert 0.7.41 → 0.7.42
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/CHANGELOG.md +11 -0
- package/dist/IconAlert/IconAlert.types.d.ts +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +23 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.7.42](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.7.41...@synerise/ds-alert@0.7.42) (2023-09-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **alert:** added missing exports (wip) ([7b3d9dc](https://github.com/Synerise/synerise-design/commit/7b3d9dc1a387d61cda7ef987209b9d671ddcd1d2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.7.41](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.7.40...@synerise/ds-alert@0.7.41) (2023-09-05)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-alert
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
export declare type IconAlertType = 'success' | 'alert' | 'warning' | 'info';
|
|
3
3
|
export declare type IconAlertProps = {
|
|
4
4
|
type: IconAlertType;
|
|
5
|
-
message
|
|
5
|
+
message?: React.ReactNode;
|
|
6
6
|
withEmphasis?: React.ReactNode;
|
|
7
7
|
withLink?: React.ReactNode;
|
|
8
8
|
iconAlert?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import * as NotificationStyles from './Notification/Notification.styles';
|
|
2
|
+
import * as SectionMessageStyles from './SectionMessage/SectionMessage.styles';
|
|
3
|
+
import * as ToastStyles from './Toast/Toast.styles';
|
|
4
|
+
import * as MainAlertStyles from './Alert.styles';
|
|
5
|
+
import * as IconAlertStyles from './IconAlert/IconAlert.styles';
|
|
1
6
|
export { default } from './Alert';
|
|
2
|
-
export
|
|
7
|
+
export declare const AlertStyles: {
|
|
8
|
+
Alert: typeof MainAlertStyles;
|
|
9
|
+
Notification: typeof NotificationStyles;
|
|
10
|
+
SectionMessage: typeof SectionMessageStyles;
|
|
11
|
+
Toast: typeof ToastStyles;
|
|
12
|
+
IconAlert: typeof IconAlertStyles;
|
|
13
|
+
};
|
|
3
14
|
/**
|
|
4
15
|
* notificationApi is required for properly handling injecting ContextApi for styling and locales.
|
|
5
16
|
* It's a proxy to `antd`'s `notification` module.
|
|
@@ -8,3 +19,13 @@ export declare const notificationsApi: import("antd/lib/notification").Notificat
|
|
|
8
19
|
export type { NotificationProps } from './Notification/Notification';
|
|
9
20
|
export { default as Notification } from './Notification/Notification';
|
|
10
21
|
export { notificationOpen } from './Notification/Notification';
|
|
22
|
+
export { default as SectionMessage } from './SectionMessage/SectionMessage';
|
|
23
|
+
export type { Props as SectionMessageProps, ColorType as SectionMessageColorType, AlertTypes as SectionMessageAlertTypes, } from './SectionMessage/SectionMessage.types';
|
|
24
|
+
export { default as Toast } from './Toast/Toast';
|
|
25
|
+
export { default as IconAlert } from './IconAlert/IconAlert';
|
|
26
|
+
export type { IconAlertType } from './IconAlert/IconAlert.types';
|
|
27
|
+
export { default as InlineAlert } from './InlineAlert/InlineAlert';
|
|
28
|
+
export { default as AlertInfo } from './AlertInfo/AlertInfo';
|
|
29
|
+
export type { AlertSize } from './AlertInfo/AlertInfo.types';
|
|
30
|
+
export { AlertMessage } from './Alert.styles';
|
|
31
|
+
export * as S from './Notification/Notification.styles';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { notification } from 'antd';
|
|
2
|
+
import * as NotificationStyles from './Notification/Notification.styles';
|
|
3
|
+
import * as SectionMessageStyles from './SectionMessage/SectionMessage.styles';
|
|
4
|
+
import * as ToastStyles from './Toast/Toast.styles';
|
|
5
|
+
import * as MainAlertStyles from './Alert.styles';
|
|
6
|
+
import * as IconAlertStyles from './IconAlert/IconAlert.styles';
|
|
2
7
|
export { default } from './Alert';
|
|
3
|
-
|
|
4
|
-
|
|
8
|
+
export var AlertStyles = {
|
|
9
|
+
Alert: MainAlertStyles,
|
|
10
|
+
Notification: NotificationStyles,
|
|
11
|
+
SectionMessage: SectionMessageStyles,
|
|
12
|
+
Toast: ToastStyles,
|
|
13
|
+
IconAlert: IconAlertStyles
|
|
14
|
+
};
|
|
5
15
|
/**
|
|
6
16
|
* notificationApi is required for properly handling injecting ContextApi for styling and locales.
|
|
7
17
|
* It's a proxy to `antd`'s `notification` module.
|
|
@@ -9,4 +19,14 @@ export { _S as S };
|
|
|
9
19
|
|
|
10
20
|
export var notificationsApi = notification;
|
|
11
21
|
export { default as Notification } from './Notification/Notification';
|
|
12
|
-
export { notificationOpen } from './Notification/Notification';
|
|
22
|
+
export { notificationOpen } from './Notification/Notification';
|
|
23
|
+
export { default as SectionMessage } from './SectionMessage/SectionMessage';
|
|
24
|
+
export { default as Toast } from './Toast/Toast';
|
|
25
|
+
export { default as IconAlert } from './IconAlert/IconAlert';
|
|
26
|
+
export { default as InlineAlert } from './InlineAlert/InlineAlert';
|
|
27
|
+
export { default as AlertInfo } from './AlertInfo/AlertInfo';
|
|
28
|
+
// @deprecated use AlertStyles.Alert instead
|
|
29
|
+
export { AlertMessage } from './Alert.styles'; // @deprecated use AlertStyles.Notification instead
|
|
30
|
+
|
|
31
|
+
import * as _S from './Notification/Notification.styles';
|
|
32
|
+
export { _S as S };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-alert",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.42",
|
|
4
4
|
"description": "Alert UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"@testing-library/jest-dom": "5.1.1",
|
|
51
51
|
"@testing-library/react": "10.0.1"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7df57233258ec34b90c3c92dbe1696788abd6ec6"
|
|
54
54
|
}
|