From 04ca47cea2d1a6b1b53aac2d776dec67e3990e97 Mon Sep 17 00:00:00 2001 From: John Gosset Date: Thu, 24 Oct 2019 10:04:32 -0400 Subject: [PATCH] Use v3 package imports in examples --- examples/aspect-ratio/deck.mdx | 3 +-- examples/head/deck.mdx | 2 +- examples/images/deck.mdx | 2 +- examples/layouts/deck.mdx | 2 +- examples/prism/deck.mdx | 5 ++--- examples/provider/deck.mdx | 2 +- examples/syntax-highlighting/deck.mdx | 3 +-- examples/themes/theme.js | 8 +++----- 8 files changed, 11 insertions(+), 16 deletions(-) diff --git a/examples/aspect-ratio/deck.mdx b/examples/aspect-ratio/deck.mdx index 82878f2..3036d4e 100644 --- a/examples/aspect-ratio/deck.mdx +++ b/examples/aspect-ratio/deck.mdx @@ -1,5 +1,4 @@ -import future from '@mdx-deck/themes/future' -import aspect from '@mdx-deck/themes/aspect' +import { future, aspect } from 'mdx-deck/themes' export const themes = [ future, diff --git a/examples/head/deck.mdx b/examples/head/deck.mdx index 236da97..c25d3b5 100644 --- a/examples/head/deck.mdx +++ b/examples/head/deck.mdx @@ -1,4 +1,4 @@ -import { Head } from '@mdx-deck/components' +import { Head } from 'mdx-deck' Hello diff --git a/examples/images/deck.mdx b/examples/images/deck.mdx index 9951233..ac393fb 100644 --- a/examples/images/deck.mdx +++ b/examples/images/deck.mdx @@ -1,6 +1,6 @@ import { Image, -} from '@mdx-deck/components' +} from 'mdx-deck' # Hello! diff --git a/examples/layouts/deck.mdx b/examples/layouts/deck.mdx index f5efc4e..e4dee31 100644 --- a/examples/layouts/deck.mdx +++ b/examples/layouts/deck.mdx @@ -4,7 +4,7 @@ import { SplitRight, Horizontal, FullScreenCode, -} from '@mdx-deck/layouts' +} from 'mdx-deck' # Hello! diff --git a/examples/prism/deck.mdx b/examples/prism/deck.mdx index 17b5969..1e0f11a 100644 --- a/examples/prism/deck.mdx +++ b/examples/prism/deck.mdx @@ -1,9 +1,8 @@ -import future from '@mdx-deck/themes/future' -import highlight from '@mdx-deck/themes/syntax-highlighter-prism' +import { future, prism } from 'mdx-deck/themes' export const themes = [ future, - highlight + prism ] # Hello! diff --git a/examples/provider/deck.mdx b/examples/provider/deck.mdx index e315869..ebd10c6 100644 --- a/examples/provider/deck.mdx +++ b/examples/provider/deck.mdx @@ -1,4 +1,4 @@ -import comic from '@mdx-deck/themes/comic' +import { comic } from 'mdx-deck/themes' import theme from './theme' export const themes = [ diff --git a/examples/syntax-highlighting/deck.mdx b/examples/syntax-highlighting/deck.mdx index 5a12749..3fb5eae 100644 --- a/examples/syntax-highlighting/deck.mdx +++ b/examples/syntax-highlighting/deck.mdx @@ -1,5 +1,4 @@ -import future from '@mdx-deck/themes/future' -import highlight from '@mdx-deck/themes/syntax-highlighter' +import { future, highlight } from 'mdx-deck/themes' export const themes = [ future, diff --git a/examples/themes/theme.js b/examples/themes/theme.js index a242982..26a8d69 100644 --- a/examples/themes/theme.js +++ b/examples/themes/theme.js @@ -1,7 +1,7 @@ import React, { useState, useContext } from 'react' import { ThemeProvider } from 'emotion-theming' import { MDXProvider } from '@mdx-js/react' -import * as themes from '@mdx-deck/themes' +import * as themes from 'mdx-deck/themes' const names = Object.keys(themes) @@ -35,16 +35,14 @@ const Provider = props => { right: 0, bottom: 0, margin: 16, - }} - > + }}>