@mistersee/global-table 0.1.4 → 0.1.6

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A lightweight, Tailwind-first React data table for product UIs that need sticky columns, pagination, column visibility, drag-and-drop reordering, and flexible styling — without a heavy grid framework.
4
4
 
5
- ![@mistersee/global-table demo](./media/demo-table.png)
5
+ ![@mistersee/global-table demo](https://raw.githubusercontent.com/misterseev/see-table-library/main/media/demo-table.png)
6
6
 
7
7
  <p align="center">
8
8
  <em>Demo UI: index column, sticky Actions, field colors, column toggle, and pagination.</em>
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- export declare function Pagination({ skip, limit, total, limitOptions, onChange, className, startAddon, }: {
2
+ export declare function Pagination({ skip, limit, total, limitOptions, onChange, className, startAddon, endAddon, }: {
3
3
  skip: number;
4
4
  limit: number;
5
5
  total: number;
@@ -9,6 +9,8 @@ export declare function Pagination({ skip, limit, total, limitOptions, onChange,
9
9
  limit: number;
10
10
  }) => void;
11
11
  className?: string;
12
- /** Extra control shown before the limit select (e.g. column toggle) */
12
+ /** Extra control shown before the limit select */
13
13
  startAddon?: ReactNode;
14
+ /** Extra control shown after the range/skip display (e.g. column toggle) */
15
+ endAddon?: ReactNode;
14
16
  }): import("react").JSX.Element;
@@ -2,4 +2,4 @@ import type { MisterSeeGlobalTableProps } from './types';
2
2
  export declare const INDEX_COLUMN_KEY = "__see_table_index__";
3
3
  export declare const DEFAULT_COL_MIN_WIDTH = 120;
4
4
  export declare const DEFAULT_COL_MAX_WIDTH = 310;
5
- export declare function MisterSeeGlobalTable<T extends Record<string, unknown>>({ columns, data, getRowId, defaultVisibleColumns, limit: limitProp, skip: skipProp, total: totalProp, onPaginationChange, limitOptions, loading, stickyLeft, stickyRight, renderActions, actionsKey, actionsHeader, columnOrder, onColumnOrderChange, enableColumnReorder, showColumnToggle, columnsLabel, showIndex, indexHeader, indexWidth, renderIndex, fieldClassNames, classNames, }: MisterSeeGlobalTableProps<T>): import("react").JSX.Element;
5
+ export declare function MisterSeeGlobalTable<T extends Record<string, unknown>>({ columns, data, getRowId, defaultVisibleColumns, limit: limitProp, skip: skipProp, total: totalProp, onPaginationChange, limitOptions, loading, stickyLeft, stickyRight, renderActions, actionsKey, actionsHeader, columnOrder, onColumnOrderChange, enableColumnReorder, enableSorting, sortState: sortStateProp, defaultSort, onSortChange, showColumnToggle, columnTogglePosition, columnsLabel, showIndex, indexHeader, indexWidth, renderIndex, fieldClassNames, classNames, }: MisterSeeGlobalTableProps<T>): import("react").JSX.Element;