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.
- package/.chunks/NavLink.js +1 -1
- package/README.md +12 -15
- package/base/Avatar/{Avatar/Avatar.js → Avatar.js} +4 -4
- package/base/Avatar/index.d.ts +1 -2
- package/base/Avatar/index.js +2 -4
- package/base/{Avatar/AvatarWithImage → AvatarWithImage}/AvatarWithImage.js +3 -3
- package/base/AvatarWithImage/index.d.ts +1 -0
- package/base/Button/Button.js +12 -16
- package/base/Divider/index.d.ts +1 -1
- package/base/Flex/Flex.js +6 -5
- package/base/Flex/index.d.ts +1 -1
- package/base/Grid/index.d.ts +1 -1
- package/base/ScrollContainer/ScrollContainer.d.ts +10 -0
- package/base/ScrollContainer/ScrollContainer.js +42 -0
- package/base/index.d.ts +2 -2
- package/base/index.js +2 -2
- package/composite/WithLabel/WithLabel.d.ts +6 -0
- package/composite/WithLabel/WithLabel.js +9 -0
- package/composite/WithLabel/index.d.ts +1 -0
- package/composite/WithLabel/index.js +4 -0
- package/composite/index.d.ts +1 -0
- package/composite/index.js +4 -0
- package/index.d.ts +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/supercomposite/AppBar/AppBar.js +1 -1
- package/supercomposite/AppHeader/AppHeader.js +16 -16
- package/supercomposite/Nav/Nav.d.ts +10 -10
- package/supercomposite/Nav/Nav.js +76 -614
- package/supercomposite/Nav/index.d.ts +1 -2
- package/supercomposite/OldNav/Nav.d.ts +13 -0
- package/supercomposite/OldNav/Nav.js +626 -0
- package/supercomposite/OldNav/index.d.ts +2 -0
- package/supercomposite/OldNav/index.js +4 -0
- package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkButton.d.ts +1 -1
- package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavMenu.d.ts +1 -1
- package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/types.d.ts +1 -1
- package/supercomposite/index.d.ts +1 -1
- package/templates/AppContainer/AppContainer.d.ts +1 -1
- package/templates/AppContainer/AppContainer.js +22 -22
- package/templates/BasicPage/BasicPage.d.ts +1 -1
- package/templates/BasicPage/BasicPage.js +8 -8
- package/theme.d.ts +9 -5
- package/theme.js +9 -5
- package/base/Avatar/Avatar/index.d.ts +0 -1
- package/base/Avatar/Avatar/index.js +0 -4
- package/base/Avatar/AvatarWithImage/index.d.ts +0 -1
- package/composite/ContactCard/ContactCard.d.ts +0 -2
- package/composite/ContactListItem/ContactListItem.js +0 -1
- package/supercomposite/CompactNav/CompactNav.d.ts +0 -17
- package/supercomposite/CompactNav/CompactNav.js +0 -72
- package/supercomposite/CompactNav/index.d.ts +0 -1
- package/supercomposite/CompactNav/index.js +0 -4
- /package/base/Avatar/{Avatar/Avatar.d.ts → Avatar.d.ts} +0 -0
- /package/base/{Avatar/AvatarWithImage → AvatarWithImage}/AvatarWithImage.d.ts +0 -0
- /package/base/{Avatar/AvatarWithImage → AvatarWithImage}/index.js +0 -0
- /package/composite/{ContactListItem/ContactListItem.d.ts → List/List.d.ts} +0 -0
- /package/composite/{ContactCard/ContactCard.js → List/List.js} +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/NavItem.d.ts +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/NavItem.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLink.d.ts +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLink.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkButton.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkText.d.ts +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavLinkText.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/subcomponents/NavMenu.js +0 -0
- /package/supercomposite/{Nav → OldNav}/subcomponents/NavItem/types.js +0 -0
- /package/supercomposite/{Nav → OldNav}/types.d.ts +0 -0
- /package/supercomposite/{Nav → OldNav}/types.js +0 -0
package/.chunks/NavLink.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import { NavLinkText as J } from "../supercomposite/
|
|
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
|
-
##
|
|
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.
|
|
9
|
-
3.
|
|
8
|
+
2. `nvm install 20.18.0`
|
|
9
|
+
3. `nvm use 20`
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Usage
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
`npm install jcicl@latest`
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
```js
|
|
16
|
+
import Button, { ButtonProps } from 'jcicl/base/Button';
|
|
17
|
+
import Nav, { NavProps } from 'jcicl/supercomposite/Nav';
|
|
18
18
|
|
|
19
|
-
|
|
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
|
-
|
|
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 "
|
|
3
|
-
import { B as d } from "
|
|
4
|
-
import i from "
|
|
5
|
-
import { n as a, i as l } from "
|
|
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, {
|
package/base/Avatar/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { default
|
|
2
|
-
export { default as AvatarWithImage } from './AvatarWithImage';
|
|
1
|
+
export { default, type AvatarProps } from './Avatar';
|
package/base/Avatar/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { B as l } from "
|
|
3
|
-
import m from "
|
|
4
|
-
import { n as d } from "
|
|
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';
|
package/base/Button/Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as D, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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)` :
|
|
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})` :
|
|
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})` :
|
|
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})` :
|
|
171
|
-
"--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.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__ */
|
|
300
|
-
const r =
|
|
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("
|
|
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
|
package/base/Divider/index.d.ts
CHANGED
|
@@ -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
|
|
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:
|
|
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
|
-
|
|
16
|
+
fontFamily: "Roboto, sans-serif",
|
|
17
|
+
...m
|
|
17
18
|
})
|
|
18
|
-
),
|
|
19
|
+
), y = ({ children: t, ...r }) => /* @__PURE__ */ d(w, { ...r, children: t });
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
y as default
|
|
21
22
|
};
|
package/base/Flex/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Flex';
|
|
1
|
+
export { default, type FlexProps } from './Flex';
|
package/base/Grid/index.d.ts
CHANGED
|
@@ -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
|
|
2
|
-
export { default as AvatarWithImage } from './
|
|
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
|
|
2
|
-
import { AvatarWithImage as a } from "./
|
|
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,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 @@
|
|
|
1
|
+
export { default as WithLabel } from './WithLabel';
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { default as a } from "./base/Avatar/Avatar
|
|
2
|
-
import { AvatarWithImage as f } from "./base/
|
|
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
|
|
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
|
|
9
|
-
import "./supercomposite/AppHeader/AppHeader.js";
|
|
10
|
-
import { Nav as
|
|
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
|
-
|
|
20
|
+
i as Divider,
|
|
21
21
|
s as Flex,
|
|
22
22
|
v as Grid,
|
|
23
|
-
|
|
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.
|
|
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",
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as s } from "react";
|
|
3
3
|
import { n } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
4
|
-
import
|
|
5
|
-
import { l as
|
|
6
|
-
import { Input as
|
|
7
|
-
import { Button as
|
|
8
|
-
import d from "../../base/Avatar/Avatar
|
|
9
|
-
const
|
|
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(${
|
|
17
|
-
}),
|
|
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
|
-
}),
|
|
22
|
-
const [r,
|
|
23
|
-
return /* @__PURE__ */ i(
|
|
24
|
-
/* @__PURE__ */ t(f, { children: /* @__PURE__ */ t(
|
|
25
|
-
/* @__PURE__ */ t(
|
|
26
|
-
/* @__PURE__ */ t(g, { children: r ? /* @__PURE__ */ t(d, { onClick: () =>
|
|
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
|
-
|
|
30
|
+
y as default
|
|
31
31
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
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;
|