@t2ca/gatsby-theme-showcase 1.0.27 → 1.0.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -14,8 +14,8 @@
14
14
  "eslint-plugin-jsx-a11y": "^6.2.3",
15
15
  "eslint-plugin-prettier": "^3.1.0",
16
16
  "eslint-plugin-react": "^7.14.2",
17
- "eslint-plugin-react-hooks": "^2.0.0",
18
- "prettier": "^1.18.2"
17
+ "eslint-plugin-react-hooks": "^3.0.0",
18
+ "prettier": "^2.0.4"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "gatsby": "^2.13.3",
@@ -44,10 +44,10 @@
44
44
  "gatsby-transformer-remark": "^2.6.10",
45
45
  "gatsby-transformer-sharp": "^2.2.5",
46
46
  "gatsby-transformer-yaml": "^2.2.1",
47
- "react-helmet": "6.0.0-beta.2",
47
+ "react-helmet": "^6.0.0",
48
48
  "react-icons": "^3.7.0",
49
49
  "react-spring": "^8.0.27",
50
- "remark-slug": "^5.1.2",
50
+ "remark-slug": "^6.0.0",
51
51
  "theme-ui": "^0.3.0"
52
52
  },
53
53
  "scripts": {
@@ -26,7 +26,7 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
26
26
  return (
27
27
  <Box
28
28
  p={4}
29
- sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 2 }}
29
+ sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 1 }}
30
30
  >
31
31
  <Container>
32
32
  <div
@@ -39,7 +39,7 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
39
39
  {!menuOpen ? (
40
40
  <button
41
41
  title="Toggle Menu"
42
- onClick={e => {
42
+ onClick={(e) => {
43
43
  setMenuOpen(!menuOpen)
44
44
  // if (!props.menuOpen) return props.setMenuOpen(!props.menuOpen)
45
45
  if (!nav.current) return
@@ -38,13 +38,13 @@ const Layout = ({ header, main, children }) => {
38
38
 
39
39
  <div
40
40
  ref={nav}
41
- onFocus={e => {
41
+ onFocus={(e) => {
42
42
  setMenuOpen(true)
43
43
  }}
44
- onBlur={e => {
44
+ onBlur={(e) => {
45
45
  setMenuOpen(false)
46
46
  }}
47
- onClick={e => {
47
+ onClick={(e) => {
48
48
  setMenuOpen(false)
49
49
  }}
50
50
  >
@@ -59,7 +59,7 @@ const Layout = ({ header, main, children }) => {
59
59
  <div
60
60
  sx={{
61
61
  ...main,
62
- pt: `4.75rem`,
62
+ pt: `4.25rem`,
63
63
  pb: [`3.75rem`, `initial`],
64
64
  }}
65
65
  >