ehscan-react-table 0.0.1 → 0.0.3
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/Components.d.ts +1 -0
- package/dist/Components.js +1 -0
- package/dist/elements/Pagination.d.ts +2 -2
- package/dist/elements/Pagination.js +2 -3
- package/dist/elements/PaginationButton.js +1 -1
- package/dist/elements/PaginationRipple.js +1 -1
- package/dist/elements/Table.js +1 -1
- package/dist/elements/TableChecklistItem.js +1 -1
- package/package.json +5 -3
- /package/dist/{style → elements}/table.module.css +0 -0
package/dist/Components.d.ts
CHANGED
package/dist/Components.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import PaginationButton from "./PaginationButton";
|
|
4
|
-
import styles from '
|
|
5
|
-
const Pagination = ({ totalItems, currentEntries, limit, skip, currentPage, onPageChange }) => {
|
|
4
|
+
import styles from './table.module.css';
|
|
5
|
+
export const Pagination = ({ totalItems, currentEntries, limit, skip, currentPage, onPageChange }) => {
|
|
6
6
|
const [totalPages, setTotalPages] = useState(0);
|
|
7
7
|
const handlePrevious = () => {
|
|
8
8
|
if (currentPage > 1)
|
|
@@ -48,4 +48,3 @@ const Pagination = ({ totalItems, currentEntries, limit, skip, currentPage, onPa
|
|
|
48
48
|
return (_jsx(PaginationButton, { txt: p, isActive: p === currentPage, disabled: isEllipsis, action: isEllipsis ? undefined : () => handlePageClick(p) }, i));
|
|
49
49
|
}), _jsx(PaginationButton, { index: 'next', action: handleNext, display: totalPages > 2 && currentPage !== totalPages })] })) }), _jsx(PaginationOutput, {})] }));
|
|
50
50
|
};
|
|
51
|
-
export default Pagination;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from 'react';
|
|
3
3
|
import PaginationRipple from './PaginationRipple';
|
|
4
|
-
import styles from '
|
|
4
|
+
import styles from './table.module.css';
|
|
5
5
|
const PaginationButton = ({ index, txt, disabled, isActive, action, display }) => {
|
|
6
6
|
const buttonRef = useRef(null);
|
|
7
7
|
const handleRipple = PaginationRipple();
|
package/dist/elements/Table.js
CHANGED
|
@@ -11,7 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
import { useEffect, useState, useRef } from "react";
|
|
12
12
|
import TableCellSelectHeadCol from "./TableCellSelectHeadCol";
|
|
13
13
|
import { debounce } from "./Debounce";
|
|
14
|
-
import styles from '
|
|
14
|
+
import styles from './table.module.css';
|
|
15
15
|
export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents, setSelectedIds, searchTermArraySetter, setSearchTermArraySetter, fallback }) => {
|
|
16
16
|
const [wrapperBottom, setWrapperBottom] = useState(undefined);
|
|
17
17
|
const headerRef = useRef(null);
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
11
|
import { useRef } from 'react';
|
|
12
12
|
import PaginationRipple from './PaginationRipple';
|
|
13
|
-
import styles from '
|
|
13
|
+
import styles from './table.module.css';
|
|
14
14
|
const TableChecklistItem = ({ checked }) => {
|
|
15
15
|
const buttonRef = useRef(null);
|
|
16
16
|
const handleRipple = PaginationRipple();
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ehscan-react-table",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "components",
|
|
5
5
|
"main": "dist/Components.js",
|
|
6
6
|
"types": "dist/Components.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc && npm run copy-css",
|
|
9
|
-
"copy-css": "rsync -a src
|
|
10
|
-
"prepublishOnly": "npm run build"
|
|
9
|
+
"copy-css": "rsync -a src/**/*.module.css dist/elements/"
|
|
11
10
|
},
|
|
12
11
|
"keywords": [
|
|
13
12
|
"react",
|
|
@@ -31,5 +30,8 @@
|
|
|
31
30
|
"glob": "8",
|
|
32
31
|
"minimatch": "5",
|
|
33
32
|
"typescript": "^5.6.3"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"vite-plugin-libcss": "^1.1.2"
|
|
34
36
|
}
|
|
35
37
|
}
|
|
File without changes
|