jcicl 0.0.239 → 0.0.241

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.
@@ -7,6 +7,7 @@ export declare const PageWrapper: import('@emotion/styled').StyledComponent<{
7
7
  loading: boolean;
8
8
  hasPagination: boolean;
9
9
  loadingColor?: string;
10
+ hasFade?: boolean;
10
11
  }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
12
  export declare const MainContentContainer: import('@emotion/styled').StyledComponent<{
12
13
  theme?: import('@emotion/react').Theme;
@@ -1,13 +1,13 @@
1
- import { jsx as c, jsxs as y } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
2
  import { useState as x } 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";
3
+ import { n } from "../.chunks/emotion-styled.browser.esm.js";
4
+ import { c as m } from "../.chunks/emotion-react.browser.esm.js";
5
5
  import o from "../theme.js";
6
- import { u as k, A as f } from "../.chunks/AppContainer.js";
7
- import C from "../WithLoading/WithLoading.js";
8
- import { Fade as w } from "../Overlays/Overlays.js";
9
- const p = ["loading", "hasPagination", "loadingColor"], S = d("div", { shouldForwardProp: (r) => !p.includes(r) })(({ loading: r, hasPagination: e, loadingColor: l = o.colors.green }) => ({
10
- ...n`
6
+ import { u as k, A as C } from "../.chunks/AppContainer.js";
7
+ import f from "../WithLoading/WithLoading.js";
8
+ import { Fade as p } from "../Overlays/Overlays.js";
9
+ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldForwardProp: (r) => !w.includes(r) })(({ loading: r, hasPagination: e, hasFade: l, loadingColor: s = o.colors.green }) => ({
10
+ ...m`
11
11
  color: ${o.colors.midnight};
12
12
  height: ${r ? "100%" : "auto"};
13
13
  padding: 19px;
@@ -18,17 +18,17 @@ const p = ["loading", "hasPagination", "loadingColor"], S = d("div", { shouldFor
18
18
  width: 100%;
19
19
  height: 100%;
20
20
  box-sizing: border-box;
21
- padding-bottom: ${e ? "114px" : "72px"};
21
+ padding-bottom: ${l ? e ? "114px" : "72px" : "19px"};
22
22
  > * div {
23
23
  box-sizing: border-box;
24
24
  }
25
25
 
26
26
  .MuiCircularProgress-svg {
27
- color: ${l};
27
+ color: ${s};
28
28
  }
29
29
  `
30
- })), T = d("div")(() => ({
31
- ...n`
30
+ })), T = n("div")(() => ({
31
+ ...m`
32
32
  border-radius: 8px;
33
33
  padding: 0;
34
34
  display: flex;
@@ -85,11 +85,11 @@ const p = ["loading", "hasPagination", "loadingColor"], S = d("div", { shouldFor
85
85
  children: r,
86
86
  loading: e = !1,
87
87
  hasPagination: l = !1,
88
- fade: m = !0,
88
+ fade: s = !0,
89
89
  userProfileMenuItems: h,
90
- ...s
90
+ ...c
91
91
  }) => {
92
- const g = localStorage.getItem("theme") || "green", [t, i] = x(g), a = k(`(max-width: ${o.screenSizes.mobile})`), u = v[t], b = [
92
+ const g = localStorage.getItem("theme") || "green", [a, i] = x(g), d = k(`(max-width: ${o.screenSizes.mobile})`), u = v[a], b = [
93
93
  {
94
94
  label: "Green Theme",
95
95
  onClick: () => {
@@ -110,16 +110,26 @@ const p = ["loading", "hasPagination", "loadingColor"], S = d("div", { shouldFor
110
110
  },
111
111
  ...h || []
112
112
  ];
113
- return /* @__PURE__ */ c(
114
- f,
113
+ return /* @__PURE__ */ t(
114
+ C,
115
115
  {
116
- ...s,
116
+ ...c,
117
117
  userProfileMenuItems: b,
118
- themeColors: u ?? (s == null ? void 0 : s.themeColors),
119
- children: /* @__PURE__ */ c(S, { loading: e, loadingColor: P[t], hasPagination: l, children: /* @__PURE__ */ y(C, { loading: e, size: a ? 114 : 201, children: [
120
- m && /* @__PURE__ */ c(w, { isMobile: a, hasPagination: l, color: R[t] }),
121
- /* @__PURE__ */ c(T, { children: r })
122
- ] }) })
118
+ themeColors: u ?? (c == null ? void 0 : c.themeColors),
119
+ children: /* @__PURE__ */ t(
120
+ S,
121
+ {
122
+ className: "jcPageWrapper",
123
+ loading: e,
124
+ loadingColor: P[a],
125
+ hasPagination: l,
126
+ hasFade: s,
127
+ children: /* @__PURE__ */ y(f, { loading: e, size: d ? 114 : 201, children: [
128
+ s && /* @__PURE__ */ t(p, { isMobile: d, hasPagination: l, color: R[a] }),
129
+ /* @__PURE__ */ t(T, { children: r })
130
+ ] })
131
+ }
132
+ )
123
133
  }
124
134
  );
125
135
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.239",
4
+ "version": "0.0.241",
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",