@elastic/eui 65.0.0 → 66.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/eui_theme_dark.css +28 -197
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +28 -197
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/basic_table/basic_table.js +13 -2
  6. package/es/components/basic_table/in_memory_table.js +13 -2
  7. package/es/components/card/card.styles.js +2 -2
  8. package/es/components/combo_box/combo_box.js +2 -15
  9. package/es/components/datagrid/body/data_grid_body.js +17 -6
  10. package/es/components/datagrid/body/data_grid_cell.js +29 -12
  11. package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  12. package/es/components/datagrid/body/header/data_grid_header_row.js +17 -6
  13. package/es/components/datagrid/data_grid.js +17 -6
  14. package/es/components/datagrid/utils/in_memory.js +17 -6
  15. package/es/components/date_picker/react-datepicker/original.package.json +124 -0
  16. package/es/components/description_list/description_list.js +11 -3
  17. package/es/components/description_list/description_list_context.js +2 -1
  18. package/es/components/description_list/description_list_description.js +3 -1
  19. package/es/components/description_list/description_list_description.styles.js +5 -2
  20. package/es/components/description_list/description_list_title.js +4 -3
  21. package/es/components/description_list/description_list_title.styles.js +7 -3
  22. package/es/components/description_list/description_list_types.js +2 -1
  23. package/es/components/form/field_search/field_search.js +6 -16
  24. package/es/components/form/range/range_input.js +1 -1
  25. package/es/components/header/header_section/header_section_item.js +4 -3
  26. package/es/components/icon/icon.js +3 -10
  27. package/es/components/list_group/list_group.js +7 -1
  28. package/es/components/list_group/list_group_item.js +10 -3
  29. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  30. package/es/components/modal/modal.js +1 -3
  31. package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
  32. package/es/components/page/page_sidebar/page_sidebar.js +5 -1
  33. package/es/components/table/table_row_cell.js +4 -6
  34. package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
  35. package/es/global_styling/functions/logicals.json +56 -0
  36. package/es/global_styling/mixins/_typography.js +1 -1
  37. package/es/services/theme/hooks.js +11 -16
  38. package/eui.d.ts +29 -10
  39. package/i18ntokens.json +18 -18
  40. package/lib/components/basic_table/basic_table.js +13 -2
  41. package/lib/components/basic_table/in_memory_table.js +13 -2
  42. package/lib/components/card/card.styles.js +2 -2
  43. package/lib/components/combo_box/combo_box.js +2 -15
  44. package/lib/components/datagrid/body/data_grid_body.js +17 -6
  45. package/lib/components/datagrid/body/data_grid_cell.js +29 -12
  46. package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  47. package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
  48. package/lib/components/datagrid/data_grid.js +17 -6
  49. package/lib/components/datagrid/utils/in_memory.js +17 -6
  50. package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  51. package/lib/components/description_list/description_list.js +11 -3
  52. package/lib/components/description_list/description_list_context.js +2 -1
  53. package/lib/components/description_list/description_list_description.js +3 -1
  54. package/lib/components/description_list/description_list_description.styles.js +5 -2
  55. package/lib/components/description_list/description_list_title.js +4 -3
  56. package/lib/components/description_list/description_list_title.styles.js +7 -3
  57. package/lib/components/description_list/description_list_types.js +4 -2
  58. package/lib/components/form/field_search/field_search.js +6 -16
  59. package/lib/components/form/range/range_input.js +1 -1
  60. package/lib/components/header/header_section/header_section_item.js +4 -3
  61. package/lib/components/icon/icon.js +3 -10
  62. package/lib/components/list_group/list_group.js +7 -1
  63. package/lib/components/list_group/list_group_item.js +10 -3
  64. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  65. package/lib/components/modal/modal.js +1 -3
  66. package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
  67. package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
  68. package/lib/components/table/table_row_cell.js +4 -6
  69. package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
  70. package/lib/global_styling/functions/logicals.json +56 -0
  71. package/lib/global_styling/mixins/_typography.js +1 -1
  72. package/lib/services/theme/hooks.js +10 -15
  73. package/optimize/es/components/card/card.styles.js +2 -2
  74. package/optimize/es/components/combo_box/combo_box.js +2 -15
  75. package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
  76. package/optimize/es/components/description_list/description_list.js +5 -2
  77. package/optimize/es/components/description_list/description_list_context.js +2 -1
  78. package/optimize/es/components/description_list/description_list_description.js +3 -1
  79. package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
  80. package/optimize/es/components/description_list/description_list_title.js +4 -3
  81. package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
  82. package/optimize/es/components/description_list/description_list_types.js +2 -1
  83. package/optimize/es/components/form/field_search/field_search.js +6 -16
  84. package/optimize/es/components/form/range/range_input.js +1 -1
  85. package/optimize/es/components/header/header_section/header_section_item.js +4 -3
  86. package/optimize/es/components/icon/icon.js +3 -10
  87. package/optimize/es/components/list_group/list_group_item.js +3 -2
  88. package/optimize/es/components/modal/modal.js +1 -3
  89. package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
  90. package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
  91. package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
  92. package/optimize/es/global_styling/functions/logicals.json +56 -0
  93. package/optimize/es/global_styling/mixins/_typography.js +1 -1
  94. package/optimize/es/services/theme/hooks.js +11 -16
  95. package/optimize/lib/components/card/card.styles.js +2 -2
  96. package/optimize/lib/components/combo_box/combo_box.js +2 -15
  97. package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
  98. package/optimize/lib/components/description_list/description_list.js +5 -2
  99. package/optimize/lib/components/description_list/description_list_context.js +2 -1
  100. package/optimize/lib/components/description_list/description_list_description.js +3 -1
  101. package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
  102. package/optimize/lib/components/description_list/description_list_title.js +4 -3
  103. package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
  104. package/optimize/lib/components/description_list/description_list_types.js +4 -2
  105. package/optimize/lib/components/form/field_search/field_search.js +6 -16
  106. package/optimize/lib/components/form/range/range_input.js +1 -1
  107. package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
  108. package/optimize/lib/components/icon/icon.js +3 -10
  109. package/optimize/lib/components/list_group/list_group_item.js +3 -2
  110. package/optimize/lib/components/modal/modal.js +1 -3
  111. package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
  112. package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
  113. package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
  114. package/optimize/lib/global_styling/functions/logicals.json +56 -0
  115. package/optimize/lib/global_styling/mixins/_typography.js +1 -1
  116. package/optimize/lib/services/theme/hooks.js +10 -15
  117. package/package.json +1 -1
  118. package/src/components/badge/_badge.scss +0 -5
  119. package/src/components/datagrid/_data_grid_data_row.scss +7 -0
  120. package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
  121. package/src/components/filter_group/_filter_group.scss +3 -1
  122. package/src/components/flex/_flex_group.scss +2 -11
  123. package/src/components/flex/_flex_item.scss +0 -6
  124. package/src/components/form/field_search/_field_search.scss +0 -5
  125. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
  126. package/src/components/form/form_row/_form_row.scss +0 -1
  127. package/src/components/header/header_section/_header_section_item.scss +1 -1
  128. package/src/components/list_group/_list_group_item.scss +3 -25
  129. package/src/components/modal/_modal.scss +5 -20
  130. package/src/components/page/page_content/_page_content.scss +0 -1
  131. package/src/components/table/_responsive.scss +0 -1
  132. package/src/components/table/_table.scss +0 -5
  133. package/src/global_styling/mixins/_form.scss +0 -4
  134. package/src/global_styling/mixins/_helpers.scss +0 -8
  135. package/src/global_styling/mixins/_typography.scss +1 -5
  136. package/src/global_styling/utility/_index.scss +0 -1
  137. package/test-env/components/basic_table/basic_table.js +13 -2
  138. package/test-env/components/basic_table/in_memory_table.js +13 -2
  139. package/test-env/components/card/card.styles.js +2 -2
  140. package/test-env/components/combo_box/combo_box.js +2 -15
  141. package/test-env/components/datagrid/body/data_grid_body.js +17 -6
  142. package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
  143. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
  144. package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
  145. package/test-env/components/datagrid/data_grid.js +17 -6
  146. package/test-env/components/datagrid/utils/in_memory.js +17 -6
  147. package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
  148. package/test-env/components/description_list/description_list.js +11 -3
  149. package/test-env/components/description_list/description_list_context.js +2 -1
  150. package/test-env/components/description_list/description_list_description.js +3 -1
  151. package/test-env/components/description_list/description_list_description.styles.js +5 -2
  152. package/test-env/components/description_list/description_list_title.js +4 -3
  153. package/test-env/components/description_list/description_list_title.styles.js +7 -3
  154. package/test-env/components/description_list/description_list_types.js +4 -2
  155. package/test-env/components/form/field_search/field_search.js +6 -16
  156. package/test-env/components/form/range/range_input.js +1 -1
  157. package/test-env/components/header/header_section/header_section_item.js +4 -3
  158. package/test-env/components/list_group/list_group.js +7 -1
  159. package/test-env/components/list_group/list_group_item.js +10 -3
  160. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
  161. package/test-env/components/modal/modal.js +1 -3
  162. package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
  163. package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
  164. package/test-env/components/table/table_row_cell.js +4 -6
  165. package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
  166. package/test-env/global_styling/functions/logicals.json +56 -0
  167. package/test-env/global_styling/mixins/_typography.js +1 -1
  168. package/test-env/services/theme/hooks.js +10 -15
  169. package/src/global_styling/utility/_utility.scss +0 -15
@@ -7,18 +7,21 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
7
7
  * in compliance with, at your election, the Elastic License 2.0 or the Server
8
8
  * Side Public License, v 1.
9
9
  */
10
- import React, { forwardRef, useContext } from 'react';
10
+ import React, { forwardRef, useContext, useMemo } from 'react';
11
11
  import { EuiThemeContext, EuiModificationsContext, EuiColorModeContext } from './context';
12
12
  import { jsx as ___EmotionJSX } from "@emotion/react";
13
13
  export var useEuiTheme = function useEuiTheme() {
14
14
  var theme = useContext(EuiThemeContext);
15
15
  var colorMode = useContext(EuiColorModeContext);
16
16
  var modifications = useContext(EuiModificationsContext);
17
- return {
18
- euiTheme: theme,
19
- colorMode: colorMode,
20
- modifications: modifications
21
- };
17
+ var assembledTheme = useMemo(function () {
18
+ return {
19
+ euiTheme: theme,
20
+ colorMode: colorMode,
21
+ modifications: modifications
22
+ };
23
+ }, [theme, colorMode, modifications]);
24
+ return assembledTheme;
22
25
  };
23
26
  // Provide the component props interface as the generic to allow the docs props table to populate.
24
27
  // e.g., `const EuiComponent = withEuiTheme<EuiComponentProps>(_EuiComponent)`
@@ -26,17 +29,9 @@ export var withEuiTheme = function withEuiTheme(Component) {
26
29
  var componentName = Component.displayName || Component.name || 'ComponentWithTheme';
27
30
 
28
31
  var Render = function Render(props, ref) {
29
- var _useEuiTheme = useEuiTheme(),
30
- euiTheme = _useEuiTheme.euiTheme,
31
- colorMode = _useEuiTheme.colorMode,
32
- modifications = _useEuiTheme.modifications;
33
-
32
+ var theme = useEuiTheme();
34
33
  return ___EmotionJSX(Component, _extends({
35
- theme: {
36
- euiTheme: euiTheme,
37
- colorMode: colorMode,
38
- modifications: modifications
39
- },
34
+ theme: theme,
40
35
  ref: ref
41
36
  }, props));
42
37
  };
package/eui.d.ts CHANGED
@@ -9471,7 +9471,7 @@ declare module '@elastic/eui/src/components/combo_box/combo_box' {
9471
9471
  areAllOptionsSelected: () => boolean;
9472
9472
  onComboBoxFocus: FocusEventHandler<HTMLInputElement>;
9473
9473
  setCustomOptions: (isContainerBlur: boolean) => void;
9474
- onContainerBlur: EventListener;
9474
+ onContainerBlur: FocusEventHandler<HTMLDivElement>;
9475
9475
  onKeyDown: KeyboardEventHandler<HTMLDivElement>;
9476
9476
  onOptionEnterKey: OptionHandler<T>;
9477
9477
  onOptionClick: OptionHandler<T>;
@@ -9970,6 +9970,11 @@ declare module '@elastic/eui/src/components/list_group/list_group_item' {
9970
9970
  * instances where the item content is rendered as a `button`
9971
9971
  */
9972
9972
  buttonRef?: React.Ref<HTMLButtonElement>;
9973
+ /**
9974
+ * Text to be displayed in the tooltip when `showToolTip` is true.
9975
+ * By default the text will be same as the label text.
9976
+ */
9977
+ toolTipText?: string;
9973
9978
  };
9974
9979
  export const EuiListGroupItem: FunctionComponent<EuiListGroupItemProps>;
9975
9980
  export {};
@@ -12268,7 +12273,7 @@ declare module '@elastic/eui/src/components/tabs/tabs' {
12268
12273
 
12269
12274
  }
12270
12275
  declare module '@elastic/eui/src/components/tabs/tabbed_content/tabbed_content' {
12271
- import { Component, HTMLAttributes, ReactNode } from 'react';
12276
+ import { Component, HTMLAttributes, ReactNode, FocusEvent } from 'react';
12272
12277
  import { EuiTabsSizes } from '@elastic/eui/src/components/tabs/tabs';
12273
12278
  import { EuiTabProps } from '@elastic/eui/src/components/tabs/tab';
12274
12279
  import { CommonProps } from '@elastic/eui/src/components/common';
@@ -12320,11 +12325,9 @@ declare module '@elastic/eui/src/components/tabs/tabbed_content/tabbed_content'
12320
12325
  private readonly rootId;
12321
12326
  private readonly tabsRef;
12322
12327
  constructor(props: EuiTabbedContentProps);
12323
- componentDidMount(): void;
12324
- componentWillUnmount(): void;
12325
12328
  focusTab: () => void;
12326
12329
  initializeFocus: () => void;
12327
- removeFocus: (blurEvent: FocusEvent) => void;
12330
+ removeFocus: (blurEvent: FocusEvent<HTMLDivElement>) => void;
12328
12331
  onTabClick: (selectedTab: EuiTabbedContentTab) => void;
12329
12332
  render(): JSX.Element;
12330
12333
  }
@@ -13226,6 +13229,10 @@ declare module '@elastic/eui/src/components/description_list/description_list_ty
13226
13229
  * Props object to be passed to `EuiDescriptionListDescription`
13227
13230
  */
13228
13231
  descriptionProps?: HTMLAttributes<HTMLElement> & CommonProps;
13232
+ /**
13233
+ * Vertical spacing added between `EuiDescriptionList` elements
13234
+ */
13235
+ gutterSize?: EuiDescriptionListGutterSizes;
13229
13236
  }
13230
13237
  export const TYPES: readonly ["row", "inline", "column", "responsiveColumn"];
13231
13238
  export type EuiDescriptionListType = typeof TYPES[number];
@@ -13233,6 +13240,8 @@ declare module '@elastic/eui/src/components/description_list/description_list_ty
13233
13240
  export type EuiDescriptionListAlignment = typeof ALIGNMENTS[number];
13234
13241
  export const TEXT_STYLES: readonly ["normal", "reverse"];
13235
13242
  export type EuiDescriptionListTextStyle = typeof TEXT_STYLES[number];
13243
+ export const GUTTER_SIZES: readonly ["s", "m"];
13244
+ export type EuiDescriptionListGutterSizes = typeof GUTTER_SIZES[number];
13236
13245
 
13237
13246
  }
13238
13247
  declare module '@elastic/eui/src/components/description_list/description_list_title.styles' {
@@ -13253,12 +13262,14 @@ declare module '@elastic/eui/src/components/description_list/description_list_ti
13253
13262
  compressed: import("@emotion/utils").SerializedStyles;
13254
13263
  };
13255
13264
  right: import("@emotion/utils").SerializedStyles;
13265
+ s: import("@emotion/utils").SerializedStyles;
13266
+ m: import("@emotion/utils").SerializedStyles;
13256
13267
  };
13257
13268
 
13258
13269
  }
13259
13270
  declare module '@elastic/eui/src/components/description_list/description_list_context' {
13260
13271
 
13261
- import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types'; type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'type' | 'textStyle' | 'align'>> & {
13272
+ import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types'; type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'type' | 'textStyle' | 'align' | 'gutterSize'>> & {
13262
13273
  compressed?: EuiDescriptionListProps['compressed'];
13263
13274
  };
13264
13275
  export const contextDefaults: EuiDescriptionListContextValues;
@@ -13292,6 +13303,8 @@ declare module '@elastic/eui/src/components/description_list/description_list_de
13292
13303
  normal: import("@emotion/utils").SerializedStyles;
13293
13304
  };
13294
13305
  left: import("@emotion/utils").SerializedStyles;
13306
+ s: import("@emotion/utils").SerializedStyles;
13307
+ m: import("@emotion/utils").SerializedStyles;
13295
13308
  };
13296
13309
 
13297
13310
  }
@@ -18076,9 +18089,8 @@ declare module '@elastic/eui/src/components/table/table_row_cell' {
18076
18089
  */
18077
18090
  showOnHover?: boolean;
18078
18091
  /**
18079
- * Setting `textOnly` to `false` will break words unnecessarily on FF and
18080
- * IE. To combat this problem on FF, wrap contents with the css utility
18081
- * `.eui-textBreakWord`.
18092
+ * Creates a text wrapper around cell content that helps word break or truncate
18093
+ * long text correctly.
18082
18094
  */
18083
18095
  textOnly?: boolean;
18084
18096
  /**
@@ -18512,6 +18524,10 @@ declare module '@elastic/eui/src/components/basic_table/table_types' {
18512
18524
  */
18513
18525
  sortable?: boolean | ((item: T) => Primitive);
18514
18526
  isExpander?: boolean;
18527
+ /**
18528
+ * Creates a text wrapper around cell content that helps word break or truncate
18529
+ * long text correctly.
18530
+ */
18515
18531
  textOnly?: boolean;
18516
18532
  /**
18517
18533
  * Defines the horizontal alignment of the column
@@ -18818,7 +18834,10 @@ declare module '@elastic/eui/src/components/basic_table/basic_table' {
18818
18834
  */
18819
18835
  tableLayout?: 'fixed' | 'auto';
18820
18836
  /**
18821
- * Applied to table cells => Any cell using render function will set this to be false, leading to unnecessary word breaks. Apply textOnly: true in order to ensure it breaks properly
18837
+ * Applied to table cells. Any cell using a render function will set this to be false.
18838
+ *
18839
+ * Creates a text wrapper around cell content that helps word break or truncate
18840
+ * long text correctly.
18822
18841
  */
18823
18842
  textOnly?: boolean;
18824
18843
  } type BasicTableWithPaginationProps<T> = Omit<BasicTableProps<T>, 'pagination' | 'onChange'> & {
package/i18ntokens.json CHANGED
@@ -21,11 +21,11 @@
21
21
  "highlighting": "string",
22
22
  "loc": {
23
23
  "start": {
24
- "line": 309,
24
+ "line": 312,
25
25
  "column": 6
26
26
  },
27
27
  "end": {
28
- "line": 309,
28
+ "line": 312,
29
29
  "column": 79
30
30
  }
31
31
  },
@@ -37,11 +37,11 @@
37
37
  "highlighting": "string",
38
38
  "loc": {
39
39
  "start": {
40
- "line": 671,
40
+ "line": 674,
41
41
  "column": 10
42
42
  },
43
43
  "end": {
44
- "line": 675,
44
+ "line": 678,
45
45
  "column": 12
46
46
  }
47
47
  },
@@ -53,11 +53,11 @@
53
53
  "highlighting": "string",
54
54
  "loc": {
55
55
  "start": {
56
- "line": 684,
56
+ "line": 687,
57
57
  "column": 12
58
58
  },
59
59
  "end": {
60
- "line": 688,
60
+ "line": 691,
61
61
  "column": 14
62
62
  }
63
63
  },
@@ -69,11 +69,11 @@
69
69
  "highlighting": "string",
70
70
  "loc": {
71
71
  "start": {
72
- "line": 692,
72
+ "line": 695,
73
73
  "column": 12
74
74
  },
75
75
  "end": {
76
- "line": 696,
76
+ "line": 699,
77
77
  "column": 14
78
78
  }
79
79
  },
@@ -85,11 +85,11 @@
85
85
  "highlighting": "string",
86
86
  "loc": {
87
87
  "start": {
88
- "line": 701,
88
+ "line": 704,
89
89
  "column": 10
90
90
  },
91
91
  "end": {
92
- "line": 705,
92
+ "line": 708,
93
93
  "column": 12
94
94
  }
95
95
  },
@@ -101,11 +101,11 @@
101
101
  "highlighting": "string",
102
102
  "loc": {
103
103
  "start": {
104
- "line": 747,
104
+ "line": 750,
105
105
  "column": 6
106
106
  },
107
107
  "end": {
108
- "line": 747,
108
+ "line": 750,
109
109
  "column": 77
110
110
  }
111
111
  },
@@ -117,11 +117,11 @@
117
117
  "highlighting": "string",
118
118
  "loc": {
119
119
  "start": {
120
- "line": 1140,
120
+ "line": 1143,
121
121
  "column": 8
122
122
  },
123
123
  "end": {
124
- "line": 1140,
124
+ "line": 1143,
125
125
  "column": 79
126
126
  }
127
127
  },
@@ -133,11 +133,11 @@
133
133
  "highlighting": "string",
134
134
  "loc": {
135
135
  "start": {
136
- "line": 1360,
136
+ "line": 1363,
137
137
  "column": 8
138
138
  },
139
139
  "end": {
140
- "line": 1364,
140
+ "line": 1367,
141
141
  "column": 9
142
142
  }
143
143
  },
@@ -773,11 +773,11 @@
773
773
  "highlighting": "string",
774
774
  "loc": {
775
775
  "start": {
776
- "line": 992,
776
+ "line": 968,
777
777
  "column": 10
778
778
  },
779
779
  "end": {
780
- "line": 995,
780
+ "line": 971,
781
781
  "column": 11
782
782
  }
783
783
  },
@@ -1251,6 +1251,11 @@ EuiBasicTable.propTypes = {
1251
1251
  */
1252
1252
  sortable: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.func.isRequired]),
1253
1253
  isExpander: _propTypes.default.bool,
1254
+
1255
+ /**
1256
+ * Creates a text wrapper around cell content that helps word break or truncate
1257
+ * long text correctly.
1258
+ */
1254
1259
  textOnly: _propTypes.default.bool,
1255
1260
 
1256
1261
  /**
@@ -1597,11 +1602,17 @@ EuiBasicTable.propTypes = {
1597
1602
  tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
1598
1603
 
1599
1604
  /**
1600
- * Applied to table cells => Any cell using render function will set this to be false, leading to unnecessary word breaks. Apply textOnly: true in order to ensure it breaks properly
1605
+ * Applied to table cells. Any cell using a render function will set this to be false.
1606
+ *
1607
+ * Creates a text wrapper around cell content that helps word break or truncate
1608
+ * long text correctly.
1601
1609
  */
1602
1610
 
1603
1611
  /**
1604
- * Applied to table cells => Any cell using render function will set this to be false, leading to unnecessary word breaks. Apply textOnly: true in order to ensure it breaks properly
1612
+ * Applied to table cells. Any cell using a render function will set this to be false.
1613
+ *
1614
+ * Creates a text wrapper around cell content that helps word break or truncate
1615
+ * long text correctly.
1605
1616
  */
1606
1617
  textOnly: _propTypes.default.bool
1607
1618
  };
@@ -672,6 +672,11 @@ EuiInMemoryTable.propTypes = {
672
672
  */
673
673
  sortable: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.func.isRequired]),
674
674
  isExpander: _propTypes.default.bool,
675
+
676
+ /**
677
+ * Creates a text wrapper around cell content that helps word break or truncate
678
+ * long text correctly.
679
+ */
675
680
  textOnly: _propTypes.default.bool,
676
681
 
677
682
  /**
@@ -945,11 +950,17 @@ EuiInMemoryTable.propTypes = {
945
950
  tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
946
951
 
947
952
  /**
948
- * Applied to table cells => Any cell using render function will set this to be false, leading to unnecessary word breaks. Apply textOnly: true in order to ensure it breaks properly
953
+ * Applied to table cells. Any cell using a render function will set this to be false.
954
+ *
955
+ * Creates a text wrapper around cell content that helps word break or truncate
956
+ * long text correctly.
949
957
  */
950
958
 
951
959
  /**
952
- * Applied to table cells => Any cell using render function will set this to be false, leading to unnecessary word breaks. Apply textOnly: true in order to ensure it breaks properly
960
+ * Applied to table cells. Any cell using a render function will set this to be false.
961
+ *
962
+ * Creates a text wrapper around cell content that helps word break or truncate
963
+ * long text correctly.
953
964
  */
954
965
  textOnly: _propTypes.default.bool,
955
966
  message: _propTypes.default.node,
@@ -87,14 +87,14 @@ var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize, color)
87
87
  euiCard__description: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', halfSpacing), ";;label:euiCard__description;"),
88
88
  euiCard__footer: /*#__PURE__*/(0, _react.css)("flex-grow:0;", (0, _global_styling.logicalCSS)('width', '100%'), ";", (0, _global_styling.logicalCSS)('margin-top', spacing), ";;label:euiCard__footer;"),
89
89
  top: {
90
- euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('min-height', '1px'), ";", (0, _global_styling.logicalCSS)('margin-bottom', spacing), ";;label:euiCard__top;"),
90
+ euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('margin-bottom', spacing), ";;label:euiCard__top;"),
91
91
  layout: {
92
92
  vertical: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:vertical;"),
93
93
  horizontal: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', 'auto'), ";;label:horizontal;")
94
94
  },
95
95
  disabled: _ref2
96
96
  },
97
- euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", _global_styling.logicals['border-top-left-radius'], ":calc(", euiTheme.border.radius.medium, " - 1px);", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - 1px);", color === 'transparent' ? "border-radius: ".concat(euiTheme.border.radius.medium, ";") : undefined, " img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
97
+ euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");", color === 'transparent' ? "border-radius: ".concat(euiTheme.border.radius.medium, ";") : undefined, " img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
98
98
  icon: {
99
99
  euiCard__icon: /*#__PURE__*/(0, _react.css)(";label:euiCard__icon;"),
100
100
  withImage: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', '50%'), ";", (0, _global_styling.logicalCSS)('left', '50%'), ";transform:translate(-50%, calc(-50% + -", paddingAmount, "))!important;;label:withImage;"),
@@ -106,17 +106,9 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
106
106
  _defineProperty(_assertThisInitialized(_this), "comboBoxRefInstance", null);
107
107
 
108
108
  _defineProperty(_assertThisInitialized(_this), "comboBoxRefCallback", function (ref) {
109
- // IE11 doesn't support the `relatedTarget` event property for blur events
110
- // but does add it for focusout. React doesn't support `onFocusOut` so here we are.
111
- if (_this.comboBoxRefInstance) {
112
- _this.comboBoxRefInstance.removeEventListener('focusout', _this.onContainerBlur);
113
- }
114
-
115
109
  _this.comboBoxRefInstance = ref;
116
110
 
117
111
  if (_this.comboBoxRefInstance) {
118
- _this.comboBoxRefInstance.addEventListener('focusout', _this.onContainerBlur);
119
-
120
112
  var comboBoxBounds = _this.comboBoxRefInstance.getBoundingClientRect();
121
113
 
122
114
  _this.setState({
@@ -425,13 +417,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
425
417
 
426
418
  _defineProperty(_assertThisInitialized(_this), "onContainerBlur", function (event) {
427
419
  // close the options list, unless the user clicked on an option
428
-
429
- /**
430
- * FireFox returns `relatedTarget` as `null` for security reasons, but provides a proprietary `explicitOriginalTarget`.
431
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget
432
- */
433
- var focusEvent = event;
434
- var relatedTarget = focusEvent.relatedTarget || focusEvent.explicitOriginalTarget;
420
+ var relatedTarget = event.relatedTarget;
435
421
 
436
422
  var focusedInOptionsList = relatedTarget && _this.listRefInstance && _this.listRefInstance.contains(relatedTarget);
437
423
 
@@ -876,6 +862,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
876
862
  className: classes,
877
863
  "data-test-subj": dataTestSubj,
878
864
  onKeyDown: this.onKeyDown,
865
+ onBlur: this.onContainerBlur,
879
866
  ref: this.comboBoxRefCallback
880
867
  }), (0, _react2.jsx)(_combo_box_input.EuiComboBoxInput, {
881
868
  autoSizeInputRef: this.autoSizeInputRefCallback,
@@ -712,7 +712,13 @@ EuiDataGridBody.propTypes = {
712
712
  * Pass-through ref reference specifically for targeting
713
713
  * instances where the item content is rendered as a `button`
714
714
  */
715
- buttonRef: _propTypes.default.any
715
+ buttonRef: _propTypes.default.any,
716
+
717
+ /**
718
+ * Text to be displayed in the tooltip when `showToolTip` is true.
719
+ * By default the text will be same as the label text.
720
+ */
721
+ toolTipText: _propTypes.default.string
716
722
  }).isRequired]),
717
723
 
718
724
  /**
@@ -756,7 +762,8 @@ EuiDataGridBody.propTypes = {
756
762
  }),
757
763
  onClick: _propTypes.default.func,
758
764
  wrapText: _propTypes.default.bool,
759
- buttonRef: _propTypes.default.any
765
+ buttonRef: _propTypes.default.any,
766
+ toolTipText: _propTypes.default.string
760
767
  }).isRequired]),
761
768
 
762
769
  /**
@@ -800,7 +807,8 @@ EuiDataGridBody.propTypes = {
800
807
  }),
801
808
  onClick: _propTypes.default.func,
802
809
  wrapText: _propTypes.default.bool,
803
- buttonRef: _propTypes.default.any
810
+ buttonRef: _propTypes.default.any,
811
+ toolTipText: _propTypes.default.string
804
812
  }).isRequired]),
805
813
 
806
814
  /**
@@ -844,7 +852,8 @@ EuiDataGridBody.propTypes = {
844
852
  }),
845
853
  onClick: _propTypes.default.func,
846
854
  wrapText: _propTypes.default.bool,
847
- buttonRef: _propTypes.default.any
855
+ buttonRef: _propTypes.default.any,
856
+ toolTipText: _propTypes.default.string
848
857
  }).isRequired]),
849
858
 
850
859
  /**
@@ -888,7 +897,8 @@ EuiDataGridBody.propTypes = {
888
897
  }),
889
898
  onClick: _propTypes.default.func,
890
899
  wrapText: _propTypes.default.bool,
891
- buttonRef: _propTypes.default.any
900
+ buttonRef: _propTypes.default.any,
901
+ toolTipText: _propTypes.default.string
892
902
  }).isRequired]),
893
903
 
894
904
  /**
@@ -932,7 +942,8 @@ EuiDataGridBody.propTypes = {
932
942
  }),
933
943
  onClick: _propTypes.default.func,
934
944
  wrapText: _propTypes.default.bool,
935
- buttonRef: _propTypes.default.any
945
+ buttonRef: _propTypes.default.any,
946
+ toolTipText: _propTypes.default.string
936
947
  }).isRequired)
937
948
  }).isRequired]),
938
949
 
@@ -307,7 +307,13 @@ EuiDataGridCellContent.propTypes = {
307
307
  * Pass-through ref reference specifically for targeting
308
308
  * instances where the item content is rendered as a `button`
309
309
  */
310
- buttonRef: _propTypes.default.any
310
+ buttonRef: _propTypes.default.any,
311
+
312
+ /**
313
+ * Text to be displayed in the tooltip when `showToolTip` is true.
314
+ * By default the text will be same as the label text.
315
+ */
316
+ toolTipText: _propTypes.default.string
311
317
  }).isRequired]),
312
318
 
313
319
  /**
@@ -351,7 +357,8 @@ EuiDataGridCellContent.propTypes = {
351
357
  }),
352
358
  onClick: _propTypes.default.func,
353
359
  wrapText: _propTypes.default.bool,
354
- buttonRef: _propTypes.default.any
360
+ buttonRef: _propTypes.default.any,
361
+ toolTipText: _propTypes.default.string
355
362
  }).isRequired]),
356
363
 
357
364
  /**
@@ -395,7 +402,8 @@ EuiDataGridCellContent.propTypes = {
395
402
  }),
396
403
  onClick: _propTypes.default.func,
397
404
  wrapText: _propTypes.default.bool,
398
- buttonRef: _propTypes.default.any
405
+ buttonRef: _propTypes.default.any,
406
+ toolTipText: _propTypes.default.string
399
407
  }).isRequired]),
400
408
 
401
409
  /**
@@ -439,7 +447,8 @@ EuiDataGridCellContent.propTypes = {
439
447
  }),
440
448
  onClick: _propTypes.default.func,
441
449
  wrapText: _propTypes.default.bool,
442
- buttonRef: _propTypes.default.any
450
+ buttonRef: _propTypes.default.any,
451
+ toolTipText: _propTypes.default.string
443
452
  }).isRequired]),
444
453
 
445
454
  /**
@@ -483,7 +492,8 @@ EuiDataGridCellContent.propTypes = {
483
492
  }),
484
493
  onClick: _propTypes.default.func,
485
494
  wrapText: _propTypes.default.bool,
486
- buttonRef: _propTypes.default.any
495
+ buttonRef: _propTypes.default.any,
496
+ toolTipText: _propTypes.default.string
487
497
  }).isRequired]),
488
498
 
489
499
  /**
@@ -527,7 +537,8 @@ EuiDataGridCellContent.propTypes = {
527
537
  }),
528
538
  onClick: _propTypes.default.func,
529
539
  wrapText: _propTypes.default.bool,
530
- buttonRef: _propTypes.default.any
540
+ buttonRef: _propTypes.default.any,
541
+ toolTipText: _propTypes.default.string
531
542
  }).isRequired)
532
543
  }).isRequired]),
533
544
 
@@ -1352,7 +1363,8 @@ EuiDataGridCell.propTypes = {
1352
1363
  }),
1353
1364
  onClick: _propTypes.default.func,
1354
1365
  wrapText: _propTypes.default.bool,
1355
- buttonRef: _propTypes.default.any
1366
+ buttonRef: _propTypes.default.any,
1367
+ toolTipText: _propTypes.default.string
1356
1368
  }).isRequired]),
1357
1369
 
1358
1370
  /**
@@ -1396,7 +1408,8 @@ EuiDataGridCell.propTypes = {
1396
1408
  }),
1397
1409
  onClick: _propTypes.default.func,
1398
1410
  wrapText: _propTypes.default.bool,
1399
- buttonRef: _propTypes.default.any
1411
+ buttonRef: _propTypes.default.any,
1412
+ toolTipText: _propTypes.default.string
1400
1413
  }).isRequired]),
1401
1414
 
1402
1415
  /**
@@ -1440,7 +1453,8 @@ EuiDataGridCell.propTypes = {
1440
1453
  }),
1441
1454
  onClick: _propTypes.default.func,
1442
1455
  wrapText: _propTypes.default.bool,
1443
- buttonRef: _propTypes.default.any
1456
+ buttonRef: _propTypes.default.any,
1457
+ toolTipText: _propTypes.default.string
1444
1458
  }).isRequired]),
1445
1459
 
1446
1460
  /**
@@ -1484,7 +1498,8 @@ EuiDataGridCell.propTypes = {
1484
1498
  }),
1485
1499
  onClick: _propTypes.default.func,
1486
1500
  wrapText: _propTypes.default.bool,
1487
- buttonRef: _propTypes.default.any
1501
+ buttonRef: _propTypes.default.any,
1502
+ toolTipText: _propTypes.default.string
1488
1503
  }).isRequired]),
1489
1504
 
1490
1505
  /**
@@ -1528,7 +1543,8 @@ EuiDataGridCell.propTypes = {
1528
1543
  }),
1529
1544
  onClick: _propTypes.default.func,
1530
1545
  wrapText: _propTypes.default.bool,
1531
- buttonRef: _propTypes.default.any
1546
+ buttonRef: _propTypes.default.any,
1547
+ toolTipText: _propTypes.default.string
1532
1548
  }).isRequired]),
1533
1549
 
1534
1550
  /**
@@ -1572,7 +1588,8 @@ EuiDataGridCell.propTypes = {
1572
1588
  }),
1573
1589
  onClick: _propTypes.default.func,
1574
1590
  wrapText: _propTypes.default.bool,
1575
- buttonRef: _propTypes.default.any
1591
+ buttonRef: _propTypes.default.any,
1592
+ toolTipText: _propTypes.default.string
1576
1593
  }).isRequired)
1577
1594
  }).isRequired]),
1578
1595
 
@@ -379,7 +379,13 @@ EuiDataGridHeaderCell.propTypes = {
379
379
  * Pass-through ref reference specifically for targeting
380
380
  * instances where the item content is rendered as a `button`
381
381
  */
382
- buttonRef: _propTypes.default.any
382
+ buttonRef: _propTypes.default.any,
383
+
384
+ /**
385
+ * Text to be displayed in the tooltip when `showToolTip` is true.
386
+ * By default the text will be same as the label text.
387
+ */
388
+ toolTipText: _propTypes.default.string
383
389
  }).isRequired]),
384
390
 
385
391
  /**
@@ -423,7 +429,8 @@ EuiDataGridHeaderCell.propTypes = {
423
429
  }),
424
430
  onClick: _propTypes.default.func,
425
431
  wrapText: _propTypes.default.bool,
426
- buttonRef: _propTypes.default.any
432
+ buttonRef: _propTypes.default.any,
433
+ toolTipText: _propTypes.default.string
427
434
  }).isRequired]),
428
435
 
429
436
  /**
@@ -467,7 +474,8 @@ EuiDataGridHeaderCell.propTypes = {
467
474
  }),
468
475
  onClick: _propTypes.default.func,
469
476
  wrapText: _propTypes.default.bool,
470
- buttonRef: _propTypes.default.any
477
+ buttonRef: _propTypes.default.any,
478
+ toolTipText: _propTypes.default.string
471
479
  }).isRequired]),
472
480
 
473
481
  /**
@@ -511,7 +519,8 @@ EuiDataGridHeaderCell.propTypes = {
511
519
  }),
512
520
  onClick: _propTypes.default.func,
513
521
  wrapText: _propTypes.default.bool,
514
- buttonRef: _propTypes.default.any
522
+ buttonRef: _propTypes.default.any,
523
+ toolTipText: _propTypes.default.string
515
524
  }).isRequired]),
516
525
 
517
526
  /**
@@ -555,7 +564,8 @@ EuiDataGridHeaderCell.propTypes = {
555
564
  }),
556
565
  onClick: _propTypes.default.func,
557
566
  wrapText: _propTypes.default.bool,
558
- buttonRef: _propTypes.default.any
567
+ buttonRef: _propTypes.default.any,
568
+ toolTipText: _propTypes.default.string
559
569
  }).isRequired]),
560
570
 
561
571
  /**
@@ -599,7 +609,8 @@ EuiDataGridHeaderCell.propTypes = {
599
609
  }),
600
610
  onClick: _propTypes.default.func,
601
611
  wrapText: _propTypes.default.bool,
602
- buttonRef: _propTypes.default.any
612
+ buttonRef: _propTypes.default.any,
613
+ toolTipText: _propTypes.default.string
603
614
  }).isRequired)
604
615
  }).isRequired]),
605
616