mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-21 07:09:20 +08:00
* [APP-1513] add disconnected msg * [APP-1513] add disconnected msg * [APP-1513] add disconnected msg
125 lines
3 KiB
JavaScript
125 lines
3 KiB
JavaScript
import Alert from '@elementor/ui/Alert';
|
|
import Box from '@elementor/ui/Box';
|
|
import Button from '@elementor/ui/Button';
|
|
import Card from '@elementor/ui/Card';
|
|
import CardContent from '@elementor/ui/CardContent';
|
|
import Paper from '@elementor/ui/Paper';
|
|
import Skeleton from '@elementor/ui/Skeleton';
|
|
import Typography from '@elementor/ui/Typography';
|
|
import { styled } from '@elementor/ui/styles';
|
|
|
|
export const StyledPaper = styled(Paper)`
|
|
position: relative;
|
|
width: 425px;
|
|
min-height: 100vh;
|
|
height: fit-content;
|
|
`;
|
|
|
|
export const HeaderCard = styled(Card)`
|
|
border-radius: 8px;
|
|
margin-bottom: ${({ theme }) => theme.spacing(2)};
|
|
box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
`;
|
|
|
|
export const TitleBox = styled(Box)`
|
|
display: flex;
|
|
gap: ${({ theme }) => theme.spacing(1)};
|
|
align-items: center;
|
|
`;
|
|
|
|
export const HeaderContent = styled(CardContent)`
|
|
&:last-child {
|
|
padding-bottom: ${({ theme }) => theme.spacing(2)};
|
|
}
|
|
`;
|
|
|
|
export const StyledContent = styled(CardContent)`
|
|
padding: 0 ${({ theme }) => theme.spacing(2)};
|
|
`;
|
|
|
|
export const SkeletonContainer = styled(Box)`
|
|
display: flex;
|
|
gap: ${({ theme }) => theme.spacing(1)};
|
|
flex-direction: column;
|
|
padding: 0 ${({ theme }) => theme.spacing(2)};
|
|
`;
|
|
|
|
export const StyledSkeleton = styled(Skeleton)`
|
|
transform: scale(1);
|
|
`;
|
|
|
|
const disabledState = `
|
|
opacity: .7;
|
|
cursor: not-allowed;
|
|
& * {
|
|
pointer-events: none;
|
|
}
|
|
`;
|
|
|
|
export const StyledAlert = styled(Alert)`
|
|
align-items: center;
|
|
padding-right: ${({ theme }) => theme.spacing(0.5)};
|
|
& .MuiAlert-icon,
|
|
& .MuiAlert-content {
|
|
padding-top: 0;
|
|
display: flex;
|
|
}
|
|
${({ disabled }) => (disabled ? disabledState : '')}
|
|
`;
|
|
|
|
export const StateContainer = styled(Box)`
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: ${({ theme }) => theme.spacing(2)};
|
|
padding-top: ${({ theme }) => theme.spacing(12)};
|
|
padding-bottom: ${({ theme }) => theme.spacing(6)};
|
|
`;
|
|
|
|
export const QuotaMessageContainer = styled(Box)`
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: ${({ theme }) => theme.spacing(2)};
|
|
margin-bottom: ${({ theme }) => theme.spacing(2)};
|
|
padding-inline: ${({ theme }) => theme.spacing(2)};
|
|
`;
|
|
|
|
export const ReconnectDescription = styled(Typography)`
|
|
max-width: 250px;
|
|
text-align: center;
|
|
margin-bottom: ${({ theme }) => theme.spacing(2)};
|
|
`;
|
|
|
|
export const StyledButtonContainer = styled(Paper)`
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: ${({ theme }) => theme.spacing(1.5)};
|
|
|
|
&:hover {
|
|
background-color: ${({ theme }) => theme.palette.action.hover};
|
|
}
|
|
`;
|
|
|
|
export const StyledButton = styled(Button)`
|
|
font-weight: 400;
|
|
justify-content: start;
|
|
padding: 0;
|
|
`;
|
|
|
|
export const UpgradeContentContainer = styled(Box)`
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
`;
|
|
|
|
export const ResolvedButtonsBox = styled(Box)`
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
gap: ${({ theme }) => theme.spacing(1)};
|
|
`;
|