jcicl 0.0.175 → 0.0.179

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,7 +1,8 @@
1
1
  import { LabeledInputProps } from '../../../../../../../../../src/components/composite/LabeledInput';
2
- export type AllInputProps = LabeledInputProps;
3
- export interface FormInputProps extends AllInputProps {
2
+ import { LabeledCheckboxProps } from '../../../../../../../../../src/components/composite/LabeledCheckbox';
3
+ export type AllInputProps = LabeledInputProps | LabeledCheckboxProps;
4
+ export type FormInputProps = AllInputProps & {
4
5
  type?: 'text' | 'dropdown' | 'date' | 'number' | 'checkbox' | 'radio' | 'textarea';
5
- }
6
+ };
6
7
  export declare const FormInput: React.FC<LabeledInputProps>;
7
8
  export default FormInput;
@@ -1,10 +1,11 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { LabeledInput as r } from "../LabeledInput/LabeledInput.js";
3
- const p = (t) => {
4
- const { type: e = "text" } = t;
5
- return /* @__PURE__ */ o(r, { ...t, type: e });
3
+ import { LabeledCheckbox as m } from "../LabeledCheckbox/LabeledCheckbox.js";
4
+ const a = (e) => {
5
+ const { type: t = "text" } = e;
6
+ return t === "checkbox" ? /* @__PURE__ */ o(m, { ...e }) : /* @__PURE__ */ o(r, { ...e, type: t });
6
7
  };
7
8
  export {
8
- p as FormInput,
9
- p as default
9
+ a as FormInput,
10
+ a as default
10
11
  };
@@ -0,0 +1 @@
1
+ export { default, type FormInputProps } from './FormInput.tsx';
@@ -0,0 +1,4 @@
1
+ import { FormInput as t } from "./FormInput.js";
2
+ export {
3
+ t as default
4
+ };
@@ -1,12 +1,12 @@
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 x from "react";
6
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
7
  import { u as ne } from "../.chunks/useFormControl.js";
8
- import { B as ce } from "../.chunks/ButtonBase.js";
9
- import { u as re } from "../.chunks/useControlled.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: r,
22
+ disabled: c,
23
23
  edge: s
24
24
  } = o, l = {
25
- root: ["root", a && "checked", r && "disabled", s && `edge${b(s)}`],
25
+ root: ["root", a && "checked", c && "disabled", s && `edge${b(s)}`],
26
26
  input: ["input"]
27
27
  };
28
28
  return H(l, le, t);
29
- }, pe = O(ce)({
29
+ }, pe = O(re)({
30
30
  padding: 9,
31
31
  borderRadius: "50%",
32
32
  variants: [{
@@ -77,7 +77,7 @@ const de = (o) => {
77
77
  zIndex: 1
78
78
  }), _ = /* @__PURE__ */ x.forwardRef(function(t, a) {
79
79
  const {
80
- autoFocus: r,
80
+ autoFocus: c,
81
81
  checked: s,
82
82
  checkedIcon: l,
83
83
  className: p,
@@ -99,7 +99,7 @@ const de = (o) => {
99
99
  type: v,
100
100
  value: j,
101
101
  ...K
102
- } = t, [$, Q] = re({
102
+ } = t, [$, Q] = ce({
103
103
  controlled: s,
104
104
  default: !!d,
105
105
  name: "SwitchBase",
@@ -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: c,
141
141
  checked: s,
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"), me = P(/* @__PURE__ */ c("path", {
266
+ }), "CheckBoxOutlineBlank"), me = 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"), he = P(/* @__PURE__ */ c("path", {
268
+ }), "CheckBox"), he = 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: c,
279
279
  size: s
280
280
  } = o, l = {
281
- root: ["root", a && "indeterminate", `color${b(r)}`, `size${b(s)}`]
281
+ root: ["root", a && "indeterminate", `color${b(c)}`, `size${b(s)}`]
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(me, {}), ye = /* @__PURE__ */ c(fe, {}), ve = /* @__PURE__ */ c(he, {}), W = /* @__PURE__ */ x.forwardRef(function(t, a) {
349
- const r = se({
348
+ }))), Ce = /* @__PURE__ */ r(me, {}), ye = /* @__PURE__ */ r(fe, {}), ve = /* @__PURE__ */ r(he, {}), W = /* @__PURE__ */ x.forwardRef(function(t, a) {
349
+ const c = 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 : s, f = {
364
- ...r,
363
+ } = c, C = d ? k : p, y = d ? k : s, f = {
364
+ ...c,
365
365
  disableRipple: w,
366
366
  color: l,
367
367
  indeterminate: d,
368
368
  size: u
369
369
  }, m = ke(f);
370
- return /* @__PURE__ */ c(ge, {
370
+ return /* @__PURE__ */ r(ge, {
371
371
  type: "checkbox",
372
372
  inputProps: {
373
373
  "data-indeterminate": d,
@@ -506,7 +506,7 @@ const xe = oe("div")(() => ({
506
506
  }
507
507
 
508
508
  .Mui-checked {
509
- color: ${ae.colors.green};
509
+ color: ${ae.colors.green} !important;
510
510
  }
511
511
  `
512
512
  })), Me = ({ label: o, ...t }) => /* @__PURE__ */ z(xe, { className: "jcLabeledCheckbox", children: [
@@ -514,7 +514,7 @@ const xe = oe("div")(() => ({
514
514
  o,
515
515
  ":"
516
516
  ] }),
517
- /* @__PURE__ */ c(W, { ...t })
517
+ /* @__PURE__ */ r(W, { ...t })
518
518
  ] });
519
519
  export {
520
520
  Me as LabeledCheckbox,
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.175",
4
+ "version": "0.0.179",
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",