jcicl 0.0.307 → 0.0.311
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/Input/Input.js +10 -10
- package/LabeledCheckbox/LabeledCheckbox.js +61 -55
- package/package.json +1 -1
package/Input/Input.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { n } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
3
|
import { c as i } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
-
import
|
|
4
|
+
import t from "../theme.js";
|
|
5
5
|
import { T as p } from "../.chunks/TextField.js";
|
|
6
|
-
const
|
|
6
|
+
const a = n(p, {
|
|
7
7
|
shouldForwardProp: (o) => o != "borderFocusColor"
|
|
8
|
-
})(({ borderFocusColor: o, type: e }) => ({
|
|
8
|
+
})(({ borderFocusColor: o, type: e, disabled: r }) => ({
|
|
9
9
|
...i`
|
|
10
|
-
background-color: ${
|
|
10
|
+
background-color: ${t.colors.white};
|
|
11
11
|
border-radius: 0;
|
|
12
12
|
height: 18px;
|
|
13
13
|
|
|
@@ -16,11 +16,11 @@ const d = n(p, {
|
|
|
16
16
|
height: 15px;
|
|
17
17
|
padding: 2px 0;
|
|
18
18
|
border-radius: 0;
|
|
19
|
-
border-bottom: 1px solid ${
|
|
19
|
+
border-bottom: 1px solid ${t.colors.gray};
|
|
20
20
|
width: 100%;
|
|
21
21
|
|
|
22
22
|
&:focus-visible {
|
|
23
|
-
${e !== "date" && i`
|
|
23
|
+
${e !== "date" && !r && i`
|
|
24
24
|
box-shadow: 0 -5px 4px -4px ${o} inset;
|
|
25
25
|
`}
|
|
26
26
|
}
|
|
@@ -42,7 +42,7 @@ const d = n(p, {
|
|
|
42
42
|
&:hover,
|
|
43
43
|
:focus-visible {
|
|
44
44
|
input {
|
|
45
|
-
${e !== "date" && i`
|
|
45
|
+
${e !== "date" && !r && i`
|
|
46
46
|
box-shadow: 0 -5px 4px -4px ${o} inset;
|
|
47
47
|
`}
|
|
48
48
|
}
|
|
@@ -60,11 +60,11 @@ const d = n(p, {
|
|
|
60
60
|
}
|
|
61
61
|
`
|
|
62
62
|
})), c = ({
|
|
63
|
-
borderFocusColor: o =
|
|
63
|
+
borderFocusColor: o = t.colors.green,
|
|
64
64
|
// border primary
|
|
65
65
|
type: e,
|
|
66
|
-
...
|
|
67
|
-
}) => /* @__PURE__ */ s(
|
|
66
|
+
...r
|
|
67
|
+
}) => /* @__PURE__ */ s(a, { borderFocusColor: o, type: e, ...r });
|
|
68
68
|
export {
|
|
69
69
|
c as Input,
|
|
70
70
|
c as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as z, jsx as
|
|
1
|
+
import { jsxs as z, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { n as oe } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
3
|
import { c as te } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
-
import
|
|
4
|
+
import ne from "../theme.js";
|
|
5
5
|
import * as v from "react";
|
|
6
|
-
import { g as E, a as q, s as O, r as V, b as U, P as e, c as b, d as H, e as T, u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { B as
|
|
9
|
-
import { u as
|
|
6
|
+
import { g as E, a as q, s as O, r as V, b as U, P as e, c as b, d as H, e as T, u as ae } from "../.chunks/DefaultPropsProvider.js";
|
|
7
|
+
import { u as se } from "../.chunks/useFormControl.js";
|
|
8
|
+
import { B as re } from "../.chunks/ButtonBase.js";
|
|
9
|
+
import { u as ce } from "../.chunks/useControlled.js";
|
|
10
10
|
import { r as D } from "../.chunks/TransitionGroupContext.js";
|
|
11
11
|
import { c as P } from "../.chunks/createSvgIcon.js";
|
|
12
12
|
import { m as ie } from "../.chunks/memoTheme.js";
|
|
@@ -18,15 +18,15 @@ q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "ed
|
|
|
18
18
|
const de = (o) => {
|
|
19
19
|
const {
|
|
20
20
|
classes: t,
|
|
21
|
-
checked:
|
|
22
|
-
disabled:
|
|
23
|
-
edge:
|
|
21
|
+
checked: n,
|
|
22
|
+
disabled: a,
|
|
23
|
+
edge: s
|
|
24
24
|
} = o, l = {
|
|
25
|
-
root: ["root",
|
|
25
|
+
root: ["root", n && "checked", a && "disabled", s && `edge${b(s)}`],
|
|
26
26
|
input: ["input"]
|
|
27
27
|
};
|
|
28
28
|
return H(l, le, t);
|
|
29
|
-
}, pe = O(
|
|
29
|
+
}, pe = O(re)({
|
|
30
30
|
padding: 9,
|
|
31
31
|
borderRadius: "50%",
|
|
32
32
|
variants: [{
|
|
@@ -75,10 +75,10 @@ const de = (o) => {
|
|
|
75
75
|
margin: 0,
|
|
76
76
|
padding: 0,
|
|
77
77
|
zIndex: 1
|
|
78
|
-
}), _ = /* @__PURE__ */ v.forwardRef(function(t,
|
|
78
|
+
}), _ = /* @__PURE__ */ v.forwardRef(function(t, n) {
|
|
79
79
|
const {
|
|
80
|
-
autoFocus:
|
|
81
|
-
checked:
|
|
80
|
+
autoFocus: a,
|
|
81
|
+
checked: s,
|
|
82
82
|
checkedIcon: l,
|
|
83
83
|
className: p,
|
|
84
84
|
defaultChecked: d,
|
|
@@ -97,28 +97,28 @@ const de = (o) => {
|
|
|
97
97
|
required: G = !1,
|
|
98
98
|
tabIndex: J,
|
|
99
99
|
type: x,
|
|
100
|
-
value:
|
|
100
|
+
value: $,
|
|
101
101
|
...K
|
|
102
|
-
} = t, [
|
|
103
|
-
controlled:
|
|
102
|
+
} = t, [j, Q] = ce({
|
|
103
|
+
controlled: s,
|
|
104
104
|
default: !!d,
|
|
105
105
|
name: "SwitchBase",
|
|
106
106
|
state: "checked"
|
|
107
|
-
}), i =
|
|
108
|
-
F && F(
|
|
109
|
-
}, Y = (
|
|
110
|
-
f && f(
|
|
111
|
-
}, Z = (
|
|
112
|
-
if (
|
|
107
|
+
}), i = se(), X = (r) => {
|
|
108
|
+
F && F(r), i && i.onFocus && i.onFocus(r);
|
|
109
|
+
}, Y = (r) => {
|
|
110
|
+
f && f(r), i && i.onBlur && i.onBlur(r);
|
|
111
|
+
}, Z = (r) => {
|
|
112
|
+
if (r.nativeEvent.defaultPrevented)
|
|
113
113
|
return;
|
|
114
|
-
const M =
|
|
115
|
-
Q(M), h && h(
|
|
114
|
+
const M = r.target.checked;
|
|
115
|
+
Q(M), h && h(r, M);
|
|
116
116
|
};
|
|
117
117
|
let m = k;
|
|
118
118
|
i && typeof m > "u" && (m = i.disabled);
|
|
119
119
|
const ee = x === "checkbox" || x === "radio", R = {
|
|
120
120
|
...t,
|
|
121
|
-
checked:
|
|
121
|
+
checked: j,
|
|
122
122
|
disabled: m,
|
|
123
123
|
disableFocusRipple: g,
|
|
124
124
|
edge: u
|
|
@@ -134,11 +134,11 @@ const de = (o) => {
|
|
|
134
134
|
onFocus: X,
|
|
135
135
|
onBlur: Y,
|
|
136
136
|
ownerState: R,
|
|
137
|
-
ref:
|
|
137
|
+
ref: n,
|
|
138
138
|
...K,
|
|
139
|
-
children: [/* @__PURE__ */
|
|
140
|
-
autoFocus:
|
|
141
|
-
checked:
|
|
139
|
+
children: [/* @__PURE__ */ c(ue, {
|
|
140
|
+
autoFocus: a,
|
|
141
|
+
checked: s,
|
|
142
142
|
defaultChecked: d,
|
|
143
143
|
className: N.input,
|
|
144
144
|
disabled: m,
|
|
@@ -151,11 +151,11 @@ const de = (o) => {
|
|
|
151
151
|
ownerState: R,
|
|
152
152
|
tabIndex: J,
|
|
153
153
|
type: x,
|
|
154
|
-
...x === "checkbox" &&
|
|
155
|
-
value:
|
|
154
|
+
...x === "checkbox" && $ === void 0 ? {} : {
|
|
155
|
+
value: $
|
|
156
156
|
},
|
|
157
157
|
...I
|
|
158
|
-
}),
|
|
158
|
+
}), j ? l : w]
|
|
159
159
|
});
|
|
160
160
|
});
|
|
161
161
|
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
@@ -261,11 +261,11 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
261
261
|
*/
|
|
262
262
|
value: e.any
|
|
263
263
|
});
|
|
264
|
-
const fe = P(/* @__PURE__ */
|
|
264
|
+
const fe = P(/* @__PURE__ */ c("path", {
|
|
265
265
|
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
266
|
-
}), "CheckBoxOutlineBlank"), he = P(/* @__PURE__ */
|
|
266
|
+
}), "CheckBoxOutlineBlank"), he = P(/* @__PURE__ */ c("path", {
|
|
267
267
|
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
268
|
-
}), "CheckBox"), me = P(/* @__PURE__ */
|
|
268
|
+
}), "CheckBox"), me = P(/* @__PURE__ */ c("path", {
|
|
269
269
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
270
270
|
}), "IndeterminateCheckBox");
|
|
271
271
|
function be(o) {
|
|
@@ -274,11 +274,11 @@ function be(o) {
|
|
|
274
274
|
const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), ke = (o) => {
|
|
275
275
|
const {
|
|
276
276
|
classes: t,
|
|
277
|
-
indeterminate:
|
|
278
|
-
color:
|
|
279
|
-
size:
|
|
277
|
+
indeterminate: n,
|
|
278
|
+
color: a,
|
|
279
|
+
size: s
|
|
280
280
|
} = o, l = {
|
|
281
|
-
root: ["root",
|
|
281
|
+
root: ["root", n && "indeterminate", `color${b(a)}`, `size${b(s)}`]
|
|
282
282
|
}, p = H(l, be, t);
|
|
283
283
|
return {
|
|
284
284
|
...t,
|
|
@@ -291,9 +291,9 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
291
291
|
slot: "Root",
|
|
292
292
|
overridesResolver: (o, t) => {
|
|
293
293
|
const {
|
|
294
|
-
ownerState:
|
|
294
|
+
ownerState: n
|
|
295
295
|
} = o;
|
|
296
|
-
return [t.root,
|
|
296
|
+
return [t.root, n.indeterminate && t.indeterminate, t[`size${b(n.size)}`], n.color !== "default" && t[`color${b(n.color)}`]];
|
|
297
297
|
}
|
|
298
298
|
})(ie(({
|
|
299
299
|
theme: o
|
|
@@ -345,12 +345,12 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}]
|
|
348
|
-
}))), Ce = /* @__PURE__ */
|
|
349
|
-
const
|
|
348
|
+
}))), Ce = /* @__PURE__ */ c(he, {}), ye = /* @__PURE__ */ c(fe, {}), xe = /* @__PURE__ */ c(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, n) {
|
|
349
|
+
const a = ae({
|
|
350
350
|
props: t,
|
|
351
351
|
name: "MuiCheckbox"
|
|
352
352
|
}), {
|
|
353
|
-
checkedIcon:
|
|
353
|
+
checkedIcon: s = Ce,
|
|
354
354
|
color: l = "primary",
|
|
355
355
|
icon: p = ye,
|
|
356
356
|
indeterminate: d = !1,
|
|
@@ -360,14 +360,14 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
360
360
|
disableRipple: w = !1,
|
|
361
361
|
className: B,
|
|
362
362
|
...I
|
|
363
|
-
} =
|
|
364
|
-
...
|
|
363
|
+
} = a, C = d ? k : p, y = d ? k : s, f = {
|
|
364
|
+
...a,
|
|
365
365
|
disableRipple: w,
|
|
366
366
|
color: l,
|
|
367
367
|
indeterminate: d,
|
|
368
368
|
size: u
|
|
369
369
|
}, h = ke(f);
|
|
370
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ c(ge, {
|
|
371
371
|
type: "checkbox",
|
|
372
372
|
inputProps: {
|
|
373
373
|
"data-indeterminate": d,
|
|
@@ -380,7 +380,7 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
380
380
|
fontSize: y.props.fontSize ?? u
|
|
381
381
|
}),
|
|
382
382
|
ownerState: f,
|
|
383
|
-
ref:
|
|
383
|
+
ref: n,
|
|
384
384
|
className: U(h.root, B),
|
|
385
385
|
...I,
|
|
386
386
|
classes: h
|
|
@@ -487,7 +487,7 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
|
487
487
|
*/
|
|
488
488
|
value: e.any
|
|
489
489
|
});
|
|
490
|
-
const ve = oe("div")(() => ({
|
|
490
|
+
const ve = oe("div")(({ disabled: o }) => ({
|
|
491
491
|
...te`
|
|
492
492
|
display: flex;
|
|
493
493
|
flex-wrap: nowrap;
|
|
@@ -505,23 +505,29 @@ const ve = oe("div")(() => ({
|
|
|
505
505
|
padding: 0;
|
|
506
506
|
width: 19px;
|
|
507
507
|
height: 19px;
|
|
508
|
+
|
|
509
|
+
cursor: ${o ? "default" : "pointer"};
|
|
510
|
+
|
|
511
|
+
input {
|
|
512
|
+
cursor: ${o ? "default" : "pointer"};
|
|
513
|
+
}
|
|
508
514
|
}
|
|
509
515
|
|
|
510
516
|
.Mui-checked {
|
|
511
|
-
color: ${
|
|
517
|
+
color: ${ne.colors.green} !important;
|
|
512
518
|
}
|
|
513
519
|
`
|
|
514
520
|
})), Me = ({
|
|
515
521
|
label: o,
|
|
516
522
|
colon: t = !0,
|
|
517
|
-
noLabel:
|
|
518
|
-
...
|
|
523
|
+
noLabel: n = !1,
|
|
524
|
+
...a
|
|
519
525
|
}) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
|
|
520
|
-
!
|
|
526
|
+
!n && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
|
|
521
527
|
o,
|
|
522
528
|
t && ":"
|
|
523
529
|
] }),
|
|
524
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ c(W, { ...a })
|
|
525
531
|
] });
|
|
526
532
|
export {
|
|
527
533
|
Me as LabeledCheckbox,
|
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.311",
|
|
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",
|