@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.
Files changed (102) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/eui.js +1168 -210
  3. package/dist/eui.js.map +1 -1
  4. package/dist/eui.min.js +5 -5
  5. package/es/components/accordion/accordion.js +79 -56
  6. package/es/components/accordion/accordion.test.js +88 -0
  7. package/es/components/badge/badge.js +22 -1
  8. package/es/components/badge/beta_badge/beta_badge.js +22 -1
  9. package/es/components/combo_box/combo_box.js +2 -1
  10. package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +47 -5
  11. package/es/components/delay_hide/delay_hide.test.js +5 -1
  12. package/es/components/filter_group/filter_button.js +17 -2
  13. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +22 -1
  14. package/es/components/form/form_control_layout/form_control_layout_icons.js +44 -2
  15. package/es/components/form/range/dual_range.js +1 -1
  16. package/es/components/form/range/range.js +1 -1
  17. package/es/components/form/range/range_highlight.js +1 -1
  18. package/es/components/form/range/range_label.js +27 -8
  19. package/es/components/form/range/range_levels.js +13 -8
  20. package/es/components/form/range/range_levels.test.js +55 -0
  21. package/es/components/form/range/range_slider.js +12 -8
  22. package/es/components/form/range/range_thumb.js +35 -3
  23. package/es/components/form/range/range_ticks.js +43 -22
  24. package/es/components/form/range/range_tooltip.js +20 -4
  25. package/es/components/form/range/range_track.js +33 -14
  26. package/es/components/form/range/range_track.test.js +100 -0
  27. package/es/components/form/range/range_wrapper.js +9 -2
  28. package/es/components/header/header_logo.js +22 -1
  29. package/es/components/icon/assets/cloudDrizzle.js +21 -0
  30. package/es/components/icon/assets/cloudStormy.js +21 -0
  31. package/es/components/icon/assets/cloudSunny.js +21 -0
  32. package/es/components/icon/assets/documentEdit.js +21 -0
  33. package/es/components/icon/assets/documents.js +21 -0
  34. package/es/components/icon/assets/popout.js +1 -1
  35. package/es/components/icon/assets/training.js +21 -0
  36. package/es/components/icon/assets/videoPlayer.js +21 -0
  37. package/es/components/icon/icon.js +29 -1
  38. package/es/components/index.js +1 -0
  39. package/es/components/inner_text/index.js +1 -0
  40. package/es/components/inner_text/inner_text.js +66 -0
  41. package/es/components/inner_text/inner_text.test.js +240 -0
  42. package/es/components/list_group/list_group_item.js +21 -2
  43. package/es/components/popover/popover.js +7 -3
  44. package/es/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
  45. package/es/components/toast/global_toast_list.js +22 -1
  46. package/es/components/toast/toast.js +22 -1
  47. package/es/components/token/token.js +22 -1
  48. package/es/components/tool_tip/icon_tip.js +22 -1
  49. package/eui.d.ts +435 -187
  50. package/lib/components/accordion/accordion.js +79 -55
  51. package/lib/components/accordion/accordion.test.js +96 -0
  52. package/lib/components/badge/badge.js +22 -1
  53. package/lib/components/badge/beta_badge/beta_badge.js +22 -1
  54. package/lib/components/combo_box/combo_box.js +2 -1
  55. package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +47 -5
  56. package/lib/components/delay_hide/delay_hide.test.js +5 -1
  57. package/lib/components/filter_group/filter_button.js +18 -2
  58. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +22 -1
  59. package/lib/components/form/form_control_layout/form_control_layout_icons.js +44 -2
  60. package/lib/components/form/range/dual_range.js +1 -1
  61. package/lib/components/form/range/range.js +1 -1
  62. package/lib/components/form/range/range_label.js +26 -7
  63. package/lib/components/form/range/range_levels.js +12 -7
  64. package/lib/components/form/range/range_levels.test.js +63 -0
  65. package/lib/components/form/range/range_slider.js +13 -8
  66. package/lib/components/form/range/range_thumb.js +34 -2
  67. package/lib/components/form/range/range_ticks.js +43 -21
  68. package/lib/components/form/range/range_tooltip.js +19 -3
  69. package/lib/components/form/range/range_track.js +32 -13
  70. package/lib/components/form/range/range_track.test.js +108 -0
  71. package/lib/components/form/range/range_wrapper.js +9 -4
  72. package/lib/components/header/header_logo.js +22 -1
  73. package/lib/components/icon/assets/cloudDrizzle.js +31 -0
  74. package/lib/components/icon/assets/cloudDrizzle.svg +3 -0
  75. package/lib/components/icon/assets/cloudStormy.js +31 -0
  76. package/lib/components/icon/assets/cloudStormy.svg +3 -0
  77. package/lib/components/icon/assets/cloudSunny.js +31 -0
  78. package/lib/components/icon/assets/cloudSunny.svg +3 -0
  79. package/lib/components/icon/assets/documentEdit.js +31 -0
  80. package/lib/components/icon/assets/documentEdit.svg +3 -0
  81. package/lib/components/icon/assets/documents.js +31 -0
  82. package/lib/components/icon/assets/documents.svg +3 -0
  83. package/lib/components/icon/assets/popout.js +1 -1
  84. package/lib/components/icon/assets/popout.svg +1 -1
  85. package/lib/components/icon/assets/training.js +31 -0
  86. package/lib/components/icon/assets/training.svg +3 -0
  87. package/lib/components/icon/assets/videoPlayer.js +31 -0
  88. package/lib/components/icon/assets/videoPlayer.svg +3 -0
  89. package/lib/components/icon/icon.js +29 -1
  90. package/lib/components/index.js +14 -0
  91. package/lib/components/inner_text/index.js +19 -0
  92. package/lib/components/inner_text/inner_text.js +80 -0
  93. package/lib/components/inner_text/inner_text.test.js +250 -0
  94. package/lib/components/list_group/list_group_item.js +22 -3
  95. package/lib/components/popover/popover.js +7 -3
  96. package/lib/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
  97. package/lib/components/toast/global_toast_list.js +22 -1
  98. package/lib/components/toast/toast.js +22 -1
  99. package/lib/components/token/token.js +22 -1
  100. package/lib/components/tool_tip/icon_tip.js +22 -1
  101. package/package.json +7 -4
  102. package/postcss.config.js +6 -0
@@ -53,6 +53,7 @@ describe('when EuiDelayHide is visible initially', function () {
53
53
  hide: true
54
54
  });
55
55
  jest.advanceTimersByTime(1100);
56
+ wrapper.setProps({});
56
57
  expect(wrapper.html()).toEqual(null);
57
58
  });
58
59
  test('it should be visible after 1100ms regardless of prop changes in-between', function () {
@@ -174,9 +175,10 @@ describe('when EuiDelayHide is hidden initially', function () {
174
175
  jest.advanceTimersByTime(900);
175
176
  expect(wrapper.html()).toEqual('<div>Hello World</div>');
176
177
  jest.advanceTimersByTime(200);
178
+ wrapper.setProps({});
177
179
  expect(wrapper.html()).toEqual(null);
178
180
 
179
- case 7:
181
+ case 8:
180
182
  case "end":
181
183
  return _context4.stop();
182
184
  }
@@ -228,6 +230,7 @@ describe('when EuiDelayHide is visible initially and has a minimumDuration of 20
228
230
  test('it should be hidden after 2100ms', function () {
229
231
  var wrapper = getWrapper();
230
232
  jest.advanceTimersByTime(2100);
233
+ wrapper.setProps({});
231
234
  expect(wrapper.html()).toEqual(null);
232
235
  });
233
236
  });
@@ -256,6 +259,7 @@ describe('when EuiDelayHide has been visible and become hidden', function () {
256
259
  });
257
260
  expect(wrapper.html()).toEqual('<div>Hello World</div>');
258
261
  jest.advanceTimersByTime(1100);
262
+ wrapper.setProps({});
259
263
  expect(wrapper.html()).toEqual(null);
260
264
  });
261
265
  });
@@ -4,6 +4,14 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
 
5
5
  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; }
6
6
 
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
8
+
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
10
+
11
+ 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; }
12
+
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+
7
15
  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; }
8
16
 
9
17
  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; }
@@ -15,6 +23,7 @@ import { EuiI18n } from '../i18n';
15
23
  import { EuiNotificationBadge } from '../badge/notification_badge';
16
24
  import { COLORS, ICON_SIDES, EuiButtonEmpty } from '../button/button_empty';
17
25
  import { IconPropType } from '../icon';
26
+ import { useInnerText } from '../inner_text';
18
27
  export var EuiFilterButton = function EuiFilterButton(_ref) {
19
28
  var children = _ref.children,
20
29
  className = _ref.className,
@@ -53,10 +62,16 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
53
62
  dataText = children;
54
63
  }
55
64
 
65
+ var _useInnerText = useInnerText(),
66
+ _useInnerText2 = _slicedToArray(_useInnerText, 2),
67
+ ref = _useInnerText2[0],
68
+ innerText = _useInnerText2[1];
69
+
56
70
  var buttonContents = React.createElement(Fragment, null, React.createElement("span", {
71
+ ref: ref,
57
72
  className: "euiFilterButton__textShift",
58
- "data-text": dataText,
59
- title: dataText
73
+ "data-text": dataText || innerText,
74
+ title: dataText || innerText
60
75
  }, children), numFiltersDefined && React.createElement(EuiI18n, {
61
76
  token: "euiFilterButton.filterBadge",
62
77
  values: {
@@ -45,7 +45,7 @@ EuiFormControlLayoutCustomIcon.propTypes = {
45
45
  className: PropTypes.string,
46
46
  "aria-label": PropTypes.string,
47
47
  "data-test-subj": PropTypes.string,
48
- type: PropTypes.oneOfType([PropTypes.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.string.isRequired, PropTypes.element.isRequired]).isRequired,
48
+ type: PropTypes.oneOfType([PropTypes.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.string.isRequired, PropTypes.element.isRequired]).isRequired,
49
49
  iconRef: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.func.isRequired])
50
50
  };
51
51
  EuiFormControlLayoutCustomIcon.__docgenInfo = {
@@ -163,6 +163,15 @@ EuiFormControlLayoutCustomIcon.__docgenInfo = {
163
163
  }, {
164
164
  "value": "\"clock\"",
165
165
  "computed": false
166
+ }, {
167
+ "value": "\"cloudDrizzle\"",
168
+ "computed": false
169
+ }, {
170
+ "value": "\"cloudStormy\"",
171
+ "computed": false
172
+ }, {
173
+ "value": "\"cloudSunny\"",
174
+ "computed": false
166
175
  }, {
167
176
  "value": "\"compute\"",
168
177
  "computed": false
@@ -229,6 +238,12 @@ EuiFormControlLayoutCustomIcon.__docgenInfo = {
229
238
  }, {
230
239
  "value": "\"document\"",
231
240
  "computed": false
241
+ }, {
242
+ "value": "\"documentEdit\"",
243
+ "computed": false
244
+ }, {
245
+ "value": "\"documents\"",
246
+ "computed": false
232
247
  }, {
233
248
  "value": "\"dot\"",
234
249
  "computed": false
@@ -880,6 +895,9 @@ EuiFormControlLayoutCustomIcon.__docgenInfo = {
880
895
  }, {
881
896
  "value": "\"timelionApp\"",
882
897
  "computed": false
898
+ }, {
899
+ "value": "\"training\"",
900
+ "computed": false
883
901
  }, {
884
902
  "value": "\"trash\"",
885
903
  "computed": false
@@ -898,6 +916,9 @@ EuiFormControlLayoutCustomIcon.__docgenInfo = {
898
916
  }, {
899
917
  "value": "\"vector\"",
900
918
  "computed": false
919
+ }, {
920
+ "value": "\"videoPlayer\"",
921
+ "computed": false
901
922
  }, {
902
923
  "value": "\"visArea\"",
903
924
  "computed": false
@@ -121,8 +121,8 @@ function (_Component) {
121
121
  return EuiFormControlLayoutIcons;
122
122
  }(Component);
123
123
  EuiFormControlLayoutIcons.propTypes = {
124
- icon: PropTypes.oneOfType([PropTypes.oneOfType([PropTypes.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.string.isRequired, PropTypes.element.isRequired]).isRequired, PropTypes.shape({
125
- type: PropTypes.oneOfType([PropTypes.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.string.isRequired, PropTypes.element.isRequired]).isRequired,
124
+ icon: PropTypes.oneOfType([PropTypes.oneOfType([PropTypes.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.string.isRequired, PropTypes.element.isRequired]).isRequired, PropTypes.shape({
125
+ type: PropTypes.oneOfType([PropTypes.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.string.isRequired, PropTypes.element.isRequired]).isRequired,
126
126
  side: PropTypes.any,
127
127
  ref: PropTypes.any
128
128
  }).isRequired]),
@@ -247,6 +247,15 @@ EuiFormControlLayoutIcons.__docgenInfo = {
247
247
  }, {
248
248
  "value": "\"clock\"",
249
249
  "computed": false
250
+ }, {
251
+ "value": "\"cloudDrizzle\"",
252
+ "computed": false
253
+ }, {
254
+ "value": "\"cloudStormy\"",
255
+ "computed": false
256
+ }, {
257
+ "value": "\"cloudSunny\"",
258
+ "computed": false
250
259
  }, {
251
260
  "value": "\"compute\"",
252
261
  "computed": false
@@ -313,6 +322,12 @@ EuiFormControlLayoutIcons.__docgenInfo = {
313
322
  }, {
314
323
  "value": "\"document\"",
315
324
  "computed": false
325
+ }, {
326
+ "value": "\"documentEdit\"",
327
+ "computed": false
328
+ }, {
329
+ "value": "\"documents\"",
330
+ "computed": false
316
331
  }, {
317
332
  "value": "\"dot\"",
318
333
  "computed": false
@@ -964,6 +979,9 @@ EuiFormControlLayoutIcons.__docgenInfo = {
964
979
  }, {
965
980
  "value": "\"timelionApp\"",
966
981
  "computed": false
982
+ }, {
983
+ "value": "\"training\"",
984
+ "computed": false
967
985
  }, {
968
986
  "value": "\"trash\"",
969
987
  "computed": false
@@ -982,6 +1000,9 @@ EuiFormControlLayoutIcons.__docgenInfo = {
982
1000
  }, {
983
1001
  "value": "\"vector\"",
984
1002
  "computed": false
1003
+ }, {
1004
+ "value": "\"videoPlayer\"",
1005
+ "computed": false
985
1006
  }, {
986
1007
  "value": "\"visArea\"",
987
1008
  "computed": false
@@ -1232,6 +1253,15 @@ EuiFormControlLayoutIcons.__docgenInfo = {
1232
1253
  }, {
1233
1254
  "value": "\"clock\"",
1234
1255
  "computed": false
1256
+ }, {
1257
+ "value": "\"cloudDrizzle\"",
1258
+ "computed": false
1259
+ }, {
1260
+ "value": "\"cloudStormy\"",
1261
+ "computed": false
1262
+ }, {
1263
+ "value": "\"cloudSunny\"",
1264
+ "computed": false
1235
1265
  }, {
1236
1266
  "value": "\"compute\"",
1237
1267
  "computed": false
@@ -1298,6 +1328,12 @@ EuiFormControlLayoutIcons.__docgenInfo = {
1298
1328
  }, {
1299
1329
  "value": "\"document\"",
1300
1330
  "computed": false
1331
+ }, {
1332
+ "value": "\"documentEdit\"",
1333
+ "computed": false
1334
+ }, {
1335
+ "value": "\"documents\"",
1336
+ "computed": false
1301
1337
  }, {
1302
1338
  "value": "\"dot\"",
1303
1339
  "computed": false
@@ -1949,6 +1985,9 @@ EuiFormControlLayoutIcons.__docgenInfo = {
1949
1985
  }, {
1950
1986
  "value": "\"timelionApp\"",
1951
1987
  "computed": false
1988
+ }, {
1989
+ "value": "\"training\"",
1990
+ "computed": false
1952
1991
  }, {
1953
1992
  "value": "\"trash\"",
1954
1993
  "computed": false
@@ -1967,6 +2006,9 @@ EuiFormControlLayoutIcons.__docgenInfo = {
1967
2006
  }, {
1968
2007
  "value": "\"vector\"",
1969
2008
  "computed": false
2009
+ }, {
2010
+ "value": "\"videoPlayer\"",
2011
+ "computed": false
1970
2012
  }, {
1971
2013
  "value": "\"visArea\"",
1972
2014
  "computed": false
@@ -330,7 +330,7 @@ function (_Component) {
330
330
  showTicks: showTicks,
331
331
  hasFocus: this.state.hasFocus,
332
332
  "aria-hidden": true,
333
- tabIndex: '-1',
333
+ tabIndex: -1,
334
334
  showRange: showRange
335
335
  }, rest)), this.state.rangeSliderRefAvailable && React.createElement(React.Fragment, null, React.createElement(EuiRangeThumb, {
336
336
  min: min,
@@ -122,7 +122,7 @@ function (_Component) {
122
122
  style: style,
123
123
  showTicks: showTicks,
124
124
  showRange: showRange,
125
- tabIndex: showInput ? '-1' : tabIndex || null
125
+ tabIndex: showInput ? -1 : tabIndex || null
126
126
  }, rest)), showValue && !!String(value).length && React.createElement(EuiRangeTooltip, {
127
127
  value: value,
128
128
  max: max,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import PropTypes from "prop-types";
3
3
  import classNames from 'classnames';
4
4
  export var EuiRangeHighlight = function EuiRangeHighlight(_ref) {
5
5
  var hasFocus = _ref.hasFocus,
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import PropTypes from "prop-types";
3
3
  import classNames from 'classnames';
4
4
  export var EuiRangeLabel = function EuiRangeLabel(_ref) {
5
5
  var children = _ref.children,
6
6
  disabled = _ref.disabled,
7
- side = _ref.side;
7
+ _ref$side = _ref.side,
8
+ side = _ref$side === void 0 ? 'max' : _ref$side;
8
9
  var classes = classNames('euiRangeLabel', "euiRangeLabel--".concat(side), {
9
10
  'euiRangeLabel--isDisabled': disabled
10
11
  });
@@ -13,10 +14,9 @@ export var EuiRangeLabel = function EuiRangeLabel(_ref) {
13
14
  }, children);
14
15
  };
15
16
  EuiRangeLabel.propTypes = {
16
- side: PropTypes.oneOf(['min', 'max'])
17
- };
18
- EuiRangeLabel.defaultProps = {
19
- side: 'max'
17
+ children: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired]).isRequired,
18
+ disabled: PropTypes.bool,
19
+ side: PropTypes.oneOf(["min", "max"])
20
20
  };
21
21
  EuiRangeLabel.__docgenInfo = {
22
22
  "description": "",
@@ -31,15 +31,34 @@ EuiRangeLabel.__docgenInfo = {
31
31
  "type": {
32
32
  "name": "enum",
33
33
  "value": [{
34
- "value": "'min'",
34
+ "value": "\"min\"",
35
35
  "computed": false
36
36
  }, {
37
- "value": "'max'",
37
+ "value": "\"max\"",
38
38
  "computed": false
39
39
  }]
40
40
  },
41
41
  "required": false,
42
42
  "description": ""
43
+ },
44
+ "children": {
45
+ "type": {
46
+ "name": "union",
47
+ "value": [{
48
+ "name": "string"
49
+ }, {
50
+ "name": "number"
51
+ }]
52
+ },
53
+ "required": true,
54
+ "description": ""
55
+ },
56
+ "disabled": {
57
+ "type": {
58
+ "name": "bool"
59
+ },
60
+ "required": false,
61
+ "description": ""
43
62
  }
44
63
  }
45
64
  };
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
2
+ import PropTypes from "prop-types";
3
3
  import classNames from 'classnames';
4
4
  export var LEVEL_COLORS = ['primary', 'success', 'warning', 'danger'];
5
5
  export var EuiRangeLevels = function EuiRangeLevels(_ref) {
6
- var levels = _ref.levels,
6
+ var _ref$levels = _ref.levels,
7
+ levels = _ref$levels === void 0 ? [] : _ref$levels,
7
8
  max = _ref.max,
8
9
  min = _ref.min,
9
10
  showTicks = _ref.showTicks;
@@ -40,8 +41,8 @@ EuiRangeLevels.propTypes = {
40
41
  levels: PropTypes.arrayOf(PropTypes.shape({
41
42
  min: PropTypes.number.isRequired,
42
43
  max: PropTypes.number.isRequired,
43
- color: PropTypes.oneOf(LEVEL_COLORS).isRequired
44
- })),
44
+ color: PropTypes.oneOf(["primary", "success", "warning", "danger"]).isRequired
45
+ }).isRequired),
45
46
  max: PropTypes.number.isRequired,
46
47
  min: PropTypes.number.isRequired,
47
48
  showTicks: PropTypes.bool
@@ -52,6 +53,10 @@ EuiRangeLevels.__docgenInfo = {
52
53
  "displayName": "EuiRangeLevels",
53
54
  "props": {
54
55
  "levels": {
56
+ "defaultValue": {
57
+ "value": "[]",
58
+ "computed": false
59
+ },
55
60
  "type": {
56
61
  "name": "arrayOf",
57
62
  "value": {
@@ -68,16 +73,16 @@ EuiRangeLevels.__docgenInfo = {
68
73
  "color": {
69
74
  "name": "enum",
70
75
  "value": [{
71
- "value": "'primary'",
76
+ "value": "\"primary\"",
72
77
  "computed": false
73
78
  }, {
74
- "value": "'success'",
79
+ "value": "\"success\"",
75
80
  "computed": false
76
81
  }, {
77
- "value": "'warning'",
82
+ "value": "\"warning\"",
78
83
  "computed": false
79
84
  }, {
80
- "value": "'danger'",
85
+ "value": "\"danger\"",
81
86
  "computed": false
82
87
  }],
83
88
  "required": true
@@ -0,0 +1,55 @@
1
+ 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); }
2
+
3
+ import React from 'react';
4
+ import { render } from 'enzyme';
5
+ import { requiredProps } from '../../../test/required_props';
6
+ import { EuiRangeLevels } from './range_levels';
7
+ describe('EuiRangeLevels', function () {
8
+ test('is rendered', function () {
9
+ var component = render(React.createElement(EuiRangeLevels, _extends({
10
+ min: 0,
11
+ max: 100,
12
+ showTicks: true,
13
+ levels: [{
14
+ min: 0,
15
+ max: 20,
16
+ color: 'danger'
17
+ }, {
18
+ min: 20,
19
+ max: 100,
20
+ color: 'success'
21
+ }]
22
+ }, requiredProps)));
23
+ expect(component).toMatchSnapshot();
24
+ });
25
+ test('should throw error if `level.min` is lower than `min`', function () {
26
+ var component = function component() {
27
+ return render(React.createElement(EuiRangeLevels, {
28
+ min: 0,
29
+ max: 100,
30
+ levels: [{
31
+ min: -10,
32
+ max: 20,
33
+ color: 'danger'
34
+ }]
35
+ }));
36
+ };
37
+
38
+ expect(component).toThrowErrorMatchingSnapshot();
39
+ });
40
+ test('should throw error if `level.max` is higher than `max`', function () {
41
+ var component = function component() {
42
+ return render(React.createElement(EuiRangeLevels, {
43
+ min: 0,
44
+ max: 100,
45
+ levels: [{
46
+ min: 20,
47
+ max: 200,
48
+ color: 'danger'
49
+ }]
50
+ }));
51
+ };
52
+
53
+ expect(component).toThrowErrorMatchingSnapshot();
54
+ });
55
+ });
@@ -4,10 +4,10 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
4
4
 
5
5
  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; }
6
6
 
7
- import React from 'react';
8
- import PropTypes from 'prop-types';
7
+ import React, { forwardRef } from 'react';
8
+ import PropTypes from "prop-types";
9
9
  import classNames from 'classnames';
10
- export var EuiRangeSlider = React.forwardRef(function (_ref, ref) {
10
+ export var EuiRangeSlider = forwardRef(function (_ref, ref) {
11
11
  var className = _ref.className,
12
12
  disabled = _ref.disabled,
13
13
  id = _ref.id,
@@ -46,14 +46,18 @@ export var EuiRangeSlider = React.forwardRef(function (_ref, ref) {
46
46
  }, rest));
47
47
  });
48
48
  EuiRangeSlider.propTypes = {
49
+ className: PropTypes.string,
50
+ "aria-label": PropTypes.string,
51
+ "data-test-subj": PropTypes.string,
49
52
  id: PropTypes.string,
53
+ name: PropTypes.string,
50
54
  min: PropTypes.number.isRequired,
51
55
  max: PropTypes.number.isRequired,
52
- name: PropTypes.string,
53
56
  step: PropTypes.number,
54
- onChange: PropTypes.func,
55
- tabIndex: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
56
- value: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]))]),
57
57
  hasFocus: PropTypes.bool,
58
- showRange: PropTypes.bool
58
+ showRange: PropTypes.bool,
59
+ showTicks: PropTypes.bool,
60
+ disabled: PropTypes.bool,
61
+ tabIndex: PropTypes.number,
62
+ onChange: PropTypes.any
59
63
  };