@abgov/react-components 4.21.1 → 4.22.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 +7151 -7043
- package/index.js.map +1 -1
- package/index.mjs +7151 -7043
- package/index.mjs.map +1 -1
- package/lib/radio-group/radio.d.ts +6 -3
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
interface RadioItemProps extends Margins {
|
|
2
3
|
name?: string;
|
|
3
4
|
value?: string;
|
|
4
5
|
description?: string | React.ReactNode;
|
|
@@ -6,6 +7,7 @@ interface RadioItemProps {
|
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
checked?: boolean;
|
|
8
9
|
error?: boolean;
|
|
10
|
+
arialabel?: string;
|
|
9
11
|
}
|
|
10
12
|
declare global {
|
|
11
13
|
namespace JSX {
|
|
@@ -14,7 +16,7 @@ declare global {
|
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
|
-
export interface GoARadioItemProps {
|
|
19
|
+
export interface GoARadioItemProps extends Margins {
|
|
18
20
|
value?: string;
|
|
19
21
|
label?: string;
|
|
20
22
|
name?: string;
|
|
@@ -24,6 +26,7 @@ export interface GoARadioItemProps {
|
|
|
24
26
|
error?: boolean;
|
|
25
27
|
children?: React.ReactNode;
|
|
26
28
|
testId?: string;
|
|
29
|
+
ariaLabel?: string;
|
|
27
30
|
}
|
|
28
|
-
export declare function GoARadioItem({ name, label, value, description, disabled, checked, error, testId, children, }: GoARadioItemProps): JSX.Element;
|
|
31
|
+
export declare function GoARadioItem({ name, label, value, description, disabled, checked, error, testId, ariaLabel, children, mt, mr, mb, ml, }: GoARadioItemProps): JSX.Element;
|
|
29
32
|
export default GoARadioItem;
|