jcicl 0.0.215 → 0.0.219

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.
@@ -0,0 +1,20 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { AppContainerProps } from '../../../../../../../../../../src/components/templates/AppContainer';
3
+ export declare const PageWrapper: import('@emotion/styled').StyledComponent<{
4
+ theme?: import('@emotion/react').Theme;
5
+ as?: React.ElementType;
6
+ } & {
7
+ loading: boolean;
8
+ hasPagination: boolean;
9
+ loadingColor?: string;
10
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ export declare const MainContentContainer: import('@emotion/styled').StyledComponent<{
12
+ theme?: import('@emotion/react').Theme;
13
+ as?: React.ElementType;
14
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
15
+ export interface DefaultTemplateProps extends AppContainerProps {
16
+ loading?: boolean;
17
+ hasPagination?: boolean;
18
+ }
19
+ declare const DefaultTemplate: React.FC<PropsWithChildren<DefaultTemplateProps>>;
20
+ export default DefaultTemplate;
@@ -0,0 +1,125 @@
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 }) => ({
10
+ ...n`
11
+ color: ${o.colors.midnight};
12
+ height: ${r ? "100%" : "auto"};
13
+ padding: 19px;
14
+ display: flex;
15
+ flex-direction: column;
16
+ justify-content: ${r ? "center" : "start"};
17
+ align-items: center;
18
+ width: 100%;
19
+ box-sizing: border-box;
20
+ padding-bottom: ${s ? "114px" : "72px"};
21
+ > * div {
22
+ box-sizing: border-box;
23
+ }
24
+
25
+ .MuiCircularProgress-svg {
26
+ color: ${e};
27
+ }
28
+ `
29
+ })), w = t("div")(() => ({
30
+ ...n`
31
+ border-radius: 8px;
32
+ padding: 0;
33
+ display: flex;
34
+ flex-direction: column;
35
+ gap: 27px;
36
+ max-width: 1300px;
37
+ width: 100%;
38
+ box-sizing: border-box;
39
+ `
40
+ })), p = {
41
+ green: o.colors.green,
42
+ blue: o.colors.darkBlue,
43
+ red: o.colors.darkRed
44
+ }, S = {
45
+ green: o.colors.whiteGreen,
46
+ blue: o.colors.sky,
47
+ red: o.colors.lighterRed
48
+ }, T = {
49
+ backgroundPrimary: o.colors.sky,
50
+ backgroundSecondary: o.colors.lovemist,
51
+ backgroundTertiary: o.colors.cornflower,
52
+ backgroundQuaternary: o.colors.sky,
53
+ borderPrimary: o.colors.darkBlue,
54
+ shadowPrimary: o.colors.indigo,
55
+ shadowSecondary: o.boxShadows.cobalt,
56
+ shadowTertiary: o.boxShadows.indigoThick,
57
+ iconPrimary: o.colors.cobalt,
58
+ scrollColor: `${o.colors.cobalt}99`,
59
+ iconColors: {
60
+ iconColor: o.colors.cobalt,
61
+ backgroundColor: o.colors.sky
62
+ }
63
+ }, P = {
64
+ backgroundPrimary: o.colors.lighterRed,
65
+ backgroundSecondary: o.colors.lightRed,
66
+ backgroundTertiary: o.colors.cherryBlossom,
67
+ backgroundQuaternary: o.colors.lighterRed,
68
+ borderPrimary: o.colors.darkRed,
69
+ shadowPrimary: o.colors.maroon,
70
+ shadowSecondary: o.boxShadows.burgundy,
71
+ shadowTertiary: o.boxShadows.maroonThick,
72
+ iconPrimary: o.colors.maroon,
73
+ scrollColor: `${o.colors.maroon}99`,
74
+ iconColors: {
75
+ iconColor: o.colors.maroon,
76
+ backgroundColor: o.colors.lighterRed
77
+ }
78
+ }, R = {
79
+ blue: T,
80
+ red: P,
81
+ green: void 0
82
+ }, W = ({
83
+ children: r,
84
+ userProfileMenuItems: s,
85
+ ...e
86
+ }) => {
87
+ const d = localStorage.getItem("theme") || "green", [a, i] = u(d), c = b(`(max-width: ${o.screenSizes.mobile})`), m = R[a], g = [
88
+ {
89
+ label: "Green Theme",
90
+ onClick: () => {
91
+ localStorage.setItem("theme", "green"), i("green");
92
+ }
93
+ },
94
+ {
95
+ label: "Blue Theme",
96
+ onClick: () => {
97
+ localStorage.setItem("theme", "blue"), i("blue");
98
+ }
99
+ },
100
+ {
101
+ label: "Red Theme",
102
+ onClick: () => {
103
+ localStorage.setItem("theme", "red"), i("red");
104
+ }
105
+ },
106
+ ...s || []
107
+ ];
108
+ return /* @__PURE__ */ l(
109
+ y,
110
+ {
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 })
117
+ ] }) })
118
+ }
119
+ );
120
+ };
121
+ export {
122
+ w as MainContentContainer,
123
+ C as PageWrapper,
124
+ W as default
125
+ };
@@ -1 +1 @@
1
- export { default } from './AppContainer';
1
+ export { default, type AppContainerProps } from './AppContainer';
@@ -1,4 +1,4 @@
1
- import { default as o } from "./AppContainer.js";
1
+ import { A as f } from "../.chunks/AppContainer.js";
2
2
  export {
3
- o as default
3
+ f as default
4
4
  };
@@ -0,0 +1,36 @@
1
+ import { SerializedStyles } from '@emotion/react';
2
+ export declare const FormSection: import('@emotion/styled').StyledComponent<{
3
+ theme?: import('@emotion/react').Theme;
4
+ as?: React.ElementType;
5
+ } & {
6
+ boxShadow?: string;
7
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const FormFieldGrid: import('@emotion/styled').StyledComponent<{
9
+ theme?: import('@emotion/react').Theme;
10
+ as?: React.ElementType;
11
+ } & {
12
+ columns?: number;
13
+ columnsOverride?: string;
14
+ gap?: number;
15
+ customStyles?: SerializedStyles;
16
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
+ export declare const FormFieldCheckboxContainer: import('@emotion/styled').StyledComponent<{
18
+ theme?: import('@emotion/react').Theme;
19
+ as?: React.ElementType;
20
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
+ export declare const FormSectionTitle: import('@emotion/styled').StyledComponent<{
22
+ theme?: import('@emotion/react').Theme;
23
+ as?: React.ElementType;
24
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
25
+ export declare const FormSubtitle: import('@emotion/styled').StyledComponent<{
26
+ theme?: import('@emotion/react').Theme;
27
+ as?: React.ElementType;
28
+ } & {
29
+ underlined?: boolean;
30
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
31
+ export declare const FormSubsectionTitle: import('@emotion/styled').StyledComponent<{
32
+ theme?: import('@emotion/react').Theme;
33
+ as?: React.ElementType;
34
+ } & {
35
+ underlined?: boolean;
36
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
@@ -0,0 +1,89 @@
1
+ import { n as e } from "../.chunks/emotion-styled.browser.esm.js";
2
+ import { c as t } from "../.chunks/emotion-react.browser.esm.js";
3
+ import i from "../theme.js";
4
+ const x = e("div")(
5
+ ({ boxShadow: o = i.boxShadows.darkGreen }) => ({
6
+ ...t`
7
+ background-color: ${i.colors.white};
8
+ border-radius: 8px;
9
+ box-shadow: ${o};
10
+ padding: 0px 36px 19px 36px;
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 21px;
14
+ max-width: 1300px;
15
+ width: 100%;
16
+ box-sizing: border-box;
17
+ `
18
+ })
19
+ ), m = e("div")(({ columns: o = 3, columnsOverride: n, gap: r = 21, customStyles: a }) => ({
20
+ ...t`
21
+ display: grid;
22
+ grid-template-columns: repeat(${o}, 1fr);
23
+ ${n && t`
24
+ grid-template-columns: ${n};
25
+ `};
26
+ gap: ${r}px;
27
+ ${a};
28
+ `
29
+ })), s = e("div")(() => ({
30
+ ...t`
31
+ width: 100%;
32
+ display: flex;
33
+ align-items: flex-end;
34
+ flex-wrap: wrap;
35
+ gap: 13px;
36
+
37
+ span {
38
+ line-height: 1;
39
+ }
40
+
41
+ .jcLabeledInput,
42
+ .jcLabeledDropdown {
43
+ flex-grow: 1;
44
+ align-items: flex-end;
45
+ }
46
+ `
47
+ })), g = e("h2")(() => ({
48
+ ...t`
49
+ font-size: 27px;
50
+ font-weight: 600;
51
+ text-align: left;
52
+ margin-top: 9px;
53
+ margin-bottom: -15px;
54
+ `
55
+ })), c = e("h3")(({ underlined: o = !1 }) => ({
56
+ ...t`
57
+ font-size: 19px;
58
+ font-weight: 600;
59
+ text-align: left;
60
+ margin: 0;
61
+ margin-bottom: -15px;
62
+ width: 100%;
63
+ ${o && t`
64
+ text-decoration: underline;
65
+ `};
66
+ `
67
+ })), f = e("h3")(({ underlined: o = !1 }) => ({
68
+ ...t`
69
+ font-size: 19px;
70
+ font-weight: 600;
71
+ text-align: left;
72
+ margin: 0;
73
+ margin-top: 9px;
74
+ margin-bottom: -6px;
75
+ border-bottom: 1px solid ${i.colors.gray};
76
+ width: 100%;
77
+ ${o && t`
78
+ text-decoration: underline;
79
+ `};
80
+ `
81
+ }));
82
+ export {
83
+ s as FormFieldCheckboxContainer,
84
+ m as FormFieldGrid,
85
+ x as FormSection,
86
+ g as FormSectionTitle,
87
+ f as FormSubsectionTitle,
88
+ c as FormSubtitle
89
+ };
@@ -0,0 +1 @@
1
+ export { FormSection, FormFieldGrid, FormFieldCheckboxContainer, FormSectionTitle, FormSubtitle, FormSubsectionTitle, } from './FormComponents';
@@ -0,0 +1,9 @@
1
+ import { FormFieldCheckboxContainer as i, FormFieldGrid as r, FormSection as t, FormSectionTitle as F, FormSubsectionTitle as m, FormSubtitle as l } from "./FormComponents.js";
2
+ export {
3
+ i as FormFieldCheckboxContainer,
4
+ r as FormFieldGrid,
5
+ t as FormSection,
6
+ F as FormSectionTitle,
7
+ m as FormSubsectionTitle,
8
+ l as FormSubtitle
9
+ };
@@ -27,10 +27,10 @@ const w = d("div")(({ grid: t }) => ({
27
27
  label: t,
28
28
  grid: l = !0,
29
29
  noLabel: p = !1,
30
- onChange: r,
30
+ onChange: n,
31
31
  ...u
32
32
  }) => {
33
- const [i, n] = f("");
33
+ const [i, r] = f("");
34
34
  return /* @__PURE__ */ s(w, { grid: l, className: "jcLabeledCurrencyInput", children: [
35
35
  !p && /* @__PURE__ */ s("span", { children: [
36
36
  t,
@@ -41,7 +41,7 @@ const w = d("div")(({ grid: t }) => ({
41
41
  style: "decimal",
42
42
  maximumFractionDigits: 2
43
43
  }).format(Number(e) || 0);
44
- e && e.length > 1 && e[e.length - 1] === "." ? n(o + ".") : n(o), r && r(a);
44
+ e && e.length > 1 && e[e.length - 1] === "." ? r(o + ".") : r(e ? o : ""), n && n(a);
45
45
  }, value: `$${i}` })
46
46
  ] });
47
47
  };
@@ -0,0 +1,8 @@
1
+ export declare const Fade: import('@emotion/styled').StyledComponent<{
2
+ theme?: import('@emotion/react').Theme;
3
+ as?: React.ElementType;
4
+ } & {
5
+ isMobile: boolean;
6
+ hasPagination: boolean;
7
+ color?: string;
8
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,24 @@
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
+ );
22
+ export {
23
+ m as Fade
24
+ };
@@ -0,0 +1 @@
1
+ export { Fade } from './Overlays';
@@ -0,0 +1,4 @@
1
+ import { Fade as r } from "./Overlays.js";
2
+ export {
3
+ r as Fade
4
+ };
package/index.js CHANGED
@@ -6,8 +6,8 @@ import { Grid as l } from "./Grid/Grid.js";
6
6
  import { default as i } from "./Icon/Icon.js";
7
7
  import { Input as s } from "./Input/Input.js";
8
8
  import { LabeledValue as I } from "./LabeledValue/LabeledValue.js";
9
- import { default as c } from "./ListButton/ListButton.js";
10
- import { default as A } from "./Loading/Loading.js";
9
+ import { default as b } from "./ListButton/ListButton.js";
10
+ import { default as g } from "./Loading/Loading.js";
11
11
  import { default as h } from "./ScrollContainer/ScrollContainer.js";
12
12
  import { Accordion as B } from "./Accordion/Accordion.js";
13
13
  import { default as E } from "./ErrorBoundary/ErrorBoundary.js";
@@ -21,7 +21,7 @@ import { default as z } from "./WithLoading/WithLoading.js";
21
21
  import { default as K } from "./AppHeader/AppHeader.js";
22
22
  import { EditableInfoCard as O } from "./EditableInfoCard/EditableInfoCard.js";
23
23
  import { Nav as Q } from "./Nav/Nav.js";
24
- import { default as U } from "./AppContainer/AppContainer.js";
24
+ import { A as U } from "./.chunks/AppContainer.js";
25
25
  export {
26
26
  B as Accordion,
27
27
  U as AppContainer,
@@ -39,8 +39,8 @@ export {
39
39
  G as LabeledInput,
40
40
  I as LabeledValue,
41
41
  N as List,
42
- c as ListButton,
43
- A as Loading,
42
+ b as ListButton,
43
+ g as Loading,
44
44
  T as LogoLoop,
45
45
  Q as Nav,
46
46
  h as ScrollContainer,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.215",
4
+ "version": "0.0.219",
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",