@graphcommerce/magento-cart-shipping-method 3.5.8 → 3.6.1

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,50 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @graphcommerce/magento-store@4.2.29
9
+ - @graphcommerce/magento-cart@4.7.1
10
+ - @graphcommerce/magento-cart-shipping-address@3.4.1
11
+
12
+ ## 3.6.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#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
17
+
18
+ - Scaled icons and fonts down. Size in typography is now more gradual: https://graphcommerce.vercel.app/test/typography
19
+ - Multiple accessibility fixes. Missing button/input labels, and fixed spacing issues resulting in high % appropriately sized tap targets
20
+ - Replaced responsiveVal usage with better performaning breakpointVal where possible
21
+ - All buttons are now Pill by default.
22
+ - Cleaned up checkout styles
23
+
24
+ ### Patch Changes
25
+
26
+ - 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)]:
27
+ - @graphcommerce/next-ui@4.22.0
28
+ - @graphcommerce/magento-cart@4.7.0
29
+ - @graphcommerce/magento-cart-shipping-address@3.4.0
30
+ - @graphcommerce/magento-store@4.2.28
31
+ - @graphcommerce/framer-scroller@2.1.33
32
+ - @graphcommerce/graphql@3.4.7
33
+ - @graphcommerce/image@3.1.9
34
+
35
+ ## 3.5.9
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [[`1f7ee6f6c`](https://github.com/graphcommerce-org/graphcommerce/commit/1f7ee6f6cfb28544439ed36e10929ac530d1b2b7), [`707dbc73d`](https://github.com/graphcommerce-org/graphcommerce/commit/707dbc73d181204d88fdbbd2e09340e25b2b5f7b)]:
40
+ - @graphcommerce/next-ui@4.21.0
41
+ - @graphcommerce/graphql@3.4.6
42
+ - @graphcommerce/framer-scroller@2.1.32
43
+ - @graphcommerce/magento-cart@4.6.9
44
+ - @graphcommerce/magento-cart-shipping-address@3.3.9
45
+ - @graphcommerce/magento-store@4.2.27
46
+ - @graphcommerce/image@3.1.8
47
+
3
48
  ## 3.5.8
4
49
 
5
50
  ### 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.8",
5
+ "version": "3.6.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,20 +12,20 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.9",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.10",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.4",
18
18
  "@playwright/test": "^1.21.1",
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/framer-scroller": "2.1.31",
23
- "@graphcommerce/graphql": "3.4.5",
24
- "@graphcommerce/image": "3.1.7",
25
- "@graphcommerce/magento-cart": "4.6.8",
26
- "@graphcommerce/magento-cart-shipping-address": "3.3.8",
27
- "@graphcommerce/magento-store": "4.2.26",
28
- "@graphcommerce/next-ui": "4.20.0",
22
+ "@graphcommerce/framer-scroller": "2.1.33",
23
+ "@graphcommerce/graphql": "3.4.7",
24
+ "@graphcommerce/image": "3.1.9",
25
+ "@graphcommerce/magento-cart": "4.7.1",
26
+ "@graphcommerce/magento-cart-shipping-address": "3.4.1",
27
+ "@graphcommerce/magento-store": "4.2.29",
28
+ "@graphcommerce/next-ui": "4.22.0",
29
29
  "@graphcommerce/react-hook-form": "3.3.2"
30
30
  },
31
31
  "peerDependencies": {