@abgov/react-components 4.14.0-alpha.1 → 4.14.0-alpha.2

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.
@@ -17,6 +17,7 @@ interface CheckboxProps extends Margins {
17
17
  text?: string;
18
18
  value?: string | number | boolean;
19
19
  arialabel?: string;
20
+ description?: string;
20
21
  }
21
22
  export interface Props extends Margins {
22
23
  id?: string;
@@ -29,6 +30,7 @@ export interface Props extends Margins {
29
30
  children?: React.ReactNode;
30
31
  testId?: string;
31
32
  ariaLabel?: string;
33
+ description?: string;
32
34
  onChange?: (name: string, checked: boolean, value: string) => void;
33
35
  }
34
36
  export declare const GoACheckbox: FC<Props>;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  interface WCProps {
3
3
  value: string;
4
4
  label?: string;
5
+ filter?: string;
5
6
  name?: string;
6
7
  }
7
8
  declare global {
@@ -14,9 +15,10 @@ declare global {
14
15
  interface Props {
15
16
  value: string;
16
17
  label?: string;
18
+ filter?: string;
17
19
  testId?: string;
18
20
  name?: string;
19
21
  }
20
22
  export declare function GoADropdownOption(props: Props): JSX.Element;
21
- export declare function GoADropdownItem({ value, label, name, testId }: Props): JSX.Element;
23
+ export declare function GoADropdownItem({ value, label, filter, name, testId }: Props): JSX.Element;
22
24
  export {};
@@ -4,6 +4,7 @@ import { GoAIconType } from "../icon/icon";
4
4
  interface WCProps extends Margins {
5
5
  ref: React.MutableRefObject<HTMLElement | null>;
6
6
  arialabel?: string;
7
+ arialabelledby?: string;
7
8
  disabled?: boolean;
8
9
  error?: boolean;
9
10
  filterable?: boolean;
@@ -16,6 +17,7 @@ interface WCProps extends Margins {
16
17
  value?: string;
17
18
  width?: string;
18
19
  relative?: boolean;
20
+ id?: string;
19
21
  }
20
22
  declare global {
21
23
  namespace JSX {
@@ -29,6 +31,8 @@ interface Props extends Margins {
29
31
  value?: string[] | string;
30
32
  onChange: (name: string, values: string[] | string) => void;
31
33
  ariaLabel?: string;
34
+ ariaLabelledBy?: string;
35
+ id?: string;
32
36
  children?: React.ReactNode;
33
37
  disabled?: boolean;
34
38
  error?: boolean;
@@ -6,6 +6,7 @@ interface WCProps extends Margins {
6
6
  requirement?: RequirementType;
7
7
  error?: string;
8
8
  helptext?: string;
9
+ id?: string;
9
10
  }
10
11
  declare global {
11
12
  namespace JSX {
@@ -21,6 +22,7 @@ interface GoAFormItemProps extends Margins {
21
22
  helpText?: string;
22
23
  children?: React.ReactNode;
23
24
  testId?: string;
25
+ id?: string;
24
26
  }
25
27
  export declare const GoAFormItem: FC<GoAFormItemProps>;
26
28
  export default GoAFormItem;
@@ -2,6 +2,7 @@ import React, { FC } from "react";
2
2
  interface RadioItemProps {
3
3
  name: string;
4
4
  value: string;
5
+ description?: string;
5
6
  label?: string;
6
7
  disabled?: boolean;
7
8
  checked?: boolean;
@@ -17,6 +18,7 @@ declare global {
17
18
  interface Props {
18
19
  value: string;
19
20
  label?: string;
21
+ description?: string;
20
22
  name: string;
21
23
  disabled?: boolean;
22
24
  checked?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.14.0-alpha.1",
3
+ "version": "4.14.0-alpha.2",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"