@caseparts-org/caseblocks 0.0.193 → 0.0.195

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,19 +1,19 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import S from "react";
3
- import { Text as l } from "../../atoms/Text/Text.js";
4
- import { Link as d } from "../../atoms/Link/Link.js";
3
+ import { Text as d } from "../../atoms/Text/Text.js";
4
+ import { Link as u } from "../../atoms/Link/Link.js";
5
5
  import { Icon as s } from "../../atoms/Icon/Icon.js";
6
6
  import { Flex as a } from "../../atoms/Flex/Flex.js";
7
7
  import { Grid as U, Column as C } from "../../atoms/Grid/Grid.js";
8
8
  import { Logo as F } from "../../molecules/Logo/Logo.js";
9
- import { SearchBox as b } from "../../molecules/SearchBox/SearchBox.js";
9
+ import { SearchBox as w } from "../../molecules/SearchBox/SearchBox.js";
10
10
  import { HamburgerMenu as H } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
11
11
  import { ShoppingCart as q } from "../../molecules/Cart/Cart.js";
12
12
  import { Account as B } from "../../molecules/Account/Account.js";
13
13
  import { CategoryNav as G } from "../../molecules/CategoryNav/CategoryNav.js";
14
14
  import { getHideAtStyles as g } from "../../atoms/HideAt.js";
15
- import { c as h } from "../../clsx-OuTLNxxd.js";
16
- import '../../assets/MainNav.css';const P = "_main_t25b8_1", Q = "_column_t25b8_8", T = "_topNav_t25b8_13", W = "_logo_t25b8_21", E = "_operations_t25b8_24", J = "_search_t25b8_31", O = "_siteLink_t25b8_34", R = "_accountArea_t25b8_54", V = "_category_t25b8_66", X = "_menuList_t25b8_91", i = {
15
+ import { c as o } from "../../clsx-OuTLNxxd.js";
16
+ import '../../assets/MainNav.css';const P = "_main_jwl39_1", Q = "_column_jwl39_8", T = "_topNav_jwl39_13", W = "_logo_jwl39_21", E = "_operations_jwl39_24", J = "_search_jwl39_31", O = "_siteLink_jwl39_34", R = "_accountArea_jwl39_54", V = "_category_jwl39_66", X = "_menuList_jwl39_94", Y = "_menuItemAction_jwl39_112", n = {
17
17
  main: P,
18
18
  column: Q,
19
19
  topNav: T,
@@ -23,100 +23,101 @@ import '../../assets/MainNav.css';const P = "_main_t25b8_1", Q = "_column_t25b8_
23
23
  siteLink: O,
24
24
  accountArea: R,
25
25
  category: V,
26
- menuList: X
27
- }, de = S.forwardRef(function({
28
- account: m,
26
+ menuList: X,
27
+ menuItemAction: Y
28
+ }, ue = S.forwardRef(function({
29
+ account: l,
29
30
  categories: t,
30
- homeRoute: v,
31
- faqRoute: L,
32
- customPartsRoute: u,
33
- aboutUsRoute: A,
34
- contactRoute: p,
35
- cart: x,
36
- open: w,
31
+ homeRoute: h,
32
+ faqRoute: I,
33
+ customPartsRoute: p,
34
+ aboutUsRoute: v,
35
+ contactRoute: N,
36
+ cart: j,
37
+ open: L,
37
38
  // consume external panel control props from CartPropsBase
38
- className: y,
39
- onLoginClick: z,
39
+ className: x,
40
+ onLoginClick: b,
40
41
  onSearch: _,
41
- onCategoryClick: o,
42
- onClickModelSerial: N,
43
- onCartClick: I,
44
- accountPopoverContent: k,
45
- isAccountLoading: K,
46
- isCategoriesLoading: j,
42
+ onCategoryClick: r,
43
+ onClickModelSerial: A,
44
+ onCartClick: y,
45
+ accountPopoverContent: z,
46
+ isAccountLoading: k,
47
+ isCategoriesLoading: K,
47
48
  ...D
48
49
  }, M) {
49
- return /* @__PURE__ */ e(U, { ...D, gridWrapperClassName: h(i.main, y), children: /* @__PURE__ */ r(C, { span: 12, className: i.column, children: [
50
- /* @__PURE__ */ r(
50
+ return /* @__PURE__ */ e(U, { ...D, gridWrapperClassName: o(n.main, x), children: /* @__PURE__ */ i(C, { span: 12, className: n.column, children: [
51
+ /* @__PURE__ */ i(
51
52
  a,
52
53
  {
53
54
  flexDirection: "row",
54
55
  alignItems: "center",
55
56
  justifyContent: "space-between",
56
- className: i.topNav,
57
+ className: n.topNav,
57
58
  children: [
58
- /* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(d, { href: v, children: /* @__PURE__ */ e(F, {}) }) }),
59
- /* @__PURE__ */ r(
59
+ /* @__PURE__ */ e("div", { className: n.logo, children: /* @__PURE__ */ e(u, { href: h, children: /* @__PURE__ */ e(F, {}) }) }),
60
+ /* @__PURE__ */ i(
60
61
  a,
61
62
  {
62
63
  flexDirection: "row",
63
64
  alignItems: "center",
64
65
  justifyContent: "flex-end",
65
- className: i.operations,
66
+ className: n.operations,
66
67
  children: [
67
- /* @__PURE__ */ e(a, { flexDirection: "row", hideAt: ["sm"], className: i.search, children: /* @__PURE__ */ e(b, { onSearch: _, inputName: "cpc-search" }) }),
68
- /* @__PURE__ */ e("button", { onClick: N, className: h(i.siteLink, g(["sm", "md"])), children: "Model/Serial" }),
69
- /* @__PURE__ */ e(n, { href: u, hideAt: ["sm", "md"], children: "Custom Parts" }),
70
- /* @__PURE__ */ e(n, { href: p, hideAt: ["sm", "md"], children: "Contact Us" }),
71
- /* @__PURE__ */ e("div", { className: i.accountArea, children: /* @__PURE__ */ e(
68
+ /* @__PURE__ */ e(a, { flexDirection: "row", hideAt: ["sm"], className: n.search, children: /* @__PURE__ */ e(w, { onSearch: _, inputName: "cpc-search" }) }),
69
+ /* @__PURE__ */ e("button", { onClick: A, className: o(n.siteLink, n.menuItemAction, g(["sm", "md"])), children: "Model/Serial" }),
70
+ /* @__PURE__ */ e(c, { href: p, hideAt: ["sm", "md"], className: n.menuItemAction, children: "Custom Parts" }),
71
+ /* @__PURE__ */ e(c, { href: N, hideAt: ["sm", "md"], className: n.menuItemAction, children: "Contact Us" }),
72
+ /* @__PURE__ */ e("div", { className: n.accountArea, children: /* @__PURE__ */ e(
72
73
  B,
73
74
  {
74
- account: m,
75
- onLoginClick: z,
76
- className: i.avatar,
77
- popoverContent: k,
78
- isAccountLoading: K
75
+ account: l,
76
+ onLoginClick: b,
77
+ className: n.avatar,
78
+ popoverContent: z,
79
+ isAccountLoading: k
79
80
  }
80
81
  ) }),
81
82
  /* @__PURE__ */ e(
82
83
  q,
83
84
  {
84
85
  ref: M,
85
- cart: x,
86
- open: w,
87
- onCartClick: I
86
+ cart: j,
87
+ open: L,
88
+ onCartClick: y
88
89
  }
89
90
  ),
90
- /* @__PURE__ */ r(H, { hideAt: ["lg"], children: [
91
- /* @__PURE__ */ r("section", { children: [
92
- /* @__PURE__ */ e(l, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
93
- /* @__PURE__ */ r("ul", { className: i.menuList, children: [
94
- /* @__PURE__ */ r("li", { className: i.menuItem, children: [
91
+ /* @__PURE__ */ i(H, { hideAt: ["lg"], children: [
92
+ /* @__PURE__ */ i("section", { children: [
93
+ /* @__PURE__ */ e(d, { size: "md", weight: "semibold", children: "Useful shortcuts" }),
94
+ /* @__PURE__ */ i("ul", { className: n.menuList, children: [
95
+ /* @__PURE__ */ e("li", { className: n.menuItem, children: /* @__PURE__ */ i("button", { onClick: A, className: o(n.siteLink, n.menuItemAction, g(["lg"])), children: [
95
96
  /* @__PURE__ */ e(s, { iconKey: "fa-regular fa-book", size: "sm" }),
96
- /* @__PURE__ */ e("button", { onClick: N, className: h(i.siteLink, g(["lg"])), children: "Model/Serial" })
97
- ] }),
98
- /* @__PURE__ */ r("li", { className: i.menuItem, children: [
97
+ /* @__PURE__ */ e("span", { children: "Model/Serial" })
98
+ ] }) }),
99
+ /* @__PURE__ */ e("li", { className: n.menuItem, children: /* @__PURE__ */ i(c, { href: p, className: n.menuItemAction, children: [
99
100
  /* @__PURE__ */ e(s, { iconKey: "fa-regular fa-screwdriver-wrench", size: "sm" }),
100
- /* @__PURE__ */ e(n, { href: u, children: "Custom Parts" })
101
- ] }),
102
- /* @__PURE__ */ r("li", { className: i.menuItem, children: [
101
+ /* @__PURE__ */ e("span", { children: "Custom Parts" })
102
+ ] }) }),
103
+ /* @__PURE__ */ e("li", { className: n.menuItem, children: /* @__PURE__ */ i(c, { href: N, className: n.menuItemAction, children: [
103
104
  /* @__PURE__ */ e(s, { iconKey: "fa-regular fa-envelope", size: "sm" }),
104
- /* @__PURE__ */ e(n, { href: p, children: "Contact Us" })
105
- ] }),
106
- /* @__PURE__ */ r("li", { className: i.menuItem, children: [
105
+ /* @__PURE__ */ e("span", { children: "Contact Us" })
106
+ ] }) }),
107
+ /* @__PURE__ */ e("li", { className: n.menuItem, children: /* @__PURE__ */ i(c, { href: I, className: n.menuItemAction, children: [
107
108
  /* @__PURE__ */ e(s, { iconKey: "fa-solid fa-question", size: "sm" }),
108
- /* @__PURE__ */ e(n, { href: L, children: "FAQ" })
109
- ] }),
110
- /* @__PURE__ */ r("li", { className: i.menuItem, children: [
109
+ /* @__PURE__ */ e("span", { children: "FAQ" })
110
+ ] }) }),
111
+ /* @__PURE__ */ e("li", { className: n.menuItem, children: /* @__PURE__ */ i(c, { href: v, className: n.menuItemAction, children: [
111
112
  /* @__PURE__ */ e(s, { iconKey: "fa-regular fa-people-group", size: "sm" }),
112
- /* @__PURE__ */ e(n, { href: A, children: "About Us" })
113
- ] })
113
+ /* @__PURE__ */ e("span", { children: "About Us" })
114
+ ] }) })
114
115
  ] })
115
116
  ] }),
116
- /* @__PURE__ */ r("section", { children: [
117
- /* @__PURE__ */ e(l, { size: "md", weight: "semibold", children: "Shop by category" }),
118
- /* @__PURE__ */ e("ul", { className: i.menuList, children: t && t.map((c) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ r(d, { href: c.route, onClick: () => o == null ? void 0 : o(c), children: [
119
- /* @__PURE__ */ e(l, { size: "sm", children: c.label }),
117
+ /* @__PURE__ */ i("section", { children: [
118
+ /* @__PURE__ */ e(d, { size: "md", weight: "semibold", children: "Shop by category" }),
119
+ /* @__PURE__ */ e("ul", { className: n.menuList, children: t && t.map((m) => /* @__PURE__ */ e("li", { className: n.category, children: /* @__PURE__ */ i(u, { href: m.route, onClick: () => r == null ? void 0 : r(m), children: [
120
+ /* @__PURE__ */ e(d, { size: "sm", children: m.label }),
120
121
  /* @__PURE__ */ e(
121
122
  s,
122
123
  {
@@ -125,7 +126,7 @@ import '../../assets/MainNav.css';const P = "_main_t25b8_1", Q = "_column_t25b8_
125
126
  size: "sm"
126
127
  }
127
128
  )
128
- ] }) }, c.id)) })
129
+ ] }) }, m.id)) })
129
130
  ] })
130
131
  ] })
131
132
  ]
@@ -134,24 +135,25 @@ import '../../assets/MainNav.css';const P = "_main_t25b8_1", Q = "_column_t25b8_
134
135
  ]
135
136
  }
136
137
  ),
137
- /* @__PURE__ */ e(a, { flexDirection: "row", hideAt: ["md", "lg"], children: /* @__PURE__ */ e(b, { onSearch: _, inputName: "cpc-search", className: i.search }) }),
138
+ /* @__PURE__ */ e(a, { flexDirection: "row", hideAt: ["md", "lg"], children: /* @__PURE__ */ e(w, { onSearch: _, inputName: "cpc-search", className: n.search }) }),
138
139
  /* @__PURE__ */ e(
139
140
  G,
140
141
  {
141
142
  categories: t,
142
- isCategoriesLoading: j,
143
- onCategoryClick: o
143
+ isCategoriesLoading: K,
144
+ onCategoryClick: r
144
145
  }
145
146
  )
146
147
  ] }) });
147
148
  });
148
- function n({
149
+ function c({
149
150
  href: f,
150
- children: m,
151
- ...t
151
+ children: l,
152
+ className: t,
153
+ ...h
152
154
  }) {
153
- return /* @__PURE__ */ e(d, { href: f, className: i.siteLink, ...t, children: m });
155
+ return /* @__PURE__ */ e(u, { href: f, className: o(n.siteLink, t), ...h, children: l });
154
156
  }
155
157
  export {
156
- de as MainNav
158
+ ue as MainNav
157
159
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.193",
4
+ "version": "0.0.195",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",