@caseparts-org/caseblocks 0.0.142 → 0.0.144

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.
@@ -9,6 +9,7 @@ export interface CartItem {
9
9
  imageUrl: string | undefined;
10
10
  availability?: string;
11
11
  availabilityId?: string;
12
+ custom?: string;
12
13
  }
13
14
  export interface ShoppingCart {
14
15
  items: CartItem[];
@@ -9,7 +9,7 @@ import { Availability as z } from "../Availability/Availability.js";
9
9
  import { Icon as k } from "../../atoms/Icon/Icon.js";
10
10
  import { s as r } from "../../Cart.module-9txlotpz.js";
11
11
  function H({
12
- open: s,
12
+ open: m,
13
13
  onClose: o,
14
14
  cart: a,
15
15
  subtotal: l,
@@ -20,19 +20,19 @@ function H({
20
20
  onItemDelete: u,
21
21
  onCheckout: v
22
22
  }) {
23
- var m;
23
+ var s;
24
24
  return a = a || { items: [] }, /* @__PURE__ */ e(
25
25
  g,
26
26
  {
27
27
  side: "right",
28
- open: s,
28
+ open: m,
29
29
  onClose: o,
30
30
  ariaLabel: "Shopping Cart",
31
31
  children: /* @__PURE__ */ t("div", { id: "cart-panel", className: r.cartContainer, children: [
32
32
  /* @__PURE__ */ t("div", { className: r.header, children: [
33
33
  /* @__PURE__ */ e(n, { size: "2xl", children: "Cart" }),
34
34
  /* @__PURE__ */ t(n, { size: "xs", colorToken: "quaternary", children: [
35
- (m = a == null ? void 0 : a.items) == null ? void 0 : m.length,
35
+ (s = a == null ? void 0 : a.items) == null ? void 0 : s.length,
36
36
  " items in your cart"
37
37
  ] })
38
38
  ] }),
@@ -43,8 +43,7 @@ function H({
43
43
  /* @__PURE__ */ t("div", { className: r.itemInfo, children: [
44
44
  /* @__PURE__ */ e(n, { size: "sm", weight: "semibold", children: /* @__PURE__ */ e(y, { href: i.itemHref || `/part/${i.itemId}`, children: i.description }) }),
45
45
  /* @__PURE__ */ t(n, { size: "sm", children: [
46
- /* @__PURE__ */ e(n, { colorToken: "quaternary", size: "xs", children: "Part #" }),
47
- " ",
46
+ /* @__PURE__ */ e(n, { colorToken: "quaternary", size: "xs", children: i.custom ? "Specs " : "Part # " }),
48
47
  i.itemId
49
48
  ] })
50
49
  ] }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.142",
4
+ "version": "0.0.144",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",