jcicl 0.0.203 → 0.0.205
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.
|
@@ -2,6 +2,7 @@ import { CheckboxProps } from '@mui/material/Checkbox';
|
|
|
2
2
|
export type LabeledCheckboxProps = {
|
|
3
3
|
label: string;
|
|
4
4
|
colon?: boolean;
|
|
5
|
+
noLabel?: boolean;
|
|
5
6
|
} & CheckboxProps;
|
|
6
7
|
export declare const LabeledCheckbox: React.FC<LabeledCheckboxProps>;
|
|
7
8
|
export default LabeledCheckbox;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as z, jsx as
|
|
1
|
+
import { jsxs as z, jsx as r } 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
|
|
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 se } from "../.chunks/DefaultPropsProvider.js";
|
|
7
|
+
import { u as ne } from "../.chunks/useFormControl.js";
|
|
8
8
|
import { B as ce } from "../.chunks/ButtonBase.js";
|
|
9
9
|
import { u as re } from "../.chunks/useControlled.js";
|
|
10
10
|
import { r as D } from "../.chunks/TransitionGroupContext.js";
|
|
@@ -19,10 +19,10 @@ const de = (o) => {
|
|
|
19
19
|
const {
|
|
20
20
|
classes: t,
|
|
21
21
|
checked: a,
|
|
22
|
-
disabled:
|
|
22
|
+
disabled: s,
|
|
23
23
|
edge: n
|
|
24
24
|
} = o, l = {
|
|
25
|
-
root: ["root", a && "checked",
|
|
25
|
+
root: ["root", a && "checked", s && "disabled", n && `edge${b(n)}`],
|
|
26
26
|
input: ["input"]
|
|
27
27
|
};
|
|
28
28
|
return H(l, le, t);
|
|
@@ -77,7 +77,7 @@ const de = (o) => {
|
|
|
77
77
|
zIndex: 1
|
|
78
78
|
}), _ = /* @__PURE__ */ v.forwardRef(function(t, a) {
|
|
79
79
|
const {
|
|
80
|
-
autoFocus:
|
|
80
|
+
autoFocus: s,
|
|
81
81
|
checked: n,
|
|
82
82
|
checkedIcon: l,
|
|
83
83
|
className: p,
|
|
@@ -104,15 +104,15 @@ const de = (o) => {
|
|
|
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 = ne(), X = (c) => {
|
|
108
|
+
F && F(c), i && i.onFocus && i.onFocus(c);
|
|
109
|
+
}, Y = (c) => {
|
|
110
|
+
f && f(c), i && i.onBlur && i.onBlur(c);
|
|
111
|
+
}, Z = (c) => {
|
|
112
|
+
if (c.nativeEvent.defaultPrevented)
|
|
113
113
|
return;
|
|
114
|
-
const M =
|
|
115
|
-
Q(M), h && h(
|
|
114
|
+
const M = c.target.checked;
|
|
115
|
+
Q(M), h && h(c, M);
|
|
116
116
|
};
|
|
117
117
|
let m = k;
|
|
118
118
|
i && typeof m > "u" && (m = i.disabled);
|
|
@@ -136,8 +136,8 @@ const de = (o) => {
|
|
|
136
136
|
ownerState: R,
|
|
137
137
|
ref: a,
|
|
138
138
|
...K,
|
|
139
|
-
children: [/* @__PURE__ */
|
|
140
|
-
autoFocus:
|
|
139
|
+
children: [/* @__PURE__ */ r(ue, {
|
|
140
|
+
autoFocus: s,
|
|
141
141
|
checked: n,
|
|
142
142
|
defaultChecked: d,
|
|
143
143
|
className: N.input,
|
|
@@ -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__ */ r("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__ */ r("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__ */ r("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:
|
|
278
|
+
color: s,
|
|
279
279
|
size: n
|
|
280
280
|
} = o, l = {
|
|
281
|
-
root: ["root", a && "indeterminate", `color${b(
|
|
281
|
+
root: ["root", a && "indeterminate", `color${b(s)}`, `size${b(n)}`]
|
|
282
282
|
}, p = H(l, be, t);
|
|
283
283
|
return {
|
|
284
284
|
...t,
|
|
@@ -345,8 +345,8 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}]
|
|
348
|
-
}))), Ce = /* @__PURE__ */
|
|
349
|
-
const
|
|
348
|
+
}))), Ce = /* @__PURE__ */ r(he, {}), ye = /* @__PURE__ */ r(fe, {}), xe = /* @__PURE__ */ r(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, a) {
|
|
349
|
+
const s = se({
|
|
350
350
|
props: t,
|
|
351
351
|
name: "MuiCheckbox"
|
|
352
352
|
}), {
|
|
@@ -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
|
+
} = s, C = d ? k : p, y = d ? k : n, f = {
|
|
364
|
+
...s,
|
|
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__ */ r(ge, {
|
|
371
371
|
type: "checkbox",
|
|
372
372
|
inputProps: {
|
|
373
373
|
"data-indeterminate": d,
|
|
@@ -511,12 +511,17 @@ const ve = oe("div")(() => ({
|
|
|
511
511
|
color: ${ae.colors.green} !important;
|
|
512
512
|
}
|
|
513
513
|
`
|
|
514
|
-
})), Me = ({
|
|
515
|
-
|
|
514
|
+
})), Me = ({
|
|
515
|
+
label: o,
|
|
516
|
+
colon: t = !0,
|
|
517
|
+
noLabel: a = !1,
|
|
518
|
+
...s
|
|
519
|
+
}) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
|
|
520
|
+
!a && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
|
|
516
521
|
o,
|
|
517
522
|
t && ":"
|
|
518
523
|
] }),
|
|
519
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ r(W, { ...s })
|
|
520
525
|
] });
|
|
521
526
|
export {
|
|
522
527
|
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.205",
|
|
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",
|