@abgov/react-components 6.7.1-alpha.4 → 6.8.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.d.ts +1 -0
- package/index.js +72 -3
- package/index.js.map +1 -1
- package/index.mjs +72 -3
- package/index.mjs.map +1 -1
- package/lib/badge/badge.d.ts +4 -2
- package/lib/checkbox/checkbox.d.ts +3 -1
- package/lib/checkbox-list/checkbox-list.d.ts +30 -0
- package/package.json +1 -1
package/lib/badge/badge.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GoabBadgeType, Margins } from '@abgov/ui-components-common';
|
|
1
|
+
import { GoabBadgeType, Margins, GoabIconType } from '@abgov/ui-components-common';
|
|
2
2
|
import { JSX } from 'react';
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
type: GoabBadgeType;
|
|
@@ -6,6 +6,7 @@ interface WCProps extends Margins {
|
|
|
6
6
|
content?: string;
|
|
7
7
|
arialabel?: string;
|
|
8
8
|
testid?: string;
|
|
9
|
+
icontype?: GoabIconType;
|
|
9
10
|
}
|
|
10
11
|
declare module "react" {
|
|
11
12
|
namespace JSX {
|
|
@@ -20,8 +21,9 @@ export interface GoabBadgeProps extends Margins {
|
|
|
20
21
|
content?: string;
|
|
21
22
|
testId?: string;
|
|
22
23
|
ariaLabel?: string;
|
|
24
|
+
iconType?: GoabIconType;
|
|
23
25
|
}
|
|
24
|
-
export declare function GoabBadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
|
|
26
|
+
export declare function GoabBadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, iconType, }: GoabBadgeProps): JSX.Element;
|
|
25
27
|
/**
|
|
26
28
|
* @deprecated
|
|
27
29
|
*/
|
|
@@ -12,6 +12,7 @@ interface WCProps extends Margins {
|
|
|
12
12
|
id?: string;
|
|
13
13
|
name: string;
|
|
14
14
|
checked?: string;
|
|
15
|
+
indeterminate?: string;
|
|
15
16
|
disabled?: string;
|
|
16
17
|
error?: string;
|
|
17
18
|
text?: string;
|
|
@@ -27,6 +28,7 @@ export interface GoabCheckboxProps extends Margins {
|
|
|
27
28
|
id?: string;
|
|
28
29
|
name: string;
|
|
29
30
|
checked?: boolean;
|
|
31
|
+
indeterminate?: boolean;
|
|
30
32
|
disabled?: boolean;
|
|
31
33
|
error?: boolean;
|
|
32
34
|
text?: string;
|
|
@@ -41,5 +43,5 @@ export interface GoabCheckboxProps extends Margins {
|
|
|
41
43
|
onChange?: (detail: GoabCheckboxOnChangeDetail) => void;
|
|
42
44
|
}
|
|
43
45
|
export type Props = GoabCheckboxProps;
|
|
44
|
-
export declare function GoabCheckbox({ id, name, testId, error, disabled, checked, value, text, description, reveal, revealAriaLabel, maxWidth, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoabCheckboxProps): JSX.Element;
|
|
46
|
+
export declare function GoabCheckbox({ id, name, testId, error, disabled, checked, indeterminate, value, text, description, reveal, revealAriaLabel, maxWidth, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoabCheckboxProps): JSX.Element;
|
|
45
47
|
export default GoabCheckbox;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GoabCheckboxListOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
3
|
+
declare module "react" {
|
|
4
|
+
namespace JSX {
|
|
5
|
+
interface IntrinsicElements {
|
|
6
|
+
"goa-checkbox-list": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
interface WCProps extends Margins {
|
|
11
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
12
|
+
name: string;
|
|
13
|
+
value?: string[];
|
|
14
|
+
disabled?: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
testid?: string;
|
|
17
|
+
maxwidth?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GoabCheckboxListProps extends Margins {
|
|
20
|
+
name: string;
|
|
21
|
+
value?: string[];
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
error?: boolean;
|
|
24
|
+
testId?: string;
|
|
25
|
+
maxWidth?: string;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
onChange?: (detail: GoabCheckboxListOnChangeDetail) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function GoabCheckboxList({ name, value, disabled, error, testId, maxWidth, children, onChange, mt, mr, mb, ml, }: GoabCheckboxListProps): JSX.Element;
|
|
30
|
+
export default GoabCheckboxList;
|