jcicl 0.0.249 → 0.0.251
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/DefaultTemplate/DefaultTemplate.js +25 -26
- package/Overlays/Overlays.d.ts +2 -0
- package/Overlays/Overlays.js +26 -24
- package/package.json +1 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as d, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C } from "react";
|
|
3
|
-
import { n as
|
|
4
|
-
import { c as
|
|
3
|
+
import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as g } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
5
|
import o from "../theme.js";
|
|
6
6
|
import { u as f, A as p } from "../.chunks/AppContainer.js";
|
|
7
7
|
import w from "../WithLoading/WithLoading.js";
|
|
8
8
|
import { TopFade as T, BottomFade as S } from "../Overlays/Overlays.js";
|
|
9
|
-
const P = ["loading", "hasPagination", "loadingColor"], R =
|
|
10
|
-
...
|
|
11
|
-
position: relative;
|
|
9
|
+
const P = ["loading", "hasPagination", "loadingColor"], R = h("div", { shouldForwardProp: (r) => !P.includes(r) })(({ loading: r, hasPagination: l, hasFade: s, loadingColor: c = o.colors.green }) => ({
|
|
10
|
+
...g`
|
|
12
11
|
color: ${o.colors.midnight};
|
|
13
12
|
height: ${r ? "100%" : "auto"};
|
|
14
13
|
padding: 19px;
|
|
@@ -19,17 +18,17 @@ const P = ["loading", "hasPagination", "loadingColor"], R = m("div", { shouldFor
|
|
|
19
18
|
width: 100%;
|
|
20
19
|
height: 100%;
|
|
21
20
|
box-sizing: border-box;
|
|
22
|
-
padding-bottom: ${
|
|
21
|
+
padding-bottom: ${s ? l ? "114px" : "72px" : "19px"};
|
|
23
22
|
> * div {
|
|
24
23
|
box-sizing: border-box;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
.MuiCircularProgress-svg {
|
|
28
|
-
color: ${
|
|
27
|
+
color: ${c};
|
|
29
28
|
}
|
|
30
29
|
`
|
|
31
|
-
})), $ =
|
|
32
|
-
...
|
|
30
|
+
})), $ = h("div")(() => ({
|
|
31
|
+
...g`
|
|
33
32
|
border-radius: 8px;
|
|
34
33
|
padding: 0;
|
|
35
34
|
display: flex;
|
|
@@ -40,15 +39,15 @@ const P = ["loading", "hasPagination", "loadingColor"], R = m("div", { shouldFor
|
|
|
40
39
|
min-height: 100%;
|
|
41
40
|
box-sizing: border-box;
|
|
42
41
|
`
|
|
43
|
-
})),
|
|
42
|
+
})), M = {
|
|
44
43
|
green: o.colors.green,
|
|
45
44
|
blue: o.colors.darkBlue,
|
|
46
45
|
red: o.colors.darkRed
|
|
47
|
-
},
|
|
46
|
+
}, m = {
|
|
48
47
|
green: o.colors.whiteGreen,
|
|
49
48
|
blue: o.colors.sky,
|
|
50
49
|
red: o.colors.lighterRed
|
|
51
|
-
},
|
|
50
|
+
}, v = {
|
|
52
51
|
backgroundPrimary: o.colors.sky,
|
|
53
52
|
backgroundSecondary: o.colors.lovemist,
|
|
54
53
|
backgroundTertiary: o.colors.cornflower,
|
|
@@ -79,18 +78,18 @@ const P = ["loading", "hasPagination", "loadingColor"], R = m("div", { shouldFor
|
|
|
79
78
|
backgroundColor: o.colors.lighterRed
|
|
80
79
|
}
|
|
81
80
|
}, z = {
|
|
82
|
-
blue:
|
|
81
|
+
blue: v,
|
|
83
82
|
red: I,
|
|
84
83
|
green: void 0
|
|
85
84
|
}, L = ({
|
|
86
85
|
children: r,
|
|
87
86
|
loading: l = !1,
|
|
88
|
-
hasPagination:
|
|
89
|
-
fade:
|
|
90
|
-
userProfileMenuItems:
|
|
87
|
+
hasPagination: s = !1,
|
|
88
|
+
fade: c = !0,
|
|
89
|
+
userProfileMenuItems: u,
|
|
91
90
|
...t
|
|
92
91
|
}) => {
|
|
93
|
-
const
|
|
92
|
+
const b = localStorage.getItem("theme") || "green", [a, i] = C(b), n = f(`(max-width: ${o.screenSizes.mobile})`), y = z[a], x = [
|
|
94
93
|
{
|
|
95
94
|
label: "Green Theme",
|
|
96
95
|
onClick: () => {
|
|
@@ -109,7 +108,7 @@ const P = ["loading", "hasPagination", "loadingColor"], R = m("div", { shouldFor
|
|
|
109
108
|
localStorage.setItem("theme", "red"), i("red");
|
|
110
109
|
}
|
|
111
110
|
},
|
|
112
|
-
...
|
|
111
|
+
...u || []
|
|
113
112
|
];
|
|
114
113
|
return /* @__PURE__ */ e(
|
|
115
114
|
p,
|
|
@@ -122,13 +121,13 @@ const P = ["loading", "hasPagination", "loadingColor"], R = m("div", { shouldFor
|
|
|
122
121
|
{
|
|
123
122
|
className: "jcPageWrapper",
|
|
124
123
|
loading: l,
|
|
125
|
-
loadingColor:
|
|
126
|
-
hasPagination:
|
|
127
|
-
hasFade:
|
|
128
|
-
children: /* @__PURE__ */
|
|
129
|
-
|
|
130
|
-
/* @__PURE__ */ e(T, { color:
|
|
131
|
-
/* @__PURE__ */ e(S, { color:
|
|
124
|
+
loadingColor: M[a],
|
|
125
|
+
hasPagination: s,
|
|
126
|
+
hasFade: c,
|
|
127
|
+
children: /* @__PURE__ */ d(w, { loading: l, size: n ? 114 : 201, children: [
|
|
128
|
+
c && /* @__PURE__ */ d(k, { children: [
|
|
129
|
+
/* @__PURE__ */ e(T, { color: m[a] }),
|
|
130
|
+
/* @__PURE__ */ e(S, { hasPagination: s, isMobile: n, color: m[a] })
|
|
132
131
|
] }),
|
|
133
132
|
/* @__PURE__ */ e($, { children: r })
|
|
134
133
|
] })
|
package/Overlays/Overlays.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export declare const BottomFade: import('@emotion/styled').StyledComponent<{
|
|
|
2
2
|
theme?: import('@emotion/react').Theme;
|
|
3
3
|
as?: React.ElementType;
|
|
4
4
|
} & {
|
|
5
|
+
isMobile: boolean;
|
|
6
|
+
hasPagination: boolean;
|
|
5
7
|
color?: string;
|
|
6
8
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
9
|
export declare const TopFade: import('@emotion/styled').StyledComponent<{
|
package/Overlays/Overlays.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { n
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
const s =
|
|
5
|
-
|
|
1
|
+
import { n } from "../.chunks/emotion-styled.browser.esm.js";
|
|
2
|
+
import { c as p } from "../.chunks/emotion-react.browser.esm.js";
|
|
3
|
+
import o from "../theme.js";
|
|
4
|
+
const s = n("div")(
|
|
5
|
+
({ isMobile: e, hasPagination: t, color: i = o.colors.whiteGreen }) => ({
|
|
6
|
+
...p`
|
|
7
|
+
width: calc(100% - 72px);
|
|
8
|
+
max-width: 1300px;
|
|
9
|
+
position: fixed;
|
|
10
|
+
bottom: ${t && e ? "128px" : t && !e ? "57px" : !t && e ? "74px" : "3px"};
|
|
11
|
+
background-image: linear-gradient(to top, ${i}, ${i}00);
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
height: 92px;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
z-index: 92;
|
|
19
|
+
`
|
|
20
|
+
})
|
|
21
|
+
), a = n("div")(({ color: e = o.colors.whiteGreen }) => ({
|
|
22
|
+
...p`
|
|
6
23
|
width: calc(100% - 72px);
|
|
7
24
|
max-width: 1300px;
|
|
8
|
-
position:
|
|
9
|
-
|
|
10
|
-
background-image: linear-gradient(to
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
height: 92px;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
z-index: 92;
|
|
18
|
-
`
|
|
19
|
-
})), d = t("div")(({ color: e = i.colors.whiteGreen }) => ({
|
|
20
|
-
...o`
|
|
21
|
-
width: calc(100% - 72px);
|
|
22
|
-
max-width: 1300px;
|
|
23
|
-
position: absolute;
|
|
24
|
-
bottom: 0;
|
|
25
|
-
background-image: linear-gradient(to top, ${e}, ${e}00);
|
|
25
|
+
position: fixed;
|
|
26
|
+
top: ${o.constants.appHeaderHeight + 1}px;
|
|
27
|
+
background-image: linear-gradient(to bottom, ${e}, ${e}00);
|
|
26
28
|
pointer-events: none;
|
|
27
29
|
height: 29px;
|
|
28
30
|
box-sizing: border-box;
|
|
@@ -34,5 +36,5 @@ const s = t("div")(({ color: e = i.colors.whiteGreen }) => ({
|
|
|
34
36
|
}));
|
|
35
37
|
export {
|
|
36
38
|
s as BottomFade,
|
|
37
|
-
|
|
39
|
+
a as TopFade
|
|
38
40
|
};
|
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.251",
|
|
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",
|