@abgov/react-components 6.3.0 → 6.4.0-alpha.2

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.
package/index.js CHANGED
@@ -262,7 +262,10 @@ function GoabButton({
262
262
  mt,
263
263
  mr,
264
264
  mb,
265
- ml
265
+ ml,
266
+ action,
267
+ actionArgs,
268
+ actionArg
266
269
  }) {
267
270
  const el = react.useRef(null);
268
271
  react.useEffect(() => {
@@ -293,6 +296,9 @@ function GoabButton({
293
296
  trailingicon: trailingIcon,
294
297
  width,
295
298
  testid: testId,
299
+ action,
300
+ "action-arg": actionArg,
301
+ "action-args": JSON.stringify(actionArgs),
296
302
  mt,
297
303
  mr,
298
304
  mb,
@@ -1006,7 +1012,10 @@ function GoabIconButton({
1006
1012
  mt,
1007
1013
  mr,
1008
1014
  mb,
1009
- ml
1015
+ ml,
1016
+ action,
1017
+ actionArgs,
1018
+ actionArg
1010
1019
  }) {
1011
1020
  const ref = react.useRef(null);
1012
1021
  react.useEffect(() => {
@@ -1035,6 +1044,9 @@ function GoabIconButton({
1035
1044
  size,
1036
1045
  title,
1037
1046
  arialabel: ariaLabel,
1047
+ action,
1048
+ "action-arg": actionArg,
1049
+ "action-args": JSON.stringify(actionArgs),
1038
1050
  mt,
1039
1051
  mr,
1040
1052
  mb,
@@ -2928,6 +2940,9 @@ function GoabLink(props) {
2928
2940
  {
2929
2941
  leadingicon: props.leadingIcon,
2930
2942
  trailingicon: props.trailingIcon,
2943
+ action: props.action,
2944
+ "action-arg": props.actionArg,
2945
+ "action-args": JSON.stringify(props.actionArgs),
2931
2946
  testid: props.testId,
2932
2947
  mt: props.mt,
2933
2948
  mb: props.mb,