@elastic/eui 87.1.0 → 88.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/eui_charts_theme.js.map +1 -1
  2. package/dist/eui_theme_dark.css +0 -388
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +0 -388
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/color_picker/color_palette_display/color_palette_display.js +3 -6
  7. package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
  8. package/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
  9. package/es/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
  10. package/es/components/color_picker/color_stops/color_stops.js +11 -0
  11. package/es/components/control_bar/control_bar.js +11 -0
  12. package/es/components/datagrid/controls/keyboard_shortcuts.js +0 -1
  13. package/es/components/description_list/description_list.js +28 -12
  14. package/es/components/description_list/description_list.styles.js +19 -6
  15. package/es/components/description_list/description_list_context.js +1 -1
  16. package/es/components/description_list/description_list_description.js +3 -9
  17. package/es/components/description_list/description_list_description.styles.js +3 -9
  18. package/es/components/description_list/description_list_title.js +7 -4
  19. package/es/components/description_list/description_list_title.styles.js +3 -6
  20. package/es/components/description_list/description_list_types.js +4 -2
  21. package/es/components/key_pad_menu/key_pad_menu_item.js +37 -34
  22. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +41 -0
  23. package/es/components/notification/notification_event.js +10 -0
  24. package/es/components/page_template/page_template.js +2 -1
  25. package/es/components/resizable_container/index.js +2 -1
  26. package/es/components/resizable_container/resizable_button.js +81 -50
  27. package/es/components/resizable_container/resizable_button.styles.js +66 -0
  28. package/es/components/resizable_container/resizable_collapse_button.js +24 -14
  29. package/es/components/resizable_container/resizable_collapse_button.styles.js +85 -0
  30. package/es/components/steps/step.styles.js +5 -5
  31. package/es/components/suggest/suggest.js +16 -0
  32. package/es/components/suggest/suggest_item.js +12 -0
  33. package/es/services/accessibility/html_id_generator.js +19 -3
  34. package/es/services/color_picker/color_picker.js +4 -0
  35. package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  36. package/eui.d.ts +2277 -2090
  37. package/i18ntokens.json +154 -154
  38. package/lib/components/color_picker/color_palette_display/color_palette_display.js +3 -6
  39. package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
  40. package/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
  41. package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
  42. package/lib/components/color_picker/color_stops/color_stops.js +10 -1
  43. package/lib/components/control_bar/control_bar.js +10 -1
  44. package/lib/components/datagrid/controls/keyboard_shortcuts.js +0 -1
  45. package/lib/components/description_list/description_list.js +31 -12
  46. package/lib/components/description_list/description_list.styles.js +24 -13
  47. package/lib/components/description_list/description_list_context.js +1 -1
  48. package/lib/components/description_list/description_list_description.js +2 -8
  49. package/lib/components/description_list/description_list_description.styles.js +2 -8
  50. package/lib/components/description_list/description_list_title.js +7 -4
  51. package/lib/components/description_list/description_list_title.styles.js +2 -5
  52. package/lib/components/description_list/description_list_types.js +8 -4
  53. package/lib/components/key_pad_menu/key_pad_menu_item.js +40 -34
  54. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
  55. package/lib/components/notification/notification_event.js +9 -0
  56. package/lib/components/page_template/page_template.js +2 -1
  57. package/lib/components/resizable_container/index.js +8 -1
  58. package/lib/components/resizable_container/resizable_button.js +83 -51
  59. package/lib/components/resizable_container/resizable_button.styles.js +71 -0
  60. package/lib/components/resizable_container/resizable_collapse_button.js +24 -14
  61. package/lib/components/resizable_container/resizable_collapse_button.styles.js +90 -0
  62. package/lib/components/steps/step.styles.js +5 -5
  63. package/lib/components/suggest/suggest.js +16 -0
  64. package/lib/components/suggest/suggest_item.js +11 -0
  65. package/lib/services/accessibility/html_id_generator.js +21 -2
  66. package/lib/services/color_picker/color_picker.js +4 -0
  67. package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  68. package/optimize/es/components/color_picker/color_stops/color_stops.js +11 -0
  69. package/optimize/es/components/control_bar/control_bar.js +11 -0
  70. package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +0 -1
  71. package/optimize/es/components/description_list/description_list.js +20 -10
  72. package/optimize/es/components/description_list/description_list.styles.js +19 -6
  73. package/optimize/es/components/description_list/description_list_context.js +1 -1
  74. package/optimize/es/components/description_list/description_list_description.js +3 -9
  75. package/optimize/es/components/description_list/description_list_description.styles.js +3 -9
  76. package/optimize/es/components/description_list/description_list_title.js +7 -4
  77. package/optimize/es/components/description_list/description_list_title.styles.js +3 -6
  78. package/optimize/es/components/description_list/description_list_types.js +4 -2
  79. package/optimize/es/components/key_pad_menu/key_pad_menu_item.js +37 -34
  80. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +41 -0
  81. package/optimize/es/components/notification/notification_event.js +10 -0
  82. package/optimize/es/components/page_template/page_template.js +2 -1
  83. package/optimize/es/components/resizable_container/index.js +2 -1
  84. package/optimize/es/components/resizable_container/resizable_button.js +61 -44
  85. package/optimize/es/components/resizable_container/resizable_button.styles.js +66 -0
  86. package/optimize/es/components/resizable_container/resizable_collapse_button.js +19 -11
  87. package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +85 -0
  88. package/optimize/es/components/steps/step.styles.js +5 -5
  89. package/optimize/es/components/suggest/suggest.js +16 -0
  90. package/optimize/es/components/suggest/suggest_item.js +12 -0
  91. package/optimize/es/services/accessibility/html_id_generator.js +19 -3
  92. package/optimize/es/services/color_picker/color_picker.js +4 -0
  93. package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  94. package/optimize/lib/components/color_picker/color_stops/color_stops.js +10 -1
  95. package/optimize/lib/components/control_bar/control_bar.js +10 -1
  96. package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +0 -1
  97. package/optimize/lib/components/description_list/description_list.js +23 -10
  98. package/optimize/lib/components/description_list/description_list.styles.js +24 -13
  99. package/optimize/lib/components/description_list/description_list_context.js +1 -1
  100. package/optimize/lib/components/description_list/description_list_description.js +2 -8
  101. package/optimize/lib/components/description_list/description_list_description.styles.js +2 -8
  102. package/optimize/lib/components/description_list/description_list_title.js +7 -4
  103. package/optimize/lib/components/description_list/description_list_title.styles.js +2 -5
  104. package/optimize/lib/components/description_list/description_list_types.js +8 -4
  105. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.js +40 -34
  106. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
  107. package/optimize/lib/components/notification/notification_event.js +9 -0
  108. package/optimize/lib/components/page_template/page_template.js +2 -1
  109. package/optimize/lib/components/resizable_container/index.js +8 -1
  110. package/optimize/lib/components/resizable_container/resizable_button.js +63 -45
  111. package/optimize/lib/components/resizable_container/resizable_button.styles.js +71 -0
  112. package/optimize/lib/components/resizable_container/resizable_collapse_button.js +19 -11
  113. package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +90 -0
  114. package/optimize/lib/components/steps/step.styles.js +5 -5
  115. package/optimize/lib/components/suggest/suggest.js +16 -0
  116. package/optimize/lib/components/suggest/suggest_item.js +11 -0
  117. package/optimize/lib/services/accessibility/html_id_generator.js +21 -2
  118. package/optimize/lib/services/color_picker/color_picker.js +4 -0
  119. package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  120. package/package.json +18 -18
  121. package/src/components/index.scss +0 -2
  122. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  123. package/test-env/components/color_picker/color_palette_display/color_palette_display.js +3 -6
  124. package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
  125. package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
  126. package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
  127. package/test-env/components/color_picker/color_stops/color_stops.js +10 -1
  128. package/test-env/components/control_bar/control_bar.js +10 -1
  129. package/test-env/components/datagrid/controls/keyboard_shortcuts.js +0 -1
  130. package/test-env/components/description_list/description_list.js +31 -12
  131. package/test-env/components/description_list/description_list.styles.js +24 -13
  132. package/test-env/components/description_list/description_list_context.js +1 -1
  133. package/test-env/components/description_list/description_list_description.js +2 -8
  134. package/test-env/components/description_list/description_list_description.styles.js +2 -8
  135. package/test-env/components/description_list/description_list_title.js +7 -4
  136. package/test-env/components/description_list/description_list_title.styles.js +2 -5
  137. package/test-env/components/description_list/description_list_types.js +8 -4
  138. package/test-env/components/key_pad_menu/key_pad_menu_item.js +40 -34
  139. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
  140. package/test-env/components/notification/notification_event.js +9 -0
  141. package/test-env/components/page_template/page_template.js +2 -1
  142. package/test-env/components/resizable_container/index.js +8 -1
  143. package/test-env/components/resizable_container/resizable_button.js +83 -51
  144. package/test-env/components/resizable_container/resizable_button.styles.js +71 -0
  145. package/test-env/components/resizable_container/resizable_collapse_button.js +19 -14
  146. package/test-env/components/resizable_container/resizable_collapse_button.styles.js +90 -0
  147. package/test-env/components/steps/step.styles.js +5 -5
  148. package/test-env/components/suggest/suggest.js +16 -0
  149. package/test-env/components/suggest/suggest_item.js +11 -0
  150. package/test-env/services/color_picker/color_picker.js +4 -0
  151. package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -1
  152. package/src/components/key_pad_menu/_index.scss +0 -5
  153. package/src/components/key_pad_menu/_key_pad_menu_item.scss +0 -123
  154. package/src/components/key_pad_menu/_variables.scss +0 -2
  155. package/src/components/resizable_container/_index.scss +0 -3
  156. package/src/components/resizable_container/_resizable_button.scss +0 -129
  157. package/src/components/resizable_container/_resizable_collapse_button.scss +0 -145
  158. package/src/components/resizable_container/_variables.scss +0 -2
  159. package/src/themes/amsterdam/overrides/_key_pad_menu.scss +0 -46
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.htmlIdGenerator = htmlIdGenerator;
7
8
  exports.useGeneratedHtmlId = void 0;
9
+ var _react = _interopRequireWildcard(require("react"));
8
10
  var _uuid = require("uuid");
9
- var _react = require("react");
11
+ 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); }
12
+ 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; }
10
13
  /*
11
14
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
15
  * or more contributor license agreements. Licensed under the Elastic License
@@ -38,7 +41,8 @@ function htmlIdGenerator() {
38
41
  * This prevents IDs from being re-randomized on every component update.
39
42
  */
40
43
 
41
- var useGeneratedHtmlId = function useGeneratedHtmlId() {
44
+ // We can remove this deprecated hook once EUI no longer needs to support React 16-17
45
+ var useDeprecatedGeneratedHtmlId = function useDeprecatedGeneratedHtmlId() {
42
46
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
43
47
  prefix = _ref.prefix,
44
48
  suffix = _ref.suffix,
@@ -47,4 +51,19 @@ var useGeneratedHtmlId = function useGeneratedHtmlId() {
47
51
  return conditionalId || htmlIdGenerator(prefix)(suffix);
48
52
  }, [conditionalId, prefix, suffix]);
49
53
  };
54
+ var useNewGeneratedHtmlId = function useNewGeneratedHtmlId() {
55
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
56
+ _ref2$prefix = _ref2.prefix,
57
+ prefix = _ref2$prefix === void 0 ? '' : _ref2$prefix,
58
+ _ref2$suffix = _ref2.suffix,
59
+ suffix = _ref2$suffix === void 0 ? '' : _ref2$suffix,
60
+ conditionalId = _ref2.conditionalId;
61
+ // Using the default export and dot notation here is intentional
62
+ // to prevent React <18 import errors.
63
+ var id = _react.default.useId();
64
+ return (0, _react.useMemo)(function () {
65
+ return conditionalId || "".concat(prefix).concat(id).concat(suffix);
66
+ }, [id, conditionalId, prefix, suffix]);
67
+ };
68
+ var useGeneratedHtmlId = 'useId' in _react.default ? useNewGeneratedHtmlId : useDeprecatedGeneratedHtmlId;
50
69
  exports.useGeneratedHtmlId = useGeneratedHtmlId;
@@ -22,6 +22,10 @@ var generateRandomColor = function generateRandomColor() {
22
22
  "#".concat(Math.floor(Math.random() * 16777215).toString(16))
23
23
  );
24
24
  };
25
+
26
+ /**
27
+ * @deprecated
28
+ */
25
29
  var useColorStopsState = function useColorStopsState() {
26
30
  var useRandomColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
27
31
  var initialColorStops = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [{
@@ -87,7 +87,6 @@ var euiShadowXLarge = function euiShadowXLarge(_ref9) {
87
87
 
88
88
  /**
89
89
  * slightShadowHover
90
- * TODO: I think this is only used by panels/cards in the Amsterdam theme, move there
91
90
  */
92
91
  exports.euiShadowXLarge = euiShadowXLarge;
93
92
  var euiSlightShadowHover = function euiSlightShadowHover(_ref11) {
@@ -26,6 +26,10 @@ import { EuiRangeHighlight } from '../../form/range/range_highlight';
26
26
  import { EuiRangeTrack } from '../../form/range/range_track';
27
27
  import { EuiRangeWrapper } from '../../form/range/range_wrapper';
28
28
  import { euiColorStopsStyles, euiColorStopsAddContainerStyles } from './color_stops.styles';
29
+
30
+ /**
31
+ * @deprecated
32
+ */
29
33
  import { jsx as ___EmotionJSX } from "@emotion/react";
30
34
  // Because of how the thumbs are rendered in the popover, using ref results in an infinite loop.
31
35
  // We'll instead use old fashioned namespaced DOM selectors to get references
@@ -81,6 +85,13 @@ function getRangeMax(colorStops, max) {
81
85
  }
82
86
  return DEFAULT_MAX;
83
87
  }
88
+
89
+ /**
90
+ * @deprecated - EuiColorStops is scheduled for deprecation due to low internal usage and high
91
+ * maintenance requirements. If necessary, we recommend copying this component into your own application.
92
+ *
93
+ * The component will be permanently removed in October 2023.
94
+ */
84
95
  export var EuiColorStops = function EuiColorStops(_ref) {
85
96
  var _ref$addColor = _ref.addColor,
86
97
  addColor = _ref$addColor === void 0 ? DEFAULT_VISUALIZATION_COLOR : _ref$addColor,
@@ -67,7 +67,18 @@ import { EuiPortal } from '../portal';
67
67
  * Icon can extend EuiButtonIcon
68
68
  * Also omits `iconType` and `id` as these are also specific to icon control
69
69
  */
70
+
71
+ /**
72
+ * @deprecated
73
+ */
70
74
  import { jsx as ___EmotionJSX } from "@emotion/react";
75
+ /**
76
+ * @deprecated - EuiControlBar is scheduled for deprecation due to low internal usage and high
77
+ * overlap with other existing EUI components. We recommend using EuiBottomBar instead,
78
+ * or copying this component into your own application for usage if necessary.
79
+ *
80
+ * The component will be permanently removed in December 2023.
81
+ */
71
82
  export var EuiControlBar = /*#__PURE__*/function (_Component) {
72
83
  _inherits(EuiControlBar, _Component);
73
84
  var _super = _createSuper(EuiControlBar);
@@ -56,7 +56,6 @@ export var useDataGridKeyboardShortcuts = function useDataGridKeyboardShortcuts(
56
56
  type: "column",
57
57
  align: "center",
58
58
  compressed: true,
59
- gutterSize: "s",
60
59
  listItems: [{
61
60
  title: ___EmotionJSX("kbd", null, ___EmotionJSX(EuiI18n, {
62
61
  token: "euiKeyboardShortcuts.upArrowTitle",
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "gutterSize"];
3
+ var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "rowGutterSize", "columnGutterSize"];
4
4
  /*
5
5
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
6
  * or more contributor license agreements. Licensed under the Elastic License
@@ -9,13 +9,13 @@ var _excluded = ["align", "children", "className", "compressed", "descriptionPro
9
9
  * Side Public License, v 1.
10
10
  */
11
11
 
12
- import React from 'react';
12
+ import React, { useMemo } from 'react';
13
13
  import classNames from 'classnames';
14
+ import { useEuiTheme, useIsWithinBreakpoints } from '../../services';
15
+ import { EuiDescriptionListContext } from './description_list_context';
14
16
  import { EuiDescriptionListTitle } from './description_list_title';
15
17
  import { EuiDescriptionListDescription } from './description_list_description';
16
- import { useEuiTheme } from '../../services';
17
18
  import { euiDescriptionListStyles } from './description_list.styles';
18
- import { EuiDescriptionListContext } from './description_list_context';
19
19
  import { jsx as ___EmotionJSX } from "@emotion/react";
20
20
  export var EuiDescriptionList = function EuiDescriptionList(_ref) {
21
21
  var _ref$align = _ref.align,
@@ -30,13 +30,23 @@ export var EuiDescriptionList = function EuiDescriptionList(_ref) {
30
30
  textStyle = _ref$textStyle === void 0 ? 'normal' : _ref$textStyle,
31
31
  titleProps = _ref.titleProps,
32
32
  _ref$type = _ref.type,
33
- type = _ref$type === void 0 ? 'row' : _ref$type,
34
- _ref$gutterSize = _ref.gutterSize,
35
- gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
33
+ _type = _ref$type === void 0 ? 'row' : _ref$type,
34
+ _ref$rowGutterSize = _ref.rowGutterSize,
35
+ rowGutterSize = _ref$rowGutterSize === void 0 ? 's' : _ref$rowGutterSize,
36
+ _ref$columnGutterSize = _ref.columnGutterSize,
37
+ columnGutterSize = _ref$columnGutterSize === void 0 ? 's' : _ref$columnGutterSize,
36
38
  rest = _objectWithoutProperties(_ref, _excluded);
39
+ var showResponsiveColumns = useIsWithinBreakpoints(['xs', 's']);
40
+ var type = useMemo(function () {
41
+ if (_type === 'responsiveColumn') {
42
+ return showResponsiveColumns ? 'row' : 'column';
43
+ } else {
44
+ return _type;
45
+ }
46
+ }, [_type, showResponsiveColumns]);
37
47
  var euiTheme = useEuiTheme();
38
48
  var styles = euiDescriptionListStyles(euiTheme);
39
- var cssStyles = [styles.euiDescriptionList, styles[type], styles[align]];
49
+ var cssStyles = [styles.euiDescriptionList, styles[type], styles[align], type === 'column' && styles.rowGap[rowGutterSize], type === 'column' && styles.columnGap[columnGutterSize]];
40
50
  var classes = classNames('euiDescriptionList', className);
41
51
  var childrenOrListItems = null;
42
52
  if (listItems) {
@@ -56,12 +66,12 @@ export var EuiDescriptionList = function EuiDescriptionList(_ref) {
56
66
  compressed: compressed,
57
67
  textStyle: textStyle,
58
68
  align: align,
59
- gutterSize: gutterSize
69
+ rowGutterSize: rowGutterSize
60
70
  }
61
71
  }, ___EmotionJSX("dl", _extends({
62
72
  className: classes,
63
73
  css: cssStyles
64
74
  }, rest, {
65
- "data-type": type
75
+ "data-type": _type
66
76
  }), childrenOrListItems));
67
77
  };
@@ -1,3 +1,4 @@
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)."; }
1
2
  /*
2
3
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
4
  * or more contributor license agreements. Licensed under the Elastic License
@@ -7,18 +8,30 @@
7
8
  */
8
9
 
9
10
  import { css } from '@emotion/react';
10
- import { logicalTextAlignCSS, euiMinBreakpoint } from '../../global_styling';
11
+ import { logicalTextAlignCSS } from '../../global_styling';
12
+ var _ref = process.env.NODE_ENV === "production" ? {
13
+ name: "zr5fhc-column",
14
+ styles: "display:grid;grid-template-columns:minmax(auto, max-content) minmax(auto, max-content);align-items:baseline;label:column;"
15
+ } : {
16
+ name: "zr5fhc-column",
17
+ styles: "display:grid;grid-template-columns:minmax(auto, max-content) minmax(auto, max-content);align-items:baseline;label:column;",
18
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
19
+ };
11
20
  export var euiDescriptionListStyles = function euiDescriptionListStyles(euiThemeContext) {
12
- // Flex display for column and responsive column
13
- var columnDisplay = "\n display: flex;\n align-items: baseline;\n flex-wrap: wrap; \n ";
14
21
  return {
15
22
  euiDescriptionList: /*#__PURE__*/css(";label:euiDescriptionList;"),
16
23
  // Types
17
24
  row: /*#__PURE__*/css(";label:row;"),
18
25
  inline: /*#__PURE__*/css(";label:inline;"),
19
- column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
20
- // Responsive columns behave as a row on breakpoints xs-s
21
- responsiveColumn: /*#__PURE__*/css(euiMinBreakpoint(euiThemeContext, 'm'), "{", columnDisplay, ";};label:responsiveColumn;"),
26
+ column: _ref,
27
+ columnGap: {
28
+ s: /*#__PURE__*/css("column-gap:", euiThemeContext.euiTheme.size.s, ";;label:s;"),
29
+ m: /*#__PURE__*/css("column-gap:", euiThemeContext.euiTheme.size.xl, ";;label:m;")
30
+ },
31
+ rowGap: {
32
+ s: /*#__PURE__*/css("row-gap:", euiThemeContext.euiTheme.size.s, ";;label:s;"),
33
+ m: /*#__PURE__*/css("row-gap:", euiThemeContext.euiTheme.size.m, ";;label:m;")
34
+ },
22
35
  // Alignment
23
36
  center: /*#__PURE__*/css(logicalTextAlignCSS('center'), ";;label:center;"),
24
37
  left: /*#__PURE__*/css(logicalTextAlignCSS('left'), ";;label:left;")
@@ -11,6 +11,6 @@ export var contextDefaults = {
11
11
  type: 'row',
12
12
  textStyle: 'normal',
13
13
  align: 'left',
14
- gutterSize: 'm'
14
+ rowGutterSize: 's'
15
15
  };
16
16
  export var EuiDescriptionListContext = /*#__PURE__*/createContext(contextDefaults);
@@ -12,9 +12,9 @@ var _excluded = ["children", "className"];
12
12
 
13
13
  import React, { useContext } from 'react';
14
14
  import classNames from 'classnames';
15
- import { useEuiTheme, useIsWithinMinBreakpoint } from '../../services';
16
- import { euiDescriptionListDescriptionStyles } from './description_list_description.styles';
15
+ import { useEuiTheme } from '../../services';
17
16
  import { EuiDescriptionListContext } from './description_list_context';
17
+ import { euiDescriptionListDescriptionStyles } from './description_list_description.styles';
18
18
 
19
19
  // Export required for correct inference by HOCs
20
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -26,9 +26,7 @@ export var EuiDescriptionListDescription = function EuiDescriptionListDescriptio
26
26
  type = _useContext.type,
27
27
  textStyle = _useContext.textStyle,
28
28
  compressed = _useContext.compressed,
29
- align = _useContext.align,
30
- gutterSize = _useContext.gutterSize;
31
- var showResponsiveColumns = useIsWithinMinBreakpoint('m');
29
+ align = _useContext.align;
32
30
  var theme = useEuiTheme();
33
31
  var styles = euiDescriptionListDescriptionStyles(theme);
34
32
  var conditionalStyles = compressed && textStyle === 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
@@ -36,14 +34,10 @@ export var EuiDescriptionListDescription = function EuiDescriptionListDescriptio
36
34
  case 'inline':
37
35
  conditionalStyles = compressed ? [styles.inlineStyles.compressed] : [styles.inlineStyles.normal];
38
36
  break;
39
- case 'responsiveColumn':
40
37
  case 'column':
41
38
  if (align === 'center') {
42
39
  conditionalStyles.push(styles.left);
43
40
  }
44
- if (type === 'column' || showResponsiveColumns) {
45
- conditionalStyles.push(styles[gutterSize]);
46
- }
47
41
  break;
48
42
  }
49
43
  var cssStyles = [styles.euiDescriptionList__description, styles[type]].concat(_toConsumableArray(conditionalStyles));
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { euiFontSize, euiMaxBreakpoint, euiMinBreakpoint, logicalTextAlignCSS, logicalCSS } from '../../global_styling';
11
+ import { euiFontSize, logicalTextAlignCSS } from '../../global_styling';
12
12
  import { euiTitle } from '../title/title.styles';
13
13
  var _ref = process.env.NODE_ENV === "production" ? {
14
14
  name: "1yn9gig-inline",
@@ -19,14 +19,11 @@ var _ref = process.env.NODE_ENV === "production" ? {
19
19
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
20
20
  };
21
21
  export var euiDescriptionListDescriptionStyles = function euiDescriptionListDescriptionStyles(euiThemeContext) {
22
- var euiTheme = euiThemeContext.euiTheme;
23
- var columnDisplay = "\n ".concat(logicalCSS('width', '50%'), "\n ").concat(logicalCSS('padding-left', euiTheme.size.s), "\n ");
24
22
  return {
25
23
  euiDescriptionList__description: /*#__PURE__*/css(";label:euiDescriptionList__description;"),
26
24
  // Types
27
25
  row: /*#__PURE__*/css(";label:row;"),
28
- column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
29
- responsiveColumn: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), " padding:0;}", euiMinBreakpoint(euiThemeContext, 'm'), "{", columnDisplay, ";};label:responsiveColumn;"),
26
+ column: /*#__PURE__*/css(";label:column;"),
30
27
  inline: _ref,
31
28
  // This nested block handles just the font styling based on compressed and reverse
32
29
  fontStyles: {
@@ -40,9 +37,6 @@ export var euiDescriptionListDescriptionStyles = function euiDescriptionListDesc
40
37
  normal: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), ";;label:normal;")
41
38
  },
42
39
  // Column types should align description text to the left when EuiDecriptionList is centered
43
- left: /*#__PURE__*/css(logicalTextAlignCSS('left'), ";;label:left;"),
44
- // Gutter
45
- s: /*#__PURE__*/css("&:not(:first-of-type){", logicalCSS('margin-top', euiTheme.size.s), ";};label:s;"),
46
- m: /*#__PURE__*/css("&:not(:first-of-type){", logicalCSS('margin-top', euiTheme.size.base), ";};label:m;")
40
+ left: /*#__PURE__*/css(logicalTextAlignCSS('left'), ";;label:left;")
47
41
  };
48
42
  };
@@ -13,8 +13,8 @@ var _excluded = ["children", "className"];
13
13
  import React, { useContext } from 'react';
14
14
  import classNames from 'classnames';
15
15
  import { useEuiTheme } from '../../services';
16
- import { euiDescriptionListTitleStyles } from './description_list_title.styles';
17
16
  import { EuiDescriptionListContext } from './description_list_context';
17
+ import { euiDescriptionListTitleStyles } from './description_list_title.styles';
18
18
 
19
19
  // Export required for correct inference by HOCs
20
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -27,22 +27,25 @@ export var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
27
27
  textStyle = _useContext.textStyle,
28
28
  compressed = _useContext.compressed,
29
29
  align = _useContext.align,
30
- gutterSize = _useContext.gutterSize;
30
+ rowGutterSize = _useContext.rowGutterSize;
31
31
  var theme = useEuiTheme();
32
32
  var styles = euiDescriptionListTitleStyles(theme);
33
33
  var conditionalStyles = compressed && textStyle !== 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
34
34
  switch (type) {
35
35
  case 'inline':
36
36
  conditionalStyles = compressed ? [styles.inlineStyles.compressed] : [styles.inlineStyles.normal];
37
+ conditionalStyles.push(styles[rowGutterSize]);
38
+ break;
39
+ case 'row':
40
+ conditionalStyles.push(styles[rowGutterSize]);
37
41
  break;
38
- case 'responsiveColumn':
39
42
  case 'column':
40
43
  if (align === 'center') {
41
44
  conditionalStyles.push(styles.right);
42
45
  }
43
46
  break;
44
47
  }
45
- var cssStyles = [styles.euiDescriptionList__title, styles[type], styles[gutterSize]].concat(_toConsumableArray(conditionalStyles));
48
+ var cssStyles = [styles.euiDescriptionList__title, styles[type]].concat(_toConsumableArray(conditionalStyles));
46
49
  var classes = classNames('euiDescriptionList__title', className);
47
50
  return ___EmotionJSX("dt", _extends({
48
51
  className: classes,
@@ -7,20 +7,17 @@
7
7
  */
8
8
 
9
9
  import { css } from '@emotion/react';
10
- import { euiFontSize, euiTextBreakWord, logicalTextAlignCSS, euiMaxBreakpoint, euiMinBreakpoint, logicalCSS } from '../../global_styling';
11
- import { tint } from '../../services';
10
+ import { euiFontSize, euiTextBreakWord, logicalTextAlignCSS, logicalCSS } from '../../global_styling';
12
11
  import { euiTitle } from '../title/title.styles';
13
12
  export var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiThemeContext) {
14
13
  var euiTheme = euiThemeContext.euiTheme,
15
14
  colorMode = euiThemeContext.colorMode;
16
- var columnDisplay = "\n ".concat(logicalCSS('width', '50%'), "\n ").concat(logicalCSS('padding-right', euiTheme.size.s), "\n ");
17
15
  return {
18
16
  euiDescriptionList__title: /*#__PURE__*/css(euiTextBreakWord(), ";;label:euiDescriptionList__title;"),
19
17
  // Types
20
18
  row: /*#__PURE__*/css(";label:row;"),
21
- column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
22
- responsiveColumn: /*#__PURE__*/css(euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), " padding:0;}", euiMinBreakpoint(euiThemeContext, 'm'), "{", columnDisplay, ";};label:responsiveColumn;"),
23
- inline: /*#__PURE__*/css("display:inline;border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.medium, ";background-color:", colorMode === 'DARK' ? tint(euiTheme.colors.lightestShade, 0.5) : euiTheme.colors.lightestShade, ";", logicalCSS('margin-vertical', '0'), " ", logicalCSS('margin-horizontal', euiTheme.size.xs), "&:first-of-type{", logicalCSS('margin-left', '0'), ";};label:inline;"),
19
+ column: /*#__PURE__*/css(";label:column;"),
20
+ inline: /*#__PURE__*/css("display:inline;border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.medium, ";background-color:", colorMode === 'DARK' ? euiTheme.colors.lightShade : euiTheme.colors.lightestShade, ";", logicalCSS('margin-vertical', '0'), " ", logicalCSS('margin-horizontal', euiTheme.size.xs), " ", colorMode === 'DARK' && "color: ".concat(euiTheme.colors.title, ";"), "&:first-of-type{", logicalCSS('margin-left', '0'), ";};label:inline;"),
24
21
  // This nested block handles just the font styling based on compressed and reverse
25
22
  fontStyles: {
26
23
  normal: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xs'), ";;label:normal;"),
@@ -6,7 +6,9 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
 
9
- export var TYPES = ['row', 'inline', 'column', 'responsiveColumn'];
9
+ export var CHILD_TYPES = ['row', 'inline', 'column'];
10
+ export var TYPES = [].concat(CHILD_TYPES, ['responsiveColumn']);
10
11
  export var ALIGNMENTS = ['center', 'left'];
11
12
  export var TEXT_STYLES = ['normal', 'reverse'];
12
- export var GUTTER_SIZES = ['s', 'm'];
13
+ export var ROW_GUTTER_SIZES = ['s', 'm'];
14
+ export var COLUMN_GUTTER_SIZES = ['s', 'm'];
@@ -9,13 +9,14 @@ var _excluded = ["id", "isSelected", "isDisabled", "label", "children", "classNa
9
9
  * Side Public License, v 1.
10
10
  */
11
11
 
12
- import React from 'react';
12
+ import React, { useMemo } from 'react';
13
13
  import classNames from 'classnames';
14
+ import { useEuiTheme, getSecureRelForTarget, useGeneratedHtmlId } from '../../services';
14
15
  import { EuiBetaBadge } from '../badge/beta_badge';
15
- import { getSecureRelForTarget, useGeneratedHtmlId } from '../../services';
16
16
  import { EuiRadio, EuiCheckbox } from '../form';
17
17
  import { validateHref } from '../../services/security/href_validator';
18
18
  import { EuiToolTip } from '../tool_tip';
19
+ import { euiKeyPadMenuItemStyles, euiKeyPadMenuItemChildStyles } from './key_pad_menu_item.styles';
19
20
  import { jsx as ___EmotionJSX } from "@emotion/react";
20
21
  export var EuiKeyPadMenuItem = function EuiKeyPadMenuItem(_ref) {
21
22
  var id = _ref.id,
@@ -40,48 +41,45 @@ export var EuiKeyPadMenuItem = function EuiKeyPadMenuItem(_ref) {
40
41
  rest = _objectWithoutProperties(_ref, _excluded);
41
42
  var isHrefValid = !href || validateHref(href);
42
43
  var isDisabled = disabled || _isDisabled || !isHrefValid;
43
- var classes = classNames('euiKeyPadMenuItem', {
44
- 'euiKeyPadMenuItem--hasBetaBadge': betaBadgeLabel,
45
- 'euiKeyPadMenuItem--checkable': checkable,
46
- 'euiKeyPadMenuItem-isDisabled': isDisabled,
47
- 'euiKeyPadMenuItem-isSelected': isSelected
48
- }, className);
44
+ var euiTheme = useEuiTheme();
45
+ var styles = euiKeyPadMenuItemStyles(euiTheme);
46
+ var cssStyles = [styles.euiKeyPadMenuItem, !isDisabled ? styles.enabled : styles.disabled.disabled, isSelected && (!isDisabled ? styles.selected : styles.disabled.selected)];
47
+ var classes = classNames('euiKeyPadMenuItem', className);
49
48
  var Element = href && !isDisabled ? 'a' : 'button';
50
49
  if (checkable) Element = 'label';
51
50
  var itemId = useGeneratedHtmlId({
52
51
  conditionalId: id
53
52
  });
54
- var renderCheckableElement = function renderCheckableElement() {
53
+ var childStyles = useMemo(function () {
54
+ return euiKeyPadMenuItemChildStyles(euiTheme);
55
+ }, [euiTheme]);
56
+ var checkableElement = useMemo(function () {
55
57
  if (!checkable) return;
56
- var inputClasses = classNames('euiKeyPadMenuItem__checkableInput');
57
- var checkableElement;
58
+ var cssStyles = [childStyles.euiKeyPadMenuItem__checkableInput, !isSelected && isDisabled && childStyles.hideCheckableInput, !isSelected && !isDisabled && childStyles.showCheckableInputOnInteraction];
59
+ var sharedProps = {
60
+ id: itemId,
61
+ className: 'euiKeyPadMenuItem__checkableInput',
62
+ css: cssStyles,
63
+ checked: isSelected,
64
+ disabled: isDisabled,
65
+ name: name
66
+ };
58
67
  if (checkable === 'single') {
59
- checkableElement = ___EmotionJSX(EuiRadio, {
60
- id: itemId,
61
- className: inputClasses,
62
- checked: isSelected,
63
- disabled: isDisabled,
64
- name: name,
68
+ return ___EmotionJSX(EuiRadio, _extends({}, sharedProps, {
65
69
  value: value,
66
70
  onChange: function onChange() {
67
71
  return _onChange(itemId, value);
68
72
  }
69
- });
73
+ }));
70
74
  } else {
71
- checkableElement = ___EmotionJSX(EuiCheckbox, {
72
- id: itemId,
73
- className: inputClasses,
74
- checked: isSelected,
75
- disabled: isDisabled,
76
- name: name,
75
+ return ___EmotionJSX(EuiCheckbox, _extends({}, sharedProps, {
77
76
  onChange: function onChange() {
78
77
  return _onChange(itemId);
79
78
  }
80
- });
79
+ }));
81
80
  }
82
- return checkableElement;
83
- };
84
- var renderBetaBadge = function renderBetaBadge() {
81
+ }, [checkable, isDisabled, isSelected, _onChange, value, name, itemId, childStyles]);
82
+ var betaBadge = useMemo(function () {
85
83
  if (!betaBadgeLabel) return;
86
84
  return ___EmotionJSX(EuiBetaBadge
87
85
  // Since we move the tooltip contents to a wrapping EuiToolTip,
@@ -91,10 +89,11 @@ export var EuiKeyPadMenuItem = function EuiKeyPadMenuItem(_ref) {
91
89
  size: "s",
92
90
  color: "subdued",
93
91
  className: "euiKeyPadMenuItem__betaBadge",
92
+ css: childStyles.euiKeyPadMenuItem__betaBadge,
94
93
  label: betaBadgeLabel.charAt(0),
95
94
  iconType: betaBadgeIconType
96
95
  });
97
- };
96
+ }, [betaBadgeLabel, betaBadgeIconType, childStyles]);
98
97
  var relObj = {};
99
98
  if (href && !isDisabled) {
100
99
  relObj.href = href;
@@ -113,16 +112,20 @@ export var EuiKeyPadMenuItem = function EuiKeyPadMenuItem(_ref) {
113
112
  relObj['aria-pressed'] = isSelected;
114
113
  }
115
114
  var button = ___EmotionJSX(Element, _extends({
116
- className: classes
115
+ className: classes,
116
+ css: cssStyles
117
117
  }, relObj, rest, {
118
118
  // Unable to get past `LegacyRef` conflicts
119
119
  ref: buttonRef
120
120
  }), ___EmotionJSX("span", {
121
- className: "euiKeyPadMenuItem__inner"
122
- }, checkable ? renderCheckableElement() : renderBetaBadge(), ___EmotionJSX("span", {
123
- className: "euiKeyPadMenuItem__icon"
121
+ className: "euiKeyPadMenuItem__inner",
122
+ css: childStyles.euiKeyPadMenuItem__inner
123
+ }, checkable ? checkableElement : betaBadge, ___EmotionJSX("span", {
124
+ className: "euiKeyPadMenuItem__icon",
125
+ css: childStyles.euiKeyPadMenuItem__icon
124
126
  }, children), ___EmotionJSX("span", {
125
- className: "euiKeyPadMenuItem__label"
127
+ className: "euiKeyPadMenuItem__label",
128
+ css: childStyles.euiKeyPadMenuItem__label
126
129
  }, label)));
127
130
  return betaBadgeLabel ? ___EmotionJSX(EuiToolTip, _extends({}, betaBadgeTooltipProps, {
128
131
  title: betaBadgeLabel,
@@ -0,0 +1,41 @@
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
+ import { css } from '@emotion/react';
10
+ import { transparentize } from '../../services';
11
+ import { logicalCSS, logicalSizeCSS, euiCanAnimate, euiFontSize } from '../../global_styling';
12
+ import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
13
+ import { euiScreenReaderOnly } from '../accessibility';
14
+ import { euiKeyPadMenuVariables } from './key_pad_menu.styles';
15
+ export var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeContext) {
16
+ var euiTheme = euiThemeContext.euiTheme;
17
+ var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
18
+ euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize;
19
+ return {
20
+ euiKeyPadMenuItem: /*#__PURE__*/css("display:block;padding:", euiTheme.size.xs, ";", logicalSizeCSS(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.text, ";", euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, " ease-in,box-shadow ", euiTheme.animation.fast, " ease-in;};label:euiKeyPadMenuItem;"),
21
+ enabled: /*#__PURE__*/css("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;", euiShadow(euiThemeContext, 's'), " ", euiCanAnimate, "{.euiKeyPadMenuItem__icon{transform:translateY(0);}}}&:focus{background-color:", euiTheme.focus.backgroundColor, ";box-shadow:none;};label:enabled;"),
22
+ selected: /*#__PURE__*/css("color:", euiTheme.colors.title, ";background-color:", euiTheme.focus.backgroundColor, ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.primaryText, ";};label:selected;"),
23
+ disabled: {
24
+ disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.disabledText, ";.euiKeyPadMenuItem__icon{filter:grayscale(100%);svg *{fill:", euiTheme.colors.disabledText, ";}};label:disabled;"),
25
+ selected: /*#__PURE__*/css("background-color:", transparentize(euiTheme.colors.disabled, euiTheme.focus.transparency), ";;label:selected;")
26
+ }
27
+ };
28
+ };
29
+ export var euiKeyPadMenuItemChildStyles = function euiKeyPadMenuItemChildStyles(euiThemeContext) {
30
+ var euiTheme = euiThemeContext.euiTheme;
31
+ var topRightChildren = "\n z-index: 3;\n position: absolute;\n ".concat(logicalCSS('top', euiTheme.size.xs), "\n ").concat(logicalCSS('right', euiTheme.size.xs), "\n ");
32
+ return {
33
+ euiKeyPadMenuItem__inner: /*#__PURE__*/css(logicalSizeCSS('100%'), " display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;;label:euiKeyPadMenuItem__inner;"),
34
+ euiKeyPadMenuItem__icon: /*#__PURE__*/css(logicalCSS('margin-bottom', euiTheme.size.m), " transform:translateY(2px);", euiCanAnimate, "{transition:transform ", euiTheme.animation.normal, " ", euiTheme.animation.bounce, ";};label:euiKeyPadMenuItem__icon;"),
35
+ euiKeyPadMenuItem__label: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), " font-weight:", euiTheme.font.weight.semiBold, ";text-align:center;;label:euiKeyPadMenuItem__label;"),
36
+ euiKeyPadMenuItem__betaBadge: /*#__PURE__*/css(topRightChildren, ";;label:euiKeyPadMenuItem__betaBadge;"),
37
+ euiKeyPadMenuItem__checkableInput: /*#__PURE__*/css(topRightChildren, " transform:scale(.75);transform-origin:top right;&&{position:absolute;};label:euiKeyPadMenuItem__checkableInput;"),
38
+ showCheckableInputOnInteraction: /*#__PURE__*/css(".euiKeyPadMenuItem:not(:hover, :focus, :focus-within) &{", euiScreenReaderOnly(), ";};label:showCheckableInputOnInteraction;"),
39
+ hideCheckableInput: /*#__PURE__*/css(euiScreenReaderOnly(), ";;label:hideCheckableInput;")
40
+ };
41
+ };
@@ -18,7 +18,17 @@ import { EuiButtonEmpty } from '../button';
18
18
  import { EuiLink } from '../link';
19
19
  import { useGeneratedHtmlId } from '../../services';
20
20
  import { EuiNotificationEventReadIcon } from './notification_event_read_icon';
21
+
22
+ /**
23
+ * @deprecated
24
+ */
21
25
  import { jsx as ___EmotionJSX } from "@emotion/react";
26
+ /**
27
+ * @deprecated - EuiNotificationEvent is scheduled for deprecation due to low internal usage and high
28
+ * maintenance requirements. If necessary, we recommend copying this component into your own application.
29
+ *
30
+ * The component will be permanently removed in December 2023.
31
+ */
22
32
  export var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
23
33
  var id = _ref.id,
24
34
  type = _ref.type,
@@ -116,7 +116,8 @@ export var _EuiPageTemplate = function _EuiPageTemplate(_ref) {
116
116
  return {
117
117
  restrictWidth: restrictWidth,
118
118
  paddingSize: paddingSize,
119
- parent: "#".concat(pageInnerId)
119
+ // pageInnerId may contain colons that are parsed as pseudo-elements if not escaped
120
+ parent: "#".concat(CSS.escape(pageInnerId))
120
121
  };
121
122
  };
122
123
  var innerPanelled = function innerPanelled() {
@@ -6,4 +6,5 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
 
9
- export { EuiResizableContainer } from './resizable_container';
9
+ export { EuiResizableContainer } from './resizable_container';
10
+ export { EuiResizableButton } from './resizable_button';