@graphcommerce/magento-cart 9.0.0-canary.68 → 9.0.0-canary.69
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 +6 -0
- package/components/EmptyCart/EmptyCart.tsx +8 -4
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.69
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2338](https://github.com/graphcommerce-org/graphcommerce/pull/2338) [`6984f8c`](https://github.com/graphcommerce-org/graphcommerce/commit/6984f8ce94433963d7bab0e1949c1737767e17ba) - Pass sx props to EmptyCart component ([@JoshuaS98](https://github.com/JoshuaS98))
|
|
8
|
+
|
|
3
9
|
## 9.0.0-canary.68
|
|
4
10
|
|
|
5
11
|
## 9.0.0-canary.67
|
|
@@ -5,16 +5,19 @@ import {
|
|
|
5
5
|
FullPageMessageProps,
|
|
6
6
|
} from '@graphcommerce/next-ui'
|
|
7
7
|
import { Trans } from '@lingui/react'
|
|
8
|
-
import { Button } from '@mui/material'
|
|
8
|
+
import { Button, SxProps, Theme } from '@mui/material'
|
|
9
9
|
import React from 'react'
|
|
10
10
|
|
|
11
|
-
type EmptyCartProps = {
|
|
11
|
+
type EmptyCartProps = {
|
|
12
|
+
children?: React.ReactNode
|
|
13
|
+
sx?: SxProps<Theme>
|
|
14
|
+
} & Pick<FullPageMessageProps, 'button' | 'disableMargin'>
|
|
15
|
+
|
|
12
16
|
export function EmptyCart(props: EmptyCartProps) {
|
|
13
|
-
const { children, button } = props
|
|
17
|
+
const { children, button, ...rest } = props
|
|
14
18
|
|
|
15
19
|
return (
|
|
16
20
|
<FullPageMessage
|
|
17
|
-
sx={(theme) => ({ mt: { md: theme.spacings.md } })}
|
|
18
21
|
title={<Trans id='Your cart is empty' />}
|
|
19
22
|
icon={<IconSvg src={iconShoppingBag} size='xxl' />}
|
|
20
23
|
button={
|
|
@@ -24,6 +27,7 @@ export function EmptyCart(props: EmptyCartProps) {
|
|
|
24
27
|
</Button>
|
|
25
28
|
)
|
|
26
29
|
}
|
|
30
|
+
{...rest}
|
|
27
31
|
>
|
|
28
32
|
{children ?? <Trans id='Discover our collection and add items to your cart!' />}
|
|
29
33
|
</FullPageMessage>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.69",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/framer-next-pages": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/framer-scroller": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/framer-utils": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
22
|
-
"@graphcommerce/magento-customer": "^9.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-graphql": "^9.0.0-canary.
|
|
24
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
|
25
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
26
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
27
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
|
28
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.69",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.69",
|
|
17
|
+
"@graphcommerce/framer-next-pages": "^9.0.0-canary.69",
|
|
18
|
+
"@graphcommerce/framer-scroller": "^9.0.0-canary.69",
|
|
19
|
+
"@graphcommerce/framer-utils": "^9.0.0-canary.69",
|
|
20
|
+
"@graphcommerce/graphql": "^9.0.0-canary.69",
|
|
21
|
+
"@graphcommerce/image": "^9.0.0-canary.69",
|
|
22
|
+
"@graphcommerce/magento-customer": "^9.0.0-canary.69",
|
|
23
|
+
"@graphcommerce/magento-graphql": "^9.0.0-canary.69",
|
|
24
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.69",
|
|
25
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.69",
|
|
26
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.69",
|
|
27
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.69",
|
|
28
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.69",
|
|
29
29
|
"@lingui/core": "^4.2.1",
|
|
30
30
|
"@lingui/macro": "^4.2.1",
|
|
31
31
|
"@lingui/react": "^4.2.1",
|