@citygross/components_v2 0.0.36 → 0.0.38
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 };
|
|
@@ -21,17 +21,12 @@
|
|
|
21
21
|
display: flex;
|
|
22
22
|
align-self: center;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
padding: 12px;
|
|
28
|
-
}
|
|
29
|
-
.Header_desktopLogo__11gdejs5 {
|
|
24
|
+
.Header_desktopLogo__11gdejs4 {
|
|
30
25
|
display: none;
|
|
31
26
|
visibility: hidden;
|
|
32
27
|
}
|
|
33
|
-
.
|
|
34
|
-
display:
|
|
28
|
+
.Header_mobileLogo__11gdejs5 {
|
|
29
|
+
display: flex;
|
|
35
30
|
visibility: visible;
|
|
36
31
|
}
|
|
37
32
|
@media screen and (min-width: 960px) {
|
|
@@ -42,11 +37,11 @@
|
|
|
42
37
|
display: none;
|
|
43
38
|
visibility: visible;
|
|
44
39
|
}
|
|
45
|
-
.
|
|
46
|
-
display:
|
|
40
|
+
.Header_desktopLogo__11gdejs4 {
|
|
41
|
+
display: flex;
|
|
47
42
|
visibility: visible;
|
|
48
43
|
}
|
|
49
|
-
.
|
|
44
|
+
.Header_mobileLogo__11gdejs5 {
|
|
50
45
|
display: none;
|
|
51
46
|
visibility: hidden;
|
|
52
47
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './Header.css.ts.vanilla.css';
|
|
2
2
|
|
|
3
|
-
var desktopLogo = "
|
|
3
|
+
var desktopLogo = "Header_desktopLogo__11gdejs4";
|
|
4
4
|
var headerContainer = "Header_headerContainer__11gdejs2";
|
|
5
5
|
var headerWrapper = "Header_headerWrapper__11gdejs1";
|
|
6
6
|
var menuIconContainer = "Header_menuIconContainer__11gdejs3";
|
|
7
|
-
var mobileLogo = "
|
|
7
|
+
var mobileLogo = "Header_mobileLogo__11gdejs5";
|
|
8
8
|
var wrapper = "Header_wrapper__11gdejs0";
|
|
9
9
|
|
|
10
10
|
export { desktopLogo, headerContainer, headerWrapper, menuIconContainer, mobileLogo, wrapper };
|
|
@@ -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.38",
|
|
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": "aa7e414d674167ff4e6068c79e7f5baabb1a43b5"
|
|
83
83
|
}
|