jcicl 0.0.19 → 0.0.21

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,5 +1,5 @@
1
1
  import { n as $, i as L } from "./emotion-styled.browser.esm.js";
2
- import C from "../assets/theme.js";
2
+ import C from "../theme.js";
3
3
  import * as p from "react";
4
4
  import { g as P, a as S, s as T, r as h, u as j, c as I, P as e, b as E, d as u } from "./DefaultPropsProvider.js";
5
5
  import { m as G } from "./memoTheme.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { c } from "../../../.chunks/createSvgIcon.js";
3
3
  import { B as d } from "../../../.chunks/ButtonBase.js";
4
- import i from "../../../assets/theme.js";
4
+ import i from "../../../theme.js";
5
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"
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { B as l } from "../../../.chunks/ButtonBase.js";
3
- import m from "../../../assets/theme.js";
3
+ import m from "../../../theme.js";
4
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" }) => ({
@@ -4,7 +4,7 @@ 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
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";
7
- import i from "../../assets/theme.js";
7
+ import i from "../../theme.js";
8
8
  function X(o) {
9
9
  return F("MuiButton", o);
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import { DividerProps as MuiDividerProps } from '@mui/material/Divider';
2
- import { default as theme } from '../../../../../../../../../src/assets/theme';
2
+ import { default as theme } from '../../../../../../../../../src/components/theme';
3
3
  export interface DividerProps extends MuiDividerProps {
4
4
  color?: keyof typeof theme.colors;
5
5
  opacity?: number;
@@ -1,6 +1,6 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { n as D, i as A } from "../../.chunks/emotion-styled.browser.esm.js";
3
- import u from "../../assets/theme.js";
3
+ import u from "../../theme.js";
4
4
  import * as S from "react";
5
5
  import { g as R, a as T, s as m, u as L, c as W, P as r, b as $, d as I } from "../../.chunks/DefaultPropsProvider.js";
6
6
  import { m as b } from "../../.chunks/memoTheme.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as ce, jsx as S } from "react/jsx-runtime";
2
2
  import { n as Ao } from "../../.chunks/emotion-styled.browser.esm.js";
3
- import we from "../../assets/theme.js";
3
+ import we from "../../theme.js";
4
4
  import * as i from "react";
5
5
  import { h as Bo, l as Wo, T as Do, P as e, g as Q, a as ee, e as _, s as F, u as fe, c as le, b as oe, m as To, r as ye, n as so, o as Uo, q as Vo } from "../../.chunks/DefaultPropsProvider.js";
6
6
  import { o as co, d as Ho, f as qo, M as _o, a as Ko, h as We } from "../../.chunks/Menu.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.19",
4
+ "version": "0.0.21",
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",
@@ -3,7 +3,7 @@ import { Input as R } from "../../base/Input/Input.js";
3
3
  import { Button as j } from "../../base/Button/Button.js";
4
4
  import { n as y } from "../../.chunks/emotion-styled.browser.esm.js";
5
5
  import { l as I } from "../../.chunks/jocologo.js";
6
- import f from "../../assets/theme.js";
6
+ import f from "../../theme.js";
7
7
  import * as v from "react";
8
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
9
  import { m as C } from "../../.chunks/memoTheme.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as a } from "react";
3
3
  import { n } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import o from "../../assets/theme.js";
4
+ import o from "../../theme.js";
5
5
  import { l as s } from "../../.chunks/jocologo.js";
6
6
  import { Input as p } from "../../base/Input/Input.js";
7
7
  import { Button as m } from "../../base/Button/Button.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as f } from "react/jsx-runtime";
2
2
  import { useState as m } from "react";
3
3
  import { n as i, i as u } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import o from "../../assets/theme.js";
4
+ import o from "../../theme.js";
5
5
  import { B as x } from "../../.chunks/ButtonBase.js";
6
6
  const h = i("div")({
7
7
  display: "flex",
@@ -3,7 +3,7 @@ import * as x from "react";
3
3
  import { useState as ce, createElement as de } from "react";
4
4
  import { n as q } from "../../.chunks/emotion-styled.browser.esm.js";
5
5
  import { c as J } from "../../.chunks/createSvgIcon.js";
6
- import v from "../../assets/theme.js";
6
+ import v from "../../theme.js";
7
7
  import { Divider as fe } from "../../base/Divider/Divider.js";
8
8
  import { NavItem as U } from "./subcomponents/NavItem/NavItem.js";
9
9
  import { C as ue } from "../../.chunks/NavLinkButton.js";
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { Divider as a } from "../../../../base/Divider/Divider.js";
3
3
  import { N as l } from "../../../../.chunks/NavLink.js";
4
4
  import { NavMenu as n } from "./subcomponents/NavMenu.js";
5
- import c from "../../../../assets/theme.js";
5
+ import c from "../../../../theme.js";
6
6
  const v = ({
7
7
  type: i = "link",
8
8
  menuOrientation: r,
@@ -1,5 +1,5 @@
1
1
  import "../../../../../.chunks/emotion-styled.browser.esm.js";
2
- import "../../../../../assets/theme.js";
2
+ import "../../../../../theme.js";
3
3
  import { C as r, N as s, N as e } from "../../../../../.chunks/NavLinkButton.js";
4
4
  export {
5
5
  r as CollapseButton,
@@ -6,7 +6,7 @@ import { N as le } from "../../../../../.chunks/NavLinkButton.js";
6
6
  import { NavLinkText as pe } from "./NavLinkText.js";
7
7
  import { Divider as ce } from "../../../../../base/Divider/Divider.js";
8
8
  import { L as de, N as ue } from "../../../../../.chunks/NavLink.js";
9
- import K from "../../../../../assets/theme.js";
9
+ import K from "../../../../../theme.js";
10
10
  import { u as he, T as fe, g as V, L as me, M as ge } from "../../../../../.chunks/Menu.js";
11
11
  import { c as Q } from "../../../../../.chunks/createSvgIcon.js";
12
12
  import { g as xe, a as ye, s as O, u as we, c as Ee, P as e, b as ze, f as be } from "../../../../../.chunks/DefaultPropsProvider.js";
@@ -1,8 +1,8 @@
1
- import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
- import l from "../../supercomposite/AppHeader/AppHeader.js";
1
+ import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
+ import n from "../../supercomposite/AppHeader/AppHeader.js";
3
3
  import { CompactNav as s } from "../../supercomposite/CompactNav/CompactNav.js";
4
4
  import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
5
- import r from "../../assets/theme.js";
5
+ import r from "../../theme.js";
6
6
  const c = d("div")({
7
7
  display: "flex",
8
8
  flexDirection: "column",
@@ -21,7 +21,7 @@ const c = d("div")({
21
21
  padding: "4px 2px",
22
22
  paddingLeft: 0,
23
23
  height: `calc(100% - ${r.constants.appHeaderHeight}px - 8px)`
24
- }), h = d("div")(({ withActionsPanel: o }) => ({
24
+ }), m = d("div")(({ withActionsPanel: o }) => ({
25
25
  display: "flex",
26
26
  flexDirection: "column",
27
27
  opacity: o ? 1 : 0,
@@ -30,7 +30,7 @@ const c = d("div")({
30
30
  borderRadius: "4px",
31
31
  borderTopRightRadius: 0,
32
32
  borderBottomRightRadius: 0,
33
- height: "calc(100% - 32px)",
33
+ height: o ? "calc(100% - 32px)" : "100%",
34
34
  padding: o ? "1rem" : 0,
35
35
  backgroundColor: r.colors.darkGreenO22,
36
36
  color: r.colors.white,
@@ -39,7 +39,7 @@ const c = d("div")({
39
39
  ...!o && {
40
40
  border: "none"
41
41
  }
42
- })), m = d("div")(({ withActionsPanel: o }) => ({
42
+ })), f = d("div")(({ withActionsPanel: o }) => ({
43
43
  display: "flex",
44
44
  backgroundColor: r.colors.whiteGreen,
45
45
  borderRadius: "4px",
@@ -54,17 +54,17 @@ const c = d("div")({
54
54
  }
55
55
  })), R = ({
56
56
  navProps: o,
57
- appHeaderProps: n,
57
+ appHeaderProps: a,
58
58
  actionsPanelContent: e,
59
- children: p
59
+ children: l
60
60
  }) => {
61
61
  const t = e != null;
62
- return /* @__PURE__ */ a(c, { children: [
63
- /* @__PURE__ */ i(l, { ...n }),
64
- /* @__PURE__ */ a(x, { children: [
62
+ return /* @__PURE__ */ p(c, { children: [
63
+ /* @__PURE__ */ i(n, { ...a }),
64
+ /* @__PURE__ */ p(x, { children: [
65
65
  /* @__PURE__ */ i(s, { ...o }),
66
- /* @__PURE__ */ i(h, { withActionsPanel: t, children: e && e }),
67
- /* @__PURE__ */ i(m, { withActionsPanel: t, children: p })
66
+ /* @__PURE__ */ i(m, { withActionsPanel: t, children: e && e }),
67
+ /* @__PURE__ */ i(f, { withActionsPanel: t, children: l })
68
68
  ] })
69
69
  ] });
70
70
  };
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { AppBar as s } from "../../supercomposite/AppBar/AppBar.js";
3
3
  import { Nav as p } from "../../supercomposite/Nav/Nav.js";
4
4
  import { n as a } from "../../.chunks/emotion-styled.browser.esm.js";
5
- import r from "../../assets/theme.js";
5
+ import r from "../../theme.js";
6
6
  const l = a("div")({
7
7
  display: "flex",
8
8
  flexDirection: "column",
package/theme.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ export interface Theme {
2
+ colors: {
3
+ black: string;
4
+ blue: string;
5
+ charcoal: string;
6
+ darkBlue: string;
7
+ darkGreen: string;
8
+ darkGreenO22: string;
9
+ darkRed: string;
10
+ gold: string;
11
+ gray: string;
12
+ veryLightGray: string;
13
+ grayO44: string;
14
+ green: string;
15
+ midnight: string;
16
+ mint: string;
17
+ sunlight: string;
18
+ white: string;
19
+ whiteGreen: string;
20
+ whiteGreen2: string;
21
+ };
22
+ constants: {
23
+ appBarHeight: number;
24
+ appHeaderHeight: number;
25
+ appInnerNavWidth: number;
26
+ appSideNavWidth: number;
27
+ navBarWidth: number;
28
+ };
29
+ }
30
+ declare const theme: Theme;
31
+ export default theme;
File without changes