Skip to content

Commit e3c5b38

Browse files
authored
Merge branch 'master' into feat/prism-ts
2 parents 96e572c + 93b9cfe commit e3c5b38

File tree

93 files changed

+7324
-1466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+7324
-1466
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
- Removes overriding property on editor combobox
66
- Adjust media query sort logic #600
77
- Fixed link to Gatsby Plugin page in `getting-started` page. Issue #602
8+
- Fix broken base-preset link on `theming` page
89

9-
## v0.3.0 2019-01-22
10+
## v0.3.0 2020-01-22
1011

1112
- Split theme-ui package into `@theme-ui/core`, `@theme-ui/mdx`, and `@theme-ui/color-modes`
1213
- Removes `context.components` (still available through MDX context)

examples/codesandbox-starter/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "theme-ui-starter",
33
"private": "true",
4-
"version": "0.4.0-alpha.0",
4+
"version": "0.4.0-alpha.1",
55
"description": "A sandbox configured with Theme UI, including the `base` theme.",
66
"main": "index.html",
77
"scripts": {
@@ -11,10 +11,10 @@
1111
"dependencies": {
1212
"@emotion/core": "^10.0.17",
1313
"@mdx-js/react": "^1.4.5",
14-
"@theme-ui/presets": "^0.4.0-alpha.0",
14+
"@theme-ui/presets": "^0.4.0-alpha.1",
1515
"react": "^16.12.0",
1616
"react-dom": "^16.9.0",
17-
"theme-ui": "^0.4.0-alpha.0"
17+
"theme-ui": "^0.4.0-alpha.1"
1818
},
1919
"devDependencies": {
2020
"@babel/core": "^7.7.4",

examples/custom-pragma/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "custom-pragma-example",
4-
"version": "0.4.0-alpha.0",
4+
"version": "0.4.0-alpha.1",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -17,6 +17,6 @@
1717
"gatsby-plugin-mdx": "^1.0.4",
1818
"react": "^16.8.6",
1919
"react-dom": "^16.8.6",
20-
"theme-ui": "^0.4.0-alpha.0"
20+
"theme-ui": "^0.4.0-alpha.1"
2121
}
2222
}

examples/dark-mode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "dark-mode-theme-ui-example",
4-
"version": "0.4.0-alpha.0",
4+
"version": "0.4.0-alpha.1",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -17,6 +17,6 @@
1717
"gatsby-plugin-mdx": "^1.0.4",
1818
"react": "^16.8.6",
1919
"react-dom": "^16.8.6",
20-
"theme-ui": "^0.4.0-alpha.0"
20+
"theme-ui": "^0.4.0-alpha.1"
2121
}
2222
}

examples/gatsby-plugin/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "gatsby-plugin-theme-ui-example",
4-
"version": "0.4.0-alpha.0",
4+
"version": "0.4.0-alpha.1",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -15,10 +15,10 @@
1515
"@mdx-js/react": "^1.0.16",
1616
"gatsby": "^2.6.3",
1717
"gatsby-plugin-mdx": "^1.0.4",
18-
"gatsby-plugin-theme-ui": "^0.4.0-alpha.0",
18+
"gatsby-plugin-theme-ui": "^0.4.0-alpha.1",
1919
"react": "^16.8.6",
2020
"react-dom": "^16.8.6",
21-
"theme-ui": "^0.4.0-alpha.0"
21+
"theme-ui": "^0.4.0-alpha.1"
2222
},
2323
"devDependencies": {
2424
"@testing-library/react": "^9.1.3",

examples/gatsby/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "gatsby-theme-ui-example",
4-
"version": "0.4.0-alpha.0",
4+
"version": "0.4.0-alpha.1",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -17,6 +17,6 @@
1717
"gatsby-plugin-mdx": "^1.0.4",
1818
"react": "^16.8.6",
1919
"react-dom": "^16.8.6",
20-
"theme-ui": "^0.4.0-alpha.0"
20+
"theme-ui": "^0.4.0-alpha.1"
2121
}
2222
}

examples/next/components/Header.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import React from 'react'
2-
import { useColorMode } from 'theme-ui'
2+
import { Button, useColorMode } from 'theme-ui'
33

4-
export default function Header() {
4+
const Header = () => {
55
const [colorMode, setColorMode] = useColorMode()
66
return (
77
<header>
8-
<button
8+
<Button
99
onClick={() => setColorMode(colorMode === 'light' ? 'dark' : 'light')}>
1010
Toggle {colorMode === 'light' ? 'Dark' : 'Light'}
11-
</button>
11+
</Button>
1212
</header>
1313
)
1414
}
15+
16+
export default Header

examples/next/next.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
const withMDX = require('@next/mdx')()
2-
module.exports = withMDX({
3-
pageExtensions: ['js', 'mdx'],
4-
})
2+
module.exports = withMDX({ pageExtensions: ['js', 'mdx'] })

examples/next/package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "next-theme-ui-example",
4-
"version": "0.4.0-alpha.0",
4+
"version": "0.4.0-alpha.1",
55
"main": "index.js",
66
"author": "Brent Jackson <[email protected]>",
77
"license": "MIT",
@@ -11,12 +11,11 @@
1111
"start": "next start"
1212
},
1313
"dependencies": {
14-
"@emotion/core": "^10.0.15",
15-
"@mdx-js/loader": "^1.0.19",
16-
"@next/mdx": "^9.0.3",
17-
"next": "^9.0.2",
18-
"react": "^16.8.6",
19-
"react-dom": "^16.8.6",
20-
"theme-ui": "^0.4.0-alpha.0"
14+
"@mdx-js/loader": "^1.5.8",
15+
"@next/mdx": "^9.3.4",
16+
"next": "^9.3.4",
17+
"react": "^16.13.1",
18+
"react-dom": "^16.13.1",
19+
"theme-ui": "^0.4.0-alpha.1"
2120
}
2221
}

examples/next/pages/_app.js

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
11
import React from 'react'
2-
import App from 'next/app'
3-
import { ThemeProvider, Styled } from 'theme-ui'
2+
import NextApp from 'next/app'
43

54
import Header from '../components/Header'
65
import theme from '../src/theme'
6+
import { ThemeProvider } from 'theme-ui'
77

8-
class MyApp extends App {
9-
// Only uncomment this method if you have blocking data requirements for
10-
// every single page in your application. This disables the ability to
11-
// perform automatic static optimization, causing every page in your app to
12-
// be server-side rendered.
13-
//
14-
// static async getInitialProps(appContext) {
15-
// // calls page's `getInitialProps` and fills `appProps.pageProps`
16-
// const appProps = await App.getInitialProps(appContext);
17-
//
18-
// return { ...appProps }
19-
// }
20-
8+
export default class App extends NextApp {
219
render() {
2210
const { Component, pageProps } = this.props
2311
return (
2412
<ThemeProvider theme={theme}>
2513
<Header />
26-
<Styled.root>
27-
<Component {...pageProps} />
28-
</Styled.root>
14+
<Component {...pageProps} />
2915
</ThemeProvider>
3016
)
3117
}
3218
}
33-
34-
export default MyApp

0 commit comments

Comments
 (0)