@caseparts-org/caseblocks 0.0.31 → 0.0.32

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,9 +1,9 @@
1
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
2
  import { Icon as m } from "../../atoms/Icon/Icon.js";
3
- import { Text as n } from "../../atoms/Text/Text.js";
3
+ import { Text as s } from "../../atoms/Text/Text.js";
4
4
  import { Button as a } from "../../atoms/Button/Button.js";
5
5
  import { Tooltip as l } from "../Tooltip/Tooltip.js";
6
- import '../../assets/Cart.css';const d = "_cart_15bzn_1", h = "_count_15bzn_8", p = "_cartContainer_15bzn_23", _ = "_cartItems_15bzn_32", g = "_noItems_15bzn_58", s = {
6
+ import '../../assets/Cart.css';const d = "_cart_15bzn_1", h = "_count_15bzn_8", p = "_cartContainer_15bzn_23", _ = "_cartItems_15bzn_32", g = "_noItems_15bzn_58", o = {
7
7
  cart: d,
8
8
  count: h,
9
9
  cartContainer: p,
@@ -21,7 +21,7 @@ function v({
21
21
  return e = e || { items: [] }, /* @__PURE__ */ t(
22
22
  l,
23
23
  {
24
- trigger: /* @__PURE__ */ i("button", { className: s.cart, ...c, children: [
24
+ trigger: /* @__PURE__ */ n("button", { className: o.cart, ...c, children: [
25
25
  /* @__PURE__ */ t(
26
26
  m,
27
27
  {
@@ -30,24 +30,24 @@ function v({
30
30
  size: "lg"
31
31
  }
32
32
  ),
33
- e.items.length > 0 && /* @__PURE__ */ t("div", { className: s.count, children: /* @__PURE__ */ t(n, { size: "xxs", children: e.items.length }) })
33
+ e.items.length > 0 && /* @__PURE__ */ t("div", { className: o.count, children: /* @__PURE__ */ t(s, { size: "xxs", children: e.items.length }) })
34
34
  ] }),
35
35
  position: "bottom",
36
36
  on: "click",
37
- children: /* @__PURE__ */ i("div", { className: s.cartContainer, children: [
38
- /* @__PURE__ */ t(n, { as: "h1", size: "2xl", children: "Cart" }),
39
- /* @__PURE__ */ t("div", { className: s.cartItems, children: e.items.length > 0 ? /* @__PURE__ */ t("ul", { children: e.items.map(
40
- (o) => /* @__PURE__ */ i("li", { children: [
41
- /* @__PURE__ */ t("img", { src: o.imageUrl, alt: `${o.itemId} product image` }),
42
- /* @__PURE__ */ i("div", { children: [
43
- /* @__PURE__ */ t(n, { as: "p", size: "sm", children: o.description }),
44
- /* @__PURE__ */ i(n, { as: "p", size: "sm", children: [
37
+ children: /* @__PURE__ */ n("div", { className: o.cartContainer, children: [
38
+ /* @__PURE__ */ t(s, { as: "h1", size: "2xl", children: "Cart" }),
39
+ /* @__PURE__ */ t("div", { className: o.cartItems, children: e.items.length > 0 ? /* @__PURE__ */ t("ul", { children: e.items.map(
40
+ (i) => /* @__PURE__ */ n("li", { children: [
41
+ /* @__PURE__ */ t("img", { src: i.imageUrl, alt: `${i.itemId} product image` }),
42
+ /* @__PURE__ */ n("div", { children: [
43
+ /* @__PURE__ */ t(s, { as: "p", size: "sm", children: i.description }),
44
+ /* @__PURE__ */ n(s, { as: "p", size: "sm", children: [
45
45
  "Part # ",
46
- o.itemId
46
+ i.itemId
47
47
  ] })
48
48
  ] })
49
- ] })
50
- ) }) : /* @__PURE__ */ t("div", { className: s.noItems, children: /* @__PURE__ */ t(n, { as: "p", size: "sm", children: "No items in your cart yet" }) }) }),
49
+ ] }, i.id)
50
+ ) }) : /* @__PURE__ */ t("div", { className: o.noItems, children: /* @__PURE__ */ t(s, { as: "p", size: "sm", children: "No items in your cart yet" }) }) }),
51
51
  /* @__PURE__ */ t(a, { disabled: e.items.length === 0, onClick: r, variant: "cta-primary", size: "md", children: "Checkout" })
52
52
  ] })
53
53
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.31",
4
+ "version": "0.0.32",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",