@campxdev/react-blueprint 2.0.9 → 2.0.10
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/cjs/index.js +1 -1
- package/dist/cjs/types/src/components/Assets/Icons/IconComponents/LeavesIcon.d.ts +4 -0
- package/dist/cjs/types/src/components/Assets/Icons/Icons.d.ts +1 -0
- package/dist/cjs/types/src/components/Charts/ProgressCard/ProgressCard.d.ts +66 -0
- package/dist/cjs/types/src/components/Charts/export.d.ts +2 -1
- package/dist/cjs/types/src/components/DataDisplay/Accordion/styles.d.ts +1 -1
- package/dist/cjs/types/src/components/Navigation/Sidebar/styles.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/Assets/Icons/IconComponents/LeavesIcon.d.ts +4 -0
- package/dist/esm/types/src/components/Assets/Icons/Icons.d.ts +1 -0
- package/dist/esm/types/src/components/Charts/ProgressCard/ProgressCard.d.ts +66 -0
- package/dist/esm/types/src/components/Charts/export.d.ts +2 -1
- package/dist/esm/types/src/components/DataDisplay/Accordion/styles.d.ts +1 -1
- package/dist/esm/types/src/components/Navigation/Sidebar/styles.d.ts +1 -1
- package/dist/index.d.ts +71 -6
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface ProgressCardProps {
|
|
4
|
+
title: string;
|
|
5
|
+
current: number;
|
|
6
|
+
total: number;
|
|
7
|
+
remaining?: number;
|
|
8
|
+
used?: number;
|
|
9
|
+
pending?: number;
|
|
10
|
+
progressBarColor?: string;
|
|
11
|
+
remainingLabel?: string | ReactNode;
|
|
12
|
+
usedLabel?: string | ReactNode;
|
|
13
|
+
totalLabel?: string | ReactNode;
|
|
14
|
+
pendingLabel?: string | ReactNode;
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
moreOptions?: boolean;
|
|
17
|
+
menu?: ReactNode[] | ((props: {
|
|
18
|
+
close: () => void;
|
|
19
|
+
}) => ReactNode[]);
|
|
20
|
+
cardSx?: SxProps;
|
|
21
|
+
headerSx?: SxProps;
|
|
22
|
+
progressSx?: SxProps;
|
|
23
|
+
statsSx?: SxProps;
|
|
24
|
+
titleProps?: {
|
|
25
|
+
variant?: any;
|
|
26
|
+
sx?: SxProps;
|
|
27
|
+
};
|
|
28
|
+
remainingProps?: {
|
|
29
|
+
variant?: any;
|
|
30
|
+
sx?: SxProps;
|
|
31
|
+
};
|
|
32
|
+
usedProps?: {
|
|
33
|
+
variant?: any;
|
|
34
|
+
sx?: SxProps;
|
|
35
|
+
};
|
|
36
|
+
totalProps?: {
|
|
37
|
+
variant?: any;
|
|
38
|
+
sx?: SxProps;
|
|
39
|
+
};
|
|
40
|
+
pendingProps?: {
|
|
41
|
+
variant?: any;
|
|
42
|
+
sx?: SxProps;
|
|
43
|
+
};
|
|
44
|
+
children?: ReactNode;
|
|
45
|
+
renderHeader?: (props: {
|
|
46
|
+
title: string;
|
|
47
|
+
remaining: number;
|
|
48
|
+
}) => ReactNode;
|
|
49
|
+
renderProgress?: (props: {
|
|
50
|
+
current: number;
|
|
51
|
+
total: number;
|
|
52
|
+
}) => ReactNode;
|
|
53
|
+
renderStats?: (props: {
|
|
54
|
+
used: number;
|
|
55
|
+
total: number;
|
|
56
|
+
}) => ReactNode;
|
|
57
|
+
renderPending?: (props: {
|
|
58
|
+
pending: number;
|
|
59
|
+
}) => ReactNode;
|
|
60
|
+
renderFooter?: (props: {
|
|
61
|
+
used: number;
|
|
62
|
+
total: number;
|
|
63
|
+
}) => ReactNode;
|
|
64
|
+
}
|
|
65
|
+
export declare const ProgressCard: ({ title, current, total, remaining, used, pending, progressBarColor, remainingLabel, usedLabel, totalLabel, pendingLabel, icon, moreOptions, menu, cardSx, headerSx, progressSx, statsSx, titleProps, remainingProps, usedProps, totalProps, pendingProps, children, renderHeader, renderProgress, renderStats, renderPending, renderFooter, }: ProgressCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export default ProgressCard;
|
|
@@ -13,4 +13,4 @@ export declare const StyledMuiAccordion: import("@mui/styled-engine").StyledComp
|
|
|
13
13
|
TransitionProps?: import("@mui/material/transitions").TransitionProps;
|
|
14
14
|
} & import("@mui/material").AccordionSlotsAndSlotProps & Omit<import("@mui/material").PaperOwnProps, "classes" | "onChange"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@types/react").DetailedHTMLProps<import("@types/react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
15
|
ref?: import("@types/react").Ref<HTMLDivElement>;
|
|
16
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "onChange" | "elevation" | "disabled" | "square" | "expanded" | "
|
|
16
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "sx" | "variant" | "onChange" | "elevation" | "disabled" | "square" | "expanded" | "TransitionComponent" | "TransitionProps" | "defaultExpanded" | "disableGutters" | keyof import("@mui/material").AccordionSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -26,7 +26,7 @@ export declare const createSidebarStyles: (collapsed: boolean) => {
|
|
|
26
26
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & StyledListItemButtonProps, {}, {}>;
|
|
27
27
|
StyledListItem: import("@mui/styled-engine").StyledComponent<import("@mui/material").ListItemOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@types/react").DetailedHTMLProps<import("@types/react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
28
28
|
ref?: import("@types/react").Ref<HTMLLIElement>;
|
|
29
|
-
}, "className" | "style" | "classes" | "alignItems" | "children" | "sx" | "dense" | "components" | "componentsProps" | "divider" | "
|
|
29
|
+
}, "className" | "style" | "classes" | "alignItems" | "children" | "sx" | "dense" | "components" | "componentsProps" | "divider" | "slots" | "slotProps" | "disablePadding" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
30
30
|
StyledLinkButton: import("@mui/styled-engine").StyledComponent<import("react-router-dom").LinkProps & import("@types/react").RefAttributes<HTMLAnchorElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & StyledLinkButtonProps, {}, {}>;
|
|
31
31
|
StyledListItemButton: import("@mui/styled-engine").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@types/react").DetailedHTMLProps<import("@types/react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
32
32
|
ref?: import("@types/react").Ref<HTMLDivElement>;
|