@abgov/react-components 4.0.0-alpha.53 → 4.0.0-alpha.54

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.
@@ -1,12 +1,14 @@
1
1
  import React, { FC } from 'react';
2
2
  import { GoAIconType } from '../..';
3
3
  declare type GoAInputType = "text" | "number" | "password" | "email" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
4
+ declare type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
4
5
  interface WCProps {
5
6
  ref?: React.MutableRefObject<HTMLInputElement | null>;
6
7
  type?: GoAInputType;
7
8
  name: string;
8
9
  value: string;
9
10
  id?: string;
11
+ autocapitalize?: GoAAutoCapitalize;
10
12
  placeholder?: string;
11
13
  leadingicon?: string;
12
14
  trailingicon?: string;
@@ -33,12 +35,13 @@ declare global {
33
35
  }
34
36
  }
35
37
  }
36
- interface Props {
38
+ export interface InputProps {
37
39
  name: string;
38
40
  value: string;
39
41
  onChange: (name: string, value: string) => void;
40
42
  id?: string;
41
43
  disabled?: boolean;
44
+ autoCapitalize?: GoAAutoCapitalize;
42
45
  placeholder?: string;
43
46
  leadingIcon?: GoAIconType;
44
47
  trailingIcon?: GoAIconType;
@@ -57,30 +60,30 @@ interface Props {
57
60
  max?: string;
58
61
  step?: number;
59
62
  }
60
- export declare const GoAInput: FC<Props & {
63
+ export declare const GoAInput: FC<InputProps & {
61
64
  type?: GoAInputType;
62
65
  }>;
63
- export declare const GoAInputText: FC<Props>;
64
- export declare const GoAInputPassword: FC<Props>;
65
- export declare const GoAInputDate: FC<Omit<Props, "value"> & {
66
+ export declare const GoAInputText: FC<InputProps>;
67
+ export declare const GoAInputPassword: FC<InputProps>;
68
+ export declare const GoAInputDate: FC<Omit<InputProps, "value"> & {
66
69
  value: Date | string;
67
70
  }>;
68
- export declare const GoAInputTime: FC<Omit<Props, "value"> & {
71
+ export declare const GoAInputTime: FC<Omit<InputProps, "value"> & {
69
72
  value: Date | string;
70
73
  }>;
71
- export declare const GoAInputDateTime: FC<Omit<Props, "value"> & {
74
+ export declare const GoAInputDateTime: FC<Omit<InputProps, "value"> & {
72
75
  value: Date;
73
76
  }>;
74
- export declare const GoAInputEmail: FC<Props>;
75
- export declare const GoAInputSearch: FC<Props>;
76
- export declare const GoAInputUrl: FC<Props>;
77
- export declare const GoAInputTel: FC<Props>;
78
- export declare const GoAInputFile: FC<Props>;
79
- export declare const GoAInputMonth: FC<Props>;
80
- export declare const GoAInputNumber: FC<Omit<Props, "value" | "min" | "max"> & {
77
+ export declare const GoAInputEmail: FC<InputProps>;
78
+ export declare const GoAInputSearch: FC<InputProps>;
79
+ export declare const GoAInputUrl: FC<InputProps>;
80
+ export declare const GoAInputTel: FC<InputProps>;
81
+ export declare const GoAInputFile: FC<InputProps>;
82
+ export declare const GoAInputMonth: FC<InputProps>;
83
+ export declare const GoAInputNumber: FC<Omit<InputProps, "value" | "min" | "max"> & {
81
84
  value: number;
82
85
  min?: number;
83
86
  max?: number;
84
87
  }>;
85
- export declare const GoAInputRange: FC<Props>;
88
+ export declare const GoAInputRange: FC<InputProps>;
86
89
  export default GoAInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.53",
3
+ "version": "4.0.0-alpha.54",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"