Repository URL to install this package:
|
Version:
3.0.1 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const styleh_components_1 = require("styleh-components");
const styled_animations_1 = require("./styled.animations");
/**
* @todo simplify this dom, merge this with the ModalBox?
*/
// max-width: 100%;
// max-height: 100%;
exports.ModalBoxWrap = styleh_components_1.styled.div.attrs({// className: 'modal-container-inner',
})`position:relative;display:flex;align-self:center;background-color:#FFF;@media (max-width:767px){align-items:center;justify-content:center;width:100%;max-height:85%;transition:transform 500ms cubic-bezier(0.175,0.885,0.32,1.275);}@media (max-width:1023px){transform:translateY(110%);animation-name:${styled_animations_1.modalInAnimation};animation-delay:0.24s;transition:transform 1000ms cubic-bezier(0.175,0.885,0.32,1.275);animation-duration:1.2s;animation-fill-mode:forwards;}`; // .attrs({
// // text: '',
// // children: (props: StyledModalTitleProps) => props.children || props.text,
// })
exports.ModalTitle = styleh_components_1.styled.h2`padding:1rem 2rem;background-color:#FFF;border-bottom:1px solid #CCC;font:700 1.125rem "Roboto",Arial,Helvetica,sans-serif;text-transform:uppercase;`;
/**
* used by a consumer, the thing usually with a bg
*/
exports.ModalBox = styleh_components_1.styled.aside.attrs({
className: 'modal-box'
})`display:flex;justify-content:center;align-self:center;flex-direction:column;@media (max-width:767px){width:100%;}`;
/**
* @name was ModalWrapper
*/
exports.StyledDialog = styleh_components_1.styled.dialog.attrs({// className: 'modal-container-wrapper',
// role: 'dialog',
// open: (props: { isVisible: boolean }) => props.isVisible,
})`${props => props.isVisible ? styleh_components_1.styled.css`opacity:1;` : styleh_components_1.styled.css`opacity:0.5;`};overflow:hidden;backface-visibility:hidden;position:fixed;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;flex:1;z-index:70;border:0;background-color:transparent;min-height:100vh;`; //# sourceMappingURL=styled.js.map