react-crud-mui 0.0.1-beta.52 → 0.0.1-beta.54
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.
- package/dist/components/combobox/ComboBox.d.ts +1 -1
- package/dist/components/detail-page/hooks/useDetailPageModal.d.ts +1 -0
- package/dist/components/hooks/useSpinDelay.d.ts +4 -1
- package/dist/components/misc/index.d.ts +1 -0
- package/dist/components/misc/toNull.d.ts +2 -0
- package/dist/components/page/Page.d.ts +3 -1
- package/dist/components/progress/Progress.d.ts +5 -2
- package/dist/components/theme/components/accordion.d.ts +2 -6
- package/dist/coreui.js +3305 -3285
- package/package.json +1 -1
|
@@ -22,6 +22,6 @@ export interface ComboBoxProps<T extends CreatableModel, Creatable extends boole
|
|
|
22
22
|
size?: ComboboxSize;
|
|
23
23
|
}
|
|
24
24
|
export declare const DEFAULT_OPTION_TEMPLATE = "${name}";
|
|
25
|
-
declare function ComboBox<T extends CreatableModel, Creatable extends boolean>({ autoFocus, creatable, data, descriptionTemplate, direction, displayTemplate, error, getOptionLabel, helperText, loading, onBlur, onCreate, optionTemplate, label, size, renderOption: onRenderOption, selectRef, ...rest }: ComboBoxProps<T, Creatable>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function ComboBox<T extends CreatableModel, Creatable extends boolean>({ autoFocus, creatable, data, descriptionTemplate, direction, displayTemplate, error, getOptionLabel, helperText, loading, onBlur, onCreate, optionTemplate, label, size, value, renderOption: onRenderOption, selectRef, ...rest }: ComboBoxProps<T, Creatable>): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
declare const _default: typeof ComboBox;
|
|
27
27
|
export default _default;
|
|
@@ -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 progressProps?: import('../../progress/Progress').ProgressProps;
|
|
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
|
|
@@ -9,6 +9,9 @@ interface SpinDelayOptions {
|
|
|
9
9
|
* @default 200
|
|
10
10
|
*/
|
|
11
11
|
minDuration?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Max duration to set state to TOO_LONG
|
|
14
|
+
*/
|
|
12
15
|
maxDuration?: number;
|
|
13
16
|
/**
|
|
14
17
|
* Whether to enable the spinner on the server side. If true, `delay` will be
|
|
@@ -5,3 +5,4 @@ export { default as updateQueryString } from './updateQueryString';
|
|
|
5
5
|
export { default as moneyFormat } from './moneyFormat';
|
|
6
6
|
export { default as nullableZodSchema } from './nullableSchema';
|
|
7
7
|
export { default as parseDate } from './parseDate';
|
|
8
|
+
export { default as toNull } from './toNull';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { HeaderProps } from '../header/Header';
|
|
3
3
|
import { MorePanelProps } from '../more-panel/MorePanel';
|
|
4
|
+
import { ProgressProps } from '../progress/Progress';
|
|
4
5
|
import { default as DefaultLayout, PageLayoutProps } from './components/DefaultLayout';
|
|
5
6
|
import { PanelPane } from './components/DefaultPanels';
|
|
6
7
|
import { default as DefaultTabs, DefaultTabsProps, TabChangedPayload, TabPane } from './components/DefaultTabs';
|
|
@@ -27,6 +28,7 @@ export interface PageProps extends HeaderProps {
|
|
|
27
28
|
size?: PaddingSize;
|
|
28
29
|
disabled?: boolean;
|
|
29
30
|
loading?: boolean;
|
|
31
|
+
progressProps?: ProgressProps;
|
|
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,
|
|
42
|
+
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, 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
|
-
|
|
2
|
+
import { SpinDelayOptions } from '../hooks/useSpinDelay';
|
|
3
|
+
export type ProgressProps = SpinDelayOptions & LinearProgressProps & {
|
|
3
4
|
loading?: boolean;
|
|
4
5
|
visible?: boolean;
|
|
5
|
-
|
|
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
|
-
|
|
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
|
};
|