oolib 2.57.3 → 2.57.5

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.
@@ -117,7 +117,7 @@ var OptionsMulti = function (_a) {
117
117
  borderBottom: "1px solid ".concat(greyColor40),
118
118
  } },
119
119
  react_1.default.createElement(Typo_1.LABEL, { invert: invert, style: { padding: "2rem", paddingBottom: 0 }, color: colors_1.colors.greyColor70 }, "selected"),
120
- selectedOptions.map(function (d) { return (react_1.default.createElement(styled_1.StyledOption, { invert: invert, key: d.value, isSelected: opIsSelected(d), className: "OKE-Dropdown__option", onClick: function (e) {
120
+ selectedOptions.map(function (d) { return (react_1.default.createElement(styled_1.StyledOption, { invert: invert, key: d.value, isSelected: opIsSelected(d), S: S, onClick: function (e) {
121
121
  if (!d.loading) {
122
122
  handleSelect(d);
123
123
  setSearchString("");
@@ -53,7 +53,7 @@ exports.StyledOptionsWrapper = styled_components_1.default.ul(templateObject_1 |
53
53
  return '24rem';
54
54
  }
55
55
  });
56
- exports.StyledOption = styled_components_1.default.li(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0 2rem;\n ", "\n ", ";\n\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:first-of-type {\n margin-top: 1rem;\n }\n\n &:last-of-type {\n margin-bottom: 1rem;\n }\n\n .OKE-Dropdown__optionDesc {\n @include kp-clamp-text(2);\n white-space: normal;\n }\n\n .OKE-Dropdown__optionImg {\n flex: 0 0 auto;\n }\n\n .OKE-Dropdown__checkboxClickArea {\n position: absolute;\n width: 2rem;\n height: 2rem;\n }\n .OKE-Dropdown__checkboxClickArea-box {\n margin-right: 2rem;\n flex-shrink: 0;\n }\n"], ["\n display: flex;\n align-items: center;\n padding: 0 2rem;\n ", "\n ", ";\n\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:first-of-type {\n margin-top: 1rem;\n }\n\n &:last-of-type {\n margin-bottom: 1rem;\n }\n\n .OKE-Dropdown__optionDesc {\n @include kp-clamp-text(2);\n white-space: normal;\n }\n\n .OKE-Dropdown__optionImg {\n flex: 0 0 auto;\n }\n\n .OKE-Dropdown__checkboxClickArea {\n position: absolute;\n width: 2rem;\n height: 2rem;\n }\n .OKE-Dropdown__checkboxClickArea-box {\n margin-right: 2rem;\n flex-shrink: 0;\n }\n"])), function (_a) {
56
+ exports.StyledOption = styled_components_1.default.li(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n box-sizing: border-box; //this ensures that the padding is contained within the min-height, rather than adding to it\n padding: 1rem 2rem;\n ", "\n ", ";\n\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:first-of-type {\n margin-top: 1rem;\n }\n\n &:last-of-type {\n margin-bottom: 1rem;\n }\n\n .OKE-Dropdown__optionDesc {\n @include kp-clamp-text(2);\n white-space: normal;\n }\n\n .OKE-Dropdown__optionImg {\n flex: 0 0 auto;\n }\n\n .OKE-Dropdown__checkboxClickArea {\n position: absolute;\n width: 2rem;\n height: 2rem;\n }\n .OKE-Dropdown__checkboxClickArea-box {\n margin-right: 1rem;\n flex-shrink: 0;\n }\n"], ["\n display: flex;\n align-items: center;\n box-sizing: border-box; //this ensures that the padding is contained within the min-height, rather than adding to it\n padding: 1rem 2rem;\n ", "\n ", ";\n\n background-color: ", ";\n\n &:hover {\n background-color: ", ";\n }\n\n &:first-of-type {\n margin-top: 1rem;\n }\n\n &:last-of-type {\n margin-bottom: 1rem;\n }\n\n .OKE-Dropdown__optionDesc {\n @include kp-clamp-text(2);\n white-space: normal;\n }\n\n .OKE-Dropdown__optionImg {\n flex: 0 0 auto;\n }\n\n .OKE-Dropdown__checkboxClickArea {\n position: absolute;\n width: 2rem;\n height: 2rem;\n }\n .OKE-Dropdown__checkboxClickArea-box {\n margin-right: 1rem;\n flex-shrink: 0;\n }\n"])), function (_a) {
57
57
  var S = _a.S;
58
58
  return !S
59
59
  ? (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n \n min-height: 4rem;\n "], ["\n \n min-height: 4rem;\n "]))) : (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 3rem;\n "], ["\n height: 3rem;\n "])));
@@ -48,8 +48,15 @@ var SelectDropdown = function (_a) {
48
48
  react_1.default.createElement("div", null,
49
49
  react_1.default.createElement("div", { style: { display: "flex", gap: "1rem", alignItems: "center" } },
50
50
  showElem("icon") && (0, genIcon_1.genIcon)(value === null || value === void 0 ? void 0 : value.icon),
51
- showElem("display") && (react_1.default.createElement(TypoComp, { semibold: dropdownSelectText.desc && showElem("desc") ? true : undefined, className: "".concat(selectClassName || "", " ").concat(!value && placeholder) }, dropdownSelectText.display))),
52
- (dropdownSelectText === null || dropdownSelectText === void 0 ? void 0 : dropdownSelectText.desc) && showElem("desc") && (react_1.default.createElement(TypoComp, null, dropdownSelectText.desc))),
51
+ showElem("display") && (react_1.default.createElement(TypoComp
52
+ // semibold={
53
+ // dropdownSelectText.desc && showElem("desc") ? true : undefined
54
+ // }
55
+ , {
56
+ // semibold={
57
+ // dropdownSelectText.desc && showElem("desc") ? true : undefined
58
+ // }
59
+ className: "".concat(selectClassName || "", " ").concat(!value && placeholder) }, dropdownSelectText.display)))),
53
60
  react_1.default.createElement(Caret_1.Caret, __assign({}, { caretColor: caretColor, showOptions: showOptions, invert: invert, disabled: disabled })))); };
54
61
  return genCustomSelectComp ? genCustomSelectComp() : genSelectComp();
55
62
  };
@@ -11,7 +11,7 @@ var Typo_1 = require("../../../../Typo");
11
11
  var styled_1 = require("../../styled");
12
12
  var ModalHeaderStyle1 = function (_a) {
13
13
  var title = _a.title, linkTo = _a.linkTo, onClose = _a.onClose, setAnimPos = _a.setAnimPos, initAnimPos = _a.initAnimPos, invert = _a.invert;
14
- return (react_1.default.createElement(styled_1.StyledModalLargeHeader, null,
14
+ return (react_1.default.createElement(styled_1.StyledModalLargeHeader, { invert: invert },
15
15
  react_1.default.createElement("div", { style: {
16
16
  display: "flex",
17
17
  gap: "2.5rem",
@@ -98,11 +98,12 @@ var DisplayIcon = function (_a) {
98
98
  return (react_1.default.createElement("div", { style: { cursor: onClick ? "pointer" : "", display: "flex" }, onMouseDown: onClick || null }, IconComp && react_1.default.createElement(IconComp, { size: size, weight: "bold" })));
99
99
  };
100
100
  var TextInput = function (props) {
101
- var id = props.id, invert = props.invert, disabled = props.disabled, icon = props.icon, type = props.type, _a = props.placeholder, placeholder = _a === void 0 ? "Enter Text..." : _a, _b = props.value, value = _b === void 0 ? "" : _b, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, readOnly = props.readOnly, iconOnClick = props.iconOnClick, eyeIcon = props.eyeIcon, S = props.S, handleValidation = props.handleValidation, validateOnMount = props.validateOnMount, actionBtn = props.actionBtn, clearBtn = props.clearBtn, className = props.className, maxLength = props.maxLength, DEPRECATED_maxNumLimiter = props.maxNumLimiter, forceFocus = props.forceFocus, //sometimes, when some other elem is clicked, we wanna trigger focus on the textinput. eg. when on mobile, the search icon is clicked on the listingpage
102
- _c = props.validateOnlyOnBlur, //sometimes, when some other elem is clicked, we wanna trigger focus on the textinput. eg. when on mobile, the search icon is clicked on the listingpage
103
- validateOnlyOnBlur = _c === void 0 ? false : _c, //for example, in the login form we want validation to only run, once the text input is blurred. else it can be irritating
101
+ var id = props.id, invert = props.invert, disabled = props.disabled, icon = props.icon, type = props.type, _a = props.placeholder, placeholder = _a === void 0 ? "Enter Text..." : _a, _b = props.value, value = _b === void 0 ? "" : _b, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, readOnly = props.readOnly, iconOnClick = props.iconOnClick, eyeIcon = props.eyeIcon, S = props.S, handleValidation = props.handleValidation, _c = props.validateOnMount, validateOnMount = _c === void 0 ? true : _c, // i think it makes sense to always run validation the minute the comp mounts, but we will see if this has sideeffects
102
+ actionBtn = props.actionBtn, clearBtn = props.clearBtn, className = props.className, maxLength = props.maxLength, DEPRECATED_maxNumLimiter = props.maxNumLimiter, forceFocus = props.forceFocus, //sometimes, when some other elem is clicked, we wanna trigger focus on the textinput. eg. when on mobile, the search icon is clicked on the listingpage
103
+ _d = props.validateOnlyOnBlur, //sometimes, when some other elem is clicked, we wanna trigger focus on the textinput. eg. when on mobile, the search icon is clicked on the listingpage
104
+ validateOnlyOnBlur = _d === void 0 ? false : _d, //for example, in the login form we want validation to only run, once the text input is blurred. else it can be irritating
104
105
  _validationStatus = props.validationStatus;
105
- var _d = (0, react_1.useState)(_validationStatus), validationStatus = _d[0], setValidationStatus = _d[1];
106
+ var _e = (0, react_1.useState)(_validationStatus), validationStatus = _e[0], setValidationStatus = _e[1];
106
107
  (0, react_1.useEffect)(function () {
107
108
  setValidationStatus(_validationStatus);
108
109
  }, [_validationStatus]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.57.3",
3
+ "version": "2.57.5",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",