@synerise/ds-alert 0.7.40 → 0.7.42

Sign up to get free protection for your applications and to get access to all the features.
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.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
+
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)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-alert
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.7.40](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.7.39...@synerise/ds-alert@0.7.40) (2023-08-30)
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: string | React.ReactNode;
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 * as S from './Notification/Notification.styles';
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
- import * as _S from './Notification/Notification.styles';
4
- export { _S as S };
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.40",
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",
@@ -32,20 +32,23 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-button": "^0.18.0",
36
- "@synerise/ds-icon": "^0.58.0",
37
- "@synerise/ds-typography": "^0.12.8",
38
- "@synerise/ds-unordered-list": "^0.2.49",
35
+ "@synerise/ds-button": "^0.18.1",
36
+ "@synerise/ds-icon": "^0.58.1",
39
37
  "animate.css": "^4.1.1",
40
38
  "react-animate-height": "^2.0.23",
39
+ "react-dom": "16.13.0",
41
40
  "react-mount-animation": "0.0.9"
42
41
  },
43
42
  "peerDependencies": {
44
43
  "@synerise/ds-core": "*",
45
- "react": ">=16.9.0 < 17.0.0"
44
+ "antd": "4.7.0",
45
+ "react": ">=16.9.0 < 17.0.0",
46
+ "styled-components": "5.0.1"
46
47
  },
47
48
  "devDependencies": {
48
- "@synerise/ds-utils": "^0.19.0"
49
+ "@synerise/ds-utils": "^0.24.15",
50
+ "@testing-library/jest-dom": "5.1.1",
51
+ "@testing-library/react": "10.0.1"
49
52
  },
50
- "gitHead": "291e114ff38d1a8e9d5ad8d9e499add6c6f25ee5"
53
+ "gitHead": "7df57233258ec34b90c3c92dbe1696788abd6ec6"
51
54
  }