@commercetools-uikit/async-creatable-select-input 16.1.0 → 16.2.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.
@@ -21,7 +21,6 @@ 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
23
  var utils = require('@commercetools-uikit/utils');
24
- var designSystem = require('@commercetools-uikit/design-system');
25
24
  var jsxRuntime = require('@emotion/react/jsx-runtime');
26
25
 
27
26
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -62,8 +61,6 @@ const defaultProps = {
62
61
  };
63
62
  const AsyncCreatableSelectInput = props => {
64
63
  const intl = reactIntl.useIntl();
65
- const _useTheme = designSystem.useTheme(),
66
- isNewTheme = _useTheme.isNewTheme;
67
64
  const placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder);
68
65
  if (!props.isReadOnly) {
69
66
  process.env.NODE_ENV !== "production" ? utils.warning(typeof props.onChange === 'function', 'AsyncCreatableSelectInput: `onChange` is required when input is not read only.') : void 0;
@@ -101,8 +98,7 @@ const AsyncCreatableSelectInput = props => {
101
98
  isReadOnly: props.isReadOnly,
102
99
  iconLeft: props.iconLeft,
103
100
  isMulti: props.isMulti,
104
- hasValue: !isEmpty__default["default"](props.value),
105
- isNewTheme
101
+ hasValue: !isEmpty__default["default"](props.value)
106
102
  }),
107
103
  filterOption: props.filterOption
108
104
  // react-select uses "id" (for the container) and "inputId" (for the input),
@@ -252,7 +248,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
252
248
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
253
249
 
254
250
  // NOTE: This string will be replaced on build time with the package version.
255
- var version = "16.1.0";
251
+ var version = "16.2.0";
256
252
 
257
253
  exports["default"] = AsyncCreatableSelectInput$1;
258
254
  exports.version = version;
@@ -21,7 +21,6 @@ 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
23
  var utils = require('@commercetools-uikit/utils');
24
- var designSystem = require('@commercetools-uikit/design-system');
25
24
  var jsxRuntime = require('@emotion/react/jsx-runtime');
26
25
 
27
26
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
@@ -60,8 +59,6 @@ const defaultProps = {
60
59
  };
61
60
  const AsyncCreatableSelectInput = props => {
62
61
  const intl = reactIntl.useIntl();
63
- const _useTheme = designSystem.useTheme(),
64
- isNewTheme = _useTheme.isNewTheme;
65
62
  const placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder);
66
63
  if (!props.isReadOnly) ;
67
64
  if (props.isMulti) ;
@@ -95,8 +92,7 @@ const AsyncCreatableSelectInput = props => {
95
92
  isReadOnly: props.isReadOnly,
96
93
  iconLeft: props.iconLeft,
97
94
  isMulti: props.isMulti,
98
- hasValue: !isEmpty__default["default"](props.value),
99
- isNewTheme
95
+ hasValue: !isEmpty__default["default"](props.value)
100
96
  }),
101
97
  filterOption: props.filterOption
102
98
  // react-select uses "id" (for the container) and "inputId" (for the input),
@@ -235,7 +231,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
235
231
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
236
232
 
237
233
  // NOTE: This string will be replaced on build time with the package version.
238
- var version = "16.1.0";
234
+ var version = "16.2.0";
239
235
 
240
236
  exports["default"] = AsyncCreatableSelectInput$1;
241
237
  exports.version = version;
@@ -17,7 +17,6 @@ import Constraints from '@commercetools-uikit/constraints';
17
17
  import LoadingSpinner from '@commercetools-uikit/loading-spinner';
18
18
  import { messages, warnIfMenuPortalPropsAreMissing, customComponentsWithIcons, createSelectStyles, DropdownIndicator, ClearIndicator, TagRemove } from '@commercetools-uikit/select-utils';
19
19
  import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
20
- import { useTheme } from '@commercetools-uikit/design-system';
21
20
  import { jsx } from '@emotion/react/jsx-runtime';
22
21
 
23
22
  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 AsyncCreatableSelectInput = props => {
43
42
  const intl = useIntl();
44
- const _useTheme = useTheme(),
45
- isNewTheme = _useTheme.isNewTheme;
46
43
  const placeholder = props.placeholder || intl.formatMessage(messages.placeholder);
47
44
  if (!props.isReadOnly) {
48
45
  process.env.NODE_ENV !== "production" ? warning(typeof props.onChange === 'function', 'AsyncCreatableSelectInput: `onChange` is required when input is not read only.') : void 0;
@@ -80,8 +77,7 @@ const AsyncCreatableSelectInput = props => {
80
77
  isReadOnly: props.isReadOnly,
81
78
  iconLeft: props.iconLeft,
82
79
  isMulti: props.isMulti,
83
- hasValue: !isEmpty(props.value),
84
- isNewTheme
80
+ hasValue: !isEmpty(props.value)
85
81
  }),
86
82
  filterOption: props.filterOption
87
83
  // react-select uses "id" (for the container) and "inputId" (for the input),
@@ -231,6 +227,6 @@ AsyncCreatableSelectInput.ValueContainer = components.ValueContainer;
231
227
  var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
232
228
 
233
229
  // NOTE: This string will be replaced on build time with the package version.
234
- var version = "16.1.0";
230
+ var version = "16.2.0";
235
231
 
236
232
  export { AsyncCreatableSelectInput$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/async-creatable-select-input",
3
3
  "description": "An input component getting a selection from an asynchronously loaded list from the user, and where options can be created by the user.",
4
- "version": "16.1.0",
4
+ "version": "16.2.0",
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.2.0",
25
+ "@commercetools-uikit/design-system": "16.2.0",
26
+ "@commercetools-uikit/icons": "16.2.0",
27
+ "@commercetools-uikit/loading-spinner": "16.2.0",
28
+ "@commercetools-uikit/select-utils": "16.2.0",
29
+ "@commercetools-uikit/spacings": "16.2.0",
30
+ "@commercetools-uikit/text": "16.2.0",
31
+ "@commercetools-uikit/utils": "16.2.0",
32
32
  "@emotion/is-prop-valid": "1.2.1",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",