@elastic/eui 74.1.0 → 75.1.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 (149) hide show
  1. package/dist/eui_theme_dark.css +0 -323
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +0 -323
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/code/code_block.js +5 -3
  6. package/es/components/code/code_block_annotations.js +94 -0
  7. package/es/components/code/code_block_annotations.style.js +18 -0
  8. package/es/components/code/code_block_full_screen.js +9 -3
  9. package/es/components/code/code_block_line.styles.js +3 -2
  10. package/es/components/code/utils.js +53 -13
  11. package/es/components/collapsible_nav/collapsible_nav.js +10 -11
  12. package/es/components/flyout/flyout.js +88 -24
  13. package/es/components/form/range/range_track.js +1 -1
  14. package/es/components/header/header.js +3 -1
  15. package/es/components/icon/assets/app_agent.js +2 -10
  16. package/es/components/icon/assets/app_fleet.js +10 -2
  17. package/es/components/search_bar/filters/field_value_selection_filter.js +6 -10
  18. package/es/components/selectable/selectable_list/selectable_list.js +19 -5
  19. package/es/components/steps/step.js +19 -12
  20. package/es/components/steps/step.styles.js +73 -0
  21. package/es/components/steps/step_horizontal.js +55 -42
  22. package/es/components/steps/step_horizontal.styles.js +55 -0
  23. package/es/components/steps/step_number.js +82 -73
  24. package/es/components/steps/step_number.styles.js +76 -0
  25. package/es/components/steps/steps_horizontal.js +11 -7
  26. package/es/components/steps/steps_horizontal.styles.js +35 -0
  27. package/es/components/steps/sub_steps.js +7 -1
  28. package/es/components/steps/sub_steps.styles.js +14 -0
  29. package/es/components/tour/tour_step_indicator.js +0 -3
  30. package/es/global_styling/utility/animations.js +4 -3
  31. package/eui.d.ts +130 -16
  32. package/i18ntokens.json +76 -12
  33. package/lib/components/code/code_block.js +5 -3
  34. package/lib/components/code/code_block_annotations.js +113 -0
  35. package/lib/components/code/code_block_annotations.style.js +29 -0
  36. package/lib/components/code/code_block_full_screen.js +9 -3
  37. package/lib/components/code/code_block_line.styles.js +3 -2
  38. package/lib/components/code/utils.js +54 -13
  39. package/lib/components/collapsible_nav/collapsible_nav.js +10 -11
  40. package/lib/components/flyout/flyout.js +85 -22
  41. package/lib/components/form/range/range_track.js +1 -1
  42. package/lib/components/header/header.js +3 -1
  43. package/lib/components/icon/assets/app_agent.js +2 -10
  44. package/lib/components/icon/assets/app_fleet.js +10 -2
  45. package/lib/components/icon/svgs/app_agent.svg +2 -4
  46. package/lib/components/icon/svgs/app_fleet.svg +4 -2
  47. package/lib/components/search_bar/filters/field_value_selection_filter.js +6 -10
  48. package/lib/components/selectable/selectable_list/selectable_list.js +19 -5
  49. package/lib/components/steps/step.js +21 -12
  50. package/lib/components/steps/step.styles.js +93 -0
  51. package/lib/components/steps/step_horizontal.js +56 -41
  52. package/lib/components/steps/step_horizontal.styles.js +66 -0
  53. package/lib/components/steps/step_number.js +86 -75
  54. package/lib/components/steps/step_number.styles.js +84 -0
  55. package/lib/components/steps/steps_horizontal.js +12 -7
  56. package/lib/components/steps/steps_horizontal.styles.js +38 -0
  57. package/lib/components/steps/sub_steps.js +9 -1
  58. package/lib/components/steps/sub_steps.styles.js +24 -0
  59. package/lib/components/tour/tour_step_indicator.js +0 -3
  60. package/lib/global_styling/utility/animations.js +6 -4
  61. package/optimize/es/components/code/code_block_annotations.js +79 -0
  62. package/optimize/es/components/code/code_block_annotations.style.js +18 -0
  63. package/optimize/es/components/code/code_block_full_screen.js +9 -3
  64. package/optimize/es/components/code/code_block_line.styles.js +3 -2
  65. package/optimize/es/components/code/utils.js +53 -13
  66. package/optimize/es/components/collapsible_nav/collapsible_nav.js +1 -4
  67. package/optimize/es/components/flyout/flyout.js +81 -24
  68. package/optimize/es/components/form/range/range_track.js +1 -1
  69. package/optimize/es/components/header/header.js +3 -1
  70. package/optimize/es/components/icon/assets/app_agent.js +2 -10
  71. package/optimize/es/components/icon/assets/app_fleet.js +10 -2
  72. package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +6 -10
  73. package/optimize/es/components/selectable/selectable_list/selectable_list.js +19 -5
  74. package/optimize/es/components/steps/step.js +19 -12
  75. package/optimize/es/components/steps/step.styles.js +73 -0
  76. package/optimize/es/components/steps/step_horizontal.js +54 -41
  77. package/optimize/es/components/steps/step_horizontal.styles.js +55 -0
  78. package/optimize/es/components/steps/step_number.js +82 -73
  79. package/optimize/es/components/steps/step_number.styles.js +76 -0
  80. package/optimize/es/components/steps/steps_horizontal.js +11 -7
  81. package/optimize/es/components/steps/steps_horizontal.styles.js +35 -0
  82. package/optimize/es/components/steps/sub_steps.js +7 -1
  83. package/optimize/es/components/steps/sub_steps.styles.js +14 -0
  84. package/optimize/es/components/tour/tour_step_indicator.js +0 -3
  85. package/optimize/es/global_styling/utility/animations.js +4 -3
  86. package/optimize/lib/components/code/code_block_annotations.js +105 -0
  87. package/optimize/lib/components/code/code_block_annotations.style.js +29 -0
  88. package/optimize/lib/components/code/code_block_full_screen.js +9 -3
  89. package/optimize/lib/components/code/code_block_line.styles.js +3 -2
  90. package/optimize/lib/components/code/utils.js +54 -13
  91. package/optimize/lib/components/collapsible_nav/collapsible_nav.js +1 -4
  92. package/optimize/lib/components/flyout/flyout.js +80 -22
  93. package/optimize/lib/components/form/range/range_track.js +1 -1
  94. package/optimize/lib/components/header/header.js +3 -1
  95. package/optimize/lib/components/icon/assets/app_agent.js +2 -10
  96. package/optimize/lib/components/icon/assets/app_fleet.js +10 -2
  97. package/optimize/lib/components/icon/svgs/app_agent.svg +2 -4
  98. package/optimize/lib/components/icon/svgs/app_fleet.svg +4 -2
  99. package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +6 -10
  100. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +16 -5
  101. package/optimize/lib/components/steps/step.js +21 -12
  102. package/optimize/lib/components/steps/step.styles.js +93 -0
  103. package/optimize/lib/components/steps/step_horizontal.js +55 -40
  104. package/optimize/lib/components/steps/step_horizontal.styles.js +66 -0
  105. package/optimize/lib/components/steps/step_number.js +86 -75
  106. package/optimize/lib/components/steps/step_number.styles.js +84 -0
  107. package/optimize/lib/components/steps/steps_horizontal.js +12 -7
  108. package/optimize/lib/components/steps/steps_horizontal.styles.js +38 -0
  109. package/optimize/lib/components/steps/sub_steps.js +9 -1
  110. package/optimize/lib/components/steps/sub_steps.styles.js +24 -0
  111. package/optimize/lib/components/tour/tour_step_indicator.js +0 -3
  112. package/optimize/lib/global_styling/utility/animations.js +6 -4
  113. package/package.json +3 -3
  114. package/src/components/index.scss +0 -1
  115. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -1
  116. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  117. package/test-env/components/code/code_block_annotations.js +110 -0
  118. package/test-env/components/code/code_block_annotations.style.js +29 -0
  119. package/test-env/components/code/code_block_full_screen.js +9 -3
  120. package/test-env/components/code/code_block_line.styles.js +3 -2
  121. package/test-env/components/code/utils.js +54 -13
  122. package/test-env/components/collapsible_nav/collapsible_nav.js +10 -11
  123. package/test-env/components/form/range/range_track.js +1 -1
  124. package/test-env/components/header/header.js +3 -1
  125. package/test-env/components/icon/assets/app_agent.js +2 -10
  126. package/test-env/components/icon/assets/app_fleet.js +10 -2
  127. package/test-env/components/search_bar/filters/field_value_selection_filter.js +6 -10
  128. package/test-env/components/selectable/selectable_list/selectable_list.js +16 -5
  129. package/test-env/components/steps/step.js +21 -12
  130. package/test-env/components/steps/step.styles.js +93 -0
  131. package/test-env/components/steps/step_horizontal.js +56 -41
  132. package/test-env/components/steps/step_horizontal.styles.js +66 -0
  133. package/test-env/components/steps/step_number.js +86 -75
  134. package/test-env/components/steps/step_number.styles.js +84 -0
  135. package/test-env/components/steps/steps_horizontal.js +12 -7
  136. package/test-env/components/steps/steps_horizontal.styles.js +38 -0
  137. package/test-env/components/steps/sub_steps.js +9 -1
  138. package/test-env/components/steps/sub_steps.styles.js +24 -0
  139. package/test-env/components/tour/tour_step_indicator.js +0 -3
  140. package/test-env/global_styling/utility/animations.js +6 -4
  141. package/src/components/steps/_index.scss +0 -7
  142. package/src/components/steps/_mixins.scss +0 -12
  143. package/src/components/steps/_step_number.scss +0 -52
  144. package/src/components/steps/_steps.scss +0 -57
  145. package/src/components/steps/_steps_horizontal.scss +0 -135
  146. package/src/components/steps/_sub_steps.scss +0 -15
  147. package/src/components/steps/_variables.scss +0 -11
  148. package/src/themes/amsterdam/global_styling/variables/_steps.scss +0 -8
  149. package/src/themes/amsterdam/overrides/_steps.scss +0 -101
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.EuiCodeBlockAnnotation = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var _services = require("../../services");
15
+
16
+ var _i18n = require("../i18n");
17
+
18
+ var _popover = require("../popover");
19
+
20
+ var _icon = require("../icon");
21
+
22
+ var _button = require("../../themes/amsterdam/global_styling/mixins/button");
23
+
24
+ var _code_block_annotations = require("./code_block_annotations.style");
25
+
26
+ var _react2 = require("@emotion/react");
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
+
30
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
31
+
32
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
33
+
34
+ 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); }
35
+
36
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
37
+
38
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39
+
40
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
41
+
42
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
43
+
44
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
45
+
46
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
47
+
48
+ var EuiCodeBlockAnnotation = function EuiCodeBlockAnnotation(_ref) {
49
+ var lineNumber = _ref.lineNumber,
50
+ children = _ref.children;
51
+
52
+ var _useState = (0, _react.useState)(false),
53
+ _useState2 = _slicedToArray(_useState, 2),
54
+ isOpen = _useState2[0],
55
+ setIsOpen = _useState2[1];
56
+
57
+ var ariaLabel = (0, _i18n.useEuiI18n)('euiCodeBlockAnnotations.ariaLabel', 'Click to view a code annotation for line {lineNumber}', {
58
+ lineNumber: lineNumber
59
+ });
60
+
61
+ var _useEuiTheme = (0, _services.useEuiTheme)(),
62
+ euiTheme = _useEuiTheme.euiTheme,
63
+ colorMode = _useEuiTheme.colorMode;
64
+
65
+ var styles = (0, _code_block_annotations.euiCodeBlockAnnotationsStyles)(euiTheme);
66
+ var buttonIconFocusStyle = (0, _button.useEuiButtonFocusCSS)();
67
+ var cssButtonIconStyles = [styles.euiCodeBlockAnnotation__buttonIcon, buttonIconFocusStyle];
68
+ var isDarkMode = colorMode === 'DARK';
69
+ return (0, _react2.jsx)(_popover.EuiPopover, {
70
+ isOpen: isOpen,
71
+ closePopover: function closePopover() {
72
+ return setIsOpen(false);
73
+ },
74
+ button: (0, _react2.jsx)("button", {
75
+ onClick: function onClick() {
76
+ return setIsOpen(!isOpen);
77
+ },
78
+ "aria-label": ariaLabel,
79
+ css: cssButtonIconStyles,
80
+ "data-test-subj": "euiCodeBlockAnnotationIcon"
81
+ }, (0, _react2.jsx)(_icon.EuiIcon, {
82
+ type: AnnotationInfoIcon,
83
+ size: "s",
84
+ color: isDarkMode ? euiTheme.colors.ink : 'ghost'
85
+ })),
86
+ css: styles.euiCodeBlockAnnotation,
87
+ zIndex: Number(euiTheme.levels.mask) + 1 // Ensure fullscreen annotation popovers sit above the mask
88
+ ,
89
+ anchorPosition: "leftCenter",
90
+ panelProps: {
91
+ 'data-test-subj': 'euiCodeBlockAnnotationPopover'
92
+ }
93
+ }, children);
94
+ };
95
+
96
+ exports.EuiCodeBlockAnnotation = EuiCodeBlockAnnotation;
97
+ EuiCodeBlockAnnotation.propTypes = {
98
+ lineNumber: _propTypes.default.number.isRequired
99
+ };
100
+
101
+ var AnnotationInfoIcon = function AnnotationInfoIcon(props) {
102
+ return (0, _react2.jsx)("svg", _extends({
103
+ width: 11,
104
+ height: 11,
105
+ viewBox: "0 0 16 16",
106
+ fill: "none",
107
+ xmlns: "http://www.w3.org/2000/svg"
108
+ }, props), (0, _react2.jsx)("path", {
109
+ fillRule: "evenodd",
110
+ clipRule: "evenodd",
111
+ d: "M7.139 14l-.052-6.007H5V6.28h4.111l.052 6.007h1.915V14h-3.94zM6.712 3.38c0-.396.118-.725.354-.987S7.639 2 8.077 2c.438 0 .777.131 1.016.393.24.262.359.591.359.987 0 .39-.12.714-.359.972s-.578.388-1.016.388c-.438 0-.775-.13-1.011-.388-.236-.258-.354-.582-.354-.972z"
112
+ }));
113
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiCodeBlockAnnotationsStyles = void 0;
7
+
8
+ var _react = require("@emotion/react");
9
+
10
+ var _global_styling = require("../../global_styling");
11
+
12
+ /*
13
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
14
+ * or more contributor license agreements. Licensed under the Elastic License
15
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
16
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
17
+ * Side Public License, v 1.
18
+ */
19
+ var euiCodeBlockAnnotationsStyles = function euiCodeBlockAnnotationsStyles(euiTheme) {
20
+ var buttonIconSize = (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
21
+ return x - 1.5;
22
+ });
23
+ return {
24
+ euiCodeBlockAnnotation: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('right', 0), " ", (0, _global_styling.logicalCSS)('top', '50%'), " transform:translate(50%, -50%);line-height:1;;label:euiCodeBlockAnnotation;"),
25
+ euiCodeBlockAnnotation__buttonIcon: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(buttonIconSize), " display:flex;align-items:center;justify-content:center;background-color:", euiTheme.colors.primary, ";border-radius:50%;;label:euiCodeBlockAnnotation__buttonIcon;")
26
+ };
27
+ };
28
+
29
+ exports.euiCodeBlockAnnotationsStyles = euiCodeBlockAnnotationsStyles;
@@ -58,9 +58,15 @@ var useFullScreen = function useFullScreen(_ref) {
58
58
  }, []);
59
59
  var onKeyDown = (0, _react.useCallback)(function (event) {
60
60
  if (event.key === _services.keys.ESCAPE) {
61
- event.preventDefault();
62
- event.stopPropagation();
63
- setIsFullScreen(false);
61
+ // We need to make sure annotation Escape keypresses don't also cause fullscreen mode to close
62
+ var focus = document.activeElement;
63
+ var isAnnotationPopover = !!(focus !== null && focus !== void 0 && focus.dataset.popoverOpen) || !!(focus !== null && focus !== void 0 && focus.closest('[data-popover-open]'));
64
+
65
+ if (!isAnnotationPopover) {
66
+ event.preventDefault();
67
+ event.stopPropagation();
68
+ setIsFullScreen(false);
69
+ }
64
70
  }
65
71
  }, []);
66
72
 
@@ -33,11 +33,12 @@ var euiCodeBlockLineStyles = function euiCodeBlockLineStyles(euiThemeContext) {
33
33
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
34
34
  }),
35
35
  lineText: {
36
- euiCodeBlock__lineText: /*#__PURE__*/(0, _css.css)("flex-grow:1;display:inline-block;padding-inline-start:", euiTheme.size.s, ";border-inline-start:", euiTheme.border.thin, ";user-select:text;;label:euiCodeBlock__lineText;"),
36
+ euiCodeBlock__lineText: /*#__PURE__*/(0, _css.css)("flex-grow:1;display:inline-block;padding-inline-start:", euiTheme.size.m, ";border-inline-start:", euiTheme.border.thin, ";user-select:text;;label:euiCodeBlock__lineText;"),
37
37
  isHighlighted: /*#__PURE__*/(0, _css.css)("background:", (0, _global_styling.euiBackgroundColor)(euiThemeContext, 'primary'), ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
38
38
  },
39
39
  lineNumber: {
40
- euiCodeBlock__lineNumber: /*#__PURE__*/(0, _css.css)("flex-grow:0;flex-shrink:0;user-select:none;padding-inline-end:", euiTheme.size.s, ";box-sizing:content-box;&:before{content:attr(data-line-number);color:", euiTheme.colors.subduedText, ";text-align:end;display:block;};label:euiCodeBlock__lineNumber;")
40
+ euiCodeBlock__lineNumberWrapper: /*#__PURE__*/(0, _css.css)("position:relative;flex-grow:0;flex-shrink:0;user-select:none;padding-inline-end:", euiTheme.size.m, ";box-sizing:content-box;;label:euiCodeBlock__lineNumberWrapper;"),
41
+ euiCodeBlock__lineNumber: /*#__PURE__*/(0, _css.css)("color:", euiTheme.colors.subduedText, ";text-align:end;display:block;;label:euiCodeBlock__lineNumber;")
41
42
  }
42
43
  };
43
44
  };
@@ -13,6 +13,8 @@ var _refractor = require("refractor");
13
13
 
14
14
  var _css = require("@emotion/css");
15
15
 
16
+ var _code_block_annotations = require("./code_block_annotations");
17
+
16
18
  var _code_block_line = require("./code_block_line.styles");
17
19
 
18
20
  var _react2 = require("@emotion/react");
@@ -66,7 +68,15 @@ var nodeToHtml = function nodeToHtml(node, idx, nodes) {
66
68
  key: key,
67
69
  className: (0, _css.cx)(properties.className)
68
70
  }), children && children.map(function (el, i) {
69
- return nodeToHtml(el, i, nodes, depth + 1);
71
+ return (// @ts-ignore - using a custom type here to handle JSX annotations
72
+ el.type === 'annotation' ? // @ts-ignore - custom keys are passed by annotationElement below
73
+ (0, _react2.jsx)(_code_block_annotations.EuiCodeBlockAnnotation, {
74
+ lineNumber: el.lineNumber,
75
+ children: el.annotation,
76
+ key: i
77
+ }) // prettier-ignore
78
+ : nodeToHtml(el, i, nodes, depth + 1)
79
+ );
70
80
  }));
71
81
  }
72
82
 
@@ -174,31 +184,61 @@ function wrapLines(nodes, options, euiTheme) {
174
184
  var lineStyles = (0, _css.cx)([styles.euiCodeBlock__line, options.showLineNumbers && styles.hasLineNumbers]);
175
185
 
176
186
  if (options.showLineNumbers) {
177
- var _properties;
187
+ var _properties, _options$annotations;
178
188
 
179
189
  var lineNumber = i + 1;
180
190
  var digits = grouped.length.toString().length;
181
- var width = digits * CHAR_SIZE;
191
+ var width = digits * CHAR_SIZE; // Line text element and highlights
192
+
182
193
  var highlights = options.highlight ? parseLineRanges(options.highlight) : [];
183
194
  var lineTextStyles = (0, _css.cx)([styles.lineText.euiCodeBlock__lineText, highlights.includes(lineNumber) && styles.lineText.isHighlighted]);
184
- var lineNumberStyles = (0, _css.cx)(styles.lineNumber.euiCodeBlock__lineNumber);
185
- children = [{
195
+ var lineTextElement = {
196
+ type: 'element',
197
+ tagName: 'span',
198
+ properties: {
199
+ className: ['euiCodeBlock__lineText', lineTextStyles]
200
+ },
201
+ children: node
202
+ }; // Line number column/wrapper
203
+
204
+ var lineNumberWrapperStyles = (0, _css.cx)(styles.lineNumber.euiCodeBlock__lineNumberWrapper);
205
+ var lineNumberWrapperElement = {
186
206
  type: 'element',
187
207
  tagName: 'span',
188
208
  properties: (_properties = {
189
209
  style: {
190
210
  inlineSize: width
191
211
  }
192
- }, _defineProperty(_properties, 'data-line-number', lineNumber), _defineProperty(_properties, 'aria-hidden', true), _defineProperty(_properties, "className", ['euiCodeBlock__lineNumber', lineNumberStyles]), _properties),
212
+ }, _defineProperty(_properties, 'data-line-number', lineNumber), _defineProperty(_properties, "className", ['euiCodeBlock__lineNumber', lineNumberWrapperStyles]), _properties),
193
213
  children: []
194
- }, {
214
+ }; // Line number element
215
+
216
+ var lineNumberStyles = (0, _css.cx)(styles.lineNumber.euiCodeBlock__lineNumber);
217
+ var lineNumberElement = {
195
218
  type: 'element',
196
219
  tagName: 'span',
197
- properties: {
198
- className: ['euiCodeBlock__lineText', lineTextStyles]
199
- },
200
- children: node
201
- }];
220
+ properties: _defineProperty({
221
+ className: [lineNumberStyles]
222
+ }, 'aria-hidden', true),
223
+ children: [{
224
+ type: 'text',
225
+ value: String(lineNumber)
226
+ }]
227
+ };
228
+ lineNumberWrapperElement.children.push(lineNumberElement); // Annotation element
229
+
230
+ var hasAnnotation = (_options$annotations = options.annotations) === null || _options$annotations === void 0 ? void 0 : _options$annotations.hasOwnProperty(lineNumber);
231
+
232
+ if (hasAnnotation) {
233
+ var annotationElement = {
234
+ type: 'annotation',
235
+ annotation: options.annotations[lineNumber],
236
+ lineNumber: lineNumber
237
+ };
238
+ lineNumberWrapperElement.children.push(annotationElement);
239
+ }
240
+
241
+ children = [lineNumberWrapperElement, lineTextElement];
202
242
  }
203
243
 
204
244
  wrapped.push({
@@ -218,7 +258,8 @@ var highlightByLine = function highlightByLine(children, language, data, euiThem
218
258
  lineNumber: data.start
219
259
  }), {
220
260
  showLineNumbers: data.show,
221
- highlight: data.highlight
261
+ highlight: data.highlight,
262
+ annotations: data.annotations
222
263
  }, euiTheme);
223
264
  };
224
265
 
@@ -19,7 +19,7 @@ var _flyout = require("../flyout");
19
19
 
20
20
  var _react2 = require("@emotion/react");
21
21
 
22
- var _excluded = ["id", "children", "className", "isDocked", "isOpen", "button", "showButtonIfDocked", "dockedBreakpoint", "as", "size", "side", "role", "ownFocus", "outsideClickCloses", "closeButtonPosition", "paddingSize", "focusTrapProps"];
22
+ var _excluded = ["id", "children", "className", "isDocked", "isOpen", "button", "showButtonIfDocked", "dockedBreakpoint", "as", "size", "side", "ownFocus", "outsideClickCloses", "closeButtonPosition", "paddingSize", "focusTrapProps"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
@@ -70,8 +70,6 @@ var EuiCollapsibleNav = function EuiCollapsibleNav(_ref) {
70
70
  size = _ref$size === void 0 ? 320 : _ref$size,
71
71
  _ref$side = _ref.side,
72
72
  side = _ref$side === void 0 ? 'left' : _ref$side,
73
- _ref$role = _ref.role,
74
- role = _ref$role === void 0 ? null : _ref$role,
75
73
  _ref$ownFocus = _ref.ownFocus,
76
74
  ownFocus = _ref$ownFocus === void 0 ? true : _ref$ownFocus,
77
75
  _ref$outsideClickClos = _ref.outsideClickCloses,
@@ -120,7 +118,6 @@ var EuiCollapsibleNav = function EuiCollapsibleNav(_ref) {
120
118
  as: as,
121
119
  size: size,
122
120
  side: side,
123
- role: role,
124
121
  ownFocus: ownFocus,
125
122
  outsideClickCloses: outsideClickCloses,
126
123
  closeButtonPosition: closeButtonPosition,
@@ -229,13 +226,6 @@ EuiCollapsibleNav.propTypes = {
229
226
  */
230
227
  side: _propTypes.default.any,
231
228
 
232
- /**
233
- * Defaults to `dialog` which is best for most cases of the flyout.
234
- * Otherwise pass in your own, aria-role, or `null` to remove it and use the semantic `as` element instead
235
- * @default dialog
236
- */
237
- role: _propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.string.isRequired]),
238
-
239
229
  /**
240
230
  * Named breakpoint (`xs` through `xl`) for customizing the minimum window width to enable docking
241
231
  */
@@ -249,6 +239,15 @@ EuiCollapsibleNav.propTypes = {
249
239
  */
250
240
  focusTrapProps: _propTypes.default.any,
251
241
 
242
+ /**
243
+ * By default, EuiFlyout will consider any fixed `EuiHeader`s that sit alongside or above the EuiFlyout
244
+ * as part of the flyout's focus trap. This prevents focus fighting with interactive elements
245
+ * within fixed headers.
246
+ *
247
+ * Set this to `false` if you need to disable this behavior for a specific reason.
248
+ */
249
+ includeFixedHeadersInFocusTrap: _propTypes.default.bool,
250
+
252
251
  /**
253
252
  * ReactNode to render as this component's content
254
253
  */
@@ -27,11 +27,13 @@ var _resize_observer = require("../observer/resize_observer");
27
27
 
28
28
  var _portal = require("../portal");
29
29
 
30
+ var _accessibility = require("../accessibility");
31
+
30
32
  var _flyout = require("./flyout.styles");
31
33
 
32
34
  var _react2 = require("@emotion/react");
33
35
 
34
- var _excluded = ["className", "children", "as", "hideCloseButton", "closeButtonProps", "closeButtonAriaLabel", "closeButtonPosition", "onClose", "ownFocus", "side", "size", "paddingSize", "maxWidth", "style", "maskProps", "type", "outsideClickCloses", "role", "pushMinBreakpoint", "focusTrapProps"];
36
+ var _excluded = ["className", "children", "as", "hideCloseButton", "closeButtonProps", "closeButtonPosition", "onClose", "ownFocus", "side", "size", "paddingSize", "maxWidth", "style", "maskProps", "type", "outsideClickCloses", "pushMinBreakpoint", "focusTrapProps", "includeFixedHeadersInFocusTrap"];
35
37
 
36
38
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
39
 
@@ -39,6 +41,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
39
41
 
40
42
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
41
43
 
44
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
45
+
46
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
47
+
48
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
49
+
50
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
51
+
42
52
  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); }
43
53
 
44
54
  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; }
@@ -88,7 +98,6 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
88
98
  _ref$hideCloseButton = _ref.hideCloseButton,
89
99
  hideCloseButton = _ref$hideCloseButton === void 0 ? false : _ref$hideCloseButton,
90
100
  closeButtonProps = _ref.closeButtonProps,
91
- closeButtonAriaLabel = _ref.closeButtonAriaLabel,
92
101
  _ref$closeButtonPosit = _ref.closeButtonPosition,
93
102
  closeButtonPosition = _ref$closeButtonPosit === void 0 ? 'inside' : _ref$closeButtonPosit,
94
103
  onClose = _ref.onClose,
@@ -107,11 +116,12 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
107
116
  _ref$type = _ref.type,
108
117
  type = _ref$type === void 0 ? 'overlay' : _ref$type,
109
118
  outsideClickCloses = _ref.outsideClickCloses,
110
- _ref$role = _ref.role,
111
- role = _ref$role === void 0 ? 'dialog' : _ref$role,
112
119
  _ref$pushMinBreakpoin = _ref.pushMinBreakpoint,
113
120
  pushMinBreakpoint = _ref$pushMinBreakpoin === void 0 ? 'l' : _ref$pushMinBreakpoin,
114
- focusTrapProps = _ref.focusTrapProps,
121
+ _ref$focusTrapProps = _ref.focusTrapProps,
122
+ _focusTrapProps = _ref$focusTrapProps === void 0 ? {} : _ref$focusTrapProps,
123
+ _ref$includeFixedHead = _ref.includeFixedHeadersInFocusTrap,
124
+ includeFixedHeadersInFocusTrap = _ref$includeFixedHead === void 0 ? true : _ref$includeFixedHead,
115
125
  rest = _objectWithoutProperties(_ref, _excluded);
116
126
 
117
127
  var Element = as || defaultElement;
@@ -204,7 +214,7 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
204
214
  display: closeButtonPosition === 'outside' ? 'fill' : 'empty',
205
215
  iconType: "cross",
206
216
  color: "text",
207
- "aria-label": closeButtonAriaLabel || closeAriaLabel,
217
+ "aria-label": closeAriaLabel,
208
218
  "data-test-subj": "euiFlyoutCloseButton"
209
219
  }, closeButtonProps, {
210
220
  className: closeButtonClasses,
@@ -217,24 +227,60 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
217
227
  }));
218
228
  });
219
229
  }
230
+ /*
231
+ * If not disabled, automatically add fixed EuiHeaders as shards
232
+ * to EuiFlyout focus traps, to prevent focus fighting
233
+ */
220
234
 
221
- var hasOverlayMask = ownFocus && !isPushed;
222
235
 
223
- var onClickOutside = function onClickOutside(event) {
224
- // Do not close the flyout for any external click
225
- if (outsideClickCloses === false) return undefined;
236
+ var flyoutToggle = (0, _react.useRef)(document.activeElement);
226
237
 
227
- if (hasOverlayMask) {
228
- // The overlay mask is present, so only clicks on the mask should close the flyout, regardless of outsideClickCloses
229
- if (event.target === maskRef.current) return onClose(event);
238
+ var _useState3 = (0, _react.useState)([]),
239
+ _useState4 = _slicedToArray(_useState3, 2),
240
+ fixedHeaders = _useState4[0],
241
+ setFixedHeaders = _useState4[1];
242
+
243
+ (0, _react.useEffect)(function () {
244
+ if (includeFixedHeadersInFocusTrap) {
245
+ var fixedHeaderEls = document.querySelectorAll('.euiHeader[data-fixed-header]');
246
+ setFixedHeaders(Array.from(fixedHeaderEls)); // Flyouts that are toggled from fixed headers do not have working
247
+ // focus trap autoFocus, so we need to focus the flyout wrapper ourselves
248
+
249
+ fixedHeaderEls.forEach(function (header) {
250
+ if (header.contains(flyoutToggle.current)) {
251
+ resizeRef === null || resizeRef === void 0 ? void 0 : resizeRef.focus();
252
+ }
253
+ });
230
254
  } else {
231
- // No overlay mask is present, so any outside clicks should close the flyout
232
- if (outsideClickCloses === true) return onClose(event);
233
- } // Otherwise if ownFocus is false and outsideClickCloses is undefined, outside clicks should not close the flyout
255
+ // Clear existing headers if necessary, e.g. switching to `false`
256
+ setFixedHeaders(function (headers) {
257
+ return headers.length ? [] : headers;
258
+ });
259
+ }
260
+ }, [includeFixedHeadersInFocusTrap, resizeRef]);
234
261
 
262
+ var focusTrapProps = _objectSpread(_objectSpread({}, _focusTrapProps), {}, {
263
+ shards: [].concat(_toConsumableArray(fixedHeaders), _toConsumableArray(_focusTrapProps.shards || []))
264
+ });
265
+ /*
266
+ * Provide meaningful screen reader instructions/details
267
+ */
235
268
 
236
- return undefined;
237
- };
269
+
270
+ var hasOverlayMask = ownFocus && !isPushed;
271
+ var descriptionId = (0, _services.useGeneratedHtmlId)();
272
+ var screenReaderDescription = (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("p", {
273
+ id: descriptionId
274
+ }, hasOverlayMask ? (0, _react2.jsx)(_i18n.EuiI18n, {
275
+ token: "euiFlyout.screenReaderModalDialog",
276
+ default: "You are in a modal dialog. Press Escape or tap/click outside the dialog on the shadowed overlay to close."
277
+ }) : (0, _react2.jsx)(_i18n.EuiI18n, {
278
+ token: "euiFlyout.screenReaderNonModalDialog",
279
+ default: "You are in a non-modal dialog. To close the dialog, press Escape."
280
+ }), ' ', fixedHeaders.length > 0 && (0, _react2.jsx)(_i18n.EuiI18n, {
281
+ token: "euiFlyout.screenReaderFixedHeaders",
282
+ default: "You can still continue tabbing through the page headers in addition to the dialog."
283
+ })));
238
284
  /*
239
285
  * Trap focus even when `ownFocus={false}`, otherwise closing
240
286
  * the flyout won't return focus to the originating button.
@@ -248,6 +294,21 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
248
294
  * (both mousedown and mouseup) the overlay mask.
249
295
  */
250
296
 
297
+ var onClickOutside = function onClickOutside(event) {
298
+ // Do not close the flyout for any external click
299
+ if (outsideClickCloses === false) return undefined;
300
+
301
+ if (hasOverlayMask) {
302
+ // The overlay mask is present, so only clicks on the mask should close the flyout, regardless of outsideClickCloses
303
+ if (event.target === maskRef.current) return onClose(event);
304
+ } else {
305
+ // No overlay mask is present, so any outside clicks should close the flyout
306
+ if (outsideClickCloses === true) return onClose(event);
307
+ } // Otherwise if ownFocus is false and outsideClickCloses is undefined, outside clicks should not close the flyout
308
+
309
+
310
+ return undefined;
311
+ };
251
312
 
252
313
  var flyout = (0, _react2.jsx)(_focus_trap.EuiFocusTrap, _extends({
253
314
  disabled: isPushed,
@@ -256,12 +317,14 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
256
317
  }, focusTrapProps), (0, _react2.jsx)(Element, _extends({
257
318
  css: cssStyles
258
319
  }, rest, {
259
- role: role,
320
+ role: "dialog",
260
321
  className: classes,
261
- tabIndex: -1,
322
+ tabIndex: 0,
323
+ "data-autofocus": true,
324
+ "aria-describedby": !isPushed ? descriptionId : undefined,
262
325
  style: newStyle,
263
326
  ref: setRef
264
- }), closeButton, children)); // If ownFocus is set, wrap with an overlay and allow the user to click it to close it.
327
+ }), !isPushed && screenReaderDescription, closeButton, children)); // If ownFocus is set, wrap with an overlay and allow the user to click it to close it.
265
328
 
266
329
  var mergedMaskProps = _objectSpread(_objectSpread({}, maskProps), {}, {
267
330
  maskRef: (0, _services.useCombinedRefs)([maskProps === null || maskProps === void 0 ? void 0 : maskProps.maskRef, maskRef])
@@ -276,7 +339,7 @@ var EuiFlyout = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
276
339
  flyout = (0, _react2.jsx)(_portal.EuiPortal, null, flyout);
277
340
  }
278
341
 
279
- return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_services.EuiWindowEvent, {
342
+ return (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_services.EuiWindowEvent, {
280
343
  event: "keydown",
281
344
  handler: onKeyDown
282
345
  }), flyout);
@@ -118,7 +118,7 @@ var EuiRangeTrack = function EuiRangeTrack(_ref) {
118
118
  }, [showTicks, ticks, min, max, tickInterval, step]);
119
119
  var euiTheme = (0, _services.useEuiTheme)();
120
120
  var styles = (0, _range_track.euiRangeTrackStyles)(euiTheme);
121
- var cssStyles = [styles.euiRangeTrack, disabled && styles.disabled, levels && !!levels.length && styles.hasLevels, (tickSequence || ticks) && styles.hasTicks];
121
+ var cssStyles = [styles.euiRangeTrack, disabled && styles.disabled, levels && !!levels.length && styles.hasLevels, showTicks && (tickSequence || ticks) && styles.hasTicks];
122
122
 
123
123
  var _useState = (0, _react.useState)(0),
124
124
  _useState2 = _slicedToArray(_useState, 2),
@@ -106,7 +106,9 @@ var EuiHeader = function EuiHeader(_ref) {
106
106
  }
107
107
 
108
108
  return (0, _react2.jsx)("div", _extends({
109
- className: classes
109
+ className: classes,
110
+ "data-fixed-header": position === 'fixed' || undefined // Used by EuiFlyouts as a query selector
111
+
110
112
  }, rest), contents);
111
113
  };
112
114
 
@@ -37,18 +37,10 @@ var EuiIconAppAgent = function EuiIconAppAgent(_ref) {
37
37
  }, props), title ? (0, _react2.jsx)("title", {
38
38
  id: titleId
39
39
  }, title) : null, (0, _react2.jsx)("path", {
40
- className: "euiIcon__fillSecondary",
41
- d: "M21 2.82L16 .038 11 2.82v2.289l5-2.782 5 2.782v-2.29z"
42
- }), (0, _react2.jsx)("path", {
43
- className: "euiIcon__fillSecondary",
44
- d: "M21 7.282L16 4.5l-5 2.782V9.57l5-2.781 5 2.781V7.282z"
45
- }), (0, _react2.jsx)("path", {
46
- d: "M7 5.045L2 7.827v15.577l14 7.788 14-7.788V7.827l-5-2.782v2.289l3 1.669v13.225l-12 6.676-12-6.676V9.003l3-1.669V5.045z"
40
+ d: "M2.996 18.636L0 20.434v6.132l6 3.6 5-3 5 3 5-3 5 3 6-3.6v-6.132l-5-3v-5l-5-3v-5l-6-3.6-6 3.6v2.832l2 .033V5.566l4-2.4 4 2.4v3.868l-1.996 1.197 1 1.733L21 11.166l4 2.4v3.868l-4 2.4-2.257-1.354-.971 1.75L20 21.565v3.868l-4 2.4-4-2.4v-1.7l-2-.033v1.733l-4 2.4-4-2.4v-3.868l1.996-1.197-1-1.733zM22 25.434v-3.868l4-2.4 4 2.4v3.868l-4 2.4-4-2.4z"
47
41
  }), (0, _react2.jsx)("path", {
48
42
  className: "euiIcon__fillSecondary",
49
- fillRule: "evenodd",
50
- clipRule: "evenodd",
51
- d: "M22 12.5L16 9l-6 3.5v7l6 3.5 6-3.5v-7zm-9.974 1.205L16 11.387l3.974 2.318v4.59L16 20.613l-3.974-2.318v-4.59z"
43
+ d: "M11 22.166l-6-3.6v-6.132l6-3.6 6 3.6v6.132l-6 3.6zm4-4.732v-3.868l-4-2.4-4 2.4v3.868l4 2.4 4-2.4z"
52
44
  }));
53
45
  };
54
46
 
@@ -37,10 +37,18 @@ var EuiIconAppFleet = function EuiIconAppFleet(_ref) {
37
37
  }, props), title ? (0, _react2.jsx)("title", {
38
38
  id: titleId
39
39
  }, title) : null, (0, _react2.jsx)("path", {
40
- d: "M2.996 18.636L0 20.434v6.132l6 3.6 5-3 5 3 5-3 5 3 6-3.6v-6.132l-5-3v-5l-5-3v-5l-6-3.6-6 3.6v2.832l2 .033V5.566l4-2.4 4 2.4v3.868l-1.996 1.197 1 1.733L21 11.166l4 2.4v3.868l-4 2.4-2.257-1.354-.971 1.75L20 21.565v3.868l-4 2.4-4-2.4v-1.7l-2-.033v1.733l-4 2.4-4-2.4v-3.868l1.996-1.197-1-1.733zM22 25.434v-3.868l4-2.4 4 2.4v3.868l-4 2.4-4-2.4z"
40
+ className: "euiIcon__fillSecondary",
41
+ d: "M21 2.82L16 .038 11 2.82v2.289l5-2.782 5 2.782v-2.29z"
42
+ }), (0, _react2.jsx)("path", {
43
+ className: "euiIcon__fillSecondary",
44
+ d: "M21 7.282L16 4.5l-5 2.782V9.57l5-2.781 5 2.781V7.282z"
45
+ }), (0, _react2.jsx)("path", {
46
+ d: "M7 5.045L2 7.827v15.577l14 7.788 14-7.788V7.827l-5-2.782v2.289l3 1.669v13.225l-12 6.676-12-6.676V9.003l3-1.669V5.045z"
41
47
  }), (0, _react2.jsx)("path", {
42
48
  className: "euiIcon__fillSecondary",
43
- d: "M11 22.166l-6-3.6v-6.132l6-3.6 6 3.6v6.132l-6 3.6zm4-4.732v-3.868l-4-2.4-4 2.4v3.868l4 2.4 4-2.4z"
49
+ fillRule: "evenodd",
50
+ clipRule: "evenodd",
51
+ d: "M22 12.5L16 9l-6 3.5v7l6 3.5 6-3.5v-7zm-9.974 1.205L16 11.387l3.974 2.318v4.59L16 20.613l-3.974-2.318v-4.59z"
44
52
  }));
45
53
  };
46
54
 
@@ -1,6 +1,4 @@
1
1
  <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
2
- <path class="euiIcon__fillSecondary" d="M21 2.81994L16 0.0383301L11 2.81991V5.10857L16 2.32699L21 5.1086V2.81994Z" />
3
- <path class="euiIcon__fillSecondary" d="M21 7.28161L16 4.5L11 7.28158V9.57024L16 6.78866L21 9.57027V7.28161Z" />
4
- <path d="M7 5.04535L2 7.82695V23.4039L16 31.1923L30 23.4039V7.82695L25 5.04536V7.33402L28 9.00297V22.2278L16 28.9037L4 22.2279V9.00297L7 7.33401V5.04535Z" />
5
- <path class="euiIcon__fillSecondary" fill-rule="evenodd" clip-rule="evenodd" d="M22 12.5L16 9L10 12.5V19.5L16 23L22 19.5V12.5ZM12.026 13.7053L16 11.3871L19.974 13.7053V18.2947L16 20.6129L12.026 18.2947V13.7053Z" />
2
+ <path d="M2.99581 18.6363L0 20.4337V26.5661L6 30.1661L11 27.1661L16 30.1661L21 27.1661L26 30.1661L32 26.5661V20.4337L27 17.4337V12.4337L22 9.43374V4.43374L16 0.83374L10 4.43374V7.26581L12 7.29946V5.56612L16 3.16612L20 5.56612V9.43374L18.0041 10.6313L19.0042 12.3636L21 11.1661L25 13.5661V17.4337L21 19.8337L18.7433 18.4797L17.772 20.2293L20 21.5661V25.4337L16 27.8337L12 25.4337V23.7342L10 23.7006V25.4337L6 27.8337L2 25.4337L2 21.5661L3.99595 20.3686L2.99581 18.6363ZM22 25.4337V21.5661L26 19.1661L30 21.5661V25.4337L26 27.8337L22 25.4337Z" />
3
+ <path class="euiIcon__fillSecondary" d="M11 22.1662L5 18.5662L5 12.4338L11 8.83382L17 12.4338L17 18.5662L11 22.1662ZM15 17.4338L15 13.5662L11 11.1662L7 13.5662L7 17.4338L11 19.8338L15 17.4338Z" />
6
4
  </svg>
@@ -1,4 +1,6 @@
1
1
  <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M2.99581 18.6363L0 20.4337V26.5661L6 30.1661L11 27.1661L16 30.1661L21 27.1661L26 30.1661L32 26.5661V20.4337L27 17.4337V12.4337L22 9.43374V4.43374L16 0.83374L10 4.43374V7.26581L12 7.29946V5.56612L16 3.16612L20 5.56612V9.43374L18.0041 10.6313L19.0042 12.3636L21 11.1661L25 13.5661V17.4337L21 19.8337L18.7433 18.4797L17.772 20.2293L20 21.5661V25.4337L16 27.8337L12 25.4337V23.7342L10 23.7006V25.4337L6 27.8337L2 25.4337L2 21.5661L3.99595 20.3686L2.99581 18.6363ZM22 25.4337V21.5661L26 19.1661L30 21.5661V25.4337L26 27.8337L22 25.4337Z" />
3
- <path class="euiIcon__fillSecondary" d="M11 22.1662L5 18.5662L5 12.4338L11 8.83382L17 12.4338L17 18.5662L11 22.1662ZM15 17.4338L15 13.5662L11 11.1662L7 13.5662L7 17.4338L11 19.8338L15 17.4338Z" />
2
+ <path class="euiIcon__fillSecondary" d="M21 2.81994L16 0.0383301L11 2.81991V5.10857L16 2.32699L21 5.1086V2.81994Z" />
3
+ <path class="euiIcon__fillSecondary" d="M21 7.28161L16 4.5L11 7.28158V9.57024L16 6.78866L21 9.57027V7.28161Z" />
4
+ <path d="M7 5.04535L2 7.82695V23.4039L16 31.1923L30 23.4039V7.82695L25 5.04536V7.33402L28 9.00297V22.2278L16 28.9037L4 22.2279V9.00297L7 7.33401V5.04535Z" />
5
+ <path class="euiIcon__fillSecondary" fill-rule="evenodd" clip-rule="evenodd" d="M22 12.5L16 9L10 12.5V19.5L16 23L22 19.5V12.5ZM12.026 13.7053L16 11.3871L19.974 13.7053V18.2947L16 20.6129L12.026 18.2947V13.7053Z" />
4
6
  </svg>