jcicl 0.0.309 → 0.0.313

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,12 +1,12 @@
1
- import { jsxs as g, Fragment as j, jsx as r } from "react/jsx-runtime";
2
- import { FormInput as C } from "../FormInput/FormInput.js";
3
- import { FormSectionTitle as D, FormFieldGrid as S, FormFieldCheckboxContainer as b } from "../FormComponents/FormComponents.js";
4
- import z from "../theme.js";
5
- import { u as G } from "../.chunks/useMediaQuery.js";
6
- const $ = ({
1
+ import { jsxs as j, Fragment as C, jsx as r } from "react/jsx-runtime";
2
+ import { FormInput as D } from "../FormInput/FormInput.js";
3
+ import { FormSectionTitle as S, FormFieldGrid as b, FormFieldCheckboxContainer as z } from "../FormComponents/FormComponents.js";
4
+ import G from "../theme.js";
5
+ import { u as I } from "../.chunks/useMediaQuery.js";
6
+ const q = ({
7
7
  title: i,
8
8
  fields: d,
9
- columns: s = G(`(max-width: ${z.screenSizes.tablet})`) ? 2 : 3,
9
+ columns: s = I(`(max-width: ${G.screenSizes.tablet})`) ? 2 : 3,
10
10
  columnsOverride: u,
11
11
  gap: a = 21,
12
12
  noLabel: F = !1,
@@ -14,29 +14,30 @@ const $ = ({
14
14
  formDefaults: t,
15
15
  onChange: p
16
16
  }) => {
17
- const n = () => d.map(({ key: o, label: c, type: e, limit: f, options: h, defaultValue: l }) => {
18
- const x = t[o] ? t[o] : l || (e === "multiDropdown" ? [] : "");
17
+ const n = () => d.map(({ key: o, label: c, type: e, limit: f, options: h, defaultValue: l, ...x }) => {
18
+ const w = t[o] ? t[o] : l || (e === "multiDropdown" ? [] : "");
19
19
  return /* @__PURE__ */ r(
20
- C,
20
+ D,
21
21
  {
22
- onChange: (w) => p(o, w, e),
22
+ onChange: (g) => p(o, g, e),
23
23
  label: c,
24
24
  type: e,
25
25
  limit: f,
26
- defaultValue: x,
26
+ defaultValue: w,
27
27
  noLabel: F,
28
28
  options: h,
29
- multiple: e === "multiDropdown"
29
+ multiple: e === "multiDropdown",
30
+ ...x
30
31
  },
31
32
  o
32
33
  );
33
34
  });
34
- return /* @__PURE__ */ g(j, { children: [
35
- i && /* @__PURE__ */ r(D, { children: i }),
36
- !m && /* @__PURE__ */ r(S, { columns: s, columnsOverride: u, gap: a, children: /* @__PURE__ */ r(n, {}) }),
37
- m && /* @__PURE__ */ r(b, { children: /* @__PURE__ */ r(n, {}) })
35
+ return /* @__PURE__ */ j(C, { children: [
36
+ i && /* @__PURE__ */ r(S, { children: i }),
37
+ !m && /* @__PURE__ */ r(b, { columns: s, columnsOverride: u, gap: a, children: /* @__PURE__ */ r(n, {}) }),
38
+ m && /* @__PURE__ */ r(z, { children: /* @__PURE__ */ r(n, {}) })
38
39
  ] });
39
40
  };
40
41
  export {
41
- $ as default
42
+ q as default
42
43
  };
@@ -1,9 +1,9 @@
1
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 ae from "../theme.js";
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 ne } from "../.chunks/DefaultPropsProvider.js";
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
7
  import { u as se } from "../.chunks/useFormControl.js";
8
8
  import { B as re } from "../.chunks/ButtonBase.js";
9
9
  import { u as ce } from "../.chunks/useControlled.js";
@@ -18,11 +18,11 @@ q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "ed
18
18
  const de = (o) => {
19
19
  const {
20
20
  classes: t,
21
- checked: a,
22
- disabled: n,
21
+ checked: n,
22
+ disabled: a,
23
23
  edge: s
24
24
  } = o, l = {
25
- root: ["root", a && "checked", n && "disabled", s && `edge${b(s)}`],
25
+ root: ["root", n && "checked", a && "disabled", s && `edge${b(s)}`],
26
26
  input: ["input"]
27
27
  };
28
28
  return H(l, le, t);
@@ -75,9 +75,9 @@ const de = (o) => {
75
75
  margin: 0,
76
76
  padding: 0,
77
77
  zIndex: 1
78
- }), _ = /* @__PURE__ */ v.forwardRef(function(t, a) {
78
+ }), _ = /* @__PURE__ */ v.forwardRef(function(t, n) {
79
79
  const {
80
- autoFocus: n,
80
+ autoFocus: a,
81
81
  checked: s,
82
82
  checkedIcon: l,
83
83
  className: p,
@@ -134,10 +134,10 @@ const de = (o) => {
134
134
  onFocus: X,
135
135
  onBlur: Y,
136
136
  ownerState: R,
137
- ref: a,
137
+ ref: n,
138
138
  ...K,
139
139
  children: [/* @__PURE__ */ c(ue, {
140
- autoFocus: n,
140
+ autoFocus: a,
141
141
  checked: s,
142
142
  defaultChecked: d,
143
143
  className: N.input,
@@ -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: a,
278
- color: n,
277
+ indeterminate: n,
278
+ color: a,
279
279
  size: s
280
280
  } = o, l = {
281
- root: ["root", a && "indeterminate", `color${b(n)}`, `size${b(s)}`]
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: a
294
+ ownerState: n
295
295
  } = o;
296
- return [t.root, a.indeterminate && t.indeterminate, t[`size${b(a.size)}`], a.color !== "default" && t[`color${b(a.color)}`]];
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,8 +345,8 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
345
345
  }
346
346
  }
347
347
  }]
348
- }))), Ce = /* @__PURE__ */ c(he, {}), ye = /* @__PURE__ */ c(fe, {}), xe = /* @__PURE__ */ c(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, a) {
349
- const n = ne({
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
  }), {
@@ -360,8 +360,8 @@ const S = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
360
360
  disableRipple: w = !1,
361
361
  className: B,
362
362
  ...I
363
- } = n, C = d ? k : p, y = d ? k : s, f = {
364
- ...n,
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,
@@ -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: a,
383
+ ref: n,
384
384
  className: U(h.root, B),
385
385
  ...I,
386
386
  classes: h
@@ -506,26 +506,28 @@ const ve = oe("div")(({ disabled: o }) => ({
506
506
  width: 19px;
507
507
  height: 19px;
508
508
 
509
+ cursor: ${o ? "default" : "pointer"};
510
+
509
511
  input {
510
512
  cursor: ${o ? "default" : "pointer"};
511
513
  }
512
514
  }
513
515
 
514
516
  .Mui-checked {
515
- color: ${ae.colors.green} !important;
517
+ color: ${ne.colors.green} !important;
516
518
  }
517
519
  `
518
520
  })), Me = ({
519
521
  label: o,
520
522
  colon: t = !0,
521
- noLabel: a = !1,
522
- ...n
523
+ noLabel: n = !1,
524
+ ...a
523
525
  }) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
524
- !a && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
526
+ !n && /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
525
527
  o,
526
528
  t && ":"
527
529
  ] }),
528
- /* @__PURE__ */ c(W, { ...n })
530
+ /* @__PURE__ */ c(W, { ...a })
529
531
  ] });
530
532
  export {
531
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.309",
4
+ "version": "0.0.313",
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",