oolib 2.75.1 → 2.75.3

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.
@@ -45,6 +45,8 @@ var utils_1 = require("../../utils");
45
45
  var styled_1 = require("../../styled");
46
46
  var CheckboxInput_1 = require("./comps/CheckboxInput");
47
47
  var styled_2 = require("./styled");
48
+ var Typo_1 = require("../../../Typo");
49
+ var OKELink_1 = require("../../../OKELink");
48
50
  var optionsContainers = {
49
51
  checkbox: styled_1.StyledOptionsContainer,
50
52
  tagSelect: styled_2.StyledTagOptionsContainer,
@@ -101,7 +103,8 @@ function CheckboxList(_a) {
101
103
  react_1.default.createElement(CheckboxInput_1.CheckboxInput, __assign({}, __assign(__assign({}, InputCommonProps), { option: injectedOtherOption }))),
102
104
  otherOpInSelectees && (react_1.default.createElement(styled_1.StyledOtherTextInputWrapper, __assign({}, { listType: listType, rightWrongResult: rightWrongResult }),
103
105
  react_1.default.createElement(TextInputs_1.TextInput, __assign({ placeholder: "Please Specify Here", value: otherOpInSelectees.display_desc, onChange: function (k, v) { return handleTextInputChange(v); } }, { disabled: disabled, invert: invert, S: S }))))))),
104
- shouldHideSomeOptions && !rightWrongResult && (react_1.default.createElement(Buttons_1.ButtonGhost, { onClick: function () { return setSeeMore(!seeMore); }, value: !seeMore ? 'See More' : 'See Less', style: inputStyle != 'tagSelect' ? { marginTop: 10 } : {} })),
106
+ shouldHideSomeOptions && !rightWrongResult && (react_1.default.createElement(Typo_1.SANS_3, { style: { marginTop: '1rem' } },
107
+ react_1.default.createElement(OKELink_1.OKELink, { onClick: function () { return setSeeMore(!seeMore); }, children: !seeMore ? 'See More' : 'See Less' }))),
105
108
  rightWrongResult && commonIsCorrectDesc &&
106
109
  react_1.default.createElement(styled_1.StyledCorrectMessage, null, commonIsCorrectDesc)))));
107
110
  }
@@ -216,7 +216,7 @@ var PhoneInput = function (_a) {
216
216
  passValidationErrorToFormValidation(errorObj.type);
217
217
  return errorObj;
218
218
  }
219
- if (value.length < 10) {
219
+ if (value.length < 9) {
220
220
  errorObj = { type: "error", msg: "Enter a valid phone number" };
221
221
  if (passValidationErrorToFormValidation)
222
222
  passValidationErrorToFormValidation(errorObj.type);
package/dist/index.js CHANGED
@@ -122,7 +122,7 @@ Object.defineProperty(exports, "OptionsSingle", { enumerable: true, get: functio
122
122
  //used only by FilterInput. once that is shifted to oolib, dont need to export it anymore
123
123
  var generateOptions_1 = require("./components/Dropdowns/utils/generateOptions");
124
124
  Object.defineProperty(exports, "generateOptions", { enumerable: true, get: function () { return generateOptions_1.generateOptions; } });
125
- //used only by TagsCheckbox & TagsRadio. once that is shifted to oolib, dont need to export it anymore
125
+ //used only by TagsInputSingle and Multi, in the checkbox & radio variant. once that is shifted to oolib, dont need to export it anymore
126
126
  var genTagComp_1 = require("./components/Dropdowns/utils/genTagComp");
127
127
  Object.defineProperty(exports, "genTagComp", { enumerable: true, get: function () { return genTagComp_1.genTagComp; } });
128
128
  ////// context
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.75.1",
3
+ "version": "2.75.3",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",