jcicl 0.0.269 → 0.0.271

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,34 +1,34 @@
1
- import { jsxs as h, Fragment as x, jsx as m } from "react/jsx-runtime";
2
- import { FormInput as w } from "../FormInput/FormInput.js";
3
- import { FormSectionTitle as g, FormFieldGrid as j } from "../FormComponents/FormComponents.js";
1
+ import { jsxs as h, Fragment as g, jsx as e } from "react/jsx-runtime";
2
+ import { FormInput as x } from "../FormInput/FormInput.js";
3
+ import { FormSectionTitle as w, FormFieldGrid as j } from "../FormComponents/FormComponents.js";
4
4
  import D from "../theme.js";
5
5
  import { u as S } from "../.chunks/useMediaQuery.js";
6
- const M = ({
7
- title: e,
8
- fields: i,
6
+ const K = ({
7
+ title: m,
8
+ fields: l,
9
9
  columns: t = S(`(max-width: ${D.screenSizes.tablet})`) ? 2 : 3,
10
- columnsOverride: l,
11
- gap: n = 21,
12
- noLabel: a = !1,
13
- formDefaults: d,
14
- onChange: s
15
- }) => /* @__PURE__ */ h(x, { children: [
16
- e && /* @__PURE__ */ m(g, { children: e }),
17
- /* @__PURE__ */ m(j, { columns: t, columnsOverride: l, gap: n, children: i.map(({ key: o, label: u, type: r, limit: f, options: p, defaultValue: F }) => /* @__PURE__ */ m(
18
- w,
10
+ columnsOverride: n,
11
+ gap: d = 21,
12
+ noLabel: s = !1,
13
+ formDefaults: i,
14
+ onChange: a
15
+ }) => /* @__PURE__ */ h(g, { children: [
16
+ m && /* @__PURE__ */ e(w, { children: m }),
17
+ /* @__PURE__ */ e(j, { columns: t, columnsOverride: n, gap: d, children: l.map(({ key: o, label: u, type: r, limit: F, options: c, defaultValue: p }) => (console.log("Form Defaults:", i), console.log("Field Key:", o), /* @__PURE__ */ e(
18
+ x,
19
19
  {
20
- onChange: (c) => s(o, c, r),
20
+ onChange: (f) => a(o, f, r),
21
21
  label: u,
22
22
  type: r,
23
- limit: f,
24
- defaultValue: d[o] || r === "multiDropdown" ? [] : F,
25
- noLabel: a,
26
- options: p,
23
+ limit: F,
24
+ defaultValue: i[o] || r === "multiDropdown" ? [] : p,
25
+ noLabel: s,
26
+ options: c,
27
27
  multiple: r === "multiDropdown"
28
28
  },
29
29
  o
30
- )) })
30
+ ))) })
31
31
  ] });
32
32
  export {
33
- M as default
33
+ K as default
34
34
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.269",
4
+ "version": "0.0.271",
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",