@commercetools-uikit/async-creatable-select-field 19.12.1 → 19.14.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.
@@ -58,8 +58,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _co
58
58
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
59
59
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
60
60
  const sequentialId = utils.createSequentialId('async-creatable-select-field-');
61
- const sequentialErrorsId = utils.createSequentialId('async-creatable-select-field-error-')();
62
- const sequentialWarningsId = utils.createSequentialId('async-creatable-select-field-warning-')();
63
61
  const hasErrors = errors => {
64
62
  var _context;
65
63
  return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
@@ -99,6 +97,8 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
99
97
  process.env.NODE_ENV !== "production" ? utils.warning(_Array$isArray__default["default"](this.props.value), 'AsyncCreatableSelectField: `value` is expected to be an array of string when isMulti is true') : void 0;
100
98
  process.env.NODE_ENV !== "production" ? utils.warning(typeof this.props.touched === 'undefined' || _Array$isArray__default["default"](this.props.touched), 'AsyncCreatableSelectField: `touched` is expected to be an array of boolean when isMulti is true') : void 0;
101
99
  }
100
+ const errorsContainerId = `${this.state.id}-errors`;
101
+ const warningsContainerId = `${this.state.id}-warnings`;
102
102
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
103
103
  max: this.props.horizontalConstraint,
104
104
  children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
@@ -118,7 +118,7 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
118
118
  "aria-label": this.props['aria-label'],
119
119
  "aria-labelledby": this.props['aria-labelledby'],
120
120
  "aria-invalid": hasError,
121
- "aria-errormessage": sequentialErrorsId,
121
+ "aria-errormessage": errorsContainerId,
122
122
  isAutofocussed: this.props.isAutofocussed,
123
123
  backspaceRemovesValue: this.props.backspaceRemovesValue,
124
124
  components: this.props.components,
@@ -163,12 +163,12 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
163
163
  iconLeft: this.props.iconLeft,
164
164
  isCondensed: this.props.isCondensed
165
165
  }, utils.filterDataAttributes(this.props))), jsxRuntime.jsx(FieldErrors__default["default"], {
166
- id: sequentialErrorsId,
166
+ id: errorsContainerId,
167
167
  errors: this.props.errors,
168
168
  isVisible: hasError,
169
169
  renderError: this.props.renderError
170
170
  }), jsxRuntime.jsx(FieldWarnings__default["default"], {
171
- id: sequentialWarningsId,
171
+ id: warningsContainerId,
172
172
  warnings: this.props.warnings,
173
173
  isVisible: hasWarning,
174
174
  renderWarning: this.props.renderWarning
@@ -222,7 +222,7 @@ AsyncCreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
222
222
  } : {};
223
223
 
224
224
  // NOTE: This string will be replaced on build time with the package version.
225
- var version = "19.12.1";
225
+ var version = "19.14.0";
226
226
 
227
227
  exports["default"] = AsyncCreatableSelectField;
228
228
  exports.version = version;
@@ -56,8 +56,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _co
56
56
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
57
57
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
58
58
  const sequentialId = utils.createSequentialId('async-creatable-select-field-');
59
- const sequentialErrorsId = utils.createSequentialId('async-creatable-select-field-error-')();
60
- const sequentialWarningsId = utils.createSequentialId('async-creatable-select-field-warning-')();
61
59
  const hasErrors = errors => {
62
60
  var _context;
63
61
  return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
@@ -90,6 +88,8 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
90
88
  if (!this.props.isReadOnly) ;
91
89
  if (this.props.hintIcon) ;
92
90
  if (this.props.isMulti) ;
91
+ const errorsContainerId = `${this.state.id}-errors`;
92
+ const warningsContainerId = `${this.state.id}-warnings`;
93
93
  return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
94
94
  max: this.props.horizontalConstraint,
95
95
  children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
@@ -109,7 +109,7 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
109
109
  "aria-label": this.props['aria-label'],
110
110
  "aria-labelledby": this.props['aria-labelledby'],
111
111
  "aria-invalid": hasError,
112
- "aria-errormessage": sequentialErrorsId,
112
+ "aria-errormessage": errorsContainerId,
113
113
  isAutofocussed: this.props.isAutofocussed,
114
114
  backspaceRemovesValue: this.props.backspaceRemovesValue,
115
115
  components: this.props.components,
@@ -154,12 +154,12 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
154
154
  iconLeft: this.props.iconLeft,
155
155
  isCondensed: this.props.isCondensed
156
156
  }, utils.filterDataAttributes(this.props))), jsxRuntime.jsx(FieldErrors__default["default"], {
157
- id: sequentialErrorsId,
157
+ id: errorsContainerId,
158
158
  errors: this.props.errors,
159
159
  isVisible: hasError,
160
160
  renderError: this.props.renderError
161
161
  }), jsxRuntime.jsx(FieldWarnings__default["default"], {
162
- id: sequentialWarningsId,
162
+ id: warningsContainerId,
163
163
  warnings: this.props.warnings,
164
164
  isVisible: hasWarning,
165
165
  renderWarning: this.props.renderWarning
@@ -190,7 +190,7 @@ AsyncCreatableSelectField.getDerivedStateFromProps = (props, state) => ({
190
190
  AsyncCreatableSelectField.propTypes = {};
191
191
 
192
192
  // NOTE: This string will be replaced on build time with the package version.
193
- var version = "19.12.1";
193
+ var version = "19.14.0";
194
194
 
195
195
  exports["default"] = AsyncCreatableSelectField;
196
196
  exports.version = version;
@@ -32,8 +32,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _co
32
32
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
33
33
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
34
34
  const sequentialId = createSequentialId('async-creatable-select-field-');
35
- const sequentialErrorsId = createSequentialId('async-creatable-select-field-error-')();
36
- const sequentialWarningsId = createSequentialId('async-creatable-select-field-warning-')();
37
35
  const hasErrors = errors => {
38
36
  var _context;
39
37
  return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
@@ -73,6 +71,8 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
73
71
  process.env.NODE_ENV !== "production" ? warning(_Array$isArray(this.props.value), 'AsyncCreatableSelectField: `value` is expected to be an array of string when isMulti is true') : void 0;
74
72
  process.env.NODE_ENV !== "production" ? warning(typeof this.props.touched === 'undefined' || _Array$isArray(this.props.touched), 'AsyncCreatableSelectField: `touched` is expected to be an array of boolean when isMulti is true') : void 0;
75
73
  }
74
+ const errorsContainerId = `${this.state.id}-errors`;
75
+ const warningsContainerId = `${this.state.id}-warnings`;
76
76
  return jsx(Constraints.Horizontal, {
77
77
  max: this.props.horizontalConstraint,
78
78
  children: jsxs(Spacings.Stack, {
@@ -92,7 +92,7 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
92
92
  "aria-label": this.props['aria-label'],
93
93
  "aria-labelledby": this.props['aria-labelledby'],
94
94
  "aria-invalid": hasError,
95
- "aria-errormessage": sequentialErrorsId,
95
+ "aria-errormessage": errorsContainerId,
96
96
  isAutofocussed: this.props.isAutofocussed,
97
97
  backspaceRemovesValue: this.props.backspaceRemovesValue,
98
98
  components: this.props.components,
@@ -137,12 +137,12 @@ let AsyncCreatableSelectField = /*#__PURE__*/function (_Component) {
137
137
  iconLeft: this.props.iconLeft,
138
138
  isCondensed: this.props.isCondensed
139
139
  }, filterDataAttributes(this.props))), jsx(FieldErrors, {
140
- id: sequentialErrorsId,
140
+ id: errorsContainerId,
141
141
  errors: this.props.errors,
142
142
  isVisible: hasError,
143
143
  renderError: this.props.renderError
144
144
  }), jsx(FieldWarnings, {
145
- id: sequentialWarningsId,
145
+ id: warningsContainerId,
146
146
  warnings: this.props.warnings,
147
147
  isVisible: hasWarning,
148
148
  renderWarning: this.props.renderWarning
@@ -196,6 +196,6 @@ AsyncCreatableSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
196
196
  } : {};
197
197
 
198
198
  // NOTE: This string will be replaced on build time with the package version.
199
- var version = "19.12.1";
199
+ var version = "19.14.0";
200
200
 
201
201
  export { AsyncCreatableSelectField as default, version };
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": "19.12.1",
4
+ "version": "19.14.0",
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/async-creatable-select-input": "19.12.1",
25
- "@commercetools-uikit/constraints": "19.12.1",
26
- "@commercetools-uikit/design-system": "19.12.1",
27
- "@commercetools-uikit/field-errors": "19.12.1",
28
- "@commercetools-uikit/field-label": "19.12.1",
29
- "@commercetools-uikit/field-warnings": "19.12.1",
30
- "@commercetools-uikit/spacings": "19.12.1",
31
- "@commercetools-uikit/utils": "19.12.1",
24
+ "@commercetools-uikit/async-creatable-select-input": "19.14.0",
25
+ "@commercetools-uikit/constraints": "19.14.0",
26
+ "@commercetools-uikit/design-system": "19.14.0",
27
+ "@commercetools-uikit/field-errors": "19.14.0",
28
+ "@commercetools-uikit/field-label": "19.14.0",
29
+ "@commercetools-uikit/field-warnings": "19.14.0",
30
+ "@commercetools-uikit/spacings": "19.14.0",
31
+ "@commercetools-uikit/utils": "19.14.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
34
  "prop-types": "15.8.1",