@synerise/ds-alert 0.7.42 → 0.7.44

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.44](https://github.com/Synerise/synerise-design/compare/@synerise/ds-alert@0.7.43...@synerise/ds-alert@0.7.44) (2023-10-02)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-alert
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-alert
17
+
18
+
19
+
20
+
21
+
6
22
  ## [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
23
 
8
24
 
@@ -1,7 +1,7 @@
1
1
  import { AlertProps } from 'antd/lib/alert';
2
2
  import * as React from 'react';
3
3
  import InlineAlert from './InlineAlert/InlineAlert';
4
- export declare type AlertType = 'success' | 'warning' | 'error' | 'info';
4
+ export type AlertType = 'success' | 'warning' | 'error' | 'info';
5
5
  export interface Props extends Omit<AlertProps, 'type' | 'message'> {
6
6
  message?: React.ReactNode;
7
7
  type: AlertType;
@@ -10,6 +10,6 @@ export interface Props extends Omit<AlertProps, 'type' | 'message'> {
10
10
  showMoreLabel?: React.ReactNode;
11
11
  onShowMore?: () => void;
12
12
  }
13
- export declare type AlertSubComponents = {
13
+ export type AlertSubComponents = {
14
14
  InlineAlert: typeof InlineAlert;
15
15
  };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export declare type AlertInfoProps = {
2
+ export type AlertInfoProps = {
3
3
  size?: AlertSize;
4
4
  fontSize?: AlertSize;
5
5
  text?: string | React.ReactNode;
@@ -1,48 +1,49 @@
1
1
  import * as React from 'react';
2
2
  import Button from '@synerise/ds-button';
3
+ import { ColorType } from './BroadcastBar.types';
3
4
  export declare const AlertContent: import("styled-components").StyledComponent<"div", any, {
4
5
  withLink?: React.ReactNode;
5
- color?: "red" | "green" | "yellow" | undefined;
6
+ color?: ColorType | undefined;
6
7
  }, never>;
7
8
  export declare const AllContent: import("styled-components").StyledComponent<"div", any, {
8
- color?: "red" | "green" | "yellow" | undefined;
9
+ color?: ColorType | undefined;
9
10
  close?: boolean | React.ReactNode;
10
11
  }, never>;
11
12
  export declare const Text: import("styled-components").StyledComponent<"div", any, {
12
- color?: "red" | "green" | "yellow" | undefined;
13
+ color?: ColorType | undefined;
13
14
  }, never>;
14
15
  export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {
15
- color?: "red" | "green" | "yellow" | undefined;
16
+ color?: ColorType | undefined;
16
17
  }, never>;
17
18
  export declare const IconCloseWrapper: import("styled-components").StyledComponent<"div", any, {
18
- color?: "red" | "green" | "yellow" | undefined;
19
+ color?: ColorType | undefined;
19
20
  }, never>;
20
21
  export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {
21
- color?: "red" | "green" | "yellow" | undefined;
22
+ color?: ColorType | undefined;
22
23
  }, never>;
23
24
  export declare const BroadcastButton: import("styled-components").StyledComponent<typeof Button, any, {
24
- color?: "red" | "green" | "yellow" | undefined;
25
+ color?: ColorType | undefined;
25
26
  }, never>;
26
27
  export declare const ButtonCloseWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
27
28
  export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
28
- color?: "red" | "green" | "yellow" | undefined;
29
+ color?: ColorType | undefined;
29
30
  }, never>;
30
31
  export declare const Container: import("styled-components").StyledComponent<"div", any, {
31
- color?: "red" | "green" | "yellow" | undefined;
32
+ color?: ColorType | undefined;
32
33
  }, never>;
33
34
  export declare const WrapperSectionMessage: import("styled-components").StyledComponent<"div", any, {
34
- color?: "red" | "green" | "yellow" | undefined;
35
+ color?: ColorType | undefined;
35
36
  }, never>;
36
37
  export declare const AlertDescription: import("styled-components").StyledComponent<"span", any, {
37
- color?: "red" | "green" | "yellow" | undefined;
38
+ color?: ColorType | undefined;
38
39
  }, never>;
39
40
  export declare const EmphasisWrapper: import("styled-components").StyledComponent<"span", any, {
40
- color?: "red" | "green" | "yellow" | undefined;
41
+ color?: ColorType | undefined;
41
42
  }, never>;
42
43
  export declare const WrapperText: import("styled-components").StyledComponent<"span", any, {
43
44
  emphasis?: boolean | React.ReactNode;
44
45
  }, never>;
45
46
  export declare const LinkWrapper: import("styled-components").StyledComponent<"span", any, {
46
- color?: "red" | "green" | "yellow" | undefined;
47
+ color?: ColorType | undefined;
47
48
  }, never>;
48
49
  export declare const Link: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,7 +1,7 @@
1
1
  import { AlertProps } from 'antd/lib/alert';
2
2
  import * as React from 'react';
3
- export declare type BroadcastBarTypes = 'success' | 'warning' | 'negative';
4
- export declare type ColorType = 'red' | 'green' | 'yellow';
3
+ export type BroadcastBarTypes = 'success' | 'warning' | 'negative';
4
+ export type ColorType = 'red' | 'green' | 'yellow';
5
5
  export interface Props extends Omit<AlertProps, 'type' | 'message'> {
6
6
  type: string | BroadcastBarTypes;
7
7
  color?: ColorType;
@@ -1,8 +1,9 @@
1
+ import { ColorType, ModeType } from './AlertSemanticColor.types';
1
2
  export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {
2
- mode?: "background" | "background-outline" | "clear" | "shadow" | undefined;
3
- color?: "blue" | "grey" | "red" | "green" | "yellow" | "cyan" | "purple" | "violet" | undefined;
3
+ mode?: ModeType | undefined;
4
+ color?: ColorType | undefined;
4
5
  }, never>;
5
6
  export declare const Container: import("styled-components").StyledComponent<"div", any, {
6
- mode?: "background" | "background-outline" | "clear" | "shadow" | undefined;
7
- color?: "blue" | "grey" | "red" | "green" | "yellow" | "cyan" | "purple" | "violet" | undefined;
7
+ mode?: ModeType | undefined;
8
+ color?: ColorType | undefined;
8
9
  }, never>;
@@ -1,7 +1,7 @@
1
1
  import { AlertProps } from 'antd/lib/alert';
2
- export declare type AlertType = 'positive' | 'notice' | 'negative' | 'informative' | 'neutral' | 'supply' | 'service' | 'entity';
3
- export declare type ColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'cyan' | 'purple' | 'violet';
4
- export declare type ModeType = 'background' | 'background-outline' | 'clear' | 'shadow';
2
+ export type AlertType = 'positive' | 'notice' | 'negative' | 'informative' | 'neutral' | 'supply' | 'service' | 'entity';
3
+ export type ColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'cyan' | 'purple' | 'violet';
4
+ export type ModeType = 'background' | 'background-outline' | 'clear' | 'shadow';
5
5
  export interface Props extends Omit<AlertProps, 'type' | 'message'> {
6
6
  type: AlertType;
7
7
  color?: ColorType;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- export declare type IconAlertType = 'success' | 'alert' | 'warning' | 'info';
3
- export declare type IconAlertProps = {
2
+ export type IconAlertType = 'success' | 'alert' | 'warning' | 'info';
3
+ export type IconAlertProps = {
4
4
  type: IconAlertType;
5
5
  message?: React.ReactNode;
6
6
  withEmphasis?: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- export declare type InlineAlertType = 'success' | 'alert' | 'warning' | 'info';
3
- export declare type InlineAlertProps = {
2
+ export type InlineAlertType = 'success' | 'alert' | 'warning' | 'info';
3
+ export type InlineAlertProps = {
4
4
  type: InlineAlertType;
5
5
  message: string | React.ReactNode;
6
6
  };
@@ -5,7 +5,7 @@ import 'antd/lib/notification/style/index.less';
5
5
  /**
6
6
  * Typings for using better autocompletion for defining an argument for `notificationOpen`'s message property.
7
7
  */
8
- export declare type NotificationProps = {
8
+ export type NotificationProps = {
9
9
  /** content of the notification */
10
10
  children?: JSX.Element | React.ReactNode | React.ReactNode[];
11
11
  /** text displayed on the button */
@@ -19,9 +19,9 @@ export declare type NotificationProps = {
19
19
  /** where to position notification, `"{top,bottom}{Left,Right}" | "bottom"` */
20
20
  placement?: ArgsProps['placement'] | 'bottom';
21
21
  } & Partial<Omit<ArgsProps, 'placement'>>;
22
- declare type NotificationApiHook = ReturnType<NotificationApi['useNotification']>;
23
- declare type ApiHook = NotificationApiHook[0];
24
- declare type ContextHolder = NotificationApiHook[1];
22
+ type NotificationApiHook = ReturnType<NotificationApi['useNotification']>;
23
+ type ApiHook = NotificationApiHook[0];
24
+ type ContextHolder = NotificationApiHook[1];
25
25
  /**
26
26
  * Component with the content of the notification.
27
27
  * Note that in order to show notification you need to use `notificationOpen`
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
+ import { ColorType, CustomColorType } from './SectionMessage.types';
2
3
  export declare const AlertContent: import("styled-components").StyledComponent<"div", any, {
3
4
  withLink?: React.ReactNode;
4
5
  }, never>;
5
6
  export declare const AllContent: import("styled-components").StyledComponent<"div", any, {}, never>;
6
7
  export declare const Text: import("styled-components").StyledComponent<"div", any, {}, never>;
7
8
  export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {
8
- color?: "grey" | "red" | "green" | "yellow" | "cyan" | "purple" | "violet" | undefined;
9
- customColorIcon?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
9
+ color?: ColorType | undefined;
10
+ customColorIcon?: CustomColorType | undefined;
10
11
  }, never>;
11
12
  export declare const IconCloseWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
12
13
  export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -17,8 +18,8 @@ export declare const IconOrderWrapper: import("styled-components").StyledCompone
17
18
  export declare const OrderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
18
19
  export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
19
20
  export declare const Container: import("styled-components").StyledComponent<"div", any, {
20
- color?: "grey" | "red" | "green" | "yellow" | "cyan" | "purple" | "violet" | undefined;
21
- customColor?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
21
+ color?: ColorType | undefined;
22
+ customColor?: CustomColorType | undefined;
22
23
  }, never>;
23
24
  export declare const WrapperSectionMessage: import("styled-components").StyledComponent<"div", any, {}, never>;
24
25
  export declare const AlertMessage: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,10 +1,10 @@
1
1
  import { AlertProps } from 'antd/lib/alert';
2
2
  import * as React from 'react';
3
3
  import { AlertType } from '../ColorSemantic/AlertSemanticColor.types';
4
- export declare type AlertTypes = Exclude<AlertType, 'informative'>;
5
- export declare type CustomColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
6
- export declare type ColorType = 'grey' | 'red' | 'green' | 'yellow' | 'violet' | 'purple' | 'cyan';
7
- export declare type ModeType = 'background' | 'background-outline' | 'outline' | 'clear';
4
+ export type AlertTypes = Exclude<AlertType, 'informative'>;
5
+ export type CustomColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
6
+ export type ColorType = 'grey' | 'red' | 'green' | 'yellow' | 'violet' | 'purple' | 'cyan';
7
+ export type ModeType = 'background' | 'background-outline' | 'outline' | 'clear';
8
8
  export interface Props extends Omit<AlertProps, 'type' | 'message'> {
9
9
  message?: React.ReactNode;
10
10
  type: string | AlertTypes;
@@ -1,56 +1,57 @@
1
1
  import { Keyframes } from 'styled-components';
2
2
  import * as React from 'react';
3
3
  import 'animate.css';
4
+ import { ColorIconType, ColorType, CustomColorType } from './Toast.types';
4
5
  export declare const openingAnimation: () => Keyframes;
5
6
  export declare const closingAnimation: () => Keyframes;
6
7
  export declare const AlertContent: import("styled-components").StyledComponent<"div", any, {}, never>;
7
8
  export declare const AllContent: import("styled-components").StyledComponent<"div", any, {}, never>;
8
9
  export declare const Text: import("styled-components").StyledComponent<"div", any, {
9
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
10
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
10
+ customColorText?: CustomColorType | undefined;
11
+ color?: ColorType | undefined;
11
12
  }, never>;
12
13
  export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {
13
- colorIcon?: "blue" | "grey" | "yellow" | "white" | "black" | undefined;
14
- customColorIcon?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
14
+ colorIcon?: ColorIconType | undefined;
15
+ customColorIcon?: CustomColorType | undefined;
15
16
  }, never>;
16
17
  export declare const IconCloseWrapper: import("styled-components").StyledComponent<"div", any, {
17
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
18
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
18
+ customColorText?: CustomColorType | undefined;
19
+ color?: ColorType | undefined;
19
20
  }, never>;
20
21
  export declare const IconExpanderWrapper: import("styled-components").StyledComponent<"div", any, {
21
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
22
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
22
+ customColorText?: CustomColorType | undefined;
23
+ color?: ColorType | undefined;
23
24
  expanded?: boolean | undefined;
24
25
  }, never>;
25
26
  export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
26
27
  export declare const FirstButtonWrapper: import("styled-components").StyledComponent<"div", any, {
27
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
28
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
28
+ customColorText?: CustomColorType | undefined;
29
+ color?: ColorType | undefined;
29
30
  }, never>;
30
31
  export declare const NumberWrapper: import("styled-components").StyledComponent<"div", any, {
31
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
32
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
32
+ customColorText?: CustomColorType | undefined;
33
+ color?: ColorType | undefined;
33
34
  }, never>;
34
35
  export declare const ListWrapper: import("styled-components").StyledComponent<"div", any, {
35
36
  visible?: boolean | undefined;
36
37
  description?: React.ReactNode;
37
38
  }, never>;
38
39
  export declare const IconOrderWrapper: import("styled-components").StyledComponent<"div", any, {
39
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
40
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
40
+ customColorText?: CustomColorType | undefined;
41
+ color?: ColorType | undefined;
41
42
  }, never>;
42
43
  export declare const OrderWrapper: import("styled-components").StyledComponent<"div", any, {
43
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
44
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
44
+ customColorText?: CustomColorType | undefined;
45
+ color?: ColorType | undefined;
45
46
  }, never>;
46
47
  export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
47
48
  export declare const AnimationContainer: import("styled-components").StyledComponent<"div", any, {
48
49
  show?: boolean | undefined;
49
50
  }, never>;
50
51
  export declare const Container: import("styled-components").StyledComponent<"div", any, {
51
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
52
+ color?: ColorType | undefined;
52
53
  visible?: React.ReactNode | boolean;
53
- customColor?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
54
+ customColor?: CustomColorType | undefined;
54
55
  onCloseClick?: (() => void) | undefined;
55
56
  expandedContent?: React.ReactNode | boolean;
56
57
  expander?: React.ReactNode | boolean;
@@ -58,12 +59,12 @@ export declare const Container: import("styled-components").StyledComponent<"div
58
59
  }, never>;
59
60
  export declare const WrapperSectionMessage: import("styled-components").StyledComponent<"div", any, {}, never>;
60
61
  export declare const AlertMessage: import("styled-components").StyledComponent<"span", any, {
61
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
62
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
62
+ customColorText?: CustomColorType | undefined;
63
+ color?: ColorType | undefined;
63
64
  }, never>;
64
65
  export declare const AlertDescription: import("styled-components").StyledComponent<"span", any, {
65
- customColorText?: "blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet" | undefined;
66
- color?: "blue" | "grey" | "red" | "green" | "yellow" | undefined;
66
+ customColorText?: CustomColorType | undefined;
67
+ color?: ColorType | undefined;
67
68
  button?: React.ReactNode | boolean;
68
69
  expandedContent?: React.ReactNode | boolean;
69
70
  }, never>;
@@ -1,9 +1,9 @@
1
1
  import { AlertProps } from 'antd/lib/alert';
2
2
  import * as React from 'react';
3
- export declare type ToastType = 'success' | 'warning' | 'negative' | 'informative' | 'neutral';
4
- export declare type CustomColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
5
- export declare type ColorType = 'grey' | 'red' | 'green' | 'yellow' | 'blue';
6
- export declare type ColorIconType = 'white' | 'grey' | 'black' | 'yellow' | 'blue';
3
+ export type ToastType = 'success' | 'warning' | 'negative' | 'informative' | 'neutral';
4
+ export type CustomColorType = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
5
+ export type ColorType = 'grey' | 'red' | 'green' | 'yellow' | 'blue';
6
+ export type ColorIconType = 'white' | 'grey' | 'black' | 'yellow' | 'blue';
7
7
  export interface Props extends Omit<AlertProps, 'type' | 'message'> {
8
8
  message?: React.ReactNode;
9
9
  type: string | ToastType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-alert",
3
- "version": "0.7.42",
3
+ "version": "0.7.44",
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.1",
36
- "@synerise/ds-icon": "^0.58.1",
35
+ "@synerise/ds-button": "^0.18.3",
36
+ "@synerise/ds-icon": "^0.58.3",
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.15",
49
+ "@synerise/ds-utils": "^0.24.17",
50
50
  "@testing-library/jest-dom": "5.1.1",
51
51
  "@testing-library/react": "10.0.1"
52
52
  },
53
- "gitHead": "7df57233258ec34b90c3c92dbe1696788abd6ec6"
53
+ "gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
54
54
  }