jcicl 0.0.85 → 0.0.86

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,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";
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";
4
+ import { c as d } from "../../.chunks/emotion-react.browser.esm.js";
5
+ import c from "../../theme.js";
6
+ import a from "../../base/Flex/Flex.js";
7
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", {
8
+ import { B as b } from "../../.chunks/ButtonBase.js";
9
+ const y = u(/* @__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"), $ = s("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
+ })), v = s("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,8 @@ const b = u(/* @__PURE__ */ r("path", {
34
34
  overflow: hidden;
35
35
  }
36
36
  `
37
- })), v = n(g)(({ expanded: o }) => ({
38
- ...s`
37
+ })), A = s(b)(({ expanded: o }) => ({
38
+ ...d`
39
39
  transition: 201ms all linear;
40
40
  transform: ${o ? "rotate(90deg)" : "rotate(0deg)"};
41
41
  border-radius: 50%;
@@ -43,23 +43,27 @@ const b = u(/* @__PURE__ */ r("path", {
43
43
  height: 24px;
44
44
  aspect-ratio: 1;
45
45
  `
46
- })), z = ({
47
- title: o,
48
- children: t,
49
- padding: e = "1rem 2rem",
50
- shadow: c = a.boxShadow.darkGreen,
51
- width: l = "360px"
46
+ })), C = ({
47
+ decorativeElement: o,
48
+ title: t,
49
+ children: e,
50
+ padding: l = "1rem 2rem",
51
+ shadow: m = c.boxShadow.darkGreen,
52
+ width: p = "360px"
52
53
  }) => {
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, {}) })
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: [
58
+ o && o,
59
+ /* @__PURE__ */ r("h3", { children: t })
60
+ ] }),
61
+ /* @__PURE__ */ r(A, { ...w, onClick: () => f(!i), children: /* @__PURE__ */ r(y, {}) })
58
62
  ] }),
59
- /* @__PURE__ */ r($, { ...h, children: /* @__PURE__ */ r("div", { children: t }) })
63
+ /* @__PURE__ */ r(v, { ...x, children: /* @__PURE__ */ r("div", { children: e }) })
60
64
  ] });
61
65
  };
62
66
  export {
63
- z as Accordion,
64
- z as default
67
+ C as Accordion,
68
+ C as default
65
69
  };
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.86",
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",