@commercetools-uikit/search-select-field 13.0.2 → 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.
@@ -54,7 +54,8 @@ var hasErrors = function hasErrors(errors) {
54
54
  return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
55
55
  };
56
56
 
57
- var sequentialId = utils.createSequentialId('async-select-field-');
57
+ var sequentialId = utils.createSequentialId('search-select-field-');
58
+ var sequentialErrorsId = utils.createSequentialId('search-select-field-error-')();
58
59
 
59
60
  var SearchSelectField = function SearchSelectField(props) {
60
61
  var hasError = Boolean(props.touched) && hasErrors(props.errors);
@@ -87,6 +88,8 @@ var SearchSelectField = function SearchSelectField(props) {
87
88
  hasError: hasError,
88
89
  "aria-label": props['aria-label'],
89
90
  "aria-labelledby": props['aria-labelledby?'],
91
+ "aria-invalid": hasError,
92
+ "aria-errormessage": sequentialErrorsId,
90
93
  isAutofocussed: props.isAutofocussed,
91
94
  backspaceRemovesValue: props.backspaceRemovesValue,
92
95
  components: props.components,
@@ -120,6 +123,7 @@ var SearchSelectField = function SearchSelectField(props) {
120
123
  showOptionGroupDivider: props.showOptionGroupDivider,
121
124
  optionType: props.optionType
122
125
  })), jsxRuntime.jsx(FieldErrors__default["default"], {
126
+ id: sequentialErrorsId,
123
127
  errors: props.errors,
124
128
  isVisible: hasError,
125
129
  renderError: props.renderError
@@ -158,7 +162,7 @@ SearchSelectField.displayName = 'SearchSelectField';
158
162
  var SearchSelectField$1 = SearchSelectField;
159
163
 
160
164
  // NOTE: This string will be replaced on build time with the package version.
161
- var version = "13.0.2";
165
+ var version = "13.0.4";
162
166
 
163
167
  exports["default"] = SearchSelectField$1;
164
168
  exports.version = version;
@@ -52,7 +52,8 @@ var hasErrors = function hasErrors(errors) {
52
52
  return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
53
53
  };
54
54
 
55
- var sequentialId = utils.createSequentialId('async-select-field-');
55
+ var sequentialId = utils.createSequentialId('search-select-field-');
56
+ var sequentialErrorsId = utils.createSequentialId('search-select-field-error-')();
56
57
 
57
58
  var SearchSelectField = function SearchSelectField(props) {
58
59
  var hasError = Boolean(props.touched) && hasErrors(props.errors);
@@ -80,6 +81,8 @@ var SearchSelectField = function SearchSelectField(props) {
80
81
  hasError: hasError,
81
82
  "aria-label": props['aria-label'],
82
83
  "aria-labelledby": props['aria-labelledby?'],
84
+ "aria-invalid": hasError,
85
+ "aria-errormessage": sequentialErrorsId,
83
86
  isAutofocussed: props.isAutofocussed,
84
87
  backspaceRemovesValue: props.backspaceRemovesValue,
85
88
  components: props.components,
@@ -113,6 +116,7 @@ var SearchSelectField = function SearchSelectField(props) {
113
116
  showOptionGroupDivider: props.showOptionGroupDivider,
114
117
  optionType: props.optionType
115
118
  })), jsxRuntime.jsx(FieldErrors__default["default"], {
119
+ id: sequentialErrorsId,
116
120
  errors: props.errors,
117
121
  isVisible: hasError,
118
122
  renderError: props.renderError
@@ -126,7 +130,7 @@ SearchSelectField.displayName = 'SearchSelectField';
126
130
  var SearchSelectField$1 = SearchSelectField;
127
131
 
128
132
  // NOTE: This string will be replaced on build time with the package version.
129
- var version = "13.0.2";
133
+ var version = "13.0.4";
130
134
 
131
135
  exports["default"] = SearchSelectField$1;
132
136
  exports.version = version;
@@ -30,7 +30,8 @@ var hasErrors = function hasErrors(errors) {
30
30
  return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
31
31
  };
32
32
 
33
- var sequentialId = createSequentialId('async-select-field-');
33
+ var sequentialId = createSequentialId('search-select-field-');
34
+ var sequentialErrorsId = createSequentialId('search-select-field-error-')();
34
35
 
35
36
  var SearchSelectField = function SearchSelectField(props) {
36
37
  var hasError = Boolean(props.touched) && hasErrors(props.errors);
@@ -63,6 +64,8 @@ var SearchSelectField = function SearchSelectField(props) {
63
64
  hasError: hasError,
64
65
  "aria-label": props['aria-label'],
65
66
  "aria-labelledby": props['aria-labelledby?'],
67
+ "aria-invalid": hasError,
68
+ "aria-errormessage": sequentialErrorsId,
66
69
  isAutofocussed: props.isAutofocussed,
67
70
  backspaceRemovesValue: props.backspaceRemovesValue,
68
71
  components: props.components,
@@ -96,6 +99,7 @@ var SearchSelectField = function SearchSelectField(props) {
96
99
  showOptionGroupDivider: props.showOptionGroupDivider,
97
100
  optionType: props.optionType
98
101
  })), jsx(FieldErrors, {
102
+ id: sequentialErrorsId,
99
103
  errors: props.errors,
100
104
  isVisible: hasError,
101
105
  renderError: props.renderError
@@ -134,6 +138,6 @@ SearchSelectField.displayName = 'SearchSelectField';
134
138
  var SearchSelectField$1 = SearchSelectField;
135
139
 
136
140
  // NOTE: This string will be replaced on build time with the package version.
137
- var version = "13.0.2";
141
+ var version = "13.0.4";
138
142
 
139
143
  export { SearchSelectField$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/search-select-field",
3
3
  "description": "A search select field built on top of search select input, allowing users to asynchronously search for options",
4
- "version": "13.0.2",
4
+ "version": "13.0.4",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -23,15 +23,15 @@
23
23
  "@babel/runtime-corejs3": "7.17.2",
24
24
  "@commercetools-uikit/constraints": "13.0.2",
25
25
  "@commercetools-uikit/design-system": "13.0.0",
26
- "@commercetools-uikit/field-errors": "13.0.2",
27
- "@commercetools-uikit/field-label": "13.0.2",
28
- "@commercetools-uikit/search-select-input": "13.0.2",
26
+ "@commercetools-uikit/field-errors": "13.0.4",
27
+ "@commercetools-uikit/field-label": "13.0.4",
28
+ "@commercetools-uikit/search-select-input": "13.0.4",
29
29
  "@commercetools-uikit/spacings": "13.0.2",
30
30
  "@commercetools-uikit/utils": "13.0.2",
31
31
  "@emotion/react": "^11.4.0",
32
32
  "@emotion/styled": "^11.3.0",
33
33
  "prop-types": "15.8.1",
34
- "react-required-if": "1.0.3"
34
+ "react-intl": "^5.24.6"
35
35
  },
36
36
  "devDependencies": {
37
37
  "react": "17.0.2"