@graphcommerce/magento-product-grouped 8.1.0-canary.19 → 8.1.0-canary.20
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/CHANGELOG.md +2 -0
- package/GroupedProducts/GroupedProductActionCard.tsx +10 -11
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -6,19 +6,18 @@ import {
|
|
|
6
6
|
useFormAddProductsToCart,
|
|
7
7
|
} from '@graphcommerce/magento-product/components'
|
|
8
8
|
import { Money } from '@graphcommerce/magento-store'
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
ActionCard,
|
|
11
|
+
ActionCardProps,
|
|
12
|
+
actionCardImageSizes,
|
|
13
|
+
responsiveVal,
|
|
14
|
+
} from '@graphcommerce/next-ui'
|
|
10
15
|
import { Box, Link } from '@mui/material'
|
|
11
16
|
|
|
12
17
|
export type GroupedProductActionCardProps = ProductPageItemFragment &
|
|
13
18
|
Omit<ActionCardProps, 'value' | 'image' | 'price' | 'title' | 'action'> &
|
|
14
19
|
AddToCartItemSelector
|
|
15
20
|
|
|
16
|
-
export const productImageSizes = {
|
|
17
|
-
small: responsiveVal(60, 80),
|
|
18
|
-
medium: responsiveVal(60, 80),
|
|
19
|
-
large: responsiveVal(100, 120),
|
|
20
|
-
}
|
|
21
|
-
|
|
22
21
|
const typographySizes = {
|
|
23
22
|
small: 'body2',
|
|
24
23
|
medium: 'body1',
|
|
@@ -58,7 +57,7 @@ export function GroupedProductActionCard(props: GroupedProductActionCardProps) {
|
|
|
58
57
|
'& .ActionCard-title': {
|
|
59
58
|
width: '100%',
|
|
60
59
|
},
|
|
61
|
-
'& .
|
|
60
|
+
'& .ActionCard-rootInner': {
|
|
62
61
|
justifyContent: 'space-between',
|
|
63
62
|
alignItems: 'stretch',
|
|
64
63
|
},
|
|
@@ -96,13 +95,13 @@ export function GroupedProductActionCard(props: GroupedProductActionCardProps) {
|
|
|
96
95
|
layout='fill'
|
|
97
96
|
src={small_image?.url}
|
|
98
97
|
sx={{
|
|
99
|
-
width:
|
|
100
|
-
height:
|
|
98
|
+
width: actionCardImageSizes[size],
|
|
99
|
+
height: actionCardImageSizes[size],
|
|
101
100
|
display: 'block',
|
|
102
101
|
borderRadius: 1,
|
|
103
102
|
objectFit: 'contain',
|
|
104
103
|
}}
|
|
105
|
-
sizes={
|
|
104
|
+
sizes={actionCardImageSizes[size]}
|
|
106
105
|
/>
|
|
107
106
|
)
|
|
108
107
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-product-grouped",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "8.1.0-canary.
|
|
5
|
+
"version": "8.1.0-canary.20",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^8.1.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^8.1.0-canary.
|
|
17
|
-
"@graphcommerce/graphql": "^8.1.0-canary.
|
|
18
|
-
"@graphcommerce/image": "^8.1.0-canary.
|
|
19
|
-
"@graphcommerce/magento-cart": "^8.1.0-canary.
|
|
20
|
-
"@graphcommerce/magento-product": "^8.1.0-canary.
|
|
21
|
-
"@graphcommerce/magento-product-simple": "^8.1.0-canary.
|
|
22
|
-
"@graphcommerce/magento-product-virtual": "^8.1.0-canary.
|
|
23
|
-
"@graphcommerce/magento-store": "^8.1.0-canary.
|
|
24
|
-
"@graphcommerce/next-ui": "^8.1.0-canary.
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "^8.1.0-canary.
|
|
26
|
-
"@graphcommerce/typescript-config-pwa": "^8.1.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^8.1.0-canary.20",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^8.1.0-canary.20",
|
|
17
|
+
"@graphcommerce/graphql": "^8.1.0-canary.20",
|
|
18
|
+
"@graphcommerce/image": "^8.1.0-canary.20",
|
|
19
|
+
"@graphcommerce/magento-cart": "^8.1.0-canary.20",
|
|
20
|
+
"@graphcommerce/magento-product": "^8.1.0-canary.20",
|
|
21
|
+
"@graphcommerce/magento-product-simple": "^8.1.0-canary.20",
|
|
22
|
+
"@graphcommerce/magento-product-virtual": "^8.1.0-canary.20",
|
|
23
|
+
"@graphcommerce/magento-store": "^8.1.0-canary.20",
|
|
24
|
+
"@graphcommerce/next-ui": "^8.1.0-canary.20",
|
|
25
|
+
"@graphcommerce/prettier-config-pwa": "^8.1.0-canary.20",
|
|
26
|
+
"@graphcommerce/typescript-config-pwa": "^8.1.0-canary.20",
|
|
27
27
|
"@lingui/core": "^4.2.1",
|
|
28
28
|
"@lingui/macro": "^4.2.1",
|
|
29
29
|
"@lingui/react": "^4.2.1",
|