jcicl 0.0.25 → 0.0.26
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/composite/List/List.d.ts
CHANGED
package/composite/List/List.js
CHANGED
|
@@ -1,59 +1,64 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { n as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import x from "react";
|
|
3
|
+
import { n as l } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
+
import t from "../../theme.js";
|
|
5
5
|
import { B as f } from "../../.chunks/ButtonBase.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
const d = l("div")(
|
|
7
|
+
({ width: e, borderColor: o, bordered: n }) => ({
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column",
|
|
10
|
+
fontFamily: "Roboto, sans-serif",
|
|
11
|
+
listStyleType: "none",
|
|
12
|
+
...n && { border: `1px solid ${o}` },
|
|
13
|
+
borderRadius: "4px",
|
|
14
|
+
overflow: "hidden",
|
|
15
|
+
pointerEvents: "none",
|
|
16
|
+
...e && {
|
|
17
|
+
width: e
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
), m = l("div")(
|
|
21
|
+
({ padding: e, borderColor: o, bordered: n }) => ({
|
|
22
|
+
backgroundColor: t.colors.white,
|
|
21
23
|
padding: e,
|
|
22
|
-
|
|
24
|
+
...n && {
|
|
23
25
|
borderBottom: `1px solid ${o}`,
|
|
24
26
|
"&:last-child": {
|
|
25
27
|
borderBottom: "none"
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
})
|
|
29
|
-
), h =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
transition: "201ms all ease-in-out"
|
|
38
|
-
},
|
|
39
|
-
"&:hover": {
|
|
40
|
-
span: {
|
|
41
|
-
boxShadow: `inset ${i.boxShadow.green}`
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"&:focus": {
|
|
31
|
+
), h = l(f)(
|
|
32
|
+
({ borderColor: e, bordered: o }) => ({
|
|
33
|
+
...o && { borderBottom: `1px solid ${e}` },
|
|
34
|
+
fontSize: "inherit",
|
|
35
|
+
pointerEvents: "all",
|
|
36
|
+
"&:last-child": {
|
|
37
|
+
borderBottom: "none"
|
|
38
|
+
},
|
|
45
39
|
span: {
|
|
46
|
-
|
|
40
|
+
transition: "201ms all ease-in-out"
|
|
41
|
+
},
|
|
42
|
+
"&:hover": {
|
|
43
|
+
span: {
|
|
44
|
+
boxShadow: `inset 0px -11px 3px -10px ${t.colors.green}, inset 0px 11px 3px -10px ${t.colors.green}`
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"&:focus": {
|
|
48
|
+
span: {
|
|
49
|
+
boxShadow: `inset 0px -11px 3px -10px ${t.colors.darkGreen}, inset 0px 11px 3px -10px ${t.colors.darkGreen}`
|
|
50
|
+
}
|
|
47
51
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
52
|
+
})
|
|
53
|
+
), y = ({
|
|
50
54
|
interactable: e = !1,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
bordered: o = !1,
|
|
56
|
+
width: n,
|
|
57
|
+
padding: p = "1rem ",
|
|
58
|
+
borderColor: s = t.colors.darkGreen,
|
|
59
|
+
children: a,
|
|
60
|
+
...c
|
|
61
|
+
}) => e ? /* @__PURE__ */ r(d, { width: n, borderColor: s, bordered: o, children: x.Children.map(a, (i) => /* @__PURE__ */ r(h, { borderColor: s, bordered: o, ...c, children: /* @__PURE__ */ r(m, { padding: p, borderColor: "transparent", bordered: !1, children: i }) })) }) : /* @__PURE__ */ r(d, { width: n, borderColor: s, bordered: o, children: x.Children.map(a, (i) => /* @__PURE__ */ r(m, { padding: p, borderColor: s, bordered: o, children: i })) });
|
|
57
62
|
export {
|
|
58
|
-
|
|
63
|
+
y as default
|
|
59
64
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { FlexProps } from '../../../../../../../../../src/components/base/Flex/Flex';
|
|
2
|
+
export interface WithLabelProps extends Omit<FlexProps, 'children'> {
|
|
2
3
|
label: string;
|
|
4
|
+
fontSize?: string;
|
|
3
5
|
component: JSX.Element;
|
|
4
6
|
}
|
|
5
7
|
declare const WithLabel: React.FC<WithLabelProps>;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import o from "../../base/Flex/Flex.js";
|
|
3
|
+
const m = ({
|
|
4
|
+
label: r,
|
|
5
|
+
component: t,
|
|
6
|
+
fontSize: i = "inherit",
|
|
7
|
+
styles: n,
|
|
8
|
+
...s
|
|
9
|
+
}) => /* @__PURE__ */ l(o, { gap: 0.5, alignItems: "center", styles: { ...n, fontSize: i }, ...s, children: [
|
|
4
10
|
/* @__PURE__ */ e("div", { id: r, children: t }),
|
|
5
11
|
/* @__PURE__ */ e("label", { htmlFor: r, children: r })
|
|
6
12
|
] });
|
|
7
13
|
export {
|
|
8
|
-
|
|
14
|
+
m as default
|
|
9
15
|
};
|
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.26",
|
|
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",
|