@elastic/eui 60.0.0 → 60.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +0 -445
- package/dist/eui_theme_dark.json +7 -44
- package/dist/eui_theme_dark.json.d.ts +7 -44
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -445
- package/dist/eui_theme_light.json +7 -44
- package/dist/eui_theme_light.json.d.ts +7 -44
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_live/screen_reader_live.js +30 -7
- package/es/components/accessibility/screen_reader_only/screen_reader_only.js +14 -19
- package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +11 -1
- package/es/components/accessibility/skip_link/skip_link.js +20 -4
- package/es/components/avatar/avatar.js +2 -2
- package/es/components/badge/badge.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
- package/es/components/datagrid/body/data_grid_body.js +6 -6
- package/es/components/datagrid/body/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/es/components/datagrid/data_grid.js +6 -6
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/date_picker/date_picker.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/form/field_text/field_text.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +1 -1
- package/es/components/health/health.js +1 -1
- package/es/components/icon/icon.js +43 -495
- package/es/components/icon/icon.styles.js +75 -0
- package/es/components/icon/icon_map.js +455 -0
- package/es/components/icon/named_colors.js +2 -13
- package/es/components/list_group/list_group.js +1 -1
- package/es/components/list_group/list_group_item.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/es/components/notification/notification_event.js +2 -2
- package/es/components/notification/notification_event_meta.js +1 -1
- package/es/components/notification/notification_event_read_button.js +1 -1
- package/es/components/panel/panel.js +2 -1
- package/es/components/progress/progress.js +34 -87
- package/es/components/progress/progress.styles.js +155 -0
- package/es/components/selectable/selectable_list/selectable_list.js +3 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +2 -2
- package/es/components/text/text.js +2 -0
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/global_styling/utility/utility.js +3 -1
- package/es/services/theme/hooks.js +2 -0
- package/eui.d.ts +393 -453
- package/i18ntokens.json +2 -2
- package/lib/components/accessibility/screen_reader_live/screen_reader_live.js +29 -6
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +22 -19
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +16 -2
- package/lib/components/accessibility/skip_link/skip_link.js +21 -4
- package/lib/components/avatar/avatar.js +2 -2
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
- package/lib/components/datagrid/body/data_grid_body.js +6 -6
- package/lib/components/datagrid/body/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/lib/components/datagrid/data_grid.js +6 -6
- package/lib/components/datagrid/utils/focus.js +1 -0
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/date_picker/date_picker.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/form/field_text/field_text.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +1 -1
- package/lib/components/health/health.js +1 -1
- package/lib/components/icon/icon.js +54 -499
- package/lib/components/icon/icon.styles.js +79 -0
- package/lib/components/icon/icon_map.js +463 -0
- package/lib/components/icon/named_colors.js +4 -15
- package/lib/components/list_group/list_group.js +1 -1
- package/lib/components/list_group/list_group_item.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/lib/components/notification/notification_event.js +2 -2
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/notification/notification_event_read_button.js +1 -1
- package/lib/components/panel/panel.js +2 -1
- package/lib/components/progress/progress.js +36 -88
- package/lib/components/progress/progress.styles.js +166 -0
- package/lib/components/selectable/selectable_list/selectable_list.js +3 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/lib/components/text/text.js +2 -0
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/global_styling/utility/utility.js +5 -1
- package/lib/services/theme/hooks.js +2 -0
- package/optimize/es/components/accessibility/screen_reader_live/screen_reader_live.js +21 -6
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.js +11 -17
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +11 -1
- package/optimize/es/components/accessibility/skip_link/skip_link.js +20 -4
- package/optimize/es/components/datagrid/utils/focus.js +1 -0
- package/optimize/es/components/icon/icon.js +40 -492
- package/optimize/es/components/icon/icon.styles.js +75 -0
- package/optimize/es/components/icon/icon_map.js +455 -0
- package/optimize/es/components/icon/named_colors.js +2 -13
- package/optimize/es/components/panel/panel.js +2 -1
- package/optimize/es/components/progress/progress.js +31 -84
- package/optimize/es/components/progress/progress.styles.js +155 -0
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +2 -0
- package/optimize/es/components/text/text.js +2 -0
- package/optimize/es/global_styling/utility/utility.js +3 -1
- package/optimize/es/services/theme/hooks.js +2 -0
- package/optimize/lib/components/accessibility/screen_reader_live/screen_reader_live.js +20 -5
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.js +18 -16
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +16 -2
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +21 -4
- package/optimize/lib/components/datagrid/utils/focus.js +1 -0
- package/optimize/lib/components/icon/icon.js +49 -494
- package/optimize/lib/components/icon/icon.styles.js +81 -0
- package/optimize/lib/components/icon/icon_map.js +463 -0
- package/optimize/lib/components/icon/named_colors.js +4 -15
- package/optimize/lib/components/panel/panel.js +2 -1
- package/optimize/lib/components/progress/progress.js +33 -85
- package/optimize/lib/components/progress/progress.styles.js +168 -0
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +2 -0
- package/optimize/lib/components/text/text.js +2 -0
- package/optimize/lib/global_styling/utility/utility.js +5 -1
- package/optimize/lib/services/theme/hooks.js +2 -0
- package/package.json +2 -2
- package/src/components/form/form_control_layout/_form_control_layout.scss +2 -4
- package/src/components/index.scss +0 -3
- package/src/global_styling/variables/_form.scss +9 -0
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/accessibility/screen_reader_live/screen_reader_live.js +29 -6
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.js +21 -18
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +16 -2
- package/test-env/components/accessibility/skip_link/skip_link.js +21 -4
- package/test-env/components/avatar/avatar.js +2 -2
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -2
- package/test-env/components/datagrid/body/data_grid_body.js +6 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +6 -6
- package/test-env/components/datagrid/data_grid.js +6 -6
- package/test-env/components/datagrid/utils/focus.js +1 -0
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/date_picker/date_picker.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/form/field_text/field_text.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +1 -1
- package/test-env/components/health/health.js +1 -1
- package/test-env/components/icon/icon.styles.js +81 -0
- package/test-env/components/icon/icon_map.js +463 -0
- package/test-env/components/icon/named_colors.js +4 -15
- package/test-env/components/list_group/list_group.js +1 -1
- package/test-env/components/list_group/list_group_item.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +2 -2
- package/test-env/components/notification/notification_event.js +2 -2
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/notification/notification_event_read_button.js +1 -1
- package/test-env/components/panel/panel.js +2 -1
- package/test-env/components/progress/progress.js +36 -88
- package/test-env/components/progress/progress.styles.js +168 -0
- package/test-env/components/selectable/selectable_list/selectable_list.js +3 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/test-env/components/text/text.js +2 -0
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/global_styling/utility/utility.js +5 -1
- package/test-env/services/theme/hooks.js +2 -0
- package/src/components/accessibility/_index.scss +0 -1
- package/src/components/accessibility/screen_reader_only/_screen_reader_only.scss +0 -5
- package/src/components/icon/_icon.scss +0 -87
- package/src/components/icon/_index.scss +0 -2
- package/src/components/icon/_variables.scss +0 -22
- package/src/components/progress/_index.scss +0 -2
- package/src/components/progress/_progress.scss +0 -166
- package/src/components/progress/_variables.scss +0 -21
- package/src/themes/amsterdam/overrides/_progress.scss +0 -3
package/eui.d.ts
CHANGED
|
@@ -1,21 +1,37 @@
|
|
|
1
|
+
declare module '@elastic/eui/src/services/theme/clone_element' {
|
|
2
|
+
import React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* React.cloneElement does not work if the cloned element does not already have the
|
|
5
|
+
* `css` prop - as a result, we need to use `jsx()` to manually clone the element
|
|
6
|
+
* See https://github.com/emotion-js/emotion/issues/1404
|
|
7
|
+
*
|
|
8
|
+
* NOTE: We're still using/testing this utility internally, so this is not yet a public API
|
|
9
|
+
*/
|
|
10
|
+
export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
14
|
+
export const euiScreenReaderOnly: () => string;
|
|
15
|
+
export const euiScreenReaderOnlyStyles: (showOnFocus?: boolean | undefined) => {
|
|
16
|
+
euiScreenReaderOnly: import("@emotion/utils").SerializedStyles;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
}
|
|
1
20
|
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only' {
|
|
2
21
|
import { ReactElement, FunctionComponent } from 'react';
|
|
3
22
|
export interface EuiScreenReaderOnlyProps {
|
|
4
23
|
/**
|
|
5
24
|
* ReactElement to render as this component's content
|
|
6
25
|
*/
|
|
7
|
-
children: ReactElement
|
|
26
|
+
children: ReactElement;
|
|
8
27
|
/**
|
|
9
28
|
* For keyboard navigation, force content to display visually upon focus.
|
|
10
29
|
*/
|
|
11
30
|
showOnFocus?: boolean;
|
|
31
|
+
className?: string;
|
|
12
32
|
}
|
|
13
33
|
export const EuiScreenReaderOnly: FunctionComponent<EuiScreenReaderOnlyProps>;
|
|
14
34
|
|
|
15
|
-
}
|
|
16
|
-
declare module '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only.styles' {
|
|
17
|
-
export const euiScreenReaderOnly: () => string;
|
|
18
|
-
|
|
19
35
|
}
|
|
20
36
|
declare module '@elastic/eui/src/components/accessibility/screen_reader_only' {
|
|
21
37
|
export type { EuiScreenReaderOnlyProps } from '@elastic/eui/src/components/accessibility/screen_reader_only/screen_reader_only';
|
|
@@ -44,6 +60,13 @@ declare module '@elastic/eui/src/components/accessibility/screen_reader_live/scr
|
|
|
44
60
|
* `aria-live` attribute for both live regions
|
|
45
61
|
*/
|
|
46
62
|
'aria-live'?: AriaAttributes['aria-live'];
|
|
63
|
+
/**
|
|
64
|
+
* On `children`/text change, the region will auto-focus itself, causing screen readers
|
|
65
|
+
* to automatically read out the text content. This prop should primarily be used for
|
|
66
|
+
* navigation or page changes, where programmatically resetting focus location back to
|
|
67
|
+
* a certain part of the page is desired.
|
|
68
|
+
*/
|
|
69
|
+
focusRegionOnTextChange?: boolean;
|
|
47
70
|
}
|
|
48
71
|
export const EuiScreenReaderLive: FunctionComponent<EuiScreenReaderLiveProps>;
|
|
49
72
|
|
|
@@ -523,41 +546,8 @@ declare module '@elastic/eui/src/components/color_picker/color_stops/utils' {
|
|
|
523
546
|
export const getPositionFromStop: (stop: ColorStop['stop'], ref: HTMLDivElement, min: number, max: number) => number;
|
|
524
547
|
|
|
525
548
|
}
|
|
526
|
-
declare module '@elastic/eui/src/components/icon/
|
|
527
|
-
|
|
528
|
-
interface SVGRProps {
|
|
529
|
-
title?: string;
|
|
530
|
-
titleId?: string;
|
|
531
|
-
}
|
|
532
|
-
export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
533
|
-
export {};
|
|
534
|
-
|
|
535
|
-
}
|
|
536
|
-
declare module '@elastic/eui/src/services/react' {
|
|
537
|
-
export function enqueueStateChange(fn: Function): void;
|
|
538
|
-
|
|
539
|
-
}
|
|
540
|
-
declare module '@elastic/eui/src/components/icon/named_colors' {
|
|
541
|
-
export const colorToClassMap: {
|
|
542
|
-
default: null;
|
|
543
|
-
primary: string;
|
|
544
|
-
success: string;
|
|
545
|
-
accent: string;
|
|
546
|
-
warning: string;
|
|
547
|
-
danger: string;
|
|
548
|
-
text: string;
|
|
549
|
-
subdued: string;
|
|
550
|
-
ghost: string;
|
|
551
|
-
inherit: string;
|
|
552
|
-
};
|
|
553
|
-
export type NamedColor = keyof typeof colorToClassMap;
|
|
554
|
-
export function isNamedColor(name: string): name is NamedColor;
|
|
555
|
-
|
|
556
|
-
}
|
|
557
|
-
declare module '@elastic/eui/src/components/icon/icon' {
|
|
558
|
-
import React, { PureComponent, ComponentType, SVGAttributes } from 'react';
|
|
559
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
560
|
-
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors'; const typeToPathMap: {
|
|
549
|
+
declare module '@elastic/eui/src/components/icon/icon_map' {
|
|
550
|
+
export const typeToPathMap: {
|
|
561
551
|
accessibility: string;
|
|
562
552
|
addDataApp: string;
|
|
563
553
|
advancedSettingsApp: string;
|
|
@@ -1003,201 +993,26 @@ declare module '@elastic/eui/src/components/icon/icon' {
|
|
|
1003
993
|
tokenSearchType: string;
|
|
1004
994
|
tokenHistogram: string;
|
|
1005
995
|
};
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
original: null;
|
|
1012
|
-
s: string;
|
|
1013
|
-
m: string;
|
|
1014
|
-
l: string;
|
|
1015
|
-
xl: string;
|
|
1016
|
-
xxl: string;
|
|
1017
|
-
};
|
|
1018
|
-
export const SIZES: IconSize[];
|
|
1019
|
-
export type IconSize = keyof typeof sizeToClassNameMap;
|
|
1020
|
-
export type EuiIconProps = CommonProps & Omit<SVGAttributes<SVGElement>, 'type' | 'color' | 'size'> & {
|
|
1021
|
-
/**
|
|
1022
|
-
* `Enum` is any of the named icons listed in the docs, `string` is usually a URL to an SVG file, and `elementType` is any React SVG component
|
|
1023
|
-
*/
|
|
1024
|
-
type: IconType;
|
|
1025
|
-
/**
|
|
1026
|
-
* One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
|
|
1027
|
-
* Note that coloring only works if your SVG is removed of fill attributes.
|
|
1028
|
-
*/
|
|
1029
|
-
color?: IconColor;
|
|
1030
|
-
/**
|
|
1031
|
-
* Note that every size other than `original` assumes the provided SVG sits on a square viewbox.
|
|
1032
|
-
*/
|
|
1033
|
-
size?: IconSize;
|
|
1034
|
-
/**
|
|
1035
|
-
* Descriptive title for naming the icon based on its use
|
|
1036
|
-
*/
|
|
996
|
+
|
|
997
|
+
}
|
|
998
|
+
declare module '@elastic/eui/src/components/icon/assets/empty' {
|
|
999
|
+
import * as React from 'react';
|
|
1000
|
+
interface SVGRProps {
|
|
1037
1001
|
title?: string;
|
|
1038
|
-
/**
|
|
1039
|
-
* A unique identifier for the title element
|
|
1040
|
-
*/
|
|
1041
1002
|
titleId?: string;
|
|
1042
|
-
/**
|
|
1043
|
-
* Its value should be one or more element IDs
|
|
1044
|
-
*/
|
|
1045
|
-
'aria-labelledby'?: string;
|
|
1046
|
-
/**
|
|
1047
|
-
* Callback when the icon has been loaded & rendered
|
|
1048
|
-
*/
|
|
1049
|
-
onIconLoad?: () => void;
|
|
1050
|
-
};
|
|
1051
|
-
interface State {
|
|
1052
|
-
icon: undefined | ComponentType | string;
|
|
1053
|
-
iconTitle: undefined | string;
|
|
1054
|
-
isLoading: boolean;
|
|
1055
|
-
neededLoading: boolean;
|
|
1056
|
-
}
|
|
1057
|
-
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "alert" | "document" | "grid" | "list" | "search" | "filter" | "image" | "stop" | "temperature" | "color" | "scale" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "tokenDate" | "tokenIP" | "tokenNested" | "tokenAlias" | "tokenShape" | "tokenGeo" | "tokenRange" | "tokenBinary" | "tokenJoin" | "tokenPercolator" | "tokenFlattened" | "tokenRankFeature" | "tokenRankFeatures" | "tokenKeyword" | "tokenTag" | "tokenCompletionSuggester" | "tokenDenseVector" | "tokenText" | "tokenTokenCount" | "tokenSearchType" | "tokenHistogram" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "keyboardShortcut" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
|
|
1058
|
-
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
1059
|
-
[iconType: string]: React.ComponentType<{}>;
|
|
1060
|
-
}) => void;
|
|
1061
|
-
export class EuiIcon extends PureComponent<EuiIconProps, State> {
|
|
1062
|
-
isMounted: boolean;
|
|
1063
|
-
constructor(props: EuiIconProps);
|
|
1064
|
-
componentDidMount(): void;
|
|
1065
|
-
componentDidUpdate(prevProps: EuiIconProps): void;
|
|
1066
|
-
componentWillUnmount(): void;
|
|
1067
|
-
loadIconComponent: (iconType: EuiIconType) => void;
|
|
1068
|
-
onIconLoad: () => void;
|
|
1069
|
-
render(): JSX.Element;
|
|
1070
1003
|
}
|
|
1004
|
+
export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
1071
1005
|
export {};
|
|
1072
1006
|
|
|
1073
1007
|
}
|
|
1074
|
-
declare module '@elastic/eui/src/
|
|
1075
|
-
export
|
|
1076
|
-
export { EuiIcon, TYPES as ICON_TYPES, SIZES as ICON_SIZES, COLORS as ICON_COLORS, } from '@elastic/eui/src/components/icon/icon';
|
|
1077
|
-
|
|
1078
|
-
}
|
|
1079
|
-
declare module '@elastic/eui/src/components/context/context' {
|
|
1080
|
-
import React, { Context, FunctionComponent, ReactChild, ReactNode } from 'react';
|
|
1081
|
-
export interface RenderableValues {
|
|
1082
|
-
[key: string]: ReactChild | undefined;
|
|
1083
|
-
}
|
|
1084
|
-
export type Renderable<T> = ReactChild | ((values: T) => ReactChild);
|
|
1085
|
-
export interface I18nShape {
|
|
1086
|
-
mapping?: {
|
|
1087
|
-
[key: string]: Renderable<object>;
|
|
1088
|
-
};
|
|
1089
|
-
mappingFunc?: (value: string) => string;
|
|
1090
|
-
/**
|
|
1091
|
-
* Some browsers' translation features don't work with a rendered `<Fragment>` component.
|
|
1092
|
-
* The `render` function allows you to pass in another component instead, e.g. `<div>`
|
|
1093
|
-
*/
|
|
1094
|
-
render?: (children: any) => FunctionComponent;
|
|
1095
|
-
formatNumber?: (x: number) => string;
|
|
1096
|
-
formatDateTime?: (x: Date) => string;
|
|
1097
|
-
locale?: string;
|
|
1098
|
-
} const I18nContext: Context<I18nShape>; const EuiI18nConsumer: React.Consumer<I18nShape>;
|
|
1099
|
-
export interface EuiContextProps {
|
|
1100
|
-
i18n: I18nShape;
|
|
1101
|
-
/**
|
|
1102
|
-
* ReactNode to render as this component's content
|
|
1103
|
-
*/
|
|
1104
|
-
children: ReactNode;
|
|
1105
|
-
} const EuiContext: FunctionComponent<EuiContextProps>;
|
|
1106
|
-
export { EuiContext, EuiI18nConsumer, I18nContext };
|
|
1107
|
-
|
|
1108
|
-
}
|
|
1109
|
-
declare module '@elastic/eui/src/components/context' {
|
|
1110
|
-
export type { EuiContextProps } from '@elastic/eui/src/components/context/context';
|
|
1111
|
-
export { EuiContext, EuiI18nConsumer } from '@elastic/eui/src/components/context/context';
|
|
1112
|
-
|
|
1113
|
-
}
|
|
1114
|
-
declare module '@elastic/eui/src/services/predicate/common_predicates' {
|
|
1115
|
-
import moment from 'moment';
|
|
1116
|
-
export const always: (_value?: any) => boolean;
|
|
1117
|
-
export const never: (_value?: any) => boolean;
|
|
1118
|
-
export const isUndefined: (value: any) => value is undefined;
|
|
1119
|
-
export const isNull: (value: any) => value is null;
|
|
1120
|
-
export const isNil: (value: any) => value is null | undefined;
|
|
1121
|
-
export const isMoment: (value: any) => boolean;
|
|
1122
|
-
export const isDate: (value: any) => value is Date;
|
|
1123
|
-
export const isDateLike: (value: any) => value is Date | moment.Moment;
|
|
1124
|
-
|
|
1125
|
-
}
|
|
1126
|
-
declare module '@elastic/eui/src/services/predicate/lodash_predicates' {
|
|
1127
|
-
export const isFunction: (value: any) => value is (...args: any[]) => any;
|
|
1128
|
-
export const isArray: (value: any) => value is any[];
|
|
1129
|
-
export const isString: (value: any) => value is string;
|
|
1130
|
-
export const isBoolean: (value: any) => value is boolean;
|
|
1131
|
-
export const isNumber: (value: any) => value is number;
|
|
1132
|
-
export const isNaN: (value: any) => boolean;
|
|
1133
|
-
export const isObject: (value: any) => value is object;
|
|
1134
|
-
|
|
1135
|
-
}
|
|
1136
|
-
declare module '@elastic/eui/src/services/predicate' {
|
|
1137
|
-
export * from '@elastic/eui/src/services/predicate/common_predicates';
|
|
1138
|
-
export * from '@elastic/eui/src/services/predicate/lodash_predicates';
|
|
1139
|
-
|
|
1140
|
-
}
|
|
1141
|
-
declare module '@elastic/eui/src/components/i18n/i18n_util' {
|
|
1142
|
-
import { ReactChild } from 'react';
|
|
1143
|
-
import { RenderableValues } from '@elastic/eui/src/components/context/context';
|
|
1144
|
-
/**
|
|
1145
|
-
* Replaces placeholder values in `input` with their matching value in `values`
|
|
1146
|
-
* e.g. input:'Hello, {name}' will replace `{name}` with `values[name]`
|
|
1147
|
-
* @param {string} input
|
|
1148
|
-
* @param {RenderableValues} values
|
|
1149
|
-
* @param {Function} i18nMappingFunc
|
|
1150
|
-
* @returns {string | React.ReactChild[]}
|
|
1151
|
-
*/
|
|
1152
|
-
export function processStringToChildren(input: string, values: RenderableValues, i18nMappingFunc?: (token: string) => string): string | ReactChild[];
|
|
1153
|
-
|
|
1154
|
-
}
|
|
1155
|
-
declare module '@elastic/eui/src/components/i18n/i18n' {
|
|
1156
|
-
import { ReactChild, ReactElement } from 'react';
|
|
1157
|
-
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
1158
|
-
import { Renderable } from '@elastic/eui/src/components/context/context'; type ResolvedType<T> = T extends (...args: any[]) => any ? ReturnType<T> : T;
|
|
1159
|
-
interface I18nTokenShape<T, DEFAULT extends Renderable<T>> {
|
|
1160
|
-
token: string;
|
|
1161
|
-
default: DEFAULT;
|
|
1162
|
-
children?: (x: ResolvedType<DEFAULT>) => ReactChild;
|
|
1163
|
-
values?: T;
|
|
1164
|
-
}
|
|
1165
|
-
interface I18nTokensShape<T extends any[]> {
|
|
1166
|
-
tokens: string[];
|
|
1167
|
-
defaults: T;
|
|
1168
|
-
children: (x: Array<T[number]>) => ReactChild;
|
|
1169
|
-
}
|
|
1170
|
-
export type EuiI18nProps<T, DEFAULT extends Renderable<T>, DEFAULTS extends any[]> = ExclusiveUnion<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>>; const EuiI18n: <T extends {}, DEFAULT extends Renderable<T>, DEFAULTS extends any[]>(props: (import ("@elastic/eui/src/components/common").DisambiguateSet<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>> & I18nTokensShape<DEFAULTS>) | (import ("@elastic/eui/src/components/common").DisambiguateSet<I18nTokensShape<DEFAULTS>, I18nTokenShape<T, DEFAULT>> & I18nTokenShape<T, DEFAULT>)) => JSX.Element; type DefaultRenderType<T, K extends Renderable<T>> = K extends ReactChild ? K : K extends () => infer RetValue ? RetValue : never; type DefaultsRenderType<K extends Array<string | ReactElement>> = K extends Array<infer Item> ? Item : never; function useEuiI18n<T extends {}, DEFAULT extends Renderable<T>>(token: string, defaultValue: DEFAULT, values?: T): DefaultRenderType<T, DEFAULT>; function useEuiI18n<DEFAULTS extends Array<string | ReactElement>>(tokens: string[], defaultValues: DEFAULTS): Array<DefaultsRenderType<DEFAULTS>>;
|
|
1171
|
-
export { EuiI18n, useEuiI18n };
|
|
1172
|
-
|
|
1173
|
-
}
|
|
1174
|
-
declare module '@elastic/eui/src/components/i18n/i18n_number' {
|
|
1175
|
-
import { FunctionComponent, ReactChild, ReactElement } from 'react';
|
|
1176
|
-
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
1177
|
-
interface EuiI18nNumberValueShape {
|
|
1178
|
-
value: number;
|
|
1179
|
-
children?: (x: ReactChild) => ReactElement<any>;
|
|
1180
|
-
}
|
|
1181
|
-
interface EuiI18nNumberValuesShape {
|
|
1182
|
-
values: number[];
|
|
1183
|
-
/**
|
|
1184
|
-
* ReactNode to render as this component's content
|
|
1185
|
-
*/
|
|
1186
|
-
children: (x: ReactChild[]) => ReactElement<any>;
|
|
1187
|
-
}
|
|
1188
|
-
export type EuiI18nNumberProps = ExclusiveUnion<EuiI18nNumberValueShape, EuiI18nNumberValuesShape>; const EuiI18nNumber: FunctionComponent<EuiI18nNumberProps>;
|
|
1189
|
-
export { EuiI18nNumber };
|
|
1190
|
-
|
|
1191
|
-
}
|
|
1192
|
-
declare module '@elastic/eui/src/components/i18n' {
|
|
1193
|
-
export type { EuiI18nProps } from '@elastic/eui/src/components/i18n/i18n';
|
|
1194
|
-
export { EuiI18n, useEuiI18n } from '@elastic/eui/src/components/i18n/i18n';
|
|
1195
|
-
export type { EuiI18nNumberProps } from '@elastic/eui/src/components/i18n/i18n_number';
|
|
1196
|
-
export { EuiI18nNumber } from '@elastic/eui/src/components/i18n/i18n_number';
|
|
1008
|
+
declare module '@elastic/eui/src/services/react' {
|
|
1009
|
+
export function enqueueStateChange(fn: Function): void;
|
|
1197
1010
|
|
|
1198
1011
|
}
|
|
1199
|
-
declare module '@elastic/eui/src/components/
|
|
1200
|
-
export const
|
|
1012
|
+
declare module '@elastic/eui/src/components/icon/named_colors' {
|
|
1013
|
+
export const COLORS: readonly ["default", "primary", "success", "accent", "warning", "danger", "text", "subdued", "ghost", "inherit"];
|
|
1014
|
+
export type NamedColor = typeof COLORS[number];
|
|
1015
|
+
export function isNamedColor(name: string): boolean;
|
|
1201
1016
|
|
|
1202
1017
|
}
|
|
1203
1018
|
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
@@ -1878,7 +1693,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
1878
1693
|
horizontal: string;
|
|
1879
1694
|
vertical: string;
|
|
1880
1695
|
};
|
|
1881
|
-
export const LOGICAL_SIDES: ("left" | "right" | "top" | "
|
|
1696
|
+
export const LOGICAL_SIDES: ("left" | "right" | "top" | "bottom" | "horizontal" | "vertical")[];
|
|
1882
1697
|
export type LogicalSides = typeof LOGICAL_SIDES[number];
|
|
1883
1698
|
export const logicals: {
|
|
1884
1699
|
'border-horizontal': string;
|
|
@@ -1937,7 +1752,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
1937
1752
|
'margin-horizontal': string;
|
|
1938
1753
|
'margin-vertical': string;
|
|
1939
1754
|
};
|
|
1940
|
-
export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "
|
|
1755
|
+
export const LOGICAL_PROPERTIES: ("left" | "right" | "top" | "width" | "height" | "inset" | "bottom" | "horizontal" | "vertical" | "border-horizontal" | "border-horizontal-color" | "border-horizontal-width" | "border-horizontal-style" | "border-vertical" | "border-vertical-color" | "border-vertical-width" | "border-vertical-style" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "overflow-x" | "overflow-y" | "max-height" | "max-width" | "min-height" | "min-width" | "padding-left" | "padding-right" | "padding-top" | "padding-bottom" | "padding-horizontal" | "padding-vertical" | "margin-left" | "margin-right" | "margin-top" | "margin-bottom" | "margin-horizontal" | "margin-vertical")[];
|
|
1941
1756
|
export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
|
|
1942
1757
|
/**
|
|
1943
1758
|
*
|
|
@@ -2189,7 +2004,7 @@ declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
|
2189
2004
|
export type EuiPaddingSize = typeof PADDING_SIZES[number];
|
|
2190
2005
|
export const euiPaddingSize: ({ euiTheme }: UseEuiTheme, size: EuiPaddingSize) => string | null;
|
|
2191
2006
|
export const useEuiPaddingSize: (size: EuiPaddingSize) => string | null;
|
|
2192
|
-
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "
|
|
2007
|
+
export const useEuiPaddingCSS: (side?: "left" | "right" | "top" | "bottom" | "horizontal" | "vertical" | undefined) => {
|
|
2193
2008
|
none: null;
|
|
2194
2009
|
xs: import("@emotion/utils").SerializedStyles;
|
|
2195
2010
|
s: import("@emotion/utils").SerializedStyles;
|
|
@@ -2217,60 +2032,286 @@ declare module '@elastic/eui/src/global_styling/mixins/_states' {
|
|
|
2217
2032
|
export const useEuiFocusRing: (offset?: _EuiFocusRingOffset, color?: CSSProperties['outlineColor']) => string;
|
|
2218
2033
|
|
|
2219
2034
|
}
|
|
2220
|
-
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
2221
|
-
import { CSSProperties } from 'react';
|
|
2222
|
-
import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
|
|
2223
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
2224
|
-
import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
|
|
2225
|
-
export type EuiThemeFontSize = {
|
|
2226
|
-
fontSize: CSSProperties['fontSize'];
|
|
2227
|
-
lineHeight: CSSProperties['lineHeight'];
|
|
2228
|
-
};
|
|
2229
|
-
/**
|
|
2230
|
-
* Returns font-size and line-height
|
|
2231
|
-
*/
|
|
2232
|
-
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
2233
|
-
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
2234
|
-
/**
|
|
2235
|
-
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
2236
|
-
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
2237
|
-
*/
|
|
2238
|
-
export const euiTextBreakWord: () => string;
|
|
2239
|
-
/**
|
|
2240
|
-
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
2241
|
-
*/
|
|
2242
|
-
export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
|
|
2035
|
+
declare module '@elastic/eui/src/global_styling/mixins/_typography' {
|
|
2036
|
+
import { CSSProperties } from 'react';
|
|
2037
|
+
import { _FontScaleOptions } from '@elastic/eui/src/global_styling/functions/typography';
|
|
2038
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
2039
|
+
import { _EuiThemeFontScale } from '@elastic/eui/src/global_styling/variables/typography';
|
|
2040
|
+
export type EuiThemeFontSize = {
|
|
2041
|
+
fontSize: CSSProperties['fontSize'];
|
|
2042
|
+
lineHeight: CSSProperties['lineHeight'];
|
|
2043
|
+
};
|
|
2044
|
+
/**
|
|
2045
|
+
* Returns font-size and line-height
|
|
2046
|
+
*/
|
|
2047
|
+
export const euiFontSize: ({ euiTheme }: UseEuiTheme, scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
2048
|
+
export const useEuiFontSize: (scale: _EuiThemeFontScale, options?: _FontScaleOptions | undefined) => EuiThemeFontSize;
|
|
2049
|
+
/**
|
|
2050
|
+
* Force text to wrap on natural word breaks (e.g. spaces & hyphens)
|
|
2051
|
+
* https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
2052
|
+
*/
|
|
2053
|
+
export const euiTextBreakWord: () => string;
|
|
2054
|
+
/**
|
|
2055
|
+
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
2056
|
+
*/
|
|
2057
|
+
export const euiTextTruncate: (maxWidth?: CSSProperties['maxWidth']) => string;
|
|
2058
|
+
/**
|
|
2059
|
+
* Fixed-width numbers for tabular data
|
|
2060
|
+
*/
|
|
2061
|
+
export const euiNumberFormat: ({ euiTheme }: UseEuiTheme) => string;
|
|
2062
|
+
export const useEuiNumberFormat: () => string;
|
|
2063
|
+
|
|
2064
|
+
}
|
|
2065
|
+
declare module '@elastic/eui/src/global_styling/mixins' {
|
|
2066
|
+
export * from '@elastic/eui/src/global_styling/mixins/_color';
|
|
2067
|
+
export * from '@elastic/eui/src/global_styling/mixins/_helpers';
|
|
2068
|
+
export * from '@elastic/eui/src/global_styling/mixins/_padding';
|
|
2069
|
+
export * from '@elastic/eui/src/global_styling/mixins/_states';
|
|
2070
|
+
export * from '@elastic/eui/src/global_styling/mixins/_typography';
|
|
2071
|
+
|
|
2072
|
+
}
|
|
2073
|
+
declare module '@elastic/eui/src/global_styling/reset/reset' {
|
|
2074
|
+
export const resetStyles = "\n/* // Adapted from Eric Meyer's reset (http://meyerweb.com/eric/tools/css/reset/, v2.0 | 20110126). */\n\n\n*, *:before, *:after {\n box-sizing: border-box;\n}\n\nhtml, body, div, span, applet, object, iframe,\nh1, h2, h3, h4, h5, h6, p, blockquote, pre,\na, abbr, acronym, address, big, cite, code,\ndel, dfn, em, img, ins, kbd, q, s, samp,\nsmall, strike, strong, sub, sup, tt, var,\nb, u, i, center,\ndl, dt, dd, ol, ul, li,\nfieldset, form, label, legend,\ntable, caption, tbody, tfoot, thead, tr, th, td,\narticle, aside, canvas, details, embed,\nfigure, figcaption, footer, header, hgroup,\nmenu, nav, output, ruby, section, summary,\ntime, mark, audio, video {\n margin: 0;\n padding: 0;\n border: none;\n vertical-align: baseline;\n}\n\nh1, h2, h3, h4, h5, h6, p {\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n}\n\n/* HTML5 display-role reset for older browsers */\narticle, aside, details, figcaption, figure,\nfooter, header, hgroup, menu, nav, section {\n display: block;\n}\n\na[href],\nbutton,\n[role='button'] {\n cursor: pointer;\n}\n\nbutton {\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n color: inherit;\n border-radius: 0;\n font-size: inherit;\n}\n\ninput {\n margin: 0;\n padding: 0;\n}\n\ninput:disabled {\n opacity: 1; /* required on iOS */\n}\n\nol,\nul {\n list-style: none;\n}\n\nblockquote,\nq {\n quotes: none;\n}\n\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n content: '';\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\nhr {\n margin: 0;\n}\n\nfieldset {\n min-inline-size: auto;\n}\n\n/* Chrome has an issue around RTL languages in SVGs when letter-spacing is negative\n * https://bugs.chromium.org/p/chromium/issues/detail?id=966480\n */\nsvg text {\n letter-spacing: normal !important;\n}";
|
|
2075
|
+
|
|
2076
|
+
}
|
|
2077
|
+
declare module '@elastic/eui/src/global_styling/reset/global_styles' {
|
|
2078
|
+
|
|
2079
|
+
export interface EuiGlobalStylesProps {
|
|
2080
|
+
}
|
|
2081
|
+
export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
|
|
2082
|
+
|
|
2083
|
+
}
|
|
2084
|
+
declare module '@elastic/eui/src/global_styling' {
|
|
2085
|
+
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
2086
|
+
export * from '@elastic/eui/src/global_styling/functions';
|
|
2087
|
+
export * from '@elastic/eui/src/global_styling/variables';
|
|
2088
|
+
export * from '@elastic/eui/src/global_styling/mixins';
|
|
2089
|
+
|
|
2090
|
+
}
|
|
2091
|
+
declare module '@elastic/eui/src/components/icon/icon.styles' {
|
|
2092
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2093
|
+
export const iconLoadingOpacity = 0.05;
|
|
2094
|
+
export const euiIconStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
2095
|
+
euiIcon: import("@emotion/utils").SerializedStyles;
|
|
2096
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
2097
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
2098
|
+
ghost: import("@emotion/utils").SerializedStyles;
|
|
2099
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
2100
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
2101
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
2102
|
+
text: import("@emotion/utils").SerializedStyles;
|
|
2103
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
2104
|
+
inherit: import("@emotion/utils").SerializedStyles;
|
|
2105
|
+
default: import("@emotion/utils").SerializedStyles;
|
|
2106
|
+
customColor: import("@emotion/utils").SerializedStyles;
|
|
2107
|
+
logoElasticOutline: import("@emotion/utils").SerializedStyles;
|
|
2108
|
+
original: import("@emotion/utils").SerializedStyles;
|
|
2109
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
2110
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
2111
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
2112
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
2113
|
+
xxl: import("@emotion/utils").SerializedStyles;
|
|
2114
|
+
app: import("@emotion/utils").SerializedStyles;
|
|
2115
|
+
logo: import("@emotion/utils").SerializedStyles;
|
|
2116
|
+
isLoading: import("@emotion/utils").SerializedStyles;
|
|
2117
|
+
isLoaded: import("@emotion/utils").SerializedStyles;
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2120
|
+
}
|
|
2121
|
+
declare module '@elastic/eui/src/components/icon/icon' {
|
|
2122
|
+
import React, { PureComponent, ComponentType, SVGAttributes } from 'react';
|
|
2123
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2124
|
+
import { typeToPathMap } from '@elastic/eui/src/components/icon/icon_map';
|
|
2125
|
+
import { WithEuiThemeProps } from '@elastic/eui/src/services';
|
|
2126
|
+
export { COLORS } from '@elastic/eui/src/components/icon/named_colors';
|
|
2127
|
+
import { NamedColor } from '@elastic/eui/src/components/icon/named_colors';
|
|
2128
|
+
export const TYPES: ("string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "alert" | "document" | "grid" | "list" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "tokenDate" | "tokenIP" | "tokenNested" | "tokenAlias" | "tokenShape" | "tokenGeo" | "tokenRange" | "tokenBinary" | "tokenJoin" | "tokenPercolator" | "tokenFlattened" | "tokenRankFeature" | "tokenRankFeatures" | "tokenKeyword" | "tokenTag" | "tokenCompletionSuggester" | "tokenDenseVector" | "tokenText" | "tokenTokenCount" | "tokenSearchType" | "tokenHistogram" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "keyboardShortcut" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp")[];
|
|
2129
|
+
export type EuiIconType = keyof typeof typeToPathMap;
|
|
2130
|
+
export type IconType = EuiIconType | string | ComponentType;
|
|
2131
|
+
export type IconColor = string | NamedColor;
|
|
2132
|
+
export const SIZES: readonly ["original", "s", "m", "l", "xl", "xxl"];
|
|
2133
|
+
export type IconSize = typeof SIZES[number];
|
|
2134
|
+
export type EuiIconProps = CommonProps & Omit<SVGAttributes<SVGElement>, 'type' | 'color' | 'size'> & {
|
|
2135
|
+
/**
|
|
2136
|
+
* `Enum` is any of the named icons listed in the docs, `string` is usually a URL to an SVG file, and `elementType` is any React SVG component
|
|
2137
|
+
*/
|
|
2138
|
+
type: IconType;
|
|
2139
|
+
/**
|
|
2140
|
+
* One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
|
|
2141
|
+
* Note that coloring only works if your SVG is removed of fill attributes.
|
|
2142
|
+
*/
|
|
2143
|
+
color?: IconColor;
|
|
2144
|
+
/**
|
|
2145
|
+
* Note that every size other than `original` assumes the provided SVG sits on a square viewbox.
|
|
2146
|
+
*/
|
|
2147
|
+
size?: IconSize;
|
|
2148
|
+
/**
|
|
2149
|
+
* Descriptive title for naming the icon based on its use
|
|
2150
|
+
*/
|
|
2151
|
+
title?: string;
|
|
2152
|
+
/**
|
|
2153
|
+
* A unique identifier for the title element
|
|
2154
|
+
*/
|
|
2155
|
+
titleId?: string;
|
|
2156
|
+
/**
|
|
2157
|
+
* Its value should be one or more element IDs
|
|
2158
|
+
*/
|
|
2159
|
+
'aria-labelledby'?: string;
|
|
2160
|
+
/**
|
|
2161
|
+
* Callback when the icon has been loaded & rendered
|
|
2162
|
+
*/
|
|
2163
|
+
onIconLoad?: () => void;
|
|
2164
|
+
};
|
|
2165
|
+
interface State {
|
|
2166
|
+
icon: undefined | ComponentType | string;
|
|
2167
|
+
iconTitle: undefined | string;
|
|
2168
|
+
isLoading: boolean;
|
|
2169
|
+
neededLoading: boolean;
|
|
2170
|
+
}
|
|
2171
|
+
export const clearIconComponentCache: (iconType?: "string" | "number" | "function" | "link" | "menu" | "filter" | "image" | "stop" | "alert" | "document" | "grid" | "list" | "search" | "temperature" | "color" | "accessibility" | "aggregate" | "analyzeEvent" | "annotation" | "apps" | "arrowStart" | "arrowEnd" | "asterisk" | "beaker" | "bell" | "bellSlash" | "bolt" | "branch" | "branchUser" | "broom" | "brush" | "bug" | "bullseye" | "calendar" | "check" | "checkInCircleFilled" | "cheer" | "clock" | "cloudDrizzle" | "cloudStormy" | "cloudSunny" | "compute" | "console" | "continuityAbove" | "continuityAboveBelow" | "continuityBelow" | "continuityWithin" | "copy" | "cross" | "crossInACircleFilled" | "crosshairs" | "currency" | "cut" | "database" | "desktop" | "documentEdit" | "documentation" | "documents" | "dot" | "doubleArrowLeft" | "doubleArrowRight" | "download" | "editorDistributeHorizontal" | "editorDistributeVertical" | "editorItemAlignBottom" | "editorItemAlignCenter" | "editorItemAlignLeft" | "editorItemAlignMiddle" | "editorItemAlignRight" | "editorItemAlignTop" | "editorPositionBottomLeft" | "editorPositionBottomRight" | "editorPositionTopLeft" | "editorPositionTopRight" | "email" | "empty" | "eql" | "eraser" | "exit" | "expand" | "expandMini" | "eye" | "flag" | "fold" | "frameNext" | "framePrevious" | "fullScreenExit" | "gear" | "glasses" | "globe" | "grab" | "heart" | "heatmap" | "help" | "home" | "iInCircle" | "inputOutput" | "inspect" | "invert" | "ip" | "layers" | "lettering" | "lineDashed" | "lineDotted" | "lineSolid" | "lock" | "lockOpen" | "magnet" | "magnifyWithExclamation" | "magnifyWithMinus" | "magnifyWithPlus" | "memory" | "menuDown" | "menuLeft" | "menuRight" | "menuUp" | "merge" | "minimize" | "minus" | "mobile" | "moon" | "nested" | "node" | "offline" | "online" | "package" | "pageSelect" | "pagesSelect" | "partial" | "pause" | "payment" | "pencil" | "percent" | "pin" | "play" | "playFilled" | "plus" | "popout" | "push" | "quote" | "refresh" | "reporter" | "save" | "scale" | "securitySignal" | "securitySignalDetected" | "securitySignalResolved" | "sessionViewer" | "shard" | "share" | "snowflake" | "sortLeft" | "sortRight" | "sortable" | "starPlusEmpty" | "starPlusFilled" | "stats" | "storage" | "submodule" | "sun" | "symlink" | "tableOfContents" | "tag" | "tear" | "timeline" | "timeRefresh" | "timeslider" | "training" | "trash" | "unfold" | "unlink" | "user" | "userAvatar" | "users" | "vector" | "videoPlayer" | "wordWrap" | "wordWrapDisabled" | "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" | "tokenDate" | "tokenIP" | "tokenNested" | "tokenAlias" | "tokenShape" | "tokenGeo" | "tokenRange" | "tokenBinary" | "tokenJoin" | "tokenPercolator" | "tokenFlattened" | "tokenRankFeature" | "tokenRankFeatures" | "tokenKeyword" | "tokenTag" | "tokenCompletionSuggester" | "tokenDenseVector" | "tokenText" | "tokenTokenCount" | "tokenSearchType" | "tokenHistogram" | "addDataApp" | "advancedSettingsApp" | "agentApp" | "apmApp" | "apmTrace" | "appSearchApp" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "auditbeatApp" | "boxesHorizontal" | "boxesVertical" | "canvasApp" | "casesApp" | "classificationJob" | "codeApp" | "consoleApp" | "controlsHorizontal" | "controlsVertical" | "copyClipboard" | "createAdvancedJob" | "createMultiMetricJob" | "createPopulationJob" | "createSingleMetricJob" | "crossClusterReplicationApp" | "dashboardApp" | "dataVisualizer" | "devToolsApp" | "discoverApp" | "editorAlignCenter" | "editorAlignLeft" | "editorAlignRight" | "editorBold" | "editorChecklist" | "editorCodeBlock" | "editorComment" | "editorHeading" | "editorItalic" | "editorLink" | "editorOrderedList" | "editorRedo" | "editorStrike" | "editorTable" | "editorUnderline" | "editorUndo" | "editorUnorderedList" | "emsApp" | "exportAction" | "eyeClosed" | "faceHappy" | "faceNeutral" | "faceSad" | "filebeatApp" | "fleetApp" | "folderCheck" | "folderClosed" | "folderExclamation" | "folderOpen" | "fullScreen" | "gisApp" | "grabHorizontal" | "graphApp" | "grokApp" | "heartbeatApp" | "importAction" | "indexClose" | "indexEdit" | "indexFlush" | "indexManagementApp" | "indexMapping" | "indexOpen" | "indexPatternApp" | "indexRollupApp" | "indexRuntime" | "indexSettings" | "keyboardShortcut" | "kqlField" | "kqlFunction" | "kqlOperand" | "kqlSelector" | "kqlValue" | "lensApp" | "listAdd" | "logoAWS" | "logoAWSMono" | "logoAerospike" | "logoApache" | "logoAppSearch" | "logoAzure" | "logoAzureMono" | "logoBeats" | "logoBusinessAnalytics" | "logoCeph" | "logoCloud" | "logoCloudEnterprise" | "logoCode" | "logoCodesandbox" | "logoCouchbase" | "logoDocker" | "logoDropwizard" | "logoElastic" | "logoElasticStack" | "logoElasticsearch" | "logoEnterpriseSearch" | "logoEtcd" | "logoGCP" | "logoGCPMono" | "logoGithub" | "logoGmail" | "logoGolang" | "logoGoogleG" | "logoHAproxy" | "logoIBM" | "logoIBMMono" | "logoKafka" | "logoKibana" | "logoKubernetes" | "logoLogging" | "logoLogstash" | "logoMaps" | "logoMemcached" | "logoMetrics" | "logoMongodb" | "logoMySQL" | "logoNginx" | "logoObservability" | "logoOsquery" | "logoPhp" | "logoPostgres" | "logoPrometheus" | "logoRabbitmq" | "logoRedis" | "logoSecurity" | "logoSiteSearch" | "logoSketch" | "logoSlack" | "logoUptime" | "logoWebhook" | "logoWindows" | "logoWorkplaceSearch" | "logsApp" | "logstashFilter" | "logstashIf" | "logstashInput" | "logstashOutput" | "logstashQueue" | "machineLearningApp" | "managementApp" | "mapMarker" | "metricbeatApp" | "metricsApp" | "minusInCircle" | "minusInCircleFilled" | "monitoringApp" | "notebookApp" | "outlierDetectionJob" | "packetbeatApp" | "paperClip" | "pinFilled" | "pipelineApp" | "plusInCircle" | "plusInCircleFilled" | "questionInCircle" | "recentlyViewedApp" | "regressionJob" | "reportingApp" | "returnKey" | "savedObjectsApp" | "searchProfilerApp" | "securityAnalyticsApp" | "securityApp" | "sortDown" | "sortUp" | "spacesApp" | "sqlApp" | "starEmpty" | "starEmptySpace" | "starFilled" | "starFilledSpace" | "starMinusEmpty" | "starMinusFilled" | "stopFilled" | "stopSlash" | "swatchInput" | "tableDensityCompact" | "tableDensityExpanded" | "tableDensityNormal" | "timelionApp" | "upgradeAssistantApp" | "uptimeApp" | "usersRolesApp" | "visArea" | "visAreaStacked" | "visBarHorizontal" | "visBarHorizontalStacked" | "visBarVertical" | "visBarVerticalStacked" | "visGauge" | "visGoal" | "visLine" | "visMapCoordinate" | "visMapRegion" | "visMetric" | "visPie" | "visTable" | "visTagCloud" | "visText" | "visTimelion" | "visVega" | "visVisualBuilder" | "visualizeApp" | "watchesApp" | "workplaceSearchApp" | undefined) => void;
|
|
2172
|
+
export const appendIconComponentCache: (iconTypeToIconComponentMap: {
|
|
2173
|
+
[iconType: string]: React.ComponentType<{}>;
|
|
2174
|
+
}) => void;
|
|
2175
|
+
export class EuiIconClass extends PureComponent<EuiIconProps & WithEuiThemeProps, State> {
|
|
2176
|
+
isMounted: boolean;
|
|
2177
|
+
constructor(props: EuiIconProps & WithEuiThemeProps);
|
|
2178
|
+
componentDidMount(): void;
|
|
2179
|
+
componentDidUpdate(prevProps: EuiIconProps): void;
|
|
2180
|
+
componentWillUnmount(): void;
|
|
2181
|
+
loadIconComponent: (iconType: EuiIconType) => void;
|
|
2182
|
+
onIconLoad: () => void;
|
|
2183
|
+
render(): JSX.Element;
|
|
2184
|
+
}
|
|
2185
|
+
export const EuiIcon: React.ForwardRefExoticComponent<Omit<EuiIconProps, "theme"> & React.RefAttributes<Omit<EuiIconProps, "theme">>>;
|
|
2186
|
+
|
|
2187
|
+
}
|
|
2188
|
+
declare module '@elastic/eui/src/components/icon' {
|
|
2189
|
+
export type { EuiIconProps, IconColor, IconSize, IconType } from '@elastic/eui/src/components/icon/icon';
|
|
2190
|
+
export { EuiIcon, TYPES as ICON_TYPES, SIZES as ICON_SIZES, COLORS as ICON_COLORS, } from '@elastic/eui/src/components/icon/icon';
|
|
2191
|
+
|
|
2192
|
+
}
|
|
2193
|
+
declare module '@elastic/eui/src/components/context/context' {
|
|
2194
|
+
import React, { Context, FunctionComponent, ReactChild, ReactNode } from 'react';
|
|
2195
|
+
export interface RenderableValues {
|
|
2196
|
+
[key: string]: ReactChild | undefined;
|
|
2197
|
+
}
|
|
2198
|
+
export type Renderable<T> = ReactChild | ((values: T) => ReactChild);
|
|
2199
|
+
export interface I18nShape {
|
|
2200
|
+
mapping?: {
|
|
2201
|
+
[key: string]: Renderable<object>;
|
|
2202
|
+
};
|
|
2203
|
+
mappingFunc?: (value: string) => string;
|
|
2204
|
+
/**
|
|
2205
|
+
* Some browsers' translation features don't work with a rendered `<Fragment>` component.
|
|
2206
|
+
* The `render` function allows you to pass in another component instead, e.g. `<div>`
|
|
2207
|
+
*/
|
|
2208
|
+
render?: (children: any) => FunctionComponent;
|
|
2209
|
+
formatNumber?: (x: number) => string;
|
|
2210
|
+
formatDateTime?: (x: Date) => string;
|
|
2211
|
+
locale?: string;
|
|
2212
|
+
} const I18nContext: Context<I18nShape>; const EuiI18nConsumer: React.Consumer<I18nShape>;
|
|
2213
|
+
export interface EuiContextProps {
|
|
2214
|
+
i18n: I18nShape;
|
|
2215
|
+
/**
|
|
2216
|
+
* ReactNode to render as this component's content
|
|
2217
|
+
*/
|
|
2218
|
+
children: ReactNode;
|
|
2219
|
+
} const EuiContext: FunctionComponent<EuiContextProps>;
|
|
2220
|
+
export { EuiContext, EuiI18nConsumer, I18nContext };
|
|
2221
|
+
|
|
2222
|
+
}
|
|
2223
|
+
declare module '@elastic/eui/src/components/context' {
|
|
2224
|
+
export type { EuiContextProps } from '@elastic/eui/src/components/context/context';
|
|
2225
|
+
export { EuiContext, EuiI18nConsumer } from '@elastic/eui/src/components/context/context';
|
|
2226
|
+
|
|
2227
|
+
}
|
|
2228
|
+
declare module '@elastic/eui/src/services/predicate/common_predicates' {
|
|
2229
|
+
import moment from 'moment';
|
|
2230
|
+
export const always: (_value?: any) => boolean;
|
|
2231
|
+
export const never: (_value?: any) => boolean;
|
|
2232
|
+
export const isUndefined: (value: any) => value is undefined;
|
|
2233
|
+
export const isNull: (value: any) => value is null;
|
|
2234
|
+
export const isNil: (value: any) => value is null | undefined;
|
|
2235
|
+
export const isMoment: (value: any) => boolean;
|
|
2236
|
+
export const isDate: (value: any) => value is Date;
|
|
2237
|
+
export const isDateLike: (value: any) => value is Date | moment.Moment;
|
|
2238
|
+
|
|
2239
|
+
}
|
|
2240
|
+
declare module '@elastic/eui/src/services/predicate/lodash_predicates' {
|
|
2241
|
+
export const isFunction: (value: any) => value is (...args: any[]) => any;
|
|
2242
|
+
export const isArray: (value: any) => value is any[];
|
|
2243
|
+
export const isString: (value: any) => value is string;
|
|
2244
|
+
export const isBoolean: (value: any) => value is boolean;
|
|
2245
|
+
export const isNumber: (value: any) => value is number;
|
|
2246
|
+
export const isNaN: (value: any) => boolean;
|
|
2247
|
+
export const isObject: (value: any) => value is object;
|
|
2248
|
+
|
|
2249
|
+
}
|
|
2250
|
+
declare module '@elastic/eui/src/services/predicate' {
|
|
2251
|
+
export * from '@elastic/eui/src/services/predicate/common_predicates';
|
|
2252
|
+
export * from '@elastic/eui/src/services/predicate/lodash_predicates';
|
|
2253
|
+
|
|
2254
|
+
}
|
|
2255
|
+
declare module '@elastic/eui/src/components/i18n/i18n_util' {
|
|
2256
|
+
import { ReactChild } from 'react';
|
|
2257
|
+
import { RenderableValues } from '@elastic/eui/src/components/context/context';
|
|
2243
2258
|
/**
|
|
2244
|
-
*
|
|
2259
|
+
* Replaces placeholder values in `input` with their matching value in `values`
|
|
2260
|
+
* e.g. input:'Hello, {name}' will replace `{name}` with `values[name]`
|
|
2261
|
+
* @param {string} input
|
|
2262
|
+
* @param {RenderableValues} values
|
|
2263
|
+
* @param {Function} i18nMappingFunc
|
|
2264
|
+
* @returns {string | React.ReactChild[]}
|
|
2245
2265
|
*/
|
|
2246
|
-
export
|
|
2247
|
-
export const useEuiNumberFormat: () => string;
|
|
2266
|
+
export function processStringToChildren(input: string, values: RenderableValues, i18nMappingFunc?: (token: string) => string): string | ReactChild[];
|
|
2248
2267
|
|
|
2249
2268
|
}
|
|
2250
|
-
declare module '@elastic/eui/src/
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2269
|
+
declare module '@elastic/eui/src/components/i18n/i18n' {
|
|
2270
|
+
import { ReactChild, ReactElement } from 'react';
|
|
2271
|
+
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
2272
|
+
import { Renderable } from '@elastic/eui/src/components/context/context'; type ResolvedType<T> = T extends (...args: any[]) => any ? ReturnType<T> : T;
|
|
2273
|
+
interface I18nTokenShape<T, DEFAULT extends Renderable<T>> {
|
|
2274
|
+
token: string;
|
|
2275
|
+
default: DEFAULT;
|
|
2276
|
+
children?: (x: ResolvedType<DEFAULT>) => ReactChild;
|
|
2277
|
+
values?: T;
|
|
2278
|
+
}
|
|
2279
|
+
interface I18nTokensShape<T extends any[]> {
|
|
2280
|
+
tokens: string[];
|
|
2281
|
+
defaults: T;
|
|
2282
|
+
children: (x: Array<T[number]>) => ReactChild;
|
|
2283
|
+
}
|
|
2284
|
+
export type EuiI18nProps<T, DEFAULT extends Renderable<T>, DEFAULTS extends any[]> = ExclusiveUnion<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>>; const EuiI18n: <T extends {}, DEFAULT extends Renderable<T>, DEFAULTS extends any[]>(props: (import ("@elastic/eui/src/components/common").DisambiguateSet<I18nTokenShape<T, DEFAULT>, I18nTokensShape<DEFAULTS>> & I18nTokensShape<DEFAULTS>) | (import ("@elastic/eui/src/components/common").DisambiguateSet<I18nTokensShape<DEFAULTS>, I18nTokenShape<T, DEFAULT>> & I18nTokenShape<T, DEFAULT>)) => JSX.Element; type DefaultRenderType<T, K extends Renderable<T>> = K extends ReactChild ? K : K extends () => infer RetValue ? RetValue : never; type DefaultsRenderType<K extends Array<string | ReactElement>> = K extends Array<infer Item> ? Item : never; function useEuiI18n<T extends {}, DEFAULT extends Renderable<T>>(token: string, defaultValue: DEFAULT, values?: T): DefaultRenderType<T, DEFAULT>; function useEuiI18n<DEFAULTS extends Array<string | ReactElement>>(tokens: string[], defaultValues: DEFAULTS): Array<DefaultsRenderType<DEFAULTS>>;
|
|
2285
|
+
export { EuiI18n, useEuiI18n };
|
|
2256
2286
|
|
|
2257
2287
|
}
|
|
2258
|
-
declare module '@elastic/eui/src/
|
|
2259
|
-
|
|
2288
|
+
declare module '@elastic/eui/src/components/i18n/i18n_number' {
|
|
2289
|
+
import { FunctionComponent, ReactChild, ReactElement } from 'react';
|
|
2290
|
+
import { ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
2291
|
+
interface EuiI18nNumberValueShape {
|
|
2292
|
+
value: number;
|
|
2293
|
+
children?: (x: ReactChild) => ReactElement<any>;
|
|
2294
|
+
}
|
|
2295
|
+
interface EuiI18nNumberValuesShape {
|
|
2296
|
+
values: number[];
|
|
2297
|
+
/**
|
|
2298
|
+
* ReactNode to render as this component's content
|
|
2299
|
+
*/
|
|
2300
|
+
children: (x: ReactChild[]) => ReactElement<any>;
|
|
2301
|
+
}
|
|
2302
|
+
export type EuiI18nNumberProps = ExclusiveUnion<EuiI18nNumberValueShape, EuiI18nNumberValuesShape>; const EuiI18nNumber: FunctionComponent<EuiI18nNumberProps>;
|
|
2303
|
+
export { EuiI18nNumber };
|
|
2260
2304
|
|
|
2261
2305
|
}
|
|
2262
|
-
declare module '@elastic/eui/src/
|
|
2263
|
-
|
|
2264
|
-
export
|
|
2265
|
-
}
|
|
2266
|
-
export
|
|
2306
|
+
declare module '@elastic/eui/src/components/i18n' {
|
|
2307
|
+
export type { EuiI18nProps } from '@elastic/eui/src/components/i18n/i18n';
|
|
2308
|
+
export { EuiI18n, useEuiI18n } from '@elastic/eui/src/components/i18n/i18n';
|
|
2309
|
+
export type { EuiI18nNumberProps } from '@elastic/eui/src/components/i18n/i18n_number';
|
|
2310
|
+
export { EuiI18nNumber } from '@elastic/eui/src/components/i18n/i18n_number';
|
|
2267
2311
|
|
|
2268
2312
|
}
|
|
2269
|
-
declare module '@elastic/eui/src/
|
|
2270
|
-
export
|
|
2271
|
-
export * from '@elastic/eui/src/global_styling/functions';
|
|
2272
|
-
export * from '@elastic/eui/src/global_styling/variables';
|
|
2273
|
-
export * from '@elastic/eui/src/global_styling/mixins';
|
|
2313
|
+
declare module '@elastic/eui/src/components/loading/_loading_strings' {
|
|
2314
|
+
export const useLoadingAriaLabel: () => string;
|
|
2274
2315
|
|
|
2275
2316
|
}
|
|
2276
2317
|
declare module '@elastic/eui/src/components/loading/loading_elastic.styles' {
|
|
@@ -2633,7 +2674,7 @@ declare module '@elastic/eui/src/components/button/button_icon/button_icon' {
|
|
|
2633
2674
|
empty: string;
|
|
2634
2675
|
fill: string;
|
|
2635
2676
|
};
|
|
2636
|
-
export const DISPLAYS: ("base" | "
|
|
2677
|
+
export const DISPLAYS: ("base" | "empty" | "fill")[]; type EuiButtonIconDisplay = keyof typeof displayToClassNameMap;
|
|
2637
2678
|
export interface EuiButtonIconProps extends CommonProps {
|
|
2638
2679
|
iconType: IconType;
|
|
2639
2680
|
/**
|
|
@@ -2994,18 +3035,6 @@ declare module '@elastic/eui/src/components/form/checkbox' {
|
|
|
2994
3035
|
export type { EuiCheckboxGroupProps, EuiCheckboxGroupOption, } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
|
|
2995
3036
|
export { EuiCheckboxGroup } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
|
|
2996
3037
|
|
|
2997
|
-
}
|
|
2998
|
-
declare module '@elastic/eui/src/services/theme/clone_element' {
|
|
2999
|
-
import React from 'react';
|
|
3000
|
-
/**
|
|
3001
|
-
* React.cloneElement does not work if the cloned element does not already have the
|
|
3002
|
-
* `css` prop - as a result, we need to use `jsx()` to manually clone the element
|
|
3003
|
-
* See https://github.com/emotion-js/emotion/issues/1404
|
|
3004
|
-
*
|
|
3005
|
-
* NOTE: We're still using/testing this utility internally, so this is not yet a public API
|
|
3006
|
-
*/
|
|
3007
|
-
export const cloneElementWithCss: (element: any, props: any) => React.ReactElement;
|
|
3008
|
-
|
|
3009
3038
|
}
|
|
3010
3039
|
declare module '@elastic/eui/src/components/title/title.styles' {
|
|
3011
3040
|
import { CSSProperties } from 'react';
|
|
@@ -3792,43 +3821,82 @@ declare module '@elastic/eui/src/components/form/field_text' {
|
|
|
3792
3821
|
export type { EuiFieldTextProps } from '@elastic/eui/src/components/form/field_text/field_text';
|
|
3793
3822
|
export { EuiFieldText } from '@elastic/eui/src/components/form/field_text/field_text';
|
|
3794
3823
|
|
|
3824
|
+
}
|
|
3825
|
+
declare module '@elastic/eui/src/components/progress/progress.styles' {
|
|
3826
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
3827
|
+
/**
|
|
3828
|
+
* Emotion styles
|
|
3829
|
+
*/
|
|
3830
|
+
export const euiProgressStyles: ({ euiTheme }: UseEuiTheme, isNative: boolean) => {
|
|
3831
|
+
euiProgress: import("@emotion/utils").SerializedStyles;
|
|
3832
|
+
native: import("@emotion/utils").SerializedStyles;
|
|
3833
|
+
indeterminate: import("@emotion/utils").SerializedStyles;
|
|
3834
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
3835
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
3836
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
3837
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
3838
|
+
fixed: import("@emotion/utils").SerializedStyles;
|
|
3839
|
+
absolute: import("@emotion/utils").SerializedStyles;
|
|
3840
|
+
static: import("@emotion/utils").SerializedStyles;
|
|
3841
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
3842
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
3843
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
3844
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
3845
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
3846
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
3847
|
+
vis0: import("@emotion/utils").SerializedStyles;
|
|
3848
|
+
vis1: import("@emotion/utils").SerializedStyles;
|
|
3849
|
+
vis2: import("@emotion/utils").SerializedStyles;
|
|
3850
|
+
vis3: import("@emotion/utils").SerializedStyles;
|
|
3851
|
+
vis4: import("@emotion/utils").SerializedStyles;
|
|
3852
|
+
vis5: import("@emotion/utils").SerializedStyles;
|
|
3853
|
+
vis6: import("@emotion/utils").SerializedStyles;
|
|
3854
|
+
vis7: import("@emotion/utils").SerializedStyles;
|
|
3855
|
+
vis8: import("@emotion/utils").SerializedStyles;
|
|
3856
|
+
vis9: import("@emotion/utils").SerializedStyles;
|
|
3857
|
+
customColor: import("@emotion/utils").SerializedStyles;
|
|
3858
|
+
};
|
|
3859
|
+
/**
|
|
3860
|
+
* Data styles
|
|
3861
|
+
*/
|
|
3862
|
+
export const euiProgressDataStyles: (euiThemeContext: UseEuiTheme) => {
|
|
3863
|
+
euiProgress__data: import("@emotion/utils").SerializedStyles;
|
|
3864
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
3865
|
+
};
|
|
3866
|
+
export const euiProgressLabelStyles: {
|
|
3867
|
+
euiProgress__label: import("@emotion/utils").SerializedStyles;
|
|
3868
|
+
};
|
|
3869
|
+
export const euiProgressValueTextStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
3870
|
+
euiProgress__valueText: import("@emotion/utils").SerializedStyles;
|
|
3871
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
3872
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
3873
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
3874
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
3875
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
3876
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
3877
|
+
vis0: import("@emotion/utils").SerializedStyles;
|
|
3878
|
+
vis1: import("@emotion/utils").SerializedStyles;
|
|
3879
|
+
vis2: import("@emotion/utils").SerializedStyles;
|
|
3880
|
+
vis3: import("@emotion/utils").SerializedStyles;
|
|
3881
|
+
vis4: import("@emotion/utils").SerializedStyles;
|
|
3882
|
+
vis5: import("@emotion/utils").SerializedStyles;
|
|
3883
|
+
vis6: import("@emotion/utils").SerializedStyles;
|
|
3884
|
+
vis7: import("@emotion/utils").SerializedStyles;
|
|
3885
|
+
vis8: import("@emotion/utils").SerializedStyles;
|
|
3886
|
+
vis9: import("@emotion/utils").SerializedStyles;
|
|
3887
|
+
customColor: import("@emotion/utils").SerializedStyles;
|
|
3888
|
+
};
|
|
3889
|
+
|
|
3795
3890
|
}
|
|
3796
3891
|
declare module '@elastic/eui/src/components/progress/progress' {
|
|
3797
3892
|
import { FunctionComponent, HTMLAttributes, ProgressHTMLAttributes, ReactNode, CSSProperties } from 'react';
|
|
3798
|
-
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
export
|
|
3805
|
-
export type EuiProgressSize = keyof typeof sizeToClassNameMap;
|
|
3806
|
-
export type ProgressColor = 'primary' | 'success' | 'warning' | 'danger' | 'subdued' | 'accent' | 'vis0' | 'vis1' | 'vis2' | 'vis3' | 'vis4' | 'vis5' | 'vis6' | 'vis7' | 'vis8' | 'vis9'; const colorToClassNameMap: {
|
|
3807
|
-
primary: string;
|
|
3808
|
-
success: string;
|
|
3809
|
-
warning: string;
|
|
3810
|
-
danger: string;
|
|
3811
|
-
subdued: string;
|
|
3812
|
-
accent: string;
|
|
3813
|
-
vis0: string;
|
|
3814
|
-
vis1: string;
|
|
3815
|
-
vis2: string;
|
|
3816
|
-
vis3: string;
|
|
3817
|
-
vis4: string;
|
|
3818
|
-
vis5: string;
|
|
3819
|
-
vis6: string;
|
|
3820
|
-
vis7: string;
|
|
3821
|
-
vis8: string;
|
|
3822
|
-
vis9: string;
|
|
3823
|
-
};
|
|
3824
|
-
export const COLORS: ("primary" | "success" | "accent" | "warning" | "danger" | "subdued" | "vis0" | "vis1" | "vis2" | "vis3" | "vis4" | "vis5" | "vis6" | "vis7" | "vis8" | "vis9")[];
|
|
3825
|
-
export type EuiProgressColor = keyof typeof colorToClassNameMap; const positionsToClassNameMap: {
|
|
3826
|
-
fixed: string;
|
|
3827
|
-
absolute: string;
|
|
3828
|
-
static: string;
|
|
3829
|
-
};
|
|
3830
|
-
export const POSITIONS: ("fixed" | "absolute" | "static")[];
|
|
3831
|
-
export type EuiProgressPosition = keyof typeof positionsToClassNameMap;
|
|
3893
|
+
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
3894
|
+
export const SIZES: readonly ["xs", "s", "m", "l"];
|
|
3895
|
+
export type EuiProgressSize = typeof SIZES[number];
|
|
3896
|
+
export const COLORS: readonly ["primary", "success", "warning", "danger", "subdued", "accent", "vis0", "vis1", "vis2", "vis3", "vis4", "vis5", "vis6", "vis7", "vis8", "vis9"];
|
|
3897
|
+
export type EuiProgressColor = typeof COLORS[number];
|
|
3898
|
+
export const POSITIONS: readonly ["fixed", "absolute", "static"];
|
|
3899
|
+
export type EuiProgressPosition = typeof POSITIONS[number];
|
|
3832
3900
|
export type EuiProgressProps = CommonProps & {
|
|
3833
3901
|
size?: EuiProgressSize;
|
|
3834
3902
|
/**
|
|
@@ -5777,7 +5845,7 @@ declare module '@elastic/eui/src/components/tool_tip/icon_tip' {
|
|
|
5777
5845
|
/**
|
|
5778
5846
|
* Pass certain props down to `EuiIcon`
|
|
5779
5847
|
*/
|
|
5780
|
-
iconProps?: Omit<PropsOf<EuiIcon>, 'type'> & {
|
|
5848
|
+
iconProps?: Omit<PropsOf<typeof EuiIcon>, 'type'> & {
|
|
5781
5849
|
type?: never;
|
|
5782
5850
|
};
|
|
5783
5851
|
} type Props = Omit<EuiToolTipProps, 'children' | 'delay' | 'position'> & EuiIconTipProps & {
|
|
@@ -7100,135 +7168,7 @@ declare module '@elastic/eui/src/components/accordion/accordion' {
|
|
|
7100
7168
|
generatedId: string;
|
|
7101
7169
|
render(): JSX.Element;
|
|
7102
7170
|
}
|
|
7103
|
-
export const EuiAccordion: React.ForwardRefExoticComponent<Omit<
|
|
7104
|
-
id: string;
|
|
7105
|
-
/**
|
|
7106
|
-
* Applied to the entire .euiAccordion wrapper.
|
|
7107
|
-
* When using `fieldset`, it will enforce `buttonElement = legend` as well.
|
|
7108
|
-
*/
|
|
7109
|
-
element?: "div" | "fieldset" | undefined;
|
|
7110
|
-
/**
|
|
7111
|
-
* Class that will apply to the trigger for the accordion.
|
|
7112
|
-
*/
|
|
7113
|
-
buttonClassName?: string | undefined;
|
|
7114
|
-
/**
|
|
7115
|
-
* Apply more props to the triggering button
|
|
7116
|
-
*/
|
|
7117
|
-
buttonProps?: (CommonProps & React.HTMLAttributes<HTMLElement>) | undefined;
|
|
7118
|
-
/**
|
|
7119
|
-
* Class that will apply to the trigger content for the accordion.
|
|
7120
|
-
*/
|
|
7121
|
-
buttonContentClassName?: string | undefined;
|
|
7122
|
-
/**
|
|
7123
|
-
* The content of the clickable trigger
|
|
7124
|
-
*/
|
|
7125
|
-
buttonContent?: ReactNode;
|
|
7126
|
-
/**
|
|
7127
|
-
* Applied to the main button receiving the `onToggle` event.
|
|
7128
|
-
* Anything other than the default `button` does not support removing the arrow display (for accessibility of focus).
|
|
7129
|
-
*/
|
|
7130
|
-
buttonElement?: "button" | "div" | "legend" | undefined;
|
|
7131
|
-
/**
|
|
7132
|
-
* Extra props to pass to the EuiButtonIcon containing the arrow.
|
|
7133
|
-
*/
|
|
7134
|
-
arrowProps?: Partial<Omit<EuiButtonIconProps, "aria-labelledby" | "onClick" | "iconType">> | undefined;
|
|
7135
|
-
/**
|
|
7136
|
-
* Will appear right aligned against the button. Useful for separate actions like deletions.
|
|
7137
|
-
*/
|
|
7138
|
-
extraAction?: ReactNode;
|
|
7139
|
-
/**
|
|
7140
|
-
* The accordion will start in the open state.
|
|
7141
|
-
*/
|
|
7142
|
-
initialIsOpen?: boolean | undefined;
|
|
7143
|
-
/**
|
|
7144
|
-
* Optional callback method called on open and close with a single `isOpen` parameter
|
|
7145
|
-
*/
|
|
7146
|
-
onToggle?: ((isOpen: boolean) => void) | undefined;
|
|
7147
|
-
/**
|
|
7148
|
-
* The padding around the exposed accordion content.
|
|
7149
|
-
*/
|
|
7150
|
-
paddingSize?: "s" | "none" | "xs" | "m" | "l" | "xl" | undefined;
|
|
7151
|
-
/**
|
|
7152
|
-
* Placement of the arrow indicator, or 'none' to hide it.
|
|
7153
|
-
*/
|
|
7154
|
-
arrowDisplay?: "none" | "left" | "right" | undefined;
|
|
7155
|
-
/**
|
|
7156
|
-
* Control the opening of accordion via prop
|
|
7157
|
-
*/
|
|
7158
|
-
forceState?: "open" | "closed" | undefined;
|
|
7159
|
-
/**
|
|
7160
|
-
* Change `extraAction` and children into a loading spinner
|
|
7161
|
-
*/
|
|
7162
|
-
isLoading?: boolean | undefined;
|
|
7163
|
-
/**
|
|
7164
|
-
* Choose whether the loading message replaces the content. Customize the message by passing a node
|
|
7165
|
-
*/
|
|
7166
|
-
isLoadingMessage?: boolean | ReactNode;
|
|
7167
|
-
}, "theme"> & React.RefAttributes<Omit<WithEuiThemeProps<{}> & CommonProps & Omit<React.HTMLAttributes<HTMLElement>, "id"> & {
|
|
7168
|
-
id: string;
|
|
7169
|
-
/**
|
|
7170
|
-
* Applied to the entire .euiAccordion wrapper.
|
|
7171
|
-
* When using `fieldset`, it will enforce `buttonElement = legend` as well.
|
|
7172
|
-
*/
|
|
7173
|
-
element?: "div" | "fieldset" | undefined;
|
|
7174
|
-
/**
|
|
7175
|
-
* Class that will apply to the trigger for the accordion.
|
|
7176
|
-
*/
|
|
7177
|
-
buttonClassName?: string | undefined;
|
|
7178
|
-
/**
|
|
7179
|
-
* Apply more props to the triggering button
|
|
7180
|
-
*/
|
|
7181
|
-
buttonProps?: (CommonProps & React.HTMLAttributes<HTMLElement>) | undefined;
|
|
7182
|
-
/**
|
|
7183
|
-
* Class that will apply to the trigger content for the accordion.
|
|
7184
|
-
*/
|
|
7185
|
-
buttonContentClassName?: string | undefined;
|
|
7186
|
-
/**
|
|
7187
|
-
* The content of the clickable trigger
|
|
7188
|
-
*/
|
|
7189
|
-
buttonContent?: ReactNode;
|
|
7190
|
-
/**
|
|
7191
|
-
* Applied to the main button receiving the `onToggle` event.
|
|
7192
|
-
* Anything other than the default `button` does not support removing the arrow display (for accessibility of focus).
|
|
7193
|
-
*/
|
|
7194
|
-
buttonElement?: "button" | "div" | "legend" | undefined;
|
|
7195
|
-
/**
|
|
7196
|
-
* Extra props to pass to the EuiButtonIcon containing the arrow.
|
|
7197
|
-
*/
|
|
7198
|
-
arrowProps?: Partial<Omit<EuiButtonIconProps, "aria-labelledby" | "onClick" | "iconType">> | undefined;
|
|
7199
|
-
/**
|
|
7200
|
-
* Will appear right aligned against the button. Useful for separate actions like deletions.
|
|
7201
|
-
*/
|
|
7202
|
-
extraAction?: ReactNode;
|
|
7203
|
-
/**
|
|
7204
|
-
* The accordion will start in the open state.
|
|
7205
|
-
*/
|
|
7206
|
-
initialIsOpen?: boolean | undefined;
|
|
7207
|
-
/**
|
|
7208
|
-
* Optional callback method called on open and close with a single `isOpen` parameter
|
|
7209
|
-
*/
|
|
7210
|
-
onToggle?: ((isOpen: boolean) => void) | undefined;
|
|
7211
|
-
/**
|
|
7212
|
-
* The padding around the exposed accordion content.
|
|
7213
|
-
*/
|
|
7214
|
-
paddingSize?: "s" | "none" | "xs" | "m" | "l" | "xl" | undefined;
|
|
7215
|
-
/**
|
|
7216
|
-
* Placement of the arrow indicator, or 'none' to hide it.
|
|
7217
|
-
*/
|
|
7218
|
-
arrowDisplay?: "none" | "left" | "right" | undefined;
|
|
7219
|
-
/**
|
|
7220
|
-
* Control the opening of accordion via prop
|
|
7221
|
-
*/
|
|
7222
|
-
forceState?: "open" | "closed" | undefined;
|
|
7223
|
-
/**
|
|
7224
|
-
* Change `extraAction` and children into a loading spinner
|
|
7225
|
-
*/
|
|
7226
|
-
isLoading?: boolean | undefined;
|
|
7227
|
-
/**
|
|
7228
|
-
* Choose whether the loading message replaces the content. Customize the message by passing a node
|
|
7229
|
-
*/
|
|
7230
|
-
isLoadingMessage?: boolean | ReactNode;
|
|
7231
|
-
}, "theme">>>;
|
|
7171
|
+
export const EuiAccordion: React.ForwardRefExoticComponent<Omit<EuiAccordionProps, "theme"> & React.RefAttributes<Omit<EuiAccordionProps, "theme">>>;
|
|
7232
7172
|
export {};
|
|
7233
7173
|
|
|
7234
7174
|
}
|
|
@@ -7408,7 +7348,7 @@ declare module '@elastic/eui/src/components/badge/badge' {
|
|
|
7408
7348
|
/**
|
|
7409
7349
|
* Props passed to the close button.
|
|
7410
7350
|
*/
|
|
7411
|
-
closeButtonProps?: Partial<PropsOf<EuiIcon>>;
|
|
7351
|
+
closeButtonProps?: Partial<PropsOf<typeof EuiIcon>>;
|
|
7412
7352
|
} & CommonProps & ExclusiveUnion<WithIconOnClick, {}> & ExclusiveUnion<ExclusiveUnion<WithButtonProps, WithAnchorProps>, WithSpanProps>;
|
|
7413
7353
|
export const COLORS: string[];
|
|
7414
7354
|
export const ICON_SIDES: IconSide[];
|
|
@@ -12561,7 +12501,7 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
|
|
|
12561
12501
|
normal: string;
|
|
12562
12502
|
reverse: string;
|
|
12563
12503
|
};
|
|
12564
|
-
export const TEXT_STYLES: ("
|
|
12504
|
+
export const TEXT_STYLES: ("normal" | "reverse")[];
|
|
12565
12505
|
export const EuiDescriptionList: FunctionComponent<CommonProps & HTMLAttributes<HTMLDListElement> & EuiDescriptionListProps>;
|
|
12566
12506
|
export {};
|
|
12567
12507
|
|