@caseparts-org/caseblocks 0.0.46 → 0.0.47
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_wdkww_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:232px;height:296px;padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}._productCard_wdkww_1>img{width:116px;height:116px;object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_wdkww_1 ._productInformation_wdkww_22{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_wdkww_1 ._purchaseInformation_wdkww_29{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_wdkww_1 ._addToCart_wdkww_37,._productCard_wdkww_1 ._addToCartButton_wdkww_40{width:100%}._productTile_wdkww_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-1xs)}._productTile_wdkww_45>img{width:108px;height:108px;object-fit:contain}._productTile_wdkww_45 ._topRow_wdkww_66{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_wdkww_45 ._topRow_wdkww_66 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_wdkww_45 ._topRow_wdkww_66 path{fill:var(--icons-icon-search)}._productTile_wdkww_45 ._topRow_wdkww_66 svg{padding:0}._productTile_wdkww_45 ._productInformation_wdkww_22{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_wdkww_45 ._productData_wdkww_97{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_wdkww_45 ._purchase_wdkww_29{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_wdkww_45 ._purchase_wdkww_29{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_wdkww_45 ._purchaseInformation_wdkww_29{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_wdkww_45 ._purchaseInformation_wdkww_29{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_wdkww_45 ._attributeContainer_wdkww_134{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_wdkww_45 ._attributeContainer_wdkww_134{display:none}}._productTile_wdkww_45 ._attributeContainer_wdkww_134 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_wdkww_45 ._addToCart_wdkww_37{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_wdkww_45 ._addToCart_wdkww_37{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_wdkww_45 ._addToCartButton_wdkww_40{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_wdkww_45 ._addToCartButton_wdkww_40{width:100%}}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Image as N } from "../../atoms/Image/Image.js";
|
|
3
|
-
import { Link as
|
|
3
|
+
import { Link as k } from "../../atoms/Link/Link.js";
|
|
4
4
|
import { Text as c } from "../../atoms/Text/Text.js";
|
|
5
|
-
import { Availability as
|
|
6
|
-
import { Pricing as
|
|
7
|
-
import { AddToCart as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { c as
|
|
10
|
-
import '../../assets/Product.css';const
|
|
11
|
-
productCard:
|
|
12
|
-
productInformation:
|
|
13
|
-
purchaseInformation:
|
|
14
|
-
addToCart:
|
|
15
|
-
addToCartButton:
|
|
5
|
+
import { Availability as g } from "../../molecules/Availability/Availability.js";
|
|
6
|
+
import { Pricing as x } from "../../molecules/Pricing/Pricing.js";
|
|
7
|
+
import { AddToCart as I } from "../../molecules/AddToCart/AddToCart.js";
|
|
8
|
+
import { Icon as B } from "../../atoms/Icon/Icon.js";
|
|
9
|
+
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
10
|
+
import '../../assets/Product.css';const P = "_productCard_wdkww_1", R = "_productInformation_wdkww_22", A = "_purchaseInformation_wdkww_29", D = "_addToCart_wdkww_37", j = "_addToCartButton_wdkww_40", $ = "_productTile_wdkww_45", y = "_topRow_wdkww_66", L = "_productData_wdkww_97", q = "_purchase_wdkww_29", E = "_attributeContainer_wdkww_134", t = {
|
|
11
|
+
productCard: P,
|
|
12
|
+
productInformation: R,
|
|
13
|
+
purchaseInformation: A,
|
|
14
|
+
addToCart: D,
|
|
15
|
+
addToCartButton: j,
|
|
16
16
|
productTile: $,
|
|
17
17
|
topRow: y,
|
|
18
18
|
productData: L,
|
|
@@ -20,28 +20,28 @@ import '../../assets/Product.css';const R = "_productCard_tzp06_1", A = "_produc
|
|
|
20
20
|
attributeContainer: E
|
|
21
21
|
};
|
|
22
22
|
function X({
|
|
23
|
-
productView:
|
|
23
|
+
productView: v,
|
|
24
24
|
itemKey: i,
|
|
25
25
|
partNumber: a,
|
|
26
26
|
productDescription: l,
|
|
27
27
|
availDescription: m,
|
|
28
28
|
availId: d,
|
|
29
|
-
contactHref:
|
|
30
|
-
contactLinkBehavior:
|
|
31
|
-
productHref:
|
|
32
|
-
priceLabel:
|
|
29
|
+
contactHref: u,
|
|
30
|
+
contactLinkBehavior: p,
|
|
31
|
+
productHref: w,
|
|
32
|
+
priceLabel: h,
|
|
33
33
|
price: n,
|
|
34
|
-
imgSrc:
|
|
34
|
+
imgSrc: _,
|
|
35
35
|
attributes: s,
|
|
36
|
-
className:
|
|
37
|
-
onAddToCart:
|
|
36
|
+
className: f,
|
|
37
|
+
onAddToCart: C,
|
|
38
38
|
onClose: T,
|
|
39
|
-
...
|
|
39
|
+
...z
|
|
40
40
|
}) {
|
|
41
|
-
return
|
|
42
|
-
/* @__PURE__ */ o(N, { src:
|
|
41
|
+
return v === "Card" ? /* @__PURE__ */ r("div", { className: b(t.productCard, f), children: [
|
|
42
|
+
/* @__PURE__ */ o(N, { src: _, alt: `${a} product image` }),
|
|
43
43
|
/* @__PURE__ */ r("div", { className: t.productInformation, children: [
|
|
44
|
-
/* @__PURE__ */ o(
|
|
44
|
+
/* @__PURE__ */ o(k, { href: w, children: l }),
|
|
45
45
|
/* @__PURE__ */ r(c, { size: "sm", className: t.partNumber, children: [
|
|
46
46
|
"Part # ",
|
|
47
47
|
a
|
|
@@ -49,54 +49,54 @@ function X({
|
|
|
49
49
|
] }),
|
|
50
50
|
/* @__PURE__ */ r("div", { className: t.purchaseInformation, children: [
|
|
51
51
|
d && /* @__PURE__ */ o(
|
|
52
|
-
|
|
52
|
+
g,
|
|
53
53
|
{
|
|
54
54
|
availId: d,
|
|
55
55
|
availDescription: m,
|
|
56
|
-
contactHref:
|
|
57
|
-
contactLinkBehavior:
|
|
56
|
+
contactHref: u,
|
|
57
|
+
contactLinkBehavior: p
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
n && /* @__PURE__ */ o(
|
|
60
|
+
n && /* @__PURE__ */ o(x, { pricingLabel: h, price: n })
|
|
61
61
|
] }),
|
|
62
62
|
/* @__PURE__ */ o(
|
|
63
|
-
|
|
63
|
+
I,
|
|
64
64
|
{
|
|
65
65
|
itemKey: i,
|
|
66
|
-
onAdd:
|
|
66
|
+
onAdd: C,
|
|
67
67
|
className: t.addToCart,
|
|
68
68
|
addButtonClassName: t.addToCartButton,
|
|
69
69
|
size: "md",
|
|
70
70
|
buttonDoneText: ""
|
|
71
71
|
}
|
|
72
72
|
)
|
|
73
|
-
] }) : /* @__PURE__ */ r("div", { className:
|
|
74
|
-
/* @__PURE__ */ o(N, { src:
|
|
73
|
+
] }) : /* @__PURE__ */ r("div", { className: b(t.productTile, f), ...z, children: [
|
|
74
|
+
/* @__PURE__ */ o(N, { src: _, 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(k, { href: w, children: l }),
|
|
79
79
|
/* @__PURE__ */ r(c, { size: "sm", className: t.partNumber, children: [
|
|
80
80
|
"Part # ",
|
|
81
81
|
a
|
|
82
82
|
] })
|
|
83
83
|
] }),
|
|
84
|
-
T && /* @__PURE__ */ o("button", { onClick: () => T(i), children: /* @__PURE__ */ o(
|
|
84
|
+
T && /* @__PURE__ */ o("button", { onClick: () => T(i), children: /* @__PURE__ */ o(B, { 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
|
d && /* @__PURE__ */ o(
|
|
89
|
-
|
|
89
|
+
g,
|
|
90
90
|
{
|
|
91
91
|
availId: d,
|
|
92
92
|
availDescription: m,
|
|
93
|
-
contactHref:
|
|
94
|
-
contactLinkBehavior:
|
|
93
|
+
contactHref: u,
|
|
94
|
+
contactLinkBehavior: p
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
n && /* @__PURE__ */ o(
|
|
97
|
+
n && /* @__PURE__ */ o(x, { pricingLabel: h, price: n })
|
|
98
98
|
] }),
|
|
99
|
-
/* @__PURE__ */ o(
|
|
99
|
+
/* @__PURE__ */ o(I, { itemKey: i, onAdd: C, 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(c, { size: "xs", weight: "light", children: [
|