jcicl 0.0.169 → 0.0.173

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.
@@ -8,31 +8,32 @@ import { Button as H } from "../Button/Button.js";
8
8
  import I from "../Icon/Icon.js";
9
9
  import T from "../WithLabel/WithLabel.js";
10
10
  import { c as V } from "../.chunks/createSvgIcon.js";
11
- const ee = Y[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], te = (e) => {
11
+ import ee from "../theme.js";
12
+ const te = Y[typeof document < "u" && document.createElement !== void 0 ? "useLayoutEffect" : "useEffect"], ne = (e) => {
12
13
  const n = M.useRef(e);
13
14
  return M.useEffect(() => {
14
15
  n.current = e;
15
16
  }), n;
16
17
  };
17
- function ne() {
18
+ function ie() {
18
19
  }
19
- function ie(e, n, l = {}) {
20
- const c = re(l.polyfill), a = te(n);
21
- return ee(() => {
20
+ function oe(e, n, l = {}) {
21
+ const c = ce(l.polyfill), d = ne(n);
22
+ return te(() => {
22
23
  let i = !1;
23
- const d = e && "current" in e ? e.current : e;
24
- if (!d) return ne;
24
+ const a = e && "current" in e ? e.current : e;
25
+ if (!a) return ie;
25
26
  function r(o, s) {
26
- i || a.current(o, s);
27
+ i || d.current(o, s);
27
28
  }
28
- return c.subscribe(d, r), () => {
29
- i = !0, c.unsubscribe(d, r);
29
+ return c.subscribe(a, r), () => {
30
+ i = !0, c.unsubscribe(a, r);
30
31
  };
31
- }, [e, c, a]), c.observer;
32
+ }, [e, c, d]), c.observer;
32
33
  }
33
- function oe(e) {
34
+ function re(e) {
34
35
  let n = !1, l = [];
35
- const c = /* @__PURE__ */ new Map(), a = new (e || window.ResizeObserver)((i, d) => {
36
+ const c = /* @__PURE__ */ new Map(), d = new (e || window.ResizeObserver)((i, a) => {
36
37
  l = l.concat(i);
37
38
  function r() {
38
39
  const o = /* @__PURE__ */ new Set();
@@ -40,34 +41,34 @@ function oe(e) {
40
41
  if (o.has(l[s].target)) continue;
41
42
  o.add(l[s].target);
42
43
  const m = c.get(l[s].target);
43
- m == null || m.forEach((v) => v(l[s], d));
44
+ m == null || m.forEach((v) => v(l[s], a));
44
45
  }
45
46
  l = [], n = !1;
46
47
  }
47
48
  n || window.requestAnimationFrame(r), n = !0;
48
49
  });
49
50
  return {
50
- observer: a,
51
- subscribe(i, d) {
51
+ observer: d,
52
+ subscribe(i, a) {
52
53
  var r;
53
- a.observe(i);
54
+ d.observe(i);
54
55
  const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
55
- o.push(d), c.set(i, o);
56
+ o.push(a), c.set(i, o);
56
57
  },
57
- unsubscribe(i, d) {
58
+ unsubscribe(i, a) {
58
59
  var r;
59
60
  const o = (r = c.get(i)) !== null && r !== void 0 ? r : [];
60
61
  if (o.length === 1) {
61
- a.unobserve(i), c.delete(i);
62
+ d.unobserve(i), c.delete(i);
62
63
  return;
63
64
  }
64
- const s = o.indexOf(d);
65
+ const s = o.indexOf(a);
65
66
  s !== -1 && o.splice(s, 1), c.set(i, o);
66
67
  }
67
68
  };
68
69
  }
69
70
  let O;
70
- const re = (e) => O || (O = oe(e)), ce = V(/* @__PURE__ */ t("path", {
71
+ const ce = (e) => O || (O = re(e)), se = V(/* @__PURE__ */ t("path", {
71
72
  d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"
72
73
  }), "Menu"), L = V(/* @__PURE__ */ t("path", {
73
74
  d: "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"
@@ -93,7 +94,7 @@ const re = (e) => O || (O = oe(e)), ce = V(/* @__PURE__ */ t("path", {
93
94
  gap: 1rem;
94
95
  height: ${e}px;
95
96
  `
96
- })), se = f("div")(({ width: e, loggedIn: n }) => ({
97
+ })), le = f("div")(({ width: e, loggedIn: n }) => ({
97
98
  ...b`
98
99
  width: ${e}px;
99
100
  display: flex;
@@ -127,16 +128,17 @@ const re = (e) => O || (O = oe(e)), ce = V(/* @__PURE__ */ t("path", {
127
128
  font-size: 32px;
128
129
  line-height: 1;
129
130
  margin: 0;
131
+ margin-left: calc(${ee.constants.navDefaultWidth}px * 2);
130
132
  }
131
133
  `
132
- })), ve = ({
134
+ })), xe = ({
133
135
  isMobile: e,
134
136
  loggedIn: n,
135
137
  logoProps: l,
136
138
  iconColor: c,
137
- themeProps: a,
139
+ themeProps: d,
138
140
  hamburgerMenu: i,
139
- iconColors: d,
141
+ iconColors: a,
140
142
  userName: r = "User",
141
143
  userSettingsEnabled: o,
142
144
  searchFilters: s,
@@ -150,7 +152,7 @@ const re = (e) => O || (O = oe(e)), ce = V(/* @__PURE__ */ t("path", {
150
152
  headerType: g = "search",
151
153
  appTitle: S
152
154
  }) => {
153
- const [x, $] = z(0), [u, D] = z(null), [w, G] = z(null), { logoSrc: W, logoWidth: k, logoHeight: C } = l, { shadowSecondary: J, shadowTertiary: K, iconPrimary: N, borderPrimary: Q } = a, y = {
155
+ const [x, $] = z(0), [u, D] = z(null), [w, G] = z(null), { logoSrc: W, logoWidth: k, logoHeight: C } = l, { shadowSecondary: J, shadowTertiary: K, iconPrimary: N, borderPrimary: Q } = d, y = {
154
156
  shadowTertiary: K,
155
157
  borderColor: Q,
156
158
  borderFocusColor: N,
@@ -165,7 +167,7 @@ const re = (e) => O || (O = oe(e)), ce = V(/* @__PURE__ */ t("path", {
165
167
  const X = (p) => {
166
168
  p != null && p.clientWidth && p.clientWidth > x && $(p.clientWidth);
167
169
  };
168
- return ie(u, () => X(u)), e ? /* @__PURE__ */ h(R, { mobile: !0, shadowSecondary: J, children: [
170
+ return oe(u, () => X(u)), e ? /* @__PURE__ */ h(R, { mobile: !0, shadowSecondary: J, children: [
169
171
  /* @__PURE__ */ t(P, { height: C, children: /* @__PURE__ */ t(_, { src: W, height: `${C}px`, width: k }) }),
170
172
  /* @__PURE__ */ h(A, { children: [
171
173
  g === "search" && /* @__PURE__ */ t(E, { ...y }),
@@ -175,20 +177,20 @@ const re = (e) => O || (O = oe(e)), ce = V(/* @__PURE__ */ t("path", {
175
177
  I,
176
178
  {
177
179
  icon: /* @__PURE__ */ t(L, {}),
178
- ...d,
180
+ ...a,
179
181
  onClick: o ? v : void 0
180
182
  }
181
183
  )
182
184
  ] }) : /* @__PURE__ */ h(R, { children: [
183
185
  /* @__PURE__ */ h(P, { height: C, children: [
184
186
  /* @__PURE__ */ t(_, { src: W, height: `${C}px`, width: k }),
185
- i && /* @__PURE__ */ t(H, { variant: "icon", onClick: m, color: c, children: /* @__PURE__ */ t(ce, {}) })
187
+ i && /* @__PURE__ */ t(H, { variant: "icon", onClick: m, color: c, children: /* @__PURE__ */ t(se, {}) })
186
188
  ] }),
187
189
  /* @__PURE__ */ h(A, { children: [
188
190
  g === "search" && /* @__PURE__ */ t(E, { ...y }),
189
191
  g === "title" && /* @__PURE__ */ t("h1", { children: S })
190
192
  ] }),
191
- /* @__PURE__ */ h(se, { width: x, loggedIn: !!n, children: [
193
+ /* @__PURE__ */ h(le, { width: x, loggedIn: !!n, children: [
192
194
  /* @__PURE__ */ t(j, { visible: !!n, ref: D, children: /* @__PURE__ */ t(
193
195
  T,
194
196
  {
@@ -197,7 +199,7 @@ const re = (e) => O || (O = oe(e)), ce = V(/* @__PURE__ */ t("path", {
197
199
  I,
198
200
  {
199
201
  icon: /* @__PURE__ */ t(L, {}),
200
- ...d,
202
+ ...a,
201
203
  onClick: o ? v : void 0
202
204
  }
203
205
  ),
@@ -209,5 +211,5 @@ const re = (e) => O || (O = oe(e)), ce = V(/* @__PURE__ */ t("path", {
209
211
  ] });
210
212
  };
211
213
  export {
212
- ve as default
214
+ xe as default
213
215
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.169",
4
+ "version": "0.0.173",
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",