jcicl 0.0.18 → 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.
- package/.chunks/ButtonBase.js +2 -1
- package/.chunks/DefaultPropsProvider.js +10 -10
- package/.chunks/ListContext.js +6 -0
- package/.chunks/Menu.js +489 -628
- package/.chunks/NavLink.js +436 -0
- package/.chunks/NavLinkButton.js +259 -0
- package/.chunks/TransitionGroupContext.js +69 -297
- package/.chunks/emotion-react.browser.esm.js +231 -0
- package/.chunks/index.js +131 -0
- package/.chunks/isHostComponent.js +17 -0
- package/README.md +1 -7
- package/base/Avatar/Avatar/Avatar.d.ts +8 -0
- package/base/Avatar/Avatar/Avatar.js +38 -0
- package/base/Avatar/Avatar/index.js +2 -2
- package/base/Avatar/AvatarWithImage/AvatarWithImage.d.ts +10 -0
- package/{.chunks → base/Avatar/AvatarWithImage}/AvatarWithImage.js +9 -8
- package/base/Avatar/AvatarWithImage/index.js +2 -2
- package/base/Avatar/index.js +3 -3
- package/base/Button/Button.d.ts +7 -0
- package/{.chunks → base/Button}/Button.js +7 -6
- package/base/Button/index.js +2 -2
- package/base/Divider/Divider.d.ts +10 -0
- package/{.chunks → base/Divider}/Divider.js +12 -11
- package/base/Divider/index.js +2 -2
- package/base/Flex/Flex.d.ts +19 -0
- package/{.chunks → base/Flex}/Flex.js +7 -7
- package/base/Flex/index.js +2 -2
- package/base/Grid/Grid.d.ts +14 -0
- package/base/Grid/Grid.js +19 -0
- package/base/Grid/index.js +2 -2
- package/base/Input/Input.d.ts +3 -0
- package/{.chunks → base/Input}/Input.js +21 -18
- package/base/Input/index.js +2 -2
- package/base/index.js +12 -12
- package/composite/ContactCard/ContactCard.d.ts +2 -0
- package/composite/ContactCard/ContactCard.js +1 -0
- package/composite/ContactListItem/ContactListItem.d.ts +1 -0
- package/composite/ContactListItem/ContactListItem.js +1 -0
- package/index.js +19 -17
- package/package.json +1 -1
- package/supercomposite/AppBar/AppBar.d.ts +5 -0
- package/{.chunks → supercomposite/AppBar}/AppBar.js +14 -13
- package/supercomposite/AppBar/index.js +2 -2
- package/supercomposite/AppHeader/AppHeader.d.ts +7 -0
- package/supercomposite/AppHeader/AppHeader.js +31 -0
- package/supercomposite/AppHeader/index.js +2 -2
- package/supercomposite/CompactNav/CompactNav.d.ts +17 -0
- package/{.chunks → supercomposite/CompactNav}/CompactNav.js +14 -12
- package/supercomposite/CompactNav/index.js +2 -2
- package/supercomposite/Nav/Nav.d.ts +13 -0
- package/supercomposite/Nav/Nav.js +626 -0
- package/supercomposite/Nav/index.js +1 -1
- package/supercomposite/Nav/subcomponents/NavItem/NavItem.d.ts +3 -0
- package/supercomposite/Nav/subcomponents/NavItem/NavItem.js +34 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLink.d.ts +3 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLink.js +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkButton.d.ts +19 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkButton.js +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.d.ts +8 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.js +425 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavMenu.d.ts +20 -0
- package/supercomposite/Nav/subcomponents/NavItem/subcomponents/NavMenu.js +432 -0
- package/supercomposite/Nav/subcomponents/NavItem/types.d.ts +12 -0
- package/supercomposite/Nav/subcomponents/NavItem/types.js +1 -0
- package/supercomposite/Nav/types.d.ts +2 -0
- package/supercomposite/Nav/types.js +1 -0
- package/supercomposite/index.js +6 -6
- package/templates/AppContainer/AppContainer.d.ts +10 -0
- package/{.chunks → templates/AppContainer}/AppContainer.js +7 -7
- package/templates/AppContainer/index.js +2 -2
- package/templates/BasicPage/BasicPage.d.ts +9 -0
- package/templates/BasicPage/BasicPage.js +31 -0
- package/templates/BasicPage/index.js +2 -2
- package/templates/index.js +4 -4
- package/.chunks/AppHeader.js +0 -31
- package/.chunks/Avatar.js +0 -38
- package/.chunks/BasicPage.js +0 -31
- package/.chunks/Grid.js +0 -18
- package/.chunks/Nav.js +0 -2139
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
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
|
-
|
|
15
|
+
h as AppContainer,
|
|
14
16
|
a as Avatar,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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.
|
|
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",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e, jsxs as O } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as y } from "
|
|
5
|
-
import { l as
|
|
6
|
-
import f from "
|
|
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 "
|
|
9
|
-
import { m as C } from "
|
|
10
|
-
import { c as N } from "
|
|
11
|
-
import { P as $ } from "
|
|
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:
|
|
355
|
-
/* @__PURE__ */ e(
|
|
356
|
-
/* @__PURE__ */ e(
|
|
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
|
|
359
|
+
X as AppBar,
|
|
360
|
+
X as default
|
|
360
361
|
};
|
|
@@ -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
|
+
};
|
|
@@ -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
|
|
2
|
-
import { useState as
|
|
3
|
-
import { n as i, i as u } from "
|
|
4
|
-
import o from "
|
|
5
|
-
import { B as x } from "
|
|
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:
|
|
59
|
-
const [a, l] =
|
|
60
|
-
l(
|
|
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:
|
|
63
|
-
}, ...p }) => /* @__PURE__ */
|
|
64
|
-
|
|
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
|
|
69
|
+
S as CompactNav,
|
|
70
|
+
h as Container,
|
|
71
|
+
S as default
|
|
70
72
|
};
|
|
@@ -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;
|