@elastic/eui 87.2.0 → 88.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 (143) hide show
  1. package/dist/eui_charts_theme.js +9 -8
  2. package/dist/eui_charts_theme.js.map +1 -1
  3. package/dist/eui_theme_dark.css +2 -159
  4. package/dist/eui_theme_dark.min.css +1 -1
  5. package/dist/eui_theme_light.css +2 -159
  6. package/dist/eui_theme_light.min.css +1 -1
  7. package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +9 -2
  8. package/es/components/color_picker/color_palette_display/color_palette_display.js +3 -6
  9. package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
  10. package/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
  11. package/es/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
  12. package/es/components/color_picker/color_stops/color_stops.js +11 -0
  13. package/es/components/control_bar/control_bar.js +11 -0
  14. package/es/components/datagrid/controls/keyboard_shortcuts.js +1 -1
  15. package/es/components/description_list/description_list.js +66 -13
  16. package/es/components/description_list/description_list.styles.js +19 -6
  17. package/es/components/description_list/description_list_context.js +1 -1
  18. package/es/components/description_list/description_list_description.js +3 -9
  19. package/es/components/description_list/description_list_description.styles.js +3 -9
  20. package/es/components/description_list/description_list_title.js +7 -4
  21. package/es/components/description_list/description_list_title.styles.js +3 -6
  22. package/es/components/description_list/description_list_types.js +4 -2
  23. package/es/components/key_pad_menu/key_pad_menu_item.js +37 -34
  24. package/es/components/key_pad_menu/key_pad_menu_item.styles.js +41 -0
  25. package/es/components/markdown_editor/markdown_format.styles.js +3 -6
  26. package/es/components/notification/notification_event.js +10 -0
  27. package/es/components/suggest/suggest.js +16 -0
  28. package/es/components/suggest/suggest_item.js +12 -0
  29. package/es/components/text/text.styles.js +3 -6
  30. package/es/global_styling/functions/typography.js +8 -8
  31. package/es/global_styling/variables/typography.js +1 -1
  32. package/es/services/color_picker/color_picker.js +4 -0
  33. package/es/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  34. package/eui.d.ts +2226 -2104
  35. package/i18ntokens.json +96 -96
  36. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +9 -2
  37. package/lib/components/color_picker/color_palette_display/color_palette_display.js +3 -6
  38. package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
  39. package/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
  40. package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
  41. package/lib/components/color_picker/color_stops/color_stops.js +10 -1
  42. package/lib/components/control_bar/control_bar.js +10 -1
  43. package/lib/components/datagrid/controls/keyboard_shortcuts.js +1 -1
  44. package/lib/components/description_list/description_list.js +68 -13
  45. package/lib/components/description_list/description_list.styles.js +24 -13
  46. package/lib/components/description_list/description_list_context.js +1 -1
  47. package/lib/components/description_list/description_list_description.js +2 -8
  48. package/lib/components/description_list/description_list_description.styles.js +2 -8
  49. package/lib/components/description_list/description_list_title.js +7 -4
  50. package/lib/components/description_list/description_list_title.styles.js +2 -5
  51. package/lib/components/description_list/description_list_types.js +8 -4
  52. package/lib/components/key_pad_menu/key_pad_menu_item.js +40 -34
  53. package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
  54. package/lib/components/markdown_editor/markdown_format.styles.js +3 -6
  55. package/lib/components/notification/notification_event.js +9 -0
  56. package/lib/components/suggest/suggest.js +16 -0
  57. package/lib/components/suggest/suggest_item.js +11 -0
  58. package/lib/components/text/text.styles.js +3 -6
  59. package/lib/global_styling/functions/typography.js +8 -8
  60. package/lib/global_styling/variables/typography.js +3 -3
  61. package/lib/services/color_picker/color_picker.js +4 -0
  62. package/lib/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  63. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +4 -2
  64. package/optimize/es/components/color_picker/color_stops/color_stops.js +11 -0
  65. package/optimize/es/components/control_bar/control_bar.js +11 -0
  66. package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +1 -1
  67. package/optimize/es/components/description_list/description_list.js +41 -11
  68. package/optimize/es/components/description_list/description_list.styles.js +19 -6
  69. package/optimize/es/components/description_list/description_list_context.js +1 -1
  70. package/optimize/es/components/description_list/description_list_description.js +3 -9
  71. package/optimize/es/components/description_list/description_list_description.styles.js +3 -9
  72. package/optimize/es/components/description_list/description_list_title.js +7 -4
  73. package/optimize/es/components/description_list/description_list_title.styles.js +3 -6
  74. package/optimize/es/components/description_list/description_list_types.js +4 -2
  75. package/optimize/es/components/key_pad_menu/key_pad_menu_item.js +37 -34
  76. package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +41 -0
  77. package/optimize/es/components/markdown_editor/markdown_format.styles.js +3 -6
  78. package/optimize/es/components/notification/notification_event.js +10 -0
  79. package/optimize/es/components/suggest/suggest.js +16 -0
  80. package/optimize/es/components/suggest/suggest_item.js +12 -0
  81. package/optimize/es/components/text/text.styles.js +3 -6
  82. package/optimize/es/global_styling/functions/typography.js +8 -8
  83. package/optimize/es/global_styling/variables/typography.js +1 -1
  84. package/optimize/es/services/color_picker/color_picker.js +4 -0
  85. package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  86. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +4 -2
  87. package/optimize/lib/components/color_picker/color_stops/color_stops.js +10 -1
  88. package/optimize/lib/components/control_bar/control_bar.js +10 -1
  89. package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +1 -1
  90. package/optimize/lib/components/description_list/description_list.js +44 -11
  91. package/optimize/lib/components/description_list/description_list.styles.js +24 -13
  92. package/optimize/lib/components/description_list/description_list_context.js +1 -1
  93. package/optimize/lib/components/description_list/description_list_description.js +2 -8
  94. package/optimize/lib/components/description_list/description_list_description.styles.js +2 -8
  95. package/optimize/lib/components/description_list/description_list_title.js +7 -4
  96. package/optimize/lib/components/description_list/description_list_title.styles.js +2 -5
  97. package/optimize/lib/components/description_list/description_list_types.js +8 -4
  98. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.js +40 -34
  99. package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
  100. package/optimize/lib/components/markdown_editor/markdown_format.styles.js +3 -6
  101. package/optimize/lib/components/notification/notification_event.js +9 -0
  102. package/optimize/lib/components/suggest/suggest.js +16 -0
  103. package/optimize/lib/components/suggest/suggest_item.js +11 -0
  104. package/optimize/lib/components/text/text.styles.js +3 -6
  105. package/optimize/lib/global_styling/functions/typography.js +8 -8
  106. package/optimize/lib/global_styling/variables/typography.js +3 -3
  107. package/optimize/lib/services/color_picker/color_picker.js +4 -0
  108. package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  109. package/package.json +6 -6
  110. package/src/components/datagrid/controls/_data_grid_keyboard_shortcuts.scss +1 -7
  111. package/src/components/index.scss +0 -1
  112. package/src/themes/amsterdam/overrides/_index.scss +0 -1
  113. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +9 -2
  114. package/test-env/components/color_picker/color_palette_display/color_palette_display.js +3 -6
  115. package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
  116. package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
  117. package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
  118. package/test-env/components/color_picker/color_stops/color_stops.js +10 -1
  119. package/test-env/components/control_bar/control_bar.js +10 -1
  120. package/test-env/components/datagrid/controls/keyboard_shortcuts.js +1 -1
  121. package/test-env/components/description_list/description_list.js +66 -13
  122. package/test-env/components/description_list/description_list.styles.js +24 -13
  123. package/test-env/components/description_list/description_list_context.js +1 -1
  124. package/test-env/components/description_list/description_list_description.js +2 -8
  125. package/test-env/components/description_list/description_list_description.styles.js +2 -8
  126. package/test-env/components/description_list/description_list_title.js +7 -4
  127. package/test-env/components/description_list/description_list_title.styles.js +2 -5
  128. package/test-env/components/description_list/description_list_types.js +8 -4
  129. package/test-env/components/key_pad_menu/key_pad_menu_item.js +40 -34
  130. package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
  131. package/test-env/components/markdown_editor/markdown_format.styles.js +3 -6
  132. package/test-env/components/notification/notification_event.js +9 -0
  133. package/test-env/components/suggest/suggest.js +16 -0
  134. package/test-env/components/suggest/suggest_item.js +11 -0
  135. package/test-env/components/text/text.styles.js +3 -6
  136. package/test-env/global_styling/functions/typography.js +8 -8
  137. package/test-env/global_styling/variables/typography.js +3 -3
  138. package/test-env/services/color_picker/color_picker.js +4 -0
  139. package/test-env/themes/amsterdam/global_styling/variables/_typography.js +1 -0
  140. package/src/components/key_pad_menu/_index.scss +0 -5
  141. package/src/components/key_pad_menu/_key_pad_menu_item.scss +0 -123
  142. package/src/components/key_pad_menu/_variables.scss +0 -2
  143. package/src/themes/amsterdam/overrides/_key_pad_menu.scss +0 -46
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiKeyPadMenuItemStyles = exports.euiKeyPadMenuItemChildStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _services = require("../../services");
9
+ var _global_styling = require("../../global_styling");
10
+ var _mixins = require("../../themes/amsterdam/global_styling/mixins");
11
+ var _accessibility = require("../accessibility");
12
+ var _key_pad_menu = require("./key_pad_menu.styles");
13
+ /*
14
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
15
+ * or more contributor license agreements. Licensed under the Elastic License
16
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
17
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
18
+ * Side Public License, v 1.
19
+ */
20
+
21
+ var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeContext) {
22
+ var euiTheme = euiThemeContext.euiTheme;
23
+ var _euiKeyPadMenuVariabl = (0, _key_pad_menu.euiKeyPadMenuVariables)(euiThemeContext),
24
+ euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize;
25
+ return {
26
+ euiKeyPadMenuItem: /*#__PURE__*/(0, _react.css)("display:block;padding:", euiTheme.size.xs, ";", (0, _global_styling.logicalSizeCSS)(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.text, ";", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, " ease-in,box-shadow ", euiTheme.animation.fast, " ease-in;};label:euiKeyPadMenuItem;"),
27
+ enabled: /*#__PURE__*/(0, _react.css)("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;", (0, _mixins.euiShadow)(euiThemeContext, 's'), " ", _global_styling.euiCanAnimate, "{.euiKeyPadMenuItem__icon{transform:translateY(0);}}}&:focus{background-color:", euiTheme.focus.backgroundColor, ";box-shadow:none;};label:enabled;"),
28
+ selected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.title, ";background-color:", euiTheme.focus.backgroundColor, ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.primaryText, ";};label:selected;"),
29
+ disabled: {
30
+ disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;color:", euiTheme.colors.disabledText, ";.euiKeyPadMenuItem__icon{filter:grayscale(100%);svg *{fill:", euiTheme.colors.disabledText, ";}};label:disabled;"),
31
+ selected: /*#__PURE__*/(0, _react.css)("background-color:", (0, _services.transparentize)(euiTheme.colors.disabled, euiTheme.focus.transparency), ";;label:selected;")
32
+ }
33
+ };
34
+ };
35
+ exports.euiKeyPadMenuItemStyles = euiKeyPadMenuItemStyles;
36
+ var euiKeyPadMenuItemChildStyles = function euiKeyPadMenuItemChildStyles(euiThemeContext) {
37
+ var euiTheme = euiThemeContext.euiTheme;
38
+ var topRightChildren = "\n z-index: 3;\n position: absolute;\n ".concat((0, _global_styling.logicalCSS)('top', euiTheme.size.xs), "\n ").concat((0, _global_styling.logicalCSS)('right', euiTheme.size.xs), "\n ");
39
+ return {
40
+ euiKeyPadMenuItem__inner: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)('100%'), " display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;;label:euiKeyPadMenuItem__inner;"),
41
+ euiKeyPadMenuItem__icon: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.m), " transform:translateY(2px);", _global_styling.euiCanAnimate, "{transition:transform ", euiTheme.animation.normal, " ", euiTheme.animation.bounce, ";};label:euiKeyPadMenuItem__icon;"),
42
+ euiKeyPadMenuItem__label: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), " font-weight:", euiTheme.font.weight.semiBold, ";text-align:center;;label:euiKeyPadMenuItem__label;"),
43
+ euiKeyPadMenuItem__betaBadge: /*#__PURE__*/(0, _react.css)(topRightChildren, ";;label:euiKeyPadMenuItem__betaBadge;"),
44
+ euiKeyPadMenuItem__checkableInput: /*#__PURE__*/(0, _react.css)(topRightChildren, " transform:scale(.75);transform-origin:top right;&&{position:absolute;};label:euiKeyPadMenuItem__checkableInput;"),
45
+ showCheckableInputOnInteraction: /*#__PURE__*/(0, _react.css)(".euiKeyPadMenuItem:not(:hover, :focus, :focus-within) &{", (0, _accessibility.euiScreenReaderOnly)(), ";};label:showCheckableInputOnInteraction;"),
46
+ hideCheckableInput: /*#__PURE__*/(0, _react.css)((0, _accessibility.euiScreenReaderOnly)(), ";;label:hideCheckableInput;")
47
+ };
48
+ };
49
+ exports.euiKeyPadMenuItemChildStyles = euiKeyPadMenuItemChildStyles;
@@ -21,8 +21,8 @@ var euiScaleMarkdownFormatText = function euiScaleMarkdownFormatText(euiTheme, o
21
21
  var _euiFontSize = (0, _global_styling.euiFontSize)(euiTheme, 'm', options),
22
22
  fontSize = _euiFontSize.fontSize,
23
23
  lineHeight = _euiFontSize.lineHeight;
24
- var measurement = options.measurement;
25
- var lineHeightSize = measurement === 'em' ? "".concat(lineHeight, "em") : lineHeight;
24
+ var unit = options.unit;
25
+ var lineHeightSize = unit === 'em' ? "".concat(lineHeight, "em") : lineHeight;
26
26
 
27
27
  // Custom scales
28
28
  var tablePaddingVertical = (0, _global_styling.mathWithUnits)(fontSize, function (x) {
@@ -43,19 +43,16 @@ var euiMarkdownFormatStyles = function euiMarkdownFormatStyles(euiTheme) {
43
43
  euiMarkdownFormat: /*#__PURE__*/(0, _react.css)(";label:euiMarkdownFormat;"),
44
44
  // Text sizes
45
45
  m: /*#__PURE__*/(0, _react.css)(euiScaleMarkdownFormatText(euiTheme, {
46
- measurement: 'rem',
47
46
  customScale: 'm'
48
47
  }), ";;label:m;"),
49
48
  s: /*#__PURE__*/(0, _react.css)(euiScaleMarkdownFormatText(euiTheme, {
50
- measurement: 'rem',
51
49
  customScale: 's'
52
50
  }), ";;label:s;"),
53
51
  xs: /*#__PURE__*/(0, _react.css)(euiScaleMarkdownFormatText(euiTheme, {
54
- measurement: 'rem',
55
52
  customScale: 'xs'
56
53
  }), ";;label:xs;"),
57
54
  relative: /*#__PURE__*/(0, _react.css)(euiScaleMarkdownFormatText(euiTheme, {
58
- measurement: 'em'
55
+ unit: 'em'
59
56
  }), ";;label:relative;")
60
57
  };
61
58
  };
@@ -24,12 +24,21 @@ var _excluded = ["id", "type", "severity", "badgeColor", "iconType", "iconAriaLa
24
24
  * in compliance with, at your election, the Elastic License 2.0 or the Server
25
25
  * Side Public License, v 1.
26
26
  */
27
+ /**
28
+ * @deprecated
29
+ */
27
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
31
  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); }
29
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; }
30
33
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
31
34
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
32
35
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
36
+ /**
37
+ * @deprecated - EuiNotificationEvent is scheduled for deprecation due to low internal usage and high
38
+ * maintenance requirements. If necessary, we recommend copying this component into your own application.
39
+ *
40
+ * The component will be permanently removed in December 2023.
41
+ */
33
42
  var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
34
43
  var id = _ref.id,
35
44
  type = _ref.type,
@@ -57,6 +57,22 @@ var statusMap = {
57
57
 
58
58
  // keys of _EuiSuggestItemPropsBase
59
59
  var suggestItemPropsKeys = ['label', 'type', 'description', 'labelDisplay', 'labelWidth', 'descriptionDisplay'];
60
+
61
+ /**
62
+ * @deprecated
63
+ */
64
+
65
+ /**
66
+ * @deprecated
67
+ */
68
+
69
+ /**
70
+ * @deprecated - EuiSuggest is scheduled for deprecation due to low internal usage and high
71
+ * overlap with other existing EUI components. We recommend using EuiSelectable instead,
72
+ * or copying this component into your own application for usage if necessary.
73
+ *
74
+ * The component will be permanently removed in October 2023.
75
+ */
60
76
  var EuiSuggest = function EuiSuggest(_ref) {
61
77
  var onItemClick = _ref.onItemClick,
62
78
  onBlur = _ref.onBlur,
@@ -18,6 +18,9 @@ var _excluded = ["className", "label", "type", "labelWidth", "description", "tru
18
18
  * in compliance with, at your election, the Elastic License 2.0 or the Server
19
19
  * Side Public License, v 1.
20
20
  */
21
+ /**
22
+ * @deprecated
23
+ */
21
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
25
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
23
26
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -36,6 +39,14 @@ var colorToClassNameMap = {
36
39
  tint10: 'euiSuggestItem__type--tint10'
37
40
  };
38
41
  var COLORS = (0, _common.keysOf)(colorToClassNameMap);
42
+
43
+ /**
44
+ * @deprecated - EuiSuggest is scheduled for deprecation due to low internal usage and high
45
+ * overlap with other existing EUI components. We recommend using EuiSelectable instead,
46
+ * or copying this component into your own application for usage if necessary.
47
+ *
48
+ * The component will be permanently removed in October 2023.
49
+ */
39
50
  exports.COLORS = COLORS;
40
51
  var EuiSuggestItem = function EuiSuggestItem(_ref) {
41
52
  var className = _ref.className,
@@ -40,9 +40,9 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
40
40
  fontSize = _euiFontSize.fontSize,
41
41
  lineHeight = _euiFontSize.lineHeight;
42
42
  var euiTheme = euiThemeContext.euiTheme;
43
- var measurement = options.measurement,
43
+ var unit = options.unit,
44
44
  _customScale = options.customScale;
45
- var lineHeightSize = measurement === 'em' ? "".concat(lineHeight, "em") : lineHeight;
45
+ var lineHeightSize = unit === 'em' ? "".concat(lineHeight, "em") : lineHeight;
46
46
  var headings = {
47
47
  h1: (0, _title.euiTitle)(euiThemeContext, 'l', options),
48
48
  h2: (0, _title.euiTitle)(euiThemeContext, 'm', options),
@@ -78,19 +78,16 @@ var euiTextStyles = function euiTextStyles(euiThemeContext) {
78
78
  constrainedWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', euiTextConstrainedMaxWidth), ";;label:constrainedWidth;"),
79
79
  // Sizes
80
80
  m: /*#__PURE__*/(0, _react.css)(euiScaleText(euiThemeContext, {
81
- measurement: 'rem',
82
81
  customScale: 'm'
83
82
  }), ";;label:m;"),
84
83
  s: /*#__PURE__*/(0, _react.css)(euiScaleText(euiThemeContext, {
85
- measurement: 'rem',
86
84
  customScale: 's'
87
85
  }), ";;label:s;"),
88
86
  xs: /*#__PURE__*/(0, _react.css)(euiScaleText(euiThemeContext, {
89
- measurement: 'rem',
90
87
  customScale: 'xs'
91
88
  }), ";;label:xs;"),
92
89
  relative: /*#__PURE__*/(0, _react.css)(euiScaleText(euiThemeContext, {
93
- measurement: 'em'
90
+ unit: 'em'
94
91
  }), ";;label:relative;")
95
92
  };
96
93
  };
@@ -28,16 +28,16 @@ function euiFontSizeFromScale(scale, _ref) {
28
28
  var base = _ref.base,
29
29
  font = _ref.font;
30
30
  var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
31
- _ref2$measurement = _ref2.measurement,
32
- measurement = _ref2$measurement === void 0 ? 'rem' : _ref2$measurement,
31
+ _ref2$unit = _ref2.unit,
32
+ unit = _ref2$unit === void 0 ? font.defaultUnits : _ref2$unit,
33
33
  customScale = _ref2.customScale;
34
- if (measurement === 'em') {
34
+ if (unit === 'em') {
35
35
  return "".concat(font.scale[scale], "em");
36
36
  }
37
37
  var numerator = base * font.scale[scale];
38
38
  if (customScale) numerator *= font.scale[customScale];
39
39
  var denominator = base * font.scale[font.body.scale];
40
- return measurement === 'px' ? "".concat(numerator, "px") : "".concat((numerator / denominator).toFixed(4), "rem");
40
+ return unit === 'px' ? "".concat(numerator, "px") : "".concat((numerator / denominator).toFixed(4), "rem");
41
41
  }
42
42
 
43
43
  /**
@@ -56,8 +56,8 @@ function euiLineHeightFromBaseline(scale, _ref3) {
56
56
  var base = _ref3.base,
57
57
  font = _ref3.font;
58
58
  var _ref4 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
59
- _ref4$measurement = _ref4.measurement,
60
- measurement = _ref4$measurement === void 0 ? 'rem' : _ref4$measurement,
59
+ _ref4$unit = _ref4.unit,
60
+ unit = _ref4$unit === void 0 ? font.defaultUnits : _ref4$unit,
61
61
  customScale = _ref4.customScale;
62
62
  var baseline = font.baseline,
63
63
  lineHeightMultiplier = font.lineHeightMultiplier;
@@ -65,13 +65,13 @@ function euiLineHeightFromBaseline(scale, _ref3) {
65
65
  if (customScale) numerator *= font.scale[customScale];
66
66
  var denominator = base * font.scale[font.body.scale];
67
67
  var _lineHeightMultiplier = numerator <= base ? lineHeightMultiplier : lineHeightMultiplier * 0.833;
68
- if (measurement === 'em') {
68
+ if (unit === 'em') {
69
69
  // Even though the line-height via `em` cannot be determined against the pixel baseline grid;
70
70
  // we will assume that typically larger scale font-sizes should have a shorter line-height;
71
71
  return _lineHeightMultiplier.toFixed(4).toString();
72
72
  }
73
73
  var pixelValue = Math.floor(Math.round(numerator * _lineHeightMultiplier) / baseline) * baseline;
74
- return measurement === 'px' ? "".concat(pixelValue, "px") : "".concat((pixelValue / denominator).toFixed(4), "rem");
74
+ return unit === 'px' ? "".concat(pixelValue, "px") : "".concat((pixelValue / denominator).toFixed(4), "rem");
75
75
  }
76
76
 
77
77
  /**
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.EuiThemeFontWeights = exports.EuiThemeFontSizeMeasurements = exports.EuiThemeFontScales = void 0;
6
+ exports.EuiThemeFontWeights = exports.EuiThemeFontUnits = exports.EuiThemeFontScales = void 0;
7
7
  /*
8
8
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
9
9
  * or more contributor license agreements. Licensed under the Elastic License
@@ -16,8 +16,8 @@ exports.EuiThemeFontWeights = exports.EuiThemeFontSizeMeasurements = exports.Eui
16
16
  * Font units of measure
17
17
  */
18
18
 
19
- var EuiThemeFontSizeMeasurements = ['rem', 'px', 'em'];
20
- exports.EuiThemeFontSizeMeasurements = EuiThemeFontSizeMeasurements;
19
+ var EuiThemeFontUnits = ['rem', 'px', 'em'];
20
+ exports.EuiThemeFontUnits = EuiThemeFontUnits;
21
21
  /*
22
22
  * Font scale
23
23
  */
@@ -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] : [{
@@ -43,6 +43,7 @@ var fontBase = {
43
43
  familySerif: 'Georgia, Times, Times New Roman, serif',
44
44
  // Careful using ligatures. Code editors like ACE will often error because of width calculations
45
45
  featureSettings: "'calt' 1, 'kern' 1, 'liga' 1",
46
+ defaultUnits: 'rem',
46
47
  baseline: (0, _utils.computed)(function (_ref) {
47
48
  var _ref2 = _slicedToArray(_ref, 1),
48
49
  base = _ref2[0];
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
6
- var _excluded = ["id", "children", "className", "style", "initialIsCollapsed", "width", "side", "focusTrapProps"];
6
+ var _excluded = ["id", "children", "className", "style", "initialIsCollapsed", "onCollapseToggle", "width", "side", "focusTrapProps"];
7
7
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
8
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
9
  /*
@@ -32,6 +32,7 @@ export var EuiCollapsibleNavBeta = function EuiCollapsibleNavBeta(_ref) {
32
32
  style = _ref.style,
33
33
  _ref$initialIsCollaps = _ref.initialIsCollapsed,
34
34
  initialIsCollapsed = _ref$initialIsCollaps === void 0 ? false : _ref$initialIsCollaps,
35
+ onCollapseToggle = _ref.onCollapseToggle,
35
36
  _ref$width = _ref.width,
36
37
  _width = _ref$width === void 0 ? 248 : _ref$width,
37
38
  _ref$side = _ref.side,
@@ -50,9 +51,10 @@ export var EuiCollapsibleNavBeta = function EuiCollapsibleNavBeta(_ref) {
50
51
  setIsCollapsed = _useState2[1];
51
52
  var toggleCollapsed = useCallback(function () {
52
53
  return setIsCollapsed(function (isCollapsed) {
54
+ onCollapseToggle === null || onCollapseToggle === void 0 ? void 0 : onCollapseToggle(!isCollapsed);
53
55
  return !isCollapsed;
54
56
  });
55
- }, []);
57
+ }, [onCollapseToggle]);
56
58
  var onClose = useCallback(function () {
57
59
  return setIsCollapsed(true);
58
60
  }, []);
@@ -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);
@@ -54,9 +54,9 @@ export var useDataGridKeyboardShortcuts = function useDataGridKeyboardShortcuts(
54
54
  }, ___EmotionJSX(EuiDescriptionList, {
55
55
  "aria-labelledby": titleId,
56
56
  type: "column",
57
+ columnWidths: [1, 3],
57
58
  align: "center",
58
59
  compressed: true,
59
- gutterSize: "s",
60
60
  listItems: [{
61
61
  title: ___EmotionJSX("kbd", null, ___EmotionJSX(EuiI18n, {
62
62
  token: "euiKeyboardShortcuts.upArrowTitle",
@@ -1,6 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "gutterSize"];
4
+ var _excluded = ["align", "children", "className", "style", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "rowGutterSize", "columnGutterSize", "columnWidths"];
5
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
7
  /*
5
8
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
9
  * or more contributor license agreements. Licensed under the Elastic License
@@ -9,19 +12,20 @@ var _excluded = ["align", "children", "className", "compressed", "descriptionPro
9
12
  * Side Public License, v 1.
10
13
  */
11
14
 
12
- import React from 'react';
15
+ import React, { useMemo } from 'react';
13
16
  import classNames from 'classnames';
17
+ import { useEuiTheme, useIsWithinBreakpoints } from '../../services';
18
+ import { EuiDescriptionListContext } from './description_list_context';
14
19
  import { EuiDescriptionListTitle } from './description_list_title';
15
20
  import { EuiDescriptionListDescription } from './description_list_description';
16
- import { useEuiTheme } from '../../services';
17
21
  import { euiDescriptionListStyles } from './description_list.styles';
18
- import { EuiDescriptionListContext } from './description_list_context';
19
22
  import { jsx as ___EmotionJSX } from "@emotion/react";
20
23
  export var EuiDescriptionList = function EuiDescriptionList(_ref) {
21
24
  var _ref$align = _ref.align,
22
25
  align = _ref$align === void 0 ? 'left' : _ref$align,
23
26
  children = _ref.children,
24
27
  className = _ref.className,
28
+ style = _ref.style,
25
29
  _ref$compressed = _ref.compressed,
26
30
  compressed = _ref$compressed === void 0 ? false : _ref$compressed,
27
31
  descriptionProps = _ref.descriptionProps,
@@ -30,13 +34,38 @@ export var EuiDescriptionList = function EuiDescriptionList(_ref) {
30
34
  textStyle = _ref$textStyle === void 0 ? 'normal' : _ref$textStyle,
31
35
  titleProps = _ref.titleProps,
32
36
  _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,
37
+ _type = _ref$type === void 0 ? 'row' : _ref$type,
38
+ _ref$rowGutterSize = _ref.rowGutterSize,
39
+ rowGutterSize = _ref$rowGutterSize === void 0 ? 's' : _ref$rowGutterSize,
40
+ _ref$columnGutterSize = _ref.columnGutterSize,
41
+ columnGutterSize = _ref$columnGutterSize === void 0 ? 's' : _ref$columnGutterSize,
42
+ columnWidths = _ref.columnWidths,
36
43
  rest = _objectWithoutProperties(_ref, _excluded);
44
+ var showResponsiveColumns = useIsWithinBreakpoints(['xs', 's']);
45
+ var type = useMemo(function () {
46
+ if (_type === 'responsiveColumn') {
47
+ return showResponsiveColumns ? 'row' : 'column';
48
+ } else {
49
+ return _type;
50
+ }
51
+ }, [_type, showResponsiveColumns]);
37
52
  var euiTheme = useEuiTheme();
38
53
  var styles = euiDescriptionListStyles(euiTheme);
39
- var cssStyles = [styles.euiDescriptionList, styles[type], styles[align]];
54
+ var cssStyles = [styles.euiDescriptionList, styles[type], styles[align], type === 'column' && styles.rowGap[rowGutterSize], type === 'column' && styles.columnGap[columnGutterSize]];
55
+ var inlineStyles = useMemo(function () {
56
+ if (type === 'column' && columnWidths) {
57
+ // Leave string values as is - e.g. if a consumer passes in a specific '200px' or 'minmax()'
58
+ var convertNumbersToFr = function convertNumbersToFr(value) {
59
+ return typeof value === 'number' ? "".concat(value, "fr") : value;
60
+ };
61
+ var titleWidth = convertNumbersToFr(columnWidths[0]);
62
+ var descriptionWidth = convertNumbersToFr(columnWidths[1]);
63
+ return _objectSpread({
64
+ gridTemplateColumns: "".concat(titleWidth, " ").concat(descriptionWidth)
65
+ }, style);
66
+ }
67
+ return style;
68
+ }, [style, type, columnWidths]);
40
69
  var classes = classNames('euiDescriptionList', className);
41
70
  var childrenOrListItems = null;
42
71
  if (listItems) {
@@ -56,12 +85,13 @@ export var EuiDescriptionList = function EuiDescriptionList(_ref) {
56
85
  compressed: compressed,
57
86
  textStyle: textStyle,
58
87
  align: align,
59
- gutterSize: gutterSize
88
+ rowGutterSize: rowGutterSize
60
89
  }
61
90
  }, ___EmotionJSX("dl", _extends({
62
91
  className: classes,
63
- css: cssStyles
92
+ css: cssStyles,
93
+ style: inlineStyles
64
94
  }, rest, {
65
- "data-type": type
95
+ "data-type": _type
66
96
  }), childrenOrListItems));
67
97
  };
@@ -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,