jcicl 0.0.47 → 0.0.49
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,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
|
-
/**
|
|
9
|
-
|
|
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,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { n as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { n as i } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as d } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import p 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
|
|
8
|
-
...
|
|
7
|
+
const g = i("div")(({ padding: r, shadow: o }) => ({
|
|
8
|
+
...d`
|
|
9
9
|
h3 {
|
|
10
10
|
margin: 0;
|
|
11
11
|
width: 100%;
|
|
@@ -15,33 +15,34 @@ const x = d("div")(({ padding: r, shadow: o }) => ({
|
|
|
15
15
|
padding: ${r};
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
|
-
box-shadow: ${
|
|
18
|
+
box-shadow: ${o};
|
|
19
19
|
border-radius: 5px;
|
|
20
|
+
background-color: ${p.colors.white};
|
|
20
21
|
`
|
|
21
|
-
})),
|
|
22
|
-
...
|
|
22
|
+
})), x = i("div")(({ spacing: r, columns: o }) => ({
|
|
23
|
+
...d`
|
|
23
24
|
margin-top: calc(${r} * 0.75);
|
|
24
25
|
grid-row-gap: ${r};
|
|
25
26
|
grid-column-gap: calc(${r} * 1.5);
|
|
26
27
|
display: grid;
|
|
27
28
|
grid-template-columns: repeat(${o}, 1fr);
|
|
28
29
|
`
|
|
29
|
-
})),
|
|
30
|
+
})), S = ({
|
|
30
31
|
decorativeElement: r,
|
|
31
32
|
title: o,
|
|
32
33
|
items: e,
|
|
33
34
|
padding: l = "1rem 2rem",
|
|
34
35
|
shadow: m = "darkGreen",
|
|
35
|
-
spacing:
|
|
36
|
+
spacing: c = "2rem",
|
|
36
37
|
columns: s = 3
|
|
37
|
-
}) => /* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
}) => /* @__PURE__ */ a(g, { ...{ padding: l, shadow: m }, children: [
|
|
39
|
+
/* @__PURE__ */ a(h, { width: "100%", gap: "1rem", alignItems: "center", children: [
|
|
39
40
|
r && r,
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ n("h3", { children: o })
|
|
41
42
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ n(x, { ...{ spacing: c, columns: s }, children: e == null ? void 0 : e.map((t) => /* @__PURE__ */ n(f, { ...t }, t.label)) })
|
|
43
44
|
] });
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
S as InfoCard,
|
|
47
|
+
S as default
|
|
47
48
|
};
|
package/composite/List/List.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
({ width: o, borderColor: t, bordered:
|
|
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:
|
|
10
|
-
...
|
|
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 =
|
|
17
|
-
({ padding: o, borderColor: t, bordered:
|
|
16
|
+
), x = m("div")(
|
|
17
|
+
({ padding: o, borderColor: t, bordered: s }) => ({
|
|
18
18
|
padding: o,
|
|
19
|
-
...
|
|
19
|
+
...s && {
|
|
20
20
|
borderBottom: `1px solid ${t}`,
|
|
21
21
|
"&:last-child": {
|
|
22
22
|
borderBottom: "none"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
})
|
|
26
|
-
),
|
|
26
|
+
), v = ({
|
|
27
27
|
bordered: o = !1,
|
|
28
28
|
width: t,
|
|
29
|
-
padding:
|
|
30
|
-
borderColor:
|
|
31
|
-
backgroundColor:
|
|
32
|
-
children:
|
|
29
|
+
padding: s = "0",
|
|
30
|
+
borderColor: r = i.colors.darkGreen,
|
|
31
|
+
backgroundColor: a = i.colors.white,
|
|
32
|
+
children: e
|
|
33
33
|
}) => {
|
|
34
|
-
const
|
|
35
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
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.
|
|
4
|
+
"version": "0.0.49",
|
|
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",
|