@abgov/react-components 4.20.2 → 4.20.3

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.
@@ -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,10 @@ 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;
21
23
  onChange: (name: string, value: Date) => void;
22
24
  }
23
- export declare function GoADatePicker({ name, value, min, max, mt, mr, mb, ml, onChange, }: GoADatePickerProps): JSX.Element;
25
+ export declare function GoADatePicker({ name, value, error, min, max, mt, mr, mb, ml, onChange, }: GoADatePickerProps): JSX.Element;
24
26
  export default GoADatePicker;
@@ -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;
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.3",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"