UNPKG

infinity-forge

Version:
16 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 __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SideBar = void 0; var styled_components_1 = __importDefault(require("styled-components")); exports.SideBar = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: fixed;\n z-index: 99999;\n top: 0;\n height: 100vh;\n min-height: 100vh;\n transition: width 0.3s ease-in-out;\n width: ", ";\n max-width: ", ";\n ", "\n\n .content {\n transition: transform 0.3s ease-in-out !important;\n overflow: hidden;\n background-color: #fff;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n height: 100%;\n width: 100%;\n margin: ", ";\n position: relative;\n z-index: 999999;\n max-width: ", ";\n transform: ", ";\n\n > div {\n padding: 15px;\n }\n }\n"], ["\n width: 100%;\n position: fixed;\n z-index: 99999;\n top: 0;\n height: 100vh;\n min-height: 100vh;\n transition: width 0.3s ease-in-out;\n width: ", ";\n max-width: ", ";\n ", "\n\n .content {\n transition: transform 0.3s ease-in-out !important;\n overflow: hidden;\n background-color: #fff;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n height: 100%;\n width: 100%;\n margin: ", ";\n position: relative;\n z-index: 999999;\n max-width: ", ";\n transform: ", ";\n\n > div {\n padding: 15px;\n }\n }\n"])), function (props) { return (props.$open ? (props.$overlay ? '100vw' : props.$maxWidth) : '0px'); }, function (props) { return (props.$maxWidth ? '100%' : props.$maxWidth); }, function (props) { return (props.$direction === 'right' ? "right: 0;" : 'left: 0;'); }, function (props) { return (props.$direction === 'left' ? '0 auto 0 0' : '0 0 0 auto'); }, function (props) { return props.$maxWidth; }, function (props) { return props.$open ? 'translateX(0)' : props.$direction === 'right' ? 'translateX(100%)' : 'translateX(-100%)'; }); var templateObject_1; //# sourceMappingURL=styles.js.map