@caseparts-org/caseblocks 0.0.53 → 0.0.55
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.
- package/dist/assets/MainNav.css +1 -1
- package/dist/molecules/Cart/Cart.js +21 -19
- package/dist/molecules/Tooltip/Tooltip.js +18 -16
- package/dist/organisms/MainNav/MainNav.d.ts +2 -1
- package/dist/organisms/MainNav/MainNav.js +77 -75
- package/dist/organisms/MainNav/MainNav.stories.js +3 -0
- package/package.json +1 -1
package/dist/assets/MainNav.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._main_1l043_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._column_1l043_8{box-sizing:border-box;padding:0 var(--spacing-1)}._topNav_1l043_13{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_1l043_13{gap:var(--spacing-1);padding-bottom:0}}._logo_1l043_21{cursor:pointer}._operations_1l043_24{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_1l043_24{gap:var(--spacing-1)}}._search_1l043_31{flex:1}._siteLink_1l043_34{color:var(--color-brand-primary-primary-black);cursor:default}._accountArea_1l043_38{width:145px}@media (max-width: 1281px){._accountArea_1l043_38{width:min-content}}._cart_1l043_44{border:none;padding:0;margin:0;background-color:transparent}._category_1l043_50{list-style:none}._category_1l043_50 a{color:var(--text-text-primary);font-weight:var(--font-weight-semibold);text-decoration:none;display:flex;flex-direction:row;align-items:center}@media (max-width: 1281px){._category_1l043_50 a{justify-content:space-between;width:100%}}._category_1l043_50 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_1l043_50 a path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_1l043_72{list-style:none;padding:0;margin:0;height:min-content;border:1px solid var(--border-border-secondary-btn, #dfdfdf)}._menuList_1l043_72>li{width:100%;padding:var(--spacing-0-5) var(--spacing-1);border-bottom:1px solid var(--border-border-secondary-btn, #dfdfdf);box-sizing:border-box}._menuList_1l043_72>li:last-of-type{border-bottom:none}
|
|
@@ -7,35 +7,37 @@ import { Tooltip as f } from "../Tooltip/Tooltip.js";
|
|
|
7
7
|
import { Pricing as v } from "../Pricing/Pricing.js";
|
|
8
8
|
import { QuantityInput as w } from "../QuantityInput/QuantityInput.js";
|
|
9
9
|
import { Availability as b } from "../Availability/Availability.js";
|
|
10
|
-
import '../../assets/Cart.css';const y = "_cart_1uglw_2", N = "_count_1uglw_9",
|
|
10
|
+
import '../../assets/Cart.css';const y = "_cart_1uglw_2", N = "_count_1uglw_9", z = "_cartTooltip_1uglw_24", C = "_cartContainer_1uglw_27", k = "_cartItems_1uglw_35", x = "_topRow_1uglw_57", T = "_itemInfo_1uglw_63", R = "_purchaseInformation_1uglw_68", L = "_itemManagement_1uglw_75", M = "_removeItem_1uglw_93", P = "_noItems_1uglw_101", S = "_subtotal_1uglw_108", i = {
|
|
11
11
|
cart: y,
|
|
12
12
|
count: N,
|
|
13
|
-
cartTooltip:
|
|
14
|
-
cartContainer:
|
|
15
|
-
cartItems:
|
|
16
|
-
topRow:
|
|
13
|
+
cartTooltip: z,
|
|
14
|
+
cartContainer: C,
|
|
15
|
+
cartItems: k,
|
|
16
|
+
topRow: x,
|
|
17
17
|
itemInfo: T,
|
|
18
|
-
purchaseInformation:
|
|
19
|
-
itemManagement:
|
|
20
|
-
removeItem:
|
|
18
|
+
purchaseInformation: R,
|
|
19
|
+
itemManagement: L,
|
|
20
|
+
removeItem: M,
|
|
21
21
|
noItems: P,
|
|
22
22
|
subtotal: S
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function O({
|
|
25
25
|
cart: n,
|
|
26
|
-
onItemQtyChange:
|
|
27
|
-
onItemDelete:
|
|
26
|
+
onItemQtyChange: m,
|
|
27
|
+
onItemDelete: c,
|
|
28
28
|
onCheckout: l,
|
|
29
29
|
subtotal: r,
|
|
30
30
|
contactHref: d,
|
|
31
|
-
contactLinkBehavior:
|
|
32
|
-
itemPriceLabel:
|
|
31
|
+
contactLinkBehavior: p,
|
|
32
|
+
itemPriceLabel: h,
|
|
33
33
|
...u
|
|
34
34
|
}) {
|
|
35
35
|
return n = n || { items: [] }, /* @__PURE__ */ t(
|
|
36
36
|
f,
|
|
37
37
|
{
|
|
38
38
|
tooltipClassName: i.cartTooltip,
|
|
39
|
+
repositionOnResize: !0,
|
|
40
|
+
keepTooltipInside: !0,
|
|
39
41
|
trigger: /* @__PURE__ */ o("button", { className: i.cart, tabIndex: 0, ...u, children: [
|
|
40
42
|
/* @__PURE__ */ t(
|
|
41
43
|
s,
|
|
@@ -47,7 +49,7 @@ function U({
|
|
|
47
49
|
),
|
|
48
50
|
n.items.length > 0 && /* @__PURE__ */ t("div", { className: i.count, children: /* @__PURE__ */ t(a, { size: "xxs", children: n.items.length }) })
|
|
49
51
|
] }),
|
|
50
|
-
position: "bottom
|
|
52
|
+
position: "bottom left",
|
|
51
53
|
on: "click",
|
|
52
54
|
children: /* @__PURE__ */ o("div", { className: i.cartContainer, children: [
|
|
53
55
|
/* @__PURE__ */ t(a, { size: "2xl", children: "Cart" }),
|
|
@@ -63,7 +65,7 @@ function U({
|
|
|
63
65
|
e.itemId
|
|
64
66
|
] })
|
|
65
67
|
] }),
|
|
66
|
-
/* @__PURE__ */ t("button", { onClick: () =>
|
|
68
|
+
/* @__PURE__ */ t("button", { onClick: () => c(e), className: i.removeItem, children: /* @__PURE__ */ t(s, { iconKey: "fa-regular fa-trash", size: "sm" }) })
|
|
67
69
|
] }),
|
|
68
70
|
/* @__PURE__ */ o("div", { className: i.itemManagement, children: [
|
|
69
71
|
/* @__PURE__ */ o("div", { className: i.purchaseInformation, children: [
|
|
@@ -73,12 +75,12 @@ function U({
|
|
|
73
75
|
availId: e.availabilityId || "",
|
|
74
76
|
availDescription: e.availability || "",
|
|
75
77
|
contactHref: d || "",
|
|
76
|
-
contactLinkBehavior:
|
|
78
|
+
contactLinkBehavior: p || "new-tab"
|
|
77
79
|
}
|
|
78
80
|
),
|
|
79
|
-
/* @__PURE__ */ t(v, { pricingLabel:
|
|
81
|
+
/* @__PURE__ */ t(v, { pricingLabel: h || "List Price", price: e.price })
|
|
80
82
|
] }),
|
|
81
|
-
/* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (g) =>
|
|
83
|
+
/* @__PURE__ */ t(w, { quantity: e.quantity, onQuantityChange: (g) => m(e, g), size: "sm" })
|
|
82
84
|
] })
|
|
83
85
|
] })
|
|
84
86
|
] }, e.id)
|
|
@@ -93,5 +95,5 @@ function U({
|
|
|
93
95
|
);
|
|
94
96
|
}
|
|
95
97
|
export {
|
|
96
|
-
|
|
98
|
+
O as ShoppingCart
|
|
97
99
|
};
|
|
@@ -574,7 +574,7 @@ var Ze = function(a, c) {
|
|
|
574
574
|
}, lt = /* @__PURE__ */ Xe(function(s, a) {
|
|
575
575
|
var c = s.trigger, o = c === void 0 ? null : c, f = s.onOpen, d = f === void 0 ? function() {
|
|
576
576
|
} : f, p = s.onClose, m = p === void 0 ? function() {
|
|
577
|
-
} : p, n = s.defaultOpen, t = n === void 0 ? !1 : n, l = s.open, r = l === void 0 ? void 0 : l, e = s.disabled, i = e === void 0 ? !1 : e, y = s.nested, v = y === void 0 ? !1 : y, w = s.closeOnDocumentClick, R = w === void 0 ? !0 : w, k = s.repositionOnResize, we = k === void 0 ? !0 : k, W = s.closeOnEscape, Te = W === void 0 ? !0 : W, J = s.on, I = J === void 0 ? ["click"] : J, Q = s.contentStyle, Re = Q === void 0 ? {} : Q, Z = s.arrowStyle, X = Z === void 0 ? {} : Z, B = s.overlayStyle, De = B === void 0 ? {} : B, ee = s.className,
|
|
577
|
+
} : p, n = s.defaultOpen, t = n === void 0 ? !1 : n, l = s.open, r = l === void 0 ? void 0 : l, e = s.disabled, i = e === void 0 ? !1 : e, y = s.nested, v = y === void 0 ? !1 : y, w = s.closeOnDocumentClick, R = w === void 0 ? !0 : w, k = s.repositionOnResize, we = k === void 0 ? !0 : k, W = s.closeOnEscape, Te = W === void 0 ? !0 : W, J = s.on, I = J === void 0 ? ["click"] : J, Q = s.contentStyle, Re = Q === void 0 ? {} : Q, Z = s.arrowStyle, X = Z === void 0 ? {} : Z, B = s.overlayStyle, De = B === void 0 ? {} : B, ee = s.className, P = ee === void 0 ? "" : ee, te = s.position, ke = te === void 0 ? "bottom center" : te, re = s.modal, ne = re === void 0 ? !1 : re, oe = s.lockScroll, ie = oe === void 0 ? !1 : oe, ae = s.arrow, F = ae === void 0 ? !0 : ae, se = s.offsetX, Ce = se === void 0 ? 0 : se, ce = s.offsetY, Le = ce === void 0 ? 0 : ce, le = s.mouseEnterDelay, Me = le === void 0 ? 100 : le, ue = s.mouseLeaveDelay, Ae = ue === void 0 ? 100 : ue, fe = s.keepTooltipInside, Pe = fe === void 0 ? !1 : fe, z = s.children, de = Fe(r || t), D = de[0], pe = de[1], C = N(null), b = N(null), M = N(null), ye = N(null), ve = N("popup-" + ++st), S = ne ? !0 : !o, j = N(0);
|
|
578
578
|
rt(function() {
|
|
579
579
|
return D ? (ye.current = document.activeElement, ge(), je(), xe()) : Ie(), function() {
|
|
580
580
|
clearTimeout(j.current);
|
|
@@ -596,13 +596,13 @@ var Ze = function(a, c) {
|
|
|
596
596
|
}, G = function(u) {
|
|
597
597
|
clearTimeout(j.current), j.current = setTimeout(function() {
|
|
598
598
|
return U(u);
|
|
599
|
-
},
|
|
599
|
+
}, Me);
|
|
600
600
|
}, Ne = function(u) {
|
|
601
601
|
u == null || u.preventDefault(), V();
|
|
602
602
|
}, q = function(u) {
|
|
603
603
|
clearTimeout(j.current), j.current = setTimeout(function() {
|
|
604
604
|
return L(u);
|
|
605
|
-
},
|
|
605
|
+
}, Ae);
|
|
606
606
|
}, xe = function() {
|
|
607
607
|
S && ie && (document.getElementsByTagName("body")[0].style.overflow = "hidden");
|
|
608
608
|
}, Ie = function() {
|
|
@@ -629,10 +629,10 @@ var Ze = function(a, c) {
|
|
|
629
629
|
var u = C.current.getBoundingClientRect(), _ = b.current.getBoundingClientRect(), g = at(u, _, ke, F, {
|
|
630
630
|
offsetX: Ce,
|
|
631
631
|
offsetY: Le
|
|
632
|
-
},
|
|
633
|
-
if (b.current.style.top = g.top + window.scrollY + "px", b.current.style.left = g.left + window.scrollX + "px", F &&
|
|
634
|
-
var
|
|
635
|
-
|
|
632
|
+
}, Pe);
|
|
633
|
+
if (b.current.style.top = g.top + window.scrollY + "px", b.current.style.left = g.left + window.scrollX + "px", F && M.current) {
|
|
634
|
+
var A, $;
|
|
635
|
+
M.current.style.transform = g.transform, M.current.style.setProperty("-ms-transform", g.transform), M.current.style.setProperty("-webkit-transform", g.transform), M.current.style.top = ((A = X.top) === null || A === void 0 ? void 0 : A.toString()) || g.arrowTop, M.current.style.left = (($ = X.left) === null || $ === void 0 ? void 0 : $.toString()) || g.arrowLeft;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
};
|
|
@@ -642,7 +642,7 @@ var Ze = function(a, c) {
|
|
|
642
642
|
key: "T",
|
|
643
643
|
ref: C,
|
|
644
644
|
"aria-describedby": ve.current
|
|
645
|
-
}, _ = Array.isArray(I) ? I : [I], g = 0,
|
|
645
|
+
}, _ = Array.isArray(I) ? I : [I], g = 0, A = _.length; g < A; g++)
|
|
646
646
|
switch (_[g]) {
|
|
647
647
|
case "click":
|
|
648
648
|
u.onClick = V;
|
|
@@ -664,15 +664,15 @@ var Ze = function(a, c) {
|
|
|
664
664
|
return !!o && T.cloneElement(o, u);
|
|
665
665
|
}, He = function() {
|
|
666
666
|
var u = S ? H.popupContent.modal : H.popupContent.tooltip, _ = {
|
|
667
|
-
className: "popup-content " + (
|
|
667
|
+
className: "popup-content " + (P !== "" ? P.split(" ").map(function(g) {
|
|
668
668
|
return g + "-content";
|
|
669
669
|
}).join(" ") : ""),
|
|
670
670
|
style: Y({}, u, Re, {
|
|
671
671
|
pointerEvents: "auto"
|
|
672
672
|
}),
|
|
673
673
|
ref: b,
|
|
674
|
-
onClick: function(
|
|
675
|
-
|
|
674
|
+
onClick: function(A) {
|
|
675
|
+
A.stopPropagation();
|
|
676
676
|
}
|
|
677
677
|
};
|
|
678
678
|
return !ne && I.indexOf("hover") >= 0 && (_.onMouseEnter = G, _.onMouseLeave = q), _;
|
|
@@ -682,11 +682,11 @@ var Ze = function(a, c) {
|
|
|
682
682
|
role: S ? "dialog" : "tooltip",
|
|
683
683
|
id: ve.current
|
|
684
684
|
}), F && !S && T.createElement("div", {
|
|
685
|
-
ref:
|
|
685
|
+
ref: M,
|
|
686
686
|
style: H.popupArrow
|
|
687
687
|
}, T.createElement("svg", {
|
|
688
688
|
"data-testid": "arrow",
|
|
689
|
-
className: "popup-arrow " + (
|
|
689
|
+
className: "popup-arrow " + (P !== "" ? P.split(" ").map(function(u) {
|
|
690
690
|
return u + "-arrow";
|
|
691
691
|
}).join(" ") : ""),
|
|
692
692
|
viewBox: "0 0 32 16",
|
|
@@ -701,7 +701,7 @@ var Ze = function(a, c) {
|
|
|
701
701
|
key: "O",
|
|
702
702
|
"data-testid": "overlay",
|
|
703
703
|
"data-popup": S ? "modal" : "tooltip",
|
|
704
|
-
className: "popup-overlay " + (
|
|
704
|
+
className: "popup-overlay " + (P !== "" ? P.split(" ").map(function(h) {
|
|
705
705
|
return h + "-overlay";
|
|
706
706
|
}).join(" ") : ""),
|
|
707
707
|
style: Y({}, ze, De, {
|
|
@@ -722,9 +722,11 @@ const ut = "_content_1wx0f_2", be = {
|
|
|
722
722
|
}) => /* @__PURE__ */ he(
|
|
723
723
|
lt,
|
|
724
724
|
{
|
|
725
|
-
arrow: !0,
|
|
726
|
-
on: o.on ?? "hover",
|
|
727
725
|
...o,
|
|
726
|
+
arrow: o.arrow ?? !0,
|
|
727
|
+
on: o.on ?? "hover",
|
|
728
|
+
repositionOnResize: o.repositionOnResize ?? !0,
|
|
729
|
+
keepTooltipInside: o.keepTooltipInside ?? !0,
|
|
728
730
|
className: Oe(be.tooltip, s),
|
|
729
731
|
children: /* @__PURE__ */ he("div", { className: Oe(be.content, a), children: c })
|
|
730
732
|
}
|
|
@@ -3,6 +3,7 @@ import { AccountProps } from '../../molecules/Account/Account';
|
|
|
3
3
|
import { ContactUsLinkBehavior } from 'lib/main-client';
|
|
4
4
|
export interface MainNavProps extends CartPropsBase, React.HTMLAttributes<HTMLDivElement>, Pick<AccountProps, "account"> {
|
|
5
5
|
categories?: MainCategory[];
|
|
6
|
+
homeRoute: string;
|
|
6
7
|
faqRoute: string;
|
|
7
8
|
byModelSerialRoute: string;
|
|
8
9
|
customPartsRoute: string;
|
|
@@ -25,4 +26,4 @@ export interface MainCategory extends Category {
|
|
|
25
26
|
children: Category[];
|
|
26
27
|
showChevron?: boolean;
|
|
27
28
|
}
|
|
28
|
-
export declare function MainNav({ account, categories, byModelSerialRoute, faqRoute, customPartsRoute, aboutUsRoute, accountRoute, contactRoute, cart, cartSubtotal, cartItemPriceLabel, cartContactLinkBehavior, onLoginClick, onSearch, onItemQtyChange, onItemDelete, onItemEdit, onCheckout, className, ...otherProps }: MainNavProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function MainNav({ account, categories, byModelSerialRoute, homeRoute, faqRoute, customPartsRoute, aboutUsRoute, accountRoute, contactRoute, cart, cartSubtotal, cartItemPriceLabel, cartContactLinkBehavior, onLoginClick, onSearch, onItemQtyChange, onItemDelete, onItemEdit, onCheckout, className, ...otherProps }: MainNavProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,111 +1,113 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { Text as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Flex as
|
|
6
|
-
import { Grid as
|
|
7
|
-
import { Logo as
|
|
8
|
-
import { SearchBox as
|
|
9
|
-
import { HamburgerMenu as
|
|
10
|
-
import { ShoppingCart as
|
|
11
|
-
import { Account as
|
|
12
|
-
import { CategoryNav as
|
|
13
|
-
import { c as
|
|
14
|
-
import '../../assets/MainNav.css';const
|
|
15
|
-
main:
|
|
16
|
-
column:
|
|
17
|
-
topNav:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { Text as p } from "../../atoms/Text/Text.js";
|
|
3
|
+
import { Link as m } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { Icon as z } from "../../atoms/Icon/Icon.js";
|
|
5
|
+
import { Flex as t } from "../../atoms/Flex/Flex.js";
|
|
6
|
+
import { Grid as I, Column as M } from "../../atoms/Grid/Grid.js";
|
|
7
|
+
import { Logo as U } from "../../molecules/Logo/Logo.js";
|
|
8
|
+
import { SearchBox as f } from "../../molecules/SearchBox/SearchBox.js";
|
|
9
|
+
import { HamburgerMenu as B } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
|
|
10
|
+
import { ShoppingCart as F } from "../../molecules/Cart/Cart.js";
|
|
11
|
+
import { Account as H } from "../../molecules/Account/Account.js";
|
|
12
|
+
import { CategoryNav as P } from "../../molecules/CategoryNav/CategoryNav.js";
|
|
13
|
+
import { c as S } from "../../clsx-OuTLNxxd.js";
|
|
14
|
+
import '../../assets/MainNav.css';const G = "_main_1l043_1", K = "_column_1l043_8", Q = "_topNav_1l043_13", T = "_logo_1l043_21", W = "_operations_1l043_24", q = "_search_1l043_31", E = "_siteLink_1l043_34", J = "_accountArea_1l043_38", O = "_category_1l043_50", V = "_menuList_1l043_72", i = {
|
|
15
|
+
main: G,
|
|
16
|
+
column: K,
|
|
17
|
+
topNav: Q,
|
|
18
|
+
logo: T,
|
|
19
|
+
operations: W,
|
|
20
|
+
search: q,
|
|
21
|
+
siteLink: E,
|
|
22
|
+
accountArea: J,
|
|
23
|
+
category: O,
|
|
24
|
+
menuList: V
|
|
24
25
|
};
|
|
25
26
|
function ae({
|
|
26
|
-
account:
|
|
27
|
+
account: l,
|
|
27
28
|
categories: n,
|
|
28
29
|
byModelSerialRoute: c,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
homeRoute: _,
|
|
31
|
+
faqRoute: u,
|
|
32
|
+
customPartsRoute: h,
|
|
33
|
+
aboutUsRoute: N,
|
|
34
|
+
accountRoute: g,
|
|
35
|
+
contactRoute: a,
|
|
34
36
|
cart: v,
|
|
35
|
-
cartSubtotal:
|
|
36
|
-
cartItemPriceLabel:
|
|
37
|
-
cartContactLinkBehavior:
|
|
38
|
-
onLoginClick:
|
|
39
|
-
onSearch:
|
|
40
|
-
onItemQtyChange:
|
|
41
|
-
onItemDelete:
|
|
42
|
-
onItemEdit:
|
|
43
|
-
onCheckout:
|
|
44
|
-
className:
|
|
45
|
-
...
|
|
37
|
+
cartSubtotal: A,
|
|
38
|
+
cartItemPriceLabel: L,
|
|
39
|
+
cartContactLinkBehavior: x,
|
|
40
|
+
onLoginClick: C,
|
|
41
|
+
onSearch: d,
|
|
42
|
+
onItemQtyChange: k,
|
|
43
|
+
onItemDelete: y,
|
|
44
|
+
onItemEdit: b,
|
|
45
|
+
onCheckout: w,
|
|
46
|
+
className: j,
|
|
47
|
+
...D
|
|
46
48
|
}) {
|
|
47
|
-
return /* @__PURE__ */ e(
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
49
|
+
return /* @__PURE__ */ e(I, { ...D, gridWrapperClassName: S(i.main, j), children: /* @__PURE__ */ o(M, { span: 12, className: i.column, children: [
|
|
50
|
+
/* @__PURE__ */ o(
|
|
51
|
+
t,
|
|
50
52
|
{
|
|
51
53
|
flexDirection: "row",
|
|
52
54
|
alignItems: "center",
|
|
53
55
|
justifyContent: "space-between",
|
|
54
56
|
className: i.topNav,
|
|
55
57
|
children: [
|
|
56
|
-
/* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
58
|
+
/* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(m, { href: _, children: /* @__PURE__ */ e(U, {}) }) }),
|
|
59
|
+
/* @__PURE__ */ o(
|
|
60
|
+
t,
|
|
59
61
|
{
|
|
60
62
|
flexDirection: "row",
|
|
61
63
|
alignItems: "center",
|
|
62
64
|
justifyContent: "flex-end",
|
|
63
65
|
className: i.operations,
|
|
64
66
|
children: [
|
|
65
|
-
/* @__PURE__ */ e(
|
|
67
|
+
/* @__PURE__ */ e(t, { flexDirection: "row", hideAt: ["sm"], className: i.search, children: /* @__PURE__ */ e(f, { onSearch: d, inputName: "cpc-search" }) }),
|
|
66
68
|
/* @__PURE__ */ e(r, { href: c, hideAt: ["sm", "md"], children: "Model/Serial" }),
|
|
67
|
-
/* @__PURE__ */ e(r, { href:
|
|
68
|
-
/* @__PURE__ */ e(r, { href:
|
|
69
|
+
/* @__PURE__ */ e(r, { href: h, hideAt: ["sm", "md"], children: "Custom Parts" }),
|
|
70
|
+
/* @__PURE__ */ e(r, { href: a, hideAt: ["sm", "md"], children: "Contact Us" }),
|
|
69
71
|
/* @__PURE__ */ e("div", { className: i.accountArea, children: /* @__PURE__ */ e(
|
|
70
|
-
|
|
72
|
+
H,
|
|
71
73
|
{
|
|
72
|
-
account:
|
|
73
|
-
accountRoute:
|
|
74
|
-
onLoginClick:
|
|
74
|
+
account: l,
|
|
75
|
+
accountRoute: g,
|
|
76
|
+
onLoginClick: C,
|
|
75
77
|
className: i.avatar
|
|
76
78
|
}
|
|
77
79
|
) }),
|
|
78
80
|
/* @__PURE__ */ e(
|
|
79
|
-
|
|
81
|
+
F,
|
|
80
82
|
{
|
|
81
83
|
cart: v,
|
|
82
|
-
onItemDelete:
|
|
83
|
-
onItemEdit:
|
|
84
|
-
onItemQtyChange:
|
|
85
|
-
onCheckout:
|
|
86
|
-
subtotal:
|
|
87
|
-
contactHref:
|
|
88
|
-
contactLinkBehavior:
|
|
89
|
-
itemPriceLabel:
|
|
84
|
+
onItemDelete: y,
|
|
85
|
+
onItemEdit: b,
|
|
86
|
+
onItemQtyChange: k,
|
|
87
|
+
onCheckout: w,
|
|
88
|
+
subtotal: A,
|
|
89
|
+
contactHref: a,
|
|
90
|
+
contactLinkBehavior: x,
|
|
91
|
+
itemPriceLabel: L
|
|
90
92
|
}
|
|
91
93
|
),
|
|
92
|
-
/* @__PURE__ */ e(
|
|
94
|
+
/* @__PURE__ */ e(B, { hideAt: ["lg"], children: /* @__PURE__ */ o("ul", { className: i.menuList, children: [
|
|
93
95
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: c, children: "Make/Serial" }) }),
|
|
94
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href:
|
|
95
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href:
|
|
96
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href:
|
|
97
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href:
|
|
98
|
-
n && n.map((
|
|
99
|
-
/* @__PURE__ */ e(
|
|
96
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: h, children: "Custom Parts" }) }),
|
|
97
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: a, children: "Contact Us" }) }),
|
|
98
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: u, children: "FAQ" }) }),
|
|
99
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: N, children: "About Us" }) }),
|
|
100
|
+
n && n.map((s) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ o(m, { href: s.route, children: [
|
|
101
|
+
/* @__PURE__ */ e(p, { size: "sm", weight: "semibold", children: s.label }),
|
|
100
102
|
/* @__PURE__ */ e(
|
|
101
|
-
|
|
103
|
+
z,
|
|
102
104
|
{
|
|
103
105
|
iconKey: "fa-solid fa-chevron-right",
|
|
104
106
|
title: "Navigate",
|
|
105
107
|
size: "sm"
|
|
106
108
|
}
|
|
107
109
|
)
|
|
108
|
-
] }) },
|
|
110
|
+
] }) }, s.id))
|
|
109
111
|
] }) })
|
|
110
112
|
]
|
|
111
113
|
}
|
|
@@ -113,16 +115,16 @@ function ae({
|
|
|
113
115
|
]
|
|
114
116
|
}
|
|
115
117
|
),
|
|
116
|
-
/* @__PURE__ */ e(
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
+
/* @__PURE__ */ e(t, { flexDirection: "row", hideAt: ["md", "lg"], children: /* @__PURE__ */ e(f, { onSearch: d, inputName: "cpc-search", className: i.search }) }),
|
|
119
|
+
/* @__PURE__ */ e(P, { categories: n })
|
|
118
120
|
] }) });
|
|
119
121
|
}
|
|
120
122
|
function r({
|
|
121
|
-
href:
|
|
123
|
+
href: l,
|
|
122
124
|
children: n,
|
|
123
125
|
...c
|
|
124
126
|
}) {
|
|
125
|
-
return /* @__PURE__ */ e(
|
|
127
|
+
return /* @__PURE__ */ e(m, { href: l, className: i.siteLink, ...c, children: /* @__PURE__ */ e(p, { size: "md", variant: "display", children: n }) });
|
|
126
128
|
}
|
|
127
129
|
export {
|
|
128
130
|
ae as MainNav
|
|
@@ -103,6 +103,7 @@ const r = {
|
|
|
103
103
|
number: "123456789012"
|
|
104
104
|
},
|
|
105
105
|
cart: i,
|
|
106
|
+
homeRoute: "/",
|
|
106
107
|
customPartsRoute: "/custom",
|
|
107
108
|
accountRoute: "/account",
|
|
108
109
|
byModelSerialRoute: "/model",
|
|
@@ -137,6 +138,7 @@ const r = {
|
|
|
137
138
|
number: "123456789012"
|
|
138
139
|
},
|
|
139
140
|
cart: i,
|
|
141
|
+
homeRoute: "/",
|
|
140
142
|
customPartsRoute: "/custom",
|
|
141
143
|
accountRoute: "/account",
|
|
142
144
|
byModelSerialRoute: "/model",
|
|
@@ -166,6 +168,7 @@ const r = {
|
|
|
166
168
|
}, d = {
|
|
167
169
|
args: {
|
|
168
170
|
cart: i,
|
|
171
|
+
homeRoute: "/",
|
|
169
172
|
customPartsRoute: "/custom",
|
|
170
173
|
accountRoute: "/account",
|
|
171
174
|
byModelSerialRoute: "/model",
|