@elliemae/ds-zipcode-search 2.0.0-rc.5 → 2.0.0-rc.9
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/package.json +9 -4
- package/types/DSZipCodeSearch.d.ts +92 -14
- package/types/props.d.ts +74 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-zipcode-search",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Zipcode Search",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -48,11 +48,16 @@
|
|
|
48
48
|
"build": "node ../../scripts/build/build.js"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-classnames": "2.0.0-rc.
|
|
52
|
-
"@elliemae/ds-dropdownmenu": "2.0.0-rc.
|
|
53
|
-
"@elliemae/ds-form": "2.0.0-rc.
|
|
51
|
+
"@elliemae/ds-classnames": "2.0.0-rc.9",
|
|
52
|
+
"@elliemae/ds-dropdownmenu": "2.0.0-rc.9",
|
|
53
|
+
"@elliemae/ds-form": "2.0.0-rc.9",
|
|
54
54
|
"react-desc": "~4.1.3"
|
|
55
55
|
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@testing-library/jest-dom": "~5.15.0",
|
|
58
|
+
"@testing-library/react": "~12.1.2",
|
|
59
|
+
"@testing-library/user-event": "~13.5.0"
|
|
60
|
+
},
|
|
56
61
|
"peerDependencies": {
|
|
57
62
|
"react": "^17.0.2",
|
|
58
63
|
"react-dom": "^17.0.2"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
declare const DSZipCodeSearch: {
|
|
3
4
|
({ disabled, value, placeholder, mask, onBlur, onChange, onSearch, containerProps, selectRightOptions, activeCount, options, tabIndex, }: {
|
|
@@ -15,19 +16,79 @@ declare const DSZipCodeSearch: {
|
|
|
15
16
|
tabIndex: any;
|
|
16
17
|
}): JSX.Element;
|
|
17
18
|
propTypes: {
|
|
18
|
-
className:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
className: {
|
|
20
|
+
defaultValue<T = unknown>(arg: T): {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
24
|
+
};
|
|
25
|
+
containerProps: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
31
|
+
tabIndex: {
|
|
32
|
+
defaultValue<T = unknown>(arg: T): {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
defaultValue<T = unknown>(arg: T): {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
value: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
onBlur: {
|
|
45
|
+
defaultValue<T = unknown>(arg: T): {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
onChange: {
|
|
51
|
+
defaultValue<T = unknown>(arg: T): {
|
|
52
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
53
|
+
};
|
|
54
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
55
|
+
};
|
|
56
|
+
options: {
|
|
57
|
+
defaultValue<T = unknown>(arg: T): {
|
|
58
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
59
|
+
};
|
|
60
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
62
|
+
placeholder: {
|
|
63
|
+
defaultValue<T = unknown>(arg: T): {
|
|
64
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
mask: {
|
|
69
|
+
defaultValue<T = unknown>(arg: T): {
|
|
70
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
71
|
+
};
|
|
72
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
73
|
+
};
|
|
74
|
+
onSearch: {
|
|
75
|
+
defaultValue<T = unknown>(arg: T): {
|
|
76
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
78
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
80
|
+
selectRightOptions: {
|
|
81
|
+
defaultValue<T = unknown>(arg: T): {
|
|
82
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
83
|
+
};
|
|
84
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
activeCount: {
|
|
87
|
+
defaultValue<T = unknown>(arg: T): {
|
|
88
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
89
|
+
};
|
|
90
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
31
92
|
};
|
|
32
93
|
defaultProps: {
|
|
33
94
|
disabled: boolean;
|
|
@@ -43,6 +104,23 @@ declare const DSZipCodeSearch: {
|
|
|
43
104
|
options: never[];
|
|
44
105
|
};
|
|
45
106
|
};
|
|
46
|
-
declare const ZipCodeSearchWithSchema:
|
|
107
|
+
declare const ZipCodeSearchWithSchema: {
|
|
108
|
+
(props?: {
|
|
109
|
+
disabled: any;
|
|
110
|
+
value: any;
|
|
111
|
+
placeholder: any;
|
|
112
|
+
mask: any;
|
|
113
|
+
onBlur: any;
|
|
114
|
+
onChange: any;
|
|
115
|
+
onSearch: any;
|
|
116
|
+
containerProps: any;
|
|
117
|
+
selectRightOptions: any;
|
|
118
|
+
activeCount: any;
|
|
119
|
+
options: any;
|
|
120
|
+
tabIndex: any;
|
|
121
|
+
} | undefined): JSX.Element;
|
|
122
|
+
propTypes: unknown;
|
|
123
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
124
|
+
};
|
|
47
125
|
export { DSZipCodeSearch, ZipCodeSearchWithSchema };
|
|
48
126
|
export default DSZipCodeSearch;
|
package/types/props.d.ts
CHANGED
|
@@ -1,30 +1,91 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
export declare const zipcodeSearchProps: {
|
|
2
3
|
/** html class attribute */
|
|
3
|
-
className:
|
|
4
|
+
className: {
|
|
5
|
+
defaultValue<T = unknown>(arg: T): {
|
|
6
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
|
+
};
|
|
8
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
4
10
|
/** Set of Properties attached to the main container */
|
|
5
|
-
containerProps:
|
|
11
|
+
containerProps: {
|
|
12
|
+
defaultValue<T = unknown>(arg: T): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
6
17
|
/** native tabindex property to handle focus order */
|
|
7
|
-
tabIndex:
|
|
18
|
+
tabIndex: {
|
|
19
|
+
defaultValue<T = unknown>(arg: T): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
8
24
|
/** disable component */
|
|
9
|
-
disabled:
|
|
25
|
+
disabled: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
10
31
|
/** input value */
|
|
11
|
-
value:
|
|
32
|
+
value: import("react-desc").PropTypesDescValidator;
|
|
12
33
|
/** function called on blur */
|
|
13
|
-
onBlur:
|
|
34
|
+
onBlur: {
|
|
35
|
+
defaultValue<T = unknown>(arg: T): {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
39
|
+
};
|
|
14
40
|
/** function called on change */
|
|
15
|
-
onChange:
|
|
41
|
+
onChange: {
|
|
42
|
+
defaultValue<T = unknown>(arg: T): {
|
|
43
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
16
47
|
/** options to display */
|
|
17
|
-
options:
|
|
48
|
+
options: {
|
|
49
|
+
defaultValue<T = unknown>(arg: T): {
|
|
50
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
53
|
+
};
|
|
18
54
|
/** placeholder value */
|
|
19
|
-
placeholder:
|
|
55
|
+
placeholder: {
|
|
56
|
+
defaultValue<T = unknown>(arg: T): {
|
|
57
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
59
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
20
61
|
/** format mask to apply */
|
|
21
|
-
mask:
|
|
62
|
+
mask: {
|
|
63
|
+
defaultValue<T = unknown>(arg: T): {
|
|
64
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
22
68
|
/** function called onsearch */
|
|
23
|
-
onSearch:
|
|
69
|
+
onSearch: {
|
|
70
|
+
defaultValue<T = unknown>(arg: T): {
|
|
71
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
73
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
74
|
+
};
|
|
24
75
|
/** Correction messange */
|
|
25
|
-
selectRightOptions:
|
|
76
|
+
selectRightOptions: {
|
|
77
|
+
defaultValue<T = unknown>(arg: T): {
|
|
78
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
80
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
81
|
+
};
|
|
26
82
|
/** current amount */
|
|
27
|
-
activeCount:
|
|
83
|
+
activeCount: {
|
|
84
|
+
defaultValue<T = unknown>(arg: T): {
|
|
85
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
86
|
+
};
|
|
87
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
88
|
+
};
|
|
28
89
|
};
|
|
29
90
|
export declare const defaultProps: {
|
|
30
91
|
disabled: boolean;
|