@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.
- package/index.js +17 -2
- package/index.js.map +1 -1
- package/index.mjs +17 -2
- package/index.mjs.map +1 -1
- package/lib/button/button.d.ts +7 -1
- package/lib/icon-button/icon-button.d.ts +9 -3
- package/lib/link/link.d.ts +6 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -260,7 +260,10 @@ function GoabButton({
|
|
|
260
260
|
mt,
|
|
261
261
|
mr,
|
|
262
262
|
mb,
|
|
263
|
-
ml
|
|
263
|
+
ml,
|
|
264
|
+
action,
|
|
265
|
+
actionArgs,
|
|
266
|
+
actionArg
|
|
264
267
|
}) {
|
|
265
268
|
const el = useRef(null);
|
|
266
269
|
useEffect(() => {
|
|
@@ -291,6 +294,9 @@ function GoabButton({
|
|
|
291
294
|
trailingicon: trailingIcon,
|
|
292
295
|
width,
|
|
293
296
|
testid: testId,
|
|
297
|
+
action,
|
|
298
|
+
"action-arg": actionArg,
|
|
299
|
+
"action-args": JSON.stringify(actionArgs),
|
|
294
300
|
mt,
|
|
295
301
|
mr,
|
|
296
302
|
mb,
|
|
@@ -1004,7 +1010,10 @@ function GoabIconButton({
|
|
|
1004
1010
|
mt,
|
|
1005
1011
|
mr,
|
|
1006
1012
|
mb,
|
|
1007
|
-
ml
|
|
1013
|
+
ml,
|
|
1014
|
+
action,
|
|
1015
|
+
actionArgs,
|
|
1016
|
+
actionArg
|
|
1008
1017
|
}) {
|
|
1009
1018
|
const ref = useRef(null);
|
|
1010
1019
|
useEffect(() => {
|
|
@@ -1033,6 +1042,9 @@ function GoabIconButton({
|
|
|
1033
1042
|
size,
|
|
1034
1043
|
title,
|
|
1035
1044
|
arialabel: ariaLabel,
|
|
1045
|
+
action,
|
|
1046
|
+
"action-arg": actionArg,
|
|
1047
|
+
"action-args": JSON.stringify(actionArgs),
|
|
1036
1048
|
mt,
|
|
1037
1049
|
mr,
|
|
1038
1050
|
mb,
|
|
@@ -2926,6 +2938,9 @@ function GoabLink(props) {
|
|
|
2926
2938
|
{
|
|
2927
2939
|
leadingicon: props.leadingIcon,
|
|
2928
2940
|
trailingicon: props.trailingIcon,
|
|
2941
|
+
action: props.action,
|
|
2942
|
+
"action-arg": props.actionArg,
|
|
2943
|
+
"action-args": JSON.stringify(props.actionArgs),
|
|
2929
2944
|
testid: props.testId,
|
|
2930
2945
|
mt: props.mt,
|
|
2931
2946
|
mb: props.mb,
|