@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.&#xA;<br>&#xA;[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.&#xA;<br>&#xA;Unknown errors will be forwarded to `renderError` |
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. |
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.&#xA;<br />&#xA;Unknown warnings will be forwarded to `renderWarning` |
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. |
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)&#xA;<br>&#xA;[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&#xA;<br>&#xA;[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)&#xA;<br>&#xA;[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).&#xA;<br>&#xA;Gets called with `{ inputValue: String }`. `inputValue` will be an empty string when no search text is present.&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props#creatable-props) |
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.&#xA;<br>&#xA;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`. |
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.&#xA;<br>&#xA;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&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props#creatable-props) |
85
85
  | `onInputChange` | `CreatableProps['onInputChange']` | | | Handle change events on the input&#xA;<br>&#xA;[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-onInfoButtonClick) | | | Function called when info button is pressed.&#xA;<br>&#xA;Info button will only be visible when this prop is passed. |
102
+ | `onInfoButtonClick` | `Function`<br/>[See signature.](#signature-oninfobuttonclick) | | | Function called when info button is pressed.&#xA;<br>&#xA;Info button will only be visible when this prop is passed. |
103
103
  | `hintIcon` | `ReactElement` | | | Icon to be displayed beside the hint text.&#xA;<br>&#xA;Will only get rendered when `hint` is passed as well. |
104
104
  | `badge` | `ReactNode` | | | Badge to be displayed beside the label.&#xA;<br>&#xA;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.4";
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.4";
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.4";
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",
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.4",
25
- "@commercetools-uikit/creatable-select-input": "19.22.4",
26
- "@commercetools-uikit/design-system": "19.22.4",
27
- "@commercetools-uikit/field-errors": "19.22.4",
28
- "@commercetools-uikit/field-label": "19.22.4",
29
- "@commercetools-uikit/field-warnings": "19.22.4",
30
- "@commercetools-uikit/spacings": "19.22.4",
31
- "@commercetools-uikit/utils": "19.22.4",
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",