diff --git a/CHANGELOG.md b/CHANGELOG.md index 3067c156b3b..cab524af964 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - 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 `editorItemAlignLeft`, `editorItemAlignCenter`, `editorItemRight`, `editorItemAlignTop`, `editorItemAlignMiddle`, `editorItemAlignBottom`, `editorDistributeHorizontal`, `editorDistributeVertical`, `editorPositionTopLeft`, `editorPositionTopRight`, `editorPositionBottomRight`, and `editorPositionBottomLeft` glyphs to `EuiIcon` ([2070](https://github.com/elastic/eui/pull/2070)) +- Added missing TS definitions for `EuiRange` ([#2072](https://github.com/elastic/eui/pull/2072)) **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<