@caseparts-org/caseblocks 0.0.43 → 0.0.44

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_u3r32_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_u3r32_1>img{width:148px;height:148px;object-fit:contain;flex-shrink:0;margin:0 auto}._productInformation_u3r32_22{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productCard_u3r32_1 ._purchaseInformation_u3r32_28{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_u3r32_1 ._addToCart_u3r32_36,._productCard_u3r32_1 ._addToCartButton_u3r32_39{width:100%}._productTile_u3r32_44{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_u3r32_44>img{width:108px;height:108px;object-fit:contain}._productTile_u3r32_44 ._topRow_u3r32_65{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_u3r32_44 ._topRow_u3r32_65 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_u3r32_44 ._topRow_u3r32_65 path{fill:var(--icons-icon-search)}._productTile_u3r32_44 ._topRow_u3r32_65 svg{padding:0}._productTile_u3r32_44 ._productData_u3r32_89{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_u3r32_44 ._purchase_u3r32_28{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_u3r32_44 ._purchase_u3r32_28{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_u3r32_44 ._purchaseInformation_u3r32_28{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_u3r32_44 ._purchaseInformation_u3r32_28{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_u3r32_44 ._attributeContainer_u3r32_126{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_u3r32_44 ._attributeContainer_u3r32_126{display:none}}._productTile_u3r32_44 ._attributeContainer_u3r32_126 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_u3r32_44 ._addToCart_u3r32_36{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_u3r32_44 ._addToCart_u3r32_36{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_u3r32_44 ._addToCartButton_u3r32_39{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_u3r32_44 ._addToCartButton_u3r32_39{width:100%}}
@@ -1,13 +1,13 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { Image as g } from "../../atoms/Image/Image.js";
3
3
  import { Link as x } from "../../atoms/Link/Link.js";
4
- import { Text as n } from "../../atoms/Text/Text.js";
4
+ import { Text as c } from "../../atoms/Text/Text.js";
5
5
  import { Availability as I } from "../../molecules/Availability/Availability.js";
6
6
  import { Pricing as b } from "../../molecules/Pricing/Pricing.js";
7
7
  import { AddToCart as v } 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_u3r32_1", A = "_productInformation_u3r32_22", D = "_purchaseInformation_u3r32_28", j = "_addToCart_u3r32_36", k = "_addToCartButton_u3r32_39", $ = "_productTile_u3r32_44", y = "_topRow_u3r32_65", L = "_productData_u3r32_89", q = "_purchase_u3r32_28", E = "_attributeContainer_u3r32_126", r = {
11
11
  productCard: R,
12
12
  productInformation: A,
13
13
  purchaseInformation: D,
@@ -23,14 +23,14 @@ function X({
23
23
  productView: z,
24
24
  itemKey: i,
25
25
  partNumber: a,
26
- productDescription: l,
27
- availDescription: m,
28
- availId: c,
29
- contactHref: h,
30
- contactLinkBehavior: u,
31
- productHref: p,
26
+ productDescription: u,
27
+ availDescription: l,
28
+ availId: d,
29
+ contactHref: m,
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,
@@ -38,72 +38,72 @@ function X({
38
38
  onClose: N,
39
39
  ...B
40
40
  }) {
41
- return z === "Card" ? /* @__PURE__ */ r("div", { className: w(t.productCard, C), children: [
42
- /* @__PURE__ */ o(g, { src: f, alt: `${a} product image` }),
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: [
41
+ return z === "Card" ? /* @__PURE__ */ o("div", { className: w(r.productCard, C), children: [
42
+ /* @__PURE__ */ t(g, { src: f, alt: `${a} product image` }),
43
+ /* @__PURE__ */ o("div", { className: r.productInformation, children: [
44
+ /* @__PURE__ */ t(x, { href: h, children: u }),
45
+ /* @__PURE__ */ o(c, { size: "sm", className: r.partNumber, children: [
46
46
  "Part # ",
47
47
  a
48
48
  ] })
49
49
  ] }),
50
- /* @__PURE__ */ r("div", { className: t.purchaseInformation, children: [
51
- c && /* @__PURE__ */ o(
50
+ /* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
51
+ d && /* @__PURE__ */ t(
52
52
  I,
53
53
  {
54
- availId: c,
55
- availDescription: m,
56
- contactHref: h,
57
- contactLinkBehavior: u
54
+ availId: d,
55
+ availDescription: l,
56
+ contactHref: m,
57
+ contactLinkBehavior: p
58
58
  }
59
59
  ),
60
- d && /* @__PURE__ */ o(b, { pricingLabel: _, price: d })
60
+ n && /* @__PURE__ */ t(b, { pricingLabel: _, price: n })
61
61
  ] }),
62
- /* @__PURE__ */ o(
62
+ /* @__PURE__ */ t(
63
63
  v,
64
64
  {
65
65
  itemKey: i,
66
66
  onAdd: T,
67
- className: t.addToCart,
68
- addButtonClassName: t.addToCartButton,
67
+ className: r.addToCart,
68
+ addButtonClassName: r.addToCartButton,
69
69
  size: "md",
70
70
  buttonDoneText: ""
71
71
  }
72
72
  )
73
- ] }) : /* @__PURE__ */ r("div", { className: w(t.productTile, C), ...B, children: [
74
- /* @__PURE__ */ o(g, { src: f, alt: `${a} product image` }),
75
- /* @__PURE__ */ r("div", { className: t.productData, children: [
76
- /* @__PURE__ */ r("div", { className: t.topRow, children: [
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: [
73
+ ] }) : /* @__PURE__ */ o("div", { className: w(r.productTile, C), ...B, children: [
74
+ /* @__PURE__ */ t(g, { src: f, alt: `${a} product image` }),
75
+ /* @__PURE__ */ o("div", { className: r.productData, children: [
76
+ /* @__PURE__ */ o("div", { className: r.topRow, children: [
77
+ /* @__PURE__ */ o("div", { className: r.productInformation, children: [
78
+ /* @__PURE__ */ t(x, { href: h, children: u }),
79
+ /* @__PURE__ */ o(c, { size: "sm", className: r.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
+ N && /* @__PURE__ */ t("button", { onClick: () => N(i), children: /* @__PURE__ */ t(P, { size: "sm", iconKey: "fa-light fa-xmark" }) })
85
85
  ] }),
86
- /* @__PURE__ */ r("div", { className: t.purchase, children: [
87
- /* @__PURE__ */ r("div", { className: t.purchaseInformation, children: [
88
- c && /* @__PURE__ */ o(
86
+ /* @__PURE__ */ o("div", { className: r.purchase, children: [
87
+ /* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
88
+ d && /* @__PURE__ */ t(
89
89
  I,
90
90
  {
91
- availId: c,
92
- availDescription: m,
93
- contactHref: h,
94
- contactLinkBehavior: u
91
+ availId: d,
92
+ availDescription: l,
93
+ contactHref: m,
94
+ contactLinkBehavior: p
95
95
  }
96
96
  ),
97
- d && /* @__PURE__ */ o(b, { pricingLabel: _, price: d })
97
+ n && /* @__PURE__ */ t(b, { pricingLabel: _, price: n })
98
98
  ] }),
99
- /* @__PURE__ */ o(v, { itemKey: i, onAdd: T, className: t.addToCart, addButtonClassName: t.addToCartButton })
99
+ /* @__PURE__ */ t(v, { itemKey: i, onAdd: T, className: r.addToCart, addButtonClassName: r.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(n, { size: "xs", weight: "light", children: [
101
+ s && s.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: s.map((e) => /* @__PURE__ */ o("li", { children: [
102
+ /* @__PURE__ */ o(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__ */ t(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.44",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",