@caseparts-org/caseblocks 0.0.245 → 0.0.247

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";
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";
1
+ import { jsx as m, jsxs as f, 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
+ import { Icon as k } from "../../atoms/Icon/Icon.js";
6
+ import { Flex as u } from "../../atoms/Flex/Flex.js";
7
+ import { Grid as ei, Column as ci } 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 ri } from "../../molecules/Logo/Logo.js";
11
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";
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,
12
+ import { ShoppingCart as _i } from "../../molecules/Cart/Cart.js";
13
+ import { Account as Ni } from "../../molecules/Account/Account.js";
14
+ import { CategoryNav as yi } from "../../molecules/CategoryNav/CategoryNav.js";
15
+ import { SuggestionDropdown as $ } from "../SuggestionDropdown/SuggestionDropdown.js";
16
+ import { getHideAtStyles as C } from "../../atoms/HideAt.js";
17
+ import { c as a } from "../../clsx-OuTLNxxd.js";
18
+ import '../../assets/MainNav.css';const ki = "_main_12974_1", ai = "_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", pi = "_category_12974_84", zi = "_categoryLink_12974_92", ui = "_menuList_12974_108", Bi = "_menuItemAction_12974_131", $i = "_shortcutIcon_12974_140", t = {
19
+ main: ki,
20
20
  column: ai,
21
- topNav: yi,
22
- logo: ki,
23
- operations: wi,
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,
31
- menuList: zi,
32
- menuItemAction: pi,
33
- shortcutIcon: Bi
34
- }, Xi = L.forwardRef(function({
25
+ mobileSearch: vi,
26
+ suggestionDropdown: xi,
27
+ siteLink: Li,
28
+ accountArea: Ki,
29
+ category: pi,
30
+ categoryLink: zi,
31
+ menuList: ui,
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: P,
38
+ faqRoute: V,
39
+ customPartsRoute: E,
40
+ aboutUsRoute: g,
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
- searchValue: s,
49
- onSearchValueChange: n,
48
+ searchValue: c,
49
+ onSearchValueChange: d,
50
50
  onClearSearch: w,
51
- onSearch: c,
51
+ onSearch: r,
52
52
  searchSuggestions: o,
53
53
  recentSearches: _,
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: mi,
58
+ accountPopoverContent: oi,
59
+ isAccountLoading: li,
60
+ isCategoriesLoading: ni,
61
+ ...di
62
+ }, fi) {
63
+ var W;
64
+ const [q, N] = D.useState(!1), [e, y] = D.useState(-1), p = D.useRef(null), I = D.useRef(null), s = D.useId(), G = () => {
65
+ var i;
66
+ return (i = p.current) != null && i.offsetParent ? p.current : I.current;
67
+ }, v = q && !!c && !!o, M = q && !v && !!(_ != null && _.length), x = v ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((W = o == null ? void 0 : o.customParts) == null ? void 0 : W.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : M ? (_ == null ? void 0 : _.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 n;
71
+ y(-1), (n = l == null ? void 0 : l.onChange) == null || n.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 n;
75
+ (n = l == null ? void 0 : l.onFocus) == null || n.call(l, i), N(!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 n;
79
+ (n = l == null ? void 0 : l.onBlur) == null || n.call(l, i), N(!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 n, J, X;
83
+ if ((n = l == null ? void 0 : l.onKeyDown) == null || n.call(l, i), !i.defaultPrevented) {
84
+ if (i.key === "ArrowDown" && x > 0) {
85
+ i.preventDefault(), y((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(), y((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 && e >= 0 && e < ((o == null ? void 0 : o.terms.length) ?? 0)) {
93
+ i.preventDefault(), d == null || d((o == null ? void 0 : o.terms[e].name) ?? ""), y(-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" && e >= 0 && e < x) {
97
+ i.preventDefault(), (J = document.getElementById(`${s}-${e}`)) == 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(), N(!1), (X = G()) == null || X.blur(), r == null || r(c ?? ""));
98
101
  }
99
102
  }
100
- }, 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());
103
+ }, z = (i) => {
104
+ var n;
105
+ i.key.length !== 1 || i.altKey || i.ctrlKey || i.metaKey || (i.preventDefault(), y(-1), d == null || d(`${c ?? ""}${i.key}`), (n = G()) == null || n.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__ */ m(ei, { ...di, gridWrapperClassName: a(t.main, ii), children: /* @__PURE__ */ f(ci, { span: 12, className: t.column, children: [
108
+ /* @__PURE__ */ f(
109
+ u,
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__ */ m("div", { className: t.logo, children: /* @__PURE__ */ m(U, { href: P, children: /* @__PURE__ */ m(ri, {}) }) }),
117
+ /* @__PURE__ */ f(
118
+ u,
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: [
125
+ /* @__PURE__ */ f(u, { flexDirection: "row", hideAt: ["sm"], className: t.search, children: [
123
126
  /* @__PURE__ */ m(
124
- X,
127
+ Z,
125
128
  {
126
129
  variant: "search",
127
130
  label: "Search",
@@ -129,48 +132,51 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
129
132
  name: "cpc-search",
130
133
  autoComplete: "off",
131
134
  "aria-autocomplete": "list",
132
- "aria-controls": r,
133
- "aria-activedescendant": f >= 0 ? `${r}-${f}` : void 0,
134
- ...q,
135
- ref: z,
136
- value: s,
137
- endAdornment: /* @__PURE__ */ d(J, { children: [
138
- !!s && /* @__PURE__ */ m(
139
- $,
135
+ "aria-controls": s,
136
+ "aria-activedescendant": e >= 0 ? `${s}-${e}` : void 0,
137
+ ...Q,
138
+ ref: p,
139
+ value: c,
140
+ endAdornment: /* @__PURE__ */ f(Y, { children: [
141
+ !!c && /* @__PURE__ */ m(
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
+ y(-1), w == null || w(), (i = p.current) == null || i.focus();
144
149
  },
145
150
  iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
146
151
  }
147
152
  ),
148
153
  /* @__PURE__ */ m(
149
- $,
154
+ B,
150
155
  {
151
156
  "aria-label": "Submit search",
152
- onClick: () => c == null ? void 0 : c(s ?? ""),
157
+ onClick: () => r == null ? void 0 : r(c ?? ""),
153
158
  iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
154
159
  }
155
160
  )
156
161
  ] })
157
162
  }
158
163
  ),
159
- D && o && /* @__PURE__ */ m(
160
- u,
164
+ v && o && /* @__PURE__ */ m(
165
+ $,
161
166
  {
162
167
  ...o,
163
- activeOptionIndex: f,
164
- optionIdPrefix: r,
165
- onKeyDown: p,
168
+ activeOptionIndex: e,
169
+ optionIdPrefix: s,
170
+ onKeyDown: z,
166
171
  onSuggestionClick: (i) => {
167
- n == null || n((i == null ? void 0 : i.name) ?? s ?? ""), N(!1);
172
+ var n;
173
+ (n = o.onSuggestionClick) == null || n.call(o, i), d == null || d((i == null ? void 0 : i.name) ?? c ?? ""), N(!1);
168
174
  },
169
175
  className: t.suggestionDropdown
170
176
  }
171
177
  ),
172
- O && /* @__PURE__ */ m(
173
- u,
178
+ M && /* @__PURE__ */ m(
179
+ $,
174
180
  {
175
181
  terms: [],
176
182
  categories: [],
@@ -178,87 +184,87 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
178
184
  view: "recent-searches",
179
185
  recentSearches: _,
180
186
  onClearRecentSearch: H,
181
- activeOptionIndex: f,
182
- optionIdPrefix: r,
183
- onKeyDown: p,
187
+ activeOptionIndex: e,
188
+ optionIdPrefix: s,
189
+ onKeyDown: z,
184
190
  onSuggestionClick: (i) => {
185
- n == null || n((i == null ? void 0 : i.term) ?? s ?? ""), N(!1);
191
+ d == null || d((i == null ? void 0 : i.term) ?? c ?? ""), N(!1);
186
192
  },
187
193
  className: t.suggestionDropdown
188
194
  }
189
195
  )
190
196
  ] }),
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" }),
197
+ /* @__PURE__ */ f("button", { onClick: T, className: a(t.siteLink, C(["sm", "md"])), children: [
198
+ /* @__PURE__ */ m(k, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
193
199
  "Model/Serial"
194
200
  ] }),
195
- /* @__PURE__ */ m(A, { href: I, hideAt: ["sm", "md"], children: "Custom Parts" }),
196
- /* @__PURE__ */ m(A, { href: M, hideAt: ["sm", "md"], children: "Contact Us" }),
201
+ /* @__PURE__ */ m(b, { href: E, hideAt: ["sm", "md"], children: "Custom Parts" }),
202
+ /* @__PURE__ */ m(b, { href: R, hideAt: ["sm", "md"], children: "Contact Us" }),
197
203
  /* @__PURE__ */ m("div", { className: t.accountArea, children: /* @__PURE__ */ m(
198
- ri,
204
+ Ni,
199
205
  {
200
206
  account: F,
201
- onLoginClick: S,
207
+ onLoginClick: ti,
202
208
  className: t.avatar,
203
- popoverContent: ti,
204
- isAccountLoading: mi
209
+ popoverContent: oi,
210
+ isAccountLoading: li
205
211
  }
206
212
  ) }),
207
213
  /* @__PURE__ */ m(
208
- ci,
214
+ _i,
209
215
  {
210
- ref: ni,
211
- cart: g,
212
- open: V,
213
- onCartClick: ii
216
+ ref: fi,
217
+ cart: h,
218
+ open: S,
219
+ onCartClick: mi
214
220
  }
215
221
  ),
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(
222
+ /* @__PURE__ */ f(si, { hideAt: ["lg"], children: [
223
+ /* @__PURE__ */ f("section", { children: [
224
+ /* @__PURE__ */ m(O, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
225
+ /* @__PURE__ */ f("ul", { className: t.menuList, children: [
226
+ /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(
221
227
  "button",
222
228
  {
223
- onClick: R,
229
+ onClick: T,
224
230
  "data-hamburger-close": "true",
225
- className: k(t.siteLink, t.menuItemAction, Y(["lg"])),
231
+ className: a(t.siteLink, t.menuItemAction, C(["lg"])),
226
232
  children: [
227
- /* @__PURE__ */ m(y, { iconKey: "fa-regular fa-sparkles", size: "sm", className: t.shortcutIcon }),
233
+ /* @__PURE__ */ m(k, { iconKey: "fa-regular fa-sparkles", size: "sm", className: t.shortcutIcon }),
228
234
  "Model/Serial"
229
235
  ]
230
236
  }
231
237
  ) }),
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 }),
238
+ /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(b, { href: E, className: a(t.siteLink, t.menuItemAction), children: [
239
+ /* @__PURE__ */ m(k, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: t.shortcutIcon }),
234
240
  "Custom Parts"
235
241
  ] }) }),
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 }),
242
+ /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(b, { href: R, className: a(t.siteLink, t.menuItemAction), children: [
243
+ /* @__PURE__ */ m(k, { iconKey: "fa-regular fa-envelope", size: "sm", className: t.shortcutIcon }),
238
244
  "Contact Us"
239
245
  ] }) }),
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 }),
246
+ /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(b, { href: V, className: a(t.siteLink, t.menuItemAction), children: [
247
+ /* @__PURE__ */ m(k, { iconKey: "fa-solid fa-question", size: "sm", className: t.shortcutIcon }),
242
248
  "FAQ"
243
249
  ] }) }),
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 }),
250
+ /* @__PURE__ */ m("li", { className: t.menuItem, children: /* @__PURE__ */ f(b, { href: g, className: a(t.siteLink, t.menuItemAction), children: [
251
+ /* @__PURE__ */ m(k, { iconKey: "fa-regular fa-people-group", size: "sm", className: t.shortcutIcon }),
246
252
  "About Us"
247
253
  ] }) })
248
254
  ] })
249
255
  ] }),
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,
256
+ /* @__PURE__ */ f("section", { children: [
257
+ /* @__PURE__ */ m(O, { size: "md", weight: "semibold", children: "Shop by category" }),
258
+ /* @__PURE__ */ m("ul", { className: t.menuList, children: A && A.map((i) => /* @__PURE__ */ m("li", { className: t.category, children: /* @__PURE__ */ f(
259
+ U,
254
260
  {
255
261
  href: i.route,
256
262
  className: t.categoryLink,
257
263
  onClick: () => K == null ? void 0 : K(i),
258
264
  children: [
259
- /* @__PURE__ */ m(U, { size: "sm", children: i.label }),
265
+ /* @__PURE__ */ m(O, { size: "sm", children: i.label }),
260
266
  /* @__PURE__ */ m(
261
- y,
267
+ k,
262
268
  {
263
269
  iconKey: "fa-solid fa-chevron-right",
264
270
  title: "Navigate",
@@ -276,9 +282,9 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
276
282
  ]
277
283
  }
278
284
  ),
279
- /* @__PURE__ */ m(B, { flexDirection: "row", hideAt: ["md", "lg"], className: t.mobileSearch, children: /* @__PURE__ */ d("div", { className: t.search, children: [
285
+ /* @__PURE__ */ m(u, { flexDirection: "row", hideAt: ["md", "lg"], className: t.mobileSearch, children: /* @__PURE__ */ f("div", { className: t.search, children: [
280
286
  /* @__PURE__ */ m(
281
- X,
287
+ Z,
282
288
  {
283
289
  variant: "search",
284
290
  label: "Search",
@@ -286,38 +292,41 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
286
292
  name: "cpc-search",
287
293
  autoComplete: "off",
288
294
  "aria-autocomplete": "list",
289
- "aria-controls": r,
290
- "aria-activedescendant": f >= 0 ? `${r}-${f}` : void 0,
291
- ...q,
292
- ref: z,
293
- value: s,
294
- endAdornment: /* @__PURE__ */ d(J, { children: [
295
- !!s && /* @__PURE__ */ m(
296
- $,
295
+ "aria-controls": s,
296
+ "aria-activedescendant": e >= 0 ? `${s}-${e}` : void 0,
297
+ ...Q,
298
+ ref: I,
299
+ value: c,
300
+ endAdornment: /* @__PURE__ */ f(Y, { children: [
301
+ !!c && /* @__PURE__ */ m(
302
+ B,
297
303
  {
298
304
  "aria-label": "Clear search",
305
+ onMouseDown: (i) => i.preventDefault(),
299
306
  onClick: () => {
300
- a(-1), w == null || w();
307
+ var i;
308
+ y(-1), w == null || w(), (i = I.current) == null || i.focus();
301
309
  },
302
310
  iconProps: { iconKey: "fa-regular fa-xmark", size: "sm" }
303
311
  }
304
312
  ),
305
313
  /* @__PURE__ */ m(
306
- $,
314
+ B,
307
315
  {
308
316
  "aria-label": "Submit search",
309
- onClick: () => c == null ? void 0 : c(s ?? ""),
317
+ onClick: () => r == null ? void 0 : r(c ?? ""),
310
318
  iconProps: { iconKey: "fa-regular fa-magnifying-glass", size: "sm" }
311
319
  }
312
320
  )
313
321
  ] })
314
322
  }
315
323
  ),
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);
324
+ v && o && /* @__PURE__ */ m($, { ...o, activeOptionIndex: e, optionIdPrefix: s, onKeyDown: z, onSuggestionClick: (i) => {
325
+ var n;
326
+ (n = o.onSuggestionClick) == null || n.call(o, i), d == null || d((i == null ? void 0 : i.name) ?? c ?? ""), N(!1);
318
327
  }, className: t.suggestionDropdown }),
319
- O && /* @__PURE__ */ m(
320
- u,
328
+ M && /* @__PURE__ */ m(
329
+ $,
321
330
  {
322
331
  terms: [],
323
332
  categories: [],
@@ -325,33 +334,33 @@ import '../../assets/MainNav.css';const Ni = "_main_12974_1", ai = "_column_1297
325
334
  view: "recent-searches",
326
335
  recentSearches: _,
327
336
  onClearRecentSearch: H,
328
- activeOptionIndex: f,
329
- optionIdPrefix: r,
330
- onKeyDown: p,
337
+ activeOptionIndex: e,
338
+ optionIdPrefix: s,
339
+ onKeyDown: z,
331
340
  onSuggestionClick: (i) => {
332
- n == null || n((i == null ? void 0 : i.term) ?? s ?? ""), N(!1);
341
+ d == null || d((i == null ? void 0 : i.term) ?? c ?? ""), N(!1);
333
342
  },
334
343
  className: t.suggestionDropdown
335
344
  }
336
345
  )
337
346
  ] }) }),
338
347
  /* @__PURE__ */ m(
339
- _i,
348
+ yi,
340
349
  {
341
- categories: b,
342
- isCategoriesLoading: oi,
350
+ categories: A,
351
+ isCategoriesLoading: ni,
343
352
  onCategoryClick: K
344
353
  }
345
354
  )
346
355
  ] }) });
347
356
  });
348
- function A({
349
- href: E,
357
+ function b({
358
+ href: j,
350
359
  children: F,
351
- ...b
360
+ ...A
352
361
  }) {
353
- return /* @__PURE__ */ m(j, { href: E, className: t.siteLink, ...b, children: F });
362
+ return /* @__PURE__ */ m(U, { href: j, className: t.siteLink, ...A, children: F });
354
363
  }
355
364
  export {
356
- Xi as MainNav
365
+ Zi as MainNav
357
366
  };
@@ -3,6 +3,7 @@ export type SuggestedCategory = {
3
3
  categoryKey: number;
4
4
  name: string;
5
5
  url: string;
6
+ isBrandCategory?: boolean;
6
7
  };
7
8
  export type SuggestedTerm = {
8
9
  name: string;
@@ -25,10 +26,10 @@ export type RecentSearch = {
25
26
  term: string;
26
27
  url: string;
27
28
  };
28
- type SearchSelection = {
29
+ export type SearchSelection = {
29
30
  name?: string;
30
31
  term?: string;
31
- };
32
+ } & (SuggestedTerm | SuggestedCategory | SuggestedItem | SuggestedCustomPart | RecentSearch);
32
33
  export interface SuggestionDropdownProps {
33
34
  view?: "suggestions" | "recent-searches";
34
35
  terms: SuggestedTerm[];
@@ -44,4 +45,3 @@ export interface SuggestionDropdownProps {
44
45
  className?: string;
45
46
  }
46
47
  export declare function SuggestionDropdown({ terms, categories, items, customParts, view, recentSearches, onClearRecentSearch, onSuggestionClick, activeOptionIndex, optionIdPrefix, onKeyDown, className }: SuggestionDropdownProps): import("react/jsx-runtime").JSX.Element | null;
47
- export {};
@@ -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
33
  terms: i,
34
- categories: r,
35
- items: u,
36
- customParts: g = [],
37
- view: v = "suggestions",
38
- recentSearches: d = [],
39
- onClearRecentSearch: f,
34
+ categories: a,
35
+ items: g,
36
+ customParts: _ = [],
37
+ view: N = "suggestions",
38
+ recentSearches: k = [],
39
+ onClearRecentSearch: m,
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 i.length === 0 && a.length === 0 && g.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: () => m == null ? void 0 : m(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" }),
82
+ ) : /* @__PURE__ */ c("div", { id: u, role: "listbox", className: o(l.suggestionDropdown, L), onKeyDown: f, onMouseDown: (e) => e.preventDefault(), children: [
83
+ (i.length > 0 || a.length > 0 || _.length > 0) && /* @__PURE__ */ c("div", { className: o(l.leftColumn, { [l.leftColumnFullWidth]: g.length === 0 }), children: [
84
+ i.length > 0 && /* @__PURE__ */ t("div", { className: o(l.suggestionSection, { [l.suggestionSectionFullHeight]: a.length === 0 }), children: /* @__PURE__ */ c("div", { className: o(l.suggestions, { [l.suggestionsFullHeight]: a.length === 0 }), children: [
85
+ /* @__PURE__ */ t(h, { size: "xxs", colorToken: "quaternary", children: "Suggestions" }),
86
86
  i.map(
87
- (e, s) => /* @__PURE__ */ l(o, { size: "sm", children: /* @__PURE__ */ l(
88
- m,
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
+ a.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
+ a.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}-${i.length + s}`,
109
109
  role: "option",
110
- "aria-selected": h === i.length + s,
111
- className: a(t.categoryLink, { [t.activeOption]: h === i.length + s }),
112
- onClick: () => n == null ? void 0 : n(),
110
+ "aria-selected": r === i.length + s,
111
+ className: o(l.categoryLink, { [l.activeOption]: r === i.length + s }),
112
+ onClick: () => n == null ? void 0 : n(e),
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 = i.length + a.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 }),
130
- onClick: () => n == null ? void 0 : n(),
128
+ "aria-selected": r === y,
129
+ className: o(l.customPartLink, { [l.activeOption]: r === y }),
130
+ onClick: () => n == null ? void 0 : n(e),
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
+ g.length > 0 && /* @__PURE__ */ t("div", { className: l.rightColumn, children: /* @__PURE__ */ t("ol", { className: l.itemList, children: g.map(
142
+ (e, s) => /* @__PURE__ */ t("li", { className: o(l.item, { [l.activeItem]: r === i.length + a.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}-${i.length + a.length + _.length + s}`,
147
147
  role: "option",
148
- "aria-selected": h === i.length + r.length + g.length + s,
149
- onClick: () => n == null ? void 0 : n(),
148
+ "aria-selected": r === i.length + a.length + _.length + s,
149
+ onClick: () => n == null ? void 0 : n(e),
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.247",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",