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 | export const BackButton = styled(Button).attrs({
|
---|
108 | variant: 'outlined'
|
---|
109 | })`
|
---|
110 | margin-right: 15px;
|
---|
111 | :hover {
|
---|
112 | border: 2px solid;
|
---|
113 | font-weight: 600;
|
---|
114 | }
|
---|
115 | `;
|
---|
116 |
|
---|
117 | export const SaveChangesButton = styled(Button).attrs(props => ({
|
---|
118 | variant: 'contained',
|
---|
119 | sx: {
|
---|
120 | backgroundColor: `${props.theme.palette.primary.main}`
|
---|
121 | }
|
---|
122 | }))`
|
---|
123 | padding: 10px 16px;
|
---|
124 | :hover {
|
---|
125 | background-color: ${props => props.theme.palette.primary.dark}
|
---|
126 | }
|
---|
127 | `; |
---|