oolib 2.27.10 → 2.27.11

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.
@@ -1,5 +1,8 @@
1
1
  export function TextInput(props: any): any;
2
- export function PasswordInput(props: any): any;
2
+ export function PasswordInput({ enableValidation, ...props }: {
3
+ [x: string]: any;
4
+ enableValidation?: boolean;
5
+ }): any;
3
6
  export function EmailInput(props: any): any;
4
7
  export function PhoneInput(props: any): any;
5
8
  export function URLInput({ routesAreValidInputs, ...props }: {
@@ -150,8 +150,9 @@ var TextInput = function (props) {
150
150
  react_1.default.createElement(Typo_1.SANS_3, null, inputStatus.msg))))))));
151
151
  };
152
152
  exports.TextInput = TextInput;
153
- var PasswordInput = function (props) {
154
- var _a = (0, react_1.useState)(false), showPassword = _a[0], setShowPassword = _a[1];
153
+ var PasswordInput = function (_a) {
154
+ var _b = _a.enableValidation, enableValidation = _b === void 0 ? true : _b, props = __rest(_a, ["enableValidation"]);
155
+ var _c = (0, react_1.useState)(false), showPassword = _c[0], setShowPassword = _c[1];
155
156
  var icon = showPassword ? 'Eye' : 'EyeClosed';
156
157
  var toggleShowPassword = function (e) {
157
158
  e.preventDefault();
@@ -183,7 +184,7 @@ var PasswordInput = function (props) {
183
184
  return { type: 'error', msg: 'Password must contain a special character' };
184
185
  }
185
186
  };
186
- return (react_1.default.createElement(exports.TextInput, __assign({ placeholder: 'Enter password...', type: showPassword ? 'text' : 'password', iconOnClick: toggleShowPassword, eyeIcon: true, icon: icon, validateOnBlur: handleValidation }, props)));
187
+ return (react_1.default.createElement(exports.TextInput, __assign({ placeholder: 'Enter password...', type: showPassword ? 'text' : 'password', iconOnClick: toggleShowPassword, eyeIcon: true, icon: icon, validateOnBlur: enableValidation && handleValidation }, props)));
187
188
  };
188
189
  exports.PasswordInput = PasswordInput;
189
190
  var EmailInput = function (props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.27.10",
3
+ "version": "2.27.11",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",