jcicl 0.0.307 → 0.0.309
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 +48 -44
- 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
4
|
import ae 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 ne } 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";
|
|
@@ -19,14 +19,14 @@ const de = (o) => {
|
|
|
19
19
|
const {
|
|
20
20
|
classes: t,
|
|
21
21
|
checked: a,
|
|
22
|
-
disabled:
|
|
23
|
-
edge:
|
|
22
|
+
disabled: n,
|
|
23
|
+
edge: s
|
|
24
24
|
} = o, l = {
|
|
25
|
-
root: ["root", a && "checked",
|
|
25
|
+
root: ["root", a && "checked", n && "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: [{
|
|
@@ -77,8 +77,8 @@ const de = (o) => {
|
|
|
77
77
|
zIndex: 1
|
|
78
78
|
}), _ = /* @__PURE__ */ v.forwardRef(function(t, a) {
|
|
79
79
|
const {
|
|
80
|
-
autoFocus:
|
|
81
|
-
checked:
|
|
80
|
+
autoFocus: n,
|
|
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
|
|
@@ -136,9 +136,9 @@ const de = (o) => {
|
|
|
136
136
|
ownerState: R,
|
|
137
137
|
ref: a,
|
|
138
138
|
...K,
|
|
139
|
-
children: [/* @__PURE__ */
|
|
140
|
-
autoFocus:
|
|
141
|
-
checked:
|
|
139
|
+
children: [/* @__PURE__ */ c(ue, {
|
|
140
|
+
autoFocus: n,
|
|
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) {
|
|
@@ -275,10 +275,10 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
275
275
|
const {
|
|
276
276
|
classes: t,
|
|
277
277
|
indeterminate: a,
|
|
278
|
-
color:
|
|
279
|
-
size:
|
|
278
|
+
color: n,
|
|
279
|
+
size: s
|
|
280
280
|
} = o, l = {
|
|
281
|
-
root: ["root", a && "indeterminate", `color${b(
|
|
281
|
+
root: ["root", a && "indeterminate", `color${b(n)}`, `size${b(s)}`]
|
|
282
282
|
}, p = H(l, be, t);
|
|
283
283
|
return {
|
|
284
284
|
...t,
|
|
@@ -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, a) {
|
|
349
|
+
const n = ne({
|
|
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
|
+
} = n, C = d ? k : p, y = d ? k : s, f = {
|
|
364
|
+
...n,
|
|
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,
|
|
@@ -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,6 +505,10 @@ const ve = oe("div")(() => ({
|
|
|
505
505
|
padding: 0;
|
|
506
506
|
width: 19px;
|
|
507
507
|
height: 19px;
|
|
508
|
+
|
|
509
|
+
input {
|
|
510
|
+
cursor: ${o ? "default" : "pointer"};
|
|
511
|
+
}
|
|
508
512
|
}
|
|
509
513
|
|
|
510
514
|
.Mui-checked {
|
|
@@ -515,13 +519,13 @@ const ve = oe("div")(() => ({
|
|
|
515
519
|
label: o,
|
|
516
520
|
colon: t = !0,
|
|
517
521
|
noLabel: a = !1,
|
|
518
|
-
...
|
|
522
|
+
...n
|
|
519
523
|
}) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
|
|
520
524
|
!a && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
|
|
521
525
|
o,
|
|
522
526
|
t && ":"
|
|
523
527
|
] }),
|
|
524
|
-
/* @__PURE__ */
|
|
528
|
+
/* @__PURE__ */ c(W, { ...n })
|
|
525
529
|
] });
|
|
526
530
|
export {
|
|
527
531
|
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.309",
|
|
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",
|