jcicl 0.0.61 → 0.0.63
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,32 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { n } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
...
|
|
1
|
+
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { n as o } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as p } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
const n = o("span")({
|
|
5
|
+
...p`
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-wrap: nowrap;
|
|
8
|
-
justify-content: space-between;
|
|
9
8
|
gap: 0.5rem;
|
|
10
9
|
font-family: 'Roboto', sans-serif;
|
|
11
10
|
|
|
12
11
|
span {
|
|
13
12
|
white-space: nowrap;
|
|
14
|
-
flex-basis: 50%;
|
|
15
13
|
font-weight: bold;
|
|
16
14
|
text-transform: capitalize;
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
p {
|
|
20
18
|
margin: 0;
|
|
21
|
-
flex-basis: 50%;
|
|
22
19
|
}
|
|
23
20
|
`
|
|
24
|
-
}), f = ({ label:
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
21
|
+
}), f = ({ label: e, value: r }) => /* @__PURE__ */ a(n, { children: [
|
|
22
|
+
/* @__PURE__ */ a("span", { children: [
|
|
23
|
+
e,
|
|
27
24
|
":"
|
|
28
25
|
] }),
|
|
29
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ s("p", { children: r })
|
|
30
27
|
] });
|
|
31
28
|
export {
|
|
32
29
|
f as LabeledValue,
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { n as p } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { I as
|
|
5
|
-
const
|
|
6
|
-
...
|
|
3
|
+
import { c as s } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import { I as i } from "../../.chunks/Input.js";
|
|
5
|
+
const n = p("div")(({ grid: t }) => ({
|
|
6
|
+
...s`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-wrap: nowrap;
|
|
9
|
-
justify-content: space-between;
|
|
10
9
|
gap: 0.5rem;
|
|
11
10
|
font-family: 'Roboto', sans-serif;
|
|
12
11
|
|
|
13
12
|
span {
|
|
14
13
|
white-space: nowrap;
|
|
15
|
-
flex-basis: ${e && "50%"};
|
|
16
14
|
font-weight: bold;
|
|
17
15
|
text-transform: capitalize;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
.MuiTextField-root {
|
|
21
|
-
flex-basis: ${e && "50%"};
|
|
22
19
|
flex-grow: 1;
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
.MuiInputBase-root {
|
|
26
|
-
width: ${
|
|
23
|
+
width: ${t && "calc(100% + 4px)"};
|
|
27
24
|
}
|
|
28
25
|
`
|
|
29
|
-
})),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
26
|
+
})), c = ({ label: t, grid: a = !0, ...o }) => /* @__PURE__ */ e(n, { grid: a, children: [
|
|
27
|
+
/* @__PURE__ */ e("span", { children: [
|
|
28
|
+
t,
|
|
32
29
|
":"
|
|
33
30
|
] }),
|
|
34
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ r(i, { variant: "simple", ...o })
|
|
35
32
|
] });
|
|
36
33
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
c as LabeledInput,
|
|
35
|
+
c as default
|
|
39
36
|
};
|
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.63",
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { useState as I } from "react";
|
|
3
|
-
import { n as
|
|
3
|
+
import { n as d } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
4
4
|
import { c as f } from "../../.chunks/emotion-react.browser.esm.js";
|
|
5
5
|
import { c as x } from "../../.chunks/createSvgIcon.js";
|
|
6
|
-
import
|
|
6
|
+
import i from "../../theme.js";
|
|
7
7
|
import { LabeledValue as F } from "../../base/LabeledValue/LabeledValue.js";
|
|
8
8
|
import { LabeledInput as U } from "../../composite/LabeledInput/LabeledInput.js";
|
|
9
9
|
import p from "../../base/Flex/Flex.js";
|
|
@@ -16,8 +16,8 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
16
16
|
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"
|
|
17
17
|
}), "Close"), H = x(/* @__PURE__ */ o("path", {
|
|
18
18
|
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
19
|
-
}), "Check"), k =
|
|
20
|
-
({ width: t, padding: a, shadow: r, styles: h, isEditing:
|
|
19
|
+
}), "Check"), k = d("div")(
|
|
20
|
+
({ width: t, padding: a, shadow: r, styles: h, isEditing: s }) => ({
|
|
21
21
|
...f`
|
|
22
22
|
width: ${t};
|
|
23
23
|
max-width: 100%;
|
|
@@ -32,17 +32,17 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
box-shadow: ${r};
|
|
34
34
|
border-radius: 5px;
|
|
35
|
-
background-color: ${
|
|
35
|
+
background-color: ${i.colors.white};
|
|
36
36
|
${h};
|
|
37
|
-
z-index: ${
|
|
37
|
+
z-index: ${s ? 0 : 1};
|
|
38
38
|
position: relative;
|
|
39
|
-
transform: ${
|
|
39
|
+
transform: ${s ? "rotateY(-180deg)" : "rotateY(0deg)"};
|
|
40
40
|
transition: 920ms all ease-in-out;
|
|
41
|
-
opacity: ${
|
|
41
|
+
opacity: ${s ? "0" : "1"};
|
|
42
42
|
`
|
|
43
43
|
})
|
|
44
|
-
), J =
|
|
45
|
-
backgroundColor:
|
|
44
|
+
), J = d(W)({
|
|
45
|
+
backgroundColor: i.colors.white,
|
|
46
46
|
borderRadius: "0",
|
|
47
47
|
input: {
|
|
48
48
|
fontSize: "28px",
|
|
@@ -50,14 +50,14 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
50
50
|
transition: "313ms all ease-out",
|
|
51
51
|
padding: "0",
|
|
52
52
|
borderRadius: "0",
|
|
53
|
-
borderBottom: `1px solid ${
|
|
53
|
+
borderBottom: `1px solid ${i.colors.gray}`,
|
|
54
54
|
"&:focus, :focus-visible": {
|
|
55
|
-
boxShadow: `0 3px 2px -2px ${
|
|
55
|
+
boxShadow: `0 3px 2px -2px ${i.colors.darkGreen}`
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"&:hover, :focus, :focus-visible": {
|
|
59
59
|
input: {
|
|
60
|
-
boxShadow: `0 3px 2px -2px ${
|
|
60
|
+
boxShadow: `0 3px 2px -2px ${i.colors.darkGreen}`
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
fieldset: {
|
|
@@ -69,7 +69,7 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
69
69
|
border: "none"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
}), K =
|
|
72
|
+
}), K = d(k)(({ isEditing: t }) => ({
|
|
73
73
|
...f`
|
|
74
74
|
position: absolute;
|
|
75
75
|
top: 0;
|
|
@@ -78,7 +78,7 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
78
78
|
opacity: ${t ? "1" : "0"};
|
|
79
79
|
transition: 920ms all ease-in-out;
|
|
80
80
|
`
|
|
81
|
-
})), v =
|
|
81
|
+
})), v = d("div")(({ spacing: t, columns: a }) => ({
|
|
82
82
|
...f`
|
|
83
83
|
margin-top: calc(${t} * 0.75);
|
|
84
84
|
grid-row-gap: ${t};
|
|
@@ -86,20 +86,20 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
86
86
|
display: grid;
|
|
87
87
|
grid-template-columns: repeat(${a}, 1fr);
|
|
88
88
|
`
|
|
89
|
-
})), g =
|
|
89
|
+
})), g = d(q)(() => ({
|
|
90
90
|
...f`
|
|
91
91
|
width: 40px;
|
|
92
92
|
height: 40px;
|
|
93
93
|
border-radius: 50%;
|
|
94
94
|
`
|
|
95
|
-
})), N =
|
|
95
|
+
})), N = d("div")`
|
|
96
96
|
position: relative;
|
|
97
97
|
`, io = ({
|
|
98
98
|
decorativeElement: t,
|
|
99
99
|
title: a,
|
|
100
100
|
items: r = [],
|
|
101
101
|
padding: h = "1rem 2rem",
|
|
102
|
-
shadow:
|
|
102
|
+
shadow: s = i.boxShadow.darkGreen,
|
|
103
103
|
spacing: y = "2rem",
|
|
104
104
|
columns: S = 3,
|
|
105
105
|
styles: z,
|
|
@@ -111,19 +111,17 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
111
111
|
onEdit: T = () => {
|
|
112
112
|
}
|
|
113
113
|
}) => {
|
|
114
|
-
const C = r.reduce((e, n) => ({ ...e, [n.label]: n.value }), { titleValue: a }), [j, m] = I(!1), [
|
|
114
|
+
const C = r.reduce((e, n) => ({ ...e, [n.label]: n.value }), { titleValue: a }), [j, m] = I(!1), [c, u] = I(C), L = () => {
|
|
115
115
|
T(), m(!0);
|
|
116
116
|
}, R = () => {
|
|
117
|
-
M(
|
|
117
|
+
M(c), m(!1);
|
|
118
118
|
}, V = () => {
|
|
119
119
|
P(), u(C), m(!1);
|
|
120
120
|
}, Y = (e, n) => {
|
|
121
121
|
u((G) => ({ ...G, [e]: n }));
|
|
122
122
|
}, E = (e) => {
|
|
123
123
|
u((n) => ({ ...n, titleValue: e }));
|
|
124
|
-
};
|
|
125
|
-
console.log(i);
|
|
126
|
-
const w = { width: B, padding: h, shadow: c, styles: z, isEditing: j }, $ = { spacing: y, columns: S };
|
|
124
|
+
}, w = { width: B, padding: h, shadow: s, styles: z, isEditing: j }, $ = { spacing: y, columns: S };
|
|
127
125
|
return /* @__PURE__ */ l(N, { children: [
|
|
128
126
|
/* @__PURE__ */ l(k, { ...w, children: [
|
|
129
127
|
/* @__PURE__ */ l(p, { width: "100%", gap: "1rem", justifyContent: "space-between", children: [
|
|
@@ -162,7 +160,7 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
162
160
|
J,
|
|
163
161
|
{
|
|
164
162
|
onChange: (e) => E(e.target.value),
|
|
165
|
-
value: (
|
|
163
|
+
value: (c == null ? void 0 : c.titleValue) ?? a
|
|
166
164
|
}
|
|
167
165
|
) })
|
|
168
166
|
] }),
|
|
@@ -211,7 +209,7 @@ const A = x(/* @__PURE__ */ o("path", {
|
|
|
211
209
|
U,
|
|
212
210
|
{
|
|
213
211
|
label: e.label,
|
|
214
|
-
value:
|
|
212
|
+
value: c[e.label],
|
|
215
213
|
onChange: (n) => Y(e.label, n.target.value)
|
|
216
214
|
},
|
|
217
215
|
e.label
|