HEX
Server: Apache
System: Linux efa57bbe-abb1-400d-2985-3b056fbc2701.secureserver.net 6.1.147-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 24 12:33:32 EDT 2025 x86_64
User: root (0)
PHP: 8.0.30.4
Disabled: NONE
Upload Files
File: /var/www/wp-content/plugins/pojo-accessibility/modules/scanner/assets/js/styles/app.styles.js
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 MenuItemText from '@elementor/ui/MenuItemText';
import Paper from '@elementor/ui/Paper';
import Skeleton from '@elementor/ui/Skeleton';
import Typography from '@elementor/ui/Typography';
import { styled } from '@elementor/ui/styles';
import { ColorPickerStyles } from '@ea11y-apps/scanner/styles/react-colourful.styles';

export const AppContainer = styled(Paper)`
	position: relative;
	width: 425px;
	min-height: 100vh;
	height: fit-content;
	pointer-events: auto;

	// Include color picker styles to styled components for prevent problem with cache
	${ColorPickerStyles}
`;

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;
	/* @noflip */
	padding-right: ${({ theme }) => theme.spacing(0.5)};
	/* @noflip */
	direction: ltr;
	& .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;

	&:focus .MuiPaper-root,
	&:focus-visible .MuiPaper-root {
		background-color: ${({ theme }) => theme.palette.action.hover};
	}
`;

export const ManageButtonWrap = styled(Box)`
	display: flex;
	align-items: center;
	gap: ${({ theme }) => theme.spacing(1.5)};
	border: 1px solid ${({ theme }) => theme.palette.action.focus};
	border-radius: ${({ theme }) => theme.shape.borderRadius}px;
	padding-right: ${({ theme }) => theme.spacing(1.5)};
	&:hover,
	&:focus .MuiPaper-root,
	&:focus-visible .MuiPaper-root {
		background-color: ${({ theme, disabled }) =>
			!disabled ? theme.palette.action.hover : 'transparent'};
	}
`;

export const ActionButton = styled(Button)`
	font-weight: 400;
	justify-content: start;
	padding: ${({ theme }) => theme.spacing(1.5)};

	&:hover,
	&:focus,
	&:focus-visible {
		background-color: transparent;
	}
`;

export const ManageButtonGroup = styled(Box)`
	display: flex;
	align-items: center;
	gap: ${({ theme }) => theme.spacing(0.5)};
`;

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)};
`;

export const StyledBlockButtonsBox = styled(Box)`
	display: flex;
	flex-direction: column;
	gap: ${({ theme }) => theme.spacing(1)};
`;

export const DisabledMenuItemText = styled(MenuItemText)`
	color: ${({ theme }) => theme.palette.text.disabled};
`;

export const StyledBox = styled(Box)`
	display: flex;
	flex-direction: column;
	gap: ${({ theme }) => theme.spacing(3)};
`;