1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = void 0;
|
7 |
|
8 | var _react = _interopRequireDefault(require("react"));
|
9 |
|
10 | var _withStyles = require("../helpers/withStyles");
|
11 |
|
12 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13 |
|
14 | var Block = function Block(_ref) {
|
15 | var css = _ref.css,
|
16 | children = _ref.children,
|
17 | fullHeight = _ref.fullHeight,
|
18 | gray = _ref.gray,
|
19 | largePadding = _ref.largePadding,
|
20 | noPadding = _ref.noPadding,
|
21 | styles = _ref.styles;
|
22 | return _react.default.createElement("div", css(styles.container, fullHeight && styles.fullHeight, gray && styles.container_gray, largePadding && styles.largePadding, noPadding && styles.noPadding), children);
|
23 | };
|
24 |
|
25 | var BlockWithStyles = (0, _withStyles.withStyles)(function (_ref2) {
|
26 | var color = _ref2.color,
|
27 | units = _ref2.units,
|
28 | radius = _ref2.radius;
|
29 | return {
|
30 | container: {
|
31 | background: color.white,
|
32 | borderRadius: radius,
|
33 | padding: units(1)
|
34 | },
|
35 | noPadding: {
|
36 | padding: 0
|
37 | },
|
38 | largePadding: {
|
39 | padding: units(1)
|
40 | },
|
41 | container_gray: {
|
42 | background: color.grayLight
|
43 | },
|
44 | fullHeight: {
|
45 | height: '100%'
|
46 | }
|
47 | };
|
48 | })(Block);
|
49 | var _default = BlockWithStyles;
|
50 | exports.default = _default; |
\ | No newline at end of file |