@caseparts-org/caseblocks 0.0.31 → 0.0.33

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
- ._cart_15bzn_1{position:relative;border:none;padding:0;margin:0;background-color:transparent}._count_15bzn_8{position:absolute;top:4px;left:17px;border-radius:50%;width:18px;height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:var(--color-brand-primary-primary-tangerine);color:var(--color-neutrals-neutral-1);font-weight:var(--font-weight-semibold)}._cartContainer_15bzn_23{height:calc(100vh - 120px);width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto;gap:var(--spacing-1)}._cartItems_15bzn_32{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_15bzn_32 ul{margin:0;padding:0}._cartItems_15bzn_32 li{list-style:none;margin:0;padding:var(--spacing-0-25);width:100%;display:flex;flex-direction:row;align-items:center}._cartItems_15bzn_32 li p{margin:0;padding:0}._cartItems_15bzn_32 img{height:40px;width:40px}._noItems_15bzn_58{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}
1
+ ._cart_h4033_1{position:relative;border:none;padding:0;margin:0;background-color:transparent}._count_h4033_8{position:absolute;top:4px;left:17px;border-radius:50%;width:18px;height:18px;display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:var(--color-brand-primary-primary-tangerine);color:var(--color-neutrals-neutral-1);font-weight:var(--font-weight-semibold)}._cartContainer_h4033_23{height:calc(100vh - 120px);width:375px;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto;gap:var(--spacing-1)}._cartItems_h4033_32{height:100%;overflow-y:auto;overflow-x:hidden}._cartItems_h4033_32 ul{margin:0;padding:0}._cartItems_h4033_32 li{list-style:none;margin:0;padding:var(--spacing-0-25);width:100%;display:flex;flex-direction:row;align-items:center;gap:var(--spacing-0-5)}._cartItems_h4033_32 li p{margin:0;padding:0}._cartItems_h4033_32 img{height:40px;width:40px;object-fit:contain}._noItems_h4033_60{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}
@@ -1,27 +1,27 @@
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 = {
7
- cart: d,
8
- count: h,
6
+ import '../../assets/Cart.css';const h = "_cart_h4033_1", d = "_count_h4033_8", p = "_cartContainer_h4033_23", _ = "_cartItems_h4033_32", g = "_noItems_h4033_60", o = {
7
+ cart: h,
8
+ count: d,
9
9
  cartContainer: p,
10
10
  cartItems: _,
11
11
  noItems: g
12
12
  };
13
- function v({
13
+ function N({
14
14
  cart: e,
15
15
  onItemQtyChange: I,
16
16
  onItemDelete: u,
17
- onItemEdit: z,
17
+ onItemEdit: C,
18
18
  onCheckout: r,
19
19
  ...c
20
20
  }) {
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,29 +30,29 @@ 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
  }
54
54
  );
55
55
  }
56
56
  export {
57
- v as ShoppingCart
57
+ N as ShoppingCart
58
58
  };
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.33",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",