@caseparts-org/caseblocks 0.0.245 → 0.0.246

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
- ._suggestionDropdown_otg7h_1{display:flex;flex-direction:row;width:100%;border:1px solid;border-color:var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm);box-shadow:0 8px 24px #0f172a14;overflow:hidden}@media (max-width: 767px){._suggestionDropdown_otg7h_1{flex-direction:column}}._leftColumn_otg7h_29{display:flex;flex-direction:column;border-right:1px solid var(--border-border-primary);background-color:#fff;min-width:150px;max-width:220px}@media (max-width: 767px){._leftColumn_otg7h_29{border-right:0;border-bottom:1px solid var(--border-border-primary)}}._leftColumnFullWidth_otg7h_55{flex:1;max-width:none}._suggestionSectionFullHeight_otg7h_65{display:flex;flex:1}._rightColumn_otg7h_75{display:flex;flex:1;flex-direction:column;gap:var(--spacing-spacing-1xs);padding:var(--spacing-spacing-default);background:var(--color-brand-primary-primary-pale-gray);min-width:250px}._categorySection_otg7h_95{border-top:1px solid var(--border-border-primary)}._suggestions_otg7h_101,._categories_otg7h_103{display:flex;flex-direction:column;gap:0;padding:0}._suggestionsFullHeight_otg7h_117{flex:1}._customPartLink_otg7h_125{display:flex;align-items:center;gap:var(--spacing-spacing-4xs);box-sizing:border-box;width:100%;padding:var(--spacing-spacing-4xs) var(--spacing-spacing-default);transition:background-color .3s ease-in}._suggestions_otg7h_101>:first-child,._categories_otg7h_103>:first-child{padding-top:var(--spacing-spacing-default);padding-right:var(--spacing-spacing-default);padding-left:var(--spacing-spacing-default);padding-bottom:var(--spacing-spacing-2xs)}._suggestions_otg7h_101>:last-child,._categories_otg7h_103>:last-child{margin-bottom:var(--spacing-spacing-2xs)}._suggestionLink_otg7h_169,._categoryLink_otg7h_171{display:block;box-sizing:border-box;width:100%;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);transition:background-color .3s ease-in}._suggestionLink_otg7h_169:hover,._categoryLink_otg7h_171:hover,._customPartLink_otg7h_125:hover{text-decoration:none;background-color:var(--color-alerts-light-teal-blue)}._activeOption_otg7h_207{background:var(--color-alerts-light-teal-blue)}._itemList_otg7h_215{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-2xs);width:100%}._item_otg7h_215{display:flex;flex-direction:column;border:1px solid var(--border-border-primary);padding:var(--spacing-spacing-2xs);width:100%;background-color:#fff;transition:background-color .3s ease-in}._item_otg7h_215:hover{background-color:var(--color-alerts-light-teal-blue)}._item_otg7h_215>a:hover{text-decoration:none}._activeItem_otg7h_269{border-color:var(--text-text-links);box-shadow:inset 0 0 0 1px var(--text-text-links)}._item_otg7h_215 img{height:60px;width:60px;object-fit:contain}._item_otg7h_215 a{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._itemInfo_otg7h_305{display:grid;gap:var(--spacing-spacing-4xs)}._recentSearches_otg7h_315{display:flex;flex-direction:column;background:var(--color-brand-primary-white);min-width:250px}._recentSearchesHeader_otg7h_329{padding:var(--spacing-spacing-default) var(--spacing-spacing-default) var(--spacing-spacing-2xs)}._recentSearchesList_otg7h_337{display:flex;flex-direction:column;gap:0;margin:0;padding:0}._recentSearch_otg7h_315{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-spacing-2xs)}._recentSearchLink_otg7h_367{display:flex;flex:1;min-width:0;align-items:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default)}._clearRecentSearch_otg7h_383{display:flex;flex:0 0 auto;align-items:center;justify-content:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);border:0;background:transparent;color:var(--text-text-primary);cursor:pointer}
1
+ ._suggestionDropdown_ukyka_1{display:flex;flex-direction:row;width:100%;border:1px solid;border-color:var(--color-neutrals-neutral-2);border-radius:var(--border-radius-sm);box-shadow:0 8px 24px #0f172a14;overflow:hidden;background-color:#fff}@media (max-width: 767px){._suggestionDropdown_ukyka_1{flex-direction:column}}._leftColumn_ukyka_31{display:flex;flex-direction:column;border-right:1px solid var(--border-border-primary);background-color:#fff;min-width:190px;max-width:220px}@media (max-width: 767px){._leftColumn_ukyka_31{max-width:none;border-right:0;border-bottom:1px solid var(--border-border-primary)}}._leftColumnFullWidth_ukyka_59{flex:1;max-width:none}._suggestionSectionFullHeight_ukyka_69{display:flex;flex:1}._rightColumn_ukyka_79{display:flex;flex:1;flex-direction:column;gap:var(--spacing-spacing-1xs);padding:var(--spacing-spacing-default);background:var(--color-brand-primary-primary-pale-gray);min-width:250px}._categorySection_ukyka_99{border-top:1px solid var(--border-border-primary)}._suggestions_ukyka_105,._categories_ukyka_107{display:flex;flex-direction:column;gap:0;padding:0}._suggestionsFullHeight_ukyka_121{flex:1}._customPartLink_ukyka_129{display:flex;align-items:center;gap:var(--spacing-spacing-4xs);box-sizing:border-box;width:100%;padding:var(--spacing-spacing-4xs) var(--spacing-spacing-default);transition:background-color .3s ease-in}._suggestions_ukyka_105>:first-child,._categories_ukyka_107>:first-child{padding-top:var(--spacing-spacing-default);padding-right:var(--spacing-spacing-default);padding-left:var(--spacing-spacing-default);padding-bottom:var(--spacing-spacing-2xs)}._suggestions_ukyka_105>:last-child,._categories_ukyka_107>:last-child{margin-bottom:var(--spacing-spacing-2xs)}._suggestionLink_ukyka_173,._categoryLink_ukyka_175{display:block;box-sizing:border-box;width:100%;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);transition:background-color .3s ease-in}._suggestionLink_ukyka_173:hover,._categoryLink_ukyka_175:hover,._customPartLink_ukyka_129:hover{text-decoration:none;background-color:var(--color-alerts-light-teal-blue)}._activeOption_ukyka_211{background:var(--color-alerts-light-teal-blue)}._itemList_ukyka_219{margin:0;padding:0;display:flex;flex-direction:column;gap:var(--spacing-spacing-2xs);width:100%}._item_ukyka_219{display:flex;flex-direction:column;border:1px solid var(--border-border-primary);padding:var(--spacing-spacing-2xs);width:100%;background-color:#fff;transition:background-color .3s ease-in}._recentSearch_ukyka_257:hover,._item_ukyka_219:hover{background-color:var(--color-alerts-light-teal-blue)}._item_ukyka_219>a:hover{text-decoration:none}._activeItem_ukyka_275{border-color:var(--text-text-links);box-shadow:inset 0 0 0 1px var(--text-text-links)}._item_ukyka_219 img{height:60px;width:60px;object-fit:contain}._item_ukyka_219 a{display:flex;flex-direction:row;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._itemInfo_ukyka_311{display:grid;gap:var(--spacing-spacing-4xs)}._recentSearches_ukyka_321{display:flex;flex-direction:column;background:var(--color-brand-primary-white);min-width:250px}._recentSearchesHeader_ukyka_335{padding:var(--spacing-spacing-default) var(--spacing-spacing-default) var(--spacing-spacing-2xs)}._recentSearchesList_ukyka_343{display:flex;flex-direction:column;gap:0;margin:0;padding:0}._recentSearch_ukyka_257{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-spacing-2xs);transition:background-color .3s ease-in}._recentSearchLink_ukyka_375{display:flex;flex:1;min-width:0;align-items:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default)}._recentSearchLink_ukyka_375:hover{text-decoration:none}._clearRecentSearch_ukyka_399{display:flex;flex:0 0 auto;align-items:center;justify-content:center;padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);border:0;background:transparent;color:var(--text-text-primary);cursor:pointer}
@@ -1,127 +1,130 @@
1
- import { jsx as m, jsxs as d, Fragment as J } from "react/jsx-runtime";
2
- import L from "react";
3
- import { Text as U } from "../../atoms/Text/Text.js";
4
- import { Link as j } from "../../atoms/Link/Link.js";
1
+ import { jsx as o, jsxs as e, Fragment as Y } from "react/jsx-runtime";
2
+ import D from "react";
3
+ import { Text as O } from "../../atoms/Text/Text.js";
4
+ import { Link as U } from "../../atoms/Link/Link.js";
5
5
  import { Icon as y } from "../../atoms/Icon/Icon.js";
6
- import { Flex as B } from "../../atoms/Flex/Flex.js";
7
- import { Grid as di, Column as fi } from "../../atoms/Grid/Grid.js";
8
- import { Input as X } from "../../atoms/Input/Input.js";
9
- import { InputEndAdornmentButton as $ } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
10
- import { Logo as ei } from "../../molecules/Logo/Logo.js";
11
- import { HamburgerMenu as si } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
12
- import { ShoppingCart as ci } from "../../molecules/Cart/Cart.js";
13
- import { Account as ri } from "../../molecules/Account/Account.js";
14
- import { CategoryNav as _i } from "../../molecules/CategoryNav/CategoryNav.js";
15
- import { SuggestionDropdown as u } from "../SuggestionDropdown/SuggestionDropdown.js";
16
- import { getHideAtStyles as Y } from "../../atoms/HideAt.js";
6
+ import { Flex as z } from "../../atoms/Flex/Flex.js";
7
+ import { Grid as fi, Column as si } from "../../atoms/Grid/Grid.js";
8
+ import { Input as Z } from "../../atoms/Input/Input.js";
9
+ import { InputEndAdornmentButton as B } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
10
+ import { Logo as ci } from "../../molecules/Logo/Logo.js";
11
+ import { HamburgerMenu as ri } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
12
+ import { ShoppingCart as ai } from "../../molecules/Cart/Cart.js";
13
+ import { Account as _i } from "../../molecules/Account/Account.js";
14
+ import { CategoryNav as Ni } from "../../molecules/CategoryNav/CategoryNav.js";
15
+ import { SuggestionDropdown as $ } from "../SuggestionDropdown/SuggestionDropdown.js";
16
+ import { getHideAtStyles as P } from "../../atoms/HideAt.js";
17
17
  import { c as k } from "../../clsx-OuTLNxxd.js";
18
- import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_12974_8", yi = "_topNav_12974_13", ki = "_logo_12974_21", wi = "_operations_12974_24", Ai = "_search_12974_31", bi = "_mobileSearch_12974_36", Di = "_suggestionDropdown_12974_39", vi = "_siteLink_12974_45", xi = "_accountArea_12974_72", Li = "_category_12974_84", Ki = "_categoryLink_12974_92", zi = "_menuList_12974_108", pi = "_menuItemAction_12974_131", Bi = "_shortcutIcon_12974_140", t = {
19
- main: Ni,
20
- column: ai,
21
- topNav: yi,
22
- logo: ki,
23
- operations: wi,
18
+ import '../../assets/MainNav.css';const yi = "_main_12974_1", ki = "_column_12974_8", wi = "_topNav_12974_13", Di = "_logo_12974_21", bi = "_operations_12974_24", Ai = "_search_12974_31", vi = "_mobileSearch_12974_36", xi = "_suggestionDropdown_12974_39", Li = "_siteLink_12974_45", Ki = "_accountArea_12974_72", ui = "_category_12974_84", pi = "_categoryLink_12974_92", zi = "_menuList_12974_108", Bi = "_menuItemAction_12974_131", $i = "_shortcutIcon_12974_140", t = {
19
+ main: yi,
20
+ column: ki,
21
+ topNav: wi,
22
+ logo: Di,
23
+ operations: bi,
24
24
  search: Ai,
25
- mobileSearch: bi,
26
- suggestionDropdown: Di,
27
- siteLink: vi,
28
- accountArea: xi,
29
- category: Li,
30
- categoryLink: Ki,
25
+ mobileSearch: vi,
26
+ suggestionDropdown: xi,
27
+ siteLink: Li,
28
+ accountArea: Ki,
29
+ category: ui,
30
+ categoryLink: pi,
31
31
  menuList: zi,
32
- menuItemAction: pi,
33
- shortcutIcon: Bi
34
- }, Xi = L.forwardRef(function({
32
+ menuItemAction: Bi,
33
+ shortcutIcon: $i
34
+ }, Zi = D.forwardRef(function({
35
35
  account: F,
36
- categories: b,
37
- homeRoute: Z,
38
- faqRoute: C,
39
- customPartsRoute: I,
40
- aboutUsRoute: P,
41
- contactRoute: M,
42
- cart: g,
43
- open: V,
36
+ categories: A,
37
+ homeRoute: C,
38
+ faqRoute: g,
39
+ customPartsRoute: E,
40
+ aboutUsRoute: V,
41
+ contactRoute: R,
42
+ cart: h,
43
+ open: S,
44
44
  // consume external panel control props from CartPropsBase
45
- className: h,
46
- onLoginClick: S,
45
+ className: ii,
46
+ onLoginClick: ti,
47
47
  searchInputProps: l,
48
48
  searchValue: s,
49
49
  onSearchValueChange: n,
50
50
  onClearSearch: w,
51
51
  onSearch: c,
52
- searchSuggestions: o,
53
- recentSearches: _,
52
+ searchSuggestions: m,
53
+ recentSearches: a,
54
54
  onClearRecentSearch: H,
55
55
  onCategoryClick: K,
56
- onClickModelSerial: R,
57
- onCartClick: ii,
58
- accountPopoverContent: ti,
59
- isAccountLoading: mi,
60
- isCategoriesLoading: oi,
61
- ...li
62
- }, ni) {
63
- var G;
64
- const [T, N] = L.useState(!1), [f, a] = L.useState(-1), z = L.useRef(null), r = L.useId(), D = T && !!s && !!o, O = T && !D && !!(_ != null && _.length), v = D ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((G = o == null ? void 0 : o.customParts) == null ? void 0 : G.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : O ? (_ == null ? void 0 : _.length) ?? 0 : 0, q = {
56
+ onClickModelSerial: T,
57
+ onCartClick: oi,
58
+ accountPopoverContent: mi,
59
+ isAccountLoading: li,
60
+ isCategoriesLoading: ni,
61
+ ...ei
62
+ }, di) {
63
+ var W;
64
+ const [q, _] = D.useState(!1), [d, N] = D.useState(-1), u = D.useRef(null), I = D.useRef(null), r = D.useId(), G = () => {
65
+ var i;
66
+ return (i = u.current) != null && i.offsetParent ? u.current : I.current;
67
+ }, v = q && !!s && !!m, M = q && !v && !!(a != null && a.length), x = v ? ((m == null ? void 0 : m.terms.length) ?? 0) + ((m == null ? void 0 : m.categories.length) ?? 0) + (((W = m == null ? void 0 : m.customParts) == null ? void 0 : W.length) ?? 0) + ((m == null ? void 0 : m.items.length) ?? 0) : M ? (a == null ? void 0 : a.length) ?? 0 : 0, Q = {
65
68
  ...l,
66
69
  onChange: (i) => {
67
- var e;
68
- a(-1), (e = l == null ? void 0 : l.onChange) == null || e.call(l, i);
70
+ var f;
71
+ N(-1), (f = l == null ? void 0 : l.onChange) == null || f.call(l, i);
69
72
  },
70
73
  onFocus: (i) => {
71
- var e;
72
- (e = l == null ? void 0 : l.onFocus) == null || e.call(l, i), N(!0);
74
+ var f;
75
+ (f = l == null ? void 0 : l.onFocus) == null || f.call(l, i), _(!0);
73
76
  },
74
77
  onBlur: (i) => {
75
- var e;
76
- (e = l == null ? void 0 : l.onBlur) == null || e.call(l, i), N(!1);
78
+ var f;
79
+ (f = l == null ? void 0 : l.onBlur) == null || f.call(l, i), _(!1);
77
80
  },
78
81
  onKeyDown: (i) => {
79
- var e, Q, W;
80
- if ((e = l == null ? void 0 : l.onKeyDown) == null || e.call(l, i), !i.defaultPrevented) {
81
- if (i.key === "ArrowDown" && v > 0) {
82
- i.preventDefault(), a((x) => x >= v - 1 ? 0 : x + 1);
82
+ var f, J, X;
83
+ if ((f = l == null ? void 0 : l.onKeyDown) == null || f.call(l, i), !i.defaultPrevented) {
84
+ if (i.key === "ArrowDown" && x > 0) {
85
+ i.preventDefault(), N((L) => L >= x - 1 ? 0 : L + 1);
83
86
  return;
84
87
  }
85
- if (i.key === "ArrowUp" && v > 0) {
86
- i.preventDefault(), a((x) => x <= 0 ? v - 1 : x - 1);
88
+ if (i.key === "ArrowUp" && x > 0) {
89
+ i.preventDefault(), N((L) => L <= 0 ? x - 1 : L - 1);
87
90
  return;
88
91
  }
89
- if (i.key === "Tab" && D && f >= 0 && f < ((o == null ? void 0 : o.terms.length) ?? 0)) {
90
- i.preventDefault(), n == null || n((o == null ? void 0 : o.terms[f].name) ?? ""), a(-1);
92
+ if (i.key === "Tab" && v && d >= 0 && d < ((m == null ? void 0 : m.terms.length) ?? 0)) {
93
+ i.preventDefault(), n == null || n((m == null ? void 0 : m.terms[d].name) ?? ""), N(-1);
91
94
  return;
92
95
  }
93
- if (i.key === "Enter" && f >= 0 && f < v) {
94
- i.preventDefault(), (Q = document.getElementById(`${r}-${f}`)) == null || Q.click();
96
+ if (i.key === "Enter" && d >= 0 && d < x) {
97
+ i.preventDefault(), (J = document.getElementById(`${r}-${d}`)) == null || J.click();
95
98
  return;
96
99
  }
97
- i.key === "Enter" && (i.preventDefault(), N(!1), (W = z.current) == null || W.blur(), c == null || c(s ?? ""));
100
+ i.key === "Enter" && (i.preventDefault(), _(!1), (X = G()) == null || X.blur(), c == null || c(s ?? ""));
98
101
  }
99
102
  }
100
103
  }, p = (i) => {
101
- var e;
102
- i.key.length !== 1 || i.altKey || i.ctrlKey || i.metaKey || (i.preventDefault(), a(-1), n == null || n(`${s ?? ""}${i.key}`), (e = z.current) == null || e.focus());
104
+ var f;
105
+ i.key.length !== 1 || i.altKey || i.ctrlKey || i.metaKey || (i.preventDefault(), N(-1), n == null || n(`${s ?? ""}${i.key}`), (f = G()) == null || f.focus());
103
106
  };
104
- return /* @__PURE__ */ m(di, { ...li, gridWrapperClassName: k(t.main, h), children: /* @__PURE__ */ d(fi, { span: 12, className: t.column, children: [
105
- /* @__PURE__ */ d(
106
- B,
107
+ return /* @__PURE__ */ o(fi, { ...ei, gridWrapperClassName: k(t.main, ii), children: /* @__PURE__ */ e(si, { span: 12, className: t.column, children: [
108
+ /* @__PURE__ */ e(
109
+ z,
107
110
  {
108
111
  flexDirection: "row",
109
112
  alignItems: "center",
110
113
  justifyContent: "space-between",
111
114
  className: t.topNav,
112
115
  children: [
113
- /* @__PURE__ */ m("div", { className: t.logo, children: /* @__PURE__ */ m(j, { href: Z, children: /* @__PURE__ */ m(ei, {}) }) }),
114
- /* @__PURE__ */ d(
115
- B,
116
+ /* @__PURE__ */ o("div", { className: t.logo, children: /* @__PURE__ */ o(U, { href: C, children: /* @__PURE__ */ o(ci, {}) }) }),
117
+ /* @__PURE__ */ e(
118
+ z,
116
119
  {
117
120
  flexDirection: "row",
118
121
  alignItems: "center",
119
122
  justifyContent: "flex-end",
120
123
  className: t.operations,
121
124
  children: [
122
- /* @__PURE__ */ d(B, { flexDirection: "row", hideAt: ["sm"], className: t.search, children: [
123
- /* @__PURE__ */ m(
124
- X,
125
+ /* @__PURE__ */ e(z, { flexDirection: "row", hideAt: ["sm"], className: t.search, children: [
126
+ /* @__PURE__ */ o(
127
+ Z,
125
128
  {
126
129
  variant: "search",
127
130
  label: "Search",
@@ -130,23 +133,25 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
130
133
  autoComplete: "off",
131
134
  "aria-autocomplete": "list",
132
135
  "aria-controls": r,
133
- "aria-activedescendant": f >= 0 ? `${r}-${f}` : void 0,
134
- ...q,
135
- ref: z,
136
+ "aria-activedescendant": d >= 0 ? `${r}-${d}` : void 0,
137
+ ...Q,
138
+ ref: u,
136
139
  value: s,
137
- endAdornment: /* @__PURE__ */ d(J, { children: [
138
- !!s && /* @__PURE__ */ m(
139
- $,
140
+ endAdornment: /* @__PURE__ */ e(Y, { children: [
141
+ !!s && /* @__PURE__ */ o(
142
+ B,
140
143
  {
141
144
  "aria-label": "Clear search",
145
+ onMouseDown: (i) => i.preventDefault(),
142
146
  onClick: () => {
143
- a(-1), w == null || w();
147
+ var i;
148
+ N(-1), w == null || w(), (i = u.current) == null || i.focus();
144
149
  },
145
150
  iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
146
151
  }
147
152
  ),
148
- /* @__PURE__ */ m(
149
- $,
153
+ /* @__PURE__ */ o(
154
+ B,
150
155
  {
151
156
  "aria-label": "Submit search",
152
157
  onClick: () => c == null ? void 0 : c(s ?? ""),
@@ -156,108 +161,108 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
156
161
  ] })
157
162
  }
158
163
  ),
159
- D && o && /* @__PURE__ */ m(
160
- u,
164
+ v && m && /* @__PURE__ */ o(
165
+ $,
161
166
  {
162
- ...o,
163
- activeOptionIndex: f,
167
+ ...m,
168
+ activeOptionIndex: d,
164
169
  optionIdPrefix: r,
165
170
  onKeyDown: p,
166
171
  onSuggestionClick: (i) => {
167
- n == null || n((i == null ? void 0 : i.name) ?? s ?? ""), N(!1);
172
+ n == null || n((i == null ? void 0 : i.name) ?? s ?? ""), _(!1);
168
173
  },
169
174
  className: t.suggestionDropdown
170
175
  }
171
176
  ),
172
- O && /* @__PURE__ */ m(
173
- u,
177
+ M && /* @__PURE__ */ o(
178
+ $,
174
179
  {
175
180
  terms: [],
176
181
  categories: [],
177
182
  items: [],
178
183
  view: "recent-searches",
179
- recentSearches: _,
184
+ recentSearches: a,
180
185
  onClearRecentSearch: H,
181
- activeOptionIndex: f,
186
+ activeOptionIndex: d,
182
187
  optionIdPrefix: r,
183
188
  onKeyDown: p,
184
189
  onSuggestionClick: (i) => {
185
- n == null || n((i == null ? void 0 : i.term) ?? s ?? ""), N(!1);
190
+ n == null || n((i == null ? void 0 : i.term) ?? s ?? ""), _(!1);
186
191
  },
187
192
  className: t.suggestionDropdown
188
193
  }
189
194
  )
190
195
  ] }),
191
- /* @__PURE__ */ d("button", { onClick: R, className: k(t.siteLink, Y(["sm", "md"])), children: [
192
- /* @__PURE__ */ m(y, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
196
+ /* @__PURE__ */ e("button", { onClick: T, className: k(t.siteLink, P(["sm", "md"])), children: [
197
+ /* @__PURE__ */ o(y, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
193
198
  "Model/Serial"
194
199
  ] }),
195
- /* @__PURE__ */ m(A, { href: I, hideAt: ["sm", "md"], children: "Custom Parts" }),
196
- /* @__PURE__ */ m(A, { href: M, hideAt: ["sm", "md"], children: "Contact Us" }),
197
- /* @__PURE__ */ m("div", { className: t.accountArea, children: /* @__PURE__ */ m(
198
- ri,
200
+ /* @__PURE__ */ o(b, { href: E, hideAt: ["sm", "md"], children: "Custom Parts" }),
201
+ /* @__PURE__ */ o(b, { href: R, hideAt: ["sm", "md"], children: "Contact Us" }),
202
+ /* @__PURE__ */ o("div", { className: t.accountArea, children: /* @__PURE__ */ o(
203
+ _i,
199
204
  {
200
205
  account: F,
201
- onLoginClick: S,
206
+ onLoginClick: ti,
202
207
  className: t.avatar,
203
- popoverContent: ti,
204
- isAccountLoading: mi
208
+ popoverContent: mi,
209
+ isAccountLoading: li
205
210
  }
206
211
  ) }),
207
- /* @__PURE__ */ m(
208
- ci,
212
+ /* @__PURE__ */ o(
213
+ ai,
209
214
  {
210
- ref: ni,
211
- cart: g,
212
- open: V,
213
- onCartClick: ii
215
+ ref: di,
216
+ cart: h,
217
+ open: S,
218
+ onCartClick: oi
214
219
  }
215
220
  ),
216
- /* @__PURE__ */ d(si, { hideAt: ["lg"], children: [
217
- /* @__PURE__ */ d("section", { children: [
218
- /* @__PURE__ */ m(U, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
219
- /* @__PURE__ */ d("ul", { className: t.menuList, children: [
220
- /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ d(
221
+ /* @__PURE__ */ e(ri, { hideAt: ["lg"], children: [
222
+ /* @__PURE__ */ e("section", { children: [
223
+ /* @__PURE__ */ o(O, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
224
+ /* @__PURE__ */ e("ul", { className: t.menuList, children: [
225
+ /* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(
221
226
  "button",
222
227
  {
223
- onClick: R,
228
+ onClick: T,
224
229
  "data-hamburger-close": "true",
225
- className: k(t.siteLink, t.menuItemAction, Y(["lg"])),
230
+ className: k(t.siteLink, t.menuItemAction, P(["lg"])),
226
231
  children: [
227
- /* @__PURE__ */ m(y, { iconKey: "fa-regular fa-sparkles", size: "sm", className: t.shortcutIcon }),
232
+ /* @__PURE__ */ o(y, { iconKey: "fa-regular fa-sparkles", size: "sm", className: t.shortcutIcon }),
228
233
  "Model/Serial"
229
234
  ]
230
235
  }
231
236
  ) }),
232
- /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ d(A, { href: I, className: k(t.siteLink, t.menuItemAction), children: [
233
- /* @__PURE__ */ m(y, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: t.shortcutIcon }),
237
+ /* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(b, { href: E, className: k(t.siteLink, t.menuItemAction), children: [
238
+ /* @__PURE__ */ o(y, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: t.shortcutIcon }),
234
239
  "Custom Parts"
235
240
  ] }) }),
236
- /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ d(A, { href: M, className: k(t.siteLink, t.menuItemAction), children: [
237
- /* @__PURE__ */ m(y, { iconKey: "fa-regular fa-envelope", size: "sm", className: t.shortcutIcon }),
241
+ /* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(b, { href: R, className: k(t.siteLink, t.menuItemAction), children: [
242
+ /* @__PURE__ */ o(y, { iconKey: "fa-regular fa-envelope", size: "sm", className: t.shortcutIcon }),
238
243
  "Contact Us"
239
244
  ] }) }),
240
- /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ d(A, { href: C, className: k(t.siteLink, t.menuItemAction), children: [
241
- /* @__PURE__ */ m(y, { iconKey: "fa-solid fa-question", size: "sm", className: t.shortcutIcon }),
245
+ /* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(b, { href: g, className: k(t.siteLink, t.menuItemAction), children: [
246
+ /* @__PURE__ */ o(y, { iconKey: "fa-solid fa-question", size: "sm", className: t.shortcutIcon }),
242
247
  "FAQ"
243
248
  ] }) }),
244
- /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ d(A, { href: P, className: k(t.siteLink, t.menuItemAction), children: [
245
- /* @__PURE__ */ m(y, { iconKey: "fa-regular fa-people-group", size: "sm", className: t.shortcutIcon }),
249
+ /* @__PURE__ */ o("li", { className: t.menuItem, children: /* @__PURE__ */ e(b, { href: V, className: k(t.siteLink, t.menuItemAction), children: [
250
+ /* @__PURE__ */ o(y, { iconKey: "fa-regular fa-people-group", size: "sm", className: t.shortcutIcon }),
246
251
  "About Us"
247
252
  ] }) })
248
253
  ] })
249
254
  ] }),
250
- /* @__PURE__ */ d("section", { children: [
251
- /* @__PURE__ */ m(U, { size: "md", weight: "semibold", children: "Shop by category" }),
252
- /* @__PURE__ */ m("ul", { className: t.menuList, children: b && b.map((i) => /* @__PURE__ */ m("li", { className: t.category, children: /* @__PURE__ */ d(
253
- j,
255
+ /* @__PURE__ */ e("section", { children: [
256
+ /* @__PURE__ */ o(O, { size: "md", weight: "semibold", children: "Shop by category" }),
257
+ /* @__PURE__ */ o("ul", { className: t.menuList, children: A && A.map((i) => /* @__PURE__ */ o("li", { className: t.category, children: /* @__PURE__ */ e(
258
+ U,
254
259
  {
255
260
  href: i.route,
256
261
  className: t.categoryLink,
257
262
  onClick: () => K == null ? void 0 : K(i),
258
263
  children: [
259
- /* @__PURE__ */ m(U, { size: "sm", children: i.label }),
260
- /* @__PURE__ */ m(
264
+ /* @__PURE__ */ o(O, { size: "sm", children: i.label }),
265
+ /* @__PURE__ */ o(
261
266
  y,
262
267
  {
263
268
  iconKey: "fa-solid fa-chevron-right",
@@ -276,9 +281,9 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
276
281
  ]
277
282
  }
278
283
  ),
279
- /* @__PURE__ */ m(B, { flexDirection: "row", hideAt: ["md", "lg"], className: t.mobileSearch, children: /* @__PURE__ */ d("div", { className: t.search, children: [
280
- /* @__PURE__ */ m(
281
- X,
284
+ /* @__PURE__ */ o(z, { flexDirection: "row", hideAt: ["md", "lg"], className: t.mobileSearch, children: /* @__PURE__ */ e("div", { className: t.search, children: [
285
+ /* @__PURE__ */ o(
286
+ Z,
282
287
  {
283
288
  variant: "search",
284
289
  label: "Search",
@@ -287,23 +292,25 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
287
292
  autoComplete: "off",
288
293
  "aria-autocomplete": "list",
289
294
  "aria-controls": r,
290
- "aria-activedescendant": f >= 0 ? `${r}-${f}` : void 0,
291
- ...q,
292
- ref: z,
295
+ "aria-activedescendant": d >= 0 ? `${r}-${d}` : void 0,
296
+ ...Q,
297
+ ref: I,
293
298
  value: s,
294
- endAdornment: /* @__PURE__ */ d(J, { children: [
295
- !!s && /* @__PURE__ */ m(
296
- $,
299
+ endAdornment: /* @__PURE__ */ e(Y, { children: [
300
+ !!s && /* @__PURE__ */ o(
301
+ B,
297
302
  {
298
303
  "aria-label": "Clear search",
304
+ onMouseDown: (i) => i.preventDefault(),
299
305
  onClick: () => {
300
- a(-1), w == null || w();
306
+ var i;
307
+ N(-1), w == null || w(), (i = I.current) == null || i.focus();
301
308
  },
302
309
  iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
303
310
  }
304
311
  ),
305
- /* @__PURE__ */ m(
306
- $,
312
+ /* @__PURE__ */ o(
313
+ B,
307
314
  {
308
315
  "aria-label": "Submit search",
309
316
  onClick: () => c == null ? void 0 : c(s ?? ""),
@@ -313,45 +320,45 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
313
320
  ] })
314
321
  }
315
322
  ),
316
- D && o && /* @__PURE__ */ m(u, { ...o, activeOptionIndex: f, optionIdPrefix: r, onKeyDown: p, onSuggestionClick: (i) => {
317
- n == null || n((i == null ? void 0 : i.name) ?? s ?? ""), N(!1);
323
+ v && m && /* @__PURE__ */ o($, { ...m, activeOptionIndex: d, optionIdPrefix: r, onKeyDown: p, onSuggestionClick: (i) => {
324
+ n == null || n((i == null ? void 0 : i.name) ?? s ?? ""), _(!1);
318
325
  }, className: t.suggestionDropdown }),
319
- O && /* @__PURE__ */ m(
320
- u,
326
+ M && /* @__PURE__ */ o(
327
+ $,
321
328
  {
322
329
  terms: [],
323
330
  categories: [],
324
331
  items: [],
325
332
  view: "recent-searches",
326
- recentSearches: _,
333
+ recentSearches: a,
327
334
  onClearRecentSearch: H,
328
- activeOptionIndex: f,
335
+ activeOptionIndex: d,
329
336
  optionIdPrefix: r,
330
337
  onKeyDown: p,
331
338
  onSuggestionClick: (i) => {
332
- n == null || n((i == null ? void 0 : i.term) ?? s ?? ""), N(!1);
339
+ n == null || n((i == null ? void 0 : i.term) ?? s ?? ""), _(!1);
333
340
  },
334
341
  className: t.suggestionDropdown
335
342
  }
336
343
  )
337
344
  ] }) }),
338
- /* @__PURE__ */ m(
339
- _i,
345
+ /* @__PURE__ */ o(
346
+ Ni,
340
347
  {
341
- categories: b,
342
- isCategoriesLoading: oi,
348
+ categories: A,
349
+ isCategoriesLoading: ni,
343
350
  onCategoryClick: K
344
351
  }
345
352
  )
346
353
  ] }) });
347
354
  });
348
- function A({
349
- href: E,
355
+ function b({
356
+ href: j,
350
357
  children: F,
351
- ...b
358
+ ...A
352
359
  }) {
353
- return /* @__PURE__ */ m(j, { href: E, className: t.siteLink, ...b, children: F });
360
+ return /* @__PURE__ */ o(U, { href: j, className: t.siteLink, ...A, children: F });
354
361
  }
355
362
  export {
356
- Xi as MainNav
363
+ Zi as MainNav
357
364
  };
@@ -1,18 +1,18 @@
1
- import { jsxs as c, jsx as l } from "react/jsx-runtime";
2
- import { Text as o } from "../../atoms/Text/Text.js";
3
- import { Link as m } from "../../atoms/Link/Link.js";
4
- import { Icon as y } from "../../atoms/Icon/Icon.js";
5
- import { c as a } from "../../clsx-OuTLNxxd.js";
6
- import { Image as z } from "../../atoms/Image/Image.js";
7
- import '../../assets/SuggestionDropdown.css';const F = "_suggestionDropdown_otg7h_1", H = "_leftColumn_otg7h_29", $ = "_leftColumnFullWidth_otg7h_55", D = "_suggestionSectionFullHeight_otg7h_65", w = "_rightColumn_otg7h_75", b = "_categorySection_otg7h_95", T = "_suggestions_otg7h_101", k = "_categories_otg7h_103", q = "_suggestionsFullHeight_otg7h_117", W = "_customPartLink_otg7h_125", j = "_suggestionLink_otg7h_169", K = "_categoryLink_otg7h_171", M = "_activeOption_otg7h_207", O = "_itemList_otg7h_215", R = "_item_otg7h_215", x = "_activeItem_otg7h_269", A = "_itemInfo_otg7h_305", B = "_recentSearches_otg7h_315", E = "_recentSearchesHeader_otg7h_329", G = "_recentSearchesList_otg7h_337", J = "_recentSearch_otg7h_315", Q = "_recentSearchLink_otg7h_367", U = "_clearRecentSearch_otg7h_383", t = {
8
- suggestionDropdown: F,
9
- leftColumn: H,
10
- leftColumnFullWidth: $,
11
- suggestionSectionFullHeight: D,
12
- rightColumn: w,
13
- categorySection: b,
14
- suggestions: T,
15
- categories: k,
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { Text as h } from "../../atoms/Text/Text.js";
3
+ import { Link as d } from "../../atoms/Link/Link.js";
4
+ import { Icon as p } from "../../atoms/Icon/Icon.js";
5
+ import { c as o } from "../../clsx-OuTLNxxd.js";
6
+ import { Image as v } from "../../atoms/Image/Image.js";
7
+ import '../../assets/SuggestionDropdown.css';const z = "_suggestionDropdown_ukyka_1", F = "_leftColumn_ukyka_31", H = "_leftColumnFullWidth_ukyka_59", $ = "_suggestionSectionFullHeight_ukyka_69", D = "_rightColumn_ukyka_79", w = "_categorySection_ukyka_99", b = "_suggestions_ukyka_105", T = "_categories_ukyka_107", q = "_suggestionsFullHeight_ukyka_121", W = "_customPartLink_ukyka_129", j = "_suggestionLink_ukyka_173", K = "_categoryLink_ukyka_175", M = "_activeOption_ukyka_211", O = "_itemList_ukyka_219", R = "_item_ukyka_219", x = "_recentSearch_ukyka_257", A = "_activeItem_ukyka_275", B = "_itemInfo_ukyka_311", E = "_recentSearches_ukyka_321", G = "_recentSearchesHeader_ukyka_335", J = "_recentSearchesList_ukyka_343", Q = "_recentSearchLink_ukyka_375", U = "_clearRecentSearch_ukyka_399", l = {
8
+ suggestionDropdown: z,
9
+ leftColumn: F,
10
+ leftColumnFullWidth: H,
11
+ suggestionSectionFullHeight: $,
12
+ rightColumn: D,
13
+ categorySection: w,
14
+ suggestions: b,
15
+ categories: T,
16
16
  suggestionsFullHeight: q,
17
17
  customPartLink: W,
18
18
  suggestionLink: j,
@@ -20,117 +20,117 @@ import '../../assets/SuggestionDropdown.css';const F = "_suggestionDropdown_otg7
20
20
  activeOption: M,
21
21
  itemList: O,
22
22
  item: R,
23
- activeItem: x,
24
- itemInfo: A,
25
- recentSearches: B,
26
- recentSearchesHeader: E,
27
- recentSearchesList: G,
28
- recentSearch: J,
23
+ recentSearch: x,
24
+ activeItem: A,
25
+ itemInfo: B,
26
+ recentSearches: E,
27
+ recentSearchesHeader: G,
28
+ recentSearchesList: J,
29
29
  recentSearchLink: Q,
30
30
  clearRecentSearch: U
31
31
  };
32
32
  function I({
33
- terms: i,
34
- categories: r,
35
- items: u,
36
- customParts: g = [],
37
- view: v = "suggestions",
38
- recentSearches: d = [],
39
- onClearRecentSearch: f,
33
+ terms: a,
34
+ categories: i,
35
+ items: m,
36
+ customParts: _ = [],
37
+ view: N = "suggestions",
38
+ recentSearches: k = [],
39
+ onClearRecentSearch: g,
40
40
  onSuggestionClick: n,
41
- activeOptionIndex: h = -1,
42
- optionIdPrefix: _,
43
- onKeyDown: p,
44
- className: N
41
+ activeOptionIndex: r = -1,
42
+ optionIdPrefix: u,
43
+ onKeyDown: f,
44
+ className: L
45
45
  }) {
46
- return i.length === 0 && r.length === 0 && u.length === 0 && g.length === 0 && d.length === 0 ? null : v === "recent-searches" ? /* @__PURE__ */ c(
46
+ return a.length === 0 && i.length === 0 && m.length === 0 && _.length === 0 && k.length === 0 ? null : N === "recent-searches" ? /* @__PURE__ */ c(
47
47
  "div",
48
48
  {
49
- id: _,
49
+ id: u,
50
50
  role: "listbox",
51
- className: a(t.suggestionDropdown, t.recentSearches, N),
52
- onKeyDown: p,
51
+ className: o(l.suggestionDropdown, l.recentSearches, L),
52
+ onKeyDown: f,
53
53
  onMouseDown: (e) => e.preventDefault(),
54
54
  children: [
55
- /* @__PURE__ */ l("div", { className: t.recentSearchesHeader, children: /* @__PURE__ */ l(o, { size: "xxs", colorToken: "quaternary", children: "Recent Searches" }) }),
56
- /* @__PURE__ */ l("ol", { className: t.recentSearchesList, children: d.map((e) => /* @__PURE__ */ c("li", { className: t.recentSearch, children: [
57
- /* @__PURE__ */ l(
58
- m,
55
+ /* @__PURE__ */ t("div", { className: l.recentSearchesHeader, children: /* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Recent Searches" }) }),
56
+ /* @__PURE__ */ t("ol", { className: l.recentSearchesList, children: k.map((e) => /* @__PURE__ */ c("li", { className: l.recentSearch, children: [
57
+ /* @__PURE__ */ t(
58
+ d,
59
59
  {
60
60
  href: e.url,
61
- id: `${_}-${d.indexOf(e)}`,
61
+ id: `${u}-${k.indexOf(e)}`,
62
62
  role: "option",
63
- "aria-selected": h === d.indexOf(e),
64
- className: a(t.recentSearchLink, { [t.activeOption]: h === d.indexOf(e) }),
63
+ "aria-selected": r === k.indexOf(e),
64
+ className: o(l.recentSearchLink, { [l.activeOption]: r === k.indexOf(e) }),
65
65
  onClick: () => n == null ? void 0 : n(e),
66
- children: /* @__PURE__ */ l(o, { size: "sm", children: e.term })
66
+ children: /* @__PURE__ */ t(h, { size: "sm", children: e.term })
67
67
  }
68
68
  ),
69
- /* @__PURE__ */ l(
69
+ /* @__PURE__ */ t(
70
70
  "button",
71
71
  {
72
72
  type: "button",
73
- className: t.clearRecentSearch,
73
+ className: l.clearRecentSearch,
74
74
  "aria-label": `Clear recent search: ${e.term}`,
75
- onClick: () => f == null ? void 0 : f(e),
76
- children: /* @__PURE__ */ l(y, { iconKey: "fa-regular fa-xmark", size: "sm" })
75
+ onClick: () => g == null ? void 0 : g(e),
76
+ children: /* @__PURE__ */ t(p, { iconKey: "fa-regular fa-xmark", size: "sm" })
77
77
  }
78
78
  )
79
79
  ] }, e.url)) })
80
80
  ]
81
81
  }
82
- ) : /* @__PURE__ */ c("div", { id: _, role: "listbox", className: a(t.suggestionDropdown, N), onKeyDown: p, onMouseDown: (e) => e.preventDefault(), children: [
83
- (i.length > 0 || r.length > 0 || g.length > 0) && /* @__PURE__ */ c("div", { className: a(t.leftColumn, { [t.leftColumnFullWidth]: u.length === 0 }), children: [
84
- i.length > 0 && /* @__PURE__ */ l("div", { className: a(t.suggestionSection, { [t.suggestionSectionFullHeight]: r.length === 0 }), children: /* @__PURE__ */ c("div", { className: a(t.suggestions, { [t.suggestionsFullHeight]: r.length === 0 }), children: [
85
- /* @__PURE__ */ l(o, { size: "xxs", colorToken: "quaternary", children: "Suggestions" }),
86
- i.map(
87
- (e, s) => /* @__PURE__ */ l(o, { size: "sm", children: /* @__PURE__ */ l(
88
- m,
82
+ ) : /* @__PURE__ */ c("div", { id: u, role: "listbox", className: o(l.suggestionDropdown, L), onKeyDown: f, onMouseDown: (e) => e.preventDefault(), children: [
83
+ (a.length > 0 || i.length > 0 || _.length > 0) && /* @__PURE__ */ c("div", { className: o(l.leftColumn, { [l.leftColumnFullWidth]: m.length === 0 }), children: [
84
+ a.length > 0 && /* @__PURE__ */ t("div", { className: o(l.suggestionSection, { [l.suggestionSectionFullHeight]: i.length === 0 }), children: /* @__PURE__ */ c("div", { className: o(l.suggestions, { [l.suggestionsFullHeight]: i.length === 0 }), children: [
85
+ /* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Suggestions" }),
86
+ a.map(
87
+ (e, s) => /* @__PURE__ */ t(h, { size: "sm", children: /* @__PURE__ */ t(
88
+ d,
89
89
  {
90
90
  href: e.url,
91
- id: `${_}-${s}`,
91
+ id: `${u}-${s}`,
92
92
  role: "option",
93
- "aria-selected": h === s,
94
- className: a(t.suggestionLink, { [t.activeOption]: h === s }),
93
+ "aria-selected": r === s,
94
+ className: o(l.suggestionLink, { [l.activeOption]: r === s }),
95
95
  onClick: () => n == null ? void 0 : n(e),
96
96
  children: e.name
97
97
  }
98
98
  ) }, e.url)
99
99
  )
100
100
  ] }) }),
101
- r.length > 0 && /* @__PURE__ */ l("div", { className: t.categorySection, children: /* @__PURE__ */ c("div", { className: t.categories, children: [
102
- /* @__PURE__ */ l(o, { size: "xxs", colorToken: "quaternary", children: "Categories" }),
103
- r.map(
104
- (e, s) => /* @__PURE__ */ l(o, { size: "sm", children: /* @__PURE__ */ l(
105
- m,
101
+ i.length > 0 && /* @__PURE__ */ t("div", { className: l.categorySection, children: /* @__PURE__ */ c("div", { className: l.categories, children: [
102
+ /* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Categories" }),
103
+ i.map(
104
+ (e, s) => /* @__PURE__ */ t(h, { size: "sm", children: /* @__PURE__ */ t(
105
+ d,
106
106
  {
107
107
  href: e.url,
108
- id: `${_}-${i.length + s}`,
108
+ id: `${u}-${a.length + s}`,
109
109
  role: "option",
110
- "aria-selected": h === i.length + s,
111
- className: a(t.categoryLink, { [t.activeOption]: h === i.length + s }),
110
+ "aria-selected": r === a.length + s,
111
+ className: o(l.categoryLink, { [l.activeOption]: r === a.length + s }),
112
112
  onClick: () => n == null ? void 0 : n(),
113
113
  children: e.name
114
114
  }
115
115
  ) }, e.categoryKey)
116
116
  )
117
117
  ] }) }),
118
- g.length > 0 && /* @__PURE__ */ l("div", { className: t.categorySection, children: /* @__PURE__ */ c("div", { className: t.categories, children: [
119
- /* @__PURE__ */ l(o, { size: "xxs", colorToken: "quaternary", children: "Custom Parts" }),
120
- g.map((e, s) => {
121
- const L = i.length + r.length + s;
118
+ _.length > 0 && /* @__PURE__ */ t("div", { className: l.categorySection, children: /* @__PURE__ */ c("div", { className: l.categories, children: [
119
+ /* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Custom Parts" }),
120
+ _.map((e, s) => {
121
+ const y = a.length + i.length + s;
122
122
  return /* @__PURE__ */ c(
123
- m,
123
+ d,
124
124
  {
125
125
  href: e.url,
126
- id: `${_}-${L}`,
126
+ id: `${u}-${y}`,
127
127
  role: "option",
128
- "aria-selected": h === L,
129
- className: a(t.customPartLink, { [t.activeOption]: h === L }),
128
+ "aria-selected": r === y,
129
+ className: o(l.customPartLink, { [l.activeOption]: r === y }),
130
130
  onClick: () => n == null ? void 0 : n(),
131
131
  children: [
132
- /* @__PURE__ */ l(y, { iconKey: e.icon, size: "sm" }),
133
- /* @__PURE__ */ l(o, { size: "sm", children: e.label })
132
+ /* @__PURE__ */ t(p, { iconKey: e.icon, size: "sm" }),
133
+ /* @__PURE__ */ t(h, { size: "sm", children: e.label })
134
134
  ]
135
135
  },
136
136
  e.id
@@ -138,20 +138,20 @@ function I({
138
138
  })
139
139
  ] }) })
140
140
  ] }),
141
- u.length > 0 && /* @__PURE__ */ l("div", { className: t.rightColumn, children: /* @__PURE__ */ l("ol", { className: t.itemList, children: u.map(
142
- (e, s) => /* @__PURE__ */ l("li", { className: a(t.item, { [t.activeItem]: h === i.length + r.length + g.length + s }), children: /* @__PURE__ */ c(
143
- m,
141
+ m.length > 0 && /* @__PURE__ */ t("div", { className: l.rightColumn, children: /* @__PURE__ */ t("ol", { className: l.itemList, children: m.map(
142
+ (e, s) => /* @__PURE__ */ t("li", { className: o(l.item, { [l.activeItem]: r === a.length + i.length + _.length + s }), children: /* @__PURE__ */ c(
143
+ d,
144
144
  {
145
145
  href: e.url,
146
- id: `${_}-${i.length + r.length + g.length + s}`,
146
+ id: `${u}-${a.length + i.length + _.length + s}`,
147
147
  role: "option",
148
- "aria-selected": h === i.length + r.length + g.length + s,
148
+ "aria-selected": r === a.length + i.length + _.length + s,
149
149
  onClick: () => n == null ? void 0 : n(),
150
150
  children: [
151
- /* @__PURE__ */ l(z, { src: e.image, alt: `${e.description} product image`, height: 72, width: 72 }),
152
- /* @__PURE__ */ c("div", { className: t.itemInfo, children: [
153
- /* @__PURE__ */ l(o, { size: "sm", children: e.description }),
154
- /* @__PURE__ */ l(o, { size: "xs", colorToken: "quaternary", children: e.itemId })
151
+ /* @__PURE__ */ t(v, { src: e.image, alt: `${e.description} product image`, height: 72, width: 72 }),
152
+ /* @__PURE__ */ c("div", { className: l.itemInfo, children: [
153
+ /* @__PURE__ */ t(h, { size: "sm", children: e.description }),
154
+ /* @__PURE__ */ t(h, { size: "xs", colorToken: "quaternary", children: e.itemId })
155
155
  ] })
156
156
  ]
157
157
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.245",
4
+ "version": "0.0.246",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",