oolib 2.59.2 → 2.60.0
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.
- package/dist/components/ActionMenu/styled.js +2 -7
- package/dist/components/DatePicker/styled.js +1 -4
- package/dist/components/Dropdowns/comps/OptionsSingle/styled.js +4 -3
- package/dist/components/Hints/styled.js +2 -1
- package/dist/globalStyles/globalVariables.d.ts +1 -0
- package/dist/globalStyles/globalVariables.js +11 -3
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ exports.StyledOption = exports.StyledOptionsWrapper = exports.StyledActionsDropM
|
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
var themes_1 = require("../../themes");
|
|
33
33
|
var mixins_1 = require("../../themes/mixins");
|
|
34
|
+
var globalVariables_1 = require("../../globalStyles/globalVariables");
|
|
34
35
|
var greyColor5 = themes_1.colors.greyColor5, white = themes_1.colors.white, greyColor10 = themes_1.colors.greyColor10, greyColor70 = themes_1.colors.greyColor70, greyColor100 = themes_1.colors.greyColor100, greyColor80 = themes_1.colors.greyColor80;
|
|
35
36
|
var pointerHeight = 10;
|
|
36
37
|
/**
|
|
@@ -82,13 +83,7 @@ exports.StyledActionsDropMenu = styled_components_1.default.div(templateObject_1
|
|
|
82
83
|
? optionsHeight + pointerHeight + offset + "px" || "auto"
|
|
83
84
|
: 0;
|
|
84
85
|
});
|
|
85
|
-
exports.StyledOptionsWrapper = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n position: absolute;\n bottom: 10px;\n padding: 0.6rem 0;\n
|
|
86
|
-
var invert = _a.invert;
|
|
87
|
-
return (invert ? greyColor70 : greyColor5);
|
|
88
|
-
}, function (_a) {
|
|
89
|
-
var invert = _a.invert;
|
|
90
|
-
return (invert ? greyColor80 : white);
|
|
91
|
-
}, offset, function (_a) {
|
|
86
|
+
exports.StyledOptionsWrapper = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n position: absolute;\n bottom: 10px;\n padding: 0.6rem 0;\n ", "\n margin: 0 ", "px;\n\n //pointer outline\n &::after {\n content: \"\";\n width: 0;\n height: 0;\n position: absolute;\n bottom: 100%;\n\n ", "\n\n border: 1rem solid transparent;\n border-bottom: 1rem solid\n ", ";\n }\n\n //pointer fill\n &::before {\n content: \"\";\n width: 0;\n height: 0;\n position: absolute;\n bottom: 100%;\n ", "\n border: 0.85rem solid transparent;\n border-bottom: 0.85rem solid\n ", ";\n z-index: 1;\n }\n"], ["\n position: absolute;\n bottom: 10px;\n padding: 0.6rem 0;\n ", "\n margin: 0 ", "px;\n\n //pointer outline\n &::after {\n content: \"\";\n width: 0;\n height: 0;\n position: absolute;\n bottom: 100%;\n\n ", "\n\n border: 1rem solid transparent;\n border-bottom: 1rem solid\n ", ";\n }\n\n //pointer fill\n &::before {\n content: \"\";\n width: 0;\n height: 0;\n position: absolute;\n bottom: 100%;\n ", "\n border: 0.85rem solid transparent;\n border-bottom: 0.85rem solid\n ", ";\n z-index: 1;\n }\n"])), globalVariables_1.lightboxStyle, offset, function (_a) {
|
|
92
87
|
var align = _a.align;
|
|
93
88
|
return align === "center"
|
|
94
89
|
? (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n left: 50%;\n transform: translateX(-50%);\n "], ["\n left: 50%;\n transform: translateX(-50%);\n "]))) : (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n ", ": 0.5rem;\n "], ["\n ", ": 0.5rem;\n "])), align);
|
|
@@ -31,10 +31,7 @@ exports.StyledInput = styled_components_1.default.input(templateObject_2 || (tem
|
|
|
31
31
|
"\n color: ".concat(greyColor40, "\n background-color: ").concat(greyColor15, ";\n cursor: not-allowed;\n ");
|
|
32
32
|
}, greyColor40);
|
|
33
33
|
exports.StyledDateInputWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), globalVariables_1.inputElemFocused);
|
|
34
|
-
exports.StyledCalenderContainer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-family: sans-serif;\n position: absolute;\n width: 30rem;\n /* height: 319px; */\n
|
|
35
|
-
var invert = _a.invert;
|
|
36
|
-
return invert ? greyColor80 : white;
|
|
37
|
-
}, function (_a) {
|
|
34
|
+
exports.StyledCalenderContainer = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n font-family: sans-serif;\n position: absolute;\n width: 30rem;\n /* height: 319px; */\n visibility: hidden;\n z-index: 10000;\n\n .disabled-date {\n opacity: 0.5;\n pointer-events: none;\n }\n \n .range {\n background-color: ", ";\n color: ", ";\n }\n\n .today {\n background-color: ", ";\n color: ", ";\n }\n\n .right-class {\n right: 0;\n }\n"], ["\n ", "\n font-family: sans-serif;\n position: absolute;\n width: 30rem;\n /* height: 319px; */\n visibility: hidden;\n z-index: 10000;\n\n .disabled-date {\n opacity: 0.5;\n pointer-events: none;\n }\n \n .range {\n background-color: ", ";\n color: ", ";\n }\n\n .today {\n background-color: ", ";\n color: ", ";\n }\n\n .right-class {\n right: 0;\n }\n"])), globalVariables_1.lightboxStyle, function (_a) {
|
|
38
35
|
var invert = _a.invert;
|
|
39
36
|
return invert ? greyColor3 : primaryColor10;
|
|
40
37
|
}, function (_a) {
|
|
@@ -32,13 +32,14 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
32
32
|
var themes_1 = require("../../../../themes");
|
|
33
33
|
var mixins_1 = require("../../../../themes/mixins");
|
|
34
34
|
var utilsOolib_1 = require("../../../../utilsOolib");
|
|
35
|
-
|
|
35
|
+
var globalVariables_1 = require("../../../../globalStyles/globalVariables");
|
|
36
|
+
exports.StyledOptionsWrapper = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: 100000;\n padding-left: 0; //cancel out the ul's padding left\n cursor: pointer;\n ", "\n border-top-right-radius: 0px;\n border-top-left-radius: 0px;\n /* border: 1px solid ", "; */\n /* border-bottom-right-radius: 2px; */\n /* border-bottom-left-radius: 2px; */\n /* background-color: ", "; */\n /* ", "; */\n width: 100%;\n min-width: max-content;\n min-width: -moz-max-content;\n max-width: 36rem;\n overflow: auto;\n \n /* border: ", "; */\n max-height: ", ";\n"], ["\n z-index: 100000;\n padding-left: 0; //cancel out the ul's padding left\n cursor: pointer;\n ", "\n border-top-right-radius: 0px;\n border-top-left-radius: 0px;\n /* border: 1px solid ", "; */\n /* border-bottom-right-radius: 2px; */\n /* border-bottom-left-radius: 2px; */\n /* background-color: ", "; */\n /* ", "; */\n width: 100%;\n min-width: max-content;\n min-width: -moz-max-content;\n max-width: 36rem;\n overflow: auto;\n \n /* border: ", "; */\n max-height: ", ";\n"])), globalVariables_1.lightboxStyle, function (_a) {
|
|
36
37
|
var invert = _a.invert;
|
|
37
38
|
return (invert ? themes_1.colors.greyColor70 : themes_1.colors.greyColor5);
|
|
38
|
-
},
|
|
39
|
+
}, function (_a) {
|
|
39
40
|
var invert = _a.invert;
|
|
40
41
|
return invert ? themes_1.colors.greyColor90 : themes_1.colors.white;
|
|
41
|
-
}, function (_a) {
|
|
42
|
+
}, mixins_1.boxShadow1, function (_a) {
|
|
42
43
|
var invert = _a.invert;
|
|
43
44
|
return invert && "1px solid ".concat(themes_1.colors.greyColor80);
|
|
44
45
|
}, function (_a) {
|
|
@@ -10,9 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.StyledTriangle = exports.StyledLightBoxList = exports.StyledLightBoxContent = exports.StyledLightBoxHeader = exports.StyledLightbox = exports.StyledHints = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var themes_1 = require("../../themes");
|
|
13
|
+
var globalVariables_1 = require("../../globalStyles/globalVariables");
|
|
13
14
|
var white = themes_1.colors.white, greyColor15 = themes_1.colors.greyColor15, greyColor100 = themes_1.colors.greyColor100;
|
|
14
15
|
exports.StyledHints = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
15
|
-
exports.StyledLightbox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n z-index: 1000;\n background: ", ";\n position: absolute;\n
|
|
16
|
+
exports.StyledLightbox = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n z-index: 1000;\n background: ", ";\n position: absolute;\n width: 30rem;\n height: 35rem;\n ", "\n /* top: ", "; */\n /* right: ", "; */\n\n top: ", ";\n left: ", ";\n bottom: ", ";\n right: ", ";\n\n display: flex;\n flex-direction: column;\n"], ["\n z-index: 1000;\n background: ", ";\n position: absolute;\n width: 30rem;\n height: 35rem;\n ", "\n /* top: ", "; */\n /* right: ", "; */\n\n top: ", ";\n left: ", ";\n bottom: ", ";\n right: ", ";\n\n display: flex;\n flex-direction: column;\n"])), white, globalVariables_1.lightboxStyle, function (_a) {
|
|
16
17
|
var style = _a.style;
|
|
17
18
|
return ((style === null || style === void 0 ? void 0 : style.top) ? style.top : "-1rem");
|
|
18
19
|
}, function (_a) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export const inputElemPadding: import("styled-components").FlattenSimpleInterpolation;
|
|
2
2
|
export const inputElemHover: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
3
3
|
export const inputElemFocused: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
4
|
+
export const lightboxStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.inputElemFocused = exports.inputElemHover = exports.inputElemPadding = void 0;
|
|
7
|
+
exports.lightboxStyle = exports.inputElemFocused = exports.inputElemHover = exports.inputElemPadding = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
var themes_1 = require("../themes");
|
|
10
10
|
var mixins_1 = require("../themes/mixins");
|
|
@@ -16,9 +16,17 @@ exports.inputElemHover = (0, styled_components_1.css)(templateObject_2 || (templ
|
|
|
16
16
|
});
|
|
17
17
|
exports.inputElemFocused = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n &::after {\n content: '';\n position: absolute;\n width: 0;\n height: 2px;\n bottom: 0;\n left: 0;\n box-shadow: inset 0px -2px 0px ", ";\n ", "\n }\n &:focus-within {\n background-color: ", ";\n ::after {\n width: 100%;\n }\n } \n"], ["\n &::after {\n content: '';\n position: absolute;\n width: 0;\n height: 2px;\n bottom: 0;\n left: 0;\n box-shadow: inset 0px -2px 0px ", ";\n ", "\n }\n &:focus-within {\n background-color: ", ";\n ::after {\n width: 100%;\n }\n } \n"])), function (_a) {
|
|
18
18
|
var invert = _a.invert;
|
|
19
|
-
return (invert ?
|
|
19
|
+
return (invert ? themes_1.colors.primaryColor40 : themes_1.colors.primaryColor100);
|
|
20
20
|
}, (0, mixins_1.transition)('width'), function (_a) {
|
|
21
21
|
var invert = _a.invert;
|
|
22
22
|
return (invert ? themes_1.colors.greyColor70 : themes_1.colors.greyColor10);
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
// Lghtbox style used for DatePicker, Dropdowns, hints and ActionMenu
|
|
25
|
+
exports.lightboxStyle = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border: 1px solid ", ";\n background-color: ", ";\n border-radius: 2px;\n box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);\n"], ["\n border: 1px solid ", ";\n background-color: ", ";\n border-radius: 2px;\n box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);\n"])), function (_a) {
|
|
26
|
+
var invert = _a.invert;
|
|
27
|
+
return (invert ? themes_1.colors.greyColor70 : themes_1.colors.greyColor5);
|
|
28
|
+
}, function (_a) {
|
|
29
|
+
var invert = _a.invert;
|
|
30
|
+
return (invert ? themes_1.colors.greyColor80 : themes_1.colors.white);
|
|
31
|
+
});
|
|
32
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|