@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
@@ -5,8 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.EuiResizableButton = void 0;
9
- exports.euiResizableButtonWithControls = euiResizableButtonWithControls;
8
+ exports.euiResizableButtonWithControls = exports.EuiResizableButtonControlled = exports.EuiResizableButton = void 0;
10
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
@@ -15,8 +14,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
14
  var _i18n = require("../i18n");
16
15
  var _services = require("../../services");
17
16
  var _context = require("./context");
17
+ var _resizable_button = require("./resizable_button.styles");
18
18
  var _react2 = require("@emotion/react");
19
- var _excluded = ["isHorizontal", "className", "id", "registration", "disabled", "onFocus", "onBlur"];
19
+ var _excluded = ["isHorizontal", "alignIndicator", "className"],
20
+ _excluded2 = ["registration", "id", "disabled", "onFocus"];
20
21
  /*
21
22
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
22
23
  * or more contributor license agreements. Licensed under the Elastic License
@@ -26,15 +27,50 @@ var _excluded = ["isHorizontal", "className", "id", "registration", "disabled",
26
27
  */
27
28
  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); }
28
29
  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; }
29
- var EuiResizableButton = function EuiResizableButton(_ref) {
30
+ /**
31
+ * A generic button for indicating/facilitating resizable content,
32
+ * usable outside of the EuiResizableContainer context
33
+ */
34
+ var EuiResizableButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
30
35
  var isHorizontal = _ref.isHorizontal,
36
+ _ref$alignIndicator = _ref.alignIndicator,
37
+ alignIndicator = _ref$alignIndicator === void 0 ? 'center' : _ref$alignIndicator,
31
38
  className = _ref.className,
32
- id = _ref.id,
33
- registration = _ref.registration,
34
- disabled = _ref.disabled,
35
- onFocus = _ref.onFocus,
36
- onBlur = _ref.onBlur,
37
39
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
40
+ var classes = (0, _classnames.default)('euiResizableButton', className);
41
+ var euiTheme = (0, _services.useEuiTheme)();
42
+ var styles = (0, _resizable_button.euiResizableButtonStyles)(euiTheme);
43
+ var cssStyles = [styles.euiResizableButton, isHorizontal ? styles.horizontal : styles.vertical, styles.alignIndicator[alignIndicator]];
44
+ return (0, _react2.jsx)(_i18n.EuiI18n, {
45
+ tokens: ['euiResizableButton.horizontalResizerAriaLabel', 'euiResizableButton.verticalResizerAriaLabel'],
46
+ defaults: ['Press the left or right arrow keys to adjust panels size', 'Press the up or down arrow keys to adjust panels size']
47
+ }, function (_ref2) {
48
+ var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
49
+ horizontalResizerAriaLabel = _ref3[0],
50
+ verticalResizerAriaLabel = _ref3[1];
51
+ return (0, _react2.jsx)("button", (0, _extends2.default)({
52
+ ref: ref,
53
+ "aria-label": isHorizontal ? horizontalResizerAriaLabel : verticalResizerAriaLabel,
54
+ className: classes,
55
+ css: cssStyles,
56
+ "data-test-subj": "euiResizableButton",
57
+ type: "button"
58
+ }, rest));
59
+ });
60
+ });
61
+ exports.EuiResizableButton = EuiResizableButton;
62
+ EuiResizableButton.displayName = 'EuiResizableButton';
63
+
64
+ /**
65
+ * Resizer button specific to controlled EuiResizableContainer usage
66
+ */
67
+
68
+ var EuiResizableButtonControlled = function EuiResizableButtonControlled(_ref4) {
69
+ var registration = _ref4.registration,
70
+ id = _ref4.id,
71
+ disabled = _ref4.disabled,
72
+ _onFocus = _ref4.onFocus,
73
+ rest = (0, _objectWithoutProperties2.default)(_ref4, _excluded2);
38
74
  var resizerId = (0, _services.useGeneratedHtmlId)({
39
75
  prefix: 'resizable-button',
40
76
  conditionalId: id
@@ -46,13 +82,9 @@ var EuiResizableButton = function EuiResizableButton(_ref) {
46
82
  } : _useEuiResizableConta2,
47
83
  resizers = _useEuiResizableConta3.resizers;
48
84
  var isDisabled = (0, _react.useMemo)(function () {
49
- return disabled || resizers[resizerId] && resizers[resizerId].isDisabled;
85
+ var _resizers$resizerId;
86
+ return disabled || ((_resizers$resizerId = resizers[resizerId]) === null || _resizers$resizerId === void 0 ? void 0 : _resizers$resizerId.isDisabled);
50
87
  }, [resizers, resizerId, disabled]);
51
- var classes = (0, _classnames.default)('euiResizableButton', {
52
- 'euiResizableButton--vertical': !isHorizontal,
53
- 'euiResizableButton--horizontal': isHorizontal,
54
- 'euiResizableButton--disabled': isDisabled
55
- }, className);
56
88
  var previousRef = (0, _react.useRef)();
57
89
  var onRef = (0, _react.useCallback)(function (ref) {
58
90
  if (!registration) return;
@@ -71,36 +103,22 @@ var EuiResizableButton = function EuiResizableButton(_ref) {
71
103
  }
72
104
  }
73
105
  }, [registration, resizerId, disabled]);
74
- var setFocus = function setFocus(e) {
75
- return e.currentTarget.focus();
76
- };
77
- var handleFocus = function handleFocus() {
78
- onFocus && onFocus(resizerId);
79
- };
80
- return (0, _react2.jsx)(_i18n.EuiI18n, {
81
- tokens: ['euiResizableButton.horizontalResizerAriaLabel', 'euiResizableButton.verticalResizerAriaLabel'],
82
- defaults: ['Press left or right to adjust panels size', 'Press up or down to adjust panels size']
83
- }, function (_ref2) {
84
- var _ref3 = (0, _slicedToArray2.default)(_ref2, 2),
85
- horizontalResizerAriaLabel = _ref3[0],
86
- verticalResizerAriaLabel = _ref3[1];
87
- return (0, _react2.jsx)("button", (0, _extends2.default)({
88
- id: resizerId,
89
- ref: onRef,
90
- "aria-label": isHorizontal ? horizontalResizerAriaLabel : verticalResizerAriaLabel,
91
- className: classes,
92
- "data-test-subj": "euiResizableButton",
93
- type: "button",
94
- onClick: setFocus,
95
- onFocus: handleFocus,
96
- onBlur: onBlur,
97
- disabled: isDisabled
98
- }, rest));
99
- });
106
+ return (0, _react2.jsx)(EuiResizableButton, (0, _extends2.default)({
107
+ id: resizerId,
108
+ ref: onRef,
109
+ disabled: isDisabled,
110
+ onClick: function onClick(e) {
111
+ return e.currentTarget.focus();
112
+ },
113
+ onFocus: function onFocus() {
114
+ return _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(resizerId);
115
+ }
116
+ }, rest));
100
117
  };
101
- exports.EuiResizableButton = EuiResizableButton;
102
- function euiResizableButtonWithControls(controls) {
118
+ exports.EuiResizableButtonControlled = EuiResizableButtonControlled;
119
+ var euiResizableButtonWithControls = function euiResizableButtonWithControls(controls) {
103
120
  return function (props) {
104
- return (0, _react2.jsx)(EuiResizableButton, (0, _extends2.default)({}, controls, props));
121
+ return (0, _react2.jsx)(EuiResizableButtonControlled, (0, _extends2.default)({}, controls, props));
105
122
  };
106
- }
123
+ };
124
+ exports.euiResizableButtonWithControls = euiResizableButtonWithControls;
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiResizableButtonStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _services = require("../../services");
9
+ var _global_styling = require("../../global_styling");
10
+ 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)."; } /*
11
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
+ * or more contributor license agreements. Licensed under the Elastic License
13
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
14
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
15
+ * Side Public License, v 1.
16
+ */
17
+ var _ref = process.env.NODE_ENV === "production" ? {
18
+ name: "1fvu7sv-end",
19
+ styles: "align-items:flex-end;label:end;"
20
+ } : {
21
+ name: "1fvu7sv-end",
22
+ styles: "align-items:flex-end;label:end;",
23
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
24
+ };
25
+ var _ref2 = process.env.NODE_ENV === "production" ? {
26
+ name: "h0ntv8-start",
27
+ styles: "align-items:flex-start;label:start;"
28
+ } : {
29
+ name: "h0ntv8-start",
30
+ styles: "align-items:flex-start;label:start;",
31
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
32
+ };
33
+ var _ref3 = process.env.NODE_ENV === "production" ? {
34
+ name: "8391db-center",
35
+ styles: "align-items:center;label:center;"
36
+ } : {
37
+ name: "8391db-center",
38
+ styles: "align-items:center;label:center;",
39
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
40
+ };
41
+ var euiResizableButtonStyles = function euiResizableButtonStyles(euiThemeContext) {
42
+ var euiTheme = euiThemeContext.euiTheme;
43
+ var buttonSize = euiTheme.size.base;
44
+ var grabHandleWidth = euiTheme.size.m;
45
+ var grabHandleHeight = euiTheme.border.width.thin;
46
+ var transitionSpeed = euiTheme.animation.fast;
47
+ var transition = "".concat(transitionSpeed, " ease");
48
+ return {
49
+ // Mimics the "grab" icon with CSS psuedo-elements.
50
+ // 1. The "grab" icon transforms into a thicker straight line on :hover and :focus
51
+ // 2. Start/end aligned handles should have a slight margin offset that disappears on hover/focus
52
+ // 3. CSS hack to smooth out/anti-alias the 1px wide handles at various zoom levels
53
+ euiResizableButton: /*#__PURE__*/(0, _react.css)("z-index:1;flex-shrink:0;display:flex;justify-content:center;gap:", (0, _global_styling.mathWithUnits)(grabHandleHeight, function (x) {
54
+ return x * 2;
55
+ }), ";&:disabled{display:none;}&:hover,&:focus{gap:0;justify-content:center;}", _global_styling.euiCanAnimate, "{transition:gap ", transition, ",justify-content ", transition, ";}&::before,&::after{content:'';display:block;background-color:", euiTheme.colors.darkestShade, ";transform:translateZ(0);", _global_styling.euiCanAnimate, "{transition:width ", transition, ",height ", transition, ",margin ", transition, ",background-color ", transition, ";}}&:hover{&::before,&::after{background-color:", euiTheme.colors.mediumShade, ";", _global_styling.euiCanAnimate, "{transition-delay:", transitionSpeed, ";}}}&:focus,&:active{background-color:", (0, _services.transparentize)(euiTheme.colors.primary, 0.1), ";&::before,&::after{background-color:", euiTheme.colors.primary, ";", _global_styling.euiCanAnimate, "{transition:width ", transition, ",height ", transition, ";transition-delay:", (0, _global_styling.mathWithUnits)(transitionSpeed, function (x) {
56
+ return x / 2;
57
+ }), ";}}};label:euiResizableButton;"),
58
+ horizontal: /*#__PURE__*/(0, _react.css)("cursor:col-resize;", (0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.logicalCSS)('width', buttonSize), " margin-inline:", (0, _global_styling.mathWithUnits)(buttonSize, function (x) {
59
+ return x / -2;
60
+ }), ";&::before,&::after{", (0, _global_styling.logicalCSS)('width', grabHandleHeight), " ", (0, _global_styling.logicalCSS)('height', grabHandleWidth), " margin-block:", euiTheme.size.base, ";}&:hover,&:focus,&:active{&::before,&::after{", (0, _global_styling.logicalCSS)('height', '100%'), " margin-block:0;transform:none;}};label:horizontal;"),
61
+ vertical: /*#__PURE__*/(0, _react.css)("flex-direction:column;cursor:row-resize;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('height', buttonSize), " margin-block:", (0, _global_styling.mathWithUnits)(buttonSize, function (x) {
62
+ return x / -2;
63
+ }), ";&::before,&::after{", (0, _global_styling.logicalCSS)('height', grabHandleHeight), " ", (0, _global_styling.logicalCSS)('width', grabHandleWidth), " margin-inline:", euiTheme.size.base, ";}&:hover,&:focus,&:active{&::before,&::after{", (0, _global_styling.logicalCSS)('width', '100%'), " margin-inline:0;transform:none;}};label:vertical;"),
64
+ alignIndicator: {
65
+ center: _ref3,
66
+ start: _ref2,
67
+ end: _ref
68
+ }
69
+ };
70
+ };
71
+ exports.euiResizableButtonStyles = euiResizableButtonStyles;
@@ -6,10 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.EuiResizableCollapseButton = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
11
  var _react = _interopRequireDefault(require("react"));
11
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
+ var _services = require("../../services");
12
14
  var _button = require("../button");
15
+ var _screen_reader_only = require("../accessibility/screen_reader_only/screen_reader_only.styles");
16
+ var _resizable_collapse_button = require("./resizable_collapse_button.styles");
13
17
  var _react2 = require("@emotion/react");
14
18
  var _excluded = ["className", "externalPosition", "internalPosition", "direction", "isVisible", "isCollapsed"];
15
19
  /*
@@ -21,7 +25,8 @@ var _excluded = ["className", "externalPosition", "internalPosition", "direction
21
25
  */
22
26
  var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref) {
23
27
  var className = _ref.className,
24
- externalPosition = _ref.externalPosition,
28
+ _ref$externalPosition = _ref.externalPosition,
29
+ externalPosition = _ref$externalPosition === void 0 ? 'before' : _ref$externalPosition,
25
30
  _ref$internalPosition = _ref.internalPosition,
26
31
  internalPosition = _ref$internalPosition === void 0 ? 'middle' : _ref$internalPosition,
27
32
  _ref$direction = _ref.direction,
@@ -30,14 +35,15 @@ var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref) {
30
35
  isCollapsed = _ref.isCollapsed,
31
36
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
32
37
  var isHorizontal = direction === 'horizontal';
33
- var classes = (0, _classnames.default)('euiResizableToggleButton', "euiResizableToggleButton--".concat(direction), "euiResizableToggleButton--".concat(externalPosition), "euiResizableToggleButton--".concat(internalPosition), {
34
- 'euiResizableToggleButton-isVisible': isVisible,
35
- 'euiResizableToggleButton-isCollapsed': isCollapsed
36
- }, className);
37
-
38
- // Default to simiple grab icon in case there is no externalPosition specified
39
- var COLLAPSED_ICON = isHorizontal ? 'grab' : 'grabHorizontal';
40
- var NOT_COLLAPSED_ICON = isHorizontal ? 'grab' : 'grabHorizontal';
38
+ var showOnFocus = !isCollapsed && !isVisible;
39
+ var screenReaderOnlyStyles = (0, _screen_reader_only.euiScreenReaderOnlyStyles)(showOnFocus).euiScreenReaderOnly;
40
+ var euiTheme = (0, _services.useEuiTheme)();
41
+ var styles = (0, _resizable_collapse_button.euiResizableCollapseButtonStyles)(euiTheme);
42
+ var collapsedStyles = [styles.collapsed.collapsed, styles.collapsed[direction], styles.collapsed["".concat(direction, "Positions")][internalPosition]];
43
+ var collapsibleStyles = [styles.collapsible.collapsible, styles.collapsible[direction][externalPosition], styles.collapsible[direction][internalPosition]];
44
+ var cssStyles = [styles.euiResizableCollapseButton, showOnFocus && screenReaderOnlyStyles].concat((0, _toConsumableArray2.default)(isCollapsed ? collapsedStyles : collapsibleStyles));
45
+ var COLLAPSED_ICON = '';
46
+ var NOT_COLLAPSED_ICON = '';
41
47
  switch (externalPosition) {
42
48
  case 'before':
43
49
  COLLAPSED_ICON = isHorizontal ? 'menuLeft' : 'menuUp';
@@ -48,11 +54,13 @@ var EuiResizableCollapseButton = function EuiResizableCollapseButton(_ref) {
48
54
  NOT_COLLAPSED_ICON = isHorizontal ? 'menuLeft' : 'menuUp';
49
55
  break;
50
56
  }
57
+ var classes = (0, _classnames.default)('euiResizableCollapseButton', className);
51
58
  return (0, _react2.jsx)(_button.EuiButtonIcon, (0, _extends2.default)({
52
59
  display: isCollapsed ? 'empty' : 'base',
53
- color: "text"
54
- }, rest, {
60
+ color: "text",
55
61
  className: classes,
62
+ css: cssStyles
63
+ }, rest, {
56
64
  iconType: isCollapsed ? COLLAPSED_ICON : NOT_COLLAPSED_ICON
57
65
  }));
58
66
  };
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiResizableCollapseButtonStyles = void 0;
7
+ var _react = require("@emotion/react");
8
+ var _global_styling = require("../../global_styling");
9
+ var _amsterdam = require("../../themes/amsterdam");
10
+ 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)."; } /*
11
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
+ * or more contributor license agreements. Licensed under the Elastic License
13
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
14
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
15
+ * Side Public License, v 1.
16
+ */
17
+ var _ref = process.env.NODE_ENV === "production" ? {
18
+ name: "fuwsll-euiResizableCollapseButton",
19
+ styles: "z-index:2;position:absolute;&:focus{animation:none;};label:euiResizableCollapseButton;"
20
+ } : {
21
+ name: "fuwsll-euiResizableCollapseButton",
22
+ styles: "z-index:2;position:absolute;&:focus{animation:none;};label:euiResizableCollapseButton;",
23
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
24
+ };
25
+ var euiResizableCollapseButtonStyles = function euiResizableCollapseButtonStyles(euiThemeContext) {
26
+ var euiTheme = euiThemeContext.euiTheme;
27
+ var buttonSize = euiTheme.size.l;
28
+ var centeringOffset = (0, _global_styling.mathWithUnits)(buttonSize, function (x) {
29
+ return x / -2;
30
+ }); // Use negative margins instead of transforms to avoid having to override EuiButtonIcon's CSS
31
+ var buttonOffset = euiTheme.size.base;
32
+ return {
33
+ euiResizableCollapseButton: _ref,
34
+ collapsible: {
35
+ collapsible: /*#__PURE__*/(0, _react.css)("background:", euiTheme.colors.emptyShade, ";", (0, _amsterdam.euiShadowXSmall)(euiThemeContext), " &:focus{", (0, _amsterdam.euiSlightShadowHover)(euiThemeContext), ";};label:collapsible;"),
36
+ horizontal: {
37
+ after: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('right', 0), " ", (0, _global_styling.logicalCSS)('margin-right', centeringOffset), ";;label:after;"),
38
+ before: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('margin-left', centeringOffset), ";;label:before;"),
39
+ middle: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', '50%'), " ", (0, _global_styling.logicalCSS)('margin-top', centeringOffset), ";;label:middle;"),
40
+ top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('margin-top', buttonOffset), ";;label:top;"),
41
+ bottom: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('bottom', 0), " ", (0, _global_styling.logicalCSS)('margin-bottom', buttonOffset), ";;label:bottom;"),
42
+ // `left/right` aren't valid positions for the horizontal direction,
43
+ // so we're using getters to fall back to the `middle` CSS
44
+ get left() {
45
+ return this.middle;
46
+ },
47
+ get right() {
48
+ return this.middle;
49
+ }
50
+ },
51
+ vertical: {
52
+ after: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', '100%'), " ", (0, _global_styling.logicalCSS)('margin-top', centeringOffset), ";;label:after;"),
53
+ before: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('bottom', '100%'), " ", (0, _global_styling.logicalCSS)('margin-bottom', centeringOffset), ";;label:before;"),
54
+ middle: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', '50%'), " ", (0, _global_styling.logicalCSS)('margin-left', centeringOffset), ";;label:middle;"),
55
+ left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('margin-left', buttonOffset), ";;label:left;"),
56
+ right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('right', 0), " ", (0, _global_styling.logicalCSS)('margin-right', buttonOffset), ";;label:right;"),
57
+ // `top/bottom` aren't valid positions for the horizontal direction,
58
+ // so we're using getters to fall back to the `middle` CSS
59
+ get top() {
60
+ return this.middle;
61
+ },
62
+ get bottom() {
63
+ return this.middle;
64
+ }
65
+ }
66
+ },
67
+ collapsed: {
68
+ // When collapsed, the button itself is the full collapsed area
69
+ // and we use flex to align the icon within
70
+ collapsed: /*#__PURE__*/(0, _react.css)("border-radius:0;", (0, _global_styling.logicalCSS)('top', 0), ";;label:collapsed;"),
71
+ horizontal: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), ";;label:horizontal;"),
72
+ vertical: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:vertical;"),
73
+ horizontalPositions: {
74
+ top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-top', buttonOffset), " align-items:flex-start;;label:top;"),
75
+ bottom: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-bottom', buttonOffset), " align-items:flex-end;;label:bottom;"),
76
+ middle: /*#__PURE__*/(0, _react.css)(";label:middle;"),
77
+ left: /*#__PURE__*/(0, _react.css)(";label:left;"),
78
+ right: /*#__PURE__*/(0, _react.css)(";label:right;")
79
+ },
80
+ verticalPositions: {
81
+ left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-left', buttonOffset), " justify-content:flex-start;;label:left;"),
82
+ right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-right', buttonOffset), " justify-content:flex-end;;label:right;"),
83
+ middle: /*#__PURE__*/(0, _react.css)(";label:middle;"),
84
+ top: /*#__PURE__*/(0, _react.css)(";label:top;"),
85
+ bottom: /*#__PURE__*/(0, _react.css)(";label:bottom;")
86
+ }
87
+ }
88
+ };
89
+ };
90
+ exports.euiResizableCollapseButtonStyles = euiResizableCollapseButtonStyles;
@@ -48,7 +48,7 @@ exports.euiStepStyles = euiStepStyles;
48
48
  var euiStepContentStyles = function euiStepContentStyles(euiThemeContext) {
49
49
  var euiTheme = euiThemeContext.euiTheme;
50
50
  var euiStep = euiStepVariables(euiTheme);
51
- var styles = {
51
+ return {
52
52
  euiStep__content: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('padding-top', euiTheme.size.base), " ", (0, _global_styling.logicalCSS)('padding-bottom', (0, _global_styling.mathWithUnits)([euiTheme.size.xl, euiTheme.size.s], function (x, y) {
53
53
  return x + y;
54
54
  })), " ", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.base), ";;label:euiStep__content;"),
@@ -58,16 +58,16 @@ var euiStepContentStyles = function euiStepContentStyles(euiThemeContext) {
58
58
  })), (0, _global_styling.logicalCSS)('margin-left', (0, _global_styling.mathWithUnits)(euiStep.numberSize, function (x) {
59
59
  return x / 2;
60
60
  })), ";;label:m;"),
61
- s: /*#__PURE__*/(0, _react.css)(";label:s;"),
62
- // s is the same as m, so we'll programmatically duplicate it below
61
+ // `s` is the same as `m` - use a getter to duplicate its content
62
+ get s() {
63
+ return this.m;
64
+ },
63
65
  xs: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-left', (0, _global_styling.mathWithUnits)([euiStep.numberXSSize, euiStep.numberMargin], function (x, y) {
64
66
  return x / 2 + y;
65
67
  })), (0, _global_styling.logicalCSS)('margin-left', (0, _global_styling.mathWithUnits)(euiStep.numberXSSize, function (x) {
66
68
  return x / 2;
67
69
  })), ";;label:xs;")
68
70
  };
69
- styles.s = styles.m;
70
- return styles;
71
71
  };
72
72
  exports.euiStepContentStyles = euiStepContentStyles;
73
73
  var euiStepTitleStyles = function euiStepTitleStyles(euiThemeContext) {
@@ -48,6 +48,22 @@ var statusMap = {
48
48
 
49
49
  // keys of _EuiSuggestItemPropsBase
50
50
  var suggestItemPropsKeys = ['label', 'type', 'description', 'labelDisplay', 'labelWidth', 'descriptionDisplay'];
51
+
52
+ /**
53
+ * @deprecated
54
+ */
55
+
56
+ /**
57
+ * @deprecated
58
+ */
59
+
60
+ /**
61
+ * @deprecated - EuiSuggest is scheduled for deprecation due to low internal usage and high
62
+ * overlap with other existing EUI components. We recommend using EuiSelectable instead,
63
+ * or copying this component into your own application for usage if necessary.
64
+ *
65
+ * The component will be permanently removed in October 2023.
66
+ */
51
67
  var EuiSuggest = function EuiSuggest(_ref) {
52
68
  var onItemClick = _ref.onItemClick,
53
69
  onBlur = _ref.onBlur,
@@ -20,6 +20,9 @@ var _excluded = ["className", "label", "type", "labelWidth", "description", "tru
20
20
  * in compliance with, at your election, the Elastic License 2.0 or the Server
21
21
  * Side Public License, v 1.
22
22
  */
23
+ /**
24
+ * @deprecated
25
+ */
23
26
  var colorToClassNameMap = {
24
27
  tint0: 'euiSuggestItem__type--tint0',
25
28
  tint1: 'euiSuggestItem__type--tint1',
@@ -34,6 +37,14 @@ var colorToClassNameMap = {
34
37
  tint10: 'euiSuggestItem__type--tint10'
35
38
  };
36
39
  var COLORS = (0, _common.keysOf)(colorToClassNameMap);
40
+
41
+ /**
42
+ * @deprecated - EuiSuggest is scheduled for deprecation due to low internal usage and high
43
+ * overlap with other existing EUI components. We recommend using EuiSelectable instead,
44
+ * or copying this component into your own application for usage if necessary.
45
+ *
46
+ * The component will be permanently removed in October 2023.
47
+ */
37
48
  exports.COLORS = COLORS;
38
49
  var EuiSuggestItem = function EuiSuggestItem(_ref) {
39
50
  var className = _ref.className,
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
 
3
+ var _typeof = require("@babel/runtime/helpers/typeof");
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;
@@ -20,6 +20,10 @@ var generateRandomColor = function generateRandomColor() {
20
20
  "#".concat(Math.floor(Math.random() * 16777215).toString(16))
21
21
  );
22
22
  };
23
+
24
+ /**
25
+ * @deprecated
26
+ */
23
27
  var useColorStopsState = function useColorStopsState() {
24
28
  var useRandomColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
25
29
  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) {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "87.1.0",
4
+ "version": "88.0.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
8
8
  "types": "eui.d.ts",
9
- "docker_image": "18.17.0",
9
+ "docker_image": "18.17.1",
10
10
  "engines": {
11
11
  "node": "16.x || 18.x || >=20.0"
12
12
  },
@@ -47,8 +47,8 @@
47
47
  "yo-doc": "yo ./generator-eui/app/documentation.js",
48
48
  "yo-changelog": "yo ./generator-eui/changelog/index.js",
49
49
  "release": "node ./scripts/release.js",
50
- "storybook": "storybook dev -p 6006",
51
- "build-storybook": "storybook build"
50
+ "storybook": "yarn compile-scss && storybook dev -p 6006",
51
+ "build-storybook": "yarn compile-scss && storybook build"
52
52
  },
53
53
  "repository": {
54
54
  "type": "git",
@@ -66,11 +66,11 @@
66
66
  "dependencies": {
67
67
  "@hello-pangea/dnd": "^16.2.0",
68
68
  "@types/lodash": "^4.14.194",
69
- "@types/numeral": "^0.0.28",
69
+ "@types/numeral": "^2.0.2",
70
70
  "@types/react-input-autosize": "^2.2.1",
71
71
  "@types/react-window": "^1.8.5",
72
- "@types/refractor": "^3.0.0",
73
- "@types/resize-observer-browser": "^0.1.5",
72
+ "@types/refractor": "^3.0.2",
73
+ "@types/resize-observer-browser": "^0.1.7",
74
74
  "@types/vfile-message": "^2.0.0",
75
75
  "chroma-js": "^2.4.2",
76
76
  "classnames": "^2.3.2",
@@ -88,7 +88,7 @@
88
88
  "react-window": "^1.8.9",
89
89
  "refractor": "^3.5.0",
90
90
  "rehype-raw": "^5.0.0",
91
- "rehype-react": "^6.0.0",
91
+ "rehype-react": "^6.2.1",
92
92
  "rehype-stringify": "^8.0.0",
93
93
  "remark-breaks": "^2.0.2",
94
94
  "remark-emoji": "^2.1.0",
@@ -96,7 +96,7 @@
96
96
  "remark-rehype": "^8.0.0",
97
97
  "tabbable": "^5.3.3",
98
98
  "text-diff": "^1.0.1",
99
- "unified": "^9.2.0",
99
+ "unified": "^9.2.2",
100
100
  "unist-util-visit": "^2.0.3",
101
101
  "url-parse": "^1.5.10",
102
102
  "uuid": "^8.3.0",
@@ -129,13 +129,13 @@
129
129
  "@emotion/react": "^11.11.0",
130
130
  "@faker-js/faker": "^7.6.0",
131
131
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
132
- "@storybook/addon-essentials": "^7.0.17",
133
- "@storybook/addon-interactions": "^7.0.17",
134
- "@storybook/addon-links": "^7.0.17",
135
- "@storybook/blocks": "^7.0.17",
136
- "@storybook/react": "^7.0.17",
137
- "@storybook/react-webpack5": "^7.0.17",
138
- "@storybook/testing-library": "^0.0.14-next.2",
132
+ "@storybook/addon-essentials": "^7.3.1",
133
+ "@storybook/addon-interactions": "^7.3.1",
134
+ "@storybook/addon-links": "^7.3.1",
135
+ "@storybook/blocks": "^7.3.1",
136
+ "@storybook/react": "^7.3.1",
137
+ "@storybook/react-webpack5": "^7.3.1",
138
+ "@storybook/testing-library": "^0.1.0",
139
139
  "@svgr/core": "8.0.0",
140
140
  "@svgr/plugin-jsx": "^8.0.1",
141
141
  "@svgr/plugin-svgo": "^8.0.1",
@@ -199,7 +199,7 @@
199
199
  "eslint-plugin-prettier": "^4.2.1",
200
200
  "eslint-plugin-react": "^7.32.2",
201
201
  "eslint-plugin-react-hooks": "^4.6.0",
202
- "eslint-plugin-storybook": "^0.6.12",
202
+ "eslint-plugin-storybook": "^0.6.13",
203
203
  "expose-gc": "^1.0.0",
204
204
  "file-loader": "^6.1.0",
205
205
  "findup": "^0.1.5",
@@ -246,7 +246,7 @@
246
246
  "sass-loader": "^13.2.0",
247
247
  "shelljs": "^0.8.4",
248
248
  "start-server-and-test": "^1.11.3",
249
- "storybook": "^7.0.17",
249
+ "storybook": "^7.3.1",
250
250
  "style-loader": "^3.3.1",
251
251
  "stylelint": "^15.7.0",
252
252
  "stylelint-config-prettier-scss": "^1.0.0",