@graphcommerce/next-ui 3.21.14 → 3.21.15

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.
@@ -1,5 +1,4 @@
1
1
  import { Container, makeStyles, Theme } from '@material-ui/core'
2
- import clsx from 'clsx'
3
2
  import React from 'react'
4
3
  import { UseStyles } from '../../Styles'
5
4
 
@@ -7,22 +6,18 @@ const useStyles = makeStyles(
7
6
  (theme: Theme) => ({
8
7
  root: {
9
8
  position: 'sticky',
9
+ top: theme.appShell.headerHeightSm,
10
10
  zIndex: 96,
11
- },
12
- fillMobileOnly: {
13
11
  [theme.breakpoints.up('md')]: {
14
12
  top: `${theme.page.vertical} !important`,
15
13
  },
16
14
  },
17
15
  }),
18
- {
19
- name: 'AppShellSticky',
20
- },
16
+ { name: 'AppShellSticky' },
21
17
  )
22
18
 
23
19
  type AppShellStickyBaseProps = {
24
20
  children: React.ReactNode
25
- headerFill?: 'mobile-only' | 'both'
26
21
  }
27
22
 
28
23
  type AppShellStickyProps = AppShellStickyBaseProps & UseStyles<typeof useStyles>
@@ -32,18 +27,11 @@ type AppShellStickyProps = AppShellStickyBaseProps & UseStyles<typeof useStyles>
32
27
  - determines top offset based on header height dynamically
33
28
  */
34
29
  export default function AppShellSticky(props: AppShellStickyProps) {
35
- const { children, headerFill = 'both' } = props
30
+ const { children } = props
36
31
  const classes = useStyles(props)
37
32
 
38
- // todo
39
- const top = 0
40
-
41
33
  return (
42
- <Container
43
- maxWidth={false}
44
- className={clsx(classes.root, headerFill === 'mobile-only' && classes.fillMobileOnly)}
45
- style={{ top }}
46
- >
34
+ <Container maxWidth={false} className={classes.root}>
47
35
  <>{children}</>
48
36
  </Container>
49
37
  )
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.21.15](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.14...@graphcommerce/next-ui@3.21.15) (2021-12-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * make sure the filters are aligned properly on mobile ([4bfe978](https://github.com/ho-nl/m2-pwa/commit/4bfe978f095c1b9867608c138eccf3227b18d4e9))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.21.13](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.12...@graphcommerce/next-ui@3.21.13) (2021-12-23)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.21.14",
3
+ "version": "3.21.15",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.5.6",
13
- "@graphcommerce/framer-next-pages": "^2.108.10",
14
- "@graphcommerce/framer-scroller": "^1.1.24",
13
+ "@graphcommerce/framer-next-pages": "^2.108.11",
14
+ "@graphcommerce/framer-scroller": "^1.1.25",
15
15
  "@graphcommerce/framer-utils": "^2.103.20",
16
16
  "@graphcommerce/graphql": "^2.105.12",
17
17
  "@graphcommerce/image": "^2.105.11",
@@ -52,5 +52,5 @@
52
52
  "project": "./tsconfig.json"
53
53
  }
54
54
  },
55
- "gitHead": "ce4499b06791f3b2e54a7e88bfca40abbcd1401c"
55
+ "gitHead": "a9174584cfeb04807a72b6c609175c24e24ac818"
56
56
  }