ehscan-react-table 0.0.14 → 0.0.15

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { calcDateDiff, formatToDDMMYYYY } from '../tools/dateFunction';
3
- import styles from '../style/table.module.css';
3
+ import styles from '../elements/table.module.css';
4
4
  export const TableCellDueDate = ({ content, id, col, clickRow }) => {
5
5
  const DateContent = ({ value }) => {
6
6
  const valDate = value;
@@ -1,7 +1,7 @@
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 '../style/table.module.css';
4
+ import styles from './table.module.css';
5
5
  export const Pagination = ({ totalItems, currentEntries, limit, skip, currentPage, onPageChange }) => {
6
6
  const [totalPages, setTotalPages] = useState(0);
7
7
  const handlePrevious = () => {
@@ -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 '../style/table.module.css';
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();
@@ -1,5 +1,5 @@
1
1
  import { useCallback } from 'react';
2
- import styles from '../style/table.module.css';
2
+ import styles from './table.module.css';
3
3
  const PaginationRipple = () => {
4
4
  const handleRipple = useCallback((event, buttonRef) => {
5
5
  const button = buttonRef.current;
@@ -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 '../style/table.module.css';
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 '../style/table.module.css';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "ehscan-react-table",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "components",
5
5
  "main": "dist/Components.js",
6
6
  "types": "dist/Components.d.ts",