pillardash-ui-react 0.1.101 → 0.1.103
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 +10 -3
- 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
|
@@ -344,8 +344,8 @@ interface ConfirmationPopupProps {
|
|
|
344
344
|
}
|
|
345
345
|
declare const ConfirmationAlert: React$1.FC<ConfirmationPopupProps>;
|
|
346
346
|
|
|
347
|
-
type ModalSize =
|
|
348
|
-
type ModalPosition =
|
|
347
|
+
type ModalSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
348
|
+
type ModalPosition = "left" | "right" | "center";
|
|
349
349
|
interface ModalProps {
|
|
350
350
|
isOpen: boolean;
|
|
351
351
|
onClose: () => void;
|
|
@@ -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
|
|