@caseparts-org/caseblocks 0.0.291 → 0.0.293
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/Text.module-C3jj0mnU.js +39 -0
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Text.css +1 -1
- package/dist/atoms/Button/buttonClassName.js +1 -1
- package/dist/atoms/Link/linkClassName.js +1 -1
- package/dist/atoms/Text/Text.js +1 -1
- package/dist/molecules/Avatar/Avatar.js +1 -1
- package/dist/molecules/Modal/Modal.js +53 -53
- package/dist/molecules/Modal/Modal.stories.js +9 -9
- package/dist/organisms/Footer/Footer.js +19 -19
- package/dist/organisms/MainNav/MainNav.js +88 -88
- package/package.json +1 -1
- package/dist/Text.module-Dzhzk2fH.js +0 -39
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import './assets/Text.css';const t = {
|
|
2
|
+
"text-body": "_text-body_l6qzi_1",
|
|
3
|
+
"text-display": "_text-display_l6qzi_5",
|
|
4
|
+
"text-xxs": "_text-xxs_l6qzi_9",
|
|
5
|
+
"text-xs": "_text-xs_l6qzi_13",
|
|
6
|
+
"text-sm": "_text-sm_l6qzi_17",
|
|
7
|
+
"text-md": "_text-md_l6qzi_21",
|
|
8
|
+
"text-lg": "_text-lg_l6qzi_25",
|
|
9
|
+
"text-xl": "_text-xl_l6qzi_29",
|
|
10
|
+
"text-2xl": "_text-2xl_l6qzi_33",
|
|
11
|
+
"text-3xl": "_text-3xl_l6qzi_37",
|
|
12
|
+
"text-4xl": "_text-4xl_l6qzi_41",
|
|
13
|
+
"text-5xl": "_text-5xl_l6qzi_45",
|
|
14
|
+
"text-6xl": "_text-6xl_l6qzi_49",
|
|
15
|
+
"text-thin": "_text-thin_l6qzi_54",
|
|
16
|
+
"text-extra-light": "_text-extra-light_l6qzi_57",
|
|
17
|
+
"text-light": "_text-light_l6qzi_60",
|
|
18
|
+
"text-regular": "_text-regular_l6qzi_63",
|
|
19
|
+
"text-medium": "_text-medium_l6qzi_66",
|
|
20
|
+
"text-semibold": "_text-semibold_l6qzi_69",
|
|
21
|
+
"text-bold": "_text-bold_l6qzi_73",
|
|
22
|
+
"text-color-inherit": "_text-color-inherit_l6qzi_78",
|
|
23
|
+
"text-color-warning": "_text-color-warning_l6qzi_79",
|
|
24
|
+
"text-color-disabled": "_text-color-disabled_l6qzi_80",
|
|
25
|
+
"text-color-error-warning": "_text-color-error-warning_l6qzi_81",
|
|
26
|
+
"text-color-default-inverted": "_text-color-default-inverted_l6qzi_82",
|
|
27
|
+
"text-color-links": "_text-color-links_l6qzi_83",
|
|
28
|
+
"text-color-links-hover-press": "_text-color-links-hover-press_l6qzi_84",
|
|
29
|
+
"text-color-primary": "_text-color-primary_l6qzi_85",
|
|
30
|
+
"text-color-quaternary": "_text-color-quaternary_l6qzi_86",
|
|
31
|
+
"text-color-search-bar": "_text-color-search-bar_l6qzi_87",
|
|
32
|
+
"text-color-secondary": "_text-color-secondary_l6qzi_88",
|
|
33
|
+
"text-color-success": "_text-color-success_l6qzi_89",
|
|
34
|
+
"text-color-tertiary": "_text-color-tertiary_l6qzi_90",
|
|
35
|
+
"text-color-footer": "_text-color-footer_l6qzi_91"
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
t
|
|
39
|
+
};
|
package/dist/assets/Modal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._overlay_1t770_1{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000}._container_1t770_11{display:flex;flex-direction:column;overflow:hidden;background-color:var(--surface-surface-primary);color:var(--text-text-primary);border-radius:var(--border-radius-lg);box-shadow:0 4px 6px #0000001a;width:min(var(--modal-width, 800px),92vw);max-height:80vh}@media (max-width:767px){._container_1t770_11{border-radius:0;width:100%;box-shadow:none;height:100dvh;max-height:100dvh}}._toolbar_1t770_30{position:sticky;top:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border-border-secondary-btn);padding:var(--spacing-spacing-2xs) var(--spacing-spacing-default);gap:var(--spacing-spacing-2xs);z-index:1}@media (max-width:767px){._toolbar_1t770_30{padding:var(--spacing-spacing-2xs)}}._toolbarPlain_1t770_46{background-color:transparent;border-bottom:none}._headerGroup_1t770_51{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-2xs);flex:1 1 0}._headerLeft_1t770_59{justify-content:flex-start}._headerRight_1t770_63{justify-content:flex-end}._closeButton_1t770_67{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;border-radius:var(--radius-radius-md);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:background-color .2s ease-in}._closeButton_1t770_67:hover{background-color:var(--color-neutrals-neutral-2)}._content_1t770_86{overflow:auto;padding:var(--spacing-spacing-default)}@media (max-width:767px){._content_1t770_86{padding:var(--spacing-spacing-2xs)}}
|
package/dist/assets/Text.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._text-
|
|
1
|
+
._text-body_l6qzi_1{font-family:var(--font-family-body),sans-serif;-webkit-font-smoothing:antialiased}._text-display_l6qzi_5{font-family:var(--font-family-display)}._text-xxs_l6qzi_9{font-size:var(--font-size-xxs);line-height:var(--line-height-xxs)}._text-xs_l6qzi_13{font-size:var(--font-size-xs);line-height:var(--line-height-xs)}._text-sm_l6qzi_17{font-size:var(--font-size-sm);line-height:var(--line-height-sm)}._text-md_l6qzi_21{font-size:var(--font-size-md);line-height:var(--line-height-md)}._text-lg_l6qzi_25{font-size:var(--font-size-lg);line-height:var(--line-height-lg)}._text-xl_l6qzi_29{font-size:var(--font-size-xl);line-height:var(--line-height-xl)}._text-2xl_l6qzi_33{font-size:var(--font-size-2xl);line-height:var(--line-height-2xl)}._text-3xl_l6qzi_37{font-size:var(--font-size-3xl);line-height:var(--line-height-3xl)}._text-4xl_l6qzi_41{font-size:var(--font-size-4xl);line-height:var(--line-height-4xl)}._text-5xl_l6qzi_45{font-size:var(--font-size-5xl);line-height:var(--line-height-5xl)}._text-6xl_l6qzi_49{font-size:var(--font-size-6xl);line-height:var(--line-height-6xl)}._text-thin_l6qzi_54{font-weight:var(--font-weight-thin)}._text-extra-light_l6qzi_57{font-weight:var(--font-weight-extra-light)}._text-light_l6qzi_60{font-weight:var(--font-weight-light)}._text-regular_l6qzi_63{font-weight:var(--font-weight-regular)}._text-medium_l6qzi_66{font-weight:var(--font-weight-medium)}._text-semibold_l6qzi_69{font-weight:var(--font-weight-semibold);letter-spacing:-.02em}._text-bold_l6qzi_73{font-weight:var(--font-weight-bold);letter-spacing:-.02em}._text-color-inherit_l6qzi_78{color:inherit}._text-color-warning_l6qzi_79{color:var(--text-text-caution)}._text-color-disabled_l6qzi_80{color:var(--text-text-disabled)}._text-color-error-warning_l6qzi_81{color:var(--text-text-error-warning)}._text-color-default-inverted_l6qzi_82{color:var(--text-text-invert)}._text-color-links_l6qzi_83{color:var(--text-text-links)}._text-color-links-hover-press_l6qzi_84{color:var(--text-text-links-hover-press)}._text-color-primary_l6qzi_85{color:var(--text-text-primary)}._text-color-quaternary_l6qzi_86{color:var(--text-text-quaternary)}._text-color-search-bar_l6qzi_87{color:var(--text-text-search-bar)}._text-color-secondary_l6qzi_88{color:var(--text-text-secondary)}._text-color-success_l6qzi_89{color:var(--text-text-success)}._text-color-tertiary_l6qzi_90{color:var(--text-text-tertiary)}._text-color-footer_l6qzi_91{color:var(--text-text-footer)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as u } from "../../Text.module-
|
|
1
|
+
import { t as u } from "../../Text.module-C3jj0mnU.js";
|
|
2
2
|
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { getHideAtStyles as r } from "../HideAt.js";
|
|
4
4
|
import '../../assets/buttonClassName.css';const i = "_button_up3lt_1", t = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as n } from "../../clsx-OuTLNxxd.js";
|
|
2
2
|
import { getHideAtStyles as d } from "../HideAt.js";
|
|
3
|
-
import { t as i } from "../../Text.module-
|
|
3
|
+
import { t as i } from "../../Text.module-C3jj0mnU.js";
|
|
4
4
|
import '../../assets/linkClassName.css';const m = "_link_f9a12_1", c = "_disabled_f9a12_14", e = {
|
|
5
5
|
link: m,
|
|
6
6
|
disabled: c
|
package/dist/atoms/Text/Text.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { getHideAtStyles as c } from "../HideAt.js";
|
|
3
|
-
import { t } from "../../Text.module-
|
|
3
|
+
import { t } from "../../Text.module-C3jj0mnU.js";
|
|
4
4
|
import { c as l } from "../../clsx-OuTLNxxd.js";
|
|
5
5
|
function g({
|
|
6
6
|
as: o,
|
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { Flex as n } from "../../atoms/Flex/Flex.js";
|
|
3
3
|
import { getHideAtStyles as m } from "../../atoms/HideAt.js";
|
|
4
4
|
import { c } from "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import { t } from "../../Text.module-
|
|
5
|
+
import { t } from "../../Text.module-C3jj0mnU.js";
|
|
6
6
|
import '../../assets/Avatar.css';const l = "_avatar_nvnsd_1", f = {
|
|
7
7
|
avatar: l
|
|
8
8
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { r as
|
|
4
|
-
import { c as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { r as b } from "../../index-BkF-BQ3Q.js";
|
|
4
|
+
import { c as a } from "../../clsx-OuTLNxxd.js";
|
|
5
5
|
import { Text as g } from "../../atoms/Text/Text.js";
|
|
6
|
-
import { Icon as
|
|
7
|
-
import '../../assets/Modal.css';const
|
|
8
|
-
overlay:
|
|
9
|
-
container:
|
|
10
|
-
toolbar:
|
|
6
|
+
import { Icon as y } from "../../atoms/Icon/Icon.js";
|
|
7
|
+
import '../../assets/Modal.css';const v = "_overlay_1t770_1", x = "_container_1t770_11", T = "_toolbar_1t770_30", z = "_toolbarPlain_1t770_46", B = "_headerGroup_1t770_51", M = "_headerLeft_1t770_59", N = "_headerRight_1t770_63", R = "_closeButton_1t770_67", w = "_content_1t770_86", r = {
|
|
8
|
+
overlay: v,
|
|
9
|
+
container: x,
|
|
10
|
+
toolbar: T,
|
|
11
11
|
toolbarPlain: z,
|
|
12
12
|
headerGroup: B,
|
|
13
13
|
headerLeft: M,
|
|
@@ -19,81 +19,81 @@ import '../../assets/Modal.css';const y = "_overlay_1imlv_1", T = "_container_1i
|
|
|
19
19
|
md: "md",
|
|
20
20
|
lg: "lg"
|
|
21
21
|
}, C = {
|
|
22
|
-
sm: "
|
|
23
|
-
md: "
|
|
22
|
+
sm: "xs",
|
|
23
|
+
md: "sm",
|
|
24
24
|
lg: "md"
|
|
25
|
-
},
|
|
26
|
-
isOpen:
|
|
25
|
+
}, i = ({
|
|
26
|
+
isOpen: e,
|
|
27
27
|
onClose: o,
|
|
28
|
-
closeOnOverlayClick:
|
|
29
|
-
width:
|
|
30
|
-
className:
|
|
31
|
-
style:
|
|
32
|
-
children:
|
|
28
|
+
closeOnOverlayClick: t = !0,
|
|
29
|
+
width: s,
|
|
30
|
+
className: l,
|
|
31
|
+
style: u,
|
|
32
|
+
children: m,
|
|
33
33
|
..._
|
|
34
34
|
}) => {
|
|
35
|
-
const
|
|
36
|
-
if (!
|
|
37
|
-
const f = (
|
|
38
|
-
|
|
39
|
-
}, h = (
|
|
40
|
-
if (!
|
|
41
|
-
|
|
35
|
+
const d = p.useRef(!1);
|
|
36
|
+
if (!e || typeof document > "u") return null;
|
|
37
|
+
const f = (c) => {
|
|
38
|
+
t && (d.current = c.target === c.currentTarget);
|
|
39
|
+
}, h = (c) => {
|
|
40
|
+
if (!t) {
|
|
41
|
+
d.current = !1;
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
d.current && c.target === c.currentTarget && o(), d.current = !1;
|
|
45
45
|
};
|
|
46
|
-
return
|
|
47
|
-
/* @__PURE__ */
|
|
46
|
+
return b.createPortal(
|
|
47
|
+
/* @__PURE__ */ n(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
|
-
className:
|
|
50
|
+
className: a(r.overlay),
|
|
51
51
|
onMouseDown: f,
|
|
52
52
|
onMouseUp: h,
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ n(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
|
-
className:
|
|
56
|
+
className: a(r.container, l),
|
|
57
57
|
role: "dialog",
|
|
58
58
|
"aria-modal": "true",
|
|
59
|
-
style: { ...
|
|
59
|
+
style: { ...u, "--modal-width": s },
|
|
60
60
|
..._,
|
|
61
|
-
children:
|
|
61
|
+
children: m
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
66
|
document.body
|
|
67
67
|
);
|
|
68
|
-
}, D = ({ variant:
|
|
68
|
+
}, D = ({ variant: e = "standard", className: o, children: t, ...s }) => /* @__PURE__ */ n(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
71
|
-
className:
|
|
72
|
-
...
|
|
73
|
-
children:
|
|
71
|
+
className: a(r.toolbar, e === "plain" && r.toolbarPlain, o),
|
|
72
|
+
...s,
|
|
73
|
+
children: t
|
|
74
74
|
}
|
|
75
75
|
), G = ({
|
|
76
|
-
align:
|
|
76
|
+
align: e = "left",
|
|
77
77
|
size: o = "md",
|
|
78
|
-
variant:
|
|
79
|
-
className:
|
|
80
|
-
children:
|
|
81
|
-
...
|
|
78
|
+
variant: t = "body",
|
|
79
|
+
className: s,
|
|
80
|
+
children: l,
|
|
81
|
+
...u
|
|
82
82
|
}) => {
|
|
83
|
-
const
|
|
84
|
-
return /* @__PURE__ */
|
|
83
|
+
const m = typeof l == "string";
|
|
84
|
+
return /* @__PURE__ */ n(
|
|
85
85
|
"div",
|
|
86
86
|
{
|
|
87
|
-
className:
|
|
88
|
-
...
|
|
89
|
-
children:
|
|
87
|
+
className: a(r.headerGroup, e === "left" ? r.headerLeft : r.headerRight, s),
|
|
88
|
+
...u,
|
|
89
|
+
children: m ? /* @__PURE__ */ n(g, { as: "div", size: P[o], variant: t, weight: "semibold", children: l }) : l
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
|
-
}, L = ({ size:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
}, L = ({ size: e = "md", className: o, ...t }) => /* @__PURE__ */ n("button", { type: "button", className: a(r.closeButton, o), "aria-label": "Close", ...t, children: /* @__PURE__ */ n(y, { iconKey: "fa-regular fa-xmark", size: C[e] }) }), S = ({ className: e, children: o, ...t }) => /* @__PURE__ */ n("div", { className: a(r.content, e), ...t, children: o });
|
|
93
|
+
i.Toolbar = D;
|
|
94
|
+
i.Header = G;
|
|
95
|
+
i.CloseButton = L;
|
|
96
|
+
i.Content = S;
|
|
97
97
|
export {
|
|
98
|
-
|
|
98
|
+
i as Modal
|
|
99
99
|
};
|
|
@@ -3,7 +3,7 @@ import { useState as r } from "react";
|
|
|
3
3
|
import { Modal as n } from "./Modal.js";
|
|
4
4
|
import { Text as o } from "../../atoms/Text/Text.js";
|
|
5
5
|
import { Button as a } from "../../atoms/Button/Button.js";
|
|
6
|
-
const
|
|
6
|
+
const O = {
|
|
7
7
|
title: "Case Parts/Molecules/Modal",
|
|
8
8
|
component: n,
|
|
9
9
|
// tags: ["autodocs"],
|
|
@@ -26,7 +26,7 @@ function C() {
|
|
|
26
26
|
] })
|
|
27
27
|
] });
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const H = {
|
|
30
30
|
render: () => /* @__PURE__ */ e(C, {})
|
|
31
31
|
};
|
|
32
32
|
function u() {
|
|
@@ -35,7 +35,7 @@ function u() {
|
|
|
35
35
|
/* @__PURE__ */ e(a, { variant: "secondary", size: "sm", onClick: () => i(!0), children: "Small Header" }),
|
|
36
36
|
/* @__PURE__ */ l(n, { isOpen: t, onClose: () => i(!1), children: [
|
|
37
37
|
/* @__PURE__ */ l(n.Toolbar, { children: [
|
|
38
|
-
/* @__PURE__ */ e(n.Header, { align: "left", size: "sm",
|
|
38
|
+
/* @__PURE__ */ e(n.Header, { align: "left", size: "sm", children: "Small Header" }),
|
|
39
39
|
/* @__PURE__ */ e(n.Header, { align: "right", children: /* @__PURE__ */ e(n.CloseButton, { size: "sm", onClick: () => i(!1) }) })
|
|
40
40
|
] }),
|
|
41
41
|
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(o, { as: "p", size: "sm", children: "Small header modal content." }) })
|
|
@@ -43,7 +43,7 @@ function u() {
|
|
|
43
43
|
/* @__PURE__ */ e(a, { variant: "primary", size: "md", onClick: () => s(!0), children: "Medium Header" }),
|
|
44
44
|
/* @__PURE__ */ l(n, { isOpen: h, onClose: () => s(!1), children: [
|
|
45
45
|
/* @__PURE__ */ l(n.Toolbar, { children: [
|
|
46
|
-
/* @__PURE__ */ e(n.Header, { align: "left", size: "md",
|
|
46
|
+
/* @__PURE__ */ e(n.Header, { align: "left", size: "md", children: "Medium Header" }),
|
|
47
47
|
/* @__PURE__ */ e(n.Header, { align: "right", children: /* @__PURE__ */ e(n.CloseButton, { size: "md", onClick: () => s(!1) }) })
|
|
48
48
|
] }),
|
|
49
49
|
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(o, { as: "p", size: "md", children: "Medium header modal content." }) })
|
|
@@ -51,7 +51,7 @@ function u() {
|
|
|
51
51
|
/* @__PURE__ */ e(a, { variant: "cta-primary", size: "lg", onClick: () => d(!0), children: "Large Header" }),
|
|
52
52
|
/* @__PURE__ */ l(n, { isOpen: m, onClose: () => d(!1), children: [
|
|
53
53
|
/* @__PURE__ */ l(n.Toolbar, { children: [
|
|
54
|
-
/* @__PURE__ */ e(n.Header, { align: "left", size: "lg",
|
|
54
|
+
/* @__PURE__ */ e(n.Header, { align: "left", size: "lg", children: "Large Header" }),
|
|
55
55
|
/* @__PURE__ */ e(n.Header, { align: "right", children: /* @__PURE__ */ e(n.CloseButton, { size: "md", onClick: () => d(!1) }) })
|
|
56
56
|
] }),
|
|
57
57
|
/* @__PURE__ */ e(n.Content, { children: /* @__PURE__ */ e(o, { as: "p", size: "lg", children: "Large header modal content." }) })
|
|
@@ -69,11 +69,11 @@ function u() {
|
|
|
69
69
|
] })
|
|
70
70
|
] });
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const k = {
|
|
73
73
|
render: () => /* @__PURE__ */ e(u, {})
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
H as PlainToolbar,
|
|
77
|
+
k as Sizes,
|
|
78
|
+
O as default
|
|
79
79
|
};
|
|
@@ -5,11 +5,11 @@ import { Link as a } from "../../atoms/Link/Link.js";
|
|
|
5
5
|
import { Icon as _ } from "../../atoms/Icon/Icon.js";
|
|
6
6
|
import { Logo as $ } from "../../molecules/Logo/Logo.js";
|
|
7
7
|
import { Text as l } from "../../atoms/Text/Text.js";
|
|
8
|
-
import { Tooltip as
|
|
9
|
-
import { c as
|
|
10
|
-
import '../../assets/Footer.css';const
|
|
11
|
-
footer:
|
|
12
|
-
grid:
|
|
8
|
+
import { Tooltip as I } from "../../atoms/Tooltip/Tooltip.js";
|
|
9
|
+
import { c as y } from "../../clsx-OuTLNxxd.js";
|
|
10
|
+
import '../../assets/Footer.css';const K = "_footer_by119_2", B = "_grid_by119_18", j = "_title_by119_31", q = "_columnContent_by119_40", G = "_history_by119_48", R = "_logo_by119_62", Q = "_location_by119_72", r = {
|
|
11
|
+
footer: K,
|
|
12
|
+
grid: B,
|
|
13
13
|
"bottom-grid": "_bottom-grid_by119_19",
|
|
14
14
|
title: j,
|
|
15
15
|
"title-help": "_title-help_by119_36",
|
|
@@ -72,7 +72,7 @@ import '../../assets/Footer.css';const B = "_footer_by119_2", I = "_grid_by119_1
|
|
|
72
72
|
};
|
|
73
73
|
function ie({
|
|
74
74
|
homeRoute: w = "/",
|
|
75
|
-
isOnline:
|
|
75
|
+
isOnline: m = !0,
|
|
76
76
|
className: g,
|
|
77
77
|
companyHistoryText: A = Y,
|
|
78
78
|
customerCareTitle: C = "Customer Care",
|
|
@@ -86,14 +86,14 @@ function ie({
|
|
|
86
86
|
liveChatHref: p,
|
|
87
87
|
onLiveChatClick: f,
|
|
88
88
|
partResearchLabel: v = "Part Research Request",
|
|
89
|
-
partResearchDescription: D = "
|
|
89
|
+
partResearchDescription: D = "Identify a Part",
|
|
90
90
|
partResearchHref: u,
|
|
91
91
|
onPartResearchClick: d,
|
|
92
92
|
legalLinks: s = H,
|
|
93
93
|
copyrightText: P = "Copyright 1972-2025 Case Parts Company | All Rights Reserved.",
|
|
94
94
|
...W
|
|
95
95
|
}) {
|
|
96
|
-
const M =
|
|
96
|
+
const M = y(r.footer, g), U = [
|
|
97
97
|
i.cuttingBoards,
|
|
98
98
|
i.gaskets,
|
|
99
99
|
i.heatersAndPans,
|
|
@@ -108,13 +108,13 @@ function ie({
|
|
|
108
108
|
n.salesTaxCertificates,
|
|
109
109
|
n.salesTax,
|
|
110
110
|
n.myAccount
|
|
111
|
-
].filter((t) => !!(t != null && t.href)),
|
|
111
|
+
].filter((t) => !!(t != null && t.href)), F = (t) => {
|
|
112
112
|
u || t.preventDefault(), d == null || d(t);
|
|
113
|
-
},
|
|
113
|
+
}, O = (t) => {
|
|
114
114
|
p || t.preventDefault(), f == null || f(t);
|
|
115
115
|
};
|
|
116
116
|
return /* @__PURE__ */ o("footer", { className: M, ...W, children: [
|
|
117
|
-
/* @__PURE__ */ o(N, { gridWrapperClassName:
|
|
117
|
+
/* @__PURE__ */ o(N, { gridWrapperClassName: y(g, r.grid), children: [
|
|
118
118
|
/* @__PURE__ */ o(h, { span: [4, 6, 3], className: r.gridColumn, children: [
|
|
119
119
|
/* @__PURE__ */ e(a, { href: w, children: /* @__PURE__ */ e($, { variant: "white", className: r.logo }) }),
|
|
120
120
|
/* @__PURE__ */ e("div", { className: r.history, children: /* @__PURE__ */ e(l, { size: "sm", weight: "extra-light", colorToken: "footer", className: r["history-text"], children: A }) })
|
|
@@ -133,7 +133,7 @@ function ie({
|
|
|
133
133
|
z.map((t) => /* @__PURE__ */ o(c, { flexDirection: "row", justifyContent: "flex-start", className: r["icon-gap"], children: [
|
|
134
134
|
/* @__PURE__ */ e(_, { iconKey: "fa-solid fa-location-dot", size: "sm", colorToken: "warning" }),
|
|
135
135
|
/* @__PURE__ */ e(
|
|
136
|
-
|
|
136
|
+
I,
|
|
137
137
|
{
|
|
138
138
|
trigger: /* @__PURE__ */ o("div", { className: r.location, children: [
|
|
139
139
|
/* @__PURE__ */ o(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: [
|
|
@@ -163,30 +163,30 @@ function ie({
|
|
|
163
163
|
)
|
|
164
164
|
] }, `${t.office}-${t.phone}`)),
|
|
165
165
|
/* @__PURE__ */ o(c, { flexDirection: "row", justifyContent: "flex-start", className: r["icon-gap"], children: [
|
|
166
|
-
/* @__PURE__ */ e(_, { iconKey: "fa-kit fa-chat", size: "sm", colorToken:
|
|
166
|
+
/* @__PURE__ */ e(_, { iconKey: "fa-kit fa-chat", size: "sm", colorToken: m ? "success" : "default-inverted" }),
|
|
167
167
|
p || f ? /* @__PURE__ */ o(
|
|
168
168
|
a,
|
|
169
169
|
{
|
|
170
170
|
href: p || "#",
|
|
171
171
|
unstyled: !0,
|
|
172
|
-
onClick:
|
|
172
|
+
onClick: O,
|
|
173
173
|
className: r["live-chat-interactive"],
|
|
174
174
|
children: [
|
|
175
175
|
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: b }),
|
|
176
176
|
/* @__PURE__ */ e("br", {}),
|
|
177
|
-
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children:
|
|
177
|
+
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: m ? x : T })
|
|
178
178
|
]
|
|
179
179
|
}
|
|
180
180
|
) : /* @__PURE__ */ o("div", { children: [
|
|
181
181
|
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: b }),
|
|
182
182
|
/* @__PURE__ */ e("br", {}),
|
|
183
|
-
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children:
|
|
183
|
+
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: m ? x : T })
|
|
184
184
|
] })
|
|
185
185
|
] }),
|
|
186
186
|
/* @__PURE__ */ o(c, { flexDirection: "row", justifyContent: "flex-start", className: r["icon-gap"], children: [
|
|
187
187
|
/* @__PURE__ */ e(_, { iconKey: "fa-regular fa-sparkles", size: "sm", colorToken: "default-inverted" }),
|
|
188
|
-
/* @__PURE__ */ o("div", { className:
|
|
189
|
-
u || d ? /* @__PURE__ */ e(a, { href: u || "#", unstyled: !0, onClick:
|
|
188
|
+
/* @__PURE__ */ o("div", { className: y((u || d) && r["part-research-interactive"]), children: [
|
|
189
|
+
u || d ? /* @__PURE__ */ e(a, { href: u || "#", unstyled: !0, onClick: F, children: v }) : /* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: v }),
|
|
190
190
|
/* @__PURE__ */ e("br", {}),
|
|
191
191
|
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", colorToken: "footer", children: D })
|
|
192
192
|
] })
|
|
@@ -194,7 +194,7 @@ function ie({
|
|
|
194
194
|
] })
|
|
195
195
|
] })
|
|
196
196
|
] }),
|
|
197
|
-
/* @__PURE__ */ e(N, { gridWrapperClassName:
|
|
197
|
+
/* @__PURE__ */ e(N, { gridWrapperClassName: y(g, r["bottom-grid"]), children: /* @__PURE__ */ e(h, { span: [4, 6, 12], className: r.gridColumn, children: /* @__PURE__ */ o("div", { className: r.columnContent, children: [
|
|
198
198
|
/* @__PURE__ */ e(a, { href: s.terms.href, unstyled: s.terms.unstyled, target: s.terms.target, rel: s.terms.rel, children: s.terms.label }),
|
|
199
199
|
" ",
|
|
200
200
|
/* @__PURE__ */ e(l, { size: "xs", weight: "extra-light", variant: "body", colorToken: "footer", children: "|" }),
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, Fragment as M, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
3
|
import { r as ct } from "../../index-BkF-BQ3Q.js";
|
|
4
|
-
import { Text as
|
|
5
|
-
import { Link as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { Flex as
|
|
4
|
+
import { Text as U } from "../../atoms/Text/Text.js";
|
|
5
|
+
import { Link as H } from "../../atoms/Link/Link.js";
|
|
6
|
+
import { Icon as u } from "../../atoms/Icon/Icon.js";
|
|
7
|
+
import { Flex as E } from "../../atoms/Flex/Flex.js";
|
|
8
8
|
import { Grid as at, Column as st } from "../../atoms/Grid/Grid.js";
|
|
9
9
|
import { Input as Z } from "../../atoms/Input/Input.js";
|
|
10
10
|
import { InputEndAdornmentButton as $ } from "../../atoms/InputEndAdornmentButton/InputEndAdornmentButton.js";
|
|
11
11
|
import { Logo as yt } from "../../molecules/Logo/Logo.js";
|
|
12
12
|
import { HamburgerMenu as wt } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
|
|
13
|
-
import { ShoppingCart as
|
|
14
|
-
import { Account as
|
|
13
|
+
import { ShoppingCart as _t } from "../../molecules/Cart/Cart.js";
|
|
14
|
+
import { Account as ut } from "../../molecules/Account/Account.js";
|
|
15
15
|
import { CategoryNav as Nt } from "../../molecules/CategoryNav/CategoryNav.js";
|
|
16
16
|
import { SuggestionDropdown as C } from "../SuggestionDropdown/SuggestionDropdown.js";
|
|
17
17
|
import { getHideAtStyles as P } from "../../atoms/HideAt.js";
|
|
18
18
|
import { c as N } from "../../clsx-OuTLNxxd.js";
|
|
19
|
-
import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2jy_8", bt = "_topNav_1w2jy_13", vt = "_logo_1w2jy_21", Lt = "_operations_1w2jy_24",
|
|
19
|
+
import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2jy_8", bt = "_topNav_1w2jy_13", vt = "_logo_1w2jy_21", Lt = "_operations_1w2jy_24", Dt = "_search_1w2jy_31", xt = "_mobileSearch_1w2jy_37", pt = "_typeAheadPortal_1w2jy_40", jt = "_siteLink_1w2jy_47", Kt = "_accountArea_1w2jy_74", zt = "_category_1w2jy_86", Bt = "_categoryLink_1w2jy_94", Et = "_menuList_1w2jy_110", $t = "_menuItemAction_1w2jy_133", Ft = "_shortcutIcon_1w2jy_142", e = {
|
|
20
20
|
main: kt,
|
|
21
21
|
column: At,
|
|
22
22
|
topNav: bt,
|
|
23
23
|
logo: vt,
|
|
24
24
|
operations: Lt,
|
|
25
|
-
search:
|
|
26
|
-
mobileSearch:
|
|
27
|
-
typeAheadPortal:
|
|
25
|
+
search: Dt,
|
|
26
|
+
mobileSearch: xt,
|
|
27
|
+
typeAheadPortal: pt,
|
|
28
28
|
siteLink: jt,
|
|
29
29
|
accountArea: Kt,
|
|
30
30
|
category: zt,
|
|
31
|
-
categoryLink:
|
|
32
|
-
menuList:
|
|
31
|
+
categoryLink: Bt,
|
|
32
|
+
menuList: Et,
|
|
33
33
|
menuItemAction: $t,
|
|
34
34
|
shortcutIcon: Ft
|
|
35
35
|
}, gt = s.forwardRef(function({
|
|
@@ -37,15 +37,15 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
37
37
|
categories: L,
|
|
38
38
|
homeRoute: V,
|
|
39
39
|
faqRoute: g,
|
|
40
|
-
customPartsRoute:
|
|
40
|
+
customPartsRoute: O,
|
|
41
41
|
aboutUsRoute: h,
|
|
42
|
-
contactRoute:
|
|
42
|
+
contactRoute: T,
|
|
43
43
|
cart: S,
|
|
44
44
|
open: tt,
|
|
45
45
|
// consume external panel control props from CartPropsBase
|
|
46
46
|
className: it,
|
|
47
47
|
onLoginClick: et,
|
|
48
|
-
searchInputProps:
|
|
48
|
+
searchInputProps: n,
|
|
49
49
|
searchValue: f,
|
|
50
50
|
onSearchValueChange: d,
|
|
51
51
|
onClearSearch: k,
|
|
@@ -56,24 +56,24 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
56
56
|
onCategoryClick: j,
|
|
57
57
|
onClickModelSerial: q,
|
|
58
58
|
onCartClick: mt,
|
|
59
|
-
accountPopoverContent:
|
|
60
|
-
isAccountLoading:
|
|
59
|
+
accountPopoverContent: nt,
|
|
60
|
+
isAccountLoading: lt,
|
|
61
61
|
isCategoriesLoading: dt,
|
|
62
62
|
...rt
|
|
63
63
|
}, ft) {
|
|
64
64
|
var Y;
|
|
65
|
-
const [G, R] = s.useState(!1), [r, w] = s.useState(-1), [Q, W] = s.useState(), A = s.useRef(null), K = s.useRef(null),
|
|
65
|
+
const [G, R] = s.useState(!1), [r, w] = s.useState(-1), [Q, W] = s.useState(), A = s.useRef(null), K = s.useRef(null), _ = s.useId(), z = () => {
|
|
66
66
|
var t;
|
|
67
67
|
return (t = A.current) != null && t.offsetParent ? A.current : K.current;
|
|
68
|
-
}, b = G && !!f && !!o,
|
|
68
|
+
}, b = G && !!f && !!o, B = G && !b && !!(y != null && y.length), D = b ? ((o == null ? void 0 : o.terms.length) ?? 0) + ((o == null ? void 0 : o.categories.length) ?? 0) + (((Y = o == null ? void 0 : o.customParts) == null ? void 0 : Y.length) ?? 0) + ((o == null ? void 0 : o.items.length) ?? 0) : B ? (y == null ? void 0 : y.length) ?? 0 : 0;
|
|
69
69
|
s.useLayoutEffect(() => {
|
|
70
|
-
if (!b && !
|
|
70
|
+
if (!b && !B) {
|
|
71
71
|
W(void 0);
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
function t() {
|
|
75
|
-
var
|
|
76
|
-
const m = (
|
|
75
|
+
var x;
|
|
76
|
+
const m = (x = A.current) != null && x.offsetParent ? A.current : K.current;
|
|
77
77
|
if (!m) return;
|
|
78
78
|
const c = m.getBoundingClientRect();
|
|
79
79
|
W({
|
|
@@ -86,67 +86,67 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
86
86
|
return t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0), () => {
|
|
87
87
|
window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0);
|
|
88
88
|
};
|
|
89
|
-
}, [b,
|
|
89
|
+
}, [b, B]);
|
|
90
90
|
const J = {
|
|
91
|
-
...
|
|
91
|
+
...n,
|
|
92
92
|
onChange: (t) => {
|
|
93
93
|
var m;
|
|
94
|
-
w(-1), (m =
|
|
94
|
+
w(-1), (m = n == null ? void 0 : n.onChange) == null || m.call(n, t);
|
|
95
95
|
},
|
|
96
96
|
onFocus: (t) => {
|
|
97
97
|
var m;
|
|
98
|
-
(m =
|
|
98
|
+
(m = n == null ? void 0 : n.onFocus) == null || m.call(n, t), R(!0);
|
|
99
99
|
},
|
|
100
100
|
onBlur: (t) => {
|
|
101
101
|
var m;
|
|
102
|
-
(m =
|
|
102
|
+
(m = n == null ? void 0 : n.onBlur) == null || m.call(n, t), R(!1);
|
|
103
103
|
},
|
|
104
104
|
onKeyDown: (t) => {
|
|
105
|
-
var m, c,
|
|
106
|
-
if ((m =
|
|
107
|
-
if (t.key === "ArrowDown" &&
|
|
108
|
-
t.preventDefault(), w((
|
|
105
|
+
var m, c, x;
|
|
106
|
+
if ((m = n == null ? void 0 : n.onKeyDown) == null || m.call(n, t), !t.defaultPrevented) {
|
|
107
|
+
if (t.key === "ArrowDown" && D > 0) {
|
|
108
|
+
t.preventDefault(), w((p) => p >= D - 1 ? 0 : p + 1);
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
if (t.key === "ArrowUp" &&
|
|
112
|
-
t.preventDefault(), w((
|
|
111
|
+
if (t.key === "ArrowUp" && D > 0) {
|
|
112
|
+
t.preventDefault(), w((p) => p <= 0 ? D - 1 : p - 1);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
if (t.key === "Tab" && b && r >= 0 && r < ((o == null ? void 0 : o.terms.length) ?? 0)) {
|
|
116
116
|
t.preventDefault(), d == null || d((o == null ? void 0 : o.terms[r].name) ?? ""), w(-1);
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
if (t.key === "Enter" && r >= 0 && r <
|
|
120
|
-
t.preventDefault(), (c = document.getElementById(`${
|
|
119
|
+
if (t.key === "Enter" && r >= 0 && r < D) {
|
|
120
|
+
t.preventDefault(), (c = document.getElementById(`${_}-${r}`)) == null || c.click();
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
t.key === "Enter" && (t.preventDefault(), R(!1), (
|
|
123
|
+
t.key === "Enter" && (t.preventDefault(), R(!1), (x = z()) == null || x.blur(), a == null || a(f ?? ""));
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}, X = (t) => {
|
|
127
127
|
var m;
|
|
128
128
|
t.key.length !== 1 || t.altKey || t.ctrlKey || t.metaKey || (t.preventDefault(), w(-1), d == null || d(`${f ?? ""}${t.key}`), (m = z()) == null || m.focus());
|
|
129
129
|
};
|
|
130
|
-
return /* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */ i(at, { ...rt, gridWrapperClassName: N(e.main, it), children: /* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
|
|
130
|
+
return /* @__PURE__ */ l(M, { children: [
|
|
131
|
+
/* @__PURE__ */ i(at, { ...rt, gridWrapperClassName: N(e.main, it), children: /* @__PURE__ */ l(st, { span: 12, className: e.column, children: [
|
|
132
|
+
/* @__PURE__ */ l(
|
|
133
|
+
E,
|
|
134
134
|
{
|
|
135
135
|
flexDirection: "row",
|
|
136
136
|
alignItems: "center",
|
|
137
137
|
justifyContent: "space-between",
|
|
138
138
|
className: e.topNav,
|
|
139
139
|
children: [
|
|
140
|
-
/* @__PURE__ */ i("div", { className: e.logo, children: /* @__PURE__ */ i(
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
|
|
140
|
+
/* @__PURE__ */ i("div", { className: e.logo, children: /* @__PURE__ */ i(H, { href: V, children: /* @__PURE__ */ i(yt, {}) }) }),
|
|
141
|
+
/* @__PURE__ */ l(
|
|
142
|
+
E,
|
|
143
143
|
{
|
|
144
144
|
flexDirection: "row",
|
|
145
145
|
alignItems: "center",
|
|
146
146
|
justifyContent: "flex-end",
|
|
147
147
|
className: e.operations,
|
|
148
148
|
children: [
|
|
149
|
-
/* @__PURE__ */ i(
|
|
149
|
+
/* @__PURE__ */ i(E, { flexDirection: "row", hideAt: ["sm"], className: e.search, children: /* @__PURE__ */ i(
|
|
150
150
|
Z,
|
|
151
151
|
{
|
|
152
152
|
variant: "search",
|
|
@@ -155,12 +155,12 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
155
155
|
name: "cpc-search",
|
|
156
156
|
autoComplete: "off",
|
|
157
157
|
"aria-autocomplete": "list",
|
|
158
|
-
"aria-controls":
|
|
159
|
-
"aria-activedescendant": r >= 0 ? `${
|
|
158
|
+
"aria-controls": _,
|
|
159
|
+
"aria-activedescendant": r >= 0 ? `${_}-${r}` : void 0,
|
|
160
160
|
...J,
|
|
161
161
|
ref: A,
|
|
162
162
|
value: f,
|
|
163
|
-
endAdornment: /* @__PURE__ */
|
|
163
|
+
endAdornment: /* @__PURE__ */ l(M, { children: [
|
|
164
164
|
!!f && /* @__PURE__ */ i(
|
|
165
165
|
$,
|
|
166
166
|
{
|
|
@@ -184,24 +184,24 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
184
184
|
] })
|
|
185
185
|
}
|
|
186
186
|
) }),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */ i(
|
|
189
|
-
"
|
|
187
|
+
/* @__PURE__ */ l("button", { onClick: q, className: N(e.siteLink, P(["sm", "md"])), children: [
|
|
188
|
+
/* @__PURE__ */ i(u, { iconKey: "fa-regular fa-sparkles", size: "sm" }),
|
|
189
|
+
"Identify a Part"
|
|
190
190
|
] }),
|
|
191
|
-
/* @__PURE__ */ i(v, { href:
|
|
192
|
-
/* @__PURE__ */ i(v, { href:
|
|
191
|
+
/* @__PURE__ */ i(v, { href: O, hideAt: ["sm", "md"], children: "Custom Parts" }),
|
|
192
|
+
/* @__PURE__ */ i(v, { href: T, hideAt: ["sm", "md"], children: "Contact Us" }),
|
|
193
193
|
/* @__PURE__ */ i("div", { className: e.accountArea, children: /* @__PURE__ */ i(
|
|
194
|
-
|
|
194
|
+
ut,
|
|
195
195
|
{
|
|
196
196
|
account: F,
|
|
197
197
|
onLoginClick: et,
|
|
198
198
|
className: e.avatar,
|
|
199
|
-
popoverContent:
|
|
200
|
-
isAccountLoading:
|
|
199
|
+
popoverContent: nt,
|
|
200
|
+
isAccountLoading: lt
|
|
201
201
|
}
|
|
202
202
|
) }),
|
|
203
203
|
/* @__PURE__ */ i(
|
|
204
|
-
|
|
204
|
+
_t,
|
|
205
205
|
{
|
|
206
206
|
ref: ft,
|
|
207
207
|
cart: S,
|
|
@@ -209,52 +209,52 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
209
209
|
onCartClick: mt
|
|
210
210
|
}
|
|
211
211
|
),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
/* @__PURE__ */ i(
|
|
215
|
-
/* @__PURE__ */
|
|
216
|
-
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ l(wt, { hideAt: ["lg"], children: [
|
|
213
|
+
/* @__PURE__ */ l("section", { children: [
|
|
214
|
+
/* @__PURE__ */ i(U, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
|
|
215
|
+
/* @__PURE__ */ l("ul", { className: e.menuList, children: [
|
|
216
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ l(
|
|
217
217
|
"button",
|
|
218
218
|
{
|
|
219
219
|
onClick: q,
|
|
220
220
|
"data-hamburger-close": "true",
|
|
221
221
|
className: N(e.siteLink, e.menuItemAction, P(["lg"])),
|
|
222
222
|
children: [
|
|
223
|
-
/* @__PURE__ */ i(
|
|
224
|
-
"
|
|
223
|
+
/* @__PURE__ */ i(u, { iconKey: "fa-regular fa-sparkles", size: "sm", className: e.shortcutIcon }),
|
|
224
|
+
"Identify a Part"
|
|
225
225
|
]
|
|
226
226
|
}
|
|
227
227
|
) }),
|
|
228
|
-
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */ i(
|
|
228
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ l(v, { href: O, className: N(e.siteLink, e.menuItemAction), children: [
|
|
229
|
+
/* @__PURE__ */ i(u, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm", className: e.shortcutIcon }),
|
|
230
230
|
"Custom Parts"
|
|
231
231
|
] }) }),
|
|
232
|
-
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */ i(
|
|
232
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ l(v, { href: T, className: N(e.siteLink, e.menuItemAction), children: [
|
|
233
|
+
/* @__PURE__ */ i(u, { iconKey: "fa-regular fa-envelope", size: "sm", className: e.shortcutIcon }),
|
|
234
234
|
"Contact Us"
|
|
235
235
|
] }) }),
|
|
236
|
-
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */ i(
|
|
236
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ l(v, { href: g, className: N(e.siteLink, e.menuItemAction), children: [
|
|
237
|
+
/* @__PURE__ */ i(u, { iconKey: "fa-solid fa-question", size: "sm", className: e.shortcutIcon }),
|
|
238
238
|
"FAQ"
|
|
239
239
|
] }) }),
|
|
240
|
-
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */ i(
|
|
240
|
+
/* @__PURE__ */ i("li", { className: e.menuItem, children: /* @__PURE__ */ l(v, { href: h, className: N(e.siteLink, e.menuItemAction), children: [
|
|
241
|
+
/* @__PURE__ */ i(u, { iconKey: "fa-regular fa-people-group", size: "sm", className: e.shortcutIcon }),
|
|
242
242
|
"About Us"
|
|
243
243
|
] }) })
|
|
244
244
|
] })
|
|
245
245
|
] }),
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
/* @__PURE__ */ i(
|
|
248
|
-
/* @__PURE__ */ i("ul", { className: e.menuList, children: L && L.map((t) => /* @__PURE__ */ i("li", { className: e.category, children: /* @__PURE__ */
|
|
249
|
-
|
|
246
|
+
/* @__PURE__ */ l("section", { children: [
|
|
247
|
+
/* @__PURE__ */ i(U, { size: "md", weight: "semibold", children: "Shop by category" }),
|
|
248
|
+
/* @__PURE__ */ i("ul", { className: e.menuList, children: L && L.map((t) => /* @__PURE__ */ i("li", { className: e.category, children: /* @__PURE__ */ l(
|
|
249
|
+
H,
|
|
250
250
|
{
|
|
251
251
|
href: t.route,
|
|
252
252
|
className: e.categoryLink,
|
|
253
253
|
onClick: () => j == null ? void 0 : j(t),
|
|
254
254
|
children: [
|
|
255
|
-
/* @__PURE__ */ i(
|
|
255
|
+
/* @__PURE__ */ i(U, { size: "sm", children: t.label }),
|
|
256
256
|
/* @__PURE__ */ i(
|
|
257
|
-
|
|
257
|
+
u,
|
|
258
258
|
{
|
|
259
259
|
iconKey: "fa-solid fa-chevron-right",
|
|
260
260
|
title: "Navigate",
|
|
@@ -272,7 +272,7 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
272
272
|
]
|
|
273
273
|
}
|
|
274
274
|
),
|
|
275
|
-
/* @__PURE__ */ i(
|
|
275
|
+
/* @__PURE__ */ i(E, { flexDirection: "row", hideAt: ["md", "lg"], className: e.mobileSearch, children: /* @__PURE__ */ i("div", { className: e.search, children: /* @__PURE__ */ i(
|
|
276
276
|
Z,
|
|
277
277
|
{
|
|
278
278
|
variant: "search",
|
|
@@ -281,12 +281,12 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
281
281
|
name: "cpc-search",
|
|
282
282
|
autoComplete: "off",
|
|
283
283
|
"aria-autocomplete": "list",
|
|
284
|
-
"aria-controls":
|
|
285
|
-
"aria-activedescendant": r >= 0 ? `${
|
|
284
|
+
"aria-controls": _,
|
|
285
|
+
"aria-activedescendant": r >= 0 ? `${_}-${r}` : void 0,
|
|
286
286
|
...J,
|
|
287
287
|
ref: K,
|
|
288
288
|
value: f,
|
|
289
|
-
endAdornment: /* @__PURE__ */
|
|
289
|
+
endAdornment: /* @__PURE__ */ l(M, { children: [
|
|
290
290
|
!!f && /* @__PURE__ */ i(
|
|
291
291
|
$,
|
|
292
292
|
{
|
|
@@ -320,7 +320,7 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
320
320
|
)
|
|
321
321
|
] }) }),
|
|
322
322
|
Q && typeof document < "u" && ct.createPortal(
|
|
323
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ l(
|
|
324
324
|
"div",
|
|
325
325
|
{
|
|
326
326
|
className: e.typeAheadPortal,
|
|
@@ -331,7 +331,7 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
331
331
|
{
|
|
332
332
|
...o,
|
|
333
333
|
activeOptionIndex: r,
|
|
334
|
-
optionIdPrefix:
|
|
334
|
+
optionIdPrefix: _,
|
|
335
335
|
onKeyDown: X,
|
|
336
336
|
onSuggestionClick: (t) => {
|
|
337
337
|
var m, c;
|
|
@@ -339,7 +339,7 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
),
|
|
342
|
-
|
|
342
|
+
B && /* @__PURE__ */ i(
|
|
343
343
|
C,
|
|
344
344
|
{
|
|
345
345
|
terms: [],
|
|
@@ -349,7 +349,7 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
349
349
|
recentSearches: y,
|
|
350
350
|
onClearRecentSearch: ot,
|
|
351
351
|
activeOptionIndex: r,
|
|
352
|
-
optionIdPrefix:
|
|
352
|
+
optionIdPrefix: _,
|
|
353
353
|
onKeyDown: X,
|
|
354
354
|
onSuggestionClick: (t) => {
|
|
355
355
|
var m;
|
|
@@ -365,11 +365,11 @@ import '../../assets/MainNav.css';const kt = "_main_1w2jy_1", At = "_column_1w2j
|
|
|
365
365
|
] });
|
|
366
366
|
});
|
|
367
367
|
function v({
|
|
368
|
-
href:
|
|
368
|
+
href: I,
|
|
369
369
|
children: F,
|
|
370
370
|
...L
|
|
371
371
|
}) {
|
|
372
|
-
return /* @__PURE__ */ i(
|
|
372
|
+
return /* @__PURE__ */ i(H, { href: I, className: e.siteLink, ...L, children: F });
|
|
373
373
|
}
|
|
374
374
|
export {
|
|
375
375
|
gt as MainNav
|
package/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import './assets/Text.css';const t = {
|
|
2
|
-
"text-body": "_text-body_1x8xm_1",
|
|
3
|
-
"text-display": "_text-display_1x8xm_4",
|
|
4
|
-
"text-xxs": "_text-xxs_1x8xm_8",
|
|
5
|
-
"text-xs": "_text-xs_1x8xm_12",
|
|
6
|
-
"text-sm": "_text-sm_1x8xm_16",
|
|
7
|
-
"text-md": "_text-md_1x8xm_20",
|
|
8
|
-
"text-lg": "_text-lg_1x8xm_24",
|
|
9
|
-
"text-xl": "_text-xl_1x8xm_28",
|
|
10
|
-
"text-2xl": "_text-2xl_1x8xm_32",
|
|
11
|
-
"text-3xl": "_text-3xl_1x8xm_36",
|
|
12
|
-
"text-4xl": "_text-4xl_1x8xm_40",
|
|
13
|
-
"text-5xl": "_text-5xl_1x8xm_44",
|
|
14
|
-
"text-6xl": "_text-6xl_1x8xm_48",
|
|
15
|
-
"text-thin": "_text-thin_1x8xm_53",
|
|
16
|
-
"text-extra-light": "_text-extra-light_1x8xm_56",
|
|
17
|
-
"text-light": "_text-light_1x8xm_59",
|
|
18
|
-
"text-regular": "_text-regular_1x8xm_62",
|
|
19
|
-
"text-medium": "_text-medium_1x8xm_65",
|
|
20
|
-
"text-semibold": "_text-semibold_1x8xm_68",
|
|
21
|
-
"text-bold": "_text-bold_1x8xm_71",
|
|
22
|
-
"text-color-inherit": "_text-color-inherit_1x8xm_75",
|
|
23
|
-
"text-color-warning": "_text-color-warning_1x8xm_76",
|
|
24
|
-
"text-color-disabled": "_text-color-disabled_1x8xm_77",
|
|
25
|
-
"text-color-error-warning": "_text-color-error-warning_1x8xm_78",
|
|
26
|
-
"text-color-default-inverted": "_text-color-default-inverted_1x8xm_79",
|
|
27
|
-
"text-color-links": "_text-color-links_1x8xm_80",
|
|
28
|
-
"text-color-links-hover-press": "_text-color-links-hover-press_1x8xm_81",
|
|
29
|
-
"text-color-primary": "_text-color-primary_1x8xm_82",
|
|
30
|
-
"text-color-quaternary": "_text-color-quaternary_1x8xm_83",
|
|
31
|
-
"text-color-search-bar": "_text-color-search-bar_1x8xm_84",
|
|
32
|
-
"text-color-secondary": "_text-color-secondary_1x8xm_85",
|
|
33
|
-
"text-color-success": "_text-color-success_1x8xm_86",
|
|
34
|
-
"text-color-tertiary": "_text-color-tertiary_1x8xm_87",
|
|
35
|
-
"text-color-footer": "_text-color-footer_1x8xm_88"
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
t
|
|
39
|
-
};
|