@caseparts-org/caseblocks 0.0.43 → 0.0.45

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
- ._productCard_7ch73_1{border:1px solid var(--border-border-primary, #DFDFDF);background:var(--surface-surface-primary, #FFF);box-shadow:2px 4px 12px #00000026;display:flex;width:208px;height:292px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_7ch73_1>img{width:148px;height:148px;object-fit:contain;flex-shrink:0;margin:0 auto}._productInformation_7ch73_21{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productCard_7ch73_1 ._purchaseInformation_7ch73_27{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_7ch73_1 ._addToCart_7ch73_35,._productCard_7ch73_1 ._addToCartButton_7ch73_38{width:100%}._productTile_7ch73_43{box-sizing:border-box;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;border:1px solid var(--border-border-primary, #DFDFDF);background:var(--surface-surface-primary, #FFF);box-shadow:2px 4px 12px #00000026;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-2xs)}._productTile_7ch73_43>img{width:108px;height:108px;object-fit:contain}._productTile_7ch73_43 ._topRow_7ch73_64{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_7ch73_43 ._topRow_7ch73_64 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_7ch73_43 ._topRow_7ch73_64 path{fill:var(--icons-icon-search)}._productTile_7ch73_43 ._topRow_7ch73_64 svg{padding:0}._productTile_7ch73_43 ._productData_7ch73_88{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_7ch73_43 ._purchase_7ch73_27{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_7ch73_43 ._purchase_7ch73_27{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_7ch73_43 ._purchaseInformation_7ch73_27{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_7ch73_43 ._purchaseInformation_7ch73_27{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_7ch73_43 ._attributeContainer_7ch73_125{margin:0;padding:0;padding-top:var(--spacing-spacing-1xs);border-top:1px solid var(--border-border-primary);width:100%;list-style:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:var(--spacing-spacing-lg);row-gap:var(--spacing-spacing-3xs)}@media (max-width: 640px){._productTile_7ch73_43 ._attributeContainer_7ch73_125{display:none}}._productTile_7ch73_43 ._attributeContainer_7ch73_125 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_7ch73_43 ._addToCart_7ch73_35{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_7ch73_43 ._addToCart_7ch73_35{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_7ch73_43 ._addToCartButton_7ch73_38{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_7ch73_43 ._addToCartButton_7ch73_38{width:100%}}
1
+ ._productCard_178dv_1{box-sizing:border-box;border:1px solid var(--border-border-primary, #DFDFDF);background:var(--surface-surface-primary, #FFF);box-shadow:2px 4px 12px #00000026;display:flex;width:250px;height:326px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_178dv_1>img{width:148px;height:148px;object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_178dv_1 ._productInformation_178dv_22{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_178dv_1 ._purchaseInformation_178dv_29{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_178dv_1 ._addToCart_178dv_37,._productCard_178dv_1 ._addToCartButton_178dv_40{width:100%}._productTile_178dv_45{box-sizing:border-box;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;border:1px solid var(--border-border-primary, #DFDFDF);background:var(--surface-surface-primary, #FFF);box-shadow:2px 4px 12px #00000026;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-2xs)}._productTile_178dv_45>img{width:108px;height:108px;object-fit:contain}._productTile_178dv_45 ._topRow_178dv_66{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_178dv_45 ._topRow_178dv_66 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_178dv_45 ._topRow_178dv_66 path{fill:var(--icons-icon-search)}._productTile_178dv_45 ._topRow_178dv_66 svg{padding:0}._productTile_178dv_45 ._productData_178dv_90{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_178dv_45 ._purchase_178dv_29{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_178dv_45 ._purchase_178dv_29{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_178dv_45 ._purchaseInformation_178dv_29{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_178dv_45 ._purchaseInformation_178dv_29{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_178dv_45 ._attributeContainer_178dv_127{margin:0;padding:0;padding-top:var(--spacing-spacing-1xs);border-top:1px solid var(--border-border-primary);width:100%;list-style:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:var(--spacing-spacing-lg);row-gap:var(--spacing-spacing-3xs)}@media (max-width: 640px){._productTile_178dv_45 ._attributeContainer_178dv_127{display:none}}._productTile_178dv_45 ._attributeContainer_178dv_127 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_178dv_45 ._addToCart_178dv_37{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_178dv_45 ._addToCart_178dv_37{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_178dv_45 ._addToCartButton_178dv_40{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_178dv_45 ._addToCartButton_178dv_40{width:100%}}
@@ -1,13 +1,13 @@
1
1
  import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { Image as g } from "../../atoms/Image/Image.js";
3
- import { Link as x } from "../../atoms/Link/Link.js";
4
- import { Text as n } from "../../atoms/Text/Text.js";
5
- import { Availability as I } from "../../molecules/Availability/Availability.js";
6
- import { Pricing as b } from "../../molecules/Pricing/Pricing.js";
7
- import { AddToCart as v } from "../../molecules/AddToCart/AddToCart.js";
2
+ import { Image as N } from "../../atoms/Image/Image.js";
3
+ import { Link as g } from "../../atoms/Link/Link.js";
4
+ import { Text as c } from "../../atoms/Text/Text.js";
5
+ import { Availability as x } from "../../molecules/Availability/Availability.js";
6
+ import { Pricing as I } from "../../molecules/Pricing/Pricing.js";
7
+ import { AddToCart as b } from "../../molecules/AddToCart/AddToCart.js";
8
8
  import { Icon as P } from "../../atoms/Icon/Icon.js";
9
9
  import { c as w } from "../../clsx-OuTLNxxd.js";
10
- import '../../assets/Product.css';const R = "_productCard_7ch73_1", A = "_productInformation_7ch73_21", D = "_purchaseInformation_7ch73_27", j = "_addToCart_7ch73_35", k = "_addToCartButton_7ch73_38", $ = "_productTile_7ch73_43", y = "_topRow_7ch73_64", L = "_productData_7ch73_88", q = "_purchase_7ch73_27", E = "_attributeContainer_7ch73_125", t = {
10
+ import '../../assets/Product.css';const R = "_productCard_178dv_1", A = "_productInformation_178dv_22", D = "_purchaseInformation_178dv_29", j = "_addToCart_178dv_37", k = "_addToCartButton_178dv_40", $ = "_productTile_178dv_45", y = "_topRow_178dv_66", L = "_productData_178dv_90", q = "_purchase_178dv_29", E = "_attributeContainer_178dv_127", t = {
11
11
  productCard: R,
12
12
  productInformation: A,
13
13
  purchaseInformation: D,
@@ -25,45 +25,45 @@ function X({
25
25
  partNumber: a,
26
26
  productDescription: l,
27
27
  availDescription: m,
28
- availId: c,
29
- contactHref: h,
30
- contactLinkBehavior: u,
31
- productHref: p,
28
+ availId: d,
29
+ contactHref: u,
30
+ contactLinkBehavior: p,
31
+ productHref: h,
32
32
  priceLabel: _,
33
- price: d,
33
+ price: n,
34
34
  imgSrc: f,
35
35
  attributes: s,
36
36
  className: C,
37
- onAddToCart: T,
38
- onClose: N,
37
+ onAddToCart: v,
38
+ onClose: T,
39
39
  ...B
40
40
  }) {
41
41
  return z === "Card" ? /* @__PURE__ */ r("div", { className: w(t.productCard, C), children: [
42
- /* @__PURE__ */ o(g, { src: f, alt: `${a} product image` }),
42
+ /* @__PURE__ */ o(N, { src: f, alt: `${a} product image` }),
43
43
  /* @__PURE__ */ r("div", { className: t.productInformation, children: [
44
- /* @__PURE__ */ o(x, { href: p, children: l }),
45
- /* @__PURE__ */ r(n, { size: "sm", className: t.partNumber, children: [
44
+ /* @__PURE__ */ o(g, { href: h, children: l }),
45
+ /* @__PURE__ */ r(c, { size: "sm", className: t.partNumber, children: [
46
46
  "Part # ",
47
47
  a
48
48
  ] })
49
49
  ] }),
50
50
  /* @__PURE__ */ r("div", { className: t.purchaseInformation, children: [
51
- c && /* @__PURE__ */ o(
52
- I,
51
+ d && /* @__PURE__ */ o(
52
+ x,
53
53
  {
54
- availId: c,
54
+ availId: d,
55
55
  availDescription: m,
56
- contactHref: h,
57
- contactLinkBehavior: u
56
+ contactHref: u,
57
+ contactLinkBehavior: p
58
58
  }
59
59
  ),
60
- d && /* @__PURE__ */ o(b, { pricingLabel: _, price: d })
60
+ n && /* @__PURE__ */ o(I, { pricingLabel: _, price: n })
61
61
  ] }),
62
62
  /* @__PURE__ */ o(
63
- v,
63
+ b,
64
64
  {
65
65
  itemKey: i,
66
- onAdd: T,
66
+ onAdd: v,
67
67
  className: t.addToCart,
68
68
  addButtonClassName: t.addToCartButton,
69
69
  size: "md",
@@ -71,39 +71,39 @@ function X({
71
71
  }
72
72
  )
73
73
  ] }) : /* @__PURE__ */ r("div", { className: w(t.productTile, C), ...B, children: [
74
- /* @__PURE__ */ o(g, { src: f, alt: `${a} product image` }),
74
+ /* @__PURE__ */ o(N, { src: f, alt: `${a} product image` }),
75
75
  /* @__PURE__ */ r("div", { className: t.productData, children: [
76
76
  /* @__PURE__ */ r("div", { className: t.topRow, children: [
77
77
  /* @__PURE__ */ r("div", { className: t.productInformation, children: [
78
- /* @__PURE__ */ o(x, { href: p, children: l }),
79
- /* @__PURE__ */ r(n, { size: "sm", className: t.partNumber, children: [
78
+ /* @__PURE__ */ o(g, { href: h, children: l }),
79
+ /* @__PURE__ */ r(c, { size: "sm", className: t.partNumber, children: [
80
80
  "Part # ",
81
81
  a
82
82
  ] })
83
83
  ] }),
84
- N && /* @__PURE__ */ o("button", { onClick: () => N(i), children: /* @__PURE__ */ o(P, { size: "sm", iconKey: "fa-light fa-xmark" }) })
84
+ T && /* @__PURE__ */ o("button", { onClick: () => T(i), children: /* @__PURE__ */ o(P, { 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: [
88
- c && /* @__PURE__ */ o(
89
- I,
88
+ d && /* @__PURE__ */ o(
89
+ x,
90
90
  {
91
- availId: c,
91
+ availId: d,
92
92
  availDescription: m,
93
- contactHref: h,
94
- contactLinkBehavior: u
93
+ contactHref: u,
94
+ contactLinkBehavior: p
95
95
  }
96
96
  ),
97
- d && /* @__PURE__ */ o(b, { pricingLabel: _, price: d })
97
+ n && /* @__PURE__ */ o(I, { pricingLabel: _, price: n })
98
98
  ] }),
99
- /* @__PURE__ */ o(v, { itemKey: i, onAdd: T, className: t.addToCart, addButtonClassName: t.addToCartButton })
99
+ /* @__PURE__ */ o(b, { itemKey: i, onAdd: v, className: t.addToCart, addButtonClassName: t.addToCartButton })
100
100
  ] }),
101
101
  s && s.length > 0 && /* @__PURE__ */ o("ul", { className: t.attributeContainer, children: s.map((e) => /* @__PURE__ */ r("li", { children: [
102
- /* @__PURE__ */ r(n, { size: "xs", weight: "light", children: [
102
+ /* @__PURE__ */ r(c, { size: "xs", weight: "light", children: [
103
103
  e.label,
104
104
  ":"
105
105
  ] }),
106
- /* @__PURE__ */ o(n, { size: "xs", weight: "semibold", children: e.value })
106
+ /* @__PURE__ */ o(c, { size: "xs", weight: "semibold", children: e.value })
107
107
  ] }, e.value)) })
108
108
  ] })
109
109
  ] });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.43",
4
+ "version": "0.0.45",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",