@elastic/eui 62.0.2 → 62.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +1 -783
- package/dist/eui_theme_dark.json +0 -57
- package/dist/eui_theme_dark.json.d.ts +0 -57
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +1 -783
- package/dist/eui_theme_light.json +0 -57
- package/dist/eui_theme_light.json.d.ts +0 -57
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/breadcrumbs/breadcrumb.js +199 -0
- package/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
- package/es/components/breadcrumbs/breadcrumbs.js +115 -187
- package/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
- package/es/components/code/code_block.js +119 -107
- package/es/components/collapsible_nav/collapsible_nav.js +2 -2
- package/es/components/control_bar/control_bar.js +13 -0
- package/es/components/datagrid/body/data_grid_body.js +12 -2
- package/es/components/datagrid/body/data_grid_cell.js +31 -3
- package/es/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.js +10 -2
- package/es/components/datagrid/utils/row_heights.js +33 -4
- package/es/components/date_picker/super_date_picker/super_date_picker.js +2 -2
- package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/es/components/description_list/description_list.js +22 -26
- package/es/components/description_list/description_list.styles.js +25 -0
- package/es/components/description_list/description_list_context.js +14 -0
- package/es/components/description_list/description_list_description.js +43 -2
- package/es/components/description_list/description_list_description.styles.js +47 -0
- package/es/components/description_list/description_list_title.js +43 -2
- package/es/components/description_list/description_list_title.styles.js +37 -0
- package/es/components/description_list/description_list_types.js +10 -0
- package/es/components/header/header.js +1 -27
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +22 -2
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
- package/es/components/header/header_links/header_links.js +9 -9
- package/es/components/icon/assets/tokenStruct.js +1 -1
- package/es/components/page/page_header/page_header.js +1 -0
- package/es/components/page/page_header/page_header_content.js +2 -1
- package/es/components/page/page_template.js +1 -0
- package/es/components/pagination/pagination.js +1 -1
- package/es/components/panel/split_panel/split_panel.js +2 -2
- package/es/components/popover/wrapping_popover.js +88 -45
- package/es/components/portal/portal.js +84 -38
- package/es/components/provider/provider.js +2 -2
- package/es/components/responsive/hide_for.js +6 -38
- package/es/components/responsive/show_for.js +6 -38
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +17 -36
- package/es/components/side_nav/side_nav.js +1 -1
- package/es/components/table/table_row_cell.js +1 -2
- package/es/components/toast/global_toast_list.js +208 -241
- package/es/components/toast/global_toast_list.styles.js +38 -0
- package/es/components/toast/global_toast_list_item.js +12 -7
- package/es/components/toast/toast.js +25 -25
- package/es/components/toast/toast.styles.js +55 -0
- package/es/components/token/index.js +2 -1
- package/es/components/token/token.js +48 -112
- package/es/components/token/token.styles.js +93 -0
- package/es/components/token/token_map.js +6 -9
- package/es/components/token/token_types.js +11 -0
- package/es/global_styling/reset/global_styles.js +1 -1
- package/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
- package/es/services/{hooks/useIsWithinBreakpoints.js → breakpoint/currentEuiBreakpoint.js} +36 -28
- package/es/services/breakpoint/index.js +10 -0
- package/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
- package/es/services/hooks/index.js +0 -1
- package/es/services/index.js +1 -1
- package/es/test/rtl/component_helpers.js +60 -1
- package/eui.d.ts +1787 -1550
- package/i18ntokens.json +36 -36
- package/lib/components/breadcrumbs/breadcrumb.js +225 -0
- package/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
- package/lib/components/breadcrumbs/breadcrumbs.js +125 -188
- package/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
- package/lib/components/code/code_block.js +118 -106
- package/lib/components/collapsible_nav/collapsible_nav.js +2 -2
- package/lib/components/control_bar/control_bar.js +13 -0
- package/lib/components/datagrid/body/data_grid_body.js +12 -2
- package/lib/components/datagrid/body/data_grid_cell.js +31 -3
- package/lib/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.js +10 -2
- package/lib/components/datagrid/utils/row_heights.js +33 -4
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -2
- package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/lib/components/description_list/description_list.js +25 -31
- package/lib/components/description_list/description_list.styles.js +36 -0
- package/lib/components/description_list/description_list_context.js +24 -0
- package/lib/components/description_list/description_list_description.js +52 -2
- package/lib/components/description_list/description_list_description.styles.js +51 -0
- package/lib/components/description_list/description_list_title.js +52 -2
- package/lib/components/description_list/description_list_title.styles.js +50 -0
- package/lib/components/description_list/description_list_types.js +20 -0
- package/lib/components/header/header.js +1 -27
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
- package/lib/components/header/header_links/header_links.js +8 -8
- package/lib/components/icon/assets/tokenStruct.js +1 -1
- package/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
- package/lib/components/page/page_header/page_header.js +1 -0
- package/lib/components/page/page_header/page_header_content.js +3 -2
- package/lib/components/page/page_template.js +1 -0
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/panel/split_panel/split_panel.js +3 -3
- package/lib/components/popover/wrapping_popover.js +85 -44
- package/lib/components/portal/portal.js +87 -39
- package/lib/components/provider/provider.js +1 -1
- package/lib/components/responsive/hide_for.js +12 -44
- package/lib/components/responsive/show_for.js +12 -44
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
- package/lib/components/side_nav/side_nav.js +1 -1
- package/lib/components/table/table_row_cell.js +1 -3
- package/lib/components/toast/global_toast_list.js +209 -238
- package/lib/components/toast/global_toast_list.styles.js +45 -0
- package/lib/components/toast/global_toast_list_item.js +14 -7
- package/lib/components/toast/toast.js +27 -25
- package/lib/components/toast/toast.styles.js +66 -0
- package/lib/components/token/index.js +5 -3
- package/lib/components/token/token.js +50 -120
- package/lib/components/token/token.styles.js +101 -0
- package/lib/components/token/token_map.js +6 -9
- package/lib/components/token/token_types.js +22 -0
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/{test-env/services → lib/services/breakpoint}/breakpoint.js +5 -9
- package/lib/services/breakpoint/currentEuiBreakpoint.js +80 -0
- package/lib/services/breakpoint/index.js +44 -0
- package/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
- package/lib/services/hooks/index.js +0 -13
- package/lib/services/index.js +28 -0
- package/lib/test/rtl/component_helpers.js +69 -3
- package/optimize/es/components/breadcrumbs/breadcrumb.js +136 -0
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +92 -165
- package/optimize/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
- package/optimize/es/components/code/code_block.js +106 -107
- package/optimize/es/components/datagrid/body/data_grid_body.js +2 -0
- package/optimize/es/components/datagrid/body/data_grid_cell.js +13 -1
- package/optimize/es/components/datagrid/utils/row_heights.js +33 -4
- package/optimize/es/components/description_list/description_list.js +20 -24
- package/optimize/es/components/description_list/description_list.styles.js +25 -0
- package/optimize/es/components/description_list/description_list_context.js +14 -0
- package/optimize/es/components/description_list/description_list_description.js +32 -2
- package/optimize/es/components/description_list/description_list_description.styles.js +47 -0
- package/optimize/es/components/description_list/description_list_title.js +32 -2
- package/optimize/es/components/description_list/description_list_title.styles.js +37 -0
- package/optimize/es/components/description_list/description_list_types.js +10 -0
- package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.js +8 -1
- package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
- package/optimize/es/components/header/header_links/header_links.js +8 -8
- package/optimize/es/components/icon/assets/tokenStruct.js +1 -1
- package/optimize/es/components/page/page_header/page_header_content.js +1 -1
- package/optimize/es/components/panel/split_panel/split_panel.js +1 -1
- package/optimize/es/components/popover/wrapping_popover.js +79 -38
- package/optimize/es/components/portal/portal.js +66 -34
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/components/responsive/hide_for.js +5 -27
- package/optimize/es/components/responsive/show_for.js +5 -27
- package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -35
- package/optimize/es/components/table/table_row_cell.js +1 -2
- package/optimize/es/components/toast/global_toast_list.js +199 -230
- package/optimize/es/components/toast/global_toast_list.styles.js +38 -0
- package/optimize/es/components/toast/global_toast_list_item.js +11 -6
- package/optimize/es/components/toast/toast.js +24 -24
- package/optimize/es/components/toast/toast.styles.js +55 -0
- package/optimize/es/components/token/index.js +2 -1
- package/optimize/es/components/token/token.js +46 -69
- package/optimize/es/components/token/token.styles.js +83 -0
- package/optimize/es/components/token/token_map.js +6 -9
- package/optimize/es/components/token/token_types.js +11 -0
- package/optimize/es/global_styling/reset/global_styles.js +1 -1
- package/optimize/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
- package/optimize/es/services/breakpoint/currentEuiBreakpoint.js +53 -0
- package/optimize/es/services/breakpoint/index.js +10 -0
- package/optimize/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
- package/optimize/es/services/hooks/index.js +0 -1
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/test/rtl/component_helpers.js +60 -1
- package/optimize/lib/components/breadcrumbs/breadcrumb.js +162 -0
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +99 -164
- package/optimize/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
- package/optimize/lib/components/code/code_block.js +105 -106
- package/optimize/lib/components/datagrid/body/data_grid_body.js +2 -0
- package/optimize/lib/components/datagrid/body/data_grid_cell.js +13 -1
- package/optimize/lib/components/datagrid/utils/row_heights.js +33 -4
- package/optimize/lib/components/description_list/description_list.js +23 -28
- package/optimize/lib/components/description_list/description_list.styles.js +36 -0
- package/optimize/lib/components/description_list/description_list_context.js +24 -0
- package/optimize/lib/components/description_list/description_list_description.js +43 -2
- package/optimize/lib/components/description_list/description_list_description.styles.js +51 -0
- package/optimize/lib/components/description_list/description_list_title.js +43 -2
- package/optimize/lib/components/description_list/description_list_title.styles.js +50 -0
- package/optimize/lib/components/description_list/description_list_types.js +20 -0
- package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +10 -1
- package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
- package/optimize/lib/components/header/header_links/header_links.js +7 -7
- package/optimize/lib/components/icon/assets/tokenStruct.js +1 -1
- package/optimize/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
- package/optimize/lib/components/page/page_header/page_header_content.js +2 -2
- package/optimize/lib/components/panel/split_panel/split_panel.js +2 -2
- package/optimize/lib/components/popover/wrapping_popover.js +78 -38
- package/optimize/lib/components/portal/portal.js +65 -44
- package/optimize/lib/components/provider/provider.js +1 -1
- package/optimize/lib/components/responsive/hide_for.js +4 -33
- package/optimize/lib/components/responsive/show_for.js +4 -33
- package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +14 -34
- package/optimize/lib/components/table/table_row_cell.js +1 -3
- package/optimize/lib/components/toast/global_toast_list.js +206 -220
- package/optimize/lib/components/toast/global_toast_list.styles.js +47 -0
- package/optimize/lib/components/toast/global_toast_list_item.js +14 -7
- package/optimize/lib/components/toast/toast.js +26 -24
- package/optimize/lib/components/toast/toast.styles.js +66 -0
- package/optimize/lib/components/token/index.js +5 -3
- package/optimize/lib/components/token/token.js +50 -76
- package/optimize/lib/components/token/token.styles.js +91 -0
- package/optimize/lib/components/token/token_map.js +6 -9
- package/optimize/lib/components/token/token_types.js +22 -0
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/services/{breakpoint.js → breakpoint/breakpoint.js} +5 -9
- package/optimize/lib/services/breakpoint/currentEuiBreakpoint.js +81 -0
- package/optimize/lib/services/breakpoint/index.js +44 -0
- package/optimize/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
- package/optimize/lib/services/hooks/index.js +0 -13
- package/optimize/lib/services/index.js +28 -0
- package/optimize/lib/test/rtl/component_helpers.js +69 -3
- package/package.json +2 -2
- package/src/components/control_bar/_control_bar.scss +1 -1
- package/src/components/header/_index.scss +0 -1
- package/src/components/index.scss +0 -5
- package/src/themes/amsterdam/overrides/_breadcrumbs.scss +0 -12
- package/src/themes/amsterdam/overrides/_index.scss +0 -4
- package/test-env/components/breadcrumbs/breadcrumb.js +211 -0
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +68 -0
- package/test-env/components/breadcrumbs/breadcrumbs.js +122 -174
- package/test-env/components/breadcrumbs/breadcrumbs.styles.js +33 -0
- package/test-env/components/collapsible_nav/collapsible_nav.js +2 -2
- package/test-env/components/control_bar/control_bar.js +13 -0
- package/test-env/components/datagrid/body/data_grid_body.js +12 -2
- package/test-env/components/datagrid/body/data_grid_cell.js +31 -3
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.js +10 -2
- package/test-env/components/datagrid/utils/row_heights.js +33 -4
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +2 -2
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/test-env/components/description_list/description_list.js +25 -30
- package/test-env/components/description_list/description_list.styles.js +36 -0
- package/test-env/components/description_list/description_list_context.js +24 -0
- package/test-env/components/description_list/description_list_description.js +43 -2
- package/test-env/components/description_list/description_list_description.styles.js +51 -0
- package/test-env/components/description_list/description_list_title.js +43 -2
- package/test-env/components/description_list/description_list_title.styles.js +50 -0
- package/test-env/components/description_list/description_list_types.js +20 -0
- package/test-env/components/header/header.js +1 -27
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
- package/test-env/components/header/header_links/header_links.js +8 -8
- package/test-env/components/icon/assets/tokenStruct.js +1 -1
- package/test-env/components/observer/resize_observer/resize_observer.js +43 -126
- package/test-env/components/page/page_header/page_header.js +1 -0
- package/test-env/components/page/page_header/page_header_content.js +3 -2
- package/test-env/components/page/page_template.js +1 -0
- package/test-env/components/pagination/pagination.js +1 -1
- package/test-env/components/panel/split_panel/split_panel.js +3 -3
- package/test-env/components/popover/wrapping_popover.js +78 -38
- package/test-env/components/portal/portal.js +79 -45
- package/test-env/components/provider/provider.js +1 -1
- package/test-env/components/responsive/hide_for.js +5 -34
- package/test-env/components/responsive/show_for.js +5 -34
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
- package/test-env/components/side_nav/side_nav.js +1 -1
- package/test-env/components/table/table_row_cell.js +1 -3
- package/test-env/components/toast/global_toast_list.js +206 -220
- package/test-env/components/toast/global_toast_list.styles.js +47 -0
- package/test-env/components/toast/global_toast_list_item.js +14 -7
- package/test-env/components/toast/toast.js +27 -25
- package/test-env/components/toast/toast.styles.js +66 -0
- package/test-env/components/token/index.js +5 -3
- package/test-env/components/token/token.js +51 -120
- package/test-env/components/token/token.styles.js +91 -0
- package/test-env/components/token/token_map.js +6 -9
- package/test-env/components/token/token_types.js +22 -0
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/{lib/services → test-env/services/breakpoint}/breakpoint.js +5 -9
- package/test-env/services/breakpoint/currentEuiBreakpoint.js +37 -0
- package/test-env/services/breakpoint/index.js +44 -0
- package/test-env/services/breakpoint/useIsWithinBreakpoints.js +34 -0
- package/test-env/services/hooks/index.js +0 -13
- package/test-env/services/index.js +28 -0
- package/test-env/test/rtl/component_helpers.js +69 -3
- package/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
- package/optimize/es/services/hooks/useIsWithinBreakpoints.js +0 -46
- package/optimize/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
- package/src/components/breadcrumbs/_breadcrumbs.scss +0 -79
- package/src/components/breadcrumbs/_index.scss +0 -2
- package/src/components/breadcrumbs/_variables.scss +0 -2
- package/src/components/description_list/_description_list.scss +0 -211
- package/src/components/description_list/_index.scss +0 -1
- package/src/components/header/header_breadcrumbs/_header_breadcrumbs.scss +0 -8
- package/src/components/header/header_breadcrumbs/_index.scss +0 -1
- package/src/components/portal/_index.scss +0 -1
- package/src/components/portal/_portal.scss +0 -6
- package/src/components/toast/_global_toast_list.scss +0 -90
- package/src/components/toast/_index.scss +0 -4
- package/src/components/toast/_toast.scss +0 -103
- package/src/components/token/_index.scss +0 -2
- package/src/components/token/_token.scss +0 -85
- package/src/components/token/_variables.scss +0 -13
- package/src/themes/amsterdam/overrides/_header_breadcrumbs.scss +0 -71
- package/src/themes/amsterdam/overrides/_toast.scss +0 -21
- package/src/themes/amsterdam/overrides/_token.scss +0 -4
- package/test-env/services/hooks/useIsWithinBreakpoints.js +0 -57
package/eui.d.ts
CHANGED
|
@@ -301,986 +301,184 @@ declare module '@elastic/eui/src/components/common' {
|
|
|
301
301
|
export {};
|
|
302
302
|
|
|
303
303
|
}
|
|
304
|
-
declare module '@elastic/eui/src/
|
|
305
|
-
export
|
|
306
|
-
export type
|
|
307
|
-
|
|
304
|
+
declare module '@elastic/eui/src/global_styling/variables/breakpoint' {
|
|
305
|
+
export const EuiThemeBreakpoints: readonly ["xs", "s", "m", "l", "xl"];
|
|
306
|
+
export type _EuiThemeBreakpoint = typeof EuiThemeBreakpoints[number];
|
|
307
|
+
export type _EuiThemeBreakpoints = {
|
|
308
|
+
[key in _EuiThemeBreakpoint]: number;
|
|
308
309
|
};
|
|
309
|
-
export const BREAKPOINTS: EuiBreakpoints;
|
|
310
|
-
export const BREAKPOINT_KEYS: EuiBreakpointSize[];
|
|
311
|
-
/**
|
|
312
|
-
* Given the current `width` and an object of `EuiBreakpoints`,
|
|
313
|
-
* this function returns the string that is the name of the breakpoint key
|
|
314
|
-
* that is less than or equal to the width
|
|
315
|
-
*
|
|
316
|
-
* @param {number} width Can either be the full window width or any width
|
|
317
|
-
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
318
|
-
* @returns {string | undefined} Name of the breakpoint key or `undefined` if a key doesn't exist
|
|
319
|
-
*/
|
|
320
|
-
export function getBreakpoint(width: number, breakpoints?: EuiBreakpoints): EuiBreakpointSize | undefined;
|
|
321
|
-
/**
|
|
322
|
-
* Given the current `width` and a max breakpoint key,
|
|
323
|
-
* this function returns true or false if the `width` falls within the max
|
|
324
|
-
* breakpoint or any breakpoints below
|
|
325
|
-
*
|
|
326
|
-
* @param {number} width Can either be the full window width or any width
|
|
327
|
-
* @param {EuiBreakpointSize | number} max The named breakpoint or custom number to check against
|
|
328
|
-
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
329
|
-
* @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint
|
|
330
|
-
*/
|
|
331
|
-
export function isWithinMaxBreakpoint(width: number, max: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
|
|
332
|
-
/**
|
|
333
|
-
* Given the current `width` and a min breakpoint key,
|
|
334
|
-
* this function returns true or false if the `width` falls within the min
|
|
335
|
-
* breakpoint or any breakpoints above
|
|
336
|
-
*
|
|
337
|
-
* @param {number} width Can either be the full window width or any width
|
|
338
|
-
* @param {EuiBreakpointSize | number} min The named breakpoint or custom number to check against
|
|
339
|
-
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
340
|
-
* @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint
|
|
341
|
-
*/
|
|
342
|
-
export function isWithinMinBreakpoint(width: number, min: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
|
|
343
|
-
/**
|
|
344
|
-
* Given the current `width` and an array of breakpoint keys,
|
|
345
|
-
* this function returns true or false if the `width` falls within
|
|
346
|
-
* any of the named breakpoints
|
|
347
|
-
*
|
|
348
|
-
* @param {number} width Can either be the full window width or any width
|
|
349
|
-
* @param {EuiBreakpointSize[]} sizes An array of named breakpoints
|
|
350
|
-
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
351
|
-
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
352
|
-
*/
|
|
353
|
-
export function isWithinBreakpoints(width: number, sizes: EuiBreakpointSize[], breakpoints?: EuiBreakpoints): boolean;
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
declare module '@elastic/eui/src/services/color/is_color_dark' {
|
|
357
|
-
/**
|
|
358
|
-
* This function calculates if the specified color is "dark", which usually means
|
|
359
|
-
* you need light text if you use it as a background color to fulfill WCAG contrast
|
|
360
|
-
* requirement.
|
|
361
|
-
* The color must be specified via its red, green and blue value in the range of
|
|
362
|
-
* 0 to 255.
|
|
363
|
-
* The formula is based on this Stackoverflow answer: https://stackoverflow.com/a/3943023
|
|
364
|
-
* which itself is based upon the WCAG recommendation for color contrast.
|
|
365
|
-
*
|
|
366
|
-
* @param {number} red The red component in the range 0 to 255
|
|
367
|
-
* @param {number} green The green component in the range 0 to 255
|
|
368
|
-
* @param {number} blue The blue component in the range 0 to 255
|
|
369
|
-
* @returns {boolean} True if the color is dark, false otherwise.
|
|
370
|
-
*/
|
|
371
|
-
export function isColorDark(red: number, green: number, blue: number): boolean;
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
declare module '@elastic/eui/src/services/color/is_valid_hex' {
|
|
375
|
-
export function isValidHex(hex: string): boolean;
|
|
376
|
-
|
|
377
|
-
}
|
|
378
|
-
declare module '@elastic/eui/src/services/color/color_types' {
|
|
379
|
-
export type rgbDef = [number, number, number];
|
|
380
|
-
export interface HSV {
|
|
381
|
-
h: number;
|
|
382
|
-
s: number;
|
|
383
|
-
v: number;
|
|
384
|
-
}
|
|
385
|
-
export interface RGB {
|
|
386
|
-
r: number;
|
|
387
|
-
g: number;
|
|
388
|
-
b: number;
|
|
389
|
-
}
|
|
390
|
-
export type HEX = string;
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
declare module '@elastic/eui/src/services/color/hex_to_rgb' {
|
|
394
|
-
import { rgbDef } from '@elastic/eui/src/services/color/color_types';
|
|
395
|
-
export function hexToRgb(hex: string): rgbDef;
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
declare module '@elastic/eui/src/services/color/rgb_to_hsv' {
|
|
399
|
-
import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
400
|
-
export function rgbToHsv({ r, g, b }: RGB): HSV;
|
|
401
310
|
|
|
402
311
|
}
|
|
403
|
-
declare module '@elastic/eui/src/
|
|
404
|
-
import {
|
|
405
|
-
export function hexToHsv(hex: HEX): HSV;
|
|
406
|
-
|
|
407
|
-
}
|
|
408
|
-
declare module '@elastic/eui/src/services/color/hsv_to_rgb' {
|
|
409
|
-
import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
410
|
-
export function hsvToRgb({ h, s, v }: HSV): RGB;
|
|
411
|
-
|
|
412
|
-
}
|
|
413
|
-
declare module '@elastic/eui/src/services/color/rgb_to_hex' {
|
|
414
|
-
export function rgbToHex(rgb: string): string;
|
|
415
|
-
|
|
416
|
-
}
|
|
417
|
-
declare module '@elastic/eui/src/services/color/hsv_to_hex' {
|
|
418
|
-
import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
|
|
419
|
-
export function hsvToHex({ h, s, v }: HSV): HEX;
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
declare module '@elastic/eui/src/services/color/luminance_and_contrast' {
|
|
423
|
-
import { rgbDef } from '@elastic/eui/src/services/color/color_types';
|
|
424
|
-
export function calculateLuminance(r: number, g: number, b: number): number;
|
|
425
|
-
export function calculateContrast(rgb1: rgbDef, rgb2: rgbDef): number;
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
declare module '@elastic/eui/src/services/color/color_palette' {
|
|
429
|
-
export const MID_COLOR_STOP = "#EBEFF5";
|
|
430
|
-
/**
|
|
431
|
-
* This function takes an array of colors and returns an array of interpolated
|
|
432
|
-
* colors based on the number of steps/len needed for use in UI elements such as charts.
|
|
433
|
-
* Derived from https://github.com/gka/palettes (Unlicensed)
|
|
434
|
-
*/
|
|
435
|
-
export function colorPalette(
|
|
312
|
+
declare module '@elastic/eui/src/global_styling/variables/animations' {
|
|
313
|
+
import { CSSProperties } from 'react';
|
|
436
314
|
/**
|
|
437
|
-
*
|
|
315
|
+
* A constant storing the `prefers-reduced-motion` media query
|
|
316
|
+
* so that when it is turned off, animations are not run.
|
|
438
317
|
*/
|
|
439
|
-
|
|
318
|
+
export const euiCanAnimate = "@media screen and (prefers-reduced-motion: no-preference)";
|
|
440
319
|
/**
|
|
441
|
-
*
|
|
320
|
+
* A constant storing the `prefers-reduced-motion` media query that will
|
|
321
|
+
* only apply the content if the setting is off (reduce).
|
|
442
322
|
*/
|
|
443
|
-
|
|
323
|
+
export const euiCantAnimate = "@media screen and (prefers-reduced-motion: reduce)";
|
|
444
324
|
/**
|
|
445
|
-
*
|
|
325
|
+
* Speeds / Durations / Delays
|
|
446
326
|
*/
|
|
447
|
-
|
|
327
|
+
export const EuiThemeAnimationSpeeds: readonly ["extraFast", "fast", "normal", "slow", "extraSlow"];
|
|
328
|
+
export type _EuiThemeAnimationSpeed = typeof EuiThemeAnimationSpeeds[number];
|
|
329
|
+
export type _EuiThemeAnimationSpeeds = Record<_EuiThemeAnimationSpeed, CSSProperties['animationDuration']>;
|
|
448
330
|
/**
|
|
449
|
-
*
|
|
331
|
+
* Easings / Timing functions
|
|
450
332
|
*/
|
|
451
|
-
|
|
333
|
+
export const EuiThemeAnimationEasings: readonly ["bounce", "resistance"];
|
|
334
|
+
export type _EuiThemeAnimationEasing = typeof EuiThemeAnimationEasings[number];
|
|
335
|
+
export type _EuiThemeAnimationEasings = Record<_EuiThemeAnimationEasing, CSSProperties['animationTimingFunction']>;
|
|
336
|
+
export type _EuiThemeAnimation = _EuiThemeAnimationEasings & _EuiThemeAnimationSpeeds;
|
|
452
337
|
|
|
453
338
|
}
|
|
454
|
-
declare module '@elastic/eui/src/
|
|
455
|
-
|
|
456
|
-
|
|
339
|
+
declare module '@elastic/eui/src/global_styling/variables/colors' {
|
|
340
|
+
import { ColorModeSwitch, StrictColorModeSwitch } from '@elastic/eui/src/services/theme/types';
|
|
341
|
+
/**
|
|
342
|
+
* Top 5 colors
|
|
343
|
+
*/
|
|
344
|
+
export type _EuiThemeBrandColors = {
|
|
457
345
|
/**
|
|
458
|
-
*
|
|
346
|
+
* Main brand color and used for most **call to actions** like buttons and links.
|
|
459
347
|
*/
|
|
460
|
-
|
|
348
|
+
primary: ColorModeSwitch;
|
|
461
349
|
/**
|
|
462
|
-
*
|
|
350
|
+
* Pulls attention to key indicators like **notifications** or number of selections.
|
|
463
351
|
*/
|
|
464
|
-
|
|
352
|
+
accent: ColorModeSwitch;
|
|
465
353
|
/**
|
|
466
|
-
*
|
|
354
|
+
* Used for **positive** messages/graphics and additive actions.
|
|
467
355
|
*/
|
|
468
|
-
|
|
356
|
+
success: ColorModeSwitch;
|
|
469
357
|
/**
|
|
470
|
-
*
|
|
358
|
+
* Used for **warnings** and actions that have a potential to be destructive.
|
|
471
359
|
*/
|
|
472
|
-
|
|
360
|
+
warning: ColorModeSwitch;
|
|
473
361
|
/**
|
|
474
|
-
*
|
|
475
|
-
* Defaults to a number close to green.
|
|
362
|
+
* Used for **negative** messages/graphics like errors and destructive actions.
|
|
476
363
|
*/
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
export const euiPaletteColorBlind: ({ rotations, order, direction, sortBy, sortShift, }?: EuiPaletteColorBlindProps) => EuiPalette;
|
|
364
|
+
danger: ColorModeSwitch;
|
|
365
|
+
};
|
|
480
366
|
/**
|
|
481
|
-
*
|
|
482
|
-
* It increases the brightness of the color to give the text more contrast.
|
|
367
|
+
* Every brand color must have a contrast computed text equivelant
|
|
483
368
|
*/
|
|
484
|
-
export
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
export const getEventPosition: (location: {
|
|
506
|
-
x: number;
|
|
507
|
-
y: number;
|
|
508
|
-
}, container: HTMLElement) => {
|
|
509
|
-
left: number;
|
|
510
|
-
top: number;
|
|
511
|
-
width: number;
|
|
512
|
-
height: number;
|
|
369
|
+
export type _EuiThemeBrandTextColors = {
|
|
370
|
+
/**
|
|
371
|
+
* Typically computed against `colors.primary`
|
|
372
|
+
*/
|
|
373
|
+
primaryText: ColorModeSwitch;
|
|
374
|
+
/**
|
|
375
|
+
* Typically computed against `colors.accent`
|
|
376
|
+
*/
|
|
377
|
+
accentText: ColorModeSwitch;
|
|
378
|
+
/**
|
|
379
|
+
* Typically computed against `colors.success`
|
|
380
|
+
*/
|
|
381
|
+
successText: ColorModeSwitch;
|
|
382
|
+
/**
|
|
383
|
+
* Typically computed against `colors.warning`
|
|
384
|
+
*/
|
|
385
|
+
warningText: ColorModeSwitch;
|
|
386
|
+
/**
|
|
387
|
+
* Typically computed against `colors.danger`
|
|
388
|
+
*/
|
|
389
|
+
dangerText: ColorModeSwitch;
|
|
513
390
|
};
|
|
514
|
-
export
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
391
|
+
export type _EuiThemeShadeColors = {
|
|
392
|
+
/**
|
|
393
|
+
* Used as the background color of primary **page content and panels** including modals and flyouts.
|
|
394
|
+
*/
|
|
395
|
+
emptyShade: ColorModeSwitch;
|
|
396
|
+
/**
|
|
397
|
+
* Used to lightly shade areas that contain **secondary content** or contain panel-like components.
|
|
398
|
+
*/
|
|
399
|
+
lightestShade: ColorModeSwitch;
|
|
400
|
+
/**
|
|
401
|
+
* Used for most **borders** and dividers (horizontal rules).
|
|
402
|
+
*/
|
|
403
|
+
lightShade: ColorModeSwitch;
|
|
404
|
+
/**
|
|
405
|
+
* The middle gray for all themes; this is the base for `colors.subdued`.
|
|
406
|
+
*/
|
|
407
|
+
mediumShade: ColorModeSwitch;
|
|
408
|
+
/**
|
|
409
|
+
* Slightly subtle graphic color
|
|
410
|
+
*/
|
|
411
|
+
darkShade: ColorModeSwitch;
|
|
412
|
+
/**
|
|
413
|
+
* Used as the **text** color and the background color for **inverted components** like tooltips and the control bar.
|
|
414
|
+
*/
|
|
415
|
+
darkestShade: ColorModeSwitch;
|
|
416
|
+
/**
|
|
417
|
+
* The opposite of `emptyShade`
|
|
418
|
+
*/
|
|
419
|
+
fullShade: ColorModeSwitch;
|
|
420
|
+
};
|
|
421
|
+
export type _EuiThemeTextColors = {
|
|
422
|
+
/**
|
|
423
|
+
* Computed against `colors.darkestShade`
|
|
424
|
+
*/
|
|
425
|
+
text: ColorModeSwitch;
|
|
426
|
+
/**
|
|
427
|
+
* Computed against `colors.text`
|
|
428
|
+
*/
|
|
429
|
+
title: ColorModeSwitch;
|
|
430
|
+
/**
|
|
431
|
+
* Computed against `colors.mediumShade`
|
|
432
|
+
*/
|
|
433
|
+
subduedText: ColorModeSwitch;
|
|
434
|
+
/**
|
|
435
|
+
* Computed against `colors.primaryText`
|
|
436
|
+
*/
|
|
437
|
+
link: ColorModeSwitch;
|
|
438
|
+
};
|
|
439
|
+
export type _EuiThemeSpecialColors = {
|
|
440
|
+
/**
|
|
441
|
+
* The background color for the **whole window (body)** and is a computed value of `colors.lightestShade`.
|
|
442
|
+
* Provides denominator (background) value for **contrast calculations**.
|
|
443
|
+
*/
|
|
444
|
+
body: ColorModeSwitch;
|
|
445
|
+
/**
|
|
446
|
+
* Used to **highlight text** when matching against search strings
|
|
447
|
+
*/
|
|
448
|
+
highlight: ColorModeSwitch;
|
|
449
|
+
/**
|
|
450
|
+
* Computed against `colors.darkestShade`
|
|
451
|
+
*/
|
|
452
|
+
disabled: ColorModeSwitch;
|
|
453
|
+
/**
|
|
454
|
+
* Computed against `colors.disabled`
|
|
455
|
+
*/
|
|
456
|
+
disabledText: ColorModeSwitch;
|
|
457
|
+
/**
|
|
458
|
+
* The base color for shadows that gets `transparentized`
|
|
459
|
+
* at a value based on the `colorMode` and then layered.
|
|
460
|
+
*/
|
|
461
|
+
shadow: ColorModeSwitch;
|
|
462
|
+
};
|
|
463
|
+
export type _EuiThemeConstantColors = {
|
|
464
|
+
/**
|
|
465
|
+
* Purest **white**
|
|
466
|
+
*/
|
|
467
|
+
ghost: string;
|
|
468
|
+
/**
|
|
469
|
+
* Purest **black**
|
|
470
|
+
*/
|
|
471
|
+
ink: string;
|
|
472
|
+
};
|
|
473
|
+
export type _EuiThemeColorsMode = _EuiThemeBrandColors & _EuiThemeBrandTextColors & _EuiThemeShadeColors & _EuiThemeSpecialColors & _EuiThemeTextColors;
|
|
474
|
+
export type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> & _EuiThemeConstantColors;
|
|
531
475
|
|
|
532
476
|
}
|
|
533
|
-
declare module '@elastic/eui/src/
|
|
534
|
-
|
|
535
|
-
export const
|
|
536
|
-
export
|
|
537
|
-
export
|
|
538
|
-
export const isColorInvalid: (color: string, showAlpha?: boolean) => boolean;
|
|
539
|
-
export const isStopInvalid: (stop: ColorStop['stop']) => boolean;
|
|
540
|
-
export const isInvalid: (colorStops: ColorStop[], showAlpha?: boolean) => boolean;
|
|
541
|
-
export const calculateScale: (trackWidth: number) => number;
|
|
542
|
-
export const getStopFromMouseLocation: (location: {
|
|
543
|
-
x: number;
|
|
544
|
-
y: number;
|
|
545
|
-
}, ref: HTMLDivElement, min: number, max: number) => number;
|
|
546
|
-
export const getPositionFromStop: (stop: ColorStop['stop'], ref: HTMLDivElement, min: number, max: number) => number;
|
|
547
|
-
|
|
548
|
-
}
|
|
549
|
-
declare module '@elastic/eui/src/components/icon/icon_map' {
|
|
550
|
-
export const typeToPathMap: {
|
|
551
|
-
accessibility: string;
|
|
552
|
-
addDataApp: string;
|
|
553
|
-
advancedSettingsApp: string;
|
|
554
|
-
agentApp: string;
|
|
555
|
-
aggregate: string;
|
|
556
|
-
alert: string;
|
|
557
|
-
analyzeEvent: string;
|
|
558
|
-
annotation: string;
|
|
559
|
-
apmApp: string;
|
|
560
|
-
apmTrace: string;
|
|
561
|
-
appSearchApp: string;
|
|
562
|
-
apps: string;
|
|
563
|
-
arrowDown: string;
|
|
564
|
-
arrowLeft: string;
|
|
565
|
-
arrowRight: string;
|
|
566
|
-
arrowUp: string;
|
|
567
|
-
arrowStart: string;
|
|
568
|
-
arrowEnd: string;
|
|
569
|
-
asterisk: string;
|
|
570
|
-
auditbeatApp: string;
|
|
571
|
-
beaker: string;
|
|
572
|
-
bell: string;
|
|
573
|
-
bellSlash: string;
|
|
574
|
-
bolt: string;
|
|
575
|
-
boxesHorizontal: string;
|
|
576
|
-
boxesVertical: string;
|
|
577
|
-
branch: string;
|
|
578
|
-
branchUser: string;
|
|
579
|
-
broom: string;
|
|
580
|
-
brush: string;
|
|
581
|
-
bug: string;
|
|
582
|
-
bullseye: string;
|
|
583
|
-
calendar: string;
|
|
584
|
-
canvasApp: string;
|
|
585
|
-
casesApp: string;
|
|
586
|
-
check: string;
|
|
587
|
-
checkInCircleFilled: string;
|
|
588
|
-
cheer: string;
|
|
589
|
-
classificationJob: string;
|
|
590
|
-
clock: string;
|
|
591
|
-
cloudDrizzle: string;
|
|
592
|
-
cloudStormy: string;
|
|
593
|
-
cloudSunny: string;
|
|
594
|
-
cluster: string;
|
|
595
|
-
codeApp: string;
|
|
596
|
-
color: string;
|
|
597
|
-
compute: string;
|
|
598
|
-
console: string;
|
|
599
|
-
consoleApp: string;
|
|
600
|
-
container: string;
|
|
601
|
-
continuityAbove: string;
|
|
602
|
-
continuityAboveBelow: string;
|
|
603
|
-
continuityBelow: string;
|
|
604
|
-
continuityWithin: string;
|
|
605
|
-
controlsHorizontal: string;
|
|
606
|
-
controlsVertical: string;
|
|
607
|
-
copy: string;
|
|
608
|
-
copyClipboard: string;
|
|
609
|
-
createAdvancedJob: string;
|
|
610
|
-
createMultiMetricJob: string;
|
|
611
|
-
createPopulationJob: string;
|
|
612
|
-
createSingleMetricJob: string;
|
|
613
|
-
cross: string;
|
|
614
|
-
crossClusterReplicationApp: string;
|
|
615
|
-
crossInACircleFilled: string;
|
|
616
|
-
crosshairs: string;
|
|
617
|
-
currency: string;
|
|
618
|
-
cut: string;
|
|
619
|
-
dashboardApp: string;
|
|
620
|
-
dataVisualizer: string;
|
|
621
|
-
database: string;
|
|
622
|
-
desktop: string;
|
|
623
|
-
devToolsApp: string;
|
|
624
|
-
discoverApp: string;
|
|
625
|
-
document: string;
|
|
626
|
-
documentEdit: string;
|
|
627
|
-
documentation: string;
|
|
628
|
-
documents: string;
|
|
629
|
-
dot: string;
|
|
630
|
-
doubleArrowLeft: string;
|
|
631
|
-
doubleArrowRight: string;
|
|
632
|
-
download: string;
|
|
633
|
-
editorAlignCenter: string;
|
|
634
|
-
editorAlignLeft: string;
|
|
635
|
-
editorAlignRight: string;
|
|
636
|
-
editorBold: string;
|
|
637
|
-
editorChecklist: string;
|
|
638
|
-
editorCodeBlock: string;
|
|
639
|
-
editorComment: string;
|
|
640
|
-
editorDistributeHorizontal: string;
|
|
641
|
-
editorDistributeVertical: string;
|
|
642
|
-
editorHeading: string;
|
|
643
|
-
editorItalic: string;
|
|
644
|
-
editorItemAlignBottom: string;
|
|
645
|
-
editorItemAlignCenter: string;
|
|
646
|
-
editorItemAlignLeft: string;
|
|
647
|
-
editorItemAlignMiddle: string;
|
|
648
|
-
editorItemAlignRight: string;
|
|
649
|
-
editorItemAlignTop: string;
|
|
650
|
-
editorLink: string;
|
|
651
|
-
editorOrderedList: string;
|
|
652
|
-
editorPositionBottomLeft: string;
|
|
653
|
-
editorPositionBottomRight: string;
|
|
654
|
-
editorPositionTopLeft: string;
|
|
655
|
-
editorPositionTopRight: string;
|
|
656
|
-
editorRedo: string;
|
|
657
|
-
editorStrike: string;
|
|
658
|
-
editorTable: string;
|
|
659
|
-
editorUnderline: string;
|
|
660
|
-
editorUndo: string;
|
|
661
|
-
editorUnorderedList: string;
|
|
662
|
-
email: string;
|
|
663
|
-
empty: string;
|
|
664
|
-
emsApp: string;
|
|
665
|
-
eql: string;
|
|
666
|
-
eraser: string;
|
|
667
|
-
exit: string;
|
|
668
|
-
expand: string;
|
|
669
|
-
expandMini: string;
|
|
670
|
-
exportAction: string;
|
|
671
|
-
eye: string;
|
|
672
|
-
eyeClosed: string;
|
|
673
|
-
faceHappy: string;
|
|
674
|
-
faceNeutral: string;
|
|
675
|
-
faceSad: string;
|
|
676
|
-
filebeatApp: string;
|
|
677
|
-
filter: string;
|
|
678
|
-
flag: string;
|
|
679
|
-
fleetApp: string;
|
|
680
|
-
fold: string;
|
|
681
|
-
folderCheck: string;
|
|
682
|
-
folderClosed: string;
|
|
683
|
-
folderExclamation: string;
|
|
684
|
-
folderOpen: string;
|
|
685
|
-
frameNext: string;
|
|
686
|
-
framePrevious: string;
|
|
687
|
-
fullScreen: string;
|
|
688
|
-
fullScreenExit: string;
|
|
689
|
-
function: string;
|
|
690
|
-
gear: string;
|
|
691
|
-
gisApp: string;
|
|
692
|
-
glasses: string;
|
|
693
|
-
globe: string;
|
|
694
|
-
grab: string;
|
|
695
|
-
grabHorizontal: string;
|
|
696
|
-
graphApp: string;
|
|
697
|
-
grid: string;
|
|
698
|
-
grokApp: string;
|
|
699
|
-
heart: string;
|
|
700
|
-
heartbeatApp: string;
|
|
701
|
-
heatmap: string;
|
|
702
|
-
help: string;
|
|
703
|
-
home: string;
|
|
704
|
-
iInCircle: string;
|
|
705
|
-
image: string;
|
|
706
|
-
importAction: string;
|
|
707
|
-
indexClose: string;
|
|
708
|
-
indexEdit: string;
|
|
709
|
-
indexFlush: string;
|
|
710
|
-
indexManagementApp: string;
|
|
711
|
-
indexMapping: string;
|
|
712
|
-
indexOpen: string;
|
|
713
|
-
indexPatternApp: string;
|
|
714
|
-
indexRollupApp: string;
|
|
715
|
-
indexRuntime: string;
|
|
716
|
-
indexSettings: string;
|
|
717
|
-
inputOutput: string;
|
|
718
|
-
inspect: string;
|
|
719
|
-
invert: string;
|
|
720
|
-
ip: string;
|
|
721
|
-
keyboard: string;
|
|
722
|
-
kqlField: string;
|
|
723
|
-
kqlFunction: string;
|
|
724
|
-
kqlOperand: string;
|
|
725
|
-
kqlSelector: string;
|
|
726
|
-
kqlValue: string;
|
|
727
|
-
kubernetesNode: string;
|
|
728
|
-
kubernetesPod: string;
|
|
729
|
-
layers: string;
|
|
730
|
-
lensApp: string;
|
|
731
|
-
lettering: string;
|
|
732
|
-
lineDashed: string;
|
|
733
|
-
lineDotted: string;
|
|
734
|
-
lineSolid: string;
|
|
735
|
-
link: string;
|
|
736
|
-
list: string;
|
|
737
|
-
listAdd: string;
|
|
738
|
-
lock: string;
|
|
739
|
-
lockOpen: string;
|
|
740
|
-
logoAWS: string;
|
|
741
|
-
logoAWSMono: string;
|
|
742
|
-
logoAerospike: string;
|
|
743
|
-
logoApache: string;
|
|
744
|
-
logoAppSearch: string;
|
|
745
|
-
logoAzure: string;
|
|
746
|
-
logoAzureMono: string;
|
|
747
|
-
logoBeats: string;
|
|
748
|
-
logoBusinessAnalytics: string;
|
|
749
|
-
logoCeph: string;
|
|
750
|
-
logoCloud: string;
|
|
751
|
-
logoCloudEnterprise: string;
|
|
752
|
-
logoCode: string;
|
|
753
|
-
logoCodesandbox: string;
|
|
754
|
-
logoCouchbase: string;
|
|
755
|
-
logoDocker: string;
|
|
756
|
-
logoDropwizard: string;
|
|
757
|
-
logoElastic: string;
|
|
758
|
-
logoElasticStack: string;
|
|
759
|
-
logoElasticsearch: string;
|
|
760
|
-
logoEnterpriseSearch: string;
|
|
761
|
-
logoEtcd: string;
|
|
762
|
-
logoGCP: string;
|
|
763
|
-
logoGCPMono: string;
|
|
764
|
-
logoGithub: string;
|
|
765
|
-
logoGmail: string;
|
|
766
|
-
logoGolang: string;
|
|
767
|
-
logoGoogleG: string;
|
|
768
|
-
logoHAproxy: string;
|
|
769
|
-
logoIBM: string;
|
|
770
|
-
logoIBMMono: string;
|
|
771
|
-
logoKafka: string;
|
|
772
|
-
logoKibana: string;
|
|
773
|
-
logoKubernetes: string;
|
|
774
|
-
logoLogging: string;
|
|
775
|
-
logoLogstash: string;
|
|
776
|
-
logoMaps: string;
|
|
777
|
-
logoMemcached: string;
|
|
778
|
-
logoMetrics: string;
|
|
779
|
-
logoMongodb: string;
|
|
780
|
-
logoMySQL: string;
|
|
781
|
-
logoNginx: string;
|
|
782
|
-
logoObservability: string;
|
|
783
|
-
logoOsquery: string;
|
|
784
|
-
logoPhp: string;
|
|
785
|
-
logoPostgres: string;
|
|
786
|
-
logoPrometheus: string;
|
|
787
|
-
logoRabbitmq: string;
|
|
788
|
-
logoRedis: string;
|
|
789
|
-
logoSecurity: string;
|
|
790
|
-
logoSiteSearch: string;
|
|
791
|
-
logoSketch: string;
|
|
792
|
-
logoSlack: string;
|
|
793
|
-
logoUptime: string;
|
|
794
|
-
logoWebhook: string;
|
|
795
|
-
logoWindows: string;
|
|
796
|
-
logoWorkplaceSearch: string;
|
|
797
|
-
logsApp: string;
|
|
798
|
-
logstashFilter: string;
|
|
799
|
-
logstashIf: string;
|
|
800
|
-
logstashInput: string;
|
|
801
|
-
logstashOutput: string;
|
|
802
|
-
logstashQueue: string;
|
|
803
|
-
machineLearningApp: string;
|
|
804
|
-
magnet: string;
|
|
805
|
-
magnifyWithExclamation: string;
|
|
806
|
-
magnifyWithMinus: string;
|
|
807
|
-
magnifyWithPlus: string;
|
|
808
|
-
managementApp: string;
|
|
809
|
-
mapMarker: string;
|
|
810
|
-
memory: string;
|
|
811
|
-
menu: string;
|
|
812
|
-
menuDown: string;
|
|
813
|
-
menuLeft: string;
|
|
814
|
-
menuRight: string;
|
|
815
|
-
menuUp: string;
|
|
816
|
-
merge: string;
|
|
817
|
-
metricbeatApp: string;
|
|
818
|
-
metricsApp: string;
|
|
819
|
-
minimize: string;
|
|
820
|
-
minus: string;
|
|
821
|
-
minusInCircle: string;
|
|
822
|
-
minusInCircleFilled: string;
|
|
823
|
-
mobile: string;
|
|
824
|
-
monitoringApp: string;
|
|
825
|
-
moon: string;
|
|
826
|
-
namespace: string;
|
|
827
|
-
nested: string;
|
|
828
|
-
node: string;
|
|
829
|
-
notebookApp: string;
|
|
830
|
-
number: string;
|
|
831
|
-
offline: string;
|
|
832
|
-
online: string;
|
|
833
|
-
outlierDetectionJob: string;
|
|
834
|
-
package: string;
|
|
835
|
-
packetbeatApp: string;
|
|
836
|
-
pageSelect: string;
|
|
837
|
-
pagesSelect: string;
|
|
838
|
-
paperClip: string;
|
|
839
|
-
partial: string;
|
|
840
|
-
pause: string;
|
|
841
|
-
payment: string;
|
|
842
|
-
pencil: string;
|
|
843
|
-
percent: string;
|
|
844
|
-
pin: string;
|
|
845
|
-
pinFilled: string;
|
|
846
|
-
pipelineApp: string;
|
|
847
|
-
play: string;
|
|
848
|
-
playFilled: string;
|
|
849
|
-
plus: string;
|
|
850
|
-
plusInCircle: string;
|
|
851
|
-
plusInCircleFilled: string;
|
|
852
|
-
popout: string;
|
|
853
|
-
push: string;
|
|
854
|
-
questionInCircle: string;
|
|
855
|
-
quote: string;
|
|
856
|
-
recentlyViewedApp: string;
|
|
857
|
-
refresh: string;
|
|
858
|
-
regressionJob: string;
|
|
859
|
-
reporter: string;
|
|
860
|
-
reportingApp: string;
|
|
861
|
-
returnKey: string;
|
|
862
|
-
save: string;
|
|
863
|
-
savedObjectsApp: string;
|
|
864
|
-
scale: string;
|
|
865
|
-
search: string;
|
|
866
|
-
searchProfilerApp: string;
|
|
867
|
-
securityAnalyticsApp: string;
|
|
868
|
-
securityApp: string;
|
|
869
|
-
securitySignal: string;
|
|
870
|
-
securitySignalDetected: string;
|
|
871
|
-
securitySignalResolved: string;
|
|
872
|
-
sessionViewer: string;
|
|
873
|
-
shard: string;
|
|
874
|
-
share: string;
|
|
875
|
-
snowflake: string;
|
|
876
|
-
sortDown: string;
|
|
877
|
-
sortLeft: string;
|
|
878
|
-
sortRight: string;
|
|
879
|
-
sortUp: string;
|
|
880
|
-
sortable: string;
|
|
881
|
-
spacesApp: string;
|
|
882
|
-
sqlApp: string;
|
|
883
|
-
starEmpty: string;
|
|
884
|
-
starEmptySpace: string;
|
|
885
|
-
starFilled: string;
|
|
886
|
-
starFilledSpace: string;
|
|
887
|
-
starMinusEmpty: string;
|
|
888
|
-
starMinusFilled: string;
|
|
889
|
-
starPlusEmpty: string;
|
|
890
|
-
starPlusFilled: string;
|
|
891
|
-
stats: string;
|
|
892
|
-
stop: string;
|
|
893
|
-
stopFilled: string;
|
|
894
|
-
stopSlash: string;
|
|
895
|
-
storage: string;
|
|
896
|
-
string: string;
|
|
897
|
-
submodule: string;
|
|
898
|
-
sun: string;
|
|
899
|
-
swatchInput: string;
|
|
900
|
-
symlink: string;
|
|
901
|
-
tableDensityCompact: string;
|
|
902
|
-
tableDensityExpanded: string;
|
|
903
|
-
tableDensityNormal: string;
|
|
904
|
-
tableOfContents: string;
|
|
905
|
-
tag: string;
|
|
906
|
-
tear: string;
|
|
907
|
-
temperature: string;
|
|
908
|
-
timeline: string;
|
|
909
|
-
timelionApp: string;
|
|
910
|
-
timeRefresh: string;
|
|
911
|
-
timeslider: string;
|
|
912
|
-
training: string;
|
|
913
|
-
trash: string;
|
|
914
|
-
unfold: string;
|
|
915
|
-
unlink: string;
|
|
916
|
-
upgradeAssistantApp: string;
|
|
917
|
-
uptimeApp: string;
|
|
918
|
-
user: string;
|
|
919
|
-
userAvatar: string;
|
|
920
|
-
users: string;
|
|
921
|
-
usersRolesApp: string;
|
|
922
|
-
vector: string;
|
|
923
|
-
videoPlayer: string;
|
|
924
|
-
visArea: string;
|
|
925
|
-
visAreaStacked: string;
|
|
926
|
-
visBarHorizontal: string;
|
|
927
|
-
visBarHorizontalStacked: string;
|
|
928
|
-
visBarVertical: string;
|
|
929
|
-
visBarVerticalStacked: string;
|
|
930
|
-
visGauge: string;
|
|
931
|
-
visGoal: string;
|
|
932
|
-
visLine: string;
|
|
933
|
-
visMapCoordinate: string;
|
|
934
|
-
visMapRegion: string;
|
|
935
|
-
visMetric: string;
|
|
936
|
-
visPie: string;
|
|
937
|
-
visTable: string;
|
|
938
|
-
visTagCloud: string;
|
|
939
|
-
visText: string;
|
|
940
|
-
visTimelion: string;
|
|
941
|
-
visVega: string;
|
|
942
|
-
visVisualBuilder: string;
|
|
943
|
-
visualizeApp: string;
|
|
944
|
-
watchesApp: string;
|
|
945
|
-
wordWrap: string;
|
|
946
|
-
wordWrapDisabled: string;
|
|
947
|
-
workplaceSearchApp: string;
|
|
948
|
-
wrench: string;
|
|
949
|
-
tokenAlias: string;
|
|
950
|
-
tokenAnnotation: string;
|
|
951
|
-
tokenArray: string;
|
|
952
|
-
tokenBinary: string;
|
|
953
|
-
tokenBoolean: string;
|
|
954
|
-
tokenClass: string;
|
|
955
|
-
tokenCompletionSuggester: string;
|
|
956
|
-
tokenConstant: string;
|
|
957
|
-
tokenDate: string;
|
|
958
|
-
tokenDenseVector: string;
|
|
959
|
-
tokenElement: string;
|
|
960
|
-
tokenEnum: string;
|
|
961
|
-
tokenEnumMember: string;
|
|
962
|
-
tokenEvent: string;
|
|
963
|
-
tokenException: string;
|
|
964
|
-
tokenField: string;
|
|
965
|
-
tokenFile: string;
|
|
966
|
-
tokenFlattened: string;
|
|
967
|
-
tokenFunction: string;
|
|
968
|
-
tokenGeo: string;
|
|
969
|
-
tokenHistogram: string;
|
|
970
|
-
tokenInterface: string;
|
|
971
|
-
tokenIP: string;
|
|
972
|
-
tokenJoin: string;
|
|
973
|
-
tokenKey: string;
|
|
974
|
-
tokenKeyword: string;
|
|
975
|
-
tokenMethod: string;
|
|
976
|
-
tokenMetricCounter: string;
|
|
977
|
-
tokenMetricGauge: string;
|
|
978
|
-
tokenModule: string;
|
|
979
|
-
tokenNamespace: string;
|
|
980
|
-
tokenNested: string;
|
|
981
|
-
tokenNull: string;
|
|
982
|
-
tokenNumber: string;
|
|
983
|
-
tokenObject: string;
|
|
984
|
-
tokenOperator: string;
|
|
985
|
-
tokenPackage: string;
|
|
986
|
-
tokenParameter: string;
|
|
987
|
-
tokenPercolator: string;
|
|
988
|
-
tokenProperty: string;
|
|
989
|
-
tokenRange: string;
|
|
990
|
-
tokenRankFeature: string;
|
|
991
|
-
tokenRankFeatures: string;
|
|
992
|
-
tokenRepo: string;
|
|
993
|
-
tokenSearchType: string;
|
|
994
|
-
tokenShape: string;
|
|
995
|
-
tokenString: string;
|
|
996
|
-
tokenStruct: string;
|
|
997
|
-
tokenSymbol: string;
|
|
998
|
-
tokenTag: string;
|
|
999
|
-
tokenText: string;
|
|
1000
|
-
tokenTokenCount: string;
|
|
1001
|
-
tokenVariable: string;
|
|
1002
|
-
};
|
|
1003
|
-
|
|
1004
|
-
}
|
|
1005
|
-
declare module '@elastic/eui/src/components/icon/assets/empty' {
|
|
1006
|
-
import * as React from 'react';
|
|
1007
|
-
interface SVGRProps {
|
|
1008
|
-
title?: string;
|
|
1009
|
-
titleId?: string;
|
|
1010
|
-
}
|
|
1011
|
-
export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
1012
|
-
export {};
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1015
|
-
declare module '@elastic/eui/src/services/react' {
|
|
1016
|
-
export function enqueueStateChange(fn: Function): void;
|
|
1017
|
-
|
|
1018
|
-
}
|
|
1019
|
-
declare module '@elastic/eui/src/components/icon/named_colors' {
|
|
1020
|
-
export const COLORS: readonly ["default", "primary", "success", "accent", "warning", "danger", "text", "subdued", "ghost", "inherit"];
|
|
1021
|
-
export type NamedColor = typeof COLORS[number];
|
|
1022
|
-
export function isNamedColor(name: string): boolean;
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1025
|
-
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
1026
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1027
|
-
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
|
|
1028
|
-
export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
|
|
1029
|
-
export interface _EuiBackgroundColorOptions {
|
|
1030
|
-
/**
|
|
1031
|
-
* Use `opaque` for containers of unknown content.
|
|
1032
|
-
* Use `transparent` for interactive states like hover and focus.
|
|
1033
|
-
*/
|
|
1034
|
-
method?: 'opaque' | 'transparent';
|
|
1035
|
-
}
|
|
1036
|
-
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1037
|
-
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1038
|
-
export const useEuiBackgroundColorCSS: () => {
|
|
1039
|
-
transparent: import("@emotion/utils").SerializedStyles;
|
|
1040
|
-
plain: import("@emotion/utils").SerializedStyles;
|
|
1041
|
-
subdued: import("@emotion/utils").SerializedStyles;
|
|
1042
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
1043
|
-
primary: import("@emotion/utils").SerializedStyles;
|
|
1044
|
-
success: import("@emotion/utils").SerializedStyles;
|
|
1045
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
1046
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
1047
|
-
};
|
|
1048
|
-
|
|
1049
|
-
}
|
|
1050
|
-
declare module '@elastic/eui/src/global_styling/variables/animations' {
|
|
1051
|
-
import { CSSProperties } from 'react';
|
|
1052
|
-
/**
|
|
1053
|
-
* A constant storing the `prefers-reduced-motion` media query
|
|
1054
|
-
* so that when it is turned off, animations are not run.
|
|
1055
|
-
*/
|
|
1056
|
-
export const euiCanAnimate = "@media screen and (prefers-reduced-motion: no-preference)";
|
|
1057
|
-
/**
|
|
1058
|
-
* A constant storing the `prefers-reduced-motion` media query that will
|
|
1059
|
-
* only apply the content if the setting is off (reduce).
|
|
1060
|
-
*/
|
|
1061
|
-
export const euiCantAnimate = "@media screen and (prefers-reduced-motion: reduce)";
|
|
1062
|
-
/**
|
|
1063
|
-
* Speeds / Durations / Delays
|
|
1064
|
-
*/
|
|
1065
|
-
export const EuiThemeAnimationSpeeds: readonly ["extraFast", "fast", "normal", "slow", "extraSlow"];
|
|
1066
|
-
export type _EuiThemeAnimationSpeed = typeof EuiThemeAnimationSpeeds[number];
|
|
1067
|
-
export type _EuiThemeAnimationSpeeds = Record<_EuiThemeAnimationSpeed, CSSProperties['animationDuration']>;
|
|
1068
|
-
/**
|
|
1069
|
-
* Easings / Timing functions
|
|
1070
|
-
*/
|
|
1071
|
-
export const EuiThemeAnimationEasings: readonly ["bounce", "resistance"];
|
|
1072
|
-
export type _EuiThemeAnimationEasing = typeof EuiThemeAnimationEasings[number];
|
|
1073
|
-
export type _EuiThemeAnimationEasings = Record<_EuiThemeAnimationEasing, CSSProperties['animationTimingFunction']>;
|
|
1074
|
-
export type _EuiThemeAnimation = _EuiThemeAnimationEasings & _EuiThemeAnimationSpeeds;
|
|
1075
|
-
|
|
1076
|
-
}
|
|
1077
|
-
declare module '@elastic/eui/src/global_styling/variables/breakpoint' {
|
|
1078
|
-
export const EuiThemeBreakpoints: readonly ["xs", "s", "m", "l", "xl"];
|
|
1079
|
-
export type _EuiThemeBreakpoint = typeof EuiThemeBreakpoints[number];
|
|
1080
|
-
export type _EuiThemeBreakpoints = {
|
|
1081
|
-
[key in _EuiThemeBreakpoint]: number;
|
|
1082
|
-
};
|
|
1083
|
-
|
|
1084
|
-
}
|
|
1085
|
-
declare module '@elastic/eui/src/global_styling/variables/borders' {
|
|
1086
|
-
import { CSSProperties } from 'react';
|
|
1087
|
-
import { ColorModeSwitch } from '@elastic/eui/src/services/theme/types';
|
|
1088
|
-
export interface _EuiThemeBorderWidthValues {
|
|
1089
|
-
/**
|
|
1090
|
-
* Thinnest width for border
|
|
1091
|
-
*/
|
|
1092
|
-
thin: CSSProperties['borderWidth'];
|
|
1093
|
-
/**
|
|
1094
|
-
* Thickest width for border
|
|
1095
|
-
*/
|
|
1096
|
-
thick: CSSProperties['borderWidth'];
|
|
1097
|
-
}
|
|
1098
|
-
export interface _EuiThemeBorderRadiusValues {
|
|
1099
|
-
/**
|
|
1100
|
-
* Primary corner radius size
|
|
1101
|
-
*/
|
|
1102
|
-
medium: CSSProperties['borderRadius'];
|
|
1103
|
-
/**
|
|
1104
|
-
* Small corner radius size
|
|
1105
|
-
*/
|
|
1106
|
-
small: CSSProperties['borderRadius'];
|
|
1107
|
-
}
|
|
1108
|
-
export interface _EuiThemeBorderColorValues {
|
|
1109
|
-
/**
|
|
1110
|
-
* Color for all borders; Default is `colors.lightShade`
|
|
1111
|
-
*/
|
|
1112
|
-
color: ColorModeSwitch;
|
|
1113
|
-
}
|
|
1114
|
-
export interface _EuiThemeBorderValues extends _EuiThemeBorderColorValues {
|
|
1115
|
-
/**
|
|
1116
|
-
* Varied thicknesses for borders
|
|
1117
|
-
*/
|
|
1118
|
-
width: _EuiThemeBorderWidthValues;
|
|
1119
|
-
/**
|
|
1120
|
-
* Varied border radii
|
|
1121
|
-
*/
|
|
1122
|
-
radius: _EuiThemeBorderRadiusValues;
|
|
1123
|
-
}
|
|
1124
|
-
export interface _EuiThemeBorderTypes {
|
|
1125
|
-
/**
|
|
1126
|
-
* Full `border` property string computed using `border.width.thin` and `border.color`
|
|
1127
|
-
*/
|
|
1128
|
-
thin: CSSProperties['border'];
|
|
1129
|
-
/**
|
|
1130
|
-
* Full `border` property string computed using `border.width.thick` and `border.color`
|
|
1131
|
-
*/
|
|
1132
|
-
thick: CSSProperties['border'];
|
|
1133
|
-
/**
|
|
1134
|
-
* Full editable style `border` property string computed using `border.width.thick` and `border.color`
|
|
1135
|
-
*/
|
|
1136
|
-
editable: CSSProperties['border'];
|
|
1137
|
-
}
|
|
1138
|
-
export type _EuiThemeBorder = _EuiThemeBorderValues & _EuiThemeBorderTypes;
|
|
1139
|
-
|
|
1140
|
-
}
|
|
1141
|
-
declare module '@elastic/eui/src/global_styling/variables/colors' {
|
|
1142
|
-
import { ColorModeSwitch, StrictColorModeSwitch } from '@elastic/eui/src/services/theme/types';
|
|
1143
|
-
/**
|
|
1144
|
-
* Top 5 colors
|
|
1145
|
-
*/
|
|
1146
|
-
export type _EuiThemeBrandColors = {
|
|
1147
|
-
/**
|
|
1148
|
-
* Main brand color and used for most **call to actions** like buttons and links.
|
|
1149
|
-
*/
|
|
1150
|
-
primary: ColorModeSwitch;
|
|
1151
|
-
/**
|
|
1152
|
-
* Pulls attention to key indicators like **notifications** or number of selections.
|
|
1153
|
-
*/
|
|
1154
|
-
accent: ColorModeSwitch;
|
|
1155
|
-
/**
|
|
1156
|
-
* Used for **positive** messages/graphics and additive actions.
|
|
1157
|
-
*/
|
|
1158
|
-
success: ColorModeSwitch;
|
|
1159
|
-
/**
|
|
1160
|
-
* Used for **warnings** and actions that have a potential to be destructive.
|
|
1161
|
-
*/
|
|
1162
|
-
warning: ColorModeSwitch;
|
|
1163
|
-
/**
|
|
1164
|
-
* Used for **negative** messages/graphics like errors and destructive actions.
|
|
1165
|
-
*/
|
|
1166
|
-
danger: ColorModeSwitch;
|
|
1167
|
-
};
|
|
1168
|
-
/**
|
|
1169
|
-
* Every brand color must have a contrast computed text equivelant
|
|
1170
|
-
*/
|
|
1171
|
-
export type _EuiThemeBrandTextColors = {
|
|
1172
|
-
/**
|
|
1173
|
-
* Typically computed against `colors.primary`
|
|
1174
|
-
*/
|
|
1175
|
-
primaryText: ColorModeSwitch;
|
|
1176
|
-
/**
|
|
1177
|
-
* Typically computed against `colors.accent`
|
|
1178
|
-
*/
|
|
1179
|
-
accentText: ColorModeSwitch;
|
|
1180
|
-
/**
|
|
1181
|
-
* Typically computed against `colors.success`
|
|
1182
|
-
*/
|
|
1183
|
-
successText: ColorModeSwitch;
|
|
1184
|
-
/**
|
|
1185
|
-
* Typically computed against `colors.warning`
|
|
1186
|
-
*/
|
|
1187
|
-
warningText: ColorModeSwitch;
|
|
1188
|
-
/**
|
|
1189
|
-
* Typically computed against `colors.danger`
|
|
1190
|
-
*/
|
|
1191
|
-
dangerText: ColorModeSwitch;
|
|
1192
|
-
};
|
|
1193
|
-
export type _EuiThemeShadeColors = {
|
|
1194
|
-
/**
|
|
1195
|
-
* Used as the background color of primary **page content and panels** including modals and flyouts.
|
|
1196
|
-
*/
|
|
1197
|
-
emptyShade: ColorModeSwitch;
|
|
1198
|
-
/**
|
|
1199
|
-
* Used to lightly shade areas that contain **secondary content** or contain panel-like components.
|
|
1200
|
-
*/
|
|
1201
|
-
lightestShade: ColorModeSwitch;
|
|
1202
|
-
/**
|
|
1203
|
-
* Used for most **borders** and dividers (horizontal rules).
|
|
1204
|
-
*/
|
|
1205
|
-
lightShade: ColorModeSwitch;
|
|
1206
|
-
/**
|
|
1207
|
-
* The middle gray for all themes; this is the base for `colors.subdued`.
|
|
1208
|
-
*/
|
|
1209
|
-
mediumShade: ColorModeSwitch;
|
|
1210
|
-
/**
|
|
1211
|
-
* Slightly subtle graphic color
|
|
1212
|
-
*/
|
|
1213
|
-
darkShade: ColorModeSwitch;
|
|
1214
|
-
/**
|
|
1215
|
-
* Used as the **text** color and the background color for **inverted components** like tooltips and the control bar.
|
|
1216
|
-
*/
|
|
1217
|
-
darkestShade: ColorModeSwitch;
|
|
1218
|
-
/**
|
|
1219
|
-
* The opposite of `emptyShade`
|
|
1220
|
-
*/
|
|
1221
|
-
fullShade: ColorModeSwitch;
|
|
1222
|
-
};
|
|
1223
|
-
export type _EuiThemeTextColors = {
|
|
1224
|
-
/**
|
|
1225
|
-
* Computed against `colors.darkestShade`
|
|
1226
|
-
*/
|
|
1227
|
-
text: ColorModeSwitch;
|
|
1228
|
-
/**
|
|
1229
|
-
* Computed against `colors.text`
|
|
1230
|
-
*/
|
|
1231
|
-
title: ColorModeSwitch;
|
|
1232
|
-
/**
|
|
1233
|
-
* Computed against `colors.mediumShade`
|
|
1234
|
-
*/
|
|
1235
|
-
subduedText: ColorModeSwitch;
|
|
1236
|
-
/**
|
|
1237
|
-
* Computed against `colors.primaryText`
|
|
1238
|
-
*/
|
|
1239
|
-
link: ColorModeSwitch;
|
|
1240
|
-
};
|
|
1241
|
-
export type _EuiThemeSpecialColors = {
|
|
1242
|
-
/**
|
|
1243
|
-
* The background color for the **whole window (body)** and is a computed value of `colors.lightestShade`.
|
|
1244
|
-
* Provides denominator (background) value for **contrast calculations**.
|
|
1245
|
-
*/
|
|
1246
|
-
body: ColorModeSwitch;
|
|
1247
|
-
/**
|
|
1248
|
-
* Used to **highlight text** when matching against search strings
|
|
1249
|
-
*/
|
|
1250
|
-
highlight: ColorModeSwitch;
|
|
1251
|
-
/**
|
|
1252
|
-
* Computed against `colors.darkestShade`
|
|
1253
|
-
*/
|
|
1254
|
-
disabled: ColorModeSwitch;
|
|
1255
|
-
/**
|
|
1256
|
-
* Computed against `colors.disabled`
|
|
1257
|
-
*/
|
|
1258
|
-
disabledText: ColorModeSwitch;
|
|
1259
|
-
/**
|
|
1260
|
-
* The base color for shadows that gets `transparentized`
|
|
1261
|
-
* at a value based on the `colorMode` and then layered.
|
|
1262
|
-
*/
|
|
1263
|
-
shadow: ColorModeSwitch;
|
|
1264
|
-
};
|
|
1265
|
-
export type _EuiThemeConstantColors = {
|
|
1266
|
-
/**
|
|
1267
|
-
* Purest **white**
|
|
1268
|
-
*/
|
|
1269
|
-
ghost: string;
|
|
1270
|
-
/**
|
|
1271
|
-
* Purest **black**
|
|
1272
|
-
*/
|
|
1273
|
-
ink: string;
|
|
1274
|
-
};
|
|
1275
|
-
export type _EuiThemeColorsMode = _EuiThemeBrandColors & _EuiThemeBrandTextColors & _EuiThemeShadeColors & _EuiThemeSpecialColors & _EuiThemeTextColors;
|
|
1276
|
-
export type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> & _EuiThemeConstantColors;
|
|
1277
|
-
|
|
1278
|
-
}
|
|
1279
|
-
declare module '@elastic/eui/src/global_styling/variables/size' {
|
|
1280
|
-
export type _EuiThemeBase = number;
|
|
1281
|
-
export const EuiThemeSizes: readonly ["xxs", "xs", "s", "m", "base", "l", "xl", "xxl", "xxxl", "xxxxl"];
|
|
1282
|
-
export type _EuiThemeSize = typeof EuiThemeSizes[number];
|
|
1283
|
-
export type _EuiThemeSizes = Record<_EuiThemeSize, string>;
|
|
477
|
+
declare module '@elastic/eui/src/global_styling/variables/size' {
|
|
478
|
+
export type _EuiThemeBase = number;
|
|
479
|
+
export const EuiThemeSizes: readonly ["xxs", "xs", "s", "m", "base", "l", "xl", "xxl", "xxxl", "xxxxl"];
|
|
480
|
+
export type _EuiThemeSize = typeof EuiThemeSizes[number];
|
|
481
|
+
export type _EuiThemeSizes = Record<_EuiThemeSize, string>;
|
|
1284
482
|
|
|
1285
483
|
}
|
|
1286
484
|
declare module '@elastic/eui/src/global_styling/variables/typography' {
|
|
@@ -1379,77 +577,214 @@ declare module '@elastic/eui/src/global_styling/variables/states' {
|
|
|
1379
577
|
}
|
|
1380
578
|
|
|
1381
579
|
}
|
|
1382
|
-
declare module '@elastic/eui/src/global_styling/variables/levels' {
|
|
1383
|
-
import { CSSProperties } from 'react';
|
|
580
|
+
declare module '@elastic/eui/src/global_styling/variables/levels' {
|
|
581
|
+
import { CSSProperties } from 'react';
|
|
582
|
+
/**
|
|
583
|
+
* Z-Index
|
|
584
|
+
*
|
|
585
|
+
* Remember that z-index is relative to parent and based on the stacking context.
|
|
586
|
+
* z-indexes only compete against other z-indexes when they exist as children of
|
|
587
|
+
* that shared parent.
|
|
588
|
+
*
|
|
589
|
+
* That means a popover with a settings of 2, will still show above a modal
|
|
590
|
+
* with a setting of 100, if it is within that modal and not besides it.
|
|
591
|
+
*
|
|
592
|
+
* Generally that means it's a good idea to consider things added to this file
|
|
593
|
+
* as competitive only as siblings.
|
|
594
|
+
*
|
|
595
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
596
|
+
*/
|
|
597
|
+
export const EuiThemeLevels: readonly ["toast", "modal", "mask", "navigation", "menu", "header", "flyout", "maskBelowHeader", "content"];
|
|
598
|
+
export type _EuiThemeLevel = typeof EuiThemeLevels[number];
|
|
599
|
+
export type _EuiThemeLevels = Record<_EuiThemeLevel, NonNullable<CSSProperties['zIndex']>>;
|
|
600
|
+
|
|
601
|
+
}
|
|
602
|
+
declare module '@elastic/eui/src/services/theme/types' {
|
|
603
|
+
import { RecursivePartial, ValueOf } from '@elastic/eui/src/components/common';
|
|
604
|
+
import { _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
605
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
606
|
+
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables/borders';
|
|
607
|
+
import { _EuiThemeColors } from '@elastic/eui/src/global_styling/variables/colors';
|
|
608
|
+
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables/size';
|
|
609
|
+
import { _EuiThemeFont } from '@elastic/eui/src/global_styling/variables/typography';
|
|
610
|
+
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
611
|
+
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables/levels';
|
|
612
|
+
export const COLOR_MODES_STANDARD: {
|
|
613
|
+
readonly light: "LIGHT";
|
|
614
|
+
readonly dark: "DARK";
|
|
615
|
+
};
|
|
616
|
+
export const COLOR_MODES_INVERSE: "INVERSE";
|
|
617
|
+
export type EuiThemeColorModeInverse = typeof COLOR_MODES_INVERSE;
|
|
618
|
+
export type EuiThemeColorModeStandard = ValueOf<typeof COLOR_MODES_STANDARD>;
|
|
619
|
+
export type EuiThemeColorMode = 'light' | 'dark' | EuiThemeColorModeStandard | 'inverse' | EuiThemeColorModeInverse;
|
|
620
|
+
export type ColorModeSwitch<T = string> = {
|
|
621
|
+
[key in EuiThemeColorModeStandard]: T;
|
|
622
|
+
} | T;
|
|
623
|
+
export type StrictColorModeSwitch<T = string> = {
|
|
624
|
+
[key in EuiThemeColorModeStandard]: T;
|
|
625
|
+
};
|
|
626
|
+
export type EuiThemeShape = {
|
|
627
|
+
colors: _EuiThemeColors;
|
|
628
|
+
base: _EuiThemeBase;
|
|
629
|
+
size: _EuiThemeSizes;
|
|
630
|
+
font: _EuiThemeFont;
|
|
631
|
+
border: _EuiThemeBorder;
|
|
632
|
+
focus: _EuiThemeFocus;
|
|
633
|
+
animation: _EuiThemeAnimation;
|
|
634
|
+
breakpoint: _EuiThemeBreakpoints;
|
|
635
|
+
levels: _EuiThemeLevels;
|
|
636
|
+
};
|
|
637
|
+
export type EuiThemeSystem<T = {}> = {
|
|
638
|
+
root: EuiThemeShape & T;
|
|
639
|
+
model: EuiThemeShape & T;
|
|
640
|
+
key: string;
|
|
641
|
+
};
|
|
642
|
+
export type EuiThemeModifications<T = {}> = RecursivePartial<EuiThemeShape & T>;
|
|
643
|
+
export type ComputedThemeShape<T, P = string | number | bigint | boolean | null | undefined> = T extends P | ColorModeSwitch<infer X> ? T extends ColorModeSwitch<X> ? X extends P ? X : {
|
|
644
|
+
[K in keyof (X & Exclude<T, keyof X | keyof StrictColorModeSwitch>)]: ComputedThemeShape<(X & Exclude<T, keyof X | keyof StrictColorModeSwitch>)[K], P>;
|
|
645
|
+
} : T : {
|
|
646
|
+
[K in keyof T]: ComputedThemeShape<T[K], P>;
|
|
647
|
+
};
|
|
648
|
+
export type EuiThemeComputed<T = {}> = ComputedThemeShape<EuiThemeShape & T> & {
|
|
649
|
+
themeName: string;
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
}
|
|
653
|
+
declare module '@elastic/eui/src/global_styling/variables/borders' {
|
|
654
|
+
import { CSSProperties } from 'react';
|
|
655
|
+
import { ColorModeSwitch } from '@elastic/eui/src/services/theme/types';
|
|
656
|
+
export interface _EuiThemeBorderWidthValues {
|
|
657
|
+
/**
|
|
658
|
+
* Thinnest width for border
|
|
659
|
+
*/
|
|
660
|
+
thin: CSSProperties['borderWidth'];
|
|
661
|
+
/**
|
|
662
|
+
* Thickest width for border
|
|
663
|
+
*/
|
|
664
|
+
thick: CSSProperties['borderWidth'];
|
|
665
|
+
}
|
|
666
|
+
export interface _EuiThemeBorderRadiusValues {
|
|
667
|
+
/**
|
|
668
|
+
* Primary corner radius size
|
|
669
|
+
*/
|
|
670
|
+
medium: CSSProperties['borderRadius'];
|
|
671
|
+
/**
|
|
672
|
+
* Small corner radius size
|
|
673
|
+
*/
|
|
674
|
+
small: CSSProperties['borderRadius'];
|
|
675
|
+
}
|
|
676
|
+
export interface _EuiThemeBorderColorValues {
|
|
677
|
+
/**
|
|
678
|
+
* Color for all borders; Default is `colors.lightShade`
|
|
679
|
+
*/
|
|
680
|
+
color: ColorModeSwitch;
|
|
681
|
+
}
|
|
682
|
+
export interface _EuiThemeBorderValues extends _EuiThemeBorderColorValues {
|
|
683
|
+
/**
|
|
684
|
+
* Varied thicknesses for borders
|
|
685
|
+
*/
|
|
686
|
+
width: _EuiThemeBorderWidthValues;
|
|
687
|
+
/**
|
|
688
|
+
* Varied border radii
|
|
689
|
+
*/
|
|
690
|
+
radius: _EuiThemeBorderRadiusValues;
|
|
691
|
+
}
|
|
692
|
+
export interface _EuiThemeBorderTypes {
|
|
693
|
+
/**
|
|
694
|
+
* Full `border` property string computed using `border.width.thin` and `border.color`
|
|
695
|
+
*/
|
|
696
|
+
thin: CSSProperties['border'];
|
|
697
|
+
/**
|
|
698
|
+
* Full `border` property string computed using `border.width.thick` and `border.color`
|
|
699
|
+
*/
|
|
700
|
+
thick: CSSProperties['border'];
|
|
701
|
+
/**
|
|
702
|
+
* Full editable style `border` property string computed using `border.width.thick` and `border.color`
|
|
703
|
+
*/
|
|
704
|
+
editable: CSSProperties['border'];
|
|
705
|
+
}
|
|
706
|
+
export type _EuiThemeBorder = _EuiThemeBorderValues & _EuiThemeBorderTypes;
|
|
707
|
+
|
|
708
|
+
}
|
|
709
|
+
declare module '@elastic/eui/src/global_styling/variables/shadow' {
|
|
710
|
+
export const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
|
|
711
|
+
export type _EuiThemeShadowSize = typeof EuiThemeShadowSizes[number];
|
|
712
|
+
/**
|
|
713
|
+
* Shadow t-shirt sizes descriptions
|
|
714
|
+
*/
|
|
715
|
+
export const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
|
|
716
|
+
export interface _EuiThemeShadowCustomColor {
|
|
717
|
+
color?: string;
|
|
718
|
+
property?: 'box-shadow' | 'filter';
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
}
|
|
722
|
+
declare module '@elastic/eui/src/global_styling/variables' {
|
|
723
|
+
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
724
|
+
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
725
|
+
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
726
|
+
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
727
|
+
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
728
|
+
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
729
|
+
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
730
|
+
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
731
|
+
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
732
|
+
|
|
733
|
+
}
|
|
734
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
735
|
+
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
|
|
736
|
+
export const breakpoint: _EuiThemeBreakpoints;
|
|
737
|
+
|
|
738
|
+
}
|
|
739
|
+
declare module '@elastic/eui/src/services/breakpoint/breakpoint' {
|
|
740
|
+
import { _EuiThemeBreakpoint, _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
741
|
+
export type EuiBreakpointSize = _EuiThemeBreakpoint;
|
|
742
|
+
export type EuiBreakpoints = _EuiThemeBreakpoints;
|
|
743
|
+
export const BREAKPOINTS: _EuiThemeBreakpoints;
|
|
744
|
+
export const BREAKPOINT_KEYS: ("s" | "xs" | "m" | "l" | "xl")[];
|
|
1384
745
|
/**
|
|
1385
|
-
*
|
|
746
|
+
* Given the current `width` and an object of `EuiBreakpoints`,
|
|
747
|
+
* this function returns the string that is the name of the breakpoint key
|
|
748
|
+
* that is less than or equal to the width
|
|
1386
749
|
*
|
|
1387
|
-
*
|
|
1388
|
-
*
|
|
1389
|
-
*
|
|
750
|
+
* @param {number} width Can either be the full window width or any width
|
|
751
|
+
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
752
|
+
* @returns {string | undefined} Name of the breakpoint key or `undefined` if a key doesn't exist
|
|
753
|
+
*/
|
|
754
|
+
export function getBreakpoint(width: number, breakpoints?: EuiBreakpoints): EuiBreakpointSize | undefined;
|
|
755
|
+
/**
|
|
756
|
+
* Given the current `width` and a max breakpoint key,
|
|
757
|
+
* this function returns true or false if the `width` falls within the max
|
|
758
|
+
* breakpoint or any breakpoints below
|
|
1390
759
|
*
|
|
1391
|
-
*
|
|
1392
|
-
*
|
|
760
|
+
* @param {number} width Can either be the full window width or any width
|
|
761
|
+
* @param {EuiBreakpointSize | number} max The named breakpoint or custom number to check against
|
|
762
|
+
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
763
|
+
* @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint
|
|
764
|
+
*/
|
|
765
|
+
export function isWithinMaxBreakpoint(width: number, max: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
|
|
766
|
+
/**
|
|
767
|
+
* Given the current `width` and a min breakpoint key,
|
|
768
|
+
* this function returns true or false if the `width` falls within the min
|
|
769
|
+
* breakpoint or any breakpoints above
|
|
1393
770
|
*
|
|
1394
|
-
*
|
|
1395
|
-
*
|
|
771
|
+
* @param {number} width Can either be the full window width or any width
|
|
772
|
+
* @param {EuiBreakpointSize | number} min The named breakpoint or custom number to check against
|
|
773
|
+
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
774
|
+
* @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint
|
|
775
|
+
*/
|
|
776
|
+
export function isWithinMinBreakpoint(width: number, min: EuiBreakpointSize | number, breakpoints?: EuiBreakpoints): boolean;
|
|
777
|
+
/**
|
|
778
|
+
* Given the current `width` and an array of breakpoint keys,
|
|
779
|
+
* this function returns true or false if the `width` falls within
|
|
780
|
+
* any of the named breakpoints
|
|
1396
781
|
*
|
|
1397
|
-
*
|
|
782
|
+
* @param {number} width Can either be the full window width or any width
|
|
783
|
+
* @param {EuiBreakpointSize[]} sizes An array of named breakpoints
|
|
784
|
+
* @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width
|
|
785
|
+
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
1398
786
|
*/
|
|
1399
|
-
export
|
|
1400
|
-
export type _EuiThemeLevel = typeof EuiThemeLevels[number];
|
|
1401
|
-
export type _EuiThemeLevels = Record<_EuiThemeLevel, NonNullable<CSSProperties['zIndex']>>;
|
|
1402
|
-
|
|
1403
|
-
}
|
|
1404
|
-
declare module '@elastic/eui/src/services/theme/types' {
|
|
1405
|
-
import { RecursivePartial, ValueOf } from '@elastic/eui/src/components/common';
|
|
1406
|
-
import { _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
1407
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1408
|
-
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables/borders';
|
|
1409
|
-
import { _EuiThemeColors } from '@elastic/eui/src/global_styling/variables/colors';
|
|
1410
|
-
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables/size';
|
|
1411
|
-
import { _EuiThemeFont } from '@elastic/eui/src/global_styling/variables/typography';
|
|
1412
|
-
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
1413
|
-
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables/levels';
|
|
1414
|
-
export const COLOR_MODES_STANDARD: {
|
|
1415
|
-
readonly light: "LIGHT";
|
|
1416
|
-
readonly dark: "DARK";
|
|
1417
|
-
};
|
|
1418
|
-
export const COLOR_MODES_INVERSE: "INVERSE";
|
|
1419
|
-
export type EuiThemeColorModeInverse = typeof COLOR_MODES_INVERSE;
|
|
1420
|
-
export type EuiThemeColorModeStandard = ValueOf<typeof COLOR_MODES_STANDARD>;
|
|
1421
|
-
export type EuiThemeColorMode = 'light' | 'dark' | EuiThemeColorModeStandard | 'inverse' | EuiThemeColorModeInverse;
|
|
1422
|
-
export type ColorModeSwitch<T = string> = {
|
|
1423
|
-
[key in EuiThemeColorModeStandard]: T;
|
|
1424
|
-
} | T;
|
|
1425
|
-
export type StrictColorModeSwitch<T = string> = {
|
|
1426
|
-
[key in EuiThemeColorModeStandard]: T;
|
|
1427
|
-
};
|
|
1428
|
-
export type EuiThemeShape = {
|
|
1429
|
-
colors: _EuiThemeColors;
|
|
1430
|
-
base: _EuiThemeBase;
|
|
1431
|
-
size: _EuiThemeSizes;
|
|
1432
|
-
font: _EuiThemeFont;
|
|
1433
|
-
border: _EuiThemeBorder;
|
|
1434
|
-
focus: _EuiThemeFocus;
|
|
1435
|
-
animation: _EuiThemeAnimation;
|
|
1436
|
-
breakpoint: _EuiThemeBreakpoints;
|
|
1437
|
-
levels: _EuiThemeLevels;
|
|
1438
|
-
};
|
|
1439
|
-
export type EuiThemeSystem<T = {}> = {
|
|
1440
|
-
root: EuiThemeShape & T;
|
|
1441
|
-
model: EuiThemeShape & T;
|
|
1442
|
-
key: string;
|
|
1443
|
-
};
|
|
1444
|
-
export type EuiThemeModifications<T = {}> = RecursivePartial<EuiThemeShape & T>;
|
|
1445
|
-
export type ComputedThemeShape<T, P = string | number | bigint | boolean | null | undefined> = T extends P | ColorModeSwitch<infer X> ? T extends ColorModeSwitch<X> ? X extends P ? X : {
|
|
1446
|
-
[K in keyof (X & Exclude<T, keyof X | keyof StrictColorModeSwitch>)]: ComputedThemeShape<(X & Exclude<T, keyof X | keyof StrictColorModeSwitch>)[K], P>;
|
|
1447
|
-
} : T : {
|
|
1448
|
-
[K in keyof T]: ComputedThemeShape<T[K], P>;
|
|
1449
|
-
};
|
|
1450
|
-
export type EuiThemeComputed<T = {}> = ComputedThemeShape<EuiThemeShape & T> & {
|
|
1451
|
-
themeName: string;
|
|
1452
|
-
};
|
|
787
|
+
export function isWithinBreakpoints(width: number, sizes: EuiBreakpointSize[], breakpoints?: EuiBreakpoints): boolean;
|
|
1453
788
|
|
|
1454
789
|
}
|
|
1455
790
|
declare module '@elastic/eui/src/services/theme/utils' {
|
|
@@ -1495,195 +830,804 @@ declare module '@elastic/eui/src/services/theme/utils' {
|
|
|
1495
830
|
* @param {function} computer - Function to be computed
|
|
1496
831
|
* @param {string | array} dependencies - Dependencies passed to the `computer` as parameters
|
|
1497
832
|
*/
|
|
1498
|
-
export class Computed<T> {
|
|
1499
|
-
computer: (...values: any[]) => T;
|
|
1500
|
-
dependencies: string | string[];
|
|
1501
|
-
constructor(computer: (...values: any[]) => T, dependencies?: string | string[]);
|
|
1502
|
-
/**
|
|
1503
|
-
* Executes the `computer` method with the current state of the theme
|
|
1504
|
-
* by taking into account previously computed values and modifications.
|
|
1505
|
-
* @param {Proxy | object} base - Computed or uncomputed theme
|
|
1506
|
-
* @param {Proxy | object} modifications - Theme value overrides
|
|
1507
|
-
* @param {object} working - Partially computed theme
|
|
1508
|
-
* @param {string} colorMode - `light` or `dark`
|
|
1509
|
-
*/
|
|
1510
|
-
getValue(base: EuiThemeSystem | EuiThemeShape, modifications: import ("@elastic/eui").RecursivePartial<EuiThemeShape> | undefined, working: EuiThemeComputed, colorMode: EuiThemeColorModeStandard): T;
|
|
1511
|
-
}
|
|
833
|
+
export class Computed<T> {
|
|
834
|
+
computer: (...values: any[]) => T;
|
|
835
|
+
dependencies: string | string[];
|
|
836
|
+
constructor(computer: (...values: any[]) => T, dependencies?: string | string[]);
|
|
837
|
+
/**
|
|
838
|
+
* Executes the `computer` method with the current state of the theme
|
|
839
|
+
* by taking into account previously computed values and modifications.
|
|
840
|
+
* @param {Proxy | object} base - Computed or uncomputed theme
|
|
841
|
+
* @param {Proxy | object} modifications - Theme value overrides
|
|
842
|
+
* @param {object} working - Partially computed theme
|
|
843
|
+
* @param {string} colorMode - `light` or `dark`
|
|
844
|
+
*/
|
|
845
|
+
getValue(base: EuiThemeSystem | EuiThemeShape, modifications: import ("@elastic/eui").RecursivePartial<EuiThemeShape> | undefined, working: EuiThemeComputed, colorMode: EuiThemeColorModeStandard): T;
|
|
846
|
+
}
|
|
847
|
+
/**
|
|
848
|
+
* Returns a Class (`Computed`) that stores the arbitrary computer method
|
|
849
|
+
* and references to its optional dependecies.
|
|
850
|
+
* @param {function} computer - Arbitrary method to be called at compute time.
|
|
851
|
+
* @param {string | array} dependencies - Values that will be provided to `computer` at compute time.
|
|
852
|
+
*/
|
|
853
|
+
export function computed<T>(computer: (value: EuiThemeComputed) => T): T;
|
|
854
|
+
export function computed<T>(computer: (value: any[]) => T, dependencies: string[]): T;
|
|
855
|
+
export function computed<T>(computer: (value: any) => T, dependencies: string): T;
|
|
856
|
+
/**
|
|
857
|
+
* Takes an uncomputed theme, and computes and returns all values taking
|
|
858
|
+
* into consideration value overrides and configured color mode.
|
|
859
|
+
* Overrides take precedence, and only values in the current color mode
|
|
860
|
+
* are computed and returned.
|
|
861
|
+
* @param {Proxy} base - Object to transform into Proxy
|
|
862
|
+
* @param {Proxy | object} over - Unique identifier or name
|
|
863
|
+
* @param {string} colorMode - `light` or `dark`
|
|
864
|
+
*/
|
|
865
|
+
export const getComputed: <T = EuiThemeShape>(base: EuiThemeSystem<T>, over: Partial<EuiThemeSystem<T>>, colorMode: EuiThemeColorModeStandard) => EuiThemeComputed<T>;
|
|
866
|
+
/**
|
|
867
|
+
* Builds a Proxy with a custom `handler` designed to self-reference values
|
|
868
|
+
* and prevent arbitrary value overrides.
|
|
869
|
+
* @param {object} model - Object to transform into Proxy
|
|
870
|
+
* @param {string} key - Unique identifier or name
|
|
871
|
+
*/
|
|
872
|
+
export const buildTheme: <T extends {}>(model: T, key: string) => {
|
|
873
|
+
model: T;
|
|
874
|
+
root: T;
|
|
875
|
+
key: string;
|
|
876
|
+
};
|
|
877
|
+
/**
|
|
878
|
+
* Deeply merges two objects, using `source` values whenever possible.
|
|
879
|
+
* @param {object} _target - Object with fallback values
|
|
880
|
+
* @param {object} source - Object with desired values
|
|
881
|
+
*/
|
|
882
|
+
export const mergeDeep: (_target: {
|
|
883
|
+
[key: string]: any;
|
|
884
|
+
}, source?: {
|
|
885
|
+
[key: string]: any;
|
|
886
|
+
}) => {
|
|
887
|
+
[key: string]: any;
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
}
|
|
891
|
+
declare module '@elastic/eui/src/services/color/is_color_dark' {
|
|
892
|
+
/**
|
|
893
|
+
* This function calculates if the specified color is "dark", which usually means
|
|
894
|
+
* you need light text if you use it as a background color to fulfill WCAG contrast
|
|
895
|
+
* requirement.
|
|
896
|
+
* The color must be specified via its red, green and blue value in the range of
|
|
897
|
+
* 0 to 255.
|
|
898
|
+
* The formula is based on this Stackoverflow answer: https://stackoverflow.com/a/3943023
|
|
899
|
+
* which itself is based upon the WCAG recommendation for color contrast.
|
|
900
|
+
*
|
|
901
|
+
* @param {number} red The red component in the range 0 to 255
|
|
902
|
+
* @param {number} green The green component in the range 0 to 255
|
|
903
|
+
* @param {number} blue The blue component in the range 0 to 255
|
|
904
|
+
* @returns {boolean} True if the color is dark, false otherwise.
|
|
905
|
+
*/
|
|
906
|
+
export function isColorDark(red: number, green: number, blue: number): boolean;
|
|
907
|
+
|
|
908
|
+
}
|
|
909
|
+
declare module '@elastic/eui/src/services/color/is_valid_hex' {
|
|
910
|
+
export function isValidHex(hex: string): boolean;
|
|
911
|
+
|
|
912
|
+
}
|
|
913
|
+
declare module '@elastic/eui/src/services/color/color_types' {
|
|
914
|
+
export type rgbDef = [number, number, number];
|
|
915
|
+
export interface HSV {
|
|
916
|
+
h: number;
|
|
917
|
+
s: number;
|
|
918
|
+
v: number;
|
|
919
|
+
}
|
|
920
|
+
export interface RGB {
|
|
921
|
+
r: number;
|
|
922
|
+
g: number;
|
|
923
|
+
b: number;
|
|
924
|
+
}
|
|
925
|
+
export type HEX = string;
|
|
926
|
+
|
|
927
|
+
}
|
|
928
|
+
declare module '@elastic/eui/src/services/color/hex_to_rgb' {
|
|
929
|
+
import { rgbDef } from '@elastic/eui/src/services/color/color_types';
|
|
930
|
+
export function hexToRgb(hex: string): rgbDef;
|
|
931
|
+
|
|
932
|
+
}
|
|
933
|
+
declare module '@elastic/eui/src/services/color/rgb_to_hsv' {
|
|
934
|
+
import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
935
|
+
export function rgbToHsv({ r, g, b }: RGB): HSV;
|
|
936
|
+
|
|
937
|
+
}
|
|
938
|
+
declare module '@elastic/eui/src/services/color/hex_to_hsv' {
|
|
939
|
+
import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
|
|
940
|
+
export function hexToHsv(hex: HEX): HSV;
|
|
941
|
+
|
|
942
|
+
}
|
|
943
|
+
declare module '@elastic/eui/src/services/color/hsv_to_rgb' {
|
|
944
|
+
import { HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
945
|
+
export function hsvToRgb({ h, s, v }: HSV): RGB;
|
|
946
|
+
|
|
947
|
+
}
|
|
948
|
+
declare module '@elastic/eui/src/services/color/rgb_to_hex' {
|
|
949
|
+
export function rgbToHex(rgb: string): string;
|
|
950
|
+
|
|
951
|
+
}
|
|
952
|
+
declare module '@elastic/eui/src/services/color/hsv_to_hex' {
|
|
953
|
+
import { HEX, HSV } from '@elastic/eui/src/services/color/color_types';
|
|
954
|
+
export function hsvToHex({ h, s, v }: HSV): HEX;
|
|
955
|
+
|
|
956
|
+
}
|
|
957
|
+
declare module '@elastic/eui/src/services/color/luminance_and_contrast' {
|
|
958
|
+
import { rgbDef } from '@elastic/eui/src/services/color/color_types';
|
|
959
|
+
export function calculateLuminance(r: number, g: number, b: number): number;
|
|
960
|
+
export function calculateContrast(rgb1: rgbDef, rgb2: rgbDef): number;
|
|
961
|
+
|
|
962
|
+
}
|
|
963
|
+
declare module '@elastic/eui/src/services/color/color_palette' {
|
|
964
|
+
export const MID_COLOR_STOP = "#EBEFF5";
|
|
965
|
+
/**
|
|
966
|
+
* This function takes an array of colors and returns an array of interpolated
|
|
967
|
+
* colors based on the number of steps/len needed for use in UI elements such as charts.
|
|
968
|
+
* Derived from https://github.com/gka/palettes (Unlicensed)
|
|
969
|
+
*/
|
|
970
|
+
export function colorPalette(
|
|
1512
971
|
/**
|
|
1513
|
-
*
|
|
1514
|
-
* and references to its optional dependecies.
|
|
1515
|
-
* @param {function} computer - Arbitrary method to be called at compute time.
|
|
1516
|
-
* @param {string | array} dependencies - Values that will be provided to `computer` at compute time.
|
|
972
|
+
* The main color code or array of codes
|
|
1517
973
|
*/
|
|
1518
|
-
|
|
1519
|
-
export function computed<T>(computer: (value: any[]) => T, dependencies: string[]): T;
|
|
1520
|
-
export function computed<T>(computer: (value: any) => T, dependencies: string): T;
|
|
974
|
+
colors: string[],
|
|
1521
975
|
/**
|
|
1522
|
-
*
|
|
1523
|
-
* into consideration value overrides and configured color mode.
|
|
1524
|
-
* Overrides take precedence, and only values in the current color mode
|
|
1525
|
-
* are computed and returned.
|
|
1526
|
-
* @param {Proxy} base - Object to transform into Proxy
|
|
1527
|
-
* @param {Proxy | object} over - Unique identifier or name
|
|
1528
|
-
* @param {string} colorMode - `light` or `dark`
|
|
976
|
+
* The number of colors in the resulting array (default 10)
|
|
1529
977
|
*/
|
|
1530
|
-
|
|
978
|
+
len?: number,
|
|
1531
979
|
/**
|
|
1532
|
-
*
|
|
1533
|
-
* and prevent arbitrary value overrides.
|
|
1534
|
-
* @param {object} model - Object to transform into Proxy
|
|
1535
|
-
* @param {string} key - Unique identifier or name
|
|
980
|
+
* Forces color interpolation to be calculated separately for each half (default false)
|
|
1536
981
|
*/
|
|
1537
|
-
|
|
1538
|
-
model: T;
|
|
1539
|
-
root: T;
|
|
1540
|
-
key: string;
|
|
1541
|
-
};
|
|
982
|
+
diverging?: boolean,
|
|
1542
983
|
/**
|
|
1543
|
-
*
|
|
1544
|
-
* @param {object} _target - Object with fallback values
|
|
1545
|
-
* @param {object} source - Object with desired values
|
|
984
|
+
* Uses a more static interpolation for non-continuous spectrums
|
|
1546
985
|
*/
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
986
|
+
categorical?: boolean): string[];
|
|
987
|
+
|
|
988
|
+
}
|
|
989
|
+
declare module '@elastic/eui/src/services/color/eui_palettes' {
|
|
990
|
+
export type EuiPalette = string[];
|
|
991
|
+
export interface EuiPaletteColorBlindProps {
|
|
992
|
+
/**
|
|
993
|
+
* How many variations of the series is needed
|
|
994
|
+
*/
|
|
995
|
+
rotations?: number;
|
|
996
|
+
/**
|
|
997
|
+
* Order similar colors as `group`s or just `append` each variation
|
|
998
|
+
*/
|
|
999
|
+
order?: 'append' | 'group';
|
|
1000
|
+
/**
|
|
1001
|
+
* Specifies if the direction of the color variations
|
|
1002
|
+
*/
|
|
1003
|
+
direction?: 'lighter' | 'darker' | 'both';
|
|
1004
|
+
/**
|
|
1005
|
+
* Use the default sort order, or re-sort them based on the color wheel (natural)
|
|
1006
|
+
*/
|
|
1007
|
+
sortBy?: 'default' | 'natural';
|
|
1008
|
+
/**
|
|
1009
|
+
* Shift the sorting order by a certain number when used in conjunction with `'natural'` `sortBy`.
|
|
1010
|
+
* Defaults to a number close to green.
|
|
1011
|
+
*/
|
|
1012
|
+
sortShift?: string;
|
|
1013
|
+
}
|
|
1014
|
+
export const euiPaletteColorBlind: ({ rotations, order, direction, sortBy, sortShift, }?: EuiPaletteColorBlindProps) => EuiPalette;
|
|
1015
|
+
/**
|
|
1016
|
+
* Color blind palette with text is meant for use when text is applied on top of the color.
|
|
1017
|
+
* It increases the brightness of the color to give the text more contrast.
|
|
1018
|
+
*/
|
|
1019
|
+
export const euiPaletteColorBlindBehindText: (paletteProps?: EuiPaletteColorBlindProps) => string[];
|
|
1020
|
+
export const euiPaletteForLightBackground: () => EuiPalette;
|
|
1021
|
+
export const euiPaletteForDarkBackground: () => EuiPalette;
|
|
1022
|
+
export const euiPaletteForStatus: (steps: number) => EuiPalette;
|
|
1023
|
+
export const euiPaletteForTemperature: (steps: number) => EuiPalette;
|
|
1024
|
+
export const euiPaletteComplimentary: (steps: number) => EuiPalette;
|
|
1025
|
+
export const euiPaletteNegative: (steps: number) => EuiPalette;
|
|
1026
|
+
export const euiPalettePositive: (steps: number) => EuiPalette;
|
|
1027
|
+
export const euiPaletteCool: (steps: number) => EuiPalette;
|
|
1028
|
+
export const euiPaletteWarm: (steps: number) => EuiPalette;
|
|
1029
|
+
export const euiPaletteGray: (steps: number) => EuiPalette;
|
|
1030
|
+
|
|
1031
|
+
}
|
|
1032
|
+
declare module '@elastic/eui/src/services/color/visualization_colors' {
|
|
1033
|
+
export const VISUALIZATION_COLORS: import ("@elastic/eui/src/services/color/eui_palettes").EuiPalette;
|
|
1034
|
+
export const DEFAULT_VISUALIZATION_COLOR: string;
|
|
1035
|
+
|
|
1036
|
+
}
|
|
1037
|
+
declare module '@elastic/eui/src/components/color_picker/utils' {
|
|
1038
|
+
import chroma, { ColorSpaces } from 'chroma-js';
|
|
1039
|
+
import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
|
|
1040
|
+
export const getEventPosition: (location: {
|
|
1041
|
+
x: number;
|
|
1042
|
+
y: number;
|
|
1043
|
+
}, container: HTMLElement) => {
|
|
1044
|
+
left: number;
|
|
1045
|
+
top: number;
|
|
1046
|
+
width: number;
|
|
1047
|
+
height: number;
|
|
1048
|
+
};
|
|
1049
|
+
export const HEX_FALLBACK = "";
|
|
1050
|
+
export const HSV_FALLBACK: ColorSpaces['hsv'];
|
|
1051
|
+
export const RGB_FALLBACK: ColorSpaces['rgba'];
|
|
1052
|
+
export const RGB_JOIN = ", ";
|
|
1053
|
+
export const parseColor: (input?: string | null | undefined) => string | number[] | null;
|
|
1054
|
+
export const chromaValid: (color: string | number[]) => boolean;
|
|
1055
|
+
export const getChromaColor: (input?: string | null | undefined, allowOpacity?: boolean) => chroma.Color | null;
|
|
1056
|
+
export const getLinearGradient: (palette: string[] | ColorStop[]) => string;
|
|
1057
|
+
export const getFixedLinearGradient: (palette: string[] | ColorStop[]) => {
|
|
1058
|
+
color: string;
|
|
1059
|
+
width: string;
|
|
1060
|
+
}[];
|
|
1061
|
+
|
|
1062
|
+
}
|
|
1063
|
+
declare module '@elastic/eui/src/components/form/range/utils' {
|
|
1064
|
+
export const EUI_THUMB_SIZE = 16;
|
|
1065
|
+
export const calculateThumbPosition: (value: number, min: number, max: number, width: number, thumbSize?: number) => number;
|
|
1066
|
+
|
|
1067
|
+
}
|
|
1068
|
+
declare module '@elastic/eui/src/components/color_picker/color_stops/utils' {
|
|
1069
|
+
import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
|
|
1070
|
+
export const removeStop: (colorStops: ColorStop[], index: number) => ColorStop[];
|
|
1071
|
+
export const addDefinedStop: (colorStops: ColorStop[], stop: ColorStop['stop'], color?: ColorStop['color']) => ColorStop[];
|
|
1072
|
+
export const addStop: (colorStops: ColorStop[], color: string | undefined, max: number) => ColorStop[];
|
|
1073
|
+
export const isColorInvalid: (color: string, showAlpha?: boolean) => boolean;
|
|
1074
|
+
export const isStopInvalid: (stop: ColorStop['stop']) => boolean;
|
|
1075
|
+
export const isInvalid: (colorStops: ColorStop[], showAlpha?: boolean) => boolean;
|
|
1076
|
+
export const calculateScale: (trackWidth: number) => number;
|
|
1077
|
+
export const getStopFromMouseLocation: (location: {
|
|
1078
|
+
x: number;
|
|
1079
|
+
y: number;
|
|
1080
|
+
}, ref: HTMLDivElement, min: number, max: number) => number;
|
|
1081
|
+
export const getPositionFromStop: (stop: ColorStop['stop'], ref: HTMLDivElement, min: number, max: number) => number;
|
|
1082
|
+
|
|
1083
|
+
}
|
|
1084
|
+
declare module '@elastic/eui/src/components/icon/icon_map' {
|
|
1085
|
+
export const typeToPathMap: {
|
|
1086
|
+
accessibility: string;
|
|
1087
|
+
addDataApp: string;
|
|
1088
|
+
advancedSettingsApp: string;
|
|
1089
|
+
agentApp: string;
|
|
1090
|
+
aggregate: string;
|
|
1091
|
+
alert: string;
|
|
1092
|
+
analyzeEvent: string;
|
|
1093
|
+
annotation: string;
|
|
1094
|
+
apmApp: string;
|
|
1095
|
+
apmTrace: string;
|
|
1096
|
+
appSearchApp: string;
|
|
1097
|
+
apps: string;
|
|
1098
|
+
arrowDown: string;
|
|
1099
|
+
arrowLeft: string;
|
|
1100
|
+
arrowRight: string;
|
|
1101
|
+
arrowUp: string;
|
|
1102
|
+
arrowStart: string;
|
|
1103
|
+
arrowEnd: string;
|
|
1104
|
+
asterisk: string;
|
|
1105
|
+
auditbeatApp: string;
|
|
1106
|
+
beaker: string;
|
|
1107
|
+
bell: string;
|
|
1108
|
+
bellSlash: string;
|
|
1109
|
+
bolt: string;
|
|
1110
|
+
boxesHorizontal: string;
|
|
1111
|
+
boxesVertical: string;
|
|
1112
|
+
branch: string;
|
|
1113
|
+
branchUser: string;
|
|
1114
|
+
broom: string;
|
|
1115
|
+
brush: string;
|
|
1116
|
+
bug: string;
|
|
1117
|
+
bullseye: string;
|
|
1118
|
+
calendar: string;
|
|
1119
|
+
canvasApp: string;
|
|
1120
|
+
casesApp: string;
|
|
1121
|
+
check: string;
|
|
1122
|
+
checkInCircleFilled: string;
|
|
1123
|
+
cheer: string;
|
|
1124
|
+
classificationJob: string;
|
|
1125
|
+
clock: string;
|
|
1126
|
+
cloudDrizzle: string;
|
|
1127
|
+
cloudStormy: string;
|
|
1128
|
+
cloudSunny: string;
|
|
1129
|
+
cluster: string;
|
|
1130
|
+
codeApp: string;
|
|
1131
|
+
color: string;
|
|
1132
|
+
compute: string;
|
|
1133
|
+
console: string;
|
|
1134
|
+
consoleApp: string;
|
|
1135
|
+
container: string;
|
|
1136
|
+
continuityAbove: string;
|
|
1137
|
+
continuityAboveBelow: string;
|
|
1138
|
+
continuityBelow: string;
|
|
1139
|
+
continuityWithin: string;
|
|
1140
|
+
controlsHorizontal: string;
|
|
1141
|
+
controlsVertical: string;
|
|
1142
|
+
copy: string;
|
|
1143
|
+
copyClipboard: string;
|
|
1144
|
+
createAdvancedJob: string;
|
|
1145
|
+
createMultiMetricJob: string;
|
|
1146
|
+
createPopulationJob: string;
|
|
1147
|
+
createSingleMetricJob: string;
|
|
1148
|
+
cross: string;
|
|
1149
|
+
crossClusterReplicationApp: string;
|
|
1150
|
+
crossInACircleFilled: string;
|
|
1151
|
+
crosshairs: string;
|
|
1152
|
+
currency: string;
|
|
1153
|
+
cut: string;
|
|
1154
|
+
dashboardApp: string;
|
|
1155
|
+
dataVisualizer: string;
|
|
1156
|
+
database: string;
|
|
1157
|
+
desktop: string;
|
|
1158
|
+
devToolsApp: string;
|
|
1159
|
+
discoverApp: string;
|
|
1160
|
+
document: string;
|
|
1161
|
+
documentEdit: string;
|
|
1162
|
+
documentation: string;
|
|
1163
|
+
documents: string;
|
|
1164
|
+
dot: string;
|
|
1165
|
+
doubleArrowLeft: string;
|
|
1166
|
+
doubleArrowRight: string;
|
|
1167
|
+
download: string;
|
|
1168
|
+
editorAlignCenter: string;
|
|
1169
|
+
editorAlignLeft: string;
|
|
1170
|
+
editorAlignRight: string;
|
|
1171
|
+
editorBold: string;
|
|
1172
|
+
editorChecklist: string;
|
|
1173
|
+
editorCodeBlock: string;
|
|
1174
|
+
editorComment: string;
|
|
1175
|
+
editorDistributeHorizontal: string;
|
|
1176
|
+
editorDistributeVertical: string;
|
|
1177
|
+
editorHeading: string;
|
|
1178
|
+
editorItalic: string;
|
|
1179
|
+
editorItemAlignBottom: string;
|
|
1180
|
+
editorItemAlignCenter: string;
|
|
1181
|
+
editorItemAlignLeft: string;
|
|
1182
|
+
editorItemAlignMiddle: string;
|
|
1183
|
+
editorItemAlignRight: string;
|
|
1184
|
+
editorItemAlignTop: string;
|
|
1185
|
+
editorLink: string;
|
|
1186
|
+
editorOrderedList: string;
|
|
1187
|
+
editorPositionBottomLeft: string;
|
|
1188
|
+
editorPositionBottomRight: string;
|
|
1189
|
+
editorPositionTopLeft: string;
|
|
1190
|
+
editorPositionTopRight: string;
|
|
1191
|
+
editorRedo: string;
|
|
1192
|
+
editorStrike: string;
|
|
1193
|
+
editorTable: string;
|
|
1194
|
+
editorUnderline: string;
|
|
1195
|
+
editorUndo: string;
|
|
1196
|
+
editorUnorderedList: string;
|
|
1197
|
+
email: string;
|
|
1198
|
+
empty: string;
|
|
1199
|
+
emsApp: string;
|
|
1200
|
+
eql: string;
|
|
1201
|
+
eraser: string;
|
|
1202
|
+
exit: string;
|
|
1203
|
+
expand: string;
|
|
1204
|
+
expandMini: string;
|
|
1205
|
+
exportAction: string;
|
|
1206
|
+
eye: string;
|
|
1207
|
+
eyeClosed: string;
|
|
1208
|
+
faceHappy: string;
|
|
1209
|
+
faceNeutral: string;
|
|
1210
|
+
faceSad: string;
|
|
1211
|
+
filebeatApp: string;
|
|
1212
|
+
filter: string;
|
|
1213
|
+
flag: string;
|
|
1214
|
+
fleetApp: string;
|
|
1215
|
+
fold: string;
|
|
1216
|
+
folderCheck: string;
|
|
1217
|
+
folderClosed: string;
|
|
1218
|
+
folderExclamation: string;
|
|
1219
|
+
folderOpen: string;
|
|
1220
|
+
frameNext: string;
|
|
1221
|
+
framePrevious: string;
|
|
1222
|
+
fullScreen: string;
|
|
1223
|
+
fullScreenExit: string;
|
|
1224
|
+
function: string;
|
|
1225
|
+
gear: string;
|
|
1226
|
+
gisApp: string;
|
|
1227
|
+
glasses: string;
|
|
1228
|
+
globe: string;
|
|
1229
|
+
grab: string;
|
|
1230
|
+
grabHorizontal: string;
|
|
1231
|
+
graphApp: string;
|
|
1232
|
+
grid: string;
|
|
1233
|
+
grokApp: string;
|
|
1234
|
+
heart: string;
|
|
1235
|
+
heartbeatApp: string;
|
|
1236
|
+
heatmap: string;
|
|
1237
|
+
help: string;
|
|
1238
|
+
home: string;
|
|
1239
|
+
iInCircle: string;
|
|
1240
|
+
image: string;
|
|
1241
|
+
importAction: string;
|
|
1242
|
+
indexClose: string;
|
|
1243
|
+
indexEdit: string;
|
|
1244
|
+
indexFlush: string;
|
|
1245
|
+
indexManagementApp: string;
|
|
1246
|
+
indexMapping: string;
|
|
1247
|
+
indexOpen: string;
|
|
1248
|
+
indexPatternApp: string;
|
|
1249
|
+
indexRollupApp: string;
|
|
1250
|
+
indexRuntime: string;
|
|
1251
|
+
indexSettings: string;
|
|
1252
|
+
inputOutput: string;
|
|
1253
|
+
inspect: string;
|
|
1254
|
+
invert: string;
|
|
1255
|
+
ip: string;
|
|
1256
|
+
keyboard: string;
|
|
1257
|
+
kqlField: string;
|
|
1258
|
+
kqlFunction: string;
|
|
1259
|
+
kqlOperand: string;
|
|
1260
|
+
kqlSelector: string;
|
|
1261
|
+
kqlValue: string;
|
|
1262
|
+
kubernetesNode: string;
|
|
1263
|
+
kubernetesPod: string;
|
|
1264
|
+
layers: string;
|
|
1265
|
+
lensApp: string;
|
|
1266
|
+
lettering: string;
|
|
1267
|
+
lineDashed: string;
|
|
1268
|
+
lineDotted: string;
|
|
1269
|
+
lineSolid: string;
|
|
1270
|
+
link: string;
|
|
1271
|
+
list: string;
|
|
1272
|
+
listAdd: string;
|
|
1273
|
+
lock: string;
|
|
1274
|
+
lockOpen: string;
|
|
1275
|
+
logoAWS: string;
|
|
1276
|
+
logoAWSMono: string;
|
|
1277
|
+
logoAerospike: string;
|
|
1278
|
+
logoApache: string;
|
|
1279
|
+
logoAppSearch: string;
|
|
1280
|
+
logoAzure: string;
|
|
1281
|
+
logoAzureMono: string;
|
|
1282
|
+
logoBeats: string;
|
|
1283
|
+
logoBusinessAnalytics: string;
|
|
1284
|
+
logoCeph: string;
|
|
1285
|
+
logoCloud: string;
|
|
1286
|
+
logoCloudEnterprise: string;
|
|
1287
|
+
logoCode: string;
|
|
1288
|
+
logoCodesandbox: string;
|
|
1289
|
+
logoCouchbase: string;
|
|
1290
|
+
logoDocker: string;
|
|
1291
|
+
logoDropwizard: string;
|
|
1292
|
+
logoElastic: string;
|
|
1293
|
+
logoElasticStack: string;
|
|
1294
|
+
logoElasticsearch: string;
|
|
1295
|
+
logoEnterpriseSearch: string;
|
|
1296
|
+
logoEtcd: string;
|
|
1297
|
+
logoGCP: string;
|
|
1298
|
+
logoGCPMono: string;
|
|
1299
|
+
logoGithub: string;
|
|
1300
|
+
logoGmail: string;
|
|
1301
|
+
logoGolang: string;
|
|
1302
|
+
logoGoogleG: string;
|
|
1303
|
+
logoHAproxy: string;
|
|
1304
|
+
logoIBM: string;
|
|
1305
|
+
logoIBMMono: string;
|
|
1306
|
+
logoKafka: string;
|
|
1307
|
+
logoKibana: string;
|
|
1308
|
+
logoKubernetes: string;
|
|
1309
|
+
logoLogging: string;
|
|
1310
|
+
logoLogstash: string;
|
|
1311
|
+
logoMaps: string;
|
|
1312
|
+
logoMemcached: string;
|
|
1313
|
+
logoMetrics: string;
|
|
1314
|
+
logoMongodb: string;
|
|
1315
|
+
logoMySQL: string;
|
|
1316
|
+
logoNginx: string;
|
|
1317
|
+
logoObservability: string;
|
|
1318
|
+
logoOsquery: string;
|
|
1319
|
+
logoPhp: string;
|
|
1320
|
+
logoPostgres: string;
|
|
1321
|
+
logoPrometheus: string;
|
|
1322
|
+
logoRabbitmq: string;
|
|
1323
|
+
logoRedis: string;
|
|
1324
|
+
logoSecurity: string;
|
|
1325
|
+
logoSiteSearch: string;
|
|
1326
|
+
logoSketch: string;
|
|
1327
|
+
logoSlack: string;
|
|
1328
|
+
logoUptime: string;
|
|
1329
|
+
logoWebhook: string;
|
|
1330
|
+
logoWindows: string;
|
|
1331
|
+
logoWorkplaceSearch: string;
|
|
1332
|
+
logsApp: string;
|
|
1333
|
+
logstashFilter: string;
|
|
1334
|
+
logstashIf: string;
|
|
1335
|
+
logstashInput: string;
|
|
1336
|
+
logstashOutput: string;
|
|
1337
|
+
logstashQueue: string;
|
|
1338
|
+
machineLearningApp: string;
|
|
1339
|
+
magnet: string;
|
|
1340
|
+
magnifyWithExclamation: string;
|
|
1341
|
+
magnifyWithMinus: string;
|
|
1342
|
+
magnifyWithPlus: string;
|
|
1343
|
+
managementApp: string;
|
|
1344
|
+
mapMarker: string;
|
|
1345
|
+
memory: string;
|
|
1346
|
+
menu: string;
|
|
1347
|
+
menuDown: string;
|
|
1348
|
+
menuLeft: string;
|
|
1349
|
+
menuRight: string;
|
|
1350
|
+
menuUp: string;
|
|
1351
|
+
merge: string;
|
|
1352
|
+
metricbeatApp: string;
|
|
1353
|
+
metricsApp: string;
|
|
1354
|
+
minimize: string;
|
|
1355
|
+
minus: string;
|
|
1356
|
+
minusInCircle: string;
|
|
1357
|
+
minusInCircleFilled: string;
|
|
1358
|
+
mobile: string;
|
|
1359
|
+
monitoringApp: string;
|
|
1360
|
+
moon: string;
|
|
1361
|
+
namespace: string;
|
|
1362
|
+
nested: string;
|
|
1363
|
+
node: string;
|
|
1364
|
+
notebookApp: string;
|
|
1365
|
+
number: string;
|
|
1366
|
+
offline: string;
|
|
1367
|
+
online: string;
|
|
1368
|
+
outlierDetectionJob: string;
|
|
1369
|
+
package: string;
|
|
1370
|
+
packetbeatApp: string;
|
|
1371
|
+
pageSelect: string;
|
|
1372
|
+
pagesSelect: string;
|
|
1373
|
+
paperClip: string;
|
|
1374
|
+
partial: string;
|
|
1375
|
+
pause: string;
|
|
1376
|
+
payment: string;
|
|
1377
|
+
pencil: string;
|
|
1378
|
+
percent: string;
|
|
1379
|
+
pin: string;
|
|
1380
|
+
pinFilled: string;
|
|
1381
|
+
pipelineApp: string;
|
|
1382
|
+
play: string;
|
|
1383
|
+
playFilled: string;
|
|
1384
|
+
plus: string;
|
|
1385
|
+
plusInCircle: string;
|
|
1386
|
+
plusInCircleFilled: string;
|
|
1387
|
+
popout: string;
|
|
1388
|
+
push: string;
|
|
1389
|
+
questionInCircle: string;
|
|
1390
|
+
quote: string;
|
|
1391
|
+
recentlyViewedApp: string;
|
|
1392
|
+
refresh: string;
|
|
1393
|
+
regressionJob: string;
|
|
1394
|
+
reporter: string;
|
|
1395
|
+
reportingApp: string;
|
|
1396
|
+
returnKey: string;
|
|
1397
|
+
save: string;
|
|
1398
|
+
savedObjectsApp: string;
|
|
1399
|
+
scale: string;
|
|
1400
|
+
search: string;
|
|
1401
|
+
searchProfilerApp: string;
|
|
1402
|
+
securityAnalyticsApp: string;
|
|
1403
|
+
securityApp: string;
|
|
1404
|
+
securitySignal: string;
|
|
1405
|
+
securitySignalDetected: string;
|
|
1406
|
+
securitySignalResolved: string;
|
|
1407
|
+
sessionViewer: string;
|
|
1408
|
+
shard: string;
|
|
1409
|
+
share: string;
|
|
1410
|
+
snowflake: string;
|
|
1411
|
+
sortDown: string;
|
|
1412
|
+
sortLeft: string;
|
|
1413
|
+
sortRight: string;
|
|
1414
|
+
sortUp: string;
|
|
1415
|
+
sortable: string;
|
|
1416
|
+
spacesApp: string;
|
|
1417
|
+
sqlApp: string;
|
|
1418
|
+
starEmpty: string;
|
|
1419
|
+
starEmptySpace: string;
|
|
1420
|
+
starFilled: string;
|
|
1421
|
+
starFilledSpace: string;
|
|
1422
|
+
starMinusEmpty: string;
|
|
1423
|
+
starMinusFilled: string;
|
|
1424
|
+
starPlusEmpty: string;
|
|
1425
|
+
starPlusFilled: string;
|
|
1426
|
+
stats: string;
|
|
1427
|
+
stop: string;
|
|
1428
|
+
stopFilled: string;
|
|
1429
|
+
stopSlash: string;
|
|
1430
|
+
storage: string;
|
|
1431
|
+
string: string;
|
|
1432
|
+
submodule: string;
|
|
1433
|
+
sun: string;
|
|
1434
|
+
swatchInput: string;
|
|
1435
|
+
symlink: string;
|
|
1436
|
+
tableDensityCompact: string;
|
|
1437
|
+
tableDensityExpanded: string;
|
|
1438
|
+
tableDensityNormal: string;
|
|
1439
|
+
tableOfContents: string;
|
|
1440
|
+
tag: string;
|
|
1441
|
+
tear: string;
|
|
1442
|
+
temperature: string;
|
|
1443
|
+
timeline: string;
|
|
1444
|
+
timelionApp: string;
|
|
1445
|
+
timeRefresh: string;
|
|
1446
|
+
timeslider: string;
|
|
1447
|
+
training: string;
|
|
1448
|
+
trash: string;
|
|
1449
|
+
unfold: string;
|
|
1450
|
+
unlink: string;
|
|
1451
|
+
upgradeAssistantApp: string;
|
|
1452
|
+
uptimeApp: string;
|
|
1453
|
+
user: string;
|
|
1454
|
+
userAvatar: string;
|
|
1455
|
+
users: string;
|
|
1456
|
+
usersRolesApp: string;
|
|
1457
|
+
vector: string;
|
|
1458
|
+
videoPlayer: string;
|
|
1459
|
+
visArea: string;
|
|
1460
|
+
visAreaStacked: string;
|
|
1461
|
+
visBarHorizontal: string;
|
|
1462
|
+
visBarHorizontalStacked: string;
|
|
1463
|
+
visBarVertical: string;
|
|
1464
|
+
visBarVerticalStacked: string;
|
|
1465
|
+
visGauge: string;
|
|
1466
|
+
visGoal: string;
|
|
1467
|
+
visLine: string;
|
|
1468
|
+
visMapCoordinate: string;
|
|
1469
|
+
visMapRegion: string;
|
|
1470
|
+
visMetric: string;
|
|
1471
|
+
visPie: string;
|
|
1472
|
+
visTable: string;
|
|
1473
|
+
visTagCloud: string;
|
|
1474
|
+
visText: string;
|
|
1475
|
+
visTimelion: string;
|
|
1476
|
+
visVega: string;
|
|
1477
|
+
visVisualBuilder: string;
|
|
1478
|
+
visualizeApp: string;
|
|
1479
|
+
watchesApp: string;
|
|
1480
|
+
wordWrap: string;
|
|
1481
|
+
wordWrapDisabled: string;
|
|
1482
|
+
workplaceSearchApp: string;
|
|
1483
|
+
wrench: string;
|
|
1484
|
+
tokenAlias: string;
|
|
1485
|
+
tokenAnnotation: string;
|
|
1486
|
+
tokenArray: string;
|
|
1487
|
+
tokenBinary: string;
|
|
1488
|
+
tokenBoolean: string;
|
|
1489
|
+
tokenClass: string;
|
|
1490
|
+
tokenCompletionSuggester: string;
|
|
1491
|
+
tokenConstant: string;
|
|
1492
|
+
tokenDate: string;
|
|
1493
|
+
tokenDenseVector: string;
|
|
1494
|
+
tokenElement: string;
|
|
1495
|
+
tokenEnum: string;
|
|
1496
|
+
tokenEnumMember: string;
|
|
1497
|
+
tokenEvent: string;
|
|
1498
|
+
tokenException: string;
|
|
1499
|
+
tokenField: string;
|
|
1500
|
+
tokenFile: string;
|
|
1501
|
+
tokenFlattened: string;
|
|
1502
|
+
tokenFunction: string;
|
|
1503
|
+
tokenGeo: string;
|
|
1504
|
+
tokenHistogram: string;
|
|
1505
|
+
tokenInterface: string;
|
|
1506
|
+
tokenIP: string;
|
|
1507
|
+
tokenJoin: string;
|
|
1508
|
+
tokenKey: string;
|
|
1509
|
+
tokenKeyword: string;
|
|
1510
|
+
tokenMethod: string;
|
|
1511
|
+
tokenMetricCounter: string;
|
|
1512
|
+
tokenMetricGauge: string;
|
|
1513
|
+
tokenModule: string;
|
|
1514
|
+
tokenNamespace: string;
|
|
1515
|
+
tokenNested: string;
|
|
1516
|
+
tokenNull: string;
|
|
1517
|
+
tokenNumber: string;
|
|
1518
|
+
tokenObject: string;
|
|
1519
|
+
tokenOperator: string;
|
|
1520
|
+
tokenPackage: string;
|
|
1521
|
+
tokenParameter: string;
|
|
1522
|
+
tokenPercolator: string;
|
|
1523
|
+
tokenProperty: string;
|
|
1524
|
+
tokenRange: string;
|
|
1525
|
+
tokenRankFeature: string;
|
|
1526
|
+
tokenRankFeatures: string;
|
|
1527
|
+
tokenRepo: string;
|
|
1528
|
+
tokenSearchType: string;
|
|
1529
|
+
tokenShape: string;
|
|
1530
|
+
tokenString: string;
|
|
1531
|
+
tokenStruct: string;
|
|
1532
|
+
tokenSymbol: string;
|
|
1533
|
+
tokenTag: string;
|
|
1534
|
+
tokenText: string;
|
|
1535
|
+
tokenTokenCount: string;
|
|
1536
|
+
tokenVariable: string;
|
|
1553
1537
|
};
|
|
1554
1538
|
|
|
1555
1539
|
}
|
|
1556
|
-
declare module '@elastic/eui/src/
|
|
1557
|
-
import
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
export
|
|
1564
|
-
/**
|
|
1565
|
-
* Mixes a provided color with white.
|
|
1566
|
-
* @param color - Color to mix with white
|
|
1567
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
1568
|
-
*/
|
|
1569
|
-
export const tint: (color: string, ratio: number) => string;
|
|
1570
|
-
/**
|
|
1571
|
-
* Mixes a provided color with black.
|
|
1572
|
-
* @param color - Color to mix with black
|
|
1573
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
1574
|
-
*/
|
|
1575
|
-
export const shade: (color: string, ratio: number) => string;
|
|
1576
|
-
/**
|
|
1577
|
-
* Returns the tinted color for light mode and shaded color for dark mode
|
|
1578
|
-
* @param color - Color to mix with white
|
|
1579
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
1580
|
-
* @param colorMode - Light or dark only
|
|
1581
|
-
*/
|
|
1582
|
-
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
1583
|
-
/**
|
|
1584
|
-
* Returns the shaded color for light mode and tinted color for dark mode
|
|
1585
|
-
* @param color - Color to mix with white
|
|
1586
|
-
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
1587
|
-
* @param colorMode - Light or dark only
|
|
1588
|
-
*/
|
|
1589
|
-
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
1590
|
-
/**
|
|
1591
|
-
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
1592
|
-
* @param color - Color to manipulate
|
|
1593
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
1594
|
-
*/
|
|
1595
|
-
export const saturate: (color: string, amount: number) => string;
|
|
1596
|
-
/**
|
|
1597
|
-
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
1598
|
-
* @param color - Color to manipulate
|
|
1599
|
-
* @param amount - Amount to change in absolute terms. 0-1.
|
|
1600
|
-
*/
|
|
1601
|
-
export const desaturate: (color: string, amount: number) => string;
|
|
1602
|
-
/**
|
|
1603
|
-
* Returns the lightness value of a color. 0-100
|
|
1604
|
-
* @param color
|
|
1605
|
-
*/
|
|
1606
|
-
export const lightness: (color: string) => number;
|
|
1540
|
+
declare module '@elastic/eui/src/components/icon/assets/empty' {
|
|
1541
|
+
import * as React from 'react';
|
|
1542
|
+
interface SVGRProps {
|
|
1543
|
+
title?: string;
|
|
1544
|
+
titleId?: string;
|
|
1545
|
+
}
|
|
1546
|
+
export const icon: ({ title, titleId, ...props }: React.SVGProps<SVGSVGElement> & SVGRProps) => JSX.Element;
|
|
1547
|
+
export {};
|
|
1607
1548
|
|
|
1608
1549
|
}
|
|
1609
|
-
declare module '@elastic/eui/src/services/
|
|
1610
|
-
|
|
1611
|
-
* Creates a new color that meets or exceeds WCAG level AA
|
|
1612
|
-
* @param foreground - Color to manipulate
|
|
1613
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
1614
|
-
* *
|
|
1615
|
-
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
1616
|
-
*/
|
|
1617
|
-
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
1618
|
-
[key: string]: any;
|
|
1619
|
-
colors: {
|
|
1620
|
-
body: string;
|
|
1621
|
-
};
|
|
1622
|
-
}) => string;
|
|
1623
|
-
/**
|
|
1624
|
-
* Creates a new color with increased contrast
|
|
1625
|
-
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
1626
|
-
* @param foreground - Color to manipulate
|
|
1627
|
-
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
1628
|
-
* *
|
|
1629
|
-
* @param themeOrBackground - Color to use as the contrast basis
|
|
1630
|
-
*/
|
|
1631
|
-
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
1632
|
-
[key: string]: any;
|
|
1633
|
-
colors: {
|
|
1634
|
-
body: string;
|
|
1635
|
-
};
|
|
1636
|
-
}) => string;
|
|
1550
|
+
declare module '@elastic/eui/src/services/react' {
|
|
1551
|
+
export function enqueueStateChange(fn: Function): void;
|
|
1637
1552
|
|
|
1638
1553
|
}
|
|
1639
|
-
declare module '@elastic/eui/src/
|
|
1640
|
-
|
|
1641
|
-
export
|
|
1642
|
-
export
|
|
1643
|
-
export const shade_colors: _EuiThemeShadeColors;
|
|
1644
|
-
export const special_colors: _EuiThemeSpecialColors;
|
|
1645
|
-
export const text_colors: _EuiThemeTextColors;
|
|
1646
|
-
export const light_colors: _EuiThemeColorsMode;
|
|
1647
|
-
export const dark_shades: _EuiThemeShadeColors;
|
|
1648
|
-
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
1649
|
-
export const colors: _EuiThemeColors;
|
|
1554
|
+
declare module '@elastic/eui/src/components/icon/named_colors' {
|
|
1555
|
+
export const COLORS: readonly ["default", "primary", "success", "accent", "warning", "danger", "text", "subdued", "ghost", "inherit"];
|
|
1556
|
+
export type NamedColor = typeof COLORS[number];
|
|
1557
|
+
export function isNamedColor(name: string): boolean;
|
|
1650
1558
|
|
|
1651
1559
|
}
|
|
1652
|
-
declare module '@elastic/eui/src/
|
|
1653
|
-
import {
|
|
1654
|
-
export const
|
|
1655
|
-
export
|
|
1656
|
-
export
|
|
1560
|
+
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
1561
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1562
|
+
export const BACKGROUND_COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
|
|
1563
|
+
export type _EuiBackgroundColor = typeof BACKGROUND_COLORS[number];
|
|
1564
|
+
export interface _EuiBackgroundColorOptions {
|
|
1565
|
+
/**
|
|
1566
|
+
* Use `opaque` for containers of unknown content.
|
|
1567
|
+
* Use `transparent` for interactive states like hover and focus.
|
|
1568
|
+
*/
|
|
1569
|
+
method?: 'opaque' | 'transparent';
|
|
1570
|
+
}
|
|
1571
|
+
export const euiBackgroundColor: ({ euiTheme, colorMode }: UseEuiTheme, color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1572
|
+
export const useEuiBackgroundColor: (color: _EuiBackgroundColor, { method }?: _EuiBackgroundColorOptions) => string;
|
|
1573
|
+
export const useEuiBackgroundColorCSS: () => {
|
|
1574
|
+
transparent: import("@emotion/utils").SerializedStyles;
|
|
1575
|
+
plain: import("@emotion/utils").SerializedStyles;
|
|
1576
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
1577
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
1578
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
1579
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
1580
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
1581
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
1582
|
+
};
|
|
1657
1583
|
|
|
1658
1584
|
}
|
|
1659
|
-
declare module '@elastic/eui/src/global_styling/
|
|
1660
|
-
|
|
1661
|
-
|
|
1585
|
+
declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
1586
|
+
import { CSSProperties } from 'react';
|
|
1587
|
+
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1662
1588
|
/**
|
|
1663
|
-
*
|
|
1589
|
+
* Set scroll bar appearance on Chrome (and firefox).
|
|
1590
|
+
* All parameters are optional and default to specific global settings.
|
|
1591
|
+
*/
|
|
1592
|
+
export interface EuiScrollBarStyles {
|
|
1593
|
+
thumbColor?: CSSProperties['backgroundColor'];
|
|
1594
|
+
trackColor?: CSSProperties['backgroundColor'];
|
|
1595
|
+
/**
|
|
1596
|
+
* Defaults to `thin`. Use `auto` only for large page scrollbars
|
|
1597
|
+
*/
|
|
1598
|
+
width?: CSSProperties['scrollbarWidth'];
|
|
1599
|
+
/**
|
|
1600
|
+
* Overall width (height for horizontal scrollbars)
|
|
1601
|
+
*/
|
|
1602
|
+
size?: CSSProperties['width'];
|
|
1603
|
+
/**
|
|
1604
|
+
* Corner sizes are usually determined by `width` and
|
|
1605
|
+
* are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
1606
|
+
*/
|
|
1607
|
+
corner?: CSSProperties['borderWidth'];
|
|
1608
|
+
}
|
|
1609
|
+
export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
|
|
1610
|
+
export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
|
|
1611
|
+
/**
|
|
1612
|
+
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
1613
|
+
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
1614
|
+
* Others like Safari, won't show anything at all.
|
|
1664
1615
|
*/
|
|
1665
|
-
export const
|
|
1666
|
-
export
|
|
1667
|
-
|
|
1668
|
-
|
|
1616
|
+
export const euiYScroll: (euiTheme: UseEuiTheme) => string;
|
|
1617
|
+
export const useEuiYScroll: () => string;
|
|
1618
|
+
export const euiYScrollWithShadows: (euiTheme: UseEuiTheme) => string;
|
|
1619
|
+
export const useEuiYScrollWithShadows: () => string;
|
|
1620
|
+
export const euiXScroll: (euiTheme: UseEuiTheme) => string;
|
|
1621
|
+
export const useEuiXScroll: () => string;
|
|
1622
|
+
export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
|
|
1623
|
+
export const useEuiXScrollWithShadows: () => string;
|
|
1624
|
+
interface EuiScrollOverflowStyles {
|
|
1625
|
+
direction?: 'y' | 'x';
|
|
1626
|
+
mask?: boolean;
|
|
1669
1627
|
}
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
export * from '@elastic/eui/src/global_styling/variables/animations';
|
|
1674
|
-
export * from '@elastic/eui/src/global_styling/variables/borders';
|
|
1675
|
-
export * from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
1676
|
-
export * from '@elastic/eui/src/global_styling/variables/colors';
|
|
1677
|
-
export * from '@elastic/eui/src/global_styling/variables/levels';
|
|
1678
|
-
export * from '@elastic/eui/src/global_styling/variables/size';
|
|
1679
|
-
export * from '@elastic/eui/src/global_styling/variables/shadow';
|
|
1680
|
-
export * from '@elastic/eui/src/global_styling/variables/states';
|
|
1681
|
-
export * from '@elastic/eui/src/global_styling/variables/typography';
|
|
1682
|
-
|
|
1683
|
-
}
|
|
1684
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_breakpoint' {
|
|
1685
|
-
import { _EuiThemeBreakpoints } from '@elastic/eui/src/global_styling/variables';
|
|
1686
|
-
export const breakpoint: _EuiThemeBreakpoints;
|
|
1628
|
+
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
1629
|
+
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
|
|
1630
|
+
export {};
|
|
1687
1631
|
|
|
1688
1632
|
}
|
|
1689
1633
|
declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
@@ -1760,7 +1704,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
|
|
|
1760
1704
|
'margin-horizontal': string;
|
|
1761
1705
|
'margin-vertical': string;
|
|
1762
1706
|
};
|
|
1763
|
-
export const LOGICAL_PROPERTIES: ("left" | "right" | "
|
|
1707
|
+
export const LOGICAL_PROPERTIES: ("left" | "right" | "inset" | "top" | "width" | "height" | "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")[];
|
|
1764
1708
|
export type LogicalProperties = typeof LOGICAL_PROPERTIES[number];
|
|
1765
1709
|
/**
|
|
1766
1710
|
*
|
|
@@ -1893,7 +1837,7 @@ declare module '@elastic/eui/src/global_styling/functions/typography' {
|
|
|
1893
1837
|
* this mixin will ensure that the sizing is dependent on the boldest
|
|
1894
1838
|
* weight so it doesn't shift sibling content.
|
|
1895
1839
|
*/
|
|
1896
|
-
export const euiTextShift: (fontWeight: "bold" | "light" | "
|
|
1840
|
+
export const euiTextShift: (fontWeight: "bold" | "light" | "regular" | "medium" | "semiBold" | undefined, attribute: string | undefined, euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
1897
1841
|
|
|
1898
1842
|
}
|
|
1899
1843
|
declare module '@elastic/eui/src/global_styling/functions' {
|
|
@@ -1901,126 +1845,6 @@ declare module '@elastic/eui/src/global_styling/functions' {
|
|
|
1901
1845
|
export * from '@elastic/eui/src/global_styling/functions/size';
|
|
1902
1846
|
export * from '@elastic/eui/src/global_styling/functions/typography';
|
|
1903
1847
|
|
|
1904
|
-
}
|
|
1905
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
1906
|
-
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
1907
|
-
export const base: _EuiThemeBase;
|
|
1908
|
-
export const size: _EuiThemeSizes;
|
|
1909
|
-
|
|
1910
|
-
}
|
|
1911
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
1912
|
-
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
1913
|
-
export const border: _EuiThemeBorder;
|
|
1914
|
-
|
|
1915
|
-
}
|
|
1916
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
1917
|
-
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
1918
|
-
export const levels: _EuiThemeLevels;
|
|
1919
|
-
|
|
1920
|
-
}
|
|
1921
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
1922
|
-
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
1923
|
-
export const fontScale: _EuiThemeFontScales;
|
|
1924
|
-
export const fontBase: _EuiThemeFontBase;
|
|
1925
|
-
export const fontWeight: _EuiThemeFontWeights;
|
|
1926
|
-
export const font: _EuiThemeFont;
|
|
1927
|
-
|
|
1928
|
-
}
|
|
1929
|
-
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
1930
|
-
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
1931
|
-
export const focus: _EuiThemeFocus;
|
|
1932
|
-
|
|
1933
|
-
}
|
|
1934
|
-
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
1935
|
-
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
1936
|
-
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
1937
|
-
export const euiThemeAmsterdam: EuiThemeShape;
|
|
1938
|
-
export const EuiThemeAmsterdam: {
|
|
1939
|
-
model: EuiThemeShape;
|
|
1940
|
-
root: EuiThemeShape;
|
|
1941
|
-
key: string;
|
|
1942
|
-
};
|
|
1943
|
-
|
|
1944
|
-
}
|
|
1945
|
-
declare module '@elastic/eui/src/services/theme/context' {
|
|
1946
|
-
|
|
1947
|
-
import { EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
1948
|
-
export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
|
|
1949
|
-
export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
|
|
1950
|
-
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
1951
|
-
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
1952
|
-
|
|
1953
|
-
}
|
|
1954
|
-
declare module '@elastic/eui/src/services/theme/provider' {
|
|
1955
|
-
import React, { PropsWithChildren } from 'react';
|
|
1956
|
-
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
1957
|
-
export interface EuiThemeProviderProps<T> {
|
|
1958
|
-
theme?: EuiThemeSystem<T>;
|
|
1959
|
-
colorMode?: EuiThemeColorMode;
|
|
1960
|
-
modify?: EuiThemeModifications<T>;
|
|
1961
|
-
children: any;
|
|
1962
|
-
}
|
|
1963
|
-
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
1964
|
-
|
|
1965
|
-
}
|
|
1966
|
-
declare module '@elastic/eui/src/services/theme' {
|
|
1967
|
-
export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
1968
|
-
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
1969
|
-
export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
1970
|
-
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
1971
|
-
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
1972
|
-
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
1973
|
-
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
1974
|
-
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
1975
|
-
|
|
1976
|
-
}
|
|
1977
|
-
declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
|
|
1978
|
-
import { CSSProperties } from 'react';
|
|
1979
|
-
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
1980
|
-
/**
|
|
1981
|
-
* Set scroll bar appearance on Chrome (and firefox).
|
|
1982
|
-
* All parameters are optional and default to specific global settings.
|
|
1983
|
-
*/
|
|
1984
|
-
export interface EuiScrollBarStyles {
|
|
1985
|
-
thumbColor?: CSSProperties['backgroundColor'];
|
|
1986
|
-
trackColor?: CSSProperties['backgroundColor'];
|
|
1987
|
-
/**
|
|
1988
|
-
* Defaults to `thin`. Use `auto` only for large page scrollbars
|
|
1989
|
-
*/
|
|
1990
|
-
width?: CSSProperties['scrollbarWidth'];
|
|
1991
|
-
/**
|
|
1992
|
-
* Overall width (height for horizontal scrollbars)
|
|
1993
|
-
*/
|
|
1994
|
-
size?: CSSProperties['width'];
|
|
1995
|
-
/**
|
|
1996
|
-
* Corner sizes are usually determined by `width` and
|
|
1997
|
-
* are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
1998
|
-
*/
|
|
1999
|
-
corner?: CSSProperties['borderWidth'];
|
|
2000
|
-
}
|
|
2001
|
-
export const euiScrollBarStyles: ({ euiTheme: { colors, size } }: UseEuiTheme, { thumbColor: _thumbColor, trackColor, width, size: _size, corner: _corner, }?: EuiScrollBarStyles) => string;
|
|
2002
|
-
export const useEuiScrollBar: (options?: EuiScrollBarStyles | undefined) => string;
|
|
2003
|
-
/**
|
|
2004
|
-
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
2005
|
-
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
2006
|
-
* Others like Safari, won't show anything at all.
|
|
2007
|
-
*/
|
|
2008
|
-
export const euiYScroll: (euiTheme: UseEuiTheme) => string;
|
|
2009
|
-
export const useEuiYScroll: () => string;
|
|
2010
|
-
export const euiYScrollWithShadows: (euiTheme: UseEuiTheme) => string;
|
|
2011
|
-
export const useEuiYScrollWithShadows: () => string;
|
|
2012
|
-
export const euiXScroll: (euiTheme: UseEuiTheme) => string;
|
|
2013
|
-
export const useEuiXScroll: () => string;
|
|
2014
|
-
export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
|
|
2015
|
-
export const useEuiXScrollWithShadows: () => string;
|
|
2016
|
-
interface EuiScrollOverflowStyles {
|
|
2017
|
-
direction?: 'y' | 'x';
|
|
2018
|
-
mask?: boolean;
|
|
2019
|
-
}
|
|
2020
|
-
export const euiOverflowScroll: (euiTheme: UseEuiTheme, { direction, mask }?: EuiScrollOverflowStyles) => string;
|
|
2021
|
-
export const useEuiOverflowScroll: (direction: EuiScrollOverflowStyles['direction'], mask?: EuiScrollOverflowStyles['mask']) => string;
|
|
2022
|
-
export {};
|
|
2023
|
-
|
|
2024
1848
|
}
|
|
2025
1849
|
declare module '@elastic/eui/src/global_styling/mixins/_padding' {
|
|
2026
1850
|
import { UseEuiTheme } from '@elastic/eui/src/services/theme';
|
|
@@ -4132,108 +3956,41 @@ declare module '@elastic/eui/src/components/panel/panel' {
|
|
|
4132
3956
|
/**
|
|
4133
3957
|
* Adds a medium shadow to the panel;
|
|
4134
3958
|
* Only works when `color="plain"`
|
|
4135
|
-
*/
|
|
4136
|
-
hasShadow?: boolean;
|
|
4137
|
-
/**
|
|
4138
|
-
* Adds a slight 1px border on all edges.
|
|
4139
|
-
* Only works when `color="plain | transparent"`
|
|
4140
|
-
*/
|
|
4141
|
-
hasBorder?: boolean;
|
|
4142
|
-
/**
|
|
4143
|
-
* Padding for all four sides
|
|
4144
|
-
*/
|
|
4145
|
-
paddingSize?: EuiPaddingSize;
|
|
4146
|
-
/**
|
|
4147
|
-
* Corner border radius
|
|
4148
|
-
*/
|
|
4149
|
-
borderRadius?: PanelBorderRadius;
|
|
4150
|
-
/**
|
|
4151
|
-
* When true the panel will grow in height to match `EuiFlexItem`
|
|
4152
|
-
*/
|
|
4153
|
-
grow?: boolean;
|
|
4154
|
-
panelRef?: Ref<HTMLDivElement>;
|
|
4155
|
-
/**
|
|
4156
|
-
* Background color of the panel;
|
|
4157
|
-
* Usually a lightened form of the brand colors
|
|
4158
|
-
*/
|
|
4159
|
-
color?: PanelColor;
|
|
4160
|
-
}
|
|
4161
|
-
export interface _EuiPanelDivlike extends _EuiPanelProps, Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
4162
|
-
element?: 'div';
|
|
4163
|
-
}
|
|
4164
|
-
export interface _EuiPanelButtonlike extends _EuiPanelProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
4165
|
-
element?: 'button';
|
|
4166
|
-
}
|
|
4167
|
-
export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
|
|
4168
|
-
export const EuiPanel: FunctionComponent<EuiPanelProps>;
|
|
4169
|
-
export {};
|
|
4170
|
-
|
|
4171
|
-
}
|
|
4172
|
-
declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
|
|
4173
|
-
export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
|
|
4174
|
-
|
|
4175
|
-
}
|
|
4176
|
-
declare module '@elastic/eui/src/services/hooks/useDependentState' {
|
|
4177
|
-
|
|
4178
|
-
export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
4179
|
-
|
|
4180
|
-
}
|
|
4181
|
-
declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
|
|
4182
|
-
import { MutableRefObject, Ref } from 'react';
|
|
4183
|
-
export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
|
|
4184
|
-
|
|
4185
|
-
}
|
|
4186
|
-
declare module '@elastic/eui/src/services/hooks/useForceRender' {
|
|
4187
|
-
export const useForceRender: () => () => void;
|
|
4188
|
-
|
|
4189
|
-
}
|
|
4190
|
-
declare module '@elastic/eui/src/services/hooks/useIsWithinBreakpoints' {
|
|
4191
|
-
import { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
4192
|
-
/**
|
|
4193
|
-
* Given the current window.innerWidth and an array of breakpoint keys,
|
|
4194
|
-
* this hook stores state and returns true or false if the window.innerWidth
|
|
4195
|
-
* falls within any of the named breakpoints.
|
|
4196
|
-
*
|
|
4197
|
-
* @param {EuiBreakpointSize[]} sizes An array of named breakpoints
|
|
4198
|
-
* @param {boolean} isActive Manages whether the resize handler should be active
|
|
4199
|
-
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
4200
|
-
*/
|
|
4201
|
-
export function useIsWithinBreakpoints(sizes: EuiBreakpointSize[], isActive?: boolean): boolean;
|
|
4202
|
-
|
|
4203
|
-
}
|
|
4204
|
-
declare module '@elastic/eui/src/services/hooks/useLatest' {
|
|
4205
|
-
import { MutableRefObject } from 'react';
|
|
4206
|
-
/**
|
|
4207
|
-
* Wraps the given `value` into a `MutableRefObject` and keeps the `current`
|
|
4208
|
-
* value up-to-date on every render cycle.
|
|
4209
|
-
*/
|
|
4210
|
-
export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
|
|
4211
|
-
|
|
4212
|
-
}
|
|
4213
|
-
declare module '@elastic/eui/src/services/throttle' {
|
|
4214
|
-
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
4215
|
-
|
|
4216
|
-
}
|
|
4217
|
-
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
4218
|
-
import { MouseEvent, TouchEvent } from 'react';
|
|
4219
|
-
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
4220
|
-
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
4221
|
-
x: number;
|
|
4222
|
-
y: number;
|
|
4223
|
-
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
4224
|
-
(e: MouseEvent<T>) => void,
|
|
4225
|
-
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
4226
|
-
];
|
|
4227
|
-
|
|
4228
|
-
}
|
|
4229
|
-
declare module '@elastic/eui/src/services/hooks' {
|
|
4230
|
-
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
4231
|
-
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
4232
|
-
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
4233
|
-
export * from '@elastic/eui/src/services/hooks/useIsWithinBreakpoints';
|
|
4234
|
-
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
4235
|
-
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
4236
|
-
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
3959
|
+
*/
|
|
3960
|
+
hasShadow?: boolean;
|
|
3961
|
+
/**
|
|
3962
|
+
* Adds a slight 1px border on all edges.
|
|
3963
|
+
* Only works when `color="plain | transparent"`
|
|
3964
|
+
*/
|
|
3965
|
+
hasBorder?: boolean;
|
|
3966
|
+
/**
|
|
3967
|
+
* Padding for all four sides
|
|
3968
|
+
*/
|
|
3969
|
+
paddingSize?: EuiPaddingSize;
|
|
3970
|
+
/**
|
|
3971
|
+
* Corner border radius
|
|
3972
|
+
*/
|
|
3973
|
+
borderRadius?: PanelBorderRadius;
|
|
3974
|
+
/**
|
|
3975
|
+
* When true the panel will grow in height to match `EuiFlexItem`
|
|
3976
|
+
*/
|
|
3977
|
+
grow?: boolean;
|
|
3978
|
+
panelRef?: Ref<HTMLDivElement>;
|
|
3979
|
+
/**
|
|
3980
|
+
* Background color of the panel;
|
|
3981
|
+
* Usually a lightened form of the brand colors
|
|
3982
|
+
*/
|
|
3983
|
+
color?: PanelColor;
|
|
3984
|
+
}
|
|
3985
|
+
export interface _EuiPanelDivlike extends _EuiPanelProps, Omit<HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
3986
|
+
element?: 'div';
|
|
3987
|
+
}
|
|
3988
|
+
export interface _EuiPanelButtonlike extends _EuiPanelProps, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
3989
|
+
element?: 'button';
|
|
3990
|
+
}
|
|
3991
|
+
export type EuiPanelProps = ExclusiveUnion<_EuiPanelButtonlike, _EuiPanelDivlike>;
|
|
3992
|
+
export const EuiPanel: FunctionComponent<EuiPanelProps>;
|
|
3993
|
+
export {};
|
|
4237
3994
|
|
|
4238
3995
|
}
|
|
4239
3996
|
declare module '@elastic/eui/src/components/panel/split_panel/split_panel' {
|
|
@@ -4611,7 +4368,7 @@ declare module '@elastic/eui/src/components/portal/portal' {
|
|
|
4611
4368
|
* NOTE: We can't test this component because Enzyme doesn't support rendering
|
|
4612
4369
|
* into portals.
|
|
4613
4370
|
*/
|
|
4614
|
-
import { ReactNode } from 'react';
|
|
4371
|
+
import { Component, ReactNode } from 'react';
|
|
4615
4372
|
interface InsertPositionsMap {
|
|
4616
4373
|
after: InsertPosition;
|
|
4617
4374
|
before: InsertPosition;
|
|
@@ -4629,7 +4386,14 @@ declare module '@elastic/eui/src/components/portal/portal' {
|
|
|
4629
4386
|
};
|
|
4630
4387
|
portalRef?: (ref: HTMLDivElement | null) => void;
|
|
4631
4388
|
}
|
|
4632
|
-
export
|
|
4389
|
+
export class EuiPortal extends Component<EuiPortalProps> {
|
|
4390
|
+
portalNode: HTMLDivElement | null;
|
|
4391
|
+
constructor(props: EuiPortalProps);
|
|
4392
|
+
componentDidMount(): void;
|
|
4393
|
+
componentWillUnmount(): void;
|
|
4394
|
+
updatePortalRef(ref: HTMLDivElement | null): void;
|
|
4395
|
+
render(): import("react").ReactPortal | null;
|
|
4396
|
+
}
|
|
4633
4397
|
export {};
|
|
4634
4398
|
|
|
4635
4399
|
}
|
|
@@ -5301,7 +5065,7 @@ declare module '@elastic/eui/src/components/popover/popover_footer' {
|
|
|
5301
5065
|
|
|
5302
5066
|
}
|
|
5303
5067
|
declare module '@elastic/eui/src/components/popover/wrapping_popover' {
|
|
5304
|
-
import {
|
|
5068
|
+
import { Component } from 'react';
|
|
5305
5069
|
import { Props as EuiPopoverProps } from '@elastic/eui/src/components/popover/popover';
|
|
5306
5070
|
export interface EuiWrappingPopoverProps extends EuiPopoverProps {
|
|
5307
5071
|
button: HTMLElement;
|
|
@@ -5311,7 +5075,15 @@ declare module '@elastic/eui/src/components/popover/wrapping_popover' {
|
|
|
5311
5075
|
* then the button element is moved into the popover dom.
|
|
5312
5076
|
* On unmount, the button is moved back to its original location.
|
|
5313
5077
|
*/
|
|
5314
|
-
export
|
|
5078
|
+
export class EuiWrappingPopover extends Component<EuiWrappingPopoverProps> {
|
|
5079
|
+
private portal;
|
|
5080
|
+
private anchor;
|
|
5081
|
+
componentDidMount(): void;
|
|
5082
|
+
componentWillUnmount(): void;
|
|
5083
|
+
setPortalRef: (node: HTMLElement | null) => void;
|
|
5084
|
+
setAnchorRef: (node: HTMLElement | null) => void;
|
|
5085
|
+
render(): JSX.Element;
|
|
5086
|
+
}
|
|
5315
5087
|
|
|
5316
5088
|
}
|
|
5317
5089
|
declare module '@elastic/eui/src/components/popover' {
|
|
@@ -6677,28 +6449,244 @@ declare module '@elastic/eui/src/components/color_picker/color_stops' {
|
|
|
6677
6449
|
export type { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
|
|
6678
6450
|
|
|
6679
6451
|
}
|
|
6680
|
-
declare module '@elastic/eui/src/services/color/stepped_gradient' {
|
|
6681
|
-
import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
|
|
6682
|
-
export const getSteppedGradient: (colors: ColorStop[], steps: number) => string[];
|
|
6452
|
+
declare module '@elastic/eui/src/services/color/stepped_gradient' {
|
|
6453
|
+
import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
|
|
6454
|
+
export const getSteppedGradient: (colors: ColorStop[], steps: number) => string[];
|
|
6455
|
+
|
|
6456
|
+
}
|
|
6457
|
+
declare module '@elastic/eui/src/services/color/manipulation' {
|
|
6458
|
+
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
|
|
6459
|
+
/**
|
|
6460
|
+
* Makes a color more transparent.
|
|
6461
|
+
* @param color - Color to manipulate
|
|
6462
|
+
* @param alpha - alpha channel value. From 0-1.
|
|
6463
|
+
*/
|
|
6464
|
+
export const transparentize: (color: string, alpha: number) => string;
|
|
6465
|
+
/**
|
|
6466
|
+
* Mixes a provided color with white.
|
|
6467
|
+
* @param color - Color to mix with white
|
|
6468
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6469
|
+
*/
|
|
6470
|
+
export const tint: (color: string, ratio: number) => string;
|
|
6471
|
+
/**
|
|
6472
|
+
* Mixes a provided color with black.
|
|
6473
|
+
* @param color - Color to mix with black
|
|
6474
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
6475
|
+
*/
|
|
6476
|
+
export const shade: (color: string, ratio: number) => string;
|
|
6477
|
+
/**
|
|
6478
|
+
* Returns the tinted color for light mode and shaded color for dark mode
|
|
6479
|
+
* @param color - Color to mix with white
|
|
6480
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6481
|
+
* @param colorMode - Light or dark only
|
|
6482
|
+
*/
|
|
6483
|
+
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6484
|
+
/**
|
|
6485
|
+
* Returns the shaded color for light mode and tinted color for dark mode
|
|
6486
|
+
* @param color - Color to mix with white
|
|
6487
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6488
|
+
* @param colorMode - Light or dark only
|
|
6489
|
+
*/
|
|
6490
|
+
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6491
|
+
/**
|
|
6492
|
+
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
6493
|
+
* @param color - Color to manipulate
|
|
6494
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6495
|
+
*/
|
|
6496
|
+
export const saturate: (color: string, amount: number) => string;
|
|
6497
|
+
/**
|
|
6498
|
+
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
6499
|
+
* @param color - Color to manipulate
|
|
6500
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6501
|
+
*/
|
|
6502
|
+
export const desaturate: (color: string, amount: number) => string;
|
|
6503
|
+
/**
|
|
6504
|
+
* Returns the lightness value of a color. 0-100
|
|
6505
|
+
* @param color
|
|
6506
|
+
*/
|
|
6507
|
+
export const lightness: (color: string) => number;
|
|
6508
|
+
|
|
6509
|
+
}
|
|
6510
|
+
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6511
|
+
/**
|
|
6512
|
+
* Creates a new color that meets or exceeds WCAG level AA
|
|
6513
|
+
* @param foreground - Color to manipulate
|
|
6514
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6515
|
+
* *
|
|
6516
|
+
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
6517
|
+
*/
|
|
6518
|
+
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6519
|
+
[key: string]: any;
|
|
6520
|
+
colors: {
|
|
6521
|
+
body: string;
|
|
6522
|
+
};
|
|
6523
|
+
}) => string;
|
|
6524
|
+
/**
|
|
6525
|
+
* Creates a new color with increased contrast
|
|
6526
|
+
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
6527
|
+
* @param foreground - Color to manipulate
|
|
6528
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6529
|
+
* *
|
|
6530
|
+
* @param themeOrBackground - Color to use as the contrast basis
|
|
6531
|
+
*/
|
|
6532
|
+
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6533
|
+
[key: string]: any;
|
|
6534
|
+
colors: {
|
|
6535
|
+
body: string;
|
|
6536
|
+
};
|
|
6537
|
+
}) => string;
|
|
6538
|
+
|
|
6539
|
+
}
|
|
6540
|
+
declare module '@elastic/eui/src/services/color' {
|
|
6541
|
+
export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
|
|
6542
|
+
export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
|
|
6543
|
+
export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
|
|
6544
|
+
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
6545
|
+
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
6546
|
+
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
6547
|
+
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
6548
|
+
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
6549
|
+
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
6550
|
+
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
6551
|
+
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
6552
|
+
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
|
|
6553
|
+
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
6554
|
+
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
6555
|
+
export * from '@elastic/eui/src/services/color/manipulation';
|
|
6556
|
+
export * from '@elastic/eui/src/services/color/contrast';
|
|
6557
|
+
|
|
6558
|
+
}
|
|
6559
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
6560
|
+
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
|
|
6561
|
+
export const brand_colors: _EuiThemeBrandColors;
|
|
6562
|
+
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
6563
|
+
export const shade_colors: _EuiThemeShadeColors;
|
|
6564
|
+
export const special_colors: _EuiThemeSpecialColors;
|
|
6565
|
+
export const text_colors: _EuiThemeTextColors;
|
|
6566
|
+
export const light_colors: _EuiThemeColorsMode;
|
|
6567
|
+
export const dark_shades: _EuiThemeShadeColors;
|
|
6568
|
+
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
6569
|
+
export const colors: _EuiThemeColors;
|
|
6570
|
+
|
|
6571
|
+
}
|
|
6572
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
6573
|
+
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
6574
|
+
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
6575
|
+
export const animation_ease: _EuiThemeAnimationEasings;
|
|
6576
|
+
export const animation: _EuiThemeAnimation;
|
|
6577
|
+
|
|
6578
|
+
}
|
|
6579
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
6580
|
+
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
6581
|
+
export const base: _EuiThemeBase;
|
|
6582
|
+
export const size: _EuiThemeSizes;
|
|
6583
|
+
|
|
6584
|
+
}
|
|
6585
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
6586
|
+
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
6587
|
+
export const border: _EuiThemeBorder;
|
|
6588
|
+
|
|
6589
|
+
}
|
|
6590
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
6591
|
+
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
6592
|
+
export const levels: _EuiThemeLevels;
|
|
6593
|
+
|
|
6594
|
+
}
|
|
6595
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
6596
|
+
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
6597
|
+
export const fontScale: _EuiThemeFontScales;
|
|
6598
|
+
export const fontBase: _EuiThemeFontBase;
|
|
6599
|
+
export const fontWeight: _EuiThemeFontWeights;
|
|
6600
|
+
export const font: _EuiThemeFont;
|
|
6601
|
+
|
|
6602
|
+
}
|
|
6603
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
6604
|
+
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
6605
|
+
export const focus: _EuiThemeFocus;
|
|
6606
|
+
|
|
6607
|
+
}
|
|
6608
|
+
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
6609
|
+
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
6610
|
+
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
6611
|
+
export const euiThemeAmsterdam: EuiThemeShape;
|
|
6612
|
+
export const EuiThemeAmsterdam: {
|
|
6613
|
+
model: EuiThemeShape;
|
|
6614
|
+
root: EuiThemeShape;
|
|
6615
|
+
key: string;
|
|
6616
|
+
};
|
|
6617
|
+
|
|
6618
|
+
}
|
|
6619
|
+
declare module '@elastic/eui/src/services/theme/context' {
|
|
6620
|
+
|
|
6621
|
+
import { EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
6622
|
+
export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
|
|
6623
|
+
export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
|
|
6624
|
+
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
6625
|
+
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
6626
|
+
|
|
6627
|
+
}
|
|
6628
|
+
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6629
|
+
import React, { PropsWithChildren } from 'react';
|
|
6630
|
+
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
6631
|
+
export interface EuiThemeProviderProps<T> {
|
|
6632
|
+
theme?: EuiThemeSystem<T>;
|
|
6633
|
+
colorMode?: EuiThemeColorMode;
|
|
6634
|
+
modify?: EuiThemeModifications<T>;
|
|
6635
|
+
children: any;
|
|
6636
|
+
}
|
|
6637
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
6638
|
+
|
|
6639
|
+
}
|
|
6640
|
+
declare module '@elastic/eui/src/services/theme' {
|
|
6641
|
+
export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
6642
|
+
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
6643
|
+
export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
6644
|
+
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
6645
|
+
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
6646
|
+
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
6647
|
+
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
6648
|
+
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
6649
|
+
|
|
6650
|
+
}
|
|
6651
|
+
declare module '@elastic/eui/src/services/throttle' {
|
|
6652
|
+
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
6653
|
+
|
|
6654
|
+
}
|
|
6655
|
+
declare module '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint' {
|
|
6656
|
+
import React, { FunctionComponent } from 'react';
|
|
6657
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
6658
|
+
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
6659
|
+
/**
|
|
6660
|
+
* Top level provider (nested within EuiProvider) which provides a single
|
|
6661
|
+
* resize listener that returns the current breakpoint based on window width
|
|
6662
|
+
*/
|
|
6663
|
+
export const CurrentEuiBreakpointProvider: FunctionComponent;
|
|
6664
|
+
/**
|
|
6665
|
+
* Hook util / syntactical sugar
|
|
6666
|
+
*/
|
|
6667
|
+
export const useCurrentEuiBreakpoint: () => CurrentEuiBreakpoint;
|
|
6668
|
+
export {};
|
|
6669
|
+
|
|
6670
|
+
}
|
|
6671
|
+
declare module '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints' {
|
|
6672
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6673
|
+
/**
|
|
6674
|
+
* Given the current window.innerWidth and an array of breakpoint keys,
|
|
6675
|
+
* this hook stores state and returns true or false if the window.innerWidth
|
|
6676
|
+
* falls within any of the named breakpoints.
|
|
6677
|
+
*
|
|
6678
|
+
* @param {_EuiThemeBreakpoint[]} sizes An array of named EUI breakpoints
|
|
6679
|
+
* @param {boolean} isResponsive Some components have the option to turn off responsive behavior.
|
|
6680
|
+
* Since hooks can't be called conditionally, it's easier to pass the condition into the hook
|
|
6681
|
+
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
6682
|
+
*/
|
|
6683
|
+
export const useIsWithinBreakpoints: (sizes: _EuiThemeBreakpoint[], isResponsive?: boolean) => boolean;
|
|
6683
6684
|
|
|
6684
6685
|
}
|
|
6685
|
-
declare module '@elastic/eui/src/services/
|
|
6686
|
-
export
|
|
6687
|
-
export
|
|
6688
|
-
export
|
|
6689
|
-
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
6690
|
-
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
6691
|
-
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
6692
|
-
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
6693
|
-
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
6694
|
-
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
6695
|
-
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
6696
|
-
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
6697
|
-
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
|
|
6698
|
-
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
6699
|
-
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
6700
|
-
export * from '@elastic/eui/src/services/color/manipulation';
|
|
6701
|
-
export * from '@elastic/eui/src/services/color/contrast';
|
|
6686
|
+
declare module '@elastic/eui/src/services/breakpoint' {
|
|
6687
|
+
export * from '@elastic/eui/src/services/breakpoint/breakpoint';
|
|
6688
|
+
export * from '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint';
|
|
6689
|
+
export * from '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints';
|
|
6702
6690
|
|
|
6703
6691
|
}
|
|
6704
6692
|
declare module '@elastic/eui/src/services/color_picker/color_picker' {
|
|
@@ -7079,6 +7067,54 @@ declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
|
7079
7067
|
declare module '@elastic/eui/src/services/window_event' {
|
|
7080
7068
|
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
|
|
7081
7069
|
|
|
7070
|
+
}
|
|
7071
|
+
declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
|
|
7072
|
+
export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
|
|
7073
|
+
|
|
7074
|
+
}
|
|
7075
|
+
declare module '@elastic/eui/src/services/hooks/useDependentState' {
|
|
7076
|
+
|
|
7077
|
+
export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
7078
|
+
|
|
7079
|
+
}
|
|
7080
|
+
declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
|
|
7081
|
+
import { MutableRefObject, Ref } from 'react';
|
|
7082
|
+
export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
|
|
7083
|
+
|
|
7084
|
+
}
|
|
7085
|
+
declare module '@elastic/eui/src/services/hooks/useForceRender' {
|
|
7086
|
+
export const useForceRender: () => () => void;
|
|
7087
|
+
|
|
7088
|
+
}
|
|
7089
|
+
declare module '@elastic/eui/src/services/hooks/useLatest' {
|
|
7090
|
+
import { MutableRefObject } from 'react';
|
|
7091
|
+
/**
|
|
7092
|
+
* Wraps the given `value` into a `MutableRefObject` and keeps the `current`
|
|
7093
|
+
* value up-to-date on every render cycle.
|
|
7094
|
+
*/
|
|
7095
|
+
export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
|
|
7096
|
+
|
|
7097
|
+
}
|
|
7098
|
+
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
7099
|
+
import { MouseEvent, TouchEvent } from 'react';
|
|
7100
|
+
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
7101
|
+
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
7102
|
+
x: number;
|
|
7103
|
+
y: number;
|
|
7104
|
+
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
7105
|
+
(e: MouseEvent<T>) => void,
|
|
7106
|
+
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
7107
|
+
];
|
|
7108
|
+
|
|
7109
|
+
}
|
|
7110
|
+
declare module '@elastic/eui/src/services/hooks' {
|
|
7111
|
+
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7112
|
+
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7113
|
+
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7114
|
+
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7115
|
+
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7116
|
+
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7117
|
+
|
|
7082
7118
|
}
|
|
7083
7119
|
declare module '@elastic/eui/src/services' {
|
|
7084
7120
|
import * as keys from '@elastic/eui/src/services/keys';
|
|
@@ -7087,7 +7123,7 @@ declare module '@elastic/eui/src/services' {
|
|
|
7087
7123
|
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7088
7124
|
export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7089
7125
|
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7090
|
-
export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7126
|
+
export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, useIsWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7091
7127
|
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7092
7128
|
export { isColorDark, isValidHex, calculateContrast, calculateLuminance, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, rgbToHex, rgbToHsv, VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, colorPalette, euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, getSteppedGradient, transparentize, tint, shade, tintOrShade, shadeOrTint, saturate, desaturate, lightness, makeHighContrastColor, makeDisabledContrastColor, } from '@elastic/eui/src/services/color';
|
|
7093
7129
|
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
@@ -7534,13 +7570,12 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
7534
7570
|
title?: string;
|
|
7535
7571
|
}> & {
|
|
7536
7572
|
label: ReactNode;
|
|
7537
|
-
};
|
|
7538
|
-
interface LabelAsString {
|
|
7573
|
+
}; type LabelAsString = {
|
|
7539
7574
|
/**
|
|
7540
7575
|
* One word label like "Beta" or "Lab"
|
|
7541
7576
|
*/
|
|
7542
7577
|
label: string;
|
|
7543
|
-
} type BadgeProps = {
|
|
7578
|
+
}; type BadgeProps = {
|
|
7544
7579
|
/**
|
|
7545
7580
|
* Supply an icon type if the badge should just be an icon
|
|
7546
7581
|
*/
|
|
@@ -7793,16 +7828,36 @@ declare module '@elastic/eui/src/components/link' {
|
|
|
7793
7828
|
export { EuiLink } from '@elastic/eui/src/components/link/link';
|
|
7794
7829
|
|
|
7795
7830
|
}
|
|
7796
|
-
declare module '@elastic/eui/src/components/breadcrumbs/
|
|
7797
|
-
import {
|
|
7831
|
+
declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb.styles' {
|
|
7832
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7833
|
+
export const euiBreadcrumbStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7834
|
+
euiBreadcrumb: import("@emotion/utils").SerializedStyles;
|
|
7835
|
+
isTruncated: import("@emotion/utils").SerializedStyles;
|
|
7836
|
+
isCollapsed: import("@emotion/utils").SerializedStyles;
|
|
7837
|
+
page: import("@emotion/utils").SerializedStyles;
|
|
7838
|
+
application: import("@emotion/utils").SerializedStyles;
|
|
7839
|
+
};
|
|
7840
|
+
export const euiBreadcrumbContentStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7841
|
+
euiBreadcrumb__content: import("@emotion/utils").SerializedStyles;
|
|
7842
|
+
isTruncated: import("@emotion/utils").SerializedStyles;
|
|
7843
|
+
isTruncatedLast: import("@emotion/utils").SerializedStyles;
|
|
7844
|
+
page: import("@emotion/utils").SerializedStyles;
|
|
7845
|
+
application: import("@emotion/utils").SerializedStyles;
|
|
7846
|
+
applicationStyles: {
|
|
7847
|
+
onlyChild: import("@emotion/utils").SerializedStyles;
|
|
7848
|
+
firstChild: import("@emotion/utils").SerializedStyles;
|
|
7849
|
+
lastChild: import("@emotion/utils").SerializedStyles;
|
|
7850
|
+
};
|
|
7851
|
+
};
|
|
7852
|
+
|
|
7853
|
+
}
|
|
7854
|
+
declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb' {
|
|
7855
|
+
import { FunctionComponent, HTMLAttributes, AriaAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
7798
7856
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
7799
7857
|
import { EuiLinkColor } from '@elastic/eui/src/components/link';
|
|
7800
|
-
|
|
7801
|
-
export type EuiBreadcrumbResponsiveMaxCount = {
|
|
7802
|
-
[key in EuiBreakpointSize]?: number;
|
|
7803
|
-
};
|
|
7804
|
-
export type EuiBreadcrumb = HTMLAttributes<HTMLElement> & CommonProps & {
|
|
7858
|
+
export type EuiBreadcrumbProps = Omit<HTMLAttributes<HTMLElement>, 'color' | 'aria-current'> & CommonProps & {
|
|
7805
7859
|
href?: string;
|
|
7860
|
+
rel?: string;
|
|
7806
7861
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
7807
7862
|
/**
|
|
7808
7863
|
* Visible label of the breadcrumb
|
|
@@ -7820,6 +7875,34 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
|
|
|
7820
7875
|
* Override the existing `aria-current` which defaults to `page` for the last breadcrumb
|
|
7821
7876
|
*/
|
|
7822
7877
|
'aria-current'?: AriaAttributes['aria-current'];
|
|
7878
|
+
}; type _EuiBreadcrumbProps = {
|
|
7879
|
+
type: 'page' | 'application';
|
|
7880
|
+
isFirstBreadcrumb?: boolean;
|
|
7881
|
+
isLastBreadcrumb?: boolean;
|
|
7882
|
+
isOnlyBreadcrumb?: boolean;
|
|
7883
|
+
highlightLastBreadcrumb?: boolean;
|
|
7884
|
+
} & Pick<EuiBreadcrumbProps, 'truncate'>;
|
|
7885
|
+
export const EuiBreadcrumb: FunctionComponent<HTMLAttributes<HTMLLIElement> & _EuiBreadcrumbProps>;
|
|
7886
|
+
export const EuiBreadcrumbContent: FunctionComponent<EuiBreadcrumbProps & _EuiBreadcrumbProps>;
|
|
7887
|
+
export const EuiBreadcrumbCollapsed: FunctionComponent<_EuiBreadcrumbProps>;
|
|
7888
|
+
export {};
|
|
7889
|
+
|
|
7890
|
+
}
|
|
7891
|
+
declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs.styles' {
|
|
7892
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7893
|
+
export const euiBreadcrumbsListStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7894
|
+
euiBreadcrumbs__list: import("@emotion/utils").SerializedStyles;
|
|
7895
|
+
isTruncated: import("@emotion/utils").SerializedStyles;
|
|
7896
|
+
};
|
|
7897
|
+
|
|
7898
|
+
}
|
|
7899
|
+
declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
|
|
7900
|
+
import { FunctionComponent } from 'react';
|
|
7901
|
+
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7902
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
7903
|
+
import { EuiBreadcrumbProps } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
|
|
7904
|
+
export type EuiBreadcrumbResponsiveMaxCount = {
|
|
7905
|
+
[key in EuiBreakpointSize]?: number;
|
|
7823
7906
|
};
|
|
7824
7907
|
export type EuiBreadcrumbsProps = CommonProps & {
|
|
7825
7908
|
/**
|
|
@@ -7846,13 +7929,30 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
|
|
|
7846
7929
|
/**
|
|
7847
7930
|
* The array of individual #EuiBreadcrumb items
|
|
7848
7931
|
*/
|
|
7849
|
-
breadcrumbs:
|
|
7932
|
+
breadcrumbs: EuiBreadcrumbProps[];
|
|
7933
|
+
/**
|
|
7934
|
+
* Determines breadcrumbs appearance, with `page` being the default styling.
|
|
7935
|
+
* Application breadcrumbs should only be once per page, in (e.g.) EuiHeader
|
|
7936
|
+
*/
|
|
7937
|
+
type?: 'page' | 'application';
|
|
7938
|
+
/**
|
|
7939
|
+
* Whether the last breadcrumb should visually (and accessibly, to screen readers)
|
|
7940
|
+
* be highlighted as the current page. Defaults to true.
|
|
7941
|
+
*/
|
|
7942
|
+
lastBreadcrumbIsCurrentPage?: boolean;
|
|
7850
7943
|
};
|
|
7851
7944
|
export const EuiBreadcrumbs: FunctionComponent<EuiBreadcrumbsProps>;
|
|
7945
|
+
export const useResponsiveMax: (responsive: EuiBreadcrumbsProps['responsive'], max: EuiBreadcrumbsProps['max']) => number | null | undefined; type _EuiBreadcrumbCollapsedObj = {
|
|
7946
|
+
isCollapsedButton: true;
|
|
7947
|
+
overflowBreadcrumbs: EuiBreadcrumbProps[];
|
|
7948
|
+
}; type _EuiBreadcrumbsObjs = Array<ExclusiveUnion<EuiBreadcrumbProps, _EuiBreadcrumbCollapsedObj>>;
|
|
7949
|
+
export const limitBreadcrumbs: (breadcrumbs: EuiBreadcrumbsProps['breadcrumbs'], max: number) => _EuiBreadcrumbsObjs;
|
|
7950
|
+
export {};
|
|
7852
7951
|
|
|
7853
7952
|
}
|
|
7854
7953
|
declare module '@elastic/eui/src/components/breadcrumbs' {
|
|
7855
|
-
export type {
|
|
7954
|
+
export type { EuiBreadcrumbProps as EuiBreadcrumb } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
|
|
7955
|
+
export type { EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
|
|
7856
7956
|
export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
|
|
7857
7957
|
|
|
7858
7958
|
}
|
|
@@ -9774,14 +9874,17 @@ declare module '@elastic/eui/src/components/datagrid/utils/sorting' {
|
|
|
9774
9874
|
}
|
|
9775
9875
|
declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
9776
9876
|
import { CSSProperties, MutableRefObject } from 'react';
|
|
9777
|
-
import {
|
|
9877
|
+
import { GridOnItemsRenderedProps } from 'react-window';
|
|
9878
|
+
import { EuiDataGridColumn, EuiDataGridRowHeightOption, EuiDataGridRowHeightsOptions, EuiDataGridScrollAnchorRow, EuiDataGridStyle, EuiDataGridStyleCellPaddings, ImperativeGridApi } from '@elastic/eui/src/components/datagrid/data_grid_types';
|
|
9778
9879
|
export const cellPaddingsMap: Record<EuiDataGridStyleCellPaddings, number>;
|
|
9779
9880
|
export const AUTO_HEIGHT = "auto";
|
|
9780
9881
|
export const DEFAULT_ROW_HEIGHT = 34;
|
|
9781
9882
|
export class RowHeightUtils {
|
|
9782
9883
|
private gridRef;
|
|
9884
|
+
private outerGridElementRef;
|
|
9885
|
+
private gridItemsRenderedRef;
|
|
9783
9886
|
private rerenderGridBodyRef;
|
|
9784
|
-
constructor(gridRef: MutableRefObject<ImperativeGridApi | null>, rerenderGridBodyRef: MutableRefObject<(() => void) | null>);
|
|
9887
|
+
constructor(gridRef: MutableRefObject<ImperativeGridApi | null>, outerGridElementRef: MutableRefObject<HTMLDivElement | null>, gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>, rerenderGridBodyRef: MutableRefObject<(() => void) | null>);
|
|
9785
9888
|
getRowHeightOption(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): EuiDataGridRowHeightOption | undefined;
|
|
9786
9889
|
isRowHeightOverride(rowIndex: number, rowHeightsOptions?: EuiDataGridRowHeightsOptions): boolean;
|
|
9787
9890
|
getCalculatedHeight(heightOption: EuiDataGridRowHeightOption, defaultHeight: number, rowIndex?: number, isRowHeightOverride?: boolean): number;
|
|
@@ -9808,13 +9911,16 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
9808
9911
|
pruneHiddenColumnHeights(visibleColumns: EuiDataGridColumn[]): void;
|
|
9809
9912
|
resetRow(visibleRowIndex: number): void;
|
|
9810
9913
|
resetGrid(): void;
|
|
9914
|
+
compensateForLayoutShift(rowIndex: number, verticalLayoutShift: number, anchorRow: EuiDataGridScrollAnchorRow): void;
|
|
9811
9915
|
}
|
|
9812
9916
|
/**
|
|
9813
9917
|
* Hook for instantiating RowHeightUtils, setting internal class vars,
|
|
9814
9918
|
* and setting up various row-height-related side effects
|
|
9815
9919
|
*/
|
|
9816
|
-
export const useRowHeightUtils: ({ gridRef, gridStyles, columns, rowHeightsOptions, }: {
|
|
9920
|
+
export const useRowHeightUtils: ({ gridRef, outerGridElementRef, gridItemsRenderedRef, gridStyles, columns, rowHeightsOptions, }: {
|
|
9817
9921
|
gridRef: MutableRefObject<ImperativeGridApi | null>;
|
|
9922
|
+
outerGridElementRef: MutableRefObject<HTMLDivElement | null>;
|
|
9923
|
+
gridItemsRenderedRef: MutableRefObject<GridOnItemsRenderedProps | null>;
|
|
9818
9924
|
gridStyles: EuiDataGridStyle;
|
|
9819
9925
|
columns: EuiDataGridColumn[];
|
|
9820
9926
|
rowHeightsOptions?: EuiDataGridRowHeightsOptions | undefined;
|
|
@@ -9829,27 +9935,18 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
9829
9935
|
};
|
|
9830
9936
|
|
|
9831
9937
|
}
|
|
9832
|
-
declare module '@elastic/eui/src/components/token/
|
|
9833
|
-
import {
|
|
9834
|
-
export type EuiTokenMapType = 'tokenAlias' | 'tokenAnnotation' | 'tokenArray' | 'tokenBinary' | 'tokenBoolean' | 'tokenClass' | 'tokenCompletionSuggester' | 'tokenConstant' | 'tokenDate' | 'tokenDenseVector' | 'tokenElement' | 'tokenEnum' | 'tokenEnumMember' | 'tokenEvent' | 'tokenException' | 'tokenField' | 'tokenFile' | 'tokenFlattened' | 'tokenFunction' | 'tokenGeo' | 'tokenHistogram' | 'tokenInterface' | 'tokenIP' | 'tokenJoin' | 'tokenKey' | 'tokenKeyword' | 'tokenMethod' | 'tokenMetricCounter' | 'tokenMetricGauge' | 'tokenModule' | 'tokenNamespace' | 'tokenNested' | 'tokenNull' | 'tokenNumber' | 'tokenObject' | 'tokenOperator' | 'tokenPackage' | 'tokenParameter' | 'tokenPercolator' | 'tokenProperty' | 'tokenRange' | 'tokenRankFeature' | 'tokenRankFeatures' | 'tokenRepo' | 'tokenSearchType' | 'tokenShape' | 'tokenString' | 'tokenStruct' | 'tokenSymbol' | 'tokenTag' | 'tokenText' | 'tokenTokenCount' | 'tokenVariable';
|
|
9835
|
-
/**
|
|
9836
|
-
* Most of the style combinations for tokens are semi-arbitrary. However, there was an effort
|
|
9837
|
-
* to use the square shape for more common token types like string and number. Reserving the
|
|
9838
|
-
* circle shape for more uncommon token types so they grab attention.
|
|
9839
|
-
*/
|
|
9840
|
-
export const TOKEN_MAP: {
|
|
9841
|
-
[mapType in EuiTokenMapType]: Omit<TokenProps, 'iconType'>;
|
|
9842
|
-
};
|
|
9843
|
-
|
|
9844
|
-
}
|
|
9845
|
-
declare module '@elastic/eui/src/components/token/token' {
|
|
9846
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
9938
|
+
declare module '@elastic/eui/src/components/token/token_types' {
|
|
9939
|
+
import { HTMLAttributes } from 'react';
|
|
9847
9940
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
9848
|
-
import { IconType } from '@elastic/eui/src/components/icon';
|
|
9849
|
-
export const SIZES:
|
|
9850
|
-
export
|
|
9851
|
-
export const
|
|
9852
|
-
export
|
|
9941
|
+
import { IconType } from '@elastic/eui/src/components/icon';
|
|
9942
|
+
export const SIZES: readonly ["xs", "s", "m", "l"];
|
|
9943
|
+
export type TokenSize = typeof SIZES[number];
|
|
9944
|
+
export const SHAPES: readonly ["circle", "square", "rectangle"];
|
|
9945
|
+
export type TokenShape = typeof SHAPES[number];
|
|
9946
|
+
export const FILLS: readonly ["light", "dark", "none"];
|
|
9947
|
+
export type TokenFill = typeof FILLS[number];
|
|
9948
|
+
export const COLORS: readonly ["euiColorVis0", "euiColorVis1", "euiColorVis2", "euiColorVis3", "euiColorVis4", "euiColorVis5", "euiColorVis6", "euiColorVis7", "euiColorVis8", "euiColorVis9", "gray"];
|
|
9949
|
+
export type TokenColor = typeof COLORS[number];
|
|
9853
9950
|
export interface TokenProps {
|
|
9854
9951
|
/**
|
|
9855
9952
|
* An EUI icon type
|
|
@@ -9857,8 +9954,8 @@ declare module '@elastic/eui/src/components/token/token' {
|
|
|
9857
9954
|
iconType: IconType;
|
|
9858
9955
|
/**
|
|
9859
9956
|
* For best results use one of the vis color names (or 'gray').
|
|
9860
|
-
* Or supply your own color (
|
|
9861
|
-
* Default: `gray`
|
|
9957
|
+
* Or supply your own HEX color. The `fill='light'` (lightened background) will always be overridden by `fill='dark'` (solid background).
|
|
9958
|
+
* Default: `gray` for glyphs or one of the vis colors for prefab token types
|
|
9862
9959
|
*/
|
|
9863
9960
|
color?: TokenColor | string;
|
|
9864
9961
|
/**
|
|
@@ -9884,13 +9981,61 @@ declare module '@elastic/eui/src/components/token/token' {
|
|
|
9884
9981
|
'aria-describedby'?: string;
|
|
9885
9982
|
}
|
|
9886
9983
|
export type EuiTokenProps = CommonProps & TokenProps & Omit<HTMLAttributes<HTMLSpanElement>, 'title'>;
|
|
9984
|
+
|
|
9985
|
+
}
|
|
9986
|
+
declare module '@elastic/eui/src/components/token/token_map' {
|
|
9987
|
+
import type { TokenProps } from '@elastic/eui/src/components/token/token_types';
|
|
9988
|
+
export type EuiTokenMapType = 'tokenAlias' | 'tokenAnnotation' | 'tokenArray' | 'tokenBinary' | 'tokenBoolean' | 'tokenClass' | 'tokenCompletionSuggester' | 'tokenConstant' | 'tokenDate' | 'tokenDenseVector' | 'tokenElement' | 'tokenEnum' | 'tokenEnumMember' | 'tokenEvent' | 'tokenException' | 'tokenField' | 'tokenFile' | 'tokenFlattened' | 'tokenFunction' | 'tokenGeo' | 'tokenHistogram' | 'tokenInterface' | 'tokenIP' | 'tokenJoin' | 'tokenKey' | 'tokenKeyword' | 'tokenMethod' | 'tokenMetricCounter' | 'tokenMetricGauge' | 'tokenModule' | 'tokenNamespace' | 'tokenNested' | 'tokenNull' | 'tokenNumber' | 'tokenObject' | 'tokenOperator' | 'tokenPackage' | 'tokenParameter' | 'tokenPercolator' | 'tokenProperty' | 'tokenRange' | 'tokenRankFeature' | 'tokenRankFeatures' | 'tokenRepo' | 'tokenSearchType' | 'tokenShape' | 'tokenString' | 'tokenStruct' | 'tokenSymbol' | 'tokenTag' | 'tokenText' | 'tokenTokenCount' | 'tokenVariable';
|
|
9989
|
+
/**
|
|
9990
|
+
* Most of the style combinations for tokens are semi-arbitrary. However, there was an effort
|
|
9991
|
+
* to use the square shape for more common token types like string and number. Reserving the
|
|
9992
|
+
* circle shape for more uncommon token types so they grab attention.
|
|
9993
|
+
*/
|
|
9994
|
+
export const TOKEN_MAP: {
|
|
9995
|
+
[mapType in EuiTokenMapType]: Omit<TokenProps, 'iconType'>;
|
|
9996
|
+
};
|
|
9997
|
+
|
|
9998
|
+
}
|
|
9999
|
+
declare module '@elastic/eui/src/components/token/token.styles' {
|
|
10000
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
10001
|
+
import type { TokenFill } from '@elastic/eui/src/components/token/token_types';
|
|
10002
|
+
export const euiTokenStyles: ({ euiTheme, colorMode }: UseEuiTheme, fill: TokenFill) => {
|
|
10003
|
+
euiToken: import("@emotion/utils").SerializedStyles;
|
|
10004
|
+
circle: import("@emotion/utils").SerializedStyles;
|
|
10005
|
+
square: import("@emotion/utils").SerializedStyles;
|
|
10006
|
+
rectangle: import("@emotion/utils").SerializedStyles;
|
|
10007
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
10008
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
10009
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
10010
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
10011
|
+
euiColorVis0: import("@emotion/utils").SerializedStyles;
|
|
10012
|
+
euiColorVis1: import("@emotion/utils").SerializedStyles;
|
|
10013
|
+
euiColorVis2: import("@emotion/utils").SerializedStyles;
|
|
10014
|
+
euiColorVis3: import("@emotion/utils").SerializedStyles;
|
|
10015
|
+
euiColorVis4: import("@emotion/utils").SerializedStyles;
|
|
10016
|
+
euiColorVis5: import("@emotion/utils").SerializedStyles;
|
|
10017
|
+
euiColorVis6: import("@emotion/utils").SerializedStyles;
|
|
10018
|
+
euiColorVis7: import("@emotion/utils").SerializedStyles;
|
|
10019
|
+
euiColorVis8: import("@emotion/utils").SerializedStyles;
|
|
10020
|
+
euiColorVis9: import("@emotion/utils").SerializedStyles;
|
|
10021
|
+
gray: import("@emotion/utils").SerializedStyles;
|
|
10022
|
+
customColor: import("@emotion/utils").SerializedStyles;
|
|
10023
|
+
light: import("@emotion/utils").SerializedStyles;
|
|
10024
|
+
dark: import("@emotion/utils").SerializedStyles;
|
|
10025
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
10026
|
+
};
|
|
10027
|
+
|
|
10028
|
+
}
|
|
10029
|
+
declare module '@elastic/eui/src/components/token/token' {
|
|
10030
|
+
import { FunctionComponent } from 'react';
|
|
10031
|
+
import type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
|
|
9887
10032
|
export const EuiToken: FunctionComponent<EuiTokenProps>;
|
|
9888
|
-
export {};
|
|
9889
10033
|
|
|
9890
10034
|
}
|
|
9891
10035
|
declare module '@elastic/eui/src/components/token' {
|
|
9892
|
-
export type { EuiTokenProps } from '@elastic/eui/src/components/token/
|
|
9893
|
-
export {
|
|
10036
|
+
export type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
|
|
10037
|
+
export { SIZES as TOKEN_SIZES, SHAPES as TOKEN_SHAPES, COLORS as TOKEN_COLORS, } from '@elastic/eui/src/components/token/token_types';
|
|
10038
|
+
export { EuiToken } from '@elastic/eui/src/components/token/token';
|
|
9894
10039
|
|
|
9895
10040
|
}
|
|
9896
10041
|
declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
@@ -10672,6 +10817,7 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
10672
10817
|
width: number;
|
|
10673
10818
|
}
|
|
10674
10819
|
export type EuiDataGridOnColumnResizeHandler = (data: EuiDataGridOnColumnResizeData) => void;
|
|
10820
|
+
export type EuiDataGridScrollAnchorRow = 'start' | 'center' | undefined;
|
|
10675
10821
|
export type EuiDataGridRowHeightOption = number | 'auto' | ExclusiveUnion<{
|
|
10676
10822
|
lineCount: number;
|
|
10677
10823
|
}, {
|
|
@@ -10698,6 +10844,13 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
|
10698
10844
|
* Can be used for, e.g. storing user `rowHeightsOptions` in a local storage object.
|
|
10699
10845
|
*/
|
|
10700
10846
|
onChange?: (rowHeightsOptions: EuiDataGridRowHeightsOptions) => void;
|
|
10847
|
+
/**
|
|
10848
|
+
* Optional indicator of the row that should be used as an anchor for vertical layout shift compensation.
|
|
10849
|
+
* When set to 'start' or 'center', the topmost or middle visible row will try
|
|
10850
|
+
* to compensate for changes in their top offsets by adjusting the grid's scroll
|
|
10851
|
+
* position.
|
|
10852
|
+
*/
|
|
10853
|
+
scrollAnchorRow?: EuiDataGridScrollAnchorRow;
|
|
10701
10854
|
}
|
|
10702
10855
|
export interface EuiDataGridRowManager {
|
|
10703
10856
|
getRow(args: {
|
|
@@ -12386,7 +12539,7 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
|
|
|
12386
12539
|
}
|
|
12387
12540
|
declare module '@elastic/eui/src/components/responsive/hide_for' {
|
|
12388
12541
|
import { ReactNode, FunctionComponent } from 'react';
|
|
12389
|
-
import { EuiBreakpointSize } from '@elastic/eui/src/services
|
|
12542
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
12390
12543
|
export type EuiHideForBreakpoints = EuiBreakpointSize;
|
|
12391
12544
|
export interface EuiHideForProps {
|
|
12392
12545
|
/**
|
|
@@ -12404,7 +12557,7 @@ declare module '@elastic/eui/src/components/responsive/hide_for' {
|
|
|
12404
12557
|
}
|
|
12405
12558
|
declare module '@elastic/eui/src/components/responsive/show_for' {
|
|
12406
12559
|
import { ReactNode, FunctionComponent } from 'react';
|
|
12407
|
-
import { EuiBreakpointSize } from '@elastic/eui/src/services
|
|
12560
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
12408
12561
|
export type EuiShowForBreakpoints = EuiBreakpointSize;
|
|
12409
12562
|
export interface EuiShowForProps {
|
|
12410
12563
|
/**
|
|
@@ -12769,24 +12922,9 @@ declare module '@elastic/eui/src/components/delay_render' {
|
|
|
12769
12922
|
export { EuiDelayRender } from '@elastic/eui/src/components/delay_render/delay_render';
|
|
12770
12923
|
|
|
12771
12924
|
}
|
|
12772
|
-
declare module '@elastic/eui/src/components/description_list/
|
|
12773
|
-
import { HTMLAttributes,
|
|
12774
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
12775
|
-
export const EuiDescriptionListTitle: FunctionComponent<CommonProps & HTMLAttributes<HTMLElement>>;
|
|
12776
|
-
|
|
12777
|
-
}
|
|
12778
|
-
declare module '@elastic/eui/src/components/description_list/description_list_description' {
|
|
12779
|
-
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
12780
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
12781
|
-
export const EuiDescriptionListDescription: FunctionComponent<CommonProps & HTMLAttributes<HTMLElement>>;
|
|
12782
|
-
|
|
12783
|
-
}
|
|
12784
|
-
declare module '@elastic/eui/src/components/description_list/description_list' {
|
|
12785
|
-
import { HTMLAttributes, ReactNode, FunctionComponent } from 'react';
|
|
12925
|
+
declare module '@elastic/eui/src/components/description_list/description_list_types' {
|
|
12926
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
12786
12927
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
12787
|
-
export type EuiDescriptionListType = keyof typeof typesToClassNameMap;
|
|
12788
|
-
export type EuiDescriptionListAlignment = keyof typeof alignmentsToClassNameMap;
|
|
12789
|
-
export type EuiDescriptionListTextStyle = keyof typeof textStylesToClassNameMap;
|
|
12790
12928
|
export interface EuiDescriptionListProps {
|
|
12791
12929
|
listItems?: Array<{
|
|
12792
12930
|
title: NonNullable<ReactNode>;
|
|
@@ -12804,7 +12942,7 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
|
|
|
12804
12942
|
* How should the content be styled, by default
|
|
12805
12943
|
* this will emphasize the title
|
|
12806
12944
|
*/
|
|
12807
|
-
textStyle?:
|
|
12945
|
+
textStyle?: 'normal' | 'reverse';
|
|
12808
12946
|
/**
|
|
12809
12947
|
* How each item should be laid out
|
|
12810
12948
|
*/
|
|
@@ -12817,27 +12955,107 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
|
|
|
12817
12955
|
* Props object to be passed to `EuiDescriptionListDescription`
|
|
12818
12956
|
*/
|
|
12819
12957
|
descriptionProps?: HTMLAttributes<HTMLElement> & CommonProps;
|
|
12820
|
-
}
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12958
|
+
}
|
|
12959
|
+
export const TYPES: readonly ["row", "inline", "column", "responsiveColumn"];
|
|
12960
|
+
export type EuiDescriptionListType = typeof TYPES[number];
|
|
12961
|
+
export const ALIGNMENTS: readonly ["center", "left"];
|
|
12962
|
+
export type EuiDescriptionListAlignment = typeof ALIGNMENTS[number];
|
|
12963
|
+
export const TEXT_STYLES: readonly ["normal", "reverse"];
|
|
12964
|
+
export type EuiDescriptionListTextStyle = typeof TEXT_STYLES[number];
|
|
12965
|
+
|
|
12966
|
+
}
|
|
12967
|
+
declare module '@elastic/eui/src/components/description_list/description_list_title.styles' {
|
|
12968
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
12969
|
+
export const euiDescriptionListTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
12970
|
+
euiDescriptionList__title: import("@emotion/utils").SerializedStyles;
|
|
12971
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
12972
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
12973
|
+
responsiveColumn: import("@emotion/utils").SerializedStyles;
|
|
12974
|
+
inline: import("@emotion/utils").SerializedStyles;
|
|
12975
|
+
fontStyles: {
|
|
12976
|
+
normal: import("@emotion/utils").SerializedStyles;
|
|
12977
|
+
reverse: import("@emotion/utils").SerializedStyles;
|
|
12978
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
12979
|
+
};
|
|
12980
|
+
inlineStyles: {
|
|
12981
|
+
normal: import("@emotion/utils").SerializedStyles;
|
|
12982
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
12983
|
+
};
|
|
12984
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
12825
12985
|
};
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12986
|
+
|
|
12987
|
+
}
|
|
12988
|
+
declare module '@elastic/eui/src/components/description_list/description_list_context' {
|
|
12989
|
+
|
|
12990
|
+
import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types'; type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'type' | 'textStyle' | 'align'>> & {
|
|
12991
|
+
compressed?: EuiDescriptionListProps['compressed'];
|
|
12992
|
+
};
|
|
12993
|
+
export const contextDefaults: EuiDescriptionListContextValues;
|
|
12994
|
+
export const EuiDescriptionListContext: import("react").Context<EuiDescriptionListContextValues>;
|
|
12995
|
+
export {};
|
|
12996
|
+
|
|
12997
|
+
}
|
|
12998
|
+
declare module '@elastic/eui/src/components/description_list/description_list_title' {
|
|
12999
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
13000
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13001
|
+
interface EuiDescriptionListTitleProps extends CommonProps, HTMLAttributes<HTMLElement> {
|
|
13002
|
+
}
|
|
13003
|
+
export const EuiDescriptionListTitle: FunctionComponent<EuiDescriptionListTitleProps>;
|
|
13004
|
+
export {};
|
|
13005
|
+
|
|
13006
|
+
}
|
|
13007
|
+
declare module '@elastic/eui/src/components/description_list/description_list_description.styles' {
|
|
13008
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13009
|
+
export const euiDescriptionListDescriptionStyles: (euiThemeContext: UseEuiTheme) => {
|
|
13010
|
+
euiDescriptionList__description: import("@emotion/utils").SerializedStyles;
|
|
13011
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
13012
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
13013
|
+
responsiveColumn: import("@emotion/utils").SerializedStyles;
|
|
13014
|
+
inline: import("@emotion/utils").SerializedStyles;
|
|
13015
|
+
fontStyles: {
|
|
13016
|
+
normal: import("@emotion/utils").SerializedStyles;
|
|
13017
|
+
reverse: import("@emotion/utils").SerializedStyles;
|
|
13018
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
13019
|
+
};
|
|
13020
|
+
inlineStyles: {
|
|
13021
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
13022
|
+
normal: import("@emotion/utils").SerializedStyles;
|
|
13023
|
+
};
|
|
13024
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
12829
13025
|
};
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
13026
|
+
|
|
13027
|
+
}
|
|
13028
|
+
declare module '@elastic/eui/src/components/description_list/description_list_description' {
|
|
13029
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
13030
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13031
|
+
interface EuiDescriptionListDescriptionProps extends CommonProps, HTMLAttributes<HTMLElement> {
|
|
13032
|
+
}
|
|
13033
|
+
export const EuiDescriptionListDescription: FunctionComponent<EuiDescriptionListDescriptionProps>;
|
|
13034
|
+
export {};
|
|
13035
|
+
|
|
13036
|
+
}
|
|
13037
|
+
declare module '@elastic/eui/src/components/description_list/description_list.styles' {
|
|
13038
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13039
|
+
export const euiDescriptionListStyles: (euiThemeContext: UseEuiTheme) => {
|
|
13040
|
+
euiDescriptionList: import("@emotion/utils").SerializedStyles;
|
|
13041
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
13042
|
+
inline: import("@emotion/utils").SerializedStyles;
|
|
13043
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
13044
|
+
responsiveColumn: import("@emotion/utils").SerializedStyles;
|
|
13045
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
13046
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
12833
13047
|
};
|
|
12834
|
-
|
|
13048
|
+
|
|
13049
|
+
}
|
|
13050
|
+
declare module '@elastic/eui/src/components/description_list/description_list' {
|
|
13051
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
13052
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13053
|
+
import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
|
|
12835
13054
|
export const EuiDescriptionList: FunctionComponent<CommonProps & HTMLAttributes<HTMLDListElement> & EuiDescriptionListProps>;
|
|
12836
|
-
export {};
|
|
12837
13055
|
|
|
12838
13056
|
}
|
|
12839
13057
|
declare module '@elastic/eui/src/components/description_list' {
|
|
12840
|
-
export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/
|
|
13058
|
+
export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
|
|
12841
13059
|
export { EuiDescriptionList } from '@elastic/eui/src/components/description_list/description_list';
|
|
12842
13060
|
export { EuiDescriptionListTitle } from '@elastic/eui/src/components/description_list/description_list_title';
|
|
12843
13061
|
export { EuiDescriptionListDescription } from '@elastic/eui/src/components/description_list/description_list_description';
|
|
@@ -13316,6 +13534,13 @@ declare module '@elastic/eui/src/components/header/header_section' {
|
|
|
13316
13534
|
export type { EuiHeaderSectionItemButtonProps } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
|
|
13317
13535
|
export { EuiHeaderSectionItemButton } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
|
|
13318
13536
|
|
|
13537
|
+
}
|
|
13538
|
+
declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs.styles' {
|
|
13539
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13540
|
+
export const euiHeaderBreadcrumbsStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
13541
|
+
euiHeaderBreadcrumbs: import("@emotion/utils").SerializedStyles;
|
|
13542
|
+
};
|
|
13543
|
+
|
|
13319
13544
|
}
|
|
13320
13545
|
declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs' {
|
|
13321
13546
|
import { FunctionComponent } from 'react';
|
|
@@ -16087,7 +16312,8 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
16087
16312
|
import { EuiSelectableOptionsListProps } from '@elastic/eui/src/components/selectable/selectable_list/selectable_list';
|
|
16088
16313
|
import { EuiSelectableSearchProps } from '@elastic/eui/src/components/selectable/selectable_search/selectable_search';
|
|
16089
16314
|
import { Align } from 'react-window';
|
|
16090
|
-
export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent; type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof typeof EuiSelectableList['defaultProps']>; type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>; type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>;
|
|
16315
|
+
export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent; type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof typeof EuiSelectableList['defaultProps']>; type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>; type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>;
|
|
16316
|
+
export type EuiSelectableSearchableProps<T> = ExclusiveUnion<{
|
|
16091
16317
|
searchable: false;
|
|
16092
16318
|
}, {
|
|
16093
16319
|
/**
|
|
@@ -16316,7 +16542,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_templates' {
|
|
|
16316
16542
|
|
|
16317
16543
|
}
|
|
16318
16544
|
declare module '@elastic/eui/src/components/selectable' {
|
|
16319
|
-
export type { EuiSelectableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
|
|
16545
|
+
export type { EuiSelectableProps, EuiSelectableSearchableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
|
|
16320
16546
|
export { EuiSelectable } from '@elastic/eui/src/components/selectable/selectable';
|
|
16321
16547
|
export type { EuiSelectableListProps, EuiSelectableListItemProps, EuiSelectableOptionsListProps, } from '@elastic/eui/src/components/selectable/selectable_list';
|
|
16322
16548
|
export { EuiSelectableList, EuiSelectableListItem } from '@elastic/eui/src/components/selectable/selectable_list';
|
|
@@ -18271,12 +18497,33 @@ declare module '@elastic/eui/src/components/text_diff' {
|
|
|
18271
18497
|
export type { EuiTextDiffProps } from '@elastic/eui/src/components/text_diff/text_diff';
|
|
18272
18498
|
export { useEuiTextDiff } from '@elastic/eui/src/components/text_diff/text_diff';
|
|
18273
18499
|
|
|
18500
|
+
}
|
|
18501
|
+
declare module '@elastic/eui/src/components/toast/toast.styles' {
|
|
18502
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
18503
|
+
export const euiToastStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18504
|
+
euiToast: import("@emotion/utils").SerializedStyles;
|
|
18505
|
+
euiToast__closeButton: import("@emotion/utils").SerializedStyles;
|
|
18506
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
18507
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
18508
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
18509
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
18510
|
+
};
|
|
18511
|
+
export const euiToastHeaderStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18512
|
+
euiToastHeader: import("@emotion/utils").SerializedStyles;
|
|
18513
|
+
euiToastHeader__icon: import("@emotion/utils").SerializedStyles;
|
|
18514
|
+
euiToastHeader__title: import("@emotion/utils").SerializedStyles;
|
|
18515
|
+
withBody: import("@emotion/utils").SerializedStyles;
|
|
18516
|
+
};
|
|
18517
|
+
export const euiToastBodyStyles: () => {
|
|
18518
|
+
euiToastBody: import("@emotion/utils").SerializedStyles;
|
|
18519
|
+
};
|
|
18520
|
+
|
|
18274
18521
|
}
|
|
18275
18522
|
declare module '@elastic/eui/src/components/toast/toast' {
|
|
18276
18523
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
18277
18524
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
18278
|
-
import { IconType } from '@elastic/eui/src/components/icon';
|
|
18279
|
-
export const COLORS: ToastColor[];
|
|
18525
|
+
import { IconType } from '@elastic/eui/src/components/icon';
|
|
18526
|
+
export const COLORS: readonly ["primary", "success", "warning", "danger"]; type ToastColor = typeof COLORS[number];
|
|
18280
18527
|
export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
18281
18528
|
title?: ReactNode;
|
|
18282
18529
|
color?: ToastColor;
|
|
@@ -18304,6 +18551,23 @@ declare module '@elastic/eui/src/services/time/timer' {
|
|
|
18304
18551
|
declare module '@elastic/eui/src/services/time' {
|
|
18305
18552
|
export { Timer } from '@elastic/eui/src/services/time/timer';
|
|
18306
18553
|
|
|
18554
|
+
}
|
|
18555
|
+
declare module '@elastic/eui/src/components/toast/global_toast_list.styles' {
|
|
18556
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
18557
|
+
export const euiGlobalToastListStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18558
|
+
/**
|
|
18559
|
+
* 1. Allow list to expand as items are added, but cap it at the screen height.
|
|
18560
|
+
* 2. Allow some padding for shadow
|
|
18561
|
+
*/
|
|
18562
|
+
euiGlobalToastList: import("@emotion/utils").SerializedStyles;
|
|
18563
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
18564
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
18565
|
+
};
|
|
18566
|
+
export const euiGlobalToastListItemStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
18567
|
+
euiGlobalToastListItem: import("@emotion/utils").SerializedStyles;
|
|
18568
|
+
dismissed: import("@emotion/utils").SerializedStyles;
|
|
18569
|
+
};
|
|
18570
|
+
|
|
18307
18571
|
}
|
|
18308
18572
|
declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
|
|
18309
18573
|
import { FunctionComponent, ReactElement } from 'react';
|
|
@@ -18319,9 +18583,8 @@ declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
|
|
|
18319
18583
|
|
|
18320
18584
|
}
|
|
18321
18585
|
declare module '@elastic/eui/src/components/toast/global_toast_list' {
|
|
18322
|
-
import {
|
|
18586
|
+
import { FunctionComponent, ReactChild } from 'react';
|
|
18323
18587
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
18324
|
-
import { Timer } from '@elastic/eui/src/services/time';
|
|
18325
18588
|
import { EuiToastProps } from '@elastic/eui/src/components/toast/toast'; type ToastSide = 'right' | 'left';
|
|
18326
18589
|
export const SIDES: ToastSide[];
|
|
18327
18590
|
export const TOAST_FADE_OUT_MS = 250;
|
|
@@ -18331,47 +18594,15 @@ declare module '@elastic/eui/src/components/toast/global_toast_list' {
|
|
|
18331
18594
|
toastLifeTimeMs?: number;
|
|
18332
18595
|
}
|
|
18333
18596
|
export interface EuiGlobalToastListProps extends CommonProps {
|
|
18334
|
-
toasts
|
|
18335
|
-
dismissToast: (
|
|
18597
|
+
toasts?: Toast[];
|
|
18598
|
+
dismissToast: (toast: Toast) => void;
|
|
18336
18599
|
toastLifeTimeMs: number;
|
|
18337
18600
|
/**
|
|
18338
18601
|
* Determines which side of the browser window the toasts should appear
|
|
18339
18602
|
*/
|
|
18340
18603
|
side?: ToastSide;
|
|
18341
18604
|
}
|
|
18342
|
-
|
|
18343
|
-
toastIdToDismissedMap: {
|
|
18344
|
-
[toastId: string]: boolean;
|
|
18345
|
-
};
|
|
18346
|
-
}
|
|
18347
|
-
export class EuiGlobalToastList extends Component<EuiGlobalToastListProps, State> {
|
|
18348
|
-
state: State;
|
|
18349
|
-
dismissTimeoutIds: number[];
|
|
18350
|
-
toastIdToTimerMap: {
|
|
18351
|
-
[toastId: string]: Timer;
|
|
18352
|
-
};
|
|
18353
|
-
isScrollingToBottom: boolean;
|
|
18354
|
-
isScrolledToBottom: boolean;
|
|
18355
|
-
isUserInteracting: boolean;
|
|
18356
|
-
isScrollingAnimationFrame: number;
|
|
18357
|
-
startScrollingAnimationFrame: number;
|
|
18358
|
-
listElement: Element | null;
|
|
18359
|
-
static defaultProps: {
|
|
18360
|
-
toasts: never[];
|
|
18361
|
-
side: string;
|
|
18362
|
-
};
|
|
18363
|
-
startScrollingToBottom(): void;
|
|
18364
|
-
onMouseEnter: () => void;
|
|
18365
|
-
onMouseLeave: () => void;
|
|
18366
|
-
onScroll: () => void;
|
|
18367
|
-
scheduleAllToastsForDismissal: () => void;
|
|
18368
|
-
scheduleToastForDismissal: (toast: Toast) => void;
|
|
18369
|
-
dismissToast: (toast: Toast) => void;
|
|
18370
|
-
componentDidMount(): void;
|
|
18371
|
-
componentDidUpdate(prevProps: EuiGlobalToastListProps): void;
|
|
18372
|
-
componentWillUnmount(): void;
|
|
18373
|
-
render(): JSX.Element;
|
|
18374
|
-
}
|
|
18605
|
+
export const EuiGlobalToastList: FunctionComponent<EuiGlobalToastListProps>;
|
|
18375
18606
|
export {};
|
|
18376
18607
|
|
|
18377
18608
|
}
|
|
@@ -23425,13 +23656,19 @@ declare module 'mdast-util-to-hast/lib/all' {
|
|
|
23425
23656
|
export = all;
|
|
23426
23657
|
}
|
|
23427
23658
|
declare module '@elastic/eui/src/test/rtl/component_helpers' {
|
|
23659
|
+
import '@testing-library/jest-dom';
|
|
23428
23660
|
/**
|
|
23429
|
-
* Ensure the EuiPopover being tested is open/closed before
|
|
23661
|
+
* Ensure the EuiPopover being tested is open/closed before continuing
|
|
23430
23662
|
* Note: Because EuiPopover is portalled, we want to query `document`
|
|
23431
23663
|
* instead of the `container` returned by RTL's render()
|
|
23432
23664
|
*/
|
|
23433
23665
|
export const waitForEuiPopoverOpen: () => Promise<void>;
|
|
23434
23666
|
export const waitForEuiPopoverClose: () => Promise<void>;
|
|
23667
|
+
/**
|
|
23668
|
+
* Ensure the EuiToolTip being tested is open and visible before continuing
|
|
23669
|
+
*/
|
|
23670
|
+
export const waitForEuiToolTipVisible: () => Promise<void>;
|
|
23671
|
+
export const waitForEuiToolTipHidden: () => Promise<void>;
|
|
23435
23672
|
|
|
23436
23673
|
}
|
|
23437
23674
|
declare module '@elastic/eui/src/test/rtl/data_test_subj_queries' {
|
|
@@ -23570,7 +23807,7 @@ declare module '@elastic/eui' {
|
|
|
23570
23807
|
"euiBottomBar.screenReaderHeading": any;
|
|
23571
23808
|
"euiBottomBar.customScreenReaderAnnouncement": any;
|
|
23572
23809
|
"euiBottomBar.screenReaderAnnouncement": any;
|
|
23573
|
-
"
|
|
23810
|
+
"euiBreadcrumb.collapsedBadge.ariaLabel": any;
|
|
23574
23811
|
"euiBreadcrumbs.nav.ariaLabel": any;
|
|
23575
23812
|
"euiCardSelect.selected": any;
|
|
23576
23813
|
"euiCardSelect.unavailable": any;
|