@elliemae/ds-controlled-form 2.2.0-next.6 → 2.2.0-rc.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.
- package/cjs/controlled-checkbox/propTypes.js +1 -1
- package/cjs/controlled-combobox/ComboBoxCTX.js +4 -0
- package/cjs/controlled-combobox/config/useComboBox.js +5 -1
- package/cjs/controlled-combobox/parts/container/Container.js +5 -3
- package/cjs/controlled-combobox/parts/header-list/HeaderList.js +7 -3
- package/cjs/controlled-combobox/propTypes.js +3 -1
- package/cjs/controlled-combobox/utils/hooks/useKeyboardNavigation.js +17 -3
- package/esm/controlled-checkbox/propTypes.js +1 -1
- package/esm/controlled-combobox/ComboBoxCTX.js +4 -0
- package/esm/controlled-combobox/config/useComboBox.js +5 -1
- package/esm/controlled-combobox/parts/container/Container.js +5 -3
- package/esm/controlled-combobox/parts/header-list/HeaderList.js +7 -3
- package/esm/controlled-combobox/propTypes.js +3 -1
- package/esm/controlled-combobox/utils/hooks/useKeyboardNavigation.js +17 -3
- package/package.json +10 -10
- package/types/controlled-autocomplete/Autocomplete.d.ts +1 -1
- package/types/controlled-checkbox/ControlledCheckbox.d.ts +1 -1
- package/types/controlled-combobox/ComboBox.d.ts +7 -1
- package/types/controlled-combobox/propTypes.d.ts +6 -0
- package/types/controlled-date-range-picker/ControlledDateRangePicker.d.ts +1 -1
- package/types/controlled-date-time-picker/ControlledDateTimePicker.d.ts +1 -1
- package/types/controlled-toggle/ControlledToggle.d.ts +1 -1
|
@@ -15,7 +15,7 @@ const propTypes = {
|
|
|
15
15
|
disabled: reactDesc.PropTypes.bool.description('Whether the checkbox is disabled or not.'),
|
|
16
16
|
ariaControls: reactDesc.PropTypes.string.description('This string is required when you use a mixed checkbox. It contains all the ids that this checkbox is controlling.'),
|
|
17
17
|
ariaLabel: reactDesc.PropTypes.string.description('Checkbox aria-label property. This property is going to be required if there is no label property added.'),
|
|
18
|
-
innerRef: reactDesc.PropTypes.func.description('Checkbox input ref.'),
|
|
18
|
+
innerRef: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.func, reactDesc.PropTypes.object]).description('Checkbox input ref.'),
|
|
19
19
|
autoFocus: reactDesc.PropTypes.bool.description('Whether you want the checkbox to be autofocused on render')
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -19,6 +19,8 @@ const defaultProps = {
|
|
|
19
19
|
onSelectAll: lodash.noop,
|
|
20
20
|
onCreate: lodash.noop,
|
|
21
21
|
withToggle: false,
|
|
22
|
+
withoutPortal: true,
|
|
23
|
+
zIndex: 10,
|
|
22
24
|
onChange: lodash.noop,
|
|
23
25
|
onKeyDown: lodash.noop,
|
|
24
26
|
onFilter: lodash.noop,
|
|
@@ -39,6 +41,8 @@ const defaultContext = {
|
|
|
39
41
|
wrapperListRef: /*#__PURE__*/React.createRef(),
|
|
40
42
|
controlsWrapperRef: /*#__PURE__*/React.createRef(),
|
|
41
43
|
selectedOptionsRef: /*#__PURE__*/React.createRef(),
|
|
44
|
+
selectAllCheckboxRef: /*#__PURE__*/React.createRef(),
|
|
45
|
+
toggleSelectionButtonRef: /*#__PURE__*/React.createRef(),
|
|
42
46
|
showSelectedValue: false,
|
|
43
47
|
setShowSelectedValue: lodash.noop,
|
|
44
48
|
focusOptionIdx: '',
|
|
@@ -36,6 +36,8 @@ const useComboBox = props => {
|
|
|
36
36
|
const wrapperListRef = React.useRef(null);
|
|
37
37
|
const selectedOptionsRef = React.useRef(null);
|
|
38
38
|
const controlsWrapperRef = React.useRef(null);
|
|
39
|
+
const selectAllCheckboxRef = React.useRef(null);
|
|
40
|
+
const toggleSelectionButtonRef = React.useRef(null);
|
|
39
41
|
const pillGroupRef = React.useRef(null);
|
|
40
42
|
const propsWithDefaults = useGetPropsWithDefault.useGetComboBoxWithDefaultsProps(props);
|
|
41
43
|
const {
|
|
@@ -125,6 +127,8 @@ const useComboBox = props => {
|
|
|
125
127
|
focusOptionIdx,
|
|
126
128
|
selectedOptionsRef,
|
|
127
129
|
controlsWrapperRef,
|
|
130
|
+
selectAllCheckboxRef,
|
|
131
|
+
toggleSelectionButtonRef,
|
|
128
132
|
hasFocus,
|
|
129
133
|
pillGroupRef,
|
|
130
134
|
showSelectedOptions,
|
|
@@ -136,7 +140,7 @@ const useComboBox = props => {
|
|
|
136
140
|
setShowSelectedValue,
|
|
137
141
|
setReferenceElement,
|
|
138
142
|
setShowPopover
|
|
139
|
-
}), [scrollOptionIntoView, correctOptions, propsWithDefaults, virtualListHelpers, focusOptionIdx, showSelectedValue, wrapperListRef, showSelectedOptions, showPopover, pillGroupRef, referenceElement, inputRef, selectedOptionsRef, controlsWrapperRef, hasFocus, listRef]);
|
|
143
|
+
}), [scrollOptionIntoView, correctOptions, propsWithDefaults, virtualListHelpers, focusOptionIdx, showSelectedValue, wrapperListRef, showSelectedOptions, showPopover, pillGroupRef, referenceElement, inputRef, selectedOptionsRef, controlsWrapperRef, selectAllCheckboxRef, toggleSelectionButtonRef, hasFocus, listRef]);
|
|
140
144
|
return ctx;
|
|
141
145
|
};
|
|
142
146
|
|
|
@@ -22,7 +22,9 @@ const Container = () => {
|
|
|
22
22
|
props: {
|
|
23
23
|
inline,
|
|
24
24
|
startPlacementPreference,
|
|
25
|
-
placementOrderPreference
|
|
25
|
+
placementOrderPreference,
|
|
26
|
+
withoutPortal,
|
|
27
|
+
zIndex
|
|
26
28
|
},
|
|
27
29
|
showPopover,
|
|
28
30
|
inputRef,
|
|
@@ -53,10 +55,10 @@ const Container = () => {
|
|
|
53
55
|
showPopover: showPopover,
|
|
54
56
|
startPlacementPreference: startPlacementPreference,
|
|
55
57
|
placementOrderPreference: placementOrderPreference,
|
|
56
|
-
withoutPortal:
|
|
58
|
+
withoutPortal: withoutPortal,
|
|
57
59
|
withoutArrow: true,
|
|
58
60
|
withoutAnimation: true,
|
|
59
|
-
zIndex:
|
|
61
|
+
zIndex: zIndex
|
|
60
62
|
}, void 0, /*#__PURE__*/_jsx__default["default"](styled.StyledPopperWrapper, {
|
|
61
63
|
tabIndex: -1,
|
|
62
64
|
onMouseDown: handleMouseDown
|
|
@@ -27,7 +27,9 @@ const HeaderList = () => {
|
|
|
27
27
|
selectedValues
|
|
28
28
|
},
|
|
29
29
|
showSelectedOptions,
|
|
30
|
-
inputRef
|
|
30
|
+
inputRef,
|
|
31
|
+
selectAllCheckboxRef,
|
|
32
|
+
toggleSelectionButtonRef
|
|
31
33
|
} = React.useContext(ComboBoxCTX.ComboBoxContext);
|
|
32
34
|
const isSelectAllSupplied = onSelectAll !== lodash.noop;
|
|
33
35
|
const isClearAllSupplied = onClearAll !== lodash.noop;
|
|
@@ -58,7 +60,8 @@ const HeaderList = () => {
|
|
|
58
60
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
59
61
|
});
|
|
60
62
|
}
|
|
61
|
-
}
|
|
63
|
+
},
|
|
64
|
+
innerRef: selectAllCheckboxRef
|
|
62
65
|
})), /*#__PURE__*/_jsx__default["default"](styled.StyledSelectedItems, {}, void 0, multiSelectedValues.length > 0 ? /*#__PURE__*/_jsx__default["default"](styled.StyledButtonSelection, {
|
|
63
66
|
onBlur: () => {
|
|
64
67
|
setTimeout(() => {
|
|
@@ -71,7 +74,8 @@ const HeaderList = () => {
|
|
|
71
74
|
onClick: handleToggle,
|
|
72
75
|
labelText: !showSelectedOptions ? "SHOW SELECTED [".concat(multiSelectedValues.length, "]") : 'SHOW ALL',
|
|
73
76
|
size: "s",
|
|
74
|
-
"data-testid": ComboboxDataTestids.ComboboxDataTestid.SHOW_SELECTED_OPTIONS_TOGGLE
|
|
77
|
+
"data-testid": ComboboxDataTestids.ComboboxDataTestid.SHOW_SELECTED_OPTIONS_TOGGLE,
|
|
78
|
+
innerRef: toggleSelectionButtonRef
|
|
75
79
|
}) : _StyledNoOptionsSelec || (_StyledNoOptionsSelec = /*#__PURE__*/_jsx__default["default"](styled.StyledNoOptionsSelected, {}, void 0, "0 SELECTED"))));
|
|
76
80
|
};
|
|
77
81
|
|
|
@@ -20,7 +20,9 @@ const propTypes = {
|
|
|
20
20
|
inputMinWidth: reactDesc.PropTypes.any.description('Minimum width for the combo box input controller').defaultValue(undefined),
|
|
21
21
|
menuMinWidth: reactDesc.PropTypes.any.description('Minimum width for the dropdown menu').defaultValue(undefined),
|
|
22
22
|
menuMaxHeight: reactDesc.PropTypes.any.description('Maximum height for the dropdown menu').defaultValue(undefined),
|
|
23
|
-
withToggle: reactDesc.PropTypes.bool.description('POC purpose this prop will not remain').defaultValue('false')
|
|
23
|
+
withToggle: reactDesc.PropTypes.bool.description('POC purpose this prop will not remain').defaultValue('false'),
|
|
24
|
+
withoutPortal: reactDesc.PropTypes.bool.description('Whether the combobox menu is rendered in a portal or not').defaultValue(false),
|
|
25
|
+
zIndex: reactDesc.PropTypes.number.description('The z-index of the combobox menu').defaultValue(10)
|
|
24
26
|
};
|
|
25
27
|
|
|
26
28
|
exports.propTypes = propTypes;
|
|
@@ -22,7 +22,8 @@ const useKeyboardNavigation = () => {
|
|
|
22
22
|
onCreate,
|
|
23
23
|
options,
|
|
24
24
|
selectedValues,
|
|
25
|
-
onFilter
|
|
25
|
+
onFilter,
|
|
26
|
+
withoutPortal
|
|
26
27
|
},
|
|
27
28
|
setShowPopover,
|
|
28
29
|
showPopover,
|
|
@@ -30,7 +31,9 @@ const useKeyboardNavigation = () => {
|
|
|
30
31
|
focusOptionIdx,
|
|
31
32
|
inputRef,
|
|
32
33
|
setCurrentOption,
|
|
33
|
-
scrollOptionIntoView
|
|
34
|
+
scrollOptionIntoView,
|
|
35
|
+
selectAllCheckboxRef,
|
|
36
|
+
toggleSelectionButtonRef
|
|
34
37
|
} = React.useContext(ComboBoxCTX.ComboBoxContext);
|
|
35
38
|
const multiple = Array.isArray(selectedValues);
|
|
36
39
|
const currentItemIndex = options.findIndex(opt => opt.dsId === focusOptionIdx);
|
|
@@ -146,8 +149,19 @@ const useKeyboardNavigation = () => {
|
|
|
146
149
|
setShowSelectedValue(true);
|
|
147
150
|
}
|
|
148
151
|
|
|
152
|
+
if (e.key === 'Tab' && !inline && !withoutPortal) {
|
|
153
|
+
var _selectAllCheckboxRef;
|
|
154
|
+
|
|
155
|
+
const element = (_selectAllCheckboxRef = selectAllCheckboxRef.current) !== null && _selectAllCheckboxRef !== void 0 ? _selectAllCheckboxRef : toggleSelectionButtonRef.current;
|
|
156
|
+
|
|
157
|
+
if (element) {
|
|
158
|
+
e.preventDefault();
|
|
159
|
+
element.focus();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
149
163
|
if (e.key === 'Tab' && inline) ;
|
|
150
|
-
}, [currentItemIndex, options, currentItem, inputRef, multiple, showPopover, selectedValues, inline, scrollOptionIntoView, onKeyDown, onSelectAll, onChange, onCreate, onFilter, setCurrentOption, setShowPopover, setShowSelectedValue, selectOption, onCancel]);
|
|
164
|
+
}, [currentItemIndex, options, currentItem, inputRef, multiple, showPopover, selectedValues, inline, scrollOptionIntoView, onKeyDown, onSelectAll, onChange, onCreate, onFilter, setCurrentOption, setShowPopover, setShowSelectedValue, selectOption, onCancel, selectAllCheckboxRef, toggleSelectionButtonRef, withoutPortal]);
|
|
151
165
|
return {
|
|
152
166
|
onInputKeyDown
|
|
153
167
|
};
|
|
@@ -11,7 +11,7 @@ const propTypes = {
|
|
|
11
11
|
disabled: PropTypes.bool.description('Whether the checkbox is disabled or not.'),
|
|
12
12
|
ariaControls: PropTypes.string.description('This string is required when you use a mixed checkbox. It contains all the ids that this checkbox is controlling.'),
|
|
13
13
|
ariaLabel: PropTypes.string.description('Checkbox aria-label property. This property is going to be required if there is no label property added.'),
|
|
14
|
-
innerRef: PropTypes.func.description('Checkbox input ref.'),
|
|
14
|
+
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).description('Checkbox input ref.'),
|
|
15
15
|
autoFocus: PropTypes.bool.description('Whether you want the checkbox to be autofocused on render')
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -15,6 +15,8 @@ const defaultProps = {
|
|
|
15
15
|
onSelectAll: noop,
|
|
16
16
|
onCreate: noop,
|
|
17
17
|
withToggle: false,
|
|
18
|
+
withoutPortal: true,
|
|
19
|
+
zIndex: 10,
|
|
18
20
|
onChange: noop,
|
|
19
21
|
onKeyDown: noop,
|
|
20
22
|
onFilter: noop,
|
|
@@ -35,6 +37,8 @@ const defaultContext = {
|
|
|
35
37
|
wrapperListRef: /*#__PURE__*/createRef(),
|
|
36
38
|
controlsWrapperRef: /*#__PURE__*/createRef(),
|
|
37
39
|
selectedOptionsRef: /*#__PURE__*/createRef(),
|
|
40
|
+
selectAllCheckboxRef: /*#__PURE__*/createRef(),
|
|
41
|
+
toggleSelectionButtonRef: /*#__PURE__*/createRef(),
|
|
38
42
|
showSelectedValue: false,
|
|
39
43
|
setShowSelectedValue: noop,
|
|
40
44
|
focusOptionIdx: '',
|
|
@@ -28,6 +28,8 @@ const useComboBox = props => {
|
|
|
28
28
|
const wrapperListRef = useRef(null);
|
|
29
29
|
const selectedOptionsRef = useRef(null);
|
|
30
30
|
const controlsWrapperRef = useRef(null);
|
|
31
|
+
const selectAllCheckboxRef = useRef(null);
|
|
32
|
+
const toggleSelectionButtonRef = useRef(null);
|
|
31
33
|
const pillGroupRef = useRef(null);
|
|
32
34
|
const propsWithDefaults = useGetComboBoxWithDefaultsProps(props);
|
|
33
35
|
const {
|
|
@@ -117,6 +119,8 @@ const useComboBox = props => {
|
|
|
117
119
|
focusOptionIdx,
|
|
118
120
|
selectedOptionsRef,
|
|
119
121
|
controlsWrapperRef,
|
|
122
|
+
selectAllCheckboxRef,
|
|
123
|
+
toggleSelectionButtonRef,
|
|
120
124
|
hasFocus,
|
|
121
125
|
pillGroupRef,
|
|
122
126
|
showSelectedOptions,
|
|
@@ -128,7 +132,7 @@ const useComboBox = props => {
|
|
|
128
132
|
setShowSelectedValue,
|
|
129
133
|
setReferenceElement,
|
|
130
134
|
setShowPopover
|
|
131
|
-
}), [scrollOptionIntoView, correctOptions, propsWithDefaults, virtualListHelpers, focusOptionIdx, showSelectedValue, wrapperListRef, showSelectedOptions, showPopover, pillGroupRef, referenceElement, inputRef, selectedOptionsRef, controlsWrapperRef, hasFocus, listRef]);
|
|
135
|
+
}), [scrollOptionIntoView, correctOptions, propsWithDefaults, virtualListHelpers, focusOptionIdx, showSelectedValue, wrapperListRef, showSelectedOptions, showPopover, pillGroupRef, referenceElement, inputRef, selectedOptionsRef, controlsWrapperRef, selectAllCheckboxRef, toggleSelectionButtonRef, hasFocus, listRef]);
|
|
132
136
|
return ctx;
|
|
133
137
|
};
|
|
134
138
|
|
|
@@ -14,7 +14,9 @@ const Container = () => {
|
|
|
14
14
|
props: {
|
|
15
15
|
inline,
|
|
16
16
|
startPlacementPreference,
|
|
17
|
-
placementOrderPreference
|
|
17
|
+
placementOrderPreference,
|
|
18
|
+
withoutPortal,
|
|
19
|
+
zIndex
|
|
18
20
|
},
|
|
19
21
|
showPopover,
|
|
20
22
|
inputRef,
|
|
@@ -45,10 +47,10 @@ const Container = () => {
|
|
|
45
47
|
showPopover: showPopover,
|
|
46
48
|
startPlacementPreference: startPlacementPreference,
|
|
47
49
|
placementOrderPreference: placementOrderPreference,
|
|
48
|
-
withoutPortal:
|
|
50
|
+
withoutPortal: withoutPortal,
|
|
49
51
|
withoutArrow: true,
|
|
50
52
|
withoutAnimation: true,
|
|
51
|
-
zIndex:
|
|
53
|
+
zIndex: zIndex
|
|
52
54
|
}, void 0, /*#__PURE__*/_jsx(StyledPopperWrapper, {
|
|
53
55
|
tabIndex: -1,
|
|
54
56
|
onMouseDown: handleMouseDown
|
|
@@ -19,7 +19,9 @@ const HeaderList = () => {
|
|
|
19
19
|
selectedValues
|
|
20
20
|
},
|
|
21
21
|
showSelectedOptions,
|
|
22
|
-
inputRef
|
|
22
|
+
inputRef,
|
|
23
|
+
selectAllCheckboxRef,
|
|
24
|
+
toggleSelectionButtonRef
|
|
23
25
|
} = useContext(ComboBoxContext);
|
|
24
26
|
const isSelectAllSupplied = onSelectAll !== noop;
|
|
25
27
|
const isClearAllSupplied = onClearAll !== noop;
|
|
@@ -50,7 +52,8 @@ const HeaderList = () => {
|
|
|
50
52
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
51
53
|
});
|
|
52
54
|
}
|
|
53
|
-
}
|
|
55
|
+
},
|
|
56
|
+
innerRef: selectAllCheckboxRef
|
|
54
57
|
})), /*#__PURE__*/_jsx(StyledSelectedItems, {}, void 0, multiSelectedValues.length > 0 ? /*#__PURE__*/_jsx(StyledButtonSelection, {
|
|
55
58
|
onBlur: () => {
|
|
56
59
|
setTimeout(() => {
|
|
@@ -63,7 +66,8 @@ const HeaderList = () => {
|
|
|
63
66
|
onClick: handleToggle,
|
|
64
67
|
labelText: !showSelectedOptions ? "SHOW SELECTED [".concat(multiSelectedValues.length, "]") : 'SHOW ALL',
|
|
65
68
|
size: "s",
|
|
66
|
-
"data-testid": ComboboxDataTestid.SHOW_SELECTED_OPTIONS_TOGGLE
|
|
69
|
+
"data-testid": ComboboxDataTestid.SHOW_SELECTED_OPTIONS_TOGGLE,
|
|
70
|
+
innerRef: toggleSelectionButtonRef
|
|
67
71
|
}) : _StyledNoOptionsSelec || (_StyledNoOptionsSelec = /*#__PURE__*/_jsx(StyledNoOptionsSelected, {}, void 0, "0 SELECTED"))));
|
|
68
72
|
};
|
|
69
73
|
|
|
@@ -16,7 +16,9 @@ const propTypes = {
|
|
|
16
16
|
inputMinWidth: PropTypes.any.description('Minimum width for the combo box input controller').defaultValue(undefined),
|
|
17
17
|
menuMinWidth: PropTypes.any.description('Minimum width for the dropdown menu').defaultValue(undefined),
|
|
18
18
|
menuMaxHeight: PropTypes.any.description('Maximum height for the dropdown menu').defaultValue(undefined),
|
|
19
|
-
withToggle: PropTypes.bool.description('POC purpose this prop will not remain').defaultValue('false')
|
|
19
|
+
withToggle: PropTypes.bool.description('POC purpose this prop will not remain').defaultValue('false'),
|
|
20
|
+
withoutPortal: PropTypes.bool.description('Whether the combobox menu is rendered in a portal or not').defaultValue(false),
|
|
21
|
+
zIndex: PropTypes.number.description('The z-index of the combobox menu').defaultValue(10)
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
export { propTypes };
|
|
@@ -18,7 +18,8 @@ const useKeyboardNavigation = () => {
|
|
|
18
18
|
onCreate,
|
|
19
19
|
options,
|
|
20
20
|
selectedValues,
|
|
21
|
-
onFilter
|
|
21
|
+
onFilter,
|
|
22
|
+
withoutPortal
|
|
22
23
|
},
|
|
23
24
|
setShowPopover,
|
|
24
25
|
showPopover,
|
|
@@ -26,7 +27,9 @@ const useKeyboardNavigation = () => {
|
|
|
26
27
|
focusOptionIdx,
|
|
27
28
|
inputRef,
|
|
28
29
|
setCurrentOption,
|
|
29
|
-
scrollOptionIntoView
|
|
30
|
+
scrollOptionIntoView,
|
|
31
|
+
selectAllCheckboxRef,
|
|
32
|
+
toggleSelectionButtonRef
|
|
30
33
|
} = useContext(ComboBoxContext);
|
|
31
34
|
const multiple = Array.isArray(selectedValues);
|
|
32
35
|
const currentItemIndex = options.findIndex(opt => opt.dsId === focusOptionIdx);
|
|
@@ -142,8 +145,19 @@ const useKeyboardNavigation = () => {
|
|
|
142
145
|
setShowSelectedValue(true);
|
|
143
146
|
}
|
|
144
147
|
|
|
148
|
+
if (e.key === 'Tab' && !inline && !withoutPortal) {
|
|
149
|
+
var _selectAllCheckboxRef;
|
|
150
|
+
|
|
151
|
+
const element = (_selectAllCheckboxRef = selectAllCheckboxRef.current) !== null && _selectAllCheckboxRef !== void 0 ? _selectAllCheckboxRef : toggleSelectionButtonRef.current;
|
|
152
|
+
|
|
153
|
+
if (element) {
|
|
154
|
+
e.preventDefault();
|
|
155
|
+
element.focus();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
145
159
|
if (e.key === 'Tab' && inline) ;
|
|
146
|
-
}, [currentItemIndex, options, currentItem, inputRef, multiple, showPopover, selectedValues, inline, scrollOptionIntoView, onKeyDown, onSelectAll, onChange, onCreate, onFilter, setCurrentOption, setShowPopover, setShowSelectedValue, selectOption, onCancel]);
|
|
160
|
+
}, [currentItemIndex, options, currentItem, inputRef, multiple, showPopover, selectedValues, inline, scrollOptionIntoView, onKeyDown, onSelectAll, onChange, onCreate, onFilter, setCurrentOption, setShowPopover, setShowSelectedValue, selectOption, onCancel, selectAllCheckboxRef, toggleSelectionButtonRef, withoutPortal]);
|
|
147
161
|
return {
|
|
148
162
|
onInputKeyDown
|
|
149
163
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-controlled-form",
|
|
3
|
-
"version": "2.2.0-
|
|
3
|
+
"version": "2.2.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Controllers",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -744,15 +744,15 @@
|
|
|
744
744
|
"build": "node ../../scripts/build/build.js"
|
|
745
745
|
},
|
|
746
746
|
"dependencies": {
|
|
747
|
-
"@elliemae/ds-button": "2.2.0-
|
|
748
|
-
"@elliemae/ds-form-layout-blocks": "2.2.0-
|
|
749
|
-
"@elliemae/ds-grid": "2.2.0-
|
|
750
|
-
"@elliemae/ds-icon": "2.2.0-
|
|
751
|
-
"@elliemae/ds-icons": "2.2.0-
|
|
752
|
-
"@elliemae/ds-props-helpers": "2.2.0-
|
|
753
|
-
"@elliemae/ds-system": "2.2.0-
|
|
754
|
-
"@elliemae/ds-tooltip": "2.2.0-
|
|
755
|
-
"@elliemae/ds-truncated-tooltip-text": "2.2.0-
|
|
747
|
+
"@elliemae/ds-button": "2.2.0-rc.0",
|
|
748
|
+
"@elliemae/ds-form-layout-blocks": "2.2.0-rc.0",
|
|
749
|
+
"@elliemae/ds-grid": "2.2.0-rc.0",
|
|
750
|
+
"@elliemae/ds-icon": "2.2.0-rc.0",
|
|
751
|
+
"@elliemae/ds-icons": "2.2.0-rc.0",
|
|
752
|
+
"@elliemae/ds-props-helpers": "2.2.0-rc.0",
|
|
753
|
+
"@elliemae/ds-system": "2.2.0-rc.0",
|
|
754
|
+
"@elliemae/ds-tooltip": "2.2.0-rc.0",
|
|
755
|
+
"@elliemae/ds-truncated-tooltip-text": "2.2.0-rc.0",
|
|
756
756
|
"prop-types": "~15.7.2",
|
|
757
757
|
"react-desc": "~4.1.3",
|
|
758
758
|
"react-popper": "~2.2.5",
|
|
@@ -55,7 +55,7 @@ declare const DSAutocomplete: {
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
declare const DSAutocompleteWithSchema: {
|
|
58
|
-
(props?:
|
|
58
|
+
(props?: unknown): JSX.Element;
|
|
59
59
|
propTypes: unknown;
|
|
60
60
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
61
61
|
};
|
|
@@ -64,7 +64,7 @@ declare const DSControlledCheckbox: {
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
declare const DSControlledCheckboxWithSchema: {
|
|
67
|
-
(props?:
|
|
67
|
+
(props?: unknown): JSX.Element;
|
|
68
68
|
propTypes: unknown;
|
|
69
69
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
70
70
|
};
|
|
@@ -55,10 +55,16 @@ declare const DSComboBox: {
|
|
|
55
55
|
withToggle: {
|
|
56
56
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
57
57
|
};
|
|
58
|
+
withoutPortal: {
|
|
59
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
+
};
|
|
61
|
+
zIndex: {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
58
64
|
};
|
|
59
65
|
};
|
|
60
66
|
declare const DSComboBoxWithSchema: {
|
|
61
|
-
(props?:
|
|
67
|
+
(props?: unknown): JSX.Element;
|
|
62
68
|
propTypes: unknown;
|
|
63
69
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
64
70
|
};
|
|
@@ -51,4 +51,10 @@ export declare const propTypes: {
|
|
|
51
51
|
withToggle: {
|
|
52
52
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
53
53
|
};
|
|
54
|
+
withoutPortal: {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
zIndex: {
|
|
58
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
59
|
+
};
|
|
54
60
|
};
|
|
@@ -13,7 +13,7 @@ declare const DSControlledDateRangePicker: {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
declare const DSControlledDateRangePickerWithSchema: {
|
|
16
|
-
(props?:
|
|
16
|
+
(props?: unknown): JSX.Element;
|
|
17
17
|
propTypes: unknown;
|
|
18
18
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
19
19
|
};
|
|
@@ -85,7 +85,7 @@ declare const DSControlledDateTimePicker: {
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
declare const DSControlledDateTimePickerWithSchema: {
|
|
88
|
-
(props?:
|
|
88
|
+
(props?: unknown): JSX.Element;
|
|
89
89
|
propTypes: unknown;
|
|
90
90
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
91
91
|
};
|
|
@@ -91,7 +91,7 @@ declare const DSControlledToggle: {
|
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
declare const DSControlledToggleWithSchema: {
|
|
94
|
-
(props?:
|
|
94
|
+
(props?: unknown): JSX.Element;
|
|
95
95
|
propTypes: unknown;
|
|
96
96
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
97
97
|
};
|