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.
@@ -5,6 +5,7 @@ export interface ListProps extends ButtonBaseProps {
5
5
  width?: string;
6
6
  padding?: string;
7
7
  borderColor?: string;
8
+ bordered?: boolean;
8
9
  }
9
10
  declare const List: React.FC<PropsWithChildren<ListProps>>;
10
11
  export default List;
@@ -1,59 +1,64 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import d from "react";
3
- import { n as a } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import i from "../../theme.js";
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 m = a("div")(({ width: e, borderColor: o }) => ({
7
- display: "flex",
8
- flexDirection: "column",
9
- fontFamily: "Roboto, sans-serif",
10
- listStyleType: "none",
11
- border: `1px solid ${o}`,
12
- borderRadius: "4px",
13
- overflow: "hidden",
14
- pointerEvents: "none",
15
- ...e && {
16
- width: e
17
- }
18
- })), c = a("div")(
19
- ({ padding: e, borderColor: o, interactable: r }) => ({
20
- backgroundColor: i.colors.white,
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
- ...!r && {
24
+ ...n && {
23
25
  borderBottom: `1px solid ${o}`,
24
26
  "&:last-child": {
25
27
  borderBottom: "none"
26
28
  }
27
29
  }
28
30
  })
29
- ), h = a(f)(({ borderColor: e }) => ({
30
- borderBottom: `1px solid ${e}`,
31
- fontSize: "inherit",
32
- pointerEvents: "all",
33
- "&:last-child": {
34
- borderBottom: "none"
35
- },
36
- span: {
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
- boxShadow: `inset ${i.boxShadow.darkGreenThick}`
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
- })), v = ({
52
+ })
53
+ ), y = ({
50
54
  interactable: e = !1,
51
- width: o,
52
- padding: r = "1rem ",
53
- borderColor: n = i.colors.darkGreen,
54
- children: l,
55
- ...p
56
- }) => e ? /* @__PURE__ */ t(m, { width: o, borderColor: n, children: d.Children.map(l, (s) => /* @__PURE__ */ t(h, { borderColor: n, ...p, children: /* @__PURE__ */ t(c, { padding: r, borderColor: "transparent", interactable: !0, children: s }) })) }) : /* @__PURE__ */ t(m, { width: o, borderColor: n, children: d.Children.map(l, (s) => /* @__PURE__ */ t(c, { padding: r, borderColor: n, interactable: !1, children: s })) });
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
- v as default
63
+ y as default
59
64
  };
@@ -1,5 +1,7 @@
1
- export interface WithLabelProps {
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 i, jsx as e } from "react/jsx-runtime";
2
- import n from "../../base/Flex/Flex.js";
3
- const l = ({ label: r, component: t }) => /* @__PURE__ */ i(n, { gap: 0.5, alignItems: "center", children: [
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
- l as default
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.25",
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",