@citygross/components_v2 0.0.36 → 0.0.37
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.
|
@@ -10,22 +10,23 @@ const CartItemSummary = ({
|
|
|
10
10
|
withParenthesis,
|
|
11
11
|
unit = "st"
|
|
12
12
|
}) => {
|
|
13
|
-
return /* @__PURE__ */ React.createElement("div", { className: cartitemsummary }, product && (product.amount === 0 || product.amount) && product?.cancelledQuantity !== 0 && product?.cancelledQuantity && /* @__PURE__ */ React.createElement("div", { className: cancelledWrapper }, /* @__PURE__ */ React.createElement(BodyText, { size: "small", textDecoration: "lineThrough" }, product
|
|
13
|
+
return /* @__PURE__ */ React.createElement("div", { className: cartitemsummary }, product && (product.amount === 0 || product.amount) && product?.cancelledQuantity !== 0 && product?.cancelledQuantity && /* @__PURE__ */ React.createElement("div", { className: cancelledWrapper }, product?.cancelledQuantity ? /* @__PURE__ */ React.createElement(BodyText, { size: "small", textDecoration: "lineThrough" }, product.cancelledQuantity, " st") : /* @__PURE__ */ React.createElement(Skeleton, { width: 104 }), product ? /* @__PURE__ */ React.createElement(
|
|
14
14
|
H3,
|
|
15
15
|
{
|
|
16
16
|
className: amountText,
|
|
17
17
|
lineThrough: true,
|
|
18
18
|
fontWeight: withParenthesis ? "regular" : "semiBold"
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
formatPrice(product.cancelledAmount, withParenthesis),
|
|
21
|
+
" "
|
|
22
|
+
) : /* @__PURE__ */ React.createElement(Skeleton, { width: 104 })), /* @__PURE__ */ React.createElement("div", { className: itemInformationContainer }, product?.quantity || product?.quantity === 0 ? /* @__PURE__ */ React.createElement(BodyText, { size: "small" }, product.quantity, " ", unit) : /* @__PURE__ */ React.createElement(Skeleton, { width: 104 }), product ? /* @__PURE__ */ React.createElement(
|
|
22
23
|
H3,
|
|
23
24
|
{
|
|
24
25
|
className: amountText,
|
|
25
26
|
fontWeight: withParenthesis ? "regular" : "semiBold"
|
|
26
27
|
},
|
|
27
|
-
|
|
28
|
-
)));
|
|
28
|
+
formatPrice(product.amount, withParenthesis)
|
|
29
|
+
) : /* @__PURE__ */ React.createElement(Skeleton, { width: 104 })));
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
export { CartItemSummary };
|
|
@@ -59,16 +59,16 @@ function ListItem({
|
|
|
59
59
|
padding: usedInSearch || alignment === "flex-start" /* TOP */ ? "none" : "default"
|
|
60
60
|
})
|
|
61
61
|
},
|
|
62
|
-
/* @__PURE__ */ React.createElement(
|
|
62
|
+
item?.name ? /* @__PURE__ */ React.createElement(
|
|
63
63
|
BodyText,
|
|
64
64
|
{
|
|
65
65
|
fontWeight: boldHeader ? "semiBold" : "regular",
|
|
66
66
|
color: textColor || "darkest",
|
|
67
67
|
size: isSmall ? "extraSmall" : "default"
|
|
68
68
|
},
|
|
69
|
-
item?.name
|
|
70
|
-
),
|
|
71
|
-
loading ? /* @__PURE__ */ React.createElement(
|
|
69
|
+
item?.name
|
|
70
|
+
) : /* @__PURE__ */ React.createElement(Skeleton, { width: smallSkeleton ? 152 : 192, height: 16 }),
|
|
71
|
+
loading ? /* @__PURE__ */ React.createElement(Skeleton, { width: smallSkeleton ? 152 : 192, height: 16 }) : item?.description ? /* @__PURE__ */ React.createElement(
|
|
72
72
|
BodyText,
|
|
73
73
|
{
|
|
74
74
|
size: isSmall ? "tiny" : "small",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components_v2",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react-slick": "^0.30.1",
|
|
80
80
|
"slick-carousel": "^1.8.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "d6d00b0594b1081414a0d101f763328b8d4eb968"
|
|
83
83
|
}
|