@elastic/eui 71.1.0 → 72.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_charts_theme.js +13 -1
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +20 -176
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +20 -176
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +2 -2
- package/es/components/basic_table/in_memory_table.js +3 -6
- package/es/components/basic_table/table.a11y.js +128 -0
- package/es/components/color_picker/color_picker.styles.js +16 -0
- package/es/components/color_picker/color_stops/color_stop_thumb.js +19 -7
- package/es/components/color_picker/color_stops/color_stop_thumb.styles.js +59 -0
- package/es/components/color_picker/color_stops/color_stops.js +25 -15
- package/es/components/color_picker/color_stops/color_stops.styles.js +65 -0
- package/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +160 -173
- package/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/es/components/error_boundary/error_boundary.a11y.js +67 -0
- package/es/components/expression/expression.a11y.js +254 -0
- package/es/components/filter_group/filter_group.a11y.js +281 -0
- package/es/components/focus_trap/focus_trap.a11y.js +131 -0
- package/es/components/form/file_picker/file_picker.js +1 -0
- package/es/components/form/range/range_highlight.styles.js +1 -1
- package/es/components/form/range/range_levels.styles.js +1 -1
- package/es/components/form/range/range_track.js +5 -2
- package/es/components/header/header.a11y.js +374 -0
- package/es/components/icon/icon_ML.a11y.js +33 -0
- package/es/components/icon/icon_apps.a11y.js +33 -0
- package/es/components/icon/icon_editor.a11y.js +33 -0
- package/es/components/icon/icon_elastic.a11y.js +33 -0
- package/es/components/icon/icon_glyphs.a11y.js +33 -0
- package/es/components/icon/icon_tokens.a11y.js +33 -0
- package/es/components/image/image.a11y.js +55 -0
- package/es/components/key_pad_menu/key_pad_menu.a11y.js +158 -0
- package/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
- package/es/components/popover/popover.js +2 -2
- package/es/components/selectable/selectable.js +4 -3
- package/es/components/selectable/selectable_list/selectable_list.js +17 -5
- package/es/components/table/table_footer_cell.js +1 -1
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/table/table_row_cell.js +2 -2
- package/es/components/tabs/tab.js +7 -17
- package/es/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/es/components/tabs/tabs.js +7 -11
- package/es/components/tabs/tabs_context.js +13 -0
- package/es/services/color/manipulation.js +9 -0
- package/es/services/index.js +11 -11
- package/eui.d.ts +195 -138
- package/i18ntokens.json +46 -30
- package/lib/components/basic_table/basic_table.js +2 -2
- package/lib/components/basic_table/in_memory_table.js +3 -6
- package/lib/components/basic_table/table.a11y.js +139 -0
- package/lib/components/color_picker/color_picker.styles.js +26 -0
- package/lib/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/lib/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/lib/components/color_picker/color_stops/color_stops.js +25 -14
- package/lib/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +155 -168
- package/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/lib/components/error_boundary/error_boundary.a11y.js +75 -0
- package/lib/components/expression/expression.a11y.js +262 -0
- package/lib/components/filter_group/filter_group.a11y.js +287 -0
- package/lib/components/focus_trap/focus_trap.a11y.js +140 -0
- package/lib/components/form/file_picker/file_picker.js +1 -0
- package/lib/components/form/range/range_highlight.styles.js +1 -1
- package/lib/components/form/range/range_levels.styles.js +1 -1
- package/lib/components/form/range/range_track.js +6 -2
- package/lib/components/header/header.a11y.js +385 -0
- package/lib/components/icon/icon_ML.a11y.js +40 -0
- package/lib/components/icon/icon_apps.a11y.js +40 -0
- package/lib/components/icon/icon_editor.a11y.js +40 -0
- package/lib/components/icon/icon_elastic.a11y.js +40 -0
- package/lib/components/icon/icon_glyphs.a11y.js +40 -0
- package/lib/components/icon/icon_tokens.a11y.js +40 -0
- package/lib/components/image/image.a11y.js +61 -0
- package/lib/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/lib/components/popover/popover.js +2 -2
- package/lib/components/selectable/selectable.js +4 -3
- package/lib/components/selectable/selectable_list/selectable_list.js +17 -5
- package/lib/components/table/table_footer_cell.js +1 -1
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/table/table_row_cell.js +2 -2
- package/lib/components/tabs/tab.js +14 -17
- package/lib/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/lib/components/tabs/tabs.js +8 -14
- package/lib/components/tabs/tabs_context.js +23 -0
- package/lib/services/color/manipulation.js +14 -2
- package/lib/services/index.js +65 -58
- package/optimize/es/components/basic_table/table.a11y.js +128 -0
- package/optimize/es/components/color_picker/color_picker.styles.js +16 -0
- package/optimize/es/components/color_picker/color_stops/color_stop_thumb.js +19 -7
- package/optimize/es/components/color_picker/color_stops/color_stop_thumb.styles.js +59 -0
- package/optimize/es/components/color_picker/color_stops/color_stops.js +25 -15
- package/optimize/es/components/color_picker/color_stops/color_stops.styles.js +65 -0
- package/optimize/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +145 -169
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +2 -0
- package/optimize/es/components/error_boundary/error_boundary.a11y.js +67 -0
- package/optimize/es/components/expression/expression.a11y.js +243 -0
- package/optimize/es/components/filter_group/filter_group.a11y.js +271 -0
- package/optimize/es/components/focus_trap/focus_trap.a11y.js +120 -0
- package/optimize/es/components/form/file_picker/file_picker.js +1 -0
- package/optimize/es/components/form/range/range_highlight.styles.js +1 -1
- package/optimize/es/components/form/range/range_levels.styles.js +1 -1
- package/optimize/es/components/form/range/range_track.js +5 -2
- package/optimize/es/components/header/header.a11y.js +364 -0
- package/optimize/es/components/icon/icon_ML.a11y.js +33 -0
- package/optimize/es/components/icon/icon_apps.a11y.js +33 -0
- package/optimize/es/components/icon/icon_editor.a11y.js +33 -0
- package/optimize/es/components/icon/icon_elastic.a11y.js +33 -0
- package/optimize/es/components/icon/icon_glyphs.a11y.js +33 -0
- package/optimize/es/components/icon/icon_tokens.a11y.js +33 -0
- package/optimize/es/components/image/image.a11y.js +55 -0
- package/optimize/es/components/key_pad_menu/key_pad_menu.a11y.js +148 -0
- package/optimize/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
- package/optimize/es/components/popover/popover.js +2 -2
- package/optimize/es/components/selectable/selectable.js +2 -2
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +15 -4
- package/optimize/es/components/tabs/tab.js +7 -5
- package/optimize/es/components/tabs/tabs.js +7 -11
- package/optimize/es/components/tabs/tabs_context.js +13 -0
- package/optimize/es/services/color/manipulation.js +9 -0
- package/optimize/es/services/index.js +11 -11
- package/optimize/lib/components/basic_table/table.a11y.js +139 -0
- package/optimize/lib/components/color_picker/color_picker.styles.js +26 -0
- package/optimize/lib/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/optimize/lib/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/optimize/lib/components/color_picker/color_stops/color_stops.js +25 -14
- package/optimize/lib/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/optimize/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +146 -167
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -0
- package/optimize/lib/components/error_boundary/error_boundary.a11y.js +75 -0
- package/optimize/lib/components/expression/expression.a11y.js +254 -0
- package/optimize/lib/components/filter_group/filter_group.a11y.js +287 -0
- package/optimize/lib/components/focus_trap/focus_trap.a11y.js +140 -0
- package/optimize/lib/components/form/file_picker/file_picker.js +1 -0
- package/optimize/lib/components/form/range/range_highlight.styles.js +1 -1
- package/optimize/lib/components/form/range/range_levels.styles.js +1 -1
- package/optimize/lib/components/form/range/range_track.js +6 -2
- package/optimize/lib/components/header/header.a11y.js +385 -0
- package/optimize/lib/components/icon/icon_ML.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_apps.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_editor.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_elastic.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_tokens.a11y.js +40 -0
- package/optimize/lib/components/image/image.a11y.js +61 -0
- package/optimize/lib/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/optimize/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/optimize/lib/components/popover/popover.js +2 -2
- package/optimize/lib/components/selectable/selectable.js +2 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +15 -4
- package/optimize/lib/components/tabs/tab.js +15 -5
- package/optimize/lib/components/tabs/tabs.js +8 -14
- package/optimize/lib/components/tabs/tabs_context.js +23 -0
- package/optimize/lib/services/color/manipulation.js +14 -2
- package/optimize/lib/services/index.js +65 -58
- package/package.json +4 -6
- package/src/components/color_picker/_index.scss +0 -1
- package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +14 -0
- package/src/components/form/file_picker/_file_picker.scss +14 -14
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/basic_table/basic_table.js +2 -2
- package/test-env/components/basic_table/in_memory_table.js +3 -6
- package/test-env/components/basic_table/table.a11y.js +139 -0
- package/test-env/components/color_picker/color_picker.styles.js +26 -0
- package/test-env/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/test-env/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/test-env/components/color_picker/color_stops/color_stops.js +25 -14
- package/test-env/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/test-env/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +153 -166
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +16 -0
- package/test-env/components/error_boundary/error_boundary.a11y.js +75 -0
- package/test-env/components/expression/expression.a11y.js +254 -0
- package/test-env/components/filter_group/filter_group.a11y.js +287 -0
- package/test-env/components/focus_trap/focus_trap.a11y.js +140 -0
- package/test-env/components/form/file_picker/file_picker.js +1 -0
- package/test-env/components/form/range/range_highlight.styles.js +1 -1
- package/test-env/components/form/range/range_levels.styles.js +1 -1
- package/test-env/components/form/range/range_track.js +6 -2
- package/test-env/components/header/header.a11y.js +385 -0
- package/test-env/components/icon/icon_ML.a11y.js +40 -0
- package/test-env/components/icon/icon_apps.a11y.js +40 -0
- package/test-env/components/icon/icon_editor.a11y.js +40 -0
- package/test-env/components/icon/icon_elastic.a11y.js +40 -0
- package/test-env/components/icon/icon_glyphs.a11y.js +40 -0
- package/test-env/components/icon/icon_tokens.a11y.js +40 -0
- package/test-env/components/image/image.a11y.js +61 -0
- package/test-env/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/test-env/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/test-env/components/popover/popover.js +2 -2
- package/test-env/components/selectable/selectable.js +4 -3
- package/test-env/components/selectable/selectable_list/selectable_list.js +17 -5
- package/test-env/components/table/table_footer_cell.js +1 -1
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/table/table_row_cell.js +2 -2
- package/test-env/components/tabs/tab.js +15 -17
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/test-env/components/tabs/tabs.js +8 -14
- package/test-env/components/tabs/tabs_context.js +23 -0
- package/test-env/services/color/manipulation.js +14 -2
- package/test-env/services/index.js +65 -58
- package/src/components/color_picker/color_stops/_color_stops.scss +0 -101
- package/src/components/color_picker/color_stops/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_color_stops.scss +0 -58
package/eui.d.ts
CHANGED
|
@@ -4587,7 +4587,7 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
4587
4587
|
/**
|
|
4588
4588
|
* Object of props passed to EuiFocusTrap
|
|
4589
4589
|
*/
|
|
4590
|
-
focusTrapProps?: Pick<EuiFocusTrapProps, 'clickOutsideDisables' | 'noIsolation' | 'scrollLock' | 'shards'>;
|
|
4590
|
+
focusTrapProps?: Pick<EuiFocusTrapProps, 'clickOutsideDisables' | 'onClickOutside' | 'noIsolation' | 'scrollLock' | 'shards'>;
|
|
4591
4591
|
/**
|
|
4592
4592
|
* Show arrow indicating to originating button
|
|
4593
4593
|
*/
|
|
@@ -6433,6 +6433,29 @@ declare module '@elastic/eui/src/components/color_picker/color_picker' {
|
|
|
6433
6433
|
export const EuiColorPicker: FunctionComponent<EuiColorPickerProps>;
|
|
6434
6434
|
export {};
|
|
6435
6435
|
|
|
6436
|
+
}
|
|
6437
|
+
declare module '@elastic/eui/src/components/color_picker/color_picker.styles' {
|
|
6438
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
6439
|
+
export const euiColorPickerVariables: (euiThemeContext: UseEuiTheme) => {
|
|
6440
|
+
width: string;
|
|
6441
|
+
};
|
|
6442
|
+
|
|
6443
|
+
}
|
|
6444
|
+
declare module '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb.styles' {
|
|
6445
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
6446
|
+
export const euiColorStopThumbStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6447
|
+
euiColorStopThumb: import("@emotion/utils").SerializedStyles;
|
|
6448
|
+
isPopoverOpen: import("@emotion/utils").SerializedStyles;
|
|
6449
|
+
};
|
|
6450
|
+
export const euiColorStopThumbPopoverStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6451
|
+
euiColorStopThumbPopover: import("@emotion/utils").SerializedStyles;
|
|
6452
|
+
isLoadingPanel: import("@emotion/utils").SerializedStyles;
|
|
6453
|
+
hasFocus: import("@emotion/utils").SerializedStyles;
|
|
6454
|
+
};
|
|
6455
|
+
export const euiColorStopStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6456
|
+
euiColorStop: import("@emotion/utils").SerializedStyles;
|
|
6457
|
+
};
|
|
6458
|
+
|
|
6436
6459
|
}
|
|
6437
6460
|
declare module '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb' {
|
|
6438
6461
|
import { FunctionComponent, CSSProperties } from 'react';
|
|
@@ -6473,6 +6496,25 @@ declare module '@elastic/eui/src/components/color_picker/color_stops/color_stop_
|
|
|
6473
6496
|
export const EuiColorStopThumb: FunctionComponent<EuiColorStopThumbProps>;
|
|
6474
6497
|
export {};
|
|
6475
6498
|
|
|
6499
|
+
}
|
|
6500
|
+
declare module '@elastic/eui/src/components/color_picker/color_stops/color_stops.styles' {
|
|
6501
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
6502
|
+
export const euiColorStopsStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6503
|
+
euiColorStops: import("@emotion/utils").SerializedStyles;
|
|
6504
|
+
isEnabled: import("@emotion/utils").SerializedStyles;
|
|
6505
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
6506
|
+
isHoverDisabled: import("@emotion/utils").SerializedStyles;
|
|
6507
|
+
isReadOnly: import("@emotion/utils").SerializedStyles;
|
|
6508
|
+
isDragging: import("@emotion/utils").SerializedStyles;
|
|
6509
|
+
euiColorStops__track: import("@emotion/utils").SerializedStyles;
|
|
6510
|
+
euiColorStops__addTarget: import("@emotion/utils").SerializedStyles;
|
|
6511
|
+
};
|
|
6512
|
+
export const euiColorStopsAddContainerStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6513
|
+
euiColorStopsAddContainer: import("@emotion/utils").SerializedStyles;
|
|
6514
|
+
isEnabled: import("@emotion/utils").SerializedStyles;
|
|
6515
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
6516
|
+
};
|
|
6517
|
+
|
|
6476
6518
|
}
|
|
6477
6519
|
declare module '@elastic/eui/src/components/color_picker/color_stops/color_stops' {
|
|
6478
6520
|
import { FunctionComponent } from 'react';
|
|
@@ -6586,6 +6628,12 @@ declare module '@elastic/eui/src/services/color/manipulation' {
|
|
|
6586
6628
|
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6587
6629
|
*/
|
|
6588
6630
|
export const darken: (color: string, amount: number) => string;
|
|
6631
|
+
/**
|
|
6632
|
+
* Returns the brighten value of a color. 0-100
|
|
6633
|
+
* @param color - Color to manipulate
|
|
6634
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6635
|
+
*/
|
|
6636
|
+
export const brighten: (color: string, amount: number) => string;
|
|
6589
6637
|
|
|
6590
6638
|
}
|
|
6591
6639
|
declare module '@elastic/eui/src/services/color/contrast' {
|
|
@@ -7203,6 +7251,54 @@ declare module '@elastic/eui/src/services/format' {
|
|
|
7203
7251
|
export { formatNumber } from '@elastic/eui/src/services/format/format_number';
|
|
7204
7252
|
export { formatText } from '@elastic/eui/src/services/format/format_text';
|
|
7205
7253
|
|
|
7254
|
+
}
|
|
7255
|
+
declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
|
|
7256
|
+
export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
|
|
7257
|
+
|
|
7258
|
+
}
|
|
7259
|
+
declare module '@elastic/eui/src/services/hooks/useDependentState' {
|
|
7260
|
+
|
|
7261
|
+
export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
7262
|
+
|
|
7263
|
+
}
|
|
7264
|
+
declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
|
|
7265
|
+
import { MutableRefObject, Ref } from 'react';
|
|
7266
|
+
export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
|
|
7267
|
+
|
|
7268
|
+
}
|
|
7269
|
+
declare module '@elastic/eui/src/services/hooks/useForceRender' {
|
|
7270
|
+
export const useForceRender: () => () => void;
|
|
7271
|
+
|
|
7272
|
+
}
|
|
7273
|
+
declare module '@elastic/eui/src/services/hooks/useLatest' {
|
|
7274
|
+
import { MutableRefObject } from 'react';
|
|
7275
|
+
/**
|
|
7276
|
+
* Wraps the given `value` into a `MutableRefObject` and keeps the `current`
|
|
7277
|
+
* value up-to-date on every render cycle.
|
|
7278
|
+
*/
|
|
7279
|
+
export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
|
|
7280
|
+
|
|
7281
|
+
}
|
|
7282
|
+
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
7283
|
+
import { MouseEvent, TouchEvent } from 'react';
|
|
7284
|
+
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
7285
|
+
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
7286
|
+
x: number;
|
|
7287
|
+
y: number;
|
|
7288
|
+
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
7289
|
+
(e: MouseEvent<T>) => void,
|
|
7290
|
+
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
7291
|
+
];
|
|
7292
|
+
|
|
7293
|
+
}
|
|
7294
|
+
declare module '@elastic/eui/src/services/hooks' {
|
|
7295
|
+
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7296
|
+
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7297
|
+
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7298
|
+
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7299
|
+
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7300
|
+
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7301
|
+
|
|
7206
7302
|
}
|
|
7207
7303
|
declare module '@elastic/eui/src/services/paging/pager' {
|
|
7208
7304
|
export class Pager {
|
|
@@ -7286,50 +7382,6 @@ declare module '@elastic/eui/src/services/security/get_secure_rel_for_target' {
|
|
|
7286
7382
|
declare module '@elastic/eui/src/services/security' {
|
|
7287
7383
|
export { getSecureRelForTarget } from '@elastic/eui/src/services/security/get_secure_rel_for_target';
|
|
7288
7384
|
|
|
7289
|
-
}
|
|
7290
|
-
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
7291
|
-
/**
|
|
7292
|
-
* This function calculates the initials/acronym for a given name.
|
|
7293
|
-
* It defaults to only 2 characters and will take the first character (of each word).
|
|
7294
|
-
* If only one word is supplied for the name, it will only pass back the first letter of the word,
|
|
7295
|
-
* unless forced to 2 letters by setting `initialsLength` to `2`.
|
|
7296
|
-
* It will pass back the characters with the same casing as the original string
|
|
7297
|
-
* unless otherwise specified.
|
|
7298
|
-
*
|
|
7299
|
-
* @param {string} name The full name of the item to turn into initials
|
|
7300
|
-
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
7301
|
-
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
7302
|
-
* @returns {string} True if the color is dark, false otherwise.
|
|
7303
|
-
*/
|
|
7304
|
-
export const MAX_INITIALS = 2;
|
|
7305
|
-
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
7306
|
-
|
|
7307
|
-
}
|
|
7308
|
-
declare module '@elastic/eui/src/services/string/to_case' {
|
|
7309
|
-
/**
|
|
7310
|
-
* This function returns the same string with the first letter of the first word capitalized.
|
|
7311
|
-
*
|
|
7312
|
-
* @param {string} string The input string
|
|
7313
|
-
*/
|
|
7314
|
-
export function toSentenceCase(string: string): string;
|
|
7315
|
-
|
|
7316
|
-
}
|
|
7317
|
-
declare module '@elastic/eui/src/services/string/slugify' {
|
|
7318
|
-
/**
|
|
7319
|
-
* Lowercases input and replaces spaces with hyphens:
|
|
7320
|
-
* e.g. 'GridView Example' -> 'gridview-example'
|
|
7321
|
-
*
|
|
7322
|
-
* @param {string} string The starting string
|
|
7323
|
-
* @returns {string} Lowercase, dashed version of the starting staring
|
|
7324
|
-
*/
|
|
7325
|
-
export function slugify(str: string): string;
|
|
7326
|
-
|
|
7327
|
-
}
|
|
7328
|
-
declare module '@elastic/eui/src/services/string' {
|
|
7329
|
-
export { toInitials } from '@elastic/eui/src/services/string/to_initials';
|
|
7330
|
-
export { toSentenceCase } from '@elastic/eui/src/services/string/to_case';
|
|
7331
|
-
export { slugify } from '@elastic/eui/src/services/string/slugify';
|
|
7332
|
-
|
|
7333
7385
|
}
|
|
7334
7386
|
declare module '@elastic/eui/src/services/sort/sort_direction' {
|
|
7335
7387
|
import PropTypes from 'prop-types'; const ASC: "asc"; const DESC: "desc";
|
|
@@ -7441,6 +7493,50 @@ declare module '@elastic/eui/src/services/sort' {
|
|
|
7441
7493
|
export { PropertySortType } from '@elastic/eui/src/services/sort/property_sort';
|
|
7442
7494
|
export { Comparators } from '@elastic/eui/src/services/sort/comparators';
|
|
7443
7495
|
|
|
7496
|
+
}
|
|
7497
|
+
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
7498
|
+
/**
|
|
7499
|
+
* This function calculates the initials/acronym for a given name.
|
|
7500
|
+
* It defaults to only 2 characters and will take the first character (of each word).
|
|
7501
|
+
* If only one word is supplied for the name, it will only pass back the first letter of the word,
|
|
7502
|
+
* unless forced to 2 letters by setting `initialsLength` to `2`.
|
|
7503
|
+
* It will pass back the characters with the same casing as the original string
|
|
7504
|
+
* unless otherwise specified.
|
|
7505
|
+
*
|
|
7506
|
+
* @param {string} name The full name of the item to turn into initials
|
|
7507
|
+
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
7508
|
+
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
7509
|
+
* @returns {string} True if the color is dark, false otherwise.
|
|
7510
|
+
*/
|
|
7511
|
+
export const MAX_INITIALS = 2;
|
|
7512
|
+
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
7513
|
+
|
|
7514
|
+
}
|
|
7515
|
+
declare module '@elastic/eui/src/services/string/to_case' {
|
|
7516
|
+
/**
|
|
7517
|
+
* This function returns the same string with the first letter of the first word capitalized.
|
|
7518
|
+
*
|
|
7519
|
+
* @param {string} string The input string
|
|
7520
|
+
*/
|
|
7521
|
+
export function toSentenceCase(string: string): string;
|
|
7522
|
+
|
|
7523
|
+
}
|
|
7524
|
+
declare module '@elastic/eui/src/services/string/slugify' {
|
|
7525
|
+
/**
|
|
7526
|
+
* Lowercases input and replaces spaces with hyphens:
|
|
7527
|
+
* e.g. 'GridView Example' -> 'gridview-example'
|
|
7528
|
+
*
|
|
7529
|
+
* @param {string} string The starting string
|
|
7530
|
+
* @returns {string} Lowercase, dashed version of the starting staring
|
|
7531
|
+
*/
|
|
7532
|
+
export function slugify(str: string): string;
|
|
7533
|
+
|
|
7534
|
+
}
|
|
7535
|
+
declare module '@elastic/eui/src/services/string' {
|
|
7536
|
+
export { toInitials } from '@elastic/eui/src/services/string/to_initials';
|
|
7537
|
+
export { toSentenceCase } from '@elastic/eui/src/services/string/to_case';
|
|
7538
|
+
export { slugify } from '@elastic/eui/src/services/string/slugify';
|
|
7539
|
+
|
|
7444
7540
|
}
|
|
7445
7541
|
declare module '@elastic/eui/src/services/transition/transition' {
|
|
7446
7542
|
export const getTransitionTimings: (element: Element) => {
|
|
@@ -7476,84 +7572,36 @@ declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
|
7476
7572
|
declare module '@elastic/eui/src/services/window_event' {
|
|
7477
7573
|
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
|
|
7478
7574
|
|
|
7479
|
-
}
|
|
7480
|
-
declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
|
|
7481
|
-
export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
|
|
7482
|
-
|
|
7483
|
-
}
|
|
7484
|
-
declare module '@elastic/eui/src/services/hooks/useDependentState' {
|
|
7485
|
-
|
|
7486
|
-
export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
7487
|
-
|
|
7488
|
-
}
|
|
7489
|
-
declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
|
|
7490
|
-
import { MutableRefObject, Ref } from 'react';
|
|
7491
|
-
export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
|
|
7492
|
-
|
|
7493
|
-
}
|
|
7494
|
-
declare module '@elastic/eui/src/services/hooks/useForceRender' {
|
|
7495
|
-
export const useForceRender: () => () => void;
|
|
7496
|
-
|
|
7497
|
-
}
|
|
7498
|
-
declare module '@elastic/eui/src/services/hooks/useLatest' {
|
|
7499
|
-
import { MutableRefObject } from 'react';
|
|
7500
|
-
/**
|
|
7501
|
-
* Wraps the given `value` into a `MutableRefObject` and keeps the `current`
|
|
7502
|
-
* value up-to-date on every render cycle.
|
|
7503
|
-
*/
|
|
7504
|
-
export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
|
|
7505
|
-
|
|
7506
|
-
}
|
|
7507
|
-
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
7508
|
-
import { MouseEvent, TouchEvent } from 'react';
|
|
7509
|
-
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
7510
|
-
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
7511
|
-
x: number;
|
|
7512
|
-
y: number;
|
|
7513
|
-
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
7514
|
-
(e: MouseEvent<T>) => void,
|
|
7515
|
-
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
7516
|
-
];
|
|
7517
|
-
|
|
7518
|
-
}
|
|
7519
|
-
declare module '@elastic/eui/src/services/hooks' {
|
|
7520
|
-
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7521
|
-
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7522
|
-
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7523
|
-
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7524
|
-
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7525
|
-
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7526
|
-
|
|
7527
7575
|
}
|
|
7528
7576
|
declare module '@elastic/eui/src/services' {
|
|
7529
7577
|
import * as keys from '@elastic/eui/src/services/keys';
|
|
7530
|
-
export { keys };
|
|
7531
7578
|
export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
|
|
7579
|
+
export { CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7532
7580
|
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7533
|
-
export {
|
|
7581
|
+
export { CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7534
7582
|
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7535
|
-
export {
|
|
7583
|
+
export { brighten, calculateContrast, calculateLuminance, colorPalette, darken, DEFAULT_VISUALIZATION_COLOR, desaturate, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm, getSteppedGradient, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, isColorDark, isValidHex, lightness, makeDisabledContrastColor, makeHighContrastColor, rgbToHex, rgbToHsv, saturate, shade, shadeOrTint, tint, tintOrShade, transparentize, VISUALIZATION_COLORS, wcagContrastMin, } from '@elastic/eui/src/services/color';
|
|
7536
7584
|
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7537
|
-
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, darken, makeHighContrastColor, makeDisabledContrastColor, wcagContrastMin, } from '@elastic/eui/src/services/color';
|
|
7538
|
-
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7539
7585
|
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7586
|
+
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7540
7587
|
export * from '@elastic/eui/src/services/console';
|
|
7541
7588
|
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
7542
7589
|
export * from '@elastic/eui/src/services/findElement';
|
|
7543
|
-
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText,
|
|
7590
|
+
export { dateFormatAliases, formatAuto, formatBoolean, formatDate, formatNumber, formatText, } from '@elastic/eui/src/services/format';
|
|
7591
|
+
export * from '@elastic/eui/src/services/hooks';
|
|
7544
7592
|
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
7545
7593
|
export { Pager } from '@elastic/eui/src/services/paging';
|
|
7594
|
+
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7546
7595
|
export { Random } from '@elastic/eui/src/services/random';
|
|
7547
7596
|
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
7548
|
-
export {
|
|
7549
|
-
export type {
|
|
7550
|
-
export {
|
|
7551
|
-
export
|
|
7597
|
+
export { Comparators, PropertySortType, SortableProperties, SortDirection, SortDirectionType, } from '@elastic/eui/src/services/sort';
|
|
7598
|
+
export type { Direction, PropertySort } from '@elastic/eui/src/services/sort';
|
|
7599
|
+
export { slugify, toInitials, toSentenceCase } from '@elastic/eui/src/services/string';
|
|
7600
|
+
export * from '@elastic/eui/src/services/theme';
|
|
7601
|
+
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7552
7602
|
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
7553
7603
|
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
7554
|
-
export
|
|
7555
|
-
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7556
|
-
export * from '@elastic/eui/src/services/theme';
|
|
7604
|
+
export { keys };
|
|
7557
7605
|
|
|
7558
7606
|
}
|
|
7559
7607
|
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|
|
@@ -13479,11 +13527,18 @@ declare module '@elastic/eui/src/components/tabs/tabs' {
|
|
|
13479
13527
|
children?: React.ReactNode;
|
|
13480
13528
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
13481
13529
|
|
|
13530
|
+
}
|
|
13531
|
+
declare module '@elastic/eui/src/components/tabs/tabs_context' {
|
|
13532
|
+
|
|
13533
|
+
import { EuiTabsProps } from '@elastic/eui/src/components/tabs/tabs';
|
|
13534
|
+
export type EuiTabsContextValues = Required<Pick<EuiTabsProps, 'expand' | 'size'>>;
|
|
13535
|
+
export const contextDefaults: EuiTabsContextValues;
|
|
13536
|
+
export const EuiTabsContext: import("react").Context<Required<Pick<EuiTabsProps, "size" | "expand">>>;
|
|
13537
|
+
|
|
13482
13538
|
}
|
|
13483
13539
|
declare module '@elastic/eui/src/components/tabs/tab' {
|
|
13484
13540
|
import { MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, FunctionComponent, ReactNode } from 'react';
|
|
13485
13541
|
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
13486
|
-
import { EuiTabsProps, EuiTabsSizes } from '@elastic/eui/src/components/tabs/tabs';
|
|
13487
13542
|
export interface EuiTabProps extends CommonProps {
|
|
13488
13543
|
isSelected?: boolean;
|
|
13489
13544
|
disabled?: boolean;
|
|
@@ -13497,16 +13552,6 @@ declare module '@elastic/eui/src/components/tabs/tab' {
|
|
|
13497
13552
|
* Will be excluded from interactive effects.
|
|
13498
13553
|
*/
|
|
13499
13554
|
append?: ReactNode;
|
|
13500
|
-
/**
|
|
13501
|
-
* Evenly stretches each tab to fill the
|
|
13502
|
-
* horizontal space
|
|
13503
|
-
*/
|
|
13504
|
-
expand?: EuiTabsProps['expand'];
|
|
13505
|
-
/**
|
|
13506
|
-
* Sizes affect both font size and overall size.
|
|
13507
|
-
* Only use the `xl` size when displayed as page titles.
|
|
13508
|
-
*/
|
|
13509
|
-
size?: EuiTabsSizes;
|
|
13510
13555
|
} type EuiTabPropsForAnchor = EuiTabProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'href'> & {
|
|
13511
13556
|
href?: string;
|
|
13512
13557
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
@@ -13950,14 +13995,26 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/refresh_int
|
|
|
13950
13995
|
|
|
13951
13996
|
}
|
|
13952
13997
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover' {
|
|
13953
|
-
import {
|
|
13998
|
+
import { FunctionComponent, ReactNode, ReactElement } from 'react';
|
|
13999
|
+
import { EuiQuickSelect } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select';
|
|
14000
|
+
import { EuiCommonlyUsedTimeRanges } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges';
|
|
14001
|
+
import { EuiRecentlyUsed } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/recently_used';
|
|
14002
|
+
import { EuiRefreshInterval } from '@elastic/eui/src/components/date_picker/auto_refresh/refresh_interval';
|
|
13954
14003
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
13955
14004
|
import { DurationRange, ApplyRefreshInterval, ApplyTime, QuickSelect, QuickSelectPanel } from '@elastic/eui/src/components/date_picker/types';
|
|
14005
|
+
export type CustomQuickSelectRenderOptions = {
|
|
14006
|
+
quickSelect: ReactElement<typeof EuiQuickSelect>;
|
|
14007
|
+
commonlyUsedRanges: ReactElement<typeof EuiCommonlyUsedTimeRanges>;
|
|
14008
|
+
recentlyUsedRanges: ReactElement<typeof EuiRecentlyUsed>;
|
|
14009
|
+
refreshInterval?: ReactElement<typeof EuiRefreshInterval>;
|
|
14010
|
+
customQuickSelectPanels?: ReactNode;
|
|
14011
|
+
};
|
|
13956
14012
|
export interface EuiQuickSelectPopoverProps {
|
|
13957
14013
|
applyRefreshInterval?: ApplyRefreshInterval;
|
|
13958
14014
|
applyTime: ApplyTime;
|
|
13959
14015
|
commonlyUsedRanges: DurationRange[];
|
|
13960
14016
|
customQuickSelectPanels?: QuickSelectPanel[];
|
|
14017
|
+
customQuickSelectRender?: (options: CustomQuickSelectRenderOptions) => ReactNode;
|
|
13961
14018
|
dateFormat: string;
|
|
13962
14019
|
end: string;
|
|
13963
14020
|
isDisabled: boolean;
|
|
@@ -13967,20 +14024,10 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_
|
|
|
13967
14024
|
start: string;
|
|
13968
14025
|
timeOptions: TimeOptions;
|
|
13969
14026
|
}
|
|
13970
|
-
|
|
13971
|
-
|
|
14027
|
+
export const EuiQuickSelectPopover: FunctionComponent<EuiQuickSelectPopoverProps>;
|
|
14028
|
+
export const EuiQuickSelectPanels: FunctionComponent<Omit<EuiQuickSelectPopoverProps, 'isDisabled'> & {
|
|
13972
14029
|
prevQuickSelect?: QuickSelect;
|
|
13973
|
-
}
|
|
13974
|
-
export class EuiQuickSelectPopover extends Component<EuiQuickSelectPopoverProps, EuiQuickSelectPopoverState> {
|
|
13975
|
-
state: EuiQuickSelectPopoverState;
|
|
13976
|
-
closePopover: () => void;
|
|
13977
|
-
togglePopover: () => void;
|
|
13978
|
-
applyTime: ApplyTime;
|
|
13979
|
-
renderDateTimeSections: () => JSX.Element;
|
|
13980
|
-
renderCustomQuickSelectPanels: () => JSX.Element[] | null;
|
|
13981
|
-
render(): JSX.Element;
|
|
13982
|
-
}
|
|
13983
|
-
export {};
|
|
14030
|
+
}>;
|
|
13984
14031
|
|
|
13985
14032
|
}
|
|
13986
14033
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover' {
|
|
@@ -14182,13 +14229,14 @@ declare module '@elastic/eui/src/components/date_picker/auto_refresh/auto_refres
|
|
|
14182
14229
|
|
|
14183
14230
|
}
|
|
14184
14231
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_date_picker' {
|
|
14185
|
-
import { Component, FocusEventHandler, FunctionComponent } from 'react';
|
|
14232
|
+
import { Component, FocusEventHandler, FunctionComponent, ReactNode } from 'react';
|
|
14186
14233
|
import { LocaleSpecifier } from 'moment';
|
|
14187
14234
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14188
14235
|
import { ShortDate, Milliseconds, DurationRange, ApplyTime, ApplyRefreshInterval, QuickSelectPanel } from '@elastic/eui/src/components/date_picker/types';
|
|
14189
14236
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
14190
14237
|
import { AsyncInterval } from '@elastic/eui/src/components/date_picker/super_date_picker/async_interval';
|
|
14191
14238
|
import { EuiSuperUpdateButtonProps } from '@elastic/eui/src/components/date_picker/super_date_picker/super_update_button';
|
|
14239
|
+
import { CustomQuickSelectRenderOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover';
|
|
14192
14240
|
import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
14193
14241
|
export interface OnTimeChangeProps extends DurationRange {
|
|
14194
14242
|
isInvalid: boolean;
|
|
@@ -14200,6 +14248,12 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/super_
|
|
|
14200
14248
|
export type EuiSuperDatePickerProps = CommonProps & {
|
|
14201
14249
|
commonlyUsedRanges?: DurationRange[];
|
|
14202
14250
|
customQuickSelectPanels?: QuickSelectPanel[];
|
|
14251
|
+
/**
|
|
14252
|
+
* An optional render prop function that allows customizing the display of the Quick Select menu.
|
|
14253
|
+
* This function passes all default quick select panels within an object, allowing you to
|
|
14254
|
+
* re-order panels, omit certain panels entirely, or pass in your own fully custom content.
|
|
14255
|
+
*/
|
|
14256
|
+
customQuickSelectRender?: (options: CustomQuickSelectRenderOptions) => ReactNode;
|
|
14203
14257
|
/**
|
|
14204
14258
|
* Specifies the formatted used when displaying dates and/or datetimes
|
|
14205
14259
|
*/
|
|
@@ -15331,7 +15385,7 @@ declare module '@elastic/eui/src/components/markdown_editor/markdown_types' {
|
|
|
15331
15385
|
import { ComponentType, ReactNode } from 'react';
|
|
15332
15386
|
import { VFile } from 'vfile';
|
|
15333
15387
|
import { Node as UnistNode, Position as UnistPosition } from 'unist';
|
|
15334
|
-
import { Parser } from 'remark-parse';
|
|
15388
|
+
import { Parser } from 'remark-parse-no-trim';
|
|
15335
15389
|
import { VFileMessage } from 'vfile-message';
|
|
15336
15390
|
import { IconType } from '@elastic/eui/src/components/icon';
|
|
15337
15391
|
export interface RemarkParser {
|
|
@@ -17946,9 +18000,10 @@ declare module '@elastic/eui/src/components/selectable/selectable_list/selectabl
|
|
|
17946
18000
|
*/
|
|
17947
18001
|
searchValue: string;
|
|
17948
18002
|
/**
|
|
17949
|
-
* Returns the array of options with altered checked state
|
|
18003
|
+
* Returns the array of options with altered checked state, the click/keyboard event,
|
|
18004
|
+
* and the option that triggered the click/keyboard event
|
|
17950
18005
|
*/
|
|
17951
|
-
onOptionClick: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent) => void;
|
|
18006
|
+
onOptionClick: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent, clickedOption: EuiSelectableOption<T>) => void;
|
|
17952
18007
|
/**
|
|
17953
18008
|
* Custom render for the label portion of the option;
|
|
17954
18009
|
* Takes (option, searchValue), returns ReactNode
|
|
@@ -18037,9 +18092,10 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
18037
18092
|
options: Array<EuiSelectableOption<T>>;
|
|
18038
18093
|
/**
|
|
18039
18094
|
* Passes back the altered `options` array with selected options having `checked: 'on'`.
|
|
18040
|
-
* Also passes back the React click/keyboard event as a second argument
|
|
18095
|
+
* Also passes back the React click/keyboard event as a second argument,
|
|
18096
|
+
* and the option that triggered the onChange event as a third argument.
|
|
18041
18097
|
*/
|
|
18042
|
-
onChange?: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent) => void;
|
|
18098
|
+
onChange?: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent, changedOption: EuiSelectableOption<T>) => void;
|
|
18043
18099
|
/**
|
|
18044
18100
|
* Passes back the current active option whenever the user changes the currently
|
|
18045
18101
|
* highlighted option via keyboard navigation or searching.
|
|
@@ -18133,7 +18189,7 @@ declare module '@elastic/eui/src/components/selectable/selectable' {
|
|
|
18133
18189
|
incrementActiveOptionIndex: (amount: number) => void;
|
|
18134
18190
|
onSearchChange: (searchValue: string, visibleOptions: Array<EuiSelectableOption<T>>) => void;
|
|
18135
18191
|
onContainerBlur: (e: React.FocusEvent) => void;
|
|
18136
|
-
onOptionClick: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent) => void;
|
|
18192
|
+
onOptionClick: (options: Array<EuiSelectableOption<T>>, event: EuiSelectableOnChangeEvent, clickedOption: EuiSelectableOption<T>) => void;
|
|
18137
18193
|
scrollToItem: (index: number, align?: Align | undefined) => void;
|
|
18138
18194
|
makeOptionId: (index?: number | undefined) => string;
|
|
18139
18195
|
render(): JSX.Element;
|
|
@@ -25815,6 +25871,7 @@ declare module '@elastic/eui' {
|
|
|
25815
25871
|
"euiPrettyInterval.daysShorthand": any;
|
|
25816
25872
|
"euiPrettyInterval.off": any;
|
|
25817
25873
|
"euiCommonlyUsedTimeRanges.legend": any;
|
|
25874
|
+
"euiQuickSelectPopover.buttonLabel": any;
|
|
25818
25875
|
"euiQuickSelect.legendText": any;
|
|
25819
25876
|
"euiQuickSelect.quickSelectTitle": any;
|
|
25820
25877
|
"euiQuickSelect.previousLabel": any;
|