@graphcommerce/magento-cart-shipping-method 3.5.9 → 3.6.2

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,48 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`755d2cf83`](https://github.com/graphcommerce-org/graphcommerce/commit/755d2cf83343a5ad3d61063eff595d821de360aa), [`dc7f2dda4`](https://github.com/graphcommerce-org/graphcommerce/commit/dc7f2dda40ff8572fc11161de6eb62ca13e720dd)]:
8
+ - @graphcommerce/next-ui@4.23.0
9
+ - @graphcommerce/framer-scroller@2.1.34
10
+ - @graphcommerce/magento-cart@4.7.2
11
+ - @graphcommerce/magento-cart-shipping-address@3.4.2
12
+ - @graphcommerce/magento-store@4.2.30
13
+
14
+ ## 3.6.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies []:
19
+ - @graphcommerce/magento-store@4.2.29
20
+ - @graphcommerce/magento-cart@4.7.1
21
+ - @graphcommerce/magento-cart-shipping-address@3.4.1
22
+
23
+ ## 3.6.0
24
+
25
+ ### Minor Changes
26
+
27
+ - [#1602](https://github.com/graphcommerce-org/graphcommerce/pull/1602) [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Default styles and layout fixes
28
+
29
+ - Scaled icons and fonts down. Size in typography is now more gradual: https://graphcommerce.vercel.app/test/typography
30
+ - Multiple accessibility fixes. Missing button/input labels, and fixed spacing issues resulting in high % appropriately sized tap targets
31
+ - Replaced responsiveVal usage with better performaning breakpointVal where possible
32
+ - All buttons are now Pill by default.
33
+ - Cleaned up checkout styles
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [[`04708dacc`](https://github.com/graphcommerce-org/graphcommerce/commit/04708daccc213c6ea927bc67fa3bd0d5b1fad619), [`bb94e7045`](https://github.com/graphcommerce-org/graphcommerce/commit/bb94e7045460cb671c45d612a0833731d7c20c30), [`b0dc4e2e1`](https://github.com/graphcommerce-org/graphcommerce/commit/b0dc4e2e1982d502d38dd50a0f493396360a7a15), [`4a5286dfe`](https://github.com/graphcommerce-org/graphcommerce/commit/4a5286dfeaa1719e594a0078f274fbab53969c4e), [`d46d5ed0c`](https://github.com/graphcommerce-org/graphcommerce/commit/d46d5ed0cc5794391b7527fc17bbb68ec2212e33), [`e573278e4`](https://github.com/graphcommerce-org/graphcommerce/commit/e573278e43506a6b17a2981e61d0e9fad41eb2eb), [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315), [`ac6eedbb1`](https://github.com/graphcommerce-org/graphcommerce/commit/ac6eedbb14d3abd8cf1231a98dc2a8b7f4659f1f)]:
38
+ - @graphcommerce/next-ui@4.22.0
39
+ - @graphcommerce/magento-cart@4.7.0
40
+ - @graphcommerce/magento-cart-shipping-address@3.4.0
41
+ - @graphcommerce/magento-store@4.2.28
42
+ - @graphcommerce/framer-scroller@2.1.33
43
+ - @graphcommerce/graphql@3.4.7
44
+ - @graphcommerce/image@3.1.9
45
+
3
46
  ## 3.5.9
4
47
 
5
48
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import { Money } from '@graphcommerce/magento-store'
2
2
  import { ActionCard, ActionCardItemRenderProps } from '@graphcommerce/next-ui'
3
3
  import { Trans } from '@lingui/react'
4
- import { Box, Button } from '@mui/material'
4
+ import { Box, Button, Chip } from '@mui/material'
5
5
  import { AvailableShippingMethodFragment } from '../../AvailableShippingMethod/AvailableShippingMethod.gql'
6
6
 
7
7
  type ShippingMethodActionCardProps = ActionCardItemRenderProps<
@@ -25,6 +25,8 @@ export function ShippingMethodActionCard(props: ShippingMethodActionCardProps) {
25
25
 
26
26
  if (carrier_code !== 'freeshipping') hidden = !available ? true : hidden
27
27
 
28
+ if (hidden) return false
29
+
28
30
  const title =
29
31
  carrier_title === 'Free Shipping' ? carrier_title : `${carrier_title} ${method_title}`
30
32
 
@@ -48,9 +50,14 @@ export function ShippingMethodActionCard(props: ShippingMethodActionCardProps) {
48
50
  !isFree ? (
49
51
  <Money {...amount} />
50
52
  ) : (
51
- <Box sx={{ color: '#05C642' }}>
52
- <Trans id='Free' />
53
- </Box>
53
+ <Chip
54
+ sx={{
55
+ borderRadius: 2,
56
+ fontWeight: 'initial',
57
+ fontVariationSettings: 'initial',
58
+ }}
59
+ label={<Trans id='Free' />}
60
+ />
54
61
  )
55
62
  }
56
63
  reset={
@@ -91,7 +91,7 @@ export function ShippingMethodForm(props: ShippingMethodFormProps) {
91
91
  return (
92
92
  <FormProvider {...form}>
93
93
  <Form onSubmit={submit} noValidate sx={sx}>
94
- <FormHeader variant='h3' sx={(theme) => ({ marginBottom: 0, mb: theme.spacings.sm })}>
94
+ <FormHeader variant='h4' sx={(theme) => ({ marginBottom: 0, mb: theme.spacings.sm })}>
95
95
  <Trans id='Shipping method' />
96
96
  </FormHeader>
97
97
 
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": "3.5.9",
5
+ "version": "3.6.2",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,13 +19,13 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/framer-scroller": "2.1.32",
23
- "@graphcommerce/graphql": "3.4.6",
24
- "@graphcommerce/image": "3.1.8",
25
- "@graphcommerce/magento-cart": "4.6.9",
26
- "@graphcommerce/magento-cart-shipping-address": "3.3.9",
27
- "@graphcommerce/magento-store": "4.2.27",
28
- "@graphcommerce/next-ui": "4.21.0",
22
+ "@graphcommerce/framer-scroller": "2.1.34",
23
+ "@graphcommerce/graphql": "3.4.7",
24
+ "@graphcommerce/image": "3.1.9",
25
+ "@graphcommerce/magento-cart": "4.7.2",
26
+ "@graphcommerce/magento-cart-shipping-address": "3.4.2",
27
+ "@graphcommerce/magento-store": "4.2.30",
28
+ "@graphcommerce/next-ui": "4.23.0",
29
29
  "@graphcommerce/react-hook-form": "3.3.2"
30
30
  },
31
31
  "peerDependencies": {