@credithub/harlan-components 1.11.2 → 1.11.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.
|
@@ -9,14 +9,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Result = exports.ResultContent = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
var theme_1 = __importDefault(require("./theme"));
|
|
13
12
|
var responsiveGrid_1 = __importDefault(require("./responsiveGrid"));
|
|
14
13
|
exports.ResultContent = (0, styled_components_1.default)(responsiveGrid_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 18px 30px;\n box-sizing: border-box;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n\n > * {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n }\n"], ["\n padding: 18px 30px;\n box-sizing: border-box;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n\n > * {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n }\n"])));
|
|
15
|
-
exports.Result = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n flex-direction: column;\n padding: 44px 20px;\n
|
|
14
|
+
exports.Result = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n flex-direction: column;\n padding: 44px 20px;\n \n ", " {\n :nth-child(", ") {\n background: ", ";\n border-radius: 30px;\n }\n }\n"], ["\n display: ", ";\n flex-direction: column;\n padding: 44px 20px;\n \n ", " {\n :nth-child(", ") {\n background: ", ";\n border-radius: 30px;\n }\n }\n"])), function (props) {
|
|
16
15
|
var _a;
|
|
17
16
|
var haveChildren = Array.isArray(props.children) ? (_a = props.children) === null || _a === void 0 ? void 0 : _a.length : props.children;
|
|
18
17
|
return haveChildren ? 'flex' : 'none';
|
|
19
|
-
},
|
|
18
|
+
}, exports.ResultContent, function (props) { var _a; return Array.isArray(props.children) && ((_a = props.children) === null || _a === void 0 ? void 0 : _a.length) > 1 ? 'odd' : 'even'; }, function (_a) {
|
|
20
19
|
var _b = _a.resultContentStriped, resultContentStriped = _b === void 0 ? true : _b;
|
|
21
20
|
return resultContentStriped ? '#FFFFFF' : 'transparent';
|
|
22
21
|
});
|
|
@@ -3,14 +3,13 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import styled from "styled-components";
|
|
6
|
-
import theme from "./theme";
|
|
7
6
|
import ResponsiveGrid from "./responsiveGrid";
|
|
8
7
|
export var ResultContent = styled(ResponsiveGrid)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 18px 30px;\n box-sizing: border-box;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n\n > * {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n }\n"], ["\n padding: 18px 30px;\n box-sizing: border-box;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n\n > * {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n }\n"])));
|
|
9
|
-
export var Result = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n flex-direction: column;\n padding: 44px 20px;\n
|
|
8
|
+
export var Result = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n flex-direction: column;\n padding: 44px 20px;\n \n ", " {\n :nth-child(", ") {\n background: ", ";\n border-radius: 30px;\n }\n }\n"], ["\n display: ", ";\n flex-direction: column;\n padding: 44px 20px;\n \n ", " {\n :nth-child(", ") {\n background: ", ";\n border-radius: 30px;\n }\n }\n"])), function (props) {
|
|
10
9
|
var _a;
|
|
11
10
|
var haveChildren = Array.isArray(props.children) ? (_a = props.children) === null || _a === void 0 ? void 0 : _a.length : props.children;
|
|
12
11
|
return haveChildren ? 'flex' : 'none';
|
|
13
|
-
},
|
|
12
|
+
}, ResultContent, function (props) { var _a; return Array.isArray(props.children) && ((_a = props.children) === null || _a === void 0 ? void 0 : _a.length) > 1 ? 'odd' : 'even'; }, function (_a) {
|
|
14
13
|
var _b = _a.resultContentStriped, resultContentStriped = _b === void 0 ? true : _b;
|
|
15
14
|
return resultContentStriped ? '#FFFFFF' : 'transparent';
|
|
16
15
|
});
|