jcicl 1.0.51 → 1.0.53

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.
@@ -93,6 +93,7 @@ const ce = (e) => S || (S = re(e)), se = F(/* @__PURE__ */ t("path", {
93
93
  display: flex;
94
94
  gap: 1rem;
95
95
  height: ${e}px;
96
+ flex-shrink: 0;
96
97
  `
97
98
  })), le = f("div")(({ width: e, loggedIn: n }) => ({
98
99
  ...b`
@@ -116,8 +117,10 @@ const ce = (e) => S || (S = re(e)), se = F(/* @__PURE__ */ t("path", {
116
117
  })), V = f("div")(() => ({
117
118
  ...b`
118
119
  display: flex;
119
- width: 1360px;
120
- max-width: 100%;
120
+ max-width: 1360px;
121
+ flex: 1;
122
+ min-width: 0;
123
+ overflow: hidden;
121
124
  align-items: center;
122
125
  justify-content: center;
123
126
  .MuiFormControl-root {
@@ -20,6 +20,7 @@ export type FormFieldsProps = {
20
20
  checkboxContainer?: boolean;
21
21
  formDefaults: Record<string, any>;
22
22
  onChange: (key: string, e: React.ChangeEvent<HTMLInputElement>, type?: string) => void;
23
+ compact?: boolean;
23
24
  };
24
25
  declare const FormFields: React.FC<FormFieldsProps>;
25
26
  export default FormFields;
@@ -1,53 +1,97 @@
1
- import { jsxs as C, Fragment as D, jsx as l } from "react/jsx-runtime";
2
- import { FormInput as p } from "../FormInput/FormInput.js";
3
- import { FormSectionTitle as g, FormFieldGrid as j, FormFieldCheckboxContainer as T } from "../FormComponents/FormComponents.js";
4
- import { isTablet as G } from "../utils.js";
5
- const q = ({
6
- title: t,
7
- fields: h,
8
- columns: v,
9
- columnsOverride: b,
10
- gap: w = 21,
11
- noLabel: a = !1,
1
+ import { jsxs as b, Fragment as C, jsx as m } from "react/jsx-runtime";
2
+ import { FormInput as h } from "../FormInput/FormInput.js";
3
+ import { FormSectionTitle as T, FormFieldGrid as j, FormTextLine as L, FormFieldCheckboxContainer as G } from "../FormComponents/FormComponents.js";
4
+ import "../AvatarWithImage/AvatarWithImage.js";
5
+ import "../Button/Button.js";
6
+ import "../Divider/Divider.js";
7
+ import { Flex as I } from "../Flex/Flex.js";
8
+ import "../Grid/Grid.js";
9
+ import "../Icon/Icon.js";
10
+ import "../Input/Input.js";
11
+ import "../LabeledValue/LabeledValue.js";
12
+ import "../ListButton/ListButton.js";
13
+ import "../Loading/Loading.js";
14
+ import "../ScrollContainer/ScrollContainer.js";
15
+ import "react";
16
+ import { isTablet as S } from "../utils.js";
17
+ import "../CustomAlert/CustomAlert.js";
18
+ import "react-dom";
19
+ import "../Accordion/Accordion.js";
20
+ import "../ErrorBoundary/ErrorBoundary.js";
21
+ import "../InfoCard/InfoCard.js";
22
+ import "../LabeledInput/LabeledInput.js";
23
+ import "../List/List.js";
24
+ import "../LogoLoop/LogoLoop.js";
25
+ import "../SiteBanner/SiteBanner.js";
26
+ import "../WithLabel/WithLabel.js";
27
+ import "../WithLoading/WithLoading.js";
28
+ import "../RecordCard/RecordCard.js";
29
+ import "../.chunks/AppHeader.js";
30
+ import "../EditableInfoCard/EditableInfoCard.js";
31
+ import "../Nav/Nav.js";
32
+ import "../AppContainer/AppContainer.js";
33
+ const co = ({
34
+ title: a,
35
+ fields: s,
36
+ columns: f,
37
+ columnsOverride: w,
38
+ gap: D = 21,
39
+ noLabel: x = !1,
12
40
  checkboxContainer: F = !1,
13
- formDefaults: c,
14
- onChange: x
41
+ compact: v = !1,
42
+ formDefaults: n,
43
+ onChange: e
15
44
  }) => {
16
- const f = v ?? (G() ? 2 : 3);
17
- return /* @__PURE__ */ C(D, { children: [
18
- t && /* @__PURE__ */ l(g, { children: t }),
19
- !F && /* @__PURE__ */ l(j, { columns: f, columnsOverride: b, gap: w, children: h.map(({ key: r, label: m, type: o, limit: d, options: u, defaultValue: i, ...e }) => {
20
- const n = c[r] !== void 0 ? c[r] : i !== void 0 ? i : o === "multiDropdown" ? [] : o === "checkbox" ? !1 : "";
21
- return /* @__PURE__ */ l(
22
- p,
45
+ const g = f ?? (S() ? 2 : 3);
46
+ return /* @__PURE__ */ b(C, { children: [
47
+ a && /* @__PURE__ */ m(T, { children: a }),
48
+ !F && /* @__PURE__ */ m(j, { columns: g, columnsOverride: w, gap: D, children: s.map(({ key: r, label: l, type: o, limit: c, options: u, defaultValue: t, ...d }) => {
49
+ const i = n[r] !== void 0 ? n[r] : t !== void 0 ? t : o === "multiDropdown" ? [] : o === "checkbox" ? !1 : "";
50
+ return v ? /* @__PURE__ */ b(I, { column: !0, gap: "9px", children: [
51
+ /* @__PURE__ */ m(L, { children: l }),
52
+ /* @__PURE__ */ m(
53
+ h,
54
+ {
55
+ onChange: (p) => e(r, p, o),
56
+ type: o,
57
+ limit: c,
58
+ ...o === "checkbox" ? { checked: !!i } : { value: i },
59
+ noLabel: !0,
60
+ options: u,
61
+ multiple: o === "multiDropdown",
62
+ ...d
63
+ }
64
+ )
65
+ ] }, r) : /* @__PURE__ */ m(
66
+ h,
23
67
  {
24
- onChange: (s) => x(r, s, o),
25
- label: m,
68
+ onChange: (p) => e(r, p, o),
69
+ label: l,
26
70
  type: o,
27
- limit: d,
28
- ...o === "checkbox" ? { checked: !!n } : { value: n },
29
- noLabel: a,
71
+ limit: c,
72
+ ...o === "checkbox" ? { checked: !!i } : { value: i },
73
+ noLabel: x || v,
30
74
  options: u,
31
75
  multiple: o === "multiDropdown",
32
- ...e
76
+ ...d
33
77
  },
34
78
  r
35
79
  );
36
80
  }) }),
37
- F && /* @__PURE__ */ l(T, { children: h.map(({ key: r, label: m, type: o, limit: d, options: u, defaultValue: i, ...e }) => {
38
- const n = c[r] !== void 0 ? c[r] : i !== void 0 ? i : o === "multiDropdown" ? [] : o === "checkbox" ? !1 : "";
39
- return /* @__PURE__ */ l(
40
- p,
81
+ F && /* @__PURE__ */ m(G, { children: s.map(({ key: r, label: l, type: o, limit: c, options: u, defaultValue: t, ...d }) => {
82
+ const i = n[r] !== void 0 ? n[r] : t !== void 0 ? t : o === "multiDropdown" ? [] : o === "checkbox" ? !1 : "";
83
+ return /* @__PURE__ */ m(
84
+ h,
41
85
  {
42
- onChange: (s) => x(r, s, o),
43
- label: m,
86
+ onChange: (p) => e(r, p, o),
87
+ label: l,
44
88
  type: o,
45
- limit: d,
46
- ...o === "checkbox" ? { checked: !!n } : { defaultValue: n },
47
- noLabel: a,
89
+ limit: c,
90
+ ...o === "checkbox" ? { checked: !!i } : { defaultValue: i },
91
+ noLabel: x,
48
92
  options: u,
49
93
  multiple: o === "multiDropdown",
50
- ...e
94
+ ...d
51
95
  },
52
96
  r
53
97
  );
@@ -55,5 +99,5 @@ const q = ({
55
99
  ] });
56
100
  };
57
101
  export {
58
- q as default
102
+ co as default
59
103
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "1.0.51",
4
+ "version": "1.0.53",
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",