@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 {};