@elliemae/ds-form 2.0.0-rc.7 → 2.0.0-rc.8

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.
Files changed (55) hide show
  1. package/package.json +17 -17
  2. package/types/Checkbox/DSCheckbox.d.ts +78 -13
  3. package/types/Checkbox/props.d.ts +58 -12
  4. package/types/CheckboxGroup/DSCheckboxGroup.d.ts +51 -7
  5. package/types/CheckboxGroup/props.d.ts +37 -6
  6. package/types/ComboBox/v2/Combobox.d.ts +56 -1
  7. package/types/ComboBox/v3/ComboBox.d.ts +54 -16
  8. package/types/ComboBox/v3/parts/dropdown-indicator/styled.d.ts +1 -60
  9. package/types/ComboBox/v3/parts/header-list/styled.d.ts +4 -208
  10. package/types/ComboBox/v3/propTypes.d.ts +49 -15
  11. package/types/DateInput/DSDateInput.d.ts +97 -16
  12. package/types/DateInput/props.d.ts +97 -16
  13. package/types/DateInputV2/components/DSDateInput.d.ts +72 -5
  14. package/types/DateInputV2/components/props.d.ts +61 -10
  15. package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +118 -20
  16. package/types/FormItem/DSFormItemLayout.d.ts +390 -60
  17. package/types/FormItem/Error/DSError.d.ts +21 -3
  18. package/types/FormItem/defaultProps.d.ts +118 -20
  19. package/types/FormItem/props.d.ts +229 -39
  20. package/types/InputGroup/DSInputGroup.d.ts +56 -8
  21. package/types/InputGroup/props.d.ts +43 -7
  22. package/types/InputMask/DSInputMask.d.ts +172 -30
  23. package/types/InputMask/mask_types/DateInputMask.d.ts +34 -33
  24. package/types/InputMask/mask_types/DateTimeInputMask.d.ts +34 -33
  25. package/types/InputMask/mask_types/DictionaryInputMask.d.ts +37 -36
  26. package/types/InputMask/mask_types/NumberInputMask.d.ts +46 -45
  27. package/types/InputMask/mask_types/PhoneInputMask.d.ts +34 -33
  28. package/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +34 -33
  29. package/types/InputMask/mask_types/SsnInputMask.d.ts +34 -33
  30. package/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +34 -33
  31. package/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +34 -33
  32. package/types/InputMask/props.d.ts +172 -30
  33. package/types/InputProtected/DSInputProtected.d.ts +56 -7
  34. package/types/InputProtected/props.d.ts +43 -8
  35. package/types/LargeInputText/DSLargeInputText.d.ts +163 -27
  36. package/types/LargeInputText/props.d.ts +163 -27
  37. package/types/MenuItem/components/MenuItem/index.d.ts +12 -3
  38. package/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +12 -3
  39. package/types/MenuItem/components/Section/index.d.ts +4 -1
  40. package/types/MenuItem/components/Section/props.d.ts +4 -1
  41. package/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +7 -2
  42. package/types/MenuItem/components/SubmenuItem/index.d.ts +12 -3
  43. package/types/MenuItem/props.d.ts +7 -2
  44. package/types/Radio/DSRadio.d.ts +79 -13
  45. package/types/RadioGroup/DSRadioGroup.d.ts +51 -7
  46. package/types/RadioGroup/props.d.ts +37 -6
  47. package/types/SearchBox/DSSearchBox.d.ts +146 -21
  48. package/types/SearchBox/NavSearchBox.d.ts +18 -3
  49. package/types/SearchBox/SButton.d.ts +13 -2
  50. package/types/SearchBox/props.d.ts +133 -22
  51. package/types/SearchBox/styled.d.ts +1 -49
  52. package/types/TextBox/DSTextBox.d.ts +146 -21
  53. package/types/TimeInput/DSTimeInput.d.ts +83 -12
  54. package/types/TimeInput/utils.d.ts +1 -1
  55. package/types/Toggle/DSToggle.d.ts +84 -12
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSRadio: {
3
4
  ({ containerProps, className, style, labelText, htmlFor, hasError, readOnly, disabled, checked, value, name, onChange, children, tabIndex, ...otherProps }: {
@@ -31,33 +32,78 @@ declare const DSRadio: {
31
32
  };
32
33
  propTypes: {
33
34
  /** Injected props to wrapper element of component */
34
- containerProps: any;
35
+ containerProps: {
36
+ defaultValue<T = unknown>(arg: T): {
37
+ deprecated: import("react-desc").PropTypesDescValidator;
38
+ };
39
+ isRequired: import("react-desc").PropTypesDescValidator;
40
+ };
35
41
  /** css class prop */
36
- className: any;
42
+ className: {
43
+ defaultValue<T = unknown>(arg: T): {
44
+ deprecated: import("react-desc").PropTypesDescValidator;
45
+ };
46
+ isRequired: import("react-desc").PropTypesDescValidator;
47
+ };
37
48
  /** name property to manage form */
38
- name: any;
49
+ name: {
50
+ defaultValue<T = unknown>(arg: T): {
51
+ deprecated: import("react-desc").PropTypesDescValidator;
52
+ };
53
+ isRequired: import("react-desc").PropTypesDescValidator;
54
+ };
39
55
  /**
40
56
  * Displayable label for the radio
41
57
  */
42
- labelText: any;
58
+ labelText: {
59
+ defaultValue<T = unknown>(arg: T): {
60
+ deprecated: import("react-desc").PropTypesDescValidator;
61
+ };
62
+ isRequired: import("react-desc").PropTypesDescValidator;
63
+ };
43
64
  /** HTMLFOR property to manage form */
44
- htmlFor: any;
65
+ htmlFor: {
66
+ defaultValue<T = unknown>(arg: T): {
67
+ deprecated: import("react-desc").PropTypesDescValidator;
68
+ };
69
+ isRequired: import("react-desc").PropTypesDescValidator;
70
+ };
45
71
  /**
46
72
  * Whether the radio has error or not
47
73
  */
48
- hasError: any;
74
+ hasError: {
75
+ defaultValue<T = unknown>(arg: T): {
76
+ deprecated: import("react-desc").PropTypesDescValidator;
77
+ };
78
+ isRequired: import("react-desc").PropTypesDescValidator;
79
+ };
49
80
  /**
50
81
  * Whether the radio is read only or not
51
82
  */
52
- readOnly: any;
83
+ readOnly: {
84
+ defaultValue<T = unknown>(arg: T): {
85
+ deprecated: import("react-desc").PropTypesDescValidator;
86
+ };
87
+ isRequired: import("react-desc").PropTypesDescValidator;
88
+ };
53
89
  /**
54
90
  * Whether the radio is disabled or not
55
91
  */
56
- disabled: any;
92
+ disabled: {
93
+ defaultValue<T = unknown>(arg: T): {
94
+ deprecated: import("react-desc").PropTypesDescValidator;
95
+ };
96
+ isRequired: import("react-desc").PropTypesDescValidator;
97
+ };
57
98
  /**
58
99
  * Whether the radio is checked or not
59
100
  */
60
- checked: any;
101
+ checked: {
102
+ defaultValue<T = unknown>(arg: T): {
103
+ deprecated: import("react-desc").PropTypesDescValidator;
104
+ };
105
+ isRequired: import("react-desc").PropTypesDescValidator;
106
+ };
61
107
  /**
62
108
  * Value that takes the checkbox if it is checked
63
109
  */
@@ -65,15 +111,35 @@ declare const DSRadio: {
65
111
  /**
66
112
  * Allows a function that is triggered once the radio changes
67
113
  */
68
- onChange: any;
114
+ onChange: {
115
+ defaultValue<T = unknown>(arg: T): {
116
+ deprecated: import("react-desc").PropTypesDescValidator;
117
+ };
118
+ isRequired: import("react-desc").PropTypesDescValidator;
119
+ };
69
120
  /**
70
121
  * Optional, if you want a checkbox customized
71
122
  */
72
- children: any;
123
+ children: {
124
+ defaultValue<T = unknown>(arg: T): {
125
+ deprecated: import("react-desc").PropTypesDescValidator;
126
+ };
127
+ isRequired: import("react-desc").PropTypesDescValidator;
128
+ };
73
129
  /** HTML tabindex to manage focus */
74
- tabIndex: any;
130
+ tabIndex: {
131
+ defaultValue<T = unknown>(arg: T): {
132
+ deprecated: import("react-desc").PropTypesDescValidator;
133
+ };
134
+ isRequired: import("react-desc").PropTypesDescValidator;
135
+ };
75
136
  /** style override object */
76
- style: any;
137
+ style: {
138
+ defaultValue<T = unknown>(arg: T): {
139
+ deprecated: import("react-desc").PropTypesDescValidator;
140
+ };
141
+ isRequired: import("react-desc").PropTypesDescValidator;
142
+ };
77
143
  };
78
144
  };
79
145
  declare const DSRadioWithSchema: any;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSRadioGroup: {
3
4
  ({ containerProps, onChange, activeValue, children, orientation, disabled, truncateText, labelProps, }: {
@@ -11,13 +12,43 @@ declare const DSRadioGroup: {
11
12
  labelProps: any;
12
13
  }): JSX.Element;
13
14
  propTypes: {
14
- containerProps: any;
15
- onChange: any;
16
- activeValue: any;
15
+ containerProps: {
16
+ defaultValue<T = unknown>(arg: T): {
17
+ deprecated: import("react-desc").PropTypesDescValidator;
18
+ };
19
+ isRequired: import("react-desc").PropTypesDescValidator;
20
+ };
21
+ onChange: {
22
+ defaultValue<T = unknown>(arg: T): {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ isRequired: import("react-desc").PropTypesDescValidator;
26
+ };
27
+ activeValue: {
28
+ defaultValue<T = unknown>(arg: T): {
29
+ deprecated: import("react-desc").PropTypesDescValidator;
30
+ };
31
+ isRequired: import("react-desc").PropTypesDescValidator;
32
+ };
17
33
  children: any;
18
- orientation: any;
19
- disabled: any;
20
- labelProps: any;
34
+ orientation: {
35
+ defaultValue<T = unknown>(arg: T): {
36
+ deprecated: import("react-desc").PropTypesDescValidator;
37
+ };
38
+ isRequired: import("react-desc").PropTypesDescValidator;
39
+ };
40
+ disabled: {
41
+ defaultValue<T = unknown>(arg: T): {
42
+ deprecated: import("react-desc").PropTypesDescValidator;
43
+ };
44
+ isRequired: import("react-desc").PropTypesDescValidator;
45
+ };
46
+ labelProps: {
47
+ defaultValue<T = unknown>(arg: T): {
48
+ deprecated: import("react-desc").PropTypesDescValidator;
49
+ };
50
+ isRequired: import("react-desc").PropTypesDescValidator;
51
+ };
21
52
  };
22
53
  defaultProps: {
23
54
  containerProps: {};
@@ -32,6 +63,19 @@ declare const DSRadioGroup: {
32
63
  };
33
64
  };
34
65
  };
35
- declare const DSRadioGroupWithSchema: any;
66
+ declare const DSRadioGroupWithSchema: {
67
+ (props?: {
68
+ containerProps: any;
69
+ onChange: any;
70
+ activeValue: any;
71
+ children: any;
72
+ orientation: any;
73
+ disabled: any;
74
+ truncateText: any;
75
+ labelProps: any;
76
+ } | undefined): JSX.Element;
77
+ propTypes: unknown;
78
+ toTypescript: () => import("react-desc").TypescriptSchema;
79
+ };
36
80
  export { DSRadioGroupWithSchema };
37
81
  export default DSRadioGroup;
@@ -1,14 +1,30 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  export declare const props: {
2
3
  /** Inject props to component wrapper */
3
- containerProps: any;
4
+ containerProps: {
5
+ defaultValue<T = unknown>(arg: T): {
6
+ deprecated: import("react-desc").PropTypesDescValidator;
7
+ };
8
+ isRequired: import("react-desc").PropTypesDescValidator;
9
+ };
4
10
  /**
5
11
  * Allows a function that is triggered once the radio group changes
6
12
  */
7
- onChange: any;
13
+ onChange: {
14
+ defaultValue<T = unknown>(arg: T): {
15
+ deprecated: import("react-desc").PropTypesDescValidator;
16
+ };
17
+ isRequired: import("react-desc").PropTypesDescValidator;
18
+ };
8
19
  /**
9
20
  * Selected default active value
10
21
  */
11
- activeValue: any;
22
+ activeValue: {
23
+ defaultValue<T = unknown>(arg: T): {
24
+ deprecated: import("react-desc").PropTypesDescValidator;
25
+ };
26
+ isRequired: import("react-desc").PropTypesDescValidator;
27
+ };
12
28
  /**
13
29
  * Radio group items to show of type DSRadio
14
30
  */
@@ -16,10 +32,25 @@ export declare const props: {
16
32
  /**
17
33
  * ['horizontal', 'vertical']
18
34
  */
19
- orientation: any;
35
+ orientation: {
36
+ defaultValue<T = unknown>(arg: T): {
37
+ deprecated: import("react-desc").PropTypesDescValidator;
38
+ };
39
+ isRequired: import("react-desc").PropTypesDescValidator;
40
+ };
20
41
  /**
21
42
  * Whether the radio group is disabled or not
22
43
  */
23
- disabled: any;
24
- labelProps: any;
44
+ disabled: {
45
+ defaultValue<T = unknown>(arg: T): {
46
+ deprecated: import("react-desc").PropTypesDescValidator;
47
+ };
48
+ isRequired: import("react-desc").PropTypesDescValidator;
49
+ };
50
+ labelProps: {
51
+ defaultValue<T = unknown>(arg: T): {
52
+ deprecated: import("react-desc").PropTypesDescValidator;
53
+ };
54
+ isRequired: import("react-desc").PropTypesDescValidator;
55
+ };
25
56
  };
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSSearchBox: {
3
4
  ({ className, clearable, containerProps, disableButton, disabled, innerRef, onBlur, onChange, onKeyUp, onSearch, onClearButtonClick, placeholder, property, readOnly, searchOnEnter, onSearchButtonClick, showIcon, style, value, }: {
@@ -22,26 +23,126 @@ declare const DSSearchBox: {
22
23
  value: any;
23
24
  }): JSX.Element;
24
25
  propTypes: {
25
- containerProps: any;
26
- className: any;
27
- innerRef: any;
28
- style: any;
29
- property: any;
30
- placeholder: any;
31
- searchOnEnter: any;
32
- clearOnSearch: any;
33
- onClearButtonClick: any;
34
- onKeyUp: any;
35
- onSearch: any;
36
- onSearchButtonClick: any;
37
- onChange: any;
38
- onBlur: any;
39
- value: any;
40
- showIcon: any;
41
- disabled: any;
42
- disableButton: any;
43
- readOnly: any;
44
- clearable: any;
26
+ containerProps: {
27
+ defaultValue<T = unknown>(arg: T): {
28
+ deprecated: import("react-desc").PropTypesDescValidator;
29
+ };
30
+ isRequired: import("react-desc").PropTypesDescValidator;
31
+ };
32
+ className: {
33
+ defaultValue<T = unknown>(arg: T): {
34
+ deprecated: import("react-desc").PropTypesDescValidator;
35
+ };
36
+ isRequired: import("react-desc").PropTypesDescValidator;
37
+ };
38
+ innerRef: {
39
+ defaultValue<T = unknown>(arg: T): {
40
+ deprecated: import("react-desc").PropTypesDescValidator;
41
+ };
42
+ isRequired: import("react-desc").PropTypesDescValidator;
43
+ };
44
+ style: {
45
+ defaultValue<T = unknown>(arg: T): {
46
+ deprecated: import("react-desc").PropTypesDescValidator;
47
+ };
48
+ isRequired: import("react-desc").PropTypesDescValidator;
49
+ };
50
+ property: {
51
+ defaultValue<T = unknown>(arg: T): {
52
+ deprecated: import("react-desc").PropTypesDescValidator;
53
+ };
54
+ isRequired: import("react-desc").PropTypesDescValidator;
55
+ };
56
+ placeholder: {
57
+ defaultValue<T = unknown>(arg: T): {
58
+ deprecated: import("react-desc").PropTypesDescValidator;
59
+ };
60
+ isRequired: import("react-desc").PropTypesDescValidator;
61
+ };
62
+ searchOnEnter: {
63
+ defaultValue<T = unknown>(arg: T): {
64
+ deprecated: import("react-desc").PropTypesDescValidator;
65
+ };
66
+ isRequired: import("react-desc").PropTypesDescValidator;
67
+ };
68
+ clearOnSearch: {
69
+ defaultValue<T = unknown>(arg: T): {
70
+ deprecated: import("react-desc").PropTypesDescValidator;
71
+ };
72
+ isRequired: import("react-desc").PropTypesDescValidator;
73
+ };
74
+ onClearButtonClick: {
75
+ defaultValue<T = unknown>(arg: T): {
76
+ deprecated: import("react-desc").PropTypesDescValidator;
77
+ };
78
+ isRequired: import("react-desc").PropTypesDescValidator;
79
+ };
80
+ onKeyUp: {
81
+ defaultValue<T = unknown>(arg: T): {
82
+ deprecated: import("react-desc").PropTypesDescValidator;
83
+ };
84
+ isRequired: import("react-desc").PropTypesDescValidator;
85
+ };
86
+ onSearch: {
87
+ defaultValue<T = unknown>(arg: T): {
88
+ deprecated: import("react-desc").PropTypesDescValidator;
89
+ };
90
+ isRequired: import("react-desc").PropTypesDescValidator;
91
+ };
92
+ onSearchButtonClick: {
93
+ defaultValue<T = unknown>(arg: T): {
94
+ deprecated: import("react-desc").PropTypesDescValidator;
95
+ };
96
+ isRequired: import("react-desc").PropTypesDescValidator;
97
+ };
98
+ onChange: {
99
+ defaultValue<T = unknown>(arg: T): {
100
+ deprecated: import("react-desc").PropTypesDescValidator;
101
+ };
102
+ isRequired: import("react-desc").PropTypesDescValidator;
103
+ };
104
+ onBlur: {
105
+ defaultValue<T = unknown>(arg: T): {
106
+ deprecated: import("react-desc").PropTypesDescValidator;
107
+ };
108
+ isRequired: import("react-desc").PropTypesDescValidator;
109
+ };
110
+ value: {
111
+ defaultValue<T = unknown>(arg: T): {
112
+ deprecated: import("react-desc").PropTypesDescValidator;
113
+ };
114
+ isRequired: import("react-desc").PropTypesDescValidator;
115
+ };
116
+ showIcon: {
117
+ defaultValue<T = unknown>(arg: T): {
118
+ deprecated: import("react-desc").PropTypesDescValidator;
119
+ };
120
+ isRequired: import("react-desc").PropTypesDescValidator;
121
+ };
122
+ disabled: {
123
+ defaultValue<T = unknown>(arg: T): {
124
+ deprecated: import("react-desc").PropTypesDescValidator;
125
+ };
126
+ isRequired: import("react-desc").PropTypesDescValidator;
127
+ };
128
+ disableButton: {
129
+ defaultValue<T = unknown>(arg: T): {
130
+ deprecated: import("react-desc").PropTypesDescValidator;
131
+ };
132
+ isRequired: import("react-desc").PropTypesDescValidator;
133
+ };
134
+ readOnly: {
135
+ defaultValue<T = unknown>(arg: T): {
136
+ deprecated: import("react-desc").PropTypesDescValidator;
137
+ };
138
+ isRequired: import("react-desc").PropTypesDescValidator;
139
+ };
140
+ clearable: {
141
+ defaultValue<T = unknown>(arg: T): {
142
+ deprecated: import("react-desc").PropTypesDescValidator;
143
+ };
144
+ isRequired: import("react-desc").PropTypesDescValidator;
145
+ };
45
146
  };
46
147
  defaultProps: {
47
148
  className: string;
@@ -66,6 +167,30 @@ declare const DSSearchBox: {
66
167
  value: undefined;
67
168
  };
68
169
  };
69
- declare const SearchBoxWithSchema: any;
170
+ declare const SearchBoxWithSchema: {
171
+ (props?: {
172
+ className: any;
173
+ clearable: any;
174
+ containerProps: any;
175
+ disableButton: any;
176
+ disabled: any;
177
+ innerRef: any;
178
+ onBlur: any;
179
+ onChange: any;
180
+ onKeyUp: any;
181
+ onSearch: any;
182
+ onClearButtonClick: any;
183
+ placeholder: any;
184
+ property: any;
185
+ readOnly: any;
186
+ searchOnEnter: any;
187
+ onSearchButtonClick: any;
188
+ showIcon: any;
189
+ style: any;
190
+ value: any;
191
+ } | undefined): JSX.Element;
192
+ propTypes: unknown;
193
+ toTypescript: () => import("react-desc").TypescriptSchema;
194
+ };
70
195
  export { SearchBoxWithSchema };
71
196
  export default DSSearchBox;
@@ -1,21 +1,36 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const NavSearchBox: {
3
4
  (props: any): JSX.Element;
4
5
  propTypes: {
5
6
  value: any;
6
7
  onChange: any;
7
- onBlur: any;
8
+ onBlur: {
9
+ defaultValue<T = unknown>(arg: T): {
10
+ deprecated: import("react-desc").PropTypesDescValidator;
11
+ };
12
+ isRequired: import("react-desc").PropTypesDescValidator;
13
+ };
8
14
  onNext: any;
9
15
  onPrevious: any;
10
16
  onClear: any;
11
17
  currentResultIndex: any;
12
18
  totalResults: any;
13
- placeholder: any;
19
+ placeholder: {
20
+ defaultValue<T = unknown>(arg: T): {
21
+ deprecated: import("react-desc").PropTypesDescValidator;
22
+ };
23
+ isRequired: import("react-desc").PropTypesDescValidator;
24
+ };
14
25
  };
15
26
  defaultProps: {
16
27
  placeholder: string;
17
28
  currentResultIndex: number;
18
29
  };
19
30
  };
20
- declare const DSNavSearchBoxWithSchema: any;
31
+ declare const DSNavSearchBoxWithSchema: {
32
+ (props?: any): JSX.Element;
33
+ propTypes: unknown;
34
+ toTypescript: () => import("react-desc").TypescriptSchema;
35
+ };
21
36
  export { NavSearchBox, DSNavSearchBoxWithSchema };
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const SButton: {
3
4
  ({ icon, disabled, onClick, dataTestid }: {
@@ -12,8 +13,18 @@ declare const SButton: {
12
13
  /** ds icon to render inside button */
13
14
  icon: any;
14
15
  /** disable button */
15
- disabled: any;
16
- dataTestid: any;
16
+ disabled: {
17
+ defaultValue<T = unknown>(arg: T): {
18
+ deprecated: import("react-desc").PropTypesDescValidator;
19
+ };
20
+ isRequired: import("react-desc").PropTypesDescValidator;
21
+ };
22
+ dataTestid: {
23
+ defaultValue<T = unknown>(arg: T): {
24
+ deprecated: import("react-desc").PropTypesDescValidator;
25
+ };
26
+ isRequired: import("react-desc").PropTypesDescValidator;
27
+ };
17
28
  };
18
29
  };
19
30
  export { SButton };