Skip to content

Commit

Permalink
Add @emotion/css as a peerDependency
Browse files Browse the repository at this point in the history
- since we're about to start using it in src components
  • Loading branch information
cee-chen committed Oct 4, 2022
1 parent 3399bdf commit 41e4ac5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@
"@elastic/datemath": "^5.0.2",
"@emotion/cache": "11.x",
"@emotion/react": "11.x",
"@emotion/css": "11.x",
"@types/react": "^16.9 || ^17.0",
"@types/react-dom": "^16.9 || ^17.0",
"moment": "^2.13.0",
Expand Down
1 change: 1 addition & 0 deletions src-docs/src/components/codesandbox/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ ${demoContent}
'@elastic/datemath',
'@emotion/cache',
'@emotion/react',
'@emotion/css',
'moment',
'react',
'react-dom',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const GettingStarted = {
<EuiSpacer />
<EuiCodeBlock language="bash" isCopyable fontSize="m">
{
'yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/cache moment prop-types'
'yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/cache @emotion/css moment prop-types'
}
</EuiCodeBlock>
<EuiSpacer />
Expand Down
3 changes: 3 additions & 0 deletions upcoming_changelogs/6288.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Breaking changes**

- `@emotion/css` is now a required peer dependency, alongside `@emotion/react`
2 changes: 1 addition & 1 deletion wiki/consuming.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ yarn add @elastic/eui
Note that EUI has [several `peerDependencies` requirements](package.json) that will also need to be installed if starting with a blank project.

```bash
yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/cache moment prop-types
yarn add @elastic/eui @elastic/datemath @emotion/react @emotion/cache @emotion/css moment prop-types
```

## Requirements and dependencies
Expand Down

0 comments on commit 41e4ac5

Please sign in to comment.