oolib 2.6.0 → 2.6.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.
|
@@ -81,11 +81,7 @@ var DisplayIcon = function (_a) {
|
|
|
81
81
|
return (react_1.default.createElement("div", { style: { cursor: onClick ? 'pointer' : '' }, onMouseDown: onClick || null }, IconComp && react_1.default.createElement(IconComp, { size: size, weight: "bold" })));
|
|
82
82
|
};
|
|
83
83
|
var TextInput = function (props) {
|
|
84
|
-
var id = props.id, invert = props.invert, disabled = props.disabled, icon = props.icon, type = props.type, maxNumLimiter = props.maxNumLimiter, _a = props.placeholder, placeholder = _a === void 0 ? 'Enter Text...' : _a, value = props.value, onChange = props.onChange, readOnly = props.readOnly, iconOnClick = props.iconOnClick, eyeIcon = props.eyeIcon, S = props.S, validateOnBlur = props.validateOnBlur, actionBtn = props.actionBtn
|
|
85
|
-
// button,
|
|
86
|
-
// onClick,
|
|
87
|
-
// theme
|
|
88
|
-
;
|
|
84
|
+
var id = props.id, invert = props.invert, disabled = props.disabled, icon = props.icon, type = props.type, maxNumLimiter = props.maxNumLimiter, _a = props.placeholder, placeholder = _a === void 0 ? 'Enter Text...' : _a, value = props.value, onChange = props.onChange, readOnly = props.readOnly, iconOnClick = props.iconOnClick, eyeIcon = props.eyeIcon, S = props.S, validateOnBlur = props.validateOnBlur, actionBtn = props.actionBtn, className = props.className;
|
|
89
85
|
var _b = (0, react_1.useState)(''), inputStatus = _b[0], setInputStatus = _b[1];
|
|
90
86
|
var composition = icon && !eyeIcon ? 'icon+text' : 'textOnly';
|
|
91
87
|
var size = S ? 'S' : 'M';
|
|
@@ -119,7 +115,7 @@ var TextInput = function (props) {
|
|
|
119
115
|
}
|
|
120
116
|
};
|
|
121
117
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
122
|
-
react_1.default.createElement("div",
|
|
118
|
+
react_1.default.createElement("div", { className: className },
|
|
123
119
|
react_1.default.createElement("div", { style: { marginBottom: '1rem' } },
|
|
124
120
|
react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, uitls_1.getBlockLabelProps)(props)))),
|
|
125
121
|
readOnly ? (react_1.default.createElement(Typo_1.SANS_3, { invert: invert }, type === 'password' ? '********' : value)) : (react_1.default.createElement(react_1.default.Fragment, null,
|