From f2b07daa784f0c86f5cc3092b1f2f13246475ba6 Mon Sep 17 00:00:00 2001 From: Anish Aggarwal <43617894+anishagg17@users.noreply.github.com> Date: Thu, 12 Mar 2020 02:13:06 +0530 Subject: [PATCH] fixed some imports (#3043) * fixed some imports * more imports fixed * added changelog entry * Update CHANGELOG.md --- CHANGELOG.md | 1 + src-docs/src/views/accordion/accordion_grow.js | 2 +- src-docs/src/views/elastic_charts/sizes.js | 5 +---- src-docs/src/views/elastic_charts/time_chart.js | 5 +---- src-docs/src/views/expression/expression.js | 3 +-- src-docs/src/views/facet/facet_layout.js | 2 +- src/services/index.ts | 1 + 7 files changed, 7 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eb464b9149..bc13fc4afc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Exported `dateFormatAliases` as a part of the public API ([#3043](https://github.com/elastic/eui/pull/3043)) - Exported `EuiTextProps` type definition ([#3039](https://github.com/elastic/eui/pull/3039)) - Added `prepend` and `append` ability to `EuiComboBox` single selection only ([#3003](https://github.com/elastic/eui/pull/3003)) diff --git a/src-docs/src/views/accordion/accordion_grow.js b/src-docs/src/views/accordion/accordion_grow.js index 4fed2a5b50d..f895955e114 100644 --- a/src-docs/src/views/accordion/accordion_grow.js +++ b/src-docs/src/views/accordion/accordion_grow.js @@ -10,7 +10,7 @@ import { EuiText, EuiScreenReaderOnly, } from '../../../../src/components'; -import { htmlIdGenerator } from '../../../../src/services/accessibility/html_id_generator'; +import { htmlIdGenerator } from '../../../../src/services'; class Rows extends Component { state = { diff --git a/src-docs/src/views/elastic_charts/sizes.js b/src-docs/src/views/elastic_charts/sizes.js index e6d702a20fb..e0568b9dbb1 100644 --- a/src-docs/src/views/elastic_charts/sizes.js +++ b/src-docs/src/views/elastic_charts/sizes.js @@ -29,10 +29,7 @@ import { EuiCopy, } from '../../../../src/components'; -import { - formatDate, - dateFormatAliases, -} from '../../../../src/services/format/format_date'; +import { formatDate, dateFormatAliases } from '../../../../src/services'; import { MultiChartCard, ChartCard } from './shared'; diff --git a/src-docs/src/views/elastic_charts/time_chart.js b/src-docs/src/views/elastic_charts/time_chart.js index 52885dc773a..dc4b182ac4c 100644 --- a/src-docs/src/views/elastic_charts/time_chart.js +++ b/src-docs/src/views/elastic_charts/time_chart.js @@ -24,10 +24,7 @@ import { EuiButton, } from '../../../../src/components'; -import { - formatDate, - dateFormatAliases, -} from '../../../../src/services/format/format_date'; +import { formatDate, dateFormatAliases } from '../../../../src/services'; import { TIME_DATA, TIME_DATA_2 } from './data'; import { diff --git a/src-docs/src/views/expression/expression.js b/src-docs/src/views/expression/expression.js index 37e167e0034..d6a8834c22d 100644 --- a/src-docs/src/views/expression/expression.js +++ b/src-docs/src/views/expression/expression.js @@ -7,10 +7,9 @@ import { EuiPopover, EuiSelect, EuiFieldNumber, + EuiExpression, } from '../../../../src/components'; -import { EuiExpression } from '../../../../src/components/expression'; - // Rise the popovers above GuidePageSideNav const POPOVER_STYLE = { zIndex: '200' }; diff --git a/src-docs/src/views/facet/facet_layout.js b/src-docs/src/views/facet/facet_layout.js index dadaf3f89a9..ecf95a1bd9e 100644 --- a/src-docs/src/views/facet/facet_layout.js +++ b/src-docs/src/views/facet/facet_layout.js @@ -9,7 +9,7 @@ import { EuiSpacer, } from '../../../../src/components'; -import { VISUALIZATION_COLORS } from '../../../../src/services/color/visualization_colors'; +import { VISUALIZATION_COLORS } from '../../../../src/services'; export default class extends Component { constructor(props) { diff --git a/src/services/index.ts b/src/services/index.ts index 6dcddf73154..78f6f8ff63d 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -53,6 +53,7 @@ export { formatDate, formatNumber, formatText, + dateFormatAliases, } from './format'; export { isEvenlyDivisibleBy, isWithinRange } from './number';