@elastic/eui 99.2.0 → 99.3.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 (75) hide show
  1. package/es/components/accordion/accordion.js +2 -1
  2. package/es/components/accordion/accordion_children/accordion_children.js +20 -7
  3. package/es/components/accordion/accordion_children/accordion_children.styles.js +5 -0
  4. package/es/components/basic_table/basic_table.js +135 -2
  5. package/es/components/basic_table/in_memory_table.js +131 -1
  6. package/es/components/call_out/call_out.js +1 -1
  7. package/es/components/call_out/call_out.styles.js +1 -0
  8. package/es/components/code/code.styles.js +1 -1
  9. package/es/components/code/code_syntax.styles.js +1 -0
  10. package/es/components/code/utils.js +5 -2
  11. package/es/components/datagrid/data_grid.stories.utils.js +0 -1090
  12. package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
  13. package/es/components/inline_edit/inline_edit_form.js +4 -4
  14. package/es/components/inline_edit/inline_edit_text.js +4 -4
  15. package/es/components/inline_edit/inline_edit_title.js +4 -4
  16. package/es/components/table/table_header_cell.js +76 -4
  17. package/eui.d.ts +4639 -4607
  18. package/i18ntokens.json +36 -36
  19. package/lib/components/accordion/accordion.js +2 -1
  20. package/lib/components/accordion/accordion_children/accordion_children.js +19 -6
  21. package/lib/components/accordion/accordion_children/accordion_children.styles.js +5 -0
  22. package/lib/components/basic_table/basic_table.js +135 -2
  23. package/lib/components/basic_table/in_memory_table.js +131 -1
  24. package/lib/components/call_out/call_out.js +1 -1
  25. package/lib/components/call_out/call_out.styles.js +1 -0
  26. package/lib/components/code/code.styles.js +1 -1
  27. package/lib/components/code/code_syntax.styles.js +1 -0
  28. package/lib/components/code/utils.js +6 -1
  29. package/lib/components/datagrid/data_grid.stories.utils.js +1 -1092
  30. package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
  31. package/lib/components/inline_edit/inline_edit_form.js +4 -4
  32. package/lib/components/inline_edit/inline_edit_text.js +4 -4
  33. package/lib/components/inline_edit/inline_edit_title.js +4 -4
  34. package/lib/components/table/table_header_cell.js +79 -8
  35. package/optimize/es/components/accordion/accordion.js +2 -1
  36. package/optimize/es/components/accordion/accordion_children/accordion_children.js +20 -7
  37. package/optimize/es/components/accordion/accordion_children/accordion_children.styles.js +5 -0
  38. package/optimize/es/components/basic_table/basic_table.js +4 -1
  39. package/optimize/es/components/call_out/call_out.js +1 -1
  40. package/optimize/es/components/call_out/call_out.styles.js +1 -0
  41. package/optimize/es/components/code/code.styles.js +1 -1
  42. package/optimize/es/components/code/code_syntax.styles.js +1 -0
  43. package/optimize/es/components/code/utils.js +5 -2
  44. package/optimize/es/components/datagrid/data_grid.stories.utils.js +0 -18
  45. package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
  46. package/optimize/es/components/table/table_header_cell.js +14 -3
  47. package/optimize/lib/components/accordion/accordion.js +2 -1
  48. package/optimize/lib/components/accordion/accordion_children/accordion_children.js +19 -6
  49. package/optimize/lib/components/accordion/accordion_children/accordion_children.styles.js +5 -0
  50. package/optimize/lib/components/basic_table/basic_table.js +4 -1
  51. package/optimize/lib/components/call_out/call_out.js +1 -1
  52. package/optimize/lib/components/call_out/call_out.styles.js +1 -0
  53. package/optimize/lib/components/code/code.styles.js +1 -1
  54. package/optimize/lib/components/code/code_syntax.styles.js +1 -0
  55. package/optimize/lib/components/code/utils.js +6 -1
  56. package/optimize/lib/components/datagrid/data_grid.stories.utils.js +1 -19
  57. package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
  58. package/optimize/lib/components/table/table_header_cell.js +14 -3
  59. package/package.json +2 -1
  60. package/test-env/components/accordion/accordion.js +2 -1
  61. package/test-env/components/accordion/accordion_children/accordion_children.js +19 -6
  62. package/test-env/components/accordion/accordion_children/accordion_children.styles.js +5 -0
  63. package/test-env/components/basic_table/basic_table.js +135 -2
  64. package/test-env/components/basic_table/in_memory_table.js +131 -1
  65. package/test-env/components/call_out/call_out.js +1 -1
  66. package/test-env/components/call_out/call_out.styles.js +1 -0
  67. package/test-env/components/code/code.styles.js +1 -1
  68. package/test-env/components/code/code_syntax.styles.js +1 -0
  69. package/test-env/components/code/utils.js +6 -1
  70. package/test-env/components/datagrid/data_grid.stories.utils.js +1 -1091
  71. package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
  72. package/test-env/components/inline_edit/inline_edit_form.js +4 -4
  73. package/test-env/components/inline_edit/inline_edit_text.js +4 -4
  74. package/test-env/components/inline_edit/inline_edit_title.js +4 -4
  75. package/test-env/components/table/table_header_cell.js +76 -4
@@ -162,6 +162,9 @@ var EuiAbsoluteTab = exports.EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
162
162
  value: textInputValue,
163
163
  onChange: handleTextChange,
164
164
  onPaste: function onPaste(event) {
165
+ // preventing default here ensures no additional onChange is
166
+ // triggered which otherwise results in input duplication
167
+ event.preventDefault();
165
168
  setTextInputValue(event.clipboardData.getData('text'));
166
169
  setIsReadyToParse(true);
167
170
  },
@@ -369,6 +369,10 @@ EuiInlineEditForm.propTypes = {
369
369
  * Initial inline edit text value
370
370
  */
371
371
  defaultValue: _propTypes.default.string,
372
+ /**
373
+ * Callback required to reset `value` to the previous read mode text value.
374
+ */
375
+ onCancel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.func.isRequired]),
372
376
  /**
373
377
  * To use inline edit as a controlled component, continuously pass the value via this prop
374
378
  */
@@ -377,10 +381,6 @@ EuiInlineEditForm.propTypes = {
377
381
  * Callback required to receive and update `value` based on user input
378
382
  */
379
383
  onChange: _propTypes.default.func,
380
- /**
381
- * Callback required to reset `value` to the previous read mode text value.
382
- */
383
- onCancel: _propTypes.default.func,
384
384
  /**
385
385
  * Form sizes
386
386
  */
@@ -119,6 +119,10 @@ EuiInlineEditText.propTypes = {
119
119
  * Initial inline edit text value
120
120
  */
121
121
  defaultValue: _propTypes.default.string,
122
+ /**
123
+ * Callback required to reset `value` to the previous read mode text value.
124
+ */
125
+ onCancel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.func.isRequired]),
122
126
  /**
123
127
  * To use inline edit as a controlled component, continuously pass the value via this prop
124
128
  */
@@ -127,10 +131,6 @@ EuiInlineEditText.propTypes = {
127
131
  * Callback required to receive and update `value` based on user input
128
132
  */
129
133
  onChange: _propTypes.default.func,
130
- /**
131
- * Callback required to reset `value` to the previous read mode text value.
132
- */
133
- onCancel: _propTypes.default.func,
134
134
  /**
135
135
  * Text size level
136
136
  */
@@ -128,6 +128,10 @@ EuiInlineEditTitle.propTypes = {
128
128
  * Initial inline edit text value
129
129
  */
130
130
  defaultValue: _propTypes.default.string,
131
+ /**
132
+ * Callback required to reset `value` to the previous read mode text value.
133
+ */
134
+ onCancel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.func.isRequired]),
131
135
  /**
132
136
  * To use inline edit as a controlled component, continuously pass the value via this prop
133
137
  */
@@ -136,10 +140,6 @@ EuiInlineEditTitle.propTypes = {
136
140
  * Callback required to receive and update `value` based on user input
137
141
  */
138
142
  onChange: _propTypes.default.func,
139
- /**
140
- * Callback required to reset `value` to the previous read mode text value.
141
- */
142
- onCancel: _propTypes.default.func,
143
143
  /**
144
144
  * Title size level
145
145
  */
@@ -4,34 +4,35 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.EuiTableHeaderCell = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _services = require("../../services");
11
11
  var _i18n = require("../i18n");
12
12
  var _accessibility = require("../accessibility");
13
13
  var _icon = require("../icon");
14
14
  var _inner_text = require("../inner_text");
15
+ var _tool_tip = require("../tool_tip");
15
16
  var _utils = require("./utils");
16
17
  var _responsive_context = require("./mobile/responsive_context");
17
18
  var _table_cell_content = require("./_table_cell_content");
18
19
  var _table_cells_shared = require("./table_cells_shared.styles");
19
20
  var _react2 = require("@emotion/react");
20
- var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "description", "append"];
21
- /*
21
+ var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "tooltipProps", "description", "append"];
22
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
23
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
24
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
25
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /*
22
26
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
23
27
  * or more contributor license agreements. Licensed under the Elastic License
24
28
  * 2.0 and the Server Side Public License, v 1; you may not use this file except
25
29
  * in compliance with, at your election, the Elastic License 2.0 or the Server
26
30
  * Side Public License, v 1.
27
31
  */
28
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
29
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
30
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
31
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
32
32
  var CellContents = function CellContents(_ref) {
33
33
  var className = _ref.className,
34
34
  align = _ref.align,
35
+ tooltipProps = _ref.tooltipProps,
35
36
  description = _ref.description,
36
37
  children = _ref.children,
37
38
  canSort = _ref.canSort,
@@ -57,7 +58,14 @@ var CellContents = function CellContents(_ref) {
57
58
  className: "eui-textTruncate"
58
59
  }, children);
59
60
  });
60
- }), description && (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, description)), isSorted ? (0, _react2.jsx)(_icon.EuiIcon, {
61
+ }), description && (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, description)), tooltipProps && (0, _react2.jsx)(_tool_tip.EuiIconTip, _extends({
62
+ content: tooltipProps.content,
63
+ type: tooltipProps.icon || 'questionInCircle',
64
+ size: "m",
65
+ color: "subdued",
66
+ position: "top",
67
+ iconProps: tooltipProps.iconProps
68
+ }, tooltipProps.tooltipProps)), isSorted ? (0, _react2.jsx)(_icon.EuiIcon, {
61
69
  className: "euiTableSortIcon",
62
70
  type: isSortAscending ? 'sortUp' : 'sortDown',
63
71
  size: "m"
@@ -81,6 +89,7 @@ var EuiTableHeaderCell = exports.EuiTableHeaderCell = function EuiTableHeaderCel
81
89
  width = _ref2.width,
82
90
  style = _ref2.style,
83
91
  readOnly = _ref2.readOnly,
92
+ tooltipProps = _ref2.tooltipProps,
84
93
  description = _ref2.description,
85
94
  append = _ref2.append,
86
95
  rest = _objectWithoutProperties(_ref2, _excluded);
@@ -104,6 +113,7 @@ var EuiTableHeaderCell = exports.EuiTableHeaderCell = function EuiTableHeaderCel
104
113
  var cellContentsProps = {
105
114
  css: styles.euiTableHeaderCell__content,
106
115
  align: align,
116
+ tooltipProps: tooltipProps,
107
117
  description: description,
108
118
  canSort: canSort,
109
119
  isSorted: isSorted,
@@ -139,6 +149,67 @@ EuiTableHeaderCell.propTypes = {
139
149
  onSort: _propTypes.default.func,
140
150
  scope: _propTypes.default.any,
141
151
  width: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.number.isRequired]),
152
+ /** Allows adding an icon with a tooltip displayed next to the name */tooltipProps: _propTypes.default.shape({
153
+ /** The main content of the tooltip */content: _propTypes.default.node.isRequired,
154
+ /**
155
+ * The icon type to display
156
+ * @default 'questionInCircle'
157
+ */
158
+ icon: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "anomalyChart", "anomalySwimLane", "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", "changePointDetection", "check", "checkInCircleFilled", "cheer", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInCircle", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "diff", "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", "errorFilled", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "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", "index", "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", "logPatternAnalysis", "logRateAnalysis", "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", "minusInSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "newChat", "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", "plugs", "plus", "plusInCircle", "plusInCircleFilled", "plusInSquare", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "singleMetricViewer", "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", "warningFilled", "alert", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "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", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
159
+ /** Additional props for EuiIcon */iconProps: _propTypes.default.any,
160
+ /** Additional props for the EuiToolip */tooltipProps: _propTypes.default.shape({
161
+ /**
162
+ * Passes onto the span wrapping the trigger.
163
+ */
164
+ anchorClassName: _propTypes.default.string,
165
+ /**
166
+ * Passes onto the span wrapping the trigger.
167
+ */
168
+ anchorProps: _propTypes.default.shape({
169
+ className: _propTypes.default.string,
170
+ "aria-label": _propTypes.default.string,
171
+ "data-test-subj": _propTypes.default.string,
172
+ css: _propTypes.default.any
173
+ }),
174
+ /**
175
+ * Passes onto the tooltip itself, not the trigger.
176
+ */
177
+ className: _propTypes.default.string,
178
+ /**
179
+ * The main content of your tooltip.
180
+ */
181
+ content: _propTypes.default.node,
182
+ /**
183
+ * Common display alternatives for the anchor wrapper
184
+ */
185
+ display: _propTypes.default.any,
186
+ /**
187
+ * An optional title for your tooltip.
188
+ */
189
+ title: _propTypes.default.node,
190
+ /**
191
+ * Unless you provide one, this will be randomly generated.
192
+ */
193
+ id: _propTypes.default.string,
194
+ /**
195
+ * When `true`, the tooltip's position is re-calculated when the user
196
+ * scrolls. This supports having fixed-position tooltip anchors.
197
+ *
198
+ * When nesting an `EuiTooltip` in a scrollable container, `repositionOnScroll` should be `true`
199
+ */
200
+ repositionOnScroll: _propTypes.default.bool,
201
+ /**
202
+ * If supplied, called when mouse movement causes the tool tip to be
203
+ * hidden.
204
+ */
205
+ onMouseOut: _propTypes.default.func,
206
+ "aria-label": _propTypes.default.string,
207
+ "data-test-subj": _propTypes.default.string,
208
+ css: _propTypes.default.any,
209
+ delay: _propTypes.default.any,
210
+ position: _propTypes.default.any
211
+ })
212
+ }),
142
213
  description: _propTypes.default.string,
143
214
  /**
144
215
  * Shows the sort indicator but removes the button
@@ -123,7 +123,8 @@ export var EuiAccordionClass = /*#__PURE__*/function (_Component) {
123
123
  paddingSize: paddingSize,
124
124
  isLoading: isLoading,
125
125
  isLoadingMessage: isLoadingMessage,
126
- isOpen: this.isOpen
126
+ isOpen: this.isOpen,
127
+ initialIsOpen: initialIsOpen
127
128
  }, children));
128
129
  }
129
130
  }]);
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["role", "children", "paddingSize", "isLoading", "isLoadingMessage", "isOpen"];
4
+ var _excluded = ["role", "children", "paddingSize", "isLoading", "isLoadingMessage", "isOpen", "initialIsOpen"];
5
5
  /*
6
6
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
7
7
  * or more contributor license agreements. Licensed under the Elastic License
@@ -10,7 +10,7 @@ var _excluded = ["role", "children", "paddingSize", "isLoading", "isLoadingMessa
10
10
  * Side Public License, v 1.
11
11
  */
12
12
 
13
- import React, { useCallback, useMemo, useState } from 'react';
13
+ import React, { useCallback, useEffect, useMemo, useState } from 'react';
14
14
  import classNames from 'classnames';
15
15
  import { useEuiTheme } from '../../../services';
16
16
  import { EuiResizeObserver } from '../../observer/resize_observer';
@@ -24,6 +24,7 @@ export var EuiAccordionChildren = function EuiAccordionChildren(_ref) {
24
24
  isLoading = _ref.isLoading,
25
25
  isLoadingMessage = _ref.isLoadingMessage,
26
26
  isOpen = _ref.isOpen,
27
+ initialIsOpen = _ref.initialIsOpen,
27
28
  rest = _objectWithoutProperties(_ref, _excluded);
28
29
  /**
29
30
  * Children
@@ -38,17 +39,29 @@ export var EuiAccordionChildren = function EuiAccordionChildren(_ref) {
38
39
  /**
39
40
  * Wrapper
40
41
  */
42
+ var _useState = useState(false),
43
+ _useState2 = _slicedToArray(_useState, 2),
44
+ hasTransition = _useState2[0],
45
+ setHasTransition = _useState2[1];
41
46
  var wrapperStyles = euiAccordionChildWrapperStyles(euiTheme);
42
- var wrapperCssStyles = [wrapperStyles.euiAccordion__childWrapper, isOpen ? wrapperStyles.isOpen : wrapperStyles.isClosed];
47
+ var wrapperCssStyles = [wrapperStyles.euiAccordion__childWrapper, isOpen ? wrapperStyles.isOpen : wrapperStyles.isClosed, initialIsOpen && !hasTransition && isOpen && wrapperStyles.noTransition];
48
+
49
+ /* Controls enabling opening/closing transitions on first interaction
50
+ when initialIsOpen=true; this only runs once */
51
+ useEffect(function () {
52
+ if (initialIsOpen && !isOpen && !hasTransition) {
53
+ setHasTransition(true);
54
+ }
55
+ }, [isOpen, initialIsOpen, hasTransition]);
43
56
 
44
57
  /**
45
58
  * Update the accordion wrapper height whenever the accordion opens, and also
46
59
  * whenever the child content updates (which will change the height)
47
60
  */
48
- var _useState = useState(0),
49
- _useState2 = _slicedToArray(_useState, 2),
50
- contentHeight = _useState2[0],
51
- setContentHeight = _useState2[1];
61
+ var _useState3 = useState(0),
62
+ _useState4 = _slicedToArray(_useState3, 2),
63
+ contentHeight = _useState4[0],
64
+ setContentHeight = _useState4[1];
52
65
  var onResize = useCallback(function (_ref2) {
53
66
  var height = _ref2.height;
54
67
  return setContentHeight(Math.round(height));
@@ -33,6 +33,11 @@ export var euiAccordionChildWrapperStyles = function euiAccordionChildWrapperSty
33
33
  var euiTheme = euiThemeContext.euiTheme;
34
34
  return {
35
35
  euiAccordion__childWrapper: /*#__PURE__*/css("overflow:hidden;", euiCanAnimate, "{transition:", logicals.height, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ",opacity ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";}", euiFocusRing(euiThemeContext), ";;label:euiAccordion__childWrapper;"),
36
+ // choosing to override transition instead of applying it conditionally
37
+ // to keep a more logical style appliance:
38
+ // default case = has transition as part of default styles (all cases expect initial isOpen=true when initialIsOpen=true)
39
+ // special case: no transition for initial isOpen=true when initialIsOpen=true
40
+ noTransition: /*#__PURE__*/css(euiCanAnimate, "{transition:none;};label:noTransition;"),
36
41
  isClosed: /*#__PURE__*/css(logicalCSS('height', 0), " opacity:0;;label:isClosed;"),
37
42
  isOpen: /*#__PURE__*/css(logicalCSS('height', 'auto'), " opacity:1;;label:isOpen;")
38
43
  };
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _inherits from "@babel/runtime/helpers/inherits";
10
10
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
11
  var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout"],
12
- _excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions"];
12
+ _excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions", "nameTooltip"];
13
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15
15
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
@@ -498,6 +498,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
498
498
  field = _ref8.field,
499
499
  width = _ref8.width,
500
500
  name = _ref8.name,
501
+ nameTooltip = _ref8.nameTooltip,
501
502
  align = _ref8.align,
502
503
  dataType = _ref8.dataType,
503
504
  sortable = _ref8.sortable,
@@ -507,6 +508,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
507
508
  var columnAlign = align || _this3.getAlignForDataType(dataType);
508
509
  var sharedProps = {
509
510
  width: width,
511
+ tooltipProps: nameTooltip,
510
512
  description: description,
511
513
  mobileOptions: mobileOptions,
512
514
  align: columnAlign,
@@ -882,6 +884,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
882
884
  sortable = _ref11.sortable,
883
885
  footer = _ref11.footer,
884
886
  mobileOptions = _ref11.mobileOptions,
887
+ nameTooltip = _ref11.nameTooltip,
885
888
  rest = _objectWithoutProperties(_ref11, _excluded2);
886
889
  var columnAlign = align || this.getAlignForDataType(dataType);
887
890
  var cellPropsCallback = this.props.cellProps;
@@ -22,7 +22,7 @@ import { EuiTitle } from '../title';
22
22
  import { EuiI18n } from '../i18n';
23
23
  import { euiCallOutStyles, euiCallOutHeaderStyles } from './call_out.styles';
24
24
  import { jsx as ___EmotionJSX } from "@emotion/react";
25
- export var COLORS = ['primary', 'success', 'warning', 'danger'];
25
+ export var COLORS = ['primary', 'success', 'warning', 'danger', 'accent'];
26
26
  export var HEADINGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'];
27
27
  export var EuiCallOut = /*#__PURE__*/forwardRef(function (_ref, ref) {
28
28
  var title = _ref.title,
@@ -54,6 +54,7 @@ export var euiCallOutHeaderStyles = function euiCallOutHeaderStyles(_ref4) {
54
54
  success: /*#__PURE__*/css("color:", euiTheme.colors.successText, ";;label:success;"),
55
55
  warning: /*#__PURE__*/css("color:", euiTheme.colors.warningText, ";;label:warning;"),
56
56
  danger: /*#__PURE__*/css("color:", euiTheme.colors.dangerText, ";;label:danger;"),
57
+ accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
57
58
  euiCallOut__icon: /*#__PURE__*/css("position:relative;", logicalCSS('top', '-1px'), " ", logicalCSS('margin-right', euiTheme.size.s), ";;label:euiCallOut__icon;")
58
59
  };
59
60
  };
@@ -25,7 +25,7 @@ export var euiCodeStyles = function euiCodeStyles(euiThemeContext) {
25
25
  /*
26
26
  * 1. Size the code against the text its embedded within.
27
27
  */
28
- euiCode: /*#__PURE__*/css("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", logicalShorthandCSS('padding', '0.2em 0.5em'), "background:", codeSyntaxVariables.backgroundColor, ";border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.bold, ";color:", codeSyntaxVariables.inlineCodeColor, ";", codeSyntaxVariables.tokensCss, ";;label:euiCode;"),
28
+ euiCode: /*#__PURE__*/css("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", logicalShorthandCSS('padding', '0.2em 0.5em'), "background:", codeSyntaxVariables.backgroundColor, ";border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.bold, ";color:", codeSyntaxVariables.inlineCodeColor, ";", codeSyntaxVariables.tokensCss, " .token.atrule .token.rule,.token.keyword{color:", codeSyntaxVariables.inlineCodeKeywordColor, ";};label:euiCode;"),
29
29
  transparentBackground: _ref
30
30
  };
31
31
  };
@@ -25,6 +25,7 @@ export var euiCodeSyntaxVariables = function euiCodeSyntaxVariables(_ref) {
25
25
  nameColor: makeHighContrastColor(visColors[1])(backgroundColor),
26
26
  numberColor: makeHighContrastColor(visColors[0])(backgroundColor),
27
27
  keywordColor: makeHighContrastColor(visColors[3])(backgroundColor),
28
+ inlineCodeKeywordColor: makeHighContrastColor(visColors[6])(backgroundColor),
28
29
  functionTitleColor: 'inherit',
29
30
  typeColor: makeHighContrastColor(visColors[1])(backgroundColor),
30
31
  attributeColor: 'inherit',
@@ -10,15 +10,18 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
10
10
  */
11
11
 
12
12
  import React, { createElement } from 'react';
13
- import { listLanguages, highlight } from 'refractor';
13
+ import { listLanguages, highlight, register } from 'refractor';
14
14
  import { cx } from '@emotion/css';
15
+ import { esql as esqlLanguage } from '@elastic/prismjs-esql';
15
16
  import { EuiCodeBlockAnnotation } from './code_block_annotations';
16
17
  import { euiCodeBlockLineStyles } from './code_block_line.styles';
18
+ import { jsx as ___EmotionJSX } from "@emotion/react";
19
+ register(esqlLanguage);
17
20
 
18
21
  /**
19
22
  * Utils shared between EuiCode and EuiCodeBlock
20
23
  */
21
- import { jsx as ___EmotionJSX } from "@emotion/react";
24
+
22
25
  export var SUPPORTED_LANGUAGES = listLanguages();
23
26
  export var DEFAULT_LANGUAGE = 'text';
24
27
 
@@ -350,22 +350,4 @@ export var StatefulDataGrid = function StatefulDataGrid(props) {
350
350
  onChangePage: onChangePage
351
351
  })
352
352
  }));
353
- };
354
-
355
- /*
356
- * Components that exist purely for allowing Storybook to parse certain nested
357
- * interfaces/types into specific example control tables.
358
- *
359
- * For whatever reason, they needs to be in a separate file for Storybook's
360
- * react-typescript-docgen to parse the jsdoc comments into the controls table
361
- */
362
-
363
- export var EuiDataGridToolbarPropsComponent = function EuiDataGridToolbarPropsComponent() {
364
- return ___EmotionJSX(React.Fragment, null);
365
- };
366
- export var EuiDataGridStylePropsComponent = function EuiDataGridStylePropsComponent() {
367
- return ___EmotionJSX(React.Fragment, null);
368
- };
369
- export var EuiDataGridRowHeightsPropsComponent = function EuiDataGridRowHeightsPropsComponent() {
370
- return ___EmotionJSX(React.Fragment, null);
371
353
  };
@@ -150,6 +150,9 @@ export var EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
150
150
  value: textInputValue,
151
151
  onChange: handleTextChange,
152
152
  onPaste: function onPaste(event) {
153
+ // preventing default here ensures no additional onChange is
154
+ // triggered which otherwise results in input duplication
155
+ event.preventDefault();
153
156
  setTextInputValue(event.clipboardData.getData('text'));
154
157
  setIsReadyToParse(true);
155
158
  },
@@ -1,6 +1,6 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "description", "append"];
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "tooltipProps", "description", "append"];
4
4
  /*
5
5
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
6
6
  * or more contributor license agreements. Licensed under the Elastic License
@@ -16,6 +16,7 @@ import { EuiI18n } from '../i18n';
16
16
  import { EuiScreenReaderOnly } from '../accessibility';
17
17
  import { EuiIcon } from '../icon';
18
18
  import { EuiInnerText } from '../inner_text';
19
+ import { EuiIconTip } from '../tool_tip';
19
20
  import { resolveWidthAsStyle } from './utils';
20
21
  import { useEuiTableIsResponsive } from './mobile/responsive_context';
21
22
  import { EuiTableCellContent } from './_table_cell_content';
@@ -24,6 +25,7 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
24
25
  var CellContents = function CellContents(_ref) {
25
26
  var className = _ref.className,
26
27
  align = _ref.align,
28
+ tooltipProps = _ref.tooltipProps,
27
29
  description = _ref.description,
28
30
  children = _ref.children,
29
31
  canSort = _ref.canSort,
@@ -49,7 +51,14 @@ var CellContents = function CellContents(_ref) {
49
51
  className: "eui-textTruncate"
50
52
  }, children);
51
53
  });
52
- }), description && ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("span", null, description)), isSorted ? ___EmotionJSX(EuiIcon, {
54
+ }), description && ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("span", null, description)), tooltipProps && ___EmotionJSX(EuiIconTip, _extends({
55
+ content: tooltipProps.content,
56
+ type: tooltipProps.icon || 'questionInCircle',
57
+ size: "m",
58
+ color: "subdued",
59
+ position: "top",
60
+ iconProps: tooltipProps.iconProps
61
+ }, tooltipProps.tooltipProps)), isSorted ? ___EmotionJSX(EuiIcon, {
53
62
  className: "euiTableSortIcon",
54
63
  type: isSortAscending ? 'sortUp' : 'sortDown',
55
64
  size: "m"
@@ -73,6 +82,7 @@ export var EuiTableHeaderCell = function EuiTableHeaderCell(_ref2) {
73
82
  width = _ref2.width,
74
83
  style = _ref2.style,
75
84
  readOnly = _ref2.readOnly,
85
+ tooltipProps = _ref2.tooltipProps,
76
86
  description = _ref2.description,
77
87
  append = _ref2.append,
78
88
  rest = _objectWithoutProperties(_ref2, _excluded);
@@ -96,6 +106,7 @@ export var EuiTableHeaderCell = function EuiTableHeaderCell(_ref2) {
96
106
  var cellContentsProps = {
97
107
  css: styles.euiTableHeaderCell__content,
98
108
  align: align,
109
+ tooltipProps: tooltipProps,
99
110
  description: description,
100
111
  canSort: canSort,
101
112
  isSorted: isSorted,
@@ -131,7 +131,8 @@ var EuiAccordionClass = exports.EuiAccordionClass = /*#__PURE__*/function (_Comp
131
131
  paddingSize: paddingSize,
132
132
  isLoading: isLoading,
133
133
  isLoadingMessage: isLoadingMessage,
134
- isOpen: this.isOpen
134
+ isOpen: this.isOpen,
135
+ initialIsOpen: initialIsOpen
135
136
  }, children));
136
137
  }
137
138
  }]);
@@ -16,7 +16,7 @@ var _resize_observer = require("../../observer/resize_observer");
16
16
  var _accordion_children_loading = require("./accordion_children_loading");
17
17
  var _accordion_children = require("./accordion_children.styles");
18
18
  var _react2 = require("@emotion/react");
19
- var _excluded = ["role", "children", "paddingSize", "isLoading", "isLoadingMessage", "isOpen"];
19
+ var _excluded = ["role", "children", "paddingSize", "isLoading", "isLoadingMessage", "isOpen", "initialIsOpen"];
20
20
  /*
21
21
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
22
22
  * or more contributor license agreements. Licensed under the Elastic License
@@ -33,6 +33,7 @@ var EuiAccordionChildren = exports.EuiAccordionChildren = function EuiAccordionC
33
33
  isLoading = _ref.isLoading,
34
34
  isLoadingMessage = _ref.isLoadingMessage,
35
35
  isOpen = _ref.isOpen,
36
+ initialIsOpen = _ref.initialIsOpen,
36
37
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
37
38
  /**
38
39
  * Children
@@ -47,17 +48,29 @@ var EuiAccordionChildren = exports.EuiAccordionChildren = function EuiAccordionC
47
48
  /**
48
49
  * Wrapper
49
50
  */
51
+ var _useState = (0, _react.useState)(false),
52
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
53
+ hasTransition = _useState2[0],
54
+ setHasTransition = _useState2[1];
50
55
  var wrapperStyles = (0, _accordion_children.euiAccordionChildWrapperStyles)(euiTheme);
51
- var wrapperCssStyles = [wrapperStyles.euiAccordion__childWrapper, isOpen ? wrapperStyles.isOpen : wrapperStyles.isClosed];
56
+ var wrapperCssStyles = [wrapperStyles.euiAccordion__childWrapper, isOpen ? wrapperStyles.isOpen : wrapperStyles.isClosed, initialIsOpen && !hasTransition && isOpen && wrapperStyles.noTransition];
57
+
58
+ /* Controls enabling opening/closing transitions on first interaction
59
+ when initialIsOpen=true; this only runs once */
60
+ (0, _react.useEffect)(function () {
61
+ if (initialIsOpen && !isOpen && !hasTransition) {
62
+ setHasTransition(true);
63
+ }
64
+ }, [isOpen, initialIsOpen, hasTransition]);
52
65
 
53
66
  /**
54
67
  * Update the accordion wrapper height whenever the accordion opens, and also
55
68
  * whenever the child content updates (which will change the height)
56
69
  */
57
- var _useState = (0, _react.useState)(0),
58
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
59
- contentHeight = _useState2[0],
60
- setContentHeight = _useState2[1];
70
+ var _useState3 = (0, _react.useState)(0),
71
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
72
+ contentHeight = _useState4[0],
73
+ setContentHeight = _useState4[1];
61
74
  var onResize = (0, _react.useCallback)(function (_ref2) {
62
75
  var height = _ref2.height;
63
76
  return setContentHeight(Math.round(height));
@@ -37,6 +37,11 @@ var euiAccordionChildWrapperStyles = exports.euiAccordionChildWrapperStyles = fu
37
37
  var euiTheme = euiThemeContext.euiTheme;
38
38
  return {
39
39
  euiAccordion__childWrapper: /*#__PURE__*/(0, _react.css)("overflow:hidden;", _global_styling.euiCanAnimate, "{transition:", _global_styling.logicals.height, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ",opacity ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";}", (0, _global_styling.euiFocusRing)(euiThemeContext), ";;label:euiAccordion__childWrapper;"),
40
+ // choosing to override transition instead of applying it conditionally
41
+ // to keep a more logical style appliance:
42
+ // default case = has transition as part of default styles (all cases expect initial isOpen=true when initialIsOpen=true)
43
+ // special case: no transition for initial isOpen=true when initialIsOpen=true
44
+ noTransition: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:none;};label:noTransition;"),
40
45
  isClosed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', 0), " opacity:0;;label:isClosed;"),
41
46
  isOpen: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', 'auto'), " opacity:1;;label:isOpen;")
42
47
  };
@@ -38,7 +38,7 @@ var _accessibility2 = require("../../services/accessibility");
38
38
  var _basic_table = require("./basic_table.styles");
39
39
  var _react2 = require("@emotion/react");
40
40
  var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout"],
41
- _excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions"];
41
+ _excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions", "nameTooltip"];
42
42
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
43
43
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
44
44
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -507,6 +507,7 @@ var EuiBasicTable = exports.EuiBasicTable = /*#__PURE__*/function (_Component) {
507
507
  field = _ref8.field,
508
508
  width = _ref8.width,
509
509
  name = _ref8.name,
510
+ nameTooltip = _ref8.nameTooltip,
510
511
  align = _ref8.align,
511
512
  dataType = _ref8.dataType,
512
513
  sortable = _ref8.sortable,
@@ -516,6 +517,7 @@ var EuiBasicTable = exports.EuiBasicTable = /*#__PURE__*/function (_Component) {
516
517
  var columnAlign = align || _this3.getAlignForDataType(dataType);
517
518
  var sharedProps = {
518
519
  width: width,
520
+ tooltipProps: nameTooltip,
519
521
  description: description,
520
522
  mobileOptions: mobileOptions,
521
523
  align: columnAlign,
@@ -891,6 +893,7 @@ var EuiBasicTable = exports.EuiBasicTable = /*#__PURE__*/function (_Component) {
891
893
  sortable = _ref11.sortable,
892
894
  footer = _ref11.footer,
893
895
  mobileOptions = _ref11.mobileOptions,
896
+ nameTooltip = _ref11.nameTooltip,
894
897
  rest = (0, _objectWithoutProperties2.default)(_ref11, _excluded2);
895
898
  var columnAlign = align || this.getAlignForDataType(dataType);
896
899
  var cellPropsCallback = this.props.cellProps;