jcicl 0.0.114 → 0.0.118
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/Input.js +2 -2
- package/Accordion/Accordion.js +1 -1
- package/AppContainer/AppContainer.d.ts +4 -2
- package/AppContainer/AppContainer.js +754 -675
- package/AppHeader/AppHeader.d.ts +1 -0
- package/AppHeader/AppHeader.js +84 -76
- package/AppHeader/index.d.ts +1 -1
- package/Button/Button.d.ts +1 -0
- package/Button/Button.js +94 -93
- package/EditableInfoCard/EditableInfoCard.js +1 -1
- package/ImageWIthDetails/ImageWithDetails.d.ts +13 -0
- package/ImageWIthDetails/ImageWithDetails.js +49 -0
- package/ImageWIthDetails/index.d.ts +1 -0
- package/ImageWIthDetails/index.js +4 -0
- package/InfoCard/InfoCard.js +4 -4
- package/Nav/Nav.d.ts +1 -1
- package/Nav/Nav.js +43 -45
- package/Nav/index.d.ts +1 -1
- package/package.json +1 -1
- package/theme.d.ts +6 -1
- package/theme.js +6 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { n as r } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as n } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import e from "../theme.js";
|
|
5
|
+
const f = r("div")(({ height: o }) => ({
|
|
6
|
+
...n`
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
border-radius: 32px;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
height: ${o};
|
|
12
|
+
box-shadow: ${e.boxShadows.gray63};
|
|
13
|
+
background-color: ${e.colors.white};
|
|
14
|
+
width: min-content;
|
|
15
|
+
`
|
|
16
|
+
})), a = r("div")(({ height: o, padding: t }) => ({
|
|
17
|
+
...n`
|
|
18
|
+
font-family: ${e.fonts.roboto};
|
|
19
|
+
display: flex;
|
|
20
|
+
padding: ${t};
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
height: ${o};
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
`
|
|
26
|
+
})), x = r("img")(({ heightOffset: o }) => ({
|
|
27
|
+
...n`
|
|
28
|
+
max-height: calc(100% - 2 * ${o});
|
|
29
|
+
object-fit: contain;
|
|
30
|
+
`
|
|
31
|
+
})), y = ({
|
|
32
|
+
title: o,
|
|
33
|
+
description: t,
|
|
34
|
+
imageUrl: d,
|
|
35
|
+
imageAlt: h,
|
|
36
|
+
detailsBarSize: s = "120px",
|
|
37
|
+
detailsBarPadding: l = "1rem",
|
|
38
|
+
containerHeight: m = "100%"
|
|
39
|
+
}) => {
|
|
40
|
+
const c = { height: s, padding: l };
|
|
41
|
+
return /* @__PURE__ */ g(f, { height: m, children: [
|
|
42
|
+
/* @__PURE__ */ i(a, { ...c, children: o }),
|
|
43
|
+
/* @__PURE__ */ i(x, { heightOffset: s, src: d, alt: h }),
|
|
44
|
+
/* @__PURE__ */ i(a, { ...c, children: t })
|
|
45
|
+
] });
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
y as default
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, type ImageWithDetailsProps } from './ImageWithDetails';
|
package/InfoCard/InfoCard.js
CHANGED
|
@@ -33,16 +33,16 @@ const x = d("div")(({ padding: r, shadow: o, styles: e }) => ({
|
|
|
33
33
|
title: o,
|
|
34
34
|
items: e,
|
|
35
35
|
padding: m = "1rem 2rem",
|
|
36
|
-
shadow:
|
|
37
|
-
spacing:
|
|
36
|
+
shadow: s = l.boxShadows.darkGreen,
|
|
37
|
+
spacing: c = "2rem",
|
|
38
38
|
columns: p = 3,
|
|
39
39
|
styles: f
|
|
40
|
-
}) => /* @__PURE__ */ t(x, { ...{ padding: m, shadow:
|
|
40
|
+
}) => /* @__PURE__ */ t(x, { ...{ padding: m, shadow: s, styles: f }, children: [
|
|
41
41
|
/* @__PURE__ */ t(g, { width: "100%", gap: "1rem", alignItems: "center", children: [
|
|
42
42
|
r && r,
|
|
43
43
|
/* @__PURE__ */ a("h3", { children: o })
|
|
44
44
|
] }),
|
|
45
|
-
/* @__PURE__ */ a(u, { ...{ spacing:
|
|
45
|
+
/* @__PURE__ */ a(u, { ...{ spacing: c, columns: p }, children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ a(h, { ...n }, n.label)) })
|
|
46
46
|
] });
|
|
47
47
|
export {
|
|
48
48
|
j as InfoCard,
|
package/Nav/Nav.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface NavProps {
|
|
|
21
21
|
activeRoute?: string;
|
|
22
22
|
navWidth?: string;
|
|
23
23
|
isTablet?: boolean;
|
|
24
|
-
themeColors: TemplateThemeProps
|
|
24
|
+
themeColors: Pick<TemplateThemeProps, 'highlightPrimary' | 'highlightTertiary' | 'iconPrimary'>;
|
|
25
25
|
}
|
|
26
26
|
export declare const Nav: React.FC<NavProps>;
|
|
27
27
|
export default Nav;
|
package/Nav/Nav.js
CHANGED
|
@@ -6,55 +6,53 @@ import S from "../ScrollContainer/ScrollContainer.js";
|
|
|
6
6
|
import { B as k } from "../.chunks/ButtonBase.js";
|
|
7
7
|
const w = c(k, {
|
|
8
8
|
shouldForwardProp: (o) => C(o)
|
|
9
|
-
})(
|
|
10
|
-
|
|
9
|
+
})(({ active: o, isTablet: t, highlight1: r, highlight3: i, iconColor: e }) => ({
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: t ? "row" : "column",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
justifyContent: t ? "flex-start" : "center",
|
|
14
|
+
width: "100%",
|
|
15
|
+
padding: t ? "16px" : "0 8px 8px 8px",
|
|
16
|
+
transition: "313ms all ease-in-out",
|
|
17
|
+
backgroundColor: o ? r : "transparent",
|
|
18
|
+
boxShadow: o ? e : "none",
|
|
19
|
+
...t && {
|
|
20
|
+
gap: "0.5rem"
|
|
21
|
+
},
|
|
22
|
+
"&:hover, :focus-visible": {
|
|
23
|
+
svg: {
|
|
24
|
+
...!t && {
|
|
25
|
+
backgroundColor: r
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
...t && {
|
|
29
|
+
boxShadow: d.boxShadows.darkGreen,
|
|
30
|
+
backgroundColor: i
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
svg: {
|
|
34
|
+
fontSize: "2.1rem",
|
|
35
|
+
fill: e,
|
|
36
|
+
backgroundColor: "transparent",
|
|
37
|
+
borderRadius: "50%",
|
|
38
|
+
padding: "8px",
|
|
11
39
|
display: "flex",
|
|
12
|
-
flexDirection: t ? "row" : "column",
|
|
13
40
|
alignItems: "center",
|
|
14
|
-
justifyContent:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
41
|
+
justifyContent: "center",
|
|
42
|
+
transition: "313ms all ease-in-out"
|
|
43
|
+
},
|
|
44
|
+
span: {
|
|
45
|
+
fontFamily: "Roboto, sans-serif",
|
|
46
|
+
fontSize: "12px",
|
|
47
|
+
fontWeight: "bold",
|
|
48
|
+
color: e,
|
|
49
|
+
textAlign: "center",
|
|
20
50
|
...t && {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"&:hover, :focus-visible": {
|
|
24
|
-
svg: {
|
|
25
|
-
...!t && {
|
|
26
|
-
backgroundColor: r
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
...t && {
|
|
30
|
-
boxShadow: d.boxShadow.darkGreen,
|
|
31
|
-
backgroundColor: i
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
svg: {
|
|
35
|
-
fontSize: "2.1rem",
|
|
36
|
-
fill: e,
|
|
37
|
-
backgroundColor: "transparent",
|
|
38
|
-
borderRadius: "50%",
|
|
39
|
-
padding: "8px",
|
|
40
|
-
display: "flex",
|
|
41
|
-
alignItems: "center",
|
|
42
|
-
justifyContent: "center",
|
|
43
|
-
transition: "313ms all ease-in-out"
|
|
44
|
-
},
|
|
45
|
-
span: {
|
|
46
|
-
fontFamily: "Roboto, sans-serif",
|
|
47
|
-
fontSize: "12px",
|
|
48
|
-
fontWeight: "bold",
|
|
49
|
-
color: e,
|
|
50
|
-
textAlign: "center",
|
|
51
|
-
...t && {
|
|
52
|
-
fontSize: "1.5rem",
|
|
53
|
-
fontWeight: "500"
|
|
54
|
-
}
|
|
51
|
+
fontSize: "1.5rem",
|
|
52
|
+
fontWeight: "500"
|
|
55
53
|
}
|
|
56
|
-
}
|
|
57
|
-
), P = c("div")(({ navWidth: o, isTablet: t }) => ({
|
|
54
|
+
}
|
|
55
|
+
})), P = c("div")(({ navWidth: o, isTablet: t }) => ({
|
|
58
56
|
display: "flex",
|
|
59
57
|
flexDirection: "column",
|
|
60
58
|
backgroundColor: "transparent",
|
package/Nav/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, type NavItemProps } from './Nav';
|
|
1
|
+
export { default, type NavProps, type NavItemProps, type TemplateThemeProps } from './Nav';
|
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.118",
|
|
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",
|
package/theme.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface ThemeColors {
|
|
|
15
15
|
gold: string;
|
|
16
16
|
gold2: string;
|
|
17
17
|
gray: string;
|
|
18
|
+
gray2: string;
|
|
18
19
|
grayO44: string;
|
|
19
20
|
green: string;
|
|
20
21
|
indigo: string;
|
|
@@ -51,11 +52,15 @@ export interface ThemeScreenSizes {
|
|
|
51
52
|
mobile: string;
|
|
52
53
|
tablet: string;
|
|
53
54
|
}
|
|
55
|
+
export interface ThemeFonts {
|
|
56
|
+
roboto: string;
|
|
57
|
+
}
|
|
54
58
|
export interface Theme {
|
|
55
|
-
|
|
59
|
+
boxShadows: ThemeBoxShadows;
|
|
56
60
|
colors: ThemeColors;
|
|
57
61
|
constants: ThemeConstants;
|
|
58
62
|
screenSizes: ThemeScreenSizes;
|
|
63
|
+
fonts: ThemeFonts;
|
|
59
64
|
}
|
|
60
65
|
declare const theme: Theme;
|
|
61
66
|
export default theme;
|
package/theme.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const e = {
|
|
2
|
-
|
|
2
|
+
fonts: {
|
|
3
|
+
roboto: "Roboto, sans-serif"
|
|
4
|
+
},
|
|
5
|
+
boxShadows: {},
|
|
3
6
|
colors: {
|
|
4
7
|
black: "black",
|
|
5
8
|
blue: "#1976d2",
|
|
@@ -17,6 +20,7 @@ const e = {
|
|
|
17
20
|
gold: "#fab62d",
|
|
18
21
|
gold2: "#fcba03",
|
|
19
22
|
gray: "#727272",
|
|
23
|
+
gray2: "#dddddd",
|
|
20
24
|
grayO44: "#72727244",
|
|
21
25
|
green: "#009200",
|
|
22
26
|
indigo: "#4105c1",
|
|
@@ -50,7 +54,7 @@ const e = {
|
|
|
50
54
|
tablet: "963px"
|
|
51
55
|
}
|
|
52
56
|
};
|
|
53
|
-
e.
|
|
57
|
+
e.boxShadows = {
|
|
54
58
|
...Object.fromEntries(
|
|
55
59
|
Object.keys(e.colors).map((a) => [
|
|
56
60
|
a,
|