ehscan-react-table 0.0.42 → 0.0.44
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.
|
@@ -5,6 +5,6 @@ const TableCellSelectHeadCol = ({ checkHead, checkAll }) => {
|
|
|
5
5
|
event.stopPropagation();
|
|
6
6
|
if (checkAll !== undefined)
|
|
7
7
|
checkHead(checkAll);
|
|
8
|
-
}, children: _jsx(ChecklistItemSquare, { checked: checkAll }) }));
|
|
8
|
+
}, children: _jsx(ChecklistItemSquare, { checked: checkAll, head: true }) }));
|
|
9
9
|
};
|
|
10
10
|
export default TableCellSelectHeadCol;
|
|
@@ -11,14 +11,14 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
import { useRef } from 'react';
|
|
12
12
|
import PaginationRipple from './PaginationRipple';
|
|
13
13
|
import styles from './table.module.css';
|
|
14
|
-
const TableChecklistItem = ({ checked }) => {
|
|
14
|
+
const TableChecklistItem = ({ checked, head = false }) => {
|
|
15
15
|
const buttonRef = useRef(null);
|
|
16
16
|
const handleRipple = PaginationRipple();
|
|
17
17
|
const toggleCheck = (event) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
handleRipple(event, buttonRef);
|
|
19
19
|
});
|
|
20
20
|
const CheckBoxItemSquare = ({ selected }) => {
|
|
21
|
-
return (_jsx(_Fragment, { children: _jsxs("svg", { width: "60", height: "60", version: "1.1", viewBox: "0 -960 2400 2400", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { className: styles.cbheadcircle, d: "m1200-692.58c-767.96 0-932.58 164.63-932.58 932.58 0 767.98 164.63 932.58 932.58 932.58 767.98 0 932.58-164.63 932.58-932.58 0-767.96-164.63-932.58-932.58-932.58z", fill: "white" }), selected && _jsx("path", { className: styles.cbpath, d: "m1566.4-147.66c-33.43-0.026-66.888 12.734-92.524 38.331l-421.88 421.25-125.8-126.04c-51.193-51.272-133.7-51.348-184.97-0.1555-51.272 51.193-51.348 133.7-0.15551 184.97l218.09 218.48c38.437 38.497 94.554 48.106 141.82 28.846 15.829-6.3918 30.738-15.985 43.618-28.846l514.09-513.39c51.272-51.193 51.348-133.7 0.1554-184.97-25.596-25.636-59.014-38.46-92.446-38.486z", fill: "#666" })] }) }));
|
|
21
|
+
return (_jsx(_Fragment, { children: _jsxs("svg", { width: "60", height: "60", version: "1.1", viewBox: "0 -960 2400 2400", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { className: head ? styles.cbheadcircle : styles.cbcircle, d: "m1200-692.58c-767.96 0-932.58 164.63-932.58 932.58 0 767.98 164.63 932.58 932.58 932.58 767.98 0 932.58-164.63 932.58-932.58 0-767.96-164.63-932.58-932.58-932.58z", fill: "white" }), selected && _jsx("path", { className: styles.cbpath, d: "m1566.4-147.66c-33.43-0.026-66.888 12.734-92.524 38.331l-421.88 421.25-125.8-126.04c-51.193-51.272-133.7-51.348-184.97-0.1555-51.272 51.193-51.348 133.7-0.15551 184.97l218.09 218.48c38.437 38.497 94.554 48.106 141.82 28.846 15.829-6.3918 30.738-15.985 43.618-28.846l514.09-513.39c51.272-51.193 51.348-133.7 0.1554-184.97-25.596-25.636-59.014-38.46-92.446-38.486z", fill: "#666" })] }) }));
|
|
22
22
|
};
|
|
23
23
|
return (_jsx(_Fragment, { children: _jsx("div", { ref: buttonRef, className: styles.checkboxtable, onClick: (e) => toggleCheck(e), children: _jsx(CheckBoxItemSquare, { selected: checked }) }) }));
|
|
24
24
|
};
|
|
@@ -475,7 +475,7 @@ RIPPLE
|
|
|
475
475
|
.dateTag {
|
|
476
476
|
position: relative;
|
|
477
477
|
color: var(--ext-table-date-tag-clr, black);
|
|
478
|
-
padding:
|
|
478
|
+
padding: var(--ext-table-date-tag-padding, 4px 6px);
|
|
479
479
|
border-radius: var(--ext-table-date-br, 4px);
|
|
480
480
|
font-size: 0.65rem;
|
|
481
481
|
font-weight: 600;
|