l-min-components 1.0.601 → 1.0.607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/AdminRolesPermission/assets/images/avatar.png +0 -0
- package/src/components/AdminRolesPermission/assets/images/roles_img.png +0 -0
- package/src/components/AdminRolesPermission/assets/images/shield_big.png +0 -0
- package/src/components/AdminRolesPermission/assets/svg/backArrow.jsx +30 -0
- package/src/components/AdminRolesPermission/assets/svg/close-red.jsx +18 -0
- package/src/components/AdminRolesPermission/assets/svg/close.jsx +25 -0
- package/src/components/AdminRolesPermission/assets/svg/englishFlag.jsx +37 -0
- package/src/components/AdminRolesPermission/assets/svg/frenchFlag.jsx +40 -0
- package/src/components/AdminRolesPermission/assets/svg/germanFlag.jsx +31 -0
- package/src/components/AdminRolesPermission/assets/svg/list.jsx +30 -0
- package/src/components/AdminRolesPermission/assets/svg/pencil.jsx +25 -0
- package/src/components/AdminRolesPermission/assets/svg/portugalFlag.jsx +40 -0
- package/src/components/AdminRolesPermission/create/admins.jsx +125 -0
- package/src/components/AdminRolesPermission/create/data.js +304 -0
- package/src/components/AdminRolesPermission/create/index.jsx +42 -0
- package/src/components/AdminRolesPermission/create/index.styled.js +415 -0
- package/src/components/AdminRolesPermission/create/permissions.jsx +165 -0
- package/src/components/AdminRolesPermission/create/role-name.jsx +92 -0
- package/src/components/AdminRolesPermission/index.jsx +165 -0
- package/src/components/AdminRolesPermission/index.styled.js +268 -0
- package/src/components/AdminRolesPermission/main.jsx +11 -0
- package/src/components/AdminRolesPermission/modals/index.styled.js +126 -0
- package/src/components/AdminRolesPermission/modals/preview-modal.jsx +89 -0
- package/src/components/AdminRolesPermission/preview-panels/admins-panel.jsx +50 -0
- package/src/components/AdminRolesPermission/preview-panels/assignees-panel.jsx +62 -0
- package/src/components/AdminRolesPermission/preview-panels/index.styled.js +320 -0
- package/src/components/AdminRolesPermission/preview-panels/unassigned.jsx +37 -0
- package/src/components/AdminSecuritySettings/2fa/index.styled.js +0 -1
- package/src/components/AdminSecuritySettings/index.styled.js +1 -0
- package/src/components/AdminSecuritySettings/modals/otp-password-modal.jsx +0 -1
- package/src/components/AdminSecuritySettings/password/change-password.jsx +1 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { PreviewPanelContainer } from "./index.styled";
|
|
3
|
+
import { CloseIcon } from "../assets/svg/close";
|
|
4
|
+
import { assigneeList } from "../create/data";
|
|
5
|
+
import { CloseRedIcon } from "../assets/svg/close-red";
|
|
6
|
+
import SearchBar from "../../searchBar";
|
|
7
|
+
|
|
8
|
+
const AssigneesPanel = ({ close }) => {
|
|
9
|
+
return (
|
|
10
|
+
<PreviewPanelContainer>
|
|
11
|
+
<div className="asp_main_content">
|
|
12
|
+
<div className="asp_header">
|
|
13
|
+
<p className="asp_header_title"> Assignees </p>
|
|
14
|
+
|
|
15
|
+
<span className="close_icon" onClick={close}>
|
|
16
|
+
<CloseIcon fill={"#323232"} />
|
|
17
|
+
</span>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div className="asp_body">
|
|
21
|
+
<SearchBar
|
|
22
|
+
placeholder="Search here"
|
|
23
|
+
outlineColor="transparent"
|
|
24
|
+
heightSize="44px"
|
|
25
|
+
widthSize="100%"
|
|
26
|
+
border="1px solid #ADB2B2"
|
|
27
|
+
// onSubmit={setSearch}
|
|
28
|
+
/>
|
|
29
|
+
|
|
30
|
+
<div className="asp_inner">
|
|
31
|
+
{assigneeList?.map((item, idx) => (
|
|
32
|
+
<div className="asp_list_row" key={idx}>
|
|
33
|
+
<div className="asp_wrapper">
|
|
34
|
+
<div className="asp_img">
|
|
35
|
+
<img src={item?.image} alt="" />
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div>
|
|
39
|
+
<p className="asp_title">{item?.name}</p>
|
|
40
|
+
<p className="asp_stat">
|
|
41
|
+
{item?.email}
|
|
42
|
+
</p>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div className="asp_assigned">
|
|
47
|
+
<p className="ass_txt"> Assigned on:</p>
|
|
48
|
+
<p className="ass_subtxt"> {item?.date} </p>
|
|
49
|
+
</div>
|
|
50
|
+
<span className="close_icon" onClick={close}>
|
|
51
|
+
<CloseRedIcon />
|
|
52
|
+
</span>
|
|
53
|
+
</div>
|
|
54
|
+
))}
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</PreviewPanelContainer>
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export default AssigneesPanel;
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
|
|
3
|
+
export const PreviewPanelContainer = styled.div`
|
|
4
|
+
position: absolute;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100vh;
|
|
7
|
+
top: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
z-index: 4444;
|
|
10
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
11
|
+
transition: 0.5s;
|
|
12
|
+
|
|
13
|
+
.una_main_content {
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 642px;
|
|
16
|
+
background: #fff;
|
|
17
|
+
height: 100%;
|
|
18
|
+
top: 0;
|
|
19
|
+
right: 0;
|
|
20
|
+
transition: 0.5s;
|
|
21
|
+
overflow-y: scroll;
|
|
22
|
+
padding-bottom: 30px;
|
|
23
|
+
border-radius: 40px 0 0 40px;
|
|
24
|
+
padding: 14px 25px 30px 14px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.una_header {
|
|
28
|
+
height: 83px;
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
align-items: center;
|
|
32
|
+
padding: 10px;
|
|
33
|
+
border-radius: 25px;
|
|
34
|
+
background: rgba(0, 194, 194, 0.1);
|
|
35
|
+
|
|
36
|
+
.close_icon {
|
|
37
|
+
border-radius: 100%;
|
|
38
|
+
background: #fff;
|
|
39
|
+
width: 40px;
|
|
40
|
+
height: 40px;
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
}
|
|
45
|
+
.una_hd_container {
|
|
46
|
+
display: flex;
|
|
47
|
+
gap: 20px;
|
|
48
|
+
align-items: center;
|
|
49
|
+
.una_hd_img {
|
|
50
|
+
width: 57px;
|
|
51
|
+
height: 57px;
|
|
52
|
+
border-radius: 100%;
|
|
53
|
+
background-color: #7c8080;
|
|
54
|
+
img {
|
|
55
|
+
width: 100%;
|
|
56
|
+
border-radius: 100%;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.una_hd_content {
|
|
61
|
+
.una_hd_title {
|
|
62
|
+
color: #099;
|
|
63
|
+
font-size: 20px;
|
|
64
|
+
font-weight: 800;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.una_hd_subtitle {
|
|
68
|
+
color: #637381;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.una_body {
|
|
77
|
+
padding: 16px 10px;
|
|
78
|
+
height: 95%;
|
|
79
|
+
/* overflow-y: scroll; */
|
|
80
|
+
|
|
81
|
+
.una_tag_group {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
margin: auto;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
position: absolute;
|
|
88
|
+
left: 0;
|
|
89
|
+
right: 0;
|
|
90
|
+
top: 0;
|
|
91
|
+
bottom: 0;
|
|
92
|
+
|
|
93
|
+
.unassigned_txt {
|
|
94
|
+
margin-top: 17px;
|
|
95
|
+
color: #4a4d4d;
|
|
96
|
+
font-size: 37px;
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
line-height: normal;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.adp_main_content {
|
|
104
|
+
position: absolute;
|
|
105
|
+
width: 642px;
|
|
106
|
+
background: #fff;
|
|
107
|
+
height: 100%;
|
|
108
|
+
top: 0;
|
|
109
|
+
right: 0;
|
|
110
|
+
transition: 0.5s;
|
|
111
|
+
overflow-y: scroll;
|
|
112
|
+
padding-bottom: 30px;
|
|
113
|
+
border-radius: 40px 0 0 40px;
|
|
114
|
+
padding: 34px;
|
|
115
|
+
|
|
116
|
+
.adp_header {
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
justify-content: space-between;
|
|
120
|
+
|
|
121
|
+
.adp_header_title {
|
|
122
|
+
color: #4a4d4d;
|
|
123
|
+
font-size: 20px;
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
letter-spacing: 0.4px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.adp_subtitle {
|
|
130
|
+
color: #adb2b2;
|
|
131
|
+
font-size: 16px;
|
|
132
|
+
font-weight: 400;
|
|
133
|
+
line-height: normal;
|
|
134
|
+
letter-spacing: 0.32px;
|
|
135
|
+
margin-bottom: 8px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.adp_body {
|
|
140
|
+
.adp_list_row {
|
|
141
|
+
display: flex;
|
|
142
|
+
padding: 14px 0;
|
|
143
|
+
align-items: center;
|
|
144
|
+
border-bottom: 1px solid #dfe5e5;
|
|
145
|
+
gap: 20px;
|
|
146
|
+
justify-content: space-between;
|
|
147
|
+
|
|
148
|
+
.adp_wrapper {
|
|
149
|
+
display: flex;
|
|
150
|
+
gap: 8px;
|
|
151
|
+
align-items: center;
|
|
152
|
+
.adp_img {
|
|
153
|
+
width: 38px;
|
|
154
|
+
height: 38px;
|
|
155
|
+
background: #c6cccc;
|
|
156
|
+
border-radius: 100%;
|
|
157
|
+
img {
|
|
158
|
+
width: 100%;
|
|
159
|
+
border-radius: 100%;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.adp_title {
|
|
164
|
+
color: #03091d;
|
|
165
|
+
font-size: 16px;
|
|
166
|
+
font-weight: 600;
|
|
167
|
+
margin-bottom: 2px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.adp_stat {
|
|
171
|
+
color: #8a8cd9;
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
font-weight: 400;
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
gap: 4px;
|
|
177
|
+
|
|
178
|
+
span {
|
|
179
|
+
display: block;
|
|
180
|
+
width: 6px;
|
|
181
|
+
height: 6px;
|
|
182
|
+
border-radius: 100%;
|
|
183
|
+
background-color: #95a4fc;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.asp_main_content {
|
|
191
|
+
position: absolute;
|
|
192
|
+
width: 642px;
|
|
193
|
+
background: #fff;
|
|
194
|
+
height: 100%;
|
|
195
|
+
top: 0;
|
|
196
|
+
right: 0;
|
|
197
|
+
transition: 0.5s;
|
|
198
|
+
overflow-y: scroll;
|
|
199
|
+
padding-bottom: 30px;
|
|
200
|
+
|
|
201
|
+
.asp_header {
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
justify-content: space-between;
|
|
205
|
+
padding: 28px 20px;
|
|
206
|
+
border-bottom: 1px solid #c6cccc;
|
|
207
|
+
|
|
208
|
+
.adp_header_title {
|
|
209
|
+
color: #313333;
|
|
210
|
+
font-size: 20px;
|
|
211
|
+
font-weight: 600;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.asp_body {
|
|
216
|
+
padding: 15px 25px 40px 20px;
|
|
217
|
+
|
|
218
|
+
.asp_inner {
|
|
219
|
+
padding: 15px 0;
|
|
220
|
+
|
|
221
|
+
.asp_list_row {
|
|
222
|
+
display: flex;
|
|
223
|
+
padding: 14px 0;
|
|
224
|
+
align-items: center;
|
|
225
|
+
gap: 20px;
|
|
226
|
+
justify-content: space-between;
|
|
227
|
+
border-radius: 10px;
|
|
228
|
+
background: #f5f7f7;
|
|
229
|
+
margin-bottom: 10px;
|
|
230
|
+
padding: 10px 15px;
|
|
231
|
+
|
|
232
|
+
.asp_wrapper {
|
|
233
|
+
display: flex;
|
|
234
|
+
gap: 8px;
|
|
235
|
+
align-items: center;
|
|
236
|
+
width: 40%;
|
|
237
|
+
.asp_img {
|
|
238
|
+
width: 38px;
|
|
239
|
+
height: 38px;
|
|
240
|
+
background: #c6cccc;
|
|
241
|
+
border-radius: 100%;
|
|
242
|
+
img {
|
|
243
|
+
width: 100%;
|
|
244
|
+
border-radius: 100%;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.asp_title {
|
|
249
|
+
color: #03091d;
|
|
250
|
+
font-size: 16px;
|
|
251
|
+
font-weight: 600;
|
|
252
|
+
margin-bottom: 2px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.asp_stat {
|
|
256
|
+
color: #7c8080;
|
|
257
|
+
font-size: 12px;
|
|
258
|
+
font-weight: 400;
|
|
259
|
+
line-height: normal;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.asp_assigned {
|
|
264
|
+
width: 40%;
|
|
265
|
+
position: relative;
|
|
266
|
+
padding-left: 20px;
|
|
267
|
+
|
|
268
|
+
&::before {
|
|
269
|
+
content: "";
|
|
270
|
+
height: 40px;
|
|
271
|
+
width: 2px;
|
|
272
|
+
border-radius: 10px;
|
|
273
|
+
position: absolute;
|
|
274
|
+
top: -2%;
|
|
275
|
+
left: -12px;
|
|
276
|
+
display: block;
|
|
277
|
+
background: #c6cccc;
|
|
278
|
+
transform: translate(-50%);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.ass_txt {
|
|
282
|
+
color: #7c8080;
|
|
283
|
+
font-size: 12px;
|
|
284
|
+
font-weight: 400;
|
|
285
|
+
line-height: normal;
|
|
286
|
+
margin-bottom: 2px;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ass_subtxt {
|
|
290
|
+
color: #7c8080;
|
|
291
|
+
font-size: 12px;
|
|
292
|
+
font-weight: 400;
|
|
293
|
+
line-height: normal;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
.close_icon {
|
|
297
|
+
width: 10%;
|
|
298
|
+
position: relative;
|
|
299
|
+
display: flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
justify-content: end;
|
|
302
|
+
|
|
303
|
+
&::before {
|
|
304
|
+
content: "";
|
|
305
|
+
height: 40px;
|
|
306
|
+
width: 2px;
|
|
307
|
+
border-radius: 10px;
|
|
308
|
+
position: absolute;
|
|
309
|
+
top: -30%;
|
|
310
|
+
left: -12px;
|
|
311
|
+
display: block;
|
|
312
|
+
background: #c6cccc;
|
|
313
|
+
transform: translate(-50%);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
`;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { PreviewPanelContainer } from "./index.styled";
|
|
3
|
+
import { CloseIcon } from "../assets/svg/close";
|
|
4
|
+
import { ListIcon } from "../assets/svg/list";
|
|
5
|
+
|
|
6
|
+
const PreviewUnassignedPanel = ({ close }) => {
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<PreviewPanelContainer>
|
|
10
|
+
<div className="una_main_content">
|
|
11
|
+
<div className="una_header">
|
|
12
|
+
<div className="una_hd_container">
|
|
13
|
+
<div className="una_hd_img"></div>
|
|
14
|
+
<div className="una_hd_content">
|
|
15
|
+
<p className="una_hd_title"> Thomas Anree </p>
|
|
16
|
+
<p className="una_hd_subtitle">Minnie.Schmitt40@yahoo.com </p>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<span className="close_icon" onClick={close}>
|
|
21
|
+
<CloseIcon fill={"#323232"} />
|
|
22
|
+
</span>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div className="una_body">
|
|
26
|
+
<div className="una_tag_group">
|
|
27
|
+
<ListIcon />
|
|
28
|
+
<p className="unassigned_txt">Unassigned</p>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</PreviewPanelContainer>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default PreviewUnassignedPanel;
|
|
@@ -41,7 +41,6 @@ const OTPSecurityModal = (props) => {
|
|
|
41
41
|
},
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
const [selectTwofaModal, setSelectTwofaModal] = useState(true);
|
|
45
44
|
const [otpModal, setOtpModal] = useState(false);
|
|
46
45
|
const [securityQuestionModal, setSecurityQuestionModal] = useState(false);
|
|
47
46
|
const [otp, setOtp] = useState(["", "", "", "", "", ""]);
|