@synerise/ds-alert 0.7.41 → 0.7.43
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -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 +5 -5
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,25 @@
|
|
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.43](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.7.42...@synerise/ds-alert@0.7.43) (2023-09-26)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @synerise/ds-alert
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [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)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* **alert:** added missing exports (wip) ([7b3d9dc](https://github.com/Synerise/synerise-design/commit/7b3d9dc1a387d61cda7ef987209b9d671ddcd1d2))
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
6
25
|
## [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
26
|
|
8
27
|
**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.43",
|
4
4
|
"description": "Alert UI Component for the Synerise Design System",
|
5
5
|
"license": "ISC",
|
6
6
|
"repository": "Synerise/synerise-design",
|
@@ -32,8 +32,8 @@
|
|
32
32
|
],
|
33
33
|
"types": "dist/index.d.ts",
|
34
34
|
"dependencies": {
|
35
|
-
"@synerise/ds-button": "^0.18.
|
36
|
-
"@synerise/ds-icon": "^0.58.
|
35
|
+
"@synerise/ds-button": "^0.18.2",
|
36
|
+
"@synerise/ds-icon": "^0.58.2",
|
37
37
|
"animate.css": "^4.1.1",
|
38
38
|
"react-animate-height": "^2.0.23",
|
39
39
|
"react-dom": "16.13.0",
|
@@ -46,9 +46,9 @@
|
|
46
46
|
"styled-components": "5.0.1"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
|
-
"@synerise/ds-utils": "^0.24.
|
49
|
+
"@synerise/ds-utils": "^0.24.16",
|
50
50
|
"@testing-library/jest-dom": "5.1.1",
|
51
51
|
"@testing-library/react": "10.0.1"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "f1f520c4c5ef9f90bacb5d5e0b2e778ceb8fdf79"
|
54
54
|
}
|