decathlon-ui 0.3.48 → 0.3.49
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.
|
@@ -9,6 +9,8 @@ export declare const useProductCardStyles: (variant?: ProductCardVariant, custom
|
|
|
9
9
|
justifyContent: "center";
|
|
10
10
|
};
|
|
11
11
|
imageContainer: {
|
|
12
|
+
position?: "relative" | undefined;
|
|
13
|
+
width?: "100%" | undefined;
|
|
12
14
|
borderRadius: number;
|
|
13
15
|
display: "flex";
|
|
14
16
|
flex: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-card.styles.d.ts","sourceRoot":"","sources":["../../../src/components/product-card/product-card.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,eAAO,MAAM,oBAAoB,GAC/B,UAAS,kBAA2B,EACpC,cAAc,MAAM
|
|
1
|
+
{"version":3,"file":"product-card.styles.d.ts","sourceRoot":"","sources":["../../../src/components/product-card/product-card.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,eAAO,MAAM,oBAAoB,GAC/B,UAAS,kBAA2B,EACpC,cAAc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6JrB,CAAC"}
|
|
@@ -34,6 +34,9 @@ export const useProductCardStyles = (variant = "grid", customWidth) => {
|
|
|
34
34
|
flex: 1,
|
|
35
35
|
justifyContent: "center",
|
|
36
36
|
alignItems: "center",
|
|
37
|
+
...(variant === "shelfWithAddToCart"
|
|
38
|
+
? { position: "relative", width: "100%" }
|
|
39
|
+
: {}),
|
|
37
40
|
},
|
|
38
41
|
productImage: {
|
|
39
42
|
position: "relative",
|
|
@@ -134,7 +137,7 @@ export const useProductCardStyles = (variant = "grid", customWidth) => {
|
|
|
134
137
|
display: variant === "shelfWithAddToCart" ? "flex" : "none",
|
|
135
138
|
position: "absolute",
|
|
136
139
|
right: 8,
|
|
137
|
-
bottom:
|
|
140
|
+
bottom: 8,
|
|
138
141
|
width: 32,
|
|
139
142
|
height: 32,
|
|
140
143
|
borderRadius: 16,
|