jcicl 0.0.22 → 0.0.23

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 (69) hide show
  1. package/.chunks/NavLink.js +1 -1
  2. package/README.md +12 -15
  3. package/base/Avatar/{Avatar/Avatar.js → Avatar.js} +4 -4
  4. package/base/Avatar/index.d.ts +1 -2
  5. package/base/Avatar/index.js +2 -4
  6. package/base/{Avatar/AvatarWithImage → AvatarWithImage}/AvatarWithImage.js +3 -3
  7. package/base/AvatarWithImage/index.d.ts +1 -0
  8. package/base/Button/Button.js +12 -16
  9. package/base/Divider/index.d.ts +1 -1
  10. package/base/Flex/Flex.js +6 -5
  11. package/base/Flex/index.d.ts +1 -1
  12. package/base/Grid/index.d.ts +1 -1
  13. package/base/ScrollContainer/ScrollContainer.d.ts +10 -0
  14. package/base/ScrollContainer/ScrollContainer.js +42 -0
  15. package/base/index.d.ts +2 -2
  16. package/base/index.js +2 -2
  17. package/composite/WithLabel/WithLabel.d.ts +6 -0
  18. package/composite/WithLabel/WithLabel.js +9 -0
  19. package/composite/WithLabel/index.d.ts +1 -0
  20. package/composite/WithLabel/index.js +4 -0
  21. package/composite/index.d.ts +1 -0
  22. package/composite/index.js +4 -0
  23. package/index.d.ts +1 -1
  24. package/index.js +9 -9
  25. package/package.json +1 -1
  26. package/supercomposite/AppBar/AppBar.js +1 -1
  27. package/supercomposite/AppHeader/AppHeader.js +16 -16
  28. package/supercomposite/Nav/Nav.d.ts +10 -10
  29. package/supercomposite/Nav/Nav.js +76 -614
  30. package/supercomposite/Nav/index.d.ts +1 -2
  31. package/supercomposite/OldNav/Nav.d.ts +13 -0
  32. package/supercomposite/OldNav/Nav.js +626 -0
  33. package/supercomposite/OldNav/index.d.ts +2 -0
  34. package/supercomposite/OldNav/index.js +4 -0
  35. package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkButton.d.ts +1 -1
  36. package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavMenu.d.ts +1 -1
  37. package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/types.d.ts +1 -1
  38. package/supercomposite/index.d.ts +1 -1
  39. package/templates/AppContainer/AppContainer.d.ts +1 -1
  40. package/templates/AppContainer/AppContainer.js +22 -22
  41. package/templates/BasicPage/BasicPage.d.ts +1 -1
  42. package/templates/BasicPage/BasicPage.js +8 -8
  43. package/theme.d.ts +9 -5
  44. package/theme.js +9 -5
  45. package/base/Avatar/Avatar/index.d.ts +0 -1
  46. package/base/Avatar/Avatar/index.js +0 -4
  47. package/base/Avatar/AvatarWithImage/index.d.ts +0 -1
  48. package/composite/ContactCard/ContactCard.d.ts +0 -2
  49. package/composite/ContactListItem/ContactListItem.js +0 -1
  50. package/supercomposite/CompactNav/CompactNav.d.ts +0 -17
  51. package/supercomposite/CompactNav/CompactNav.js +0 -72
  52. package/supercomposite/CompactNav/index.d.ts +0 -1
  53. package/supercomposite/CompactNav/index.js +0 -4
  54. /package/base/Avatar/{Avatar/Avatar.d.ts → Avatar.d.ts} +0 -0
  55. /package/base/{Avatar/AvatarWithImage → AvatarWithImage}/AvatarWithImage.d.ts +0 -0
  56. /package/base/{Avatar/AvatarWithImage → AvatarWithImage}/index.js +0 -0
  57. /package/composite/{ContactListItem/ContactListItem.d.ts → List/List.d.ts} +0 -0
  58. /package/composite/{ContactCard/ContactCard.js → List/List.js} +0 -0
  59. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/NavItem.d.ts +0 -0
  60. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/NavItem.js +0 -0
  61. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLink.d.ts +0 -0
  62. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLink.js +0 -0
  63. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkButton.js +0 -0
  64. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkText.d.ts +0 -0
  65. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkText.js +0 -0
  66. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavMenu.js +0 -0
  67. /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/types.js +0 -0
  68. /package/supercomposite/{Nav → OldNav}/types.d.ts +0 -0
  69. /package/supercomposite/{Nav → OldNav}/types.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as C } from "react/jsx-runtime";
2
- import { NavLinkText as J } from "../supercomposite/Nav/subcomponents/NavItem/subcomponents/NavLinkText.js";
2
+ import { NavLinkText as J } from "../supercomposite/OldNav/subcomponents/NavItem/subcomponents/NavLinkText.js";
3
3
  import { l as K, N as Q } from "./NavLinkButton.js";
4
4
  import * as a from "react";
5
5
  import { g as w, a as k, s as L, u as O, c as x, P as e, b as U } from "./DefaultPropsProvider.js";
package/README.md CHANGED
@@ -1,28 +1,27 @@
1
1
  # Welcome to the Johnson County Component Library!
2
2
 
3
- ## Usage
3
+ ## Quick Start
4
4
 
5
5
  ### Runtime Enviromnent
6
6
 
7
7
  1. Please download and install [NVM for Windows](https://github.com/coreybutler/nvm-windows?tab=readme-ov-file)
8
- 2. Run `nvm install 20.18.0` to install the current LTS version of node
9
- 3. Run `nvm use 20`
8
+ 2. `nvm install 20.18.0`
9
+ 3. `nvm use 20`
10
10
 
11
- ### Quick Start
11
+ ### Usage
12
12
 
13
- #### Usage within an existing React project
13
+ `npm install jcicl@latest`
14
14
 
15
- To add the Johnson County Component Library to your React project, from the root directory of your project, please run `npm install jccomponentlibrary`
16
-
17
- ### Add the fonts
15
+ ```js
16
+ import Button, { ButtonProps } from 'jcicl/base/Button';
17
+ import Nav, { NavProps } from 'jcicl/supercomposite/Nav';
18
18
 
19
- ```console
20
- npm install @fontsource/roboto
21
- npm install @fontsource/material-icons
22
- npm install @mui/icons-material
19
+ const Component: React.FC<ButtonProps> = ({ ...buttonProps }) => <Button {...buttonProps}>Johnson County Button</Button>;
23
20
  ```
24
21
 
25
- Then, in your project entry (most likely `main.tsx`) point, add:
22
+ ### Adding the fonts
23
+
24
+ In your project entry point (most likely `main.tsx`), add:
26
25
 
27
26
  ```js
28
27
  import '@fontsource/roboto/300.css';
@@ -40,8 +39,6 @@ Alternatively, add to project root `index.html` `<head />`:
40
39
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" />
41
40
  ```
42
41
 
43
- **After installation, import any components you wish to use: `import { Component } from jccomponentlibrary`**
44
-
45
42
  #### Viewing Storybook Documentation
46
43
 
47
44
  We are using [Storybook](https://storybook.js.org/docs/get-started/frameworks/react-vite?renderer=react) to document our component library
@@ -1,8 +1,8 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { c } from "../../../.chunks/createSvgIcon.js";
3
- import { B as d } from "../../../.chunks/ButtonBase.js";
4
- import i from "../../../theme.js";
5
- import { n as a, i as l } from "../../../.chunks/emotion-styled.browser.esm.js";
2
+ import { c } from "../../.chunks/createSvgIcon.js";
3
+ import { B as d } from "../../.chunks/ButtonBase.js";
4
+ import i from "../../theme.js";
5
+ import { n as a, i as l } from "../../.chunks/emotion-styled.browser.esm.js";
6
6
  const m = c(/* @__PURE__ */ t("path", {
7
7
  d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
8
8
  }), "PersonOutlineOutlined"), s = a(m, {
@@ -1,2 +1 @@
1
- export { default as Avatar } from './Avatar';
2
- export { default as AvatarWithImage } from './AvatarWithImage';
1
+ export { default, type AvatarProps } from './Avatar';
@@ -1,6 +1,4 @@
1
- import { default as t } from "./Avatar/Avatar.js";
2
- import { AvatarWithImage as o } from "./AvatarWithImage/AvatarWithImage.js";
1
+ import { default as o } from "./Avatar.js";
3
2
  export {
4
- t as Avatar,
5
- o as AvatarWithImage
3
+ o as default
6
4
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { B as l } from "../../../.chunks/ButtonBase.js";
3
- import m from "../../../theme.js";
4
- import { n as d } from "../../../.chunks/emotion-styled.browser.esm.js";
2
+ import { B as l } from "../../.chunks/ButtonBase.js";
3
+ import m from "../../theme.js";
4
+ import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
5
5
  const s = d("img")(
6
6
  ({ borderColor: o = m.colors.darkGreen, size: r = 40, objectFit: e = "cover" }) => ({
7
7
  border: `1px solid ${o}`,
@@ -0,0 +1 @@
1
+ export { default, type AvatarWithImageProps } from './AvatarWithImage.tsx';
@@ -1,6 +1,6 @@
1
1
  import { jsxs as D, jsx as d } from "react/jsx-runtime";
2
- import * as b from "react";
3
- import { a as F, g as U, s as c, r as _, e, h as H, u as A, c as w, P as t, b as q, d as g } from "../../.chunks/DefaultPropsProvider.js";
2
+ import * as g from "react";
3
+ import { a as F, g as U, s as c, r as _, e, h as H, u as A, c as w, P as t, b as q, d as b } from "../../.chunks/DefaultPropsProvider.js";
4
4
  import { m as J } from "../../.chunks/memoTheme.js";
5
5
  import { c as K } from "../../.chunks/createSimplePaletteValueFilter.js";
6
6
  import { B as Q } from "../../.chunks/ButtonBase.js";
@@ -8,9 +8,9 @@ import i from "../../theme.js";
8
8
  function X(o) {
9
9
  return F("MuiButton", o);
10
10
  }
11
- const l = U("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), I = /* @__PURE__ */ b.createContext({});
11
+ const l = U("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), I = /* @__PURE__ */ g.createContext({});
12
12
  process.env.NODE_ENV !== "production" && (I.displayName = "ButtonGroupContext");
13
- const h = /* @__PURE__ */ b.createContext(void 0);
13
+ const h = /* @__PURE__ */ g.createContext(void 0);
14
14
  process.env.NODE_ENV !== "production" && (h.displayName = "ButtonGroupButtonContext");
15
15
  const Y = (o) => {
16
16
  const {
@@ -144,15 +144,15 @@ const Y = (o) => {
144
144
  style: {
145
145
  "--variant-textColor": (o.vars || o).palette[r].main,
146
146
  "--variant-outlinedColor": (o.vars || o).palette[r].main,
147
- "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / 0.5)` : g(o.palette[r].main, 0.5),
147
+ "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / 0.5)` : b(o.palette[r].main, 0.5),
148
148
  "--variant-containedColor": (o.vars || o).palette[r].contrastText,
149
149
  "--variant-containedBg": (o.vars || o).palette[r].main,
150
150
  "@media (hover: hover)": {
151
151
  "&:hover": {
152
152
  "--variant-containedBg": (o.vars || o).palette[r].dark,
153
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette[r].main, o.palette.action.hoverOpacity),
153
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette[r].main, o.palette.action.hoverOpacity),
154
154
  "--variant-outlinedBorder": (o.vars || o).palette[r].main,
155
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette[r].main, o.palette.action.hoverOpacity)
155
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[r].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette[r].main, o.palette.action.hoverOpacity)
156
156
  }
157
157
  }
158
158
  }
@@ -167,8 +167,8 @@ const Y = (o) => {
167
167
  "@media (hover: hover)": {
168
168
  "&:hover": {
169
169
  "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
170
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.text.primary, o.palette.action.hoverOpacity),
171
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.text.primary, o.palette.action.hoverOpacity)
170
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.text.primary, o.palette.action.hoverOpacity),
171
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : b(o.palette.text.primary, o.palette.action.hoverOpacity)
172
172
  }
173
173
  }
174
174
  }
@@ -296,8 +296,8 @@ const Y = (o) => {
296
296
  marginRight: -2
297
297
  }
298
298
  }, ...O]
299
- }), R = /* @__PURE__ */ b.forwardRef(function(a, n) {
300
- const r = b.useContext(I), s = b.useContext(h), p = H(r, a), u = A({
299
+ }), R = /* @__PURE__ */ g.forwardRef(function(a, n) {
300
+ const r = g.useContext(I), s = g.useContext(h), p = H(r, a), u = A({
301
301
  props: p,
302
302
  name: "MuiButton"
303
303
  }), {
@@ -453,10 +453,6 @@ const E = c(R)`
453
453
  justify-content: center;
454
454
  align-items: center;
455
455
  }
456
-
457
- p {
458
- margin: 0;
459
- }
460
456
  `, ao = c(E)`
461
457
  background-color: ${i.colors.green};
462
458
  border-radius: 0;
@@ -481,7 +477,7 @@ const E = c(R)`
481
477
  color: ${i.colors.black};
482
478
  border: 3px solid ${i.colors.blue};
483
479
  padding: 0.5rem 2rem;
484
- `, po = ({ variant: o = 1, children: a, ...n }) => o === 2 ? /* @__PURE__ */ d(no, { ...n, children: /* @__PURE__ */ d("p", { children: a }) }) : /* @__PURE__ */ d(ao, { ...n, children: /* @__PURE__ */ d("p", { children: a }) });
480
+ `, po = ({ variant: o = 1, children: a, ...n }) => o === 2 ? /* @__PURE__ */ d(no, { ...n, children: /* @__PURE__ */ d("span", { children: a }) }) : /* @__PURE__ */ d(ao, { ...n, children: /* @__PURE__ */ d("span", { children: a }) });
485
481
  export {
486
482
  po as Button,
487
483
  po as default
@@ -1 +1 @@
1
- export { default } from './Divider';
1
+ export { default, type DividerProps } from './Divider';
package/base/Flex/Flex.js CHANGED
@@ -1,9 +1,9 @@
1
- import { jsx as m } from "react/jsx-runtime";
1
+ import { jsx as d } from "react/jsx-runtime";
2
2
  import { n as x, i as p } from "../../.chunks/emotion-styled.browser.esm.js";
3
3
  const w = x("div", {
4
4
  shouldForwardProp: (t) => p(t) && typeof t == "string" && t !== "wrap"
5
5
  })(
6
- ({ column: t, alignItems: r, justifyContent: n, center: e, wrap: s, full: o, width: l, height: f, styles: d, padding: a, gap: i }) => ({
6
+ ({ column: t, alignItems: r, justifyContent: n, center: e, wrap: s, full: o, width: l, height: f, styles: m, padding: a, gap: i }) => ({
7
7
  display: "flex",
8
8
  flexDirection: t ? "column" : "row",
9
9
  flexWrap: s ? "wrap" : "nowrap",
@@ -13,9 +13,10 @@ const w = x("div", {
13
13
  height: f ?? (o ? "100%" : "auto"),
14
14
  gap: i ? `${i}rem` : 0,
15
15
  padding: a ? `${a}rem` : 0,
16
- ...d
16
+ fontFamily: "Roboto, sans-serif",
17
+ ...m
17
18
  })
18
- ), h = ({ children: t, ...r }) => /* @__PURE__ */ m(w, { ...r, children: t });
19
+ ), y = ({ children: t, ...r }) => /* @__PURE__ */ d(w, { ...r, children: t });
19
20
  export {
20
- h as default
21
+ y as default
21
22
  };
@@ -1 +1 @@
1
- export { default } from './Flex';
1
+ export { default, type FlexProps } from './Flex';
@@ -1 +1 @@
1
- export { default } from './Grid';
1
+ export { default, type GridProps } from './Grid';
@@ -0,0 +1,10 @@
1
+ interface ScrollContainerProps {
2
+ width?: string;
3
+ height?: string;
4
+ direction?: 'vertical' | 'horizontal' | 'all';
5
+ }
6
+ declare const ScrollContainer: import('@emotion/styled').StyledComponent<{
7
+ theme?: import('@emotion/react').Theme;
8
+ as?: React.ElementType;
9
+ } & ScrollContainerProps, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export default ScrollContainer;
@@ -0,0 +1,42 @@
1
+ import { n as r } from "../../.chunks/emotion-styled.browser.esm.js";
2
+ import l from "../../theme.js";
3
+ const n = r("div")(
4
+ ({ width: e = "100%", height: o = "100%", direction: i = "vertical" }) => ({
5
+ width: e,
6
+ minWidth: e,
7
+ height: o,
8
+ overflowY: i === "all" || i === "vertical" ? "auto" : "hidden",
9
+ overflowX: i === "all" || i === "horizontal" ? "auto" : "hidden",
10
+ visibility: "hidden",
11
+ transition: "313ms all ease-in-out",
12
+ "&:hover ,:focus": {
13
+ visibility: "visible"
14
+ },
15
+ "*": {
16
+ visibility: "visible"
17
+ },
18
+ "@media screen and (-webkit-min-device-pixel-ratio:0)": {
19
+ backgroundColor: "transparent",
20
+ "-webkit-background-clip": "text",
21
+ transition: "313ms all ease-in-out",
22
+ "::-webkit-scrollbar": {
23
+ width: "6px",
24
+ height: "6px",
25
+ overflow: "visible"
26
+ },
27
+ "::-webkit-scrollbar-track": {
28
+ display: "none"
29
+ },
30
+ "::-webkit-scrollbar-thumb": {
31
+ backgroundColor: "inherit",
32
+ borderRadius: "6px"
33
+ },
34
+ "&:hover": {
35
+ backgroundColor: l.colors.darkGreenO99
36
+ }
37
+ }
38
+ })
39
+ );
40
+ export {
41
+ n as default
42
+ };
package/base/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { default as Avatar } from './Avatar/Avatar';
2
- export { default as AvatarWithImage } from './Avatar/AvatarWithImage';
1
+ export { default as Avatar } from './Avatar';
2
+ export { default as AvatarWithImage } from './AvatarWithImage';
3
3
  export { default as Button } from './Button';
4
4
  export { default as Divider } from './Divider';
5
5
  export { default as Flex } from './Flex';
package/base/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { default as t } from "./Avatar/Avatar/Avatar.js";
2
- import { AvatarWithImage as a } from "./Avatar/AvatarWithImage/AvatarWithImage.js";
1
+ import { default as t } from "./Avatar/Avatar.js";
2
+ import { AvatarWithImage as a } from "./AvatarWithImage/AvatarWithImage.js";
3
3
  import { Button as m } from "./Button/Button.js";
4
4
  import { Divider as x } from "./Divider/Divider.js";
5
5
  import { default as i } from "./Flex/Flex.js";
@@ -0,0 +1,6 @@
1
+ export interface WithLabelProps {
2
+ label: string;
3
+ component: JSX.Element;
4
+ }
5
+ declare const WithLabel: React.FC<WithLabelProps>;
6
+ export default WithLabel;
@@ -0,0 +1,9 @@
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: [
4
+ /* @__PURE__ */ e("div", { id: r, children: t }),
5
+ /* @__PURE__ */ e("label", { htmlFor: r, children: r })
6
+ ] });
7
+ export {
8
+ l as default
9
+ };
@@ -0,0 +1 @@
1
+ export { default, type WithLabelProps } from './WithLabel';
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./WithLabel.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1 @@
1
+ export { default as WithLabel } from './WithLabel';
@@ -0,0 +1,4 @@
1
+ import { default as t } from "./WithLabel/WithLabel.js";
2
+ export {
3
+ t as WithLabel
4
+ };
package/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { Avatar, AvatarWithImage, Button, Divider, Flex, Grid } from './base';
2
- export { AppBar, Nav, type NavProps, type NavItemProps } from './supercomposite';
2
+ export { AppHeader, Nav } from './supercomposite';
3
3
  export { AppContainer, BasicPage } from './templates';
package/index.js CHANGED
@@ -1,24 +1,24 @@
1
- import { default as a } from "./base/Avatar/Avatar/Avatar.js";
2
- import { AvatarWithImage as f } from "./base/Avatar/AvatarWithImage/AvatarWithImage.js";
1
+ import { default as a } from "./base/Avatar/Avatar.js";
2
+ import { AvatarWithImage as f } from "./base/AvatarWithImage/AvatarWithImage.js";
3
3
  import { Button as x } from "./base/Button/Button.js";
4
- import { Divider as d } from "./base/Divider/Divider.js";
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 { AppBar as n } from "./supercomposite/AppBar/AppBar.js";
9
- import "./supercomposite/AppHeader/AppHeader.js";
10
- import { Nav as g } from "./supercomposite/Nav/Nav.js";
8
+ 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
11
  import { default as h } from "./templates/AppContainer/AppContainer.js";
12
12
  import { default as D } from "./templates/BasicPage/BasicPage.js";
13
13
  export {
14
- n as AppBar,
15
14
  h as AppContainer,
15
+ n as AppHeader,
16
16
  a as Avatar,
17
17
  f as AvatarWithImage,
18
18
  D as BasicPage,
19
19
  x as Button,
20
- d as Divider,
20
+ i as Divider,
21
21
  s as Flex,
22
22
  v as Grid,
23
- g as Nav
23
+ B as Nav
24
24
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.22",
4
+ "version": "0.0.23",
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",
@@ -338,7 +338,7 @@ const E = y(w)({
338
338
  position: "sticky",
339
339
  top: "0",
340
340
  zIndex: 1e3,
341
- height: `${f.constants.appBarHeight}px`
341
+ height: `${f.constants.oldAppBarHeight}px`
342
342
  }), G = y(S)(() => ({
343
343
  display: "flex",
344
344
  width: "calc(100% - 3rem)",
@@ -1,31 +1,31 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { useState as a } from "react";
2
+ import { useState as s } from "react";
3
3
  import { n } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import o from "../../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")({
4
+ import e from "../../theme.js";
5
+ import { l as a } from "../../.chunks/jocologo.js";
6
+ import { Input as m } from "../../base/Input/Input.js";
7
+ import { Button as c } from "../../base/Button/Button.js";
8
+ import d from "../../base/Avatar/Avatar.js";
9
+ const l = n("div")({
10
10
  display: "grid",
11
11
  flexDirection: "row",
12
12
  padding: "4px 16px",
13
13
  backgroundColor: "transparent",
14
14
  alignItems: "center",
15
15
  justifyContent: "space-between",
16
- gridTemplateColumns: `minmax(${o.constants.appSideNavWidth + o.constants.appInnerNavWidth}px, 1fr) 2fr 1fr`
17
- }), l = n("img")({
16
+ gridTemplateColumns: `minmax(${e.constants.navWidth + e.constants.actionsPaneWidth}px, 1fr) 2fr 1fr`
17
+ }), p = n("img")({
18
18
  width: "36px"
19
19
  }), f = n("div")({}), g = n("div")({
20
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" }) })
21
+ }), y = () => {
22
+ const [r, o] = s(!1);
23
+ return /* @__PURE__ */ i(l, { children: [
24
+ /* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(p, { src: a }) }),
25
+ /* @__PURE__ */ t(m, { placeholder: "Search..." }),
26
+ /* @__PURE__ */ t(g, { children: r ? /* @__PURE__ */ t(d, { onClick: () => o(!1) }) : /* @__PURE__ */ t(c, { onClick: () => o(!0), children: "Log In" }) })
27
27
  ] });
28
28
  };
29
29
  export {
30
- w as default
30
+ y as default
31
31
  };
@@ -1,13 +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 {
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 {
6
9
  navItems: NavItemProps[];
7
- anchor?: MenuPosition;
8
- collapsible?: boolean;
9
- withAppBar?: boolean;
10
- collapsed?: boolean;
10
+ activeRoute?: string;
11
11
  }
12
- export declare const Nav: FC<NavProps>;
12
+ export declare const Nav: React.FC<NavProps>;
13
13
  export default Nav;