diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d21b32eb427..e82551219148 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,28 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Added `EuiSuggestItem` component ([#2090](https://github.com/elastic/eui/pull/2090)) +- Added support for negated or clauses to `EuiSearchBar` ([#2140](https://github.com/elastic/eui/pull/2140)) +- Added `transition` utility services to help create timeouts that account for CSS transition durations and delays ([#2136](https://github.com/elastic/eui/pull/2136)) + **Bug fixes** +- Fixed `EuiComboBox`'s padding on the right ([#2135](https://github.com/elastic/eui/pull/2135)) +- Fixed `EuiAccordion` to correctly account for changing computed height of child elements ([#2136](https://github.com/elastic/eui/pull/2136)) - Fixed some `EuiFlyout` sizing ([#2125](https://github.com/elastic/eui/pull/2125)) +**Breaking changes** + +- Removed `EuiSeriesChart` and related components. Please look to [Elastic Charts](https://github.com/elastic/elastic-charts) for a replacement. ([#2135](https://github.com/elastic/eui/pull/2108)) +- Removed `eui_k6_theme` related Sass and JSON files ([#2135](https://github.com/elastic/eui/pull/2108)) +- Removed no longer used Sass mixins and variables in `EuiForm`, `EuiCallOut`, and `EuiRange` components ([#2135](https://github.com/elastic/eui/pull/2108)) + ## [`12.4.0`](https://github.com/elastic/eui/tree/v12.4.0) - Centered the square of the `popout` glyph in the artboard ([#2120](https://github.com/elastic/eui/pull/2120)) - Added `useInnerText` and `EuiInnerText` component utilities for retrieving text content of elements ([#2100](https://github.com/elastic/eui/pull/2100)) - Converted `EuiRangeHightlight`, `EuiRangeLabel`, `EuiRangeLevels`, `EuiRangeSlider`, `EuiRangeThumb`, `EuiRangeTicks`, `EuiRangeTrack`, and `EuiRangeWrapper` to TypeScript ([#2124](https://github.com/elastic/eui/pull/2124)) - Converted `EuiAccordion` to TypeScript ([#2128](https://github.com/elastic/eui/pull/2128)) +- Exported `prettyDuration` and `commonDurationRanges` for pretty printing date ranges outside `EuiSuperDatePicker` ([#2132](https://github.com/elastic/eui/pull/2132)) **Bug fixes** @@ -51,6 +64,14 @@ - Removed `logoXpack`from `EuiIcon` types ([#2111](https://github.com/elastic/eui/pull/2111)) +## [`12.2.1`](https://github.com/elastic/eui/tree/v12.2.1) + +**Note: this release is a backport containing changes originally made in `12.4.0`** + +**Bug fixes** + +- Fixed a nearly infinite `requestAnimationFrame` loop caused by `focus` state changes in nested `EuiPopover` components ([#2110](https://github.com/elastic/eui/pull/2110)) + ## [`12.2.0`](https://github.com/elastic/eui/tree/v12.2.0) - Made `aria-label` attribute equal to `title` of the the selection checkbox in table items (for each row) in `EuiBasicTable` ([#2043](https://github.com/elastic/eui/pull/2043)) diff --git a/package.json b/package.json index 8b9bc85d960f..f21820140f6e 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ "react-input-autosize": "^2.2.1", "react-is": "~16.3.0", "react-virtualized": "^9.18.5", - "react-vis": "1.10.2", "resize-observer-polyfill": "^1.5.0", "tabbable": "^1.1.0", "uuid": "^3.1.0" diff --git a/src-docs/src/components/guide_section/guide_section.js b/src-docs/src/components/guide_section/guide_section.js index eb8d9aed0874..a790afb330e6 100644 --- a/src-docs/src/components/guide_section/guide_section.js +++ b/src-docs/src/components/guide_section/guide_section.js @@ -372,10 +372,6 @@ export class GuideSection extends Component { /(from )'(..\/)+src\/services(\/?';)/, "from '@elastic/eui/lib/services';" ) - .replace( - /(from )'(..\/)+src\/experimental(\/?';)/, - "from '@elastic/eui/lib/experimental';" - ) .replace(/(from )'(..\/)+src\/components\/.*?';/, "from '@elastic/eui';"); return ( diff --git a/src-docs/src/components/guide_theme_selector/guide_theme_selector.js b/src-docs/src/components/guide_theme_selector/guide_theme_selector.js index edf5b2752c84..1daf8058f15d 100644 --- a/src-docs/src/components/guide_theme_selector/guide_theme_selector.js +++ b/src-docs/src/components/guide_theme_selector/guide_theme_selector.js @@ -16,14 +16,6 @@ export class GuideThemeSelector extends Component { text: 'Dark', value: 'dark', }, - { - text: 'K6', - value: 'k6', - }, - { - text: 'K6 dark', - value: 'k6_dark', - }, ]; this.state = { diff --git a/src-docs/src/index.js b/src-docs/src/index.js index b2d80f529435..3d2ce04c2890 100644 --- a/src-docs/src/index.js +++ b/src-docs/src/index.js @@ -15,17 +15,11 @@ import { registerTheme } from './services'; import Routes from './routes'; import themeLight from './theme_light.scss'; import themeDark from './theme_dark.scss'; -import themeK6Light from './theme_k6_light.scss'; -import themeK6Dark from './theme_k6_dark.scss'; registerTheme('light', [themeLight]); registerTheme('dark', [themeDark]); -registerTheme('k6', [themeK6Light]); - -registerTheme('k6_dark', [themeK6Dark]); - // Set up app const store = configureStore(); diff --git a/src-docs/src/routes.js b/src-docs/src/routes.js index 1cb118d3e5e1..f3c8c27dfbc3 100644 --- a/src-docs/src/routes.js +++ b/src-docs/src/routes.js @@ -29,6 +29,8 @@ import { ColorPaletteExample } from './views/color_palette/color_palette_example import { IsColorDarkExample } from './views/is_color_dark/is_color_dark_example'; +import { PrettyDurationExample } from './views/pretty_duration/pretty_duration_example'; + import { UtilityClassesExample } from './views/utility_classes/utility_classes_example'; // Component examples @@ -158,6 +160,8 @@ import { StatExample } from './views/stat/stat_example'; import { StepsExample } from './views/steps/steps_example'; +// import { SuggestExample } from './views/suggest/suggest_example'; + import { TableExample } from './views/tables/tables_example'; import { TabsExample } from './views/tabs/tabs_example'; @@ -174,18 +178,6 @@ import { ToggleExample } from './views/toggle/toggle_example'; import { WindowEventExample } from './views/window_event/window_event_example'; -import { XYChartExample } from './views/series_chart/series_chart_example'; - -import { XYChartAxisExample } from './views/series_chart_axis/series_axis_example'; - -import { XYChartBarExample } from './views/series_chart_bar/bar_example'; - -import { XYChartHistogramExample } from './views/series_chart_histogram/histogram_example'; - -import { XYChartAreaExample } from './views/series_chart_area/area_example'; - -import { XYChartLineExample } from './views/series_chart_line/line_example'; - import { Changelog } from './views/package/changelog'; import { I18nTokens } from './views/package/i18n_tokens'; @@ -347,17 +339,7 @@ const navigation = [ RangeControlExample, SearchBarExample, SelectableExample, - ].map(example => createExample(example)), - }, - { - name: 'Charts (deprecated)', - items: [ - XYChartExample, - XYChartAxisExample, - XYChartLineExample, - XYChartAreaExample, - XYChartBarExample, - XYChartHistogramExample, + // SuggestExample, ].map(example => createExample(example)), }, { @@ -376,6 +358,7 @@ const navigation = [ InnerTextExample, I18nExample, IsColorDarkExample, + PrettyDurationExample, MutationObserverExample, OutsideClickDetectorExample, PortalExample, diff --git a/src-docs/src/theme_k6_dark.scss b/src-docs/src/theme_k6_dark.scss deleted file mode 100644 index 99e708a00f1b..000000000000 --- a/src-docs/src/theme_k6_dark.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import '../../src/theme_k6_dark'; -@import './components/guide_components'; -@import './views/header/global_filter_group'; diff --git a/src-docs/src/theme_k6_light.scss b/src-docs/src/theme_k6_light.scss deleted file mode 100644 index 544617f335da..000000000000 --- a/src-docs/src/theme_k6_light.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import '../../src/theme_k6_light'; -@import './components/guide_components'; -@import './views/header/global_filter_group'; diff --git a/src-docs/src/views/accordion/accordion_multiple.js b/src-docs/src/views/accordion/accordion_multiple.js index b43246cda476..23890a99b82b 100644 --- a/src-docs/src/views/accordion/accordion_multiple.js +++ b/src-docs/src/views/accordion/accordion_multiple.js @@ -30,5 +30,31 @@ export default () => (
The content inside can be of any height.
+ ++ This content area will grow to accomodate when the accordion below + opens +
+The content inside can be of any height.
+The content inside can be of any height.
+The content inside can be of any height.
+The content inside can be of any height.
+The content inside can be of any height.
+The content inside can be of any height.
+
- Apply the colors from
{prettyDuration(start, end, quickRanges, dateFormat)}
+
+ Use
+ Start and end values for the duration are passed as the first and
+ second arguments, respectively. These can be timestamps (
+
+ An array of quick range values is passed as the third argument.
+ These are used to pretty format custom ranges. EUI exports
+
+ The output date/time format is specified by the fourth argument. +
+- Event: {eventName} -
-- This component will be replaced in the near future and managed outside - of EUI. We do not recommend using it at this time and it will be - removed by June 2019. -
-
- Use
- When no data is provided to EuiSeriesChart, an empty state is - displayed -
-- When displayed side-by-side with other charts, we need to be able to - keep them in sync -
-- If just displaying values is enough, then you can let the chart auto - label axis -
-
- You can omit
- The parent container needs to have computed a height and/or width. -
-If just displaying values is enough, then you can let the chart auto label axis
- //- This component will be replaced in the near future and managed outside - of EUI. We do not recommend using it at this time and it will be - removed by June 2019. -
-
- Use
- Use multiple
- Use the
- Each point in the chart is specified by two y values{' '}
-
- This component will be replaced in the near future and managed outside - of EUI. We do not recommend using it at this time and it will be - removed by June 2019. -
-
-
-
- This component will be replaced in the near future and managed outside - of EUI. We do not recommend using it at this time and it will be - removed by June 2019. -
-
- You can use
- The
- You should specify
- You can use barchart also with other X axis scale types, but this can
- lead to misinterpretation of your charts (basically because the bar
- width doesn't represent a real measure like in the histograms).
-
- You can configure the Y-Axis scale type
- A bar chart or bar graph is a chart or graph that presents{' '} - categorical data with rectangular bars with heights or - lengths proportional to the values that they represent. The bars can - be plotted vertically or horizontally. [...] -
-- A bar graph shows comparisons among discrete categories. - One axis of the chart shows the specific categories being compared, - and the other axis represents a measured value. Some bar graphs - present bars clustered in groups of more than one, showing the - values of more than one measured variable. -
-
- You can create out-of-the-box vertical bar charts just adding a{' '}
-
- To display a vertical stacked bar charts specify{' '}
-
-
-
- Use
- This component will be replaced in the near future and managed outside - of EUI. We do not recommend using it at this time and it will be - removed by June 2019. -
-
- You can use
- The
- You can specify the
- A histogram is an accurate representation of the distribution of - numerical data. [...] -
-- To construct a histogram, the first step is to bin the - range of values—that is, divide the entire range of values into a - series of intervals—and then count how many values fall into each - interval. The bins are usually specified as consecutive, - non-overlapping intervals of a variable. The bins (intervals) must - be adjacent, and are often (but are not required to be) of equal - size -
-
- You can create out-of-the-box vertical histograms just adding a{' '}
-
- Use
- Specify
-
-
- Specify a custom formatting string to change the locality or format - of the time string on the x crosshair. -
-
- Use
- This component will be replaced in the near future and managed outside - of EUI. We do not recommend using it at this time and it will be - removed by June 2019. -
-
- Use
- Use
- Use multiple
- Use the
Use the following props to change the style of the Line Chart
-
+
+
- ~~Empty Chart~~ -
-{statusText}
} - /> - ); - } - - const Crosshair = - orientation === HORIZONTAL ? EuiCrosshairY : EuiCrosshairX; - const seriesNames = this._getSeriesNames(children); - const classes = classNames(className, 'euiSeriesChartContainer'); - return ( -