Skip to content

Commit

Permalink
Merge pull request #2043 from system-ui/remove-emotion-styled-2
Browse files Browse the repository at this point in the history
Remove @emotion/styled usage
  • Loading branch information
hasparus committed Mar 21, 2022
2 parents f20e2ba + 7b4d915 commit 10b33de
Show file tree
Hide file tree
Showing 119 changed files with 2,894 additions and 3,118 deletions.
12 changes: 12 additions & 0 deletions MIGRATING.md
@@ -1,5 +1,17 @@
# Migration Guides

## v0.14

- `theme-ui`, `@theme-ui/components` and `@theme-ui/mdx` packages no longer
depend on `@emotion/styled`.

- Previously deprecated `Component.withComponent` API was removed.

- `as` prop was removed from Themed.X components from `@theme-ui/mdx`.

- All occurences of `<Themed.X as="element">` can be changed to
`<element sx={t => t.styles.X} />`.

## v0.13

**Moved Emotion and `@mdx-js/react` to peerDependencies to solve context
Expand Down
1 change: 0 additions & 1 deletion examples/gatsby-plugin/package.json
Expand Up @@ -13,7 +13,6 @@
},
"dependencies": {
"@emotion/react": "^11.8.1",
"@emotion/styled": "^11.8.1",
"@mdx-js/mdx": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"gatsby": "^4.7.2",
Expand Down
1 change: 0 additions & 1 deletion examples/gatsby/package.json
Expand Up @@ -13,7 +13,6 @@
},
"dependencies": {
"@emotion/react": "^11.8.1",
"@emotion/styled": "^11.8.1",
"@mdx-js/mdx": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"gatsby": "^4.7.2",
Expand Down
1 change: 0 additions & 1 deletion examples/next/package.json
Expand Up @@ -13,7 +13,6 @@
},
"dependencies": {
"@emotion/react": "^11.7.1",
"@emotion/styled": "^11.6.0",
"@mdx-js/loader": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@next/mdx": "^12.0.7",
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Expand Up @@ -17,6 +17,7 @@ const config = {
'/style-guide/',
'tailwind.config.js',
'/dist/',
'/__test-utils__/',
],
coverageReporters: ['lcov', 'text', 'html'],
collectCoverageFrom: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -13,6 +13,7 @@
"typecheck:tests": "tsc --noEmit -P ./tsconfig.test.json",
"logo": "yarn workspace docs logo",
"postinstall": "preconstruct dev",
"dev": "preconstruct dev",
"version:bump": "lerna version",
"version:bump-next": "lerna version prerelease --preid alpha --exact",
"release": "yarn clean && yarn build && yarn shipit",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/README.md
Expand Up @@ -6,7 +6,7 @@ Primitive layout, typographic, and other components for use with Theme UI.
separate installation is not required._

```sh
npm i @theme-ui/components @emotion/react @emotion/styled
npm i @theme-ui/components @emotion/react
```

https://theme-ui.com/components

0 comments on commit 10b33de

Please sign in to comment.