@datarobot/design-system 30.6.0 → 30.6.1
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/typeahead/multi-select-typeahead/checkbox-multiselect-typeahead.js +4 -4
- package/esm/typeahead/multi-select-typeahead/checkbox-multiselect-typeahead.js +4 -4
- package/js/bundle/bundle.js +21 -22
- package/js/bundle/bundle.min.js +1 -1
- package/package.json +1 -1
- package/styles/index.css +5 -0
- package/styles/index.min.css +1 -1
|
@@ -127,10 +127,10 @@ function CheckboxOptionList({
|
|
|
127
127
|
"test-id": "typeahead-dropdown-list",
|
|
128
128
|
id: listId,
|
|
129
129
|
ref: el => {
|
|
130
|
-
//
|
|
131
|
-
//
|
|
132
|
-
//
|
|
133
|
-
scrollableContainerRef.current = el
|
|
130
|
+
// The element itself is the scrollable container (overflow-y: auto on
|
|
131
|
+
// .checkbox-multiselect-container); keyboard navigation needs the ref
|
|
132
|
+
// here so active options can be scrolled into view.
|
|
133
|
+
scrollableContainerRef.current = el;
|
|
134
134
|
},
|
|
135
135
|
children: visibleOptions.map(option => /*#__PURE__*/(0, _jsxRuntime.jsx)(CheckboxListItem, {
|
|
136
136
|
option: option,
|
|
@@ -119,10 +119,10 @@ function CheckboxOptionList({
|
|
|
119
119
|
"test-id": "typeahead-dropdown-list",
|
|
120
120
|
id: listId,
|
|
121
121
|
ref: el => {
|
|
122
|
-
//
|
|
123
|
-
//
|
|
124
|
-
//
|
|
125
|
-
scrollableContainerRef.current = el
|
|
122
|
+
// The element itself is the scrollable container (overflow-y: auto on
|
|
123
|
+
// .checkbox-multiselect-container); keyboard navigation needs the ref
|
|
124
|
+
// here so active options can be scrolled into view.
|
|
125
|
+
scrollableContainerRef.current = el;
|
|
126
126
|
},
|
|
127
127
|
children: visibleOptions.map(option => /*#__PURE__*/_jsx(CheckboxListItem, {
|
|
128
128
|
option: option,
|
package/js/bundle/bundle.js
CHANGED
|
@@ -88092,11 +88092,10 @@ function CheckboxOptionList(_ref2) {
|
|
|
88092
88092
|
"test-id": "typeahead-dropdown-list",
|
|
88093
88093
|
id: listId,
|
|
88094
88094
|
ref: function ref(el) {
|
|
88095
|
-
|
|
88096
|
-
//
|
|
88097
|
-
//
|
|
88098
|
-
|
|
88099
|
-
scrollableContainerRef.current = (_ref3 = el === null || el === void 0 ? void 0 : el.parentElement) !== null && _ref3 !== void 0 ? _ref3 : null;
|
|
88095
|
+
// The element itself is the scrollable container (overflow-y: auto on
|
|
88096
|
+
// .checkbox-multiselect-container); keyboard navigation needs the ref
|
|
88097
|
+
// here so active options can be scrolled into view.
|
|
88098
|
+
scrollableContainerRef.current = el;
|
|
88100
88099
|
}
|
|
88101
88100
|
}, visibleOptions.map(function (option) {
|
|
88102
88101
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CheckboxListItem, {
|
|
@@ -88113,24 +88112,24 @@ function CheckboxOptionList(_ref2) {
|
|
|
88113
88112
|
});
|
|
88114
88113
|
}));
|
|
88115
88114
|
}
|
|
88116
|
-
function CheckboxMultiselectTypeahead(
|
|
88115
|
+
function CheckboxMultiselectTypeahead(_ref3) {
|
|
88117
88116
|
var _items$map, _options$map;
|
|
88118
|
-
var options =
|
|
88119
|
-
optionId =
|
|
88120
|
-
|
|
88121
|
-
optionLabel =
|
|
88122
|
-
|
|
88123
|
-
items =
|
|
88124
|
-
isDisabled =
|
|
88125
|
-
validity =
|
|
88126
|
-
|
|
88127
|
-
onChange =
|
|
88128
|
-
selectAllRow =
|
|
88129
|
-
|
|
88130
|
-
optionComponent =
|
|
88131
|
-
|
|
88132
|
-
shouldShowValidityOnTouched =
|
|
88133
|
-
otherMultiSelectTypeaheadProps = _objectWithoutProperties(
|
|
88117
|
+
var options = _ref3.options,
|
|
88118
|
+
optionId = _ref3.optionId,
|
|
88119
|
+
_ref3$optionLabel = _ref3.optionLabel,
|
|
88120
|
+
optionLabel = _ref3$optionLabel === void 0 ? 'label' : _ref3$optionLabel,
|
|
88121
|
+
_ref3$items = _ref3.items,
|
|
88122
|
+
items = _ref3$items === void 0 ? [] : _ref3$items,
|
|
88123
|
+
isDisabled = _ref3.isDisabled,
|
|
88124
|
+
validity = _ref3.validity,
|
|
88125
|
+
_ref3$onSelect = _ref3.onSelect,
|
|
88126
|
+
onChange = _ref3$onSelect === void 0 ? function () {} : _ref3$onSelect,
|
|
88127
|
+
selectAllRow = _ref3.selectAllRow,
|
|
88128
|
+
_ref3$optionComponent = _ref3.optionComponent,
|
|
88129
|
+
optionComponent = _ref3$optionComponent === void 0 ? null : _ref3$optionComponent,
|
|
88130
|
+
_ref3$shouldShowValid = _ref3.shouldShowValidityOnTouched,
|
|
88131
|
+
shouldShowValidityOnTouched = _ref3$shouldShowValid === void 0 ? false : _ref3$shouldShowValid,
|
|
88132
|
+
otherMultiSelectTypeaheadProps = _objectWithoutProperties(_ref3, _excluded);
|
|
88134
88133
|
// multiselect typeahead does not use typeahead logic for rendering validity message,
|
|
88135
88134
|
// but in its logic it does not do checks on whether input was touched or not
|
|
88136
88135
|
// didn't want to introduce this to multiselect typeahead component cause not sure if it's needed there,
|