@commercetools-uikit/async-creatable-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.
- package/dist/commercetools-uikit-async-creatable-select-input.cjs.dev.js +2 -4
- package/dist/commercetools-uikit-async-creatable-select-input.cjs.prod.js +2 -4
- package/dist/commercetools-uikit-async-creatable-select-input.esm.js +2 -4
- package/dist/declarations/src/async-creatable-select-input.d.ts +11 -11
- package/package.json +10 -10
|
@@ -15,7 +15,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
|
|
|
15
15
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
16
16
|
var reactIntl = require('react-intl');
|
|
17
17
|
var isEmpty = require('lodash/isEmpty');
|
|
18
|
-
var react = require('@emotion/react');
|
|
19
18
|
var reactSelect = require('react-select');
|
|
20
19
|
var AsyncCreatableSelect = require('react-select/async-creatable');
|
|
21
20
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
@@ -68,7 +67,6 @@ var defaultProps = {
|
|
|
68
67
|
|
|
69
68
|
var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
70
69
|
var intl = reactIntl.useIntl();
|
|
71
|
-
var theme = react.useTheme();
|
|
72
70
|
var placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder);
|
|
73
71
|
|
|
74
72
|
if (!props.isReadOnly) {
|
|
@@ -107,7 +105,7 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
107
105
|
iconLeft: props.iconLeft,
|
|
108
106
|
isMulti: props.isMulti,
|
|
109
107
|
hasValue: !isEmpty__default["default"](props.value)
|
|
110
|
-
}
|
|
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.
|
|
@@ -259,7 +257,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
259
257
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
260
258
|
|
|
261
259
|
// NOTE: This string will be replaced on build time with the package version.
|
|
262
|
-
var version = "15.
|
|
260
|
+
var version = "15.4.0";
|
|
263
261
|
|
|
264
262
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
265
263
|
exports.version = version;
|
|
@@ -15,7 +15,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
|
|
|
15
15
|
var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
16
16
|
var reactIntl = require('react-intl');
|
|
17
17
|
var isEmpty = require('lodash/isEmpty');
|
|
18
|
-
var react = require('@emotion/react');
|
|
19
18
|
var reactSelect = require('react-select');
|
|
20
19
|
var AsyncCreatableSelect = require('react-select/async-creatable');
|
|
21
20
|
var Constraints = require('@commercetools-uikit/constraints');
|
|
@@ -66,7 +65,6 @@ var defaultProps = {
|
|
|
66
65
|
|
|
67
66
|
var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
68
67
|
var intl = reactIntl.useIntl();
|
|
69
|
-
var theme = react.useTheme();
|
|
70
68
|
var placeholder = props.placeholder || intl.formatMessage(selectUtils.messages.placeholder);
|
|
71
69
|
|
|
72
70
|
if (!props.isReadOnly) ;
|
|
@@ -101,7 +99,7 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
101
99
|
iconLeft: props.iconLeft,
|
|
102
100
|
isMulti: props.isMulti,
|
|
103
101
|
hasValue: !isEmpty__default["default"](props.value)
|
|
104
|
-
}
|
|
102
|
+
}),
|
|
105
103
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
106
104
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
107
105
|
// instead.
|
|
@@ -242,7 +240,7 @@ AsyncCreatableSelectInput.ValueContainer = reactSelect.components.ValueContainer
|
|
|
242
240
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
243
241
|
|
|
244
242
|
// NOTE: This string will be replaced on build time with the package version.
|
|
245
|
-
var version = "15.
|
|
243
|
+
var version = "15.4.0";
|
|
246
244
|
|
|
247
245
|
exports["default"] = AsyncCreatableSelectInput$1;
|
|
248
246
|
exports.version = version;
|
|
@@ -11,7 +11,6 @@ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/obje
|
|
|
11
11
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
12
12
|
import { useIntl } from 'react-intl';
|
|
13
13
|
import isEmpty from 'lodash/isEmpty';
|
|
14
|
-
import { useTheme } from '@emotion/react';
|
|
15
14
|
import { components } from 'react-select';
|
|
16
15
|
import AsyncCreatableSelect from 'react-select/async-creatable';
|
|
17
16
|
import Constraints from '@commercetools-uikit/constraints';
|
|
@@ -47,7 +46,6 @@ var defaultProps = {
|
|
|
47
46
|
|
|
48
47
|
var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
49
48
|
var intl = useIntl();
|
|
50
|
-
var theme = useTheme();
|
|
51
49
|
var placeholder = props.placeholder || intl.formatMessage(messages.placeholder);
|
|
52
50
|
|
|
53
51
|
if (!props.isReadOnly) {
|
|
@@ -86,7 +84,7 @@ var AsyncCreatableSelectInput = function AsyncCreatableSelectInput(props) {
|
|
|
86
84
|
iconLeft: props.iconLeft,
|
|
87
85
|
isMulti: props.isMulti,
|
|
88
86
|
hasValue: !isEmpty(props.value)
|
|
89
|
-
}
|
|
87
|
+
}),
|
|
90
88
|
filterOption: props.filterOption // react-select uses "id" (for the container) and "inputId" (for the input),
|
|
91
89
|
// but we use "id" (for the input) and "containerId" (for the container)
|
|
92
90
|
// instead.
|
|
@@ -238,6 +236,6 @@ AsyncCreatableSelectInput.ValueContainer = components.ValueContainer;
|
|
|
238
236
|
var AsyncCreatableSelectInput$1 = AsyncCreatableSelectInput;
|
|
239
237
|
|
|
240
238
|
// NOTE: This string will be replaced on build time with the package version.
|
|
241
|
-
var version = "15.
|
|
239
|
+
var version = "15.4.0";
|
|
242
240
|
|
|
243
241
|
export { AsyncCreatableSelectInput$1 as default, version };
|
|
@@ -88,17 +88,17 @@ declare const AsyncCreatableSelectInput: {
|
|
|
88
88
|
displayName: string;
|
|
89
89
|
};
|
|
90
90
|
LoadingMessage: {
|
|
91
|
-
<
|
|
91
|
+
<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;
|
|
92
92
|
defaultProps: {
|
|
93
93
|
children: string;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
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;
|
|
97
97
|
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;
|
|
98
|
-
MenuPortal:
|
|
99
|
-
MultiValue: <
|
|
100
|
-
MultiValueContainer: <
|
|
101
|
-
MultiValueLabel: <
|
|
98
|
+
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;
|
|
99
|
+
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;
|
|
100
|
+
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;
|
|
101
|
+
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;
|
|
102
102
|
MultiValueRemove: {
|
|
103
103
|
(props: {
|
|
104
104
|
selectProps: {
|
|
@@ -108,15 +108,15 @@ declare const AsyncCreatableSelectInput: {
|
|
|
108
108
|
displayName: string;
|
|
109
109
|
};
|
|
110
110
|
NoOptionsMessage: {
|
|
111
|
-
<
|
|
111
|
+
<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;
|
|
112
112
|
defaultProps: {
|
|
113
113
|
children: string;
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
-
Option: <
|
|
117
|
-
Placeholder: <
|
|
118
|
-
SelectContainer: <
|
|
119
|
-
SingleValue: <
|
|
120
|
-
ValueContainer: <
|
|
116
|
+
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;
|
|
117
|
+
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;
|
|
118
|
+
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;
|
|
119
|
+
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;
|
|
120
|
+
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;
|
|
121
121
|
};
|
|
122
122
|
export default AsyncCreatableSelectInput;
|
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": "15.
|
|
4
|
+
"version": "15.4.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.19.0",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.19.1",
|
|
24
|
-
"@commercetools-uikit/constraints": "15.
|
|
25
|
-
"@commercetools-uikit/design-system": "15.
|
|
26
|
-
"@commercetools-uikit/icons": "15.
|
|
27
|
-
"@commercetools-uikit/loading-spinner": "15.
|
|
28
|
-
"@commercetools-uikit/select-utils": "15.
|
|
29
|
-
"@commercetools-uikit/spacings": "15.
|
|
30
|
-
"@commercetools-uikit/text": "15.
|
|
31
|
-
"@commercetools-uikit/utils": "15.
|
|
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/is-prop-valid": "1.2.0",
|
|
33
33
|
"@emotion/react": "^11.4.0",
|
|
34
34
|
"@emotion/styled": "^11.3.0",
|
|
35
35
|
"lodash": "4.17.21",
|
|
36
36
|
"prop-types": "15.8.1",
|
|
37
|
-
"react-select": "5.
|
|
37
|
+
"react-select": "5.5.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"react": "17.0.2",
|