jcicl 0.0.116 → 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 CHANGED
@@ -6663,13 +6663,13 @@ const Dr = Yo(wo)({
6663
6663
  boxShadow: "0 0 0 0",
6664
6664
  "&:focus-visible": {
6665
6665
  borderColor: ye.colors.darkGreen,
6666
- boxShadow: ye.boxShadow.darkGreenThick
6666
+ boxShadow: ye.boxShadows.darkGreenThick
6667
6667
  }
6668
6668
  },
6669
6669
  "&:hover, :focus-visible": {
6670
6670
  input: {
6671
6671
  borderColor: ye.colors.darkGreen,
6672
- boxShadow: ye.boxShadow.darkGreenThick
6672
+ boxShadow: ye.boxShadows.darkGreenThick
6673
6673
  }
6674
6674
  },
6675
6675
  "&:focus-visible": {
@@ -50,7 +50,7 @@ const $ = y(/* @__PURE__ */ r("path", {
50
50
  title: t,
51
51
  children: e,
52
52
  padding: l = "1rem 2rem",
53
- shadow: m = c.boxShadow.darkGreen,
53
+ shadow: m = c.boxShadows.darkGreen,
54
54
  width: p = "360px"
55
55
  }) => {
56
56
  const [i, f] = x(!1), h = { padding: l, shadow: m, width: p }, w = { expanded: i }, g = { expanded: i };
@@ -1668,7 +1668,7 @@ const Pt = Xe(/* @__PURE__ */ C("path", {
1668
1668
  ]
1669
1669
  }
1670
1670
  ),
1671
- R && /* @__PURE__ */ ue(
1671
+ (R || p) && /* @__PURE__ */ ue(
1672
1672
  Rt,
1673
1673
  {
1674
1674
  anchor: "right",
package/Button/Button.js CHANGED
@@ -465,11 +465,11 @@ const E = c(k)`
465
465
  font-weight: 400;
466
466
  padding: 0.75rem 2rem;
467
467
  font-size: 1rem;
468
- box-shadow: ${s.boxShadow.gray63};
468
+ box-shadow: ${s.boxShadows.gray63};
469
469
  &:hover,
470
470
  :focus-visible {
471
471
  background-color: ${s.colors.darkGreen};
472
- box-shadow: ${s.boxShadow.black63};
472
+ box-shadow: ${s.boxShadows.black63};
473
473
  }
474
474
  &:disabled {
475
475
  background-color: ${s.colors.darkGreen};
@@ -107,7 +107,7 @@ const eo = j(/* @__PURE__ */ o("path", {
107
107
  title: a,
108
108
  items: r = [],
109
109
  padding: u = "1rem 2rem",
110
- shadow: c = d.boxShadow.darkGreen,
110
+ shadow: c = d.boxShadows.darkGreen,
111
111
  spacing: V = "2rem",
112
112
  titleSpacing: w = "1rem",
113
113
  canEditTitle: C = !0,
@@ -0,0 +1,13 @@
1
+ export interface ImageWithDetailsProps {
2
+ title: React.ReactNode;
3
+ description?: React.ReactNode;
4
+ imageUrl: string;
5
+ imageAlt: string;
6
+ /** The total size of the component */
7
+ containerHeight?: string;
8
+ /** The size of the title header and details section */
9
+ detailsBarSize?: string;
10
+ detailsBarPadding?: string;
11
+ }
12
+ declare const ImageWithDetails: React.FC<ImageWithDetailsProps>;
13
+ export default ImageWithDetails;
@@ -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';
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./ImageWithDetails.js";
2
+ export {
3
+ o as default
4
+ };
@@ -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: c = l.boxShadow.darkGreen,
37
- spacing: s = "2rem",
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: c, styles: f }, children: [
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: s, columns: p }, children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ a(h, { ...n }, n.label)) })
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.js CHANGED
@@ -26,7 +26,7 @@ const w = c(k, {
26
26
  }
27
27
  },
28
28
  ...t && {
29
- boxShadow: d.boxShadow.darkGreen,
29
+ boxShadow: d.boxShadows.darkGreen,
30
30
  backgroundColor: i
31
31
  }
32
32
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.116",
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
@@ -52,11 +52,15 @@ export interface ThemeScreenSizes {
52
52
  mobile: string;
53
53
  tablet: string;
54
54
  }
55
+ export interface ThemeFonts {
56
+ roboto: string;
57
+ }
55
58
  export interface Theme {
56
- boxShadow: ThemeBoxShadows;
59
+ boxShadows: ThemeBoxShadows;
57
60
  colors: ThemeColors;
58
61
  constants: ThemeConstants;
59
62
  screenSizes: ThemeScreenSizes;
63
+ fonts: ThemeFonts;
60
64
  }
61
65
  declare const theme: Theme;
62
66
  export default theme;
package/theme.js CHANGED
@@ -1,5 +1,8 @@
1
1
  const e = {
2
- boxShadow: {},
2
+ fonts: {
3
+ roboto: "Roboto, sans-serif"
4
+ },
5
+ boxShadows: {},
3
6
  colors: {
4
7
  black: "black",
5
8
  blue: "#1976d2",
@@ -51,7 +54,7 @@ const e = {
51
54
  tablet: "963px"
52
55
  }
53
56
  };
54
- e.boxShadow = {
57
+ e.boxShadows = {
55
58
  ...Object.fromEntries(
56
59
  Object.keys(e.colors).map((a) => [
57
60
  a,