pillardash-ui-react 0.1.102 → 0.1.104
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/index.d.ts +8 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -412,7 +412,14 @@ type TableDropdownProps = {
|
|
|
412
412
|
dropdownClassName?: string;
|
|
413
413
|
};
|
|
414
414
|
|
|
415
|
-
|
|
415
|
+
interface ExpandableTableProps<T> extends TableProps<T> {
|
|
416
|
+
expandableRows?: boolean;
|
|
417
|
+
expandedRowRender?: (item: T) => ReactNode;
|
|
418
|
+
onRowToggle?: (item: T, isExpanded: boolean) => void;
|
|
419
|
+
defaultExpandedRows?: Set<string | number>;
|
|
420
|
+
getRowKey?: (item: T, index: number) => string | number;
|
|
421
|
+
}
|
|
422
|
+
declare function Table<T>({ data, columns, itemsPerPage, onViewChange, totalItems, currentPage, onPageChange, loading, showPagination, onRowClick, useCardLayout, emptyState, expandableRows, expandedRowRender, onRowToggle, defaultExpandedRows, getRowKey, }: ExpandableTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
416
423
|
|
|
417
424
|
declare function Pagination({ currentPage, totalPages, totalItems, itemsPerPage, onPageChange, onViewChange, loading, }: PaginationProps): react_jsx_runtime.JSX.Element;
|
|
418
425
|
|