@caseparts-org/caseblocks 0.0.37 → 0.0.38

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
- ._grid_b1bt_2{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--spacing-2);width:100%;max-width:1440px;margin:0 auto}._column_b1bt_11{min-width:0;width:100%;grid-column:var(--start-large, 1) / span var(--span-large)}@media (max-width: 1280px){._grid_b1bt_2{max-width:100%}._column_b1bt_11{grid-column:var(--start-medium, 1) / span var(--span-medium)}}@media (max-width: 767px){._grid_b1bt_2{grid-template-columns:repeat(4,1fr)}._column_b1bt_11{grid-column:var(--start-small, 1) / span var(--span-small)}}
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)}}
@@ -1 +1 @@
1
- ._topNav_1uhwf_1{padding:var(--spacing-1) 0;gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_1uhwf_1{padding:var(--spacing-1) 0 0 0;gap:var(--spacing-1)}}._operations_1uhwf_9{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_1uhwf_9{gap:var(--spacing-1)}}._search_1uhwf_16{flex:1}._siteLink_1uhwf_19{color:var(--color-brand-primary-primary-black);cursor:default}._accountArea_1uhwf_23{width:145px}@media (max-width: 1281px){._accountArea_1uhwf_23{width:min-content}}._cart_1uhwf_29{border:none;padding:0;margin:0;background-color:transparent}._category_1uhwf_35{list-style:none}._category_1uhwf_35 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_1uhwf_35 a{justify-content:space-between;width:100%}}._category_1uhwf_35 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_1uhwf_35 a path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_1uhwf_57{list-style:none;padding:0;margin:0;height:min-content;border:1px solid var(--border-border-secondary-btn, #dfdfdf)}._menuList_1uhwf_57>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_1uhwf_57>li:last-of-type{border-bottom:none}
1
+ ._main_1199t_1{box-shadow:#bbb3 0 8px 24px;padding:var(--spacing-0-5) 0}._topNav_1199t_6{padding-bottom:var(--spacing-0-5);gap:var(--spacing-1-5)}@media (max-width: 1281px){._topNav_1199t_6{gap:var(--spacing-1)}}._operations_1199t_13{gap:var(--spacing-1-5);width:100%}@media (max-width: 1281px){._operations_1199t_13{gap:var(--spacing-1)}}._search_1199t_20{flex:1}._siteLink_1199t_23{color:var(--color-brand-primary-primary-black);cursor:default}._accountArea_1199t_27{width:145px}@media (max-width: 1281px){._accountArea_1199t_27{width:min-content}}._cart_1199t_33{border:none;padding:0;margin:0;background-color:transparent}._category_1199t_39{list-style:none}._category_1199t_39 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_1199t_39 a{justify-content:space-between;width:100%}}._category_1199t_39 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_1199t_39 a path{fill:var(--color-brand-primary-primary-teal-blue)}._menuList_1199t_61{list-style:none;padding:0;margin:0;height:min-content;border:1px solid var(--border-border-secondary-btn, #dfdfdf)}._menuList_1199t_61>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_1199t_61>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.
@@ -1,40 +1,41 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { c as l } from "../../clsx-OuTLNxxd.js";
3
- import { getHideAtStyles as u } from "../HideAt.js";
4
- import { responsivePropToCSSVariables as r } from "../ResponsiveProp.js";
5
- import '../../assets/Grid.css';const d = "_grid_b1bt_2", p = "_column_b1bt_11", i = {
6
- grid: d,
7
- column: p
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 v({ children: o, ...t }) {
10
- return /* @__PURE__ */ s("div", { className: i.grid, ...t, children: o });
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: o = [4, 12, 12],
14
+ span: r = [4, 12, 12],
14
15
  // default to full-width.
15
- start: t = ["auto", "auto", "auto"],
16
+ start: o = ["auto", "auto", "auto"],
16
17
  // default to "auto".
17
- hideAt: n,
18
- className: m,
19
- children: c,
20
- style: e = {},
21
- ...a
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: l(i.column, u(n), m),
27
+ className: e(a.column, p(t), i),
27
28
  style: {
28
- ...e,
29
- ...r("span", o),
30
- ...r("start", t)
29
+ ...c,
30
+ ...n("span", r),
31
+ ...n("start", o)
31
32
  },
32
- ...a,
33
- children: c
33
+ ...m,
34
+ children: d
34
35
  }
35
36
  );
36
37
  }
37
38
  export {
38
39
  x as Column,
39
- v as Grid
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 f } from "../../atoms/Text/Text.js";
3
- import { Link as p } from "../../atoms/Link/Link.js";
4
- import { Icon as y } from "../../atoms/Icon/Icon.js";
5
- import { Flex as c } from "../../atoms/Flex/Flex.js";
6
- import { Grid as b, Column as k } from "../../atoms/Grid/Grid.js";
7
- import { Logo as j } from "../../molecules/Logo/Logo.js";
2
+ import { Text as p } from "../../atoms/Text/Text.js";
3
+ import { Link as f } from "../../atoms/Link/Link.js";
4
+ import { Icon as k } from "../../atoms/Icon/Icon.js";
5
+ import { Flex as s } from "../../atoms/Flex/Flex.js";
6
+ import { Grid as w, 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 D } from "../../molecules/HamburgerMenu/HamburgerMenu.js";
10
- import { ShoppingCart as z } from "../../molecules/Cart/Cart.js";
11
- import { Account as F } from "../../molecules/Account/Account.js";
12
- import { CategoryNav as I } from "../../molecules/CategoryNav/CategoryNav.js";
13
- import '../../assets/MainNav.css';const U = "_topNav_1uhwf_1", M = "_operations_1uhwf_9", Q = "_search_1uhwf_16", B = "_siteLink_1uhwf_19", G = "_accountArea_1uhwf_23", H = "_category_1uhwf_35", K = "_menuList_1uhwf_57", i = {
14
- topNav: U,
15
- operations: M,
16
- search: Q,
17
- siteLink: B,
18
- accountArea: G,
19
- category: H,
20
- menuList: K
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_1199t_1", B = "_topNav_1199t_6", G = "_operations_1199t_13", H = "_search_1199t_20", K = "_siteLink_1199t_23", P = "_accountArea_1199t_27", S = "_category_1199t_39", T = "_menuList_1199t_61", 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 q({
23
- account: s,
24
+ function re({
25
+ account: a,
24
26
  categories: t,
25
27
  faqRoute: o,
26
- customPartsRoute: l,
27
- aboutUsRoute: u,
28
- accountRoute: _,
29
- contactRoute: m,
28
+ customPartsRoute: m,
29
+ aboutUsRoute: _,
30
+ accountRoute: u,
31
+ contactRoute: l,
30
32
  cart: N,
31
33
  cartSubtotal: A,
32
- onLoginClick: v,
34
+ onLoginClick: g,
33
35
  onSearch: h,
34
- onItemQtyChange: w,
35
- onItemDelete: g,
36
- onItemEdit: x,
37
- onCheckout: L,
38
- ...C
36
+ onItemQtyChange: v,
37
+ onItemDelete: x,
38
+ onItemEdit: L,
39
+ onCheckout: C,
40
+ className: y,
41
+ ...b
39
42
  }) {
40
- return /* @__PURE__ */ e(b, { ...C, children: /* @__PURE__ */ n(k, { span: 12, children: [
43
+ return /* @__PURE__ */ e(w, { ...b, gridWrapperClassName: M(i.main, y), children: /* @__PURE__ */ n(j, { span: 12, children: [
41
44
  /* @__PURE__ */ n(
42
- c,
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(j, {}) }),
52
+ /* @__PURE__ */ e("div", { className: i.logo, children: /* @__PURE__ */ e(D, {}) }),
50
53
  /* @__PURE__ */ n(
51
- c,
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(c, { flexDirection: "row", hideAt: ["sm"], className: i.search, children: /* @__PURE__ */ e(d, { onSearch: h, inputName: "cpc-search" }) }),
59
- /* @__PURE__ */ e(r, { href: l, hideAt: ["sm", "md"], children: "Custom Parts" }),
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: m, hideAt: ["sm", "md"], children: "Contact Us" }),
64
+ /* @__PURE__ */ e(r, { href: l, hideAt: ["sm", "md"], children: "Contact Us" }),
62
65
  /* @__PURE__ */ e("div", { className: i.accountArea, children: /* @__PURE__ */ e(
63
- F,
66
+ I,
64
67
  {
65
- account: s,
66
- accountRoute: _,
67
- onLoginClick: v,
68
+ account: a,
69
+ accountRoute: u,
70
+ onLoginClick: g,
68
71
  className: i.avatar
69
72
  }
70
73
  ) }),
71
74
  /* @__PURE__ */ e(
72
- z,
75
+ F,
73
76
  {
74
77
  cart: N,
75
- onItemDelete: g,
76
- onItemEdit: x,
77
- onItemQtyChange: w,
78
- onCheckout: L,
78
+ onItemDelete: x,
79
+ onItemEdit: L,
80
+ onItemQtyChange: v,
81
+ onCheckout: C,
79
82
  subtotal: A
80
83
  }
81
84
  ),
82
- /* @__PURE__ */ e(D, { hideAt: ["lg"], children: /* @__PURE__ */ n("ul", { className: i.menuList, children: [
83
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: l, children: "Custom Parts" }) }),
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: m, children: "Contact Us" }) }),
86
- /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(r, { href: u, children: "About Us" }) }),
87
- t && t.map((a) => /* @__PURE__ */ e("li", { className: i.category, children: /* @__PURE__ */ n(p, { href: a.route, children: [
88
- /* @__PURE__ */ e(f, { size: "sm", weight: "semibold", children: a.label }),
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
- y,
93
+ k,
91
94
  {
92
95
  iconKey: "fa-solid fa-chevron-right",
93
96
  title: "Navigate",
94
97
  size: "sm"
95
98
  }
96
99
  )
97
- ] }) }, a.id))
100
+ ] }) }, c.id))
98
101
  ] }) })
99
102
  ]
100
103
  }
@@ -102,17 +105,17 @@ function q({
102
105
  ]
103
106
  }
104
107
  ),
105
- /* @__PURE__ */ e(c, { flexDirection: "row", hideAt: ["md", "lg"], children: /* @__PURE__ */ e(d, { onSearch: h, inputName: "cpc-search", className: i.search }) }),
106
- /* @__PURE__ */ e(I, { categories: t })
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: s,
113
+ href: a,
111
114
  children: t,
112
115
  ...o
113
116
  }) {
114
- return /* @__PURE__ */ e(p, { href: s, className: i.siteLink, ...o, children: /* @__PURE__ */ e(f, { size: "md", variant: "display", children: t }) });
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
- q as MainNav
120
+ re as MainNav
118
121
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.37",
4
+ "version": "0.0.38",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",