[3a58bd6] | 1 | import styled from "styled-components";
|
---|
| 2 | import { Button, InputLabel, MenuItem, Select, Switch, TextField, Typography } from "@mui/material";
|
---|
| 3 | import VIcon from '@mui/icons-material/Visibility';
|
---|
| 4 | import VOffIcon from '@mui/icons-material/VisibilityOff';
|
---|
| 5 |
|
---|
| 6 | export const EmployeeEditWrapper = styled.div`
|
---|
| 7 | display: flex;
|
---|
| 8 | flex-direction: column;
|
---|
| 9 | max-width: 800px;
|
---|
| 10 | border: 1px solid whiteSmoke;
|
---|
| 11 | border-radius: 10px;
|
---|
| 12 | padding: 10px 20px;
|
---|
| 13 | margin-top: 20px;
|
---|
| 14 | margin-left: 30px;
|
---|
| 15 | background-color: white;
|
---|
| 16 | box-shadow: 15px 15px 10px ${props => props.theme.palette.background.shadow};
|
---|
| 17 | `;
|
---|
| 18 |
|
---|
| 19 | export const Title = styled(Typography).attrs({
|
---|
| 20 |
|
---|
| 21 | })`
|
---|
| 22 | border-bottom: 2px solid rgba(0, 0, 0, 0.12);
|
---|
| 23 | padding-bottom: 10px;
|
---|
| 24 | margin-bottom: 15px;
|
---|
| 25 | `;
|
---|
| 26 |
|
---|
| 27 | export const RowWrapper = styled.div`
|
---|
| 28 | display: flex;
|
---|
| 29 | flex-direction: row;
|
---|
| 30 | justify-content: space-between;
|
---|
| 31 | margin-bottom: 25px;
|
---|
| 32 | `;
|
---|
| 33 |
|
---|
| 34 | export const LabelAndInputWrapper = styled.div`
|
---|
| 35 |
|
---|
| 36 | `;
|
---|
| 37 |
|
---|
| 38 | export const Label = styled(InputLabel).attrs({
|
---|
| 39 |
|
---|
| 40 | })``;
|
---|
| 41 |
|
---|
| 42 | export const StandardInputField = styled(TextField).attrs({
|
---|
| 43 |
|
---|
| 44 | })`
|
---|
| 45 | width: 300px;
|
---|
| 46 | `;
|
---|
| 47 |
|
---|
| 48 | export const VisibilityIcon = styled(VIcon).attrs({
|
---|
| 49 | sx: {
|
---|
| 50 | fontSize: '2rem'
|
---|
| 51 | }
|
---|
| 52 | })``;
|
---|
| 53 |
|
---|
| 54 | export const VisibilityOffIcon = styled(VOffIcon).attrs({
|
---|
| 55 | sx: {
|
---|
| 56 | fontSize: '2rem'
|
---|
| 57 | }
|
---|
| 58 | })``;
|
---|
| 59 |
|
---|
| 60 | export const Dropdown = styled(Select).attrs({
|
---|
| 61 |
|
---|
| 62 | })`
|
---|
| 63 | width: 300px;
|
---|
| 64 | `;
|
---|
| 65 |
|
---|
| 66 | export const DropdownOption = styled(MenuItem).attrs({
|
---|
| 67 |
|
---|
| 68 | })``;
|
---|
| 69 |
|
---|
| 70 | export const SwitchRowWrapper = styled.div`
|
---|
| 71 | text-align: center;
|
---|
| 72 | margin-top: 10px;
|
---|
| 73 | margin-bottom: 50px;
|
---|
| 74 | `;
|
---|
| 75 |
|
---|
| 76 | export const SwitchTitle = styled.p`
|
---|
| 77 | font-size: 18px;
|
---|
| 78 | font-weight: 600;
|
---|
| 79 | margin: 0;
|
---|
| 80 | margin-bottom: 5px;
|
---|
| 81 | `;
|
---|
| 82 |
|
---|
| 83 | export const SwitchLabelAndInputWrapper = styled.div`
|
---|
| 84 | display: flex;
|
---|
| 85 | flex-direction: row;
|
---|
| 86 | align-items: center;
|
---|
| 87 | justify-content: center;
|
---|
| 88 |
|
---|
| 89 | `;
|
---|
| 90 |
|
---|
| 91 | export const AccountSwitch = styled(Switch).attrs(props => ({
|
---|
| 92 | }))`
|
---|
| 93 | .MuiSwitch-switchBase {
|
---|
| 94 | color: red;
|
---|
| 95 | }
|
---|
| 96 | .MuiSwitch-track {
|
---|
| 97 | background-color: red;
|
---|
| 98 | }
|
---|
| 99 | .MuiSwitch-switchBase.Mui-checked {
|
---|
| 100 | color: ${props => props.theme.palette.primary.main};
|
---|
| 101 | }
|
---|
| 102 | .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track {
|
---|
| 103 | background-color: ${props => props.theme.palette.primary.main};
|
---|
| 104 | }
|
---|
| 105 | `;
|
---|
| 106 |
|
---|
| 107 |
|
---|
| 108 | export const BackAndSaveChangesButtonsWrapper = styled.div`
|
---|
| 109 |
|
---|
| 110 | `;
|
---|
| 111 |
|
---|
| 112 | export const DeleteButton = styled(Button).attrs(props => ({
|
---|
| 113 | variant: 'contained',
|
---|
| 114 | sx: {
|
---|
| 115 | backgroundColor: `${props.theme.palette.error.main}`
|
---|
| 116 | }
|
---|
| 117 | }))`
|
---|
| 118 | :hover {
|
---|
| 119 | background-color: ${props => props.theme.palette.error.dark};
|
---|
| 120 | }
|
---|
| 121 | `;
|
---|
| 122 |
|
---|
| 123 | export const BackButton = styled(Button).attrs({
|
---|
| 124 | variant: 'outlined'
|
---|
| 125 | })`
|
---|
| 126 | margin-right: 15px;
|
---|
| 127 | :hover {
|
---|
| 128 | border: 2px solid;
|
---|
| 129 | font-weight: 600;
|
---|
| 130 | }
|
---|
| 131 | `;
|
---|
| 132 |
|
---|
| 133 | export const SaveChangesButton = styled(Button).attrs(props => ({
|
---|
| 134 | variant: 'contained',
|
---|
| 135 | sx: {
|
---|
| 136 | backgroundColor: `${props.theme.palette.primary.main}`
|
---|
| 137 | }
|
---|
| 138 | }))`
|
---|
| 139 | padding: 10px 16px;
|
---|
| 140 | :hover {
|
---|
| 141 | background-color: ${props => props.theme.palette.primary.dark}
|
---|
| 142 | }
|
---|
| 143 | `; |
---|