@caseparts-org/caseblocks 0.0.234 → 0.0.235
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/organisms/MainNav/MainNav.stories.js +24 -24
- package/dist/organisms/SuggestionDropdown/SuggestionDropdown.d.ts +1 -0
- package/dist/organisms/SuggestionDropdown/SuggestionDropdown.js +1 -1
- package/dist/organisms/SuggestionDropdown/SuggestionDropdown.stories.js +3 -3
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as h, Fragment as k, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as g } from "react";
|
|
3
3
|
import { MainNav as b } from "./MainNav.js";
|
|
4
|
-
import { Text as
|
|
5
|
-
import { Link as
|
|
4
|
+
import { Text as y } from "../../atoms/Text/Text.js";
|
|
5
|
+
import { Link as p } from "../../atoms/Link/Link.js";
|
|
6
6
|
import { Button as S } from "../../atoms/Button/Button.js";
|
|
7
7
|
import { CartSlideInPanel as v } from "../../molecules/Cart/CartSlideInPanel.js";
|
|
8
|
-
const
|
|
8
|
+
const P = {
|
|
9
9
|
title: "Case Parts/Organisms/MainNav",
|
|
10
10
|
component: b,
|
|
11
11
|
parameters: {
|
|
@@ -113,11 +113,11 @@ const x = {
|
|
|
113
113
|
{ name: "gasket material", url: "/search/gasket-material" }
|
|
114
114
|
],
|
|
115
115
|
categories: [
|
|
116
|
-
{ name: "Magnetic Door Gaskets and Sweeper Gasket", url: "/category/47432" },
|
|
117
|
-
{ name: "01 Gaskets", url: "/category/46795" },
|
|
118
|
-
{ name: "Door Gaskets", url: "/category/47022" },
|
|
119
|
-
{ name: "Magnetic Gaskets", url: "/category/46971" },
|
|
120
|
-
{ name: "Magnetic Gaskets", url: "/category/47501" }
|
|
116
|
+
{ categoryKey: 47432, name: "Magnetic Door Gaskets and Sweeper Gasket", url: "/category/47432" },
|
|
117
|
+
{ categoryKey: 46795, name: "01 Gaskets", url: "/category/46795" },
|
|
118
|
+
{ categoryKey: 47022, name: "Door Gaskets", url: "/category/47022" },
|
|
119
|
+
{ categoryKey: 46971, name: "Magnetic Gaskets", url: "/category/46971" },
|
|
120
|
+
{ categoryKey: 47501, name: "Magnetic Gaskets", url: "/category/47501" }
|
|
121
121
|
],
|
|
122
122
|
items: [
|
|
123
123
|
{ itemKey: 13503, itemId: "GASKET-RING", description: "Gasket Sample Ring", image: a, url: "/part/GASKET-RING" },
|
|
@@ -152,15 +152,15 @@ function f(e) {
|
|
|
152
152
|
0
|
|
153
153
|
).toFixed(2)}`;
|
|
154
154
|
}
|
|
155
|
-
const u = /* @__PURE__ */
|
|
156
|
-
/* @__PURE__ */ t(
|
|
157
|
-
/* @__PURE__ */ t(
|
|
158
|
-
/* @__PURE__ */ t(
|
|
159
|
-
/* @__PURE__ */ t(
|
|
155
|
+
const u = /* @__PURE__ */ h("div", { style: { display: "flex", flexDirection: "column", gap: 8, minWidth: 220 }, children: [
|
|
156
|
+
/* @__PURE__ */ t(y, { size: "sm", weight: "semibold", children: "Account" }),
|
|
157
|
+
/* @__PURE__ */ t(y, { size: "xs", children: "Signed in as Ringo" }),
|
|
158
|
+
/* @__PURE__ */ t(p, { href: "/account", "data-popover-close": "true", children: "View Account" }),
|
|
159
|
+
/* @__PURE__ */ t(p, { href: "/orders", "data-popover-close": "true", children: "Order History" }),
|
|
160
160
|
/* @__PURE__ */ t(S, { size: "sm", variant: "secondary", "data-popover-close": "true", onClick: () => alert("Sign out"), children: "Sign Out" })
|
|
161
161
|
] }), m = (e) => {
|
|
162
162
|
const [i, o] = g(!1);
|
|
163
|
-
return /* @__PURE__ */
|
|
163
|
+
return /* @__PURE__ */ h(k, { children: [
|
|
164
164
|
/* @__PURE__ */ t(
|
|
165
165
|
b,
|
|
166
166
|
{
|
|
@@ -207,7 +207,7 @@ const u = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
|
-
},
|
|
210
|
+
}, x = {
|
|
211
211
|
args: {
|
|
212
212
|
account: { name: "Ringo", initials: "RS", number: "123456789012" },
|
|
213
213
|
cart: s,
|
|
@@ -232,7 +232,7 @@ const u = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
|
|
|
232
232
|
accountPopoverContent: u
|
|
233
233
|
},
|
|
234
234
|
render: m
|
|
235
|
-
},
|
|
235
|
+
}, A = {
|
|
236
236
|
args: {
|
|
237
237
|
account: { name: "Ringo", initials: "RS", number: "123456789012" },
|
|
238
238
|
cart: s,
|
|
@@ -256,7 +256,7 @@ const u = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
|
|
|
256
256
|
accountPopoverContent: u
|
|
257
257
|
},
|
|
258
258
|
render: m
|
|
259
|
-
},
|
|
259
|
+
}, F = {
|
|
260
260
|
args: {
|
|
261
261
|
account: { name: "Ringo", initials: "RS", number: "123456789012" },
|
|
262
262
|
cart: s,
|
|
@@ -280,7 +280,7 @@ const u = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
|
|
|
280
280
|
accountPopoverContent: u
|
|
281
281
|
},
|
|
282
282
|
render: G
|
|
283
|
-
},
|
|
283
|
+
}, w = {
|
|
284
284
|
args: {
|
|
285
285
|
cart: s,
|
|
286
286
|
homeRoute: "/",
|
|
@@ -330,10 +330,10 @@ const u = /* @__PURE__ */ y("div", { style: { display: "flex", flexDirection: "c
|
|
|
330
330
|
render: m
|
|
331
331
|
};
|
|
332
332
|
export {
|
|
333
|
-
|
|
333
|
+
x as Authenticated,
|
|
334
334
|
T as Loading,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
w as Unauthenticated,
|
|
336
|
+
A as WithCartItems,
|
|
337
|
+
F as WithSearchSuggestions,
|
|
338
|
+
P as default
|
|
339
339
|
};
|
|
@@ -69,7 +69,7 @@ function E({
|
|
|
69
69
|
i.length > 0 && /* @__PURE__ */ s("div", { className: n.categorySection, children: /* @__PURE__ */ t("div", { className: n.categories, children: [
|
|
70
70
|
/* @__PURE__ */ s(c, { size: "xxs", colorToken: "quaternary", children: "Categories" }),
|
|
71
71
|
i.map(
|
|
72
|
-
(e) => /* @__PURE__ */ s(c, { size: "sm", children: /* @__PURE__ */ s(l, { href: e.url, className: n.categoryLink, onClick: g, children: e.name }) }, e.
|
|
72
|
+
(e) => /* @__PURE__ */ s(c, { size: "sm", children: /* @__PURE__ */ s(l, { href: e.url, className: n.categoryLink, onClick: g, children: e.name }) }, e.categoryKey)
|
|
73
73
|
)
|
|
74
74
|
] }) })
|
|
75
75
|
] }),
|
|
@@ -15,9 +15,9 @@ const a = {
|
|
|
15
15
|
{ name: "wiring", url: "/search/wiring" }
|
|
16
16
|
],
|
|
17
17
|
categories: [
|
|
18
|
-
{ name: "Heating", url: "/categories/heating" },
|
|
19
|
-
{ name: "Accessories", url: "/categories/accessories" },
|
|
20
|
-
{ name: "Controls", url: "/categories/controls" }
|
|
18
|
+
{ categoryKey: 1, name: "Heating", url: "/categories/heating" },
|
|
19
|
+
{ categoryKey: 2, name: "Accessories", url: "/categories/accessories" },
|
|
20
|
+
{ categoryKey: 3, name: "Controls", url: "/categories/controls" }
|
|
21
21
|
],
|
|
22
22
|
items: [
|
|
23
23
|
{
|