jcicl 0.0.24 → 0.0.25

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 +1 @@
1
- export { default, type AvatarProps } from './Avatar';
1
+ export { default } from './Avatar';
@@ -1 +1,10 @@
1
- export {};
1
+ import { default as React, PropsWithChildren } from 'react';
2
+ import { ButtonBaseProps } from '@mui/material/ButtonBase/ButtonBase';
3
+ export interface ListProps extends ButtonBaseProps {
4
+ interactable?: boolean;
5
+ width?: string;
6
+ padding?: string;
7
+ borderColor?: string;
8
+ }
9
+ declare const List: React.FC<PropsWithChildren<ListProps>>;
10
+ export default List;
@@ -1 +1,59 @@
1
-
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";
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,
21
+ padding: e,
22
+ ...!r && {
23
+ borderBottom: `1px solid ${o}`,
24
+ "&:last-child": {
25
+ borderBottom: "none"
26
+ }
27
+ }
28
+ })
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": {
45
+ span: {
46
+ boxShadow: `inset ${i.boxShadow.darkGreenThick}`
47
+ }
48
+ }
49
+ })), v = ({
50
+ 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 })) });
57
+ export {
58
+ v as default
59
+ };
@@ -0,0 +1 @@
1
+ export { default, type ListProps } from './List';
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./List.js";
2
+ export {
3
+ o as default
4
+ };
@@ -1 +1,2 @@
1
+ export { default as List } from './List';
1
2
  export { default as WithLabel } from './WithLabel';
@@ -1,4 +1,6 @@
1
- import { default as t } from "./WithLabel/WithLabel.js";
1
+ import { default as e } from "./List/List.js";
2
+ import { default as o } from "./WithLabel/WithLabel.js";
2
3
  export {
3
- t as WithLabel
4
+ e as List,
5
+ o as WithLabel
4
6
  };
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { Avatar, AvatarWithImage, Button, Divider, Flex, Grid } from './base';
2
+ export { List, WithLabel } from './composite';
2
3
  export { AppHeader, Nav } from './supercomposite';
3
4
  export { AppContainer, BasicPage } from './templates';
package/index.js CHANGED
@@ -1,24 +1,28 @@
1
1
  import { default as a } from "./base/Avatar/Avatar.js";
2
- import { AvatarWithImage as f } from "./base/AvatarWithImage/AvatarWithImage.js";
2
+ import { AvatarWithImage as p } from "./base/AvatarWithImage/AvatarWithImage.js";
3
3
  import { Button as x } from "./base/Button/Button.js";
4
4
  import { Divider as i } from "./base/Divider/Divider.js";
5
5
  import { default as s } from "./base/Flex/Flex.js";
6
6
  import { Grid as v } from "./base/Grid/Grid.js";
7
7
  import "./base/Input/Input.js";
8
+ import { default as n } from "./composite/List/List.js";
9
+ import { default as h } from "./composite/WithLabel/WithLabel.js";
8
10
  import "./supercomposite/AppBar/AppBar.js";
9
- import { default as n } from "./supercomposite/AppHeader/AppHeader.js";
10
- import { Nav as B } from "./supercomposite/Nav/Nav.js";
11
- import { default as h } from "./templates/AppContainer/AppContainer.js";
12
- import { default as D } from "./templates/BasicPage/BasicPage.js";
11
+ import { default as L } from "./supercomposite/AppHeader/AppHeader.js";
12
+ import { Nav as b } from "./supercomposite/Nav/Nav.js";
13
+ import { default as C } from "./templates/AppContainer/AppContainer.js";
14
+ import { default as F } from "./templates/BasicPage/BasicPage.js";
13
15
  export {
14
- h as AppContainer,
15
- n as AppHeader,
16
+ C as AppContainer,
17
+ L as AppHeader,
16
18
  a as Avatar,
17
- f as AvatarWithImage,
18
- D as BasicPage,
19
+ p as AvatarWithImage,
20
+ F as BasicPage,
19
21
  x as Button,
20
22
  i as Divider,
21
23
  s as Flex,
22
24
  v as Grid,
23
- B as Nav
25
+ n as List,
26
+ b as Nav,
27
+ h as WithLabel
24
28
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.24",
4
+ "version": "0.0.25",
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",
@@ -8,7 +8,7 @@ const c = d("div")({
8
8
  flexDirection: "column",
9
9
  width: "100%",
10
10
  position: "relative",
11
- backgroundColor: o.colors.whiteGreen2,
11
+ backgroundColor: o.colors.whiteGreenA,
12
12
  height: "100vh",
13
13
  fontFamily: "Roboto, sans-serif",
14
14
  overflow: "hidden"
package/theme.d.ts CHANGED
@@ -10,6 +10,7 @@ export interface ThemeColors {
10
10
  gold: string;
11
11
  gray: string;
12
12
  veryLightGray: string;
13
+ veryLightGrayO33: string;
13
14
  grayO44: string;
14
15
  green: string;
15
16
  midnight: string;
@@ -17,12 +18,13 @@ export interface ThemeColors {
17
18
  sunlight: string;
18
19
  white: string;
19
20
  whiteGreen: string;
20
- whiteGreen2: string;
21
+ whiteGreenA: string;
21
22
  }
22
23
  export interface ThemeBoxShadows extends Partial<ThemeColors> {
23
24
  black63?: string;
24
25
  darkGreenThick?: string;
25
26
  gray63?: string;
27
+ greenThick?: string;
26
28
  }
27
29
  export interface Theme {
28
30
  boxShadow: ThemeBoxShadows;
package/theme.js CHANGED
@@ -18,8 +18,9 @@ const e = {
18
18
  sunlight: "#faf9e8",
19
19
  white: "white",
20
20
  whiteGreen: "#f2fcf5",
21
- whiteGreen2: "#dae8de",
22
- veryLightGray: "#fafafa"
21
+ whiteGreenA: "#dae8de",
22
+ veryLightGray: "#fafafa",
23
+ veryLightGrayO33: "#fafafa33"
23
24
  },
24
25
  constants: {
25
26
  appHeaderHeight: 54,
@@ -37,6 +38,7 @@ e.boxShadow = {
37
38
  ])
38
39
  ),
39
40
  darkGreenThick: `0 0 2px 1px ${e.colors.darkGreen}`,
41
+ greenThick: `0 0 2px 1px ${e.colors.green}`,
40
42
  gray63: "0px 0px 2px 1px rgba(100, 100, 100, 0.63)",
41
43
  black63: "0px 0px 2px 1px rgba(0, 0, 0, 0.63)"
42
44
  };