@up42/up-components 1.13.0 → 1.13.1

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,9 +1,13 @@
1
- import { ReactNode, ElementType } from 'react';
1
+ import { ElementType, ReactNode } from 'react';
2
2
  import { AlertColor } from '../../../components/Alert/Alert';
3
3
  export declare type CreateAlertProps = {
4
4
  title?: string;
5
5
  message: string | ElementType;
6
6
  type?: AlertColor;
7
+ /**
8
+ * set optional duration param to modify alert duration. Default=4000ms
9
+ */
10
+ duration?: number;
7
11
  };
8
12
  export declare type DisplayAlertProps = CreateAlertProps & {
9
13
  id: string;
@@ -19,7 +23,7 @@ export declare const AlertProvider: ({ children }: {
19
23
  children: ReactNode;
20
24
  }) => JSX.Element;
21
25
  /**
22
- * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert-usealert--create-alert--docs
26
+ * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert-usealert--docs
23
27
  */
24
28
  export declare const useAlert: () => ContextState;
25
29
  export {};
package/dist/index.d.ts CHANGED
@@ -2701,6 +2701,10 @@ declare type CreateAlertProps = {
2701
2701
  title?: string;
2702
2702
  message: string | ElementType;
2703
2703
  type?: AlertColor;
2704
+ /**
2705
+ * set optional duration param to modify alert duration. Default=4000ms
2706
+ */
2707
+ duration?: number;
2704
2708
  };
2705
2709
  declare type DisplayAlertProps = CreateAlertProps & {
2706
2710
  id: string;
@@ -2713,7 +2717,7 @@ declare type ContextState = {
2713
2717
  animationTime: number;
2714
2718
  };
2715
2719
  /**
2716
- * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert-usealert--create-alert--docs
2720
+ * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert-usealert--docs
2717
2721
  */
2718
2722
  declare const useAlert: () => ContextState;
2719
2723
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@up42/up-components",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "UP42 Component Library",
5
5
  "author": "Axel Fuhrmann axel.fuhrmann@up42.com",
6
6
  "license": "ISC",