@caseparts-org/caseblocks 0.0.152 → 0.0.153
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_nx8r7_3{box-sizing:border-box;background:var(--surface-surface-primary, #FFF);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_nx8r7_3._sm_nx8r7_15{width:180px;height:230px}._productCard_nx8r7_3>img{object-fit:contain;flex-shrink:0;margin:0 auto}._productCard_nx8r7_3 ._productInformation_nx8r7_25{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:auto}._productCard_nx8r7_3 ._purchaseInformation_nx8r7_32{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%}._productCard_nx8r7_3 ._addToCart_nx8r7_40,._productCard_nx8r7_3 ._addToCartButton_nx8r7_43{width:100%}._productInformation_nx8r7_25>a{font-weight:var(--font-weight-semibold);white-space:break-spaces;word-wrap:normal}._partNumber_nx8r7_53{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._partNumberLabel_nx8r7_60{color:var(--text-text-quaternary)}._productTile_nx8r7_64{box-sizing:border-box;width:100%;max-width:1072px;display:flex;flex-direction:row;align-items:flex-start;background:var(--surface-surface-primary, #FFF);padding:var(--spacing-spacing-default, 16px) var(--spacing-spacing-sm, 20px);gap:var(--spacing-spacing-1xs)}._productTile_nx8r7_64>img{object-fit:contain}._productTile_nx8r7_64 ._topRow_nx8r7_83{display:grid;grid-template-columns:1fr auto;width:100%}._productTile_nx8r7_64 ._topRow_nx8r7_83 button{background-color:transparent;padding:0;margin:0;outline:none;border:none;height:min-content;width:min-content}._productTile_nx8r7_64 ._topRow_nx8r7_83 path{fill:var(--icons-icon-search)}._productTile_nx8r7_64 ._topRow_nx8r7_83 svg{padding:0}._productTile_nx8r7_64 ._productInformation_nx8r7_25{display:flex;flex-direction:column;align-items:flex-start;gap:2px}._productTile_nx8r7_64 ._productData_nx8r7_114{display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:var(--spacing-spacing-2xs)}._productTile_nx8r7_64 ._purchase_nx8r7_32{display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;width:100%}@media (max-width: 480px){._productTile_nx8r7_64 ._purchase_nx8r7_32{flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-3xs)}}._productTile_nx8r7_64 ._purchaseInformation_nx8r7_32{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacing-spacing-2xs)}@media (max-width: 480px){._productTile_nx8r7_64 ._purchaseInformation_nx8r7_32{flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:0px}}._productTile_nx8r7_64 ._attributeContainer_nx8r7_151{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_nx8r7_64 ._attributeContainer_nx8r7_151{display:none}}._productTile_nx8r7_64 ._attributeContainer_nx8r7_151 li{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-3xs)}._productTile_nx8r7_64 ._addToCart_nx8r7_40{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-spacing-md)}@media (max-width: 480px){._productTile_nx8r7_64 ._addToCart_nx8r7_40{gap:var(--spacing-spacing-2xs);width:100%}}._productTile_nx8r7_64 ._addToCartButton_nx8r7_43{width:96px;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}@media (max-width: 640px){._productTile_nx8r7_64 ._addToCartButton_nx8r7_43{width:100%}}._elevated_nx8r7_199{border:1px solid var(--border-border-primary, #DFDFDF);box-shadow:2px 4px 12px #00000026}._noImage_nx8r7_205 ._productInformation_nx8r7_25{margin-top:0}._sm_nx8r7_15{padding:var(--spacing-spacing-1xs)}
|
|
@@ -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 w } from "../../atoms/Image/Image.js";
|
|
3
3
|
import { Link as B } from "../../atoms/Link/Link.js";
|
|
4
|
-
import { Text as
|
|
4
|
+
import { Text as e } from "../../atoms/Text/Text.js";
|
|
5
5
|
import { Availability as L } from "../../molecules/Availability/Availability.js";
|
|
6
6
|
import { Pricing as A } from "../../molecules/Pricing/Pricing.js";
|
|
7
7
|
import { AddToCart as R } from "../../molecules/AddToCart/AddToCart.js";
|
|
8
8
|
import { Icon as P } from "../../atoms/Icon/Icon.js";
|
|
9
9
|
import { c as $ } from "../../clsx-OuTLNxxd.js";
|
|
10
|
-
import '../../assets/Product.css';const j = "
|
|
10
|
+
import '../../assets/Product.css';const j = "_productCard_nx8r7_3", k = "_sm_nx8r7_15", y = "_productInformation_nx8r7_25", V = "_purchaseInformation_nx8r7_32", q = "_addToCart_nx8r7_40", E = "_addToCartButton_nx8r7_43", F = "_partNumber_nx8r7_53", G = "_partNumberLabel_nx8r7_60", J = "_productTile_nx8r7_64", M = "_topRow_nx8r7_83", O = "_productData_nx8r7_114", U = "_purchase_nx8r7_32", W = "_attributeContainer_nx8r7_151", X = "_elevated_nx8r7_199", Y = "_noImage_nx8r7_205", r = {
|
|
11
11
|
productCard: j,
|
|
12
12
|
sm: k,
|
|
13
13
|
productInformation: y,
|
|
@@ -24,137 +24,137 @@ import '../../assets/Product.css';const j = "_productCard_o23pg_3", k = "_sm_o23
|
|
|
24
24
|
elevated: X,
|
|
25
25
|
noImage: Y
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function or({
|
|
28
28
|
productView: D,
|
|
29
29
|
itemKey: i,
|
|
30
|
-
partNumber:
|
|
30
|
+
partNumber: d,
|
|
31
31
|
productDescription: _,
|
|
32
32
|
availDescription: h,
|
|
33
33
|
availId: c,
|
|
34
|
-
contactHref:
|
|
34
|
+
contactHref: x,
|
|
35
35
|
contactLinkBehavior: b,
|
|
36
36
|
productHref: N,
|
|
37
37
|
priceLabel: f,
|
|
38
38
|
price: s,
|
|
39
|
-
imgSrc:
|
|
40
|
-
attributes:
|
|
39
|
+
imgSrc: n,
|
|
40
|
+
attributes: u,
|
|
41
41
|
className: C,
|
|
42
42
|
onAddToCart: T,
|
|
43
|
-
onClose:
|
|
44
|
-
flat:
|
|
43
|
+
onClose: g,
|
|
44
|
+
flat: v,
|
|
45
45
|
size: a = "md",
|
|
46
|
-
showQuantity:
|
|
47
|
-
...
|
|
46
|
+
showQuantity: p = !0,
|
|
47
|
+
...I
|
|
48
48
|
}) {
|
|
49
49
|
const m = a === "sm" ? "xs" : "sm";
|
|
50
|
-
return D === "Card" ? /* @__PURE__ */
|
|
50
|
+
return D === "Card" ? /* @__PURE__ */ o(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
53
|
className: $(
|
|
54
|
-
|
|
55
|
-
a &&
|
|
54
|
+
r.productCard,
|
|
55
|
+
a && r[a],
|
|
56
56
|
C,
|
|
57
|
-
!
|
|
58
|
-
!
|
|
57
|
+
!v && r.elevated,
|
|
58
|
+
!n && r.noImage
|
|
59
59
|
),
|
|
60
|
-
...
|
|
60
|
+
...I,
|
|
61
61
|
children: [
|
|
62
|
-
|
|
62
|
+
n && /* @__PURE__ */ t(
|
|
63
63
|
w,
|
|
64
64
|
{
|
|
65
|
-
src:
|
|
66
|
-
alt: `${
|
|
65
|
+
src: n,
|
|
66
|
+
alt: `${d} product image`,
|
|
67
67
|
height: a === "sm" ? 78 : 96,
|
|
68
68
|
width: a === "sm" ? 78 : 96
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ o("div", { className: r.productInformation, children: [
|
|
72
|
+
/* @__PURE__ */ t(B, { size: a, href: N, children: _ }),
|
|
73
|
+
/* @__PURE__ */ o("div", { className: r.partNumber, children: [
|
|
74
|
+
/* @__PURE__ */ t(e, { size: m, className: r.partNumberLabel, children: "Part #" }),
|
|
75
|
+
/* @__PURE__ */ t(e, { size: m, weight: "semibold", children: d })
|
|
76
76
|
] })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
c && /* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
|
|
79
|
+
c && /* @__PURE__ */ t(
|
|
80
80
|
L,
|
|
81
81
|
{
|
|
82
82
|
availId: c,
|
|
83
83
|
availDescription: h,
|
|
84
|
-
contactHref:
|
|
84
|
+
contactHref: x,
|
|
85
85
|
contactLinkBehavior: b
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
s && /* @__PURE__ */
|
|
88
|
+
s && /* @__PURE__ */ t(A, { pricingLabel: f, price: s })
|
|
89
89
|
] }),
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ t(
|
|
91
91
|
R,
|
|
92
92
|
{
|
|
93
93
|
itemKey: i,
|
|
94
94
|
onAdd: T,
|
|
95
|
-
className:
|
|
96
|
-
addButtonClassName:
|
|
97
|
-
addButtonVariant:
|
|
95
|
+
className: r.addToCart,
|
|
96
|
+
addButtonClassName: r.addToCartButton,
|
|
97
|
+
addButtonVariant: p ? "cta-primary" : "secondary",
|
|
98
98
|
size: a,
|
|
99
99
|
buttonDoneText: "",
|
|
100
|
-
buttonText:
|
|
101
|
-
showQuantity:
|
|
100
|
+
buttonText: p ? "Add" : "Add to Cart",
|
|
101
|
+
showQuantity: p
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
|
-
) : /* @__PURE__ */
|
|
107
|
-
|
|
106
|
+
) : /* @__PURE__ */ o("div", { className: $(
|
|
107
|
+
r.productTile,
|
|
108
108
|
C,
|
|
109
|
-
a &&
|
|
110
|
-
!
|
|
111
|
-
!
|
|
112
|
-
), ...
|
|
113
|
-
|
|
109
|
+
a && r[a],
|
|
110
|
+
!v && r.elevated,
|
|
111
|
+
!n && r.noImage
|
|
112
|
+
), ...I, children: [
|
|
113
|
+
n && /* @__PURE__ */ t(
|
|
114
114
|
w,
|
|
115
115
|
{
|
|
116
|
-
src:
|
|
117
|
-
alt: `${
|
|
116
|
+
src: n,
|
|
117
|
+
alt: `${d} product image`,
|
|
118
118
|
height: a === "sm" ? 86 : 108,
|
|
119
119
|
width: a === "sm" ? 86 : 108
|
|
120
120
|
}
|
|
121
121
|
),
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ o("div", { className: r.productData, children: [
|
|
123
|
+
/* @__PURE__ */ o("div", { className: r.topRow, children: [
|
|
124
|
+
/* @__PURE__ */ o("div", { className: r.productInformation, children: [
|
|
125
|
+
/* @__PURE__ */ t(B, { size: a, href: N, children: _ }),
|
|
126
|
+
/* @__PURE__ */ o("div", { className: r.partNumber, children: [
|
|
127
|
+
/* @__PURE__ */ t(e, { size: m, className: r.partNumberLabel, children: "Part #" }),
|
|
128
|
+
/* @__PURE__ */ t(e, { size: m, weight: "semibold", children: d })
|
|
129
129
|
] })
|
|
130
130
|
] }),
|
|
131
|
-
|
|
131
|
+
g && /* @__PURE__ */ t("button", { onClick: () => g(i), children: /* @__PURE__ */ t(P, { size: "sm", iconKey: "fa-light fa-xmark" }) })
|
|
132
132
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
c && /* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ o("div", { className: r.purchase, children: [
|
|
134
|
+
/* @__PURE__ */ o("div", { className: r.purchaseInformation, children: [
|
|
135
|
+
c && /* @__PURE__ */ t(
|
|
136
136
|
L,
|
|
137
137
|
{
|
|
138
138
|
availId: c,
|
|
139
139
|
availDescription: h,
|
|
140
|
-
contactHref:
|
|
140
|
+
contactHref: x,
|
|
141
141
|
contactLinkBehavior: b
|
|
142
142
|
}
|
|
143
143
|
),
|
|
144
|
-
s && /* @__PURE__ */
|
|
144
|
+
s && /* @__PURE__ */ t(A, { pricingLabel: f, price: s })
|
|
145
145
|
] }),
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ t(R, { size: a, itemKey: i, onAdd: T, className: r.addToCart, addButtonClassName: r.addToCartButton })
|
|
147
147
|
] }),
|
|
148
|
-
|
|
149
|
-
/* @__PURE__ */
|
|
148
|
+
u && u.length > 0 && /* @__PURE__ */ t("ul", { className: r.attributeContainer, children: u.map((l) => /* @__PURE__ */ o("li", { children: [
|
|
149
|
+
/* @__PURE__ */ o(e, { size: "xs", weight: "light", children: [
|
|
150
150
|
l.label,
|
|
151
151
|
":"
|
|
152
152
|
] }),
|
|
153
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ t(e, { size: "xs", weight: "semibold", children: l.value })
|
|
154
154
|
] }, `${l.label}.${l.value}`)) })
|
|
155
155
|
] })
|
|
156
156
|
] });
|
|
157
157
|
}
|
|
158
158
|
export {
|
|
159
|
-
|
|
159
|
+
or as Product
|
|
160
160
|
};
|