jcicl 0.0.47 → 0.0.50

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,22 +1,23 @@
1
- import { jsxs as e } from "react/jsx-runtime";
2
- import { n as a } from "../../.chunks/emotion-styled.browser.esm.js";
3
- import { c as n } from "../../.chunks/emotion-react.browser.esm.js";
4
- const r = a("span")({
5
- ...n`
1
+ import { jsxs as a } from "react/jsx-runtime";
2
+ import { n as s } from "../../.chunks/emotion-styled.browser.esm.js";
3
+ import { c as t } from "../../.chunks/emotion-react.browser.esm.js";
4
+ const r = s("span")({
5
+ ...t`
6
6
  font-family: 'Roboto', sans-serif;
7
7
  span {
8
8
  font-weight: bold;
9
+ text-transform: capitalize;
9
10
  }
10
11
  `
11
- }), f = ({ label: o, value: s }) => /* @__PURE__ */ e(r, { children: [
12
- /* @__PURE__ */ e("span", { children: [
13
- o,
12
+ }), p = ({ label: e, value: o }) => /* @__PURE__ */ a(r, { children: [
13
+ /* @__PURE__ */ a("span", { children: [
14
+ e,
14
15
  ":"
15
16
  ] }),
16
17
  " ",
17
- s
18
+ o
18
19
  ] });
19
20
  export {
20
- f as LabeledValue,
21
- f as default
21
+ p as LabeledValue,
22
+ p as default
22
23
  };
@@ -1,14 +1,11 @@
1
- import { ThemeBoxShadows } from '../../../../../../../../../src/components/theme';
2
1
  import { LabeledValueProps } from '../../../../../../../../../src/components/base/LabeledValue';
3
2
  interface InfoCardStyleProps {
4
3
  /** The element placed before the header text. This can be any valid React Node */
5
4
  decorativeElement?: React.ReactNode;
6
5
  /** Padding for the card */
7
6
  padding?: string;
8
- /** The color of the box shadow around the card element. Must be a valid `keyof theme.boxShadows`.
9
- * @param {string} shadow
10
- */
11
- shadow?: keyof ThemeBoxShadows;
7
+ /** Box shadow around the card */
8
+ shadow?: string;
12
9
  /** Spacing between the items */
13
10
  spacing?: string;
14
11
  columns?: number;
@@ -1,10 +1,10 @@
1
1
  import { jsxs as t, jsx as a } from "react/jsx-runtime";
2
2
  import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as i } from "../../.chunks/emotion-react.browser.esm.js";
4
- import c from "../../theme.js";
4
+ import l from "../../theme.js";
5
5
  import { LabeledValue as f } from "../../base/LabeledValue/LabeledValue.js";
6
6
  import h from "../../base/Flex/Flex.js";
7
- const x = d("div")(({ padding: r, shadow: o }) => ({
7
+ const g = d("div")(({ padding: r, shadow: o }) => ({
8
8
  ...i`
9
9
  h3 {
10
10
  margin: 0;
@@ -15,10 +15,11 @@ const x = d("div")(({ padding: r, shadow: o }) => ({
15
15
  padding: ${r};
16
16
  display: flex;
17
17
  flex-direction: column;
18
- box-shadow: ${c.boxShadow[o]};
18
+ box-shadow: ${o};
19
19
  border-radius: 5px;
20
+ background-color: ${l.colors.white};
20
21
  `
21
- })), g = d("div")(({ spacing: r, columns: o }) => ({
22
+ })), x = d("div")(({ spacing: r, columns: o }) => ({
22
23
  ...i`
23
24
  margin-top: calc(${r} * 0.75);
24
25
  grid-row-gap: ${r};
@@ -30,16 +31,16 @@ const x = d("div")(({ padding: r, shadow: o }) => ({
30
31
  decorativeElement: r,
31
32
  title: o,
32
33
  items: e,
33
- padding: l = "1rem 2rem",
34
- shadow: m = "darkGreen",
35
- spacing: p = "2rem",
36
- columns: s = 3
37
- }) => /* @__PURE__ */ t(x, { ...{ padding: l, shadow: m }, children: [
34
+ padding: m = "1rem 2rem",
35
+ shadow: c = l.boxShadow.darkGreen,
36
+ spacing: s = "2rem",
37
+ columns: p = 3
38
+ }) => /* @__PURE__ */ t(g, { ...{ padding: m, shadow: c }, children: [
38
39
  /* @__PURE__ */ t(h, { width: "100%", gap: "1rem", alignItems: "center", children: [
39
40
  r && r,
40
41
  /* @__PURE__ */ a("h3", { children: o })
41
42
  ] }),
42
- /* @__PURE__ */ a(g, { ...{ spacing: p, columns: s }, children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ a(f, { ...n }, n.label)) })
43
+ /* @__PURE__ */ a(x, { ...{ spacing: s, columns: p }, children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ a(f, { ...n }, n.label)) })
43
44
  ] });
44
45
  export {
45
46
  P as InfoCard,
@@ -1,39 +1,39 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { n as i } from "../../.chunks/emotion-styled.browser.esm.js";
3
- import n from "../../theme.js";
4
- const f = i("div")(
5
- ({ width: o, borderColor: t, bordered: r, backgroundColor: e }) => ({
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { n as m } from "../../.chunks/emotion-styled.browser.esm.js";
3
+ import i from "../../theme.js";
4
+ const d = m("div")(
5
+ ({ width: o, borderColor: t, bordered: s, backgroundColor: r }) => ({
6
6
  display: "flex",
7
7
  flexDirection: "column",
8
8
  fontFamily: "Roboto, sans-serif",
9
- backgroundColor: e,
10
- ...r && { border: `1px solid ${t}` },
9
+ backgroundColor: r,
10
+ ...s && { border: `1px solid ${t}` },
11
11
  borderRadius: "4px",
12
12
  ...o && {
13
13
  width: o
14
14
  }
15
15
  })
16
- ), x = i("div")(
17
- ({ padding: o, borderColor: t, bordered: r }) => ({
16
+ ), x = m("div")(
17
+ ({ padding: o, borderColor: t, bordered: s }) => ({
18
18
  padding: o,
19
- ...r && {
19
+ ...s && {
20
20
  borderBottom: `1px solid ${t}`,
21
21
  "&:last-child": {
22
22
  borderBottom: "none"
23
23
  }
24
24
  }
25
25
  })
26
- ), y = ({
26
+ ), v = ({
27
27
  bordered: o = !1,
28
28
  width: t,
29
- padding: r = "0",
30
- borderColor: e = n.colors.darkGreen,
31
- backgroundColor: l = n.colors.white,
32
- children: m
29
+ padding: s = "0",
30
+ borderColor: r = i.colors.darkGreen,
31
+ backgroundColor: a = i.colors.white,
32
+ children: e
33
33
  }) => {
34
- const a = { width: t, borderColor: e, bordered: o, backgroundColor: l }, c = { padding: r, borderColor: e, bordered: o };
35
- return /* @__PURE__ */ s(f, { ...a, children: m.map((d, p) => /* @__PURE__ */ s(x, { ...c, children: d }, p)) });
34
+ const l = { width: t, borderColor: r, bordered: o, backgroundColor: a }, p = { padding: s, borderColor: r, bordered: o };
35
+ return /* @__PURE__ */ n(d, { ...l, children: e == null ? void 0 : e.map((c, f) => /* @__PURE__ */ n(x, { ...p, children: c }, f)) });
36
36
  };
37
37
  export {
38
- y as default
38
+ v as default
39
39
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.47",
4
+ "version": "0.0.50",
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",