@t2ca/gatsby-theme-showcase 1.0.58 → 1.0.60

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.58",
3
+ "version": "1.0.60",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -30,7 +30,7 @@
30
30
  "@theme-ui/preset-tailwind": "^0.4.0-rc.1",
31
31
  "@theme-ui/sidenav": "^0.4.0-rc.1",
32
32
  "@theme-ui/typography": "^0.4.0-rc.1",
33
- "framer-motion": "^1.10.3",
33
+ "framer-motion": "^2.1.0",
34
34
  "gatsby": "^2.13.3",
35
35
  "gatsby-image": "^2.2.7",
36
36
  "gatsby-plugin-emotion": "^4.1.2",
@@ -1,21 +1,11 @@
1
1
  /** @jsx jsx */
2
- import React from "react"
3
2
  import { jsx } from "theme-ui"
4
- import { AccordionNav } from "@theme-ui/sidenav"
3
+ import { Sidenav } from "@theme-ui/sidenav"
5
4
  import NavLink from "./nav-link"
6
- import MenuList from "../menu.mdx"
7
-
8
- const components = {
9
- wrapper: AccordionNav,
10
- a: NavLink,
11
- }
12
-
13
- export default ({ menuList, open }) => {
14
- const Menu = menuList || MenuList
15
5
 
6
+ export default ({ menuLinks, open }) => {
16
7
  return (
17
- <Menu
18
- components={components}
8
+ <Sidenav
19
9
  sx={{
20
10
  px: 3,
21
11
  pt: 3,
@@ -29,6 +19,15 @@ export default ({ menuList, open }) => {
29
19
  transform: [open ? "translateX(0)" : "translate(-100%) !important"],
30
20
  zIndex: 10,
31
21
  }}
32
- />
22
+ >
23
+ <ul sx={{ listStyle: `none`, p: 0, m: 0 }}>
24
+ {menuLinks &&
25
+ menuLinks.map(({ node: { label, link, id } }) => (
26
+ <li key={id}>
27
+ <NavLink to={link}>{label}</NavLink>
28
+ </li>
29
+ ))}
30
+ </ul>
31
+ </Sidenav>
33
32
  )
34
33
  }