@elastic/eui 116.2.0 → 116.3.1

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 (234) hide show
  1. package/es/components/avatar/avatar.js +18 -5
  2. package/es/components/avatar/avatar.styles.js +16 -16
  3. package/es/components/banner/banner.js +202 -0
  4. package/es/components/banner/banner.styles.js +76 -0
  5. package/es/components/banner/index.js +9 -0
  6. package/es/components/basic_table/basic_table.js +21 -10
  7. package/es/components/basic_table/collapsed_item_actions.js +5 -4
  8. package/es/components/basic_table/default_item_action.js +3 -5
  9. package/es/components/breadcrumbs/_breadcrumb_content.js +29 -19
  10. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
  11. package/es/components/context_menu/context_menu_panel_title.js +0 -12
  12. package/es/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
  13. package/es/components/datagrid/controls/display_selector.js +2 -1
  14. package/es/components/datagrid/controls/keyboard_shortcuts.js +2 -1
  15. package/es/components/date_picker/auto_refresh/auto_refresh.js +7 -4
  16. package/es/components/date_picker/react-datepicker/src/index.js +1 -5
  17. package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
  18. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
  19. package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
  20. package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
  21. package/es/components/form/field_password/field_password.js +6 -3
  22. package/es/components/header/header.a11y.js +1 -1
  23. package/es/components/index.js +1 -0
  24. package/es/components/markdown_editor/markdown_editor_help_button.js +7 -4
  25. package/es/components/pagination/pagination_button_arrow.js +6 -2
  26. package/es/components/panel/panel.styles.js +4 -4
  27. package/es/components/panel/split_panel/split_panel.styles.js +1 -1
  28. package/es/components/search_bar/search_bar.js +20 -16
  29. package/es/components/search_bar/search_box.js +4 -2
  30. package/es/components/selectable/selectable_list/selectable_list.js +1 -1
  31. package/es/components/selectable/selectable_list/selectable_list.styles.js +1 -1
  32. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +2 -1
  33. package/es/components/table/sticky_header/context.js +32 -0
  34. package/es/components/table/sticky_header/index.js +10 -0
  35. package/es/components/table/sticky_header/sticky_header.js +151 -0
  36. package/es/components/table/sticky_header/sticky_header.styles.js +43 -0
  37. package/es/components/table/store/provider.js +37 -0
  38. package/es/components/table/store/store.js +82 -0
  39. package/es/components/table/store/use_unique_column_id.js +25 -0
  40. package/es/components/table/table.js +28 -3
  41. package/es/components/table/table.styles.js +4 -4
  42. package/es/components/table/table_header_cell.js +115 -48
  43. package/es/components/table/table_header_cell_checkbox.js +58 -25
  44. package/es/components/text_truncate/text_truncate.js +8 -3
  45. package/es/components/tool_tip/tool_tip.js +1 -1
  46. package/es/components/tool_tip/tool_tip.styles.js +14 -5
  47. package/es/utils/publisher.js +53 -0
  48. package/eui.d.ts +1284 -975
  49. package/i18ntokens.json +2390 -2372
  50. package/lib/components/avatar/avatar.js +18 -5
  51. package/lib/components/avatar/avatar.styles.js +16 -16
  52. package/lib/components/banner/banner.js +211 -0
  53. package/lib/components/banner/banner.styles.js +80 -0
  54. package/lib/components/banner/index.js +12 -0
  55. package/lib/components/basic_table/basic_table.js +21 -10
  56. package/lib/components/basic_table/collapsed_item_actions.js +5 -4
  57. package/lib/components/basic_table/default_item_action.js +3 -5
  58. package/lib/components/breadcrumbs/_breadcrumb_content.js +29 -19
  59. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
  60. package/lib/components/context_menu/context_menu_panel_title.js +0 -12
  61. package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
  62. package/lib/components/datagrid/controls/display_selector.js +2 -1
  63. package/lib/components/datagrid/controls/keyboard_shortcuts.js +2 -1
  64. package/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -4
  65. package/lib/components/date_picker/react-datepicker/src/index.js +0 -4
  66. package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
  67. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
  68. package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
  69. package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
  70. package/lib/components/form/field_password/field_password.js +6 -3
  71. package/lib/components/header/header.a11y.js +1 -1
  72. package/lib/components/index.js +11 -0
  73. package/lib/components/markdown_editor/markdown_editor_help_button.js +7 -4
  74. package/lib/components/pagination/pagination_button_arrow.js +6 -2
  75. package/lib/components/panel/panel.styles.js +4 -4
  76. package/lib/components/panel/split_panel/split_panel.styles.js +1 -1
  77. package/lib/components/search_bar/search_bar.js +20 -16
  78. package/lib/components/search_bar/search_box.js +4 -2
  79. package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  80. package/lib/components/selectable/selectable_list/selectable_list.styles.js +1 -1
  81. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +2 -1
  82. package/lib/components/table/sticky_header/context.js +41 -0
  83. package/lib/components/table/sticky_header/index.js +19 -0
  84. package/lib/components/table/sticky_header/sticky_header.js +156 -0
  85. package/lib/components/table/sticky_header/sticky_header.styles.js +47 -0
  86. package/lib/components/table/store/provider.js +46 -0
  87. package/lib/components/table/store/store.js +87 -0
  88. package/lib/components/table/store/use_unique_column_id.js +34 -0
  89. package/lib/components/table/table.js +28 -3
  90. package/lib/components/table/table.styles.js +4 -4
  91. package/lib/components/table/table_header_cell.js +117 -48
  92. package/lib/components/table/table_header_cell_checkbox.js +61 -25
  93. package/lib/components/text_truncate/text_truncate.js +8 -3
  94. package/lib/components/tool_tip/tool_tip.js +1 -1
  95. package/lib/components/tool_tip/tool_tip.styles.js +14 -5
  96. package/lib/utils/publisher.js +59 -0
  97. package/optimize/es/components/avatar/avatar.js +16 -4
  98. package/optimize/es/components/avatar/avatar.styles.js +16 -16
  99. package/optimize/es/components/banner/banner.js +112 -0
  100. package/optimize/es/components/banner/banner.styles.js +76 -0
  101. package/optimize/es/components/banner/index.js +9 -0
  102. package/optimize/es/components/basic_table/basic_table.js +21 -10
  103. package/optimize/es/components/basic_table/collapsed_item_actions.js +5 -4
  104. package/optimize/es/components/basic_table/default_item_action.js +3 -5
  105. package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +27 -18
  106. package/optimize/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
  107. package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
  108. package/optimize/es/components/datagrid/controls/display_selector.js +2 -1
  109. package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +2 -1
  110. package/optimize/es/components/date_picker/auto_refresh/auto_refresh.js +7 -4
  111. package/optimize/es/components/date_picker/react-datepicker/src/index.js +1 -5
  112. package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
  113. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
  114. package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
  115. package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
  116. package/optimize/es/components/form/field_password/field_password.js +6 -3
  117. package/optimize/es/components/header/header.a11y.js +1 -1
  118. package/optimize/es/components/index.js +1 -0
  119. package/optimize/es/components/markdown_editor/markdown_editor_help_button.js +7 -4
  120. package/optimize/es/components/pagination/pagination_button_arrow.js +6 -2
  121. package/optimize/es/components/panel/panel.styles.js +4 -4
  122. package/optimize/es/components/panel/split_panel/split_panel.styles.js +1 -1
  123. package/optimize/es/components/search_bar/search_bar.js +20 -16
  124. package/optimize/es/components/search_bar/search_box.js +4 -2
  125. package/optimize/es/components/selectable/selectable_list/selectable_list.js +1 -1
  126. package/optimize/es/components/selectable/selectable_list/selectable_list.styles.js +1 -1
  127. package/optimize/es/components/table/sticky_header/context.js +32 -0
  128. package/optimize/es/components/table/sticky_header/index.js +10 -0
  129. package/optimize/es/components/table/sticky_header/sticky_header.js +146 -0
  130. package/optimize/es/components/table/sticky_header/sticky_header.styles.js +43 -0
  131. package/optimize/es/components/table/store/provider.js +37 -0
  132. package/optimize/es/components/table/store/store.js +82 -0
  133. package/optimize/es/components/table/store/use_unique_column_id.js +25 -0
  134. package/optimize/es/components/table/table.js +15 -3
  135. package/optimize/es/components/table/table.styles.js +4 -4
  136. package/optimize/es/components/table/table_header_cell.js +115 -48
  137. package/optimize/es/components/table/table_header_cell_checkbox.js +58 -25
  138. package/optimize/es/components/text_truncate/text_truncate.js +8 -3
  139. package/optimize/es/components/tool_tip/tool_tip.js +1 -1
  140. package/optimize/es/components/tool_tip/tool_tip.styles.js +14 -5
  141. package/optimize/es/utils/publisher.js +53 -0
  142. package/optimize/lib/components/avatar/avatar.js +16 -4
  143. package/optimize/lib/components/avatar/avatar.styles.js +16 -16
  144. package/optimize/lib/components/banner/banner.js +121 -0
  145. package/optimize/lib/components/banner/banner.styles.js +80 -0
  146. package/optimize/lib/components/banner/index.js +12 -0
  147. package/optimize/lib/components/basic_table/basic_table.js +21 -10
  148. package/optimize/lib/components/basic_table/collapsed_item_actions.js +5 -4
  149. package/optimize/lib/components/basic_table/default_item_action.js +3 -5
  150. package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +27 -18
  151. package/optimize/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
  152. package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
  153. package/optimize/lib/components/datagrid/controls/display_selector.js +2 -1
  154. package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +2 -1
  155. package/optimize/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -4
  156. package/optimize/lib/components/date_picker/react-datepicker/src/index.js +0 -4
  157. package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
  158. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
  159. package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
  160. package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
  161. package/optimize/lib/components/form/field_password/field_password.js +6 -3
  162. package/optimize/lib/components/header/header.a11y.js +1 -1
  163. package/optimize/lib/components/index.js +11 -0
  164. package/optimize/lib/components/markdown_editor/markdown_editor_help_button.js +7 -4
  165. package/optimize/lib/components/pagination/pagination_button_arrow.js +6 -2
  166. package/optimize/lib/components/panel/panel.styles.js +4 -4
  167. package/optimize/lib/components/panel/split_panel/split_panel.styles.js +1 -1
  168. package/optimize/lib/components/search_bar/search_bar.js +20 -16
  169. package/optimize/lib/components/search_bar/search_box.js +4 -2
  170. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +1 -1
  171. package/optimize/lib/components/selectable/selectable_list/selectable_list.styles.js +1 -1
  172. package/optimize/lib/components/table/sticky_header/context.js +41 -0
  173. package/optimize/lib/components/table/sticky_header/index.js +19 -0
  174. package/optimize/lib/components/table/sticky_header/sticky_header.js +156 -0
  175. package/optimize/lib/components/table/sticky_header/sticky_header.styles.js +47 -0
  176. package/optimize/lib/components/table/store/provider.js +46 -0
  177. package/optimize/lib/components/table/store/store.js +87 -0
  178. package/optimize/lib/components/table/store/use_unique_column_id.js +34 -0
  179. package/optimize/lib/components/table/table.js +15 -3
  180. package/optimize/lib/components/table/table.styles.js +4 -4
  181. package/optimize/lib/components/table/table_header_cell.js +118 -48
  182. package/optimize/lib/components/table/table_header_cell_checkbox.js +61 -25
  183. package/optimize/lib/components/text_truncate/text_truncate.js +8 -3
  184. package/optimize/lib/components/tool_tip/tool_tip.js +1 -1
  185. package/optimize/lib/components/tool_tip/tool_tip.styles.js +14 -5
  186. package/optimize/lib/utils/publisher.js +59 -0
  187. package/package.json +2 -2
  188. package/test-env/components/avatar/avatar.js +18 -5
  189. package/test-env/components/avatar/avatar.styles.js +16 -16
  190. package/test-env/components/banner/banner.js +210 -0
  191. package/test-env/components/banner/banner.styles.js +80 -0
  192. package/test-env/components/banner/index.js +12 -0
  193. package/test-env/components/basic_table/basic_table.js +21 -10
  194. package/test-env/components/basic_table/collapsed_item_actions.js +5 -4
  195. package/test-env/components/basic_table/default_item_action.js +3 -5
  196. package/test-env/components/breadcrumbs/_breadcrumb_content.js +29 -19
  197. package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +2 -1
  198. package/test-env/components/context_menu/context_menu_panel_title.js +0 -12
  199. package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +11 -7
  200. package/test-env/components/datagrid/controls/display_selector.js +2 -1
  201. package/test-env/components/datagrid/controls/keyboard_shortcuts.js +2 -1
  202. package/test-env/components/date_picker/auto_refresh/auto_refresh.js +7 -4
  203. package/test-env/components/date_picker/react-datepicker/src/index.js +0 -4
  204. package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +6 -3
  205. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +10 -2
  206. package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +2 -1
  207. package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +8 -5
  208. package/test-env/components/form/field_password/field_password.js +6 -3
  209. package/test-env/components/header/header.a11y.js +1 -1
  210. package/test-env/components/index.js +11 -0
  211. package/test-env/components/markdown_editor/markdown_editor_help_button.js +7 -4
  212. package/test-env/components/pagination/pagination_button_arrow.js +6 -2
  213. package/test-env/components/panel/panel.styles.js +4 -4
  214. package/test-env/components/panel/split_panel/split_panel.styles.js +1 -1
  215. package/test-env/components/search_bar/search_bar.js +20 -16
  216. package/test-env/components/search_bar/search_box.js +4 -2
  217. package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
  218. package/test-env/components/selectable/selectable_list/selectable_list.styles.js +1 -1
  219. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +2 -1
  220. package/test-env/components/table/sticky_header/context.js +41 -0
  221. package/test-env/components/table/sticky_header/index.js +19 -0
  222. package/test-env/components/table/sticky_header/sticky_header.js +156 -0
  223. package/test-env/components/table/sticky_header/sticky_header.styles.js +47 -0
  224. package/test-env/components/table/store/provider.js +46 -0
  225. package/test-env/components/table/store/store.js +87 -0
  226. package/test-env/components/table/store/use_unique_column_id.js +34 -0
  227. package/test-env/components/table/table.js +28 -3
  228. package/test-env/components/table/table.styles.js +4 -4
  229. package/test-env/components/table/table_header_cell.js +118 -48
  230. package/test-env/components/table/table_header_cell_checkbox.js +61 -25
  231. package/test-env/components/text_truncate/text_truncate.js +8 -3
  232. package/test-env/components/tool_tip/tool_tip.js +1 -1
  233. package/test-env/components/tool_tip/tool_tip.styles.js +14 -5
  234. package/test-env/utils/publisher.js +59 -0
@@ -0,0 +1,112 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["title", "headingElement", "text", "size", "color", "actionProps", "media", "onDismiss", "dismissButtonProps", "children", "className", "announceOnMount", "data-test-subj"];
4
+ /*
5
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
+ * or more contributor license agreements. Licensed under the Elastic License
7
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
8
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
9
+ * Side Public License, v 1.
10
+ */
11
+
12
+ import React, { forwardRef } from 'react';
13
+ import classNames from 'classnames';
14
+ import { useEuiMemoizedStyles } from '../../services';
15
+ import { useEuiBackgroundColorCSS } from '../../global_styling';
16
+ import { useEuiI18n } from '../i18n';
17
+ import { EuiTitle } from '../title';
18
+ import { EuiButton, EuiButtonEmpty, EuiButtonIcon } from '../button';
19
+ import { EuiText } from '../text';
20
+ import { EuiLiveAnnouncer } from '../accessibility';
21
+ import { euiBannerStyles } from './banner.styles';
22
+ import { jsx as ___EmotionJSX } from "@emotion/react";
23
+ export var EuiBanner = /*#__PURE__*/forwardRef(function (_ref, ref) {
24
+ var title = _ref.title,
25
+ _ref$headingElement = _ref.headingElement,
26
+ headingElement = _ref$headingElement === void 0 ? 'h2' : _ref$headingElement,
27
+ text = _ref.text,
28
+ _ref$size = _ref.size,
29
+ size = _ref$size === void 0 ? 'm' : _ref$size,
30
+ _ref$color = _ref.color,
31
+ color = _ref$color === void 0 ? 'highlighted' : _ref$color,
32
+ actionProps = _ref.actionProps,
33
+ media = _ref.media,
34
+ onDismiss = _ref.onDismiss,
35
+ dismissButtonProps = _ref.dismissButtonProps,
36
+ children = _ref.children,
37
+ className = _ref.className,
38
+ _ref$announceOnMount = _ref.announceOnMount,
39
+ announceOnMount = _ref$announceOnMount === void 0 ? false : _ref$announceOnMount,
40
+ _ref$dataTestSubj = _ref['data-test-subj'],
41
+ dataTestSubj = _ref$dataTestSubj === void 0 ? 'euiBanner' : _ref$dataTestSubj,
42
+ rest = _objectWithoutProperties(_ref, _excluded);
43
+ var styles = useEuiMemoizedStyles(euiBannerStyles);
44
+ var dismissAriaLabel = useEuiI18n('euiBanner.dismissAriaLabel', 'Dismiss "{title}" announcement', {
45
+ title: title
46
+ });
47
+ var Heading = headingElement;
48
+ var headingSize = size === 's' ? 'xxs' : 'xs';
49
+ var primaryActionProps = actionProps === null || actionProps === void 0 ? void 0 : actionProps.primary;
50
+ var secondaryActionProps = actionProps === null || actionProps === void 0 ? void 0 : actionProps.secondary;
51
+ // a standalone secondary action is not supported
52
+ var hasActions = Boolean(primaryActionProps);
53
+ var componentClass = 'euiBanner';
54
+ var classes = classNames(componentClass, className);
55
+ var backgroundColorStyles = useEuiBackgroundColorCSS()[color];
56
+ var cssStyles = [styles.euiBanner, backgroundColorStyles];
57
+ var containerCssStyles = [styles.container, onDismiss && styles.hasDismiss];
58
+ return ___EmotionJSX("div", _extends({
59
+ ref: ref,
60
+ className: classes,
61
+ css: cssStyles,
62
+ "data-size": size,
63
+ "data-color": color,
64
+ "data-test-subj": dataTestSubj
65
+ }, rest), ___EmotionJSX("div", {
66
+ className: "".concat(componentClass, "__container"),
67
+ css: containerCssStyles
68
+ }, media ? ___EmotionJSX("div", {
69
+ className: "".concat(componentClass, "__media"),
70
+ css: styles.media,
71
+ "data-test-subj": "".concat(dataTestSubj, "-media")
72
+ }, media) : null, ___EmotionJSX("div", {
73
+ className: "".concat(componentClass, "__body"),
74
+ css: styles.body
75
+ }, ___EmotionJSX("div", {
76
+ className: "".concat(componentClass, "__content"),
77
+ css: styles.content
78
+ }, ___EmotionJSX(EuiTitle, {
79
+ size: headingSize
80
+ }, ___EmotionJSX(Heading, {
81
+ css: styles.title,
82
+ "data-test-subj": "".concat(dataTestSubj, "-title")
83
+ }, title)), onDismiss ? ___EmotionJSX(EuiButtonIcon, _extends({
84
+ iconType: "cross",
85
+ color: "text",
86
+ "aria-label": dismissAriaLabel,
87
+ "data-test-subj": "".concat(dataTestSubj, "-dismiss")
88
+ }, dismissButtonProps, {
89
+ css: [styles.dismiss, dismissButtonProps === null || dismissButtonProps === void 0 ? void 0 : dismissButtonProps.css, ";label:EuiBanner;"],
90
+ onClick: onDismiss
91
+ })) : null, text ? ___EmotionJSX(EuiText, {
92
+ css: styles.text,
93
+ size: "s",
94
+ color: "subdued",
95
+ "data-test-subj": "".concat(dataTestSubj, "-text")
96
+ }, text) : null, children && children), hasActions ? ___EmotionJSX("div", {
97
+ className: "".concat(componentClass, "__actions"),
98
+ css: styles.actions,
99
+ "data-test-subj": "".concat(dataTestSubj, "-actions")
100
+ }, primaryActionProps ? ___EmotionJSX(EuiButton, _extends({
101
+ "data-test-subj": "".concat(dataTestSubj, "-primaryAction")
102
+ }, primaryActionProps, {
103
+ color: "primary",
104
+ size: "s"
105
+ })) : null, secondaryActionProps ? ___EmotionJSX(EuiButtonEmpty, _extends({
106
+ "data-test-subj": "".concat(dataTestSubj, "-secondaryAction")
107
+ }, secondaryActionProps, {
108
+ color: "primary",
109
+ size: "s"
110
+ })) : null) : null)), announceOnMount && ___EmotionJSX(EuiLiveAnnouncer, null, title && title, title && text && ",\xA0", text && text, (title || text) && children && ",\xA0", children && children));
111
+ });
112
+ EuiBanner.displayName = 'EuiBanner';
@@ -0,0 +1,76 @@
1
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
2
+ /*
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. Licensed under the Elastic License
5
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
6
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
7
+ * Side Public License, v 1.
8
+ */
9
+
10
+ import { css } from '@emotion/react';
11
+ var CONTAINER_NAME = 'euiBanner';
12
+ var CQC_LAYOUTS = ['narrow', 'wide'];
13
+ var CQC_BREAKPOINTS = {
14
+ s: {
15
+ narrow: '(min-width: 401px)',
16
+ wide: '(min-width: 800px)'
17
+ },
18
+ m: {
19
+ narrow: '(min-width: 601px)',
20
+ wide: '(min-width: 1000px)'
21
+ }
22
+ };
23
+ var CQC_BREAKPOINT_NARROWEST = '(max-width: 400px)';
24
+
25
+ /** Maximum reading width for `text` and `children` slots. */
26
+ var TEXT_MAX_WIDTH = 1200;
27
+ var withContainerQuery = function withContainerQuery(_ref2) {
28
+ var layout = _ref2.layout,
29
+ styles = _ref2.styles;
30
+ return Object.keys(CQC_BREAKPOINTS).map(function (sizeKey) {
31
+ return "\n @container ".concat(CONTAINER_NAME, "--").concat(sizeKey, " ").concat(CQC_BREAKPOINTS[sizeKey][layout], " {\n ").concat(styles, "\n }\n ");
32
+ }).join('\n');
33
+ };
34
+ var _ref = process.env.NODE_ENV === "production" ? {
35
+ name: "qd171g-title",
36
+ styles: "[data-size='s'] &{display:inline;};label:title;"
37
+ } : {
38
+ name: "qd171g-title",
39
+ styles: "[data-size='s'] &{display:inline;};label:title;",
40
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
41
+ };
42
+ export var euiBannerStyles = function euiBannerStyles(_ref3) {
43
+ var euiTheme = _ref3.euiTheme;
44
+ return {
45
+ euiBanner: /*#__PURE__*/css("container-name:", CONTAINER_NAME, ";container-type:inline-size;position:relative;border:", euiTheme.border.thin, ";border-radius:", euiTheme.border.radius.medium, ";&[data-size='s']{container-name:", CONTAINER_NAME, " ", CONTAINER_NAME, "--s;}&[data-size='m']{container-name:", CONTAINER_NAME, " ", CONTAINER_NAME, "--m;};label:euiBanner;"),
46
+ container: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;gap:", euiTheme.size.m, ";padding-inline-start:", euiTheme.size.base, ";padding-inline-end:", euiTheme.size.base, ";[data-size='m'] &{padding-block:", euiTheme.size.base, ";}[data-size='s'] &{padding-block:", euiTheme.size.m, ";}", withContainerQuery({
47
+ layout: 'narrow',
48
+ styles: "\n flex-direction: row;\n align-items: flex-start;\n gap: ".concat(euiTheme.size.base, ";\n ")
49
+ }), ";;label:container;"),
50
+ media: /*#__PURE__*/css("--euiBannerMediaSize:", "calc(".concat(euiTheme.size.base, " * 5)"), ";flex-shrink:0;inline-size:var(--euiBannerMediaSize);block-size:var(--euiBannerMediaSize);aspect-ratio:1/1;[data-size='s'] &{--euiBannerMediaSize:", "calc(".concat(euiTheme.size.base, " * 2)"), ";}", withContainerQuery({
51
+ layout: 'wide',
52
+ styles: "\n align-self: center;\n "
53
+ }), " img,svg{block-size:100%;inline-size:100%;};label:media;"),
54
+ body: /*#__PURE__*/css("flex:1 1 auto;min-inline-size:0;display:flex;flex-direction:column;align-self:flex-start;inline-size:100%;gap:", euiTheme.size.m, ";", withContainerQuery({
55
+ layout: 'narrow',
56
+ styles: "\n align-self: center;\n inline-size: auto;\n "
57
+ }), " ", withContainerQuery({
58
+ layout: 'wide',
59
+ styles: "\n flex-direction: row;\n align-items: center;\n /* stretch to match the media's height so align-items has space to work */\n align-self: stretch;\n justify-content: space-between;\n gap: ".concat(euiTheme.size.xxl, ";\n ")
60
+ }), ";;label:body;"),
61
+ // At size `s` the content slot becomes a block container so the title and
62
+ // text flow inline. Other sizes keep the flex column with a fixed gap.
63
+ content: /*#__PURE__*/css("flex:1 1 auto;min-inline-size:0;max-inline-size:", TEXT_MAX_WIDTH, "px;display:flex;flex-direction:column;gap:", euiTheme.size.xs, ";[data-size='s'] &{display:block;>*+*:not(.euiButtonIcon){margin-block-start:", euiTheme.size.s, ";}};label:content;"),
64
+ title: _ref,
65
+ text: /*#__PURE__*/css("[data-size='s'] &{display:inline;&::before{content:'\xB7';display:inline-block;inline-size:calc(", euiTheme.size.s, " + ", euiTheme.size.xxs, ");text-align:center;color:", euiTheme.colors.textHeading, ";}};label:text;"),
66
+ actions: /*#__PURE__*/css("display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:", euiTheme.size.s, ";@container ", CONTAINER_NAME, " ", CQC_BREAKPOINT_NARROWEST, "{flex-wrap:wrap;>*{inline-size:100%;}}", withContainerQuery({
67
+ layout: 'wide',
68
+ styles: "\n /* Reverses source order so primary appears last (rightmost). */\n flex-direction: row-reverse;\n flex-shrink: 0;\n align-self: center;\n "
69
+ }), ";;label:actions;"),
70
+ hasDismiss: /*#__PURE__*/css(withContainerQuery({
71
+ layout: 'narrow',
72
+ styles: "\n padding-inline-end: calc(".concat(euiTheme.size.s, " * 5);\n ")
73
+ }), ";;label:hasDismiss;"),
74
+ dismiss: /*#__PURE__*/css("position:absolute;inset-block-start:", euiTheme.size.s, ";inset-inline-end:", euiTheme.size.s, ";color:", euiTheme.colors.textSubdued, ";;label:dismiss;")
75
+ };
76
+ };
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+
9
+ export { EuiBanner } from './banner';
@@ -8,7 +8,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
8
8
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _inherits from "@babel/runtime/helpers/inherits";
10
10
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
- var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout", "hasBackground", "scrollableInline", "stickyScrollbar"],
11
+ var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout", "hasBackground", "scrollableInline", "stickyScrollbar", "stickyHeader"],
12
12
  _excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions", "nameTooltip"];
13
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -41,6 +41,7 @@ import { EuiI18n } from '../i18n';
41
41
  import { EuiDelayRender } from '../delay_render';
42
42
  import { htmlIdGenerator } from '../../services/accessibility';
43
43
  import { euiBasicTableBodyLoading, safariLoadingWorkaround } from './basic_table.styles';
44
+ import { EuiToolTip } from '../tool_tip';
44
45
  import { jsx as ___EmotionJSX } from "@emotion/react";
45
46
  var dataTypesProfiles = {
46
47
  auto: {
@@ -155,7 +156,11 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
155
156
  var _ref4 = _slicedToArray(_ref3, 2),
156
157
  selectAllRows = _ref4[0],
157
158
  deselectRows = _ref4[1];
158
- return ___EmotionJSX(EuiCheckbox, {
159
+ return ___EmotionJSX(EuiToolTip, {
160
+ content: checked || indeterminate ? deselectRows : selectAllRows,
161
+ display: "block",
162
+ disableScreenReaderOutput: true
163
+ }, ___EmotionJSX(EuiCheckbox, {
159
164
  id: _this.selectAllIdGenerator(),
160
165
  checked: checked,
161
166
  indeterminate: indeterminate,
@@ -163,9 +168,8 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
163
168
  onChange: onChange,
164
169
  "data-test-subj": "checkboxSelectAll",
165
170
  "aria-label": checked || indeterminate ? deselectRows : selectAllRows,
166
- title: checked || indeterminate ? deselectRows : selectAllRows,
167
171
  label: isMobile ? selectAllRows : null
168
- });
172
+ }));
169
173
  });
170
174
  });
171
175
  _defineProperty(_this, "renderCopyChar", function (columnIndex) {
@@ -355,6 +359,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
355
359
  hasBackground = _this$props2.hasBackground,
356
360
  scrollableInline = _this$props2.scrollableInline,
357
361
  stickyScrollbar = _this$props2.stickyScrollbar,
362
+ stickyHeader = _this$props2.stickyHeader,
358
363
  rest = _objectWithoutProperties(_this$props2, _excluded);
359
364
  var classes = classNames('euiBasicTable', {
360
365
  'euiBasicTable-loading': loading
@@ -375,7 +380,8 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
375
380
  hasBackground = _this$props3.hasBackground,
376
381
  loading = _this$props3.loading,
377
382
  scrollableInline = _this$props3.scrollableInline,
378
- stickyScrollbar = _this$props3.stickyScrollbar;
383
+ stickyScrollbar = _this$props3.stickyScrollbar,
384
+ stickyHeader = _this$props3.stickyHeader;
379
385
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiTableHeaderMobile, {
380
386
  responsiveBreakpoint: responsiveBreakpoint
381
387
  }, this.renderSelectAll(true), this.renderTableMobileSort()), ___EmotionJSX(OverrideCopiedTabularContent, null, ___EmotionJSX(EuiTable, {
@@ -386,6 +392,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
386
392
  hasBackground: hasBackground,
387
393
  scrollableInline: scrollableInline,
388
394
  stickyScrollbar: stickyScrollbar,
395
+ stickyHeader: stickyHeader,
389
396
  css: loading && safariLoadingWorkaround
390
397
  }, this.renderTableCaption(), this.renderTableHead(), this.renderTableBody(), this.renderTableFooter())));
391
398
  }
@@ -654,8 +661,9 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
654
661
  }
655
662
  }, ___EmotionJSX(EuiIcon, {
656
663
  type: "minusCircle",
657
- color: "danger"
658
- }), " ", error));
664
+ color: "danger",
665
+ "aria-hidden": true
666
+ }), ' ', error));
659
667
  }
660
668
  }, {
661
669
  key: "renderEmptyMessage",
@@ -782,15 +790,18 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
782
790
  index: displayedRowIndex + 1
783
791
  }
784
792
  }, function (selectThisRow) {
785
- return ___EmotionJSX(EuiCheckbox, {
793
+ return ___EmotionJSX(EuiToolTip, {
794
+ content: title || selectThisRow,
795
+ display: "block",
796
+ disableScreenReaderOutput: true
797
+ }, ___EmotionJSX(EuiCheckbox, {
786
798
  id: "".concat(_this6.tableId).concat(key, "-checkbox"),
787
799
  disabled: disabled,
788
800
  checked: checked,
789
801
  onChange: onChange,
790
- title: title || selectThisRow,
791
802
  "aria-label": title || selectThisRow,
792
803
  "data-test-subj": "checkboxSelectRow-".concat(itemId)
793
- });
804
+ }));
794
805
  })), disabled];
795
806
  }
796
807
  }, {
@@ -90,10 +90,10 @@ export var CollapsedItemActions = function CollapsedItemActions(_ref) {
90
90
  var popoverButton = ___EmotionJSX(EuiButtonIcon, {
91
91
  className: className,
92
92
  "aria-label": actionsDisabled ? allActionsButtonDisabledAriaLabel : allActionsButtonAriaLabel,
93
- title: actionsDisabled ? allActionsButtonDisabledAriaLabel : undefined,
94
93
  iconType: "boxesVertical",
95
94
  color: "text",
96
95
  isDisabled: actionsDisabled,
96
+ hasAriaDisabled: actionsDisabled,
97
97
  onClick: function onClick() {
98
98
  return setPopoverOpen(function (isOpen) {
99
99
  return !isOpen;
@@ -101,14 +101,15 @@ export var CollapsedItemActions = function CollapsedItemActions(_ref) {
101
101
  },
102
102
  "data-test-subj": "euiCollapsedItemActionsButton"
103
103
  });
104
- var withTooltip = !actionsDisabled && ___EmotionJSX(EuiToolTip, {
105
- content: allActionsTooltip
104
+ var withTooltip = ___EmotionJSX(EuiToolTip, {
105
+ content: actionsDisabled ? allActionsButtonDisabledAriaLabel : allActionsTooltip,
106
+ disableScreenReaderOutput: true
106
107
  }, popoverButton);
107
108
  return ___EmotionJSX(EuiPopover, {
108
109
  className: className,
109
110
  id: "".concat(itemId, "-actions"),
110
111
  isOpen: popoverOpen,
111
- button: withTooltip || popoverButton,
112
+ button: withTooltip,
112
113
  closePopover: closePopover,
113
114
  panelPaddingSize: "none",
114
115
  anchorPosition: "leftCenter"
@@ -48,16 +48,13 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
48
48
  className: className,
49
49
  "aria-labelledby": ariaLabelId,
50
50
  isDisabled: !enabled,
51
+ hasAriaDisabled: !enabled,
51
52
  color: color,
52
53
  iconType: icon,
53
54
  onClick: onClick,
54
55
  href: href,
55
56
  target: action.target,
56
57
  "data-test-subj": dataTestSubj
57
- // If action is disabled, the normal tooltip can't show - attempt to
58
- // provide some amount of affordance with a browser title tooltip
59
- ,
60
- title: !enabled ? tooltipContent : undefined
61
58
  });
62
59
  // actionContent (action.name) is a ReactNode and must be rendered
63
60
  // to an element and referenced by ID for screen readers
@@ -69,6 +66,7 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
69
66
  className: className,
70
67
  size: "s",
71
68
  isDisabled: !enabled,
69
+ hasAriaDisabled: !enabled,
72
70
  color: color,
73
71
  iconType: icon,
74
72
  onClick: onClick,
@@ -78,5 +76,5 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
78
76
  flush: "right"
79
77
  }, actionContent);
80
78
  }
81
- return enabled ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, tooltipProps, button), ariaLabelledBy) : ___EmotionJSX(React.Fragment, null, button, ariaLabelledBy);
79
+ return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, tooltipProps, button), ariaLabelledBy);
82
80
  };
@@ -2,9 +2,9 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
- var _excluded = ["text", "truncate", "type", "href", "rel", "onClick", "popoverContent", "popoverProps", "className", "color", "isFirstBreadcrumb", "isLastBreadcrumb", "isOnlyBreadcrumb", "highlightLastBreadcrumb", "truncateLastBreadcrumb"],
5
+ var _excluded = ["text", "truncate", "type", "href", "rel", "onClick", "popoverContent", "popoverProps", "className", "color", "isFirstBreadcrumb", "isLastBreadcrumb", "isOnlyBreadcrumb", "highlightLastBreadcrumb", "truncateLastBreadcrumb", "title"],
6
6
  _excluded2 = ["css"],
7
- _excluded3 = ["popoverContent", "popoverProps", "color", "type", "title", "aria-current", "className", "isLastBreadcrumb", "breadcrumbCss", "truncationCss", "children"];
7
+ _excluded3 = ["popoverContent", "popoverProps", "color", "type", "title", "hasExplicitTitle", "aria-current", "className", "isLastBreadcrumb", "breadcrumbCss", "truncationCss", "children"];
8
8
  /*
9
9
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
10
10
  * or more contributor license agreements. Licensed under the Elastic License
@@ -21,6 +21,7 @@ import { EuiLink } from '../link';
21
21
  import { EuiPopover } from '../popover';
22
22
  import { EuiIcon } from '../icon';
23
23
  import { useEuiI18n } from '../i18n';
24
+ import { EuiToolTip } from '../tool_tip';
24
25
  import { euiBreadcrumbContentStyles, euiBreadcrumbPopoverStyles } from './_breadcrumb_content.styles';
25
26
  import { jsx as ___EmotionJSX } from "@emotion/react";
26
27
  export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
@@ -39,6 +40,7 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
39
40
  isOnlyBreadcrumb = _ref.isOnlyBreadcrumb,
40
41
  highlightLastBreadcrumb = _ref.highlightLastBreadcrumb,
41
42
  truncateLastBreadcrumb = _ref.truncateLastBreadcrumb,
43
+ propTitle = _ref.title,
42
44
  rest = _objectWithoutProperties(_ref, _excluded);
43
45
  var isApplication = type === 'application';
44
46
  var classes = classNames('euiBreadcrumb__content', className);
@@ -61,8 +63,9 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
61
63
  var linkColor = color || 'subdued';
62
64
  var ariaCurrent = highlightLastBreadcrumb ? 'page' : undefined;
63
65
  var interactionStyles = (isInteractiveBreadcrumb || isBreadcrumbWithPopover) && !isApplication && styles.isInteractive;
66
+ var hasExplicitTitle = propTitle != null && propTitle !== '';
64
67
  return ___EmotionJSX(EuiInnerText, null, function (ref, innerText) {
65
- var title = innerText === '' ? undefined : innerText;
68
+ var title = propTitle || (innerText === '' ? undefined : innerText);
66
69
  var baseProps = {
67
70
  ref: ref,
68
71
  title: title,
@@ -74,6 +77,8 @@ export var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
74
77
  var _ = baseProps.css,
75
78
  popoverButtonProps = _objectWithoutProperties(baseProps, _excluded2);
76
79
  return ___EmotionJSX(EuiBreadcrumbPopover, _extends({}, popoverButtonProps, {
80
+ title: title,
81
+ hasExplicitTitle: hasExplicitTitle,
77
82
  breadcrumbCss: [].concat(cssStyles, [interactionStyles]),
78
83
  truncationCss: truncationStyles,
79
84
  isLastBreadcrumb: isLastBreadcrumb,
@@ -100,6 +105,7 @@ var EuiBreadcrumbPopover = /*#__PURE__*/forwardRef(function (_ref2, ref) {
100
105
  color = _ref2.color,
101
106
  type = _ref2.type,
102
107
  title = _ref2.title,
108
+ hasExplicitTitle = _ref2.hasExplicitTitle,
103
109
  ariaCurrent = _ref2['aria-current'],
104
110
  className = _ref2.className,
105
111
  isLastBreadcrumb = _ref2.isLastBreadcrumb,
@@ -128,25 +134,28 @@ var EuiBreadcrumbPopover = /*#__PURE__*/forwardRef(function (_ref2, ref) {
128
134
  var wrapperStyles = [styles.popoverWrapper.euiBreadcrumb__popoverWrapper, !isLastBreadcrumb && styles.popoverWrapper[type]];
129
135
  var buttonStyles = [styles.euiBreadcrumb__popoverButton].concat(_toConsumableArray(breadcrumbCss));
130
136
  var truncationStyles = [styles.euiBreadcrumb__popoverTruncation].concat(_toConsumableArray(truncationCss));
137
+ var linkButton = ___EmotionJSX(EuiLink, _extends({
138
+ ref: ref,
139
+ "aria-current": ariaCurrent,
140
+ className: className,
141
+ css: buttonStyles,
142
+ color: color,
143
+ onClick: togglePopover
144
+ }, rest), ___EmotionJSX("span", {
145
+ css: truncationStyles
146
+ }, children), ___EmotionJSX(EuiIcon, {
147
+ type: "chevronSingleDown",
148
+ size: "s",
149
+ "aria-label": " - ".concat(popoverAriaLabel)
150
+ }));
131
151
  return ___EmotionJSX(EuiPopover, _extends({}, popoverProps, {
132
152
  isOpen: isPopoverOpen,
133
153
  closePopover: closePopover,
134
154
  css: wrapperStyles,
135
- button: ___EmotionJSX(EuiLink, _extends({
136
- ref: ref,
137
- title: title,
138
- "aria-current": ariaCurrent,
139
- className: className,
140
- css: buttonStyles,
141
- color: color,
142
- onClick: togglePopover
143
- }, rest), ___EmotionJSX("span", {
144
- css: truncationStyles
145
- }, children), ___EmotionJSX(EuiIcon, {
146
- type: "chevronSingleDown",
147
- size: "s",
148
- "aria-label": " - ".concat(popoverAriaLabel)
149
- }))
155
+ button: title ? ___EmotionJSX(EuiToolTip, {
156
+ content: title,
157
+ disableScreenReaderOutput: !hasExplicitTitle
158
+ }, linkButton) : linkButton
150
159
  }), typeof popoverContent === 'function' ? popoverContent(closePopover) : popoverContent);
151
160
  });
152
161
  EuiBreadcrumbPopover.displayName = 'EuiBreadcrumbPopover';
@@ -121,6 +121,7 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
121
121
  var optionIsFocused = activeOptionIndex === index;
122
122
  var optionIsDisabled = option.hasOwnProperty('disabled') && option.disabled === true;
123
123
  var hasOnFocusBadge = onFocusBadge && optionIsFocused && !optionIsDisabled;
124
+ var hasNativeTruncation = !hasTruncationProps && !searchValue && rowHeight !== 'auto';
124
125
  return ___EmotionJSX(EuiListItemLayout, _extends({
125
126
  element: "li",
126
127
  role: "option"
@@ -135,8 +136,8 @@ export var EuiComboBoxOptionsList = /*#__PURE__*/function (_Component) {
135
136
  // loses focus on selecting an option (due to actively removing it from the list)
136
137
  ,
137
138
  id: rootId("_option-".concat(options.indexOf(option))),
139
+ title: hasNativeTruncation && !toolTipContent ? label : undefined,
138
140
  key: (_option$key = option.key) !== null && _option$key !== void 0 ? _option$key : option.label,
139
- title: label,
140
141
  prepend: option.prepend,
141
142
  append: hasOnFocusBadge ? ___EmotionJSX(React.Fragment, null, option.append, hitEnterBadge) : option.append,
142
143
  checked: checked,
@@ -16,6 +16,7 @@ import { EuiButtonIcon } from '../../../button/button_icon';
16
16
  import { EuiButtonEmpty } from '../../../button/button_empty';
17
17
  import { EuiFlexGroup, EuiFlexItem } from '../../../flex';
18
18
  import { EuiPopoverFooter } from '../../../popover';
19
+ import { EuiToolTip } from '../../../tool_tip';
19
20
  import { euiDataGridCellActionsStyles } from './data_grid_cell_actions.styles';
20
21
  import { jsx as ___EmotionJSX } from "@emotion/react";
21
22
  export var EuiDataGridCellActions = function EuiDataGridCellActions(_ref) {
@@ -36,18 +37,21 @@ export var EuiDataGridCellActions = function EuiDataGridCellActions(_ref) {
36
37
  token: "euiDataGridCellActions.expandButtonTitle",
37
38
  default: "Click or hit enter to interact with cell content"
38
39
  }, function (expandButtonTitle) {
39
- return ___EmotionJSX(EuiButtonIcon, {
40
- css: styles.euiDataGridRowCell__actionButtonIcon,
40
+ return ___EmotionJSX(EuiToolTip, {
41
+ content: expandButtonTitle,
42
+ disableScreenReaderOutput: true,
43
+ display: "flex"
44
+ }, ___EmotionJSX(EuiButtonIcon, {
45
+ "aria-hidden": true,
41
46
  className: "euiDataGridRowCell__actionButtonIcon euiDataGridRowCell__expandCell",
47
+ color: "primary",
48
+ css: styles.euiDataGridRowCell__actionButtonIcon,
42
49
  "data-test-subj": "euiDataGridCellExpandButton",
43
50
  display: "fill",
44
- color: "primary",
45
51
  iconSize: "s",
46
52
  iconType: "maximize",
47
- "aria-hidden": true,
48
- onClick: onExpandClick,
49
- title: expandButtonTitle
50
- });
53
+ onClick: onExpandClick
54
+ }));
51
55
  });
52
56
  }, [onExpandClick, styles]);
53
57
  var additionalButtons = useMemo(function () {
@@ -353,7 +353,8 @@ export var useDataGridDisplaySelector = function useDataGridDisplaySelector(show
353
353
  },
354
354
  panelClassName: "euiDataGrid__displayPopoverPanel",
355
355
  button: ___EmotionJSX(EuiToolTip, {
356
- content: buttonLabel
356
+ content: buttonLabel,
357
+ disableScreenReaderOutput: true
357
358
  }, ___EmotionJSX(EuiButtonIcon, {
358
359
  size: "xs",
359
360
  iconType: "controls",
@@ -35,7 +35,8 @@ export var useDataGridKeyboardShortcuts = function useDataGridKeyboardShortcuts(
35
35
  anchorPosition: "downRight",
36
36
  panelPaddingSize: "none",
37
37
  button: ___EmotionJSX(EuiToolTip, {
38
- content: title
38
+ content: title,
39
+ disableScreenReaderOutput: true
39
40
  }, ___EmotionJSX(EuiButtonIcon, {
40
41
  size: "xs",
41
42
  iconType: "keyboard",
@@ -16,6 +16,7 @@ import classNames from 'classnames';
16
16
  import { EuiFieldText, EuiFormPrepend } from '../../form';
17
17
  import { EuiButtonEmpty } from '../../button/button_empty/button_empty';
18
18
  import { EuiInputPopover, EuiPopover } from '../../popover';
19
+ import { EuiToolTip } from '../../tool_tip';
19
20
  import { useEuiI18n } from '../../i18n';
20
21
  import { usePrettyInterval } from '../super_date_picker/pretty_interval';
21
22
  import { EuiRefreshInterval } from './refresh_interval';
@@ -110,7 +111,9 @@ export var EuiAutoRefreshButton = function EuiAutoRefreshButton(_ref2) {
110
111
  })
111
112
  });
112
113
  return ___EmotionJSX(EuiPopover, {
113
- button: ___EmotionJSX(EuiButtonEmpty, _extends({
114
+ button: ___EmotionJSX(EuiToolTip, {
115
+ content: isPaused ? autoRefeshLabelOff : autoRefeshLabelOn
116
+ }, ___EmotionJSX(EuiButtonEmpty, _extends({
114
117
  onClick: function onClick() {
115
118
  return setIsPopoverOpen(function (isOpen) {
116
119
  return !isOpen;
@@ -120,12 +123,12 @@ export var EuiAutoRefreshButton = function EuiAutoRefreshButton(_ref2) {
120
123
  size: size,
121
124
  color: color,
122
125
  iconType: "refreshTime",
123
- title: isPaused ? autoRefeshLabelOff : autoRefeshLabelOn,
124
- isDisabled: isDisabled
126
+ isDisabled: isDisabled,
127
+ hasAriaDisabled: isDisabled
125
128
  }, rest), usePrettyInterval(Boolean(isPaused), refreshInterval, {
126
129
  shortHand: shortHand,
127
130
  unit: intervalUnits
128
- })),
131
+ }))),
129
132
  isOpen: isPopoverOpen,
130
133
  closePopover: function closePopover() {
131
134
  setIsPopoverOpen(false);
@@ -36,7 +36,7 @@ import Calendar from "./calendar";
36
36
  import React from "react";
37
37
  import PropTypes from "prop-types";
38
38
  import classnames from "classnames";
39
- import { newDate, now, cloneDate, isMoment, isDate, isBefore, isAfter, equals, setTime, getMillisecond, getSecond, getMinute, getHour, addDays, addMonths, addWeeks, addYears, subtractDays, subtractMonths, subtractWeeks, subtractYears, isSameTime, isDayDisabled, isOutOfBounds, isDayInRange, getEffectiveMinDate, getEffectiveMaxDate, parseDate, safeDateFormat, getHightLightDaysMap, getYear, getMonth } from "./date_utils";
39
+ import { newDate, now, cloneDate, isMoment, isDate, isBefore, isAfter, equals, setTime, getMillisecond, getSecond, getMinute, getHour, addDays, addMonths, addWeeks, addYears, subtractDays, subtractMonths, subtractWeeks, subtractYears, isSameTime, isDayDisabled, isDayInRange, getEffectiveMinDate, getEffectiveMaxDate, parseDate, safeDateFormat, getHightLightDaysMap, getYear, getMonth } from "./date_utils";
40
40
  import { EuiPopover, popoverAnchorPosition } from '../../../popover/popover';
41
41
  import { EuiFieldText } from '../../../form/field_text';
42
42
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -248,10 +248,6 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
248
248
  _defineProperty(_this, "setSelected", function (date, event, keepInput) {
249
249
  var changedDate = date;
250
250
  if (changedDate !== null && isDayDisabled(changedDate, _this.props)) {
251
- if (isOutOfBounds(changedDate, _this.props)) {
252
- _this.props.onChange(date, event);
253
- _this.props.onSelect(changedDate, event);
254
- }
255
251
  return;
256
252
  }
257
253
  if (changedDate !== null && _this.props.selected) {
@@ -16,6 +16,7 @@ import { useEuiI18n } from '../../../i18n';
16
16
  import { EuiFormRow, EuiFieldText, EuiFormLabel } from '../../../form';
17
17
  import { EuiFlexGroup } from '../../../flex';
18
18
  import { EuiButtonIcon } from '../../../button';
19
+ import { EuiToolTip } from '../../../tool_tip';
19
20
  import { EuiCode } from '../../../code';
20
21
  import { EuiDatePicker } from '../../date_picker';
21
22
  import { EuiTimeZoneDisplay } from './timezone_display';
@@ -174,16 +175,18 @@ export var EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
174
175
  prepend: ___EmotionJSX(EuiFormLabel, {
175
176
  id: textInputLabelId
176
177
  }, labelPrefix)
177
- })), hasUnparsedText && ___EmotionJSX(EuiButtonIcon, {
178
+ })), hasUnparsedText && ___EmotionJSX(EuiToolTip, {
179
+ content: submitButtonLabel,
180
+ disableScreenReaderOutput: true
181
+ }, ___EmotionJSX(EuiButtonIcon, {
178
182
  type: "submit",
179
183
  css: styles.euiAbsoluteTabDateForm__submit,
180
184
  size: "s",
181
185
  display: "base",
182
186
  iconType: "check",
183
187
  "aria-label": submitButtonLabel,
184
- title: submitButtonLabel,
185
188
  "data-test-subj": "parseAbsoluteDateFormat"
186
- })), ___EmotionJSX(EuiTimeZoneDisplay, _extends({
189
+ }))), ___EmotionJSX(EuiTimeZoneDisplay, _extends({
187
190
  id: timeZomeDescriptionId
188
191
  }, timeZoneDisplayProps)));
189
192
  };