oolib 2.52.1 → 2.52.2

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.
@@ -91,6 +91,7 @@ var Buttons_1 = require("../Buttons");
91
91
  var _EXPORTS_1 = require("../../utils/_EXPORTS");
92
92
  var LoadersAndProgress_1 = require("../LoadersAndProgress");
93
93
  var OKELink_1 = require("../OKELink");
94
+ var utilsOolib_1 = require("../../utilsOolib");
94
95
  var DisplayIcon = function (_a) {
95
96
  var icon = _a.icon, onClick = _a.onClick, size = _a.size;
96
97
  var IconComp = icons_1.icons[icon];
@@ -157,13 +158,14 @@ var TextInput = function (props) {
157
158
  (0, react_1.useEffect)(function () {
158
159
  forceFocus && inputRef.current && inputRef.current.focus();
159
160
  }, [forceFocus]);
161
+ var localize = (0, utilsOolib_1.useLocale)();
160
162
  return (react_1.default.createElement(react_1.default.Fragment, null,
161
163
  react_1.default.createElement("div", { className: className },
162
164
  react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, _EXPORTS_1.getBlockLabelProps)(props))),
163
165
  readOnly ? (react_1.default.createElement(Typo_1.SANS_3, { invert: invert }, type === "password" ? "********" : value)) : (react_1.default.createElement(react_1.default.Fragment, null,
164
166
  react_1.default.createElement(index_styled_1.InputContainerStyled, { invert: invert, type: type, disabled: disabled, status: validationStatus === null || validationStatus === void 0 ? void 0 : validationStatus.type, eyeIcon: eyeIcon, composition: composition, onClick: function () { return inputRef.current.focus(); } },
165
167
  icon && (react_1.default.createElement(DisplayIcon, { icon: icon, size: S ? 15 : 20, onClick: iconOnClick || null })),
166
- react_1.default.createElement(index_styled_1.InputStyled, { ref: inputRef, className: size === "S" ? "SANS_2" : "SANS_3", id: id, type: type, name: type, placeholder: placeholder, value: value, onChange: handleOnChange, maxLength: maxLength || DEPRECATED_maxNumLimiter, onBlur: validateOnlyOnBlur
168
+ react_1.default.createElement(index_styled_1.InputStyled, { ref: inputRef, className: size === "S" ? "SANS_2" : "SANS_3", id: id, type: type, name: type, placeholder: localize(placeholder), value: value, onChange: handleOnChange, maxLength: maxLength || DEPRECATED_maxNumLimiter, onBlur: validateOnlyOnBlur
167
169
  ? function (e) { return handleValidate(e, onBlur); }
168
170
  : onBlur, onFocus: onFocus, size: size, autoComplete: "off" }),
169
171
  validationStatus === "loading" && (react_1.default.createElement("div", null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.52.1",
3
+ "version": "2.52.2",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",