@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.
package/dist/assets/Product.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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
|
|
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
|
|
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 = "
|
|
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:
|
|
27
|
-
availDescription:
|
|
28
|
-
availId:
|
|
29
|
-
contactHref:
|
|
30
|
-
contactLinkBehavior:
|
|
31
|
-
productHref:
|
|
26
|
+
productDescription: u,
|
|
27
|
+
availDescription: l,
|
|
28
|
+
availId: d,
|
|
29
|
+
contactHref: m,
|
|
30
|
+
contactLinkBehavior: p,
|
|
31
|
+
productHref: h,
|
|
32
32
|
priceLabel: _,
|
|
33
|
-
price:
|
|
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__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
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__ */
|
|
51
|
-
|
|
50
|
+
/* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
|
|
51
|
+
d && /* @__PURE__ */ t(
|
|
52
52
|
I,
|
|
53
53
|
{
|
|
54
|
-
availId:
|
|
55
|
-
availDescription:
|
|
56
|
-
contactHref:
|
|
57
|
-
contactLinkBehavior:
|
|
54
|
+
availId: d,
|
|
55
|
+
availDescription: l,
|
|
56
|
+
contactHref: m,
|
|
57
|
+
contactLinkBehavior: p
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
|
|
60
|
+
n && /* @__PURE__ */ t(b, { pricingLabel: _, price: n })
|
|
61
61
|
] }),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ t(
|
|
63
63
|
v,
|
|
64
64
|
{
|
|
65
65
|
itemKey: i,
|
|
66
66
|
onAdd: T,
|
|
67
|
-
className:
|
|
68
|
-
addButtonClassName:
|
|
67
|
+
className: r.addToCart,
|
|
68
|
+
addButtonClassName: r.addToCartButton,
|
|
69
69
|
size: "md",
|
|
70
70
|
buttonDoneText: ""
|
|
71
71
|
}
|
|
72
72
|
)
|
|
73
|
-
] }) : /* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
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__ */
|
|
84
|
+
N && /* @__PURE__ */ t("button", { onClick: () => N(i), children: /* @__PURE__ */ t(P, { size: "sm", iconKey: "fa-light fa-xmark" }) })
|
|
85
85
|
] }),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
|
|
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:
|
|
92
|
-
availDescription:
|
|
93
|
-
contactHref:
|
|
94
|
-
contactLinkBehavior:
|
|
91
|
+
availId: d,
|
|
92
|
+
availDescription: l,
|
|
93
|
+
contactHref: m,
|
|
94
|
+
contactLinkBehavior: p
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
|
|
97
|
+
n && /* @__PURE__ */ t(b, { pricingLabel: _, price: n })
|
|
98
98
|
] }),
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ t(v, { itemKey: i, onAdd: T, className: r.addToCart, addButtonClassName: r.addToCartButton })
|
|
100
100
|
] }),
|
|
101
|
-
s && s.length > 0 && /* @__PURE__ */
|
|
102
|
-
/* @__PURE__ */
|
|
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__ */
|
|
106
|
+
/* @__PURE__ */ t(c, { size: "xs", weight: "semibold", children: e.value })
|
|
107
107
|
] }, e.value)) })
|
|
108
108
|
] })
|
|
109
109
|
] });
|