jcicl 0.0.86 → 0.0.88

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,14 +1,14 @@
1
- import { jsx as r, jsxs as n } from "react/jsx-runtime";
2
- import { useState as g } from "react";
3
- import { n as s } from "../../.chunks/emotion-styled.browser.esm.js";
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
4
  import { c as d } from "../../.chunks/emotion-react.browser.esm.js";
5
5
  import c from "../../theme.js";
6
- import a from "../../base/Flex/Flex.js";
7
- import { c as u } from "../../.chunks/createSvgIcon.js";
6
+ import { Flex as a } from "../../base/Flex/Flex.js";
7
+ import { c as y } from "../../.chunks/createSvgIcon.js";
8
8
  import { B as b } from "../../.chunks/ButtonBase.js";
9
- const y = u(/* @__PURE__ */ r("path", {
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"), $ = s("div")(({ padding: o, shadow: t, width: e }) => ({
11
+ }), "ArrowForwardIos"), v = n("div")(({ padding: o, shadow: t, width: e }) => ({
12
12
  ...d`
13
13
  h3 {
14
14
  margin: 0;
@@ -24,7 +24,7 @@ const y = u(/* @__PURE__ */ r("path", {
24
24
  background-color: ${c.colors.white};
25
25
  width: ${e};
26
26
  `
27
- })), v = s("div")(({ expanded: o }) => ({
27
+ })), A = n("div")(({ expanded: o }) => ({
28
28
  ...d`
29
29
  margin-top: ${o ? "1rem" : 0};
30
30
  transition: 313ms all ease-in-out;
@@ -34,7 +34,9 @@ const y = u(/* @__PURE__ */ r("path", {
34
34
  overflow: hidden;
35
35
  }
36
36
  `
37
- })), A = s(b)(({ expanded: o }) => ({
37
+ })), B = n(b, {
38
+ shouldForwardProp: (o) => u(o) && typeof o == "string"
39
+ })(({ expanded: o }) => ({
38
40
  ...d`
39
41
  transition: 201ms all linear;
40
42
  transform: ${o ? "rotate(90deg)" : "rotate(0deg)"};
@@ -43,7 +45,7 @@ const y = u(/* @__PURE__ */ r("path", {
43
45
  height: 24px;
44
46
  aspect-ratio: 1;
45
47
  `
46
- })), C = ({
48
+ })), G = ({
47
49
  decorativeElement: o,
48
50
  title: t,
49
51
  children: e,
@@ -51,19 +53,19 @@ const y = u(/* @__PURE__ */ r("path", {
51
53
  shadow: m = c.boxShadow.darkGreen,
52
54
  width: p = "360px"
53
55
  }) => {
54
- const [i, f] = g(!1), h = { padding: l, shadow: m, width: p }, w = { expanded: i }, x = { expanded: i };
55
- return /* @__PURE__ */ n($, { ...h, children: [
56
- /* @__PURE__ */ n(a, { alignItems: "center", justifyContent: "space-between", children: [
57
- /* @__PURE__ */ n(a, { width: "100%", gap: "1rem", alignItems: "center", children: [
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: [
58
60
  o && o,
59
61
  /* @__PURE__ */ r("h3", { children: t })
60
62
  ] }),
61
- /* @__PURE__ */ r(A, { ...w, onClick: () => f(!i), children: /* @__PURE__ */ r(y, {}) })
63
+ /* @__PURE__ */ r(B, { ...w, onClick: () => f(!i), children: /* @__PURE__ */ r($, {}) })
62
64
  ] }),
63
- /* @__PURE__ */ r(v, { ...x, children: /* @__PURE__ */ r("div", { children: e }) })
65
+ /* @__PURE__ */ r(A, { ...g, children: /* @__PURE__ */ r("div", { children: e }) })
64
66
  ] });
65
67
  };
66
68
  export {
67
- C as Accordion,
68
- C as default
69
+ G as Accordion,
70
+ G as default
69
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.86",
4
+ "version": "0.0.88",
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";
@@ -186,13 +186,13 @@ const oo = C(/* @__PURE__ */ o("path", {
186
186
  /* @__PURE__ */ n(f, { width: "100%", justifyContent: "space-between", children: [
187
187
  /* @__PURE__ */ n(f, { width: "100%", gap: w, alignItems: "center", children: [
188
188
  t && t,
189
- /* @__PURE__ */ o("h3", { children: v ? /* @__PURE__ */ o(P, { size: 36, loading: y, children: /* @__PURE__ */ o(
189
+ v ? /* @__PURE__ */ o(P, { size: 36, loading: y, children: /* @__PURE__ */ o(
190
190
  ro,
191
191
  {
192
192
  onChange: (e) => J(e.target.value),
193
193
  value: (p == null ? void 0 : p.titleValue) ?? a
194
194
  }
195
- ) }) : /* @__PURE__ */ o("h3", { children: a }) })
195
+ ) }) : /* @__PURE__ */ o("h3", { children: a })
196
196
  ] }),
197
197
  /* @__PURE__ */ o(
198
198
  x,