ehscan-react-table 0.0.8 → 0.0.9

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,5 +1,6 @@
1
1
  export { Table } from './elements/Table';
2
2
  export { Pagination } from './elements/Pagination';
3
+ export { TableCellSelect } from './elements/TableCellSelect';
3
4
  export { useSortOrder } from './elements/SortOrderUtils';
4
5
  export { sortRows } from './elements/SortOrderUtils';
5
6
  export type { SortOrder } from './elements/SortOrderUtils';
@@ -1,5 +1,6 @@
1
1
  // ehscan-react-table entry
2
2
  export { Table } from './elements/Table';
3
3
  export { Pagination } from './elements/Pagination';
4
+ export { TableCellSelect } from './elements/TableCellSelect';
4
5
  export { useSortOrder } from './elements/SortOrderUtils';
5
6
  export { sortRows } from './elements/SortOrderUtils';
@@ -7,5 +7,5 @@ type Props = {
7
7
  checked?: boolean;
8
8
  selectRow: (args: SelectProps, shift: boolean) => void;
9
9
  };
10
- declare const TableCellSelect: React.FC<Props>;
11
- export default TableCellSelect;
10
+ export declare const TableCellSelect: React.FC<Props>;
11
+ export {};
@@ -1,10 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import TableChecklistItem from "./TableChecklistItem";
3
- const TableCellSelect = ({ rowIndex, checked, selectRow }) => {
3
+ export const TableCellSelect = ({ rowIndex, checked, selectRow }) => {
4
4
  const checkClick = (event) => {
5
5
  const shift = event.shiftKey;
6
6
  selectRow({ rowIndex, checked: !checked }, shift);
7
7
  };
8
8
  return (_jsx(_Fragment, { children: _jsx("div", { onClick: (e) => { e.stopPropagation(); checkClick(e); }, children: _jsx(TableChecklistItem, { checked: checked !== null && checked !== void 0 ? checked : false }) }) }));
9
9
  };
10
- export default TableCellSelect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ehscan-react-table",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "components",
5
5
  "main": "dist/Components.js",
6
6
  "types": "dist/Components.d.ts",