@graphcommerce/next-ui 3.12.0 → 3.12.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.
@@ -113,10 +113,13 @@ const useStyles = makeStyles(
113
113
  sheetHeaderActionRight: {
114
114
  justifySelf: 'flex-end',
115
115
  '& > .Mui-disabled': {
116
- opacity: 0.25,
117
- color: `${theme.palette.primary.contrastText} !important`,
118
- [theme.breakpoints.up('md')]: {
116
+ // color: `${theme.palette.primary.contrastText} !important`,
117
+ [theme.breakpoints.up('sm')]: {
118
+ opacity: 0.25,
119
119
  color: `${theme.palette.secondary.contrastText} !important`,
120
+ '& svg': {
121
+ stroke: `${theme.palette.secondary.contrastText} !important`,
122
+ },
120
123
  },
121
124
  },
122
125
  },
@@ -339,6 +342,7 @@ export default function AppShellHeader(props: AppShellHeaderProps) {
339
342
  <Button
340
343
  onClick={historyOnClick}
341
344
  variant='pill-link'
345
+ size='small'
342
346
  className={classes.backButton}
343
347
  startIcon={backIcon}
344
348
  >
package/Button/index.tsx CHANGED
@@ -3,9 +3,11 @@ import {
3
3
  ButtonClassKey as MuiButtonClassKey,
4
4
  Theme,
5
5
  makeStyles,
6
+ lighten,
6
7
  } from '@material-ui/core'
7
8
  import clsx from 'clsx'
8
9
  import React from 'react'
10
+ import { responsiveVal } from '..'
9
11
 
10
12
  type BaseButtonProps = Omit<Parameters<typeof MuiButton>['0'], 'variant' | 'classes'> & {
11
13
  variant?: 'text' | 'outlined' | 'contained' | 'pill' | 'pill-link'
@@ -56,18 +58,22 @@ const useStyles = makeStyles<
56
58
  borderRadius: '99em',
57
59
  },
58
60
  pillLink: {
59
- [theme.breakpoints.up('md')]: {
60
- background: theme.palette.secondary.main,
61
- color: theme.palette.secondary.contrastText,
62
- boxShadow: theme.shadows[6],
63
- borderRadius: 25,
64
- padding: '6px 16px',
61
+ [theme.breakpoints.up('sm')]: {
62
+ // manually match MuiButton and containedPrimary styles
63
+ textTransform: 'none',
64
+ ...theme.typography.body2,
65
+ fontWeight: 400,
66
+ padding: `${responsiveVal(8, 10)} ${responsiveVal(12, 22)}`,
67
+ backgroundColor: theme.palette.secondary.main,
68
+ color: theme.palette.primary.contrastText,
69
+ borderRadius: '99em',
70
+ boxShadow: theme.shadows[1],
71
+ '& svg': {
72
+ stroke: theme.palette.primary.contrastText,
73
+ },
65
74
  '&:hover': {
66
75
  background: theme.palette.secondary.dark,
67
76
  },
68
- '& svg': {
69
- stroke: theme.palette.secondary.contrastText,
70
- },
71
77
  },
72
78
  },
73
79
  pillPrimary: {
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.12.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.12.0...@graphcommerce/next-ui@3.12.1) (2021-11-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * RemoveCoupon Button and fix pill-link style to match buttons ([6838812](https://github.com/ho-nl/m2-pwa/commit/68388123773fb4f79a3e4b1beb7ecca601d7748e))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.12.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.11.5...@graphcommerce/next-ui@3.12.0) (2021-11-02)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -53,5 +53,5 @@
53
53
  "project": "./tsconfig.json"
54
54
  }
55
55
  },
56
- "gitHead": "b37db76e3e0dfc34a2b25068be5e6c7afcca6bfa"
56
+ "gitHead": "034145dd36551a6c71be6c51f0f1560ef50cb77a"
57
57
  }