jcicl 0.0.21 → 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,14 +1,14 @@
1
1
  import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
2
  import n from "../../supercomposite/AppHeader/AppHeader.js";
3
- import { CompactNav as s } from "../../supercomposite/CompactNav/CompactNav.js";
3
+ import { Nav as s } from "../../supercomposite/Nav/Nav.js";
4
4
  import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
5
- import r from "../../theme.js";
5
+ import o from "../../theme.js";
6
6
  const c = d("div")({
7
7
  display: "flex",
8
8
  flexDirection: "column",
9
9
  width: "100%",
10
10
  position: "relative",
11
- backgroundColor: r.colors.whiteGreen2,
11
+ backgroundColor: o.colors.whiteGreen2,
12
12
  height: "100vh",
13
13
  fontFamily: "Roboto, sans-serif",
14
14
  overflow: "hidden"
@@ -20,32 +20,32 @@ const c = d("div")({
20
20
  width: "calc(100% - 2px)",
21
21
  padding: "4px 2px",
22
22
  paddingLeft: 0,
23
- height: `calc(100% - ${r.constants.appHeaderHeight}px - 8px)`
24
- }), m = d("div")(({ withActionsPanel: o }) => ({
23
+ height: `calc(100% - ${o.constants.appHeaderHeight}px - 8px)`
24
+ }), f = d("div")(({ withActionsPanel: r }) => ({
25
25
  display: "flex",
26
26
  flexDirection: "column",
27
- opacity: o ? 1 : 0,
28
- border: `1px solid ${r.colors.green}`,
27
+ opacity: r ? 1 : 0,
28
+ border: `1px solid ${o.colors.green}`,
29
29
  borderRight: 0,
30
30
  borderRadius: "4px",
31
31
  borderTopRightRadius: 0,
32
32
  borderBottomRightRadius: 0,
33
- height: o ? "calc(100% - 32px)" : "100%",
34
- padding: o ? "1rem" : 0,
35
- backgroundColor: r.colors.darkGreenO22,
36
- color: r.colors.white,
37
- width: o ? "400px" : 0,
33
+ height: r ? "calc(100% - 32px)" : "100%",
34
+ padding: r ? "1rem" : 0,
35
+ backgroundColor: o.colors.darkGreenO22,
36
+ color: o.colors.white,
37
+ width: r ? "400px" : 0,
38
38
  transition: "313ms all ease-in-out",
39
- ...!o && {
39
+ ...!r && {
40
40
  border: "none"
41
41
  }
42
- })), f = d("div")(({ withActionsPanel: o }) => ({
42
+ })), h = d("div")(({ withActionsPanel: r }) => ({
43
43
  display: "flex",
44
- backgroundColor: r.colors.whiteGreen,
44
+ backgroundColor: o.colors.whiteGreen,
45
45
  borderRadius: "4px",
46
- borderBottomLeftRadius: o ? 0 : "4px",
47
- borderTopLeftRadius: o ? 0 : "4px",
48
- border: `1px solid ${r.colors.green}`,
46
+ borderBottomLeftRadius: r ? 0 : "4px",
47
+ borderTopLeftRadius: r ? 0 : "4px",
48
+ border: `1px solid ${o.colors.green}`,
49
49
  width: "100%",
50
50
  height: "calc(100% - 2rem)",
51
51
  padding: "1rem",
@@ -53,7 +53,7 @@ const c = d("div")({
53
53
  margin: 0
54
54
  }
55
55
  })), R = ({
56
- navProps: o,
56
+ navProps: r,
57
57
  appHeaderProps: a,
58
58
  actionsPanelContent: e,
59
59
  children: l
@@ -62,9 +62,9 @@ const c = d("div")({
62
62
  return /* @__PURE__ */ p(c, { children: [
63
63
  /* @__PURE__ */ i(n, { ...a }),
64
64
  /* @__PURE__ */ p(x, { children: [
65
- /* @__PURE__ */ i(s, { ...o }),
66
- /* @__PURE__ */ i(m, { withActionsPanel: t, children: e && e }),
67
- /* @__PURE__ */ i(f, { withActionsPanel: t, children: l })
65
+ /* @__PURE__ */ i(s, { ...r }),
66
+ /* @__PURE__ */ i(f, { withActionsPanel: t, children: e && e }),
67
+ /* @__PURE__ */ i(h, { withActionsPanel: t, children: l })
68
68
  ] })
69
69
  ] });
70
70
  };
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { AppBarProps } from '../../../../../../../../../src/components/supercomposite/AppBar';
3
- import { NavProps } from '../../../../../../../../../src/components/supercomposite/Nav';
3
+ import { NavProps } from '../../../../../../../../../src/components/supercomposite/OldNav';
4
4
  export interface BasicPageProps {
5
5
  appBarProps?: AppBarProps;
6
6
  navProps: NavProps;
@@ -1,6 +1,6 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
2
  import { AppBar as s } from "../../supercomposite/AppBar/AppBar.js";
3
- import { Nav as p } from "../../supercomposite/Nav/Nav.js";
3
+ import { Nav as p } from "../../supercomposite/OldNav/Nav.js";
4
4
  import { n as a } from "../../.chunks/emotion-styled.browser.esm.js";
5
5
  import r from "../../theme.js";
6
6
  const l = a("div")({
@@ -13,18 +13,18 @@ const l = a("div")({
13
13
  flexDirection: "column",
14
14
  justifyContent: "flex-start",
15
15
  alignItems: "flex-start",
16
- width: `calc(100% - 2rem - ${r.constants.navBarWidth}px)`,
17
- marginLeft: `${r.constants.navBarWidth}px`,
16
+ width: `calc(100% - 2rem - ${r.constants.oldNavBarWidth}px)`,
17
+ marginLeft: `${r.constants.oldNavBarWidth}px`,
18
18
  padding: "1rem",
19
- height: `calc(100% - ${r.constants.appBarHeight}px)`,
19
+ height: `calc(100% - ${r.constants.oldAppBarHeight}px)`,
20
20
  fontFamily: "Roboto, sans-serif",
21
21
  h1: {
22
22
  margin: 0
23
23
  }
24
- }), g = ({ appBarProps: e, navProps: i, children: n }) => /* @__PURE__ */ o(l, { children: [
24
+ }), g = ({ appBarProps: e, navProps: o, children: i }) => /* @__PURE__ */ n(l, { children: [
25
25
  /* @__PURE__ */ t(s, { ...e }),
26
- /* @__PURE__ */ t(p, { withAppBar: !0, ...i, anchor: "left" }),
27
- /* @__PURE__ */ t(m, { children: n })
26
+ /* @__PURE__ */ t(p, { withAppBar: !0, ...o, anchor: "left" }),
27
+ /* @__PURE__ */ t(m, { children: i })
28
28
  ] });
29
29
  export {
30
30
  g as default
package/theme.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  export interface Theme {
2
+ boxShadow?: {
3
+ darkGreen: string;
4
+ };
2
5
  colors: {
3
6
  black: string;
4
7
  blue: string;
@@ -6,6 +9,7 @@ export interface Theme {
6
9
  darkBlue: string;
7
10
  darkGreen: string;
8
11
  darkGreenO22: string;
12
+ darkGreenO99: string;
9
13
  darkRed: string;
10
14
  gold: string;
11
15
  gray: string;
@@ -20,12 +24,12 @@ export interface Theme {
20
24
  whiteGreen2: string;
21
25
  };
22
26
  constants: {
23
- appBarHeight: number;
27
+ actionsPaneWidth: number;
24
28
  appHeaderHeight: number;
25
- appInnerNavWidth: number;
26
- appSideNavWidth: number;
27
- navBarWidth: number;
29
+ navWidth: number;
30
+ oldAppBarHeight: number;
31
+ oldNavBarWidth: number;
28
32
  };
29
33
  }
30
- declare const theme: Theme;
34
+ declare let theme: Theme;
31
35
  export default theme;
package/theme.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = {
1
+ let e = {
2
2
  colors: {
3
3
  black: "black",
4
4
  blue: "#1976d2",
@@ -6,6 +6,7 @@ const e = {
6
6
  darkBlue: "#10517c",
7
7
  darkGreen: "#005c00",
8
8
  darkGreenO22: "#005c0022",
9
+ darkGreenO99: "#005c0099",
9
10
  darkRed: "#800000",
10
11
  gold: "#fab62d",
11
12
  gray: "#727272",
@@ -20,13 +21,16 @@ const e = {
20
21
  veryLightGray: "#fafafa"
21
22
  },
22
23
  constants: {
23
- appBarHeight: 92,
24
24
  appHeaderHeight: 54,
25
- appInnerNavWidth: 201,
26
- appSideNavWidth: 64,
27
- navBarWidth: 290
25
+ actionsPaneWidth: 201,
26
+ navWidth: 75,
27
+ oldAppBarHeight: 92,
28
+ oldNavBarWidth: 290
28
29
  }
29
30
  };
31
+ e.boxShadow = {
32
+ darkGreen: `0 0 8px -2px ${e.colors.darkGreen}`
33
+ };
30
34
  export {
31
35
  e as default
32
36
  };
@@ -1 +0,0 @@
1
- export { default } from './Avatar';
@@ -1,4 +0,0 @@
1
- import { default as o } from "./Avatar.js";
2
- export {
3
- o as default
4
- };
@@ -1 +0,0 @@
1
- export { default } from './AvatarWithImage.tsx';
@@ -1,2 +0,0 @@
1
- export interface ContactCardProps {
2
- }
@@ -1,17 +0,0 @@
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,72 +0,0 @@
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 "../../theme.js";
5
- import { B as x } from "../../.chunks/ButtonBase.js";
6
- const h = i("div")({
7
- display: "flex",
8
- flexDirection: "column",
9
- backgroundColor: "transparent",
10
- alignItems: "center",
11
- justifyContent: "flex-start",
12
- maxHeight: "100%",
13
- overflowY: "hidden",
14
- flexShrink: 0,
15
- gap: "1rem",
16
- "&:hover": {
17
- overflowY: "auto",
18
- scrollbarColor: `${o.colors.darkGreen} ${o.colors.whiteGreen}`,
19
- scrollbarWidth: "thin",
20
- "&::webkit-scrollbar-thumb": {
21
- borderRadius: "8px"
22
- }
23
- }
24
- }), g = i(x, {
25
- shouldForwardProp: (r) => u(r)
26
- })(({ active: r }) => ({
27
- display: "flex",
28
- flexDirection: "column",
29
- alignItems: "center",
30
- justifyContent: "center",
31
- padding: "0 8px 8px 8px",
32
- transition: "313ms all ease-in-out",
33
- backgroundColor: r ? o.colors.sunlight : "transparent",
34
- boxShadow: r ? `0 0 8px -2px ${o.colors.darkGreen}` : "none",
35
- "&:hover, :focus-visible": {
36
- svg: {
37
- backgroundColor: o.colors.sunlight
38
- }
39
- },
40
- svg: {
41
- fontSize: "2.1rem",
42
- fill: o.colors.darkGreen,
43
- backgroundColor: r ? o.colors.sunlight : "transparent",
44
- borderRadius: "50%",
45
- padding: "8px",
46
- display: "flex",
47
- alignItems: "center",
48
- justifyContent: "center",
49
- transition: "313ms all ease-in-out"
50
- },
51
- span: {
52
- fontFamily: "Roboto, sans-serif",
53
- fontSize: "12px",
54
- fontWeight: "bold",
55
- color: o.colors.darkGreen,
56
- textAlign: "center"
57
- }
58
- })), S = ({ navItems: r, activeRoute: n }) => {
59
- const [a, l] = m(""), c = (e, t) => {
60
- l(e), t();
61
- };
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
- /* @__PURE__ */ s("span", { children: t })
66
- ] }, t)) });
67
- };
68
- export {
69
- S as CompactNav,
70
- h as Container,
71
- S as default
72
- };
@@ -1 +0,0 @@
1
- export { default, type NavItemProps } from './CompactNav';
@@ -1,4 +0,0 @@
1
- import { CompactNav as t } from "./CompactNav.js";
2
- export {
3
- t as default
4
- };
File without changes
File without changes
File without changes