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.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/src/components/AdminRolesPermission/assets/images/avatar.png +0 -0
  3. package/src/components/AdminRolesPermission/assets/images/roles_img.png +0 -0
  4. package/src/components/AdminRolesPermission/assets/images/shield_big.png +0 -0
  5. package/src/components/AdminRolesPermission/assets/svg/backArrow.jsx +30 -0
  6. package/src/components/AdminRolesPermission/assets/svg/close-red.jsx +18 -0
  7. package/src/components/AdminRolesPermission/assets/svg/close.jsx +25 -0
  8. package/src/components/AdminRolesPermission/assets/svg/englishFlag.jsx +37 -0
  9. package/src/components/AdminRolesPermission/assets/svg/frenchFlag.jsx +40 -0
  10. package/src/components/AdminRolesPermission/assets/svg/germanFlag.jsx +31 -0
  11. package/src/components/AdminRolesPermission/assets/svg/list.jsx +30 -0
  12. package/src/components/AdminRolesPermission/assets/svg/pencil.jsx +25 -0
  13. package/src/components/AdminRolesPermission/assets/svg/portugalFlag.jsx +40 -0
  14. package/src/components/AdminRolesPermission/create/admins.jsx +125 -0
  15. package/src/components/AdminRolesPermission/create/data.js +304 -0
  16. package/src/components/AdminRolesPermission/create/index.jsx +42 -0
  17. package/src/components/AdminRolesPermission/create/index.styled.js +415 -0
  18. package/src/components/AdminRolesPermission/create/permissions.jsx +165 -0
  19. package/src/components/AdminRolesPermission/create/role-name.jsx +92 -0
  20. package/src/components/AdminRolesPermission/index.jsx +165 -0
  21. package/src/components/AdminRolesPermission/index.styled.js +268 -0
  22. package/src/components/AdminRolesPermission/main.jsx +11 -0
  23. package/src/components/AdminRolesPermission/modals/index.styled.js +126 -0
  24. package/src/components/AdminRolesPermission/modals/preview-modal.jsx +89 -0
  25. package/src/components/AdminRolesPermission/preview-panels/admins-panel.jsx +50 -0
  26. package/src/components/AdminRolesPermission/preview-panels/assignees-panel.jsx +62 -0
  27. package/src/components/AdminRolesPermission/preview-panels/index.styled.js +320 -0
  28. package/src/components/AdminRolesPermission/preview-panels/unassigned.jsx +37 -0
  29. package/src/components/AdminSecuritySettings/2fa/index.styled.js +0 -1
  30. package/src/components/AdminSecuritySettings/index.styled.js +1 -0
  31. package/src/components/AdminSecuritySettings/modals/otp-password-modal.jsx +0 -1
  32. package/src/components/AdminSecuritySettings/password/change-password.jsx +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.601",
3
+ "version": "1.0.607",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+
3
+ export const BackArrowIcon = () => {
4
+ return (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="24"
8
+ height="25"
9
+ viewBox="0 0 24 25"
10
+ fill="none"
11
+ >
12
+ <g clipPath="url(#clip0_3085_48537)">
13
+ <path
14
+ d="M20 11.5H7.83L13.42 5.91L12 4.5L4 12.5L12 20.5L13.41 19.09L7.83 13.5H20V11.5Z"
15
+ fill="#323232"
16
+ />
17
+ </g>
18
+ <defs>
19
+ <clipPath id="clip0_3085_48537">
20
+ <rect
21
+ width="24"
22
+ height="24"
23
+ fill="white"
24
+ transform="translate(0 0.5)"
25
+ />
26
+ </clipPath>
27
+ </defs>
28
+ </svg>
29
+ );
30
+ };
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+
3
+ export const CloseRedIcon = () => {
4
+ return (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="24"
8
+ height="24"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ >
12
+ <path
13
+ d="M12 22.0012C9.34711 22.0036 6.80218 20.9508 4.9263 19.0749C3.05042 17.199 1.99762 14.6541 2 12.0012V11.8012C2.08179 7.79339 4.5478 4.22132 8.26637 2.72423C11.9849 1.22713 16.2381 2.09406 19.074 4.92717C21.9365 7.78725 22.7932 12.0905 21.2443 15.8288C19.6955 19.5671 16.0465 22.0035 12 22.0012ZM12 13.4112L14.59 16.0012L16 14.5912L13.41 12.0012L16 9.41117L14.59 8.00117L12 10.5912L9.41001 8.00117L8.00001 9.41117L10.59 12.0012L8.00001 14.5912L9.41001 16.0012L12 13.4122V13.4112Z"
14
+ fill="#F95454"
15
+ />
16
+ </svg>
17
+ );
18
+ };
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ export const CloseIcon = ({ width, height, fill }) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="35"
6
+ height="35"
7
+ viewBox="0 0 35 35"
8
+ fill="none"
9
+ >
10
+ <path
11
+ d="M13.4736 13.2578L21.9589 21.7431"
12
+ stroke={fill || "#7C8080"}
13
+ stroke-width="1.5"
14
+ stroke-linecap="round"
15
+ stroke-linejoin="round"
16
+ />
17
+ <path
18
+ d="M13.4727 21.7431L21.958 13.2578"
19
+ stroke={fill || "#7C8080"}
20
+ stroke-width="1.5"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ />
24
+ </svg>
25
+ );
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ export const EnglishFlag = ({ width, height, fill }) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="21"
6
+ height="15"
7
+ viewBox="0 0 21 15"
8
+ fill="none"
9
+ >
10
+ <g clip-path="url(#clip0_7519_334)">
11
+ <rect width="21" height="15" rx="7.5" fill="white" />
12
+ <path
13
+ fill-rule="evenodd"
14
+ clip-rule="evenodd"
15
+ d="M0 0H9V7H0V0Z"
16
+ fill="#1A47B8"
17
+ />
18
+ <path
19
+ fill-rule="evenodd"
20
+ clip-rule="evenodd"
21
+ d="M9 0V1H21V0H9ZM9 2V3H21V2H9ZM9 4V5H21V4H9ZM9 6V7H21V6H9ZM0 8V9H21V8H0ZM0 10V11H21V10H0ZM0 12V13H21V12H0ZM0 14V15H21V14H0Z"
22
+ fill="#F93939"
23
+ />
24
+ <path
25
+ fill-rule="evenodd"
26
+ clip-rule="evenodd"
27
+ d="M1 1V2H2V1H1ZM3 1V2H4V1H3ZM5 1V2H6V1H5ZM7 1V2H8V1H7ZM6 2V3H7V2H6ZM4 2V3H5V2H4ZM2 2V3H3V2H2ZM1 3V4H2V3H1ZM3 3V4H4V3H3ZM5 3V4H6V3H5ZM7 3V4H8V3H7ZM1 5V6H2V5H1ZM3 5V6H4V5H3ZM5 5V6H6V5H5ZM7 5V6H8V5H7ZM6 4V5H7V4H6ZM4 4V5H5V4H4ZM2 4V5H3V4H2Z"
28
+ fill="white"
29
+ />
30
+ </g>
31
+ <defs>
32
+ <clipPath id="clip0_7519_334">
33
+ <rect width="21" height="15" rx="7.5" fill="white" />
34
+ </clipPath>
35
+ </defs>
36
+ </svg>
37
+ );
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ export const FrenchFlag = ({ width, height, fill }) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="21"
6
+ height="15"
7
+ viewBox="0 0 21 15"
8
+ fill="none"
9
+ >
10
+ <rect width="21" height="15" rx="7.5" fill="#F93939" />
11
+ <path
12
+ fill-rule="evenodd"
13
+ clip-rule="evenodd"
14
+ d="M0 0H7V15H0V0Z"
15
+ fill="#249F58"
16
+ />
17
+ <path
18
+ d="M7 10C8.65685 10 10 8.65685 10 7C10 5.34315 8.65685 4 7 4C5.34315 4 4 5.34315 4 7C4 8.65685 5.34315 10 7 10Z"
19
+ fill="#FFDA2C"
20
+ />
21
+ <path
22
+ fill-rule="evenodd"
23
+ clip-rule="evenodd"
24
+ d="M9 8V5H5V8C5 8.552 5.895 9 7 9C8.105 9 9 8.552 9 8Z"
25
+ fill="#F93939"
26
+ />
27
+ <path
28
+ fill-rule="evenodd"
29
+ clip-rule="evenodd"
30
+ d="M6 6H8V8H6V6Z"
31
+ fill="white"
32
+ />
33
+ <path
34
+ fill-rule="evenodd"
35
+ clip-rule="evenodd"
36
+ d="M6 6H7V7H6V6ZM7 7H8V8H7V7Z"
37
+ fill="#1A47B8"
38
+ />
39
+ </svg>
40
+ );
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ export const GermanFlag = ({ width, height, fill }) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="21"
6
+ height="15"
7
+ viewBox="0 0 21 15"
8
+ fill="none"
9
+ >
10
+ <g clip-path="url(#clip0_7519_37087)">
11
+ <rect width="21" height="15" rx="7.5" fill="#F93939" />
12
+ <path
13
+ fill-rule="evenodd"
14
+ clip-rule="evenodd"
15
+ d="M0 10H21V15H0V10Z"
16
+ fill="#FFDA2C"
17
+ />
18
+ <path
19
+ fill-rule="evenodd"
20
+ clip-rule="evenodd"
21
+ d="M0 0H21V5H0V0Z"
22
+ fill="#151515"
23
+ />
24
+ </g>
25
+ <defs>
26
+ <clipPath id="clip0_7519_37087">
27
+ <rect width="21" height="15" rx="7.5" fill="white" />
28
+ </clipPath>
29
+ </defs>
30
+ </svg>
31
+ );
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+
3
+ export const ListIcon = () => {
4
+ return (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="69"
8
+ height="68"
9
+ viewBox="0 0 69 68"
10
+ fill="none"
11
+ >
12
+ <g clip-path="url(#clip0_5982_218419)">
13
+ <path
14
+ d="M11.833 29.75C9.48134 29.75 7.58301 31.6483 7.58301 34C7.58301 36.3517 9.48134 38.25 11.833 38.25C14.1847 38.25 16.083 36.3517 16.083 34C16.083 31.6483 14.1847 29.75 11.833 29.75ZM11.833 12.75C9.48134 12.75 7.58301 14.6483 7.58301 17C7.58301 19.3517 9.48134 21.25 11.833 21.25C14.1847 21.25 16.083 19.3517 16.083 17C16.083 14.6483 14.1847 12.75 11.833 12.75ZM11.833 46.75C9.48134 46.75 7.58301 48.6767 7.58301 51C7.58301 53.3233 9.50967 55.25 11.833 55.25C14.1563 55.25 16.083 53.3233 16.083 51C16.083 48.6767 14.1847 46.75 11.833 46.75ZM20.333 53.8333H59.9997V48.1667H20.333V53.8333ZM20.333 36.8333H59.9997V31.1667H20.333V36.8333ZM20.333 14.1667V19.8333H59.9997V14.1667H20.333Z"
15
+ fill="#C6CCCC"
16
+ />
17
+ </g>
18
+ <defs>
19
+ <clipPath id="clip0_5982_218419">
20
+ <rect
21
+ width="68"
22
+ height="68"
23
+ fill="white"
24
+ transform="translate(0.5)"
25
+ />
26
+ </clipPath>
27
+ </defs>
28
+ </svg>
29
+ );
30
+ };
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+
3
+ export const PencilIcon = () => {
4
+ return (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width="24"
8
+ height="24"
9
+ viewBox="0 0 24 24"
10
+ fill="none"
11
+ >
12
+ <g clip-path="url(#clip0_5982_214096)">
13
+ <path
14
+ d="M14.06 9.02L14.98 9.94L5.92 19H5V18.08L14.06 9.02ZM17.66 3C17.41 3 17.15 3.1 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C18.17 3.09 17.92 3 17.66 3ZM14.06 6.19L3 17.25V21H6.75L17.81 9.94L14.06 6.19Z"
15
+ fill="#00C2C2"
16
+ />
17
+ </g>
18
+ <defs>
19
+ <clipPath id="clip0_5982_214096">
20
+ <rect width="24" height="24" fill="white" />
21
+ </clipPath>
22
+ </defs>
23
+ </svg>
24
+ );
25
+ };
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ export const PortugalFlag = ({ width, height, fill }) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="21"
6
+ height="15"
7
+ viewBox="0 0 21 15"
8
+ fill="none"
9
+ >
10
+ <rect width="21" height="15" rx="7.5" fill="#F93939" />
11
+ <path
12
+ fill-rule="evenodd"
13
+ clip-rule="evenodd"
14
+ d="M0 0H7V15H0V0Z"
15
+ fill="#249F58"
16
+ />
17
+ <path
18
+ d="M7 10C8.65685 10 10 8.65685 10 7C10 5.34315 8.65685 4 7 4C5.34315 4 4 5.34315 4 7C4 8.65685 5.34315 10 7 10Z"
19
+ fill="#FFDA2C"
20
+ />
21
+ <path
22
+ fill-rule="evenodd"
23
+ clip-rule="evenodd"
24
+ d="M9 8V5H5V8C5 8.552 5.895 9 7 9C8.105 9 9 8.552 9 8Z"
25
+ fill="#F93939"
26
+ />
27
+ <path
28
+ fill-rule="evenodd"
29
+ clip-rule="evenodd"
30
+ d="M6 6H8V8H6V6Z"
31
+ fill="white"
32
+ />
33
+ <path
34
+ fill-rule="evenodd"
35
+ clip-rule="evenodd"
36
+ d="M6 6H7V7H6V6ZM7 7H8V8H7V7Z"
37
+ fill="#1A47B8"
38
+ />
39
+ </svg>
40
+ );
@@ -0,0 +1,125 @@
1
+ import React, { useState } from "react";
2
+ import { AdminsContainer } from "./index.styled";
3
+ import ButtonComponent from "../../button";
4
+ import { adminList } from "./data";
5
+ import Checkbox from "../../checkBoxes/checkbox/index2";
6
+ import avatar from "../assets/images/avatar.png";
7
+ import { IoFilterSharp } from "react-icons/io5";
8
+ import SearchBar from "../../searchBar";
9
+ import PreviewUnassignedPanel from "../preview-panels/unassigned";
10
+ import PreviewAdminsPanel from "../preview-panels/admins-panel";
11
+ import PreviewModal from "../modals/preview-modal";
12
+
13
+ const Admins = () => {
14
+ const [open, setOpen] = useState(false);
15
+ const [unassignedPanel, setUnassignedPanel] = useState(false);
16
+ const [adminsPanel, setAdminsPanel] = useState(false);
17
+ const [addModal, setAddModal] = useState(false);
18
+
19
+ const handleChange = (newValue) => {
20
+ setChecked(newValue);
21
+ };
22
+
23
+ return (
24
+ <AdminsContainer>
25
+ <div className="ad_header">
26
+ <p className="ad_title">Admins</p>
27
+ <ButtonComponent
28
+ text={"Save & Add"}
29
+ styles={{ width: "120px", padding: 10, height: 40 }}
30
+ onClick={(e) => {
31
+ e.preventDefault();
32
+ setAddModal(true)
33
+ }}
34
+ />
35
+ </div>
36
+
37
+ <div className="ad_filter_row">
38
+ <SearchBar
39
+ placeholder="Search Admins"
40
+ outlineColor="transparent"
41
+ heightSize="44px"
42
+ widthSize="100%"
43
+ border="1px solid #ADB2B2"
44
+ // onSubmit={setSearch}
45
+ />
46
+
47
+ <div className="ad_drop_filter">
48
+ <div className="ad_filter_box" onClick={() => setOpen(!open)}>
49
+ <IoFilterSharp />
50
+ All
51
+ </div>
52
+
53
+ {open && (
54
+ <div className="ad_filter_body">
55
+ <p className="afb_item"> Manager</p>
56
+ <p className="afb_item"> IT</p>
57
+ <p className="afb_item"> Security </p>
58
+ <p className="afb_item"> CMS </p>
59
+ <p className="afb_item"> Unassigned </p>
60
+ <p className="afb_item"> Undefined</p>
61
+ </div>
62
+ )}
63
+ </div>
64
+ </div>
65
+
66
+ <div className="ad_body">
67
+ {adminList?.map((item, idx) => (
68
+ <div className="ad_list_row" key={idx}>
69
+ <div className="adl_box">
70
+ <Checkbox
71
+ label=""
72
+ color="#ff9900"
73
+ defaultValue={item.selection}
74
+ onChange={handleChange}
75
+ className="adm_check"
76
+ />
77
+ </div>
78
+
79
+ <div className="adl_wrapper">
80
+ <div className="adl_img">
81
+ <img src={item?.image} alt="" />
82
+ </div>
83
+
84
+ <div>
85
+ <p className="adl_title">{item?.name}</p>
86
+ <span
87
+ className="adl_stat"
88
+ onClick={() => setUnassignedPanel(true)}
89
+ >
90
+ {" "}
91
+ {item?.status}
92
+ </span>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ ))}
97
+ </div>
98
+
99
+ {unassignedPanel && (
100
+ <PreviewUnassignedPanel
101
+ close={() => {
102
+ setUnassignedPanel(false);
103
+ }}
104
+ />
105
+ )}
106
+
107
+ {adminsPanel && (
108
+ <PreviewAdminsPanel
109
+ close={() => {
110
+ setAdminsPanel(false);
111
+ }}
112
+ />
113
+ )}
114
+ <PreviewModal
115
+ isOpen={addModal}
116
+ onRequestClose={() => setAddModal(false)}
117
+ title={"Are you sure you want to add these admins?"}
118
+ secondaryButtonText={"No, Cancel"}
119
+ primaryButtonText={"Yes, Add"}
120
+ />
121
+ </AdminsContainer>
122
+ );
123
+ };
124
+
125
+ export default Admins;