@elliemae/ds-form 2.0.0-rc.1 → 2.0.0-rc.13
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/cjs/ComboBox/v1/DSComboBox.js +18 -22
- package/cjs/ComboBox/v1/withSelectStringValueConverter.js +3 -4
- package/cjs/ComboBox/v3/ComboBox.js +1 -2
- package/cjs/ComboBox/v3/ComboBoxCTX.js +22 -15
- package/cjs/ComboBox/v3/ComboboxDataTestids.js +3 -1
- package/cjs/ComboBox/v3/config/useComboBox.js +65 -21
- package/cjs/ComboBox/v3/parts/container/Container.js +28 -18
- package/cjs/ComboBox/v3/parts/controls/Controls.js +3 -1
- package/cjs/ComboBox/v3/parts/controls/styled.js +30 -8
- package/cjs/ComboBox/v3/parts/controls-input/ControlsInput.js +5 -3
- package/cjs/ComboBox/v3/parts/controls-input/styled.js +1 -1
- package/cjs/ComboBox/v3/parts/controls-input/useControlsInput.js +19 -21
- package/cjs/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js +0 -3
- package/cjs/ComboBox/v3/parts/dropdown-indicator/styled.js +1 -1
- package/cjs/ComboBox/v3/parts/header-list/HeaderList.js +61 -37
- package/cjs/ComboBox/v3/parts/header-list/styled.js +31 -8
- package/cjs/ComboBox/v3/parts/header-list/useHeaderListHandlers.js +73 -0
- package/cjs/ComboBox/v3/parts/menu-list/MenuList.js +32 -18
- package/cjs/ComboBox/v3/parts/menu-list/styled.js +17 -2
- package/cjs/ComboBox/v3/parts/menu-list/useItemRenderer.js +105 -0
- package/cjs/ComboBox/v3/parts/menu-list/useMenuList.js +42 -85
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +26 -35
- package/cjs/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js +10 -6
- package/cjs/ComboBox/v3/propTypes.js +15 -11
- package/cjs/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +28 -30
- package/cjs/ComboBox/v3/utils/hooks/useOnElementResize.js +4 -4
- package/cjs/FloatingLabelInput/FloatingLabelInputImpl.js +4 -7
- package/cjs/FormItem/ValidationFieldWrapper.js +2 -3
- package/cjs/Input/InputAddonWrapper.js +2 -3
- package/cjs/Input/InputImpl.js +16 -18
- package/cjs/InputGroup/AddonWrapper.js +4 -6
- package/cjs/InputMask/DSInputMaskDeprecated.js +10 -12
- package/cjs/MenuItem/components/MenuItem/index.js +1 -1
- package/cjs/MenuItem/components/MultiMenuItem/MultiMenuItem.js +1 -0
- package/cjs/MenuItem/components/Section/index.js +1 -1
- package/cjs/MenuItem/components/Section/styled.js +1 -1
- package/cjs/MenuItem/components/Separator/styled.js +2 -2
- package/cjs/MenuItem/components/SingleMenuItem/SingleMenuItem.js +6 -6
- package/cjs/MenuItem/components/SubmenuItem/index.js +1 -1
- package/cjs/MenuItem/components/styled.js +12 -4
- package/cjs/SearchBox/withSearchable.js +3 -5
- package/cjs/Toggle/DSToggleImpl.js +28 -28
- package/esm/ComboBox/v1/DSComboBox.js +17 -21
- package/esm/ComboBox/v1/withSelectStringValueConverter.js +3 -4
- package/esm/ComboBox/v3/ComboBox.js +1 -2
- package/esm/ComboBox/v3/ComboBoxCTX.js +17 -10
- package/esm/ComboBox/v3/ComboboxDataTestids.js +3 -1
- package/esm/ComboBox/v3/config/useComboBox.js +62 -22
- package/esm/ComboBox/v3/parts/container/Container.js +29 -19
- package/esm/ComboBox/v3/parts/controls/Controls.js +3 -1
- package/esm/ComboBox/v3/parts/controls/styled.js +30 -9
- package/esm/ComboBox/v3/parts/controls-input/ControlsInput.js +5 -3
- package/esm/ComboBox/v3/parts/controls-input/styled.js +1 -1
- package/esm/ComboBox/v3/parts/controls-input/useControlsInput.js +20 -22
- package/esm/ComboBox/v3/parts/dropdown-indicator/DropdownIndicator.js +0 -3
- package/esm/ComboBox/v3/parts/dropdown-indicator/styled.js +1 -1
- package/esm/ComboBox/v3/parts/header-list/HeaderList.js +63 -39
- package/esm/ComboBox/v3/parts/header-list/styled.js +28 -8
- package/esm/ComboBox/v3/parts/header-list/useHeaderListHandlers.js +69 -0
- package/esm/ComboBox/v3/parts/menu-list/MenuList.js +35 -21
- package/esm/ComboBox/v3/parts/menu-list/styled.js +17 -3
- package/esm/ComboBox/v3/parts/menu-list/useItemRenderer.js +97 -0
- package/esm/ComboBox/v3/parts/menu-list/useMenuList.js +43 -82
- package/esm/ComboBox/v3/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +26 -35
- package/esm/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.js +10 -6
- package/esm/ComboBox/v3/propTypes.js +15 -11
- package/esm/ComboBox/v3/utils/hooks/useKeyboardNavigation.js +28 -30
- package/esm/ComboBox/v3/utils/hooks/useOnElementResize.js +4 -4
- package/esm/FloatingLabelInput/FloatingLabelInputImpl.js +4 -7
- package/esm/FormItem/ValidationFieldWrapper.js +2 -3
- package/esm/Input/InputAddonWrapper.js +2 -3
- package/esm/Input/InputImpl.js +15 -17
- package/esm/InputGroup/AddonWrapper.js +5 -7
- package/esm/InputMask/DSInputMaskDeprecated.js +10 -12
- package/esm/MenuItem/components/MenuItem/index.js +1 -1
- package/esm/MenuItem/components/MultiMenuItem/MultiMenuItem.js +1 -0
- package/esm/MenuItem/components/Section/index.js +1 -1
- package/esm/MenuItem/components/Section/styled.js +1 -1
- package/esm/MenuItem/components/Separator/styled.js +2 -2
- package/esm/MenuItem/components/SingleMenuItem/SingleMenuItem.js +6 -6
- package/esm/MenuItem/components/SubmenuItem/index.js +1 -1
- package/esm/MenuItem/components/styled.js +13 -6
- package/esm/SearchBox/withSearchable.js +2 -4
- package/esm/Toggle/DSToggleImpl.js +28 -28
- package/package.json +40 -27
- package/types/Checkbox/DSCheckbox.d.ts +78 -13
- package/types/Checkbox/elements/CheckMark.d.ts +1 -1
- package/types/Checkbox/props.d.ts +58 -12
- package/types/CheckboxGroup/DSCheckboxGroup.d.ts +51 -7
- package/types/CheckboxGroup/props.d.ts +37 -6
- package/types/ComboBox/v2/Combobox.d.ts +56 -1
- package/types/ComboBox/v3/ComboBox.d.ts +54 -12
- package/types/ComboBox/v3/ComboboxDataTestids.d.ts +2 -0
- package/types/ComboBox/v3/parts/a11y-messages/styled.d.ts +1 -1
- package/types/ComboBox/v3/parts/container/styled.d.ts +3 -3
- package/types/ComboBox/v3/parts/controls/styled.d.ts +5 -5
- package/types/ComboBox/v3/parts/controls-input/styled.d.ts +4 -4
- package/types/ComboBox/v3/parts/controls-input/useControlsInput.d.ts +3 -3
- package/types/ComboBox/v3/parts/dropdown-indicator/styled.d.ts +1 -60
- package/types/ComboBox/v3/parts/empty-state/styled.d.ts +2 -2
- package/types/ComboBox/v3/parts/header-list/styled.d.ts +7 -93
- package/types/ComboBox/v3/parts/header-list/useHeaderListHandlers.d.ts +12 -0
- package/types/ComboBox/v3/parts/menu-list/styled.d.ts +9 -3
- package/types/ComboBox/v3/parts/menu-list/useItemRenderer.d.ts +2 -0
- package/types/ComboBox/v3/parts/menu-list/useMenuList.d.ts +1 -1
- package/types/ComboBox/v3/parts/multi-selected-values-container/styled.d.ts +3 -3
- package/types/ComboBox/v3/parts/multi-selected-values-container/useGroupPills.d.ts +1 -2
- package/types/ComboBox/v3/parts/single-selected-value-container/styled.d.ts +1 -1
- package/types/ComboBox/v3/propTypes.d.ts +49 -11
- package/types/ComboBox/v3/tests/combobox-special-keys.test.d.ts +1 -0
- package/types/ComboBox/v3/tests/utils.d.ts +5 -0
- package/types/ComboBox/v3/utils/hooks/useKeyboardNavigation.d.ts +4 -1
- package/types/ComboBox/v3/utils/listHelper.d.ts +1 -1
- package/types/DateInput/DSDateInput.d.ts +97 -16
- package/types/DateInput/props.d.ts +97 -16
- package/types/DateInputV2/components/DSDateInput.d.ts +72 -5
- package/types/DateInputV2/components/props.d.ts +61 -10
- package/types/DateInputV2/components/styled.d.ts +4 -4
- package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +118 -20
- package/types/FormItem/DSFormItemLayout.d.ts +390 -60
- package/types/FormItem/Error/DSError.d.ts +21 -3
- package/types/FormItem/Suffix/Suffix.d.ts +3 -3
- package/types/FormItem/defaultProps.d.ts +118 -20
- package/types/FormItem/props.d.ts +229 -39
- package/types/InputGroup/DSInputGroup.d.ts +56 -8
- package/types/InputGroup/props.d.ts +43 -7
- package/types/InputMask/DSInputMask.d.ts +172 -30
- package/types/InputMask/mask_types/DateInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/DateTimeInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/DictionaryInputMask.d.ts +37 -36
- package/types/InputMask/mask_types/NumberInputMask.d.ts +46 -45
- package/types/InputMask/mask_types/PhoneInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/PhoneInternationalInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/SsnInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/UsZipCodeInputMask.d.ts +34 -33
- package/types/InputMask/mask_types/ZipCodeSearchInputMask.d.ts +34 -33
- package/types/InputMask/props.d.ts +172 -30
- package/types/InputProtected/DSInputProtected.d.ts +56 -7
- package/types/InputProtected/props.d.ts +43 -8
- package/types/LargeInputText/DSLargeInputText.d.ts +163 -27
- package/types/LargeInputText/props.d.ts +163 -27
- package/types/MenuItem/components/MenuItem/index.d.ts +12 -3
- package/types/MenuItem/components/MenuItem/styled.d.ts +1 -1
- package/types/MenuItem/components/MultiMenuItem/MultiMenuItem.d.ts +12 -3
- package/types/MenuItem/components/MultiMenuItem/styled.d.ts +1 -1
- package/types/MenuItem/components/Section/index.d.ts +4 -1
- package/types/MenuItem/components/Section/props.d.ts +4 -1
- package/types/MenuItem/components/Section/styled.d.ts +2 -2
- package/types/MenuItem/components/Separator/styled.d.ts +2 -2
- package/types/MenuItem/components/SingleMenuItem/SingleMenuItem.d.ts +7 -2
- package/types/MenuItem/components/SubmenuItem/index.d.ts +12 -3
- package/types/MenuItem/components/SubmenuItem/styled.d.ts +2 -2
- package/types/MenuItem/components/styled.d.ts +3 -3
- package/types/MenuItem/props.d.ts +7 -2
- package/types/Radio/Circle.d.ts +1 -1
- package/types/Radio/DSRadio.d.ts +79 -13
- package/types/RadioGroup/DSRadioGroup.d.ts +51 -7
- package/types/RadioGroup/props.d.ts +37 -6
- package/types/SearchBox/DSSearchBox.d.ts +146 -21
- package/types/SearchBox/NavSearchBox.d.ts +18 -3
- package/types/SearchBox/SButton.d.ts +13 -2
- package/types/SearchBox/props.d.ts +133 -22
- package/types/SearchBox/styled.d.ts +1 -49
- package/types/TextBox/DSTextBox.d.ts +146 -21
- package/types/TimeInput/DSTimeInput.d.ts +83 -12
- package/types/TimeInput/utils.d.ts +1 -1
- package/types/Toggle/DSToggle.d.ts +84 -12
- package/cjs/ComboBox/v3/utils/hooks/useOnWindowResize.js +0 -31
- package/cjs/MenuItem/components/SingleMenuItem/styled.js +0 -19
- package/esm/ComboBox/v3/utils/hooks/useOnWindowResize.js +0 -27
- package/esm/MenuItem/components/SingleMenuItem/styled.js +0 -10
- package/types/ComboBox/v3/utils/hooks/useOnWindowResize.d.ts +0 -5
- package/types/MenuItem/components/SingleMenuItem/styled.d.ts +0 -2
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
}, any, {}, 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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
196
|
+
disableTooltip: {
|
|
197
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
198
|
+
};
|
|
101
199
|
};
|
|
102
200
|
};
|
|
103
|
-
declare const DSTextBoxWithSchema:
|
|
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:
|
|
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:
|
|
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':
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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" | "
|
|
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;
|