oolib 2.8.1 → 2.8.2
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.
|
@@ -22,10 +22,9 @@ exports.StyledSection = void 0;
|
|
|
22
22
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
23
23
|
var colors_1 = require("../../themes/colors");
|
|
24
24
|
var setBorder = function (_a) {
|
|
25
|
-
var _b;
|
|
26
25
|
var props = _a.props;
|
|
27
26
|
var borderStyles = "";
|
|
28
|
-
var greyColor15 =
|
|
27
|
+
var greyColor15 = colors_1.colors.greyColor15;
|
|
29
28
|
if (props.borderTop || props.borderRight || props.borderLeft || props.borderBottom) {
|
|
30
29
|
if (props.borderTop)
|
|
31
30
|
borderStyles += "border-top: 1px solid ".concat(greyColor15, ";");
|
|
@@ -39,8 +38,9 @@ var setBorder = function (_a) {
|
|
|
39
38
|
return borderStyles;
|
|
40
39
|
};
|
|
41
40
|
var setFill = function (_a) {
|
|
41
|
+
var _b;
|
|
42
42
|
var props = _a.props;
|
|
43
|
-
var colorsObj = props.theme.colors
|
|
43
|
+
var colorsObj = ((_b = props.theme) === null || _b === void 0 ? void 0 : _b.colors)
|
|
44
44
|
? __assign(__assign({}, colors_1.colors), props.theme.colors) : colors_1.colors;
|
|
45
45
|
var colorKey = Object.keys(props).find(function (p) { return !!colorsObj[p]; });
|
|
46
46
|
return colorKey ? "background-color: ".concat(colorsObj[colorKey], ";") : '';
|