@graphcommerce/magento-cart-coupon 9.1.0-canary.32 → 9.1.0-canary.33

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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.1.0-canary.33
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2486](https://github.com/graphcommerce-org/graphcommerce/pull/2486) [`e09873e`](https://github.com/graphcommerce-org/graphcommerce/commit/e09873ebccfca167e9ffe9873d9a26d104cb6623) - Align coupon accordion with other accordion types that can still expand with chips rendered ([@paales](https://github.com/paales))
8
+
3
9
  ## 9.1.0-canary.32
4
10
 
5
11
  ## 9.1.0-canary.31
@@ -7,7 +7,7 @@ import {
7
7
  } from '@graphcommerce/next-ui'
8
8
  import { Trans } from '@lingui/react'
9
9
  import type { AccordionProps, SxProps, Theme } from '@mui/material'
10
- import { Accordion, AccordionDetails, AccordionSummary } from '@mui/material'
10
+ import { Accordion, AccordionDetails, AccordionSummary, Box } from '@mui/material'
11
11
  import { useState } from 'react'
12
12
  import { ApplyCouponForm } from '../ApplyCouponForm/ApplyCouponForm'
13
13
  import { RemoveCouponForm } from '../RemoveCouponForm/RemoveCouponForm'
@@ -57,13 +57,14 @@ export function CouponAccordion(props: CouponAccordionProps) {
57
57
  >
58
58
  <AccordionSummary
59
59
  onClick={(e) => e.preventDefault()}
60
- expandIcon={!coupon && <IconSvg src={iconChevronDown} />}
60
+ expandIcon={<IconSvg src={iconChevronDown} style={{ opacity: coupon ? 0 : 1 }} />}
61
61
  sx={[
62
62
  (theme) => ({
63
63
  px: theme.spacings.xs,
64
64
  '& .MuiAccordionSummary-content': {
65
65
  alignItems: 'center',
66
- columnGap: 2,
66
+ columnGap: theme.spacings.xxs,
67
+ pr: theme.spacings.xxs,
67
68
  justifyContent: 'space-between',
68
69
  },
69
70
  }),
@@ -74,8 +75,10 @@ export function CouponAccordion(props: CouponAccordionProps) {
74
75
  },
75
76
  ]}
76
77
  >
77
- <Trans id='Discount code' />
78
- <RemoveCouponForm {...data.cart} />
78
+ <Box sx={{ flex: 1 }}>
79
+ <Trans id='Discount code' />
80
+ </Box>
81
+ <RemoveCouponForm {...data.cart} sx={{ flex: 0 }} />
79
82
  </AccordionSummary>
80
83
  <AccordionDetails sx={(theme) => ({ px: theme.spacings.xs })}>
81
84
  <ApplyCouponForm />
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-coupon",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.32",
5
+ "version": "9.1.0-canary.33",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,16 +12,16 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.1.0-canary.32",
16
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.32",
17
- "@graphcommerce/graphql": "^9.1.0-canary.32",
18
- "@graphcommerce/image": "^9.1.0-canary.32",
19
- "@graphcommerce/magento-cart": "^9.1.0-canary.32",
20
- "@graphcommerce/magento-store": "^9.1.0-canary.32",
21
- "@graphcommerce/next-ui": "^9.1.0-canary.32",
22
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.32",
23
- "@graphcommerce/react-hook-form": "^9.1.0-canary.32",
24
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.32",
15
+ "@graphcommerce/ecommerce-ui": "^9.1.0-canary.33",
16
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.33",
17
+ "@graphcommerce/graphql": "^9.1.0-canary.33",
18
+ "@graphcommerce/image": "^9.1.0-canary.33",
19
+ "@graphcommerce/magento-cart": "^9.1.0-canary.33",
20
+ "@graphcommerce/magento-store": "^9.1.0-canary.33",
21
+ "@graphcommerce/next-ui": "^9.1.0-canary.33",
22
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.33",
23
+ "@graphcommerce/react-hook-form": "^9.1.0-canary.33",
24
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.33",
25
25
  "@lingui/core": "^4.2.1",
26
26
  "@lingui/macro": "^4.2.1",
27
27
  "@lingui/react": "^4.2.1",