jcicl 0.0.201 → 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 c } from "react/jsx-runtime";
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 ne } from "../.chunks/DefaultPropsProvider.js";
7
- import { u as se } from "../.chunks/useFormControl.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 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: r,
22
+ disabled: s,
23
23
  edge: n
24
24
  } = o, l = {
25
- root: ["root", a && "checked", r && "disabled", n && `edge${b(n)}`],
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: r,
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 = se(), X = (s) => {
108
- F && F(s), i && i.onFocus && i.onFocus(s);
109
- }, Y = (s) => {
110
- f && f(s), i && i.onBlur && i.onBlur(s);
111
- }, Z = (s) => {
112
- if (s.nativeEvent.defaultPrevented)
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 = s.target.checked;
115
- Q(M), h && h(s, M);
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__ */ c(ue, {
140
- autoFocus: r,
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__ */ c("path", {
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__ */ c("path", {
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__ */ c("path", {
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: r,
278
+ color: s,
279
279
  size: n
280
280
  } = o, l = {
281
- root: ["root", a && "indeterminate", `color${b(r)}`, `size${b(n)}`]
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__ */ c(he, {}), ye = /* @__PURE__ */ c(fe, {}), xe = /* @__PURE__ */ c(me, {}), W = /* @__PURE__ */ v.forwardRef(function(t, a) {
349
- const r = ne({
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
- } = r, C = d ? k : p, y = d ? k : n, f = {
364
- ...r,
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__ */ c(ge, {
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 = ({ label: o, colon: t = !0, ...a }) => /* @__PURE__ */ z(ve, { className: "jcLabeledCheckbox", children: [
515
- /* @__PURE__ */ z("span", { className: "jcCheckboxLabel", children: [
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__ */ c(W, { ...a })
524
+ /* @__PURE__ */ r(W, { ...s })
520
525
  ] });
521
526
  export {
522
527
  Me as LabeledCheckbox,
@@ -2559,87 +2559,85 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
2559
2559
  value: wo(o.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
2560
2560
  `)) : null)
2561
2561
  });
2562
- const Mt = qo("div")(
2563
- ({ borderFocusColor: e, minWidth: n = "180px" }) => ({
2564
- ...Yo`
2565
- display: flex;
2566
- flex-wrap: nowrap;
2567
- align-items: center;
2568
- gap: 9px;
2569
- font-family: 'Roboto', sans-serif;
2570
- min-width: ${n};
2562
+ const Mt = ["colon"], Et = qo("div", { shouldForwardProp: (e) => !Mt.includes(e) })(({ borderFocusColor: e, minWidth: n = "180px" }) => ({
2563
+ ...Yo`
2564
+ display: flex;
2565
+ flex-wrap: nowrap;
2566
+ align-items: center;
2567
+ gap: 9px;
2568
+ font-family: 'Roboto', sans-serif;
2569
+ min-width: ${n};
2571
2570
 
2572
- fieldset {
2573
- border: none !important;
2574
- }
2575
-
2576
- .jcDropdownLabel {
2577
- white-space: nowrap;
2578
- font-weight: bold;
2579
- }
2571
+ fieldset {
2572
+ border: none !important;
2573
+ }
2580
2574
 
2581
- .MuiAutocomplete-root {
2582
- width: 100%;
2583
- flex-grow: 1;
2584
- }
2575
+ .jcDropdownLabel {
2576
+ white-space: nowrap;
2577
+ font-weight: bold;
2578
+ }
2585
2579
 
2586
- .MuiInputBase-input {
2587
- padding: 0;
2588
- padding-right: 0px !important;
2589
- min-height: 0;
2590
- }
2580
+ .MuiAutocomplete-root {
2581
+ width: 100%;
2582
+ flex-grow: 1;
2583
+ }
2591
2584
 
2592
- .MuiInputBase-root {
2593
- height: 18px;
2594
- padding: 0 !important;
2585
+ .MuiInputBase-input {
2586
+ padding: 0;
2587
+ padding-right: 0px !important;
2588
+ min-height: 0;
2589
+ }
2595
2590
 
2596
- input {
2597
- padding: 0 !important;
2598
- width: 100%;
2599
- }
2591
+ .MuiInputBase-root {
2592
+ height: 18px;
2593
+ padding: 0 !important;
2600
2594
 
2601
- transition: 313ms all ease-out;
2602
- border-radius: 0;
2603
- border-bottom: 1px solid ${jo.colors.gray};
2595
+ input {
2596
+ padding: 0 !important;
2604
2597
  width: 100%;
2598
+ }
2605
2599
 
2606
- .Mui-select {
2607
- border: none !important;
2608
- }
2600
+ transition: 313ms all ease-out;
2601
+ border-radius: 0;
2602
+ border-bottom: 1px solid ${jo.colors.gray};
2603
+ width: 100%;
2609
2604
 
2610
- :hover,
2611
- :focus-visible,
2612
- &.Mui-focused {
2613
- box-shadow: 0 -5px 4px -4px ${e} inset;
2614
- }
2605
+ .Mui-select {
2606
+ border: none !important;
2615
2607
  }
2616
2608
 
2617
- .MuiAutocomplete-endAdornment {
2618
- right: -7px !important;
2609
+ :hover,
2610
+ :focus-visible,
2611
+ &.Mui-focused {
2612
+ box-shadow: 0 -5px 4px -4px ${e} inset;
2619
2613
  }
2614
+ }
2620
2615
 
2621
- .MuiAutocomplete-clearIndicator {
2622
- font-size: 13px;
2623
- height: 19px;
2624
- width: 19px;
2616
+ .MuiAutocomplete-endAdornment {
2617
+ right: -7px !important;
2618
+ }
2625
2619
 
2626
- svg {
2627
- height: 15px;
2628
- width: 15px;
2629
- }
2630
- }
2631
-
2632
- .MuiButtonBase-root {
2633
- padding: 2px;
2634
- }
2620
+ .MuiAutocomplete-clearIndicator {
2621
+ font-size: 13px;
2622
+ height: 19px;
2623
+ width: 19px;
2635
2624
 
2636
2625
  svg {
2637
- height: 19px;
2638
- width: 19px;
2626
+ height: 15px;
2627
+ width: 15px;
2639
2628
  }
2640
- `
2641
- })
2642
- ), Zt = ({
2629
+ }
2630
+
2631
+ .MuiButtonBase-root {
2632
+ padding: 2px;
2633
+ }
2634
+
2635
+ svg {
2636
+ height: 19px;
2637
+ width: 19px;
2638
+ }
2639
+ `
2640
+ })), en = ({
2643
2641
  label: e,
2644
2642
  colon: n = !0,
2645
2643
  options: a = [],
@@ -2648,7 +2646,7 @@ const Mt = qo("div")(
2648
2646
  onChange: f,
2649
2647
  minWidth: $,
2650
2648
  ...y
2651
- }) => /* @__PURE__ */ Ne(Mt, { className: "jcLabeledDropdown", borderFocusColor: i, minWidth: $, children: [
2649
+ }) => /* @__PURE__ */ Ne(Et, { className: "jcLabeledDropdown", borderFocusColor: i, minWidth: $, children: [
2652
2650
  /* @__PURE__ */ Ne("span", { className: "jcDropdownLabel", children: [
2653
2651
  e,
2654
2652
  n && ":"
@@ -2667,6 +2665,6 @@ const Mt = qo("div")(
2667
2665
  )
2668
2666
  ] });
2669
2667
  export {
2670
- Zt as LabeledDropdown,
2671
- Zt as default
2668
+ en as LabeledDropdown,
2669
+ en as default
2672
2670
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.201",
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",