@elastic/eui 62.0.2 → 62.1.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_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 +1 -1
- 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 +1 -1
- 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/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/eui.d.ts +1681 -1479
- 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 +1 -1
- 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 +1 -1
- 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/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/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/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/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/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/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/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/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 +1 -1
- 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 +1 -1
- 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/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/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/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' {
|
|
@@ -1451,6 +649,143 @@ declare module '@elastic/eui/src/services/theme/types' {
|
|
|
1451
649
|
themeName: string;
|
|
1452
650
|
};
|
|
1453
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")[];
|
|
745
|
+
/**
|
|
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
|
|
749
|
+
*
|
|
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
|
|
759
|
+
*
|
|
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
|
|
770
|
+
*
|
|
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
|
|
781
|
+
*
|
|
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`
|
|
786
|
+
*/
|
|
787
|
+
export function isWithinBreakpoints(width: number, sizes: EuiBreakpointSize[], breakpoints?: EuiBreakpoints): boolean;
|
|
788
|
+
|
|
1454
789
|
}
|
|
1455
790
|
declare module '@elastic/eui/src/services/theme/utils' {
|
|
1456
791
|
import { EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeShape, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
@@ -1510,180 +845,789 @@ declare module '@elastic/eui/src/services/theme/utils' {
|
|
|
1510
845
|
getValue(base: EuiThemeSystem | EuiThemeShape, modifications: import ("@elastic/eui").RecursivePartial<EuiThemeShape> | undefined, working: EuiThemeComputed, colorMode: EuiThemeColorModeStandard): T;
|
|
1511
846
|
}
|
|
1512
847
|
/**
|
|
1513
|
-
* Returns a Class (`Computed`) that stores the arbitrary computer method
|
|
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.
|
|
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(
|
|
971
|
+
/**
|
|
972
|
+
* The main color code or array of codes
|
|
973
|
+
*/
|
|
974
|
+
colors: string[],
|
|
975
|
+
/**
|
|
976
|
+
* The number of colors in the resulting array (default 10)
|
|
1517
977
|
*/
|
|
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;
|
|
978
|
+
len?: number,
|
|
1521
979
|
/**
|
|
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`
|
|
980
|
+
* Forces color interpolation to be calculated separately for each half (default false)
|
|
1529
981
|
*/
|
|
1530
|
-
|
|
982
|
+
diverging?: boolean,
|
|
1531
983
|
/**
|
|
1532
|
-
*
|
|
1533
|
-
* and prevent arbitrary value overrides.
|
|
1534
|
-
* @param {object} model - Object to transform into Proxy
|
|
1535
|
-
* @param {string} key - Unique identifier or name
|
|
984
|
+
* Uses a more static interpolation for non-continuous spectrums
|
|
1536
985
|
*/
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
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;
|
|
1542
1015
|
/**
|
|
1543
|
-
*
|
|
1544
|
-
*
|
|
1545
|
-
* @param {object} source - Object with desired values
|
|
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.
|
|
1546
1018
|
*/
|
|
1547
|
-
export const
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
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.
|
|
1664
1591
|
*/
|
|
1665
|
-
export
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
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.
|
|
1615
|
+
*/
|
|
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';
|
|
@@ -4118,124 +3942,57 @@ declare module '@elastic/eui/src/components/panel/panel.style' {
|
|
|
4118
3942
|
};
|
|
4119
3943
|
|
|
4120
3944
|
}
|
|
4121
|
-
declare module '@elastic/eui/src/components/panel/panel' {
|
|
4122
|
-
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
4123
|
-
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
4124
|
-
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
4125
|
-
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
|
|
4126
|
-
export type PanelPaddingSize = typeof _SIZES[number];
|
|
4127
|
-
export const BORDER_RADII: readonly ["none", "m"];
|
|
4128
|
-
export type PanelBorderRadius = typeof BORDER_RADII[number];
|
|
4129
|
-
export const COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
|
|
4130
|
-
export type PanelColor = _EuiBackgroundColor;
|
|
4131
|
-
export interface _EuiPanelProps extends CommonProps {
|
|
4132
|
-
/**
|
|
4133
|
-
* Adds a medium shadow to the panel;
|
|
4134
|
-
* 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';
|
|
4237
|
-
|
|
4238
|
-
}
|
|
3945
|
+
declare module '@elastic/eui/src/components/panel/panel' {
|
|
3946
|
+
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, Ref } from 'react';
|
|
3947
|
+
import { _EuiBackgroundColor, EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
3948
|
+
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
3949
|
+
export const SIZES: readonly ["none", "xs", "s", "m", "l", "xl"]; const _SIZES: ("s" | "none" | "xs" | "m" | "l" | "xl")[];
|
|
3950
|
+
export type PanelPaddingSize = typeof _SIZES[number];
|
|
3951
|
+
export const BORDER_RADII: readonly ["none", "m"];
|
|
3952
|
+
export type PanelBorderRadius = typeof BORDER_RADII[number];
|
|
3953
|
+
export const COLORS: readonly ["transparent", "plain", "subdued", "accent", "primary", "success", "warning", "danger"];
|
|
3954
|
+
export type PanelColor = _EuiBackgroundColor;
|
|
3955
|
+
export interface _EuiPanelProps extends CommonProps {
|
|
3956
|
+
/**
|
|
3957
|
+
* Adds a medium shadow to the panel;
|
|
3958
|
+
* Only works when `color="plain"`
|
|
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 {};
|
|
3994
|
+
|
|
3995
|
+
}
|
|
4239
3996
|
declare module '@elastic/eui/src/components/panel/split_panel/split_panel' {
|
|
4240
3997
|
import React, { FunctionComponent, ReactNode, HTMLAttributes } from 'react';
|
|
4241
3998
|
import { _EuiPanelProps } from '@elastic/eui/src/components/panel/panel';
|
|
@@ -6677,28 +6434,244 @@ declare module '@elastic/eui/src/components/color_picker/color_stops' {
|
|
|
6677
6434
|
export type { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb';
|
|
6678
6435
|
|
|
6679
6436
|
}
|
|
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[];
|
|
6437
|
+
declare module '@elastic/eui/src/services/color/stepped_gradient' {
|
|
6438
|
+
import { ColorStop } from '@elastic/eui/src/components/color_picker/color_stops';
|
|
6439
|
+
export const getSteppedGradient: (colors: ColorStop[], steps: number) => string[];
|
|
6440
|
+
|
|
6441
|
+
}
|
|
6442
|
+
declare module '@elastic/eui/src/services/color/manipulation' {
|
|
6443
|
+
import { EuiThemeColorModeStandard } from '@elastic/eui/src/services/theme';
|
|
6444
|
+
/**
|
|
6445
|
+
* Makes a color more transparent.
|
|
6446
|
+
* @param color - Color to manipulate
|
|
6447
|
+
* @param alpha - alpha channel value. From 0-1.
|
|
6448
|
+
*/
|
|
6449
|
+
export const transparentize: (color: string, alpha: number) => string;
|
|
6450
|
+
/**
|
|
6451
|
+
* Mixes a provided color with white.
|
|
6452
|
+
* @param color - Color to mix with white
|
|
6453
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6454
|
+
*/
|
|
6455
|
+
export const tint: (color: string, ratio: number) => string;
|
|
6456
|
+
/**
|
|
6457
|
+
* Mixes a provided color with black.
|
|
6458
|
+
* @param color - Color to mix with black
|
|
6459
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more black.
|
|
6460
|
+
*/
|
|
6461
|
+
export const shade: (color: string, ratio: number) => string;
|
|
6462
|
+
/**
|
|
6463
|
+
* Returns the tinted color for light mode and shaded color for dark mode
|
|
6464
|
+
* @param color - Color to mix with white
|
|
6465
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6466
|
+
* @param colorMode - Light or dark only
|
|
6467
|
+
*/
|
|
6468
|
+
export const tintOrShade: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6469
|
+
/**
|
|
6470
|
+
* Returns the shaded color for light mode and tinted color for dark mode
|
|
6471
|
+
* @param color - Color to mix with white
|
|
6472
|
+
* @param ratio - Mix weight. From 0-1. Larger value indicates more white.
|
|
6473
|
+
* @param colorMode - Light or dark only
|
|
6474
|
+
*/
|
|
6475
|
+
export const shadeOrTint: (color: string, ratio: number, colorMode: EuiThemeColorModeStandard) => string;
|
|
6476
|
+
/**
|
|
6477
|
+
* Increases the saturation of a color by manipulating the hsl saturation.
|
|
6478
|
+
* @param color - Color to manipulate
|
|
6479
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6480
|
+
*/
|
|
6481
|
+
export const saturate: (color: string, amount: number) => string;
|
|
6482
|
+
/**
|
|
6483
|
+
* Decreases the saturation of a color by manipulating the hsl saturation.
|
|
6484
|
+
* @param color - Color to manipulate
|
|
6485
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6486
|
+
*/
|
|
6487
|
+
export const desaturate: (color: string, amount: number) => string;
|
|
6488
|
+
/**
|
|
6489
|
+
* Returns the lightness value of a color. 0-100
|
|
6490
|
+
* @param color
|
|
6491
|
+
*/
|
|
6492
|
+
export const lightness: (color: string) => number;
|
|
6493
|
+
|
|
6494
|
+
}
|
|
6495
|
+
declare module '@elastic/eui/src/services/color/contrast' {
|
|
6496
|
+
/**
|
|
6497
|
+
* Creates a new color that meets or exceeds WCAG level AA
|
|
6498
|
+
* @param foreground - Color to manipulate
|
|
6499
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6500
|
+
* *
|
|
6501
|
+
* @param themeOrBackground - Color to use as the contrast basis or just pass EuiTheme
|
|
6502
|
+
*/
|
|
6503
|
+
export const makeHighContrastColor: (_foreground: string, ratio?: number) => (themeOrBackground: string | {
|
|
6504
|
+
[key: string]: any;
|
|
6505
|
+
colors: {
|
|
6506
|
+
body: string;
|
|
6507
|
+
};
|
|
6508
|
+
}) => string;
|
|
6509
|
+
/**
|
|
6510
|
+
* Creates a new color with increased contrast
|
|
6511
|
+
* Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
6512
|
+
* @param foreground - Color to manipulate
|
|
6513
|
+
* @param ratio - Amount to change in absolute terms. 0-10.
|
|
6514
|
+
* *
|
|
6515
|
+
* @param themeOrBackground - Color to use as the contrast basis
|
|
6516
|
+
*/
|
|
6517
|
+
export const makeDisabledContrastColor: (color: string, ratio?: number) => (themeOrBackground: string | {
|
|
6518
|
+
[key: string]: any;
|
|
6519
|
+
colors: {
|
|
6520
|
+
body: string;
|
|
6521
|
+
};
|
|
6522
|
+
}) => string;
|
|
6523
|
+
|
|
6524
|
+
}
|
|
6525
|
+
declare module '@elastic/eui/src/services/color' {
|
|
6526
|
+
export { isColorDark } from '@elastic/eui/src/services/color/is_color_dark';
|
|
6527
|
+
export { isValidHex } from '@elastic/eui/src/services/color/is_valid_hex';
|
|
6528
|
+
export { hexToHsv } from '@elastic/eui/src/services/color/hex_to_hsv';
|
|
6529
|
+
export { hexToRgb } from '@elastic/eui/src/services/color/hex_to_rgb';
|
|
6530
|
+
export { hsvToHex } from '@elastic/eui/src/services/color/hsv_to_hex';
|
|
6531
|
+
export { hsvToRgb } from '@elastic/eui/src/services/color/hsv_to_rgb';
|
|
6532
|
+
export { rgbToHex } from '@elastic/eui/src/services/color/rgb_to_hex';
|
|
6533
|
+
export { rgbToHsv } from '@elastic/eui/src/services/color/rgb_to_hsv';
|
|
6534
|
+
export { calculateContrast, calculateLuminance, } from '@elastic/eui/src/services/color/luminance_and_contrast';
|
|
6535
|
+
export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, } from '@elastic/eui/src/services/color/visualization_colors';
|
|
6536
|
+
export { colorPalette } from '@elastic/eui/src/services/color/color_palette';
|
|
6537
|
+
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, } from '@elastic/eui/src/services/color/eui_palettes';
|
|
6538
|
+
export type { rgbDef, HSV, RGB } from '@elastic/eui/src/services/color/color_types';
|
|
6539
|
+
export { getSteppedGradient } from '@elastic/eui/src/services/color/stepped_gradient';
|
|
6540
|
+
export * from '@elastic/eui/src/services/color/manipulation';
|
|
6541
|
+
export * from '@elastic/eui/src/services/color/contrast';
|
|
6542
|
+
|
|
6543
|
+
}
|
|
6544
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_colors' {
|
|
6545
|
+
import { _EuiThemeColors, _EuiThemeBrandColors, _EuiThemeBrandTextColors, _EuiThemeShadeColors, _EuiThemeSpecialColors, _EuiThemeTextColors, _EuiThemeColorsMode } from '@elastic/eui/src/global_styling/variables/colors';
|
|
6546
|
+
export const brand_colors: _EuiThemeBrandColors;
|
|
6547
|
+
export const brand_text_colors: _EuiThemeBrandTextColors;
|
|
6548
|
+
export const shade_colors: _EuiThemeShadeColors;
|
|
6549
|
+
export const special_colors: _EuiThemeSpecialColors;
|
|
6550
|
+
export const text_colors: _EuiThemeTextColors;
|
|
6551
|
+
export const light_colors: _EuiThemeColorsMode;
|
|
6552
|
+
export const dark_shades: _EuiThemeShadeColors;
|
|
6553
|
+
export const dark_colors_ams: _EuiThemeColorsMode;
|
|
6554
|
+
export const colors: _EuiThemeColors;
|
|
6555
|
+
|
|
6556
|
+
}
|
|
6557
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_animation' {
|
|
6558
|
+
import { _EuiThemeAnimationSpeeds, _EuiThemeAnimationEasings, _EuiThemeAnimation } from '@elastic/eui/src/global_styling/variables/animations';
|
|
6559
|
+
export const animation_speed: _EuiThemeAnimationSpeeds;
|
|
6560
|
+
export const animation_ease: _EuiThemeAnimationEasings;
|
|
6561
|
+
export const animation: _EuiThemeAnimation;
|
|
6562
|
+
|
|
6563
|
+
}
|
|
6564
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_size' {
|
|
6565
|
+
import { _EuiThemeBase, _EuiThemeSizes } from '@elastic/eui/src/global_styling/variables';
|
|
6566
|
+
export const base: _EuiThemeBase;
|
|
6567
|
+
export const size: _EuiThemeSizes;
|
|
6568
|
+
|
|
6569
|
+
}
|
|
6570
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_borders' {
|
|
6571
|
+
import { _EuiThemeBorder } from '@elastic/eui/src/global_styling/variables';
|
|
6572
|
+
export const border: _EuiThemeBorder;
|
|
6573
|
+
|
|
6574
|
+
}
|
|
6575
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_levels' {
|
|
6576
|
+
import { _EuiThemeLevels } from '@elastic/eui/src/global_styling/variables';
|
|
6577
|
+
export const levels: _EuiThemeLevels;
|
|
6578
|
+
|
|
6579
|
+
}
|
|
6580
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_typography' {
|
|
6581
|
+
import { _EuiThemeFont, _EuiThemeFontBase, _EuiThemeFontScales, _EuiThemeFontWeights } from '@elastic/eui/src/global_styling/variables/typography';
|
|
6582
|
+
export const fontScale: _EuiThemeFontScales;
|
|
6583
|
+
export const fontBase: _EuiThemeFontBase;
|
|
6584
|
+
export const fontWeight: _EuiThemeFontWeights;
|
|
6585
|
+
export const font: _EuiThemeFont;
|
|
6586
|
+
|
|
6587
|
+
}
|
|
6588
|
+
declare module '@elastic/eui/src/themes/amsterdam/global_styling/variables/_states' {
|
|
6589
|
+
import { _EuiThemeFocus } from '@elastic/eui/src/global_styling/variables/states';
|
|
6590
|
+
export const focus: _EuiThemeFocus;
|
|
6591
|
+
|
|
6592
|
+
}
|
|
6593
|
+
declare module '@elastic/eui/src/themes/amsterdam/theme' {
|
|
6594
|
+
import { EuiThemeShape } from '@elastic/eui/src/services/theme/types';
|
|
6595
|
+
export const AMSTERDAM_NAME_KEY = "EUI_THEME_AMSTERDAM";
|
|
6596
|
+
export const euiThemeAmsterdam: EuiThemeShape;
|
|
6597
|
+
export const EuiThemeAmsterdam: {
|
|
6598
|
+
model: EuiThemeShape;
|
|
6599
|
+
root: EuiThemeShape;
|
|
6600
|
+
key: string;
|
|
6601
|
+
};
|
|
6602
|
+
|
|
6603
|
+
}
|
|
6604
|
+
declare module '@elastic/eui/src/services/theme/context' {
|
|
6605
|
+
|
|
6606
|
+
import { EuiThemeColorModeStandard, EuiThemeSystem, EuiThemeComputed } from '@elastic/eui/src/services/theme/types';
|
|
6607
|
+
export const EuiSystemContext: import("react").Context<EuiThemeSystem<{}>>;
|
|
6608
|
+
export const EuiModificationsContext: import("react").Context<import ("@elastic/eui").RecursivePartial<import ("@elastic/eui/src/services/theme/types").EuiThemeShape>>;
|
|
6609
|
+
export const EuiColorModeContext: import("react").Context<EuiThemeColorModeStandard>;
|
|
6610
|
+
export const EuiThemeContext: import("react").Context<EuiThemeComputed<{}>>;
|
|
6611
|
+
|
|
6612
|
+
}
|
|
6613
|
+
declare module '@elastic/eui/src/services/theme/provider' {
|
|
6614
|
+
import React, { PropsWithChildren } from 'react';
|
|
6615
|
+
import { EuiThemeColorMode, EuiThemeSystem, EuiThemeModifications } from '@elastic/eui/src/services/theme/types';
|
|
6616
|
+
export interface EuiThemeProviderProps<T> {
|
|
6617
|
+
theme?: EuiThemeSystem<T>;
|
|
6618
|
+
colorMode?: EuiThemeColorMode;
|
|
6619
|
+
modify?: EuiThemeModifications<T>;
|
|
6620
|
+
children: any;
|
|
6621
|
+
}
|
|
6622
|
+
export const EuiThemeProvider: <T extends {} = {}>({ theme: _system, colorMode: _colorMode, modify: _modifications, children, }: React.PropsWithChildren<EuiThemeProviderProps<T>>) => JSX.Element;
|
|
6623
|
+
|
|
6624
|
+
}
|
|
6625
|
+
declare module '@elastic/eui/src/services/theme' {
|
|
6626
|
+
export { EuiSystemContext, EuiThemeContext, EuiModificationsContext, EuiColorModeContext, } from '@elastic/eui/src/services/theme/context';
|
|
6627
|
+
export type { UseEuiTheme, WithEuiThemeProps } from '@elastic/eui/src/services/theme/hooks';
|
|
6628
|
+
export { useEuiTheme, withEuiTheme } from '@elastic/eui/src/services/theme/hooks';
|
|
6629
|
+
export type { EuiThemeProviderProps } from '@elastic/eui/src/services/theme/provider';
|
|
6630
|
+
export { EuiThemeProvider } from '@elastic/eui/src/services/theme/provider';
|
|
6631
|
+
export { buildTheme, computed, isInverseColorMode, getColorMode, getComputed, getOn, mergeDeep, setOn, Computed, } from '@elastic/eui/src/services/theme/utils';
|
|
6632
|
+
export type { ComputedThemeShape, EuiThemeColorMode, EuiThemeColorModeStandard, EuiThemeComputed, EuiThemeModifications, EuiThemeShape, EuiThemeSystem, } from '@elastic/eui/src/services/theme/types';
|
|
6633
|
+
export { COLOR_MODES_STANDARD } from '@elastic/eui/src/services/theme/types';
|
|
6634
|
+
|
|
6635
|
+
}
|
|
6636
|
+
declare module '@elastic/eui/src/services/throttle' {
|
|
6637
|
+
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
6638
|
+
|
|
6639
|
+
}
|
|
6640
|
+
declare module '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint' {
|
|
6641
|
+
import React, { FunctionComponent } from 'react';
|
|
6642
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
6643
|
+
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
6644
|
+
/**
|
|
6645
|
+
* Top level provider (nested within EuiProvider) which provides a single
|
|
6646
|
+
* resize listener that returns the current breakpoint based on window width
|
|
6647
|
+
*/
|
|
6648
|
+
export const CurrentEuiBreakpointProvider: FunctionComponent;
|
|
6649
|
+
/**
|
|
6650
|
+
* Hook util / syntactical sugar
|
|
6651
|
+
*/
|
|
6652
|
+
export const useCurrentEuiBreakpoint: () => CurrentEuiBreakpoint;
|
|
6653
|
+
export {};
|
|
6654
|
+
|
|
6655
|
+
}
|
|
6656
|
+
declare module '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints' {
|
|
6657
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint';
|
|
6658
|
+
/**
|
|
6659
|
+
* Given the current window.innerWidth and an array of breakpoint keys,
|
|
6660
|
+
* this hook stores state and returns true or false if the window.innerWidth
|
|
6661
|
+
* falls within any of the named breakpoints.
|
|
6662
|
+
*
|
|
6663
|
+
* @param {_EuiThemeBreakpoint[]} sizes An array of named EUI breakpoints
|
|
6664
|
+
* @param {boolean} isResponsive Some components have the option to turn off responsive behavior.
|
|
6665
|
+
* Since hooks can't be called conditionally, it's easier to pass the condition into the hook
|
|
6666
|
+
* @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`
|
|
6667
|
+
*/
|
|
6668
|
+
export const useIsWithinBreakpoints: (sizes: _EuiThemeBreakpoint[], isResponsive?: boolean) => boolean;
|
|
6683
6669
|
|
|
6684
6670
|
}
|
|
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';
|
|
6671
|
+
declare module '@elastic/eui/src/services/breakpoint' {
|
|
6672
|
+
export * from '@elastic/eui/src/services/breakpoint/breakpoint';
|
|
6673
|
+
export * from '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint';
|
|
6674
|
+
export * from '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints';
|
|
6702
6675
|
|
|
6703
6676
|
}
|
|
6704
6677
|
declare module '@elastic/eui/src/services/color_picker/color_picker' {
|
|
@@ -7079,6 +7052,54 @@ declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
|
7079
7052
|
declare module '@elastic/eui/src/services/window_event' {
|
|
7080
7053
|
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
|
|
7081
7054
|
|
|
7055
|
+
}
|
|
7056
|
+
declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
|
|
7057
|
+
export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
|
|
7058
|
+
|
|
7059
|
+
}
|
|
7060
|
+
declare module '@elastic/eui/src/services/hooks/useDependentState' {
|
|
7061
|
+
|
|
7062
|
+
export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
7063
|
+
|
|
7064
|
+
}
|
|
7065
|
+
declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
|
|
7066
|
+
import { MutableRefObject, Ref } from 'react';
|
|
7067
|
+
export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
|
|
7068
|
+
|
|
7069
|
+
}
|
|
7070
|
+
declare module '@elastic/eui/src/services/hooks/useForceRender' {
|
|
7071
|
+
export const useForceRender: () => () => void;
|
|
7072
|
+
|
|
7073
|
+
}
|
|
7074
|
+
declare module '@elastic/eui/src/services/hooks/useLatest' {
|
|
7075
|
+
import { MutableRefObject } from 'react';
|
|
7076
|
+
/**
|
|
7077
|
+
* Wraps the given `value` into a `MutableRefObject` and keeps the `current`
|
|
7078
|
+
* value up-to-date on every render cycle.
|
|
7079
|
+
*/
|
|
7080
|
+
export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
|
|
7081
|
+
|
|
7082
|
+
}
|
|
7083
|
+
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
7084
|
+
import { MouseEvent, TouchEvent } from 'react';
|
|
7085
|
+
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
7086
|
+
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
7087
|
+
x: number;
|
|
7088
|
+
y: number;
|
|
7089
|
+
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
7090
|
+
(e: MouseEvent<T>) => void,
|
|
7091
|
+
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
7092
|
+
];
|
|
7093
|
+
|
|
7094
|
+
}
|
|
7095
|
+
declare module '@elastic/eui/src/services/hooks' {
|
|
7096
|
+
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7097
|
+
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7098
|
+
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7099
|
+
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7100
|
+
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7101
|
+
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7102
|
+
|
|
7082
7103
|
}
|
|
7083
7104
|
declare module '@elastic/eui/src/services' {
|
|
7084
7105
|
import * as keys from '@elastic/eui/src/services/keys';
|
|
@@ -7087,7 +7108,7 @@ declare module '@elastic/eui/src/services' {
|
|
|
7087
7108
|
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7088
7109
|
export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT, CENTER_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7089
7110
|
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7090
|
-
export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7111
|
+
export { BREAKPOINTS, BREAKPOINT_KEYS, getBreakpoint, isWithinBreakpoints, useIsWithinBreakpoints, isWithinMaxBreakpoint, isWithinMinBreakpoint, CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7091
7112
|
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7092
7113
|
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
7114
|
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
@@ -7534,13 +7555,12 @@ declare module '@elastic/eui/src/components/badge/beta_badge/beta_badge' {
|
|
|
7534
7555
|
title?: string;
|
|
7535
7556
|
}> & {
|
|
7536
7557
|
label: ReactNode;
|
|
7537
|
-
};
|
|
7538
|
-
interface LabelAsString {
|
|
7558
|
+
}; type LabelAsString = {
|
|
7539
7559
|
/**
|
|
7540
7560
|
* One word label like "Beta" or "Lab"
|
|
7541
7561
|
*/
|
|
7542
7562
|
label: string;
|
|
7543
|
-
} type BadgeProps = {
|
|
7563
|
+
}; type BadgeProps = {
|
|
7544
7564
|
/**
|
|
7545
7565
|
* Supply an icon type if the badge should just be an icon
|
|
7546
7566
|
*/
|
|
@@ -7793,16 +7813,36 @@ declare module '@elastic/eui/src/components/link' {
|
|
|
7793
7813
|
export { EuiLink } from '@elastic/eui/src/components/link/link';
|
|
7794
7814
|
|
|
7795
7815
|
}
|
|
7796
|
-
declare module '@elastic/eui/src/components/breadcrumbs/
|
|
7797
|
-
import {
|
|
7816
|
+
declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb.styles' {
|
|
7817
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7818
|
+
export const euiBreadcrumbStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7819
|
+
euiBreadcrumb: import("@emotion/utils").SerializedStyles;
|
|
7820
|
+
isTruncated: import("@emotion/utils").SerializedStyles;
|
|
7821
|
+
isCollapsed: import("@emotion/utils").SerializedStyles;
|
|
7822
|
+
page: import("@emotion/utils").SerializedStyles;
|
|
7823
|
+
application: import("@emotion/utils").SerializedStyles;
|
|
7824
|
+
};
|
|
7825
|
+
export const euiBreadcrumbContentStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7826
|
+
euiBreadcrumb__content: import("@emotion/utils").SerializedStyles;
|
|
7827
|
+
isTruncated: import("@emotion/utils").SerializedStyles;
|
|
7828
|
+
isTruncatedLast: import("@emotion/utils").SerializedStyles;
|
|
7829
|
+
page: import("@emotion/utils").SerializedStyles;
|
|
7830
|
+
application: import("@emotion/utils").SerializedStyles;
|
|
7831
|
+
applicationStyles: {
|
|
7832
|
+
onlyChild: import("@emotion/utils").SerializedStyles;
|
|
7833
|
+
firstChild: import("@emotion/utils").SerializedStyles;
|
|
7834
|
+
lastChild: import("@emotion/utils").SerializedStyles;
|
|
7835
|
+
};
|
|
7836
|
+
};
|
|
7837
|
+
|
|
7838
|
+
}
|
|
7839
|
+
declare module '@elastic/eui/src/components/breadcrumbs/breadcrumb' {
|
|
7840
|
+
import { FunctionComponent, HTMLAttributes, AriaAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
7798
7841
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
7799
7842
|
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 & {
|
|
7843
|
+
export type EuiBreadcrumbProps = Omit<HTMLAttributes<HTMLElement>, 'color' | 'aria-current'> & CommonProps & {
|
|
7805
7844
|
href?: string;
|
|
7845
|
+
rel?: string;
|
|
7806
7846
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
7807
7847
|
/**
|
|
7808
7848
|
* Visible label of the breadcrumb
|
|
@@ -7820,6 +7860,34 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
|
|
|
7820
7860
|
* Override the existing `aria-current` which defaults to `page` for the last breadcrumb
|
|
7821
7861
|
*/
|
|
7822
7862
|
'aria-current'?: AriaAttributes['aria-current'];
|
|
7863
|
+
}; type _EuiBreadcrumbProps = {
|
|
7864
|
+
type: 'page' | 'application';
|
|
7865
|
+
isFirstBreadcrumb?: boolean;
|
|
7866
|
+
isLastBreadcrumb?: boolean;
|
|
7867
|
+
isOnlyBreadcrumb?: boolean;
|
|
7868
|
+
highlightLastBreadcrumb?: boolean;
|
|
7869
|
+
} & Pick<EuiBreadcrumbProps, 'truncate'>;
|
|
7870
|
+
export const EuiBreadcrumb: FunctionComponent<HTMLAttributes<HTMLLIElement> & _EuiBreadcrumbProps>;
|
|
7871
|
+
export const EuiBreadcrumbContent: FunctionComponent<EuiBreadcrumbProps & _EuiBreadcrumbProps>;
|
|
7872
|
+
export const EuiBreadcrumbCollapsed: FunctionComponent<_EuiBreadcrumbProps>;
|
|
7873
|
+
export {};
|
|
7874
|
+
|
|
7875
|
+
}
|
|
7876
|
+
declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs.styles' {
|
|
7877
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
7878
|
+
export const euiBreadcrumbsListStyles: (euiThemeContext: UseEuiTheme) => {
|
|
7879
|
+
euiBreadcrumbs__list: import("@emotion/utils").SerializedStyles;
|
|
7880
|
+
isTruncated: import("@emotion/utils").SerializedStyles;
|
|
7881
|
+
};
|
|
7882
|
+
|
|
7883
|
+
}
|
|
7884
|
+
declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
|
|
7885
|
+
import { FunctionComponent } from 'react';
|
|
7886
|
+
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7887
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
7888
|
+
import { EuiBreadcrumbProps } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
|
|
7889
|
+
export type EuiBreadcrumbResponsiveMaxCount = {
|
|
7890
|
+
[key in EuiBreakpointSize]?: number;
|
|
7823
7891
|
};
|
|
7824
7892
|
export type EuiBreadcrumbsProps = CommonProps & {
|
|
7825
7893
|
/**
|
|
@@ -7846,13 +7914,30 @@ declare module '@elastic/eui/src/components/breadcrumbs/breadcrumbs' {
|
|
|
7846
7914
|
/**
|
|
7847
7915
|
* The array of individual #EuiBreadcrumb items
|
|
7848
7916
|
*/
|
|
7849
|
-
breadcrumbs:
|
|
7917
|
+
breadcrumbs: EuiBreadcrumbProps[];
|
|
7918
|
+
/**
|
|
7919
|
+
* Determines breadcrumbs appearance, with `page` being the default styling.
|
|
7920
|
+
* Application breadcrumbs should only be once per page, in (e.g.) EuiHeader
|
|
7921
|
+
*/
|
|
7922
|
+
type?: 'page' | 'application';
|
|
7923
|
+
/**
|
|
7924
|
+
* Whether the last breadcrumb should visually (and accessibly, to screen readers)
|
|
7925
|
+
* be highlighted as the current page. Defaults to true.
|
|
7926
|
+
*/
|
|
7927
|
+
lastBreadcrumbIsCurrentPage?: boolean;
|
|
7850
7928
|
};
|
|
7851
7929
|
export const EuiBreadcrumbs: FunctionComponent<EuiBreadcrumbsProps>;
|
|
7930
|
+
export const useResponsiveMax: (responsive: EuiBreadcrumbsProps['responsive'], max: EuiBreadcrumbsProps['max']) => number | null | undefined; type _EuiBreadcrumbCollapsedObj = {
|
|
7931
|
+
isCollapsedButton: true;
|
|
7932
|
+
overflowBreadcrumbs: EuiBreadcrumbProps[];
|
|
7933
|
+
}; type _EuiBreadcrumbsObjs = Array<ExclusiveUnion<EuiBreadcrumbProps, _EuiBreadcrumbCollapsedObj>>;
|
|
7934
|
+
export const limitBreadcrumbs: (breadcrumbs: EuiBreadcrumbsProps['breadcrumbs'], max: number) => _EuiBreadcrumbsObjs;
|
|
7935
|
+
export {};
|
|
7852
7936
|
|
|
7853
7937
|
}
|
|
7854
7938
|
declare module '@elastic/eui/src/components/breadcrumbs' {
|
|
7855
|
-
export type {
|
|
7939
|
+
export type { EuiBreadcrumbProps as EuiBreadcrumb } from '@elastic/eui/src/components/breadcrumbs/breadcrumb';
|
|
7940
|
+
export type { EuiBreadcrumbsProps, EuiBreadcrumbResponsiveMaxCount, } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
|
|
7856
7941
|
export { EuiBreadcrumbs } from '@elastic/eui/src/components/breadcrumbs/breadcrumbs';
|
|
7857
7942
|
|
|
7858
7943
|
}
|
|
@@ -9829,27 +9914,18 @@ declare module '@elastic/eui/src/components/datagrid/utils/row_heights' {
|
|
|
9829
9914
|
};
|
|
9830
9915
|
|
|
9831
9916
|
}
|
|
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';
|
|
9917
|
+
declare module '@elastic/eui/src/components/token/token_types' {
|
|
9918
|
+
import { HTMLAttributes } from 'react';
|
|
9847
9919
|
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
|
|
9920
|
+
import { IconType } from '@elastic/eui/src/components/icon';
|
|
9921
|
+
export const SIZES: readonly ["xs", "s", "m", "l"];
|
|
9922
|
+
export type TokenSize = typeof SIZES[number];
|
|
9923
|
+
export const SHAPES: readonly ["circle", "square", "rectangle"];
|
|
9924
|
+
export type TokenShape = typeof SHAPES[number];
|
|
9925
|
+
export const FILLS: readonly ["light", "dark", "none"];
|
|
9926
|
+
export type TokenFill = typeof FILLS[number];
|
|
9927
|
+
export const COLORS: readonly ["euiColorVis0", "euiColorVis1", "euiColorVis2", "euiColorVis3", "euiColorVis4", "euiColorVis5", "euiColorVis6", "euiColorVis7", "euiColorVis8", "euiColorVis9", "gray"];
|
|
9928
|
+
export type TokenColor = typeof COLORS[number];
|
|
9853
9929
|
export interface TokenProps {
|
|
9854
9930
|
/**
|
|
9855
9931
|
* An EUI icon type
|
|
@@ -9857,8 +9933,8 @@ declare module '@elastic/eui/src/components/token/token' {
|
|
|
9857
9933
|
iconType: IconType;
|
|
9858
9934
|
/**
|
|
9859
9935
|
* For best results use one of the vis color names (or 'gray').
|
|
9860
|
-
* Or supply your own color (
|
|
9861
|
-
* Default: `gray`
|
|
9936
|
+
* Or supply your own HEX color. The `fill='light'` (lightened background) will always be overridden by `fill='dark'` (solid background).
|
|
9937
|
+
* Default: `gray` for glyphs or one of the vis colors for prefab token types
|
|
9862
9938
|
*/
|
|
9863
9939
|
color?: TokenColor | string;
|
|
9864
9940
|
/**
|
|
@@ -9884,13 +9960,61 @@ declare module '@elastic/eui/src/components/token/token' {
|
|
|
9884
9960
|
'aria-describedby'?: string;
|
|
9885
9961
|
}
|
|
9886
9962
|
export type EuiTokenProps = CommonProps & TokenProps & Omit<HTMLAttributes<HTMLSpanElement>, 'title'>;
|
|
9963
|
+
|
|
9964
|
+
}
|
|
9965
|
+
declare module '@elastic/eui/src/components/token/token_map' {
|
|
9966
|
+
import type { TokenProps } from '@elastic/eui/src/components/token/token_types';
|
|
9967
|
+
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';
|
|
9968
|
+
/**
|
|
9969
|
+
* Most of the style combinations for tokens are semi-arbitrary. However, there was an effort
|
|
9970
|
+
* to use the square shape for more common token types like string and number. Reserving the
|
|
9971
|
+
* circle shape for more uncommon token types so they grab attention.
|
|
9972
|
+
*/
|
|
9973
|
+
export const TOKEN_MAP: {
|
|
9974
|
+
[mapType in EuiTokenMapType]: Omit<TokenProps, 'iconType'>;
|
|
9975
|
+
};
|
|
9976
|
+
|
|
9977
|
+
}
|
|
9978
|
+
declare module '@elastic/eui/src/components/token/token.styles' {
|
|
9979
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
9980
|
+
import type { TokenFill } from '@elastic/eui/src/components/token/token_types';
|
|
9981
|
+
export const euiTokenStyles: ({ euiTheme, colorMode }: UseEuiTheme, fill: TokenFill) => {
|
|
9982
|
+
euiToken: import("@emotion/utils").SerializedStyles;
|
|
9983
|
+
circle: import("@emotion/utils").SerializedStyles;
|
|
9984
|
+
square: import("@emotion/utils").SerializedStyles;
|
|
9985
|
+
rectangle: import("@emotion/utils").SerializedStyles;
|
|
9986
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
9987
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
9988
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
9989
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
9990
|
+
euiColorVis0: import("@emotion/utils").SerializedStyles;
|
|
9991
|
+
euiColorVis1: import("@emotion/utils").SerializedStyles;
|
|
9992
|
+
euiColorVis2: import("@emotion/utils").SerializedStyles;
|
|
9993
|
+
euiColorVis3: import("@emotion/utils").SerializedStyles;
|
|
9994
|
+
euiColorVis4: import("@emotion/utils").SerializedStyles;
|
|
9995
|
+
euiColorVis5: import("@emotion/utils").SerializedStyles;
|
|
9996
|
+
euiColorVis6: import("@emotion/utils").SerializedStyles;
|
|
9997
|
+
euiColorVis7: import("@emotion/utils").SerializedStyles;
|
|
9998
|
+
euiColorVis8: import("@emotion/utils").SerializedStyles;
|
|
9999
|
+
euiColorVis9: import("@emotion/utils").SerializedStyles;
|
|
10000
|
+
gray: import("@emotion/utils").SerializedStyles;
|
|
10001
|
+
customColor: import("@emotion/utils").SerializedStyles;
|
|
10002
|
+
light: import("@emotion/utils").SerializedStyles;
|
|
10003
|
+
dark: import("@emotion/utils").SerializedStyles;
|
|
10004
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
10005
|
+
};
|
|
10006
|
+
|
|
10007
|
+
}
|
|
10008
|
+
declare module '@elastic/eui/src/components/token/token' {
|
|
10009
|
+
import { FunctionComponent } from 'react';
|
|
10010
|
+
import type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
|
|
9887
10011
|
export const EuiToken: FunctionComponent<EuiTokenProps>;
|
|
9888
|
-
export {};
|
|
9889
10012
|
|
|
9890
10013
|
}
|
|
9891
10014
|
declare module '@elastic/eui/src/components/token' {
|
|
9892
|
-
export type { EuiTokenProps } from '@elastic/eui/src/components/token/
|
|
9893
|
-
export {
|
|
10015
|
+
export type { EuiTokenProps } from '@elastic/eui/src/components/token/token_types';
|
|
10016
|
+
export { SIZES as TOKEN_SIZES, SHAPES as TOKEN_SHAPES, COLORS as TOKEN_COLORS, } from '@elastic/eui/src/components/token/token_types';
|
|
10017
|
+
export { EuiToken } from '@elastic/eui/src/components/token/token';
|
|
9894
10018
|
|
|
9895
10019
|
}
|
|
9896
10020
|
declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
|
|
@@ -12386,7 +12510,7 @@ declare module '@elastic/eui/src/components/date_picker/date_picker_range' {
|
|
|
12386
12510
|
}
|
|
12387
12511
|
declare module '@elastic/eui/src/components/responsive/hide_for' {
|
|
12388
12512
|
import { ReactNode, FunctionComponent } from 'react';
|
|
12389
|
-
import { EuiBreakpointSize } from '@elastic/eui/src/services
|
|
12513
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
12390
12514
|
export type EuiHideForBreakpoints = EuiBreakpointSize;
|
|
12391
12515
|
export interface EuiHideForProps {
|
|
12392
12516
|
/**
|
|
@@ -12404,7 +12528,7 @@ declare module '@elastic/eui/src/components/responsive/hide_for' {
|
|
|
12404
12528
|
}
|
|
12405
12529
|
declare module '@elastic/eui/src/components/responsive/show_for' {
|
|
12406
12530
|
import { ReactNode, FunctionComponent } from 'react';
|
|
12407
|
-
import { EuiBreakpointSize } from '@elastic/eui/src/services
|
|
12531
|
+
import { EuiBreakpointSize } from '@elastic/eui/src/services';
|
|
12408
12532
|
export type EuiShowForBreakpoints = EuiBreakpointSize;
|
|
12409
12533
|
export interface EuiShowForProps {
|
|
12410
12534
|
/**
|
|
@@ -12769,24 +12893,9 @@ declare module '@elastic/eui/src/components/delay_render' {
|
|
|
12769
12893
|
export { EuiDelayRender } from '@elastic/eui/src/components/delay_render/delay_render';
|
|
12770
12894
|
|
|
12771
12895
|
}
|
|
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';
|
|
12896
|
+
declare module '@elastic/eui/src/components/description_list/description_list_types' {
|
|
12897
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
12786
12898
|
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
12899
|
export interface EuiDescriptionListProps {
|
|
12791
12900
|
listItems?: Array<{
|
|
12792
12901
|
title: NonNullable<ReactNode>;
|
|
@@ -12804,7 +12913,7 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
|
|
|
12804
12913
|
* How should the content be styled, by default
|
|
12805
12914
|
* this will emphasize the title
|
|
12806
12915
|
*/
|
|
12807
|
-
textStyle?:
|
|
12916
|
+
textStyle?: 'normal' | 'reverse';
|
|
12808
12917
|
/**
|
|
12809
12918
|
* How each item should be laid out
|
|
12810
12919
|
*/
|
|
@@ -12817,27 +12926,107 @@ declare module '@elastic/eui/src/components/description_list/description_list' {
|
|
|
12817
12926
|
* Props object to be passed to `EuiDescriptionListDescription`
|
|
12818
12927
|
*/
|
|
12819
12928
|
descriptionProps?: HTMLAttributes<HTMLElement> & CommonProps;
|
|
12820
|
-
}
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12929
|
+
}
|
|
12930
|
+
export const TYPES: readonly ["row", "inline", "column", "responsiveColumn"];
|
|
12931
|
+
export type EuiDescriptionListType = typeof TYPES[number];
|
|
12932
|
+
export const ALIGNMENTS: readonly ["center", "left"];
|
|
12933
|
+
export type EuiDescriptionListAlignment = typeof ALIGNMENTS[number];
|
|
12934
|
+
export const TEXT_STYLES: readonly ["normal", "reverse"];
|
|
12935
|
+
export type EuiDescriptionListTextStyle = typeof TEXT_STYLES[number];
|
|
12936
|
+
|
|
12937
|
+
}
|
|
12938
|
+
declare module '@elastic/eui/src/components/description_list/description_list_title.styles' {
|
|
12939
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
12940
|
+
export const euiDescriptionListTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
12941
|
+
euiDescriptionList__title: import("@emotion/utils").SerializedStyles;
|
|
12942
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
12943
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
12944
|
+
responsiveColumn: import("@emotion/utils").SerializedStyles;
|
|
12945
|
+
inline: import("@emotion/utils").SerializedStyles;
|
|
12946
|
+
fontStyles: {
|
|
12947
|
+
normal: import("@emotion/utils").SerializedStyles;
|
|
12948
|
+
reverse: import("@emotion/utils").SerializedStyles;
|
|
12949
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
12950
|
+
};
|
|
12951
|
+
inlineStyles: {
|
|
12952
|
+
normal: import("@emotion/utils").SerializedStyles;
|
|
12953
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
12954
|
+
};
|
|
12955
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
12825
12956
|
};
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12957
|
+
|
|
12958
|
+
}
|
|
12959
|
+
declare module '@elastic/eui/src/components/description_list/description_list_context' {
|
|
12960
|
+
|
|
12961
|
+
import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types'; type EuiDescriptionListContextValues = Required<Pick<EuiDescriptionListProps, 'type' | 'textStyle' | 'align'>> & {
|
|
12962
|
+
compressed?: EuiDescriptionListProps['compressed'];
|
|
12963
|
+
};
|
|
12964
|
+
export const contextDefaults: EuiDescriptionListContextValues;
|
|
12965
|
+
export const EuiDescriptionListContext: import("react").Context<EuiDescriptionListContextValues>;
|
|
12966
|
+
export {};
|
|
12967
|
+
|
|
12968
|
+
}
|
|
12969
|
+
declare module '@elastic/eui/src/components/description_list/description_list_title' {
|
|
12970
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
12971
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
12972
|
+
interface EuiDescriptionListTitleProps extends CommonProps, HTMLAttributes<HTMLElement> {
|
|
12973
|
+
}
|
|
12974
|
+
export const EuiDescriptionListTitle: FunctionComponent<EuiDescriptionListTitleProps>;
|
|
12975
|
+
export {};
|
|
12976
|
+
|
|
12977
|
+
}
|
|
12978
|
+
declare module '@elastic/eui/src/components/description_list/description_list_description.styles' {
|
|
12979
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
12980
|
+
export const euiDescriptionListDescriptionStyles: (euiThemeContext: UseEuiTheme) => {
|
|
12981
|
+
euiDescriptionList__description: import("@emotion/utils").SerializedStyles;
|
|
12982
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
12983
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
12984
|
+
responsiveColumn: import("@emotion/utils").SerializedStyles;
|
|
12985
|
+
inline: import("@emotion/utils").SerializedStyles;
|
|
12986
|
+
fontStyles: {
|
|
12987
|
+
normal: import("@emotion/utils").SerializedStyles;
|
|
12988
|
+
reverse: import("@emotion/utils").SerializedStyles;
|
|
12989
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
12990
|
+
};
|
|
12991
|
+
inlineStyles: {
|
|
12992
|
+
compressed: import("@emotion/utils").SerializedStyles;
|
|
12993
|
+
normal: import("@emotion/utils").SerializedStyles;
|
|
12994
|
+
};
|
|
12995
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
12829
12996
|
};
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12997
|
+
|
|
12998
|
+
}
|
|
12999
|
+
declare module '@elastic/eui/src/components/description_list/description_list_description' {
|
|
13000
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
13001
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13002
|
+
interface EuiDescriptionListDescriptionProps extends CommonProps, HTMLAttributes<HTMLElement> {
|
|
13003
|
+
}
|
|
13004
|
+
export const EuiDescriptionListDescription: FunctionComponent<EuiDescriptionListDescriptionProps>;
|
|
13005
|
+
export {};
|
|
13006
|
+
|
|
13007
|
+
}
|
|
13008
|
+
declare module '@elastic/eui/src/components/description_list/description_list.styles' {
|
|
13009
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13010
|
+
export const euiDescriptionListStyles: (euiThemeContext: UseEuiTheme) => {
|
|
13011
|
+
euiDescriptionList: import("@emotion/utils").SerializedStyles;
|
|
13012
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
13013
|
+
inline: import("@emotion/utils").SerializedStyles;
|
|
13014
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
13015
|
+
responsiveColumn: import("@emotion/utils").SerializedStyles;
|
|
13016
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
13017
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
12833
13018
|
};
|
|
12834
|
-
|
|
13019
|
+
|
|
13020
|
+
}
|
|
13021
|
+
declare module '@elastic/eui/src/components/description_list/description_list' {
|
|
13022
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
13023
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
13024
|
+
import { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
|
|
12835
13025
|
export const EuiDescriptionList: FunctionComponent<CommonProps & HTMLAttributes<HTMLDListElement> & EuiDescriptionListProps>;
|
|
12836
|
-
export {};
|
|
12837
13026
|
|
|
12838
13027
|
}
|
|
12839
13028
|
declare module '@elastic/eui/src/components/description_list' {
|
|
12840
|
-
export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/
|
|
13029
|
+
export type { EuiDescriptionListProps } from '@elastic/eui/src/components/description_list/description_list_types';
|
|
12841
13030
|
export { EuiDescriptionList } from '@elastic/eui/src/components/description_list/description_list';
|
|
12842
13031
|
export { EuiDescriptionListTitle } from '@elastic/eui/src/components/description_list/description_list_title';
|
|
12843
13032
|
export { EuiDescriptionListDescription } from '@elastic/eui/src/components/description_list/description_list_description';
|
|
@@ -13316,6 +13505,13 @@ declare module '@elastic/eui/src/components/header/header_section' {
|
|
|
13316
13505
|
export type { EuiHeaderSectionItemButtonProps } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
|
|
13317
13506
|
export { EuiHeaderSectionItemButton } from '@elastic/eui/src/components/header/header_section/header_section_item_button';
|
|
13318
13507
|
|
|
13508
|
+
}
|
|
13509
|
+
declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs.styles' {
|
|
13510
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
13511
|
+
export const euiHeaderBreadcrumbsStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
13512
|
+
euiHeaderBreadcrumbs: import("@emotion/utils").SerializedStyles;
|
|
13513
|
+
};
|
|
13514
|
+
|
|
13319
13515
|
}
|
|
13320
13516
|
declare module '@elastic/eui/src/components/header/header_breadcrumbs/header_breadcrumbs' {
|
|
13321
13517
|
import { FunctionComponent } from 'react';
|
|
@@ -16087,7 +16283,8 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
16087
16283
|
import { EuiSelectableOptionsListProps } from '@elastic/eui/src/components/selectable/selectable_list/selectable_list';
|
|
16088
16284
|
import { EuiSelectableSearchProps } from '@elastic/eui/src/components/selectable/selectable_search/selectable_search';
|
|
16089
16285
|
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>;
|
|
16286
|
+
export type EuiSelectableOnChangeEvent = KeyboardEvent | MouseEvent; type RequiredEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof typeof EuiSelectableList['defaultProps']>; type OptionalEuiSelectableOptionsListProps = Omit<EuiSelectableOptionsListProps, keyof RequiredEuiSelectableOptionsListProps>; type EuiSelectableOptionsListPropsWithDefaults = RequiredEuiSelectableOptionsListProps & Partial<OptionalEuiSelectableOptionsListProps>;
|
|
16287
|
+
export type EuiSelectableSearchableProps<T> = ExclusiveUnion<{
|
|
16091
16288
|
searchable: false;
|
|
16092
16289
|
}, {
|
|
16093
16290
|
/**
|
|
@@ -16316,7 +16513,7 @@ declare module '@elastic/eui/src/components/selectable/selectable_templates' {
|
|
|
16316
16513
|
|
|
16317
16514
|
}
|
|
16318
16515
|
declare module '@elastic/eui/src/components/selectable' {
|
|
16319
|
-
export type { EuiSelectableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
|
|
16516
|
+
export type { EuiSelectableProps, EuiSelectableSearchableProps, EuiSelectableSearchableSearchProps, } from '@elastic/eui/src/components/selectable/selectable';
|
|
16320
16517
|
export { EuiSelectable } from '@elastic/eui/src/components/selectable/selectable';
|
|
16321
16518
|
export type { EuiSelectableListProps, EuiSelectableListItemProps, EuiSelectableOptionsListProps, } from '@elastic/eui/src/components/selectable/selectable_list';
|
|
16322
16519
|
export { EuiSelectableList, EuiSelectableListItem } from '@elastic/eui/src/components/selectable/selectable_list';
|
|
@@ -18271,12 +18468,33 @@ declare module '@elastic/eui/src/components/text_diff' {
|
|
|
18271
18468
|
export type { EuiTextDiffProps } from '@elastic/eui/src/components/text_diff/text_diff';
|
|
18272
18469
|
export { useEuiTextDiff } from '@elastic/eui/src/components/text_diff/text_diff';
|
|
18273
18470
|
|
|
18471
|
+
}
|
|
18472
|
+
declare module '@elastic/eui/src/components/toast/toast.styles' {
|
|
18473
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
18474
|
+
export const euiToastStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18475
|
+
euiToast: import("@emotion/utils").SerializedStyles;
|
|
18476
|
+
euiToast__closeButton: import("@emotion/utils").SerializedStyles;
|
|
18477
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
18478
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
18479
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
18480
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
18481
|
+
};
|
|
18482
|
+
export const euiToastHeaderStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18483
|
+
euiToastHeader: import("@emotion/utils").SerializedStyles;
|
|
18484
|
+
euiToastHeader__icon: import("@emotion/utils").SerializedStyles;
|
|
18485
|
+
euiToastHeader__title: import("@emotion/utils").SerializedStyles;
|
|
18486
|
+
withBody: import("@emotion/utils").SerializedStyles;
|
|
18487
|
+
};
|
|
18488
|
+
export const euiToastBodyStyles: () => {
|
|
18489
|
+
euiToastBody: import("@emotion/utils").SerializedStyles;
|
|
18490
|
+
};
|
|
18491
|
+
|
|
18274
18492
|
}
|
|
18275
18493
|
declare module '@elastic/eui/src/components/toast/toast' {
|
|
18276
18494
|
import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
|
|
18277
18495
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
18278
|
-
import { IconType } from '@elastic/eui/src/components/icon';
|
|
18279
|
-
export const COLORS: ToastColor[];
|
|
18496
|
+
import { IconType } from '@elastic/eui/src/components/icon';
|
|
18497
|
+
export const COLORS: readonly ["primary", "success", "warning", "danger"]; type ToastColor = typeof COLORS[number];
|
|
18280
18498
|
export interface EuiToastProps extends CommonProps, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
18281
18499
|
title?: ReactNode;
|
|
18282
18500
|
color?: ToastColor;
|
|
@@ -18304,6 +18522,23 @@ declare module '@elastic/eui/src/services/time/timer' {
|
|
|
18304
18522
|
declare module '@elastic/eui/src/services/time' {
|
|
18305
18523
|
export { Timer } from '@elastic/eui/src/services/time/timer';
|
|
18306
18524
|
|
|
18525
|
+
}
|
|
18526
|
+
declare module '@elastic/eui/src/components/toast/global_toast_list.styles' {
|
|
18527
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
18528
|
+
export const euiGlobalToastListStyles: (euiThemeContext: UseEuiTheme) => {
|
|
18529
|
+
/**
|
|
18530
|
+
* 1. Allow list to expand as items are added, but cap it at the screen height.
|
|
18531
|
+
* 2. Allow some padding for shadow
|
|
18532
|
+
*/
|
|
18533
|
+
euiGlobalToastList: import("@emotion/utils").SerializedStyles;
|
|
18534
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
18535
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
18536
|
+
};
|
|
18537
|
+
export const euiGlobalToastListItemStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
18538
|
+
euiGlobalToastListItem: import("@emotion/utils").SerializedStyles;
|
|
18539
|
+
dismissed: import("@emotion/utils").SerializedStyles;
|
|
18540
|
+
};
|
|
18541
|
+
|
|
18307
18542
|
}
|
|
18308
18543
|
declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
|
|
18309
18544
|
import { FunctionComponent, ReactElement } from 'react';
|
|
@@ -18319,9 +18554,8 @@ declare module '@elastic/eui/src/components/toast/global_toast_list_item' {
|
|
|
18319
18554
|
|
|
18320
18555
|
}
|
|
18321
18556
|
declare module '@elastic/eui/src/components/toast/global_toast_list' {
|
|
18322
|
-
import {
|
|
18557
|
+
import { FunctionComponent, ReactChild } from 'react';
|
|
18323
18558
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
18324
|
-
import { Timer } from '@elastic/eui/src/services/time';
|
|
18325
18559
|
import { EuiToastProps } from '@elastic/eui/src/components/toast/toast'; type ToastSide = 'right' | 'left';
|
|
18326
18560
|
export const SIDES: ToastSide[];
|
|
18327
18561
|
export const TOAST_FADE_OUT_MS = 250;
|
|
@@ -18331,47 +18565,15 @@ declare module '@elastic/eui/src/components/toast/global_toast_list' {
|
|
|
18331
18565
|
toastLifeTimeMs?: number;
|
|
18332
18566
|
}
|
|
18333
18567
|
export interface EuiGlobalToastListProps extends CommonProps {
|
|
18334
|
-
toasts
|
|
18335
|
-
dismissToast: (
|
|
18568
|
+
toasts?: Toast[];
|
|
18569
|
+
dismissToast: (toast: Toast) => void;
|
|
18336
18570
|
toastLifeTimeMs: number;
|
|
18337
18571
|
/**
|
|
18338
18572
|
* Determines which side of the browser window the toasts should appear
|
|
18339
18573
|
*/
|
|
18340
18574
|
side?: ToastSide;
|
|
18341
18575
|
}
|
|
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
|
-
}
|
|
18576
|
+
export const EuiGlobalToastList: FunctionComponent<EuiGlobalToastListProps>;
|
|
18375
18577
|
export {};
|
|
18376
18578
|
|
|
18377
18579
|
}
|
|
@@ -23570,7 +23772,7 @@ declare module '@elastic/eui' {
|
|
|
23570
23772
|
"euiBottomBar.screenReaderHeading": any;
|
|
23571
23773
|
"euiBottomBar.customScreenReaderAnnouncement": any;
|
|
23572
23774
|
"euiBottomBar.screenReaderAnnouncement": any;
|
|
23573
|
-
"
|
|
23775
|
+
"euiBreadcrumb.collapsedBadge.ariaLabel": any;
|
|
23574
23776
|
"euiBreadcrumbs.nav.ariaLabel": any;
|
|
23575
23777
|
"euiCardSelect.selected": any;
|
|
23576
23778
|
"euiCardSelect.unavailable": any;
|