@abgov/react-components 4.12.1 → 4.13.0-alpha.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.
- package/lib/dropdown/dropdown.d.ts +2 -0
- package/lib/input/input.d.ts +12 -0
- package/lib/popover/popover.d.ts +2 -0
- package/package.json +1 -1
- package/react-components.esm.js +133 -93
- package/react-components.umd.js +131 -93
|
@@ -15,6 +15,7 @@ interface WCProps extends Margins {
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
value?: string;
|
|
17
17
|
width?: string;
|
|
18
|
+
relative?: boolean;
|
|
18
19
|
}
|
|
19
20
|
declare global {
|
|
20
21
|
namespace JSX {
|
|
@@ -39,6 +40,7 @@ interface Props extends Margins {
|
|
|
39
40
|
placeholder?: string;
|
|
40
41
|
testId?: string;
|
|
41
42
|
width?: string;
|
|
43
|
+
relative?: boolean;
|
|
42
44
|
}
|
|
43
45
|
export declare const GoADropdown: FC<Props>;
|
|
44
46
|
export default GoADropdown;
|
package/lib/input/input.d.ts
CHANGED
|
@@ -61,28 +61,40 @@ interface BaseProps extends Margins {
|
|
|
61
61
|
maxLength?: number;
|
|
62
62
|
}
|
|
63
63
|
declare type OnChange = (name: string, value: string) => void;
|
|
64
|
+
declare type OnFocus = (name: string, value: string) => void;
|
|
65
|
+
declare type OnBlur = (name: string, value: string) => void;
|
|
64
66
|
export interface InputProps extends BaseProps {
|
|
65
67
|
onChange: OnChange;
|
|
66
68
|
value: string;
|
|
67
69
|
min?: number | string;
|
|
68
70
|
max?: number | string;
|
|
69
71
|
step?: number;
|
|
72
|
+
onFocus?: OnFocus;
|
|
73
|
+
onBlur?: OnBlur;
|
|
70
74
|
}
|
|
71
75
|
declare type OnNumberChange = (name: string, value: number) => void;
|
|
76
|
+
declare type OnNumberFocus = (name: string, value: number) => void;
|
|
77
|
+
declare type OnNumberBlur = (name: string, value: number) => void;
|
|
72
78
|
interface NumberInputProps extends BaseProps {
|
|
73
79
|
onChange: OnNumberChange;
|
|
74
80
|
value: number;
|
|
75
81
|
min?: number;
|
|
76
82
|
max?: number;
|
|
77
83
|
step?: number;
|
|
84
|
+
onFocus?: OnNumberFocus;
|
|
85
|
+
onBlur?: OnNumberBlur;
|
|
78
86
|
}
|
|
79
87
|
declare type OnDateChange = (name: string, value: GoADate) => void;
|
|
88
|
+
declare type OnDateFocus = (name: string, value: GoADate) => void;
|
|
89
|
+
declare type OnDateBlur = (name: string, value: GoADate) => void;
|
|
80
90
|
interface DateInputProps extends BaseProps {
|
|
81
91
|
onChange: OnDateChange;
|
|
82
92
|
value: GoADate;
|
|
83
93
|
min?: GoADate;
|
|
84
94
|
max?: GoADate;
|
|
85
95
|
step?: number;
|
|
96
|
+
onFocus?: OnDateFocus;
|
|
97
|
+
onBlur?: OnDateBlur;
|
|
86
98
|
}
|
|
87
99
|
export declare const GoAInput: FC<InputProps & {
|
|
88
100
|
type?: GoAInputType;
|
package/lib/popover/popover.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
|
|
|
5
5
|
maxwidth?: string;
|
|
6
6
|
padded?: boolean;
|
|
7
7
|
position?: Position;
|
|
8
|
+
relative?: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare global {
|
|
10
11
|
namespace JSX {
|
|
@@ -20,6 +21,7 @@ interface Props extends Margins {
|
|
|
20
21
|
padded?: boolean;
|
|
21
22
|
position?: Position;
|
|
22
23
|
children: ReactNode;
|
|
24
|
+
relative?: boolean;
|
|
23
25
|
}
|
|
24
26
|
export declare const GoAPopover: FC<Props>;
|
|
25
27
|
export default GoAPopover;
|