@abgov/react-components 7.4.0 → 7.5.0
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 +4 -1
- package/index.js.map +1 -1
- package/index.mjs +4 -1
- package/index.mjs.map +1 -1
- package/lib/button/button.d.ts +5 -2
- package/lib/date-picker/date-picker.d.ts +3 -3
- package/lib/dropdown/dropdown.d.ts +3 -0
- package/lib/icon/icon.d.ts +4 -1
- package/lib/input/input.d.ts +3 -0
- package/lib/text/text.d.ts +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -172,6 +172,7 @@ function GoabButton({
|
|
|
172
172
|
onClick,
|
|
173
173
|
actionArgs,
|
|
174
174
|
actionArg,
|
|
175
|
+
ariaLabel,
|
|
175
176
|
children,
|
|
176
177
|
...rest
|
|
177
178
|
}) {
|
|
@@ -200,6 +201,7 @@ function GoabButton({
|
|
|
200
201
|
disabled: disabled ? "true" : void 0,
|
|
201
202
|
"action-arg": actionArg,
|
|
202
203
|
"action-args": JSON.stringify(actionArgs),
|
|
204
|
+
arialabel: ariaLabel || void 0,
|
|
203
205
|
..._props,
|
|
204
206
|
version: "2",
|
|
205
207
|
children
|
|
@@ -3359,12 +3361,13 @@ function GoabIconButton({
|
|
|
3359
3361
|
}
|
|
3360
3362
|
);
|
|
3361
3363
|
}
|
|
3362
|
-
function GoabIcon({ inverted, ...rest }) {
|
|
3364
|
+
function GoabIcon({ inverted, ariaHidden, ...rest }) {
|
|
3363
3365
|
const _props = transformProps(rest, lowercase);
|
|
3364
3366
|
return /* @__PURE__ */ jsx(
|
|
3365
3367
|
"goa-icon",
|
|
3366
3368
|
{
|
|
3367
3369
|
inverted: typeof inverted === "boolean" ? inverted ? "true" : void 0 : inverted,
|
|
3370
|
+
ariahidden: ariaHidden ? "true" : void 0,
|
|
3368
3371
|
..._props
|
|
3369
3372
|
}
|
|
3370
3373
|
);
|