jcicl 0.0.219 → 0.0.223

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,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { AppContainerProps } from '../../../../../../../../../../src/components/templates/AppContainer';
2
+ import { AppContainerProps } from '../../../../../../../../../src/components/templates/AppContainer';
3
3
  export declare const PageWrapper: import('@emotion/styled').StyledComponent<{
4
4
  theme?: import('@emotion/react').Theme;
5
5
  as?: React.ElementType;
@@ -1,12 +1,12 @@
1
- import { jsx as l, jsxs as h } from "react/jsx-runtime";
2
- import { useState as u } from "react";
3
- import { n as t } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import { c as n } from "../../.chunks/emotion-react.browser.esm.js";
5
- import o from "../../theme.js";
6
- import { u as b, A as y } from "../../.chunks/AppContainer.js";
7
- import x from "../../WithLoading/WithLoading.js";
8
- import { Fade as f } from "../../Overlays/Overlays.js";
9
- const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldForwardProp: (r) => !k.includes(r) })(({ loading: r, hasPagination: s, loadingColor: e = o.colors.green }) => ({
1
+ import { jsx as c, jsxs as b } from "react/jsx-runtime";
2
+ import { useState as y } 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";
5
+ import o from "../theme.js";
6
+ import { u as x, A as k } from "../.chunks/AppContainer.js";
7
+ import f from "../WithLoading/WithLoading.js";
8
+ import { Fade as C } from "../Overlays/Overlays.js";
9
+ const w = ["loading", "hasPagination", "loadingColor"], p = d("div", { shouldForwardProp: (r) => !w.includes(r) })(({ loading: r, hasPagination: e, loadingColor: l = o.colors.green }) => ({
10
10
  ...n`
11
11
  color: ${o.colors.midnight};
12
12
  height: ${r ? "100%" : "auto"};
@@ -17,16 +17,16 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
17
17
  align-items: center;
18
18
  width: 100%;
19
19
  box-sizing: border-box;
20
- padding-bottom: ${s ? "114px" : "72px"};
20
+ padding-bottom: ${e ? "114px" : "72px"};
21
21
  > * div {
22
22
  box-sizing: border-box;
23
23
  }
24
24
 
25
25
  .MuiCircularProgress-svg {
26
- color: ${e};
26
+ color: ${l};
27
27
  }
28
28
  `
29
- })), w = t("div")(() => ({
29
+ })), S = d("div")(() => ({
30
30
  ...n`
31
31
  border-radius: 8px;
32
32
  padding: 0;
@@ -37,15 +37,15 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
37
37
  width: 100%;
38
38
  box-sizing: border-box;
39
39
  `
40
- })), p = {
40
+ })), T = {
41
41
  green: o.colors.green,
42
42
  blue: o.colors.darkBlue,
43
43
  red: o.colors.darkRed
44
- }, S = {
44
+ }, P = {
45
45
  green: o.colors.whiteGreen,
46
46
  blue: o.colors.sky,
47
47
  red: o.colors.lighterRed
48
- }, T = {
48
+ }, R = {
49
49
  backgroundPrimary: o.colors.sky,
50
50
  backgroundSecondary: o.colors.lovemist,
51
51
  backgroundTertiary: o.colors.cornflower,
@@ -60,7 +60,7 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
60
60
  iconColor: o.colors.cobalt,
61
61
  backgroundColor: o.colors.sky
62
62
  }
63
- }, P = {
63
+ }, $ = {
64
64
  backgroundPrimary: o.colors.lighterRed,
65
65
  backgroundSecondary: o.colors.lightRed,
66
66
  backgroundTertiary: o.colors.cherryBlossom,
@@ -75,16 +75,18 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
75
75
  iconColor: o.colors.maroon,
76
76
  backgroundColor: o.colors.lighterRed
77
77
  }
78
- }, R = {
79
- blue: T,
80
- red: P,
78
+ }, M = {
79
+ blue: R,
80
+ red: $,
81
81
  green: void 0
82
- }, W = ({
82
+ }, F = ({
83
83
  children: r,
84
- userProfileMenuItems: s,
85
- ...e
84
+ loading: e = !1,
85
+ hasPagination: l = !1,
86
+ userProfileMenuItems: m,
87
+ ...s
86
88
  }) => {
87
- const d = localStorage.getItem("theme") || "green", [a, i] = u(d), c = b(`(max-width: ${o.screenSizes.mobile})`), m = R[a], g = [
89
+ const h = localStorage.getItem("theme") || "green", [t, i] = y(h), a = x(`(max-width: ${o.screenSizes.mobile})`), g = M[t], u = [
88
90
  {
89
91
  label: "Green Theme",
90
92
  onClick: () => {
@@ -103,23 +105,23 @@ const k = ["loading", "hasPagination", "loadingColor"], C = t("div", { shouldFor
103
105
  localStorage.setItem("theme", "red"), i("red");
104
106
  }
105
107
  },
106
- ...s || []
108
+ ...m || []
107
109
  ];
108
- return /* @__PURE__ */ l(
109
- y,
110
+ return /* @__PURE__ */ c(
111
+ k,
110
112
  {
111
- ...e,
112
- userProfileMenuItems: g,
113
- themeColors: m ?? (e == null ? void 0 : e.themeColors),
114
- children: /* @__PURE__ */ l(C, { loading: !1, loadingColor: p[a], hasPagination: !1, children: /* @__PURE__ */ h(x, { loading: !1, size: c ? 114 : 201, children: [
115
- /* @__PURE__ */ l(f, { isMobile: c, hasPagination: !1, color: S[a] }),
116
- /* @__PURE__ */ l(w, { children: r })
113
+ ...s,
114
+ userProfileMenuItems: u,
115
+ themeColors: g ?? (s == null ? void 0 : s.themeColors),
116
+ children: /* @__PURE__ */ c(p, { loading: e, loadingColor: T[t], hasPagination: l, children: /* @__PURE__ */ b(f, { loading: e, size: a ? 114 : 201, children: [
117
+ /* @__PURE__ */ c(C, { isMobile: a, hasPagination: l, color: P[t] }),
118
+ /* @__PURE__ */ c(S, { children: r })
117
119
  ] }) })
118
120
  }
119
121
  );
120
122
  };
121
123
  export {
122
- w as MainContentContainer,
123
- C as PageWrapper,
124
- W as default
124
+ S as MainContentContainer,
125
+ p as PageWrapper,
126
+ F as default
125
127
  };
@@ -0,0 +1 @@
1
+ export { default as DefaultTemplate, type DefaultTemplateProps } from './DefaultTemplate';
@@ -0,0 +1,4 @@
1
+ import { default as t } from "./DefaultTemplate.js";
2
+ export {
3
+ t as DefaultTemplate
4
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.219",
4
+ "version": "0.0.223",
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",