@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
package/eui.d.ts CHANGED
@@ -12,7 +12,9 @@ declare module '@elastic/eui/src/components/common' {
12
12
  * Wraps Object.keys with proper typescript definition of the resulting array
13
13
  */
14
14
  export function keysOf<T, K extends keyof T>(obj: T): K[];
15
- export type PropsOf<C> = C extends SFC<infer SFCProps> ? SFCProps : C extends FunctionComponent<infer FunctionProps> ? FunctionProps : C extends Component<infer ComponentProps> ? ComponentProps : never;
15
+ export type PropsOf<C> = C extends SFC<infer SFCProps> ? SFCProps : C extends FunctionComponent<infer FunctionProps> ? FunctionProps : C extends Component<infer ComponentProps> ? ComponentProps : never; type UnionKeys<T> = T extends any ? keyof T : never;
16
+ export type DistributivePick<T, K extends UnionKeys<T>> = T extends any ? Pick<T, Extract<keyof T, K>> : never;
17
+ export type DistributiveOmit<T, K extends UnionKeys<T>> = T extends any ? Omit<T, Extract<keyof T, K>> : never;
16
18
  /**
17
19
  * Returns member keys in U not present in T set to never
18
20
  * T = { 'one', 'two', 'three' }
@@ -26,29 +28,7 @@ declare module '@elastic/eui/src/components/common' {
26
28
  * Allow either T or U, preventing any additional keys of the other type from being present
27
29
  */
28
30
  export type ExclusiveUnion<T, U> = (T | U) extends object ? (DisambiguateSet<T, U> & U) | (DisambiguateSet<U, T> & T) : T | U;
29
-
30
- }
31
- declare module '@elastic/eui' {
32
- import { HTMLAttributes, Component, ReactNode } from 'react';
33
-
34
- import { CommonProps } from '@elastic/eui/src/components/common'; module '@elastic/eui' {
35
- export type EuiAccordionSize = 'none' | 'xs' | 's' | 'm' | 'l' | 'xl';
36
-
37
- export interface EuiAccordionProps {
38
- id: string;
39
- buttonContentClassName?: string;
40
- buttonContent?: ReactNode;
41
- extraAction?: ReactNode;
42
- initialIsOpen?: boolean;
43
- onToggle?: (isOpen: boolean) => void;
44
- paddingSize?: EuiAccordionSize;
45
- }
46
-
47
- // eslint-disable-next-line react/prefer-stateless-function
48
- export class EuiAccordion extends Component<
49
- CommonProps & HTMLAttributes<HTMLDivElement> & EuiAccordionProps
50
- > {}
51
- }
31
+ export {};
52
32
 
53
33
  }
54
34
  declare module '@elastic/eui/src/components/icon/icon' {
@@ -83,6 +63,9 @@ declare module '@elastic/eui/src/components/icon/icon' {
83
63
  check: string;
84
64
  checkInCircleFilled: string;
85
65
  clock: string;
66
+ cloudDrizzle: string;
67
+ cloudStormy: string;
68
+ cloudSunny: string;
86
69
  compute: string;
87
70
  console: string;
88
71
  consoleApp: string;
@@ -105,6 +88,8 @@ declare module '@elastic/eui/src/components/icon/icon' {
105
88
  devToolsApp: string;
106
89
  discoverApp: string;
107
90
  document: string;
91
+ documentEdit: string;
92
+ documents: string;
108
93
  dot: string;
109
94
  editorAlignCenter: string;
110
95
  editorAlignLeft: string;
@@ -322,12 +307,14 @@ declare module '@elastic/eui/src/components/icon/icon' {
322
307
  tear: string;
323
308
  temperature: string;
324
309
  timelionApp: string;
310
+ training: string;
325
311
  trash: string;
326
312
  upgradeAssistantApp: string;
327
313
  uptimeApp: string;
328
314
  user: string;
329
315
  usersRolesApp: string;
330
316
  vector: string;
317
+ videoPlayer: string;
331
318
  visArea: string;
332
319
  visBarHorizontal: string;
333
320
  visBarVertical: string;
@@ -380,7 +367,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
380
367
  tokenModule: string;
381
368
  tokenNamespace: string;
382
369
  };
383
- export const TYPES: ("string" | "number" | "search" | "link" | "alert" | "apps" | "asterisk" | "beaker" | "bell" | "bolt" | "branch" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "clock" | "compute" | "console" | "copy" | "cross" | "crosshairs" | "crossInACircleFilled" | "cut" | "database" | "document" | "dot" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignLeft" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "exit" | "expand" | "eye" | "faceNeutral" | "filter" | "flag" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuLeft" | "menuRight" | "merge" | "moon" | "node" | "offline" | "online" | "pause" | "pencil" | "pin" | "play" | "popout" | "refresh" | "save" | "scale" | "shard" | "share" | "snowflake" | "sortable" | "sortLeft" | "sortRight" | "starPlusEmpty" | "starPlusFilled" | "stats" | "stop" | "storage" | "submodule" | "symlink" | "tableOfContents" | "tag" | "tear" | "temperature" | "trash" | "user" | "vector" | "wrench" | "addDataApp" | "advancedSettingsApp" | "apmApp" | "apmTrace" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceSad" | "filebeatApp" | "folderClosed" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexSettings" | "infraApp" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "packetbeatApp" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "reportingApp" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visBarHorizontal" | "visBarVertical" | "visControls" | "visGauge" | "visGoal" | "visHeatmap" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visualizeApp" | "visVega" | "visVisualBuilder" | "watchesApp" | "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")[];
370
+ export const TYPES: ("string" | "number" | "search" | "link" | "alert" | "apps" | "asterisk" | "beaker" | "bell" | "bolt" | "branch" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "copy" | "cross" | "crosshairs" | "crossInACircleFilled" | "cut" | "database" | "document" | "documentEdit" | "documents" | "dot" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignLeft" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "exit" | "expand" | "eye" | "faceNeutral" | "filter" | "flag" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuLeft" | "menuRight" | "merge" | "moon" | "node" | "offline" | "online" | "pause" | "pencil" | "pin" | "play" | "popout" | "refresh" | "save" | "scale" | "shard" | "share" | "snowflake" | "sortable" | "sortLeft" | "sortRight" | "starPlusEmpty" | "starPlusFilled" | "stats" | "stop" | "storage" | "submodule" | "symlink" | "tableOfContents" | "tag" | "tear" | "temperature" | "training" | "trash" | "user" | "vector" | "videoPlayer" | "wrench" | "addDataApp" | "advancedSettingsApp" | "apmApp" | "apmTrace" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceSad" | "filebeatApp" | "folderClosed" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexSettings" | "infraApp" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "packetbeatApp" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "reportingApp" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visBarHorizontal" | "visBarVertical" | "visControls" | "visGauge" | "visGoal" | "visHeatmap" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visualizeApp" | "visVega" | "visVisualBuilder" | "watchesApp" | "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")[];
384
371
  export type EuiIconType = keyof typeof typeToPathMap;
385
372
  export type IconType = EuiIconType | string | ReactElement;
386
373
  export const IconPropType: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>; const colorToClassMap: {
@@ -430,7 +417,7 @@ declare module '@elastic/eui/src/components/icon/icon' {
430
417
  constructor(props: Props);
431
418
  componentDidUpdate(prevProps: Props): void;
432
419
  componentWillUnmount(): void;
433
- loadIconComponent: (iconType: "string" | "number" | "search" | "link" | "alert" | "apps" | "asterisk" | "beaker" | "bell" | "bolt" | "branch" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "clock" | "compute" | "console" | "copy" | "cross" | "crosshairs" | "crossInACircleFilled" | "cut" | "database" | "document" | "dot" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignLeft" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "exit" | "expand" | "eye" | "faceNeutral" | "filter" | "flag" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuLeft" | "menuRight" | "merge" | "moon" | "node" | "offline" | "online" | "pause" | "pencil" | "pin" | "play" | "popout" | "refresh" | "save" | "scale" | "shard" | "share" | "snowflake" | "sortable" | "sortLeft" | "sortRight" | "starPlusEmpty" | "starPlusFilled" | "stats" | "stop" | "storage" | "submodule" | "symlink" | "tableOfContents" | "tag" | "tear" | "temperature" | "trash" | "user" | "vector" | "wrench" | "addDataApp" | "advancedSettingsApp" | "apmApp" | "apmTrace" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceSad" | "filebeatApp" | "folderClosed" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexSettings" | "infraApp" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "packetbeatApp" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "reportingApp" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visBarHorizontal" | "visBarVertical" | "visControls" | "visGauge" | "visGoal" | "visHeatmap" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visualizeApp" | "visVega" | "visVisualBuilder" | "watchesApp" | "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") => void;
420
+ loadIconComponent: (iconType: "string" | "number" | "search" | "link" | "alert" | "apps" | "asterisk" | "beaker" | "bell" | "bolt" | "branch" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "copy" | "cross" | "crosshairs" | "crossInACircleFilled" | "cut" | "database" | "document" | "documentEdit" | "documents" | "dot" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignLeft" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "exit" | "expand" | "eye" | "faceNeutral" | "filter" | "flag" | "gear" | "glasses" | "globe" | "grab" | "grid" | "heart" | "heatmap" | "help" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "list" | "lock" | "lockOpen" | "magnet" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuLeft" | "menuRight" | "merge" | "moon" | "node" | "offline" | "online" | "pause" | "pencil" | "pin" | "play" | "popout" | "refresh" | "save" | "scale" | "shard" | "share" | "snowflake" | "sortable" | "sortLeft" | "sortRight" | "starPlusEmpty" | "starPlusFilled" | "stats" | "stop" | "storage" | "submodule" | "symlink" | "tableOfContents" | "tag" | "tear" | "temperature" | "training" | "trash" | "user" | "vector" | "videoPlayer" | "wrench" | "addDataApp" | "advancedSettingsApp" | "apmApp" | "apmTrace" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceSad" | "filebeatApp" | "folderClosed" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexSettings" | "infraApp" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "listAdd" | "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" | "managementApp" | "mapMarker" | "metricbeatApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "packetbeatApp" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "reportingApp" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visBarHorizontal" | "visBarVertical" | "visControls" | "visGauge" | "visGoal" | "visHeatmap" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visualizeApp" | "visVega" | "visVisualBuilder" | "watchesApp" | "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") => void;
434
421
  render(): JSX.Element;
435
422
  }
436
423
  export {};
@@ -3402,7 +3389,6 @@ declare module '@elastic/eui' {
3402
3389
 
3403
3390
 
3404
3391
 
3405
-
3406
3392
 
3407
3393
 
3408
3394
  declare module '@elastic/eui' {
@@ -3430,6 +3416,234 @@ declare module '@elastic/eui/src/test/required_props' {
3430
3416
  'data-test-subj': string;
3431
3417
  };
3432
3418
 
3419
+ }
3420
+ declare module '@elastic/eui/src/components/flex/flex_group' {
3421
+ import { HTMLAttributes, FunctionComponent } from 'react';
3422
+ import { CommonProps } from '@elastic/eui/src/components/common';
3423
+ export type FlexGroupAlignItems = keyof typeof alignItemsToClassNameMap;
3424
+ export type FlexGroupComponentType = 'div' | 'span';
3425
+ export type FlexGroupDirection = keyof typeof directionToClassNameMap;
3426
+ export type FlexGroupGutterSize = keyof typeof gutterSizeToClassNameMap;
3427
+ export type FlexGroupJustifyContent = keyof typeof justifyContentToClassNameMap;
3428
+ export interface EuiFlexGroupProps {
3429
+ alignItems?: FlexGroupAlignItems;
3430
+ component?: FlexGroupComponentType;
3431
+ direction?: FlexGroupDirection;
3432
+ gutterSize?: FlexGroupGutterSize;
3433
+ justifyContent?: FlexGroupJustifyContent;
3434
+ responsive?: boolean;
3435
+ wrap?: boolean;
3436
+ } const gutterSizeToClassNameMap: {
3437
+ none: null;
3438
+ xs: string;
3439
+ s: string;
3440
+ m: string;
3441
+ l: string;
3442
+ xl: string;
3443
+ };
3444
+ export const GUTTER_SIZES: ("s" | "m" | "l" | "xl" | "none" | "xs")[]; const alignItemsToClassNameMap: {
3445
+ stretch: null;
3446
+ flexStart: string;
3447
+ flexEnd: string;
3448
+ center: string;
3449
+ baseline: string;
3450
+ };
3451
+ export const ALIGN_ITEMS: ("baseline" | "center" | "stretch" | "flexStart" | "flexEnd")[]; const justifyContentToClassNameMap: {
3452
+ flexStart: null;
3453
+ flexEnd: string;
3454
+ center: string;
3455
+ spaceBetween: string;
3456
+ spaceAround: string;
3457
+ spaceEvenly: string;
3458
+ };
3459
+ export const JUSTIFY_CONTENTS: ("center" | "flexStart" | "flexEnd" | "spaceBetween" | "spaceAround" | "spaceEvenly")[]; const directionToClassNameMap: {
3460
+ row: string;
3461
+ rowReverse: string;
3462
+ column: string;
3463
+ columnReverse: string;
3464
+ };
3465
+ export const DIRECTIONS: ("row" | "rowReverse" | "column" | "columnReverse")[];
3466
+ export const EuiFlexGroup: FunctionComponent<CommonProps & HTMLAttributes<HTMLDivElement | HTMLSpanElement> & EuiFlexGroupProps>;
3467
+ export {};
3468
+
3469
+ }
3470
+ declare module '@elastic/eui/src/components/flex/flex_grid' {
3471
+ import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
3472
+ import { CommonProps } from '@elastic/eui/src/components/common';
3473
+ export type FlexGridGutterSize = keyof typeof gutterSizeToClassNameMap;
3474
+ export type FlexGridColumns = 0 | 1 | 2 | 3 | 4;
3475
+ export type FlexGridDirection = keyof typeof directionToClassNameMap;
3476
+ export interface EuiFlexGridProps {
3477
+ children?: ReactNode;
3478
+ /**
3479
+ * Number of columns `1-4`, pass `0` for normal display
3480
+ */
3481
+ columns?: FlexGridColumns;
3482
+ /**
3483
+ * Flex layouts default to left-right then top-down (`row`).
3484
+ * Change this prop to `column` to create a top-down then left-right display.
3485
+ * Only works with column count of `1-4`.
3486
+ */
3487
+ direction?: FlexGridDirection;
3488
+ /**
3489
+ * Space between flex items
3490
+ */
3491
+ gutterSize?: FlexGridGutterSize;
3492
+ /**
3493
+ * Force each item to be display block on smaller screens
3494
+ */
3495
+ responsive?: boolean;
3496
+ } const directionToClassNameMap: {
3497
+ row: null;
3498
+ column: string;
3499
+ };
3500
+ export const DIRECTIONS: ("row" | "column")[]; const gutterSizeToClassNameMap: {
3501
+ none: string;
3502
+ s: string;
3503
+ m: string;
3504
+ l: string;
3505
+ xl: string;
3506
+ };
3507
+ export const GUTTER_SIZES: FlexGridGutterSize[];
3508
+ export const COLUMNS: FlexGridColumns[];
3509
+ export const EuiFlexGrid: FunctionComponent<CommonProps & HTMLAttributes<HTMLDivElement> & EuiFlexGridProps>;
3510
+ export {};
3511
+
3512
+ }
3513
+ declare module '@elastic/eui/src/components/flex/flex_item' {
3514
+ import { HTMLAttributes, FunctionComponent } from 'react';
3515
+ import { CommonProps } from '@elastic/eui/src/components/common';
3516
+ export type FlexItemGrowSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | true | false | null;
3517
+ export type FlexItemComponentType = 'div' | 'span' | 'figure';
3518
+ export interface EuiFlexItemProps {
3519
+ grow?: FlexItemGrowSize;
3520
+ component?: FlexItemComponentType;
3521
+ }
3522
+ export const GROW_SIZES: FlexItemGrowSize[];
3523
+ export const EuiFlexItem: FunctionComponent<CommonProps & HTMLAttributes<HTMLDivElement | HTMLSpanElement> & EuiFlexItemProps>;
3524
+
3525
+ }
3526
+ declare module '@elastic/eui' {
3527
+ export { EuiFlexGroup } from '@elastic/eui/src/components/flex/flex_group';
3528
+ export { EuiFlexGrid } from '@elastic/eui/src/components/flex/flex_grid';
3529
+ export { EuiFlexItem } from '@elastic/eui/src/components/flex/flex_item';
3530
+
3531
+ }
3532
+ declare module '@elastic/eui/src/components/observer/observer' {
3533
+ import { Component, ReactNode } from 'react';
3534
+ interface BaseProps {
3535
+ children: (ref: any) => ReactNode;
3536
+ }
3537
+ interface Observer {
3538
+ disconnect: () => void;
3539
+ observe: (element: Element, options?: {
3540
+ [key: string]: any;
3541
+ }) => void;
3542
+ }
3543
+ export class EuiObserver<Props extends BaseProps> extends Component<Props> {
3544
+ protected name: string;
3545
+ protected childNode: null | Element;
3546
+ protected observer: null | Observer;
3547
+ componentDidMount(): void;
3548
+ componentWillUnmount(): void;
3549
+ updateChildNode: (ref: Element) => void;
3550
+ beginObserve: () => void;
3551
+ render(): ReactNode;
3552
+ }
3553
+ export {};
3554
+
3555
+ }
3556
+ declare module '@elastic/eui/src/components/observer/mutation_observer/mutation_observer' {
3557
+ import { ReactNode } from 'react';
3558
+ import { EuiObserver } from '@elastic/eui/src/components/observer/observer';
3559
+ interface Props {
3560
+ children: (ref: (e: HTMLElement | null) => void) => ReactNode;
3561
+ onMutation: MutationCallback;
3562
+ observerOptions?: MutationObserverInit;
3563
+ }
3564
+ export class EuiMutationObserver extends EuiObserver<Props> {
3565
+ name: string;
3566
+ beginObserve: () => void;
3567
+ }
3568
+ export {};
3569
+
3570
+ }
3571
+ declare module '@elastic/eui' {
3572
+ export { EuiMutationObserver } from '@elastic/eui/src/components/observer/mutation_observer/mutation_observer';
3573
+
3574
+ }
3575
+ declare module '@elastic/eui/src/components/accordion/accordion' {
3576
+ import { Component, HTMLAttributes, ReactNode } from 'react';
3577
+ import { CommonProps } from '@elastic/eui/src/components/common'; const paddingSizeToClassNameMap: {
3578
+ none: null;
3579
+ xs: string;
3580
+ s: string;
3581
+ m: string;
3582
+ l: string;
3583
+ xl: string;
3584
+ };
3585
+ export const PADDING_SIZES: ("s" | "m" | "l" | "xl" | "none" | "xs")[];
3586
+ export type EuiAccordionSize = keyof typeof paddingSizeToClassNameMap;
3587
+ export type EuiAccordionProps = HTMLAttributes<HTMLDivElement> & CommonProps & {
3588
+ id: string;
3589
+ /**
3590
+ * Class that will apply to the trigger for the accordion.
3591
+ */
3592
+ buttonClassName?: string;
3593
+ /**
3594
+ * Class that will apply to the trigger content for the accordion.
3595
+ */
3596
+ buttonContentClassName?: string;
3597
+ /**
3598
+ * The content of the clickable trigger
3599
+ */
3600
+ buttonContent?: ReactNode;
3601
+ /**
3602
+ * Will appear right aligned against the button. Useful for separate actions like deletions.
3603
+ */
3604
+ extraAction?: ReactNode;
3605
+ /**
3606
+ * The accordion will start in the open state.
3607
+ */
3608
+ initialIsOpen: boolean;
3609
+ /**
3610
+ * Optional callback method called on open and close with a single `isOpen` parameter
3611
+ */
3612
+ onToggle?: (isOpen: boolean) => void;
3613
+ /**
3614
+ * The padding around the exposed accordion content.
3615
+ */
3616
+ paddingSize: EuiAccordionSize;
3617
+ };
3618
+ export class EuiAccordion extends Component<EuiAccordionProps, {
3619
+ isOpen: boolean;
3620
+ }> {
3621
+ static defaultProps: {
3622
+ initialIsOpen: boolean;
3623
+ paddingSize: string;
3624
+ };
3625
+ childContent: HTMLDivElement | null;
3626
+ childWrapper: HTMLDivElement | null;
3627
+ state: {
3628
+ isOpen: boolean;
3629
+ };
3630
+ setChildContentHeight: () => void;
3631
+ componentDidMount(): void;
3632
+ componentDidUpdate(): void;
3633
+ onToggle: () => void;
3634
+ setChildContentRef: (node: HTMLDivElement | null) => void;
3635
+ render(): JSX.Element;
3636
+ }
3637
+ export {};
3638
+
3639
+ }
3640
+ declare module '@elastic/eui/src/components/accordion/accordion.test' {
3641
+ export {};
3642
+
3643
+ }
3644
+ declare module '@elastic/eui' {
3645
+ export { EuiAccordion, EuiAccordionProps } from '@elastic/eui/src/components/accordion/accordion';
3646
+
3433
3647
  }
3434
3648
  declare module '@elastic/eui/src/components/avatar/avatar' {
3435
3649
  import { HTMLAttributes, FunctionComponent } from 'react';
@@ -3594,30 +3808,6 @@ declare module '@elastic/eui/src/components/form/form_row/make_id' {
3594
3808
  function makeId(): string;
3595
3809
  export default makeId;
3596
3810
 
3597
- }
3598
- declare module '@elastic/eui/src/components/observer/observer' {
3599
- import { Component, ReactNode } from 'react';
3600
- interface BaseProps {
3601
- children: (ref: any) => ReactNode;
3602
- }
3603
- interface Observer {
3604
- disconnect: () => void;
3605
- observe: (element: Element, options?: {
3606
- [key: string]: any;
3607
- }) => void;
3608
- }
3609
- export class EuiObserver<Props extends BaseProps> extends Component<Props> {
3610
- protected name: string;
3611
- protected childNode: null | Element;
3612
- protected observer: null | Observer;
3613
- componentDidMount(): void;
3614
- componentWillUnmount(): void;
3615
- updateChildNode: (ref: Element) => void;
3616
- beginObserve: () => void;
3617
- render(): ReactNode;
3618
- }
3619
- export {};
3620
-
3621
3811
  }
3622
3812
  declare module '@elastic/eui/src/components/observer/resize_observer/resize_observer' {
3623
3813
  import { ReactNode } from 'react';
@@ -4316,130 +4506,18 @@ declare module '@elastic/eui' {
4316
4506
  declare module '@elastic/eui/src/components/filter_group/filter_group.test' {
4317
4507
  export {};
4318
4508
 
4319
- }
4320
- declare module '@elastic/eui/src/components/flex/flex_grid' {
4321
- import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
4322
- import { CommonProps } from '@elastic/eui/src/components/common';
4323
- export type FlexGridGutterSize = keyof typeof gutterSizeToClassNameMap;
4324
- export type FlexGridColumns = 0 | 1 | 2 | 3 | 4;
4325
- export type FlexGridDirection = keyof typeof directionToClassNameMap;
4326
- export interface EuiFlexGridProps {
4327
- children?: ReactNode;
4328
- /**
4329
- * Number of columns `1-4`, pass `0` for normal display
4330
- */
4331
- columns?: FlexGridColumns;
4332
- /**
4333
- * Flex layouts default to left-right then top-down (`row`).
4334
- * Change this prop to `column` to create a top-down then left-right display.
4335
- * Only works with column count of `1-4`.
4336
- */
4337
- direction?: FlexGridDirection;
4338
- /**
4339
- * Space between flex items
4340
- */
4341
- gutterSize?: FlexGridGutterSize;
4342
- /**
4343
- * Force each item to be display block on smaller screens
4344
- */
4345
- responsive?: boolean;
4346
- } const directionToClassNameMap: {
4347
- row: null;
4348
- column: string;
4349
- };
4350
- export const DIRECTIONS: ("row" | "column")[]; const gutterSizeToClassNameMap: {
4351
- none: string;
4352
- s: string;
4353
- m: string;
4354
- l: string;
4355
- xl: string;
4356
- };
4357
- export const GUTTER_SIZES: FlexGridGutterSize[];
4358
- export const COLUMNS: FlexGridColumns[];
4359
- export const EuiFlexGrid: FunctionComponent<CommonProps & HTMLAttributes<HTMLDivElement> & EuiFlexGridProps>;
4360
- export {};
4361
-
4362
4509
  }
4363
4510
  declare module '@elastic/eui/src/components/flex/flex_grid.test' {
4364
4511
  export {};
4365
4512
 
4366
- }
4367
- declare module '@elastic/eui/src/components/flex/flex_group' {
4368
- import { HTMLAttributes, FunctionComponent } from 'react';
4369
- import { CommonProps } from '@elastic/eui/src/components/common';
4370
- export type FlexGroupAlignItems = keyof typeof alignItemsToClassNameMap;
4371
- export type FlexGroupComponentType = 'div' | 'span';
4372
- export type FlexGroupDirection = keyof typeof directionToClassNameMap;
4373
- export type FlexGroupGutterSize = keyof typeof gutterSizeToClassNameMap;
4374
- export type FlexGroupJustifyContent = keyof typeof justifyContentToClassNameMap;
4375
- export interface EuiFlexGroupProps {
4376
- alignItems?: FlexGroupAlignItems;
4377
- component?: FlexGroupComponentType;
4378
- direction?: FlexGroupDirection;
4379
- gutterSize?: FlexGroupGutterSize;
4380
- justifyContent?: FlexGroupJustifyContent;
4381
- responsive?: boolean;
4382
- wrap?: boolean;
4383
- } const gutterSizeToClassNameMap: {
4384
- none: null;
4385
- xs: string;
4386
- s: string;
4387
- m: string;
4388
- l: string;
4389
- xl: string;
4390
- };
4391
- export const GUTTER_SIZES: ("s" | "m" | "l" | "xl" | "none" | "xs")[]; const alignItemsToClassNameMap: {
4392
- stretch: null;
4393
- flexStart: string;
4394
- flexEnd: string;
4395
- center: string;
4396
- baseline: string;
4397
- };
4398
- export const ALIGN_ITEMS: ("baseline" | "center" | "stretch" | "flexStart" | "flexEnd")[]; const justifyContentToClassNameMap: {
4399
- flexStart: null;
4400
- flexEnd: string;
4401
- center: string;
4402
- spaceBetween: string;
4403
- spaceAround: string;
4404
- spaceEvenly: string;
4405
- };
4406
- export const JUSTIFY_CONTENTS: ("center" | "flexStart" | "flexEnd" | "spaceBetween" | "spaceAround" | "spaceEvenly")[]; const directionToClassNameMap: {
4407
- row: string;
4408
- rowReverse: string;
4409
- column: string;
4410
- columnReverse: string;
4411
- };
4412
- export const DIRECTIONS: ("row" | "column" | "rowReverse" | "columnReverse")[];
4413
- export const EuiFlexGroup: FunctionComponent<CommonProps & HTMLAttributes<HTMLDivElement | HTMLSpanElement> & EuiFlexGroupProps>;
4414
- export {};
4415
-
4416
4513
  }
4417
4514
  declare module '@elastic/eui/src/components/flex/flex_group.test' {
4418
4515
  export {};
4419
4516
 
4420
- }
4421
- declare module '@elastic/eui/src/components/flex/flex_item' {
4422
- import { HTMLAttributes, FunctionComponent } from 'react';
4423
- import { CommonProps } from '@elastic/eui/src/components/common';
4424
- export type FlexItemGrowSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | true | false | null;
4425
- export type FlexItemComponentType = 'div' | 'span' | 'figure';
4426
- export interface EuiFlexItemProps {
4427
- grow?: FlexItemGrowSize;
4428
- component?: FlexItemComponentType;
4429
- }
4430
- export const GROW_SIZES: FlexItemGrowSize[];
4431
- export const EuiFlexItem: FunctionComponent<CommonProps & HTMLAttributes<HTMLDivElement | HTMLSpanElement> & EuiFlexItemProps>;
4432
-
4433
4517
  }
4434
4518
  declare module '@elastic/eui/src/components/flex/flex_item.test' {
4435
4519
  export {};
4436
4520
 
4437
- }
4438
- declare module '@elastic/eui' {
4439
- export { EuiFlexGroup } from '@elastic/eui/src/components/flex/flex_group';
4440
- export { EuiFlexGrid } from '@elastic/eui/src/components/flex/flex_grid';
4441
- export { EuiFlexItem } from '@elastic/eui/src/components/flex/flex_item';
4442
-
4443
4521
  }
4444
4522
  declare module '@elastic/eui/src/components/flyout/flyout_body.test' {
4445
4523
  export {};
@@ -4705,8 +4783,8 @@ declare module '@elastic/eui/src/components/form/form_control_layout/form_contro
4705
4783
  import { EuiFormControlLayoutClearButtonProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_clear_button';
4706
4784
  import { EuiFormControlLayoutCustomIconProps } from '@elastic/eui/src/components/form/form_control_layout/form_control_layout_custom_icon';
4707
4785
  import { IconType } from '@elastic/eui';
4708
- import { Omit } from '@elastic/eui/src/components/common';
4709
- export const ICON_SIDES: ['left', 'right']; type IconShape = Partial<Omit<EuiFormControlLayoutCustomIconProps, 'type' | 'iconRef'>> & {
4786
+ import { DistributiveOmit } from '@elastic/eui/src/components/common';
4787
+ export const ICON_SIDES: ['left', 'right']; type IconShape = DistributiveOmit<EuiFormControlLayoutCustomIconProps, 'type' | 'iconRef'> & {
4710
4788
  type: IconType;
4711
4789
  side?: typeof ICON_SIDES[number];
4712
4790
  ref?: EuiFormControlLayoutCustomIconProps['iconRef'];
@@ -4936,13 +5014,190 @@ declare module '@elastic/eui' {
4936
5014
  >;
4937
5015
  }
4938
5016
 
5017
+ }
5018
+ declare module '@elastic/eui/src/components/form/range/range_highlight' {
5019
+ import { FunctionComponent } from 'react';
5020
+ export interface EuiRangeHighlightProps {
5021
+ hasFocus?: boolean;
5022
+ showTicks?: boolean;
5023
+ lowerValue: number;
5024
+ upperValue: number;
5025
+ max: number;
5026
+ min: number;
5027
+ }
5028
+ export const EuiRangeHighlight: FunctionComponent<EuiRangeHighlightProps>;
5029
+
5030
+ }
5031
+ declare module '@elastic/eui/src/components/form/range/range_label' {
5032
+ import { FunctionComponent } from 'react';
5033
+ export interface EuiRangeLabelProps {
5034
+ children: string | number;
5035
+ disabled?: boolean;
5036
+ side?: 'min' | 'max';
5037
+ }
5038
+ export const EuiRangeLabel: FunctionComponent<EuiRangeLabelProps>;
5039
+
5040
+ }
5041
+ declare module '@elastic/eui/src/components/form/range/range_levels' {
5042
+ import { FunctionComponent } from 'react';
5043
+ export type EuiRangeLevelColor = 'primary' | 'success' | 'warning' | 'danger';
5044
+ export const LEVEL_COLORS: EuiRangeLevelColor[];
5045
+ export interface EuiRangeLevel {
5046
+ min: number;
5047
+ max: number;
5048
+ color: EuiRangeLevelColor;
5049
+ }
5050
+ export interface EuiRangeLevelsProps {
5051
+ levels?: EuiRangeLevel[];
5052
+ max: number;
5053
+ min: number;
5054
+ showTicks?: boolean;
5055
+ }
5056
+ export const EuiRangeLevels: FunctionComponent<EuiRangeLevelsProps>;
5057
+
5058
+ }
5059
+ declare module '@elastic/eui/src/components/form/range/range_slider' {
5060
+ import { ChangeEventHandler, FunctionComponent, InputHTMLAttributes } from 'react';
5061
+ import { CommonProps } from '@elastic/eui/src/components/common';
5062
+ export type EuiRangeSliderProps = InputHTMLAttributes<HTMLInputElement> & CommonProps & {
5063
+ id?: string;
5064
+ name?: string;
5065
+ min: number;
5066
+ max: number;
5067
+ step?: number;
5068
+ hasFocus?: boolean;
5069
+ showRange?: boolean;
5070
+ showTicks?: boolean;
5071
+ disabled?: boolean;
5072
+ tabIndex?: number;
5073
+ onChange?: ChangeEventHandler<HTMLInputElement>;
5074
+ };
5075
+ export const EuiRangeSlider: FunctionComponent<EuiRangeSliderProps>;
5076
+
5077
+ }
5078
+ declare module '@elastic/eui/src/components/form/range/range_thumb' {
5079
+ import { FunctionComponent, HTMLAttributes } from 'react';
5080
+ import { CommonProps } from '@elastic/eui/src/components/common';
5081
+ export type EuiRangeThumbProps = HTMLAttributes<HTMLDivElement> & CommonProps & {
5082
+ min: number;
5083
+ max: number;
5084
+ value?: number | string;
5085
+ disabled?: boolean;
5086
+ showInput?: boolean;
5087
+ showTicks?: boolean;
5088
+ };
5089
+ export const EuiRangeThumb: FunctionComponent<EuiRangeThumbProps>;
5090
+
5091
+ }
5092
+ declare module '@elastic/eui/src/components/inner_text/inner_text' {
5093
+ import { FunctionComponent, ReactElement } from 'react'; type RefT = HTMLElement | Element | undefined | null;
5094
+ export function useInnerText(innerTextFallback?: string): [((node: RefT) => void), string | undefined];
5095
+ export interface EuiInnerTextProps {
5096
+ children: (ref?: (node: RefT) => void, innerText?: string) => ReactElement;
5097
+ fallback?: string;
5098
+ }
5099
+ export const EuiInnerText: FunctionComponent<EuiInnerTextProps>;
5100
+ export {};
5101
+
5102
+ }
5103
+ declare module '@elastic/eui' {
5104
+ export { useInnerText, EuiInnerText } from '@elastic/eui/src/components/inner_text/inner_text';
5105
+
5106
+ }
5107
+ declare module '@elastic/eui/src/components/form/range/range_ticks' {
5108
+ import { ButtonHTMLAttributes, MouseEventHandler, FunctionComponent, ReactNode } from 'react';
5109
+ import { Omit } from '@elastic/eui/src/components/common';
5110
+ export interface EuiRangeTick {
5111
+ value: number;
5112
+ label: ReactNode;
5113
+ }
5114
+ export type EuiRangeTicksProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & {
5115
+ ticks?: EuiRangeTick[];
5116
+ tickSequence: number[];
5117
+ value?: number | string | Array<string | number>;
5118
+ min: number;
5119
+ max: number;
5120
+ interval?: number;
5121
+ disabled?: boolean;
5122
+ onChange?: MouseEventHandler<HTMLButtonElement>;
5123
+ };
5124
+ export const EuiRangeTicks: FunctionComponent<EuiRangeTicksProps>;
5125
+
5126
+ }
5127
+ declare module '@elastic/eui/src/components/form/range/range_tooltip' {
5128
+ import { FunctionComponent, ReactNode } from 'react';
5129
+ export interface EuiRangeTooltipProps {
5130
+ value?: number | string;
5131
+ valueAppend?: ReactNode;
5132
+ valuePrepend?: ReactNode;
5133
+ max: number;
5134
+ min: number;
5135
+ name?: string;
5136
+ showTicks?: boolean;
5137
+ }
5138
+ export const EuiRangeTooltip: FunctionComponent<EuiRangeTooltipProps>;
5139
+
5140
+ }
5141
+ declare module '@elastic/eui/src/components/form/range/range_track' {
5142
+ import { Component, MouseEventHandler } from 'react';
5143
+ import { EuiRangeLevel, LEVEL_COLORS } from '@elastic/eui/src/components/form/range/range_levels';
5144
+ import { EuiRangeTick } from '@elastic/eui/src/components/form/range/range_ticks';
5145
+ export { LEVEL_COLORS };
5146
+ export interface EuiRangeTrackProps {
5147
+ min: number;
5148
+ max: number;
5149
+ step?: number;
5150
+ value?: number | string | Array<string | number>;
5151
+ disabled?: boolean;
5152
+ showTicks?: boolean;
5153
+ tickInterval?: number;
5154
+ ticks?: EuiRangeTick[];
5155
+ onChange?: MouseEventHandler<HTMLButtonElement>;
5156
+ levels?: EuiRangeLevel[];
5157
+ }
5158
+ export class EuiRangeTrack extends Component<EuiRangeTrackProps> {
5159
+ validateValueIsInStep: (value: number) => number;
5160
+ calculateSequence: (min: number, max: number, interval?: number | undefined) => number[];
5161
+ calculateTicks: (min: number, max: number, step?: number | undefined, tickInterval?: number | undefined, customTicks?: EuiRangeTick[] | undefined) => number[];
5162
+ render(): JSX.Element;
5163
+ }
5164
+
5165
+ }
5166
+ declare module '@elastic/eui/src/components/form/range/range_wrapper' {
5167
+ import { FunctionComponent } from 'react';
5168
+ export interface EuiRangeWrapperProps {
5169
+ className?: string;
5170
+ fullWidth?: boolean;
5171
+ }
5172
+ export const EuiRangeWrapper: FunctionComponent<EuiRangeWrapperProps>;
5173
+
4939
5174
  }
4940
5175
  declare module '@elastic/eui' {
4941
5176
  import { CommonProps, Omit } from '@elastic/eui/src/components/common';
4942
5177
 
4943
- import { ReactNode, FunctionComponent, InputHTMLAttributes } from 'react'; module '@elastic/eui' {
5178
+ import { ReactNode, FunctionComponent, InputHTMLAttributes } from 'react';
5179
+
5180
+ import { EuiRangeHighlightProps } from '@elastic/eui/src/components/form/range/range_highlight';
5181
+ import { EuiRangeLabelProps } from '@elastic/eui/src/components/form/range/range_label';
5182
+ import { EuiRangeLevelsProps, EuiRangeLevel } from '@elastic/eui/src/components/form/range/range_levels';
5183
+ import { EuiRangeSliderProps } from '@elastic/eui/src/components/form/range/range_slider';
5184
+ import { EuiRangeThumbProps } from '@elastic/eui/src/components/form/range/range_thumb';
5185
+ import { EuiRangeTicksProps } from '@elastic/eui/src/components/form/range/range_ticks';
5186
+ import { EuiRangeTooltipProps } from '@elastic/eui/src/components/form/range/range_tooltip';
5187
+ import { EuiRangeTrackProps } from '@elastic/eui/src/components/form/range/range_track';
5188
+ import { EuiRangeWrapperProps } from '@elastic/eui/src/components/form/range/range_wrapper'; module '@elastic/eui' {
4944
5189
  export type EuiRangeLevelColor = 'primary' | 'success' | 'warning' | 'danger';
4945
5190
 
5191
+ export const EuiRangeHighlight: FunctionComponent<EuiRangeHighlightProps>;
5192
+ export const EuiRangeLabel: FunctionComponent<EuiRangeLabelProps>;
5193
+ export const EuiRangeLevels: FunctionComponent<EuiRangeLevelsProps>;
5194
+ export const EuiRangeSlider: FunctionComponent<EuiRangeSliderProps>;
5195
+ export const EuiRangeThumb: FunctionComponent<EuiRangeThumbProps>;
5196
+ export const EuiRangeTicks: FunctionComponent<EuiRangeTicksProps>;
5197
+ export const EuiRangeTooltip: FunctionComponent<EuiRangeTooltipProps>;
5198
+ export const EuiRangeTrack: FunctionComponent<EuiRangeTrackProps>;
5199
+ export const EuiRangeWrapper: FunctionComponent<EuiRangeWrapperProps>;
5200
+
4946
5201
  /**
4947
5202
  * single range type def
4948
5203
  *
@@ -4953,7 +5208,7 @@ declare module '@elastic/eui' {
4953
5208
  compressed?: boolean;
4954
5209
  fullWidth?: boolean;
4955
5210
  id?: string;
4956
- levels?: Array<{ min?: number; max?: number; color?: EuiRangeLevelColor }>;
5211
+ levels?: EuiRangeLevel[];
4957
5212
  // `min` and `max` are optional in HTML but required for our component,
4958
5213
  // so we override them.
4959
5214
  max: number;
@@ -4994,6 +5249,14 @@ declare module '@elastic/eui' {
4994
5249
  >;
4995
5250
  }
4996
5251
 
5252
+ }
5253
+ declare module '@elastic/eui/src/components/form/range/range_levels.test' {
5254
+ export {};
5255
+
5256
+ }
5257
+ declare module '@elastic/eui/src/components/form/range/range_track.test' {
5258
+ export {};
5259
+
4997
5260
  }
4998
5261
  declare module '@elastic/eui' {
4999
5262
  import { CommonProps } from '@elastic/eui/src/components/common';
@@ -5234,6 +5497,10 @@ declare module '@elastic/eui/src/components/i18n/i18n_util.test' {
5234
5497
  declare module '@elastic/eui/src/components/icon/icon.test' {
5235
5498
  export {};
5236
5499
 
5500
+ }
5501
+ declare module '@elastic/eui/src/components/inner_text/inner_text.test' {
5502
+ export {};
5503
+
5237
5504
  }
5238
5505
  declare module '@elastic/eui' {
5239
5506
  import {
@@ -5340,25 +5607,6 @@ declare module '@elastic/eui/src/components/modal/modal_header.test' {
5340
5607
  declare module '@elastic/eui/src/components/modal/modal_header_title.test' {
5341
5608
  export {};
5342
5609
 
5343
- }
5344
- declare module '@elastic/eui/src/components/observer/mutation_observer/mutation_observer' {
5345
- import { ReactNode } from 'react';
5346
- import { EuiObserver } from '@elastic/eui/src/components/observer/observer';
5347
- interface Props {
5348
- children: (ref: (e: HTMLElement | null) => void) => ReactNode;
5349
- onMutation: MutationCallback;
5350
- observerOptions?: MutationObserverInit;
5351
- }
5352
- export class EuiMutationObserver extends EuiObserver<Props> {
5353
- name: string;
5354
- beginObserve: () => void;
5355
- }
5356
- export {};
5357
-
5358
- }
5359
- declare module '@elastic/eui' {
5360
- export { EuiMutationObserver } from '@elastic/eui/src/components/observer/mutation_observer/mutation_observer';
5361
-
5362
5610
  }
5363
5611
  declare module '@elastic/eui/src/components/observer/mutation_observer/mutation_observer.test' {
5364
5612
  export function waitforMutationObserver(period?: number): Promise<void>;
@@ -5996,7 +6244,7 @@ declare module '@elastic/eui/src/components/toast/toast' {
5996
6244
  import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
5997
6245
  import { CommonProps, Omit } from '@elastic/eui/src/components/common';
5998
6246
  import { IconType } from '@elastic/eui'; type ToastColor = 'primary' | 'success' | 'warning' | 'danger';
5999
- export const COLORS: ToastColor[];
6247
+ export const COLORS: import ("@elastic/eui/src/components/form/range/range_levels").EuiRangeLevelColor[];
6000
6248
  export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
6001
6249
  title?: ReactNode;
6002
6250
  color?: ToastColor;