Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove @emotion/styled usage #2043

Merged
merged 45 commits into from Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e8ede46
chore: replace emotion/styled with emotion/css
atanasster Dec 14, 2020
3c2e4c8
update fuction name for devtools
atanasster Dec 14, 2020
27565ed
remove React import for forwardRef
atanasster Dec 14, 2020
938876a
chore: remove @emotion/styled from components deps
atanasster Dec 14, 2020
ff35264
Update packages/components/src/Box.js
atanasster Jan 5, 2021
8ff513e
test(components): split tests into multiple .tsx files
hasparus Aug 9, 2021
26c9fc3
fix(components): make Field 'name' and 'label' props optional in Type…
hasparus Aug 11, 2021
87369b8
refactor(components): rename Box.js to Box.tsx (separate commit for G…
hasparus Aug 17, 2021
e43a711
feat(components): remove styled-system dependency from Box
hasparus Aug 17, 2021
df6b648
test(components): update snapshots
hasparus Aug 17, 2021
efb991f
refactor(components): change components extensions to .tsx
hasparus Aug 17, 2021
5f2a506
wip(components): add ts-expect-error to internal API __css calls
hasparus Aug 23, 2021
77eb226
feat(mdx): remove deprecated Styled API
hasparus Aug 23, 2021
ba37eb9
refactor(components): fix type errors in all components
hasparus Sep 7, 2021
6e55e42
Merge branch 'develop' into remove-emotion-styled-2
hasparus Sep 17, 2021
57b42bb
chore(deps): update yarn.lock
hasparus Sep 17, 2021
ee80aaf
wip(mdx): remove usage of `styled`
hasparus Oct 2, 2021
3aa8922
wip(components): fix type errors
hasparus Oct 15, 2021
9c748f7
Merge branch 'peer-deps' into remove-emotion-styled-2
hasparus Dec 20, 2021
0e295a4
chore: Remove mentions of @emotion/styled from components readme and …
hasparus Dec 20, 2021
696df8c
docs: Remove @emotion/styled from how-it-works guide
hasparus Dec 20, 2021
4e2e954
Update packages/components/src/Progress.tsx
hasparus Dec 20, 2021
eacf93c
Update packages/components/src/Progress.tsx
lachlanjc Dec 20, 2021
d755faa
Drop unneeded @ts-check
lachlanjc Dec 30, 2021
78a67cb
Rename Buttons.spec.tsx to Button.spec.tsx
lachlanjc Dec 30, 2021
8b15aac
Merge branch 'develop' into remove-emotion-styled-2
lachlanjc Jan 8, 2022
16c1fe9
Export CloseIcon
lachlanjc Jan 8, 2022
f6dcf84
Fix missing dep
lachlanjc Jan 8, 2022
451149d
Merge branch 'develop' into remove-emotion-styled-2
lachlanjc Jan 29, 2022
709d5b3
Remove @emotion/styled from docs instructions
lachlanjc Jan 29, 2022
02e1cee
Move docs DEBUG env var to .env.development
hasparus Mar 18, 2022
5c4a9ae
Remove deprecated .withComponent API
hasparus Mar 18, 2022
76400ed
Tweak docs
hasparus Mar 18, 2022
94fc994
Merge branch 'develop' into remove-emotion-styled-2
hasparus Mar 18, 2022
0ff45a0
refactor(components): get rid of @ts-expect-error in favoir of __inte…
hasparus Mar 18, 2022
b994c5e
chore(components): fix components tests
hasparus Mar 18, 2022
9775deb
chore(components): fix themed()
hasparus Mar 18, 2022
1b1dc9e
chore(gatsby-plugin-theme-ui): remove @emotion/styled from dependencies
hasparus Mar 18, 2022
3ac90bb
Remove @emotion/styled from readme
hasparus Mar 18, 2022
5e94da1
chore: use Yarn resolutions in typecheck-built-files
hasparus Mar 18, 2022
991f836
Update MIGRATING.md
hasparus Mar 20, 2022
35b216c
Update packages/components/src/Close.tsx
hasparus Mar 20, 2022
0b94a2e
Fix typo
hasparus Mar 18, 2022
0e1c8b6
Describe migration path for removed `Themed.X as=Y` pattern
hasparus Mar 21, 2022
7b4d915
Update snapshot
hasparus Mar 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions MIGRATING.md
@@ -1,5 +1,14 @@
# Migration Guides

## v0.14

- `@theme-ui/components` and other Theme UI packagss no longe depends on
hasparus marked this conversation as resolved.
Show resolved Hide resolved
`@emotion/styled`.

- Previously deprecated `.withComponent` API was removed.

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

## 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