@abgov/react-components 6.3.0-alpha.6 → 6.4.0-alpha.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.
@@ -10,6 +10,9 @@ interface WCProps extends Margins {
10
10
  trailingicon?: string;
11
11
  width?: string;
12
12
  testid?: string;
13
+ action?: string;
14
+ actionArgs?: string;
15
+ actionArg?: string;
13
16
  ref: React.RefObject<HTMLElement | null>;
14
17
  }
15
18
  declare module "react" {
@@ -29,7 +32,10 @@ export interface GoabButtonProps extends Margins {
29
32
  width?: string;
30
33
  onClick?: () => void;
31
34
  testId?: string;
35
+ action?: string;
36
+ actionArgs?: Record<string, unknown>;
37
+ actionArg?: string;
32
38
  children?: ReactNode;
33
39
  }
34
- export declare function GoabButton({ disabled, type, size, variant, leadingIcon, trailingIcon, width, testId, children, onClick, mt, mr, mb, ml, }: GoabButtonProps): JSX.Element;
40
+ export declare function GoabButton({ disabled, type, size, variant, leadingIcon, trailingIcon, width, testId, children, onClick, mt, mr, mb, ml, action, actionArgs, actionArg, }: GoabButtonProps): JSX.Element;
35
41
  export default GoabButton;
@@ -1,4 +1,4 @@
1
- import { JSX } from 'react';
1
+ import { JSX, ReactNode } from 'react';
2
2
  import { GoabIconButtonVariant, GoabIconSize, GoabIconType, Margins } from '@abgov/ui-components-common';
3
3
 
4
4
  interface WCProps extends Margins {
@@ -9,6 +9,9 @@ interface WCProps extends Margins {
9
9
  title?: string;
10
10
  disabled?: string;
11
11
  arialabel?: string;
12
+ action?: string;
13
+ actionArgs?: string;
14
+ actionArg?: string;
12
15
  testid?: string;
13
16
  }
14
17
  declare module "react" {
@@ -24,10 +27,13 @@ export interface GoabIconButtonProps extends Margins {
24
27
  variant?: GoabIconButtonVariant;
25
28
  title?: string;
26
29
  disabled?: boolean;
27
- children?: React.ReactNode;
28
30
  onClick?: () => void;
29
31
  testId?: string;
30
32
  ariaLabel?: string;
33
+ action?: string;
34
+ actionArgs?: Record<string, unknown>;
35
+ actionArg?: string;
36
+ children?: ReactNode;
31
37
  }
32
- export declare function GoabIconButton({ icon, disabled, variant, onClick, size, title, ariaLabel, testId, children, mt, mr, mb, ml, }: GoabIconButtonProps): JSX.Element;
38
+ export declare function GoabIconButton({ icon, disabled, variant, onClick, size, title, ariaLabel, testId, children, mt, mr, mb, ml, action, actionArgs, actionArg, }: GoabIconButtonProps): JSX.Element;
33
39
  export {};
@@ -4,6 +4,9 @@ import { ReactNode } from 'react';
4
4
  interface WCProps extends Margins {
5
5
  leadingicon?: GoabIconType;
6
6
  trailingicon?: GoabIconType;
7
+ action?: string;
8
+ actionArgs?: string;
9
+ actionArg?: string;
7
10
  testid?: string;
8
11
  }
9
12
  declare module "react" {
@@ -16,6 +19,9 @@ declare module "react" {
16
19
  interface GoabLinkProps extends Margins {
17
20
  leadingIcon?: GoabIconType;
18
21
  trailingIcon?: GoabIconType;
22
+ action?: string;
23
+ actionArgs?: Record<string, unknown>;
24
+ actionArg?: string;
19
25
  testId?: string;
20
26
  children: ReactNode;
21
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "6.3.0-alpha.6",
3
+ "version": "6.4.0-alpha.1",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"