@dhis2-ui/input 9.1.2 → 9.3.0-alpha.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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.WithValue = exports.ValueTextOverflow = exports.StatusWarning = exports.StatusValid = exports.StatusLoading = exports.StatusError = exports.ReadOnly = exports.PlaceholderNoValue = exports.NumberMaxMinStep = exports.NoPlaceholderNoValue = exports.Focus = exports.Disabled = exports.Dense = exports.Default = void 0;
|
|
6
|
+
exports.default = exports.WithValue = exports.ValueTextOverflow = exports.StatusWarning = exports.StatusValid = exports.StatusLoading = exports.StatusError = exports.ReadOnly = exports.RTLErrorPlaceholder = exports.PlaceholderNoValue = exports.NumberMaxMinStep = exports.NoPlaceholderNoValue = exports.Focus = exports.Disabled = exports.Dense = exports.Default = void 0;
|
|
7
7
|
|
|
8
8
|
var _uiConstants = require("@dhis2/ui-constants");
|
|
9
9
|
|
|
@@ -150,4 +150,14 @@ ValueTextOverflow.args = {
|
|
|
150
150
|
value: "This value is too long in order to show on a single line of the input field. It should stay on one line, not in an extra line and which wouldn't look like a standard input",
|
|
151
151
|
dense: true,
|
|
152
152
|
warning: true
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const RTLErrorPlaceholder = args => /*#__PURE__*/_react.default.createElement("div", {
|
|
156
|
+
dir: "rtl"
|
|
157
|
+
}, /*#__PURE__*/_react.default.createElement(_index.Input, args));
|
|
158
|
+
|
|
159
|
+
exports.RTLErrorPlaceholder = RTLErrorPlaceholder;
|
|
160
|
+
RTLErrorPlaceholder.args = {
|
|
161
|
+
error: true,
|
|
162
|
+
placeholder: 'RTL placeholder'
|
|
153
163
|
};
|
|
@@ -123,4 +123,11 @@ ValueTextOverflow.args = {
|
|
|
123
123
|
value: "This value is too long in order to show on a single line of the input field. It should stay on one line, not in an extra line and which wouldn't look like a standard input",
|
|
124
124
|
dense: true,
|
|
125
125
|
warning: true
|
|
126
|
+
};
|
|
127
|
+
export const RTLErrorPlaceholder = args => /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
dir: "rtl"
|
|
129
|
+
}, /*#__PURE__*/React.createElement(Input, args));
|
|
130
|
+
RTLErrorPlaceholder.args = {
|
|
131
|
+
error: true,
|
|
132
|
+
placeholder: 'RTL placeholder'
|
|
126
133
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/input",
|
|
3
|
-
"version": "9.1
|
|
3
|
+
"version": "9.3.0-alpha.1",
|
|
4
4
|
"description": "UI Input",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2-ui/box": "9.1
|
|
37
|
-
"@dhis2-ui/field": "9.1
|
|
38
|
-
"@dhis2-ui/input": "9.1
|
|
39
|
-
"@dhis2-ui/loader": "9.1
|
|
40
|
-
"@dhis2-ui/status-icon": "9.1
|
|
41
|
-
"@dhis2/ui-constants": "9.1
|
|
42
|
-
"@dhis2/ui-icons": "9.1
|
|
36
|
+
"@dhis2-ui/box": "9.3.0-alpha.1",
|
|
37
|
+
"@dhis2-ui/field": "9.3.0-alpha.1",
|
|
38
|
+
"@dhis2-ui/input": "9.3.0-alpha.1",
|
|
39
|
+
"@dhis2-ui/loader": "9.3.0-alpha.1",
|
|
40
|
+
"@dhis2-ui/status-icon": "9.3.0-alpha.1",
|
|
41
|
+
"@dhis2/ui-constants": "9.3.0-alpha.1",
|
|
42
|
+
"@dhis2/ui-icons": "9.3.0-alpha.1",
|
|
43
43
|
"classnames": "^2.3.1",
|
|
44
44
|
"prop-types": "^15.7.2"
|
|
45
45
|
},
|