@caseparts-org/caseblocks 0.0.41 → 0.0.43
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.
package/dist/assets/Product.css
CHANGED
|
@@ -1 +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,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { Image as
|
|
3
|
-
import { Link as
|
|
2
|
+
import { Image as g } from "../../atoms/Image/Image.js";
|
|
3
|
+
import { Link as x } from "../../atoms/Link/Link.js";
|
|
4
4
|
import { Text as n } 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 = "
|
|
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 = {
|
|
11
11
|
productCard: R,
|
|
12
12
|
productInformation: A,
|
|
13
13
|
purchaseInformation: D,
|
|
@@ -21,49 +21,49 @@ import '../../assets/Product.css';const R = "_productCard_e649x_1", A = "_produc
|
|
|
21
21
|
};
|
|
22
22
|
function X({
|
|
23
23
|
productView: z,
|
|
24
|
-
itemKey:
|
|
24
|
+
itemKey: i,
|
|
25
25
|
partNumber: a,
|
|
26
26
|
productDescription: l,
|
|
27
27
|
availDescription: m,
|
|
28
|
-
availId:
|
|
29
|
-
contactHref:
|
|
30
|
-
contactLinkBehavior:
|
|
31
|
-
productHref:
|
|
28
|
+
availId: c,
|
|
29
|
+
contactHref: h,
|
|
30
|
+
contactLinkBehavior: u,
|
|
31
|
+
productHref: p,
|
|
32
32
|
priceLabel: _,
|
|
33
|
-
price:
|
|
33
|
+
price: d,
|
|
34
34
|
imgSrc: f,
|
|
35
|
-
attributes:
|
|
35
|
+
attributes: s,
|
|
36
36
|
className: C,
|
|
37
|
-
onAddToCart:
|
|
38
|
-
onClose:
|
|
37
|
+
onAddToCart: T,
|
|
38
|
+
onClose: N,
|
|
39
39
|
...B
|
|
40
40
|
}) {
|
|
41
41
|
return z === "Card" ? /* @__PURE__ */ r("div", { className: w(t.productCard, C), children: [
|
|
42
|
-
/* @__PURE__ */ o(
|
|
42
|
+
/* @__PURE__ */ o(g, { src: f, alt: `${a} product image` }),
|
|
43
43
|
/* @__PURE__ */ r("div", { className: t.productInformation, children: [
|
|
44
|
-
/* @__PURE__ */ o(
|
|
44
|
+
/* @__PURE__ */ o(x, { href: p, children: l }),
|
|
45
45
|
/* @__PURE__ */ r(n, { 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
|
-
|
|
51
|
+
c && /* @__PURE__ */ o(
|
|
52
52
|
I,
|
|
53
53
|
{
|
|
54
|
-
availId:
|
|
54
|
+
availId: c,
|
|
55
55
|
availDescription: m,
|
|
56
|
-
contactHref:
|
|
57
|
-
contactLinkBehavior:
|
|
56
|
+
contactHref: h,
|
|
57
|
+
contactLinkBehavior: u
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
|
|
60
|
+
d && /* @__PURE__ */ o(b, { pricingLabel: _, price: d })
|
|
61
61
|
] }),
|
|
62
62
|
/* @__PURE__ */ o(
|
|
63
63
|
v,
|
|
64
64
|
{
|
|
65
|
-
itemKey:
|
|
66
|
-
onAdd:
|
|
65
|
+
itemKey: i,
|
|
66
|
+
onAdd: T,
|
|
67
67
|
className: t.addToCart,
|
|
68
68
|
addButtonClassName: t.addToCartButton,
|
|
69
69
|
size: "md",
|
|
@@ -71,40 +71,40 @@ function X({
|
|
|
71
71
|
}
|
|
72
72
|
)
|
|
73
73
|
] }) : /* @__PURE__ */ r("div", { className: w(t.productTile, C), ...B, children: [
|
|
74
|
-
/* @__PURE__ */ o(
|
|
74
|
+
/* @__PURE__ */ o(g, { 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(
|
|
78
|
+
/* @__PURE__ */ o(x, { href: p, children: l }),
|
|
79
79
|
/* @__PURE__ */ r(n, { size: "sm", className: t.partNumber, children: [
|
|
80
80
|
"Part # ",
|
|
81
81
|
a
|
|
82
82
|
] })
|
|
83
83
|
] }),
|
|
84
|
-
|
|
84
|
+
N && /* @__PURE__ */ o("button", { onClick: () => N(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
|
-
|
|
88
|
+
c && /* @__PURE__ */ o(
|
|
89
89
|
I,
|
|
90
90
|
{
|
|
91
|
-
availId:
|
|
91
|
+
availId: c,
|
|
92
92
|
availDescription: m,
|
|
93
|
-
contactHref:
|
|
94
|
-
contactLinkBehavior:
|
|
93
|
+
contactHref: h,
|
|
94
|
+
contactLinkBehavior: u
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
|
|
97
|
+
d && /* @__PURE__ */ o(b, { pricingLabel: _, price: d })
|
|
98
98
|
] }),
|
|
99
|
-
/* @__PURE__ */ o(v, { itemKey:
|
|
99
|
+
/* @__PURE__ */ o(v, { itemKey: i, onAdd: T, 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
102
|
/* @__PURE__ */ r(n, { size: "xs", weight: "light", children: [
|
|
103
|
-
|
|
103
|
+
e.label,
|
|
104
104
|
":"
|
|
105
105
|
] }),
|
|
106
|
-
/* @__PURE__ */ o(n, { size: "xs", weight: "semibold", children:
|
|
107
|
-
] },
|
|
106
|
+
/* @__PURE__ */ o(n, { size: "xs", weight: "semibold", children: e.value })
|
|
107
|
+
] }, e.value)) })
|
|
108
108
|
] })
|
|
109
109
|
] });
|
|
110
110
|
}
|