@caseparts-org/caseblocks 0.0.172 → 0.0.173

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
- ._loggedIn_1sipy_1{flex-shrink:0;gap:var(--spacing-spacing-2xs);cursor:pointer;transition:all .3s linear;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:var(--spacing-spacing-3xs)}._customer_1sipy_12>a,._customer_1sipy_12>a:hover{text-decoration:none}._loggedIn_1sipy_1:hover{background-color:#f3f3f3;border-radius:var(--border-radius-md)}._placeholder_1sipy_21{width:32px;width:120px}@media (max-width:1280px){._placeholder_1sipy_21{width:32px;height:32px;background-color:#f3f3f3;border-radius:100%}}
1
+ ._loggedIn_1g4to_1{flex-shrink:0;gap:var(--spacing-spacing-2xs);cursor:pointer;transition:all .3s linear;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:var(--spacing-spacing-3xs)}._customer_1g4to_12>a,._customer_1g4to_12>a:hover{text-decoration:none}._loggedIn_1g4to_1:hover{background-color:#f3f3f3;border-radius:var(--border-radius-md)}._placeholder_1g4to_21{width:32px;width:120px}@media (max-width:1280px){._placeholder_1g4to_21{width:32px;height:32px;background-color:#f3f3f3;border-radius:100%}}._mobileAuth_1g4to_32{background-color:transparent;padding:0;margin:0;width:fit-content;border:none}
@@ -1 +1 @@
1
- ._hamburgerContainer_b84wp_1{position:relative}._menuIcon_b84wp_4 svg{cursor:pointer;outline:none}._menuContent_b84wp_8{position:absolute;right:0;display:grid;grid-template-columns:320px;width:320px;border:var(--border-border-primary);background-color:var(--surface-surface-primary);box-shadow:8px 8px 12px #00000026;z-index:99999}._closeContainer_b84wp_22{background-color:#0e0e0ea8;display:flex;flex-direction:row;align-items:flex-start;justify-content:center;padding:var(--spacing-0-5);box-sizing:border-box}._closeContainer_b84wp_22>button{background-color:transparent;border:none;margin:0;padding:0;cursor:pointer}._closeContainer_b84wp_22>button path{fill:#fff}._overlay_b84wp_41{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0006;z-index:999}
1
+ ._hamburgerContainer_x3qn2_1{position:relative}._menuIcon_x3qn2_4 svg{cursor:pointer;outline:none}._panel_x3qn2_9{display:flex;flex-direction:column;gap:var(--spacing-spacing-default);padding:var(--spacing-spacing-2xs)}._panel_x3qn2_9>section{display:flex;flex-direction:column;gap:var(--spacing-spacing-2xs)}._menuHeader_x3qn2_22{display:inline-flex;justify-content:flex-end;padding-right:var(--spacing-spacing-2xs);padding-top:var(--spacing-spacing-2xs);margin-bottom:-1rem}._menuHeader_x3qn2_22>button{background-color:transparent;padding:0;margin:0;border:none;outline:none}
@@ -1 +1 @@
1
- ._main_19pdr_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._column_19pdr_8{box-sizing:border-box;padding:0 var(--spacing-1)}._topNav_19pdr_13{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_19pdr_13{gap:var(--spacing-1);padding-bottom:0}}._logo_19pdr_21{cursor:pointer}._operations_19pdr_24{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_19pdr_24{gap:var(--spacing-1)}}._search_19pdr_31{flex:1}._siteLink_19pdr_34{color:var(--color-brand-primary-primary-black);cursor:default;border:none;background-color:transparent;padding:0;margin:0;font-family:var(--font-family-display);font-size:var(--font-size-md)}._siteLink_19pdr_34:hover{text-decoration:underline}._accountArea_19pdr_48{width:145px}@media (max-width: 1281px){._accountArea_19pdr_48{width:min-content}}._cart_19pdr_54{border:none;padding:0;margin:0;background-color:transparent}._category_19pdr_60{list-style:none}._category_19pdr_60 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_19pdr_60 a{justify-content:space-between;width:100%}}._category_19pdr_60 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_19pdr_60 a path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_19pdr_82{list-style:none;padding:0;margin:0;height:min-content;border:1px solid var(--border-border-secondary-btn, #dfdfdf)}._menuList_19pdr_82>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_19pdr_82>li:last-of-type{border-bottom:none}
1
+ ._main_t25b8_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._column_t25b8_8{box-sizing:border-box;padding:0 var(--spacing-1)}._topNav_t25b8_13{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_t25b8_13{gap:var(--spacing-1);padding-bottom:0}}._logo_t25b8_21{cursor:pointer}._operations_t25b8_24{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_t25b8_24{gap:var(--spacing-1)}}._search_t25b8_31{flex:1}._siteLink_t25b8_34{color:var(--color-brand-primary-primary-black);cursor:default;border:none;background-color:transparent;padding:0;margin:0;font-family:var(--font-family-display);font-size:var(--font-size-md);cursor:pointer}._siteLink_t25b8_34:hover{text-decoration:underline;color:var(--text-text-links)}@media (max-width:1280px){._siteLink_t25b8_34{font-family:var(--font-family-body);font-size:var(--font-size-sm)}}._accountArea_t25b8_54{width:145px}@media (max-width: 1281px){._accountArea_t25b8_54{width:min-content}}._cart_t25b8_60{border:none;padding:0;margin:0;background-color:transparent}._category_t25b8_66{list-style:none;height:42px;display:flex;flex-direction:row;align-items:center}._category_t25b8_66 a{color:var(--text-text-primary);text-decoration:none;display:flex;flex-direction:row;align-items:center}@media (max-width: 1281px){._category_t25b8_66 a{justify-content:space-between;width:100%}}._category_t25b8_66 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_t25b8_66 a path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_t25b8_91{list-style:none;padding:0;margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}._menuList_t25b8_91>li{width:100%;padding:var(--spacing-spacing-2xs);border:1px solid var(--border-border-primary, #dfdfdf);box-sizing:border-box;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-4xs);border-radius:var(--border-radius-md);color:var(--text-text-links)}
@@ -1,116 +1,117 @@
1
- import { jsx as n, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
2
  import { getHideAtStyles as m } from "../../atoms/HideAt.js";
3
3
  import { Icon as f } from "../../atoms/Icon/Icon.js";
4
4
  import { Text as c } from "../../atoms/Text/Text.js";
5
5
  import { Avatar as u } from "../Avatar/Avatar.js";
6
- import { Flex as d } from "../../atoms/Flex/Flex.js";
6
+ import { Flex as g } from "../../atoms/Flex/Flex.js";
7
7
  import { Button as p } from "../../atoms/Button/Button.js";
8
8
  import { Popover as A } from "../../atoms/Popover/Popover.js";
9
- import { c as g } from "../../clsx-OuTLNxxd.js";
10
- import '../../assets/Account.css';const x = "_loggedIn_1sipy_1", v = "_customer_1sipy_12", I = "_placeholder_1sipy_21", o = {
9
+ import { c as a } from "../../clsx-OuTLNxxd.js";
10
+ import '../../assets/Account.css';const x = "_loggedIn_1g4to_1", v = "_customer_1g4to_12", _ = "_placeholder_1g4to_21", I = "_mobileAuth_1g4to_32", n = {
11
11
  loggedIn: x,
12
12
  customer: v,
13
- placeholder: I
13
+ placeholder: _,
14
+ mobileAuth: I
14
15
  };
15
- function y(i) {
16
+ function N(i) {
16
17
  return i.account !== void 0;
17
18
  }
18
- function j(i) {
19
- return i.isAccountLoading ? /* @__PURE__ */ n("div", { className: o.placeholder }) : y(i) ? /* @__PURE__ */ n(_, { ...i }) : /* @__PURE__ */ n(N, { ...i });
19
+ function S(i) {
20
+ return i.isAccountLoading ? /* @__PURE__ */ t("div", { className: n.placeholder }) : N(i) ? /* @__PURE__ */ t(b, { ...i }) : /* @__PURE__ */ t(k, { ...i });
20
21
  }
21
- function _(i) {
22
+ function b(i) {
22
23
  const {
23
24
  account: e,
24
25
  className: r,
25
- hideAt: s,
26
- popoverContent: a,
26
+ hideAt: l,
27
+ popoverContent: d,
27
28
  isAccountLoading: h,
28
- ...l
29
+ ...s
29
30
  } = i;
30
- return a ? /* @__PURE__ */ n(
31
+ return d ? /* @__PURE__ */ t(
31
32
  A,
32
33
  {
33
34
  position: "bottom right",
34
- trigger: /* @__PURE__ */ t(
35
+ trigger: /* @__PURE__ */ o(
35
36
  "div",
36
37
  {
37
- className: g(o.loggedIn, m(s), r),
38
- ...l,
38
+ className: a(n.loggedIn, m(l), r),
39
+ ...s,
39
40
  children: [
40
- /* @__PURE__ */ t(
41
- d,
41
+ /* @__PURE__ */ o(
42
+ g,
42
43
  {
43
44
  flexDirection: "column",
44
45
  alignItems: "flex-end",
45
46
  hideAt: ["sm", "md"],
46
- className: o.customer,
47
+ className: n.customer,
47
48
  children: [
48
- /* @__PURE__ */ t(c, { size: "xxs", children: [
49
+ /* @__PURE__ */ o(c, { size: "xxs", children: [
49
50
  "Acct: ",
50
51
  e == null ? void 0 : e.number
51
52
  ] }),
52
- /* @__PURE__ */ t(c, { size: "sm", variant: "display", colorToken: "links", children: [
53
+ /* @__PURE__ */ o(c, { size: "sm", variant: "display", colorToken: "links", children: [
53
54
  "Hello ",
54
55
  e == null ? void 0 : e.name
55
56
  ] })
56
57
  ]
57
58
  }
58
59
  ),
59
- e.avatar ?? (e.initials ? /* @__PURE__ */ n(u, { initials: e.initials }) : null)
60
+ e.avatar ?? (e.initials ? /* @__PURE__ */ t(u, { initials: e.initials }) : null)
60
61
  ]
61
62
  }
62
63
  ),
63
- children: a
64
+ children: d
64
65
  }
65
- ) : /* @__PURE__ */ t(
66
+ ) : /* @__PURE__ */ o(
66
67
  "div",
67
68
  {
68
- className: g(o.loggedIn, m(s), r),
69
- ...l,
69
+ className: a(n.loggedIn, m(l), r),
70
+ ...s,
70
71
  children: [
71
- /* @__PURE__ */ t(
72
- d,
72
+ /* @__PURE__ */ o(
73
+ g,
73
74
  {
74
75
  flexDirection: "column",
75
76
  alignItems: "flex-end",
76
77
  hideAt: ["sm", "md"],
77
- className: o.customer,
78
+ className: n.customer,
78
79
  children: [
79
- /* @__PURE__ */ n(c, { size: "xxs", children: e == null ? void 0 : e.number }),
80
- /* @__PURE__ */ t(c, { size: "sm", variant: "display", colorToken: "links", children: [
80
+ /* @__PURE__ */ t(c, { size: "xxs", children: e == null ? void 0 : e.number }),
81
+ /* @__PURE__ */ o(c, { size: "sm", variant: "display", colorToken: "links", children: [
81
82
  "Hello ",
82
83
  e == null ? void 0 : e.name
83
84
  ] })
84
85
  ]
85
86
  }
86
87
  ),
87
- e.avatar ?? (e.initials ? /* @__PURE__ */ n(u, { initials: e.initials }) : null)
88
+ e.avatar ?? (e.initials ? /* @__PURE__ */ t(u, { initials: e.initials }) : null)
88
89
  ]
89
90
  }
90
91
  );
91
92
  }
92
- function N(i) {
93
+ function k(i) {
93
94
  const {
94
95
  onLoginClick: e,
95
96
  className: r,
96
- hideAt: s,
97
- popoverContent: a,
97
+ hideAt: l,
98
+ popoverContent: d,
98
99
  isAccountLoading: h,
99
- ...l
100
+ ...s
100
101
  } = i;
101
- return /* @__PURE__ */ t(
102
- d,
102
+ return /* @__PURE__ */ o(
103
+ g,
103
104
  {
104
105
  flexDirection: "row",
105
106
  alignItems: "center",
106
- ...l,
107
- className: g(
108
- o.unauthenticated,
109
- m(s),
107
+ ...s,
108
+ className: a(
109
+ n.unauthenticated,
110
+ m(l),
110
111
  r
111
112
  ),
112
113
  children: [
113
- /* @__PURE__ */ n(
114
+ /* @__PURE__ */ t(
114
115
  p,
115
116
  {
116
117
  onClick: e,
@@ -120,11 +121,11 @@ function N(i) {
120
121
  children: "Sign In / Register"
121
122
  }
122
123
  ),
123
- /* @__PURE__ */ n(f, { iconKey: "fa-kit fa-user-anon", size: "lg", hideAt: "lg" })
124
+ /* @__PURE__ */ t("button", { onClick: e, className: a(n.mobileAuth, m("lg")), children: /* @__PURE__ */ t(f, { iconKey: "fa-kit fa-user-anon", size: "lg" }) })
124
125
  ]
125
126
  }
126
127
  );
127
128
  }
128
129
  export {
129
- j as Account
130
+ S as Account
130
131
  };
@@ -1,56 +1,55 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { useState as c, useRef as l, useEffect as f } from "react";
3
- import { getHideAtStyles as d } from "../../atoms/HideAt.js";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { useState as u, useRef as d, useEffect as f } from "react";
3
+ import { getHideAtStyles as h } from "../../atoms/HideAt.js";
4
4
  import { Flex as p } from "../../atoms/Flex/Flex.js";
5
- import { Icon as b } from "../../atoms/Icon/Icon.js";
6
- import { c as _ } from "../../clsx-OuTLNxxd.js";
7
- import '../../assets/HamburgerMenu.css';const C = "_hamburgerContainer_b84wp_1", g = "_menuIcon_b84wp_4", h = "_menuContent_b84wp_8", v = "_overlay_b84wp_41", t = {
8
- hamburgerContainer: C,
9
- menuIcon: g,
10
- menuContent: h,
11
- overlay: v
5
+ import { Icon as m } from "../../atoms/Icon/Icon.js";
6
+ import { SlideInPanel as g } from "../../atoms/SlideInPanel/SlideInPanel.js";
7
+ import { c as x } from "../../clsx-OuTLNxxd.js";
8
+ import '../../assets/HamburgerMenu.css';const _ = "_hamburgerContainer_x3qn2_1", b = "_menuIcon_x3qn2_4", C = "_panel_x3qn2_9", v = "_menuHeader_x3qn2_22", o = {
9
+ hamburgerContainer: _,
10
+ menuIcon: b,
11
+ panel: C,
12
+ menuHeader: v
12
13
  };
13
- function E({ hideAt: m, children: s }) {
14
- const [e, o] = c(!1), a = l(null);
14
+ function E({ hideAt: s, children: c }) {
15
+ const [n, r] = u(!1), a = d(null);
15
16
  return f(() => {
16
- if (!e) return;
17
- function n(u) {
18
- a.current && !a.current.contains(u.target) && o(!1);
17
+ if (!n) return;
18
+ function t(l) {
19
+ a.current && !a.current.contains(l.target) && r(!1);
19
20
  }
20
- return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
21
- }, [e]), /* @__PURE__ */ i(
21
+ return document.addEventListener("mousedown", t), () => document.removeEventListener("mousedown", t);
22
+ }, [n]), /* @__PURE__ */ i(
22
23
  "div",
23
24
  {
24
25
  ref: a,
25
- className: _(t.hamburgerContainer, d(m)),
26
+ className: x(o.hamburgerContainer, h(s)),
26
27
  children: [
27
- e && /* @__PURE__ */ r(
28
- "div",
29
- {
30
- className: t.overlay,
31
- onClick: () => o(!1),
32
- "aria-hidden": "true"
33
- }
34
- ),
35
- /* @__PURE__ */ r(
28
+ /* @__PURE__ */ e(
36
29
  p,
37
30
  {
38
31
  flexDirection: "row",
39
- className: t.menuIcon,
40
- onClick: () => o((n) => !n),
41
- "aria-expanded": e,
32
+ className: o.menuIcon,
33
+ onClick: () => r((t) => !t),
34
+ "aria-expanded": n,
42
35
  "aria-controls": "hamburger-menu-content",
43
36
  role: "button",
44
- children: /* @__PURE__ */ r(b, { iconKey: "fa-kit fa-bars", title: "Menu", size: "lg" })
37
+ children: /* @__PURE__ */ e(m, { iconKey: "fa-kit fa-bars", title: "Menu", size: "lg" })
45
38
  }
46
39
  ),
47
- e && /* @__PURE__ */ r(
48
- "div",
40
+ /* @__PURE__ */ e(
41
+ g,
49
42
  {
50
- id: "hamburger-menu-content",
51
- className: t.menuContent,
52
- role: "menu",
53
- children: s
43
+ side: "right",
44
+ open: n,
45
+ onClose: () => r(!1),
46
+ height: "100%",
47
+ ariaLabel: "main-menu",
48
+ closeOnOverlayClick: !0,
49
+ children: /* @__PURE__ */ i("div", { className: o.panel, children: [
50
+ /* @__PURE__ */ e("div", { className: o.menuHeader, children: /* @__PURE__ */ e("button", { onClick: () => r(!1), children: /* @__PURE__ */ e(m, { iconKey: "fa-light fa-xmark", size: "md" }) }) }),
51
+ c
52
+ ] })
54
53
  }
55
54
  )
56
55
  ]
@@ -1,126 +1,149 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import z from "react";
3
- import { Text as N } from "../../atoms/Text/Text.js";
4
- import { Link as l } from "../../atoms/Link/Link.js";
5
- import { Icon as I } from "../../atoms/Icon/Icon.js";
6
- import { Flex as t } from "../../atoms/Flex/Flex.js";
7
- import { Grid as S, Column as U } from "../../atoms/Grid/Grid.js";
8
- import { Logo as F } from "../../molecules/Logo/Logo.js";
9
- import { SearchBox as _ } from "../../molecules/SearchBox/SearchBox.js";
10
- import { HamburgerMenu as H } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
11
- import { ShoppingCart as B } from "../../molecules/Cart/Cart.js";
12
- import { Account as G } from "../../molecules/Account/Account.js";
13
- import { CategoryNav as K } from "../../molecules/CategoryNav/CategoryNav.js";
14
- import { c as s } from "../../clsx-OuTLNxxd.js";
15
- import { getHideAtStyles as u } from "../../atoms/HideAt.js";
16
- import '../../assets/MainNav.css';const P = "_main_19pdr_1", Q = "_column_19pdr_8", T = "_topNav_19pdr_13", W = "_logo_19pdr_21", q = "_operations_19pdr_24", E = "_search_19pdr_31", J = "_siteLink_19pdr_34", O = "_accountArea_19pdr_48", R = "_category_19pdr_60", V = "_menuList_19pdr_82", r = {
17
- main: P,
18
- column: Q,
19
- topNav: T,
20
- logo: W,
21
- operations: q,
1
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
+ import D from "react";
3
+ import { Text as l } from "../../atoms/Text/Text.js";
4
+ import { Link as h } from "../../atoms/Link/Link.js";
5
+ import { Icon as n } from "../../atoms/Icon/Icon.js";
6
+ import { Flex as s } from "../../atoms/Flex/Flex.js";
7
+ import { Grid as M, Column as S } from "../../atoms/Grid/Grid.js";
8
+ import { Logo as U } from "../../molecules/Logo/Logo.js";
9
+ import { SearchBox as N } from "../../molecules/SearchBox/SearchBox.js";
10
+ import { HamburgerMenu as F } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
11
+ import { ShoppingCart as H } from "../../molecules/Cart/Cart.js";
12
+ import { Account as q } from "../../molecules/Account/Account.js";
13
+ import { CategoryNav as B } from "../../molecules/CategoryNav/CategoryNav.js";
14
+ import { getHideAtStyles as g } from "../../atoms/HideAt.js";
15
+ import { c as m } from "../../clsx-OuTLNxxd.js";
16
+ import '../../assets/MainNav.css';const G = "_main_t25b8_1", P = "_column_t25b8_8", Q = "_topNav_t25b8_13", T = "_logo_t25b8_21", W = "_operations_t25b8_24", E = "_search_t25b8_31", J = "_siteLink_t25b8_34", O = "_accountArea_t25b8_54", R = "_category_t25b8_66", V = "_menuList_t25b8_91", i = {
17
+ main: G,
18
+ column: P,
19
+ topNav: Q,
20
+ logo: T,
21
+ operations: W,
22
22
  search: E,
23
23
  siteLink: J,
24
24
  accountArea: O,
25
25
  category: R,
26
26
  menuList: V
27
- }, de = z.forwardRef(function({
28
- account: c,
29
- categories: n,
30
- homeRoute: g,
27
+ }, he = D.forwardRef(function({
28
+ account: a,
29
+ categories: o,
30
+ homeRoute: b,
31
31
  faqRoute: v,
32
- customPartsRoute: d,
33
- aboutUsRoute: A,
34
- contactRoute: h,
32
+ customPartsRoute: f,
33
+ aboutUsRoute: y,
34
+ contactRoute: u,
35
35
  cart: L,
36
- open: x,
36
+ open: A,
37
37
  // consume external panel control props from CartPropsBase
38
- className: C,
39
- onLoginClick: k,
38
+ className: x,
39
+ onLoginClick: C,
40
40
  onSearch: p,
41
- onClickModelSerial: f,
42
- onCartClick: y,
43
- accountPopoverContent: b,
44
- isAccountLoading: w,
45
- isCategoriesLoading: j,
46
- ...D
47
- }, M) {
48
- return /* @__PURE__ */ e(S, { ...D, gridWrapperClassName: s(r.main, C), children: /* @__PURE__ */ o(U, { span: 12, className: r.column, children: [
49
- /* @__PURE__ */ o(
50
- t,
41
+ onClickModelSerial: _,
42
+ onCartClick: k,
43
+ accountPopoverContent: w,
44
+ isAccountLoading: z,
45
+ isCategoriesLoading: I,
46
+ ...K
47
+ }, j) {
48
+ return /* @__PURE__ */ e(M, { ...K, gridWrapperClassName: m(i.main, x), children: /* @__PURE__ */ r(S, { span: 12, className: i.column, children: [
49
+ /* @__PURE__ */ r(
50
+ s,
51
51
  {
52
52
  flexDirection: "row",
53
53
  alignItems: "center",
54
54
  justifyContent: "space-between",
55
- className: r.topNav,
55
+ className: i.topNav,
56
56
  children: [
57
- /* @__PURE__ */ e("div", { className: r.logo, children: /* @__PURE__ */ e(l, { href: g, children: /* @__PURE__ */ e(F, {}) }) }),
58
- /* @__PURE__ */ o(
59
- t,
57
+ /* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(h, { href: b, children: /* @__PURE__ */ e(U, {}) }) }),
58
+ /* @__PURE__ */ r(
59
+ s,
60
60
  {
61
61
  flexDirection: "row",
62
62
  alignItems: "center",
63
63
  justifyContent: "flex-end",
64
- className: r.operations,
64
+ className: i.operations,
65
65
  children: [
66
- /* @__PURE__ */ e(t, { flexDirection: "row", hideAt: ["sm"], className: r.search, children: /* @__PURE__ */ e(_, { onSearch: p, inputName: "cpc-search" }) }),
67
- /* @__PURE__ */ e("button", { onClick: f, className: s(r.siteLink, u(["sm", "md"])), children: "Model/Serial" }),
68
- /* @__PURE__ */ e(i, { href: d, hideAt: ["sm", "md"], children: "Custom Parts" }),
69
- /* @__PURE__ */ e(i, { href: h, hideAt: ["sm", "md"], children: "Contact Us" }),
70
- /* @__PURE__ */ e("div", { className: r.accountArea, children: /* @__PURE__ */ e(
71
- G,
66
+ /* @__PURE__ */ e(s, { flexDirection: "row", hideAt: ["sm"], className: i.search, children: /* @__PURE__ */ e(N, { onSearch: p, inputName: "cpc-search" }) }),
67
+ /* @__PURE__ */ e("button", { onClick: _, className: m(i.siteLink, g(["sm", "md"])), children: "Model/Serial" }),
68
+ /* @__PURE__ */ e(t, { href: f, hideAt: ["sm", "md"], children: "Custom Parts" }),
69
+ /* @__PURE__ */ e(t, { href: u, hideAt: ["sm", "md"], children: "Contact Us" }),
70
+ /* @__PURE__ */ e("div", { className: i.accountArea, children: /* @__PURE__ */ e(
71
+ q,
72
72
  {
73
- account: c,
74
- onLoginClick: k,
75
- className: r.avatar,
76
- popoverContent: b,
77
- isAccountLoading: w
73
+ account: a,
74
+ onLoginClick: C,
75
+ className: i.avatar,
76
+ popoverContent: w,
77
+ isAccountLoading: z
78
78
  }
79
79
  ) }),
80
80
  /* @__PURE__ */ e(
81
- B,
81
+ H,
82
82
  {
83
- ref: M,
83
+ ref: j,
84
84
  cart: L,
85
- open: x,
86
- onCartClick: y
85
+ open: A,
86
+ onCartClick: k
87
87
  }
88
88
  ),
89
- /* @__PURE__ */ e(H, { hideAt: ["lg"], children: /* @__PURE__ */ o("ul", { className: r.menuList, children: [
90
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", { onClick: f, className: s(r.siteLink, u(["lg"])), children: "Model/Serial" }) }),
91
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: d, children: "Custom Parts" }) }),
92
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: h, children: "Contact Us" }) }),
93
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: v, children: "FAQ" }) }),
94
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(i, { href: A, children: "About Us" }) }),
95
- n && n.map((a) => /* @__PURE__ */ e("li", { className: r.category, children: /* @__PURE__ */ o(l, { href: a.route, children: [
96
- /* @__PURE__ */ e(N, { size: "sm", weight: "semibold", children: a.label }),
97
- /* @__PURE__ */ e(
98
- I,
99
- {
100
- iconKey: "fa-solid fa-chevron-right",
101
- title: "Navigate",
102
- size: "sm"
103
- }
104
- )
105
- ] }) }, a.id))
106
- ] }) })
89
+ /* @__PURE__ */ r(F, { hideAt: ["lg"], children: [
90
+ /* @__PURE__ */ r("section", { children: [
91
+ /* @__PURE__ */ e(l, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
92
+ /* @__PURE__ */ r("ul", { className: i.menuList, children: [
93
+ /* @__PURE__ */ r("li", { className: i.menuItem, children: [
94
+ /* @__PURE__ */ e(n, { iconKey: "fa-regular fa-book", size: "sm" }),
95
+ /* @__PURE__ */ e("button", { onClick: _, className: m(i.siteLink, g(["lg"])), children: "Model/Serial" })
96
+ ] }),
97
+ /* @__PURE__ */ r("li", { className: i.menuItem, children: [
98
+ /* @__PURE__ */ e(n, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm" }),
99
+ /* @__PURE__ */ e(t, { href: f, children: "Custom Parts" })
100
+ ] }),
101
+ /* @__PURE__ */ r("li", { className: i.menuItem, children: [
102
+ /* @__PURE__ */ e(n, { iconKey: "fa-regular fa-envelope", size: "sm" }),
103
+ /* @__PURE__ */ e(t, { href: u, children: "Contact Us" })
104
+ ] }),
105
+ /* @__PURE__ */ r("li", { className: i.menuItem, children: [
106
+ /* @__PURE__ */ e(n, { iconKey: "fa-solid fa-question", size: "sm" }),
107
+ /* @__PURE__ */ e(t, { href: v, children: "FAQ" })
108
+ ] }),
109
+ /* @__PURE__ */ r("li", { className: i.menuItem, children: [
110
+ /* @__PURE__ */ e(n, { iconKey: "fa-regular fa-people-group", size: "sm" }),
111
+ /* @__PURE__ */ e(t, { href: y, children: "About Us" })
112
+ ] })
113
+ ] })
114
+ ] }),
115
+ /* @__PURE__ */ r("section", { children: [
116
+ /* @__PURE__ */ e(l, { size: "md", weight: "semibold", children: "Shop by category" }),
117
+ /* @__PURE__ */ e("ul", { className: i.menuList, children: o && o.map((c) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ r(h, { href: c.route, children: [
118
+ /* @__PURE__ */ e(l, { size: "sm", children: c.label }),
119
+ /* @__PURE__ */ e(
120
+ n,
121
+ {
122
+ iconKey: "fa-solid fa-chevron-right",
123
+ title: "Navigate",
124
+ size: "sm"
125
+ }
126
+ )
127
+ ] }) }, c.id)) })
128
+ ] })
129
+ ] })
107
130
  ]
108
131
  }
109
132
  )
110
133
  ]
111
134
  }
112
135
  ),
113
- /* @__PURE__ */ e(t, { flexDirection: "row", hideAt: ["md", "lg"], children: /* @__PURE__ */ e(_, { onSearch: p, inputName: "cpc-search", className: r.search }) }),
114
- /* @__PURE__ */ e(K, { categories: n, isCategoriesLoading: j })
136
+ /* @__PURE__ */ e(s, { flexDirection: "row", hideAt: ["md", "lg"], children: /* @__PURE__ */ e(N, { onSearch: p, inputName: "cpc-search", className: i.search }) }),
137
+ /* @__PURE__ */ e(B, { categories: o, isCategoriesLoading: I })
115
138
  ] }) });
116
139
  });
117
- function i({
118
- href: m,
119
- children: c,
120
- ...n
140
+ function t({
141
+ href: d,
142
+ children: a,
143
+ ...o
121
144
  }) {
122
- return /* @__PURE__ */ e(l, { href: m, className: r.siteLink, ...n, children: /* @__PURE__ */ e(N, { size: "md", variant: "display", children: c }) });
145
+ return /* @__PURE__ */ e(h, { href: d, className: i.siteLink, ...o, children: a });
123
146
  }
124
147
  export {
125
- de as MainNav
148
+ he as MainNav
126
149
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.172",
4
+ "version": "0.0.173",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",