react-crud-mui 0.0.1-beta.36 → 0.0.1-beta.38
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.
|
@@ -6,6 +6,6 @@ export interface ModalProps extends BoxProps {
|
|
|
6
6
|
}
|
|
7
7
|
declare function Modal({ children, open, onClose, closable, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare namespace Modal {
|
|
9
|
-
var Scroll: import("@emotion/styled").StyledComponent<import("
|
|
9
|
+
var Scroll: import("@emotion/styled").StyledComponent<import("simplebar-react").Props & import("react").RefAttributes<import("simplebar-core").default | null> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
10
|
}
|
|
11
11
|
export default Modal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
2
|
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
3
|
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
|
-
export declare const StyledScrollbar: import('@emotion/styled').StyledComponent<import('
|
|
4
|
+
export declare const StyledScrollbar: import('@emotion/styled').StyledComponent<import('simplebar-react').Props & import('react').RefAttributes<import('simplebar-core').default | null> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system/styleFunctionSx';
|
|
3
3
|
import { Props } from 'simplebar-react';
|
|
4
|
+
import { StyledScrollBar } from './styles';
|
|
4
5
|
export interface ScrollbarProps extends PropsWithChildren<Props> {
|
|
5
6
|
sx?: SxProps;
|
|
6
7
|
}
|
|
7
|
-
export default
|
|
8
|
+
export default StyledScrollBar;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
import { IntersectionObserverProps } from 'react-intersection-observer';
|
|
3
4
|
import { TableProps as MuiTableProps, SxProps, TablePaginationProps, TableRowProps, Theme } from '@mui/material';
|
|
4
5
|
import { ColumnDef, Row, RowData, TableOptions } from '@tanstack/react-table';
|
|
5
6
|
import { ScrollbarProps } from '../scrollbar/Scrollbar';
|
|
@@ -58,8 +59,12 @@ export interface TableProps<TData extends FieldValues> extends Omit<TableOptions
|
|
|
58
59
|
rowSx?: TableRowProps['sx'];
|
|
59
60
|
newRowButtonContent?: ReactNode;
|
|
60
61
|
alternateColor?: boolean;
|
|
62
|
+
infiniteScrollOptions?: Omit<IntersectionObserverProps, 'children'> & {
|
|
63
|
+
hasMore: boolean;
|
|
64
|
+
onFetchMore: () => void;
|
|
65
|
+
};
|
|
61
66
|
}
|
|
62
|
-
declare function Table<TData extends FieldValues>({ alternateColor, autoFocus, bordered, columns, data, descriptionField, emptyText, enablePagination, enableRowClickSelect, enableNestedComponent, enableSkeleton, headerSx, loading, newRowButtonText, newRowButtonContent, onNewRow, onRenderNestedComponent, onRowClick, onRowEnterPress, onRowProps, onSubTreeRows, paginationProps, rowIdField, rowSx, size, showHeader, showFooter, stickyHeader, scrollProps, showEmptyImage, showNewRowButton, skeletonRows, sx, state, ...tableProps }: TableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
declare function Table<TData extends FieldValues>({ alternateColor, autoFocus, bordered, columns, data, descriptionField, emptyText, enablePagination, enableRowClickSelect, enableNestedComponent, enableSkeleton, headerSx, infiniteScrollOptions, loading, newRowButtonText, newRowButtonContent, onNewRow, onRenderNestedComponent, onRowClick, onRowEnterPress, onRowProps, onSubTreeRows, paginationProps, rowIdField, rowSx, size, showHeader, showFooter, stickyHeader, scrollProps, showEmptyImage, showNewRowButton, skeletonRows, sx, state, ...tableProps }: TableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
63
68
|
declare namespace Table {
|
|
64
69
|
var MoreMenu: typeof TableMoreMenu;
|
|
65
70
|
var MoreMenuItem: typeof TableMoreMenuItem;
|