@commercetools-uikit/multiline-text-field 20.2.3 → 20.3.1
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.
|
@@ -89,8 +89,8 @@ let MultilineTextField = /*#__PURE__*/function (_Component) {
|
|
|
89
89
|
if (this.props.hint) {
|
|
90
90
|
process.env.NODE_ENV !== "production" ? utils.warning(typeof this.props.hint === 'string' || /*#__PURE__*/react.isValidElement(this.props.hint), 'MultilineField: "hint" should be string or ReactNode if `hintIcon` is present') : void 0;
|
|
91
91
|
}
|
|
92
|
-
const errorsContainerId =
|
|
93
|
-
const warningsContainerId =
|
|
92
|
+
const errorsContainerId = "".concat(this.state.id, "-errors");
|
|
93
|
+
const warningsContainerId = "".concat(this.state.id, "-warnings");
|
|
94
94
|
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
95
95
|
max: this.props.horizontalConstraint,
|
|
96
96
|
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
@@ -160,7 +160,7 @@ MultilineTextField.getDerivedStateFromProps = (props, state) => ({
|
|
|
160
160
|
var MultilineTextField$1 = MultilineTextField;
|
|
161
161
|
|
|
162
162
|
// NOTE: This string will be replaced on build time with the package version.
|
|
163
|
-
var version = "20.
|
|
163
|
+
var version = "20.3.1";
|
|
164
164
|
|
|
165
165
|
exports["default"] = MultilineTextField$1;
|
|
166
166
|
exports.version = version;
|
|
@@ -85,8 +85,8 @@ let MultilineTextField = /*#__PURE__*/function (_Component) {
|
|
|
85
85
|
const hasWarning = this.props.touched && hasWarnings(this.props.warnings);
|
|
86
86
|
if (!this.props.isReadOnly) ;
|
|
87
87
|
if (this.props.hint) ;
|
|
88
|
-
const errorsContainerId =
|
|
89
|
-
const warningsContainerId =
|
|
88
|
+
const errorsContainerId = "".concat(this.state.id, "-errors");
|
|
89
|
+
const warningsContainerId = "".concat(this.state.id, "-warnings");
|
|
90
90
|
return jsxRuntime.jsx(Constraints__default["default"].Horizontal, {
|
|
91
91
|
max: this.props.horizontalConstraint,
|
|
92
92
|
children: jsxRuntime.jsxs(Spacings__default["default"].Stack, {
|
|
@@ -156,7 +156,7 @@ MultilineTextField.getDerivedStateFromProps = (props, state) => ({
|
|
|
156
156
|
var MultilineTextField$1 = MultilineTextField;
|
|
157
157
|
|
|
158
158
|
// NOTE: This string will be replaced on build time with the package version.
|
|
159
|
-
var version = "20.
|
|
159
|
+
var version = "20.3.1";
|
|
160
160
|
|
|
161
161
|
exports["default"] = MultilineTextField$1;
|
|
162
162
|
exports.version = version;
|
|
@@ -65,8 +65,8 @@ let MultilineTextField = /*#__PURE__*/function (_Component) {
|
|
|
65
65
|
if (this.props.hint) {
|
|
66
66
|
process.env.NODE_ENV !== "production" ? warning(typeof this.props.hint === 'string' || /*#__PURE__*/isValidElement(this.props.hint), 'MultilineField: "hint" should be string or ReactNode if `hintIcon` is present') : void 0;
|
|
67
67
|
}
|
|
68
|
-
const errorsContainerId =
|
|
69
|
-
const warningsContainerId =
|
|
68
|
+
const errorsContainerId = "".concat(this.state.id, "-errors");
|
|
69
|
+
const warningsContainerId = "".concat(this.state.id, "-warnings");
|
|
70
70
|
return jsx(Constraints.Horizontal, {
|
|
71
71
|
max: this.props.horizontalConstraint,
|
|
72
72
|
children: jsxs(Spacings.Stack, {
|
|
@@ -136,6 +136,6 @@ MultilineTextField.getDerivedStateFromProps = (props, state) => ({
|
|
|
136
136
|
var MultilineTextField$1 = MultilineTextField;
|
|
137
137
|
|
|
138
138
|
// NOTE: This string will be replaced on build time with the package version.
|
|
139
|
-
var version = "20.
|
|
139
|
+
var version = "20.3.1";
|
|
140
140
|
|
|
141
141
|
export { MultilineTextField$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/multiline-text-field",
|
|
3
3
|
"description": "A controlled text input component for multi-line strings with validation states and a label.",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.3.1",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "20.
|
|
25
|
-
"@commercetools-uikit/design-system": "20.
|
|
26
|
-
"@commercetools-uikit/field-errors": "20.
|
|
27
|
-
"@commercetools-uikit/field-label": "20.
|
|
28
|
-
"@commercetools-uikit/field-warnings": "20.
|
|
29
|
-
"@commercetools-uikit/multiline-text-input": "20.
|
|
30
|
-
"@commercetools-uikit/spacings": "20.
|
|
31
|
-
"@commercetools-uikit/utils": "20.
|
|
24
|
+
"@commercetools-uikit/constraints": "20.3.1",
|
|
25
|
+
"@commercetools-uikit/design-system": "20.3.1",
|
|
26
|
+
"@commercetools-uikit/field-errors": "20.3.1",
|
|
27
|
+
"@commercetools-uikit/field-label": "20.3.1",
|
|
28
|
+
"@commercetools-uikit/field-warnings": "20.3.1",
|
|
29
|
+
"@commercetools-uikit/multiline-text-input": "20.3.1",
|
|
30
|
+
"@commercetools-uikit/spacings": "20.3.1",
|
|
31
|
+
"@commercetools-uikit/utils": "20.3.1",
|
|
32
32
|
"@emotion/react": "^11.10.5",
|
|
33
33
|
"@emotion/styled": "^11.10.5",
|
|
34
34
|
"react-intl": "^7.1.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"react": "19.
|
|
37
|
+
"react": "19.2.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "19.x"
|