Skip to content

Commit 10b33de

Browse files
authored
Merge pull request #2043 from system-ui/remove-emotion-styled-2
Remove @emotion/styled usage
2 parents f20e2ba + 7b4d915 commit 10b33de

File tree

119 files changed

+2894
-3118
lines changed

Some content is hidden

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

119 files changed

+2894
-3118
lines changed

MIGRATING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Migration Guides
22

3+
## v0.14
4+
5+
- `theme-ui`, `@theme-ui/components` and `@theme-ui/mdx` packages no longer
6+
depend on `@emotion/styled`.
7+
8+
- Previously deprecated `Component.withComponent` API was removed.
9+
10+
- `as` prop was removed from Themed.X components from `@theme-ui/mdx`.
11+
12+
- All occurences of `<Themed.X as="element">` can be changed to
13+
`<element sx={t => t.styles.X} />`.
14+
315
## v0.13
416

517
**Moved Emotion and `@mdx-js/react` to peerDependencies to solve context

examples/gatsby-plugin/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"dependencies": {
1515
"@emotion/react": "^11.8.1",
16-
"@emotion/styled": "^11.8.1",
1716
"@mdx-js/mdx": "^1.6.22",
1817
"@mdx-js/react": "^1.6.22",
1918
"gatsby": "^4.7.2",

examples/gatsby/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"dependencies": {
1515
"@emotion/react": "^11.8.1",
16-
"@emotion/styled": "^11.8.1",
1716
"@mdx-js/mdx": "^1.6.22",
1817
"@mdx-js/react": "^1.6.22",
1918
"gatsby": "^4.7.2",

examples/next/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"dependencies": {
1515
"@emotion/react": "^11.7.1",
16-
"@emotion/styled": "^11.6.0",
1716
"@mdx-js/loader": "^1.6.22",
1817
"@mdx-js/react": "^1.6.22",
1918
"@next/mdx": "^12.0.7",

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const config = {
1717
'/style-guide/',
1818
'tailwind.config.js',
1919
'/dist/',
20+
'/__test-utils__/',
2021
],
2122
coverageReporters: ['lcov', 'text', 'html'],
2223
collectCoverageFrom: [

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"typecheck:tests": "tsc --noEmit -P ./tsconfig.test.json",
1414
"logo": "yarn workspace docs logo",
1515
"postinstall": "preconstruct dev",
16+
"dev": "preconstruct dev",
1617
"version:bump": "lerna version",
1718
"version:bump-next": "lerna version prerelease --preid alpha --exact",
1819
"release": "yarn clean && yarn build && yarn shipit",

packages/components/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Primitive layout, typographic, and other components for use with Theme UI.
66
separate installation is not required._
77

88
```sh
9-
npm i @theme-ui/components @emotion/react @emotion/styled
9+
npm i @theme-ui/components @emotion/react
1010
```
1111

1212
https://theme-ui.com/components

0 commit comments

Comments
 (0)