jcicl 0.0.217 → 0.0.221
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.
- package/.chunks/AppContainer.js +1132 -0
- package/AppContainer/AppContainer.js +13 -1129
- package/AppContainer/Default/Default.d.ts +20 -0
- package/AppContainer/Default/Default.js +127 -0
- package/AppContainer/index.d.ts +1 -1
- package/AppContainer/index.js +2 -2
- package/FormComponents/FormComponents.d.ts +36 -0
- package/FormComponents/FormComponents.js +89 -0
- package/FormComponents/index.d.ts +1 -0
- package/FormComponents/index.js +9 -0
- package/Overlays/Overlays.d.ts +8 -0
- package/Overlays/Overlays.js +24 -0
- package/Overlays/index.d.ts +1 -0
- package/Overlays/index.js +4 -0
- package/index.js +5 -5
- package/package.json +1 -1
|
@@ -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,127 @@
|
|
|
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
|
+
...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: ${e ? "114px" : "72px"};
|
|
21
|
+
> * div {
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.MuiCircularProgress-svg {
|
|
26
|
+
color: ${l};
|
|
27
|
+
}
|
|
28
|
+
`
|
|
29
|
+
})), S = d("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
|
+
})), T = {
|
|
41
|
+
green: o.colors.green,
|
|
42
|
+
blue: o.colors.darkBlue,
|
|
43
|
+
red: o.colors.darkRed
|
|
44
|
+
}, P = {
|
|
45
|
+
green: o.colors.whiteGreen,
|
|
46
|
+
blue: o.colors.sky,
|
|
47
|
+
red: o.colors.lighterRed
|
|
48
|
+
}, R = {
|
|
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
|
+
}, $ = {
|
|
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
|
+
}, M = {
|
|
79
|
+
blue: R,
|
|
80
|
+
red: $,
|
|
81
|
+
green: void 0
|
|
82
|
+
}, F = ({
|
|
83
|
+
children: r,
|
|
84
|
+
loading: e = !1,
|
|
85
|
+
hasPagination: l = !1,
|
|
86
|
+
userProfileMenuItems: m,
|
|
87
|
+
...s
|
|
88
|
+
}) => {
|
|
89
|
+
const h = localStorage.getItem("theme") || "green", [t, i] = y(h), a = x(`(max-width: ${o.screenSizes.mobile})`), g = M[t], u = [
|
|
90
|
+
{
|
|
91
|
+
label: "Green Theme",
|
|
92
|
+
onClick: () => {
|
|
93
|
+
localStorage.setItem("theme", "green"), i("green");
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: "Blue Theme",
|
|
98
|
+
onClick: () => {
|
|
99
|
+
localStorage.setItem("theme", "blue"), i("blue");
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: "Red Theme",
|
|
104
|
+
onClick: () => {
|
|
105
|
+
localStorage.setItem("theme", "red"), i("red");
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
...m || []
|
|
109
|
+
];
|
|
110
|
+
return /* @__PURE__ */ c(
|
|
111
|
+
k,
|
|
112
|
+
{
|
|
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 })
|
|
119
|
+
] }) })
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
export {
|
|
124
|
+
S as MainContentContainer,
|
|
125
|
+
p as PageWrapper,
|
|
126
|
+
F as default
|
|
127
|
+
};
|
package/AppContainer/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './AppContainer';
|
|
1
|
+
export { default, type AppContainerProps } from './AppContainer';
|
package/AppContainer/index.js
CHANGED
|
@@ -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
|
+
};
|
|
@@ -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';
|
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
|
|
10
|
-
import { default as
|
|
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 {
|
|
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
|
-
|
|
43
|
-
|
|
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.
|
|
4
|
+
"version": "0.0.221",
|
|
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",
|