jcicl 0.0.17 → 0.0.19

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.
Files changed (80) hide show
  1. package/.chunks/ButtonBase.js +2 -1
  2. package/.chunks/DefaultPropsProvider.js +10 -10
  3. package/.chunks/ListContext.js +6 -0
  4. package/.chunks/Menu.js +489 -628
  5. package/.chunks/NavLink.js +436 -0
  6. package/.chunks/NavLinkButton.js +259 -0
  7. package/.chunks/TransitionGroupContext.js +69 -297
  8. package/.chunks/emotion-react.browser.esm.js +231 -0
  9. package/.chunks/index.js +131 -0
  10. package/.chunks/isHostComponent.js +17 -0
  11. package/README.md +1 -7
  12. package/base/Avatar/Avatar/Avatar.d.ts +8 -0
  13. package/base/Avatar/Avatar/Avatar.js +38 -0
  14. package/base/Avatar/Avatar/index.js +2 -2
  15. package/base/Avatar/AvatarWithImage/AvatarWithImage.d.ts +10 -0
  16. package/{.chunks → base/Avatar/AvatarWithImage}/AvatarWithImage.js +9 -8
  17. package/base/Avatar/AvatarWithImage/index.js +2 -2
  18. package/base/Avatar/index.js +3 -3
  19. package/base/Button/Button.d.ts +7 -0
  20. package/{.chunks → base/Button}/Button.js +7 -6
  21. package/base/Button/index.js +2 -2
  22. package/base/Divider/Divider.d.ts +10 -0
  23. package/{.chunks → base/Divider}/Divider.js +12 -11
  24. package/base/Divider/index.js +2 -2
  25. package/base/Flex/Flex.d.ts +19 -0
  26. package/{.chunks → base/Flex}/Flex.js +7 -7
  27. package/base/Flex/index.js +2 -2
  28. package/base/Grid/Grid.d.ts +14 -0
  29. package/base/Grid/Grid.js +19 -0
  30. package/base/Grid/index.js +2 -2
  31. package/base/Input/Input.d.ts +3 -0
  32. package/{.chunks → base/Input}/Input.js +21 -18
  33. package/base/Input/index.js +2 -2
  34. package/base/index.js +12 -12
  35. package/composite/ContactCard/ContactCard.d.ts +2 -0
  36. package/composite/ContactCard/ContactCard.js +1 -0
  37. package/composite/ContactListItem/ContactListItem.d.ts +1 -0
  38. package/composite/ContactListItem/ContactListItem.js +1 -0
  39. package/index.js +19 -17
  40. package/package.json +1 -1
  41. package/supercomposite/AppBar/AppBar.d.ts +5 -0
  42. package/{.chunks → supercomposite/AppBar}/AppBar.js +14 -13
  43. package/supercomposite/AppBar/index.js +2 -2
  44. package/supercomposite/AppHeader/AppHeader.d.ts +7 -0
  45. package/supercomposite/AppHeader/AppHeader.js +31 -0
  46. package/supercomposite/AppHeader/index.js +2 -2
  47. package/supercomposite/CompactNav/CompactNav.d.ts +17 -0
  48. package/{.chunks → supercomposite/CompactNav}/CompactNav.js +14 -12
  49. package/supercomposite/CompactNav/index.js +2 -2
  50. package/supercomposite/Nav/Nav.d.ts +13 -0
  51. package/supercomposite/Nav/Nav.js +626 -0
  52. package/supercomposite/Nav/index.js +1 -1
  53. package/supercomposite/Nav/subcomponents/NavItem/NavItem.d.ts +3 -0
  54. package/supercomposite/Nav/subcomponents/NavItem/NavItem.js +34 -0
  55. package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLink.d.ts +3 -0
  56. package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLink.js +8 -0
  57. package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkButton.d.ts +19 -0
  58. package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkButton.js +8 -0
  59. package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.d.ts +8 -0
  60. package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.js +425 -0
  61. package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavMenu.d.ts +20 -0
  62. package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavMenu.js +432 -0
  63. package/supercomposite/Nav/subcomponents/NavItem/types.d.ts +12 -0
  64. package/supercomposite/Nav/subcomponents/NavItem/types.js +1 -0
  65. package/supercomposite/Nav/types.d.ts +2 -0
  66. package/supercomposite/Nav/types.js +1 -0
  67. package/supercomposite/index.js +6 -6
  68. package/templates/AppContainer/AppContainer.d.ts +10 -0
  69. package/templates/AppContainer/AppContainer.js +73 -0
  70. package/templates/AppContainer/index.js +2 -2
  71. package/templates/BasicPage/BasicPage.d.ts +9 -0
  72. package/templates/BasicPage/BasicPage.js +31 -0
  73. package/templates/BasicPage/index.js +2 -2
  74. package/templates/index.js +4 -4
  75. package/.chunks/AppContainer.js +0 -70
  76. package/.chunks/AppHeader.js +0 -31
  77. package/.chunks/Avatar.js +0 -38
  78. package/.chunks/BasicPage.js +0 -31
  79. package/.chunks/Grid.js +0 -18
  80. package/.chunks/Nav.js +0 -2139
@@ -0,0 +1,2 @@
1
+ export interface ContactCardProps {
2
+ }
@@ -0,0 +1 @@
1
+ export {};
package/index.js CHANGED
@@ -1,22 +1,24 @@
1
- import { A as a } from "./.chunks/Avatar.js";
2
- import { A as e } from "./.chunks/AvatarWithImage.js";
3
- import { B as m } from "./.chunks/Button.js";
4
- import { D as x } from "./.chunks/Divider.js";
5
- import { F as A } from "./.chunks/Flex.js";
6
- import { G as B } from "./.chunks/Grid.js";
7
- import { A as n } from "./.chunks/AppBar.js";
8
- import { N as g } from "./.chunks/Nav.js";
9
- import { A as F } from "./.chunks/AppContainer.js";
10
- import { B as N } from "./.chunks/BasicPage.js";
1
+ import { default as a } from "./base/Avatar/Avatar/Avatar.js";
2
+ import { AvatarWithImage as f } from "./base/Avatar/AvatarWithImage/AvatarWithImage.js";
3
+ import { Button as x } from "./base/Button/Button.js";
4
+ import { Divider as d } from "./base/Divider/Divider.js";
5
+ import { default as s } from "./base/Flex/Flex.js";
6
+ import { Grid as v } from "./base/Grid/Grid.js";
7
+ import "./base/Input/Input.js";
8
+ import { AppBar as n } from "./supercomposite/AppBar/AppBar.js";
9
+ import "./supercomposite/AppHeader/AppHeader.js";
10
+ import { Nav as g } 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
13
  export {
12
14
  n as AppBar,
13
- F as AppContainer,
15
+ h as AppContainer,
14
16
  a as Avatar,
15
- e as AvatarWithImage,
16
- N as BasicPage,
17
- m as Button,
18
- x as Divider,
19
- A as Flex,
20
- B as Grid,
17
+ f as AvatarWithImage,
18
+ D as BasicPage,
19
+ x as Button,
20
+ d as Divider,
21
+ s as Flex,
22
+ v as Grid,
21
23
  g as Nav
22
24
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.17",
4
+ "version": "0.0.19",
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",
@@ -0,0 +1,5 @@
1
+ import { AppBarProps as MuiAppBarProps } from '@mui/material/AppBar';
2
+ export interface AppBarProps extends MuiAppBarProps {
3
+ }
4
+ export declare const AppBar: React.FC<MuiAppBarProps>;
5
+ export default AppBar;
@@ -1,14 +1,14 @@
1
1
  import { jsx as e, jsxs as O } from "react/jsx-runtime";
2
- import { I } from "./Input.js";
3
- import { B as R } from "./Button.js";
4
- import { n as y } from "./emotion-styled.browser.esm.js";
5
- import { l as j } from "./jocologo.js";
6
- import f from "../assets/theme.js";
2
+ import { Input as R } from "../../base/Input/Input.js";
3
+ import { Button as j } from "../../base/Button/Button.js";
4
+ import { n as y } from "../../.chunks/emotion-styled.browser.esm.js";
5
+ import { l as I } from "../../.chunks/jocologo.js";
6
+ import f from "../../assets/theme.js";
7
7
  import * as v from "react";
8
- import { a as x, g as B, s as m, e as c, u as A, c as k, P as r, b as T } from "./DefaultPropsProvider.js";
9
- import { m as C } from "./memoTheme.js";
10
- import { c as N } from "./createSimplePaletteValueFilter.js";
11
- import { P as $ } from "./Menu.js";
8
+ import { a as x, g as B, s as m, e as c, u as A, c as k, P as r, b as T } from "../../.chunks/DefaultPropsProvider.js";
9
+ import { m as C } from "../../.chunks/memoTheme.js";
10
+ import { c as N } from "../../.chunks/createSimplePaletteValueFilter.js";
11
+ import { P as $ } from "../../.chunks/Menu.js";
12
12
  function z(o) {
13
13
  return x("MuiAppBar", o);
14
14
  }
@@ -351,10 +351,11 @@ const E = y(w)({
351
351
  paddingRight: "1.5rem"
352
352
  }
353
353
  })), X = ({ ...o }) => /* @__PURE__ */ e(E, { position: "static", ...o, children: /* @__PURE__ */ O(G, { children: [
354
- /* @__PURE__ */ e("a", { href: "https://int.johnsoncountyiowa.gov/home", target: "_blank", children: /* @__PURE__ */ e("img", { src: j, alt: "logo", width: "60px" }) }),
355
- /* @__PURE__ */ e(I, { placeholder: "Search..." }),
356
- /* @__PURE__ */ e(R, { children: "Log in" })
354
+ /* @__PURE__ */ e("a", { href: "https://int.johnsoncountyiowa.gov/home", target: "_blank", children: /* @__PURE__ */ e("img", { src: I, alt: "logo", width: "60px" }) }),
355
+ /* @__PURE__ */ e(R, { placeholder: "Search..." }),
356
+ /* @__PURE__ */ e(j, { children: "Log in" })
357
357
  ] }) });
358
358
  export {
359
- X as A
359
+ X as AppBar,
360
+ X as default
360
361
  };
@@ -1,4 +1,4 @@
1
- import { A as f } from "../../.chunks/AppBar.js";
1
+ import { AppBar as r } from "./AppBar.js";
2
2
  export {
3
- f as default
3
+ r as default
4
4
  };
@@ -0,0 +1,7 @@
1
+ export interface AppHeaderProps {
2
+ loggedIn?: boolean;
3
+ onLogin?: () => void;
4
+ onUserMenuClick?: () => void;
5
+ }
6
+ declare const AppHeader: React.FC<AppHeaderProps>;
7
+ export default AppHeader;
@@ -0,0 +1,31 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { useState as a } from "react";
3
+ import { n } from "../../.chunks/emotion-styled.browser.esm.js";
4
+ import o from "../../assets/theme.js";
5
+ import { l as s } from "../../.chunks/jocologo.js";
6
+ import { Input as p } from "../../base/Input/Input.js";
7
+ import { Button as m } from "../../base/Button/Button.js";
8
+ import d from "../../base/Avatar/Avatar/Avatar.js";
9
+ const c = n("div")({
10
+ display: "grid",
11
+ flexDirection: "row",
12
+ padding: "4px 16px",
13
+ backgroundColor: "transparent",
14
+ alignItems: "center",
15
+ justifyContent: "space-between",
16
+ gridTemplateColumns: `minmax(${o.constants.appSideNavWidth + o.constants.appInnerNavWidth}px, 1fr) 2fr 1fr`
17
+ }), l = n("img")({
18
+ width: "36px"
19
+ }), f = n("div")({}), g = n("div")({
20
+ justifySelf: "end"
21
+ }), w = () => {
22
+ const [r, e] = a(!1);
23
+ return /* @__PURE__ */ i(c, { children: [
24
+ /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(l, { src: s }) }),
25
+ /* @__PURE__ */ t(p, { placeholder: "Search..." }),
26
+ /* @__PURE__ */ t(g, { children: r ? /* @__PURE__ */ t(d, { onClick: () => e(!1) }) : /* @__PURE__ */ t(m, { onClick: () => e(!0), children: "Log In" }) })
27
+ ] });
28
+ };
29
+ export {
30
+ w as default
31
+ };
@@ -1,4 +1,4 @@
1
- import { A as f } from "../../.chunks/AppHeader.js";
1
+ import { default as o } from "./AppHeader.js";
2
2
  export {
3
- f as default
3
+ o as default
4
4
  };
@@ -0,0 +1,17 @@
1
+ export interface NavItemProps {
2
+ label?: string;
3
+ icon?: JSX.Element;
4
+ onClick?: () => void;
5
+ active?: boolean;
6
+ actionsPanelContent?: JSX.Element;
7
+ }
8
+ export interface NavProps {
9
+ navItems: NavItemProps[];
10
+ activeRoute?: string;
11
+ }
12
+ export declare const Container: import('@emotion/styled').StyledComponent<{
13
+ theme?: import('@emotion/react').Theme;
14
+ as?: React.ElementType;
15
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const CompactNav: React.FC<NavProps>;
17
+ export default CompactNav;
@@ -1,8 +1,8 @@
1
- import { jsx as s, jsxs as m } from "react/jsx-runtime";
2
- import { useState as f } from "react";
3
- import { n as i, i as u } from "./emotion-styled.browser.esm.js";
4
- import o from "../assets/theme.js";
5
- import { B as x } from "./ButtonBase.js";
1
+ import { jsx as s, jsxs as f } from "react/jsx-runtime";
2
+ import { useState as m } from "react";
3
+ import { n as i, i as u } from "../../.chunks/emotion-styled.browser.esm.js";
4
+ import o from "../../assets/theme.js";
5
+ import { B as x } from "../../.chunks/ButtonBase.js";
6
6
  const h = i("div")({
7
7
  display: "flex",
8
8
  flexDirection: "column",
@@ -55,16 +55,18 @@ const h = i("div")({
55
55
  color: o.colors.darkGreen,
56
56
  textAlign: "center"
57
57
  }
58
- })), S = ({ navItems: r, activeRoute: e }) => {
59
- const [a, l] = f(""), c = (n, t) => {
60
- l(n), t();
58
+ })), S = ({ navItems: r, activeRoute: n }) => {
59
+ const [a, l] = m(""), c = (e, t) => {
60
+ l(e), t();
61
61
  };
62
- return /* @__PURE__ */ s(h, { children: r.map(({ icon: n, label: t = "", onClick: d = () => {
63
- }, ...p }) => /* @__PURE__ */ m(g, { ...p, active: e ? e === t : a === t, onClick: () => c(t, d), children: [
64
- n,
62
+ return /* @__PURE__ */ s(h, { children: r.map(({ icon: e, label: t = "", onClick: d = () => {
63
+ }, ...p }) => /* @__PURE__ */ f(g, { ...p, active: n ? n === t : a === t, onClick: () => c(t, d), children: [
64
+ e,
65
65
  /* @__PURE__ */ s("span", { children: t })
66
66
  ] }, t)) });
67
67
  };
68
68
  export {
69
- S as C
69
+ S as CompactNav,
70
+ h as Container,
71
+ S as default
70
72
  };
@@ -1,4 +1,4 @@
1
- import { C as f } from "../../.chunks/CompactNav.js";
1
+ import { CompactNav as t } from "./CompactNav.js";
2
2
  export {
3
- f as default
3
+ t as default
4
4
  };
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ import { DrawerProps as MuiDrawerProps } from '@mui/material/Drawer';
3
+ import { NavItemProps } from './subcomponents/NavItem/types';
4
+ import { MenuPosition } from './types';
5
+ export interface NavProps extends MuiDrawerProps {
6
+ navItems: NavItemProps[];
7
+ anchor?: MenuPosition;
8
+ collapsible?: boolean;
9
+ withAppBar?: boolean;
10
+ collapsed?: boolean;
11
+ }
12
+ export declare const Nav: FC<NavProps>;
13
+ export default Nav;