mirror of
https://github.com/jxnblk/mdx-deck.git
synced 2024-12-01 21:42:08 +03:00
Merge branch 'master' into v2-prototype
This commit is contained in:
commit
d0115b826b
@ -13,6 +13,10 @@
|
|||||||
- Removed `notes` language attribute for fenced code blocks
|
- Removed `notes` language attribute for fenced code blocks
|
||||||
- Refactored dev server
|
- Refactored dev server
|
||||||
|
|
||||||
|
## v1.10.0 2019-02-18
|
||||||
|
|
||||||
|
- Update to Babel 7
|
||||||
|
|
||||||
## v1.9.0 2019-02-18
|
## v1.9.0 2019-02-18
|
||||||
|
|
||||||
- Fix for font size in nested lists #204
|
- Fix for font size in nested lists #204
|
||||||
|
@ -15,7 +15,9 @@ const babel = {
|
|||||||
presets: ['@babel/preset-env', '@babel/preset-react'].map(require.resolve),
|
presets: ['@babel/preset-env', '@babel/preset-react'].map(require.resolve),
|
||||||
plugins: [
|
plugins: [
|
||||||
'@babel/plugin-proposal-class-properties',
|
'@babel/plugin-proposal-class-properties',
|
||||||
|
'@babel/plugin-proposal-export-default-from',
|
||||||
'@babel/plugin-proposal-export-namespace-from',
|
'@babel/plugin-proposal-export-namespace-from',
|
||||||
|
'@babel/plugin-syntax-dynamic-import',
|
||||||
'babel-plugin-styled-components',
|
'babel-plugin-styled-components',
|
||||||
].map(require.resolve),
|
].map(require.resolve),
|
||||||
}
|
}
|
||||||
|
899
package-lock.json
generated
899
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mdx-deck",
|
"name": "mdx-deck",
|
||||||
"version": "1.9.0",
|
"version": "1.10.0",
|
||||||
"description": "MDX-based presentation decks",
|
"description": "MDX-based presentation decks",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
@ -19,7 +19,9 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.2.2",
|
"@babel/core": "^7.2.2",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.3.0",
|
"@babel/plugin-proposal-class-properties": "^7.3.0",
|
||||||
|
"@babel/plugin-proposal-export-default-from": "^7.0.0",
|
||||||
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
|
"@babel/plugin-proposal-export-namespace-from": "^7.2.0",
|
||||||
|
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
||||||
"@babel/preset-env": "^7.3.1",
|
"@babel/preset-env": "^7.3.1",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"@mdx-js/mdx": "^0.15.7",
|
"@mdx-js/mdx": "^0.15.7",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
|
|
||||||
const FullCode = styled.div([], {
|
const FullCode = styled.div({
|
||||||
width: '100vw',
|
width: '100vw',
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
@ -14,4 +14,4 @@ const FullCode = styled.div([], {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
export default FullCode
|
export default props => <FullCode {...props} />
|
||||||
|
@ -1,20 +1,24 @@
|
|||||||
|
import React from 'react'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
import { color } from 'styled-system'
|
import { color } from 'styled-system'
|
||||||
|
|
||||||
const Invert = styled.div([], {
|
const Invert = styled.div(
|
||||||
|
{
|
||||||
width: '100vw',
|
width: '100vw',
|
||||||
height: '100vh',
|
height: '100vh',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
'& a': {
|
'& a': {
|
||||||
color: 'inherit'
|
color: 'inherit',
|
||||||
}
|
},
|
||||||
}, color)
|
},
|
||||||
|
color
|
||||||
|
)
|
||||||
|
|
||||||
Invert.defaultProps = {
|
Invert.defaultProps = {
|
||||||
color: 'background',
|
color: 'background',
|
||||||
bg: 'text'
|
bg: 'text',
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Invert
|
export default props => <Invert {...props} />
|
||||||
|
@ -52,14 +52,10 @@ exports[`renders h1 1`] = `
|
|||||||
.c0 {
|
.c0 {
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
margin-bottom: 16px;
|
|
||||||
margin-top: 16px;
|
|
||||||
color: heading;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<h1
|
<h1
|
||||||
className="c0"
|
className="-h1 c0"
|
||||||
color="heading"
|
|
||||||
fontSize={4}
|
fontSize={4}
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
@ -68,14 +64,10 @@ exports[`renders h2 1`] = `
|
|||||||
.c0 {
|
.c0 {
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin-bottom: 16px;
|
|
||||||
margin-top: 16px;
|
|
||||||
color: heading;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<h2
|
<h2
|
||||||
className="c0"
|
className="-h2 c0"
|
||||||
color="heading"
|
|
||||||
fontSize={3}
|
fontSize={3}
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
@ -84,14 +76,10 @@ exports[`renders h3 1`] = `
|
|||||||
.c0 {
|
.c0 {
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin-bottom: 16px;
|
|
||||||
margin-top: 16px;
|
|
||||||
color: heading;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<h3
|
<h3
|
||||||
className="c0"
|
className="-h3 c0"
|
||||||
color="heading"
|
|
||||||
fontSize={2}
|
fontSize={2}
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
@ -99,21 +87,18 @@ exports[`renders h3 1`] = `
|
|||||||
exports[`renders h4 1`] = `
|
exports[`renders h4 1`] = `
|
||||||
<h4
|
<h4
|
||||||
className=""
|
className=""
|
||||||
fontSize={2}
|
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`renders h5 1`] = `
|
exports[`renders h5 1`] = `
|
||||||
<h5
|
<h5
|
||||||
className=""
|
className=""
|
||||||
fontSize={2}
|
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`renders h6 1`] = `
|
exports[`renders h6 1`] = `
|
||||||
<h6
|
<h6
|
||||||
className=""
|
className=""
|
||||||
fontSize={2}
|
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -429,13 +429,10 @@ Array [
|
|||||||
className="c1"
|
className="c1"
|
||||||
/>
|
/>
|
||||||
</div>,
|
</div>,
|
||||||
.c1 {
|
.c0 {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
|
||||||
|
|
||||||
.c0 {
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -443,18 +440,15 @@ Array [
|
|||||||
}
|
}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="c0 c1"
|
className="c0"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
role="button"
|
role="button"
|
||||||
title="Previous Slide"
|
title="Previous Slide"
|
||||||
/>,
|
/>,
|
||||||
.c1 {
|
.c0 {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
|
||||||
|
|
||||||
.c0 {
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -462,7 +456,7 @@ Array [
|
|||||||
}
|
}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="c0 c1"
|
className="c0"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
role="button"
|
role="button"
|
||||||
title="Next Slide"
|
title="Next Slide"
|
||||||
|
Loading…
Reference in New Issue
Block a user