@dhis2-ui/text-area 9.11.4 → 9.11.5
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.
|
@@ -128,10 +128,10 @@ class TextArea extends _react.Component {
|
|
|
128
128
|
loading,
|
|
129
129
|
value,
|
|
130
130
|
tabIndex,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
dataTest
|
|
131
|
+
resize = 'vertical',
|
|
132
|
+
rows = 4,
|
|
133
|
+
width = '100%',
|
|
134
|
+
dataTest = 'dhis2-uicore-textarea'
|
|
135
135
|
} = this.props;
|
|
136
136
|
const {
|
|
137
137
|
height
|
|
@@ -175,12 +175,12 @@ class TextArea extends _react.Component {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
exports.TextArea = TextArea;
|
|
178
|
-
TextArea
|
|
178
|
+
_defineProperty(TextArea, "defaultProps", {
|
|
179
179
|
rows: 4,
|
|
180
180
|
width: '100%',
|
|
181
181
|
resize: 'vertical',
|
|
182
182
|
dataTest: 'dhis2-uicore-textarea'
|
|
183
|
-
};
|
|
183
|
+
});
|
|
184
184
|
TextArea.propTypes = {
|
|
185
185
|
/** Grow the text area in response to overflow instead of adding a scroll bar */
|
|
186
186
|
autoGrow: _propTypes.default.bool,
|
|
@@ -35,10 +35,10 @@ const TextAreaField = _ref => {
|
|
|
35
35
|
validationText,
|
|
36
36
|
autoGrow,
|
|
37
37
|
readOnly,
|
|
38
|
-
resize,
|
|
39
|
-
rows,
|
|
38
|
+
resize = 'vertical',
|
|
39
|
+
rows = 4,
|
|
40
40
|
inputWidth,
|
|
41
|
-
dataTest
|
|
41
|
+
dataTest = 'dhis2-uiwidgets-textareafield'
|
|
42
42
|
} = _ref;
|
|
43
43
|
return /*#__PURE__*/_react.default.createElement(_field.Field, {
|
|
44
44
|
className: className,
|
|
@@ -78,11 +78,6 @@ const TextAreaField = _ref => {
|
|
|
78
78
|
})));
|
|
79
79
|
};
|
|
80
80
|
exports.TextAreaField = TextAreaField;
|
|
81
|
-
TextAreaField.defaultProps = {
|
|
82
|
-
rows: 4,
|
|
83
|
-
resize: 'vertical',
|
|
84
|
-
dataTest: 'dhis2-uiwidgets-textareafield'
|
|
85
|
-
};
|
|
86
81
|
TextAreaField.propTypes = {
|
|
87
82
|
/** Grow the text area in response to overflow instead of adding a scroll bar */
|
|
88
83
|
autoGrow: _propTypes.default.bool,
|
|
@@ -119,10 +119,10 @@ export class TextArea extends Component {
|
|
|
119
119
|
loading,
|
|
120
120
|
value,
|
|
121
121
|
tabIndex,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
dataTest
|
|
122
|
+
resize = 'vertical',
|
|
123
|
+
rows = 4,
|
|
124
|
+
width = '100%',
|
|
125
|
+
dataTest = 'dhis2-uicore-textarea'
|
|
126
126
|
} = this.props;
|
|
127
127
|
const {
|
|
128
128
|
height
|
|
@@ -165,12 +165,12 @@ export class TextArea extends Component {
|
|
|
165
165
|
}, [`textarea.__jsx-style-dynamic-selector{width:${width};height:${height};resize:${resize};}`]));
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
TextArea
|
|
168
|
+
_defineProperty(TextArea, "defaultProps", {
|
|
169
169
|
rows: 4,
|
|
170
170
|
width: '100%',
|
|
171
171
|
resize: 'vertical',
|
|
172
172
|
dataTest: 'dhis2-uicore-textarea'
|
|
173
|
-
};
|
|
173
|
+
});
|
|
174
174
|
TextArea.propTypes = {
|
|
175
175
|
/** Grow the text area in response to overflow instead of adding a scroll bar */
|
|
176
176
|
autoGrow: PropTypes.bool,
|
|
@@ -28,10 +28,10 @@ const TextAreaField = _ref => {
|
|
|
28
28
|
validationText,
|
|
29
29
|
autoGrow,
|
|
30
30
|
readOnly,
|
|
31
|
-
resize,
|
|
32
|
-
rows,
|
|
31
|
+
resize = 'vertical',
|
|
32
|
+
rows = 4,
|
|
33
33
|
inputWidth,
|
|
34
|
-
dataTest
|
|
34
|
+
dataTest = 'dhis2-uiwidgets-textareafield'
|
|
35
35
|
} = _ref;
|
|
36
36
|
return /*#__PURE__*/React.createElement(Field, {
|
|
37
37
|
className: className,
|
|
@@ -70,11 +70,6 @@ const TextAreaField = _ref => {
|
|
|
70
70
|
rows: rows
|
|
71
71
|
})));
|
|
72
72
|
};
|
|
73
|
-
TextAreaField.defaultProps = {
|
|
74
|
-
rows: 4,
|
|
75
|
-
resize: 'vertical',
|
|
76
|
-
dataTest: 'dhis2-uiwidgets-textareafield'
|
|
77
|
-
};
|
|
78
73
|
TextAreaField.propTypes = {
|
|
79
74
|
/** Grow the text area in response to overflow instead of adding a scroll bar */
|
|
80
75
|
autoGrow: PropTypes.bool,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/text-area",
|
|
3
|
-
"version": "9.11.
|
|
3
|
+
"version": "9.11.5",
|
|
4
4
|
"description": "UI TextArea",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2-ui/box": "9.11.
|
|
37
|
-
"@dhis2-ui/field": "9.11.
|
|
38
|
-
"@dhis2-ui/loader": "9.11.
|
|
39
|
-
"@dhis2-ui/status-icon": "9.11.
|
|
40
|
-
"@dhis2/ui-constants": "9.11.
|
|
41
|
-
"@dhis2/ui-icons": "9.11.
|
|
36
|
+
"@dhis2-ui/box": "9.11.5",
|
|
37
|
+
"@dhis2-ui/field": "9.11.5",
|
|
38
|
+
"@dhis2-ui/loader": "9.11.5",
|
|
39
|
+
"@dhis2-ui/status-icon": "9.11.5",
|
|
40
|
+
"@dhis2/ui-constants": "9.11.5",
|
|
41
|
+
"@dhis2/ui-icons": "9.11.5",
|
|
42
42
|
"classnames": "^2.3.1",
|
|
43
43
|
"prop-types": "^15.7.2"
|
|
44
44
|
},
|