@t2ca/gatsby-theme-showcase 1.0.14 → 1.0.16

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.14",
3
+ "version": "1.0.16",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -26,18 +26,18 @@
26
26
  "@emotion/styled": "^10.0.17",
27
27
  "@hot-loader/react-dom": "^16.9.0",
28
28
  "@mdx-js/mdx": "^1.4.0",
29
- "@theme-ui/components": "^0.3.0-alpha.4",
30
- "@theme-ui/preset-bootstrap": "^0.3.0-alpha.4",
31
- "@theme-ui/preset-tailwind": "^0.3.0-alpha.4",
32
- "@theme-ui/sidenav": "^0.3.0-alpha.4",
33
- "@theme-ui/typography": "^0.3.0-alpha.4",
29
+ "@theme-ui/components": "^0.3.0-alpha.6",
30
+ "@theme-ui/preset-bootstrap": "^0.3.0-alpha.6",
31
+ "@theme-ui/preset-tailwind": "^0.3.0-alpha.6",
32
+ "@theme-ui/sidenav": "^0.3.0-alpha.6",
33
+ "@theme-ui/typography": "^0.3.0-alpha.6",
34
34
  "deepmerge": "^4.0.0",
35
35
  "gatsby": "^2.13.3",
36
36
  "gatsby-image": "^2.2.7",
37
37
  "gatsby-plugin-emotion": "^4.1.2",
38
38
  "gatsby-plugin-mdx": "^1.0.33",
39
39
  "gatsby-plugin-sharp": "^2.2.9",
40
- "gatsby-plugin-theme-ui": "^0.3.0-alpha.4",
40
+ "gatsby-plugin-theme-ui": "^0.3.0-alpha.6",
41
41
  "gatsby-remark-images": "^3.1.7",
42
42
  "gatsby-source-filesystem": "^2.1.4",
43
43
  "gatsby-transformer-json": "^2.2.2",
@@ -49,7 +49,7 @@
49
49
  "react-spring": "^8.0.27",
50
50
  "react-switch": "^5.0.0",
51
51
  "remark-slug": "^5.1.2",
52
- "theme-ui": "^0.3.0-alpha.4"
52
+ "theme-ui": "^0.3.0-alpha.6"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "gatsby build",
@@ -1,11 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
- import { jsx, Flex, Container } from "theme-ui"
3
+ import { jsx, Box, Container } from "theme-ui"
4
4
 
5
5
  export default ({ name }) => {
6
6
  return (
7
- <Flex sx={{ backgroundColor: "#1b1c1d", color: "white" }}>
8
- <Container sx={{ px: 3, py: 4 }}>{name}</Container>
9
- </Flex>
7
+ <Box bg="#1b1c1d" sx={{ color: `white` }} p={4}>
8
+ <Container>{name}</Container>
9
+ </Box>
10
10
  )
11
11
  }
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
3
  import { Link } from "gatsby"
4
- import { jsx, Container, Flex } from "theme-ui"
4
+ import { jsx, Container, Box } from "theme-ui"
5
5
 
6
6
  import MenuButton from "./menu-button"
7
7
  import NavLink from "./nav-link"
@@ -9,10 +9,11 @@ import ColorModeToggle from "./color-mode-toggle"
9
9
 
10
10
  export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
11
11
  return (
12
- <Flex
12
+ <Box
13
+ p={4}
13
14
  sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 2 }}
14
15
  >
15
- <Container sx={{ py: 0, px: 4 }}>
16
+ <Container>
16
17
  <div
17
18
  sx={{
18
19
  display: `flex`,
@@ -63,6 +64,6 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
63
64
  </div>
64
65
  </div>
65
66
  </Container>
66
- </Flex>
67
+ </Box>
67
68
  )
68
69
  }
@@ -1,13 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from "react"
3
- import { jsx, useColorMode } from "theme-ui"
3
+ import { jsx } from "theme-ui"
4
4
  import { Link } from "gatsby"
5
5
 
6
6
  import Icon from "./icon"
7
7
 
8
- const MobileNavItem = ({ linkTo, label, icon, isDark }) => {
9
- const [colorMode] = useColorMode()
10
-
8
+ const MobileNavItem = ({ linkTo, label, icon }) => {
11
9
  const linkStyles = {
12
10
  borderRadius: 1,
13
11
  color: `text`,
@@ -1,8 +1,8 @@
1
1
  export default {
2
2
  Container: {
3
- // py: 3,
4
- // width: ["100%", "90%"],
5
- // maxWidth: "1168px",
3
+ py: 3,
4
+ width: ["100%", "90%"],
5
+ maxWidth: "1168px",
6
6
  },
7
7
  Header: {
8
8
  primary: {