From d6941b9813ae5d0218094e7cfbaa6908e82e9f18 Mon Sep 17 00:00:00 2001 From: sulemanof Date: Fri, 21 Jun 2019 17:24:13 +0300 Subject: [PATCH 1/2] Add missing TS definitions for EuiRange --- CHANGELOG.md | 1 + src/components/form/range/index.d.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e6b712fd44..84ee6d8097b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Tweaked `SuperDatePicker` to make the start/end date selection more obvious ([#2049](https://github.com/elastic/eui/pull/2049)) - Added `toSentenceCase` string service ([#2049](https://github.com/elastic/eui/pull/2049)) - Pass `EuiSuperSelect`'s `popoverClassName` to the popover's panel ([#2068](https://github.com/elastic/eui/pull/2068)) +- Added missing TS definitions for `EuiRange` ([#2071](https://github.com/elastic/eui/pull/2071)) **Bug fixes** diff --git a/src/components/form/range/index.d.ts b/src/components/form/range/index.d.ts index e71495f11bc..8fc453998bf 100644 --- a/src/components/form/range/index.d.ts +++ b/src/components/form/range/index.d.ts @@ -1,6 +1,6 @@ import { CommonProps, Omit } from '../../common'; -import { FunctionComponent, InputHTMLAttributes } from 'react'; +import { ReactNode, FunctionComponent, InputHTMLAttributes } from 'react'; declare module '@elastic/eui' { export type EuiRangeLevelColor = 'primary' | 'success' | 'warning' | 'danger'; @@ -29,6 +29,8 @@ declare module '@elastic/eui' { showTicks?: boolean; showValue?: boolean; tickInterval?: number; + valueAppend?: ReactNode; + valuePrepend?: ReactNode; } export const EuiRange: FunctionComponent< From 3c29e8023eb77da1b73a9a22b9e6f6ba9f0d4a7d Mon Sep 17 00:00:00 2001 From: Daniil Suleiman <31325372+sulemanof@users.noreply.github.com> Date: Fri, 21 Jun 2019 17:25:57 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84ee6d8097b..75c2dc40bca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ - Tweaked `SuperDatePicker` to make the start/end date selection more obvious ([#2049](https://github.com/elastic/eui/pull/2049)) - Added `toSentenceCase` string service ([#2049](https://github.com/elastic/eui/pull/2049)) - Pass `EuiSuperSelect`'s `popoverClassName` to the popover's panel ([#2068](https://github.com/elastic/eui/pull/2068)) -- Added missing TS definitions for `EuiRange` ([#2071](https://github.com/elastic/eui/pull/2071)) +- Added missing TS definitions for `EuiRange` ([#2072](https://github.com/elastic/eui/pull/2072)) **Bug fixes**