UNPKG

dm-web-react

Version:

The DM web client with React.

26 lines 2.49 kB
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; import * as React from "react"; import styled from "styled-components"; import IconClear from "../icons/Clear"; export var ModalHeader = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: none;\n height: 50px;\n line-height: 50px;\n font-size: 14px;\n color: #ffffff;\n text-align: center;\n background: #3d414d;\n box-shadow: inset 0 -1px 0 0 #3d414d;\n border-radius: 4px 4px 0 0;\n"], ["\n flex: none;\n height: 50px;\n line-height: 50px;\n font-size: 14px;\n color: #ffffff;\n text-align: center;\n background: #3d414d;\n box-shadow: inset 0 -1px 0 0 #3d414d;\n border-radius: 4px 4px 0 0;\n"]))); export var ModalContent = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: auto;\n overflow: auto;\n"], ["\n flex: auto;\n overflow: auto;\n"]))); export var ModalFooter = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: none;\n box-shadow: inset 0 1px 0 0 #3d414d;\n"], ["\n flex: none;\n box-shadow: inset 0 1px 0 0 #3d414d;\n"]))); var CloseBtn = function (props) { return (React.createElement("span", __assign({}, props), React.createElement(IconClear, null))); }; export var ModalCloseBtn = styled(CloseBtn)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 24px;\n height: 24px;\n line-height: 24px;\n color: #909299;\n display: inline-block;\n position: absolute;\n top: 13px;\n right: 13px;\n cursor: pointer;\n :hover {\n color: #fff;\n }\n"], ["\n width: 24px;\n height: 24px;\n line-height: 24px;\n color: #909299;\n display: inline-block;\n position: absolute;\n top: 13px;\n right: 13px;\n cursor: pointer;\n :hover {\n color: #fff;\n }\n"]))); var templateObject_1, templateObject_2, templateObject_3, templateObject_4; //# sourceMappingURL=styled.js.map