@churchapps/apphelper 0.2.78 → 0.2.79
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/wrapper/Drawers.d.ts +2 -2
- package/dist/components/wrapper/Drawers.d.ts.map +1 -1
- package/dist/components/wrapper/Drawers.js +5 -3
- package/dist/components/wrapper/Drawers.js.map +1 -1
- package/dist/components/wrapper/SiteWrapper.js +1 -1
- package/dist/components/wrapper/SiteWrapper.js.map +1 -1
- package/package.json +1 -1
- package/src/components/wrapper/Drawers.tsx +3 -3
- package/src/components/wrapper/SiteWrapper.tsx +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const OpenDrawer: import("@emotion/styled").StyledComponent<import("@mui/material").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
|
-
export declare const ClosedDrawer: import("@emotion/styled").StyledComponent<import("@mui/material").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
2
|
+
export declare const OpenDrawer: (styles: any) => import("@emotion/styled").StyledComponent<import("@mui/material").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
|
+
export declare const ClosedDrawer: (styles: any) => import("@emotion/styled").StyledComponent<import("@mui/material").DrawerProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
4
|
export declare const ClosedDrawerAppBar: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
classes?: Partial<import("@mui/material").AppBarClasses>;
|
|
6
6
|
color?: import("@mui/types").OverridableStringUnion<"transparent" | import("@mui/material").PropTypes.Color, import("@mui/material").AppBarPropsColorOverrides>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawers.d.ts","sourceRoot":"","sources":["../../../src/components/wrapper/Drawers.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"Drawers.d.ts","sourceRoot":"","sources":["../../../src/components/wrapper/Drawers.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,UAAU,WAAW,GAAG,uKAkBpC,CAAC;AAEF,eAAO,MAAM,YAAY,WAAW,GAAG,uKActC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;6PAS9B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;6PAS5B,CAAC"}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.OpenDrawerAppBar = exports.ClosedDrawerAppBar = exports.ClosedDrawer = exports.OpenDrawer = void 0;
|
|
5
5
|
const material_1 = require("@mui/material");
|
|
6
|
-
|
|
6
|
+
const OpenDrawer = (styles) => (0, material_1.styled)(material_1.Drawer)(({ theme }) => ({
|
|
7
7
|
"& .MuiDrawer-paper": {
|
|
8
8
|
position: "relative",
|
|
9
|
-
backgroundColor: theme.palette.primary.main,
|
|
9
|
+
backgroundColor: styles.backgroundColor || theme.palette.primary.main,
|
|
10
10
|
color: "#FFFFFF",
|
|
11
11
|
whiteSpace: "nowrap",
|
|
12
12
|
width: "100vw",
|
|
@@ -20,7 +20,8 @@ exports.OpenDrawer = (0, material_1.styled)(material_1.Drawer)(({ theme }) => ({
|
|
|
20
20
|
},
|
|
21
21
|
"& .MuiListItemButton-root, & .MuiListItemIcon-root": { color: "#FFFFFF" }
|
|
22
22
|
}));
|
|
23
|
-
exports.
|
|
23
|
+
exports.OpenDrawer = OpenDrawer;
|
|
24
|
+
const ClosedDrawer = (styles) => (0, material_1.styled)((0, exports.OpenDrawer)(styles))(({ theme }) => ({
|
|
24
25
|
overflowX: "hidden",
|
|
25
26
|
transition: theme.transitions.create("width", {
|
|
26
27
|
easing: theme.transitions.easing.sharp,
|
|
@@ -33,6 +34,7 @@ exports.ClosedDrawer = (0, material_1.styled)(exports.OpenDrawer)(({ theme }) =>
|
|
|
33
34
|
opacity: 0
|
|
34
35
|
}
|
|
35
36
|
}));
|
|
37
|
+
exports.ClosedDrawer = ClosedDrawer;
|
|
36
38
|
exports.ClosedDrawerAppBar = (0, material_1.styled)(material_1.AppBar)(({ theme }) => ({
|
|
37
39
|
zIndex: theme.zIndex.drawer + 1,
|
|
38
40
|
transition: theme.transitions.create(["width", "margin"], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawers.js","sourceRoot":"","sources":["../../../src/components/wrapper/Drawers.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;AAEb,4CAAuD;
|
|
1
|
+
{"version":3,"file":"Drawers.js","sourceRoot":"","sources":["../../../src/components/wrapper/Drawers.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;AAEb,4CAAuD;AAEhD,MAAM,UAAU,GAAG,CAAC,MAAU,EAAE,EAAE,CAAC,IAAA,iBAAM,EAAC,iBAAM,CAAC,CACtD,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACd,oBAAoB,EAAE;QACpB,QAAQ,EAAE,UAAU;QACpB,eAAe,EAAE,MAAM,CAAC,eAAe,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;QACrE,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,IAAI;QACZ,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;QAC5C,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE;YAC5C,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK;YACtC,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc;SACpD,CAAC;QACF,SAAS,EAAE,YAAY;KACxB;IACD,oD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AS,EAAE;CACxC,CAAC,CACH,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,iBAAM,EAAC,0BAAkB,CAAC,CACxD,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACd,UAAU,EAAE,GAAG;IACf,KAAK,EAAE,eAAe,GAAG,KAAK;IAC9B,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE;QACxD,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK;QACtC,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc;KACpD,CAAC;CACH,CAAC,CACH,CAAC"}
|
|
@@ -28,7 +28,7 @@ const SiteWrapper = props => {
|
|
|
28
28
|
const [notificationCounts, setNotificationCounts] = react_1.default.useState({ notificationCount: 0, pmCount: 0 });
|
|
29
29
|
const toggleDrawer = () => { setOpen(!open); };
|
|
30
30
|
const isMounted = (0, useMountedState_1.useMountedState)();
|
|
31
|
-
const CustomDrawer = (open) ? Drawers_1.OpenDrawer : Drawers_1.ClosedDrawer;
|
|
31
|
+
const CustomDrawer = (open) ? (0, Drawers_1.OpenDrawer)({ backgroundColor: props.appearance.wrapperBackground }) : (0, Drawers_1.ClosedDrawer)({ backgroundColor: props.appearance.wrapperBackground });
|
|
32
32
|
const CustomAppBar = (open) ? Drawers_1.OpenDrawerAppBar : Drawers_1.ClosedDrawerAppBar;
|
|
33
33
|
const loadCounts = () => {
|
|
34
34
|
helpers_1.ApiHelper.get("/notifications/unreadCount", "MessagingApi").then(data => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SiteWrapper.js","sourceRoot":"","sources":["../../../src/components/wrapper/SiteWrapper.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;AAEb,kDAA6C;AAC7C,4CAA4F;AAC5F,2CAA2G;AAC3G,yCAAsC;AAEtC,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UAAU,0CAAE,iBAAiB,EAAE,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;YACjL,8BAAC,kBAAO,IAAC,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE;gBAC5E,uCAAK,GAAG,EAAE,UAAU,IAAI,0BAA0B,EAAE,GAAG,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAI;gBAC3F,uCAAK,KAAK,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE;oBAClE,8BAAC,qBAAU,IAAC,OAAO,EAAE,YAAY;wBAAE,8BAAC,eAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,mBAAqB,CAAa,CAClG,CACE;YACT,KAAK,CAAC,UAAU,CACJ;QACf,8BAAC,cAAG,IAAC,SAAS,EAAC,MAAM,EAAC,EAAE,EAAE,QAAQ;YAChC,8BAAC,oBAAS,IAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,IAC7C,KAAK,CAAC,QAAQ,CACL,CACR,CACL,CAAA;AACL,CAAC,CAAC;AAhFW,QAAA,WAAW,eAgFtB"}
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { AppBar, Drawer, styled } from "@mui/material";
|
|
4
4
|
|
|
5
|
-
export const OpenDrawer = styled(Drawer)(
|
|
5
|
+
export const OpenDrawer = (styles:any) => styled(Drawer)(
|
|
6
6
|
({ theme }) => ({
|
|
7
7
|
"& .MuiDrawer-paper": {
|
|
8
8
|
position: "relative",
|
|
9
|
-
backgroundColor: theme.palette.primary.main,
|
|
9
|
+
backgroundColor: styles.backgroundColor || theme.palette.primary.main,
|
|
10
10
|
color: "#FFFFFF",
|
|
11
11
|
whiteSpace: "nowrap",
|
|
12
12
|
width: "100vw",
|
|
@@ -22,7 +22,7 @@ export const OpenDrawer = styled(Drawer)(
|
|
|
22
22
|
})
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
-
export const ClosedDrawer = styled(OpenDrawer)(
|
|
25
|
+
export const ClosedDrawer = (styles:any) => styled(OpenDrawer(styles))(
|
|
26
26
|
({ theme }) => ({
|
|
27
27
|
overflowX: "hidden",
|
|
28
28
|
transition: theme.transitions.create("width", {
|
|
@@ -26,7 +26,7 @@ export const SiteWrapper: React.FC<Props> = props => {
|
|
|
26
26
|
const toggleDrawer = () => { setOpen(!open); };
|
|
27
27
|
const isMounted = useMountedState();
|
|
28
28
|
|
|
29
|
-
const CustomDrawer = (open) ? OpenDrawer : ClosedDrawer;
|
|
29
|
+
const CustomDrawer = (open) ? OpenDrawer({backgroundColor:props.appearance.wrapperBackground}) : ClosedDrawer({backgroundColor:props.appearance.wrapperBackground});
|
|
30
30
|
const CustomAppBar = (open) ? OpenDrawerAppBar : ClosedDrawerAppBar;
|
|
31
31
|
|
|
32
32
|
const loadCounts = () => {
|