diff --git a/CHANGELOG.md b/CHANGELOG.md index ff1253a6feb..a90b0c31652 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Added `numActiveFilters` prop to `EuiFilterButton` ([#1589](https://github.com/elastic/eui/pull/1589)) - Updated style of `EuiFilterButton` to match `EuiFacetButton` ([#1589](https://github.com/elastic/eui/pull/1589)) - Added `size` and `color` props to `EuiNotificationBadge` ([#1589](https://github.com/elastic/eui/pull/1589)) +- Added `@types/react-datepicker` to peer dependencies **Bug fixes** diff --git a/README.md b/README.md index 9a3362a2a3f..0147173664b 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,11 @@ Note that EUI itself has some dependencies itself mostly around management of da yarn add @elastic/eui @elastic/datemath moment ``` +Note: if you're using Typescript, you'll also need to install `@types/react-datepicker` version 1.8.0: +``` +yarn add -D @types/react-datepicker@1.8.0 +``` + ## Running Locally diff --git a/package.json b/package.json index 413dd9b5fb7..1d23ed3adf7 100644 --- a/package.json +++ b/package.json @@ -182,6 +182,7 @@ "peerDependencies": { "@elastic/datemath": "^5.0.2", "@types/react": "^16.8.0", + "@types/react-datepicker": "1.8.0", "moment": "^2.13.0", "prop-types": "^15.5.0", "react": "^16.8",