jcicl 0.0.247 → 0.0.249

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.
@@ -680,7 +680,7 @@ const xe = se(/* @__PURE__ */ a("path", {
680
680
  height: calc(100vh - ${i.constants.appHeaderHeight}px);
681
681
  background-color: ${o};
682
682
  box-shadow: 0 3px 6px 3px ${e};
683
- padding: 1rem;
683
+ padding: 13px;
684
684
  overflow: visible;
685
685
  }
686
686
 
@@ -727,7 +727,7 @@ const xe = se(/* @__PURE__ */ a("path", {
727
727
  width: "100%",
728
728
  height: "calc(100% + 2px)",
729
729
  boxSizing: "border-box",
730
- padding: "1rem",
730
+ padding: "0 9px",
731
731
  h1: {
732
732
  margin: 0
733
733
  },
@@ -1,15 +1,15 @@
1
1
  import { jsx as t, jsxs as h } from "react/jsx-runtime";
2
2
  import * as M from "react";
3
- import Y, { useState as z, useLayoutEffect as Z } from "react";
3
+ import Z, { useState as z, useLayoutEffect as T } from "react";
4
4
  import { n as f } from "../.chunks/emotion-styled.browser.esm.js";
5
5
  import { c as b } from "../.chunks/emotion-react.browser.esm.js";
6
6
  import { Search as E } from "../Search/Search.js";
7
7
  import { Button as H } from "../Button/Button.js";
8
8
  import I from "../Icon/Icon.js";
9
- import T from "../WithLabel/WithLabel.js";
10
- import { c as V } from "../.chunks/createSvgIcon.js";
11
- import ee from "../theme.js";
12
- const te = Y[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], ne = (e) => {
9
+ import ee from "../WithLabel/WithLabel.js";
10
+ import { c as F } from "../.chunks/createSvgIcon.js";
11
+ import L from "../theme.js";
12
+ const te = Z[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], ne = (e) => {
13
13
  const n = M.useRef(e);
14
14
  return M.useEffect(() => {
15
15
  n.current = e;
@@ -67,12 +67,12 @@ function re(e) {
67
67
  }
68
68
  };
69
69
  }
70
- let O;
71
- const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
70
+ let S;
71
+ const ce = (e) => S || (S = re(e)), se = F(/* @__PURE__ */ t("path", {
72
72
  d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
73
- }), "Menu"), L = V(/* @__PURE__ */ t("path", {
73
+ }), "Menu"), R = F(/* @__PURE__ */ t("path", {
74
74
  d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
75
- }), "PersonOutlineOutlined"), R = f("div")(
75
+ }), "PersonOutlineOutlined"), _ = f("div")(
76
76
  ({ mobile: e, shadowSecondary: n }) => ({
77
77
  ...b`
78
78
  z-index: 1313;
@@ -86,9 +86,9 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
86
86
  box-shadow: ${e && n};
87
87
  `
88
88
  })
89
- ), _ = f("img")(({ width: e }) => ({
89
+ ), P = f("img")(({ width: e }) => ({
90
90
  width: `${e}px`
91
- })), P = f("div")(({ height: e }) => ({
91
+ })), j = f("div")(({ height: e }) => ({
92
92
  ...b`
93
93
  display: flex;
94
94
  gap: 1rem;
@@ -106,14 +106,14 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
106
106
  white-space: nowrap;
107
107
  }
108
108
  `
109
- })), j = f("div")(({ visible: e }) => ({
109
+ })), A = f("div")(({ visible: e }) => ({
110
110
  ...b`
111
111
  z-index: ${e ? 1 : 0};
112
112
  opacity: ${e ? 1 : 0};
113
113
  pointer-events: ${e ? "auto" : "none"};
114
114
  position: ${e ? "relative" : "absolute"};
115
115
  `
116
- })), A = f("div")(() => ({
116
+ })), V = f("div")(() => ({
117
117
  ...b`
118
118
  display: flex;
119
119
  width: 1360px;
@@ -128,7 +128,13 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
128
128
  font-size: 32px;
129
129
  line-height: 1;
130
130
  margin: 0;
131
- margin-left: calc(${ee.constants.navDefaultWidth}px * 2);
131
+ margin-left: calc(${L.constants.navDefaultWidth}px * 2);
132
+ }
133
+
134
+ @media screen and (max-width: ${L.screenSizes.tablet}) {
135
+ h1 {
136
+ margin: 0;
137
+ }
132
138
  }
133
139
  `
134
140
  })), xe = ({
@@ -144,61 +150,61 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
144
150
  searchFilters: s,
145
151
  onHamburgerMenuClick: m,
146
152
  onUserMenuClick: v,
147
- onLogin: F,
148
- onSearch: U = () => {
153
+ onLogin: U,
154
+ onSearch: B = () => {
149
155
  },
150
- searchPlaceholder: B = "Search",
151
- onInputChange: q,
156
+ searchPlaceholder: q = "Search",
157
+ onInputChange: D,
152
158
  headerType: g = "search",
153
- appTitle: S
159
+ appTitle: O
154
160
  }) => {
155
- const [x, $] = z(0), [u, D] = z(null), [w, G] = z(null), { logoSrc: W, logoWidth: k, logoHeight: C } = l, { shadowSecondary: J, shadowTertiary: K, iconPrimary: N, borderPrimary: Q } = d, y = {
156
- shadowTertiary: K,
157
- borderColor: Q,
158
- borderFocusColor: N,
161
+ const [x, C] = z(0), [u, G] = z(null), [w, J] = z(null), { logoSrc: W, logoWidth: k, logoHeight: $ } = l, { shadowSecondary: K, shadowTertiary: N, iconPrimary: Q, borderPrimary: X } = d, y = {
162
+ shadowTertiary: N,
163
+ borderColor: X,
164
+ borderFocusColor: Q,
159
165
  filters: s,
160
- onSearch: U,
161
- placeholder: B,
162
- onChange: q
166
+ onSearch: B,
167
+ placeholder: q,
168
+ onChange: D
163
169
  };
164
- Z(() => {
165
- u && u.clientWidth > x && $(u.clientWidth), w && w.clientWidth > x && $(w.clientWidth);
170
+ T(() => {
171
+ u && u.clientWidth > x && C(u.clientWidth), w && w.clientWidth > x && C(w.clientWidth);
166
172
  }, [u, w]);
167
- const X = (p) => {
168
- p != null && p.clientWidth && p.clientWidth > x && $(p.clientWidth);
173
+ const Y = (p) => {
174
+ p != null && p.clientWidth && p.clientWidth > x && C(p.clientWidth);
169
175
  };
170
- return oe(u, () => X(u)), e ? /* @__PURE__ */ h(R, { mobile: !0, shadowSecondary: J, children: [
171
- /* @__PURE__ */ t(P, { height: C, children: /* @__PURE__ */ t(_, { src: W, height: `${C}px`, width: k }) }),
172
- /* @__PURE__ */ h(A, { children: [
176
+ return oe(u, () => Y(u)), e ? /* @__PURE__ */ h(_, { mobile: !0, shadowSecondary: K, children: [
177
+ /* @__PURE__ */ t(j, { height: $, children: /* @__PURE__ */ t(P, { src: W, height: `${$}px`, width: k }) }),
178
+ /* @__PURE__ */ h(V, { children: [
173
179
  g === "search" && /* @__PURE__ */ t(E, { ...y }),
174
- g === "title" && /* @__PURE__ */ t("h1", { children: S })
180
+ g === "title" && /* @__PURE__ */ t("h1", { children: O })
175
181
  ] }),
176
182
  /* @__PURE__ */ t(
177
183
  I,
178
184
  {
179
- icon: /* @__PURE__ */ t(L, {}),
185
+ icon: /* @__PURE__ */ t(R, {}),
180
186
  ...a,
181
187
  onClick: o ? v : void 0
182
188
  }
183
189
  )
184
- ] }) : /* @__PURE__ */ h(R, { children: [
185
- /* @__PURE__ */ h(P, { height: C, children: [
186
- /* @__PURE__ */ t(_, { src: W, height: `${C}px`, width: k }),
190
+ ] }) : /* @__PURE__ */ h(_, { children: [
191
+ /* @__PURE__ */ h(j, { height: $, children: [
192
+ /* @__PURE__ */ t(P, { src: W, height: `${$}px`, width: k }),
187
193
  i && /* @__PURE__ */ t(H, { variant: "icon", onClick: m, color: c, children: /* @__PURE__ */ t(se, {}) })
188
194
  ] }),
189
- /* @__PURE__ */ h(A, { children: [
195
+ /* @__PURE__ */ h(V, { children: [
190
196
  g === "search" && /* @__PURE__ */ t(E, { ...y }),
191
- g === "title" && /* @__PURE__ */ t("h1", { children: S })
197
+ g === "title" && /* @__PURE__ */ t("h1", { children: O })
192
198
  ] }),
193
199
  /* @__PURE__ */ h(le, { width: x, loggedIn: !!n, children: [
194
- /* @__PURE__ */ t(j, { visible: !!n, ref: D, children: /* @__PURE__ */ t(
195
- T,
200
+ /* @__PURE__ */ t(A, { visible: !!n, ref: G, children: /* @__PURE__ */ t(
201
+ ee,
196
202
  {
197
203
  id: "accountMenuContainer",
198
204
  component: /* @__PURE__ */ t(
199
205
  I,
200
206
  {
201
- icon: /* @__PURE__ */ t(L, {}),
207
+ icon: /* @__PURE__ */ t(R, {}),
202
208
  ...a,
203
209
  onClick: o ? v : void 0
204
210
  }
@@ -206,7 +212,7 @@ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
206
212
  label: `Hi, ${r}!`
207
213
  }
208
214
  ) }),
209
- /* @__PURE__ */ t(j, { visible: !n, ref: G, children: /* @__PURE__ */ t(H, { id: "loginButtonContainer", onClick: F, children: "Log In" }) })
215
+ /* @__PURE__ */ t(A, { visible: !n, ref: J, children: /* @__PURE__ */ t(H, { id: "loginButtonContainer", onClick: U, children: "Log In" }) })
210
216
  ] })
211
217
  ] });
212
218
  };
@@ -1,13 +1,14 @@
1
- import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
- import { useState as x } from "react";
3
- import { n } from "../.chunks/emotion-styled.browser.esm.js";
4
- import { c as m } from "../.chunks/emotion-react.browser.esm.js";
1
+ import { jsx as e, jsxs as n, Fragment as k } from "react/jsx-runtime";
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";
5
5
  import o from "../theme.js";
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`
6
+ import { u as f, A as p } from "../.chunks/AppContainer.js";
7
+ import w from "../WithLoading/WithLoading.js";
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;
11
12
  color: ${o.colors.midnight};
12
13
  height: ${r ? "100%" : "auto"};
13
14
  padding: 19px;
@@ -18,7 +19,7 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
18
19
  width: 100%;
19
20
  height: 100%;
20
21
  box-sizing: border-box;
21
- padding-bottom: ${l ? e ? "114px" : "72px" : "19px"};
22
+ padding-bottom: ${c ? l ? "114px" : "72px" : "19px"};
22
23
  > * div {
23
24
  box-sizing: border-box;
24
25
  }
@@ -27,8 +28,8 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
27
28
  color: ${s};
28
29
  }
29
30
  `
30
- })), T = n("div")(() => ({
31
- ...m`
31
+ })), $ = m("div")(() => ({
32
+ ...h`
32
33
  border-radius: 8px;
33
34
  padding: 0;
34
35
  display: flex;
@@ -36,18 +37,18 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
36
37
  gap: 27px;
37
38
  max-width: 1300px;
38
39
  width: 100%;
39
- height: 100%;
40
+ min-height: 100%;
40
41
  box-sizing: border-box;
41
42
  `
42
- })), P = {
43
+ })), v = {
43
44
  green: o.colors.green,
44
45
  blue: o.colors.darkBlue,
45
46
  red: o.colors.darkRed
46
- }, R = {
47
+ }, d = {
47
48
  green: o.colors.whiteGreen,
48
49
  blue: o.colors.sky,
49
50
  red: o.colors.lighterRed
50
- }, $ = {
51
+ }, M = {
51
52
  backgroundPrimary: o.colors.sky,
52
53
  backgroundSecondary: o.colors.lovemist,
53
54
  backgroundTertiary: o.colors.cornflower,
@@ -62,7 +63,7 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
62
63
  iconColor: o.colors.cobalt,
63
64
  backgroundColor: o.colors.sky
64
65
  }
65
- }, M = {
66
+ }, I = {
66
67
  backgroundPrimary: o.colors.lighterRed,
67
68
  backgroundSecondary: o.colors.lightRed,
68
69
  backgroundTertiary: o.colors.cherryBlossom,
@@ -77,19 +78,19 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
77
78
  iconColor: o.colors.maroon,
78
79
  backgroundColor: o.colors.lighterRed
79
80
  }
80
- }, v = {
81
- blue: $,
82
- red: M,
81
+ }, z = {
82
+ blue: M,
83
+ red: I,
83
84
  green: void 0
84
- }, G = ({
85
+ }, L = ({
85
86
  children: r,
86
- loading: e = !1,
87
- hasPagination: l = !1,
87
+ loading: l = !1,
88
+ hasPagination: c = !1,
88
89
  fade: s = !0,
89
- userProfileMenuItems: h,
90
- ...c
90
+ userProfileMenuItems: g,
91
+ ...t
91
92
  }) => {
92
- const g = localStorage.getItem("theme") || "green", [a, i] = x(g), d = k(`(max-width: ${o.screenSizes.mobile})`), u = v[a], b = [
93
+ const u = localStorage.getItem("theme") || "green", [a, i] = C(u), b = f(`(max-width: ${o.screenSizes.mobile})`), y = z[a], x = [
93
94
  {
94
95
  label: "Green Theme",
95
96
  onClick: () => {
@@ -108,25 +109,28 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
108
109
  localStorage.setItem("theme", "red"), i("red");
109
110
  }
110
111
  },
111
- ...h || []
112
+ ...g || []
112
113
  ];
113
- return /* @__PURE__ */ t(
114
- C,
114
+ return /* @__PURE__ */ e(
115
+ p,
115
116
  {
116
- ...c,
117
- userProfileMenuItems: b,
118
- themeColors: u ?? (c == null ? void 0 : c.themeColors),
119
- children: /* @__PURE__ */ t(
120
- S,
117
+ ...t,
118
+ userProfileMenuItems: x,
119
+ themeColors: y ?? (t == null ? void 0 : t.themeColors),
120
+ children: /* @__PURE__ */ e(
121
+ R,
121
122
  {
122
123
  className: "jcPageWrapper",
123
- loading: e,
124
- loadingColor: P[a],
125
- hasPagination: l,
124
+ loading: l,
125
+ loadingColor: v[a],
126
+ hasPagination: c,
126
127
  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 })
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] })
132
+ ] }),
133
+ /* @__PURE__ */ e($, { children: r })
130
134
  ] })
131
135
  }
132
136
  )
@@ -134,7 +138,7 @@ const w = ["loading", "hasPagination", "loadingColor"], S = n("div", { shouldFor
134
138
  );
135
139
  };
136
140
  export {
137
- T as MainContentContainer,
138
- S as PageWrapper,
139
- G as default
141
+ $ as MainContentContainer,
142
+ R as PageWrapper,
143
+ L as default
140
144
  };
@@ -1,8 +1,12 @@
1
- export declare const Fade: import('@emotion/styled').StyledComponent<{
1
+ export declare const BottomFade: import('@emotion/styled').StyledComponent<{
2
+ theme?: import('@emotion/react').Theme;
3
+ as?: React.ElementType;
4
+ } & {
5
+ color?: string;
6
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const TopFade: import('@emotion/styled').StyledComponent<{
2
8
  theme?: import('@emotion/react').Theme;
3
9
  as?: React.ElementType;
4
10
  } & {
5
- isMobile: boolean;
6
- hasPagination: boolean;
7
11
  color?: string;
8
12
  }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,24 +1,38 @@
1
- import { n as r } from "../.chunks/emotion-styled.browser.esm.js";
2
- import { c as n } from "../.chunks/emotion-react.browser.esm.js";
3
- import p from "../theme.js";
4
- const m = r("div")(
5
- ({ isMobile: e, hasPagination: t, color: o = p.colors.whiteGreen }) => ({
6
- ...n`
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, ${o}, ${o}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
- );
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`
6
+ width: calc(100% - 72px);
7
+ 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);
26
+ pointer-events: none;
27
+ height: 29px;
28
+ box-sizing: border-box;
29
+ display: flex;
30
+ justify-content: center;
31
+ align-items: center;
32
+ z-index: 92;
33
+ `
34
+ }));
22
35
  export {
23
- m as Fade
36
+ s as BottomFade,
37
+ d as TopFade
24
38
  };
@@ -1 +1 @@
1
- export { Fade } from './Overlays';
1
+ export { TopFade, BottomFade } from './Overlays';
package/Overlays/index.js CHANGED
@@ -1,4 +1,5 @@
1
- import { Fade as r } from "./Overlays.js";
1
+ import { BottomFade as t, TopFade as a } from "./Overlays.js";
2
2
  export {
3
- r as Fade
3
+ t as BottomFade,
4
+ a as TopFade
4
5
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.247",
4
+ "version": "0.0.249",
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",