@graphcommerce/next-ui 3.14.5 → 3.15.0
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/AppShell/Footer/index.tsx +4 -22
- package/AppShell/MenuFab.tsx +2 -3
- package/CHANGELOG.md +34 -0
- package/Page/Document.tsx +3 -2
- package/package.json +2 -2
- package/types.d.ts +9 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { ContainerProps, Theme, makeStyles, Container } from '@material-ui/core'
|
|
2
|
-
import clsx from 'clsx'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
import { UseStyles } from '../../Styles'
|
|
5
4
|
|
|
6
5
|
const useStyles = makeStyles(
|
|
7
6
|
(theme: Theme) => ({
|
|
8
7
|
footer: {
|
|
9
|
-
gridTemplateColumns: '
|
|
8
|
+
gridTemplateColumns: '5fr 3fr',
|
|
10
9
|
gridTemplateAreas: `
|
|
11
10
|
'social switcher'
|
|
12
11
|
'links support'
|
|
13
12
|
`,
|
|
14
13
|
borderTop: `1px solid ${theme.palette.divider}`,
|
|
15
|
-
padding: `${theme.page.vertical} ${theme.page.horizontal}
|
|
14
|
+
padding: `${theme.page.vertical} ${theme.page.horizontal}`,
|
|
16
15
|
display: 'grid',
|
|
17
16
|
gap: theme.spacings.xs,
|
|
18
17
|
alignItems: 'center',
|
|
@@ -36,11 +35,6 @@ const useStyles = makeStyles(
|
|
|
36
35
|
justifyContent: 'space-between',
|
|
37
36
|
},
|
|
38
37
|
},
|
|
39
|
-
disableMargin: {
|
|
40
|
-
[theme.breakpoints.down('xs')]: {
|
|
41
|
-
marginBottom: 0,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
38
|
copyright: {
|
|
45
39
|
display: 'grid',
|
|
46
40
|
gridAutoFlow: 'column',
|
|
@@ -86,7 +80,6 @@ const useStyles = makeStyles(
|
|
|
86
80
|
)
|
|
87
81
|
|
|
88
82
|
type FooterProps = UseStyles<typeof useStyles> & {
|
|
89
|
-
disableMargin?: boolean
|
|
90
83
|
storeSwitcher?: React.ReactNode
|
|
91
84
|
socialLinks?: React.ReactElement
|
|
92
85
|
customerService?: React.ReactNode
|
|
@@ -94,22 +87,11 @@ type FooterProps = UseStyles<typeof useStyles> & {
|
|
|
94
87
|
} & Omit<ContainerProps, 'children'>
|
|
95
88
|
|
|
96
89
|
export default function Footer(props: FooterProps) {
|
|
97
|
-
const {
|
|
98
|
-
disableMargin,
|
|
99
|
-
socialLinks,
|
|
100
|
-
storeSwitcher,
|
|
101
|
-
customerService,
|
|
102
|
-
copyright,
|
|
103
|
-
...containerProps
|
|
104
|
-
} = props
|
|
90
|
+
const { socialLinks, storeSwitcher, customerService, copyright, ...containerProps } = props
|
|
105
91
|
const classes = useStyles(props)
|
|
106
92
|
|
|
107
93
|
return (
|
|
108
|
-
<Container
|
|
109
|
-
maxWidth={false}
|
|
110
|
-
className={clsx(classes.footer, disableMargin && classes.disableMargin)}
|
|
111
|
-
{...containerProps}
|
|
112
|
-
>
|
|
94
|
+
<Container maxWidth={false} className={classes.footer} {...containerProps}>
|
|
113
95
|
<div className={classes.social}>{socialLinks}</div>
|
|
114
96
|
<div className={classes.storeSwitcher}>{storeSwitcher}</div>
|
|
115
97
|
<div className={classes.support}>{customerService}</div>
|
package/AppShell/MenuFab.tsx
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,40 @@
|
|
|
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.15.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.14.8...@graphcommerce/next-ui@3.15.0) (2021-11-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* lingui configuration and integration greatly simplified and fixed ssr ([d8ec22a](https://github.com/ho-nl/m2-pwa/commit/d8ec22a80295af854a4cf6f357c4fb137c5b550d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.14.8](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.14.7...@graphcommerce/next-ui@3.14.8) (2021-11-09)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **menu-fab:** revert h3 styling for mobile menu ([7a45b4f](https://github.com/ho-nl/m2-pwa/commit/7a45b4fb8b0165f7a072bc0658833c819c9f8082))
|
|
23
|
+
* restyle menu to h4 ([642e166](https://github.com/ho-nl/m2-pwa/commit/642e16635dc06f38bed91ffd1a374922ac70439b))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.14.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.14.6...@graphcommerce/next-ui@3.14.7) (2021-11-09)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* make sure the translations are ran ([9d77807](https://github.com/ho-nl/m2-pwa/commit/9d7780711fc1d66884a7465e18d175a6a1d40abb))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
6
40
|
## [3.14.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.14.2...@graphcommerce/next-ui@3.14.3) (2021-11-06)
|
|
7
41
|
|
|
8
42
|
|
package/Page/Document.tsx
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ServerStyleSheets } from '@material-ui/core/styles'
|
|
2
|
-
|
|
2
|
+
// eslint-disable-next-line @next/next/no-document-import-in-page
|
|
3
|
+
import NextDocument, { DocumentContext, DocumentInitialProps } from 'next/document'
|
|
3
4
|
import React from 'react'
|
|
4
5
|
|
|
5
6
|
export default class Document extends NextDocument {
|
|
6
|
-
static getInitialProps = async (ctx: DocumentContext) => {
|
|
7
|
+
static getInitialProps = async (ctx: DocumentContext): Promise<DocumentInitialProps> => {
|
|
7
8
|
const sheets = new ServerStyleSheets()
|
|
8
9
|
const originalRenderPage = ctx.renderPage
|
|
9
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
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": "
|
|
56
|
+
"gitHead": "0d7e797850cec8d51ef8d88937a104aab6af4c35"
|
|
57
57
|
}
|
package/types.d.ts
CHANGED
|
@@ -11,3 +11,12 @@ declare module 'react' {
|
|
|
11
11
|
loading?: 'lazy' | 'eager' | 'auto'
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
declare module '*.po' {
|
|
16
|
+
const messages: Record<
|
|
17
|
+
string,
|
|
18
|
+
string | Array<string | Array<string | (string | undefined) | Record<string, unknown>>>
|
|
19
|
+
>
|
|
20
|
+
|
|
21
|
+
export const messages
|
|
22
|
+
}
|