@abgov/react-components 4.20.3 → 4.20.4
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 +2510 -2451
- package/index.js.map +1 -1
- package/index.mjs +2510 -2451
- package/index.mjs.map +1 -1
- package/lib/app-header-menu/app-header-menu.d.ts +1 -0
- package/lib/calendar/calendar.d.ts +2 -1
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/details/details.d.ts +1 -0
- package/lib/file-upload-card/file-upload-card.d.ts +2 -1
- package/lib/file-upload-input/file-upload-input.d.ts +2 -1
- package/lib/footer-meta-section/footer-meta-section.d.ts +2 -1
- package/lib/side-menu/side-menu.d.ts +1 -0
- package/lib/side-menu-group/side-menu-group.d.ts +1 -0
- package/lib/side-menu-heading/side-menu-heading.d.ts +1 -0
- package/lib/tabs/tabs.d.ts +2 -1
- package/package.json +1 -1
|
@@ -18,7 +18,8 @@ export interface GoACalendarProps extends Margins {
|
|
|
18
18
|
value?: Date;
|
|
19
19
|
min?: Date;
|
|
20
20
|
max?: Date;
|
|
21
|
+
testId?: string;
|
|
21
22
|
onChange: (name: string, value: Date) => void;
|
|
22
23
|
}
|
|
23
|
-
export declare function GoACalendar({ name, value, min, max, mt, mr, mb, ml, onChange, }: GoACalendarProps): JSX.Element;
|
|
24
|
+
export declare function GoACalendar({ name, value, min, max, testId, mt, mr, mb, ml, onChange, }: GoACalendarProps): JSX.Element;
|
|
24
25
|
export default GoACalendar;
|
|
@@ -20,7 +20,8 @@ export interface GoADatePickerProps extends Margins {
|
|
|
20
20
|
error?: boolean;
|
|
21
21
|
min?: Date;
|
|
22
22
|
max?: Date;
|
|
23
|
+
testId?: string;
|
|
23
24
|
onChange: (name: string, value: Date) => void;
|
|
24
25
|
}
|
|
25
|
-
export declare function GoADatePicker({ name, value, error, min, max, mt, mr, mb, ml, onChange, }: GoADatePickerProps): JSX.Element;
|
|
26
|
+
export declare function GoADatePicker({ name, value, error, min, max, testId, mt, mr, mb, ml, onChange, }: GoADatePickerProps): JSX.Element;
|
|
26
27
|
export default GoADatePicker;
|
package/lib/details/details.d.ts
CHANGED
|
@@ -19,8 +19,9 @@ export interface GoAFileUploadCardProps {
|
|
|
19
19
|
type?: string;
|
|
20
20
|
progress?: number;
|
|
21
21
|
error?: string;
|
|
22
|
+
testId?: string;
|
|
22
23
|
onDelete?: () => void;
|
|
23
24
|
onCancel?: () => void;
|
|
24
25
|
}
|
|
25
|
-
export declare function GoAFileUploadCard({ filename, size, type, progress, error, onDelete, onCancel, }: GoAFileUploadCardProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function GoAFileUploadCard({ filename, size, type, progress, error, testId, onDelete, onCancel, }: GoAFileUploadCardProps): import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
export default GoAFileUploadCard;
|
|
@@ -16,7 +16,8 @@ export interface GoAFileUploadInputProps {
|
|
|
16
16
|
variant?: GoAFileUploadInputVariant;
|
|
17
17
|
accept?: string;
|
|
18
18
|
maxFileSize?: string;
|
|
19
|
+
testId?: string;
|
|
19
20
|
onSelectFile: (file: File) => void;
|
|
20
21
|
}
|
|
21
|
-
export declare function GoAFileUploadInput({ variant, accept, maxFileSize, onSelectFile, }: GoAFileUploadInputProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function GoAFileUploadInput({ variant, accept, maxFileSize, testId, onSelectFile, }: GoAFileUploadInputProps): import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export default GoAFileUploadInput;
|
|
@@ -7,8 +7,9 @@ declare global {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
export interface GoAAppFooterMetaSectionProps {
|
|
10
|
+
testId?: string;
|
|
10
11
|
children?: ReactNode;
|
|
11
12
|
}
|
|
12
13
|
export type FooterMetaSectionProps = GoAAppFooterMetaSectionProps;
|
|
13
|
-
export declare function GoAAppFooterMetaSection({ children }: GoAAppFooterMetaSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function GoAAppFooterMetaSection({ testId, children }: GoAAppFooterMetaSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export default GoAAppFooterMetaSection;
|
|
@@ -13,6 +13,7 @@ declare global {
|
|
|
13
13
|
export interface GoASideMenuHeadingProps {
|
|
14
14
|
meta?: ReactNode;
|
|
15
15
|
icon?: GoAIconType;
|
|
16
|
+
testId?: string;
|
|
16
17
|
children?: ReactNode;
|
|
17
18
|
}
|
|
18
19
|
export declare function GoASideMenuHeading(props: GoASideMenuHeadingProps): import("react/jsx-runtime").JSX.Element;
|
package/lib/tabs/tabs.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare global {
|
|
|
11
11
|
export interface GoATabsProps {
|
|
12
12
|
initialTab?: number;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
|
+
testId?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare function GoATabs({ initialTab, children }: GoATabsProps): JSX.Element;
|
|
16
|
+
export declare function GoATabs({ initialTab, children, testId }: GoATabsProps): JSX.Element;
|
|
16
17
|
export default GoATabs;
|