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(
|
|
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 <
|
|
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
|
|
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
|