@elliemae/ds-form 2.0.0-rc.6 → 2.0.0

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 (108) hide show
  1. package/cjs/ComboBox/v1/DSComboBox.js +18 -22
  2. package/cjs/ComboBox/v1/withSelectStringValueConverter.js +3 -4
  3. package/cjs/ComboBox/v3/ComboBoxCTX.js +16 -17
  4. package/cjs/ComboBox/v3/config/useComboBox.js +6 -6
  5. package/cjs/ComboBox/v3/parts/container/Container.js +1 -1
  6. package/cjs/ComboBox/v3/parts/controls-input/ControlsInput.js +5 -3
  7. package/cjs/ComboBox/v3/parts/controls-input/useControlsInput.js +8 -8
  8. package/cjs/ComboBox/v3/parts/header-list/HeaderList.js +5 -3
  9. package/cjs/ComboBox/v3/parts/menu-list/MenuList.js +7 -8
  10. package/cjs/ComboBox/v3/parts/menu-list/styled.js +8 -4
  11. package/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js +10 -9
  12. package/cjs/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +5 -5
  13. package/cjs/ComboBox/v3/utils/hooks/useOnElementResize.js +4 -4
  14. package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +4 -7
  15. package/cjs/FormItem/ValidationFieldWrapper.js +2 -3
  16. package/cjs/Input/InputAddonWrapper.js +2 -3
  17. package/cjs/Input/InputImpl.js +16 -18
  18. package/cjs/InputGroup/AddonWrapper.js +4 -6
  19. package/cjs/InputMask/DSInputMaskDeprecated.js +10 -12
  20. package/cjs/SearchBox/NavSearchBox.js +5 -1
  21. package/cjs/SearchBox/withSearchable.js +3 -5
  22. package/cjs/Toggle/DSToggleImpl.js +28 -28
  23. package/esm/ComboBox/v1/DSComboBox.js +17 -21
  24. package/esm/ComboBox/v1/withSelectStringValueConverter.js +3 -4
  25. package/esm/ComboBox/v3/ComboBoxCTX.js +5 -6
  26. package/esm/ComboBox/v3/config/useComboBox.js +6 -6
  27. package/esm/ComboBox/v3/parts/container/Container.js +1 -1
  28. package/esm/ComboBox/v3/parts/controls-input/ControlsInput.js +5 -3
  29. package/esm/ComboBox/v3/parts/controls-input/useControlsInput.js +8 -8
  30. package/esm/ComboBox/v3/parts/header-list/HeaderList.js +5 -3
  31. package/esm/ComboBox/v3/parts/menu-list/MenuList.js +8 -9
  32. package/esm/ComboBox/v3/parts/menu-list/styled.js +8 -4
  33. package/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js +10 -9
  34. package/esm/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +5 -5
  35. package/esm/ComboBox/v3/utils/hooks/useOnElementResize.js +4 -4
  36. package/esm/FloatingLabelInput/FloatingLabelInputImpl.js +4 -7
  37. package/esm/FormItem/ValidationFieldWrapper.js +2 -3
  38. package/esm/Input/InputAddonWrapper.js +2 -3
  39. package/esm/Input/InputImpl.js +15 -17
  40. package/esm/InputGroup/AddonWrapper.js +5 -7
  41. package/esm/InputMask/DSInputMaskDeprecated.js +10 -12
  42. package/esm/SearchBox/NavSearchBox.js +5 -1
  43. package/esm/SearchBox/withSearchable.js +2 -4
  44. package/esm/Toggle/DSToggleImpl.js +28 -28
  45. package/package.json +31 -23
  46. package/types/Checkbox/DSCheckbox.d.ts +78 -13
  47. package/types/Checkbox/props.d.ts +58 -12
  48. package/types/CheckboxGroup/DSCheckboxGroup.d.ts +51 -7
  49. package/types/CheckboxGroup/props.d.ts +37 -6
  50. package/types/ComboBox/v2/Combobox.d.ts +56 -1
  51. package/types/ComboBox/v3/ComboBox.d.ts +54 -16
  52. package/types/ComboBox/v3/parts/controls-input/useControlsInput.d.ts +3 -3
  53. package/types/ComboBox/v3/parts/dropdown-indicator/styled.d.ts +1 -60
  54. package/types/ComboBox/v3/parts/header-list/styled.d.ts +4 -208
  55. package/types/ComboBox/v3/parts/menu-list/styled.d.ts +4 -3
  56. package/types/ComboBox/v3/parts/menu-list/useItemRenderer.d.ts +1 -1
  57. package/types/ComboBox/v3/propTypes.d.ts +49 -15
  58. package/types/ComboBox/v3/utils/hooks/useKeyboardNavigation.d.ts +4 -1
  59. package/types/ComboBox/v3/utils/listHelper.d.ts +1 -1
  60. package/types/DateInput/DSDateInput.d.ts +97 -16
  61. package/types/DateInput/props.d.ts +97 -16
  62. package/types/DateInputV2/components/DSDateInput.d.ts +72 -5
  63. package/types/DateInputV2/components/props.d.ts +61 -10
  64. package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +118 -20
  65. package/types/FormItem/DSFormItemLayout.d.ts +390 -60
  66. package/types/FormItem/Error/DSError.d.ts +21 -3
  67. package/types/FormItem/defaultProps.d.ts +118 -20
  68. package/types/FormItem/props.d.ts +229 -39
  69. package/types/InputGroup/DSInputGroup.d.ts +56 -8
  70. package/types/InputGroup/props.d.ts +43 -7
  71. package/types/InputMask/DSInputMask.d.ts +172 -30
  72. package/types/InputMask/mask_types/DateInputMask.d.ts +34 -33
  73. package/types/InputMask/mask_types/DateTimeInputMask.d.ts +34 -33
  74. package/types/InputMask/mask_types/DictionaryInputMask.d.ts +37 -36
  75. package/types/InputMask/mask_types/NumberInputMask.d.ts +46 -45
  76. package/types/InputMask/mask_types/PhoneInputMask.d.ts +34 -33
  77. package/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +34 -33
  78. package/types/InputMask/mask_types/SsnInputMask.d.ts +34 -33
  79. package/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +34 -33
  80. package/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +34 -33
  81. package/types/InputMask/props.d.ts +172 -30
  82. package/types/InputProtected/DSInputProtected.d.ts +56 -7
  83. package/types/InputProtected/props.d.ts +43 -8
  84. package/types/LargeInputText/DSLargeInputText.d.ts +163 -27
  85. package/types/LargeInputText/props.d.ts +163 -27
  86. package/types/MenuItem/components/MenuItem/index.d.ts +12 -3
  87. package/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +12 -3
  88. package/types/MenuItem/components/Section/index.d.ts +4 -1
  89. package/types/MenuItem/components/Section/props.d.ts +4 -1
  90. package/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +7 -2
  91. package/types/MenuItem/components/SubmenuItem/index.d.ts +12 -3
  92. package/types/MenuItem/props.d.ts +7 -2
  93. package/types/Radio/DSRadio.d.ts +79 -13
  94. package/types/RadioGroup/DSRadioGroup.d.ts +51 -7
  95. package/types/RadioGroup/props.d.ts +37 -6
  96. package/types/SearchBox/DSSearchBox.d.ts +146 -21
  97. package/types/SearchBox/NavSearchBox.d.ts +18 -3
  98. package/types/SearchBox/SButton.d.ts +13 -2
  99. package/types/SearchBox/index.d.ts +1 -1
  100. package/types/SearchBox/props.d.ts +133 -22
  101. package/types/SearchBox/styled.d.ts +1 -49
  102. package/types/TextBox/DSTextBox.d.ts +146 -21
  103. package/types/TimeInput/DSTimeInput.d.ts +83 -12
  104. package/types/TimeInput/utils.d.ts +1 -1
  105. package/types/Toggle/DSToggle.d.ts +84 -12
  106. package/cjs/ComboBox/v3/utils/hooks/useOnWindowResize.js +0 -31
  107. package/esm/ComboBox/v3/utils/hooks/useOnWindowResize.js +0 -27
  108. package/types/ComboBox/v3/utils/hooks/useOnWindowResize.d.ts +0 -5
@@ -1,44 +1,145 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  export declare const searchBoxProps: {
2
3
  /** Set of Properties attached to the main container */
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
  /** html class attribute */
5
- className: any;
11
+ className: {
12
+ defaultValue<T = unknown>(arg: T): {
13
+ deprecated: import("react-desc").PropTypesDescValidator;
14
+ };
15
+ isRequired: import("react-desc").PropTypesDescValidator;
16
+ };
6
17
  /** ref to the components container */
7
- innerRef: any;
18
+ innerRef: {
19
+ defaultValue<T = unknown>(arg: T): {
20
+ deprecated: import("react-desc").PropTypesDescValidator;
21
+ };
22
+ isRequired: import("react-desc").PropTypesDescValidator;
23
+ };
8
24
  /** Set style to the search box */
9
- style: any;
25
+ style: {
26
+ defaultValue<T = unknown>(arg: T): {
27
+ deprecated: import("react-desc").PropTypesDescValidator;
28
+ };
29
+ isRequired: import("react-desc").PropTypesDescValidator;
30
+ };
10
31
  /** search property */
11
- property: any;
32
+ property: {
33
+ defaultValue<T = unknown>(arg: T): {
34
+ deprecated: import("react-desc").PropTypesDescValidator;
35
+ };
36
+ isRequired: import("react-desc").PropTypesDescValidator;
37
+ };
12
38
  /** Placeholder for the search box */
13
- placeholder: any;
39
+ placeholder: {
40
+ defaultValue<T = unknown>(arg: T): {
41
+ deprecated: import("react-desc").PropTypesDescValidator;
42
+ };
43
+ isRequired: import("react-desc").PropTypesDescValidator;
44
+ };
14
45
  /** Whether to trigger the search once the enter is pressed */
15
- searchOnEnter: any;
46
+ searchOnEnter: {
47
+ defaultValue<T = unknown>(arg: T): {
48
+ deprecated: import("react-desc").PropTypesDescValidator;
49
+ };
50
+ isRequired: import("react-desc").PropTypesDescValidator;
51
+ };
16
52
  /** Whether to clear the input on search */
17
- clearOnSearch: any;
53
+ clearOnSearch: {
54
+ defaultValue<T = unknown>(arg: T): {
55
+ deprecated: import("react-desc").PropTypesDescValidator;
56
+ };
57
+ isRequired: import("react-desc").PropTypesDescValidator;
58
+ };
18
59
  /** function triggered once in the clear button is clicked */
19
- onClearButtonClick: any;
60
+ onClearButtonClick: {
61
+ defaultValue<T = unknown>(arg: T): {
62
+ deprecated: import("react-desc").PropTypesDescValidator;
63
+ };
64
+ isRequired: import("react-desc").PropTypesDescValidator;
65
+ };
20
66
  /** function triggered once in the search box a keyboard key is released */
21
- onKeyUp: any;
67
+ onKeyUp: {
68
+ defaultValue<T = unknown>(arg: T): {
69
+ deprecated: import("react-desc").PropTypesDescValidator;
70
+ };
71
+ isRequired: import("react-desc").PropTypesDescValidator;
72
+ };
22
73
  /** function triggered once the search action begins (search icon click/ enter keypress) */
23
- onSearch: any;
74
+ onSearch: {
75
+ defaultValue<T = unknown>(arg: T): {
76
+ deprecated: import("react-desc").PropTypesDescValidator;
77
+ };
78
+ isRequired: import("react-desc").PropTypesDescValidator;
79
+ };
24
80
  /** function triggered once the search icon is clicked */
25
- onSearchButtonClick: any;
81
+ onSearchButtonClick: {
82
+ defaultValue<T = unknown>(arg: T): {
83
+ deprecated: import("react-desc").PropTypesDescValidator;
84
+ };
85
+ isRequired: import("react-desc").PropTypesDescValidator;
86
+ };
26
87
  /** function that is triggered on change */
27
- onChange: any;
88
+ onChange: {
89
+ defaultValue<T = unknown>(arg: T): {
90
+ deprecated: import("react-desc").PropTypesDescValidator;
91
+ };
92
+ isRequired: import("react-desc").PropTypesDescValidator;
93
+ };
28
94
  /** Function that is triggered on blur */
29
- onBlur: any;
95
+ onBlur: {
96
+ defaultValue<T = unknown>(arg: T): {
97
+ deprecated: import("react-desc").PropTypesDescValidator;
98
+ };
99
+ isRequired: import("react-desc").PropTypesDescValidator;
100
+ };
30
101
  /** searchbox input value */
31
- value: any;
102
+ value: {
103
+ defaultValue<T = unknown>(arg: T): {
104
+ deprecated: import("react-desc").PropTypesDescValidator;
105
+ };
106
+ isRequired: import("react-desc").PropTypesDescValidator;
107
+ };
32
108
  /** Whether to show an icon or not */
33
- showIcon: any;
109
+ showIcon: {
110
+ defaultValue<T = unknown>(arg: T): {
111
+ deprecated: import("react-desc").PropTypesDescValidator;
112
+ };
113
+ isRequired: import("react-desc").PropTypesDescValidator;
114
+ };
34
115
  /** Disables the search input and button */
35
- disabled: any;
116
+ disabled: {
117
+ defaultValue<T = unknown>(arg: T): {
118
+ deprecated: import("react-desc").PropTypesDescValidator;
119
+ };
120
+ isRequired: import("react-desc").PropTypesDescValidator;
121
+ };
36
122
  /** Disables the search button */
37
- disableButton: any;
123
+ disableButton: {
124
+ defaultValue<T = unknown>(arg: T): {
125
+ deprecated: import("react-desc").PropTypesDescValidator;
126
+ };
127
+ isRequired: import("react-desc").PropTypesDescValidator;
128
+ };
38
129
  /** whether the input is read only or not */
39
- readOnly: any;
130
+ readOnly: {
131
+ defaultValue<T = unknown>(arg: T): {
132
+ deprecated: import("react-desc").PropTypesDescValidator;
133
+ };
134
+ isRequired: import("react-desc").PropTypesDescValidator;
135
+ };
40
136
  /** Show clearable button */
41
- clearable: any;
137
+ clearable: {
138
+ defaultValue<T = unknown>(arg: T): {
139
+ deprecated: import("react-desc").PropTypesDescValidator;
140
+ };
141
+ isRequired: import("react-desc").PropTypesDescValidator;
142
+ };
42
143
  };
43
144
  export declare const navSearchBoxProps: {
44
145
  /** searchbox input value */
@@ -46,7 +147,12 @@ export declare const navSearchBoxProps: {
46
147
  /** function that is triggered on change */
47
148
  onChange: any;
48
149
  /** Function that is triggered on blur */
49
- onBlur: any;
150
+ onBlur: {
151
+ defaultValue<T = unknown>(arg: T): {
152
+ deprecated: import("react-desc").PropTypesDescValidator;
153
+ };
154
+ isRequired: import("react-desc").PropTypesDescValidator;
155
+ };
50
156
  /** triggered on next chevron click */
51
157
  onNext: any;
52
158
  /** triggered on prev chevron click */
@@ -58,5 +164,10 @@ export declare const navSearchBoxProps: {
58
164
  /** total items to navigate */
59
165
  totalResults: any;
60
166
  /** Placeholder for the search box */
61
- placeholder: any;
167
+ placeholder: {
168
+ defaultValue<T = unknown>(arg: T): {
169
+ deprecated: import("react-desc").PropTypesDescValidator;
170
+ };
171
+ isRequired: import("react-desc").PropTypesDescValidator;
172
+ };
62
173
  };
@@ -1,49 +1 @@
1
- /// <reference types="react" />
2
- export declare const SearchBoxTextBox: import("styled-components").StyledComponent<{
3
- ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, id, ...otherProps }: {
4
- [x: string]: any;
5
- containerProps?: {} | undefined;
6
- autoFocus?: boolean | undefined;
7
- disabled?: boolean | undefined;
8
- maxLength?: number | undefined;
9
- minLength?: number | undefined;
10
- fluidWidth?: boolean | undefined;
11
- placeholder: any;
12
- value?: string | undefined;
13
- hasError?: boolean | undefined;
14
- readOnly?: boolean | undefined;
15
- innerRef?: null | undefined;
16
- type?: string | undefined;
17
- min?: undefined;
18
- max?: undefined;
19
- clearable?: boolean | undefined;
20
- leftComponent?: null | undefined;
21
- rightComponent?: null | undefined;
22
- required?: boolean | undefined;
23
- variant: any;
24
- disableTooltip: any;
25
- id: any;
26
- }): JSX.Element;
27
- propTypes: {
28
- containerProps: any;
29
- autoFocus: any;
30
- disabled: any;
31
- maxLength: any;
32
- minLength: any;
33
- fluidWidth: any;
34
- placeholder: any;
35
- value: any;
36
- hasError: any;
37
- readOnly: any;
38
- min: any;
39
- max: any;
40
- clearable: any;
41
- leftComponent: any;
42
- rightComponent: any;
43
- required: any;
44
- variant: any;
45
- type: any;
46
- innerRef: any;
47
- disableTooltip: any;
48
- };
49
- }, import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const SearchBoxTextBox: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, any, any>;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSTextBox: {
3
4
  ({ containerProps, autoFocus, disabled, maxLength, minLength, fluidWidth, placeholder, value, hasError, readOnly, innerRef, type, min, max, clearable, leftComponent, rightComponent, required, variant, disableTooltip, id, ...otherProps }: {
@@ -26,63 +27,143 @@ declare const DSTextBox: {
26
27
  }): JSX.Element;
27
28
  propTypes: {
28
29
  /** inject props at textbox wrapper */
29
- containerProps: any;
30
+ containerProps: {
31
+ defaultValue<T = unknown>(arg: T): {
32
+ deprecated: import("react-desc").PropTypesDescValidator;
33
+ };
34
+ isRequired: import("react-desc").PropTypesDescValidator;
35
+ };
30
36
  /**
31
37
  * Whether the text box uses auto focus or not
32
38
  */
33
- autoFocus: any;
39
+ autoFocus: {
40
+ defaultValue<T = unknown>(arg: T): {
41
+ deprecated: import("react-desc").PropTypesDescValidator;
42
+ };
43
+ isRequired: import("react-desc").PropTypesDescValidator;
44
+ };
34
45
  /**
35
46
  * Whether the text box is disabled or not
36
47
  */
37
- disabled: any;
48
+ disabled: {
49
+ defaultValue<T = unknown>(arg: T): {
50
+ deprecated: import("react-desc").PropTypesDescValidator;
51
+ };
52
+ isRequired: import("react-desc").PropTypesDescValidator;
53
+ };
38
54
  /**
39
55
  * Max length for the text box
40
56
  */
41
- maxLength: any;
57
+ maxLength: {
58
+ defaultValue<T = unknown>(arg: T): {
59
+ deprecated: import("react-desc").PropTypesDescValidator;
60
+ };
61
+ isRequired: import("react-desc").PropTypesDescValidator;
62
+ };
42
63
  /**
43
64
  * Min length for the text box
44
65
  */
45
- minLength: any;
66
+ minLength: {
67
+ defaultValue<T = unknown>(arg: T): {
68
+ deprecated: import("react-desc").PropTypesDescValidator;
69
+ };
70
+ isRequired: import("react-desc").PropTypesDescValidator;
71
+ };
46
72
  /**
47
73
  * Make the content of the text box fit the container or not
48
74
  */
49
- fluidWidth: any;
75
+ fluidWidth: {
76
+ defaultValue<T = unknown>(arg: T): {
77
+ deprecated: import("react-desc").PropTypesDescValidator;
78
+ };
79
+ isRequired: import("react-desc").PropTypesDescValidator;
80
+ };
50
81
  /**
51
82
  * Placeholder for the text box
52
83
  */
53
- placeholder: any;
84
+ placeholder: {
85
+ defaultValue<T = unknown>(arg: T): {
86
+ deprecated: import("react-desc").PropTypesDescValidator;
87
+ };
88
+ isRequired: import("react-desc").PropTypesDescValidator;
89
+ };
54
90
  /**
55
91
  * Default value once the component is initialized
56
92
  */
57
- value: any;
93
+ value: {
94
+ defaultValue<T = unknown>(arg: T): {
95
+ deprecated: import("react-desc").PropTypesDescValidator;
96
+ };
97
+ isRequired: import("react-desc").PropTypesDescValidator;
98
+ };
58
99
  /**
59
100
  * Whether the text box has error or not
60
101
  */
61
- hasError: any;
102
+ hasError: {
103
+ defaultValue<T = unknown>(arg: T): {
104
+ deprecated: import("react-desc").PropTypesDescValidator;
105
+ };
106
+ isRequired: import("react-desc").PropTypesDescValidator;
107
+ };
62
108
  /**
63
109
  * Whether the text box is read only or not
64
110
  */
65
- readOnly: any;
111
+ readOnly: {
112
+ defaultValue<T = unknown>(arg: T): {
113
+ deprecated: import("react-desc").PropTypesDescValidator;
114
+ };
115
+ isRequired: import("react-desc").PropTypesDescValidator;
116
+ };
66
117
  /** html min prop for input */
67
- min: any;
118
+ min: {
119
+ defaultValue<T = unknown>(arg: T): {
120
+ deprecated: import("react-desc").PropTypesDescValidator;
121
+ };
122
+ isRequired: import("react-desc").PropTypesDescValidator;
123
+ };
68
124
  /** html max prop for input */
69
- max: any;
125
+ max: {
126
+ defaultValue<T = unknown>(arg: T): {
127
+ deprecated: import("react-desc").PropTypesDescValidator;
128
+ };
129
+ isRequired: import("react-desc").PropTypesDescValidator;
130
+ };
70
131
  /**
71
132
  * Whether the text box is clearable or not
72
133
  */
73
- clearable: any;
134
+ clearable: {
135
+ defaultValue<T = unknown>(arg: T): {
136
+ deprecated: import("react-desc").PropTypesDescValidator;
137
+ };
138
+ isRequired: import("react-desc").PropTypesDescValidator;
139
+ };
74
140
  /**
75
141
  * Component to be added at the left side of the text box
76
142
  */
77
- leftComponent: any;
143
+ leftComponent: {
144
+ defaultValue<T = unknown>(arg: T): {
145
+ deprecated: import("react-desc").PropTypesDescValidator;
146
+ };
147
+ isRequired: import("react-desc").PropTypesDescValidator;
148
+ };
78
149
  /**
79
150
  * Component to be added at the right side of the text box
80
151
  */
81
- rightComponent: any;
152
+ rightComponent: {
153
+ defaultValue<T = unknown>(arg: T): {
154
+ deprecated: import("react-desc").PropTypesDescValidator;
155
+ };
156
+ isRequired: import("react-desc").PropTypesDescValidator;
157
+ };
82
158
  /**
83
159
  * Whether the text box is required or not
84
160
  */
85
- required: any;
161
+ required: {
162
+ defaultValue<T = unknown>(arg: T): {
163
+ deprecated: import("react-desc").PropTypesDescValidator;
164
+ };
165
+ isRequired: import("react-desc").PropTypesDescValidator;
166
+ };
86
167
  /**
87
168
  * [
88
169
  * 'variant-default',
@@ -91,15 +172,59 @@ declare const DSTextBox: {
91
172
  * 'variant-disabled',
92
173
  * ]
93
174
  */
94
- variant: any;
175
+ variant: {
176
+ defaultValue<T = unknown>(arg: T): {
177
+ deprecated: import("react-desc").PropTypesDescValidator;
178
+ };
179
+ isRequired: import("react-desc").PropTypesDescValidator;
180
+ };
95
181
  /** html input type */
96
- type: any;
182
+ type: {
183
+ defaultValue<T = unknown>(arg: T): {
184
+ deprecated: import("react-desc").PropTypesDescValidator;
185
+ };
186
+ isRequired: import("react-desc").PropTypesDescValidator;
187
+ };
97
188
  /** Internal ref */
98
- innerRef: any;
189
+ innerRef: {
190
+ defaultValue<T = unknown>(arg: T): {
191
+ deprecated: import("react-desc").PropTypesDescValidator;
192
+ };
193
+ isRequired: import("react-desc").PropTypesDescValidator;
194
+ };
99
195
  /** disableTooltip */
100
- disableTooltip: any;
196
+ disableTooltip: {
197
+ deprecated: import("react-desc").PropTypesDescValidator;
198
+ };
101
199
  };
102
200
  };
103
- declare const DSTextBoxWithSchema: any;
201
+ declare const DSTextBoxWithSchema: {
202
+ (props?: {
203
+ [x: string]: any;
204
+ containerProps?: {} | undefined;
205
+ autoFocus?: boolean | undefined;
206
+ disabled?: boolean | undefined;
207
+ maxLength?: number | undefined;
208
+ minLength?: number | undefined;
209
+ fluidWidth?: boolean | undefined;
210
+ placeholder: any;
211
+ value?: string | undefined;
212
+ hasError?: boolean | undefined;
213
+ readOnly?: boolean | undefined;
214
+ innerRef?: null | undefined;
215
+ type?: string | undefined;
216
+ min?: undefined;
217
+ max?: undefined;
218
+ clearable?: boolean | undefined;
219
+ leftComponent?: null | undefined;
220
+ rightComponent?: null | undefined;
221
+ required?: boolean | undefined;
222
+ variant: any;
223
+ disableTooltip: any;
224
+ id: any;
225
+ } | undefined): JSX.Element;
226
+ propTypes: unknown;
227
+ toTypescript: () => import("react-desc").TypescriptSchema;
228
+ };
104
229
  export default DSTextBox;
105
230
  export { DSTextBoxWithSchema };
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  import TimeInputImpl from './TimeInputImpl';
3
4
  declare const DSTimeInput: {
@@ -20,41 +21,111 @@ declare const DSTimeInput: {
20
21
  };
21
22
  propTypes: {
22
23
  /** Injected props to wrapper element of component */
23
- containerProps: any;
24
+ containerProps: {
25
+ defaultValue<T = unknown>(arg: T): {
26
+ deprecated: import("react-desc").PropTypesDescValidator;
27
+ };
28
+ isRequired: import("react-desc").PropTypesDescValidator;
29
+ };
24
30
  /**
25
31
  * Allows a function that is triggered once the time input changes
26
32
  */
27
- onChange: any;
33
+ onChange: {
34
+ defaultValue<T = unknown>(arg: T): {
35
+ deprecated: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ isRequired: import("react-desc").PropTypesDescValidator;
38
+ };
28
39
  /** a11y aria label */
29
- 'aria-label': any;
40
+ 'aria-label': {
41
+ defaultValue<T = unknown>(arg: T): {
42
+ deprecated: import("react-desc").PropTypesDescValidator;
43
+ };
44
+ isRequired: import("react-desc").PropTypesDescValidator;
45
+ };
30
46
  /** style object for time input wrapper */
31
- style: any;
47
+ style: {
48
+ defaultValue<T = unknown>(arg: T): {
49
+ deprecated: import("react-desc").PropTypesDescValidator;
50
+ };
51
+ isRequired: import("react-desc").PropTypesDescValidator;
52
+ };
32
53
  /** inner ref for time inpot wrapper */
33
- innerRef: any;
54
+ innerRef: {
55
+ defaultValue<T = unknown>(arg: T): {
56
+ deprecated: import("react-desc").PropTypesDescValidator;
57
+ };
58
+ isRequired: import("react-desc").PropTypesDescValidator;
59
+ };
34
60
  /** class for time input */
35
- className: any;
61
+ className: {
62
+ defaultValue<T = unknown>(arg: T): {
63
+ deprecated: import("react-desc").PropTypesDescValidator;
64
+ };
65
+ isRequired: import("react-desc").PropTypesDescValidator;
66
+ };
36
67
  /**
37
68
  * Valid time format
38
69
  */
39
- format: any;
70
+ format: {
71
+ defaultValue<T = unknown>(arg: T): {
72
+ deprecated: import("react-desc").PropTypesDescValidator;
73
+ };
74
+ isRequired: import("react-desc").PropTypesDescValidator;
75
+ };
40
76
  /**
41
77
  * Default value once the component is initialized
42
78
  */
43
- value: any;
79
+ value: {
80
+ defaultValue<T = unknown>(arg: T): {
81
+ deprecated: import("react-desc").PropTypesDescValidator;
82
+ };
83
+ isRequired: import("react-desc").PropTypesDescValidator;
84
+ };
44
85
  /**
45
86
  * Whether the time input is clearable or not
46
87
  */
47
- clearable: any;
88
+ clearable: {
89
+ defaultValue<T = unknown>(arg: T): {
90
+ deprecated: import("react-desc").PropTypesDescValidator;
91
+ };
92
+ isRequired: import("react-desc").PropTypesDescValidator;
93
+ };
48
94
  /**
49
95
  * Whether the time input is disabled or not
50
96
  */
51
- disabled: any;
97
+ disabled: {
98
+ defaultValue<T = unknown>(arg: T): {
99
+ deprecated: import("react-desc").PropTypesDescValidator;
100
+ };
101
+ isRequired: import("react-desc").PropTypesDescValidator;
102
+ };
52
103
  /**
53
104
  * Aria label
54
105
  */
55
- ariaLabel: any;
106
+ ariaLabel: {
107
+ defaultValue<T = unknown>(arg: T): {
108
+ deprecated: import("react-desc").PropTypesDescValidator;
109
+ };
110
+ isRequired: import("react-desc").PropTypesDescValidator;
111
+ };
56
112
  };
57
113
  };
58
- declare const DSTimeInputWithSchema: any;
114
+ declare const DSTimeInputWithSchema: {
115
+ (props?: {
116
+ containerProps?: {} | undefined;
117
+ innerRef: any;
118
+ className?: string | undefined;
119
+ style?: {} | undefined;
120
+ onChange?: (() => null) | undefined;
121
+ format: any;
122
+ value?: string | undefined;
123
+ clearable?: boolean | undefined;
124
+ disabled?: boolean | undefined;
125
+ ariaLabel?: string | undefined;
126
+ } | undefined): JSX.Element;
127
+ propTypes: unknown;
128
+ toTypescript: () => import("react-desc").TypescriptSchema;
129
+ };
59
130
  export { TimeInputImpl, DSTimeInputWithSchema };
60
131
  export default DSTimeInput;
@@ -1,6 +1,6 @@
1
1
  export declare const isArrowIncrementDecrement: (key: any) => boolean;
2
2
  export declare const setNativeValue: (element: any, value: any) => void;
3
- export declare const placeholderFormat: (position: any, format: any, use12Hours: any) => "a" | "h" | "m" | "s" | "A" | "mm" | "HH" | "hh" | "H" | "ss" | undefined;
3
+ export declare const placeholderFormat: (position: any, format: any, use12Hours: any) => "a" | "h" | "m" | "A" | "s" | "mm" | "HH" | "hh" | "H" | "ss" | undefined;
4
4
  export declare const formatMinutes: (format: any, value: any) => string;
5
5
  export declare const formatSeconds: (format: any, value: any) => string;
6
6
  export declare const formatHour: (format: any, value: any) => string;