@commercetools-uikit/select-input 13.0.3 → 13.0.4
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
|
@@ -67,6 +67,8 @@ export default Example;
|
|
|
67
67
|
| `iconLeft` | `ReactNode` | | | Icon to display on the left of the placeholder text and selected value. Has no effect when isMulti is enabled. |
|
|
68
68
|
| `aria-label` | `ReactSelectProps['aria-label']` | | | Aria label (for assistive tech)
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
69
69
|
| `aria-labelledby` | `ReactSelectProps['aria-labelledby']` | | | HTML ID of an element that should be used as the label (for assistive tech)
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
70
|
+
| `aria-invalid` | `ReactSelectProps['aria-invalid']` | | | Indicate if the value entered in the input is invalid.
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
71
|
+
| `aria-errormessage` | `ReactSelectProps['aria-errormessage']` | | | HTML ID of an element containing an error message related to the input.
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
70
72
|
| `isAutofocussed` | `boolean` | | | Focus the control when it is mounted |
|
|
71
73
|
| `backspaceRemovesValue` | `ReactSelectProps['backspaceRemovesValue']` | | | Remove the currently focused option when the user presses backspace
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
72
74
|
| `components` | `ReactSelectProps['components']` | | | Map of components to overwrite the default ones, see what components you can override
<br>
[Props from React select was used](https://react-select.com/props) |
|
|
@@ -89,6 +89,8 @@ var SelectInput = function SelectInput(props) {
|
|
|
89
89
|
children: jsxRuntime.jsx(Select__default["default"], {
|
|
90
90
|
"aria-label": props['aria-label'],
|
|
91
91
|
"aria-labelledby": props['aria-labelledby'],
|
|
92
|
+
"aria-invalid": props['aria-invalid'],
|
|
93
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
92
94
|
autoFocus: props.isAutofocussed,
|
|
93
95
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
94
96
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? selectUtils.customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -226,7 +228,7 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
226
228
|
var SelectInput$1 = SelectInput;
|
|
227
229
|
|
|
228
230
|
// NOTE: This string will be replaced on build time with the package version.
|
|
229
|
-
var version = "13.0.
|
|
231
|
+
var version = "13.0.4";
|
|
230
232
|
|
|
231
233
|
exports["default"] = SelectInput$1;
|
|
232
234
|
exports.version = version;
|
|
@@ -88,6 +88,8 @@ var SelectInput = function SelectInput(props) {
|
|
|
88
88
|
children: jsxRuntime.jsx(Select__default["default"], {
|
|
89
89
|
"aria-label": props['aria-label'],
|
|
90
90
|
"aria-labelledby": props['aria-labelledby'],
|
|
91
|
+
"aria-invalid": props['aria-invalid'],
|
|
92
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
91
93
|
autoFocus: props.isAutofocussed,
|
|
92
94
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
93
95
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? selectUtils.customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -207,7 +209,7 @@ utils.addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({},
|
|
|
207
209
|
var SelectInput$1 = SelectInput;
|
|
208
210
|
|
|
209
211
|
// NOTE: This string will be replaced on build time with the package version.
|
|
210
|
-
var version = "13.0.
|
|
212
|
+
var version = "13.0.4";
|
|
211
213
|
|
|
212
214
|
exports["default"] = SelectInput$1;
|
|
213
215
|
exports.version = version;
|
|
@@ -66,6 +66,8 @@ var SelectInput = function SelectInput(props) {
|
|
|
66
66
|
children: jsx(Select, {
|
|
67
67
|
"aria-label": props['aria-label'],
|
|
68
68
|
"aria-labelledby": props['aria-labelledby'],
|
|
69
|
+
"aria-invalid": props['aria-invalid'],
|
|
70
|
+
"aria-errormessage": props['aria-errormessage'],
|
|
69
71
|
autoFocus: props.isAutofocussed,
|
|
70
72
|
backspaceRemovesValue: props.isReadOnly ? false : props.backspaceRemovesValue,
|
|
71
73
|
components: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, customizedComponents), props.iconLeft && !props.isMulti ? customComponentsWithIcons : {}), props.isReadOnly ? {
|
|
@@ -203,6 +205,6 @@ addStaticFields(SelectInput, _objectSpread(_objectSpread(_objectSpread({}, compo
|
|
|
203
205
|
var SelectInput$1 = SelectInput;
|
|
204
206
|
|
|
205
207
|
// NOTE: This string will be replaced on build time with the package version.
|
|
206
|
-
var version = "13.0.
|
|
208
|
+
var version = "13.0.4";
|
|
207
209
|
|
|
208
210
|
export { SelectInput$1 as default, version };
|
|
@@ -22,6 +22,8 @@ declare type TSelectInputProps = {
|
|
|
22
22
|
iconLeft?: ReactNode;
|
|
23
23
|
'aria-label'?: ReactSelectProps['aria-label'];
|
|
24
24
|
'aria-labelledby'?: ReactSelectProps['aria-labelledby'];
|
|
25
|
+
'aria-invalid'?: ReactSelectProps['aria-invalid'];
|
|
26
|
+
'aria-errormessage'?: ReactSelectProps['aria-errormessage'];
|
|
25
27
|
isAutofocussed?: boolean;
|
|
26
28
|
backspaceRemovesValue?: ReactSelectProps['backspaceRemovesValue'];
|
|
27
29
|
components?: ReactSelectProps['components'];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/select-input",
|
|
3
3
|
"description": "An input component getting a selection from the user.",
|
|
4
|
-
"version": "13.0.
|
|
4
|
+
"version": "13.0.4",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@commercetools-uikit/constraints": "13.0.2",
|
|
25
25
|
"@commercetools-uikit/design-system": "13.0.0",
|
|
26
26
|
"@commercetools-uikit/icons": "13.0.2",
|
|
27
|
-
"@commercetools-uikit/select-utils": "13.0.
|
|
27
|
+
"@commercetools-uikit/select-utils": "13.0.4",
|
|
28
28
|
"@commercetools-uikit/utils": "13.0.2",
|
|
29
29
|
"@emotion/is-prop-valid": "1.1.2",
|
|
30
30
|
"@emotion/react": "^11.4.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"react": "17.0.2",
|
|
38
|
-
"react-intl": "5.24.6"
|
|
38
|
+
"react-intl": "^5.24.6"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": "17.x",
|