@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.
- package/es/components/accordion/accordion.js +2 -1
- package/es/components/accordion/accordion_children/accordion_children.js +20 -7
- package/es/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/es/components/basic_table/basic_table.js +135 -2
- package/es/components/basic_table/in_memory_table.js +131 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/call_out/call_out.styles.js +1 -0
- package/es/components/code/code.styles.js +1 -1
- package/es/components/code/code_syntax.styles.js +1 -0
- package/es/components/code/utils.js +5 -2
- package/es/components/datagrid/data_grid.stories.utils.js +0 -1090
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/es/components/inline_edit/inline_edit_form.js +4 -4
- package/es/components/inline_edit/inline_edit_text.js +4 -4
- package/es/components/inline_edit/inline_edit_title.js +4 -4
- package/es/components/table/table_header_cell.js +76 -4
- package/eui.d.ts +4639 -4607
- package/i18ntokens.json +36 -36
- package/lib/components/accordion/accordion.js +2 -1
- package/lib/components/accordion/accordion_children/accordion_children.js +19 -6
- package/lib/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/lib/components/basic_table/basic_table.js +135 -2
- package/lib/components/basic_table/in_memory_table.js +131 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/call_out/call_out.styles.js +1 -0
- package/lib/components/code/code.styles.js +1 -1
- package/lib/components/code/code_syntax.styles.js +1 -0
- package/lib/components/code/utils.js +6 -1
- package/lib/components/datagrid/data_grid.stories.utils.js +1 -1092
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/lib/components/inline_edit/inline_edit_form.js +4 -4
- package/lib/components/inline_edit/inline_edit_text.js +4 -4
- package/lib/components/inline_edit/inline_edit_title.js +4 -4
- package/lib/components/table/table_header_cell.js +79 -8
- package/optimize/es/components/accordion/accordion.js +2 -1
- package/optimize/es/components/accordion/accordion_children/accordion_children.js +20 -7
- package/optimize/es/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/optimize/es/components/basic_table/basic_table.js +4 -1
- package/optimize/es/components/call_out/call_out.js +1 -1
- package/optimize/es/components/call_out/call_out.styles.js +1 -0
- package/optimize/es/components/code/code.styles.js +1 -1
- package/optimize/es/components/code/code_syntax.styles.js +1 -0
- package/optimize/es/components/code/utils.js +5 -2
- package/optimize/es/components/datagrid/data_grid.stories.utils.js +0 -18
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/optimize/es/components/table/table_header_cell.js +14 -3
- package/optimize/lib/components/accordion/accordion.js +2 -1
- package/optimize/lib/components/accordion/accordion_children/accordion_children.js +19 -6
- package/optimize/lib/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/optimize/lib/components/basic_table/basic_table.js +4 -1
- package/optimize/lib/components/call_out/call_out.js +1 -1
- package/optimize/lib/components/call_out/call_out.styles.js +1 -0
- package/optimize/lib/components/code/code.styles.js +1 -1
- package/optimize/lib/components/code/code_syntax.styles.js +1 -0
- package/optimize/lib/components/code/utils.js +6 -1
- package/optimize/lib/components/datagrid/data_grid.stories.utils.js +1 -19
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/optimize/lib/components/table/table_header_cell.js +14 -3
- package/package.json +2 -1
- package/test-env/components/accordion/accordion.js +2 -1
- package/test-env/components/accordion/accordion_children/accordion_children.js +19 -6
- package/test-env/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/test-env/components/basic_table/basic_table.js +135 -2
- package/test-env/components/basic_table/in_memory_table.js +131 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/call_out/call_out.styles.js +1 -0
- package/test-env/components/code/code.styles.js +1 -1
- package/test-env/components/code/code_syntax.styles.js +1 -0
- package/test-env/components/code/utils.js +6 -1
- package/test-env/components/datagrid/data_grid.stories.utils.js +1 -1091
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/test-env/components/inline_edit/inline_edit_form.js +4 -4
- package/test-env/components/inline_edit/inline_edit_text.js +4 -4
- package/test-env/components/inline_edit/inline_edit_title.js +4 -4
- package/test-env/components/table/table_header_cell.js +76 -4
|
@@ -156,6 +156,9 @@ export var EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
|
|
|
156
156
|
value: textInputValue,
|
|
157
157
|
onChange: handleTextChange,
|
|
158
158
|
onPaste: function onPaste(event) {
|
|
159
|
+
// preventing default here ensures no additional onChange is
|
|
160
|
+
// triggered which otherwise results in input duplication
|
|
161
|
+
event.preventDefault();
|
|
159
162
|
setTextInputValue(event.clipboardData.getData('text'));
|
|
160
163
|
setIsReadyToParse(true);
|
|
161
164
|
},
|
|
@@ -363,6 +363,10 @@ EuiInlineEditForm.propTypes = {
|
|
|
363
363
|
* Initial inline edit text value
|
|
364
364
|
*/
|
|
365
365
|
defaultValue: PropTypes.string,
|
|
366
|
+
/**
|
|
367
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
368
|
+
*/
|
|
369
|
+
onCancel: PropTypes.oneOfType([PropTypes.func, PropTypes.func.isRequired]),
|
|
366
370
|
/**
|
|
367
371
|
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
368
372
|
*/
|
|
@@ -371,10 +375,6 @@ EuiInlineEditForm.propTypes = {
|
|
|
371
375
|
* Callback required to receive and update `value` based on user input
|
|
372
376
|
*/
|
|
373
377
|
onChange: PropTypes.func,
|
|
374
|
-
/**
|
|
375
|
-
* Callback required to reset `value` to the previous read mode text value.
|
|
376
|
-
*/
|
|
377
|
-
onCancel: PropTypes.func,
|
|
378
378
|
/**
|
|
379
379
|
* Form sizes
|
|
380
380
|
*/
|
|
@@ -111,6 +111,10 @@ EuiInlineEditText.propTypes = {
|
|
|
111
111
|
* Initial inline edit text value
|
|
112
112
|
*/
|
|
113
113
|
defaultValue: PropTypes.string,
|
|
114
|
+
/**
|
|
115
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
116
|
+
*/
|
|
117
|
+
onCancel: PropTypes.oneOfType([PropTypes.func, PropTypes.func.isRequired]),
|
|
114
118
|
/**
|
|
115
119
|
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
116
120
|
*/
|
|
@@ -119,10 +123,6 @@ EuiInlineEditText.propTypes = {
|
|
|
119
123
|
* Callback required to receive and update `value` based on user input
|
|
120
124
|
*/
|
|
121
125
|
onChange: PropTypes.func,
|
|
122
|
-
/**
|
|
123
|
-
* Callback required to reset `value` to the previous read mode text value.
|
|
124
|
-
*/
|
|
125
|
-
onCancel: PropTypes.func,
|
|
126
126
|
/**
|
|
127
127
|
* Text size level
|
|
128
128
|
*/
|
|
@@ -120,6 +120,10 @@ EuiInlineEditTitle.propTypes = {
|
|
|
120
120
|
* Initial inline edit text value
|
|
121
121
|
*/
|
|
122
122
|
defaultValue: PropTypes.string,
|
|
123
|
+
/**
|
|
124
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
125
|
+
*/
|
|
126
|
+
onCancel: PropTypes.oneOfType([PropTypes.func, PropTypes.func.isRequired]),
|
|
123
127
|
/**
|
|
124
128
|
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
125
129
|
*/
|
|
@@ -128,10 +132,6 @@ EuiInlineEditTitle.propTypes = {
|
|
|
128
132
|
* Callback required to receive and update `value` based on user input
|
|
129
133
|
*/
|
|
130
134
|
onChange: PropTypes.func,
|
|
131
|
-
/**
|
|
132
|
-
* Callback required to reset `value` to the previous read mode text value.
|
|
133
|
-
*/
|
|
134
|
-
onCancel: PropTypes.func,
|
|
135
135
|
/**
|
|
136
136
|
* Title size level
|
|
137
137
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "description", "append"];
|
|
2
|
-
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); }
|
|
1
|
+
var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "tooltipProps", "description", "append"];
|
|
3
2
|
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; }
|
|
4
3
|
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; }
|
|
4
|
+
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); }
|
|
5
|
+
import PropTypes from "prop-types";
|
|
5
6
|
/*
|
|
6
7
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
8
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -11,13 +12,13 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
11
12
|
*/
|
|
12
13
|
|
|
13
14
|
import React from 'react';
|
|
14
|
-
import PropTypes from "prop-types";
|
|
15
15
|
import classNames from 'classnames';
|
|
16
16
|
import { useEuiMemoizedStyles, LEFT_ALIGNMENT } from '../../services';
|
|
17
17
|
import { EuiI18n } from '../i18n';
|
|
18
18
|
import { EuiScreenReaderOnly } from '../accessibility';
|
|
19
19
|
import { EuiIcon } from '../icon';
|
|
20
20
|
import { EuiInnerText } from '../inner_text';
|
|
21
|
+
import { EuiIconTip } from '../tool_tip';
|
|
21
22
|
import { resolveWidthAsStyle } from './utils';
|
|
22
23
|
import { useEuiTableIsResponsive } from './mobile/responsive_context';
|
|
23
24
|
import { EuiTableCellContent } from './_table_cell_content';
|
|
@@ -26,6 +27,7 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
|
26
27
|
var CellContents = function CellContents(_ref) {
|
|
27
28
|
var className = _ref.className,
|
|
28
29
|
align = _ref.align,
|
|
30
|
+
tooltipProps = _ref.tooltipProps,
|
|
29
31
|
description = _ref.description,
|
|
30
32
|
children = _ref.children,
|
|
31
33
|
canSort = _ref.canSort,
|
|
@@ -51,7 +53,14 @@ var CellContents = function CellContents(_ref) {
|
|
|
51
53
|
className: "eui-textTruncate"
|
|
52
54
|
}, children);
|
|
53
55
|
});
|
|
54
|
-
}), description && ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("span", null, description)),
|
|
56
|
+
}), description && ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("span", null, description)), tooltipProps && ___EmotionJSX(EuiIconTip, _extends({
|
|
57
|
+
content: tooltipProps.content,
|
|
58
|
+
type: tooltipProps.icon || 'questionInCircle',
|
|
59
|
+
size: "m",
|
|
60
|
+
color: "subdued",
|
|
61
|
+
position: "top",
|
|
62
|
+
iconProps: tooltipProps.iconProps
|
|
63
|
+
}, tooltipProps.tooltipProps)), isSorted ? ___EmotionJSX(EuiIcon, {
|
|
55
64
|
className: "euiTableSortIcon",
|
|
56
65
|
type: isSortAscending ? 'sortUp' : 'sortDown',
|
|
57
66
|
size: "m"
|
|
@@ -75,6 +84,7 @@ export var EuiTableHeaderCell = function EuiTableHeaderCell(_ref2) {
|
|
|
75
84
|
width = _ref2.width,
|
|
76
85
|
style = _ref2.style,
|
|
77
86
|
readOnly = _ref2.readOnly,
|
|
87
|
+
tooltipProps = _ref2.tooltipProps,
|
|
78
88
|
description = _ref2.description,
|
|
79
89
|
append = _ref2.append,
|
|
80
90
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
@@ -98,6 +108,7 @@ export var EuiTableHeaderCell = function EuiTableHeaderCell(_ref2) {
|
|
|
98
108
|
var cellContentsProps = {
|
|
99
109
|
css: styles.euiTableHeaderCell__content,
|
|
100
110
|
align: align,
|
|
111
|
+
tooltipProps: tooltipProps,
|
|
101
112
|
description: description,
|
|
102
113
|
canSort: canSort,
|
|
103
114
|
isSorted: isSorted,
|
|
@@ -133,6 +144,67 @@ EuiTableHeaderCell.propTypes = {
|
|
|
133
144
|
onSort: PropTypes.func,
|
|
134
145
|
scope: PropTypes.any,
|
|
135
146
|
width: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired]),
|
|
147
|
+
/** Allows adding an icon with a tooltip displayed next to the name */tooltipProps: PropTypes.shape({
|
|
148
|
+
/** The main content of the tooltip */content: PropTypes.node.isRequired,
|
|
149
|
+
/**
|
|
150
|
+
* The icon type to display
|
|
151
|
+
* @default 'questionInCircle'
|
|
152
|
+
*/
|
|
153
|
+
icon: PropTypes.oneOfType([PropTypes.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.string.isRequired, PropTypes.elementType.isRequired]),
|
|
154
|
+
/** Additional props for EuiIcon */iconProps: PropTypes.any,
|
|
155
|
+
/** Additional props for the EuiToolip */tooltipProps: PropTypes.shape({
|
|
156
|
+
/**
|
|
157
|
+
* Passes onto the span wrapping the trigger.
|
|
158
|
+
*/
|
|
159
|
+
anchorClassName: PropTypes.string,
|
|
160
|
+
/**
|
|
161
|
+
* Passes onto the span wrapping the trigger.
|
|
162
|
+
*/
|
|
163
|
+
anchorProps: PropTypes.shape({
|
|
164
|
+
className: PropTypes.string,
|
|
165
|
+
"aria-label": PropTypes.string,
|
|
166
|
+
"data-test-subj": PropTypes.string,
|
|
167
|
+
css: PropTypes.any
|
|
168
|
+
}),
|
|
169
|
+
/**
|
|
170
|
+
* Passes onto the tooltip itself, not the trigger.
|
|
171
|
+
*/
|
|
172
|
+
className: PropTypes.string,
|
|
173
|
+
/**
|
|
174
|
+
* The main content of your tooltip.
|
|
175
|
+
*/
|
|
176
|
+
content: PropTypes.node,
|
|
177
|
+
/**
|
|
178
|
+
* Common display alternatives for the anchor wrapper
|
|
179
|
+
*/
|
|
180
|
+
display: PropTypes.any,
|
|
181
|
+
/**
|
|
182
|
+
* An optional title for your tooltip.
|
|
183
|
+
*/
|
|
184
|
+
title: PropTypes.node,
|
|
185
|
+
/**
|
|
186
|
+
* Unless you provide one, this will be randomly generated.
|
|
187
|
+
*/
|
|
188
|
+
id: PropTypes.string,
|
|
189
|
+
/**
|
|
190
|
+
* When `true`, the tooltip's position is re-calculated when the user
|
|
191
|
+
* scrolls. This supports having fixed-position tooltip anchors.
|
|
192
|
+
*
|
|
193
|
+
* When nesting an `EuiTooltip` in a scrollable container, `repositionOnScroll` should be `true`
|
|
194
|
+
*/
|
|
195
|
+
repositionOnScroll: PropTypes.bool,
|
|
196
|
+
/**
|
|
197
|
+
* If supplied, called when mouse movement causes the tool tip to be
|
|
198
|
+
* hidden.
|
|
199
|
+
*/
|
|
200
|
+
onMouseOut: PropTypes.func,
|
|
201
|
+
"aria-label": PropTypes.string,
|
|
202
|
+
"data-test-subj": PropTypes.string,
|
|
203
|
+
css: PropTypes.any,
|
|
204
|
+
delay: PropTypes.any,
|
|
205
|
+
position: PropTypes.any
|
|
206
|
+
})
|
|
207
|
+
}),
|
|
136
208
|
description: PropTypes.string,
|
|
137
209
|
/**
|
|
138
210
|
* Shows the sort indicator but removes the button
|