var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
import React from 'react';
import styled, { css } from '@monstrosity/utilities/themed-components';
import { Scrollable } from '../../primitives/Scrollable/scrollable';
export var StyledPanel = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  width: 100%;\n  min-height: 1rem;\n  max-height: 80vh;\n"], ["\n  width: 100%;\n  min-height: 1rem;\n  max-height: 80vh;\n"])));
export var PanelRootStyle = css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  box-shadow: 0.25rem 0.25rem 0.5rem ", ";\n  border-radius: 0.25rem;\n  background-color: ", ";\n  border: 1px solid ", "; \n  padding: 1rem;\n"], ["\n  box-shadow: 0.25rem 0.25rem 0.5rem ", ";\n  border-radius: 0.25rem;\n  background-color: ", ";\n  border: 1px solid ", "; \n  padding: 1rem;\n"])), function (_a) {
    var theme = _a.theme;
    return theme.style.colour.shadow;
}, function (_a) {
    var theme = _a.theme;
    return theme.style.colour.background;
}, function (_a) {
    var theme = _a.theme;
    return theme.style.colour.disabled.light;
});
var SoftPanelStyle = css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tborder: 1px solid rgba(0,0,0,0.156863);\n\tborder-radius: 0.375rem;\n\ttransition: all 300ms;\n\tbox-shadow: rgba(0, 0, 0, 0.0784314) 0px 0px 2px 0px, rgba(0, 0, 0, 0.05) 0px 8px 32px 0px;\n\n\t&:hover {\n\t\tbox-shadow: rgba(0, 0, 0, 0.0784314) 0px 0px 40px 0px, rgba(0, 0, 0, 0.156863) 0px 8px 32px 0px;\n\t}\n"], ["\n\tborder: 1px solid rgba(0,0,0,0.156863);\n\tborder-radius: 0.375rem;\n\ttransition: all 300ms;\n\tbox-shadow: rgba(0, 0, 0, 0.0784314) 0px 0px 2px 0px, rgba(0, 0, 0, 0.05) 0px 8px 32px 0px;\n\n\t&:hover {\n\t\tbox-shadow: rgba(0, 0, 0, 0.0784314) 0px 0px 40px 0px, rgba(0, 0, 0, 0.156863) 0px 8px 32px 0px;\n\t}\n"])));
export var Panel = function (_a) {
    var children = _a.children, ariaLabel = _a.ariaLabel, styleOverride = _a.styleOverride, enableScrollOnBody = _a.enableScrollOnBody, isSoftStyle = _a.isSoftStyle;
    return (React.createElement(Scrollable, { enableScrollOnBody: enableScrollOnBody, styles: isSoftStyle ? SoftPanelStyle : (styleOverride || PanelRootStyle), invertScroll: true, scrollY: true },
        React.createElement(StyledPanel, null, children)));
};
var templateObject_1, templateObject_2, templateObject_3;
