oolib 2.26.6 → 2.26.8

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.
@@ -42,6 +42,10 @@ var ModalLarge = function (_a) {
42
42
  var initAnimPos = { marginTop: "100vh", opacity: 0 };
43
43
  var endAnimPos = { marginTop: 0, opacity: 1 };
44
44
  var _d = (0, react_1.useState)(endAnimPos), animPos = _d[0], setAnimPos = _d[1];
45
+ (0, react_1.useEffect)(function () {
46
+ document.body.style.overflow = "hidden";
47
+ return function () { return document.body.style.overflow = "unset"; };
48
+ }, []);
45
49
  var ModalHeaderStyle1 = function () {
46
50
  return (react_1.default.createElement(index_styled_1.StyledModalLargeHeader, null,
47
51
  react_1.default.createElement("div", { style: {
@@ -34,9 +34,13 @@ var index_styled_1 = require("../index.styled");
34
34
  var ModalSmall = function (_a) {
35
35
  var title = _a.title, subTitle = _a.subTitle, onClose = _a.onClose, children = _a.children;
36
36
  var screenWidth = (0, useScreenWidth_1.useScreenWidth)();
37
- var initAnimPos = { marginTop: "100vh", opacity: 0, translateY: '100%' };
37
+ var initAnimPos = { marginTop: "100vh", opacity: 0, translateY: "100%" };
38
38
  var endAnimPos = { marginTop: 0, opacity: 1, translateY: 0 };
39
39
  var _b = (0, react_1.useState)(endAnimPos), animPos = _b[0], setAnimPos = _b[1];
40
+ (0, react_1.useEffect)(function () {
41
+ document.body.style.overflow = "hidden";
42
+ return function () { return (document.body.style.overflow = "unset"); };
43
+ }, []);
40
44
  var genModalContents = function () { return (react_1.default.createElement(react_1.Fragment, null,
41
45
  onClose && (react_1.default.createElement("div", { className: "ModalSmall__close" },
42
46
  react_1.default.createElement(Buttons_1.ButtonPrimary, { S: true, icon: "X", onClick: function () { return setAnimPos(initAnimPos); } }))),
@@ -63,10 +67,10 @@ var ModalSmall = function (_a) {
63
67
  // style={{ width: "100%" }}
64
68
  className: "ModalSmall__contentWrapper", initial: {
65
69
  opacity: initAnimPos.opacity,
66
- marginTop: initAnimPos.marginTop
70
+ marginTop: initAnimPos.marginTop,
67
71
  }, animate: {
68
72
  opacity: animPos.opacity,
69
- marginTop: animPos.marginTop
73
+ marginTop: animPos.marginTop,
70
74
  }, transition: {
71
75
  type: "tween",
72
76
  ease: "easeOut",
@@ -21,7 +21,7 @@ exports.StyledModalLargeContentWrapper = styled_components_1.default.div(templat
21
21
  });
22
22
  exports.StyledModalLargeHeader = styled_components_1.default.header(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n /* width: 100%; */\n height: 4rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 2rem;\n position: sticky;\n top: 0;\n z-index: 100;\n"], ["\n background-color: ", ";\n /* width: 100%; */\n height: 4rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 2rem;\n position: sticky;\n top: 0;\n z-index: 100;\n"])), greyColor5);
23
23
  exports.StyledModalLargeBody = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
24
- exports.ModalsClassProvider = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n .Modals {\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n bottom: 0;\n background: ", ";\n z-index: 99999999;\n }\n\n .ModalSmall {\n .ModalSmall__contentWrapper {\n width: 100%;\n position: absolute;\n bottom: 0;\n background-color: ", ";\n .ModalSmall__close {\n width: 100%;\n display: flex;\n justify-content: flex-end;\n }\n .ModalSmall__content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 2rem 4rem 2rem;\n .ModalSmall__content--subTitle {\n margin-top: 0.5rem;\n }\n }\n }\n }\n\n ", " {\n .ModalSmall {\n display: flex;\n justify-content: center;\n align-items: center;\n .ModalSmall__contentWrapper {\n border: 2px solid ", ";\n width: 50vw;\n position: relative;\n border-radius: 0.2rem;\n .ModalSmall__content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 4rem 4rem 4rem;\n }\n }\n }\n }\n"], ["\n .Modals {\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n bottom: 0;\n background: ", ";\n z-index: 99999999;\n }\n\n .ModalSmall {\n .ModalSmall__contentWrapper {\n width: 100%;\n position: absolute;\n bottom: 0;\n background-color: ", ";\n .ModalSmall__close {\n width: 100%;\n display: flex;\n justify-content: flex-end;\n }\n .ModalSmall__content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 2rem 4rem 2rem;\n .ModalSmall__content--subTitle {\n margin-top: 0.5rem;\n }\n }\n }\n }\n\n ", " {\n .ModalSmall {\n display: flex;\n justify-content: center;\n align-items: center;\n .ModalSmall__contentWrapper {\n border: 2px solid ", ";\n width: 50vw;\n position: relative;\n border-radius: 0.2rem;\n .ModalSmall__content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 4rem 4rem 4rem;\n }\n }\n }\n }\n"])), greyColor100_opacity70, white, (0, mixins_1.mediaQuery)("sm"), white);
24
+ exports.ModalsClassProvider = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n .Modals {\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n background: ", ";\n z-index: 99999999;\n }\n\n .ModalSmall {\n .ModalSmall__contentWrapper {\n width: 100%;\n position: absolute;\n bottom: 0;\n background-color: ", ";\n .ModalSmall__close {\n width: 100%;\n display: flex;\n justify-content: flex-end;\n }\n .ModalSmall__content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 2rem 4rem 2rem;\n .ModalSmall__content--subTitle {\n margin-top: 0.5rem;\n }\n }\n }\n }\n\n ", " {\n .ModalSmall {\n display: flex;\n justify-content: center;\n align-items: center;\n .ModalSmall__contentWrapper {\n border: 2px solid ", ";\n width: 50vw;\n position: relative;\n border-radius: 0.2rem;\n .ModalSmall__content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 4rem 4rem 4rem;\n }\n }\n }\n }\n"], ["\n .Modals {\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n background: ", ";\n z-index: 99999999;\n }\n\n .ModalSmall {\n .ModalSmall__contentWrapper {\n width: 100%;\n position: absolute;\n bottom: 0;\n background-color: ", ";\n .ModalSmall__close {\n width: 100%;\n display: flex;\n justify-content: flex-end;\n }\n .ModalSmall__content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 2rem 4rem 2rem;\n .ModalSmall__content--subTitle {\n margin-top: 0.5rem;\n }\n }\n }\n }\n\n ", " {\n .ModalSmall {\n display: flex;\n justify-content: center;\n align-items: center;\n .ModalSmall__contentWrapper {\n border: 2px solid ", ";\n width: 50vw;\n position: relative;\n border-radius: 0.2rem;\n .ModalSmall__content {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n padding: 0 4rem 4rem 4rem;\n }\n }\n }\n }\n"])), greyColor100_opacity70, white, (0, mixins_1.mediaQuery)("sm"), white);
25
25
  exports.StyledModalHeaderStyle2Container = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\ndisplay: flex;\nborder-bottom: 1px solid ", ";\npadding: 1rem 2rem;\nposition: relative;\n\n"], ["\ndisplay: flex;\nborder-bottom: 1px solid ", ";\npadding: 1rem 2rem;\nposition: relative;\n\n"])), greyColor15);
26
26
  exports.StyledModalHeaderStyle2Title = styled_components_1.default.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\npadding-top:1rem;\ndisplay: flex;\nflex-grow: 1;\ngap: 1.5rem;\njustify-content: space-between;\nalign-items: center;\n"], ["\npadding-top:1rem;\ndisplay: flex;\nflex-grow: 1;\ngap: 1.5rem;\njustify-content: space-between;\nalign-items: center;\n"])));
27
27
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.26.6",
3
+ "version": "2.26.8",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",