@commercetools-uikit/async-select-input 16.1.0 → 16.1.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.
@@ -20,7 +20,6 @@ var utils = require('@commercetools-uikit/utils');
20
20
  var Constraints = require('@commercetools-uikit/constraints');
21
21
  var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
22
22
  var selectUtils = require('@commercetools-uikit/select-utils');
23
- var designSystem = require('@commercetools-uikit/design-system');
24
23
  var jsxRuntime = require('@emotion/react/jsx-runtime');
25
24
 
26
25
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -61,8 +60,6 @@ const defaultProps = {
61
60
  };
62
61
  const AsyncSelectInput = props => {
63
62
  const intl = reactIntl.useIntl();
64
- const _useTheme = designSystem.useTheme(),
65
- isNewTheme = _useTheme.isNewTheme;
66
63
  if (!props.isReadOnly) {
67
64
  process.env.NODE_ENV !== "production" ? utils.warning(typeof props.onChange === 'function', 'AsyncSelectInput: `onChange` is required when input is not read only.') : void 0;
68
65
  }
@@ -104,8 +101,7 @@ const AsyncSelectInput = props => {
104
101
  iconLeft: props.iconLeft,
105
102
  isMulti: props.isMulti,
106
103
  hasValue: !isEmpty__default["default"](props.value),
107
- controlShouldRenderValue: props.controlShouldRenderValue,
108
- isNewTheme
104
+ controlShouldRenderValue: props.controlShouldRenderValue
109
105
  }),
110
106
  filterOption: props.filterOption
111
107
  // react-select uses "id" (for the container) and "inputId" (for the input),
@@ -249,7 +245,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
249
245
  var AsyncSelectInput$1 = AsyncSelectInput;
250
246
 
251
247
  // NOTE: This string will be replaced on build time with the package version.
252
- var version = "16.1.0";
248
+ var version = "16.1.1";
253
249
 
254
250
  exports["default"] = AsyncSelectInput$1;
255
251
  exports.version = version;
@@ -20,7 +20,6 @@ var utils = require('@commercetools-uikit/utils');
20
20
  var Constraints = require('@commercetools-uikit/constraints');
21
21
  var LoadingSpinner = require('@commercetools-uikit/loading-spinner');
22
22
  var selectUtils = require('@commercetools-uikit/select-utils');
23
- var designSystem = require('@commercetools-uikit/design-system');
24
23
  var jsxRuntime = require('@emotion/react/jsx-runtime');
25
24
 
26
25
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -60,8 +59,6 @@ const defaultProps = {
60
59
  };
61
60
  const AsyncSelectInput = props => {
62
61
  const intl = reactIntl.useIntl();
63
- const _useTheme = designSystem.useTheme(),
64
- isNewTheme = _useTheme.isNewTheme;
65
62
  if (!props.isReadOnly) ;
66
63
  selectUtils.warnIfMenuPortalPropsAreMissing({
67
64
  menuPortalZIndex: props.menuPortalZIndex,
@@ -101,8 +98,7 @@ const AsyncSelectInput = props => {
101
98
  iconLeft: props.iconLeft,
102
99
  isMulti: props.isMulti,
103
100
  hasValue: !isEmpty__default["default"](props.value),
104
- controlShouldRenderValue: props.controlShouldRenderValue,
105
- isNewTheme
101
+ controlShouldRenderValue: props.controlShouldRenderValue
106
102
  }),
107
103
  filterOption: props.filterOption
108
104
  // react-select uses "id" (for the container) and "inputId" (for the input),
@@ -233,7 +229,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
233
229
  var AsyncSelectInput$1 = AsyncSelectInput;
234
230
 
235
231
  // NOTE: This string will be replaced on build time with the package version.
236
- var version = "16.1.0";
232
+ var version = "16.1.1";
237
233
 
238
234
  exports["default"] = AsyncSelectInput$1;
239
235
  exports.version = version;
@@ -16,7 +16,6 @@ import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
16
16
  import Constraints from '@commercetools-uikit/constraints';
17
17
  import LoadingSpinner from '@commercetools-uikit/loading-spinner';
18
18
  import { warnIfMenuPortalPropsAreMissing, messages, customComponentsWithIcons, createSelectStyles, DropdownIndicator, ClearIndicator, TagRemove } from '@commercetools-uikit/select-utils';
19
- import { useTheme } from '@commercetools-uikit/design-system';
20
19
  import { jsx } from '@emotion/react/jsx-runtime';
21
20
 
22
21
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -41,8 +40,6 @@ const defaultProps = {
41
40
  };
42
41
  const AsyncSelectInput = props => {
43
42
  const intl = useIntl();
44
- const _useTheme = useTheme(),
45
- isNewTheme = _useTheme.isNewTheme;
46
43
  if (!props.isReadOnly) {
47
44
  process.env.NODE_ENV !== "production" ? warning(typeof props.onChange === 'function', 'AsyncSelectInput: `onChange` is required when input is not read only.') : void 0;
48
45
  }
@@ -84,8 +81,7 @@ const AsyncSelectInput = props => {
84
81
  iconLeft: props.iconLeft,
85
82
  isMulti: props.isMulti,
86
83
  hasValue: !isEmpty(props.value),
87
- controlShouldRenderValue: props.controlShouldRenderValue,
88
- isNewTheme
84
+ controlShouldRenderValue: props.controlShouldRenderValue
89
85
  }),
90
86
  filterOption: props.filterOption
91
87
  // react-select uses "id" (for the container) and "inputId" (for the input),
@@ -229,6 +225,6 @@ AsyncSelectInput.ValueContainer = components.ValueContainer;
229
225
  var AsyncSelectInput$1 = AsyncSelectInput;
230
226
 
231
227
  // NOTE: This string will be replaced on build time with the package version.
232
- var version = "16.1.0";
228
+ var version = "16.1.1";
233
229
 
234
230
  export { AsyncSelectInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/async-select-input",
3
3
  "description": "An input component getting a selection from an asynchronously loaded list from the user.",
4
- "version": "16.1.0",
4
+ "version": "16.1.1",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "16.1.0",
25
- "@commercetools-uikit/design-system": "16.1.0",
26
- "@commercetools-uikit/icons": "16.1.0",
27
- "@commercetools-uikit/loading-spinner": "16.1.0",
28
- "@commercetools-uikit/select-utils": "16.1.0",
29
- "@commercetools-uikit/spacings": "16.1.0",
30
- "@commercetools-uikit/text": "16.1.0",
31
- "@commercetools-uikit/utils": "16.1.0",
24
+ "@commercetools-uikit/constraints": "16.1.1",
25
+ "@commercetools-uikit/design-system": "16.1.1",
26
+ "@commercetools-uikit/icons": "16.1.1",
27
+ "@commercetools-uikit/loading-spinner": "16.1.1",
28
+ "@commercetools-uikit/select-utils": "16.1.1",
29
+ "@commercetools-uikit/spacings": "16.1.1",
30
+ "@commercetools-uikit/text": "16.1.1",
31
+ "@commercetools-uikit/utils": "16.1.1",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
34
  "lodash": "4.17.21",