jcicl 0.0.259 → 0.0.261

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 d, Fragment as k } from "react/jsx-runtime";
2
- import { useState as C } from "react";
3
- import { n as h } from "../.chunks/emotion-styled.browser.esm.js";
4
- import { c as g } from "../.chunks/emotion-react.browser.esm.js";
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 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 = h("div", { shouldForwardProp: (r) => !P.includes(r) })(({ loading: r, hasPagination: l, hasFade: s, loadingColor: c = o.colors.green }) => ({
10
- ...g`
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: a }) => ({
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: ${a ? "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: ${c};
28
+ color: ${t};
29
29
  }
30
30
  `
31
- })), $ = h("div")(() => ({
32
- ...g`
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
- })), M = {
43
+ })), v = {
44
44
  green: o.colors.green,
45
45
  blue: o.colors.darkBlue,
46
46
  red: o.colors.darkRed
47
- }, m = {
47
+ }, g = {
48
48
  green: o.colors.whiteGreen,
49
49
  blue: o.colors.sky,
50
50
  red: o.colors.lighterRed
51
- }, v = {
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
- }, z = {
82
- blue: v,
81
+ }, B = {
82
+ blue: z,
83
83
  red: I,
84
84
  green: void 0
85
- }, L = ({
85
+ }, N = ({
86
86
  children: r,
87
87
  loading: l = !1,
88
88
  hasPagination: s = !1,
89
- fade: c = !0,
90
- userProfileMenuItems: u,
91
- ...t
89
+ fade: t = !0,
90
+ userProfileMenuItems: a,
91
+ ...c
92
92
  }) => {
93
- const b = localStorage.getItem("theme") || "green", [a, i] = C(b), n = f(`(max-width: ${o.screenSizes.mobile})`), y = z[a], x = [
93
+ const y = localStorage.getItem("theme") || "green", [i, n] = p(y), d = h(`(max-width: ${o.screenSizes.mobile})`), x = h(`(max-width: ${o.screenSizes.mobile})`), k = B[i], C = [
94
94
  {
95
95
  label: "Green Theme",
96
96
  onClick: () => {
97
- localStorage.setItem("theme", "green"), i("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"), i("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"), i("red");
109
+ localStorage.setItem("theme", "red"), n("red");
110
110
  }
111
111
  },
112
- ...u || []
112
+ ...a || []
113
113
  ];
114
114
  return /* @__PURE__ */ e(
115
- p,
115
+ w,
116
116
  {
117
- ...t,
118
- userProfileMenuItems: x,
119
- themeColors: y ?? (t == null ? void 0 : t.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: M[a],
125
+ loadingColor: v[i],
126
126
  hasPagination: s,
127
- hasFade: c,
128
- children: /* @__PURE__ */ d(w, { loading: l, size: n ? 114 : 201, children: [
129
- c && /* @__PURE__ */ d(k, { children: [
130
- /* @__PURE__ */ e(T, { color: m[a] }),
131
- /* @__PURE__ */ e(S, { hasPagination: s, isMobile: n, color: m[a] })
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[i] }),
132
+ /* @__PURE__ */ e(P, { hasPagination: s, isMobile: d, color: g[i] })
132
133
  ] }),
133
- /* @__PURE__ */ e($, { children: r })
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
- $ as MainContentContainer,
142
+ M as MainContentContainer,
142
143
  R as PageWrapper,
143
- L as default
144
+ N as default
144
145
  };
@@ -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
- (a) => H(a) && a.type !== null && a !== void 0
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.259",
4
+ "version": "0.0.261",
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",