@commercetools-uikit/select-input 13.0.2 → 13.0.3
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/README.md
CHANGED
|
@@ -95,7 +95,7 @@ export default Example;
|
|
|
95
95
|
| `placeholder` | `ReactSelectProps['placeholder']` | | | Placeholder text for the select value
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
96
96
|
| `tabIndex` | `ReactSelectProps['tabIndex']` | | | Sets the tabIndex attribute on the input
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
97
97
|
| `tabSelectsValue` | `ReactSelectProps['tabSelectsValue']` | | | Select the currently focused option when the user presses tab
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
98
|
-
| `value` | `ReactSelectProps['value']` |
|
|
98
|
+
| `value` | `ReactSelectProps['value']` | | | The value of the select; reflected by the selected option
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
99
99
|
|
|
100
100
|
## Signatures
|
|
101
101
|
|
|
@@ -74,7 +74,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
74
74
|
var optionsWithoutGroups = flatMap__default["default"](props.options, function (option) {
|
|
75
75
|
return has__default["default"](option, 'value') ? option : option.options;
|
|
76
76
|
});
|
|
77
|
-
var selectedOptions = props.isMulti ? _filterInstanceProperty__default["default"](_context = _mapInstanceProperty__default["default"](_context2 = props.value // Pass the options in the order selected by the use, so that the
|
|
77
|
+
var selectedOptions = props.isMulti ? _filterInstanceProperty__default["default"](_context = _mapInstanceProperty__default["default"](_context2 = props.value || [] // Pass the options in the order selected by the use, so that the
|
|
78
78
|
// sorting is not lost
|
|
79
79
|
).call(_context2, function (value) {
|
|
80
80
|
return _findInstanceProperty__default["default"](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
|
|
@@ -226,7 +226,7 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
226
226
|
var SelectInput$1 = SelectInput;
|
|
227
227
|
|
|
228
228
|
// NOTE: This string will be replaced on build time with the package version.
|
|
229
|
-
var version = "13.0.
|
|
229
|
+
var version = "13.0.3";
|
|
230
230
|
|
|
231
231
|
exports["default"] = SelectInput$1;
|
|
232
232
|
exports.version = version;
|
|
@@ -73,7 +73,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
73
73
|
var optionsWithoutGroups = flatMap__default["default"](props.options, function (option) {
|
|
74
74
|
return has__default["default"](option, 'value') ? option : option.options;
|
|
75
75
|
});
|
|
76
|
-
var selectedOptions = props.isMulti ? _filterInstanceProperty__default["default"](_context = _mapInstanceProperty__default["default"](_context2 = props.value // Pass the options in the order selected by the use, so that the
|
|
76
|
+
var selectedOptions = props.isMulti ? _filterInstanceProperty__default["default"](_context = _mapInstanceProperty__default["default"](_context2 = props.value || [] // Pass the options in the order selected by the use, so that the
|
|
77
77
|
// sorting is not lost
|
|
78
78
|
).call(_context2, function (value) {
|
|
79
79
|
return _findInstanceProperty__default["default"](optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
|
|
@@ -207,7 +207,7 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
207
207
|
var SelectInput$1 = SelectInput;
|
|
208
208
|
|
|
209
209
|
// NOTE: This string will be replaced on build time with the package version.
|
|
210
|
-
var version = "13.0.
|
|
210
|
+
var version = "13.0.3";
|
|
211
211
|
|
|
212
212
|
exports["default"] = SelectInput$1;
|
|
213
213
|
exports.version = version;
|
|
@@ -51,7 +51,7 @@ var SelectInput = function SelectInput(props) {
|
|
|
51
51
|
var optionsWithoutGroups = flatMap(props.options, function (option) {
|
|
52
52
|
return has(option, 'value') ? option : option.options;
|
|
53
53
|
});
|
|
54
|
-
var selectedOptions = props.isMulti ? _filterInstanceProperty(_context = _mapInstanceProperty(_context2 = props.value // Pass the options in the order selected by the use, so that the
|
|
54
|
+
var selectedOptions = props.isMulti ? _filterInstanceProperty(_context = _mapInstanceProperty(_context2 = props.value || [] // Pass the options in the order selected by the use, so that the
|
|
55
55
|
// sorting is not lost
|
|
56
56
|
).call(_context2, function (value) {
|
|
57
57
|
return _findInstanceProperty(optionsWithoutGroups).call(optionsWithoutGroups, function (option) {
|
|
@@ -203,6 +203,6 @@ addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({}, compo
|
|
|
203
203
|
var SelectInput$1 = SelectInput;
|
|
204
204
|
|
|
205
205
|
// NOTE: This string will be replaced on build time with the package version.
|
|
206
|
-
var version = "13.0.
|
|
206
|
+
var version = "13.0.3";
|
|
207
207
|
|
|
208
208
|
export { SelectInput$1 as default, version };
|
|
@@ -50,7 +50,7 @@ declare type TSelectInputProps = {
|
|
|
50
50
|
placeholder?: ReactSelectProps['placeholder'];
|
|
51
51
|
tabIndex?: ReactSelectProps['tabIndex'];
|
|
52
52
|
tabSelectsValue?: ReactSelectProps['tabSelectsValue'];
|
|
53
|
-
value
|
|
53
|
+
value?: ReactSelectProps['value'];
|
|
54
54
|
};
|
|
55
55
|
declare const SelectInput: {
|
|
56
56
|
(props: TSelectInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED