UNPKG

react-life-design

Version:
41 lines 2.39 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 __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); }; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]]; return t; }; Object.defineProperty(exports, "__esModule", { value: true }); var React = require("react"); var styled_components_1 = require("styled-components"); var index_1 = require("../index"); var styles_1 = require("../utils/styles"); var Aside = styled_components_1.default.aside(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 257px;\n height: 100vh;\n position: fixed;\n left: 0;\n top: 0;\n background-color: ", ";\n padding: ", "px ", "px ", "px ", "px;\n transform: translateX(-257px);\n transition: all 0.5s;\n\n ", "\n\n ", "\n"], ["\n width: 257px;\n height: 100vh;\n position: fixed;\n left: 0;\n top: 0;\n background-color: ", ";\n padding: ", "px ", "px ", "px ", "px;\n transform: translateX(-257px);\n transition: all 0.5s;\n\n ", "\n\n ", "\n"])), index_1.Colors.heaven, index_1.Sizes.s5, index_1.Sizes.s4, index_1.Sizes.s5, index_1.Sizes.s5, styles_1.styledByMediaQuery("\n transform: translateX(0);\n "), function (_a) { var toogleMenu = _a.toogleMenu; return toogleMenu ? "transform: translateX(0); z-index: 1" : "transform: translateX(-257px);"; }); exports.default = (function (_a) { var children = _a.children, props = __rest(_a, ["children"]); return (React.createElement(Aside, __assign({}, props), children)); }); var templateObject_1; //# sourceMappingURL=Sidebar.js.map