@elastic/eui 91.3.1 → 92.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 (160) hide show
  1. package/dist/eui_charts_theme.js.map +1 -1
  2. package/dist/eui_theme_dark.css +0 -513
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +0 -513
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/basic_table/basic_table.js +5 -5
  7. package/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  8. package/es/components/filter_group/filter_button.js +20 -13
  9. package/es/components/filter_group/filter_button.styles.js +11 -20
  10. package/es/components/flyout/flyout.js +4 -4
  11. package/es/components/flyout/flyout_resizable.js +127 -0
  12. package/es/components/flyout/flyout_resizable.styles.js +27 -0
  13. package/es/components/flyout/index.js +2 -1
  14. package/es/components/form/range/dual_range.js +15 -66
  15. package/es/components/form/range/range.js +6 -5
  16. package/es/components/form/range/range_slider.js +28 -22
  17. package/es/components/form/text_area/text_area.js +39 -3
  18. package/es/components/index.js +0 -2
  19. package/es/components/markdown_editor/markdown_editor.js +12 -13
  20. package/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  21. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  22. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +5 -0
  23. package/es/components/tree_view/tree_view.js +23 -25
  24. package/es/utils/prop_types/is.js +2 -2
  25. package/eui.d.ts +825 -1141
  26. package/i18ntokens.json +68 -338
  27. package/lib/components/basic_table/basic_table.js +5 -5
  28. package/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  29. package/lib/components/filter_group/filter_button.js +20 -13
  30. package/lib/components/filter_group/filter_button.styles.js +11 -20
  31. package/lib/components/flyout/flyout.js +4 -4
  32. package/lib/components/flyout/flyout_resizable.js +136 -0
  33. package/lib/components/flyout/flyout_resizable.styles.js +32 -0
  34. package/lib/components/flyout/index.js +8 -1
  35. package/lib/components/form/range/dual_range.js +15 -66
  36. package/lib/components/form/range/range.js +6 -5
  37. package/lib/components/form/range/range_slider.js +27 -21
  38. package/lib/components/form/text_area/text_area.js +42 -3
  39. package/lib/components/index.js +0 -22
  40. package/lib/components/markdown_editor/markdown_editor.js +12 -13
  41. package/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  42. package/lib/components/pagination/pagination_button.js +79 -2
  43. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  44. package/lib/components/tree_view/tree_view.js +23 -25
  45. package/lib/utils/prop_types/is.js +2 -2
  46. package/optimize/es/components/basic_table/basic_table.js +5 -5
  47. package/optimize/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  48. package/optimize/es/components/filter_group/filter_button.js +20 -13
  49. package/optimize/es/components/filter_group/filter_button.styles.js +11 -20
  50. package/optimize/es/components/flyout/flyout.js +4 -4
  51. package/optimize/es/components/flyout/flyout_resizable.js +121 -0
  52. package/optimize/es/components/flyout/flyout_resizable.styles.js +27 -0
  53. package/optimize/es/components/flyout/index.js +2 -1
  54. package/optimize/es/components/form/range/dual_range.js +15 -66
  55. package/optimize/es/components/form/range/range.js +6 -5
  56. package/optimize/es/components/form/range/range_slider.js +26 -21
  57. package/optimize/es/components/form/text_area/text_area.js +29 -3
  58. package/optimize/es/components/index.js +0 -2
  59. package/optimize/es/components/markdown_editor/markdown_editor.js +12 -13
  60. package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  61. package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  62. package/optimize/es/components/tree_view/tree_view.js +23 -25
  63. package/optimize/es/utils/prop_types/is.js +2 -2
  64. package/optimize/lib/components/basic_table/basic_table.js +5 -5
  65. package/optimize/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  66. package/optimize/lib/components/filter_group/filter_button.js +20 -13
  67. package/optimize/lib/components/filter_group/filter_button.styles.js +11 -20
  68. package/optimize/lib/components/flyout/flyout.js +4 -4
  69. package/optimize/lib/components/flyout/flyout_resizable.js +131 -0
  70. package/optimize/lib/components/flyout/flyout_resizable.styles.js +32 -0
  71. package/optimize/lib/components/flyout/index.js +8 -1
  72. package/optimize/lib/components/form/range/dual_range.js +15 -66
  73. package/optimize/lib/components/form/range/range.js +6 -5
  74. package/optimize/lib/components/form/range/range_slider.js +26 -21
  75. package/optimize/lib/components/form/text_area/text_area.js +32 -3
  76. package/optimize/lib/components/index.js +0 -22
  77. package/optimize/lib/components/markdown_editor/markdown_editor.js +12 -13
  78. package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  79. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  80. package/optimize/lib/components/tree_view/tree_view.js +23 -25
  81. package/optimize/lib/utils/prop_types/is.js +2 -2
  82. package/package.json +2 -2
  83. package/src/components/index.scss +0 -2
  84. package/test-env/components/basic_table/basic_table.js +5 -5
  85. package/test-env/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  86. package/test-env/components/filter_group/filter_button.js +20 -13
  87. package/test-env/components/filter_group/filter_button.styles.js +11 -20
  88. package/test-env/components/flyout/flyout_resizable.js +131 -0
  89. package/test-env/components/flyout/flyout_resizable.styles.js +32 -0
  90. package/test-env/components/flyout/index.js +8 -1
  91. package/test-env/components/form/range/dual_range.js +15 -66
  92. package/test-env/components/form/range/range.js +6 -5
  93. package/test-env/components/form/range/range_slider.js +27 -21
  94. package/test-env/components/form/text_area/text_area.js +42 -3
  95. package/test-env/components/index.js +0 -22
  96. package/test-env/components/markdown_editor/markdown_editor.js +12 -13
  97. package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  98. package/test-env/components/pagination/pagination_button.js +79 -2
  99. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  100. package/test-env/components/tree_view/tree_view.js +23 -25
  101. package/test-env/utils/prop_types/is.js +2 -2
  102. package/es/components/control_bar/control_bar.a11y.js +0 -133
  103. package/es/components/control_bar/control_bar.js +0 -609
  104. package/es/components/control_bar/index.js +0 -9
  105. package/es/components/notification/index.js +0 -9
  106. package/es/components/notification/notification_event.a11y.js +0 -104
  107. package/es/components/notification/notification_event.js +0 -288
  108. package/es/components/notification/notification_event_messages.js +0 -79
  109. package/es/components/notification/notification_event_meta.js +0 -148
  110. package/es/components/notification/notification_event_read_button.js +0 -86
  111. package/es/components/notification/notification_event_read_icon.js +0 -77
  112. package/lib/components/control_bar/control_bar.a11y.js +0 -134
  113. package/lib/components/control_bar/control_bar.js +0 -441
  114. package/lib/components/control_bar/index.js +0 -12
  115. package/lib/components/notification/index.js +0 -12
  116. package/lib/components/notification/notification_event.a11y.js +0 -105
  117. package/lib/components/notification/notification_event.js +0 -297
  118. package/lib/components/notification/notification_event_messages.js +0 -88
  119. package/lib/components/notification/notification_event_meta.js +0 -157
  120. package/lib/components/notification/notification_event_read_button.js +0 -93
  121. package/lib/components/notification/notification_event_read_icon.js +0 -64
  122. package/optimize/es/components/control_bar/control_bar.a11y.js +0 -128
  123. package/optimize/es/components/control_bar/control_bar.js +0 -308
  124. package/optimize/es/components/control_bar/index.js +0 -9
  125. package/optimize/es/components/notification/index.js +0 -9
  126. package/optimize/es/components/notification/notification_event.a11y.js +0 -99
  127. package/optimize/es/components/notification/notification_event.js +0 -114
  128. package/optimize/es/components/notification/notification_event_messages.js +0 -63
  129. package/optimize/es/components/notification/notification_event_meta.js +0 -106
  130. package/optimize/es/components/notification/notification_event_read_button.js +0 -44
  131. package/optimize/es/components/notification/notification_event_read_icon.js +0 -44
  132. package/optimize/lib/components/control_bar/control_bar.a11y.js +0 -134
  133. package/optimize/lib/components/control_bar/control_bar.js +0 -301
  134. package/optimize/lib/components/control_bar/index.js +0 -12
  135. package/optimize/lib/components/notification/index.js +0 -12
  136. package/optimize/lib/components/notification/notification_event.a11y.js +0 -105
  137. package/optimize/lib/components/notification/notification_event.js +0 -123
  138. package/optimize/lib/components/notification/notification_event_messages.js +0 -74
  139. package/optimize/lib/components/notification/notification_event_meta.js +0 -117
  140. package/optimize/lib/components/notification/notification_event_read_button.js +0 -51
  141. package/optimize/lib/components/notification/notification_event_read_icon.js +0 -51
  142. package/src/components/control_bar/_control_bar.scss +0 -232
  143. package/src/components/control_bar/_index.scss +0 -2
  144. package/src/components/control_bar/_variables.scss +0 -12
  145. package/src/components/notification/_index.scss +0 -5
  146. package/src/components/notification/_notification_event.scss +0 -40
  147. package/src/components/notification/_notification_event_messages.scss +0 -17
  148. package/src/components/notification/_notification_event_meta.scss +0 -44
  149. package/src/components/notification/_notification_event_read_button.scss +0 -5
  150. package/src/components/notification/_notification_event_read_icon.scss +0 -12
  151. package/test-env/components/control_bar/control_bar.a11y.js +0 -134
  152. package/test-env/components/control_bar/control_bar.js +0 -436
  153. package/test-env/components/control_bar/index.js +0 -12
  154. package/test-env/components/notification/index.js +0 -12
  155. package/test-env/components/notification/notification_event.a11y.js +0 -105
  156. package/test-env/components/notification/notification_event.js +0 -296
  157. package/test-env/components/notification/notification_event_messages.js +0 -85
  158. package/test-env/components/notification/notification_event_meta.js +0 -154
  159. package/test-env/components/notification/notification_event_read_button.js +0 -92
  160. package/test-env/components/notification/notification_event_read_icon.js +0 -63
@@ -1,17 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.RESIZE = exports.EuiTextArea = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
+ var _react = _interopRequireWildcard(require("react"));
8
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
+ var _services = require("../../../services");
10
12
  var _form_control_layout = require("../form_control_layout");
11
13
  var _validatable_control = require("../validatable_control");
12
14
  var _eui_form_context = require("../eui_form_context");
13
15
  var _react2 = require("@emotion/react");
14
- var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inputRef", "isLoading", "isInvalid", "name", "placeholder", "resize", "rows"];
16
+ var _excluded = ["children", "className", "compressed", "fullWidth", "id", "icon", "inputRef", "isLoading", "isInvalid", "isClearable", "name", "placeholder", "resize", "rows"];
15
17
  /*
16
18
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
17
19
  * or more contributor license agreements. Licensed under the Elastic License
@@ -20,6 +22,8 @@ var _excluded = ["children", "className", "compressed", "fullWidth", "id", "inpu
20
22
  * Side Public License, v 1.
21
23
  */
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+ 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); }
26
+ 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; }
23
27
  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); }
24
28
  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; }
25
29
  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; }
@@ -40,9 +44,11 @@ var EuiTextArea = function EuiTextArea(props) {
40
44
  _props$fullWidth = props.fullWidth,
41
45
  fullWidth = _props$fullWidth === void 0 ? defaultFullWidth : _props$fullWidth,
42
46
  id = props.id,
47
+ icon = props.icon,
43
48
  inputRef = props.inputRef,
44
49
  isLoading = props.isLoading,
45
50
  isInvalid = props.isInvalid,
51
+ isClearable = props.isClearable,
46
52
  name = props.name,
47
53
  placeholder = props.placeholder,
48
54
  _props$resize = props.resize,
@@ -61,10 +67,33 @@ var EuiTextArea = function EuiTextArea(props) {
61
67
  } else {
62
68
  definedRows = 6;
63
69
  }
70
+ var ref = (0, _react.useRef)(null);
71
+ var refs = (0, _services.useCombinedRefs)([ref, inputRef]);
72
+ var clear = (0, _react.useMemo)(function () {
73
+ if (isClearable) {
74
+ return {
75
+ onClick: function onClick() {
76
+ if (ref.current) {
77
+ ref.current.value = '';
78
+ var event = new Event('input', {
79
+ bubbles: true,
80
+ cancelable: false
81
+ });
82
+ ref.current.dispatchEvent(event);
83
+ ref.current.focus(); // set focus back to the textarea
84
+ }
85
+ },
86
+
87
+ 'data-test-subj': 'clearTextAreaButton'
88
+ };
89
+ }
90
+ }, [isClearable]);
64
91
  return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, {
65
92
  fullWidth: fullWidth,
66
93
  isLoading: isLoading,
67
94
  isInvalid: isInvalid,
95
+ clear: clear,
96
+ icon: icon,
68
97
  className: "euiFormControlLayout--euiTextArea"
69
98
  }, (0, _react2.jsx)(_validatable_control.EuiValidatableControl, {
70
99
  isInvalid: isInvalid
@@ -74,7 +103,7 @@ var EuiTextArea = function EuiTextArea(props) {
74
103
  rows: definedRows,
75
104
  name: name,
76
105
  id: id,
77
- ref: inputRef,
106
+ ref: refs,
78
107
  placeholder: placeholder
79
108
  }), children)));
80
109
  };
@@ -84,8 +113,18 @@ EuiTextArea.propTypes = {
84
113
  "aria-label": _propTypes.default.string,
85
114
  "data-test-subj": _propTypes.default.string,
86
115
  css: _propTypes.default.any,
116
+ icon: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired, _propTypes.default.shape({
117
+ type: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]).isRequired,
118
+ side: _propTypes.default.any,
119
+ color: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.any.isRequired]),
120
+ ref: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.func.isRequired])
121
+ }).isRequired]),
87
122
  isLoading: _propTypes.default.bool,
88
123
  isInvalid: _propTypes.default.bool,
124
+ /**
125
+ * Shows a button that allows users to quickly clear the textarea
126
+ */
127
+ isClearable: _propTypes.default.bool,
89
128
  /**
90
129
  * Expand to fill 100% of the parent.
91
130
  * Defaults to `fullWidth` prop of `<EuiForm>`.
@@ -223,17 +223,6 @@ Object.keys(_context_menu).forEach(function (key) {
223
223
  }
224
224
  });
225
225
  });
226
- var _control_bar = require("./control_bar");
227
- Object.keys(_control_bar).forEach(function (key) {
228
- if (key === "default" || key === "__esModule") return;
229
- if (key in exports && exports[key] === _control_bar[key]) return;
230
- Object.defineProperty(exports, key, {
231
- enumerable: true,
232
- get: function get() {
233
- return _control_bar[key];
234
- }
235
- });
236
- });
237
226
  var _copy = require("./copy");
238
227
  Object.keys(_copy).forEach(function (key) {
239
228
  if (key === "default" || key === "__esModule") return;
@@ -597,17 +586,6 @@ Object.keys(_mutation_observer).forEach(function (key) {
597
586
  }
598
587
  });
599
588
  });
600
- var _notification = require("./notification");
601
- Object.keys(_notification).forEach(function (key) {
602
- if (key === "default" || key === "__esModule") return;
603
- if (key in exports && exports[key] === _notification[key]) return;
604
- Object.defineProperty(exports, key, {
605
- enumerable: true,
606
- get: function get() {
607
- return _notification[key];
608
- }
609
- });
610
- });
611
589
  var _outside_click_detector = require("./outside_click_detector");
612
590
  Object.keys(_outside_click_detector).forEach(function (key) {
613
591
  if (key === "default" || key === "__esModule") return;
@@ -274,20 +274,19 @@ var EuiMarkdownEditor = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
274
274
  setEditorToolbarHeight(editorToolbarRef.current.offsetHeight);
275
275
  }, [setEditorToolbarHeight]);
276
276
  (0, _react.useEffect)(function () {
277
- if (isPreviewing && autoExpandPreview && height !== 'full') {
278
- if (previewRef.current.scrollHeight > currentHeight) {
279
- // scrollHeight does not include the border or margin
280
- // so we ask for the computed value for those,
281
- // which is always in pixels because getComputedValue
282
- // returns the resolved values
283
- var elementComputedStyle = window.getComputedStyle(previewRef.current);
284
- var borderWidth = parseFloat(elementComputedStyle.borderTopWidth) + parseFloat(elementComputedStyle.borderBottomWidth);
285
- var marginWidth = parseFloat(elementComputedStyle.marginTop) + parseFloat(elementComputedStyle.marginBottom);
277
+ if (height === 'full' || currentHeight === 'full') return;
278
+ if (isPreviewing && autoExpandPreview && previewRef.current.scrollHeight > currentHeight) {
279
+ // scrollHeight does not include the border or margin
280
+ // so we ask for the computed value for those,
281
+ // which is always in pixels because getComputedValue
282
+ // returns the resolved values
283
+ var elementComputedStyle = window.getComputedStyle(previewRef.current);
284
+ var borderWidth = parseFloat(elementComputedStyle.borderTopWidth) + parseFloat(elementComputedStyle.borderBottomWidth);
285
+ var marginWidth = parseFloat(elementComputedStyle.marginTop) + parseFloat(elementComputedStyle.marginBottom);
286
286
 
287
- // then add an extra pixel for safety and because the scrollHeight value is rounded
288
- var extraHeight = borderWidth + marginWidth + 1;
289
- setCurrentHeight(previewRef.current.scrollHeight + extraHeight);
290
- }
287
+ // then add an extra pixel for safety and because the scrollHeight value is rounded
288
+ var extraHeight = borderWidth + marginWidth + 1;
289
+ setCurrentHeight(previewRef.current.scrollHeight + extraHeight);
291
290
  }
292
291
  }, [currentHeight, isPreviewing, height, autoExpandPreview]);
293
292
  var previewHeight = height === 'full' ? "calc(100% - ".concat(editorFooterHeight, "px)") : currentHeight;
@@ -69,7 +69,7 @@ var _EuiPageBottomBar = function _EuiPageBottomBar(_ref2) {
69
69
  // Hide the overflow in case of larger flex margins than padding
70
70
  ,
71
71
  css: _ref
72
- // Using unknown here because of the possible conflict with overriding props and position `sticky`
72
+ // Using object here because of the possible conflict with overriding props and position `sticky`
73
73
  }, rest), (0, _react.jsx)(_page_section.EuiPageSection, {
74
74
  paddingSize: paddingSize,
75
75
  restrictWidth: restrictWidth
@@ -76,8 +76,85 @@ var EuiPaginationButton = function EuiPaginationButton(_ref) {
76
76
  };
77
77
  exports.EuiPaginationButton = EuiPaginationButton;
78
78
  EuiPaginationButton.propTypes = {
79
- href: _propTypes.default.string,
80
- onClick: _propTypes.default.func,
79
+ href: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.string]), _propTypes.default.string]),
80
+ onClick: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.func]),
81
+ /**
82
+ * Any of the named color palette options.
83
+ */
84
+ color: _propTypes.default.any,
85
+ size: _propTypes.default.any,
86
+ /**
87
+ * Ensure the text of the button sits flush to the left, right, or both sides of its container
88
+ */
89
+ /**
90
+ * Ensure the text of the button sits flush to the left, right, or both sides of its container
91
+ */
92
+ flush: _propTypes.default.any,
93
+ /**
94
+ * `disabled` is also allowed
95
+ */
96
+ /**
97
+ * `disabled` is also allowed
98
+ */
99
+ isDisabled: _propTypes.default.bool,
100
+ /**
101
+ * Force disables the button and changes the icon to a loading spinner
102
+ */
103
+ /**
104
+ * Force disables the button and changes the icon to a loading spinner
105
+ */
106
+ isLoading: _propTypes.default.bool,
107
+ /**
108
+ * Applies the boolean state as the `aria-pressed` property to create a toggle button.
109
+ * *Only use when the readable text does not change between states.*
110
+ */
111
+ /**
112
+ * Applies the boolean state as the `aria-pressed` property to create a toggle button.
113
+ * *Only use when the readable text does not change between states.*
114
+ */
115
+ isSelected: _propTypes.default.bool,
116
+ target: _propTypes.default.string,
117
+ rel: _propTypes.default.string,
118
+ type: _propTypes.default.oneOf(["button", "submit"]),
119
+ buttonRef: _propTypes.default.any,
120
+ /**
121
+ * Object of props passed to the `<span>` wrapping the button's content
122
+ */
123
+ /**
124
+ * Object of props passed to the `<span>` wrapping the button's content
125
+ */
126
+ contentProps: _propTypes.default.shape({
127
+ className: _propTypes.default.string,
128
+ "aria-label": _propTypes.default.string,
129
+ "data-test-subj": _propTypes.default.string,
130
+ css: _propTypes.default.any
131
+ }),
132
+ /**
133
+ * Any `type` accepted by EuiIcon
134
+ */
135
+ iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "alert", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
136
+ /**
137
+ * Can only be one side `left` or `right`
138
+ */
139
+ iconSide: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([undefined])]),
140
+ /**
141
+ * Object of props passed to the `<span>` wrapping the content's text/children only (not icon)
142
+ *
143
+ * This span wrapper can be removed by passing `textProps={false}`.
144
+ */
145
+ textProps: _propTypes.default.oneOfType([_propTypes.default.shape({
146
+ className: _propTypes.default.string,
147
+ "aria-label": _propTypes.default.string,
148
+ "data-test-subj": _propTypes.default.string,
149
+ css: _propTypes.default.any,
150
+ ref: _propTypes.default.any,
151
+ "data-text": _propTypes.default.string
152
+ }).isRequired, _propTypes.default.oneOf([false])]),
153
+ iconSize: _propTypes.default.any,
154
+ className: _propTypes.default.string,
155
+ "aria-label": _propTypes.default.string,
156
+ "data-test-subj": _propTypes.default.string,
157
+ css: _propTypes.default.any,
81
158
  isActive: _propTypes.default.bool,
82
159
  pageIndex: _propTypes.default.number.isRequired,
83
160
  totalPages: _propTypes.default.number
@@ -223,7 +223,7 @@ var EuiSelectableListItem = /*#__PURE__*/function (_Component) {
223
223
  onFocusBadgeNode = (0, _react2.jsx)(_badge.EuiBadge, _extends({
224
224
  className: "euiSelectableListItem__onFocusBadge"
225
225
  }, defaultOnFocusBadgeProps));
226
- } else if (!!onFocusBadge && onFocusBadge !== false) {
226
+ } else if (typeof onFocusBadge !== 'boolean' && !!onFocusBadge) {
227
227
  var _children = onFocusBadge.children,
228
228
  _className = onFocusBadge.className,
229
229
  restBadgeProps = _objectWithoutProperties(onFocusBadge, _excluded2);
@@ -61,34 +61,12 @@ var displayToClassNameMap = {
61
61
  var EuiTreeView = /*#__PURE__*/function (_Component) {
62
62
  _inherits(EuiTreeView, _Component);
63
63
  var _super = _createSuper(EuiTreeView);
64
- function EuiTreeView() {
64
+ function EuiTreeView(props, context) {
65
65
  var _this;
66
66
  _classCallCheck(this, EuiTreeView);
67
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
68
- args[_key] = arguments[_key];
69
- }
70
- _this = _super.call.apply(_super, [this].concat(args));
67
+ _this = _super.call(this, props, context);
71
68
  _defineProperty(_assertThisInitialized(_this), "treeIdGenerator", (0, _services.htmlIdGenerator)('euiTreeView'));
72
- _defineProperty(_assertThisInitialized(_this), "isNested", !!_this.context);
73
- _defineProperty(_assertThisInitialized(_this), "state", {
74
- openItems: _this.props.expandByDefault ? _this.props.items.map(function (_ref) {
75
- var id = _ref.id,
76
- children = _ref.children;
77
- return children ? id : null;
78
- }).filter(function (x) {
79
- return x != null;
80
- }) : _this.props.items.map(function (_ref2) {
81
- var id = _ref2.id,
82
- children = _ref2.children,
83
- isExpanded = _ref2.isExpanded;
84
- return children && isExpanded ? id : null;
85
- }).filter(function (x) {
86
- return x != null;
87
- }),
88
- activeItem: '',
89
- treeID: getTreeId(_this.props.id, _this.context, _this.treeIdGenerator),
90
- expandChildNodes: _this.props.expandByDefault || false
91
- });
69
+ _defineProperty(_assertThisInitialized(_this), "isNested", void 0);
92
70
  _defineProperty(_assertThisInitialized(_this), "buttonRef", []);
93
71
  _defineProperty(_assertThisInitialized(_this), "setButtonRef", function (ref, index) {
94
72
  _this.buttonRef[index] = ref;
@@ -183,6 +161,26 @@ var EuiTreeView = /*#__PURE__*/function (_Component) {
183
161
  _this.buttonRef[index].focus();
184
162
  }
185
163
  });
164
+ _this.isNested = !!_this.context;
165
+ _this.state = {
166
+ openItems: _this.props.expandByDefault ? _this.props.items.map(function (_ref) {
167
+ var id = _ref.id,
168
+ children = _ref.children;
169
+ return children ? id : null;
170
+ }).filter(function (x) {
171
+ return x != null;
172
+ }) : _this.props.items.map(function (_ref2) {
173
+ var id = _ref2.id,
174
+ children = _ref2.children,
175
+ isExpanded = _ref2.isExpanded;
176
+ return children && isExpanded ? id : null;
177
+ }).filter(function (x) {
178
+ return x != null;
179
+ }),
180
+ activeItem: '',
181
+ treeID: getTreeId(_this.props.id, context, _this.treeIdGenerator),
182
+ expandChildNodes: _this.props.expandByDefault || false
183
+ };
186
184
  return _this;
187
185
  }
188
186
  _createClass(EuiTreeView, [{
@@ -18,7 +18,7 @@ var is = function is(expectedValue) {
18
18
  var compName = componentName || 'ANONYMOUS';
19
19
  var value = props[propName];
20
20
  if (value !== expectedValue) {
21
- return new Error("[".concat(propName, "] property in [").concat(compName, "] component is expected to equal [").concat(expectedValue, "] but\n [").concat(value, "] was provided instead."));
21
+ return new Error("[".concat(propName.toString(), "] property in [").concat(compName, "] component is expected to equal [").concat(expectedValue, "] but\n [").concat(value, "] was provided instead."));
22
22
  }
23
23
  return null;
24
24
  };
@@ -26,7 +26,7 @@ var is = function is(expectedValue) {
26
26
  var compName = componentName || 'ANONYMOUS';
27
27
  var value = props[propName];
28
28
  if ((0, _predicate.isNil)(value)) {
29
- return new Error("[".concat(propName, "] property in [").concat(compName, "] component is required but seems to be missing"));
29
+ return new Error("[".concat(propName.toString(), "] property in [").concat(compName, "] component is required but seems to be missing"));
30
30
  }
31
31
  return validator(props, propName, componentName);
32
32
  };
@@ -421,7 +421,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
421
421
  var sortDirection = _this2.resolveColumnSortDirection(column);
422
422
  items.push({
423
423
  name: column.name,
424
- key: "_data_s_".concat(column.field, "_").concat(index),
424
+ key: "_data_s_".concat(String(column.field), "_").concat(index),
425
425
  onSort: _this2.resolveColumnOnSort(column),
426
426
  isSorted: !!sortDirection,
427
427
  isSortAscending: sortDirection ? SortDirection.isAsc(sortDirection) : undefined
@@ -574,11 +574,11 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
574
574
  }
575
575
  }
576
576
  headers.push(___EmotionJSX(EuiTableHeaderCell, _extends({
577
- key: "_data_h_".concat(field, "_").concat(index),
577
+ key: "_data_h_".concat(String(field), "_").concat(index),
578
578
  align: columnAlign,
579
579
  width: width,
580
580
  mobileOptions: mobileOptions,
581
- "data-test-subj": "tableHeaderCell_".concat(field, "_").concat(index),
581
+ "data-test-subj": "tableHeaderCell_".concat(String(field), "_").concat(index),
582
582
  description: description
583
583
  }, sorting), name));
584
584
  });
@@ -615,7 +615,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
615
615
 
616
616
  if (footer) {
617
617
  footers.push(___EmotionJSX(EuiTableFooterCell, {
618
- key: "footer_".concat(field, "_").concat(footers.length - 1),
618
+ key: "footer_".concat(String(field), "_").concat(footers.length - 1),
619
619
  align: align
620
620
  }, footer));
621
621
  hasDefinedFooter = true;
@@ -855,7 +855,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
855
855
  var field = column.field,
856
856
  render = column.render,
857
857
  dataType = column.dataType;
858
- var key = "_data_column_".concat(field, "_").concat(itemId, "_").concat(columnIndex);
858
+ var key = "_data_column_".concat(String(field), "_").concat(itemId, "_").concat(columnIndex);
859
859
  var contentRenderer = render || this.getRendererForDataType(dataType);
860
860
  var value = get(item, field);
861
861
  var content = contentRenderer(value, item);
@@ -71,7 +71,7 @@ var DragAndDrop = function DragAndDrop() {
71
71
  beforeEach(function () {
72
72
  cy.realMount(___EmotionJSX(DragAndDrop, null));
73
73
  });
74
- describe('EuiControlBar', function () {
74
+ describe('EuiDragDrop', function () {
75
75
  describe('Automated accessibility check', function () {
76
76
  it('has zero violations on render', function () {
77
77
  cy.checkAxe();
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
5
5
  var _excluded = ["children", "className", "iconType", "iconSide", "color", "badgeColor", "hasActiveFilters", "numFilters", "numActiveFilters", "isDisabled", "isSelected", "type", "grow", "withNext", "textProps", "contentProps"];
@@ -59,6 +59,10 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
59
59
  'euiFilterButton-hasActiveFilters': hasActiveFilters,
60
60
  'euiFilterButton-hasNotification': numFiltersDefined
61
61
  }, className);
62
+
63
+ /**
64
+ * Badge
65
+ */
62
66
  var showBadge = numFiltersDefined || numActiveFiltersDefined;
63
67
  var badgeCount = numActiveFilters || numFilters;
64
68
  var activeBadgeLabel = useEuiI18n('euiFilterButton.filterBadgeActiveAriaLabel', '{count} active filters', {
@@ -67,9 +71,6 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
67
71
  var availableBadgeLabel = useEuiI18n('euiFilterButton.filterBadgeAvailableAriaLabel', '{count} available filters', {
68
72
  count: badgeCount
69
73
  });
70
- var buttonTextClassNames = classNames('euiFilterButton__text', {
71
- 'euiFilterButton__text-hasNotification': showBadge
72
- }, textProps && textProps.className);
73
74
  var badgeContent = showBadge && ___EmotionJSX(EuiNotificationBadge, {
74
75
  className: "euiFilterButton__notification",
75
76
  css: [notificationStyles.euiFilterButton__notification, isDisabled && notificationStyles.disabled, ";label:badgeContent;"],
@@ -77,18 +78,27 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
77
78
  color: isDisabled || !hasActiveFilters ? 'subdued' : badgeColor,
78
79
  role: "marquee" // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/marquee_role
79
80
  }, badgeCount);
81
+
82
+ /**
83
+ * Text
84
+ */
85
+ var buttonTextClassNames = classNames('euiFilterButton__text', {
86
+ 'euiFilterButton__text-hasNotification': showBadge
87
+ }, textProps && textProps.className);
88
+ var textCssStyles = [textStyles.euiFilterButton__text, showBadge && textStyles.hasNotification, textProps && textProps.css];
80
89
  var _useInnerText = useInnerText(),
81
90
  _useInnerText2 = _slicedToArray(_useInnerText, 2),
82
91
  ref = _useInnerText2[0],
83
92
  innerText = _useInnerText2[1];
84
93
  var dataText = children && typeof children === 'string' ? children : innerText;
85
- var buttonContents = ___EmotionJSX(React.Fragment, null, ___EmotionJSX("span", {
94
+ var textContent = ___EmotionJSX("span", _extends({
86
95
  ref: ref,
87
- className: "euiFilterButton__textShift",
88
- css: textStyles.euiFilterButton__textShift,
89
96
  "data-text": dataText,
90
97
  title: dataText
91
- }, children), badgeContent);
98
+ }, textProps, {
99
+ className: buttonTextClassNames,
100
+ css: textCssStyles
101
+ }), children);
92
102
  return ___EmotionJSX(EuiButtonEmpty, _extends({
93
103
  className: classes,
94
104
  css: cssStyles,
@@ -97,12 +107,9 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
97
107
  iconSide: iconSide,
98
108
  iconType: iconType,
99
109
  type: type,
100
- textProps: _objectSpread(_objectSpread({}, textProps), {}, {
101
- className: buttonTextClassNames,
102
- css: [textStyles.euiFilterButton__text, showBadge && textStyles.hasNotification, textProps && textProps.css]
103
- }),
110
+ textProps: false,
104
111
  contentProps: _objectSpread(_objectSpread({}, contentProps), {}, {
105
112
  css: [contentStyles.euiFilterButton__content, iconType && contentStyles.hasIcon, contentProps === null || contentProps === void 0 ? void 0 : contentProps.css]
106
113
  })
107
- }, rest), buttonContents);
114
+ }, rest), textContent, badgeContent);
108
115
  };
@@ -10,8 +10,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
10
  import { css } from '@emotion/react';
11
11
  import { logicalCSS, mathWithUnits, euiTextShift, euiTextTruncate } from '../../global_styling';
12
12
  import { euiFormVariables } from '../form/form.styles';
13
- export var euiFilterButtonDisplay = function euiFilterButtonDisplay(_ref5) {
14
- var euiTheme = _ref5.euiTheme;
13
+ export var euiFilterButtonDisplay = function euiFilterButtonDisplay(_ref4) {
14
+ var euiTheme = _ref4.euiTheme;
15
15
  return {
16
16
  flex: '1 1 auto',
17
17
  minInlineSize: mathWithUnits(euiTheme.size.base, function (x) {
@@ -19,7 +19,7 @@ export var euiFilterButtonDisplay = function euiFilterButtonDisplay(_ref5) {
19
19
  })
20
20
  };
21
21
  };
22
- var _ref4 = process.env.NODE_ENV === "production" ? {
22
+ var _ref3 = process.env.NODE_ENV === "production" ? {
23
23
  name: "jkp921-noGrow",
24
24
  styles: "flex-grow:0;label:noGrow;"
25
25
  } : {
@@ -38,9 +38,9 @@ export var euiFilterButtonStyles = function euiFilterButtonStyles(euiThemeContex
38
38
  // Bottom borders are needed for responsive flex-wrap behavior
39
39
  var bottomBoxShadow = "0 ".concat(euiTheme.border.width.thin, " 0 0 ").concat(borderColor);
40
40
  return {
41
- euiFilterButton: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " ", logicalCSS('height', controlHeight), " border-radius:0;box-shadow:", leftBoxShadow, ",", bottomBoxShadow, ";&:hover:not(:disabled),&:focus:not(:disabled){text-decoration:none;.euiFilterButton__textShift{text-decoration:underline;}}&:focus-visible{outline-offset:-", euiTheme.focus.width, ";};label:euiFilterButton;"),
41
+ euiFilterButton: /*#__PURE__*/css(euiFilterButtonDisplay(euiThemeContext), " ", logicalCSS('height', controlHeight), " border-radius:0;box-shadow:", leftBoxShadow, ",", bottomBoxShadow, ";&:hover:not(:disabled),&:focus:not(:disabled){text-decoration:none;.euiFilterButton__text{text-decoration:underline;}}&:focus-visible{outline-offset:-", euiTheme.focus.width, ";};label:euiFilterButton;"),
42
42
  withNext: /*#__PURE__*/css("&+.euiFilterButton{", logicalCSS('margin-left', "-".concat(euiTheme.size.xs)), "box-shadow:", bottomBoxShadow, ";};label:withNext;"),
43
- noGrow: _ref4,
43
+ noGrow: _ref3,
44
44
  hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
45
45
  return x * 6;
46
46
  })), ";;label:hasNotification;"),
@@ -63,27 +63,18 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
63
63
  styles: "cursor:inherit;label:euiFilterButton__notification;",
64
64
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
65
65
  };
66
- var _ref3 = process.env.NODE_ENV === "production" ? {
67
- name: "f0jxzj-hasIcon",
68
- styles: "justify-content:space-between;label:hasIcon;"
69
- } : {
70
- name: "f0jxzj-hasIcon",
71
- styles: "justify-content:space-between;label:hasIcon;",
72
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
73
- };
74
- export var euiFilterButtonChildStyles = function euiFilterButtonChildStyles(_ref6) {
75
- var euiTheme = _ref6.euiTheme;
66
+ export var euiFilterButtonChildStyles = function euiFilterButtonChildStyles(_ref5) {
67
+ var euiTheme = _ref5.euiTheme;
76
68
  return {
77
69
  content: {
78
70
  euiFilterButton__content: /*#__PURE__*/css(";label:euiFilterButton__content;"),
79
- hasIcon: _ref3
71
+ hasIcon: /*#__PURE__*/css("&>.euiIcon:last-child{", logicalCSS('margin-left', 'auto'), ";};label:hasIcon;")
80
72
  },
81
73
  text: {
82
- euiFilterButton__text: /*#__PURE__*/css(";label:euiFilterButton__text;"),
83
- hasNotification: /*#__PURE__*/css("display:flex;align-items:center;gap:", euiTheme.size.s, ";;label:hasNotification;"),
84
- euiFilterButton__textShift: /*#__PURE__*/css(euiTextShift('bold', 'data-text', euiTheme), " ", euiTextTruncate(), " ", logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
74
+ euiFilterButton__text: /*#__PURE__*/css(euiTextShift('bold', 'data-text', euiTheme), " ", euiTextTruncate(), ";;label:euiFilterButton__text;"),
75
+ hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
85
76
  return x * 3;
86
- })), ";;label:euiFilterButton__textShift;")
77
+ })), ";;label:hasNotification;")
87
78
  },
88
79
  notification: {
89
80
  euiFilterButton__notification: _ref2,