@graphcommerce/graphcms-ui 2.104.15 → 2.104.19
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
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
## [2.104.18](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphcms-ui@2.104.17...@graphcommerce/graphcms-ui@2.104.18) (2021-11-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove hardcoded fontSize ([e4e09e1](https://github.com/ho-nl/m2-pwa/commit/e4e09e11baeb8edeff634550b8cdb88571d96911))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.104.16](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphcms-ui@2.104.15...@graphcommerce/graphcms-ui@2.104.16) (2021-11-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* various accessibility improvements ([47481a9](https://github.com/ho-nl/m2-pwa/commit/47481a9a882ba87968de6dd797557b0b275d75fb))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [2.104.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/graphcms-ui@2.104.8...@graphcommerce/graphcms-ui@2.104.9) (2021-11-02)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { responsiveVal } from '@graphcommerce/next-ui'
|
|
2
1
|
import { Theme, withStyles } from '@material-ui/core'
|
|
3
2
|
import RichText from '.'
|
|
4
3
|
|
|
5
4
|
const RichTextHeadingStrongStroked = withStyles((theme: Theme) => ({
|
|
6
5
|
h2: {
|
|
6
|
+
...theme.typography.h1,
|
|
7
|
+
fontSize: `calc(${theme.typography.h1.fontSize}*1.3)`,
|
|
7
8
|
textTransform: 'uppercase',
|
|
8
9
|
color: theme.palette.text.primary,
|
|
9
10
|
WebkitTextStroke: `0.9px ${theme.palette.text.primary}`,
|
|
10
|
-
fontSize: responsiveVal(18, 50),
|
|
11
|
-
marginTop: responsiveVal(8, 20),
|
|
12
|
-
marginBottom: responsiveVal(18, 20),
|
|
13
11
|
'& strong': {
|
|
14
12
|
color: 'transparent',
|
|
15
13
|
WebkitTextStroke: `0.9px ${theme.palette.text.primary}`,
|
|
16
14
|
},
|
|
17
15
|
[theme.breakpoints.up('md')]: {
|
|
18
|
-
fontSize: responsiveVal(18, 60),
|
|
19
16
|
WebkitTextStroke: `1.2x ${theme.palette.text.primary}`,
|
|
20
17
|
},
|
|
21
18
|
},
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { responsiveVal } from '@graphcommerce/next-ui'
|
|
2
1
|
import { Theme, withStyles } from '@material-ui/core'
|
|
3
2
|
import RichText from '.'
|
|
4
3
|
|
|
5
4
|
const RichTextHero = withStyles((theme: Theme) => ({
|
|
6
5
|
h1: {
|
|
6
|
+
...theme.typography.h1,
|
|
7
|
+
fontSize: `calc(${theme.typography.h1.fontSize}*1.5)`,
|
|
7
8
|
textTransform: 'uppercase',
|
|
8
9
|
maxWidth: '70%',
|
|
9
10
|
textAlign: 'center',
|
|
10
|
-
fontSize: responsiveVal(42, 50),
|
|
11
11
|
marginBottom: theme.spacings.md,
|
|
12
12
|
[theme.breakpoints.up('md')]: {
|
|
13
13
|
textAlign: 'left',
|
|
14
|
-
fontSize: responsiveVal(18, 90),
|
|
15
14
|
maxWidth: '100%',
|
|
16
15
|
},
|
|
17
16
|
'& strong': {
|
|
@@ -4,14 +4,15 @@ import RichText from '.'
|
|
|
4
4
|
|
|
5
5
|
const RichTextParagraphStrongStroked = withStyles((theme: Theme) => ({
|
|
6
6
|
paragraph: {
|
|
7
|
+
...theme.typography.body2,
|
|
7
8
|
textTransform: 'uppercase',
|
|
8
9
|
maxWidth: '100%',
|
|
9
10
|
fontWeight: 600,
|
|
10
11
|
textAlign: 'left',
|
|
11
|
-
fontSize: responsiveVal(11, 20),
|
|
12
12
|
[theme.breakpoints.up('md')]: {
|
|
13
|
+
...theme.typography.h3,
|
|
14
|
+
fontWeight: 600,
|
|
13
15
|
maxWidth: '100%',
|
|
14
|
-
fontSize: responsiveVal(16, 34),
|
|
15
16
|
},
|
|
16
17
|
'& strong': {
|
|
17
18
|
color: 'transparent',
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { responsiveVal } from '@graphcommerce/next-ui'
|
|
2
1
|
import { Theme, withStyles } from '@material-ui/core'
|
|
3
2
|
import RichText from '.'
|
|
4
3
|
|
|
5
4
|
const RichTextQuote = withStyles((theme: Theme) => ({
|
|
6
5
|
paragraph: {
|
|
6
|
+
...theme.typography.h4,
|
|
7
7
|
fontWeight: 600,
|
|
8
8
|
textTransform: 'uppercase',
|
|
9
9
|
maxWidth: '60%',
|
|
10
10
|
textAlign: 'center',
|
|
11
11
|
margin: '0 auto',
|
|
12
|
-
fontSize: responsiveVal(14, 26),
|
|
13
12
|
[theme.breakpoints.up('lg')]: {
|
|
14
13
|
maxWidth: '80%',
|
|
15
14
|
},
|
|
@@ -32,8 +32,6 @@ const useRichTextStyles = makeStyles(
|
|
|
32
32
|
h6: { '&:first-of-type': { marginTop: 0 } },
|
|
33
33
|
asset: { width: '100%', height: 'auto' },
|
|
34
34
|
blockQuote: {
|
|
35
|
-
color: '#777',
|
|
36
|
-
borderLeft: '4px solid #999',
|
|
37
35
|
paddingLeft: spacings.sm,
|
|
38
36
|
margin: `${spacings.md} 0`,
|
|
39
37
|
},
|
|
@@ -47,7 +45,6 @@ const useRichTextStyles = makeStyles(
|
|
|
47
45
|
maxWidth: '100%',
|
|
48
46
|
background: '#d8d8d8',
|
|
49
47
|
padding: 5,
|
|
50
|
-
fontSize: 17,
|
|
51
48
|
overflow: 'scroll',
|
|
52
49
|
},
|
|
53
50
|
aspectContainer: {
|
|
@@ -102,7 +99,7 @@ const useRichTextStyles = makeStyles(
|
|
|
102
99
|
minWidth: '150px',
|
|
103
100
|
},
|
|
104
101
|
|
|
105
|
-
'& p': {
|
|
102
|
+
'& p': {},
|
|
106
103
|
},
|
|
107
104
|
},
|
|
108
105
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/graphcms-ui",
|
|
3
|
-
"version": "2.104.
|
|
3
|
+
"version": "2.104.19",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.4.16",
|
|
24
24
|
"@graphcommerce/image": "^2.105.2",
|
|
25
|
-
"@graphcommerce/next-ui": "^3.
|
|
25
|
+
"@graphcommerce/next-ui": "^3.14.2",
|
|
26
26
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
27
27
|
"@material-ui/core": "^4.12.3",
|
|
28
28
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"react-dom": "^17.0.2",
|
|
32
32
|
"type-fest": "^2.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "4ea4a44e313b7474597ca86982ddceb10423af73"
|
|
35
35
|
}
|