import {styled} from '@mui/material/styles'; import {rgba} from 'polished'; import {ButtonComponent, TypographyComponent as Typography} from '../../atoms'; const Surface = styled('div')` width: 100%; padding: 8px; display: flex; max-width: 400px; border-radius: 12px; align-items: flex-start; justify-content: space-between; background-color: ${({theme}) => theme.palette.white}; border: 1px solid ${({theme}) => theme.palette.border[200]}; box-shadow: ${({theme}) => `0px 4px 6px -2px ${rgba( theme.palette.shadow[900] as string, 0.03, )}, 0px 12px 16px -4px ${rgba( theme.palette.shadow[900] as string, 0.08, )}`}; `; const IconSide = styled('div')` width: 38px; `; const DismissButtonSide = styled('div')` width: 20px; `; const Content = styled('div')` width: calc(100% - 58px); padding: 8px; `; const Title = styled(Typography)` color: ${({theme}) => theme.palette.typography[900]}; font-size: 0.875rem; font-weight: 600; line-height: 1.25rem; margin-bottom: 4px; display: block; `; const Description = styled(Typography)` color: ${({theme}) => theme.palette.typography[600]}; font-size: 0.875rem; font-weight: 400; line-height: 1.25rem; display: block; `; const XCloseButton = styled(ButtonComponent)` width: 20px; height: 20px; padding: 0; display: flex; justify-content: center; align-items: center; border-radius: 6px; color: ${({theme}) => theme.palette.typography[500]}; `; const ButtonGroup = styled('div')` display: flex; gap: 12px; margin-top: 16px; `; const Button = styled(ButtonComponent)``; export const ToastStyle = { Surface, IconSide, DismissButtonSide, Content, Title, Description, XCloseButton, Button, ButtonGroup, };