diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index be79858fa..1fee27e49 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -7,7 +7,6 @@ **/types.ts @hasparus **/types.tsx @hasparus -# packages/chrome DEPRECATED packages/color @hasparus packages/color-modes @hasparus packages/components @atanasster @@ -18,7 +17,6 @@ packages/docs @lachlanjc @hasparus # packages/editor looking for maintainers! # packages/gatsby-plugin-theme-ui looking for maintainers! # packages/gatsby-theme-style-guide looking for maintainers! -# packages/gatsby-theme-ui-blog looking for maintainers! # packages/gatsby-theme-ui-layout looking for maintainers! packages/match-media @hasparus packages/mdx @hasparus diff --git a/deprecated/chrome/.gitignore b/deprecated/chrome/.gitignore deleted file mode 100644 index 5647a1375..000000000 --- a/deprecated/chrome/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -!public -public/bundle \ No newline at end of file diff --git a/deprecated/chrome/README.md b/deprecated/chrome/README.md deleted file mode 100644 index 9844bd860..000000000 --- a/deprecated/chrome/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# Theme UI Devtools - -Chrome devtools extension for editing Theme UI styles in the browser. - -## Status: Deprecated. - -This package is not compatible with current Theme UI version. - -See [Blocks UI](https://github.com/blocks/blocks) for a theme editor and JSX page builder. - -## Installation - -1. [Download extension](https://github.com/system-ui/theme-ui/tree/stable/packages/chrome/public) -1. Navigate to chrome://extensions/ -1. Enable "Developer mode" -1. Click "LOAD UNPACKED" -1. Select extracted downloaded extension folder - -## Local Development - -1. Run `yarn __prepare` (or `yarn watch`) -1. Load unpacked extension from the `public/` directory diff --git a/deprecated/chrome/global.d.ts b/deprecated/chrome/global.d.ts deleted file mode 100644 index 06879d895..000000000 --- a/deprecated/chrome/global.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export {} - -declare global { - interface Window { - chrome: any - } -} diff --git a/deprecated/chrome/package.json b/deprecated/chrome/package.json deleted file mode 100644 index f8cb2f64e..000000000 --- a/deprecated/chrome/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "private": true, - "name": "@theme-ui/chrome", - "version": "0.5.0-alpha.0", - "main": "dist/chrome.cjs.js", - "author": "Brent Jackson", - "license": "MIT", - "scripts": { - "__prepare": "webpack --mode=production", - "watch": "webpack --watch --mode=production", - "icon:128": "npx capture-website-cli 'https://contrast.now.sh/cff/40f?size=128&fontSize=2&baseline=2&fontWeight=900&radius=32&text=UI' --width=128 --height=128 --overwrite public/icons/128.png", - "icon:48": "npx capture-website-cli 'https://contrast.now.sh/cff/40f?size=48&fontSize=2&baseline=2&fontWeight=900&radius=32&text=UI' --width=48 --height=48 --overwrite public/icons/48.png", - "icon:16": "npx capture-website-cli 'https://contrast.now.sh/cff/40f?size=16&fontSize=2&baseline=2&fontWeight=900&radius=32&text=UI' --width=16 --height=16 --overwrite public/icons/16.png", - "icons": "yarn icon:128 && yarn icon:48 && yarn icon:16" - }, - "dependencies": { - "@babel/cli": "^7.4.4", - "@babel/core": "^7.4.5", - "@babel/preset-env": "^7.4.5", - "@babel/preset-react": "^7.0.0", - "@theme-ui/editor": "^0.5.0-alpha.0", - "babel-loader": "^8.0.6", - "copy-to-clipboard": "^3.2.0", - "lodash.debounce": "^4.0.8", - "lodash.merge": "^4.6.2", - "react": "^16.14.0", - "react-dom": "^16.14.0", - "stringify-object": "^3.3.0", - "theme-ui": "^0.5.0-alpha.0", - "webpack": "^4.33.0", - "webpack-cli": "^3.3.4", - "@emotion/react": "^11.1.1" - }, - "gitHead": "bfd026cae085f377ca537de897dc43233d50f5d5", - "module": "dist/chrome.esm.js" -} diff --git a/deprecated/chrome/public/devtools.html b/deprecated/chrome/public/devtools.html deleted file mode 100644 index 3664d5cfe..000000000 --- a/deprecated/chrome/public/devtools.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/deprecated/chrome/public/devtools.js b/deprecated/chrome/public/devtools.js deleted file mode 100644 index aee9cb367..000000000 --- a/deprecated/chrome/public/devtools.js +++ /dev/null @@ -1,17 +0,0 @@ -const checkForThemeUI = () => { - return new Promise((resolve, reject) => { - window.chrome.devtools.inspectedWindow.eval( - `window.__THEME_UI__.theme`, - (result, err) => (err ? resolve(false) : resolve(true)) - ) - }) -} - -checkForThemeUI() - .then((hasThemeUI) => { - if (!hasThemeUI) return - chrome.devtools.panels.elements.createSidebarPane('Theme UI', sidebar => { - sidebar.setPage('panel.html') - }) - }) - diff --git a/deprecated/chrome/public/icons/128.png b/deprecated/chrome/public/icons/128.png deleted file mode 100644 index 2f1ac9a70..000000000 Binary files a/deprecated/chrome/public/icons/128.png and /dev/null differ diff --git a/deprecated/chrome/public/icons/16.png b/deprecated/chrome/public/icons/16.png deleted file mode 100644 index 95381543e..000000000 Binary files a/deprecated/chrome/public/icons/16.png and /dev/null differ diff --git a/deprecated/chrome/public/icons/48.png b/deprecated/chrome/public/icons/48.png deleted file mode 100644 index 121fd95bd..000000000 Binary files a/deprecated/chrome/public/icons/48.png and /dev/null differ diff --git a/deprecated/chrome/public/manifest.json b/deprecated/chrome/public/manifest.json deleted file mode 100644 index ee06da877..000000000 --- a/deprecated/chrome/public/manifest.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "Theme UI Devtools", - "description": "Edit colors, typography, and other styles for sites built with Theme UI", - "version": "0.2.41", - "manifest_version": 2, - "minimum_chrome_version": "10.0", - "devtools_page": "devtools.html", - "icons": { - "16": "icons/16.png", - "48": "icons/48.png", - "128": "icons/128.png" - } -} diff --git a/deprecated/chrome/public/panel.html b/deprecated/chrome/public/panel.html deleted file mode 100644 index 5c1b89875..000000000 --- a/deprecated/chrome/public/panel.html +++ /dev/null @@ -1,6 +0,0 @@ - - -
- diff --git a/deprecated/chrome/src/index.tsx b/deprecated/chrome/src/index.tsx deleted file mode 100644 index 1f100a93b..000000000 --- a/deprecated/chrome/src/index.tsx +++ /dev/null @@ -1,161 +0,0 @@ -/** @jsx jsx */ -import { jsx } from 'theme-ui' -import { - useReducer, - useEffect, - useRef, - useState, - FunctionComponent, -} from 'react' -import { render } from 'react-dom' -import debounce from 'lodash.debounce' -import merge from 'lodash.merge' -import copyToClipboard from 'copy-to-clipboard' -import { - Editor, - Row, - ColorPalette, - ColorMode, - Fonts, - FontWeights, - LineHeights, - FontSizes, - Space, - // @ts-ignore -} from '@theme-ui/editor' -import { Theme } from '@theme-ui/css' - -interface DevToolsExceptionInfo { - isError: boolean - code: string - description: string - details: any[] - isException: boolean - value: string -} - -const runScript = (script: string) => - new Promise((resolve, reject) => { - debounce(window.chrome.devtools.inspectedWindow.eval, 100)( - script, - (result: object, err: DevToolsExceptionInfo) => { - if (err) { - console.error(err) - reject(err) - } - resolve(result) - } - ) - }) - -type StateWithColorMode = { colorMode?: string; theme?: Theme } -const mergeState = (state: StateWithColorMode, next: StateWithColorMode) => - merge({}, state, next) - -const CopyTheme = ({ theme }: { theme: Theme }) => { - const [copied, setCopied] = useState(false) - const timer = useRef(0) - - const handleClick = () => { - setCopied(true) - copyToClipboard(JSON.stringify(theme)) - clearInterval(timer.current) - timer.current = window.setInterval(() => setCopied(false), 1000) - } - - return ( - - ) -} - -const Spacer = () =>
- -const App: FunctionComponent = () => { - const dark = window.chrome.devtools.panels.themeName === 'dark' - - const [state, setState] = useReducer(mergeState, {}) - - const getTheme = () => { - runScript(`window.__THEME_UI__.theme`).then(resolvedTheme => { - const theme = resolvedTheme as StateWithColorMode['theme'] - setState({ theme }) - }) - } - - const getColorMode = () => { - runScript(`window.__THEME_UI__.colorMode`).then(resolvedColorMode => { - const colorMode = resolvedColorMode as StateWithColorMode['colorMode'] - setState({ colorMode }) - }) - } - - const setTheme = (nextTheme: Theme) => { - const json = JSON.stringify(nextTheme) - runScript(`window.__THEME_UI__.setTheme(${json})`) - setState({ theme: nextTheme }) - } - - const setColorMode = (nextMode: Theme['initialColorModeName']) => { - setState({ colorMode: nextMode }) - runScript(`window.__THEME_UI__.setColorMode('${nextMode}')`) - } - - useEffect(() => { - getColorMode() - }, []) - - useEffect(() => { - getTheme() - }, [state.colorMode]) - - const context = { - ...state, - setTheme, - setColorMode, - } - - if (!context.theme) return null - - return ( - - - {context.colorMode && } - - Fonts - - - - - Font Weights - - - - - Line Heights - - - - - Font Sizes - - - - - Space - - - - - - - ) -} - -render(, document.getElementById('root')) diff --git a/deprecated/chrome/src/theme.ts b/deprecated/chrome/src/theme.ts deleted file mode 100644 index 63b970951..000000000 --- a/deprecated/chrome/src/theme.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Theme } from '@theme-ui/css' - -const theme: Theme = { - initialColorModeName: 'light', - colors: { - text: '#000', - background: '#fff', - primary: '#33e', - secondary: '#119', - muted: '#e6e6e6', - highlight: '#ffffcc', - gray: '#777', - purple: '#609', - modes: { - dark: { - text: '#fff', - background: '#060606', - primary: '#e0f ', - secondary: '#3cf', - muted: '#252525', - highlight: '#ffffcc', - gray: '#999', - purple: '#c0f', - }, - }, - }, - fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 96, 128], - fonts: { - body: - 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif', - heading: 'inherit', - monospace: 'Menlo, monospace', - }, - fontWeights: { - body: 400, - heading: 700, - }, - lineHeights: { - body: 1.5, - heading: 1.25, - }, -} - -export default theme diff --git a/deprecated/gatsby-theme-ui-blog/README.md b/deprecated/gatsby-theme-ui-blog/README.md deleted file mode 100644 index c1de7f1da..000000000 --- a/deprecated/gatsby-theme-ui-blog/README.md +++ /dev/null @@ -1,68 +0,0 @@ -# gatsby-theme-ui-blog - -Minimal Gatsby MDX blog theme built with Theme UI. -Use this as a starting point for building custom blog themes with Theme UI. - -```sh -npm i gatsby-theme-ui-blog -``` - -```js -// gatsby-config.js -module.exports = { - plugins: ['gatsby-theme-ui-blog'], -} -``` - -## Shadowing - -Shadow the following components to customize styles and page layout: - -| Component | Description | Props | -| ------------------------------------ | ----------------------------------------------------------- | ------------------------------------------- | -------------------- | -| `src/gatsby-theme-ui-blog/posts.js` | Index page for all blog posts | `{ posts }` | -| `src/gatsby-theme-ui-blog/post.js` | Full blog post article page | `{ title, date, children, keywords, tags }` | -| `src/gatsby-theme-ui-blog/layout.js` | Wrapping layout component for the Post and Posts components | | all page-level props | - -## Theming - -Use `gatsby-plugin-theme-ui` to override or customize the theme. - -```sh -npm i gatsby-plugin-theme-ui -``` - -```js -// gatsby-config.js -module.exports = { - plugins: ['gatsby-theme-ui-blog', 'gatsby-plugin-theme-ui'], -} -``` - -```js -// shadow src/gatsby-plugin-theme-ui/index.js -import base from 'gatsby-theme-ui-blog/src/gatsby-plugin-theme-ui' - -export default { - ...base, - colors: { - text: 'white', - background: 'black', - primary: 'cyan', - secondary: 'magenta', - }, -} -``` - -## Options - -This theme is based off of [gatsby-theme-blog-core][] and uses all the same options. - -| Key | Default value | Description | -| ------------- | ---------------- | --------------------------------------------------------------------------------------------------------- | -| `basePath` | `/` | Root url for all blog posts | -| `contentPath` | `content/posts` | Location of blog posts | -| `assetPath` | `content/assets` | Location of assets | -| `mdx` | `true` | Configure `gatsby-plugin-mdx` (if your website already is using the plugin pass `false` to turn this off) | - -[gatsby-theme-blog-core]: https://www.npmjs.com/package/gatsby-theme-blog-core diff --git a/deprecated/gatsby-theme-ui-blog/content/assets/avatar.png b/deprecated/gatsby-theme-ui-blog/content/assets/avatar.png deleted file mode 100644 index 0503e1a0a..000000000 Binary files a/deprecated/gatsby-theme-ui-blog/content/assets/avatar.png and /dev/null differ diff --git a/deprecated/gatsby-theme-ui-blog/content/posts/hello.mdx b/deprecated/gatsby-theme-ui-blog/content/posts/hello.mdx deleted file mode 100644 index b20185522..000000000 --- a/deprecated/gatsby-theme-ui-blog/content/posts/hello.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Hello -date: 2019-08-14 ---- - -Hello, this is a blog theme built with `gatsby-theme-blog-core` and `theme-ui`. -It uses `@theme-ui/preset-base` for minimal styling, and can be completely overridden or customized using `gatsby-plugin-theme-ui`. -The pages generated by this theme contain no outer layout structure, making this theme a good starting point for building a custom blog with Theme UI. diff --git a/deprecated/gatsby-theme-ui-blog/gatsby-config.js b/deprecated/gatsby-theme-ui-blog/gatsby-config.js deleted file mode 100644 index cf9c208b3..000000000 --- a/deprecated/gatsby-theme-ui-blog/gatsby-config.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = (options) => ({ - plugins: [ - { - resolve: 'gatsby-theme-blog-core', - options, - }, - 'gatsby-theme-ui-layout', - 'gatsby-plugin-theme-ui', - ], -}) diff --git a/deprecated/gatsby-theme-ui-blog/index.js b/deprecated/gatsby-theme-ui-blog/index.js deleted file mode 100644 index 6723592cc..000000000 --- a/deprecated/gatsby-theme-ui-blog/index.js +++ /dev/null @@ -1 +0,0 @@ -// boop diff --git a/deprecated/gatsby-theme-ui-blog/package.json b/deprecated/gatsby-theme-ui-blog/package.json deleted file mode 100644 index e55568392..000000000 --- a/deprecated/gatsby-theme-ui-blog/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "gatsby-theme-ui-blog", - "version": "0.4.0-rc.0", - "main": "index.js", - "private": true, - "scripts": { - "avatar": "npx capture-website-cli \"https://contrast.now.sh/fff/33e?text=UI&size=48&fontSize=1.5&radius=32&baseline=1\" content/assets/avatar.png --width=48 --height=48 --overwrite" - }, - "peerDependencies": { - "gatsby": "^2.0.0 || ^3.0.0", - "react": "^16.14.0 || ^17.0.0", - "react-dom": "^16.8.0 || ^17.0.0" - }, - "devDependencies": { - "gatsby": "^2.13.73", - "react": "^16.14.0", - "react-dom": "^16.14.0" - }, - "dependencies": { - "@emotion/react": "^11.1.1", - "@mdx-js/react": "^1.6.22", - "@theme-ui/preset-base": "^0.4.0-alpha.0", - "gatsby-plugin-react-helmet": "^3.1.3", - "gatsby-plugin-theme-ui": "^0.4.0-rc.0", - "gatsby-theme-blog-core": "^1.0.2", - "gatsby-theme-ui-layout": "^0.4.0-alpha.0", - "react-helmet": "^5.2.1", - "theme-ui": "^0.4.0-rc.0" - }, - "repository": "system-ui/theme-ui", - "license": "MIT" -} diff --git a/deprecated/gatsby-theme-ui-blog/src/gatsby-plugin-theme-ui/index.js b/deprecated/gatsby-theme-ui-blog/src/gatsby-plugin-theme-ui/index.js deleted file mode 100644 index 877761bac..000000000 --- a/deprecated/gatsby-theme-ui-blog/src/gatsby-plugin-theme-ui/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from '@theme-ui/preset-base' diff --git a/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-blog-core/components/post.js b/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-blog-core/components/post.js deleted file mode 100644 index 5f1f3b251..000000000 --- a/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-blog-core/components/post.js +++ /dev/null @@ -1,14 +0,0 @@ -import { jsx } from 'theme-ui' -import { MDXRenderer } from 'gatsby-plugin-mdx' -import Post from '../../post' - -export default (props) => { - const { body } = props.data.blogPost - const children = jsx(MDXRenderer, { children: body }) - - return jsx(Post, { - ...props, - ...props.data.blogPost, - children, - }) -} diff --git a/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-blog-core/components/posts.js b/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-blog-core/components/posts.js deleted file mode 100644 index 8e605c23c..000000000 --- a/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-blog-core/components/posts.js +++ /dev/null @@ -1,11 +0,0 @@ -import { jsx } from 'theme-ui' -import Posts from '../../posts' - -export default (props) => { - const posts = props.data.allBlogPost.edges.map((e) => e.node) - - return jsx(Posts, { - ...props, - posts, - }) -} diff --git a/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-ui-layout/layout.js b/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-ui-layout/layout.js deleted file mode 100644 index d062344a1..000000000 --- a/deprecated/gatsby-theme-ui-blog/src/gatsby-theme-ui-layout/layout.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from '../layout' diff --git a/deprecated/gatsby-theme-ui-blog/src/head.js b/deprecated/gatsby-theme-ui-blog/src/head.js deleted file mode 100644 index e7838bc1e..000000000 --- a/deprecated/gatsby-theme-ui-blog/src/head.js +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react' -import { Helmet } from 'react-helmet' - -export default ({ lang = 'en-us', title, excerpt, ...props }) => ( - - {title && {title}} - {excerpt && } - -) diff --git a/deprecated/gatsby-theme-ui-blog/src/layout.js b/deprecated/gatsby-theme-ui-blog/src/layout.js deleted file mode 100644 index 63b43a5ca..000000000 --- a/deprecated/gatsby-theme-ui-blog/src/layout.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react' -import { Link } from 'gatsby' -import Head from './head' - -export default (props) => ( - <> - - {props.children} - -) diff --git a/deprecated/gatsby-theme-ui-blog/src/post.js b/deprecated/gatsby-theme-ui-blog/src/post.js deleted file mode 100644 index 8dc74410b..000000000 --- a/deprecated/gatsby-theme-ui-blog/src/post.js +++ /dev/null @@ -1,21 +0,0 @@ -/** @jsx jsx */ -import { jsx, Styled } from 'theme-ui' -import { Layout } from 'gatsby-theme-ui-layout' - -export default ({ - title, - date, - excerpt, - children, - keywords, - tags, - ...props -}) => ( - - - {title} -
{date}
- {children} -
-
-) diff --git a/deprecated/gatsby-theme-ui-blog/src/posts.js b/deprecated/gatsby-theme-ui-blog/src/posts.js deleted file mode 100644 index 5cb9c0eda..000000000 --- a/deprecated/gatsby-theme-ui-blog/src/posts.js +++ /dev/null @@ -1,18 +0,0 @@ -/** @jsx jsx */ -import { jsx, Styled } from 'theme-ui' -import { Link } from 'gatsby' -import { Layout } from 'gatsby-theme-ui-layout' - -export default ({ posts, ...props }) => ( - - -
    - {posts.map((post) => ( -
  • - {post.title} -
  • - ))} -
-
-
-) diff --git a/package.json b/package.json index 765ac2e98..d8a1147d4 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@testing-library/react": "^11.2.6", "@types/jest": "^26.0.22", "@types/node": "^15.0.1", - "@types/react-dom": "^17.0.3", + "@types/react-dom": "^17.0.8", "@types/react-test-renderer": "^17.0.1", "@typescript-eslint/eslint-plugin": "^4.22.1", "@typescript-eslint/parser": "^4.22.1", diff --git a/packages/color-modes/package.json b/packages/color-modes/package.json index 45073d7e4..0be163e7f 100644 --- a/packages/color-modes/package.json +++ b/packages/color-modes/package.json @@ -20,7 +20,7 @@ "deepmerge": "^4.2.2" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17" }, "devDependencies": { "react": "^17.0.1" diff --git a/packages/components/package.json b/packages/components/package.json index 01844f1bf..a90812aa9 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -16,7 +16,7 @@ "@types/styled-system": "^5.1.10" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17" }, "publishConfig": { "access": "public" diff --git a/packages/core/package.json b/packages/core/package.json index ef82a09fe..77a343f88 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,11 +20,7 @@ "deepmerge": "^4.2.2" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0" - }, - "devDependencies": { - "@types/react": "^17.0.0", - "react": "^17.0.1" + "react": "^16 || ^17" }, "preconstruct": { "entrypoints": [ diff --git a/packages/docs/src/pages/packages/gatsby-theme-ui-blog.mdx b/packages/docs/src/pages/packages/gatsby-theme-ui-blog.mdx index 3c80d687f..6499f63f8 100755 --- a/packages/docs/src/pages/packages/gatsby-theme-ui-blog.mdx +++ b/packages/docs/src/pages/packages/gatsby-theme-ui-blog.mdx @@ -2,16 +2,18 @@ title: gatsby-theme-ui-blog --- - + + +`gatsby-theme-ui-blog` package was deprecated after Theme UI v0.3.1. + + + +--- # gatsby-theme-ui-blog -Minimal Gatsby MDX blog theme built with Theme UI. -Use this as a starting point for building custom blog themes with Theme UI. +Minimal Gatsby MDX blog theme built with Theme UI. Use this as a starting point +for building custom blog themes with Theme UI. ```sh npm i gatsby-theme-ui-blog @@ -68,7 +70,8 @@ export default theme ## Options -This theme is based off of [gatsby-theme-blog-core][] and uses all the same options. +This theme is based off of [gatsby-theme-blog-core][] and uses all the same +options. | Key | Default value | Description | | ------------- | ---------------- | --------------------------------------------------------------------------------------------------------- | diff --git a/packages/docs/src/pages/packages/index.mdx b/packages/docs/src/pages/packages/index.mdx index 143cd28e9..eb0cd7e70 100644 --- a/packages/docs/src/pages/packages/index.mdx +++ b/packages/docs/src/pages/packages/index.mdx @@ -1,30 +1,29 @@ ---- -title: Packages ---- - -import { Cards } from '../..' - -# Packages - -In addition to the core library, Theme UI includes several optional packages. - - - -- [@theme-ui/core](/packages/core) -- [@theme-ui/components](/packages/components) -- [@theme-ui/mdx](/packages/mdx) -- [@theme-ui/presets](/packages/presets) -- [@theme-ui/prism](/packages/prism) -- [@theme-ui/color](/packages/color) -- [@theme-ui/style-guide](/packages/style-guide) -- [@theme-ui/editor](/packages/editor) -- [gatsby-plugin-theme-ui](/packages/gatsby-plugin) -- [gatsby-theme-style-guide](/packages/gatsby-theme-style-guide) -- [gatsby-theme-ui-blog](/packages/gatsby-theme-ui-blog) -- [@theme-ui/typography](/packages/typography) -- [@theme-ui/match-media](/packages/match-media) -- [@theme-ui/sidenav](/packages/sidenav) -- [@theme-ui/tachyons](/packages/tachyons) -- [@theme-ui/tailwind](/packages/tailwind) - - +--- +title: Packages +--- + +import { Cards } from '../..' + +# Packages + +In addition to the core library, Theme UI includes several optional packages. + + + +- [@theme-ui/core](/packages/core) +- [@theme-ui/components](/packages/components) +- [@theme-ui/mdx](/packages/mdx) +- [@theme-ui/presets](/packages/presets) +- [@theme-ui/prism](/packages/prism) +- [@theme-ui/color](/packages/color) +- [@theme-ui/style-guide](/packages/style-guide) +- [@theme-ui/editor](/packages/editor) +- [gatsby-plugin-theme-ui](/packages/gatsby-plugin) +- [gatsby-theme-style-guide](/packages/gatsby-theme-style-guide) +- [@theme-ui/typography](/packages/typography) +- [@theme-ui/match-media](/packages/match-media) +- [@theme-ui/sidenav](/packages/sidenav) +- [@theme-ui/tachyons](/packages/tachyons) +- [@theme-ui/tailwind](/packages/tailwind) + + diff --git a/packages/docs/src/sidebar.mdx b/packages/docs/src/sidebar.mdx index 6edfd717d..7b3a9d98b 100644 --- a/packages/docs/src/sidebar.mdx +++ b/packages/docs/src/sidebar.mdx @@ -1,113 +1,112 @@ -- [Getting Started](/getting-started) - - [Getting Started with Gatsby](/getting-started/gatsby) -- [Theming](/theming) -- [The `sx` Prop](/sx-prop) -- [Styling MDX](/styling-mdx) -- [Color Modes](/color-modes) -- [Themed](/themed) -- [MDX Components](/mdx-components) -- [Hooks](/hooks) -- [API](/api) -- [Theme Specification](/theme-spec) -- [Customize](/customize) -- [Demo](/demo) -- [Resources](/resources) -- [Components](/components) - - [Variants](/components/variants) - - [Box](/components/box) - - [Flex](/components/flex) - - [Grid](/components/grid) - - [Button](/components/button) - - [Text](/components/text) - - [Heading](/components/heading) - - [Link](/components/link) - - [Paragraph](/components/paragraph) - - [Image](/components/image) - - [Card](/components/card) - - [Forms](/components/forms) - - [Label](/components/label) - - [Input](/components/input) - - [Select](/components/select) - - [Textarea](/components/textarea) - - [Radio](/components/radio) - - [Checkbox](/components/checkbox) - - [Switch](/components/switch) - - [Slider](/components/slider) - - [Field](/components/field) - - [Progress](/components/progress) - - [Donut](/components/donut) - - [Spinner](/components/spinner) - - [Avatar](/components/avatar) - - [Badge](/components/badge) - - [Close](/components/close) - - [Alert](/components/alert) - - [Divider](/components/divider) - - [Embed](/components/embed) - - [AspectRatio](/components/aspect-ratio) - - [AspectImage](/components/aspect-image) - - [Container](/components/container) - - [NavLink](/components/nav-link) - - [Message](/components/message) - - [IconButton](/components/icon-button) - - [MenuButton](/components/menu-button) -- [Packages](/packages) - - [@theme-ui/core](/packages/core) - - [@theme-ui/components](/packages/components) - - [@theme-ui/mdx](/packages/mdx) - - [@theme-ui/presets](/packages/presets) - - [@theme-ui/prism](/packages/prism) - - [@theme-ui/color](/packages/color) - - [@theme-ui/style-guide](/packages/style-guide) - - [@theme-ui/editor](/packages/editor) - - [gatsby-plugin-theme-ui](/packages/gatsby-plugin) - - [gatsby-theme-style-guide](/packages/gatsby-theme-style-guide) - - [gatsby-theme-ui-blog](/packages/gatsby-theme-ui-blog) - - [@theme-ui/typography](/packages/typography) - - [@theme-ui/match-media](/packages/match-media) - - [@theme-ui/sidenav](/packages/sidenav) - - [@theme-ui/tachyons](/packages/tachyons) - - [@theme-ui/tailwind](/packages/tailwind) -- [Guides](/guides) - - [How it Works](/guides/how-it-works) - - [JSX Pragma](/guides/jsx-pragma) - - [Motivation](/guides/motivation) - - [Object Styles](/guides/object-styles) - - [Variants](/guides/variants) - - [Layouts](/guides/layouts) - - [Keyframes](/guides/keyframes) - - [Styled Components](/guides/styled-components) - - [MDX Layout Components](/guides/mdx-layout-components) - - [Responsive Typography](/guides/responsive-typography) - - [Nested ThemeProviders](/guides/nested-theme-providers) - - [Custom CacheProvider](/guides/custom-cache-provider) - - [Syntax Highlighting](/guides/syntax-highlighting) - - [Theme Color Meta Tag](/guides/theme-color-meta-tag) - - [Color Mode Toggles](/guides/color-mode-toggles) - - [Global Styles](/guides/global-styles) - - [Linked Headings](/guides/linked-headings) - - [Using without MDX](/guides/using-theme-ui-without-mdx) - - [Merging Themes](/guides/merging-themes) - - [TypeScript](/guides/typescript) -- [Recipes](/recipes) - - [Gatsby Link](/recipes/gatsby-link) - - [Flexbox Layout](/recipes/flexbox-layout) - - [CSS Grid](/recipes/css-grid) - - [Centered Container](/recipes/centered-container) - - [Tiled Layout](/recipes/tiled-layout) - - [Stack Layout](/recipes/stack) - - [Flexbox sidebar](/recipes/flexbox-sidebar) - - [Button](/recipes/button) - - [Header A1](/recipes/header-a1) - - [Header A2](/recipes/header-a2) - - [Header A3](/recipes/header-a3) - - [Header A4](/recipes/header-a4) - - [Header A5](/recipes/header-a5) - - [Footer A1](/recipes/footer-a1) - - [Footer A2](/recipes/footer-a2) - - [Footer A3](/recipes/footer-a3) - - [Footer A4](/recipes/footer-a4) - - [PostList A1](/recipes/post-list-a1) - - [PostList A2](/recipes/post-list-a2) - - [MDX Table Align](/recipes/mdx-table-align) -- [Migrating](/migrating) -- [GitHub](https://github.com/system-ui/theme-ui) +- [Getting Started](/getting-started) + - [Getting Started with Gatsby](/getting-started/gatsby) +- [Theming](/theming) +- [The `sx` Prop](/sx-prop) +- [Styling MDX](/styling-mdx) +- [Color Modes](/color-modes) +- [Themed](/themed) +- [MDX Components](/mdx-components) +- [Hooks](/hooks) +- [API](/api) +- [Theme Specification](/theme-spec) +- [Customize](/customize) +- [Demo](/demo) +- [Resources](/resources) +- [Components](/components) + - [Variants](/components/variants) + - [Box](/components/box) + - [Flex](/components/flex) + - [Grid](/components/grid) + - [Button](/components/button) + - [Text](/components/text) + - [Heading](/components/heading) + - [Link](/components/link) + - [Paragraph](/components/paragraph) + - [Image](/components/image) + - [Card](/components/card) + - [Forms](/components/forms) + - [Label](/components/label) + - [Input](/components/input) + - [Select](/components/select) + - [Textarea](/components/textarea) + - [Radio](/components/radio) + - [Checkbox](/components/checkbox) + - [Switch](/components/switch) + - [Slider](/components/slider) + - [Field](/components/field) + - [Progress](/components/progress) + - [Donut](/components/donut) + - [Spinner](/components/spinner) + - [Avatar](/components/avatar) + - [Badge](/components/badge) + - [Close](/components/close) + - [Alert](/components/alert) + - [Divider](/components/divider) + - [Embed](/components/embed) + - [AspectRatio](/components/aspect-ratio) + - [AspectImage](/components/aspect-image) + - [Container](/components/container) + - [NavLink](/components/nav-link) + - [Message](/components/message) + - [IconButton](/components/icon-button) + - [MenuButton](/components/menu-button) +- [Packages](/packages) + - [@theme-ui/core](/packages/core) + - [@theme-ui/components](/packages/components) + - [@theme-ui/mdx](/packages/mdx) + - [@theme-ui/presets](/packages/presets) + - [@theme-ui/prism](/packages/prism) + - [@theme-ui/color](/packages/color) + - [@theme-ui/style-guide](/packages/style-guide) + - [@theme-ui/editor](/packages/editor) + - [gatsby-plugin-theme-ui](/packages/gatsby-plugin) + - [gatsby-theme-style-guide](/packages/gatsby-theme-style-guide) + - [@theme-ui/typography](/packages/typography) + - [@theme-ui/match-media](/packages/match-media) + - [@theme-ui/sidenav](/packages/sidenav) + - [@theme-ui/tachyons](/packages/tachyons) + - [@theme-ui/tailwind](/packages/tailwind) +- [Guides](/guides) + - [How it Works](/guides/how-it-works) + - [JSX Pragma](/guides/jsx-pragma) + - [Motivation](/guides/motivation) + - [Object Styles](/guides/object-styles) + - [Variants](/guides/variants) + - [Layouts](/guides/layouts) + - [Keyframes](/guides/keyframes) + - [Styled Components](/guides/styled-components) + - [MDX Layout Components](/guides/mdx-layout-components) + - [Responsive Typography](/guides/responsive-typography) + - [Nested ThemeProviders](/guides/nested-theme-providers) + - [Custom CacheProvider](/guides/custom-cache-provider) + - [Syntax Highlighting](/guides/syntax-highlighting) + - [Theme Color Meta Tag](/guides/theme-color-meta-tag) + - [Color Mode Toggles](/guides/color-mode-toggles) + - [Global Styles](/guides/global-styles) + - [Linked Headings](/guides/linked-headings) + - [Using without MDX](/guides/using-theme-ui-without-mdx) + - [Merging Themes](/guides/merging-themes) + - [TypeScript](/guides/typescript) +- [Recipes](/recipes) + - [Gatsby Link](/recipes/gatsby-link) + - [Flexbox Layout](/recipes/flexbox-layout) + - [CSS Grid](/recipes/css-grid) + - [Centered Container](/recipes/centered-container) + - [Tiled Layout](/recipes/tiled-layout) + - [Stack Layout](/recipes/stack) + - [Flexbox sidebar](/recipes/flexbox-sidebar) + - [Button](/recipes/button) + - [Header A1](/recipes/header-a1) + - [Header A2](/recipes/header-a2) + - [Header A3](/recipes/header-a3) + - [Header A4](/recipes/header-a4) + - [Header A5](/recipes/header-a5) + - [Footer A1](/recipes/footer-a1) + - [Footer A2](/recipes/footer-a2) + - [Footer A3](/recipes/footer-a3) + - [Footer A4](/recipes/footer-a4) + - [PostList A1](/recipes/post-list-a1) + - [PostList A2](/recipes/post-list-a2) + - [MDX Table Align](/recipes/mdx-table-align) +- [Migrating](/migrating) +- [GitHub](https://github.com/system-ui/theme-ui) diff --git a/packages/editor/package.json b/packages/editor/package.json index 7b788444f..6062aebb8 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -22,8 +22,8 @@ }, "peerDependencies": { "@emotion/react": "^11.1.1", - "react": "^16.14.0 || ^17.0.0", - "react-dom": "^16.14.0 || ^17.0.0", + "react": "^16 || ^17", + "react-dom": "^16 || ^17", "theme-ui": ">= 0.7.0" }, "devDependencies": { diff --git a/packages/gatsby-theme-style-guide/package.json b/packages/gatsby-theme-style-guide/package.json index 568adadad..e72fccab8 100644 --- a/packages/gatsby-theme-style-guide/package.json +++ b/packages/gatsby-theme-style-guide/package.json @@ -6,8 +6,8 @@ "repository": "system-ui/theme-ui", "peerDependencies": { "gatsby": "^2.0.0 || ^3.0.0", - "react": "^16.14.0 || ^17.0.0", - "react-dom": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17", + "react-dom": "^16 || ^17" }, "devDependencies": { "gatsby": "^2.26.1", diff --git a/packages/gatsby-theme-ui-layout/package.json b/packages/gatsby-theme-ui-layout/package.json index 172b3e517..ff1c3fc5c 100644 --- a/packages/gatsby-theme-ui-layout/package.json +++ b/packages/gatsby-theme-ui-layout/package.json @@ -5,8 +5,8 @@ "repository": "system-ui/theme-ui", "peerDependencies": { "gatsby": "^2.0.0 || ^3.0.0", - "react": "^16.14.0 || ^17.0.0", - "react-dom": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17", + "react-dom": "^16 || ^17" }, "license": "MIT" } diff --git a/packages/match-media/package.json b/packages/match-media/package.json index 29b74e116..9a80b413c 100644 --- a/packages/match-media/package.json +++ b/packages/match-media/package.json @@ -20,7 +20,7 @@ "peerDependencies": { "@theme-ui/core": ">=0.6.0", "@theme-ui/css": ">=0.6.0", - "react": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17" }, "gitHead": "621199460fa3bdb0100748441e62517b7529b8c8" } diff --git a/packages/mdx/package.json b/packages/mdx/package.json index 670fef823..4f42fd225 100644 --- a/packages/mdx/package.json +++ b/packages/mdx/package.json @@ -17,7 +17,7 @@ "react": "^17.0.1" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17" }, "author": "Brent Jackson", "repository": "system-ui/theme-ui", diff --git a/packages/parse-props/package.json b/packages/parse-props/package.json index 181665c44..ffacd0212 100644 --- a/packages/parse-props/package.json +++ b/packages/parse-props/package.json @@ -22,11 +22,7 @@ "@theme-ui/css": "0.10.0" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0" - }, - "devDependencies": { - "@types/react": "^17.0.0", - "react": "^17.0.1" + "react": "^16 || ^17" }, "gitHead": "621199460fa3bdb0100748441e62517b7529b8c8" } diff --git a/packages/sidenav/package.json b/packages/sidenav/package.json index 1315591c1..2b4af6b9e 100644 --- a/packages/sidenav/package.json +++ b/packages/sidenav/package.json @@ -11,7 +11,7 @@ "access": "public" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17" }, "devDependencies": { "react": "^17.0.1" diff --git a/packages/style-guide/package.json b/packages/style-guide/package.json index 23809f8cb..7008ca1ef 100644 --- a/packages/style-guide/package.json +++ b/packages/style-guide/package.json @@ -16,7 +16,7 @@ "lodash.get": "^4.4.2" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0", + "react": "^16 || ^17", "theme-ui": "*" }, "devDependencies": { diff --git a/packages/theme-provider/package.json b/packages/theme-provider/package.json index a8cdc50e1..53cabc91b 100644 --- a/packages/theme-provider/package.json +++ b/packages/theme-provider/package.json @@ -14,7 +14,7 @@ "@theme-ui/mdx": "0.10.0" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17" }, "repository": "system-ui/theme-ui", "author": "Brent Jackson", diff --git a/packages/theme-ui/package.json b/packages/theme-ui/package.json index c404b0bd4..46e891e98 100644 --- a/packages/theme-ui/package.json +++ b/packages/theme-ui/package.json @@ -25,7 +25,7 @@ "@theme-ui/theme-provider": "0.10.0" }, "peerDependencies": { - "react": "^16.14.0 || ^17.0.0" + "react": "^16 || ^17" }, "keywords": [ "theme-ui", diff --git a/yarn.lock b/yarn.lock index b30c84f2e..3dc38f86a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3769,10 +3769,10 @@ "@types/react" "*" "@types/reactcss" "*" -"@types/react-dom@^17.0.3": - version "17.0.5" - resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.5.tgz#df44eed5b8d9e0b13bb0cd38e0ea6572a1231227" - integrity sha512-ikqukEhH4H9gr4iJCmQVNzTB307kROe3XFfHAOTxOXPOw7lAoEXnM5KWTkzeANGL5Ce6ABfiMl/zJBYNi7ObmQ== +"@types/react-dom@^17.0.8": + version "17.0.8" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.8.tgz#3180de6d79bf53762001ad854e3ce49f36dd71fc" + integrity sha512-0ohAiJAx1DAUEcY9UopnfwCE9sSMDGnY/oXjWMax6g3RpzmTt2GMyMVAXcbn0mo8XAff0SbQJl2/SBU+hjSZ1A== dependencies: "@types/react" "*" @@ -3783,7 +3783,7 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^17.0.0": +"@types/react@*": version "17.0.6" resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.6.tgz#0ec564566302c562bf497d73219797a5e0297013" integrity sha512-u/TtPoF/hrvb63LdukET6ncaplYsvCvmkceasx8oG84/ZCsoLxz9Z/raPBP4lTAiWW1Jb889Y9svHmv8R26dWw==