@abgov/react-components 4.20.2 → 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.
@@ -7,6 +7,7 @@ interface WCProps {
7
7
  export interface GoAAppHeaderMenuProps {
8
8
  heading: string;
9
9
  leadingIcon?: GoAIconType;
10
+ testId?: string;
10
11
  children?: ReactNode;
11
12
  }
12
13
  declare global {
@@ -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;
@@ -3,6 +3,7 @@ interface WCProps extends Margins {
3
3
  ref: React.RefObject<HTMLElement>;
4
4
  name?: string;
5
5
  value?: string;
6
+ error?: boolean;
6
7
  min?: string;
7
8
  max?: string;
8
9
  }
@@ -16,9 +17,11 @@ declare global {
16
17
  export interface GoADatePickerProps extends Margins {
17
18
  name?: string;
18
19
  value?: Date;
20
+ error?: boolean;
19
21
  min?: Date;
20
22
  max?: Date;
23
+ testId?: string;
21
24
  onChange: (name: string, value: Date) => void;
22
25
  }
23
- export declare function GoADatePicker({ name, value, 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;
24
27
  export default GoADatePicker;
@@ -14,6 +14,7 @@ declare global {
14
14
  export interface GoADetailsProps extends Margins {
15
15
  heading: string;
16
16
  open?: boolean;
17
+ testId?: string;
17
18
  children: ReactNode;
18
19
  }
19
20
  export type DetailsProps = GoADetailsProps;
@@ -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;
@@ -9,6 +9,7 @@ interface WCProps extends Margins {
9
9
  variant?: GoAIconButtonVariant;
10
10
  title?: string;
11
11
  disabled?: boolean;
12
+ arialabel?: string;
12
13
  }
13
14
  declare global {
14
15
  namespace JSX {
@@ -26,6 +27,7 @@ export interface GoAIconButtonProps extends Margins {
26
27
  children?: React.ReactNode;
27
28
  onClick?: () => void;
28
29
  testId?: string;
30
+ ariaLabel?: string;
29
31
  }
30
- export declare function GoAIconButton({ icon, disabled, variant, onClick, size, title, testId, children, mt, mr, mb, ml, }: GoAIconButtonProps): JSX.Element;
32
+ export declare function GoAIconButton({ icon, disabled, variant, onClick, size, title, ariaLabel, testId, children, mt, mr, mb, ml, }: GoAIconButtonProps): JSX.Element;
31
33
  export {};
@@ -1,6 +1,7 @@
1
1
  import { ReactElement, ReactNode, RefObject } from "react";
2
2
  export type GoAModalTransition = "fast" | "slow" | "none";
3
3
  export type GoAModalCalloutVariant = "information" | "important" | "emergency" | "success" | "event";
4
+ export type GoAModalRole = "dialog" | "alertdialog";
4
5
  export type ModalTransition = GoAModalTransition;
5
6
  export type CalloutVariant = GoAModalCalloutVariant;
6
7
  interface WCProps {
@@ -11,6 +12,7 @@ interface WCProps {
11
12
  closable?: boolean;
12
13
  transition?: GoAModalTransition;
13
14
  calloutvariant?: GoAModalCalloutVariant;
15
+ role?: GoAModalRole;
14
16
  }
15
17
  declare global {
16
18
  namespace JSX {
@@ -29,8 +31,9 @@ export interface GoAModalProps {
29
31
  open?: boolean;
30
32
  calloutVariant?: GoAModalCalloutVariant;
31
33
  testId?: string;
34
+ role?: GoAModalRole;
32
35
  width?: string;
33
36
  type?: string;
34
37
  }
35
- export declare function GoAModal({ heading, children, maxWidth, open, actions, transition, type, calloutVariant, onClose, testId, width, }: GoAModalProps): JSX.Element;
38
+ export declare function GoAModal({ heading, children, maxWidth, open, actions, transition, type, calloutVariant, onClose, testId, role, width, }: GoAModalProps): JSX.Element;
36
39
  export default GoAModal;
@@ -7,6 +7,7 @@ declare global {
7
7
  }
8
8
  }
9
9
  export interface GoASideMenuProps {
10
+ testId?: string;
10
11
  children: ReactNode;
11
12
  }
12
13
  export type SideMenuProps = GoASideMenuProps;
@@ -11,6 +11,7 @@ declare global {
11
11
  }
12
12
  export interface GoASideMenuGroupProps {
13
13
  heading: string;
14
+ testId?: string;
14
15
  children?: ReactNode;
15
16
  }
16
17
  export declare function GoASideMenuGroup(props: GoASideMenuGroupProps): JSX.Element;
@@ -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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.20.2",
3
+ "version": "4.20.4",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"