react-crud-mui 0.0.1-beta.52 → 0.0.1-beta.53

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.
@@ -426,6 +426,7 @@ declare function useDetailPageModal<TModel extends FieldValues>({ models, unique
426
426
  readonly showHeader?: boolean;
427
427
  readonly showCommands?: boolean;
428
428
  readonly morePanelProps?: import('../../more-panel/MorePanel').MorePanelProps;
429
+ readonly loadingOptions?: import('../../hooks/useSpinDelay').SpinDelayOptions;
429
430
  readonly disableShortCuts?: boolean;
430
431
  readonly tabsPosition?: import('../../page/Page').TabsPosition;
431
432
  readonly selectedTabIndex?: number;
@@ -1,4 +1,4 @@
1
- interface SpinDelayOptions {
1
+ export interface SpinDelayOptions {
2
2
  /**
3
3
  * The delay in milliseconds before the spinner is displayed.
4
4
  * @default 500
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { HeaderProps } from '../header/Header';
3
+ import { SpinDelayOptions } from '../hooks/useSpinDelay';
3
4
  import { MorePanelProps } from '../more-panel/MorePanel';
4
5
  import { default as DefaultLayout, PageLayoutProps } from './components/DefaultLayout';
5
6
  import { PanelPane } from './components/DefaultPanels';
@@ -27,6 +28,7 @@ export interface PageProps extends HeaderProps {
27
28
  size?: PaddingSize;
28
29
  disabled?: boolean;
29
30
  loading?: boolean;
31
+ loadingOptions?: SpinDelayOptions;
30
32
  disableShortCuts?: boolean;
31
33
  tabs?: TabPane[];
32
34
  tabsPosition?: TabsPosition;
@@ -37,7 +39,7 @@ export interface PageProps extends HeaderProps {
37
39
  panels?: PanelPane[];
38
40
  }
39
41
  export declare const PagePadding: Record<PaddingSize, number>;
40
- declare function Page({ alertsContent, bordered, children, commandsContent, commandsPosition, onTabs, disabled, footerContent, loading, onHeader, onLayout, moreContent, morePanelProps, panels, showHeader, showCommands, size, style, sx, tabs, onTabChanged, selectedTabIndex, tabsPosition, rightContent, centerContent, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
42
+ declare function Page({ alertsContent, bordered, centerContent, children, commandsContent, commandsPosition, disabled, footerContent, loading, loadingOptions, moreContent, morePanelProps, onHeader, onLayout, onTabChanged, onTabs, panels, rightContent, selectedTabIndex, showCommands, showHeader, size, style, sx, tabs, tabsPosition, ...headerProps }: PageProps): import("react/jsx-runtime").JSX.Element;
41
43
  declare namespace Page {
42
44
  var Content: typeof PageContent;
43
45
  var Divider: typeof PageDivider;
@@ -1,6 +1,9 @@
1
1
  import { LinearProgressProps } from '@mui/material';
2
- declare function Progress({ loading, visible, ...rest }: LinearProgressProps & {
2
+ import { SpinDelayOptions } from '../hooks/useSpinDelay';
3
+ export type ProgressProps = SpinDelayOptions & LinearProgressProps & {
3
4
  loading?: boolean;
4
5
  visible?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element | null;
6
+ showTooLongNotification?: boolean;
7
+ };
8
+ declare function Progress({ loading, visible, delay, minDuration, maxDuration, ssr, showTooLongNotification, ...rest }: ProgressProps): import("react/jsx-runtime").JSX.Element | null;
6
9
  export default Progress;
@@ -5,10 +5,8 @@ export declare const AccordionDetails: (theme: Theme) => {
5
5
  styleOverrides: {
6
6
  root: {
7
7
  fontSize: number;
8
- paddingTop: number;
9
8
  fontWeight: number;
10
- paddingInline: number;
11
- paddingBottom: number;
9
+ padding: number;
12
10
  color: string;
13
11
  };
14
12
  };
@@ -25,9 +23,7 @@ export declare const AccordionSummery: (theme: Theme) => {
25
23
  color: string;
26
24
  };
27
25
  };
28
- content: {
29
- alignItems: string;
30
- };
26
+ content: {};
31
27
  expandIconWrapper: {
32
28
  color: string;
33
29
  };