@graphcommerce/magento-cart-shipping-method 10.0.0-canary.67 → 10.0.0-canary.72
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ActionCardItemRenderProps } from '@graphcommerce/ecommerce-ui'
|
|
2
2
|
import { useDisplayInclTax } from '@graphcommerce/magento-cart/hooks'
|
|
3
3
|
import { Money } from '@graphcommerce/magento-store'
|
|
4
|
-
import { ActionCard } from '@graphcommerce/next-ui'
|
|
4
|
+
import { ActionCard, sxx } from '@graphcommerce/next-ui'
|
|
5
5
|
import { Trans } from '@lingui/react/macro'
|
|
6
6
|
import { Button, Chip } from '@mui/material'
|
|
7
7
|
import type { AvailableShippingMethodFragment } from './AvailableShippingMethod.gql'
|
|
@@ -39,7 +39,15 @@ export function ShippingMethodActionCard(props: ShippingMethodActionCardProps) {
|
|
|
39
39
|
disableRipple
|
|
40
40
|
variant='inline'
|
|
41
41
|
color='secondary'
|
|
42
|
-
sx={
|
|
42
|
+
sx={sxx(
|
|
43
|
+
available
|
|
44
|
+
? {
|
|
45
|
+
display: null,
|
|
46
|
+
}
|
|
47
|
+
: {
|
|
48
|
+
display: 'none',
|
|
49
|
+
},
|
|
50
|
+
)}
|
|
43
51
|
tabIndex={-1}
|
|
44
52
|
>
|
|
45
53
|
<Trans>Select</Trans>
|
|
@@ -123,7 +123,6 @@ export function ShippingMethodForm(props: ShippingMethodFormProps) {
|
|
|
123
123
|
<FormHeader variant='h4' sx={(theme) => ({ marginBottom: 0, mb: theme.spacings.sm })}>
|
|
124
124
|
<Trans>Shipping method</Trans>
|
|
125
125
|
</FormHeader>
|
|
126
|
-
|
|
127
126
|
<ActionCardListForm
|
|
128
127
|
control={control}
|
|
129
128
|
name='carrierMethod'
|
|
@@ -141,7 +140,6 @@ export function ShippingMethodForm(props: ShippingMethodFormProps) {
|
|
|
141
140
|
</FormProvider>
|
|
142
141
|
)
|
|
143
142
|
}
|
|
144
|
-
|
|
145
143
|
/** @public */
|
|
146
144
|
export function useShippingMethod() {
|
|
147
145
|
return useWatch<{ carrierMethod?: string }>({ name: 'carrierMethod' })
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-shipping-method",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "10.0.0-canary.
|
|
5
|
+
"version": "10.0.0-canary.72",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
".": "./index.ts"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@graphcommerce/ecommerce-ui": "^10.0.0-canary.
|
|
19
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.
|
|
20
|
-
"@graphcommerce/framer-scroller": "^10.0.0-canary.
|
|
21
|
-
"@graphcommerce/graphql": "^10.0.0-canary.
|
|
22
|
-
"@graphcommerce/image": "^10.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-cart": "^10.0.0-canary.
|
|
24
|
-
"@graphcommerce/magento-cart-shipping-address": "^10.0.0-canary.
|
|
25
|
-
"@graphcommerce/magento-store": "^10.0.0-canary.
|
|
26
|
-
"@graphcommerce/next-config": "^10.0.0-canary.
|
|
27
|
-
"@graphcommerce/next-ui": "^10.0.0-canary.
|
|
28
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.
|
|
29
|
-
"@graphcommerce/react-hook-form": "^10.0.0-canary.
|
|
30
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.
|
|
18
|
+
"@graphcommerce/ecommerce-ui": "^10.0.0-canary.72",
|
|
19
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.72",
|
|
20
|
+
"@graphcommerce/framer-scroller": "^10.0.0-canary.72",
|
|
21
|
+
"@graphcommerce/graphql": "^10.0.0-canary.72",
|
|
22
|
+
"@graphcommerce/image": "^10.0.0-canary.72",
|
|
23
|
+
"@graphcommerce/magento-cart": "^10.0.0-canary.72",
|
|
24
|
+
"@graphcommerce/magento-cart-shipping-address": "^10.0.0-canary.72",
|
|
25
|
+
"@graphcommerce/magento-store": "^10.0.0-canary.72",
|
|
26
|
+
"@graphcommerce/next-config": "^10.0.0-canary.72",
|
|
27
|
+
"@graphcommerce/next-ui": "^10.0.0-canary.72",
|
|
28
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.72",
|
|
29
|
+
"@graphcommerce/react-hook-form": "^10.0.0-canary.72",
|
|
30
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.72",
|
|
31
31
|
"@lingui/core": "^5",
|
|
32
32
|
"@lingui/macro": "^5",
|
|
33
33
|
"@lingui/react": "^5",
|
|
34
|
-
"@mui/material": "^
|
|
34
|
+
"@mui/material": "^7.0.0",
|
|
35
35
|
"framer-motion": "^11.0.0",
|
|
36
36
|
"next": "*",
|
|
37
37
|
"react": "^19.2.0",
|