@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.js
CHANGED
|
@@ -174,6 +174,7 @@ function GoabButton({
|
|
|
174
174
|
onClick,
|
|
175
175
|
actionArgs,
|
|
176
176
|
actionArg,
|
|
177
|
+
ariaLabel,
|
|
177
178
|
children,
|
|
178
179
|
...rest
|
|
179
180
|
}) {
|
|
@@ -202,6 +203,7 @@ function GoabButton({
|
|
|
202
203
|
disabled: disabled ? "true" : void 0,
|
|
203
204
|
"action-arg": actionArg,
|
|
204
205
|
"action-args": JSON.stringify(actionArgs),
|
|
206
|
+
arialabel: ariaLabel || void 0,
|
|
205
207
|
..._props,
|
|
206
208
|
version: "2",
|
|
207
209
|
children
|
|
@@ -3361,12 +3363,13 @@ function GoabIconButton({
|
|
|
3361
3363
|
}
|
|
3362
3364
|
);
|
|
3363
3365
|
}
|
|
3364
|
-
function GoabIcon({ inverted, ...rest }) {
|
|
3366
|
+
function GoabIcon({ inverted, ariaHidden, ...rest }) {
|
|
3365
3367
|
const _props = transformProps(rest, lowercase);
|
|
3366
3368
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3367
3369
|
"goa-icon",
|
|
3368
3370
|
{
|
|
3369
3371
|
inverted: typeof inverted === "boolean" ? inverted ? "true" : void 0 : inverted,
|
|
3372
|
+
ariahidden: ariaHidden ? "true" : void 0,
|
|
3370
3373
|
..._props
|
|
3371
3374
|
}
|
|
3372
3375
|
);
|