@commercetools-uikit/select-input 13.0.1 → 13.0.2

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
@@ -72,7 +72,7 @@ export default Example;
72
72
  | `components` | `ReactSelectProps['components']` | | | Map of components to overwrite the default ones, see what components you can override&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
73
73
  | `filterOption` | `ReactSelectProps['filterOption']` | | | Custom method to filter whether an option should be displayed in the menu&#xA;<br />&#xA;Signature: `(option, rawInput) => boolean`&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
74
74
  | `id` | `ReactSelectProps['inputId']` | | | Used as HTML id property. An id is generated automatically when not provided.&#xA;This forwarded as react-select's "inputId"&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
75
- | `inputValue` | `ReactSelectProps['inputValue']` || | The value of the search input&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
75
+ | `inputValue` | `ReactSelectProps['inputValue']` | | | The value of the search input&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
76
76
  | `containerId` | `ReactSelectProps['id']` | | | The id to set on the SelectContainer component&#xA;This is forwarded as react-select's "id"&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
77
77
  | `isClearable` | `ReactSelectProps['isClearable']` | | | Is the select value clearable&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
78
78
  | `isDisabled` | `ReactSelectProps['isDisabled']` | | | Is the select disabled&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
@@ -132,7 +132,7 @@ var SelectInput = function SelectInput(props) {
132
132
  name: props.name,
133
133
  noOptionsMessage: props.noOptionsMessage || function (_ref) {
134
134
  var inputValue = _ref.inputValue;
135
- return inputValue === '' ? intl.formatMessage(selectUtils.messages.noOptionsMessageWithoutInputValue) : intl.formatMessage(selectUtils.messages.noOptionsMessageWithInputValue, {
135
+ return !inputValue || inputValue === '' ? intl.formatMessage(selectUtils.messages.noOptionsMessageWithoutInputValue) : intl.formatMessage(selectUtils.messages.noOptionsMessageWithInputValue, {
136
136
  inputValue: inputValue
137
137
  });
138
138
  },
@@ -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.1";
229
+ var version = "13.0.2";
230
230
 
231
231
  exports["default"] = SelectInput$1;
232
232
  exports.version = version;
@@ -131,7 +131,7 @@ var SelectInput = function SelectInput(props) {
131
131
  name: props.name,
132
132
  noOptionsMessage: props.noOptionsMessage || function (_ref) {
133
133
  var inputValue = _ref.inputValue;
134
- return inputValue === '' ? intl.formatMessage(selectUtils.messages.noOptionsMessageWithoutInputValue) : intl.formatMessage(selectUtils.messages.noOptionsMessageWithInputValue, {
134
+ return !inputValue || inputValue === '' ? intl.formatMessage(selectUtils.messages.noOptionsMessageWithoutInputValue) : intl.formatMessage(selectUtils.messages.noOptionsMessageWithInputValue, {
135
135
  inputValue: inputValue
136
136
  });
137
137
  },
@@ -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.1";
210
+ var version = "13.0.2";
211
211
 
212
212
  exports["default"] = SelectInput$1;
213
213
  exports.version = version;
@@ -109,7 +109,7 @@ var SelectInput = function SelectInput(props) {
109
109
  name: props.name,
110
110
  noOptionsMessage: props.noOptionsMessage || function (_ref) {
111
111
  var inputValue = _ref.inputValue;
112
- return inputValue === '' ? intl.formatMessage(messages.noOptionsMessageWithoutInputValue) : intl.formatMessage(messages.noOptionsMessageWithInputValue, {
112
+ return !inputValue || inputValue === '' ? intl.formatMessage(messages.noOptionsMessageWithoutInputValue) : intl.formatMessage(messages.noOptionsMessageWithInputValue, {
113
113
  inputValue: inputValue
114
114
  });
115
115
  },
@@ -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.1";
206
+ var version = "13.0.2";
207
207
 
208
208
  export { SelectInput$1 as default, version };
@@ -27,7 +27,7 @@ declare type TSelectInputProps = {
27
27
  components?: ReactSelectProps['components'];
28
28
  filterOption?: ReactSelectProps['filterOption'];
29
29
  id?: ReactSelectProps['inputId'];
30
- inputValue: ReactSelectProps['inputValue'];
30
+ inputValue?: ReactSelectProps['inputValue'];
31
31
  containerId?: ReactSelectProps['id'];
32
32
  isClearable?: ReactSelectProps['isClearable'];
33
33
  isDisabled?: ReactSelectProps['isDisabled'];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/select-input",
3
3
  "description": "An input component getting a selection from the user.",
4
- "version": "13.0.1",
4
+ "version": "13.0.2",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,12 +21,12 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "7.17.2",
23
23
  "@babel/runtime-corejs3": "7.17.2",
24
- "@commercetools-uikit/constraints": "13.0.0",
24
+ "@commercetools-uikit/constraints": "13.0.2",
25
25
  "@commercetools-uikit/design-system": "13.0.0",
26
- "@commercetools-uikit/icons": "13.0.0",
27
- "@commercetools-uikit/select-utils": "13.0.1",
28
- "@commercetools-uikit/utils": "12.2.9",
29
- "@emotion/is-prop-valid": "1.1.1",
26
+ "@commercetools-uikit/icons": "13.0.2",
27
+ "@commercetools-uikit/select-utils": "13.0.2",
28
+ "@commercetools-uikit/utils": "13.0.2",
29
+ "@emotion/is-prop-valid": "1.1.2",
30
30
  "@emotion/react": "^11.4.0",
31
31
  "@emotion/styled": "^11.3.0",
32
32
  "lodash": "4.17.21",