@elastic/eui 70.0.0 → 70.2.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 (209) hide show
  1. package/dist/eui_theme_dark.css +11 -180
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +11 -180
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
  6. package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
  7. package/es/components/accordion/accordion.a11y.js +35 -0
  8. package/es/components/badge/beta_badge/beta_badge.js +6 -6
  9. package/es/components/basic_table/in_memory_table.js +8 -0
  10. package/es/components/button/button_display/_button_display.js +7 -6
  11. package/es/components/button/button_display/_button_display.styles.js +4 -4
  12. package/es/components/button/button_display/_button_display_content.js +6 -9
  13. package/es/components/button/button_display/_button_display_content.styles.js +3 -41
  14. package/es/components/card/card.js +13 -31
  15. package/es/components/card/card.styles.js +15 -3
  16. package/es/components/card/card_select/card_select.styles.js +4 -4
  17. package/es/components/card/checkable_card/checkable_card.js +3 -2
  18. package/es/components/context_menu/context_menu_panel.a11y.js +34 -0
  19. package/es/components/datagrid/controls/column_selector.js +1 -1
  20. package/es/components/datagrid/controls/column_sorting.js +1 -1
  21. package/es/components/datagrid/controls/data_grid_toolbar.js +6 -2
  22. package/es/components/datagrid/controls/index.js +1 -0
  23. package/es/components/datagrid/controls/keyboard_shortcuts.js +191 -0
  24. package/es/components/datagrid/data_grid.js +12 -2
  25. package/es/components/date_picker/super_date_picker/super_date_picker.js +22 -4
  26. package/es/components/header/header_links/header_links.js +6 -0
  27. package/es/components/loading/loading_spinner.js +14 -3
  28. package/es/components/loading/loading_spinner.styles.js +11 -7
  29. package/es/components/modal/modal.js +17 -2
  30. package/es/components/page_template/page_template.js +6 -9
  31. package/es/components/popover/popover.js +13 -3
  32. package/es/components/popover/popover_arrow/_popover_arrow.js +1 -0
  33. package/es/components/popover/popover_panel/_popover_panel.js +8 -2
  34. package/es/components/popover/popover_panel/_popover_panel.styles.js +15 -1
  35. package/es/components/search_bar/search_bar.js +39 -5
  36. package/es/components/search_bar/search_box.js +37 -4
  37. package/es/components/selectable/selectable.a11y.js +118 -0
  38. package/es/components/selectable/selectable.js +9 -6
  39. package/es/components/tabs/tab.js +31 -7
  40. package/es/components/tabs/tab.styles.js +63 -0
  41. package/es/components/tabs/tabbed_content/tabbed_content.js +17 -1
  42. package/es/components/tabs/tabs.js +20 -14
  43. package/es/components/tabs/tabs.styles.js +21 -0
  44. package/es/components/tour/tour_step.js +6 -0
  45. package/es/services/string/to_initials.js +1 -1
  46. package/eui.d.ts +305 -198
  47. package/i18ntokens.json +442 -10
  48. package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
  49. package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
  50. package/lib/components/accordion/accordion.a11y.js +44 -0
  51. package/lib/components/badge/beta_badge/beta_badge.js +6 -10
  52. package/lib/components/basic_table/in_memory_table.js +8 -0
  53. package/lib/components/button/button_display/_button_display.js +7 -6
  54. package/lib/components/button/button_display/_button_display.styles.js +4 -4
  55. package/lib/components/button/button_display/_button_display_content.js +6 -9
  56. package/lib/components/button/button_display/_button_display_content.styles.js +10 -40
  57. package/lib/components/card/card.js +14 -33
  58. package/lib/components/card/card.styles.js +15 -3
  59. package/lib/components/card/card_select/card_select.styles.js +4 -4
  60. package/lib/components/card/checkable_card/checkable_card.js +3 -2
  61. package/lib/components/context_menu/context_menu_panel.a11y.js +42 -0
  62. package/lib/components/datagrid/controls/column_selector.js +1 -1
  63. package/lib/components/datagrid/controls/column_sorting.js +1 -1
  64. package/lib/components/datagrid/controls/data_grid_toolbar.js +7 -2
  65. package/lib/components/datagrid/controls/index.js +8 -0
  66. package/lib/components/datagrid/controls/keyboard_shortcuts.js +208 -0
  67. package/lib/components/datagrid/data_grid.js +11 -1
  68. package/lib/components/date_picker/super_date_picker/super_date_picker.js +22 -4
  69. package/lib/components/header/header_links/header_links.js +6 -0
  70. package/lib/components/loading/loading_spinner.js +13 -2
  71. package/lib/components/loading/loading_spinner.styles.js +14 -6
  72. package/lib/components/modal/modal.js +23 -2
  73. package/lib/components/page_template/page_template.js +6 -9
  74. package/lib/components/popover/popover.js +13 -3
  75. package/lib/components/popover/popover_arrow/_popover_arrow.js +1 -0
  76. package/lib/components/popover/popover_panel/_popover_panel.js +8 -2
  77. package/lib/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  78. package/lib/components/search_bar/search_bar.js +40 -5
  79. package/lib/components/search_bar/search_box.js +38 -4
  80. package/lib/components/selectable/selectable.a11y.js +122 -0
  81. package/lib/components/selectable/selectable.js +9 -6
  82. package/lib/components/tabs/tab.js +31 -6
  83. package/lib/components/tabs/tab.styles.js +69 -0
  84. package/lib/components/tabs/tabbed_content/tabbed_content.js +17 -1
  85. package/lib/components/tabs/tabs.js +24 -14
  86. package/lib/components/tabs/tabs.styles.js +32 -0
  87. package/lib/services/string/to_initials.js +1 -1
  88. package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
  89. package/optimize/es/components/accordion/accordion.a11y.js +35 -0
  90. package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -6
  91. package/optimize/es/components/button/button_display/_button_display.js +6 -5
  92. package/optimize/es/components/button/button_display/_button_display.styles.js +4 -4
  93. package/optimize/es/components/button/button_display/_button_display_content.js +6 -9
  94. package/optimize/es/components/button/button_display/_button_display_content.styles.js +3 -41
  95. package/optimize/es/components/card/card.js +12 -30
  96. package/optimize/es/components/card/card.styles.js +15 -3
  97. package/optimize/es/components/card/card_select/card_select.styles.js +4 -4
  98. package/optimize/es/components/card/checkable_card/checkable_card.js +3 -2
  99. package/optimize/es/components/context_menu/context_menu_panel.a11y.js +34 -0
  100. package/optimize/es/components/datagrid/controls/column_selector.js +1 -1
  101. package/optimize/es/components/datagrid/controls/column_sorting.js +1 -1
  102. package/optimize/es/components/datagrid/controls/data_grid_toolbar.js +6 -2
  103. package/optimize/es/components/datagrid/controls/index.js +1 -0
  104. package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +181 -0
  105. package/optimize/es/components/datagrid/data_grid.js +6 -2
  106. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +12 -4
  107. package/optimize/es/components/loading/loading_spinner.js +13 -3
  108. package/optimize/es/components/loading/loading_spinner.styles.js +11 -7
  109. package/optimize/es/components/modal/modal.js +17 -2
  110. package/optimize/es/components/page_template/page_template.js +6 -9
  111. package/optimize/es/components/popover/popover.js +7 -3
  112. package/optimize/es/components/popover/popover_arrow/_popover_arrow.js +1 -0
  113. package/optimize/es/components/popover/popover_panel/_popover_panel.js +6 -1
  114. package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +15 -1
  115. package/optimize/es/components/search_bar/search_bar.js +31 -5
  116. package/optimize/es/components/search_bar/search_box.js +29 -3
  117. package/optimize/es/components/selectable/selectable.a11y.js +107 -0
  118. package/optimize/es/components/selectable/selectable.js +9 -6
  119. package/optimize/es/components/tabs/tab.js +19 -7
  120. package/optimize/es/components/tabs/tab.styles.js +63 -0
  121. package/optimize/es/components/tabs/tabs.js +20 -14
  122. package/optimize/es/components/tabs/tabs.styles.js +21 -0
  123. package/optimize/es/services/string/to_initials.js +1 -1
  124. package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
  125. package/optimize/lib/components/accordion/accordion.a11y.js +44 -0
  126. package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -13
  127. package/optimize/lib/components/button/button_display/_button_display.js +7 -6
  128. package/optimize/lib/components/button/button_display/_button_display.styles.js +4 -4
  129. package/optimize/lib/components/button/button_display/_button_display_content.js +6 -9
  130. package/optimize/lib/components/button/button_display/_button_display_content.styles.js +10 -40
  131. package/optimize/lib/components/card/card.js +13 -32
  132. package/optimize/lib/components/card/card.styles.js +15 -3
  133. package/optimize/lib/components/card/card_select/card_select.styles.js +4 -4
  134. package/optimize/lib/components/card/checkable_card/checkable_card.js +3 -2
  135. package/optimize/lib/components/context_menu/context_menu_panel.a11y.js +42 -0
  136. package/optimize/lib/components/datagrid/controls/column_selector.js +1 -1
  137. package/optimize/lib/components/datagrid/controls/column_sorting.js +1 -1
  138. package/optimize/lib/components/datagrid/controls/data_grid_toolbar.js +7 -2
  139. package/optimize/lib/components/datagrid/controls/index.js +8 -0
  140. package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +207 -0
  141. package/optimize/lib/components/datagrid/data_grid.js +5 -1
  142. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +12 -4
  143. package/optimize/lib/components/loading/loading_spinner.js +14 -2
  144. package/optimize/lib/components/loading/loading_spinner.styles.js +14 -6
  145. package/optimize/lib/components/modal/modal.js +22 -2
  146. package/optimize/lib/components/page_template/page_template.js +6 -9
  147. package/optimize/lib/components/popover/popover.js +7 -3
  148. package/optimize/lib/components/popover/popover_arrow/_popover_arrow.js +1 -0
  149. package/optimize/lib/components/popover/popover_panel/_popover_panel.js +6 -1
  150. package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  151. package/optimize/lib/components/search_bar/search_bar.js +31 -5
  152. package/optimize/lib/components/search_bar/search_box.js +30 -3
  153. package/optimize/lib/components/selectable/selectable.a11y.js +122 -0
  154. package/optimize/lib/components/selectable/selectable.js +9 -6
  155. package/optimize/lib/components/tabs/tab.js +19 -6
  156. package/optimize/lib/components/tabs/tab.styles.js +69 -0
  157. package/optimize/lib/components/tabs/tabs.js +24 -14
  158. package/optimize/lib/components/tabs/tabs.styles.js +32 -0
  159. package/optimize/lib/services/string/to_initials.js +1 -1
  160. package/package.json +5 -4
  161. package/src/components/datagrid/_index.scss +1 -0
  162. package/src/components/datagrid/controls/_data_grid_keyboard_shortcuts.scss +17 -0
  163. package/src/components/datagrid/controls/_data_grid_toolbar.scss +0 -8
  164. package/src/components/index.scss +0 -1
  165. package/src/components/modal/_modal.scss +3 -1
  166. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  167. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.js +1 -1
  168. package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +1 -1
  169. package/test-env/components/accordion/accordion.a11y.js +44 -0
  170. package/test-env/components/badge/beta_badge/beta_badge.js +6 -13
  171. package/test-env/components/basic_table/in_memory_table.js +8 -0
  172. package/test-env/components/button/button_display/_button_display.js +7 -6
  173. package/test-env/components/button/button_display/_button_display.styles.js +4 -4
  174. package/test-env/components/button/button_display/_button_display_content.js +6 -9
  175. package/test-env/components/button/button_display/_button_display_content.styles.js +10 -40
  176. package/test-env/components/card/card.js +14 -33
  177. package/test-env/components/card/card.styles.js +15 -3
  178. package/test-env/components/card/card_select/card_select.styles.js +4 -4
  179. package/test-env/components/card/checkable_card/checkable_card.js +3 -2
  180. package/test-env/components/context_menu/context_menu_panel.a11y.js +42 -0
  181. package/test-env/components/datagrid/controls/column_selector.js +1 -1
  182. package/test-env/components/datagrid/controls/column_sorting.js +1 -1
  183. package/test-env/components/datagrid/controls/data_grid_toolbar.js +7 -2
  184. package/test-env/components/datagrid/controls/index.js +8 -0
  185. package/test-env/components/datagrid/controls/keyboard_shortcuts.js +207 -0
  186. package/test-env/components/datagrid/data_grid.js +11 -1
  187. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +22 -4
  188. package/test-env/components/header/header_links/header_links.js +6 -0
  189. package/test-env/components/loading/loading_spinner.js +14 -2
  190. package/test-env/components/loading/loading_spinner.styles.js +14 -6
  191. package/test-env/components/modal/modal.js +22 -2
  192. package/test-env/components/page_template/page_template.js +6 -9
  193. package/test-env/components/popover/popover.js +13 -3
  194. package/test-env/components/popover/popover_arrow/_popover_arrow.js +1 -0
  195. package/test-env/components/popover/popover_panel/_popover_panel.js +8 -2
  196. package/test-env/components/popover/popover_panel/_popover_panel.styles.js +16 -1
  197. package/test-env/components/search_bar/search_bar.js +39 -5
  198. package/test-env/components/search_bar/search_box.js +38 -4
  199. package/test-env/components/selectable/selectable.a11y.js +122 -0
  200. package/test-env/components/selectable/selectable.js +9 -6
  201. package/test-env/components/tabs/tab.js +31 -6
  202. package/test-env/components/tabs/tab.styles.js +69 -0
  203. package/test-env/components/tabs/tabbed_content/tabbed_content.js +17 -1
  204. package/test-env/components/tabs/tabs.js +24 -14
  205. package/test-env/components/tabs/tabs.styles.js +32 -0
  206. package/test-env/services/string/to_initials.js +1 -1
  207. package/src/components/tabs/_index.scss +0 -1
  208. package/src/components/tabs/_tabs.scss +0 -110
  209. package/src/themes/amsterdam/overrides/_tabs.scss +0 -80
@@ -29,7 +29,7 @@ EuiScreenReaderOnly.propTypes = {
29
29
  children: PropTypes.element.isRequired,
30
30
 
31
31
  /**
32
- * For keyboard navigation, force content to display visually upon focus.
32
+ * For keyboard navigation, force content to display visually upon focus/focus-within.
33
33
  */
34
34
  showOnFocus: PropTypes.bool,
35
35
  className: PropTypes.string
@@ -21,6 +21,6 @@ export var euiScreenReaderOnly = function euiScreenReaderOnly() {
21
21
 
22
22
  export var euiScreenReaderOnlyStyles = function euiScreenReaderOnlyStyles(showOnFocus) {
23
23
  return {
24
- euiScreenReaderOnly: showOnFocus ? /*#__PURE__*/css("&:not(:focus):not(:active){", euiScreenReaderOnly(), ";};label:euiScreenReaderOnly;") : /*#__PURE__*/css(euiScreenReaderOnly(), ";label:euiScreenReaderOnly;")
24
+ euiScreenReaderOnly: showOnFocus ? /*#__PURE__*/css("&:not(:focus):not(:active):not(:focus-within){", euiScreenReaderOnly(), ";};label:euiScreenReaderOnly;") : /*#__PURE__*/css(euiScreenReaderOnly(), ";label:euiScreenReaderOnly;")
25
25
  };
26
26
  };
@@ -0,0 +1,35 @@
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
+ /// <reference types="../../../cypress/support"/>
9
+ import React from 'react';
10
+ import { EuiAccordion } from './index';
11
+ import { EuiPanel } from '../../components/panel';
12
+ import { htmlIdGenerator } from '../../services';
13
+ import { jsx as ___EmotionJSX } from "@emotion/react";
14
+ var baseProps = {
15
+ buttonContent: 'Click me to toggle',
16
+ id: htmlIdGenerator()(),
17
+ initialIsOpen: false
18
+ };
19
+ var noArrow = {
20
+ arrowDisplay: 'none'
21
+ };
22
+ var noArrowProps = Object.assign(baseProps, noArrow);
23
+ describe('EuiAccordion', function () {
24
+ describe('Automated accessibility check', function () {
25
+ it('has zero violations when expanded', function () {
26
+ cy.mount(___EmotionJSX(EuiAccordion, noArrowProps, ___EmotionJSX(EuiPanel, {
27
+ color: "subdued"
28
+ }, "Any content inside of ", ___EmotionJSX("strong", null, "EuiAccordion"), " will appear here. We will include ", ___EmotionJSX("a", {
29
+ href: "#"
30
+ }, "a link"), " to confirm focus.")));
31
+ cy.get('button.euiAccordion__button').click();
32
+ cy.checkAxe();
33
+ });
34
+ });
35
+ });
@@ -15,7 +15,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
15
  * in compliance with, at your election, the Elastic License 2.0 or the Server
16
16
  * Side Public License, v 1.
17
17
  */
18
- import React, { Fragment } from 'react';
18
+ import React from 'react';
19
19
  import PropTypes from "prop-types";
20
20
  import classNames from 'classnames';
21
21
  import { getSecureRelForTarget, useEuiTheme } from '../../../services';
@@ -100,7 +100,7 @@ export var EuiBetaBadge = function EuiBetaBadge(_ref) {
100
100
  anchorProps: anchorProps
101
101
  }, content);
102
102
  } else {
103
- return ___EmotionJSX(Fragment, null, content);
103
+ return ___EmotionJSX("span", anchorProps, content);
104
104
  }
105
105
  } else {
106
106
  if (tooltipContent) {
@@ -122,11 +122,11 @@ export var EuiBetaBadge = function EuiBetaBadge(_ref) {
122
122
  console.warn("Only string titles are permitted on badges that do not use tooltips. Found: ".concat(_typeof(spanTitle)));
123
123
  }
124
124
 
125
- return ___EmotionJSX("span", _extends({
126
- css: cssStyles,
125
+ return ___EmotionJSX("span", anchorProps, ___EmotionJSX("span", _extends({
127
126
  className: classes,
128
- title: spanTitle
129
- }, rest), icon || label);
127
+ title: spanTitle,
128
+ css: cssStyles
129
+ }, rest), icon || label));
130
130
  }
131
131
  }
132
132
  };
@@ -1140,6 +1140,14 @@ EuiInMemoryTable.propTypes = {
1140
1140
  * Date formatter to use when parsing date values
1141
1141
  */
1142
1142
  dateFormat: PropTypes.any,
1143
+
1144
+ /**
1145
+ * Hint to render below the search bar
1146
+ */
1147
+ hint: PropTypes.shape({
1148
+ content: PropTypes.node.isRequired,
1149
+ popoverProps: PropTypes.any
1150
+ }),
1143
1151
  className: PropTypes.string,
1144
1152
  "aria-label": PropTypes.string,
1145
1153
  "data-test-subj": PropTypes.string,
@@ -1,13 +1,13 @@
1
1
  var _excluded = ["children", "iconType", "iconSide", "iconSize", "size", "isDisabled", "disabled", "isLoading", "isSelected", "fullWidth", "minWidth", "contentProps", "textProps", "href", "target", "rel", "type", "style"];
2
2
 
3
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
-
5
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
6
4
 
7
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8
6
 
9
7
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
8
 
9
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
10
+
11
11
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
12
12
 
13
13
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -45,7 +45,8 @@ export function isButtonDisabled(_ref) {
45
45
  export var EuiButtonDisplay = /*#__PURE__*/forwardRef(function (_ref2, ref) {
46
46
  var children = _ref2.children,
47
47
  iconType = _ref2.iconType,
48
- iconSide = _ref2.iconSide,
48
+ _ref2$iconSide = _ref2.iconSide,
49
+ iconSide = _ref2$iconSide === void 0 ? 'left' : _ref2$iconSide,
49
50
  iconSize = _ref2.iconSize,
50
51
  _ref2$size = _ref2.size,
51
52
  size = _ref2$size === void 0 ? 'm' : _ref2$size,
@@ -81,7 +82,7 @@ export var EuiButtonDisplay = /*#__PURE__*/forwardRef(function (_ref2, ref) {
81
82
  iconType: iconType,
82
83
  iconSide: iconSide,
83
84
  iconSize: iconSize,
84
- textProps: _objectSpread({}, textProps)
85
+ textProps: textProps
85
86
  }, contentProps), children);
86
87
 
87
88
  var element = href && !buttonIsDisabled ? 'a' : 'button';
@@ -110,8 +111,8 @@ export var EuiButtonDisplay = /*#__PURE__*/forwardRef(function (_ref2, ref) {
110
111
 
111
112
  return createElement(element, _objectSpread(_objectSpread(_objectSpread({
112
113
  css: cssStyles,
113
- style: minWidth ? _objectSpread(_objectSpread({}, style), {}, {
114
- minWidth: minWidth
114
+ style: minWidth != null ? _objectSpread(_objectSpread({}, style), {}, {
115
+ minInlineSize: minWidth
115
116
  }) : style,
116
117
  ref: ref
117
118
  }, elementProps), relObj), rest), innerNode);
@@ -20,11 +20,11 @@ var _buttonSize = function _buttonSize(size) {
20
20
  };
21
21
 
22
22
  var _ref = process.env.NODE_ENV === "production" ? {
23
- name: "vifhyf-isDisabled",
24
- styles: "pointer-events:none;cursor:not-allowed;label:isDisabled;"
23
+ name: "8595p9-isDisabled",
24
+ styles: "cursor:not-allowed;label:isDisabled;"
25
25
  } : {
26
- name: "vifhyf-isDisabled",
27
- styles: "pointer-events:none;cursor:not-allowed;label:isDisabled;",
26
+ name: "8595p9-isDisabled",
27
+ styles: "cursor:not-allowed;label:isDisabled;",
28
28
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
29
29
  };
30
30
 
@@ -33,14 +33,13 @@ export var EuiButtonDisplayContent = function EuiButtonDisplayContent(_ref) {
33
33
  iconType = _ref.iconType,
34
34
  _ref$iconSize = _ref.iconSize,
35
35
  iconSize = _ref$iconSize === void 0 ? 'm' : _ref$iconSize,
36
- iconSide = _ref.iconSide,
36
+ _ref$iconSide = _ref.iconSide,
37
+ iconSide = _ref$iconSide === void 0 ? 'left' : _ref$iconSide,
37
38
  contentProps = _objectWithoutProperties(_ref, _excluded);
38
39
 
39
40
  var theme = useEuiTheme();
40
41
  var styles = euiButtonDisplayContentStyles(theme);
41
- var cssStyles = [styles.euiButtonDisplayContent, iconSide && styles[iconSide]];
42
- var cssSpinnerStyles = [styles.euiButtonDisplayContent__spinner];
43
- var cssIconStyles = [styles.euiButtonDisplayContent__icon, iconSize && styles[iconSize]]; // Add an icon to the button if one exists.
42
+ var cssStyles = [styles.euiButtonDisplayContent]; // Add an icon to the button if one exists.
44
43
 
45
44
  var icon; // When the button is disabled the text gets gray
46
45
  // and in some buttons the background gets a light gray
@@ -49,18 +48,16 @@ export var EuiButtonDisplayContent = function EuiButtonDisplayContent(_ref) {
49
48
  // are always visible. The default spinner color could be very light.
50
49
 
51
50
  var loadingSpinnerColor = isDisabled ? {
52
- border: 'currentColor'
51
+ border: 'currentcolor'
53
52
  } : undefined;
54
53
 
55
54
  if (isLoading) {
56
55
  icon = ___EmotionJSX(EuiLoadingSpinner, {
57
- css: cssSpinnerStyles,
58
56
  size: iconSize,
59
57
  color: loadingSpinnerColor
60
58
  });
61
59
  } else if (iconType) {
62
60
  icon = ___EmotionJSX(EuiIcon, {
63
- css: cssIconStyles,
64
61
  type: iconType,
65
62
  size: iconSize,
66
63
  color: "inherit" // forces the icon to inherit its parent color
@@ -71,9 +68,9 @@ export var EuiButtonDisplayContent = function EuiButtonDisplayContent(_ref) {
71
68
  var isText = typeof children === 'string';
72
69
  return ___EmotionJSX("span", _extends({
73
70
  css: cssStyles
74
- }, contentProps), icon, isText ? ___EmotionJSX("span", _extends({}, textProps, {
71
+ }, contentProps), iconSide === 'left' && icon, isText || textProps ? ___EmotionJSX("span", _extends({}, textProps, {
75
72
  className: classNames('eui-textTruncate', textProps === null || textProps === void 0 ? void 0 : textProps.className)
76
- }), children) : children);
73
+ }), children) : children, iconSide === 'right' && icon);
77
74
  };
78
75
  EuiButtonDisplayContent.propTypes = {
79
76
  /**
@@ -1,5 +1,3 @@
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
1
  /*
4
2
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
5
3
  * or more contributor license agreements. Licensed under the Elastic License
@@ -9,46 +7,10 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
9
7
  */
10
8
  import { css } from '@emotion/react';
11
9
  import { logicalCSS } from '../../../global_styling';
12
-
13
- var _ref = process.env.NODE_ENV === "production" ? {
14
- name: "gtg6j-euiButtonDisplayContent__icon",
15
- styles: "flex-shrink:0;label:euiButtonDisplayContent__icon;"
16
- } : {
17
- name: "gtg6j-euiButtonDisplayContent__icon",
18
- styles: "flex-shrink:0;label:euiButtonDisplayContent__icon;",
19
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
20
- };
21
-
22
- var _ref2 = process.env.NODE_ENV === "production" ? {
23
- name: "10wlo76-euiButtonDisplayContent__spinner",
24
- styles: "flex-shrink:0;label:euiButtonDisplayContent__spinner;"
25
- } : {
26
- name: "10wlo76-euiButtonDisplayContent__spinner",
27
- styles: "flex-shrink:0;label:euiButtonDisplayContent__spinner;",
28
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
29
- };
30
-
31
- var _ref3 = process.env.NODE_ENV === "production" ? {
32
- name: "qfl6yj-right",
33
- styles: "flex-direction:row-reverse;label:right;"
34
- } : {
35
- name: "qfl6yj-right",
36
- styles: "flex-direction:row-reverse;label:right;",
37
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
38
- };
39
-
40
- export var euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(_ref4) {
41
- var euiTheme = _ref4.euiTheme;
10
+ export var euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(_ref) {
11
+ var euiTheme = _ref.euiTheme;
42
12
  return {
43
13
  // Base
44
- euiButtonDisplayContent: /*#__PURE__*/css(logicalCSS('height', '100%'), ";", logicalCSS('width', '100%'), ";display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";;label:euiButtonDisplayContent;"),
45
- // Icon side
46
- left: /*#__PURE__*/css(";label:left;"),
47
- right: _ref3,
48
- euiButtonDisplayContent__spinner: _ref2,
49
- euiButtonDisplayContent__icon: _ref,
50
- // Icon size
51
- s: /*#__PURE__*/css(";label:s;"),
52
- m: /*#__PURE__*/css(";label:m;")
14
+ euiButtonDisplayContent: /*#__PURE__*/css(logicalCSS('height', '100%'), ";", logicalCSS('width', '100%'), ";display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";;label:euiButtonDisplayContent;")
53
15
  };
54
16
  };
@@ -23,33 +23,19 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
23
23
  import React, { isValidElement } from 'react';
24
24
  import PropTypes from "prop-types";
25
25
  import classNames from 'classnames';
26
- import { keysOf } from '../common';
27
26
  import { getSecureRelForTarget, useEuiTheme } from '../../services';
27
+ import { cloneElementWithCss } from '../../services/theme/clone_element';
28
28
  import { EuiText } from '../text';
29
29
  import { EuiTitle } from '../title';
30
30
  import { EuiBetaBadge } from '../badge/beta_badge';
31
- import { EuiCardSelect, euiCardSelectableColor } from './card_select';
31
+ import { EuiCardSelect } from './card_select';
32
32
  import { useGeneratedHtmlId } from '../../services/accessibility';
33
33
  import { validateHref } from '../../services/security/href_validator';
34
34
  import { EuiPanel } from '../panel';
35
35
  import { EuiSpacer } from '../spacer';
36
36
  import { euiCardBetaBadgeStyles, euiCardStyles, euiCardTextStyles } from './card.styles';
37
37
  import { jsx as ___EmotionJSX } from "@emotion/react";
38
- var textAlignToClassNameMap = {
39
- left: 'euiCard--leftAligned',
40
- center: 'euiCard--centerAligned',
41
- right: 'euiCard--rightAligned'
42
- };
43
- export var ALIGNMENTS = keysOf(textAlignToClassNameMap);
44
- var layoutToClassNameMap = {
45
- vertical: '',
46
- horizontal: 'euiCard--horizontal'
47
- };
48
- export var LAYOUT_ALIGNMENTS = keysOf(layoutToClassNameMap);
49
- /**
50
- * Certain props are only allowed when the layout is vertical
51
- */
52
-
38
+ export var ALIGNMENTS = ['left', 'center', 'right'];
53
39
  export var EuiCard = function EuiCard(_ref) {
54
40
  var className = _ref.className,
55
41
  description = _ref.description,
@@ -84,8 +70,9 @@ export var EuiCard = function EuiCard(_ref) {
84
70
  var euiThemeContext = useEuiTheme();
85
71
  var styles = euiCardStyles(euiThemeContext, paddingSize);
86
72
  var cardStyles = [styles.card.euiCard, // Text alignment should always be left when horizontal
87
- styles.card.aligned[layout === 'horizontal' ? 'left' : textAlign], styles.card.layout[layout], isDisabled && styles.card.disabled];
73
+ styles.card.aligned[layout === 'horizontal' ? 'left' : textAlign], isDisabled && styles.card.disabled];
88
74
  var contentStyles = [styles.content.euiCard__content, styles.content.layout[layout]];
75
+ var mainStyles = [styles.main.euiCard__main, styles.main.layout[layout]];
89
76
  var textStyles = euiCardTextStyles(euiThemeContext);
90
77
  var textCSS = [textStyles.euiCard__text, // Text alignment should always be left when horizontal
91
78
  textStyles.aligned[layout === 'horizontal' ? 'left' : textAlign], isClickable && textStyles.interactive, isDisabled && textStyles.disabled];
@@ -109,15 +96,7 @@ export var EuiCard = function EuiCard(_ref) {
109
96
  }
110
97
  }
111
98
 
112
- var selectableColorClass = selectable ? "euiCard--isSelectable--".concat(euiCardSelectableColor(selectable.color, selectable.isSelected)) : undefined;
113
- var classes = classNames('euiCard', textAlignToClassNameMap[textAlign], layoutToClassNameMap[layout], {
114
- 'euiCard--isClickable': isClickable,
115
- 'euiCard--hasBetaBadge': betaBadgeProps === null || betaBadgeProps === void 0 ? void 0 : betaBadgeProps.label,
116
- 'euiCard--hasIcon': icon,
117
- 'euiCard--isSelectable': selectable,
118
- 'euiCard-isSelected': selectable === null || selectable === void 0 ? void 0 : selectable.isSelected,
119
- 'euiCard-isDisabled': isDisabled
120
- }, selectableColorClass, className);
99
+ var classes = classNames('euiCard', className);
121
100
  var ariaId = useGeneratedHtmlId();
122
101
  var ariaDesc = description ? "".concat(ariaId, "Description") : '';
123
102
  /**
@@ -145,7 +124,7 @@ export var EuiCard = function EuiCard(_ref) {
145
124
 
146
125
  if (icon) {
147
126
  var iconStyles = [styles.icon.euiCard__icon, styles.icon.layout[layout], imageNode && styles.icon.withImage];
148
- iconNode = /*#__PURE__*/React.cloneElement(icon, {
127
+ iconNode = cloneElementWithCss(icon, {
149
128
  className: classNames(icon.props.className, 'euiCard__icon'),
150
129
  css: iconStyles
151
130
  });
@@ -301,14 +280,17 @@ export var EuiCard = function EuiCard(_ref) {
301
280
  hasShadow: isDisabled || display ? false : true,
302
281
  hasBorder: display ? false : undefined,
303
282
  paddingSize: paddingSize
304
- }, rest), optionalCardTop, ___EmotionJSX("div", {
283
+ }, rest), ___EmotionJSX("div", {
284
+ className: "euiCard__main",
285
+ css: mainStyles
286
+ }, optionalCardTop, ___EmotionJSX("div", {
305
287
  className: "euiCard__content",
306
288
  css: contentStyles
307
289
  }, ___EmotionJSX(EuiTitle, {
308
290
  id: "".concat(ariaId, "Title"),
309
291
  className: "euiCard__title",
310
292
  size: titleSize
311
- }, ___EmotionJSX(TitleElement, null, theTitle)), optionalDescription, optionalChildren), optionalBetaBadge, optionalFooter, optionalSelectButton);
293
+ }, ___EmotionJSX(TitleElement, null, theTitle)), optionalDescription, optionalChildren), optionalBetaBadge, optionalFooter), optionalSelectButton);
312
294
  };
313
295
  EuiCard.propTypes = {
314
296
  /**
@@ -320,7 +302,7 @@ EuiCard.propTypes = {
320
302
  /**
321
303
  * Changes alignment of the title and description
322
304
  */
323
- textAlign: PropTypes.oneOf(["left", "center", "right"]),
305
+ textAlign: PropTypes.any,
324
306
 
325
307
  /**
326
308
  * Accepts any combination of elements
@@ -54,6 +54,15 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
54
54
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
55
55
  };
56
56
 
57
+ var _ref6 = process.env.NODE_ENV === "production" ? {
58
+ name: "z24364-euiCard__main",
59
+ styles: "display:flex;label:euiCard__main;"
60
+ } : {
61
+ name: "z24364-euiCard__main",
62
+ styles: "display:flex;label:euiCard__main;",
63
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
64
+ };
65
+
57
66
  export var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize) {
58
67
  var euiTheme = euiThemeContext.euiTheme;
59
68
  var paddingAmount = euiPaddingSize(euiThemeContext, paddingSize);
@@ -61,17 +70,20 @@ export var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize)
61
70
  var halfSpacing = euiPaddingSize(euiThemeContext, halfPaddingKey);
62
71
  return {
63
72
  card: {
64
- euiCard: /*#__PURE__*/css("display:flex;&:has([class*='euiCard__text'][class*='-interactive']:focus:focus-visible){outline:", euiTheme.focus.width, " solid currentColor;};label:euiCard;"),
73
+ euiCard: /*#__PURE__*/css("display:flex;align-items:flex-start;justify-content:space-between;flex-direction:column;&:has([class*='euiCard__text'][class*='-interactive']:focus:focus-visible){outline:", euiTheme.focus.width, " solid currentColor;};label:euiCard;"),
65
74
  aligned: {
66
75
  center: /*#__PURE__*/css(logicalTextAlignCSS('center'), ";align-items:center;;label:center;"),
67
76
  left: /*#__PURE__*/css(logicalTextAlignCSS('left'), ";align-items:flex-start;;label:left;"),
68
77
  right: /*#__PURE__*/css(logicalTextAlignCSS('right'), ";align-items:flex-end;;label:right;")
69
78
  },
79
+ disabled: /*#__PURE__*/css("cursor:not-allowed;background-color:", euiButtonColor(euiThemeContext, 'disabled'), ";color:", euiTheme.colors.disabledText, ";;label:disabled;")
80
+ },
81
+ main: {
82
+ euiCard__main: _ref6,
70
83
  layout: {
71
84
  vertical: _ref5,
72
85
  horizontal: _ref4
73
- },
74
- disabled: /*#__PURE__*/css("cursor:not-allowed;background-color:", euiButtonColor(euiThemeContext, 'disabled'), ";color:", euiTheme.colors.disabledText, ";;label:disabled;")
86
+ }
75
87
  },
76
88
  content: {
77
89
  euiCard__content: _ref3,
@@ -10,11 +10,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
10
  import { css } from '@emotion/react';
11
11
 
12
12
  var _ref = process.env.NODE_ENV === "production" ? {
13
- name: "g3lgnd-euiCardSelect",
14
- styles: "transform:none!important;label:euiCardSelect;"
13
+ name: "aogl4-euiCardSelect",
14
+ styles: "transform:none!important;align-self:flex-end;label:euiCardSelect;"
15
15
  } : {
16
- name: "g3lgnd-euiCardSelect",
17
- styles: "transform:none!important;label:euiCardSelect;",
16
+ name: "aogl4-euiCardSelect",
17
+ styles: "transform:none!important;align-self:flex-end;label:euiCardSelect;",
18
18
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
19
  };
20
20
 
@@ -1,4 +1,4 @@
1
- var _excluded = ["children", "className", "checkableType", "label", "checked", "disabled", "hasShadow", "hasBorder"];
1
+ var _excluded = ["children", "className", "css", "checkableType", "label", "checked", "disabled", "hasShadow", "hasBorder"];
2
2
 
3
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
@@ -24,6 +24,7 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
24
24
  export var EuiCheckableCard = function EuiCheckableCard(_ref) {
25
25
  var children = _ref.children,
26
26
  className = _ref.className,
27
+ css = _ref.css,
27
28
  _ref$checkableType = _ref.checkableType,
28
29
  checkableType = _ref$checkableType === void 0 ? 'radio' : _ref$checkableType,
29
30
  label = _ref.label,
@@ -36,7 +37,7 @@ export var EuiCheckableCard = function EuiCheckableCard(_ref) {
36
37
 
37
38
  var euiThemeContext = useEuiTheme();
38
39
  var styles = euiCheckableCardStyles(euiThemeContext);
39
- var baseStyles = [styles.euiCheckableCard, checked && !disabled && styles.isChecked];
40
+ var baseStyles = [styles.euiCheckableCard, checked && !disabled && styles.isChecked, css];
40
41
  var labelStyles = [styles.label.euiCheckableCard__label, disabled && styles.label.isDisabled];
41
42
  var childStyles = [styles.euiCheckableCard__children];
42
43
  var id = rest.id;
@@ -0,0 +1,34 @@
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
+ /// <reference types="../../../cypress/support"/>
9
+ import React from 'react';
10
+ import { EuiContextMenuItem } from './context_menu_item';
11
+ import { EuiContextMenuPanel } from './context_menu_panel';
12
+ import { jsx as ___EmotionJSX } from "@emotion/react";
13
+ var items = [___EmotionJSX(EuiContextMenuItem, {
14
+ key: "A",
15
+ "data-test-subj": "itemA"
16
+ }, "Option A"), ___EmotionJSX(EuiContextMenuItem, {
17
+ key: "B",
18
+ "data-test-subj": "itemB"
19
+ }, "Option B"), ___EmotionJSX(EuiContextMenuItem, {
20
+ key: "C",
21
+ "data-test-subj": "itemC"
22
+ }, "Option C")];
23
+ describe('EuiContextMenuPanel', function () {
24
+ describe('Automated accessibility check', function () {
25
+ it('has zero violations', function () {
26
+ var showNextPanelHandler = cy.stub();
27
+ cy.mount(___EmotionJSX(EuiContextMenuPanel, {
28
+ items: items,
29
+ showNextPanel: showNextPanelHandler
30
+ }));
31
+ cy.checkAxe();
32
+ });
33
+ });
34
+ });
@@ -127,7 +127,7 @@ export var useDataGridColumnSelector = function useDataGridColumnSelector(availa
127
127
  },
128
128
  anchorPosition: "downLeft",
129
129
  panelPaddingSize: "s",
130
- panelClassName: "euiDataGrid__controlPopoverWithDragDrop",
130
+ hasDragDrop: true,
131
131
  button: ___EmotionJSX(EuiButtonEmpty, {
132
132
  size: "xs",
133
133
  iconType: allowColumnHiding ? 'listAdd' : 'list',
@@ -140,7 +140,7 @@ export var useDataGridColumnSorting = function useDataGridColumnSorting(columns,
140
140
  },
141
141
  anchorPosition: "downLeft",
142
142
  panelPaddingSize: "s",
143
- panelClassName: "euiDataGrid__controlPopoverWithDragDrop",
143
+ hasDragDrop: true,
144
144
  button: ___EmotionJSX(EuiButtonEmpty, {
145
145
  size: "xs",
146
146
  iconType: "sortable",
@@ -6,6 +6,7 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
  import React from 'react';
9
+ import { EuiScreenReaderOnly } from '../../accessibility';
9
10
  import { IS_JEST_ENVIRONMENT } from '../../../utils'; // When below this number the grid only shows the right control icon buttons
10
11
 
11
12
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -17,6 +18,7 @@ export var EuiDataGridToolbar = function EuiDataGridToolbar(_ref) {
17
18
  toolbarVisibility = _ref.toolbarVisibility,
18
19
  isFullScreen = _ref.isFullScreen,
19
20
  fullScreenSelector = _ref.fullScreenSelector,
21
+ keyboardShortcuts = _ref.keyboardShortcuts,
20
22
  displaySelector = _ref.displaySelector,
21
23
  columnSelector = _ref.columnSelector,
22
24
  columnSorting = _ref.columnSorting;
@@ -24,12 +26,14 @@ export var EuiDataGridToolbar = function EuiDataGridToolbar(_ref) {
24
26
  var hasRoomForGridControls = IS_JEST_ENVIRONMENT ? true : gridWidth > minSizeForControls || isFullScreen;
25
27
  return ___EmotionJSX("div", {
26
28
  className: "euiDataGrid__controls",
27
- "data-test-sub": "dataGridControls"
29
+ "data-test-subj": "dataGridControls"
28
30
  }, hasRoomForGridControls && ___EmotionJSX("div", {
29
31
  className: "euiDataGrid__leftControls"
30
32
  }, renderAdditionalControls(toolbarVisibility, 'left.prepend'), checkOrDefaultToolBarDisplayOptions(toolbarVisibility, 'showColumnSelector') ? columnSelector : null, checkOrDefaultToolBarDisplayOptions(toolbarVisibility, 'showSortSelector') ? columnSorting : null, renderAdditionalControls(toolbarVisibility, 'left.append')), ___EmotionJSX("div", {
31
33
  className: "euiDataGrid__rightControls"
32
- }, renderAdditionalControls(toolbarVisibility, 'right'), checkOrDefaultToolBarDisplayOptions(toolbarVisibility, 'showDisplaySelector') ? displaySelector : null, checkOrDefaultToolBarDisplayOptions(toolbarVisibility, 'showFullScreenSelector') ? fullScreenSelector : null));
34
+ }, renderAdditionalControls(toolbarVisibility, 'right'), checkOrDefaultToolBarDisplayOptions(toolbarVisibility, 'showKeyboardShortcuts') ? keyboardShortcuts : ___EmotionJSX(EuiScreenReaderOnly, {
35
+ showOnFocus: true
36
+ }, ___EmotionJSX("span", null, keyboardShortcuts)), checkOrDefaultToolBarDisplayOptions(toolbarVisibility, 'showDisplaySelector') ? displaySelector : null, checkOrDefaultToolBarDisplayOptions(toolbarVisibility, 'showFullScreenSelector') ? fullScreenSelector : null));
33
37
  };
34
38
  /**
35
39
  * Toolbar utilities
@@ -8,5 +8,6 @@
8
8
  export { useDataGridColumnSelector } from './column_selector';
9
9
  export { useDataGridColumnSorting } from './column_sorting';
10
10
  export { useDataGridDisplaySelector, startingStyles } from './display_selector';
11
+ export { useDataGridKeyboardShortcuts } from './keyboard_shortcuts';
11
12
  export { useDataGridFullScreenSelector } from './fullscreen_selector';
12
13
  export { checkOrDefaultToolBarDisplayOptions, EuiDataGridToolbar } from './data_grid_toolbar';