jcicl 0.0.219 → 0.0.223
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { AppContainerProps } from '
|
|
2
|
+
import { AppContainerProps } from '../../../../../../../../../src/components/templates/AppContainer';
|
|
3
3
|
export declare const PageWrapper: import('@emotion/styled').StyledComponent<{
|
|
4
4
|
theme?: import('@emotion/react').Theme;
|
|
5
5
|
as?: React.ElementType;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { n as
|
|
4
|
-
import { c as n } from "
|
|
5
|
-
import o from "
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import { Fade as
|
|
9
|
-
const
|
|
1
|
+
import { jsx as c, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y } from "react";
|
|
3
|
+
import { n as d } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as n } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
|
+
import o from "../theme.js";
|
|
6
|
+
import { u as x, A as k } from "../.chunks/AppContainer.js";
|
|
7
|
+
import f from "../WithLoading/WithLoading.js";
|
|
8
|
+
import { Fade as C } from "../Overlays/Overlays.js";
|
|
9
|
+
const w = ["loading", "hasPagination", "loadingColor"], p = d("div", { shouldForwardProp: (r) => !w.includes(r) })(({ loading: r, hasPagination: e, loadingColor: l = o.colors.green }) => ({
|
|
10
10
|
...n`
|
|
11
11
|
color: ${o.colors.midnight};
|
|
12
12
|
height: ${r ? "100%" : "auto"};
|
|
@@ -17,16 +17,16 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
|
|
|
17
17
|
align-items: center;
|
|
18
18
|
width: 100%;
|
|
19
19
|
box-sizing: border-box;
|
|
20
|
-
padding-bottom: ${
|
|
20
|
+
padding-bottom: ${e ? "114px" : "72px"};
|
|
21
21
|
> * div {
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.MuiCircularProgress-svg {
|
|
26
|
-
color: ${
|
|
26
|
+
color: ${l};
|
|
27
27
|
}
|
|
28
28
|
`
|
|
29
|
-
})),
|
|
29
|
+
})), S = d("div")(() => ({
|
|
30
30
|
...n`
|
|
31
31
|
border-radius: 8px;
|
|
32
32
|
padding: 0;
|
|
@@ -37,15 +37,15 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
|
|
|
37
37
|
width: 100%;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
`
|
|
40
|
-
})),
|
|
40
|
+
})), T = {
|
|
41
41
|
green: o.colors.green,
|
|
42
42
|
blue: o.colors.darkBlue,
|
|
43
43
|
red: o.colors.darkRed
|
|
44
|
-
},
|
|
44
|
+
}, P = {
|
|
45
45
|
green: o.colors.whiteGreen,
|
|
46
46
|
blue: o.colors.sky,
|
|
47
47
|
red: o.colors.lighterRed
|
|
48
|
-
},
|
|
48
|
+
}, R = {
|
|
49
49
|
backgroundPrimary: o.colors.sky,
|
|
50
50
|
backgroundSecondary: o.colors.lovemist,
|
|
51
51
|
backgroundTertiary: o.colors.cornflower,
|
|
@@ -60,7 +60,7 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
|
|
|
60
60
|
iconColor: o.colors.cobalt,
|
|
61
61
|
backgroundColor: o.colors.sky
|
|
62
62
|
}
|
|
63
|
-
},
|
|
63
|
+
}, $ = {
|
|
64
64
|
backgroundPrimary: o.colors.lighterRed,
|
|
65
65
|
backgroundSecondary: o.colors.lightRed,
|
|
66
66
|
backgroundTertiary: o.colors.cherryBlossom,
|
|
@@ -75,16 +75,18 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
|
|
|
75
75
|
iconColor: o.colors.maroon,
|
|
76
76
|
backgroundColor: o.colors.lighterRed
|
|
77
77
|
}
|
|
78
|
-
},
|
|
79
|
-
blue:
|
|
80
|
-
red:
|
|
78
|
+
}, M = {
|
|
79
|
+
blue: R,
|
|
80
|
+
red: $,
|
|
81
81
|
green: void 0
|
|
82
|
-
},
|
|
82
|
+
}, F = ({
|
|
83
83
|
children: r,
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
loading: e = !1,
|
|
85
|
+
hasPagination: l = !1,
|
|
86
|
+
userProfileMenuItems: m,
|
|
87
|
+
...s
|
|
86
88
|
}) => {
|
|
87
|
-
const
|
|
89
|
+
const h = localStorage.getItem("theme") || "green", [t, i] = y(h), a = x(`(max-width: ${o.screenSizes.mobile})`), g = M[t], u = [
|
|
88
90
|
{
|
|
89
91
|
label: "Green Theme",
|
|
90
92
|
onClick: () => {
|
|
@@ -103,23 +105,23 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
|
|
|
103
105
|
localStorage.setItem("theme", "red"), i("red");
|
|
104
106
|
}
|
|
105
107
|
},
|
|
106
|
-
...
|
|
108
|
+
...m || []
|
|
107
109
|
];
|
|
108
|
-
return /* @__PURE__ */
|
|
109
|
-
|
|
110
|
+
return /* @__PURE__ */ c(
|
|
111
|
+
k,
|
|
110
112
|
{
|
|
111
|
-
...
|
|
112
|
-
userProfileMenuItems:
|
|
113
|
-
themeColors:
|
|
114
|
-
children: /* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
/* @__PURE__ */
|
|
113
|
+
...s,
|
|
114
|
+
userProfileMenuItems: u,
|
|
115
|
+
themeColors: g ?? (s == null ? void 0 : s.themeColors),
|
|
116
|
+
children: /* @__PURE__ */ c(p, { loading: e, loadingColor: T[t], hasPagination: l, children: /* @__PURE__ */ b(f, { loading: e, size: a ? 114 : 201, children: [
|
|
117
|
+
/* @__PURE__ */ c(C, { isMobile: a, hasPagination: l, color: P[t] }),
|
|
118
|
+
/* @__PURE__ */ c(S, { children: r })
|
|
117
119
|
] }) })
|
|
118
120
|
}
|
|
119
121
|
);
|
|
120
122
|
};
|
|
121
123
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
S as MainContentContainer,
|
|
125
|
+
p as PageWrapper,
|
|
126
|
+
F as default
|
|
125
127
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DefaultTemplate, type DefaultTemplateProps } from './DefaultTemplate';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jcicl",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.223",
|
|
5
5
|
"description": "Component library for the websites of Johnson County Iowa",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",
|