oolib 2.5.1 → 2.5.4

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,7 +128,7 @@ var TextInput = function (props) {
128
128
  react_1.default.createElement(index_styled_1.InputStyled, { className: 'SANS_3', id: id, type: type, name: type, placeholder: placeholder, value: value, onChange: handleOnChange, maxLength: maxNumLimiter, onBlur: handleValidateOnBlur, size: size, autoComplete: 'off' }),
129
129
  inputStatus === 'loading' && (react_1.default.createElement("div", { style: { padding: '1rem 0' } },
130
130
  react_1.default.createElement(Loader_1.Loader, { invert: invert, inline: true }))),
131
- actionBtn && (react_1.default.createElement(Buttons_1.ButtonPrimary, { value: actionBtn.text, invert: actionBtn.invert, onClick: actionBtnEnabaled && actionBtn.onClick(), disabled: !actionBtnEnabaled, theme: props.theme, style: { marginRight: '-2rem' } }))),
131
+ actionBtn && (react_1.default.createElement(Buttons_1.ButtonPrimary, { value: actionBtn.text, invert: actionBtn.invert, onClick: actionBtnEnabaled && actionBtn.onClick, disabled: !actionBtnEnabaled, theme: props.theme, style: { marginRight: '-2rem' } }))),
132
132
  (inputStatus === null || inputStatus === void 0 ? void 0 : inputStatus.msg) && (react_1.default.createElement(index_styled_1.MsgContainer, { invert: invert, status: inputStatus === null || inputStatus === void 0 ? void 0 : inputStatus.type },
133
133
  react_1.default.createElement(Typo_1.SANS_3, null, inputStatus.msg))))))));
134
134
  };
@@ -193,7 +193,7 @@ var PhoneInput = function (props) {
193
193
  exports.PhoneInput = PhoneInput;
194
194
  var URLInput = function (props) {
195
195
  var handleValidation = function (value) { return __awaiter(void 0, void 0, void 0, function () {
196
- var response, error_1;
196
+ var response, err_1;
197
197
  return __generator(this, function (_a) {
198
198
  switch (_a.label) {
199
199
  case 0:
@@ -210,7 +210,10 @@ var URLInput = function (props) {
210
210
  throw new Error('');
211
211
  return [2 /*return*/, { type: 'success', msg: 'valid url' }];
212
212
  case 3:
213
- error_1 = _a.sent();
213
+ err_1 = _a.sent();
214
+ if (/(https?|ftp):\/\/(-\.)?([^\s/?\.#-]+\.?)+(\/[^\s]*)?$/.test(value)) {
215
+ return [2 /*return*/, { type: 'success', msg: 'valid url' }];
216
+ }
214
217
  return [2 /*return*/, { type: 'error', msg: 'Enter a valid url...' }];
215
218
  case 4: return [2 /*return*/];
216
219
  }
@@ -70,6 +70,7 @@ export namespace phosphorIcons {
70
70
  export { LanguageIcon };
71
71
  export { ArrowRight };
72
72
  export { Sliders };
73
+ export { Faders };
73
74
  }
74
75
  import { PencilSimple } from "phosphor-react";
75
76
  import { PencilLine } from "phosphor-react";
@@ -142,3 +143,4 @@ import IndexIcon from "./IndexIcon";
142
143
  import LanguageIcon from "./LangIcon";
143
144
  import { ArrowRight } from "phosphor-react";
144
145
  import { Sliders } from "phosphor-react";
146
+ import { Faders } from "phosphor-react";
@@ -81,5 +81,6 @@ exports.phosphorIcons = {
81
81
  IndexIcon: IndexIcon_1.default,
82
82
  LanguageIcon: LangIcon_1.default,
83
83
  ArrowRight: phosphor_react_1.ArrowRight,
84
- Sliders: phosphor_react_1.Sliders
84
+ Sliders: phosphor_react_1.Sliders,
85
+ Faders: phosphor_react_1.Faders
85
86
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.5.1",
3
+ "version": "2.5.4",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",