jcicl 0.0.249 → 0.0.253

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,14 +1,13 @@
1
- import { jsx as e, jsxs as n, Fragment as k } from "react/jsx-runtime";
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 m } from "../.chunks/emotion-styled.browser.esm.js";
4
- import { c as h } from "../.chunks/emotion-react.browser.esm.js";
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 = m("div", { shouldForwardProp: (r) => !P.includes(r) })(({ loading: r, hasPagination: l, hasFade: c, loadingColor: s = o.colors.green }) => ({
10
- ...h`
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;
@@ -17,19 +16,19 @@ const P = ["loading", "hasPagination", "loadingColor"], R = m("div", { shouldFor
17
16
  justify-content: ${r ? "center" : "start"};
18
17
  align-items: center;
19
18
  width: 100%;
20
- height: 100%;
19
+ min-height: 100%;
21
20
  box-sizing: border-box;
22
- padding-bottom: ${c ? l ? "114px" : "72px" : "19px"};
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: ${s};
27
+ color: ${c};
29
28
  }
30
29
  `
31
- })), $ = m("div")(() => ({
32
- ...h`
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
- })), v = {
42
+ })), M = {
44
43
  green: o.colors.green,
45
44
  blue: o.colors.darkBlue,
46
45
  red: o.colors.darkRed
47
- }, d = {
46
+ }, m = {
48
47
  green: o.colors.whiteGreen,
49
48
  blue: o.colors.sky,
50
49
  red: o.colors.lighterRed
51
- }, M = {
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: M,
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: c = !1,
89
- fade: s = !0,
90
- userProfileMenuItems: g,
87
+ hasPagination: s = !1,
88
+ fade: c = !0,
89
+ userProfileMenuItems: u,
91
90
  ...t
92
91
  }) => {
93
- const u = localStorage.getItem("theme") || "green", [a, i] = C(u), b = f(`(max-width: ${o.screenSizes.mobile})`), y = z[a], x = [
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
- ...g || []
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: v[a],
126
- hasPagination: c,
127
- hasFade: s,
128
- children: /* @__PURE__ */ n(w, { loading: l, size: b ? 114 : 201, children: [
129
- s && /* @__PURE__ */ n(k, { children: [
130
- /* @__PURE__ */ e(T, { color: d[a] }),
131
- /* @__PURE__ */ e(S, { color: d[a] })
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
  ] })
@@ -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<{
@@ -1,28 +1,30 @@
1
- import { n as t } from "../.chunks/emotion-styled.browser.esm.js";
2
- import { c as o } from "../.chunks/emotion-react.browser.esm.js";
3
- import i from "../theme.js";
4
- const s = t("div")(({ color: e = i.colors.whiteGreen }) => ({
5
- ...o`
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: absolute;
9
- bottom: 0;
10
- background-image: linear-gradient(to top, ${e}, ${e}00);
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
- d as TopFade
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.249",
4
+ "version": "0.0.253",
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",