@commercetools-uikit/money-field 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.
|
@@ -61,6 +61,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
61
61
|
|
|
62
62
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
63
63
|
var sequentialId = utils.createSequentialId('money-field-');
|
|
64
|
+
var sequentialErrorsId = utils.createSequentialId('money-field-error-')();
|
|
64
65
|
|
|
65
66
|
var hasErrors = function hasErrors(errors) {
|
|
66
67
|
var _context;
|
|
@@ -118,7 +119,7 @@ var MoneyField = /*#__PURE__*/function (_Component) {
|
|
|
118
119
|
hintIcon: this.props.hintIcon,
|
|
119
120
|
hasRequiredIndicator: this.props.isRequired,
|
|
120
121
|
htmlFor: this.state.id
|
|
121
|
-
}), jsxRuntime.jsx(MoneyInput__default["default"], _objectSpread({
|
|
122
|
+
}), jsxRuntime.jsx(MoneyInput__default["default"], _objectSpread(_objectSpread({
|
|
122
123
|
id: this.state.id,
|
|
123
124
|
name: this.props.name,
|
|
124
125
|
autoComplete: this.props.autoComplete,
|
|
@@ -136,7 +137,11 @@ var MoneyField = /*#__PURE__*/function (_Component) {
|
|
|
136
137
|
menuPortalTarget: this.props.menuPortalTarget,
|
|
137
138
|
menuPortalZIndex: this.props.menuPortalZIndex,
|
|
138
139
|
menuShouldBlockScroll: this.props.menuShouldBlockScroll
|
|
139
|
-
}, utils.filterDataAttributes(this.props))
|
|
140
|
+
}, utils.filterDataAttributes(this.props)), {}, {
|
|
141
|
+
"aria-invalid": hasError,
|
|
142
|
+
"aria-errormessage": sequentialErrorsId
|
|
143
|
+
})), jsxRuntime.jsx(FieldErrors__default["default"], {
|
|
144
|
+
id: sequentialErrorsId,
|
|
140
145
|
errors: this.props.errors,
|
|
141
146
|
isVisible: hasError,
|
|
142
147
|
renderError: this.props.renderError
|
|
@@ -196,7 +201,7 @@ MoneyField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
196
201
|
var MoneyField$1 = MoneyField;
|
|
197
202
|
|
|
198
203
|
// NOTE: This string will be replaced on build time with the package version.
|
|
199
|
-
var version = "13.0.
|
|
204
|
+
var version = "13.0.4";
|
|
200
205
|
|
|
201
206
|
exports["default"] = MoneyField$1;
|
|
202
207
|
exports.version = version;
|
|
@@ -59,6 +59,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
59
59
|
|
|
60
60
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
61
61
|
var sequentialId = utils.createSequentialId('money-field-');
|
|
62
|
+
var sequentialErrorsId = utils.createSequentialId('money-field-error-')();
|
|
62
63
|
|
|
63
64
|
var hasErrors = function hasErrors(errors) {
|
|
64
65
|
var _context;
|
|
@@ -113,7 +114,7 @@ var MoneyField = /*#__PURE__*/function (_Component) {
|
|
|
113
114
|
hintIcon: this.props.hintIcon,
|
|
114
115
|
hasRequiredIndicator: this.props.isRequired,
|
|
115
116
|
htmlFor: this.state.id
|
|
116
|
-
}), jsxRuntime.jsx(MoneyInput__default["default"], _objectSpread({
|
|
117
|
+
}), jsxRuntime.jsx(MoneyInput__default["default"], _objectSpread(_objectSpread({
|
|
117
118
|
id: this.state.id,
|
|
118
119
|
name: this.props.name,
|
|
119
120
|
autoComplete: this.props.autoComplete,
|
|
@@ -131,7 +132,11 @@ var MoneyField = /*#__PURE__*/function (_Component) {
|
|
|
131
132
|
menuPortalTarget: this.props.menuPortalTarget,
|
|
132
133
|
menuPortalZIndex: this.props.menuPortalZIndex,
|
|
133
134
|
menuShouldBlockScroll: this.props.menuShouldBlockScroll
|
|
134
|
-
}, utils.filterDataAttributes(this.props))
|
|
135
|
+
}, utils.filterDataAttributes(this.props)), {}, {
|
|
136
|
+
"aria-invalid": hasError,
|
|
137
|
+
"aria-errormessage": sequentialErrorsId
|
|
138
|
+
})), jsxRuntime.jsx(FieldErrors__default["default"], {
|
|
139
|
+
id: sequentialErrorsId,
|
|
135
140
|
errors: this.props.errors,
|
|
136
141
|
isVisible: hasError,
|
|
137
142
|
renderError: this.props.renderError
|
|
@@ -159,7 +164,7 @@ MoneyField.propTypes = {};
|
|
|
159
164
|
var MoneyField$1 = MoneyField;
|
|
160
165
|
|
|
161
166
|
// NOTE: This string will be replaced on build time with the package version.
|
|
162
|
-
var version = "13.0.
|
|
167
|
+
var version = "13.0.4";
|
|
163
168
|
|
|
164
169
|
exports["default"] = MoneyField$1;
|
|
165
170
|
exports.version = version;
|
|
@@ -35,6 +35,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
35
35
|
|
|
36
36
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
37
|
var sequentialId = createSequentialId('money-field-');
|
|
38
|
+
var sequentialErrorsId = createSequentialId('money-field-error-')();
|
|
38
39
|
|
|
39
40
|
var hasErrors = function hasErrors(errors) {
|
|
40
41
|
var _context;
|
|
@@ -92,7 +93,7 @@ var MoneyField = /*#__PURE__*/function (_Component) {
|
|
|
92
93
|
hintIcon: this.props.hintIcon,
|
|
93
94
|
hasRequiredIndicator: this.props.isRequired,
|
|
94
95
|
htmlFor: this.state.id
|
|
95
|
-
}), jsx(MoneyInput, _objectSpread({
|
|
96
|
+
}), jsx(MoneyInput, _objectSpread(_objectSpread({
|
|
96
97
|
id: this.state.id,
|
|
97
98
|
name: this.props.name,
|
|
98
99
|
autoComplete: this.props.autoComplete,
|
|
@@ -110,7 +111,11 @@ var MoneyField = /*#__PURE__*/function (_Component) {
|
|
|
110
111
|
menuPortalTarget: this.props.menuPortalTarget,
|
|
111
112
|
menuPortalZIndex: this.props.menuPortalZIndex,
|
|
112
113
|
menuShouldBlockScroll: this.props.menuShouldBlockScroll
|
|
113
|
-
}, filterDataAttributes(this.props))
|
|
114
|
+
}, filterDataAttributes(this.props)), {}, {
|
|
115
|
+
"aria-invalid": hasError,
|
|
116
|
+
"aria-errormessage": sequentialErrorsId
|
|
117
|
+
})), jsx(FieldErrors, {
|
|
118
|
+
id: sequentialErrorsId,
|
|
114
119
|
errors: this.props.errors,
|
|
115
120
|
isVisible: hasError,
|
|
116
121
|
renderError: this.props.renderError
|
|
@@ -170,6 +175,6 @@ MoneyField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
170
175
|
var MoneyField$1 = MoneyField;
|
|
171
176
|
|
|
172
177
|
// NOTE: This string will be replaced on build time with the package version.
|
|
173
|
-
var version = "13.0.
|
|
178
|
+
var version = "13.0.4";
|
|
174
179
|
|
|
175
180
|
export { MoneyField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/money-field",
|
|
3
3
|
"description": "A controlled input component for money values with validation states and a label.",
|
|
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",
|
|
@@ -23,16 +23,16 @@
|
|
|
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.
|
|
27
|
-
"@commercetools-uikit/field-label": "13.0.
|
|
28
|
-
"@commercetools-uikit/money-input": "13.0.
|
|
26
|
+
"@commercetools-uikit/field-errors": "13.0.4",
|
|
27
|
+
"@commercetools-uikit/field-label": "13.0.4",
|
|
28
|
+
"@commercetools-uikit/money-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
|
"lodash": "4.17.21",
|
|
34
34
|
"prop-types": "15.8.1",
|
|
35
|
-
"react-
|
|
35
|
+
"react-intl": "^5.24.6"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"react": "17.0.2"
|