jcicl 0.0.85 → 0.0.87

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,10 +1,8 @@
1
1
  import { default as React, CSSProperties } from 'react';
2
- type AlignItems = 'flex-start' | 'center' | 'stretch' | 'flex-end';
3
- type JustifyContent = 'start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
4
- export type FlexProps = {
2
+ export interface FlexProps {
5
3
  children: React.ReactNode;
6
- alignItems?: AlignItems;
7
- justifyContent?: JustifyContent;
4
+ alignItems?: 'flex-start' | 'center' | 'stretch' | 'flex-end';
5
+ justifyContent?: 'start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
8
6
  placeContent?: string;
9
7
  column?: boolean;
10
8
  width?: string;
@@ -12,8 +10,9 @@ export type FlexProps = {
12
10
  wrap?: boolean;
13
11
  padding?: string;
14
12
  gap?: string;
13
+ /** Format: `{ reactCssProperty: value, reactCssProperty: value }` A React CSS property is simply any css property converted to camelCase */
15
14
  styles?: CSSProperties;
16
15
  id?: string;
17
- };
18
- declare const Flex: React.FC<FlexProps>;
16
+ }
17
+ export declare const Flex: React.FC<FlexProps>;
19
18
  export default Flex;
package/base/Flex/Flex.js CHANGED
@@ -19,5 +19,6 @@ const w = p("div", {
19
19
  })
20
20
  ), u = ({ children: o, ...r }) => /* @__PURE__ */ d(w, { ...r, children: o });
21
21
  export {
22
+ u as Flex,
22
23
  u as default
23
24
  };
@@ -1,4 +1,4 @@
1
- import { default as o } from "./Flex.js";
1
+ import { Flex as f } from "./Flex.js";
2
2
  export {
3
- o as default
3
+ f as default
4
4
  };
@@ -1,22 +1,24 @@
1
- import { n as p } from "../../.chunks/emotion-styled.browser.esm.js";
2
- import e from "../../theme.js";
3
- import { B as s } from "../../.chunks/ButtonBase.js";
4
- const a = p(s)(({ padding: t = "1rem", active: o, activeStyles: r }) => ({
1
+ import { n as s, i } from "../../.chunks/emotion-styled.browser.esm.js";
2
+ import t from "../../theme.js";
3
+ import { B as p } from "../../.chunks/ButtonBase.js";
4
+ const l = s(p, {
5
+ shouldForwardProp: (o) => i(o) && typeof o == "string"
6
+ })(({ padding: o = "1rem", active: e, activeStyles: r }) => ({
5
7
  display: "flex",
6
8
  width: "100%",
7
9
  height: "100%",
8
- padding: t,
10
+ padding: o,
9
11
  fontSize: "inherit",
10
12
  justifyContent: "flex-start",
11
13
  transition: "201ms all ease-in-out",
12
- ...o && {
13
- boxShadow: `inset 0px -11px 6px -10px ${e.colors.darkGreen}, inset 0px 11px 6px -10px ${e.colors.darkGreen}`,
14
+ ...e && {
15
+ boxShadow: `inset 0px -11px 6px -10px ${t.colors.darkGreen}, inset 0px 11px 6px -10px ${t.colors.darkGreen}`,
14
16
  ...r
15
17
  },
16
18
  "&:hover, :focus": {
17
- boxShadow: `inset 0px -11px 6px -10px ${e.colors.green}, inset 0px 11px 6px -10px ${e.colors.green}`
19
+ boxShadow: `inset 0px -11px 6px -10px ${t.colors.green}, inset 0px 11px 6px -10px ${t.colors.green}`
18
20
  }
19
21
  }));
20
22
  export {
21
- a as default
23
+ l as default
22
24
  };
@@ -1382,10 +1382,6 @@ const Bs = () => {
1382
1382
  overflow: {
1383
1383
  x: s === "all" || s === "horizontal" ? "scroll" : "hidden",
1384
1384
  y: s === "all" || s === "vertical" ? "scroll" : "hidden"
1385
- },
1386
- scrollbars: {
1387
- autoHide: "leave",
1388
- autoHideDelay: 29
1389
1385
  }
1390
1386
  } };
1391
1387
  return /* @__PURE__ */ _o(Zs, { defer: !0, ...a, children: t });
package/base/index.js CHANGED
@@ -2,9 +2,9 @@ import { default as t } from "./Avatar/Avatar.js";
2
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
- import { default as d } from "./Flex/Flex.js";
6
- import { Grid as s } from "./Grid/Grid.js";
7
- import { default as n } from "./Icon/Icon.js";
5
+ import { Flex as d } from "./Flex/Flex.js";
6
+ import { Grid as i } from "./Grid/Grid.js";
7
+ import { default as s } from "./Icon/Icon.js";
8
8
  import { I as v } from "../.chunks/Input.js";
9
9
  import { LabeledValue as c } from "./LabeledValue/LabeledValue.js";
10
10
  import { default as A } from "./ListButton/ListButton.js";
@@ -16,8 +16,8 @@ export {
16
16
  m as Button,
17
17
  x as Divider,
18
18
  d as Flex,
19
- s as Grid,
20
- n as Icon,
19
+ i as Grid,
20
+ s as Icon,
21
21
  v as Input,
22
22
  c as LabeledValue,
23
23
  A as ListButton,
@@ -1,4 +1,6 @@
1
1
  export interface AccordionProps {
2
+ /** The element placed before the title. This can be any valid React Node */
3
+ decorativeElement?: React.ReactNode;
2
4
  /** The title of the accordion. H3 element */
3
5
  title: React.ReactNode;
4
6
  /** The content of the accordion. */
@@ -1,15 +1,15 @@
1
- import { jsx as r, jsxs as d } from "react/jsx-runtime";
2
- import { useState as w } from "react";
3
- import { n } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import { c as s } from "../../.chunks/emotion-react.browser.esm.js";
5
- import a from "../../theme.js";
6
- import x from "../../base/Flex/Flex.js";
7
- import { c as u } from "../../.chunks/createSvgIcon.js";
8
- import { B as g } from "../../.chunks/ButtonBase.js";
9
- const b = u(/* @__PURE__ */ r("path", {
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import { useState as x } from "react";
3
+ import { n, i as u } from "../../.chunks/emotion-styled.browser.esm.js";
4
+ import { c as d } from "../../.chunks/emotion-react.browser.esm.js";
5
+ import c from "../../theme.js";
6
+ import { Flex as a } from "../../base/Flex/Flex.js";
7
+ import { c as y } from "../../.chunks/createSvgIcon.js";
8
+ import { B as b } from "../../.chunks/ButtonBase.js";
9
+ const $ = y(/* @__PURE__ */ r("path", {
10
10
  d: "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"
11
- }), "ArrowForwardIos"), y = n("div")(({ padding: o, shadow: t, width: e }) => ({
12
- ...s`
11
+ }), "ArrowForwardIos"), v = n("div")(({ padding: o, shadow: t, width: e }) => ({
12
+ ...d`
13
13
  h3 {
14
14
  margin: 0;
15
15
  width: 100%;
@@ -21,11 +21,11 @@ const b = u(/* @__PURE__ */ r("path", {
21
21
  flex-direction: column;
22
22
  box-shadow: ${t};
23
23
  border-radius: 5px;
24
- background-color: ${a.colors.white};
24
+ background-color: ${c.colors.white};
25
25
  width: ${e};
26
26
  `
27
- })), $ = n("div")(({ expanded: o }) => ({
28
- ...s`
27
+ })), A = n("div")(({ expanded: o }) => ({
28
+ ...d`
29
29
  margin-top: ${o ? "1rem" : 0};
30
30
  transition: 313ms all ease-in-out;
31
31
  display: grid;
@@ -34,8 +34,10 @@ const b = u(/* @__PURE__ */ r("path", {
34
34
  overflow: hidden;
35
35
  }
36
36
  `
37
- })), v = n(g)(({ expanded: o }) => ({
38
- ...s`
37
+ })), B = n(b, {
38
+ shouldForwardProp: (o) => u(o) && typeof o == "string"
39
+ })(({ expanded: o }) => ({
40
+ ...d`
39
41
  transition: 201ms all linear;
40
42
  transform: ${o ? "rotate(90deg)" : "rotate(0deg)"};
41
43
  border-radius: 50%;
@@ -43,23 +45,27 @@ const b = u(/* @__PURE__ */ r("path", {
43
45
  height: 24px;
44
46
  aspect-ratio: 1;
45
47
  `
46
- })), z = ({
47
- title: o,
48
- children: t,
49
- padding: e = "1rem 2rem",
50
- shadow: c = a.boxShadow.darkGreen,
51
- width: l = "360px"
48
+ })), G = ({
49
+ decorativeElement: o,
50
+ title: t,
51
+ children: e,
52
+ padding: l = "1rem 2rem",
53
+ shadow: m = c.boxShadow.darkGreen,
54
+ width: p = "360px"
52
55
  }) => {
53
- const [i, m] = w(!1), p = { padding: e, shadow: c, width: l }, f = { expanded: i }, h = { expanded: i };
54
- return /* @__PURE__ */ d(y, { ...p, children: [
55
- /* @__PURE__ */ d(x, { alignItems: "center", justifyContent: "space-between", children: [
56
- /* @__PURE__ */ r("h3", { children: o }),
57
- /* @__PURE__ */ r(v, { ...f, onClick: () => m(!i), children: /* @__PURE__ */ r(b, {}) })
56
+ const [i, f] = x(!1), h = { padding: l, shadow: m, width: p }, w = { expanded: i }, g = { expanded: i };
57
+ return /* @__PURE__ */ s(v, { ...h, children: [
58
+ /* @__PURE__ */ s(a, { alignItems: "center", justifyContent: "space-between", children: [
59
+ /* @__PURE__ */ s(a, { width: "100%", gap: "1rem", alignItems: "center", children: [
60
+ o && o,
61
+ /* @__PURE__ */ r("h3", { children: t })
62
+ ] }),
63
+ /* @__PURE__ */ r(B, { ...w, onClick: () => f(!i), children: /* @__PURE__ */ r($, {}) })
58
64
  ] }),
59
- /* @__PURE__ */ r($, { ...h, children: /* @__PURE__ */ r("div", { children: t }) })
65
+ /* @__PURE__ */ r(A, { ...g, children: /* @__PURE__ */ r("div", { children: e }) })
60
66
  ] });
61
67
  };
62
68
  export {
63
- z as Accordion,
64
- z as default
69
+ G as Accordion,
70
+ G as default
65
71
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import m from "react";
3
3
  import { n as a } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import i from "../../base/Flex/Flex.js";
4
+ import { Flex as i } from "../../base/Flex/Flex.js";
5
5
  import s from "../../theme.js";
6
6
  const h = a(i)`
7
7
  width: 100%;
@@ -3,7 +3,7 @@ import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
3
3
  import { c as i } from "../../.chunks/emotion-react.browser.esm.js";
4
4
  import l from "../../theme.js";
5
5
  import { LabeledValue as h } from "../../base/LabeledValue/LabeledValue.js";
6
- import g from "../../base/Flex/Flex.js";
6
+ import { Flex as g } from "../../base/Flex/Flex.js";
7
7
  const x = d("div")(({ padding: r, shadow: o, styles: e }) => ({
8
8
  ...i`
9
9
  h3 {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
- import s from "../../base/Flex/Flex.js";
2
+ import { Flex as s } from "../../base/Flex/Flex.js";
3
3
  import { n as m } from "../../.chunks/emotion-styled.browser.esm.js";
4
4
  const a = m("label")`
5
5
  text-align: left;
package/index.js CHANGED
@@ -4,7 +4,7 @@ import { default as p } from "./base/Avatar/Avatar.js";
4
4
  import { AvatarWithImage as x } from "./base/AvatarWithImage/AvatarWithImage.js";
5
5
  import { Button as l } from "./base/Button/Button.js";
6
6
  import { Divider as n } from "./base/Divider/Divider.js";
7
- import { default as i } from "./base/Flex/Flex.js";
7
+ import { Flex as i } from "./base/Flex/Flex.js";
8
8
  import { Grid as I } from "./base/Grid/Grid.js";
9
9
  import { default as A } from "./base/Icon/Icon.js";
10
10
  import { I as g } from "./.chunks/Input.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.85",
4
+ "version": "0.0.87",
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",
@@ -8,7 +8,7 @@ import { LabeledValue as Q } from "../../base/LabeledValue/LabeledValue.js";
8
8
  import { LabeledInput as X } from "../../composite/LabeledInput/LabeledInput.js";
9
9
  import L from "../../base/Loading/Loading.js";
10
10
  import P from "../../composite/WithLoading/WithLoading.js";
11
- import f from "../../base/Flex/Flex.js";
11
+ import { Flex as f } from "../../base/Flex/Flex.js";
12
12
  import { Tooltip as x } from "../../composite/Tooltip/Tooltip.js";
13
13
  import { T as Z } from "../../.chunks/Input.js";
14
14
  import { B as _ } from "../../.chunks/ButtonBase.js";