react-crud-mui 0.2.54 → 0.2.55
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.
|
@@ -423,11 +423,11 @@ declare function useDetailPageModal<TModel extends FieldValues>({ models, unique
|
|
|
423
423
|
readonly readOnly?: boolean;
|
|
424
424
|
readonly size?: import('../../page/components/PageProvider').PaddingSize;
|
|
425
425
|
readonly icon?: import('react').ReactNode;
|
|
426
|
-
readonly rightContent?: import('react').ReactNode;
|
|
427
426
|
readonly centerContent?: import('react').ReactNode;
|
|
428
|
-
readonly helperText?: import('react').ReactNode;
|
|
429
427
|
readonly headerProps?: import('@mui/material').BoxProps;
|
|
428
|
+
readonly helperText?: import('react').ReactNode;
|
|
430
429
|
readonly moreOptions?: import('../../..').MoreButtonProps["options"];
|
|
430
|
+
readonly rightContent?: import('react').ReactNode;
|
|
431
431
|
readonly useHeaderIconWrapper?: boolean;
|
|
432
432
|
readonly tabs?: import('../../..').TabPane[];
|
|
433
433
|
readonly error?: import('../../utils').ServerError;
|
|
@@ -2,7 +2,7 @@ import { default as React, ReactNode } from 'react';
|
|
|
2
2
|
import { BoxProps } from '@mui/material/Box';
|
|
3
3
|
import { FlexBetween } from '../flexbox';
|
|
4
4
|
import { MoreButtonProps } from '../more-button/MoreButton';
|
|
5
|
-
export interface
|
|
5
|
+
export interface HeaderOwnProps {
|
|
6
6
|
rightContent?: ReactNode;
|
|
7
7
|
centerContent?: ReactNode;
|
|
8
8
|
helperText?: ReactNode;
|
|
@@ -12,5 +12,6 @@ export interface HeaderProps extends React.ComponentProps<typeof FlexBetween> {
|
|
|
12
12
|
moreOptions?: MoreButtonProps['options'];
|
|
13
13
|
useHeaderIconWrapper?: boolean;
|
|
14
14
|
}
|
|
15
|
+
export type HeaderProps = HeaderOwnProps & React.ComponentProps<typeof FlexBetween>;
|
|
15
16
|
declare function Header({ centerContent, children, header, headerProps, helperText, icon, moreOptions, rightContent, useHeaderIconWrapper, ...flexProps }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export default Header;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { CardProps } from '@mui/material/Card';
|
|
3
|
+
import { HeaderOwnProps } from '../header/Header';
|
|
3
4
|
export type PanelTab = {
|
|
4
5
|
key: React.Key;
|
|
5
6
|
value: string;
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
title: ReactNode;
|
|
8
9
|
};
|
|
9
|
-
export interface PanelProps extends
|
|
10
|
+
export interface PanelProps extends CardProps, HeaderOwnProps {
|
|
10
11
|
tabs?: PanelTab[];
|
|
12
|
+
activeTabKey?: string;
|
|
13
|
+
onTabChange?: (key: string) => void;
|
|
11
14
|
}
|
|
12
|
-
declare function Panel({ tabs, children,
|
|
15
|
+
declare function Panel({ tabs, children, rightContent, centerContent, helperText, header, headerProps, icon, moreOptions, useHeaderIconWrapper, activeTabKey, onTabChange, ...cardProps }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
declare namespace Panel {
|
|
14
17
|
var Header: typeof import("../..").Header;
|
|
15
18
|
}
|