@abgov/react-components 5.4.1 → 5.5.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.
@@ -19,7 +19,7 @@ interface WCProps extends Margins {
19
19
  error?: boolean;
20
20
  readonly?: boolean;
21
21
  focused?: boolean;
22
- handletrailingiconclick?: boolean;
22
+ handletrailingiconclick: boolean;
23
23
  width?: string;
24
24
  prefix?: string;
25
25
  suffix?: string;
@@ -101,7 +101,7 @@ export declare function GoAInputText(props: GoAInputProps): JSX.Element;
101
101
  export declare function GoAInputPassword(props: GoAInputProps): JSX.Element;
102
102
  export declare function GoAInputDate({ value, min, max, ...props }: GoADateInputProps): JSX.Element;
103
103
  export declare function GoAInputTime({ value, min, max, ...props }: GoAInputProps): JSX.Element;
104
- export declare function GoAInputDateTime({ value, min, max, ...props }: GoADateInputProps): JSX.Element;
104
+ export declare function GoAInputDateTime({ value, min, max, step, ...props }: GoADateInputProps): JSX.Element;
105
105
  export declare function GoAInputEmail(props: GoAInputProps): JSX.Element;
106
106
  export declare function GoAInputSearch(props: GoAInputProps): JSX.Element;
107
107
  export declare function GoAInputUrl(props: GoAInputProps): JSX.Element;
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
5
5
  as?: TextElement | HeadingElement;
6
6
  size?: Size;
7
7
  maxwidth?: MaxWidth;
8
+ color?: Color;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -18,10 +19,12 @@ export type TextElement = "span" | "div" | "p";
18
19
  type HeadingSize = "heading-xl" | "heading-l" | "heading-m" | "heading-s" | "heading-xs";
19
20
  type BodySize = "body-l" | "body-m" | "body-s" | "body-xs";
20
21
  export type Size = HeadingSize | BodySize;
22
+ type Color = "primary" | "secondary";
21
23
  interface GoATextProps extends Margins {
22
24
  as?: TextElement | HeadingElement;
23
25
  size?: Size;
24
26
  maxWidth?: MaxWidth;
27
+ color?: Color;
25
28
  children: ReactNode;
26
29
  }
27
30
  export declare function GoAText(props: GoATextProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "5.4.1",
3
+ "version": "5.5.1",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"