qbs-react-grid 1.1.53 → 1.2.1
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/dist/css/qbs-react-grid.css +54 -2
- package/dist/css/qbs-react-grid.min.css +1 -1
- package/dist/css/qbs-react-grid.min.css.map +1 -1
- package/es/Pagination.js +21 -36
- package/es/customSelect.d.ts +8 -0
- package/es/customSelect.js +77 -0
- package/es/less/pagination.less +61 -2
- package/es/qbsTable/CustomTableCell.js +23 -1
- package/es/qbsTable/utilities/ColumShowHide.js +2 -2
- package/es/qbsTable/utilities/icons.js +11 -11
- package/lib/Pagination.js +21 -36
- package/lib/customSelect.d.ts +8 -0
- package/lib/customSelect.js +84 -0
- package/lib/less/pagination.less +61 -2
- package/lib/qbsTable/CustomTableCell.js +23 -1
- package/lib/qbsTable/utilities/ColumShowHide.js +2 -2
- package/lib/qbsTable/utilities/icons.js +11 -11
- package/package.json +1 -1
- package/src/Pagination.tsx +25 -38
- package/src/customSelect.tsx +88 -0
- package/src/less/pagination.less +61 -2
- package/src/qbsTable/CustomTableCell.tsx +31 -1
- package/src/qbsTable/utilities/ColumShowHide.tsx +2 -2
- package/src/qbsTable/utilities/icons.tsx +11 -11
package/src/Pagination.tsx
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React, { FC, useEffect, useState } from 'react';
|
|
2
2
|
|
|
3
|
+
import CustomSelect from './customSelect';
|
|
3
4
|
import { getRowDisplayRange } from './qbsTable/utilities/tablecalc';
|
|
4
5
|
|
|
6
|
+
// Import the custom select component
|
|
7
|
+
|
|
5
8
|
type PageProps = {
|
|
6
9
|
paginationProps: {
|
|
7
10
|
total?: number;
|
|
@@ -13,11 +16,11 @@ type PageProps = {
|
|
|
13
16
|
onPagination?: (row: number, page: number) => void;
|
|
14
17
|
};
|
|
15
18
|
};
|
|
19
|
+
|
|
16
20
|
const PageIndex = ({ currentPage, handleFirst, pageCount }) => {
|
|
17
21
|
const renderPageNumbers = () => {
|
|
18
22
|
const pageNumbers: any = [];
|
|
19
23
|
|
|
20
|
-
// Add ellipsis if necessary
|
|
21
24
|
if (currentPage > 3) {
|
|
22
25
|
pageNumbers.push('...');
|
|
23
26
|
}
|
|
@@ -26,35 +29,29 @@ const PageIndex = ({ currentPage, handleFirst, pageCount }) => {
|
|
|
26
29
|
pageNumbers.push(i);
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
// Add ellipsis if necessary
|
|
30
32
|
if (currentPage < pageCount - 2) {
|
|
31
33
|
pageNumbers.push('...');
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
return pageNumbers.map((pageNumber: any) => (
|
|
35
|
-
|
|
37
|
+
<React.Fragment key={pageNumber}>
|
|
36
38
|
{pageNumber !== '...' ? (
|
|
37
39
|
<span
|
|
38
|
-
key={pageNumber}
|
|
39
40
|
onClick={() => handleFirst(pageNumber)}
|
|
40
41
|
className={`block-item ${pageNumber === currentPage ? 'selected' : ''}`}
|
|
41
42
|
>
|
|
42
43
|
{pageNumber}
|
|
43
44
|
</span>
|
|
44
45
|
) : (
|
|
45
|
-
<span
|
|
46
|
-
key={pageNumber}
|
|
47
|
-
className={`block-item ${pageNumber === currentPage ? 'selected' : ''}`}
|
|
48
|
-
>
|
|
49
|
-
{pageNumber}
|
|
50
|
-
</span>
|
|
46
|
+
<span className="block-item">{pageNumber}</span>
|
|
51
47
|
)}
|
|
52
|
-
|
|
48
|
+
</React.Fragment>
|
|
53
49
|
));
|
|
54
50
|
};
|
|
55
51
|
|
|
56
52
|
return <>{renderPageNumbers()}</>;
|
|
57
53
|
};
|
|
54
|
+
|
|
58
55
|
const Pagination: FC<PageProps> = ({ paginationProps }) => {
|
|
59
56
|
const {
|
|
60
57
|
dropOptions = [10, 20, 50, 100, 200],
|
|
@@ -66,14 +63,14 @@ const Pagination: FC<PageProps> = ({ paginationProps }) => {
|
|
|
66
63
|
} = paginationProps;
|
|
67
64
|
|
|
68
65
|
const [rowsPerPageState, setRowsPerPageState] = useState(rowsPerPage);
|
|
69
|
-
|
|
70
66
|
const dropData = dropOptions ?? [10, 20, 50, 100, 200];
|
|
71
67
|
const [pageCount, setPageCount] = useState(1);
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
|
|
69
|
+
const handleRowsPerPage = (value: number) => {
|
|
74
70
|
setRowsPerPageState(value);
|
|
75
71
|
onRowsPerPage?.(value, currentPage);
|
|
76
72
|
};
|
|
73
|
+
|
|
77
74
|
const handleFirst = (index: number) => {
|
|
78
75
|
onPagination?.(index, currentPage);
|
|
79
76
|
};
|
|
@@ -91,26 +88,21 @@ const Pagination: FC<PageProps> = ({ paginationProps }) => {
|
|
|
91
88
|
const handlePrevious = () => {
|
|
92
89
|
onPagination?.(currentPage - 1, currentPage);
|
|
93
90
|
};
|
|
91
|
+
|
|
94
92
|
const handleNext = () => {
|
|
95
93
|
onPagination?.(currentPage + 1, currentPage);
|
|
96
94
|
};
|
|
97
95
|
|
|
98
96
|
return (
|
|
99
97
|
<div
|
|
100
|
-
className=
|
|
98
|
+
className="qbs-table-custom-pagination"
|
|
101
99
|
style={{ display: 'flex', justifyContent: 'space-between' }}
|
|
102
100
|
>
|
|
103
|
-
<div className="rows-count">
|
|
104
|
-
{getRowDisplayRange(
|
|
105
|
-
paginationProps.total ?? 0,
|
|
106
|
-
paginationProps.rowsPerPage ?? 0,
|
|
107
|
-
paginationProps.currentPage ?? 0
|
|
108
|
-
)}
|
|
109
|
-
</div>
|
|
101
|
+
<div className="rows-count">{getRowDisplayRange(total, rowsPerPageState, currentPage)}</div>
|
|
110
102
|
<div className="qbs-table-pagination-right-block">
|
|
111
103
|
<button
|
|
112
104
|
className="qbs-table-icon-container"
|
|
113
|
-
disabled={currentPage
|
|
105
|
+
disabled={currentPage === 1}
|
|
114
106
|
onClick={() => handleFirst(1)}
|
|
115
107
|
>
|
|
116
108
|
<svg
|
|
@@ -132,7 +124,7 @@ const Pagination: FC<PageProps> = ({ paginationProps }) => {
|
|
|
132
124
|
<button
|
|
133
125
|
className="qbs-table-icon-container"
|
|
134
126
|
disabled={currentPage < 2}
|
|
135
|
-
onClick={
|
|
127
|
+
onClick={handlePrevious}
|
|
136
128
|
>
|
|
137
129
|
<svg
|
|
138
130
|
width="20"
|
|
@@ -161,7 +153,7 @@ const Pagination: FC<PageProps> = ({ paginationProps }) => {
|
|
|
161
153
|
<button
|
|
162
154
|
className="qbs-table-icon-container"
|
|
163
155
|
disabled={currentPage === pageCount || pageCount === 0}
|
|
164
|
-
onClick={
|
|
156
|
+
onClick={handleNext}
|
|
165
157
|
>
|
|
166
158
|
<svg
|
|
167
159
|
width="20"
|
|
@@ -181,8 +173,8 @@ const Pagination: FC<PageProps> = ({ paginationProps }) => {
|
|
|
181
173
|
</button>
|
|
182
174
|
<button
|
|
183
175
|
className="qbs-table-icon-container"
|
|
184
|
-
disabled={currentPage
|
|
185
|
-
onClick={
|
|
176
|
+
disabled={currentPage === pageCount || pageCount === 0}
|
|
177
|
+
onClick={handleLast}
|
|
186
178
|
>
|
|
187
179
|
<svg
|
|
188
180
|
width="20"
|
|
@@ -203,19 +195,14 @@ const Pagination: FC<PageProps> = ({ paginationProps }) => {
|
|
|
203
195
|
</div>
|
|
204
196
|
<div className="qbs-table-pagination-flexBox">
|
|
205
197
|
<span className="qbs-table-pagination-text">Items per page</span>
|
|
206
|
-
<
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
{dropData?.map(item => (
|
|
212
|
-
<option value={item} key={item}>
|
|
213
|
-
{item}
|
|
214
|
-
</option>
|
|
215
|
-
))}
|
|
216
|
-
</select>
|
|
198
|
+
<CustomSelect
|
|
199
|
+
options={dropData}
|
|
200
|
+
selectedValue={rowsPerPageState}
|
|
201
|
+
onChange={handleRowsPerPage}
|
|
202
|
+
/>
|
|
217
203
|
</div>
|
|
218
204
|
</div>
|
|
219
205
|
);
|
|
220
206
|
};
|
|
207
|
+
|
|
221
208
|
export default Pagination;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React, { FC, useState, useEffect, useRef } from 'react';
|
|
2
|
+
|
|
3
|
+
type CustomSelectProps = {
|
|
4
|
+
options: number[];
|
|
5
|
+
selectedValue: number;
|
|
6
|
+
onChange: (value: number) => void;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const CustomSelect: FC<CustomSelectProps> = ({ options, selectedValue, onChange }) => {
|
|
10
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
11
|
+
const [dropdownPosition, setDropdownPosition] = useState('bottom');
|
|
12
|
+
const ref = useRef<HTMLDivElement>(null);
|
|
13
|
+
const inputRef = useRef<HTMLDivElement>(null);
|
|
14
|
+
|
|
15
|
+
const adjustDropdownPosition = () => {
|
|
16
|
+
if (inputRef.current) {
|
|
17
|
+
const inputBoxRect = inputRef.current.getBoundingClientRect();
|
|
18
|
+
const viewportHeight = window.innerHeight;
|
|
19
|
+
|
|
20
|
+
const spaceAbove = inputBoxRect.top;
|
|
21
|
+
const spaceBelow = viewportHeight - inputBoxRect.bottom;
|
|
22
|
+
|
|
23
|
+
if (spaceAbove > spaceBelow) {
|
|
24
|
+
setDropdownPosition('top');
|
|
25
|
+
} else {
|
|
26
|
+
setDropdownPosition('bottom');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const handleToggle = () => {
|
|
32
|
+
setIsOpen(prevIsOpen => !prevIsOpen);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const handleSelect = (value: number) => {
|
|
36
|
+
onChange(value);
|
|
37
|
+
setIsOpen(false);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const handleClickOutside = (event: MouseEvent) => {
|
|
41
|
+
if (ref.current && !ref.current.contains(event.target as Node)) {
|
|
42
|
+
setIsOpen(false);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (isOpen) {
|
|
48
|
+
adjustDropdownPosition();
|
|
49
|
+
window.addEventListener('resize', adjustDropdownPosition);
|
|
50
|
+
} else {
|
|
51
|
+
window.removeEventListener('resize', adjustDropdownPosition);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return () => {
|
|
55
|
+
window.removeEventListener('resize', adjustDropdownPosition);
|
|
56
|
+
};
|
|
57
|
+
}, [isOpen]);
|
|
58
|
+
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
61
|
+
return () => {
|
|
62
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
63
|
+
};
|
|
64
|
+
}, []);
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<div className="custom-select" ref={ref}>
|
|
68
|
+
<div className="custom-select-trigger" onClick={handleToggle} ref={inputRef}>
|
|
69
|
+
{selectedValue}
|
|
70
|
+
</div>
|
|
71
|
+
{isOpen && (
|
|
72
|
+
<ul className={`custom-select-options ${dropdownPosition}`}>
|
|
73
|
+
{options.map(option => (
|
|
74
|
+
<li
|
|
75
|
+
key={option}
|
|
76
|
+
className={`custom-select-option ${option === selectedValue ? 'selected' : ''}`}
|
|
77
|
+
onClick={() => handleSelect(option)}
|
|
78
|
+
>
|
|
79
|
+
{option}
|
|
80
|
+
</li>
|
|
81
|
+
))}
|
|
82
|
+
</ul>
|
|
83
|
+
)}
|
|
84
|
+
</div>
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export default CustomSelect;
|
package/src/less/pagination.less
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
.qbs-table-pagination-dropdown {
|
|
20
|
-
width:
|
|
21
|
-
height:
|
|
20
|
+
width: 65px;
|
|
21
|
+
height: 26px;
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
@@ -116,3 +116,62 @@
|
|
|
116
116
|
.qbs-table-custom-pagination .qbs-table-pagination-dropdown:focus {
|
|
117
117
|
outline: none;
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
.custom-select {
|
|
121
|
+
position: relative;
|
|
122
|
+
display: inline-block;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.custom-select-trigger {
|
|
126
|
+
padding: 2px 8px;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
border: 1px solid #d6d8dc;
|
|
129
|
+
border-radius: 4px;
|
|
130
|
+
min-width: 65px;
|
|
131
|
+
position: relative;
|
|
132
|
+
font-size: 14px;
|
|
133
|
+
font-weight: 500;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.custom-select-options {
|
|
137
|
+
position: absolute;
|
|
138
|
+
width: 100%;
|
|
139
|
+
z-index: 1000;
|
|
140
|
+
list-style: none;
|
|
141
|
+
margin: 2px 0 0;
|
|
142
|
+
padding: 0;
|
|
143
|
+
background: #fff;
|
|
144
|
+
border-radius: 8px;
|
|
145
|
+
box-shadow: 0 8px 20px 0 #00000026;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
ul.custom-select-options.top {
|
|
149
|
+
bottom: 100%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.custom-select-option {
|
|
153
|
+
padding: 6px 8px;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
font-weight: 500;
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.custom-select-option:hover,
|
|
160
|
+
.custom-select-option.selected {
|
|
161
|
+
background-color: #f0f0f0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.custom-select-trigger:before {
|
|
165
|
+
content: "";
|
|
166
|
+
position: absolute;
|
|
167
|
+
right: 10px;
|
|
168
|
+
top: 6px;
|
|
169
|
+
font-weight: bold;
|
|
170
|
+
border: solid black;
|
|
171
|
+
border-width: 0 1px 1px 0;
|
|
172
|
+
display: inline-block;
|
|
173
|
+
padding: 3px;
|
|
174
|
+
vertical-align: middle;
|
|
175
|
+
transform: rotate(45deg);
|
|
176
|
+
-webkit-transform: rotate(45deg);
|
|
177
|
+
}
|
|
@@ -60,7 +60,37 @@ export const ExpandCell: React.FC<any> = React.memo(
|
|
|
60
60
|
onChange(rowData);
|
|
61
61
|
}}
|
|
62
62
|
>
|
|
63
|
-
{expandedRowKeys.some((key: any) => key === rowData[dataKey]) ?
|
|
63
|
+
{expandedRowKeys.some((key: any) => key === rowData[dataKey]) ? (
|
|
64
|
+
<svg
|
|
65
|
+
width="11"
|
|
66
|
+
height="6"
|
|
67
|
+
viewBox="0 0 11 6"
|
|
68
|
+
fill="none"
|
|
69
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
70
|
+
>
|
|
71
|
+
<path
|
|
72
|
+
fillRule="evenodd"
|
|
73
|
+
clipRule="evenodd"
|
|
74
|
+
d="M0.792893 0.292893C1.18342 -0.097631 1.81658 -0.097631 2.20711 0.292893L5.5 3.58579L8.79289 0.292893C9.18342 -0.0976311 9.81658 -0.0976311 10.2071 0.292893C10.5976 0.683417 10.5976 1.31658 10.2071 1.70711L6.20711 5.70711C5.81658 6.09763 5.18342 6.09763 4.79289 5.70711L0.792893 1.70711C0.402369 1.31658 0.402369 0.683417 0.792893 0.292893Z"
|
|
75
|
+
fill="#313131"
|
|
76
|
+
/>
|
|
77
|
+
</svg>
|
|
78
|
+
) : (
|
|
79
|
+
<svg
|
|
80
|
+
width="7"
|
|
81
|
+
height="10"
|
|
82
|
+
viewBox="0 0 7 10"
|
|
83
|
+
fill="none"
|
|
84
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
85
|
+
>
|
|
86
|
+
<path
|
|
87
|
+
fillRule="evenodd"
|
|
88
|
+
clipRule="evenodd"
|
|
89
|
+
d="M0.792894 9.70711C0.402369 9.31658 0.402369 8.68342 0.792894 8.29289L4.08579 5L0.792893 1.70711C0.402369 1.31658 0.402369 0.683418 0.792893 0.292894C1.18342 -0.0976312 1.81658 -0.0976312 2.20711 0.292894L6.20711 4.29289C6.59763 4.68342 6.59763 5.31658 6.20711 5.70711L2.20711 9.70711C1.81658 10.0976 1.18342 10.0976 0.792894 9.70711Z"
|
|
90
|
+
fill="#313131"
|
|
91
|
+
/>
|
|
92
|
+
</svg>
|
|
93
|
+
)}
|
|
64
94
|
</button>
|
|
65
95
|
</Cell>
|
|
66
96
|
)
|
|
@@ -152,8 +152,8 @@ const ColumnToggle: React.FC<ColumnToggleProps> = ({
|
|
|
152
152
|
xmlns="http://www.w3.org/2000/svg"
|
|
153
153
|
>
|
|
154
154
|
<path
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
fillRule="evenodd"
|
|
156
|
+
clipRule="evenodd"
|
|
157
157
|
d="M5.20898 2.05047C4.74187 2.22322 4.43921 2.6138 4.39879 3.09588C4.33861 3.81357 4.96751 4.44246 5.68519 4.38229C6.18026 4.3408 6.59243 4.00921 6.74267 3.53164C6.82103 3.2825 6.79574 2.93719 6.68125 2.6925C6.55895 2.43113 6.37419 2.24233 6.11569 2.11459C5.92365 2.01969 5.88078 2.00965 5.63395 2.00196C5.41672 1.99517 5.3325 2.00481 5.20898 2.05047ZM10.0416 2.04376C9.7 2.16569 9.46445 2.37622 9.31379 2.69422C9.23042 2.87016 9.22458 2.90286 9.22458 3.19315C9.22458 3.4899 9.22889 3.51259 9.32123 3.70051C9.69541 4.46214 10.6879 4.6208 11.2645 4.01115C11.8315 3.4116 11.6604 2.47093 10.918 2.10616C10.7441 2.02073 10.6936 2.0094 10.4529 2.00182C10.2481 1.99536 10.1488 2.00548 10.0416 2.04376ZM5.34893 6.82474C5.11292 6.87601 4.92872 6.97801 4.74901 7.15697C4.27637 7.62757 4.27637 8.36852 4.74901 8.8401C5.21569 9.30575 5.93107 9.31874 6.40536 8.87018C6.66595 8.62374 6.78644 8.34805 6.78644 7.99837C6.78644 7.651 6.66578 7.37282 6.41027 7.13118C6.22719 6.95803 6.07668 6.87885 5.83216 6.82702C5.61146 6.78023 5.55503 6.77998 5.34893 6.82474ZM10.1516 6.82829C9.9209 6.87849 9.7661 6.96147 9.58667 7.13118C9.33115 7.37282 9.21049 7.651 9.21049 7.99837C9.21049 8.34805 9.33098 8.62374 9.59157 8.87018C10.0659 9.31877 10.7812 9.30577 11.2479 8.8401C11.7206 8.36852 11.7206 7.62822 11.2479 7.15663C11.0647 6.97379 10.8553 6.86282 10.6076 6.81715C10.4048 6.77981 10.3707 6.78062 10.1516 6.82829ZM5.28951 11.6453C4.97314 11.737 4.66594 11.9881 4.52416 12.271C4.19001 12.9376 4.53174 13.7326 5.24943 13.9583C5.37001 13.9962 5.47168 14.0058 5.65873 13.9969C5.87526 13.9865 5.93484 13.9715 6.11704 13.8815C6.52155 13.6816 6.75995 13.3194 6.78131 12.8724C6.79558 12.5741 6.74746 12.3902 6.59238 12.1502C6.46455 11.9525 6.23962 11.7698 6.02016 11.6857C5.83188 11.6135 5.46864 11.5934 5.28951 11.6453ZM10.0849 11.6514C9.75841 11.7392 9.47967 11.9748 9.32098 12.2972C9.22892 12.4841 9.22458 12.5069 9.22458 12.8036C9.22458 13.0943 9.23033 13.1264 9.31435 13.3037C9.43911 13.5671 9.62317 13.7546 9.88296 13.883C10.0896 13.9851 10.1041 13.988 10.4075 13.988C10.706 13.988 10.7283 13.9838 10.9164 13.8914C11.6598 13.5261 11.8321 12.5858 11.2655 11.9867C10.9589 11.6624 10.5141 11.5361 10.0849 11.6514Z"
|
|
158
158
|
fill="#999696"
|
|
159
159
|
/>
|
|
@@ -6,9 +6,9 @@ export const ThreeDotIcon: React.FC<any> = () => {
|
|
|
6
6
|
<path
|
|
7
7
|
d="M2 2.16665L2 2.17498M2 7.99998L2 8.00831M2 13.8333L2 13.8416M2 2.99998C1.53976 2.99998 1.16667 2.62688 1.16667 2.16665C1.16667 1.70641 1.53976 1.33331 2 1.33331C2.46024 1.33331 2.83333 1.70641 2.83333 2.16665C2.83333 2.62688 2.46024 2.99998 2 2.99998ZM2 8.83331C1.53976 8.83331 1.16667 8.46022 1.16667 7.99998C1.16667 7.53974 1.53976 7.16665 2 7.16665C2.46024 7.16665 2.83333 7.53974 2.83333 7.99998C2.83333 8.46022 2.46024 8.83331 2 8.83331ZM2 14.6666C1.53976 14.6666 1.16666 14.2935 1.16666 13.8333C1.16666 13.3731 1.53976 13 2 13C2.46024 13 2.83333 13.3731 2.83333 13.8333C2.83333 14.2935 2.46024 14.6666 2 14.6666Z"
|
|
8
8
|
stroke="#313131"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
strokeWidth="1.5"
|
|
10
|
+
strokeLinecap="round"
|
|
11
|
+
strokeLinejoin="round"
|
|
12
12
|
/>
|
|
13
13
|
</svg>
|
|
14
14
|
);
|
|
@@ -18,20 +18,20 @@ export const SettingsIcon: React.FC<any> = () => {
|
|
|
18
18
|
return (
|
|
19
19
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
20
20
|
<path
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
fillRule="evenodd"
|
|
22
|
+
clipRule="evenodd"
|
|
23
23
|
d="M10 12.5C8.61929 12.5 7.5 11.3807 7.5 10C7.5 8.61929 8.61929 7.5 10 7.5C11.3807 7.5 12.5 8.61929 12.5 10C12.5 11.3807 11.3807 12.5 10 12.5Z"
|
|
24
24
|
stroke="#313131"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
strokeWidth="1.5"
|
|
26
|
+
strokeLinecap="round"
|
|
27
|
+
strokeLinejoin="round"
|
|
28
28
|
/>
|
|
29
29
|
<path
|
|
30
30
|
d="M1.66797 9.26718C1.66797 8.40052 2.3763 7.68385 3.2513 7.68385C4.75964 7.68385 5.3763 6.61718 4.61797 5.30885C4.18464 4.55885 4.44297 3.58385 5.2013 3.15052L6.64297 2.32552C7.3013 1.93385 8.1513 2.16718 8.54297 2.82552L8.63463 2.98385C9.38463 4.29218 10.618 4.29218 11.3763 2.98385L11.468 2.82552C11.8596 2.16718 12.7096 1.93385 13.368 2.32552L14.8096 3.15052C15.568 3.58385 15.8263 4.55885 15.393 5.30885C14.6346 6.61718 15.2513 7.68385 16.7596 7.68385C17.6263 7.68385 18.343 8.39218 18.343 9.26718V10.7338C18.343 11.6005 17.6346 12.3172 16.7596 12.3172C15.2513 12.3172 14.6346 13.3838 15.393 14.6922C15.8263 15.4505 15.568 16.4172 14.8096 16.8505L13.368 17.6755C12.7096 18.0672 11.8596 17.8339 11.468 17.1755L11.3763 17.0172C10.6263 15.7089 9.39297 15.7089 8.63463 17.0172L8.54297 17.1755C8.1513 17.8339 7.3013 18.0672 6.64297 17.6755L5.2013 16.8505C4.44297 16.4172 4.18464 15.4422 4.61797 14.6922C5.3763 13.3838 4.75964 12.3172 3.2513 12.3172C2.3763 12.3172 1.66797 11.6005 1.66797 10.7338V9.26718Z"
|
|
31
31
|
stroke="#313131"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
strokeWidth="1.5"
|
|
33
|
+
strokeLinecap="round"
|
|
34
|
+
strokeLinejoin="round"
|
|
35
35
|
/>
|
|
36
36
|
</svg>
|
|
37
37
|
);
|