@caseparts-org/caseblocks 0.0.297 → 0.0.298

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 +1 @@
1
- ._main_1w2jy_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._column_1w2jy_8{box-sizing:border-box;padding:0 var(--spacing-1)}._topNav_1w2jy_13{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_1w2jy_13{gap:var(--spacing-1);padding-bottom:0}}._logo_1w2jy_21{cursor:pointer}._operations_1w2jy_24{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_1w2jy_24{gap:var(--spacing-1)}}._search_1w2jy_31{flex:1;min-width:0;position:relative;container-type:inline-size}._mobileSearch_1w2jy_37{width:100%}._typeAheadPortal_1w2jy_40{position:fixed;z-index:900;container-type:inline-size;overflow-x:hidden;overflow-y:auto}._siteLink_1w2jy_47{color:var(--color-brand-primary-primary-black);cursor:default;border:none;background-color:transparent;padding:0;margin:0;font-family:var(--font-family-display);font-size:var(--font-size-md);cursor:pointer;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs)}._siteLink_1w2jy_47:hover{text-decoration:underline;color:var(--text-text-links)}@media (max-width:1280px){._siteLink_1w2jy_47{font-family:var(--font-family-body);font-size:var(--font-size-sm)}}._siteLink_1w2jy_47 path{fill:var(--color-brand-primary-primary-teal-blue)}._accountArea_1w2jy_74{width:145px}@media (max-width: 1281px){._accountArea_1w2jy_74{width:min-content}}._cart_1w2jy_80{border:none;padding:0;margin:0;background-color:transparent}._category_1w2jy_86{list-style:none;min-height:42px;display:flex;flex-direction:row;align-items:stretch;padding:0}._categoryLink_1w2jy_94{color:var(--text-text-primary);text-decoration:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%}._categoryLink_1w2jy_94:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._categoryLink_1w2jy_94 path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_1w2jy_110{list-style:none;padding:0;margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}._menuList_1w2jy_110>li{width:100%;min-height:42px;padding:var(--spacing-spacing-2xs);border:1px solid var(--border-border-primary, #dfdfdf);box-sizing:border-box;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);color:var(--text-text-links)}._menuItemAction_1w2jy_133{width:100%;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs);color:var(--color-brand-primary-primary-black)}._shortcutIcon_1w2jy_142{color:var(--text-text-links)}
1
+ ._main_abc65_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._column_abc65_8{box-sizing:border-box;padding:0 var(--spacing-1)}._topNav_abc65_13{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_abc65_13{gap:var(--spacing-1);padding-bottom:0}}._logo_abc65_21{cursor:pointer}._operations_abc65_24{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_abc65_24{gap:var(--spacing-1)}}._search_abc65_31{flex:1;min-width:0;position:relative;container-type:inline-size}._mobileSearch_abc65_37{width:100%}._typeAheadPortal_abc65_40{position:fixed;z-index:900;container-type:inline-size;overflow-x:hidden;overflow-y:auto}._siteLink_abc65_47{color:var(--color-brand-primary-primary-black);cursor:default;border:none;background-color:transparent;padding:0;margin:0;font-family:var(--font-family-display);font-size:var(--font-size-md);cursor:pointer;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs)}._siteLink_abc65_47:hover{text-decoration:underline;color:var(--text-text-links)}@media (max-width:1280px){._siteLink_abc65_47{font-family:var(--font-family-body);font-size:var(--font-size-sm)}}._siteLink_abc65_47 path{fill:var(--color-brand-primary-primary-teal-blue)}._accountArea_abc65_74{width:145px;min-width:max-content}@media (max-width: 1280px){._accountArea_abc65_74{width:min-content;min-width:0}}._cart_abc65_82{border:none;padding:0;margin:0;background-color:transparent}._category_abc65_88{list-style:none;min-height:42px;display:flex;flex-direction:row;align-items:stretch;padding:0}._categoryLink_abc65_96{color:var(--text-text-primary);text-decoration:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%}._categoryLink_abc65_96:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._categoryLink_abc65_96 path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_abc65_112{list-style:none;padding:0;margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}._menuList_abc65_112>li{width:100%;min-height:42px;padding:var(--spacing-spacing-2xs);border:1px solid var(--border-border-primary, #dfdfdf);box-sizing:border-box;display:flex;flex-direction:row;align-items:center;border-radius:var(--border-radius-md);color:var(--text-text-links)}._menuItemAction_abc65_135{width:100%;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs);color:var(--color-brand-primary-primary-black)}._shortcutIcon_abc65_144{color:var(--text-text-links)}
@@ -1,39 +1,39 @@
1
- import { jsxs as l, Fragment as M, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as l, Fragment as U, jsx as i } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { r as ct } from "../../index-BkF-BQ3Q.js";
4
- import { Text as U } from "../../atoms/Text/Text.js";
3
+ import { r as ft } from "../../index-BkF-BQ3Q.js";
4
+ import { Text as j } from "../../atoms/Text/Text.js";
5
5
  import { Link as H } from "../../atoms/Link/Link.js";
6
6
  import { Icon as u } from "../../atoms/Icon/Icon.js";
7
- import { Flex as E } from "../../atoms/Flex/Flex.js";
7
+ import { Flex as $ } from "../../atoms/Flex/Flex.js";
8
8
  import { Grid as at, Column as st } from "../../atoms/Grid/Grid.js";
9
9
  import { Input as Z } from "../../atoms/Input/Input.js";
10
- import { InputEndAdornmentButton as $ } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
10
+ import { InputEndAdornmentButton as F } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
11
11
  import { Logo as yt } from "../../molecules/Logo/Logo.js";
12
- import { HamburgerMenu as wt } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
12
+ import { HamburgerMenu as bt } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
13
13
  import { ShoppingCart as _t } from "../../molecules/Cart/Cart.js";
14
14
  import { Account as ut } from "../../molecules/Account/Account.js";
15
15
  import { CategoryNav as Nt } from "../../molecules/CategoryNav/CategoryNav.js";
16
16
  import { SuggestionDropdown as C } from "../SuggestionDropdown/SuggestionDropdown.js";
17
17
  import { getHideAtStyles as P } from "../../atoms/HideAt.js";
18
18
  import { c as N } from "../../clsx-OuTLNxxd.js";
19
- import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2jy_8", bt = "_topNav_1w2jy_13", vt = "_logo_1w2jy_21", Lt = "_operations_1w2jy_24", Dt = "_search_1w2jy_31", xt = "_mobileSearch_1w2jy_37", pt = "_typeAheadPortal_1w2jy_40", jt = "_siteLink_1w2jy_47", Kt = "_accountArea_1w2jy_74", zt = "_category_1w2jy_86", Bt = "_categoryLink_1w2jy_94", Et = "_menuList_1w2jy_110", $t = "_menuItemAction_1w2jy_133", Ft = "_shortcutIcon_1w2jy_142", e = {
20
- main: kt,
21
- column: At,
22
- topNav: bt,
19
+ import '../../assets/MainNav.css';const wt = "_main_abc65_1", kt = "_column_abc65_8", At = "_topNav_abc65_13", vt = "_logo_abc65_21", Lt = "_operations_abc65_24", Dt = "_search_abc65_31", xt = "_mobileSearch_abc65_37", pt = "_typeAheadPortal_abc65_40", Kt = "_siteLink_abc65_47", zt = "_accountArea_abc65_74", Bt = "_category_abc65_88", Et = "_categoryLink_abc65_96", $t = "_menuList_abc65_112", Ft = "_menuItemAction_abc65_135", Rt = "_shortcutIcon_abc65_144", e = {
20
+ main: wt,
21
+ column: kt,
22
+ topNav: At,
23
23
  logo: vt,
24
24
  operations: Lt,
25
25
  search: Dt,
26
26
  mobileSearch: xt,
27
27
  typeAheadPortal: pt,
28
- siteLink: jt,
29
- accountArea: Kt,
30
- category: zt,
31
- categoryLink: Bt,
32
- menuList: Et,
33
- menuItemAction: $t,
34
- shortcutIcon: Ft
28
+ siteLink: Kt,
29
+ accountArea: zt,
30
+ category: Bt,
31
+ categoryLink: Et,
32
+ menuList: $t,
33
+ menuItemAction: Ft,
34
+ shortcutIcon: Rt
35
35
  }, gt = s.forwardRef(function({
36
- account: F,
36
+ account: R,
37
37
  categories: L,
38
38
  homeRoute: V,
39
39
  faqRoute: g,
@@ -46,91 +46,91 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
46
46
  className: it,
47
47
  onLoginClick: et,
48
48
  searchInputProps: n,
49
- searchValue: f,
49
+ searchValue: r,
50
50
  onSearchValueChange: d,
51
- onClearSearch: k,
51
+ onClearSearch: w,
52
52
  onSearch: a,
53
53
  searchSuggestions: o,
54
54
  recentSearches: y,
55
55
  onClearRecentSearch: ot,
56
- onCategoryClick: j,
56
+ onCategoryClick: K,
57
57
  onClickModelSerial: q,
58
58
  onCartClick: mt,
59
59
  accountPopoverContent: nt,
60
60
  isAccountLoading: lt,
61
61
  isCategoriesLoading: dt,
62
- ...rt
63
- }, ft) {
62
+ ...ct
63
+ }, rt) {
64
64
  var Y;
65
- const [G, R] = s.useState(!1), [r, w] = s.useState(-1), [Q, W] = s.useState(), A = s.useRef(null), K = s.useRef(null), _ = s.useId(), z = () => {
65
+ const [G, M] = s.useState(!1), [c, b] = s.useState(-1), [Q, W] = s.useState(), k = s.useRef(null), z = s.useRef(null), _ = s.useId(), B = () => {
66
66
  var t;
67
- return (t = A.current) != null && t.offsetParent ? A.current : K.current;
68
- }, b = G && !!f && !!o, B = G && !b && !!(y != null && y.length), D = b ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((Y = o == null ? void 0 : o.customParts) == null ? void 0 : Y.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : B ? (y == null ? void 0 : y.length) ?? 0 : 0;
67
+ return (t = k.current) != null && t.offsetParent ? k.current : z.current;
68
+ }, A = G && !!r && !!o, E = G && !A && !!(y != null && y.length), D = A ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((Y = o == null ? void 0 : o.customParts) == null ? void 0 : Y.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : E ? (y == null ? void 0 : y.length) ?? 0 : 0;
69
69
  s.useLayoutEffect(() => {
70
- if (!b && !B) {
70
+ if (!A && !E) {
71
71
  W(void 0);
72
72
  return;
73
73
  }
74
74
  function t() {
75
75
  var x;
76
- const m = (x = A.current) != null && x.offsetParent ? A.current : K.current;
76
+ const m = (x = k.current) != null && x.offsetParent ? k.current : z.current;
77
77
  if (!m) return;
78
- const c = m.getBoundingClientRect();
78
+ const f = m.getBoundingClientRect();
79
79
  W({
80
- top: c.bottom + 4,
81
- left: c.left,
82
- width: c.width,
83
- maxHeight: Math.max(0, window.innerHeight - c.bottom - 12)
80
+ top: f.bottom + 4,
81
+ left: f.left,
82
+ width: f.width,
83
+ maxHeight: Math.max(0, window.innerHeight - f.bottom - 12)
84
84
  });
85
85
  }
86
86
  return t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0), () => {
87
87
  window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0);
88
88
  };
89
- }, [b, B]);
89
+ }, [A, E]);
90
90
  const J = {
91
91
  ...n,
92
92
  onChange: (t) => {
93
93
  var m;
94
- w(-1), (m = n == null ? void 0 : n.onChange) == null || m.call(n, t);
94
+ b(-1), (m = n == null ? void 0 : n.onChange) == null || m.call(n, t);
95
95
  },
96
96
  onFocus: (t) => {
97
97
  var m;
98
- (m = n == null ? void 0 : n.onFocus) == null || m.call(n, t), R(!0);
98
+ (m = n == null ? void 0 : n.onFocus) == null || m.call(n, t), M(!0);
99
99
  },
100
100
  onBlur: (t) => {
101
101
  var m;
102
- (m = n == null ? void 0 : n.onBlur) == null || m.call(n, t), R(!1);
102
+ (m = n == null ? void 0 : n.onBlur) == null || m.call(n, t), M(!1);
103
103
  },
104
104
  onKeyDown: (t) => {
105
- var m, c, x;
105
+ var m, f, x;
106
106
  if ((m = n == null ? void 0 : n.onKeyDown) == null || m.call(n, t), !t.defaultPrevented) {
107
107
  if (t.key === "ArrowDown" && D > 0) {
108
- t.preventDefault(), w((p) => p >= D - 1 ? 0 : p + 1);
108
+ t.preventDefault(), b((p) => p >= D - 1 ? 0 : p + 1);
109
109
  return;
110
110
  }
111
111
  if (t.key === "ArrowUp" && D > 0) {
112
- t.preventDefault(), w((p) => p <= 0 ? D - 1 : p - 1);
112
+ t.preventDefault(), b((p) => p <= 0 ? D - 1 : p - 1);
113
113
  return;
114
114
  }
115
- if (t.key === "Tab" && b && r >= 0 && r < ((o == null ? void 0 : o.terms.length) ?? 0)) {
116
- t.preventDefault(), d == null || d((o == null ? void 0 : o.terms[r].name) ?? ""), w(-1);
115
+ if (t.key === "Tab" && A && c >= 0 && c < ((o == null ? void 0 : o.terms.length) ?? 0)) {
116
+ t.preventDefault(), d == null || d((o == null ? void 0 : o.terms[c].name) ?? ""), b(-1);
117
117
  return;
118
118
  }
119
- if (t.key === "Enter" && r >= 0 && r < D) {
120
- t.preventDefault(), (c = document.getElementById(`${_}-${r}`)) == null || c.click();
119
+ if (t.key === "Enter" && c >= 0 && c < D) {
120
+ t.preventDefault(), (f = document.getElementById(`${_}-${c}`)) == null || f.click();
121
121
  return;
122
122
  }
123
- t.key === "Enter" && (t.preventDefault(), R(!1), (x = z()) == null || x.blur(), a == null || a(f ?? ""));
123
+ t.key === "Enter" && (t.preventDefault(), M(!1), (x = B()) == null || x.blur(), a == null || a(r ?? ""));
124
124
  }
125
125
  }
126
126
  }, X = (t) => {
127
127
  var m;
128
- t.key.length !== 1 || t.altKey || t.ctrlKey || t.metaKey || (t.preventDefault(), w(-1), d == null || d(`${f ?? ""}${t.key}`), (m = z()) == null || m.focus());
128
+ t.key.length !== 1 || t.altKey || t.ctrlKey || t.metaKey || (t.preventDefault(), b(-1), d == null || d(`${r ?? ""}${t.key}`), (m = B()) == null || m.focus());
129
129
  };
130
- return /* @__PURE__ */ l(M, { children: [
131
- /* @__PURE__ */ i(at, { ...rt, gridWrapperClassName: N(e.main, it), children: /* @__PURE__ */ l(st, { span: 12, className: e.column, children: [
130
+ return /* @__PURE__ */ l(U, { children: [
131
+ /* @__PURE__ */ i(at, { ...ct, gridWrapperClassName: N(e.main, it), children: /* @__PURE__ */ l(st, { span: 12, className: e.column, children: [
132
132
  /* @__PURE__ */ l(
133
- E,
133
+ $,
134
134
  {
135
135
  flexDirection: "row",
136
136
  alignItems: "center",
@@ -139,14 +139,14 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
139
139
  children: [
140
140
  /* @__PURE__ */ i("div", { className: e.logo, children: /* @__PURE__ */ i(H, { href: V, children: /* @__PURE__ */ i(yt, {}) }) }),
141
141
  /* @__PURE__ */ l(
142
- E,
142
+ $,
143
143
  {
144
144
  flexDirection: "row",
145
145
  alignItems: "center",
146
146
  justifyContent: "flex-end",
147
147
  className: e.operations,
148
148
  children: [
149
- /* @__PURE__ */ i(E, { flexDirection: "row", hideAt: ["sm"], className: e.search, children: /* @__PURE__ */ i(
149
+ /* @__PURE__ */ i($, { flexDirection: "row", hideAt: ["sm"], className: e.search, children: /* @__PURE__ */ i(
150
150
  Z,
151
151
  {
152
152
  variant: "search",
@@ -156,28 +156,28 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
156
156
  autoComplete: "off",
157
157
  "aria-autocomplete": "list",
158
158
  "aria-controls": _,
159
- "aria-activedescendant": r >= 0 ? `${_}-${r}` : void 0,
159
+ "aria-activedescendant": c >= 0 ? `${_}-${c}` : void 0,
160
160
  ...J,
161
- ref: A,
162
- value: f,
163
- endAdornment: /* @__PURE__ */ l(M, { children: [
164
- !!f && /* @__PURE__ */ i(
165
- $,
161
+ ref: k,
162
+ value: r,
163
+ endAdornment: /* @__PURE__ */ l(U, { children: [
164
+ !!r && /* @__PURE__ */ i(
165
+ F,
166
166
  {
167
167
  "aria-label": "Clear search",
168
168
  onMouseDown: (t) => t.preventDefault(),
169
169
  onClick: () => {
170
170
  var t;
171
- w(-1), k == null || k(), (t = A.current) == null || t.focus();
171
+ b(-1), w == null || w(), (t = k.current) == null || t.focus();
172
172
  },
173
173
  iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
174
174
  }
175
175
  ),
176
176
  /* @__PURE__ */ i(
177
- $,
177
+ F,
178
178
  {
179
179
  "aria-label": "Submit search",
180
- onClick: () => a == null ? void 0 : a(f ?? ""),
180
+ onClick: () => a == null ? void 0 : a(r ?? ""),
181
181
  iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
182
182
  }
183
183
  )
@@ -193,7 +193,7 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
193
193
  /* @__PURE__ */ i("div", { className: e.accountArea, children: /* @__PURE__ */ i(
194
194
  ut,
195
195
  {
196
- account: F,
196
+ account: R,
197
197
  onLoginClick: et,
198
198
  className: e.avatar,
199
199
  popoverContent: nt,
@@ -203,15 +203,15 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
203
203
  /* @__PURE__ */ i(
204
204
  _t,
205
205
  {
206
- ref: ft,
206
+ ref: rt,
207
207
  cart: S,
208
208
  open: tt,
209
209
  onCartClick: mt
210
210
  }
211
211
  ),
212
- /* @__PURE__ */ l(wt, { hideAt: ["lg"], children: [
212
+ /* @__PURE__ */ l(bt, { hideAt: ["lg"], children: [
213
213
  /* @__PURE__ */ l("section", { children: [
214
- /* @__PURE__ */ i(U, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
214
+ /* @__PURE__ */ i(j, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
215
215
  /* @__PURE__ */ l("ul", { className: e.menuList, children: [
216
216
  /* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ l(
217
217
  "button",
@@ -244,15 +244,15 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
244
244
  ] })
245
245
  ] }),
246
246
  /* @__PURE__ */ l("section", { children: [
247
- /* @__PURE__ */ i(U, { size: "md", weight: "semibold", children: "Shop by category" }),
247
+ /* @__PURE__ */ i(j, { size: "md", weight: "semibold", children: "Shop by category" }),
248
248
  /* @__PURE__ */ i("ul", { className: e.menuList, children: L && L.map((t) => /* @__PURE__ */ i("li", { className: e.category, children: /* @__PURE__ */ l(
249
249
  H,
250
250
  {
251
251
  href: t.route,
252
252
  className: e.categoryLink,
253
- onClick: () => j == null ? void 0 : j(t),
253
+ onClick: () => K == null ? void 0 : K(t),
254
254
  children: [
255
- /* @__PURE__ */ i(U, { size: "sm", children: t.label }),
255
+ /* @__PURE__ */ i(j, { size: "sm", children: t.label }),
256
256
  /* @__PURE__ */ i(
257
257
  u,
258
258
  {
@@ -272,7 +272,7 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
272
272
  ]
273
273
  }
274
274
  ),
275
- /* @__PURE__ */ i(E, { flexDirection: "row", hideAt: ["md", "lg"], className: e.mobileSearch, children: /* @__PURE__ */ i("div", { className: e.search, children: /* @__PURE__ */ i(
275
+ /* @__PURE__ */ i($, { flexDirection: "row", hideAt: ["md", "lg"], className: e.mobileSearch, children: /* @__PURE__ */ i("div", { className: e.search, children: /* @__PURE__ */ i(
276
276
  Z,
277
277
  {
278
278
  variant: "search",
@@ -282,28 +282,28 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
282
282
  autoComplete: "off",
283
283
  "aria-autocomplete": "list",
284
284
  "aria-controls": _,
285
- "aria-activedescendant": r >= 0 ? `${_}-${r}` : void 0,
285
+ "aria-activedescendant": c >= 0 ? `${_}-${c}` : void 0,
286
286
  ...J,
287
- ref: K,
288
- value: f,
289
- endAdornment: /* @__PURE__ */ l(M, { children: [
290
- !!f && /* @__PURE__ */ i(
291
- $,
287
+ ref: z,
288
+ value: r,
289
+ endAdornment: /* @__PURE__ */ l(U, { children: [
290
+ !!r && /* @__PURE__ */ i(
291
+ F,
292
292
  {
293
293
  "aria-label": "Clear search",
294
294
  onMouseDown: (t) => t.preventDefault(),
295
295
  onClick: () => {
296
296
  var t;
297
- w(-1), k == null || k(), (t = K.current) == null || t.focus();
297
+ b(-1), w == null || w(), (t = z.current) == null || t.focus();
298
298
  },
299
299
  iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
300
300
  }
301
301
  ),
302
302
  /* @__PURE__ */ i(
303
- $,
303
+ F,
304
304
  {
305
305
  "aria-label": "Submit search",
306
- onClick: () => a == null ? void 0 : a(f ?? ""),
306
+ onClick: () => a == null ? void 0 : a(r ?? ""),
307
307
  iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
308
308
  }
309
309
  )
@@ -315,31 +315,31 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
315
315
  {
316
316
  categories: L,
317
317
  isCategoriesLoading: dt,
318
- onCategoryClick: j
318
+ onCategoryClick: K
319
319
  }
320
320
  )
321
321
  ] }) }),
322
- Q && typeof document < "u" && ct.createPortal(
322
+ Q && typeof document < "u" && ft.createPortal(
323
323
  /* @__PURE__ */ l(
324
324
  "div",
325
325
  {
326
326
  className: e.typeAheadPortal,
327
327
  style: Q,
328
328
  children: [
329
- b && o && /* @__PURE__ */ i(
329
+ A && o && /* @__PURE__ */ i(
330
330
  C,
331
331
  {
332
332
  ...o,
333
- activeOptionIndex: r,
333
+ activeOptionIndex: c,
334
334
  optionIdPrefix: _,
335
335
  onKeyDown: X,
336
336
  onSuggestionClick: (t) => {
337
- var m, c;
338
- (m = o.onSuggestionClick) == null || m.call(o, t), d == null || d((t == null ? void 0 : t.name) ?? f ?? ""), (c = z()) == null || c.blur();
337
+ var m, f;
338
+ (m = o.onSuggestionClick) == null || m.call(o, t), d == null || d((t == null ? void 0 : t.name) ?? r ?? ""), (f = B()) == null || f.blur();
339
339
  }
340
340
  }
341
341
  ),
342
- B && /* @__PURE__ */ i(
342
+ E && /* @__PURE__ */ i(
343
343
  C,
344
344
  {
345
345
  terms: [],
@@ -348,12 +348,12 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
348
348
  view: "recent-searches",
349
349
  recentSearches: y,
350
350
  onClearRecentSearch: ot,
351
- activeOptionIndex: r,
351
+ activeOptionIndex: c,
352
352
  optionIdPrefix: _,
353
353
  onKeyDown: X,
354
354
  onSuggestionClick: (t) => {
355
355
  var m;
356
- d == null || d((t == null ? void 0 : t.term) ?? f ?? ""), (m = z()) == null || m.blur();
356
+ d == null || d((t == null ? void 0 : t.term) ?? r ?? ""), (m = B()) == null || m.blur();
357
357
  }
358
358
  }
359
359
  )
@@ -366,10 +366,10 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
366
366
  });
367
367
  function v({
368
368
  href: I,
369
- children: F,
369
+ children: R,
370
370
  ...L
371
371
  }) {
372
- return /* @__PURE__ */ i(H, { href: I, className: e.siteLink, ...L, children: F });
372
+ return /* @__PURE__ */ i(H, { href: I, className: e.siteLink, ...L, children: R });
373
373
  }
374
374
  export {
375
375
  gt as MainNav
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.297",
4
+ "version": "0.0.298",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",