Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/.cache/admin/src/components/Roles/CheckboxWithCondition/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /* eslint-disable indent */
import styled from 'styled-components';
import { Checkbox } from '@buffetjs/core';
const CheckboxWithCondition = styled(Checkbox)`
min-width: 10rem;
max-width: 12rem;
flex: 1;
position: relative;
input[type='checkbox'] {
z-index: 10;
&:after {
color: ${({ theme }) => theme.main.colors.mediumBlue};
}
}
${({ hasConditions, disabled, theme }) =>
hasConditions &&
`
&:before {
content: '•';
font-size: 11px;
position: absolute;
top: -6px;
left: -7px;
color: ${disabled ? theme.main.colors.grey : theme.main.colors.mediumBlue};
}
`}
${({ disabled, theme }) =>
disabled &&
`
input[type='checkbox'] {
cursor: not-allowed;
&:after {
color: ${theme.main.colors.grey};
}
}
`}
`;
export default CheckboxWithCondition;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]-- |