@elastic/eui 12.3.1 → 12.4.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/CHANGELOG.md +16 -1
- package/dist/eui.js +1168 -210
- package/dist/eui.js.map +1 -1
- package/dist/eui.min.js +5 -5
- package/es/components/accordion/accordion.js +79 -56
- package/es/components/accordion/accordion.test.js +88 -0
- package/es/components/badge/badge.js +22 -1
- package/es/components/badge/beta_badge/beta_badge.js +22 -1
- package/es/components/combo_box/combo_box.js +2 -1
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +47 -5
- package/es/components/delay_hide/delay_hide.test.js +5 -1
- package/es/components/filter_group/filter_button.js +17 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +22 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +44 -2
- package/es/components/form/range/dual_range.js +1 -1
- package/es/components/form/range/range.js +1 -1
- package/es/components/form/range/range_highlight.js +1 -1
- package/es/components/form/range/range_label.js +27 -8
- package/es/components/form/range/range_levels.js +13 -8
- package/es/components/form/range/range_levels.test.js +55 -0
- package/es/components/form/range/range_slider.js +12 -8
- package/es/components/form/range/range_thumb.js +35 -3
- package/es/components/form/range/range_ticks.js +43 -22
- package/es/components/form/range/range_tooltip.js +20 -4
- package/es/components/form/range/range_track.js +33 -14
- package/es/components/form/range/range_track.test.js +100 -0
- package/es/components/form/range/range_wrapper.js +9 -2
- package/es/components/header/header_logo.js +22 -1
- package/es/components/icon/assets/cloudDrizzle.js +21 -0
- package/es/components/icon/assets/cloudStormy.js +21 -0
- package/es/components/icon/assets/cloudSunny.js +21 -0
- package/es/components/icon/assets/documentEdit.js +21 -0
- package/es/components/icon/assets/documents.js +21 -0
- package/es/components/icon/assets/popout.js +1 -1
- package/es/components/icon/assets/training.js +21 -0
- package/es/components/icon/assets/videoPlayer.js +21 -0
- package/es/components/icon/icon.js +29 -1
- package/es/components/index.js +1 -0
- package/es/components/inner_text/index.js +1 -0
- package/es/components/inner_text/inner_text.js +66 -0
- package/es/components/inner_text/inner_text.test.js +240 -0
- package/es/components/list_group/list_group_item.js +21 -2
- package/es/components/popover/popover.js +7 -3
- package/es/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/es/components/toast/global_toast_list.js +22 -1
- package/es/components/toast/toast.js +22 -1
- package/es/components/token/token.js +22 -1
- package/es/components/tool_tip/icon_tip.js +22 -1
- package/eui.d.ts +435 -187
- package/lib/components/accordion/accordion.js +79 -55
- package/lib/components/accordion/accordion.test.js +96 -0
- package/lib/components/badge/badge.js +22 -1
- package/lib/components/badge/beta_badge/beta_badge.js +22 -1
- package/lib/components/combo_box/combo_box.js +2 -1
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +47 -5
- package/lib/components/delay_hide/delay_hide.test.js +5 -1
- package/lib/components/filter_group/filter_button.js +18 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +22 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +44 -2
- package/lib/components/form/range/dual_range.js +1 -1
- package/lib/components/form/range/range.js +1 -1
- package/lib/components/form/range/range_label.js +26 -7
- package/lib/components/form/range/range_levels.js +12 -7
- package/lib/components/form/range/range_levels.test.js +63 -0
- package/lib/components/form/range/range_slider.js +13 -8
- package/lib/components/form/range/range_thumb.js +34 -2
- package/lib/components/form/range/range_ticks.js +43 -21
- package/lib/components/form/range/range_tooltip.js +19 -3
- package/lib/components/form/range/range_track.js +32 -13
- package/lib/components/form/range/range_track.test.js +108 -0
- package/lib/components/form/range/range_wrapper.js +9 -4
- package/lib/components/header/header_logo.js +22 -1
- package/lib/components/icon/assets/cloudDrizzle.js +31 -0
- package/lib/components/icon/assets/cloudDrizzle.svg +3 -0
- package/lib/components/icon/assets/cloudStormy.js +31 -0
- package/lib/components/icon/assets/cloudStormy.svg +3 -0
- package/lib/components/icon/assets/cloudSunny.js +31 -0
- package/lib/components/icon/assets/cloudSunny.svg +3 -0
- package/lib/components/icon/assets/documentEdit.js +31 -0
- package/lib/components/icon/assets/documentEdit.svg +3 -0
- package/lib/components/icon/assets/documents.js +31 -0
- package/lib/components/icon/assets/documents.svg +3 -0
- package/lib/components/icon/assets/popout.js +1 -1
- package/lib/components/icon/assets/popout.svg +1 -1
- package/lib/components/icon/assets/training.js +31 -0
- package/lib/components/icon/assets/training.svg +3 -0
- package/lib/components/icon/assets/videoPlayer.js +31 -0
- package/lib/components/icon/assets/videoPlayer.svg +3 -0
- package/lib/components/icon/icon.js +29 -1
- package/lib/components/index.js +14 -0
- package/lib/components/inner_text/index.js +19 -0
- package/lib/components/inner_text/inner_text.js +80 -0
- package/lib/components/inner_text/inner_text.test.js +250 -0
- package/lib/components/list_group/list_group_item.js +22 -3
- package/lib/components/popover/popover.js +7 -3
- package/lib/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/lib/components/toast/global_toast_list.js +22 -1
- package/lib/components/toast/toast.js +22 -1
- package/lib/components/token/token.js +22 -1
- package/lib/components/tool_tip/icon_tip.js +22 -1
- package/package.json +7 -4
- package/postcss.config.js +6 -0
|
@@ -60,6 +60,7 @@ describe('when EuiDelayHide is visible initially', function () {
|
|
|
60
60
|
hide: true
|
|
61
61
|
});
|
|
62
62
|
jest.advanceTimersByTime(1100);
|
|
63
|
+
wrapper.setProps({});
|
|
63
64
|
expect(wrapper.html()).toEqual(null);
|
|
64
65
|
});
|
|
65
66
|
test('it should be visible after 1100ms regardless of prop changes in-between', function () {
|
|
@@ -181,9 +182,10 @@ describe('when EuiDelayHide is hidden initially', function () {
|
|
|
181
182
|
jest.advanceTimersByTime(900);
|
|
182
183
|
expect(wrapper.html()).toEqual('<div>Hello World</div>');
|
|
183
184
|
jest.advanceTimersByTime(200);
|
|
185
|
+
wrapper.setProps({});
|
|
184
186
|
expect(wrapper.html()).toEqual(null);
|
|
185
187
|
|
|
186
|
-
case
|
|
188
|
+
case 8:
|
|
187
189
|
case "end":
|
|
188
190
|
return _context4.stop();
|
|
189
191
|
}
|
|
@@ -235,6 +237,7 @@ describe('when EuiDelayHide is visible initially and has a minimumDuration of 20
|
|
|
235
237
|
test('it should be hidden after 2100ms', function () {
|
|
236
238
|
var wrapper = getWrapper();
|
|
237
239
|
jest.advanceTimersByTime(2100);
|
|
240
|
+
wrapper.setProps({});
|
|
238
241
|
expect(wrapper.html()).toEqual(null);
|
|
239
242
|
});
|
|
240
243
|
});
|
|
@@ -263,6 +266,7 @@ describe('when EuiDelayHide has been visible and become hidden', function () {
|
|
|
263
266
|
});
|
|
264
267
|
expect(wrapper.html()).toEqual('<div>Hello World</div>');
|
|
265
268
|
jest.advanceTimersByTime(1100);
|
|
269
|
+
wrapper.setProps({});
|
|
266
270
|
expect(wrapper.html()).toEqual(null);
|
|
267
271
|
});
|
|
268
272
|
});
|
|
@@ -19,6 +19,8 @@ var _button_empty = require("../button/button_empty");
|
|
|
19
19
|
|
|
20
20
|
var _icon = require("../icon");
|
|
21
21
|
|
|
22
|
+
var _inner_text = require("../inner_text");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
24
26
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
|
@@ -29,6 +31,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
29
31
|
|
|
30
32
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
33
|
|
|
34
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
36
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
37
|
+
|
|
38
|
+
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
39
|
+
|
|
40
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
|
+
|
|
32
42
|
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; }
|
|
33
43
|
|
|
34
44
|
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; }
|
|
@@ -71,10 +81,16 @@ var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
71
81
|
dataText = children;
|
|
72
82
|
}
|
|
73
83
|
|
|
84
|
+
var _useInnerText = (0, _inner_text.useInnerText)(),
|
|
85
|
+
_useInnerText2 = _slicedToArray(_useInnerText, 2),
|
|
86
|
+
ref = _useInnerText2[0],
|
|
87
|
+
innerText = _useInnerText2[1];
|
|
88
|
+
|
|
74
89
|
var buttonContents = _react.default.createElement(_react.Fragment, null, _react.default.createElement("span", {
|
|
90
|
+
ref: ref,
|
|
75
91
|
className: "euiFilterButton__textShift",
|
|
76
|
-
"data-text": dataText,
|
|
77
|
-
title: dataText
|
|
92
|
+
"data-text": dataText || innerText,
|
|
93
|
+
title: dataText || innerText
|
|
78
94
|
}, children), numFiltersDefined && _react.default.createElement(_i18n.EuiI18n, {
|
|
79
95
|
token: "euiFilterButton.filterBadge",
|
|
80
96
|
values: {
|
|
@@ -60,7 +60,7 @@ EuiFormControlLayoutCustomIcon.propTypes = {
|
|
|
60
60
|
className: _propTypes.default.string,
|
|
61
61
|
"aria-label": _propTypes.default.string,
|
|
62
62
|
"data-test-subj": _propTypes.default.string,
|
|
63
|
-
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(["addDataApp", "advancedSettingsApp", "alert", "apmApp", "apmTrace", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "asterisk", "auditbeatApp", "beaker", "bell", "bolt", "boxesHorizontal", "boxesVertical", "branch", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "codeApp", "check", "checkInCircleFilled", "clock", "compute", "console", "consoleApp", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "crossInACircleFilled", "cut", "dashboardApp", "database", "dataVisualizer", "devToolsApp", "discoverApp", "document", "dot", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignLeft", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "exit", "expand", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "folderClosed", "folderOpen", "fullScreen", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "iInCircle", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexSettings", "infraApp", "inputOutput", "inspect", "invert", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "link", "list", "listAdd", "lock", "lockOpen", "loggingApp", "logoAerospike", "logoApache", "logoAPM", "logoAppSearch", "logoAWS", "logoAWSMono", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticsearch", "logoElasticStack", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menuLeft", "menuRight", "merge", "metricbeatApp", "minusInCircle", "minusInCircleFilled", "monitoringApp", "moon", "node", "notebookApp", "number", "offline", "online", "packetbeatApp", "pause", "pencil", "pin", "pinFilled", "pipelineApp", "play", "plusInCircle", "plusInCircleFilled", "popout", "questionInCircle", "refresh", "reportingApp", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "shard", "share", "snowflake", "sortable", "sortDown", "sortLeft", "sortRight", "sortUp", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "swatchInput", "symlink", "tableOfContents", "tag", "tear", "temperature", "timelionApp", "trash", "upgradeAssistantApp", "uptimeApp", "user", "usersRolesApp", "vector", "visArea", "visBarHorizontal", "visBarVertical", "visControls", "visGauge", "visGoal", "visHeatmap", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visualizeApp", "visVega", "visVisualBuilder", "watchesApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
63
|
+
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(["addDataApp", "advancedSettingsApp", "alert", "apmApp", "apmTrace", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "asterisk", "auditbeatApp", "beaker", "bell", "bolt", "boxesHorizontal", "boxesVertical", "branch", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "codeApp", "check", "checkInCircleFilled", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "compute", "console", "consoleApp", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "crossInACircleFilled", "cut", "dashboardApp", "database", "dataVisualizer", "devToolsApp", "discoverApp", "document", "documentEdit", "documents", "dot", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignLeft", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "exit", "expand", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "folderClosed", "folderOpen", "fullScreen", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "iInCircle", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexSettings", "infraApp", "inputOutput", "inspect", "invert", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "link", "list", "listAdd", "lock", "lockOpen", "loggingApp", "logoAerospike", "logoApache", "logoAPM", "logoAppSearch", "logoAWS", "logoAWSMono", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticsearch", "logoElasticStack", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menuLeft", "menuRight", "merge", "metricbeatApp", "minusInCircle", "minusInCircleFilled", "monitoringApp", "moon", "node", "notebookApp", "number", "offline", "online", "packetbeatApp", "pause", "pencil", "pin", "pinFilled", "pipelineApp", "play", "plusInCircle", "plusInCircleFilled", "popout", "questionInCircle", "refresh", "reportingApp", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "shard", "share", "snowflake", "sortable", "sortDown", "sortLeft", "sortRight", "sortUp", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "swatchInput", "symlink", "tableOfContents", "tag", "tear", "temperature", "timelionApp", "training", "trash", "upgradeAssistantApp", "uptimeApp", "user", "usersRolesApp", "vector", "videoPlayer", "visArea", "visBarHorizontal", "visBarVertical", "visControls", "visGauge", "visGoal", "visHeatmap", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visualizeApp", "visVega", "visVisualBuilder", "watchesApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
64
64
|
iconRef: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.func.isRequired])
|
|
65
65
|
};
|
|
66
66
|
EuiFormControlLayoutCustomIcon.__docgenInfo = {
|
|
@@ -178,6 +178,15 @@ EuiFormControlLayoutCustomIcon.__docgenInfo = {
|
|
|
178
178
|
}, {
|
|
179
179
|
"value": "\"clock\"",
|
|
180
180
|
"computed": false
|
|
181
|
+
}, {
|
|
182
|
+
"value": "\"cloudDrizzle\"",
|
|
183
|
+
"computed": false
|
|
184
|
+
}, {
|
|
185
|
+
"value": "\"cloudStormy\"",
|
|
186
|
+
"computed": false
|
|
187
|
+
}, {
|
|
188
|
+
"value": "\"cloudSunny\"",
|
|
189
|
+
"computed": false
|
|
181
190
|
}, {
|
|
182
191
|
"value": "\"compute\"",
|
|
183
192
|
"computed": false
|
|
@@ -244,6 +253,12 @@ EuiFormControlLayoutCustomIcon.__docgenInfo = {
|
|
|
244
253
|
}, {
|
|
245
254
|
"value": "\"document\"",
|
|
246
255
|
"computed": false
|
|
256
|
+
}, {
|
|
257
|
+
"value": "\"documentEdit\"",
|
|
258
|
+
"computed": false
|
|
259
|
+
}, {
|
|
260
|
+
"value": "\"documents\"",
|
|
261
|
+
"computed": false
|
|
247
262
|
}, {
|
|
248
263
|
"value": "\"dot\"",
|
|
249
264
|
"computed": false
|
|
@@ -895,6 +910,9 @@ EuiFormControlLayoutCustomIcon.__docgenInfo = {
|
|
|
895
910
|
}, {
|
|
896
911
|
"value": "\"timelionApp\"",
|
|
897
912
|
"computed": false
|
|
913
|
+
}, {
|
|
914
|
+
"value": "\"training\"",
|
|
915
|
+
"computed": false
|
|
898
916
|
}, {
|
|
899
917
|
"value": "\"trash\"",
|
|
900
918
|
"computed": false
|
|
@@ -913,6 +931,9 @@ EuiFormControlLayoutCustomIcon.__docgenInfo = {
|
|
|
913
931
|
}, {
|
|
914
932
|
"value": "\"vector\"",
|
|
915
933
|
"computed": false
|
|
934
|
+
}, {
|
|
935
|
+
"value": "\"videoPlayer\"",
|
|
936
|
+
"computed": false
|
|
916
937
|
}, {
|
|
917
938
|
"value": "\"visArea\"",
|
|
918
939
|
"computed": false
|
|
@@ -140,8 +140,8 @@ function (_Component) {
|
|
|
140
140
|
|
|
141
141
|
exports.EuiFormControlLayoutIcons = EuiFormControlLayoutIcons;
|
|
142
142
|
EuiFormControlLayoutIcons.propTypes = {
|
|
143
|
-
icon: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.oneOf(["addDataApp", "advancedSettingsApp", "alert", "apmApp", "apmTrace", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "asterisk", "auditbeatApp", "beaker", "bell", "bolt", "boxesHorizontal", "boxesVertical", "branch", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "codeApp", "check", "checkInCircleFilled", "clock", "compute", "console", "consoleApp", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "crossInACircleFilled", "cut", "dashboardApp", "database", "dataVisualizer", "devToolsApp", "discoverApp", "document", "dot", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignLeft", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "exit", "expand", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "folderClosed", "folderOpen", "fullScreen", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "iInCircle", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexSettings", "infraApp", "inputOutput", "inspect", "invert", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "link", "list", "listAdd", "lock", "lockOpen", "loggingApp", "logoAerospike", "logoApache", "logoAPM", "logoAppSearch", "logoAWS", "logoAWSMono", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticsearch", "logoElasticStack", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menuLeft", "menuRight", "merge", "metricbeatApp", "minusInCircle", "minusInCircleFilled", "monitoringApp", "moon", "node", "notebookApp", "number", "offline", "online", "packetbeatApp", "pause", "pencil", "pin", "pinFilled", "pipelineApp", "play", "plusInCircle", "plusInCircleFilled", "popout", "questionInCircle", "refresh", "reportingApp", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "shard", "share", "snowflake", "sortable", "sortDown", "sortLeft", "sortRight", "sortUp", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "swatchInput", "symlink", "tableOfContents", "tag", "tear", "temperature", "timelionApp", "trash", "upgradeAssistantApp", "uptimeApp", "user", "usersRolesApp", "vector", "visArea", "visBarHorizontal", "visBarVertical", "visControls", "visGauge", "visGoal", "visHeatmap", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visualizeApp", "visVega", "visVisualBuilder", "watchesApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.element.isRequired]).isRequired, _propTypes.default.shape({
|
|
144
|
-
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(["addDataApp", "advancedSettingsApp", "alert", "apmApp", "apmTrace", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "asterisk", "auditbeatApp", "beaker", "bell", "bolt", "boxesHorizontal", "boxesVertical", "branch", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "codeApp", "check", "checkInCircleFilled", "clock", "compute", "console", "consoleApp", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "crossInACircleFilled", "cut", "dashboardApp", "database", "dataVisualizer", "devToolsApp", "discoverApp", "document", "dot", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignLeft", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "exit", "expand", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "folderClosed", "folderOpen", "fullScreen", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "iInCircle", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexSettings", "infraApp", "inputOutput", "inspect", "invert", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "link", "list", "listAdd", "lock", "lockOpen", "loggingApp", "logoAerospike", "logoApache", "logoAPM", "logoAppSearch", "logoAWS", "logoAWSMono", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticsearch", "logoElasticStack", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menuLeft", "menuRight", "merge", "metricbeatApp", "minusInCircle", "minusInCircleFilled", "monitoringApp", "moon", "node", "notebookApp", "number", "offline", "online", "packetbeatApp", "pause", "pencil", "pin", "pinFilled", "pipelineApp", "play", "plusInCircle", "plusInCircleFilled", "popout", "questionInCircle", "refresh", "reportingApp", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "shard", "share", "snowflake", "sortable", "sortDown", "sortLeft", "sortRight", "sortUp", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "swatchInput", "symlink", "tableOfContents", "tag", "tear", "temperature", "timelionApp", "trash", "upgradeAssistantApp", "uptimeApp", "user", "usersRolesApp", "vector", "visArea", "visBarHorizontal", "visBarVertical", "visControls", "visGauge", "visGoal", "visHeatmap", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visualizeApp", "visVega", "visVisualBuilder", "watchesApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
143
|
+
icon: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.oneOf(["addDataApp", "advancedSettingsApp", "alert", "apmApp", "apmTrace", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "asterisk", "auditbeatApp", "beaker", "bell", "bolt", "boxesHorizontal", "boxesVertical", "branch", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "codeApp", "check", "checkInCircleFilled", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "compute", "console", "consoleApp", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "crossInACircleFilled", "cut", "dashboardApp", "database", "dataVisualizer", "devToolsApp", "discoverApp", "document", "documentEdit", "documents", "dot", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignLeft", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "exit", "expand", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "folderClosed", "folderOpen", "fullScreen", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "iInCircle", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexSettings", "infraApp", "inputOutput", "inspect", "invert", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "link", "list", "listAdd", "lock", "lockOpen", "loggingApp", "logoAerospike", "logoApache", "logoAPM", "logoAppSearch", "logoAWS", "logoAWSMono", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticsearch", "logoElasticStack", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menuLeft", "menuRight", "merge", "metricbeatApp", "minusInCircle", "minusInCircleFilled", "monitoringApp", "moon", "node", "notebookApp", "number", "offline", "online", "packetbeatApp", "pause", "pencil", "pin", "pinFilled", "pipelineApp", "play", "plusInCircle", "plusInCircleFilled", "popout", "questionInCircle", "refresh", "reportingApp", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "shard", "share", "snowflake", "sortable", "sortDown", "sortLeft", "sortRight", "sortUp", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "swatchInput", "symlink", "tableOfContents", "tag", "tear", "temperature", "timelionApp", "training", "trash", "upgradeAssistantApp", "uptimeApp", "user", "usersRolesApp", "vector", "videoPlayer", "visArea", "visBarHorizontal", "visBarVertical", "visControls", "visGauge", "visGoal", "visHeatmap", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visualizeApp", "visVega", "visVisualBuilder", "watchesApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.element.isRequired]).isRequired, _propTypes.default.shape({
|
|
144
|
+
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(["addDataApp", "advancedSettingsApp", "alert", "apmApp", "apmTrace", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "asterisk", "auditbeatApp", "beaker", "bell", "bolt", "boxesHorizontal", "boxesVertical", "branch", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "codeApp", "check", "checkInCircleFilled", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "compute", "console", "consoleApp", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "crossInACircleFilled", "cut", "dashboardApp", "database", "dataVisualizer", "devToolsApp", "discoverApp", "document", "documentEdit", "documents", "dot", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignLeft", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "exit", "expand", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "folderClosed", "folderOpen", "fullScreen", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "iInCircle", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexSettings", "infraApp", "inputOutput", "inspect", "invert", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "link", "list", "listAdd", "lock", "lockOpen", "loggingApp", "logoAerospike", "logoApache", "logoAPM", "logoAppSearch", "logoAWS", "logoAWSMono", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticsearch", "logoElasticStack", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menuLeft", "menuRight", "merge", "metricbeatApp", "minusInCircle", "minusInCircleFilled", "monitoringApp", "moon", "node", "notebookApp", "number", "offline", "online", "packetbeatApp", "pause", "pencil", "pin", "pinFilled", "pipelineApp", "play", "plusInCircle", "plusInCircleFilled", "popout", "questionInCircle", "refresh", "reportingApp", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "shard", "share", "snowflake", "sortable", "sortDown", "sortLeft", "sortRight", "sortUp", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "swatchInput", "symlink", "tableOfContents", "tag", "tear", "temperature", "timelionApp", "training", "trash", "upgradeAssistantApp", "uptimeApp", "user", "usersRolesApp", "vector", "videoPlayer", "visArea", "visBarHorizontal", "visBarVertical", "visControls", "visGauge", "visGoal", "visHeatmap", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visualizeApp", "visVega", "visVisualBuilder", "watchesApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
145
145
|
side: _propTypes.default.any,
|
|
146
146
|
ref: _propTypes.default.any
|
|
147
147
|
}).isRequired]),
|
|
@@ -266,6 +266,15 @@ EuiFormControlLayoutIcons.__docgenInfo = {
|
|
|
266
266
|
}, {
|
|
267
267
|
"value": "\"clock\"",
|
|
268
268
|
"computed": false
|
|
269
|
+
}, {
|
|
270
|
+
"value": "\"cloudDrizzle\"",
|
|
271
|
+
"computed": false
|
|
272
|
+
}, {
|
|
273
|
+
"value": "\"cloudStormy\"",
|
|
274
|
+
"computed": false
|
|
275
|
+
}, {
|
|
276
|
+
"value": "\"cloudSunny\"",
|
|
277
|
+
"computed": false
|
|
269
278
|
}, {
|
|
270
279
|
"value": "\"compute\"",
|
|
271
280
|
"computed": false
|
|
@@ -332,6 +341,12 @@ EuiFormControlLayoutIcons.__docgenInfo = {
|
|
|
332
341
|
}, {
|
|
333
342
|
"value": "\"document\"",
|
|
334
343
|
"computed": false
|
|
344
|
+
}, {
|
|
345
|
+
"value": "\"documentEdit\"",
|
|
346
|
+
"computed": false
|
|
347
|
+
}, {
|
|
348
|
+
"value": "\"documents\"",
|
|
349
|
+
"computed": false
|
|
335
350
|
}, {
|
|
336
351
|
"value": "\"dot\"",
|
|
337
352
|
"computed": false
|
|
@@ -983,6 +998,9 @@ EuiFormControlLayoutIcons.__docgenInfo = {
|
|
|
983
998
|
}, {
|
|
984
999
|
"value": "\"timelionApp\"",
|
|
985
1000
|
"computed": false
|
|
1001
|
+
}, {
|
|
1002
|
+
"value": "\"training\"",
|
|
1003
|
+
"computed": false
|
|
986
1004
|
}, {
|
|
987
1005
|
"value": "\"trash\"",
|
|
988
1006
|
"computed": false
|
|
@@ -1001,6 +1019,9 @@ EuiFormControlLayoutIcons.__docgenInfo = {
|
|
|
1001
1019
|
}, {
|
|
1002
1020
|
"value": "\"vector\"",
|
|
1003
1021
|
"computed": false
|
|
1022
|
+
}, {
|
|
1023
|
+
"value": "\"videoPlayer\"",
|
|
1024
|
+
"computed": false
|
|
1004
1025
|
}, {
|
|
1005
1026
|
"value": "\"visArea\"",
|
|
1006
1027
|
"computed": false
|
|
@@ -1251,6 +1272,15 @@ EuiFormControlLayoutIcons.__docgenInfo = {
|
|
|
1251
1272
|
}, {
|
|
1252
1273
|
"value": "\"clock\"",
|
|
1253
1274
|
"computed": false
|
|
1275
|
+
}, {
|
|
1276
|
+
"value": "\"cloudDrizzle\"",
|
|
1277
|
+
"computed": false
|
|
1278
|
+
}, {
|
|
1279
|
+
"value": "\"cloudStormy\"",
|
|
1280
|
+
"computed": false
|
|
1281
|
+
}, {
|
|
1282
|
+
"value": "\"cloudSunny\"",
|
|
1283
|
+
"computed": false
|
|
1254
1284
|
}, {
|
|
1255
1285
|
"value": "\"compute\"",
|
|
1256
1286
|
"computed": false
|
|
@@ -1317,6 +1347,12 @@ EuiFormControlLayoutIcons.__docgenInfo = {
|
|
|
1317
1347
|
}, {
|
|
1318
1348
|
"value": "\"document\"",
|
|
1319
1349
|
"computed": false
|
|
1350
|
+
}, {
|
|
1351
|
+
"value": "\"documentEdit\"",
|
|
1352
|
+
"computed": false
|
|
1353
|
+
}, {
|
|
1354
|
+
"value": "\"documents\"",
|
|
1355
|
+
"computed": false
|
|
1320
1356
|
}, {
|
|
1321
1357
|
"value": "\"dot\"",
|
|
1322
1358
|
"computed": false
|
|
@@ -1968,6 +2004,9 @@ EuiFormControlLayoutIcons.__docgenInfo = {
|
|
|
1968
2004
|
}, {
|
|
1969
2005
|
"value": "\"timelionApp\"",
|
|
1970
2006
|
"computed": false
|
|
2007
|
+
}, {
|
|
2008
|
+
"value": "\"training\"",
|
|
2009
|
+
"computed": false
|
|
1971
2010
|
}, {
|
|
1972
2011
|
"value": "\"trash\"",
|
|
1973
2012
|
"computed": false
|
|
@@ -1986,6 +2025,9 @@ EuiFormControlLayoutIcons.__docgenInfo = {
|
|
|
1986
2025
|
}, {
|
|
1987
2026
|
"value": "\"vector\"",
|
|
1988
2027
|
"computed": false
|
|
2028
|
+
}, {
|
|
2029
|
+
"value": "\"videoPlayer\"",
|
|
2030
|
+
"computed": false
|
|
1989
2031
|
}, {
|
|
1990
2032
|
"value": "\"visArea\"",
|
|
1991
2033
|
"computed": false
|
|
@@ -353,7 +353,7 @@ function (_Component) {
|
|
|
353
353
|
showTicks: showTicks,
|
|
354
354
|
hasFocus: this.state.hasFocus,
|
|
355
355
|
"aria-hidden": true,
|
|
356
|
-
tabIndex:
|
|
356
|
+
tabIndex: -1,
|
|
357
357
|
showRange: showRange
|
|
358
358
|
}, rest)), this.state.rangeSliderRefAvailable && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_range_thumb.EuiRangeThumb, {
|
|
359
359
|
min: min,
|
|
@@ -144,7 +144,7 @@ function (_Component) {
|
|
|
144
144
|
style: style,
|
|
145
145
|
showTicks: showTicks,
|
|
146
146
|
showRange: showRange,
|
|
147
|
-
tabIndex: showInput ?
|
|
147
|
+
tabIndex: showInput ? -1 : tabIndex || null
|
|
148
148
|
}, rest)), showValue && !!String(value).length && _react.default.createElement(_range_tooltip.EuiRangeTooltip, {
|
|
149
149
|
value: value,
|
|
150
150
|
max: max,
|
|
@@ -16,7 +16,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
16
16
|
var EuiRangeLabel = function EuiRangeLabel(_ref) {
|
|
17
17
|
var children = _ref.children,
|
|
18
18
|
disabled = _ref.disabled,
|
|
19
|
-
side = _ref.side
|
|
19
|
+
_ref$side = _ref.side,
|
|
20
|
+
side = _ref$side === void 0 ? 'max' : _ref$side;
|
|
20
21
|
var classes = (0, _classnames.default)('euiRangeLabel', "euiRangeLabel--".concat(side), {
|
|
21
22
|
'euiRangeLabel--isDisabled': disabled
|
|
22
23
|
});
|
|
@@ -27,10 +28,9 @@ var EuiRangeLabel = function EuiRangeLabel(_ref) {
|
|
|
27
28
|
|
|
28
29
|
exports.EuiRangeLabel = EuiRangeLabel;
|
|
29
30
|
EuiRangeLabel.propTypes = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
side: 'max'
|
|
31
|
+
children: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.number.isRequired]).isRequired,
|
|
32
|
+
disabled: _propTypes.default.bool,
|
|
33
|
+
side: _propTypes.default.oneOf(["min", "max"])
|
|
34
34
|
};
|
|
35
35
|
EuiRangeLabel.__docgenInfo = {
|
|
36
36
|
"description": "",
|
|
@@ -45,15 +45,34 @@ EuiRangeLabel.__docgenInfo = {
|
|
|
45
45
|
"type": {
|
|
46
46
|
"name": "enum",
|
|
47
47
|
"value": [{
|
|
48
|
-
"value": "
|
|
48
|
+
"value": "\"min\"",
|
|
49
49
|
"computed": false
|
|
50
50
|
}, {
|
|
51
|
-
"value": "
|
|
51
|
+
"value": "\"max\"",
|
|
52
52
|
"computed": false
|
|
53
53
|
}]
|
|
54
54
|
},
|
|
55
55
|
"required": false,
|
|
56
56
|
"description": ""
|
|
57
|
+
},
|
|
58
|
+
"children": {
|
|
59
|
+
"type": {
|
|
60
|
+
"name": "union",
|
|
61
|
+
"value": [{
|
|
62
|
+
"name": "string"
|
|
63
|
+
}, {
|
|
64
|
+
"name": "number"
|
|
65
|
+
}]
|
|
66
|
+
},
|
|
67
|
+
"required": true,
|
|
68
|
+
"description": ""
|
|
69
|
+
},
|
|
70
|
+
"disabled": {
|
|
71
|
+
"type": {
|
|
72
|
+
"name": "bool"
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"description": ""
|
|
57
76
|
}
|
|
58
77
|
}
|
|
59
78
|
};
|
|
@@ -17,7 +17,8 @@ var LEVEL_COLORS = ['primary', 'success', 'warning', 'danger'];
|
|
|
17
17
|
exports.LEVEL_COLORS = LEVEL_COLORS;
|
|
18
18
|
|
|
19
19
|
var EuiRangeLevels = function EuiRangeLevels(_ref) {
|
|
20
|
-
var levels = _ref.levels,
|
|
20
|
+
var _ref$levels = _ref.levels,
|
|
21
|
+
levels = _ref$levels === void 0 ? [] : _ref$levels,
|
|
21
22
|
max = _ref.max,
|
|
22
23
|
min = _ref.min,
|
|
23
24
|
showTicks = _ref.showTicks;
|
|
@@ -56,8 +57,8 @@ EuiRangeLevels.propTypes = {
|
|
|
56
57
|
levels: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
57
58
|
min: _propTypes.default.number.isRequired,
|
|
58
59
|
max: _propTypes.default.number.isRequired,
|
|
59
|
-
color: _propTypes.default.oneOf(
|
|
60
|
-
})),
|
|
60
|
+
color: _propTypes.default.oneOf(["primary", "success", "warning", "danger"]).isRequired
|
|
61
|
+
}).isRequired),
|
|
61
62
|
max: _propTypes.default.number.isRequired,
|
|
62
63
|
min: _propTypes.default.number.isRequired,
|
|
63
64
|
showTicks: _propTypes.default.bool
|
|
@@ -68,6 +69,10 @@ EuiRangeLevels.__docgenInfo = {
|
|
|
68
69
|
"displayName": "EuiRangeLevels",
|
|
69
70
|
"props": {
|
|
70
71
|
"levels": {
|
|
72
|
+
"defaultValue": {
|
|
73
|
+
"value": "[]",
|
|
74
|
+
"computed": false
|
|
75
|
+
},
|
|
71
76
|
"type": {
|
|
72
77
|
"name": "arrayOf",
|
|
73
78
|
"value": {
|
|
@@ -84,16 +89,16 @@ EuiRangeLevels.__docgenInfo = {
|
|
|
84
89
|
"color": {
|
|
85
90
|
"name": "enum",
|
|
86
91
|
"value": [{
|
|
87
|
-
"value": "
|
|
92
|
+
"value": "\"primary\"",
|
|
88
93
|
"computed": false
|
|
89
94
|
}, {
|
|
90
|
-
"value": "
|
|
95
|
+
"value": "\"success\"",
|
|
91
96
|
"computed": false
|
|
92
97
|
}, {
|
|
93
|
-
"value": "
|
|
98
|
+
"value": "\"warning\"",
|
|
94
99
|
"computed": false
|
|
95
100
|
}, {
|
|
96
|
-
"value": "
|
|
101
|
+
"value": "\"danger\"",
|
|
97
102
|
"computed": false
|
|
98
103
|
}],
|
|
99
104
|
"required": true
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _react = _interopRequireDefault(require("react"));
|
|
4
|
+
|
|
5
|
+
var _enzyme = require("enzyme");
|
|
6
|
+
|
|
7
|
+
var _required_props = require("../../../test/required_props");
|
|
8
|
+
|
|
9
|
+
var _range_levels = require("./range_levels");
|
|
10
|
+
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
|
|
13
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
14
|
+
|
|
15
|
+
describe('EuiRangeLevels', function () {
|
|
16
|
+
test('is rendered', function () {
|
|
17
|
+
var component = (0, _enzyme.render)(_react.default.createElement(_range_levels.EuiRangeLevels, _extends({
|
|
18
|
+
min: 0,
|
|
19
|
+
max: 100,
|
|
20
|
+
showTicks: true,
|
|
21
|
+
levels: [{
|
|
22
|
+
min: 0,
|
|
23
|
+
max: 20,
|
|
24
|
+
color: 'danger'
|
|
25
|
+
}, {
|
|
26
|
+
min: 20,
|
|
27
|
+
max: 100,
|
|
28
|
+
color: 'success'
|
|
29
|
+
}]
|
|
30
|
+
}, _required_props.requiredProps)));
|
|
31
|
+
expect(component).toMatchSnapshot();
|
|
32
|
+
});
|
|
33
|
+
test('should throw error if `level.min` is lower than `min`', function () {
|
|
34
|
+
var component = function component() {
|
|
35
|
+
return (0, _enzyme.render)(_react.default.createElement(_range_levels.EuiRangeLevels, {
|
|
36
|
+
min: 0,
|
|
37
|
+
max: 100,
|
|
38
|
+
levels: [{
|
|
39
|
+
min: -10,
|
|
40
|
+
max: 20,
|
|
41
|
+
color: 'danger'
|
|
42
|
+
}]
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
expect(component).toThrowErrorMatchingSnapshot();
|
|
47
|
+
});
|
|
48
|
+
test('should throw error if `level.max` is higher than `max`', function () {
|
|
49
|
+
var component = function component() {
|
|
50
|
+
return (0, _enzyme.render)(_react.default.createElement(_range_levels.EuiRangeLevels, {
|
|
51
|
+
min: 0,
|
|
52
|
+
max: 100,
|
|
53
|
+
levels: [{
|
|
54
|
+
min: 20,
|
|
55
|
+
max: 200,
|
|
56
|
+
color: 'danger'
|
|
57
|
+
}]
|
|
58
|
+
}));
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
expect(component).toThrowErrorMatchingSnapshot();
|
|
62
|
+
});
|
|
63
|
+
});
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EuiRangeSlider = void 0;
|
|
7
7
|
|
|
8
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -13,13 +13,15 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
|
17
|
+
|
|
16
18
|
function _extends() { _extends = Object.assign || 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); }
|
|
17
19
|
|
|
18
20
|
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; }
|
|
19
21
|
|
|
20
22
|
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; }
|
|
21
23
|
|
|
22
|
-
var EuiRangeSlider = _react.
|
|
24
|
+
var EuiRangeSlider = (0, _react.forwardRef)(function (_ref, ref) {
|
|
23
25
|
var className = _ref.className,
|
|
24
26
|
disabled = _ref.disabled,
|
|
25
27
|
id = _ref.id,
|
|
@@ -57,17 +59,20 @@ var EuiRangeSlider = _react.default.forwardRef(function (_ref, ref) {
|
|
|
57
59
|
tabIndex: tabIndex
|
|
58
60
|
}, rest));
|
|
59
61
|
});
|
|
60
|
-
|
|
61
62
|
exports.EuiRangeSlider = EuiRangeSlider;
|
|
62
63
|
EuiRangeSlider.propTypes = {
|
|
64
|
+
className: _propTypes.default.string,
|
|
65
|
+
"aria-label": _propTypes.default.string,
|
|
66
|
+
"data-test-subj": _propTypes.default.string,
|
|
63
67
|
id: _propTypes.default.string,
|
|
68
|
+
name: _propTypes.default.string,
|
|
64
69
|
min: _propTypes.default.number.isRequired,
|
|
65
70
|
max: _propTypes.default.number.isRequired,
|
|
66
|
-
name: _propTypes.default.string,
|
|
67
71
|
step: _propTypes.default.number,
|
|
68
|
-
onChange: _propTypes.default.func,
|
|
69
|
-
tabIndex: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
70
|
-
value: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]))]),
|
|
71
72
|
hasFocus: _propTypes.default.bool,
|
|
72
|
-
showRange: _propTypes.default.bool
|
|
73
|
+
showRange: _propTypes.default.bool,
|
|
74
|
+
showTicks: _propTypes.default.bool,
|
|
75
|
+
disabled: _propTypes.default.bool,
|
|
76
|
+
tabIndex: _propTypes.default.number,
|
|
77
|
+
onChange: _propTypes.default.any
|
|
73
78
|
};
|