import { makeStyles } from 'tss-react/mui'; const useStyles = makeStyles<{ bottom?: number; left?: number; right?: number; top?: number; }>()((theme, props) => ({ modal: { '& .MuiDialog-paper': { gap: theme.spacing(3), padding: theme.spacing(2.5) }, '&[data-size="fullscreen"]': { margin: 0, marginBottom: props?.bottom ?? 0, marginLeft: props?.left ?? 0, marginRight: props?.right ?? 0, marginTop: props?.top ?? 0, zIndex: 0 }, '&[data-size="fullscreen"] .MuiBackdrop-root': { display: 'none' }, '&[data-size="fullscreen"] .MuiDialog-container': { alignItems: 'flex-end', height: '100vh', justifyContent: 'flex-end', position: 'relative' }, '&[data-size="fullscreen"] .MuiDialog-paper': { bottom: 0, left: 0, margin: 0, maxWidth: 'unset', paddingBottom: theme.spacing(8), position: 'absolute', right: 0, top: 0, transition: theme.transitions.create('left') }, '&[data-size="large"] .MuiDialog-paper': { maxWidth: '704px', width: '704px' }, '&[data-size="medium"] .MuiDialog-paper': { width: '520px' }, '&[data-size="small"] .MuiDialog-paper': { width: '400px' }, '&[data-size="xlarge"] .MuiDialog-paper': { maxWidth: '900px', width: 'calc(100% - 78px)' } }, modalActions: { '&[data-fixed="true"]': { padding: theme.spacing(1, 2.5, 2.5, 0), position: 'fixed' }, bottom: 0, display: 'flex', flexDirection: 'row', gap: theme.spacing(2), justifyContent: 'flex-end', padding: theme.spacing(1, 0, 0, 0), right: 0, zIndex: theme.zIndex.modal } })); export { useStyles };