@omniumretail/component-library 1.2.17 → 1.2.18

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.
@@ -1,4 +1,5 @@
1
- export interface ErrorNotificationProps {
1
+ import { ArgsProps } from 'antd/lib/notification';
2
+ export interface ErrorNotificationProps extends ArgsProps {
2
3
  message: string;
3
4
  description: string;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.2.17",
3
+ "version": "1.2.18",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
@@ -11,6 +11,7 @@ const Template: Story<ErrorNotificationProps> = (args) => {
11
11
  const { openNotificationWithIcon } = Notification({
12
12
  message: args.message,
13
13
  description: args.description,
14
+ showProgress: true
14
15
  });
15
16
 
16
17
  return (
@@ -22,7 +23,9 @@ const Template: Story<ErrorNotificationProps> = (args) => {
22
23
  export const Primary = Template.bind({});
23
24
  Primary.args = {
24
25
  message: "Sucesso",
25
- description: "Parabéns, conseguiste!"
26
+ description: "Parabéns, conseguiste!",
27
+ showProgress: true,
28
+ pauseOnHover: true
26
29
  };
27
30
 
28
31
 
@@ -1,6 +1,7 @@
1
1
  import { notification } from 'antd';
2
+ import { ArgsProps } from 'antd/lib/notification';
2
3
 
3
- export interface ErrorNotificationProps {
4
+ export interface ErrorNotificationProps extends ArgsProps {
4
5
  message: string;
5
6
  description: string;
6
7
  }