react-crud-mui 0.2.4 → 0.2.6

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.
@@ -414,7 +414,6 @@ declare function useDetailPageModal<TModel extends FieldValues>({ models, unique
414
414
  readonly footerContent?: import('react').ReactNode;
415
415
  readonly moreContent?: import('react').ReactNode;
416
416
  readonly panels?: import('../../page/components/DefaultPanels').PanelPane[];
417
- readonly hiddenOnSingleTab?: boolean;
418
417
  readonly commandsPosition?: import('../../page/Page').CommandsPosition;
419
418
  readonly onHeader?: (props: import('../components/DetailPageHeader').DetailPageHeaderProps) => import('react').ReactNode;
420
419
  readonly onLayout?: (props: import('../../page/components/DefaultLayout').PageLayoutProps) => import('react').ReactNode;
@@ -1,9 +1,11 @@
1
1
  import { BoxProps } from '@mui/material/Box';
2
2
  import { ModalProps as MuiModalProps } from '@mui/material/Modal';
3
+ import { ModalSize } from './styles';
3
4
  export interface ModalProps extends BoxProps, Pick<MuiModalProps, 'disableAutoFocus' | 'disablePortal' | 'disableScrollLock' | 'disableEnforceFocus' | 'disableEscapeKeyDown' | 'disableRestoreFocus'> {
4
5
  open: boolean;
5
6
  onClose?: () => void;
6
7
  closable?: boolean;
8
+ size?: ModalSize;
7
9
  }
8
10
  declare function Modal({ children, open, onClose, closable, disableAutoFocus, disablePortal, disableScrollLock, disableEnforceFocus, disableEscapeKeyDown, disableRestoreFocus, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
9
11
  declare namespace Modal {
@@ -1,4 +1,8 @@
1
+ export type ModalSize = 'normal' | 'small' | 'large';
2
+ export declare const modalSizes: Record<ModalSize, number | string>;
1
3
  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
4
  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
- }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
5
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
6
+ size?: ModalSize;
7
+ }, {}, {}>;
4
8
  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>, {}, {}>;
@@ -33,7 +33,6 @@ export interface PageProps extends HeaderProps {
33
33
  tabs?: TabPane[];
34
34
  tabsPosition?: TabsPosition;
35
35
  tabExtraContent?: ReactNode;
36
- hiddenOnSingleTab?: boolean;
37
36
  selectedTabIndex?: number;
38
37
  onTabChanged?: (selected: TabChangedPayload) => void;
39
38
  onTabs?: (props: DefaultTabsProps) => ReactNode;
@@ -41,7 +40,7 @@ export interface PageProps extends HeaderProps {
41
40
  panels?: PanelPane[];
42
41
  }
43
42
  export declare const PagePadding: Record<PaddingSize, number>;
44
- declare function Page({ alertsContent, bordered, centerContent, children, commandsContent, commandsPosition, disabled, footerContent, loading, progressProps, moreContent, morePanelProps, onHeader, onLayout, onTabChanged, onTabs, panels, rightContent, selectedTabIndex, showCommands, showHeader, size, style, sx, tabs, tabExtraContent, tabsPosition, hiddenOnSingleTab, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
43
+ declare function Page({ alertsContent, bordered, centerContent, children, commandsContent, commandsPosition, disabled, footerContent, loading, progressProps, moreContent, morePanelProps, onHeader, onLayout, onTabChanged, onTabs, panels, rightContent, selectedTabIndex, showCommands, showHeader, size, style, sx, tabs, tabExtraContent, tabsPosition, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
45
44
  declare namespace Page {
46
45
  var Content: typeof PageContent;
47
46
  var Divider: typeof PageDivider;