jcicl 0.0.259 → 0.0.263
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.
|
@@ -8,6 +8,7 @@ export declare const PageWrapper: import('@emotion/styled').StyledComponent<{
|
|
|
8
8
|
hasPagination: boolean;
|
|
9
9
|
loadingColor?: string;
|
|
10
10
|
hasFade?: boolean;
|
|
11
|
+
isTablet?: boolean;
|
|
11
12
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
13
|
export declare const MainContentContainer: import('@emotion/styled').StyledComponent<{
|
|
13
14
|
theme?: import('@emotion/react').Theme;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { n as
|
|
4
|
-
import { c as
|
|
1
|
+
import { jsx as e, jsxs as m, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import { n as u } from "../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import { c as b } from "../.chunks/emotion-react.browser.esm.js";
|
|
5
5
|
import o from "../theme.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import { TopFade as
|
|
9
|
-
const
|
|
10
|
-
...
|
|
6
|
+
import { u as h, A as w } from "../.chunks/AppContainer.js";
|
|
7
|
+
import T from "../WithLoading/WithLoading.js";
|
|
8
|
+
import { TopFade as S, BottomFade as P } from "../Overlays/Overlays.js";
|
|
9
|
+
const $ = ["loading", "hasPagination", "loadingColor"], R = u("div", { shouldForwardProp: (r) => !$.includes(r) })(({ loading: r, hasPagination: l, hasFade: s, loadingColor: t = o.colors.green, isTablet: i }) => ({
|
|
10
|
+
...b`
|
|
11
11
|
color: ${o.colors.midnight};
|
|
12
12
|
height: ${r ? "100%" : "auto"};
|
|
13
13
|
padding: 19px;
|
|
@@ -17,7 +17,7 @@ const P = ["loading", "hasPagination", "loadingColor"], R = h("div", { shouldFor
|
|
|
17
17
|
align-items: center;
|
|
18
18
|
width: 100%;
|
|
19
19
|
min-height: 100%;
|
|
20
|
-
height: 100
|
|
20
|
+
height: ${i ? "100%" : "auto"};
|
|
21
21
|
box-sizing: border-box;
|
|
22
22
|
padding-bottom: ${s ? l ? "114px" : "72px" : "19px"};
|
|
23
23
|
> * div {
|
|
@@ -25,11 +25,11 @@ const P = ["loading", "hasPagination", "loadingColor"], R = h("div", { shouldFor
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.MuiCircularProgress-svg {
|
|
28
|
-
color: ${
|
|
28
|
+
color: ${t};
|
|
29
29
|
}
|
|
30
30
|
`
|
|
31
|
-
})),
|
|
32
|
-
...
|
|
31
|
+
})), M = u("div")(() => ({
|
|
32
|
+
...b`
|
|
33
33
|
border-radius: 8px;
|
|
34
34
|
padding: 0;
|
|
35
35
|
display: flex;
|
|
@@ -40,15 +40,15 @@ const P = ["loading", "hasPagination", "loadingColor"], R = h("div", { shouldFor
|
|
|
40
40
|
min-height: 100%;
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
`
|
|
43
|
-
})),
|
|
43
|
+
})), v = {
|
|
44
44
|
green: o.colors.green,
|
|
45
45
|
blue: o.colors.darkBlue,
|
|
46
46
|
red: o.colors.darkRed
|
|
47
|
-
},
|
|
47
|
+
}, g = {
|
|
48
48
|
green: o.colors.whiteGreen,
|
|
49
49
|
blue: o.colors.sky,
|
|
50
50
|
red: o.colors.lighterRed
|
|
51
|
-
},
|
|
51
|
+
}, z = {
|
|
52
52
|
backgroundPrimary: o.colors.sky,
|
|
53
53
|
backgroundSecondary: o.colors.lovemist,
|
|
54
54
|
backgroundTertiary: o.colors.cornflower,
|
|
@@ -78,59 +78,60 @@ const P = ["loading", "hasPagination", "loadingColor"], R = h("div", { shouldFor
|
|
|
78
78
|
iconColor: o.colors.maroon,
|
|
79
79
|
backgroundColor: o.colors.lighterRed
|
|
80
80
|
}
|
|
81
|
-
},
|
|
82
|
-
blue:
|
|
81
|
+
}, B = {
|
|
82
|
+
blue: z,
|
|
83
83
|
red: I,
|
|
84
84
|
green: void 0
|
|
85
|
-
},
|
|
85
|
+
}, N = ({
|
|
86
86
|
children: r,
|
|
87
87
|
loading: l = !1,
|
|
88
88
|
hasPagination: s = !1,
|
|
89
|
-
fade:
|
|
90
|
-
userProfileMenuItems:
|
|
91
|
-
...
|
|
89
|
+
fade: t = !0,
|
|
90
|
+
userProfileMenuItems: i,
|
|
91
|
+
...c
|
|
92
92
|
}) => {
|
|
93
|
-
const
|
|
93
|
+
const y = localStorage.getItem("theme") || "green", [a, n] = p(y), d = h(`(max-width: ${o.screenSizes.mobile})`), x = h(`(max-width: ${o.screenSizes.tablet})`), k = B[a], C = [
|
|
94
94
|
{
|
|
95
95
|
label: "Green Theme",
|
|
96
96
|
onClick: () => {
|
|
97
|
-
localStorage.setItem("theme", "green"),
|
|
97
|
+
localStorage.setItem("theme", "green"), n("green");
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
label: "Blue Theme",
|
|
102
102
|
onClick: () => {
|
|
103
|
-
localStorage.setItem("theme", "blue"),
|
|
103
|
+
localStorage.setItem("theme", "blue"), n("blue");
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
label: "Red Theme",
|
|
108
108
|
onClick: () => {
|
|
109
|
-
localStorage.setItem("theme", "red"),
|
|
109
|
+
localStorage.setItem("theme", "red"), n("red");
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
...
|
|
112
|
+
...i || []
|
|
113
113
|
];
|
|
114
114
|
return /* @__PURE__ */ e(
|
|
115
|
-
|
|
115
|
+
w,
|
|
116
116
|
{
|
|
117
|
-
...
|
|
118
|
-
userProfileMenuItems:
|
|
119
|
-
themeColors:
|
|
117
|
+
...c,
|
|
118
|
+
userProfileMenuItems: C,
|
|
119
|
+
themeColors: k ?? (c == null ? void 0 : c.themeColors),
|
|
120
120
|
children: /* @__PURE__ */ e(
|
|
121
121
|
R,
|
|
122
122
|
{
|
|
123
123
|
className: "jcPageWrapper",
|
|
124
124
|
loading: l,
|
|
125
|
-
loadingColor:
|
|
125
|
+
loadingColor: v[a],
|
|
126
126
|
hasPagination: s,
|
|
127
|
-
hasFade:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/* @__PURE__ */ e(S, {
|
|
127
|
+
hasFade: t,
|
|
128
|
+
isTablet: x,
|
|
129
|
+
children: /* @__PURE__ */ m(T, { loading: l, size: d ? 114 : 201, children: [
|
|
130
|
+
t && /* @__PURE__ */ m(f, { children: [
|
|
131
|
+
/* @__PURE__ */ e(S, { color: g[a] }),
|
|
132
|
+
/* @__PURE__ */ e(P, { hasPagination: s, isMobile: d, color: g[a] })
|
|
132
133
|
] }),
|
|
133
|
-
/* @__PURE__ */ e(
|
|
134
|
+
/* @__PURE__ */ e(M, { children: r })
|
|
134
135
|
] })
|
|
135
136
|
}
|
|
136
137
|
)
|
|
@@ -138,7 +139,7 @@ const P = ["loading", "hasPagination", "loadingColor"], R = h("div", { shouldFor
|
|
|
138
139
|
);
|
|
139
140
|
};
|
|
140
141
|
export {
|
|
141
|
-
|
|
142
|
+
M as MainContentContainer,
|
|
142
143
|
R as PageWrapper,
|
|
143
|
-
|
|
144
|
+
N as default
|
|
144
145
|
};
|
package/Stepper/Stepper.js
CHANGED
|
@@ -678,7 +678,8 @@ const hr = R("div")(() => ({
|
|
|
678
678
|
...u
|
|
679
679
|
}) => {
|
|
680
680
|
const [i, g] = T(0), [v, p] = T("forward"), f = G.toArray(l).filter(
|
|
681
|
-
|
|
681
|
+
// @ts-ignore
|
|
682
|
+
(a) => H(a) && !!a.props.children
|
|
682
683
|
), s = f.length, c = () => {
|
|
683
684
|
i === s - 1 ? t == null || t() : (M(() => p("none")), M(() => p("forward")), g((a) => a + 1), e == null || e());
|
|
684
685
|
}, h = () => {
|
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.263",
|
|
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",
|