@caseparts-org/caseblocks 0.0.47 → 0.0.48

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
- ._categories_1m4w9_1{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;margin:0 90px 0 47px}@media (max-width: 1281px){._categories_1m4w9_1{margin-right:70px;flex-wrap:wrap}}._category_1m4w9_16{list-style:none}._category_1m4w9_16 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_1m4w9_16 a{justify-content:space-between;width:100%}}._category_1m4w9_16 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_1m4w9_16 a path{fill:var(--color-brand-primary-primary-teal-blue)}._submenuTooltip_1m4w9_42{list-style:none;padding:0;margin:0;height:min-content}
1
+ ._categories_1glk3_1{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0;margin:0 90px 0 47px}@media (max-width: 1281px){._categories_1glk3_1{margin-right:70px;flex-wrap:wrap}}._category_1glk3_16{list-style:none}._category_1glk3_16 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_1glk3_16 a{justify-content:space-between;width:100%}}._category_1glk3_16 a:hover{color:var(--color-brand-primary-primary-teal-blue);text-decoration:none}._category_1glk3_16 a path{fill:var(--color-brand-primary-primary-teal-blue)}._submenuTooltip_1glk3_42{list-style:none;padding:var(--spacing-spacing-2xs);margin:0;height:min-content;display:flex;flex-direction:column;gap:var(--spacing-spacing-3xs)}
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import { Icon as o } from "../../atoms/Icon/Icon.js";
2
+ import { Icon as a } from "../../atoms/Icon/Icon.js";
3
3
  import { Text as m } from "../../atoms/Text/Text.js";
4
4
  import { Button as g } from "../../atoms/Button/Button.js";
5
5
  import { Tooltip as _ } from "../Tooltip/Tooltip.js";
@@ -17,7 +17,7 @@ import '../../assets/Cart.css';const u = "_cart_tgc5k_1", I = "_count_tgc5k_8",
17
17
  };
18
18
  function Q({
19
19
  cart: i,
20
- onItemQtyChange: a,
20
+ onItemQtyChange: o,
21
21
  onItemDelete: r,
22
22
  onItemEdit: b,
23
23
  onCheckout: l,
@@ -27,9 +27,9 @@ function Q({
27
27
  return i = i || { items: [] }, /* @__PURE__ */ t(
28
28
  _,
29
29
  {
30
- trigger: /* @__PURE__ */ s("button", { className: e.cart, ...d, children: [
30
+ trigger: /* @__PURE__ */ s("button", { className: e.cart, tabIndex: 0, ...d, children: [
31
31
  /* @__PURE__ */ t(
32
- o,
32
+ a,
33
33
  {
34
34
  iconKey: "fa-kit fa-shoppingcart-empty",
35
35
  title: "Shopping Cart",
@@ -55,8 +55,8 @@ function Q({
55
55
  ] })
56
56
  ] }),
57
57
  /* @__PURE__ */ s("div", { className: e.itemManagement, children: [
58
- /* @__PURE__ */ t("button", { onClick: () => r(n), className: e.removeItem, children: /* @__PURE__ */ t(o, { iconKey: "fa-regular fa-trash", size: "sm" }) }),
59
- /* @__PURE__ */ t(p, { quantity: n.quantity, onQuantityChange: (h) => a(n, h), size: "sm" })
58
+ /* @__PURE__ */ t("button", { onClick: () => r(n), className: e.removeItem, children: /* @__PURE__ */ t(a, { iconKey: "fa-regular fa-trash", size: "sm" }) }),
59
+ /* @__PURE__ */ t(p, { quantity: n.quantity, onQuantityChange: (h) => o(n, h), size: "sm" })
60
60
  ] })
61
61
  ] }, n.id)
62
62
  ) }) : /* @__PURE__ */ t("div", { className: e.noItems, children: /* @__PURE__ */ t(m, { as: "p", size: "sm", children: "No items in your cart yet" }) }) }),
@@ -1,12 +1,12 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import { c as a } from "../../clsx-OuTLNxxd.js";
3
- import { Text as s } from "../../atoms/Text/Text.js";
4
- import { Link as n } from "../../atoms/Link/Link.js";
3
+ import { Text as n } from "../../atoms/Text/Text.js";
4
+ import { Link as s } from "../../atoms/Link/Link.js";
5
5
  import { Icon as m } from "../../atoms/Icon/Icon.js";
6
6
  import { getHideAtStyles as c } from "../../atoms/HideAt.js";
7
- import { Tooltip as h } from "../Tooltip/Tooltip.js";
8
- import '../../assets/CategoryNav.css';const d = "_categories_1m4w9_1", u = "_category_1m4w9_16", p = "_submenuTooltip_1m4w9_42", l = {
9
- categories: d,
7
+ import { Tooltip as d } from "../Tooltip/Tooltip.js";
8
+ import '../../assets/CategoryNav.css';const h = "_categories_1glk3_1", u = "_category_1glk3_16", p = "_submenuTooltip_1glk3_42", l = {
9
+ categories: h,
10
10
  category: u,
11
11
  submenuTooltip: p
12
12
  };
@@ -15,10 +15,10 @@ function z({
15
15
  }) {
16
16
  return !o || o.length === 0 ? null : /* @__PURE__ */ e("ul", { className: a(l.categories, c(["sm"])), children: o.map(
17
17
  (i) => i.children.length > 0 ? /* @__PURE__ */ e(
18
- h,
18
+ d,
19
19
  {
20
- trigger: /* @__PURE__ */ e("li", { className: l.category, children: /* @__PURE__ */ t(n, { href: i.route, children: [
21
- /* @__PURE__ */ e(s, { size: "sm", weight: "semibold", children: i.label }),
20
+ trigger: /* @__PURE__ */ e("li", { className: l.category, tabIndex: 0, children: /* @__PURE__ */ t(s, { href: i.route, children: [
21
+ /* @__PURE__ */ e(n, { size: "sm", weight: "semibold", children: i.label }),
22
22
  i.showChevron && /* @__PURE__ */ e(
23
23
  m,
24
24
  {
@@ -29,11 +29,11 @@ function z({
29
29
  )
30
30
  ] }) }),
31
31
  position: "bottom",
32
- children: /* @__PURE__ */ e("ul", { className: l.submenuTooltip, children: i.children.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(n, { href: r.route, children: /* @__PURE__ */ e(s, { size: "sm", weight: "semibold", children: r.label }) }) }, r.id)) })
32
+ children: /* @__PURE__ */ e("ul", { className: l.submenuTooltip, children: i.children.map((r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(s, { href: r.route, children: /* @__PURE__ */ e(n, { size: "sm", weight: "semibold", children: r.label }) }) }, r.id)) })
33
33
  },
34
34
  i.id
35
- ) : /* @__PURE__ */ e("li", { className: l.category, children: /* @__PURE__ */ t(n, { href: i.route, children: [
36
- /* @__PURE__ */ e(s, { size: "sm", weight: "semibold", children: i.label }),
35
+ ) : /* @__PURE__ */ e("li", { className: l.category, children: /* @__PURE__ */ t(s, { href: i.route, children: [
36
+ /* @__PURE__ */ e(n, { size: "sm", weight: "semibold", children: i.label }),
37
37
  i.showChevron && /* @__PURE__ */ e(
38
38
  m,
39
39
  {
@@ -1,19 +1,19 @@
1
1
  import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
2
  import { Image as N } from "../../atoms/Image/Image.js";
3
3
  import { Link as k } from "../../atoms/Link/Link.js";
4
- import { Text as c } from "../../atoms/Text/Text.js";
4
+ import { Text as i } from "../../atoms/Text/Text.js";
5
5
  import { Availability as g } from "../../molecules/Availability/Availability.js";
6
6
  import { Pricing as x } from "../../molecules/Pricing/Pricing.js";
7
7
  import { AddToCart as I } from "../../molecules/AddToCart/AddToCart.js";
8
8
  import { Icon as B } from "../../atoms/Icon/Icon.js";
9
9
  import { c as b } from "../../clsx-OuTLNxxd.js";
10
- import '../../assets/Product.css';const P = "_productCard_wdkww_1", R = "_productInformation_wdkww_22", A = "_purchaseInformation_wdkww_29", D = "_addToCart_wdkww_37", j = "_addToCartButton_wdkww_40", $ = "_productTile_wdkww_45", y = "_topRow_wdkww_66", L = "_productData_wdkww_97", q = "_purchase_wdkww_29", E = "_attributeContainer_wdkww_134", t = {
10
+ import '../../assets/Product.css';const P = "_productCard_wdkww_1", R = "_productInformation_wdkww_22", $ = "_purchaseInformation_wdkww_29", A = "_addToCart_wdkww_37", D = "_addToCartButton_wdkww_40", j = "_productTile_wdkww_45", y = "_topRow_wdkww_66", L = "_productData_wdkww_97", q = "_purchase_wdkww_29", E = "_attributeContainer_wdkww_134", t = {
11
11
  productCard: P,
12
12
  productInformation: R,
13
- purchaseInformation: A,
14
- addToCart: D,
15
- addToCartButton: j,
16
- productTile: $,
13
+ purchaseInformation: $,
14
+ addToCart: A,
15
+ addToCartButton: D,
16
+ productTile: j,
17
17
  topRow: y,
18
18
  productData: L,
19
19
  purchase: q,
@@ -21,7 +21,7 @@ import '../../assets/Product.css';const P = "_productCard_wdkww_1", R = "_produc
21
21
  };
22
22
  function X({
23
23
  productView: v,
24
- itemKey: i,
24
+ itemKey: s,
25
25
  partNumber: a,
26
26
  productDescription: l,
27
27
  availDescription: m,
@@ -32,7 +32,7 @@ function X({
32
32
  priceLabel: h,
33
33
  price: n,
34
34
  imgSrc: _,
35
- attributes: s,
35
+ attributes: e,
36
36
  className: f,
37
37
  onAddToCart: C,
38
38
  onClose: T,
@@ -42,7 +42,7 @@ function X({
42
42
  /* @__PURE__ */ o(N, { src: _, alt: `${a} product image` }),
43
43
  /* @__PURE__ */ r("div", { className: t.productInformation, children: [
44
44
  /* @__PURE__ */ o(k, { href: w, children: l }),
45
- /* @__PURE__ */ r(c, { size: "sm", className: t.partNumber, children: [
45
+ /* @__PURE__ */ r(i, { size: "sm", className: t.partNumber, children: [
46
46
  "Part # ",
47
47
  a
48
48
  ] })
@@ -62,7 +62,7 @@ function X({
62
62
  /* @__PURE__ */ o(
63
63
  I,
64
64
  {
65
- itemKey: i,
65
+ itemKey: s,
66
66
  onAdd: C,
67
67
  className: t.addToCart,
68
68
  addButtonClassName: t.addToCartButton,
@@ -76,12 +76,12 @@ function X({
76
76
  /* @__PURE__ */ r("div", { className: t.topRow, children: [
77
77
  /* @__PURE__ */ r("div", { className: t.productInformation, children: [
78
78
  /* @__PURE__ */ o(k, { href: w, children: l }),
79
- /* @__PURE__ */ r(c, { size: "sm", className: t.partNumber, children: [
79
+ /* @__PURE__ */ r(i, { size: "sm", className: t.partNumber, children: [
80
80
  "Part # ",
81
81
  a
82
82
  ] })
83
83
  ] }),
84
- T && /* @__PURE__ */ o("button", { onClick: () => T(i), children: /* @__PURE__ */ o(B, { size: "sm", iconKey: "fa-light fa-xmark" }) })
84
+ T && /* @__PURE__ */ o("button", { onClick: () => T(s), children: /* @__PURE__ */ o(B, { size: "sm", iconKey: "fa-light fa-xmark" }) })
85
85
  ] }),
86
86
  /* @__PURE__ */ r("div", { className: t.purchase, children: [
87
87
  /* @__PURE__ */ r("div", { className: t.purchaseInformation, children: [
@@ -96,15 +96,15 @@ function X({
96
96
  ),
97
97
  n && /* @__PURE__ */ o(x, { pricingLabel: h, price: n })
98
98
  ] }),
99
- /* @__PURE__ */ o(I, { itemKey: i, onAdd: C, className: t.addToCart, addButtonClassName: t.addToCartButton })
99
+ /* @__PURE__ */ o(I, { itemKey: s, onAdd: C, className: t.addToCart, addButtonClassName: t.addToCartButton })
100
100
  ] }),
101
- s && s.length > 0 && /* @__PURE__ */ o("ul", { className: t.attributeContainer, children: s.map((e) => /* @__PURE__ */ r("li", { children: [
102
- /* @__PURE__ */ r(c, { size: "xs", weight: "light", children: [
103
- e.label,
101
+ e && e.length > 0 && /* @__PURE__ */ o("ul", { className: t.attributeContainer, children: e.map((c) => /* @__PURE__ */ r("li", { children: [
102
+ /* @__PURE__ */ r(i, { size: "xs", weight: "light", children: [
103
+ c.label,
104
104
  ":"
105
105
  ] }),
106
- /* @__PURE__ */ o(c, { size: "xs", weight: "semibold", children: e.value })
107
- ] }, e.value)) })
106
+ /* @__PURE__ */ o(i, { size: "xs", weight: "semibold", children: c.value })
107
+ ] }, `${c.label}.${c.value}`)) })
108
108
  ] })
109
109
  ] });
110
110
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.47",
4
+ "version": "0.0.48",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",