@hexure/ui 1.3.1 → 1.3.3

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,11 +1,17 @@
1
1
  import { FC } from 'react';
2
2
  import { AccessibleProps } from '../../utils/Accessibility';
3
+ export interface ActionProps extends AccessibleProps {
4
+ label: string;
5
+ onClick: (e?: any) => void;
6
+ }
3
7
  export interface AlertProps extends AccessibleProps {
4
8
  type?: 'info' | 'error' | 'warning' | 'success';
5
9
  /** It is used to add title to alert. */
6
10
  title: string;
7
11
  /** It is used to add description to alert. */
8
12
  description: string;
13
+ /** Display a link to display below the description */
14
+ action?: ActionProps;
9
15
  }
10
16
  declare const Alert: FC<AlertProps>;
11
17
  export default Alert;
package/dist/index.d.ts CHANGED
@@ -43,12 +43,18 @@ interface ActionDialogProps extends AccessibleProps {
43
43
  }
44
44
  declare const ActionDialog: FC<ActionDialogProps>;
45
45
 
46
+ interface ActionProps$1 extends AccessibleProps {
47
+ label: string;
48
+ onClick: (e?: any) => void;
49
+ }
46
50
  interface AlertProps extends AccessibleProps {
47
51
  type?: 'info' | 'error' | 'warning' | 'success';
48
52
  /** It is used to add title to alert. */
49
53
  title: string;
50
54
  /** It is used to add description to alert. */
51
55
  description: string;
56
+ /** Display a link to display below the description */
57
+ action?: ActionProps$1;
52
58
  }
53
59
  declare const Alert: FC<AlertProps>;
54
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",