@graphcommerce/magento-cart-shipping-method 10.0.0-canary.67 → 10.0.0-canary.68

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,5 +1,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.0.0-canary.68
4
+
3
5
  ## 10.0.0-canary.67
4
6
 
5
7
  ## 10.0.0-canary.66
@@ -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={{ display: available ? undefined : 'none' }}
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.67",
5
+ "version": "10.0.0-canary.68",
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.67",
19
- "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.67",
20
- "@graphcommerce/framer-scroller": "^10.0.0-canary.67",
21
- "@graphcommerce/graphql": "^10.0.0-canary.67",
22
- "@graphcommerce/image": "^10.0.0-canary.67",
23
- "@graphcommerce/magento-cart": "^10.0.0-canary.67",
24
- "@graphcommerce/magento-cart-shipping-address": "^10.0.0-canary.67",
25
- "@graphcommerce/magento-store": "^10.0.0-canary.67",
26
- "@graphcommerce/next-config": "^10.0.0-canary.67",
27
- "@graphcommerce/next-ui": "^10.0.0-canary.67",
28
- "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.67",
29
- "@graphcommerce/react-hook-form": "^10.0.0-canary.67",
30
- "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.67",
18
+ "@graphcommerce/ecommerce-ui": "^10.0.0-canary.68",
19
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.68",
20
+ "@graphcommerce/framer-scroller": "^10.0.0-canary.68",
21
+ "@graphcommerce/graphql": "^10.0.0-canary.68",
22
+ "@graphcommerce/image": "^10.0.0-canary.68",
23
+ "@graphcommerce/magento-cart": "^10.0.0-canary.68",
24
+ "@graphcommerce/magento-cart-shipping-address": "^10.0.0-canary.68",
25
+ "@graphcommerce/magento-store": "^10.0.0-canary.68",
26
+ "@graphcommerce/next-config": "^10.0.0-canary.68",
27
+ "@graphcommerce/next-ui": "^10.0.0-canary.68",
28
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.68",
29
+ "@graphcommerce/react-hook-form": "^10.0.0-canary.68",
30
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.68",
31
31
  "@lingui/core": "^5",
32
32
  "@lingui/macro": "^5",
33
33
  "@lingui/react": "^5",
34
- "@mui/material": "^5.10.16",
34
+ "@mui/material": "^7.0.0",
35
35
  "framer-motion": "^11.0.0",
36
36
  "next": "*",
37
37
  "react": "^19.2.0",