UNPKG

flex-area-grid

Version:
70 lines 4.19 kB
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.EmptyBlockStyled = exports.TableItemWrapperStyled = exports.TableDataFillHeightStyled = exports.ColStyled = exports.TableStyled = void 0; var styled_components_1 = __importStar(require("styled-components")); exports.TableStyled = styled_components_1.default.table(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100%;\n width: ", ";\n margin-left: ", ";\n margin-top: ", ";\n\n border-spacing: ", ";\n\n ", "\n"], ["\n height: 100%;\n width: ", ";\n margin-left: ", ";\n margin-top: ", ";\n\n border-spacing: ", ";\n\n ", "\n"])), function (_a) { var gridColumnGap = _a.gridColumnGap; return "calc(100% + " + gridColumnGap * 2 + "px)"; }, function (_a) { var gridColumnGap = _a.gridColumnGap; return "-" + gridColumnGap + "px"; }, function (_a) { var gridRowGap = _a.gridRowGap; return "-" + gridRowGap + "px"; }, function (_a) { var gridColumnGap = _a.gridColumnGap, gridRowGap = _a.gridRowGap; return gridColumnGap + "px " + gridRowGap + "px"; }, function (_a) { var showGrid = _a.showGrid; return showGrid && styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n td {\n border: 1px solid black;\n }\n "], ["\n td {\n border: 1px solid black;\n }\n "]))); }); exports.ColStyled = styled_components_1.default.col(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) { var width = _a.width; return width + "%"; }); exports.TableDataFillHeightStyled = styled_components_1.default.td(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n"], ["\n height: 100%;\n"]))); exports.TableItemWrapperStyled = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n justify-content: ", ";\n align-items: ", ";\n\n height: ", ";\n\n ", "\n"], ["\n display: flex;\n justify-content: ", ";\n align-items: ", ";\n\n height: ", ";\n\n ", "\n"])), function (_a) { var justify = _a.justify; return justify; }, function (_a) { var align = _a.align; return align; }, function (_a) { var height = _a.height; return (height ? height + "px" : "100%"); }, function (_a) { var height = _a.height; return height && styled_components_1.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n overflow: auto;\n "], ["\n overflow: auto;\n "]))); }); exports.EmptyBlockStyled = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: ", ";\n"], ["\n height: ", ";\n"])), function (_a) { var height = _a.height; return height + "px"; }); var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7; //# sourceMappingURL=flexGris.styles.js.map