jcicl 0.0.58 → 0.0.60
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,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { n as
|
|
3
|
-
import { c as
|
|
4
|
-
import { I as
|
|
5
|
-
const i =
|
|
6
|
-
...
|
|
2
|
+
import { n as p } from "../../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as r } from "../../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import { I as n } from "../../.chunks/Input.js";
|
|
5
|
+
const i = p("div")(({ grid: e }) => ({
|
|
6
|
+
...r`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-wrap: nowrap;
|
|
9
9
|
justify-content: space-between;
|
|
@@ -21,13 +21,17 @@ const i = r("div")(({ grid: e }) => ({
|
|
|
21
21
|
flex-basis: ${e && "50%"};
|
|
22
22
|
flex-grow: 1;
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
.MuiInputBase-root {
|
|
26
|
+
width: ${e && "calc(100% + 4px)"};
|
|
27
|
+
}
|
|
24
28
|
`
|
|
25
29
|
})), x = ({ label: e, grid: a = !0, ...s }) => /* @__PURE__ */ t(i, { grid: a, children: [
|
|
26
30
|
/* @__PURE__ */ t("span", { children: [
|
|
27
31
|
e,
|
|
28
32
|
":"
|
|
29
33
|
] }),
|
|
30
|
-
/* @__PURE__ */ o(
|
|
34
|
+
/* @__PURE__ */ o(n, { variant: "simple", ...s })
|
|
31
35
|
] });
|
|
32
36
|
export {
|
|
33
37
|
x as LabeledInput,
|
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.60",
|
|
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,23 +1,23 @@
|
|
|
1
|
-
import { jsx as o, jsxs as l
|
|
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 s } 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
6
|
import d from "../../theme.js";
|
|
7
|
-
import { LabeledValue as
|
|
8
|
-
import { LabeledInput as
|
|
7
|
+
import { LabeledValue as F } from "../../base/LabeledValue/LabeledValue.js";
|
|
8
|
+
import { LabeledInput as U } from "../../composite/LabeledInput/LabeledInput.js";
|
|
9
9
|
import p from "../../base/Flex/Flex.js";
|
|
10
10
|
import { Tooltip as b } from "../../composite/Tooltip/Tooltip.js";
|
|
11
|
-
import { T as
|
|
12
|
-
import { B as
|
|
13
|
-
const
|
|
11
|
+
import { T as W } from "../../.chunks/Input.js";
|
|
12
|
+
import { B as q } from "../../.chunks/ButtonBase.js";
|
|
13
|
+
const A = x(/* @__PURE__ */ o("path", {
|
|
14
14
|
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
|
|
15
|
-
}), "Edit"),
|
|
15
|
+
}), "Edit"), D = 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
|
-
}), "Close"),
|
|
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 = s("div")(
|
|
20
|
+
({ width: t, padding: a, shadow: r, styles: h, isEditing: c }) => ({
|
|
21
21
|
...f`
|
|
22
22
|
width: ${t};
|
|
23
23
|
max-width: 100%;
|
|
@@ -34,14 +34,14 @@ const D = x(/* @__PURE__ */ o("path", {
|
|
|
34
34
|
border-radius: 5px;
|
|
35
35
|
background-color: ${d.colors.white};
|
|
36
36
|
${h};
|
|
37
|
-
z-index: ${
|
|
37
|
+
z-index: ${c ? 0 : 1};
|
|
38
38
|
position: relative;
|
|
39
|
-
transform: ${
|
|
39
|
+
transform: ${c ? "rotateY(-180deg)" : "rotateY(0deg)"};
|
|
40
40
|
transition: 920ms all ease-in-out;
|
|
41
|
-
opacity: ${
|
|
41
|
+
opacity: ${c ? "0" : "1"};
|
|
42
42
|
`
|
|
43
43
|
})
|
|
44
|
-
),
|
|
44
|
+
), J = s(W)({
|
|
45
45
|
backgroundColor: d.colors.white,
|
|
46
46
|
borderRadius: "0",
|
|
47
47
|
input: {
|
|
@@ -69,16 +69,16 @@ const D = x(/* @__PURE__ */ o("path", {
|
|
|
69
69
|
border: "none"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
}),
|
|
72
|
+
}), K = s(k)(({ isEditing: t }) => ({
|
|
73
73
|
...f`
|
|
74
74
|
position: absolute;
|
|
75
|
-
top:
|
|
75
|
+
top: 0;
|
|
76
76
|
z-index: ${t ? 1 : 0};
|
|
77
77
|
transform: ${t ? "rotateY(0deg)" : "rotateY(-180deg)"};
|
|
78
78
|
opacity: ${t ? "1" : "0"};
|
|
79
79
|
transition: 920ms all ease-in-out;
|
|
80
80
|
`
|
|
81
|
-
})), v =
|
|
81
|
+
})), v = s("div")(({ spacing: t, columns: a }) => ({
|
|
82
82
|
...f`
|
|
83
83
|
margin-top: calc(${t} * 0.75);
|
|
84
84
|
grid-row-gap: ${t};
|
|
@@ -86,18 +86,20 @@ const D = x(/* @__PURE__ */ o("path", {
|
|
|
86
86
|
display: grid;
|
|
87
87
|
grid-template-columns: repeat(${a}, 1fr);
|
|
88
88
|
`
|
|
89
|
-
})), g =
|
|
89
|
+
})), g = s(q)(() => ({
|
|
90
90
|
...f`
|
|
91
91
|
width: 40px;
|
|
92
92
|
height: 40px;
|
|
93
93
|
border-radius: 50%;
|
|
94
94
|
`
|
|
95
|
-
})),
|
|
95
|
+
})), N = s("div")`
|
|
96
|
+
position: relative;
|
|
97
|
+
`, io = ({
|
|
96
98
|
decorativeElement: t,
|
|
97
99
|
title: a,
|
|
98
100
|
items: r = [],
|
|
99
101
|
padding: h = "1rem 2rem",
|
|
100
|
-
shadow:
|
|
102
|
+
shadow: c = d.boxShadow.darkGreen,
|
|
101
103
|
spacing: y = "2rem",
|
|
102
104
|
columns: S = 3,
|
|
103
105
|
styles: z,
|
|
@@ -116,13 +118,13 @@ const D = x(/* @__PURE__ */ o("path", {
|
|
|
116
118
|
}, V = () => {
|
|
117
119
|
P(), u(C), m(!1);
|
|
118
120
|
}, Y = (e, n) => {
|
|
119
|
-
u((
|
|
121
|
+
u((G) => ({ ...G, [e]: n }));
|
|
120
122
|
}, E = (e) => {
|
|
121
123
|
u((n) => ({ ...n, titleValue: e }));
|
|
122
124
|
};
|
|
123
125
|
console.log(i);
|
|
124
|
-
const w = { width: B, padding: h, shadow:
|
|
125
|
-
return /* @__PURE__ */ l(
|
|
126
|
+
const w = { width: B, padding: h, shadow: c, styles: z, isEditing: j }, $ = { spacing: y, columns: S };
|
|
127
|
+
return /* @__PURE__ */ l(N, { children: [
|
|
126
128
|
/* @__PURE__ */ l(k, { ...w, children: [
|
|
127
129
|
/* @__PURE__ */ l(p, { width: "100%", gap: "1rem", justifyContent: "space-between", children: [
|
|
128
130
|
/* @__PURE__ */ l(p, { width: "100%", gap: "1rem", alignItems: "center", children: [
|
|
@@ -146,18 +148,18 @@ const D = x(/* @__PURE__ */ o("path", {
|
|
|
146
148
|
]
|
|
147
149
|
}
|
|
148
150
|
},
|
|
149
|
-
children: /* @__PURE__ */ o(g, { onClick: L, children: /* @__PURE__ */ o(
|
|
151
|
+
children: /* @__PURE__ */ o(g, { onClick: L, children: /* @__PURE__ */ o(A, {}) })
|
|
150
152
|
}
|
|
151
153
|
)
|
|
152
154
|
] }),
|
|
153
|
-
/* @__PURE__ */ o(v, { ...$, children: r == null ? void 0 : r.map((e) => /* @__PURE__ */ o(
|
|
155
|
+
/* @__PURE__ */ o(v, { ...$, children: r == null ? void 0 : r.map((e) => /* @__PURE__ */ o(F, { ...e }, e.label)) })
|
|
154
156
|
] }),
|
|
155
|
-
/* @__PURE__ */ l(
|
|
157
|
+
/* @__PURE__ */ l(K, { ...w, children: [
|
|
156
158
|
/* @__PURE__ */ l(p, { width: "100%", justifyContent: "space-between", children: [
|
|
157
159
|
/* @__PURE__ */ l(p, { width: "100%", gap: "1rem", alignItems: "center", children: [
|
|
158
160
|
t && t,
|
|
159
161
|
/* @__PURE__ */ o("h3", { children: /* @__PURE__ */ o(
|
|
160
|
-
|
|
162
|
+
J,
|
|
161
163
|
{
|
|
162
164
|
onChange: (e) => E(e.target.value),
|
|
163
165
|
value: (i == null ? void 0 : i.titleValue) ?? a
|
|
@@ -181,7 +183,7 @@ const D = x(/* @__PURE__ */ o("path", {
|
|
|
181
183
|
]
|
|
182
184
|
}
|
|
183
185
|
},
|
|
184
|
-
children: /* @__PURE__ */ o(g, { onClick: V, children: /* @__PURE__ */ o(
|
|
186
|
+
children: /* @__PURE__ */ o(g, { onClick: V, children: /* @__PURE__ */ o(D, {}) })
|
|
185
187
|
}
|
|
186
188
|
),
|
|
187
189
|
/* @__PURE__ */ o(
|
|
@@ -201,12 +203,12 @@ const D = x(/* @__PURE__ */ o("path", {
|
|
|
201
203
|
]
|
|
202
204
|
}
|
|
203
205
|
},
|
|
204
|
-
children: /* @__PURE__ */ o(g, { onClick: R, children: /* @__PURE__ */ o(
|
|
206
|
+
children: /* @__PURE__ */ o(g, { onClick: R, children: /* @__PURE__ */ o(H, {}) })
|
|
205
207
|
}
|
|
206
208
|
)
|
|
207
209
|
] }),
|
|
208
210
|
/* @__PURE__ */ o(v, { ...$, children: r == null ? void 0 : r.map((e) => /* @__PURE__ */ o(
|
|
209
|
-
|
|
211
|
+
U,
|
|
210
212
|
{
|
|
211
213
|
label: e.label,
|
|
212
214
|
value: i[e.label],
|