@caseparts-org/caseblocks 0.0.37 → 0.0.39
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/Grid.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._gridWrapper_y41ud_2{width:100%}._grid_y41ud_2{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--spacing-2);width:100%;max-width:1440px;margin:0 auto}._column_y41ud_15{min-width:0;width:100%;grid-column:var(--start-large, 1) / span var(--span-large)}@media (max-width: 1280px){._grid_y41ud_2{max-width:100%}._column_y41ud_15{grid-column:var(--start-medium, 1) / span var(--span-medium)}}@media (max-width: 767px){._grid_y41ud_2{grid-template-columns:repeat(4,1fr)}._column_y41ud_15{grid-column:var(--start-small, 1) / span var(--span-small)}}
|
package/dist/assets/MainNav.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._main_hvdtw_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0;z-index:1;position:relative}._topNav_hvdtw_8{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_hvdtw_8{gap:var(--spacing-1)}}._operations_hvdtw_15{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_hvdtw_15{gap:var(--spacing-1)}}._search_hvdtw_22{flex:1}._siteLink_hvdtw_25{color:var(--color-brand-primary-primary-black);cursor:default}._accountArea_hvdtw_29{width:145px}@media (max-width: 1281px){._accountArea_hvdtw_29{width:min-content}}._cart_hvdtw_35{border:none;padding:0;margin:0;background-color:transparent}._category_hvdtw_41{list-style:none}._category_hvdtw_41 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_hvdtw_41 a{justify-content:space-between;width:100%}}._category_hvdtw_41 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_hvdtw_41 a path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_hvdtw_63{list-style:none;padding:0;margin:0;height:min-content;border:1px solid var(--border-border-secondary-btn, #dfdfdf)}._menuList_hvdtw_63>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_hvdtw_63>li:last-of-type{border-bottom:none}
|
|
@@ -2,9 +2,10 @@ import { HideAtProps } from '../HideAt';
|
|
|
2
2
|
import { ResponsiveProp } from '../ResponsiveProp';
|
|
3
3
|
export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
+
gridWrapperClassName?: string;
|
|
5
6
|
}
|
|
6
7
|
/** A Grid component for layout of elements. Use the Column component to define children. */
|
|
7
|
-
export declare function Grid({ children, ...otherProps }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Grid({ children, gridWrapperClassName, className, ...otherProps }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export interface ColumnProps extends React.HTMLAttributes<HTMLDivElement>, HideAtProps {
|
|
9
10
|
/** The number of grid columns to span.
|
|
10
11
|
* If provided a number, it applies to all screen sizes.
|
package/dist/atoms/Grid/Grid.js
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { getHideAtStyles as
|
|
4
|
-
import { responsivePropToCSSVariables as
|
|
5
|
-
import '../../assets/Grid.css';const
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { c as e } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { getHideAtStyles as p } from "../HideAt.js";
|
|
4
|
+
import { responsivePropToCSSVariables as n } from "../ResponsiveProp.js";
|
|
5
|
+
import '../../assets/Grid.css';const u = "_gridWrapper_y41ud_2", l = "_grid_y41ud_2", g = "_column_y41ud_15", a = {
|
|
6
|
+
gridWrapper: u,
|
|
7
|
+
grid: l,
|
|
8
|
+
column: g
|
|
8
9
|
};
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ s("div", { className:
|
|
10
|
+
function W({ children: r, gridWrapperClassName: o, className: t, ...i }) {
|
|
11
|
+
return /* @__PURE__ */ s("div", { className: e(a.gridWrapper, o), children: /* @__PURE__ */ s("div", { className: e(a.grid, t), ...i, children: r }) });
|
|
11
12
|
}
|
|
12
13
|
function x({
|
|
13
|
-
span:
|
|
14
|
+
span: r = [4, 12, 12],
|
|
14
15
|
// default to full-width.
|
|
15
|
-
start:
|
|
16
|
+
start: o = ["auto", "auto", "auto"],
|
|
16
17
|
// default to "auto".
|
|
17
|
-
hideAt:
|
|
18
|
-
className:
|
|
19
|
-
children:
|
|
20
|
-
style:
|
|
21
|
-
...
|
|
18
|
+
hideAt: t,
|
|
19
|
+
className: i,
|
|
20
|
+
children: d,
|
|
21
|
+
style: c = {},
|
|
22
|
+
...m
|
|
22
23
|
}) {
|
|
23
24
|
return /* @__PURE__ */ s(
|
|
24
25
|
"div",
|
|
25
26
|
{
|
|
26
|
-
className:
|
|
27
|
+
className: e(a.column, p(t), i),
|
|
27
28
|
style: {
|
|
28
|
-
...
|
|
29
|
-
...
|
|
30
|
-
...
|
|
29
|
+
...c,
|
|
30
|
+
...n("span", r),
|
|
31
|
+
...n("start", o)
|
|
31
32
|
},
|
|
32
|
-
...
|
|
33
|
-
children:
|
|
33
|
+
...m,
|
|
34
|
+
children: d
|
|
34
35
|
}
|
|
35
36
|
);
|
|
36
37
|
}
|
|
37
38
|
export {
|
|
38
39
|
x as Column,
|
|
39
|
-
|
|
40
|
+
W as Grid
|
|
40
41
|
};
|
|
@@ -21,4 +21,4 @@ export interface MainCategory extends Category {
|
|
|
21
21
|
children: Category[];
|
|
22
22
|
showChevron?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare function MainNav({ account, categories, faqRoute, customPartsRoute, aboutUsRoute, accountRoute, contactRoute, cart, cartSubtotal, onLoginClick, onSearch, onItemQtyChange, onItemDelete, onItemEdit, onCheckout, ...otherProps }: MainNavProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function MainNav({ account, categories, faqRoute, customPartsRoute, aboutUsRoute, accountRoute, contactRoute, cart, cartSubtotal, onLoginClick, onSearch, onItemQtyChange, onItemDelete, onItemEdit, onCheckout, className, ...otherProps }: MainNavProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,100 +1,103 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { Text as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Flex as
|
|
6
|
-
import { Grid as
|
|
7
|
-
import { Logo as
|
|
2
|
+
import { Text as p } from "../../atoms/Text/Text.js";
|
|
3
|
+
import { Link as f } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { Icon as b } from "../../atoms/Icon/Icon.js";
|
|
5
|
+
import { Flex as s } from "../../atoms/Flex/Flex.js";
|
|
6
|
+
import { Grid as k, Column as j } from "../../atoms/Grid/Grid.js";
|
|
7
|
+
import { Logo as D } from "../../molecules/Logo/Logo.js";
|
|
8
8
|
import { SearchBox as d } from "../../molecules/SearchBox/SearchBox.js";
|
|
9
|
-
import { HamburgerMenu as
|
|
10
|
-
import { ShoppingCart as
|
|
11
|
-
import { Account as
|
|
12
|
-
import { CategoryNav as
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
import { HamburgerMenu as z } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
|
|
10
|
+
import { ShoppingCart as F } from "../../molecules/Cart/Cart.js";
|
|
11
|
+
import { Account as I } from "../../molecules/Account/Account.js";
|
|
12
|
+
import { CategoryNav as U } from "../../molecules/CategoryNav/CategoryNav.js";
|
|
13
|
+
import { c as M } from "../../clsx-OuTLNxxd.js";
|
|
14
|
+
import '../../assets/MainNav.css';const Q = "_main_hvdtw_1", B = "_topNav_hvdtw_8", G = "_operations_hvdtw_15", H = "_search_hvdtw_22", K = "_siteLink_hvdtw_25", P = "_accountArea_hvdtw_29", S = "_category_hvdtw_41", T = "_menuList_hvdtw_63", i = {
|
|
15
|
+
main: Q,
|
|
16
|
+
topNav: B,
|
|
17
|
+
operations: G,
|
|
18
|
+
search: H,
|
|
19
|
+
siteLink: K,
|
|
20
|
+
accountArea: P,
|
|
21
|
+
category: S,
|
|
22
|
+
menuList: T
|
|
21
23
|
};
|
|
22
|
-
function
|
|
23
|
-
account:
|
|
24
|
+
function re({
|
|
25
|
+
account: a,
|
|
24
26
|
categories: t,
|
|
25
27
|
faqRoute: o,
|
|
26
|
-
customPartsRoute:
|
|
27
|
-
aboutUsRoute:
|
|
28
|
-
accountRoute:
|
|
29
|
-
contactRoute:
|
|
30
|
-
cart:
|
|
31
|
-
cartSubtotal:
|
|
32
|
-
onLoginClick:
|
|
28
|
+
customPartsRoute: m,
|
|
29
|
+
aboutUsRoute: _,
|
|
30
|
+
accountRoute: u,
|
|
31
|
+
contactRoute: l,
|
|
32
|
+
cart: v,
|
|
33
|
+
cartSubtotal: N,
|
|
34
|
+
onLoginClick: w,
|
|
33
35
|
onSearch: h,
|
|
34
|
-
onItemQtyChange:
|
|
36
|
+
onItemQtyChange: A,
|
|
35
37
|
onItemDelete: g,
|
|
36
38
|
onItemEdit: x,
|
|
37
39
|
onCheckout: L,
|
|
38
|
-
|
|
40
|
+
className: C,
|
|
41
|
+
...y
|
|
39
42
|
}) {
|
|
40
|
-
return /* @__PURE__ */ e(
|
|
43
|
+
return /* @__PURE__ */ e(k, { ...y, gridWrapperClassName: M(i.main, C), children: /* @__PURE__ */ n(j, { span: 12, children: [
|
|
41
44
|
/* @__PURE__ */ n(
|
|
42
|
-
|
|
45
|
+
s,
|
|
43
46
|
{
|
|
44
47
|
flexDirection: "row",
|
|
45
48
|
alignItems: "center",
|
|
46
49
|
justifyContent: "space-between",
|
|
47
50
|
className: i.topNav,
|
|
48
51
|
children: [
|
|
49
|
-
/* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(
|
|
52
|
+
/* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(D, {}) }),
|
|
50
53
|
/* @__PURE__ */ n(
|
|
51
|
-
|
|
54
|
+
s,
|
|
52
55
|
{
|
|
53
56
|
flexDirection: "row",
|
|
54
57
|
alignItems: "center",
|
|
55
58
|
justifyContent: "flex-end",
|
|
56
59
|
className: i.operations,
|
|
57
60
|
children: [
|
|
58
|
-
/* @__PURE__ */ e(
|
|
59
|
-
/* @__PURE__ */ e(r, { href:
|
|
61
|
+
/* @__PURE__ */ e(s, { flexDirection: "row", hideAt: ["sm"], className: i.search, children: /* @__PURE__ */ e(d, { onSearch: h, inputName: "cpc-search" }) }),
|
|
62
|
+
/* @__PURE__ */ e(r, { href: m, hideAt: ["sm", "md"], children: "Custom Parts" }),
|
|
60
63
|
/* @__PURE__ */ e(r, { href: o, hideAt: ["sm", "md"], children: "FAQ" }),
|
|
61
|
-
/* @__PURE__ */ e(r, { href:
|
|
64
|
+
/* @__PURE__ */ e(r, { href: l, hideAt: ["sm", "md"], children: "Contact Us" }),
|
|
62
65
|
/* @__PURE__ */ e("div", { className: i.accountArea, children: /* @__PURE__ */ e(
|
|
63
|
-
|
|
66
|
+
I,
|
|
64
67
|
{
|
|
65
|
-
account:
|
|
66
|
-
accountRoute:
|
|
67
|
-
onLoginClick:
|
|
68
|
+
account: a,
|
|
69
|
+
accountRoute: u,
|
|
70
|
+
onLoginClick: w,
|
|
68
71
|
className: i.avatar
|
|
69
72
|
}
|
|
70
73
|
) }),
|
|
71
74
|
/* @__PURE__ */ e(
|
|
72
|
-
|
|
75
|
+
F,
|
|
73
76
|
{
|
|
74
|
-
cart:
|
|
77
|
+
cart: v,
|
|
75
78
|
onItemDelete: g,
|
|
76
79
|
onItemEdit: x,
|
|
77
|
-
onItemQtyChange:
|
|
80
|
+
onItemQtyChange: A,
|
|
78
81
|
onCheckout: L,
|
|
79
|
-
subtotal:
|
|
82
|
+
subtotal: N
|
|
80
83
|
}
|
|
81
84
|
),
|
|
82
|
-
/* @__PURE__ */ e(
|
|
83
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href:
|
|
85
|
+
/* @__PURE__ */ e(z, { hideAt: ["lg"], children: /* @__PURE__ */ n("ul", { className: i.menuList, children: [
|
|
86
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: m, children: "Custom Parts" }) }),
|
|
84
87
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: o, children: "FAQ" }) }),
|
|
85
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href:
|
|
86
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href:
|
|
87
|
-
t && t.map((
|
|
88
|
-
/* @__PURE__ */ e(
|
|
88
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: l, children: "Contact Us" }) }),
|
|
89
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: _, children: "About Us" }) }),
|
|
90
|
+
t && t.map((c) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ n(f, { href: c.route, children: [
|
|
91
|
+
/* @__PURE__ */ e(p, { size: "sm", weight: "semibold", children: c.label }),
|
|
89
92
|
/* @__PURE__ */ e(
|
|
90
|
-
|
|
93
|
+
b,
|
|
91
94
|
{
|
|
92
95
|
iconKey: "fa-solid fa-chevron-right",
|
|
93
96
|
title: "Navigate",
|
|
94
97
|
size: "sm"
|
|
95
98
|
}
|
|
96
99
|
)
|
|
97
|
-
] }) },
|
|
100
|
+
] }) }, c.id))
|
|
98
101
|
] }) })
|
|
99
102
|
]
|
|
100
103
|
}
|
|
@@ -102,17 +105,17 @@ function q({
|
|
|
102
105
|
]
|
|
103
106
|
}
|
|
104
107
|
),
|
|
105
|
-
/* @__PURE__ */ e(
|
|
106
|
-
/* @__PURE__ */ e(
|
|
108
|
+
/* @__PURE__ */ e(s, { flexDirection: "row", hideAt: ["md", "lg"], children: /* @__PURE__ */ e(d, { onSearch: h, inputName: "cpc-search", className: i.search }) }),
|
|
109
|
+
/* @__PURE__ */ e(U, { categories: t })
|
|
107
110
|
] }) });
|
|
108
111
|
}
|
|
109
112
|
function r({
|
|
110
|
-
href:
|
|
113
|
+
href: a,
|
|
111
114
|
children: t,
|
|
112
115
|
...o
|
|
113
116
|
}) {
|
|
114
|
-
return /* @__PURE__ */ e(
|
|
117
|
+
return /* @__PURE__ */ e(f, { href: a, className: i.siteLink, ...o, children: /* @__PURE__ */ e(p, { size: "md", variant: "display", children: t }) });
|
|
115
118
|
}
|
|
116
119
|
export {
|
|
117
|
-
|
|
120
|
+
re as MainNav
|
|
118
121
|
};
|