@caseparts-org/caseblocks 0.0.79 → 0.0.80
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,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
function
|
|
3
|
-
implementation:
|
|
4
|
-
implementationProps:
|
|
5
|
-
src:
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
function s({
|
|
3
|
+
implementation: t,
|
|
4
|
+
implementationProps: n,
|
|
5
|
+
src: f,
|
|
6
6
|
alt: o,
|
|
7
|
-
...
|
|
7
|
+
...r
|
|
8
8
|
}) {
|
|
9
|
-
return
|
|
9
|
+
return t ? /* @__PURE__ */ m(t, { src: f, alt: o ?? "", ...r, ...n }) : /* @__PURE__ */ m("img", { src: f, alt: o, ...r });
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
s as Image
|
|
13
13
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Image as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Text as
|
|
5
|
-
import { Availability as
|
|
6
|
-
import { Pricing as
|
|
2
|
+
import { Image as v } from "../../atoms/Image/Image.js";
|
|
3
|
+
import { Link as x } from "../../atoms/Link/Link.js";
|
|
4
|
+
import { Text as o } from "../../atoms/Text/Text.js";
|
|
5
|
+
import { Availability as w } from "../../molecules/Availability/Availability.js";
|
|
6
|
+
import { Pricing as z } from "../../molecules/Pricing/Pricing.js";
|
|
7
7
|
import { AddToCart as I } from "../../molecules/AddToCart/AddToCart.js";
|
|
8
8
|
import { Icon as R } from "../../atoms/Icon/Icon.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as B } from "../../clsx-OuTLNxxd.js";
|
|
10
10
|
import '../../assets/Product.css';const $ = "_productCard_10edn_1", A = "_productInformation_10edn_22", D = "_purchaseInformation_10edn_29", j = "_addToCart_10edn_37", k = "_addToCartButton_10edn_40", y = "_partNumber_10edn_48", q = "_partNumberLabel_10edn_55", E = "_productTile_10edn_59", F = "_topRow_10edn_80", G = "_productData_10edn_111", J = "_purchase_10edn_29", M = "_attributeContainer_10edn_148", t = {
|
|
11
11
|
productCard: $,
|
|
12
12
|
productInformation: A,
|
|
@@ -22,9 +22,9 @@ import '../../assets/Product.css';const $ = "_productCard_10edn_1", A = "_produc
|
|
|
22
22
|
attributeContainer: M
|
|
23
23
|
};
|
|
24
24
|
function S({
|
|
25
|
-
productView:
|
|
25
|
+
productView: L,
|
|
26
26
|
itemKey: s,
|
|
27
|
-
partNumber:
|
|
27
|
+
partNumber: e,
|
|
28
28
|
productDescription: l,
|
|
29
29
|
availDescription: m,
|
|
30
30
|
availId: d,
|
|
@@ -34,34 +34,34 @@ function S({
|
|
|
34
34
|
priceLabel: _,
|
|
35
35
|
price: n,
|
|
36
36
|
imgSrc: N,
|
|
37
|
-
imageImplementation:
|
|
38
|
-
imageImplementationProps:
|
|
37
|
+
imageImplementation: b,
|
|
38
|
+
imageImplementationProps: f,
|
|
39
39
|
attributes: c,
|
|
40
|
-
className:
|
|
41
|
-
onAddToCart:
|
|
42
|
-
onClose:
|
|
40
|
+
className: C,
|
|
41
|
+
onAddToCart: T,
|
|
42
|
+
onClose: g,
|
|
43
43
|
...P
|
|
44
44
|
}) {
|
|
45
|
-
return
|
|
45
|
+
return L === "Card" ? /* @__PURE__ */ a("div", { className: B(t.productCard, C), children: [
|
|
46
46
|
/* @__PURE__ */ r(
|
|
47
|
-
|
|
47
|
+
v,
|
|
48
48
|
{
|
|
49
49
|
src: N,
|
|
50
|
-
alt: `${
|
|
51
|
-
implementation:
|
|
52
|
-
implementationProps:
|
|
50
|
+
alt: `${e} product image`,
|
|
51
|
+
implementation: b,
|
|
52
|
+
implementationProps: f
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
55
|
/* @__PURE__ */ a("div", { className: t.productInformation, children: [
|
|
56
|
-
/* @__PURE__ */ r(
|
|
56
|
+
/* @__PURE__ */ r(x, { href: h, children: l }),
|
|
57
57
|
/* @__PURE__ */ a("div", { className: t.partNumber, children: [
|
|
58
|
-
/* @__PURE__ */ r(
|
|
59
|
-
/* @__PURE__ */ r(
|
|
58
|
+
/* @__PURE__ */ r(o, { size: "sm", className: t.partNumberLabel, children: "Part #" }),
|
|
59
|
+
/* @__PURE__ */ r(o, { size: "sm", weight: "semibold", children: e })
|
|
60
60
|
] })
|
|
61
61
|
] }),
|
|
62
62
|
/* @__PURE__ */ a("div", { className: t.purchaseInformation, children: [
|
|
63
63
|
d && /* @__PURE__ */ r(
|
|
64
|
-
|
|
64
|
+
w,
|
|
65
65
|
{
|
|
66
66
|
availId: d,
|
|
67
67
|
availDescription: m,
|
|
@@ -69,36 +69,44 @@ function S({
|
|
|
69
69
|
contactLinkBehavior: p
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
|
-
n && /* @__PURE__ */ r(
|
|
72
|
+
n && /* @__PURE__ */ r(z, { pricingLabel: _, price: n })
|
|
73
73
|
] }),
|
|
74
74
|
/* @__PURE__ */ r(
|
|
75
75
|
I,
|
|
76
76
|
{
|
|
77
77
|
itemKey: s,
|
|
78
|
-
onAdd:
|
|
78
|
+
onAdd: T,
|
|
79
79
|
className: t.addToCart,
|
|
80
80
|
addButtonClassName: t.addToCartButton,
|
|
81
81
|
size: "md",
|
|
82
82
|
buttonDoneText: ""
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
|
-
] }) : /* @__PURE__ */ a("div", { className:
|
|
86
|
-
/* @__PURE__ */ r(
|
|
85
|
+
] }) : /* @__PURE__ */ a("div", { className: B(t.productTile, C), ...P, children: [
|
|
86
|
+
/* @__PURE__ */ r(
|
|
87
|
+
v,
|
|
88
|
+
{
|
|
89
|
+
src: N,
|
|
90
|
+
alt: `${e} product image`,
|
|
91
|
+
implementation: b,
|
|
92
|
+
implementationProps: f
|
|
93
|
+
}
|
|
94
|
+
),
|
|
87
95
|
/* @__PURE__ */ a("div", { className: t.productData, children: [
|
|
88
96
|
/* @__PURE__ */ a("div", { className: t.topRow, children: [
|
|
89
97
|
/* @__PURE__ */ a("div", { className: t.productInformation, children: [
|
|
90
|
-
/* @__PURE__ */ r(
|
|
98
|
+
/* @__PURE__ */ r(x, { href: h, children: l }),
|
|
91
99
|
/* @__PURE__ */ a("div", { className: t.partNumber, children: [
|
|
92
|
-
/* @__PURE__ */ r(
|
|
93
|
-
/* @__PURE__ */ r(
|
|
100
|
+
/* @__PURE__ */ r(o, { size: "sm", className: t.partNumberLabel, children: "Part #" }),
|
|
101
|
+
/* @__PURE__ */ r(o, { size: "sm", weight: "semibold", children: e })
|
|
94
102
|
] })
|
|
95
103
|
] }),
|
|
96
|
-
|
|
104
|
+
g && /* @__PURE__ */ r("button", { onClick: () => g(s), children: /* @__PURE__ */ r(R, { size: "sm", iconKey: "fa-light fa-xmark" }) })
|
|
97
105
|
] }),
|
|
98
106
|
/* @__PURE__ */ a("div", { className: t.purchase, children: [
|
|
99
107
|
/* @__PURE__ */ a("div", { className: t.purchaseInformation, children: [
|
|
100
108
|
d && /* @__PURE__ */ r(
|
|
101
|
-
|
|
109
|
+
w,
|
|
102
110
|
{
|
|
103
111
|
availId: d,
|
|
104
112
|
availDescription: m,
|
|
@@ -106,16 +114,16 @@ function S({
|
|
|
106
114
|
contactLinkBehavior: p
|
|
107
115
|
}
|
|
108
116
|
),
|
|
109
|
-
n && /* @__PURE__ */ r(
|
|
117
|
+
n && /* @__PURE__ */ r(z, { pricingLabel: _, price: n })
|
|
110
118
|
] }),
|
|
111
|
-
/* @__PURE__ */ r(I, { itemKey: s, onAdd:
|
|
119
|
+
/* @__PURE__ */ r(I, { itemKey: s, onAdd: T, className: t.addToCart, addButtonClassName: t.addToCartButton })
|
|
112
120
|
] }),
|
|
113
121
|
c && c.length > 0 && /* @__PURE__ */ r("ul", { className: t.attributeContainer, children: c.map((i) => /* @__PURE__ */ a("li", { children: [
|
|
114
|
-
/* @__PURE__ */ a(
|
|
122
|
+
/* @__PURE__ */ a(o, { size: "xs", weight: "light", children: [
|
|
115
123
|
i.label,
|
|
116
124
|
":"
|
|
117
125
|
] }),
|
|
118
|
-
/* @__PURE__ */ r(
|
|
126
|
+
/* @__PURE__ */ r(o, { size: "xs", weight: "semibold", children: i.value })
|
|
119
127
|
] }, `${i.label}.${i.value}`)) })
|
|
120
128
|
] })
|
|
121
129
|
] });
|