@commercetools-uikit/async-select-input 15.2.4 → 15.4.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.
@@ -14,7 +14,6 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  var _pt = require('prop-types');
15
15
  var reactIntl = require('react-intl');
16
16
  var isEmpty = require('lodash/isEmpty');
17
- var react = require('@emotion/react');
18
17
  var reactSelect = require('react-select');
19
18
  var AsyncSelect = require('react-select/async');
20
19
  var utils = require('@commercetools-uikit/utils');
@@ -65,7 +64,6 @@ var defaultProps = {
65
64
  };
66
65
 
67
66
  var AsyncSelectInput = function AsyncSelectInput(props) {
68
- var theme = react.useTheme();
69
67
  var intl = reactIntl.useIntl();
70
68
 
71
69
  if (!props.isReadOnly) {
@@ -110,7 +108,7 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
110
108
  iconLeft: props.iconLeft,
111
109
  isMulti: props.isMulti,
112
110
  hasValue: !isEmpty__default["default"](props.value)
113
- }, theme),
111
+ }),
114
112
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
115
113
  // but we use "id" (for the input) and "containerId" (for the container)
116
114
  // instead.
@@ -254,7 +252,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
254
252
  var AsyncSelectInput$1 = AsyncSelectInput;
255
253
 
256
254
  // NOTE: This string will be replaced on build time with the package version.
257
- var version = "15.2.4";
255
+ var version = "15.4.0";
258
256
 
259
257
  exports["default"] = AsyncSelectInput$1;
260
258
  exports.version = version;
@@ -14,7 +14,6 @@ var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  require('prop-types');
15
15
  var reactIntl = require('react-intl');
16
16
  var isEmpty = require('lodash/isEmpty');
17
- var react = require('@emotion/react');
18
17
  var reactSelect = require('react-select');
19
18
  var AsyncSelect = require('react-select/async');
20
19
  var utils = require('@commercetools-uikit/utils');
@@ -64,7 +63,6 @@ var defaultProps = {
64
63
  };
65
64
 
66
65
  var AsyncSelectInput = function AsyncSelectInput(props) {
67
- var theme = react.useTheme();
68
66
  var intl = reactIntl.useIntl();
69
67
 
70
68
  if (!props.isReadOnly) ;
@@ -107,7 +105,7 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
107
105
  iconLeft: props.iconLeft,
108
106
  isMulti: props.isMulti,
109
107
  hasValue: !isEmpty__default["default"](props.value)
110
- }, theme),
108
+ }),
111
109
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
112
110
  // but we use "id" (for the input) and "containerId" (for the container)
113
111
  // instead.
@@ -238,7 +236,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
238
236
  var AsyncSelectInput$1 = AsyncSelectInput;
239
237
 
240
238
  // NOTE: This string will be replaced on build time with the package version.
241
- var version = "15.2.4";
239
+ var version = "15.4.0";
242
240
 
243
241
  exports["default"] = AsyncSelectInput$1;
244
242
  exports.version = version;
@@ -10,7 +10,6 @@ import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import _pt from 'prop-types';
11
11
  import { useIntl } from 'react-intl';
12
12
  import isEmpty from 'lodash/isEmpty';
13
- import { useTheme } from '@emotion/react';
14
13
  import { components } from 'react-select';
15
14
  import AsyncSelect from 'react-select/async';
16
15
  import { warning, filterDataAttributes } from '@commercetools-uikit/utils';
@@ -45,7 +44,6 @@ var defaultProps = {
45
44
  };
46
45
 
47
46
  var AsyncSelectInput = function AsyncSelectInput(props) {
48
- var theme = useTheme();
49
47
  var intl = useIntl();
50
48
 
51
49
  if (!props.isReadOnly) {
@@ -90,7 +88,7 @@ var AsyncSelectInput = function AsyncSelectInput(props) {
90
88
  iconLeft: props.iconLeft,
91
89
  isMulti: props.isMulti,
92
90
  hasValue: !isEmpty(props.value)
93
- }, theme),
91
+ }),
94
92
  filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
95
93
  // but we use "id" (for the input) and "containerId" (for the container)
96
94
  // instead.
@@ -234,6 +232,6 @@ AsyncSelectInput.ValueContainer = components.ValueContainer;
234
232
  var AsyncSelectInput$1 = AsyncSelectInput;
235
233
 
236
234
  // NOTE: This string will be replaced on build time with the package version.
237
- var version = "15.2.4";
235
+ var version = "15.4.0";
238
236
 
239
237
  export { AsyncSelectInput$1 as default, version };
@@ -83,17 +83,17 @@ declare const AsyncSelectInput: {
83
83
  displayName: string;
84
84
  };
85
85
  LoadingMessage: {
86
- <Option_11, IsMulti_11 extends boolean, Group_11 extends GroupBase<Option_11>>(props: import("react-select").NoticeProps<Option_11, IsMulti_11, Group_11>): import("@emotion/react").jsx.JSX.Element;
86
+ <Option_12, IsMulti_12 extends boolean, Group_12 extends GroupBase<Option_12>>(props: import("react-select").NoticeProps<Option_12, IsMulti_12, Group_12>): import("@emotion/react").jsx.JSX.Element;
87
87
  defaultProps: {
88
88
  children: string;
89
89
  };
90
90
  };
91
91
  Menu: <Option_9, IsMulti_9 extends boolean, Group_9 extends GroupBase<Option_9>>(props: import("react-select").MenuProps<Option_9, IsMulti_9, Group_9>) => import("@emotion/react").jsx.JSX.Element;
92
92
  MenuList: <Option_10, IsMulti_10 extends boolean, Group_10 extends GroupBase<Option_10>>(props: import("react-select").MenuListProps<Option_10, IsMulti_10, Group_10>) => import("@emotion/react").jsx.JSX.Element;
93
- MenuPortal: typeof import("react-select/dist/declarations/src/components/Menu").MenuPortal;
94
- MultiValue: <Option_13, IsMulti_13 extends boolean, Group_13 extends GroupBase<Option_13>>(props: import("react-select").MultiValueProps<Option_13, IsMulti_13, Group_13>) => import("@emotion/react").jsx.JSX.Element;
95
- MultiValueContainer: <Option_14, IsMulti_14 extends boolean, Group_14 extends GroupBase<Option_14>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_14, IsMulti_14, Group_14>) => import("@emotion/react").jsx.JSX.Element;
96
- MultiValueLabel: <Option_14_1, IsMulti_14_1 extends boolean, Group_14_1 extends GroupBase<Option_14_1>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_14_1, IsMulti_14_1, Group_14_1>) => import("@emotion/react").jsx.JSX.Element;
93
+ MenuPortal: <Option_11, IsMulti_11 extends boolean, Group_11 extends GroupBase<Option_11>>({ appendTo, children, className, controlElement, cx, innerProps, menuPlacement, menuPosition, getStyles, }: import("react-select/dist/declarations/src/components/Menu").MenuPortalProps<Option_11, IsMulti_11, Group_11>) => import("@emotion/react").jsx.JSX.Element | null;
94
+ MultiValue: <Option_14, IsMulti_14 extends boolean, Group_14 extends GroupBase<Option_14>>(props: import("react-select").MultiValueProps<Option_14, IsMulti_14, Group_14>) => import("@emotion/react").jsx.JSX.Element;
95
+ MultiValueContainer: <Option_15, IsMulti_15 extends boolean, Group_15 extends GroupBase<Option_15>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_15, IsMulti_15, Group_15>) => import("@emotion/react").jsx.JSX.Element;
96
+ MultiValueLabel: <Option_15_1, IsMulti_15_1 extends boolean, Group_15_1 extends GroupBase<Option_15_1>>({ children, innerProps, }: import("react-select").MultiValueGenericProps<Option_15_1, IsMulti_15_1, Group_15_1>) => import("@emotion/react").jsx.JSX.Element;
97
97
  MultiValueRemove: {
98
98
  (props: {
99
99
  selectProps: {
@@ -103,15 +103,15 @@ declare const AsyncSelectInput: {
103
103
  displayName: string;
104
104
  };
105
105
  NoOptionsMessage: {
106
- <Option_12, IsMulti_12 extends boolean, Group_12 extends GroupBase<Option_12>>(props: import("react-select").NoticeProps<Option_12, IsMulti_12, Group_12>): import("@emotion/react").jsx.JSX.Element;
106
+ <Option_13, IsMulti_13 extends boolean, Group_13 extends GroupBase<Option_13>>(props: import("react-select").NoticeProps<Option_13, IsMulti_13, Group_13>): import("@emotion/react").jsx.JSX.Element;
107
107
  defaultProps: {
108
108
  children: string;
109
109
  };
110
110
  };
111
- Option: <Option_15, IsMulti_15 extends boolean, Group_15 extends GroupBase<Option_15>>(props: import("react-select").OptionProps<Option_15, IsMulti_15, Group_15>) => import("@emotion/react").jsx.JSX.Element;
112
- Placeholder: <Option_16, IsMulti_16 extends boolean, Group_16 extends GroupBase<Option_16>>(props: import("react-select").PlaceholderProps<Option_16, IsMulti_16, Group_16>) => import("@emotion/react").jsx.JSX.Element;
113
- SelectContainer: <Option_17, IsMulti_17 extends boolean, Group_17 extends GroupBase<Option_17>>(props: import("react-select").ContainerProps<Option_17, IsMulti_17, Group_17>) => import("@emotion/react").jsx.JSX.Element;
114
- SingleValue: <Option_18, IsMulti_18 extends boolean, Group_18 extends GroupBase<Option_18>>(props: import("react-select").SingleValueProps<Option_18, IsMulti_18, Group_18>) => import("@emotion/react").jsx.JSX.Element;
115
- ValueContainer: <Option_19, IsMulti_19 extends boolean, Group_19 extends GroupBase<Option_19>>(props: import("react-select").ValueContainerProps<Option_19, IsMulti_19, Group_19>) => import("@emotion/react").jsx.JSX.Element;
111
+ Option: <Option_16, IsMulti_16 extends boolean, Group_16 extends GroupBase<Option_16>>(props: import("react-select").OptionProps<Option_16, IsMulti_16, Group_16>) => import("@emotion/react").jsx.JSX.Element;
112
+ Placeholder: <Option_17, IsMulti_17 extends boolean, Group_17 extends GroupBase<Option_17>>(props: import("react-select").PlaceholderProps<Option_17, IsMulti_17, Group_17>) => import("@emotion/react").jsx.JSX.Element;
113
+ SelectContainer: <Option_18, IsMulti_18 extends boolean, Group_18 extends GroupBase<Option_18>>(props: import("react-select").ContainerProps<Option_18, IsMulti_18, Group_18>) => import("@emotion/react").jsx.JSX.Element;
114
+ SingleValue: <Option_19, IsMulti_19 extends boolean, Group_19 extends GroupBase<Option_19>>(props: import("react-select").SingleValueProps<Option_19, IsMulti_19, Group_19>) => import("@emotion/react").jsx.JSX.Element;
115
+ ValueContainer: <Option_20, IsMulti_20 extends boolean, Group_20 extends GroupBase<Option_20>>(props: import("react-select").ValueContainerProps<Option_20, IsMulti_20, Group_20>) => import("@emotion/react").jsx.JSX.Element;
116
116
  };
117
117
  export default AsyncSelectInput;
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": "15.2.4",
4
+ "version": "15.4.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,19 +21,19 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.19.0",
23
23
  "@babel/runtime-corejs3": "^7.19.1",
24
- "@commercetools-uikit/constraints": "15.2.4",
25
- "@commercetools-uikit/design-system": "15.2.4",
26
- "@commercetools-uikit/icons": "15.2.4",
27
- "@commercetools-uikit/loading-spinner": "15.2.4",
28
- "@commercetools-uikit/select-utils": "15.2.4",
29
- "@commercetools-uikit/spacings": "15.2.4",
30
- "@commercetools-uikit/text": "15.2.4",
31
- "@commercetools-uikit/utils": "15.2.4",
24
+ "@commercetools-uikit/constraints": "15.4.0",
25
+ "@commercetools-uikit/design-system": "15.4.0",
26
+ "@commercetools-uikit/icons": "15.4.0",
27
+ "@commercetools-uikit/loading-spinner": "15.4.0",
28
+ "@commercetools-uikit/select-utils": "15.4.0",
29
+ "@commercetools-uikit/spacings": "15.4.0",
30
+ "@commercetools-uikit/text": "15.4.0",
31
+ "@commercetools-uikit/utils": "15.4.0",
32
32
  "@emotion/react": "^11.4.0",
33
33
  "@emotion/styled": "^11.3.0",
34
34
  "lodash": "4.17.21",
35
35
  "prop-types": "15.8.1",
36
- "react-select": "5.4.0"
36
+ "react-select": "5.5.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "react": "17.0.2",