react-crud-mui 0.0.1-beta.22 → 0.0.1-beta.23
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.
|
@@ -408,6 +408,7 @@ declare function useDetailPageModal<TModel extends FieldValues>({ models, unique
|
|
|
408
408
|
readonly loading?: boolean;
|
|
409
409
|
readonly size?: import('../../page/components/PageProvider').PaddingSize;
|
|
410
410
|
readonly icon?: import('react').ReactNode;
|
|
411
|
+
readonly rightContent?: import('react').ReactNode;
|
|
411
412
|
readonly centerContent?: import('react').ReactNode;
|
|
412
413
|
readonly helperText?: import('react').ReactNode;
|
|
413
414
|
readonly headerProps?: import('@mui/material').BoxProps;
|
|
@@ -9,7 +9,7 @@ import { PaddingSize } from './components/PageProvider';
|
|
|
9
9
|
export type CloseReason = 'backdrop' | 'close-button' | 'action';
|
|
10
10
|
export type CommandsPosition = 'top-right' | 'top-left' | 'bottom-left' | 'bottom-right' | 'bottom' | 'top';
|
|
11
11
|
export type TabsPosition = 'in-center' | 'in-subrow';
|
|
12
|
-
export interface PageProps extends
|
|
12
|
+
export interface PageProps extends HeaderProps {
|
|
13
13
|
commandsContent?: ReactNode;
|
|
14
14
|
commandsPosition?: CommandsPosition;
|
|
15
15
|
onHeader?: (props: HeaderProps) => ReactNode;
|
|
@@ -31,7 +31,7 @@ export interface PageProps extends Omit<HeaderProps, 'rightContent'> {
|
|
|
31
31
|
onTabs?: (props: DefaultTabsProps) => ReactNode;
|
|
32
32
|
}
|
|
33
33
|
export declare const PagePadding: Record<PaddingSize, number>;
|
|
34
|
-
declare function Page({ alertsContent, children, commandsContent, commandsPosition, onTabs, disabled, footerContent, loading, onHeader, onLayout, moreContent, morePanelProps, showHeader, size, style, sx, tabs, onTabChanged, selectedTabIndex, tabsPosition, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function Page({ alertsContent, children, commandsContent, commandsPosition, onTabs, disabled, footerContent, loading, onHeader, onLayout, moreContent, morePanelProps, showHeader, size, style, sx, tabs, onTabChanged, selectedTabIndex, tabsPosition, rightContent, centerContent, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
declare namespace Page {
|
|
36
36
|
var Content: typeof PageContent;
|
|
37
37
|
var Divider: typeof PageDivider;
|
|
@@ -5,6 +5,8 @@ import { ColumnDef, Table as ReactTable, Row, RowData, TableOptions } from '@tan
|
|
|
5
5
|
import { ScrollbarProps } from '../scrollbar/Scrollbar';
|
|
6
6
|
import { BodyTableRow } from './components/BodyTableRow';
|
|
7
7
|
import { EmptyTextProps } from './components/EmptyText';
|
|
8
|
+
import { default as TableMoreMenu } from './components/TableMoreMenu';
|
|
9
|
+
import { default as TableMoreMenuItem } from './components/TableMoreMenuItem';
|
|
8
10
|
declare module '@tanstack/react-table' {
|
|
9
11
|
interface CoreColumn<TData extends RowData, TValue = unknown> {
|
|
10
12
|
link?: (row: Row<TData>) => string;
|
|
@@ -54,6 +56,11 @@ export interface TableProps<TData extends FieldValues> extends Omit<TableOptions
|
|
|
54
56
|
paginationProps?: Partial<TablePaginationProps>;
|
|
55
57
|
headerSx?: TableRowProps['sx'];
|
|
56
58
|
rowSx?: TableRowProps['sx'];
|
|
59
|
+
newRowButtonContent?: ReactNode;
|
|
60
|
+
}
|
|
61
|
+
declare function Table<TData extends FieldValues>({ autoFocus, bordered, columns, data, descriptionField, emptyText, enablePagination, enableRowClickSelect, enableNestedComponent, enableSkeleton, footerContent, headerSx, loading, newRowButtonText, newRowButtonContent, onNewRow, onRenderNestedComponent, onRowClick, onRowEnterPress, onRowProps, onSubTreeRows, paginationProps, rowIdField, rowSx, size, showHeader, stickyHeader, scrollProps, showEmptyImage, showNewRowButton, skeletonRows, sx, state, ...tableProps }: TableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
declare namespace Table {
|
|
63
|
+
var MoreMenu: typeof TableMoreMenu;
|
|
64
|
+
var MoreMenuItem: typeof TableMoreMenuItem;
|
|
57
65
|
}
|
|
58
|
-
declare function Table<TData extends FieldValues>({ autoFocus, bordered, columns, data, descriptionField, emptyText, enablePagination, enableRowClickSelect, enableNestedComponent, enableSkeleton, footerContent, headerSx, loading, newRowButtonText, onNewRow, onRenderNestedComponent, onRowClick, onRowEnterPress, onRowProps, onSubTreeRows, paginationProps, rowIdField, rowSx, size, showHeader, stickyHeader, scrollProps, showEmptyImage, showNewRowButton, skeletonRows, sx, state, ...tableProps }: TableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
59
66
|
export default Table;
|