@commercetools-uikit/async-creatable-select-field 15.9.0 → 15.10.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-field.cjs.dev.js +1 -1
- package/dist/commercetools-uikit-async-creatable-select-field.cjs.prod.js +1 -1
- package/dist/commercetools-uikit-async-creatable-select-field.esm.js +1 -1
- package/dist/declarations/src/async-creatable-select-field.d.ts +7 -7
- package/package.json +8 -8
|
@@ -230,7 +230,7 @@ AsyncCreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
230
230
|
} : {};
|
|
231
231
|
|
|
232
232
|
// NOTE: This string will be replaced on build time with the package version.
|
|
233
|
-
var version = "15.
|
|
233
|
+
var version = "15.10.0";
|
|
234
234
|
|
|
235
235
|
exports["default"] = AsyncCreatableSelectField;
|
|
236
236
|
exports.version = version;
|
|
@@ -201,7 +201,7 @@ AsyncCreatableSelectField.getDerivedStateFromProps = function (props, state) {
|
|
|
201
201
|
AsyncCreatableSelectField.propTypes = {};
|
|
202
202
|
|
|
203
203
|
// NOTE: This string will be replaced on build time with the package version.
|
|
204
|
-
var version = "15.
|
|
204
|
+
var version = "15.10.0";
|
|
205
205
|
|
|
206
206
|
exports["default"] = AsyncCreatableSelectField;
|
|
207
207
|
exports.version = version;
|
|
@@ -204,6 +204,6 @@ AsyncCreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
204
204
|
} : {};
|
|
205
205
|
|
|
206
206
|
// NOTE: This string will be replaced on build time with the package version.
|
|
207
|
-
var version = "15.
|
|
207
|
+
var version = "15.10.0";
|
|
208
208
|
|
|
209
209
|
export { AsyncCreatableSelectField as default, version };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Component, type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
import type { GroupBase, ActionMeta } from 'react-select';
|
|
3
3
|
import type { AsyncCreatableProps } from 'react-select/async-creatable';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
type ReactSelectAsyncCreatableProps = AsyncCreatableProps<unknown, boolean, GroupBase<unknown>>;
|
|
5
|
+
type TErrorRenderer = (key: string, error?: boolean) => ReactNode;
|
|
6
|
+
type TFieldErrors = Record<string, boolean>;
|
|
7
|
+
type TCustomFormErrors<Values> = {
|
|
8
8
|
[K in keyof Values]?: TFieldErrors;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type TCustomEvent = {
|
|
11
11
|
target: {
|
|
12
12
|
id?: string;
|
|
13
13
|
name?: string;
|
|
@@ -15,7 +15,7 @@ declare type TCustomEvent = {
|
|
|
15
15
|
};
|
|
16
16
|
persist: () => void;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
type TAsyncCreatableSelectFieldProps = {
|
|
19
19
|
id?: ReactSelectAsyncCreatableProps['inputId'];
|
|
20
20
|
horizontalConstraint?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
|
|
21
21
|
errors?: TFieldErrors;
|
|
@@ -68,7 +68,7 @@ declare type TAsyncCreatableSelectFieldProps = {
|
|
|
68
68
|
badge?: ReactNode;
|
|
69
69
|
iconLeft?: ReactNode;
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
type TAsyncCreatableSelectFieldState = Pick<TAsyncCreatableSelectFieldProps, 'id'>;
|
|
72
72
|
export default class AsyncCreatableSelectField extends Component<TAsyncCreatableSelectFieldProps, TAsyncCreatableSelectFieldState> {
|
|
73
73
|
static displayName: string;
|
|
74
74
|
static defaultProps: Pick<TAsyncCreatableSelectFieldProps, 'horizontalConstraint'>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/async-creatable-select-field",
|
|
3
3
|
"description": "An input component with validation states and a label 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.10.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.19.0",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.19.1",
|
|
24
|
-
"@commercetools-uikit/async-creatable-select-input": "15.
|
|
25
|
-
"@commercetools-uikit/constraints": "15.
|
|
26
|
-
"@commercetools-uikit/design-system": "15.
|
|
27
|
-
"@commercetools-uikit/field-errors": "15.
|
|
28
|
-
"@commercetools-uikit/field-label": "15.
|
|
29
|
-
"@commercetools-uikit/spacings": "15.
|
|
30
|
-
"@commercetools-uikit/utils": "15.
|
|
24
|
+
"@commercetools-uikit/async-creatable-select-input": "15.10.0",
|
|
25
|
+
"@commercetools-uikit/constraints": "15.10.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "15.10.0",
|
|
27
|
+
"@commercetools-uikit/field-errors": "15.10.0",
|
|
28
|
+
"@commercetools-uikit/field-label": "15.10.0",
|
|
29
|
+
"@commercetools-uikit/spacings": "15.10.0",
|
|
30
|
+
"@commercetools-uikit/utils": "15.10.0",
|
|
31
31
|
"@emotion/react": "^11.4.0",
|
|
32
32
|
"@emotion/styled": "^11.3.0",
|
|
33
33
|
"prop-types": "15.8.1",
|