jcicl 0.0.79 → 0.0.80

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.79",
4
+ "version": "0.0.80",
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,12 +1,12 @@
1
- import { jsx as o, jsxs as n, Fragment as y } from "react/jsx-runtime";
2
- import { useState as z, useEffect as K } from "react";
1
+ import { jsx as o, jsxs as n, Fragment as S } from "react/jsx-runtime";
2
+ import { useState as k, useEffect as K } from "react";
3
3
  import { n as i } from "../../.chunks/emotion-styled.browser.esm.js";
4
- import { c as m } from "../../.chunks/emotion-react.browser.esm.js";
4
+ import { c as u } from "../../.chunks/emotion-react.browser.esm.js";
5
5
  import { c as C } from "../../.chunks/createSvgIcon.js";
6
6
  import d from "../../theme.js";
7
7
  import { LabeledValue as N } from "../../base/LabeledValue/LabeledValue.js";
8
8
  import { LabeledInput as O } from "../../composite/LabeledInput/LabeledInput.js";
9
- import k from "../../base/Loading/Loading.js";
9
+ import M from "../../base/Loading/Loading.js";
10
10
  import f from "../../base/Flex/Flex.js";
11
11
  import { Tooltip as x } from "../../composite/Tooltip/Tooltip.js";
12
12
  import { T as Q } from "../../.chunks/Input.js";
@@ -17,9 +17,9 @@ const Z = C(/* @__PURE__ */ o("path", {
17
17
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
18
18
  }), "Close"), oo = C(/* @__PURE__ */ o("path", {
19
19
  d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
20
- }), "Check"), L = i("div")(
21
- ({ width: t, padding: a, shadow: r, styles: u, isEditing: c }) => ({
22
- ...m`
20
+ }), "Check"), P = i("div")(
21
+ ({ width: t, padding: a, shadow: r, styles: m, isEditing: c }) => ({
22
+ ...u`
23
23
  width: ${t};
24
24
  max-width: 100%;
25
25
  box-sizing: border-box;
@@ -35,7 +35,7 @@ const Z = C(/* @__PURE__ */ o("path", {
35
35
  box-shadow: ${r};
36
36
  border-radius: 5px;
37
37
  background-color: ${d.colors.white};
38
- ${u};
38
+ ${m};
39
39
  z-index: ${c ? 0 : 1};
40
40
  position: relative;
41
41
  transform: ${c ? "rotateY(-180deg)" : "rotateY(0deg)"};
@@ -71,8 +71,8 @@ const Z = C(/* @__PURE__ */ o("path", {
71
71
  border: "none"
72
72
  }
73
73
  }
74
- }), to = i(L)(({ isEditing: t }) => ({
75
- ...m`
74
+ }), to = i(P)(({ isEditing: t }) => ({
75
+ ...u`
76
76
  position: absolute;
77
77
  top: 0;
78
78
  z-index: ${t ? 1 : 0};
@@ -80,9 +80,9 @@ const Z = C(/* @__PURE__ */ o("path", {
80
80
  opacity: ${t ? "1" : "0"};
81
81
  transition: 920ms all ease-in-out;
82
82
  `
83
- })), M = i("div")(
83
+ })), B = i("div")(
84
84
  ({ spacing: t, columns: a, numRows: r }) => ({
85
- ...m`
85
+ ...u`
86
86
  margin-top: calc(${t} * 0.75);
87
87
  grid-row-gap: ${t};
88
88
  grid-column-gap: calc(${t} * 1.5);
@@ -92,7 +92,7 @@ const Z = C(/* @__PURE__ */ o("path", {
92
92
  `
93
93
  })
94
94
  ), $ = i(X)(() => ({
95
- ...m`
95
+ ...u`
96
96
  width: 40px;
97
97
  height: 40px;
98
98
  border-radius: 50%;
@@ -100,21 +100,21 @@ const Z = C(/* @__PURE__ */ o("path", {
100
100
  })), ro = i("div")`
101
101
  position: relative;
102
102
  width: 100%;
103
- `, B = i("div")`
103
+ `, L = i("div")`
104
104
  height: 19px;
105
105
  `, xo = ({
106
106
  decorativeElement: t,
107
107
  title: a,
108
108
  items: r = [],
109
- padding: u = "1rem 2rem",
109
+ padding: m = "1rem 2rem",
110
110
  shadow: c = d.boxShadow.darkGreen,
111
- spacing: P = "2rem",
112
- titleSpacing: R = "1rem",
111
+ spacing: R = "2rem",
112
+ titleSpacing: w = "1rem",
113
113
  canEditTitle: T = !0,
114
- columns: w = 3,
114
+ columns: v = 3,
115
115
  styles: j,
116
116
  width: E = "100%",
117
- loading: v = !1,
117
+ loading: I = !1,
118
118
  onSave: V = () => {
119
119
  },
120
120
  onCancel: Y = () => {
@@ -122,7 +122,7 @@ const Z = C(/* @__PURE__ */ o("path", {
122
122
  onEdit: F = () => {
123
123
  }
124
124
  }) => {
125
- const b = r.reduce((e, l) => ({ ...e, [l.label]: l.value }), { titleValue: a }), [G, g] = z(!1), [p, h] = z(b);
125
+ const b = r.reduce((e, l) => ({ ...e, [l.label]: l.value }), { titleValue: a }), [G, g] = k(!1), [p, h] = k(b);
126
126
  K(() => {
127
127
  h(b);
128
128
  }, [r]);
@@ -136,11 +136,11 @@ const Z = C(/* @__PURE__ */ o("path", {
136
136
  h((J) => ({ ...J, [e]: l }));
137
137
  }, D = (e) => {
138
138
  h((l) => ({ ...l, titleValue: e }));
139
- }, H = Math.ceil(r.length / w), s = 50, I = { width: E, padding: u, shadow: c, styles: j, isEditing: G }, S = { spacing: P, columns: w, numRows: H };
139
+ }, H = Math.ceil(r.length / v), s = 50, y = { width: E, padding: m, shadow: c, styles: j, isEditing: G }, z = { spacing: R, columns: v, numRows: H };
140
140
  return /* @__PURE__ */ n(ro, { children: [
141
- /* @__PURE__ */ n(L, { ...I, children: [
141
+ /* @__PURE__ */ n(P, { ...y, children: [
142
142
  /* @__PURE__ */ n(f, { width: "100%", gap: "1rem", justifyContent: "space-between", children: [
143
- /* @__PURE__ */ n(f, { width: "100%", gap: R, alignItems: "center", children: [
143
+ /* @__PURE__ */ n(f, { width: "100%", gap: w, alignItems: "center", children: [
144
144
  t && t,
145
145
  /* @__PURE__ */ o("h3", { children: a })
146
146
  ] }),
@@ -165,10 +165,10 @@ const Z = C(/* @__PURE__ */ o("path", {
165
165
  }
166
166
  )
167
167
  ] }),
168
- /* @__PURE__ */ o(M, { ...S, children: v ? /* @__PURE__ */ n(y, { children: [
169
- /* @__PURE__ */ o(B, {}),
168
+ /* @__PURE__ */ o(B, { ...z, children: I ? /* @__PURE__ */ n(S, { children: [
169
+ /* @__PURE__ */ o(L, {}),
170
170
  /* @__PURE__ */ o(
171
- k,
171
+ M,
172
172
  {
173
173
  size: s,
174
174
  styles: {
@@ -180,9 +180,9 @@ const Z = C(/* @__PURE__ */ o("path", {
180
180
  )
181
181
  ] }) : r == null ? void 0 : r.map((e) => /* @__PURE__ */ o(N, { ...e }, e.label)) })
182
182
  ] }),
183
- /* @__PURE__ */ n(to, { ...I, children: [
183
+ /* @__PURE__ */ n(to, { ...y, children: [
184
184
  /* @__PURE__ */ n(f, { width: "100%", justifyContent: "space-between", children: [
185
- /* @__PURE__ */ n(f, { width: "100%", gap: "1rem", alignItems: "center", children: [
185
+ /* @__PURE__ */ n(f, { width: "100%", gap: w, alignItems: "center", children: [
186
186
  t && t,
187
187
  /* @__PURE__ */ o("h3", { children: T ? /* @__PURE__ */ o(
188
188
  eo,
@@ -233,10 +233,10 @@ const Z = C(/* @__PURE__ */ o("path", {
233
233
  }
234
234
  )
235
235
  ] }),
236
- /* @__PURE__ */ o(M, { ...S, children: v ? /* @__PURE__ */ n(y, { children: [
237
- /* @__PURE__ */ o(B, {}),
236
+ /* @__PURE__ */ o(B, { ...z, children: I ? /* @__PURE__ */ n(S, { children: [
237
+ /* @__PURE__ */ o(L, {}),
238
238
  /* @__PURE__ */ o(
239
- k,
239
+ M,
240
240
  {
241
241
  size: s,
242
242
  styles: {