@commercetools-uikit/creatable-select-field 19.22.4 → 19.22.6
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/README.md
CHANGED
|
@@ -54,9 +54,9 @@ export default Example;
|
|
|
54
54
|
| `id` | `CreatableProps['inputId']` | | | Used as HTML id property. An id is auto-generated when it is not specified.
<br>
[Props from React select was used](https://react-select.com/props#creatable-props) |
|
|
55
55
|
| `horizontalConstraint` | `union`<br/>Possible values:<br/>`, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto'` | | `'scale'` | Horizontal size limit of the input fields. |
|
|
56
56
|
| `errors` | `Record` | | | A map of errors. Error messages for known errors are rendered automatically.
<br>
Unknown errors will be forwarded to `renderError` |
|
|
57
|
-
| `renderError` | `Function`<br/>[See signature.](#signature-
|
|
57
|
+
| `renderError` | `Function`<br/>[See signature.](#signature-rendererror) | | | Called with custom errors. This function can return a message which will be wrapped in an ErrorMessage. It can also return null to show no error. |
|
|
58
58
|
| `warnings` | `Record` | | | A map of warnings. Warning messages for known warnings are rendered automatically.
<br />
Unknown warnings will be forwarded to `renderWarning` |
|
|
59
|
-
| `renderWarning` | `Function`<br/>[See signature.](#signature-
|
|
59
|
+
| `renderWarning` | `Function`<br/>[See signature.](#signature-renderwarning) | | | Called with custom warnings. This function can return a message which will be wrapped in an WarningMessage. It can also return null to show no warning. |
|
|
60
60
|
| `isRequired` | `boolean` | | | Indicates if the value is required. Shows an the "required asterisk" if so. |
|
|
61
61
|
| `touched` | `union`<br/>Possible values:<br/>`boolean[] , boolean` | | | Indicates whether the field was touched. Errors will only be shown when the field was touched. |
|
|
62
62
|
| `aria-label` | `CreatableProps['aria-label']` | | | Aria label (for assistive tech)
<br>
[Props from React select was used](https://react-select.com/props#creatable-props) |
|
|
@@ -79,8 +79,8 @@ export default Example;
|
|
|
79
79
|
| `menuShouldBlockScroll` | `CreatableProps['menuShouldBlockScroll']` | | | whether the menu should block scroll while open
<br>
[Props from React select was used](https://react-select.com/props#creatable-props) |
|
|
80
80
|
| `name` | `CreatableProps['name']` | | | Name of the HTML Input (optional - without this, no input will be rendered)
<br>
[Props from React select was used](https://react-select.com/props#creatable-props) |
|
|
81
81
|
| `noOptionsMessage` | `CreatableProps['noOptionsMessage']` | | | Can be used to render a custom value when there are no options (either because of no search results, or all options have been used, or there were none in the first place).
<br>
Gets called with `{ inputValue: String }`. `inputValue` will be an empty string when no search text is present.
<br>
[Props from React select was used](https://react-select.com/props#creatable-props) |
|
|
82
|
-
| `onBlur` | `Function`<br/>[See signature.](#signature-
|
|
83
|
-
| `onChange` | `Function`<br/>[See signature.](#signature-
|
|
82
|
+
| `onBlur` | `Function`<br/>[See signature.](#signature-onblur) | | | Handle blur events on the control |
|
|
83
|
+
| `onChange` | `Function`<br/>[See signature.](#signature-onchange) | | | Called with a fake event when value changes.
<br>
The event's `target.name` will be the name supplied in props. The event's `target.value` will hold the value. The value will be the selected option, or an array of options in case `isMulti` is `true`. |
|
|
84
84
|
| `onFocus` | `CreatableProps['onFocus']` | | | Handle focus events on the control
<br>
[Props from React select was used](https://react-select.com/props#creatable-props) |
|
|
85
85
|
| `onInputChange` | `CreatableProps['onInputChange']` | | | Handle change events on the input
<br>
[Props from React select was used](https://react-select.com/props#creatable-props) |
|
|
86
86
|
| `options` | `union`<br/>Possible values:<br/>`TValue[] , { options: TValue[] }[]` | | | Array of options that populate the select menu |
|
|
@@ -99,7 +99,7 @@ export default Example;
|
|
|
99
99
|
| `title` | `union`<br/>Possible values:<br/>`string , ReactNode` | ✅ | | Title of the label |
|
|
100
100
|
| `hint` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Hint for the label. Provides a supplementary but important information regarding the behaviour of the input (e.g warn about uniqueness of a field, when it can only be set once), whereas `description` can describe it in more depth. Can also receive a `hintIcon`. |
|
|
101
101
|
| `description` | `union`<br/>Possible values:<br/>`string , ReactNode` | | | Provides a description for the title. |
|
|
102
|
-
| `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-
|
|
102
|
+
| `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-oninfobuttonclick) | | | Function called when info button is pressed.
<br>
Info button will only be visible when this prop is passed. |
|
|
103
103
|
| `hintIcon` | `ReactElement` | | | Icon to be displayed beside the hint text.
<br>
Will only get rendered when `hint` is passed as well. |
|
|
104
104
|
| `badge` | `ReactNode` | | | Badge to be displayed beside the label.
<br>
Might be used to display additional information about the content of the field (E.g verified email) |
|
|
105
105
|
| `iconLeft` | `ReactNode` | | | Icon to display on the left of the placeholder text and selected value. Has no effect when isMulti is enabled. |
|
|
@@ -226,7 +226,7 @@ CreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
226
226
|
} : {};
|
|
227
227
|
|
|
228
228
|
// NOTE: This string will be replaced on build time with the package version.
|
|
229
|
-
var version = "19.22.
|
|
229
|
+
var version = "19.22.6";
|
|
230
230
|
|
|
231
231
|
exports["default"] = CreatableSelectField;
|
|
232
232
|
exports.version = version;
|
|
@@ -185,7 +185,7 @@ CreatableSelectField.getDerivedStateFromProps = (props, state) => ({
|
|
|
185
185
|
CreatableSelectField.propTypes = {};
|
|
186
186
|
|
|
187
187
|
// NOTE: This string will be replaced on build time with the package version.
|
|
188
|
-
var version = "19.22.
|
|
188
|
+
var version = "19.22.6";
|
|
189
189
|
|
|
190
190
|
exports["default"] = CreatableSelectField;
|
|
191
191
|
exports.version = version;
|
|
@@ -200,6 +200,6 @@ CreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
200
200
|
} : {};
|
|
201
201
|
|
|
202
202
|
// NOTE: This string will be replaced on build time with the package version.
|
|
203
|
-
var version = "19.22.
|
|
203
|
+
var version = "19.22.6";
|
|
204
204
|
|
|
205
205
|
export { CreatableSelectField as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/creatable-select-field",
|
|
3
3
|
"description": "A controlled input component with validation states and a label getting a selection from the user, and where options can also be created by the user.",
|
|
4
|
-
"version": "19.22.
|
|
4
|
+
"version": "19.22.6",
|
|
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": "19.22.
|
|
25
|
-
"@commercetools-uikit/creatable-select-input": "19.22.
|
|
26
|
-
"@commercetools-uikit/design-system": "19.22.
|
|
27
|
-
"@commercetools-uikit/field-errors": "19.22.
|
|
28
|
-
"@commercetools-uikit/field-label": "19.22.
|
|
29
|
-
"@commercetools-uikit/field-warnings": "19.22.
|
|
30
|
-
"@commercetools-uikit/spacings": "19.22.
|
|
31
|
-
"@commercetools-uikit/utils": "19.22.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.22.6",
|
|
25
|
+
"@commercetools-uikit/creatable-select-input": "19.22.6",
|
|
26
|
+
"@commercetools-uikit/design-system": "19.22.6",
|
|
27
|
+
"@commercetools-uikit/field-errors": "19.22.6",
|
|
28
|
+
"@commercetools-uikit/field-label": "19.22.6",
|
|
29
|
+
"@commercetools-uikit/field-warnings": "19.22.6",
|
|
30
|
+
"@commercetools-uikit/spacings": "19.22.6",
|
|
31
|
+
"@commercetools-uikit/utils": "19.22.6",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"prop-types": "15.8.1",
|