@elastic/eui 102.1.0 → 102.2.0-amsterdam.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/es/components/basic_table/basic_table.js +10 -9
- package/es/components/basic_table/in_memory_table.js +18 -16
- package/es/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/es/components/breadcrumbs/breadcrumbs.js +3 -3
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/es/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/es/components/comment_list/comment_list.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/es/components/datagrid/body/data_grid_body.js +14 -9
- package/es/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/es/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/es/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/es/components/datagrid/body/header/draggable_columns.js +1 -1
- package/es/components/datagrid/controls/column_sorting.js +6 -6
- package/es/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/es/components/datagrid/utils/in_memory.js +3 -3
- package/es/components/datagrid/utils/scrolling.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/es/components/form/range/dual_range.js +1 -1
- package/es/components/form/range/range.js +1 -1
- package/es/components/form/range/range_track.js +1 -1
- package/es/components/form/select/select.js +1 -1
- package/es/components/header/header.js +10 -10
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -3
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/icon/assets/logo_elastic.js +23 -17
- package/es/components/icon/icon.styles.js +1 -1
- package/es/components/key_pad_menu/key_pad_menu.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_elastic.styles.js +2 -2
- package/es/components/loading/loading_spinner.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/popover/popover.js +1 -1
- package/es/components/provider/provider.js +2 -2
- package/es/components/responsive/hide_for.js +1 -1
- package/es/components/responsive/show_for.js +1 -1
- package/es/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/es/components/search_bar/filters/field_value_toggle_group_filter.js +1 -1
- package/es/components/search_bar/search_bar.js +3 -3
- package/es/components/search_bar/search_filters.js +2 -2
- package/es/components/selectable/selectable.js +13 -12
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/es/components/side_nav/side_nav.js +2 -2
- package/es/components/table/table_row_cell.js +1 -1
- package/es/components/timeline/timeline.js +1 -1
- package/es/components/toast/global_toast_list.js +27 -20
- package/es/components/tour/tour_step.js +1 -1
- package/es/services/color/vis_color_store.js +1 -1
- package/es/services/theme/context.js +2 -2
- package/es/services/theme/hooks.js +11 -0
- package/es/services/theme/index.js +1 -1
- package/es/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/es/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/es/themes/json/eui_theme_borealis_dark.json +427 -0
- package/es/themes/json/eui_theme_borealis_light.json +427 -0
- package/eui.d.ts +2175 -423
- package/lib/components/basic_table/basic_table.js +10 -9
- package/lib/components/basic_table/in_memory_table.js +18 -16
- package/lib/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.js +2 -2
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/lib/components/comment_list/comment_list.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/lib/components/datagrid/body/data_grid_body.js +14 -9
- package/lib/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/lib/components/datagrid/body/header/draggable_columns.js +1 -1
- package/lib/components/datagrid/controls/column_sorting.js +6 -6
- package/lib/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/lib/components/datagrid/utils/in_memory.js +3 -3
- package/lib/components/datagrid/utils/scrolling.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/lib/components/empty_prompt/images/illustration.svg +939 -0
- package/lib/components/form/range/dual_range.js +1 -1
- package/lib/components/form/range/range.js +1 -1
- package/lib/components/form/range/range_track.js +1 -1
- package/lib/components/form/select/select.js +1 -1
- package/lib/components/header/header.js +10 -10
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -2
- package/lib/components/icon/assets/logo_elastic.js +23 -17
- package/lib/components/icon/icon.styles.js +1 -1
- package/lib/components/icon/svgs/logo_elastic.svg +7 -9
- package/lib/components/key_pad_menu/key_pad_menu.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_elastic.styles.js +2 -2
- package/lib/components/loading/loading_spinner.js +1 -1
- package/lib/components/popover/popover.js +1 -1
- package/lib/components/provider/provider.js +2 -2
- package/lib/components/responsive/hide_for.js +1 -1
- package/lib/components/responsive/show_for.js +1 -1
- package/lib/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/lib/components/search_bar/filters/field_value_toggle_group_filter.js +1 -1
- package/lib/components/search_bar/search_bar.js +3 -3
- package/lib/components/search_bar/search_filters.js +2 -2
- package/lib/components/selectable/selectable.js +13 -12
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/lib/components/side_nav/side_nav.js +2 -2
- package/lib/components/table/table_row_cell.js +1 -1
- package/lib/components/timeline/timeline.js +1 -1
- package/lib/components/toast/global_toast_list.js +27 -20
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/context.js +2 -2
- package/lib/services/theme/hooks.js +12 -1
- package/lib/services/theme/index.js +6 -0
- package/lib/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/lib/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/lib/themes/json/eui_theme_borealis_dark.json +427 -0
- package/lib/themes/json/eui_theme_borealis_light.json +427 -0
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +44 -1
- package/optimize/es/components/datagrid/utils/scrolling.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/optimize/es/components/form/select/select.js +1 -1
- package/optimize/es/components/icon/assets/logo_elastic.js +23 -17
- package/optimize/es/components/icon/icon.styles.js +1 -1
- package/optimize/es/components/loading/loading_elastic.styles.js +2 -2
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/components/selectable/selectable.js +10 -9
- package/optimize/es/components/toast/global_toast_list.js +24 -20
- package/optimize/es/services/color/vis_color_store.js +1 -1
- package/optimize/es/services/theme/context.js +2 -2
- package/optimize/es/services/theme/hooks.js +11 -0
- package/optimize/es/services/theme/index.js +1 -1
- package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/optimize/es/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +427 -0
- package/optimize/es/themes/json/eui_theme_borealis_light.json +427 -0
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +44 -1
- package/optimize/lib/components/datagrid/utils/scrolling.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/optimize/lib/components/empty_prompt/images/illustration.svg +939 -0
- package/optimize/lib/components/form/select/select.js +1 -1
- package/optimize/lib/components/icon/assets/logo_elastic.js +23 -17
- package/optimize/lib/components/icon/icon.styles.js +1 -1
- package/optimize/lib/components/icon/svgs/logo_elastic.svg +7 -9
- package/optimize/lib/components/loading/loading_elastic.styles.js +2 -2
- package/optimize/lib/components/provider/provider.js +2 -2
- package/optimize/lib/components/selectable/selectable.js +10 -9
- package/optimize/lib/components/toast/global_toast_list.js +24 -20
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/context.js +2 -2
- package/optimize/lib/services/theme/hooks.js +12 -1
- package/optimize/lib/services/theme/index.js +6 -0
- package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +427 -0
- package/optimize/lib/themes/json/eui_theme_borealis_light.json +427 -0
- package/package.json +3 -5
- package/test-env/components/basic_table/basic_table.js +10 -9
- package/test-env/components/basic_table/in_memory_table.js +18 -16
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/test-env/components/breadcrumbs/breadcrumbs.js +2 -2
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/test-env/components/comment_list/comment_list.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/test-env/components/datagrid/body/data_grid_body.js +14 -9
- package/test-env/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/test-env/components/datagrid/body/header/draggable_columns.js +1 -1
- package/test-env/components/datagrid/controls/column_sorting.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/test-env/components/datagrid/utils/in_memory.js +3 -3
- package/test-env/components/datagrid/utils/scrolling.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/test-env/components/form/range/dual_range.js +1 -1
- package/test-env/components/form/range/range.js +1 -1
- package/test-env/components/form/range/range_track.js +1 -1
- package/test-env/components/form/select/select.js +1 -1
- package/test-env/components/header/header.js +10 -10
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -2
- package/test-env/components/icon/assets/logo_elastic.js +23 -17
- package/test-env/components/icon/icon.styles.js +1 -1
- package/test-env/components/key_pad_menu/key_pad_menu.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_elastic.styles.js +2 -2
- package/test-env/components/loading/loading_spinner.js +1 -1
- package/test-env/components/popover/popover.js +1 -1
- package/test-env/components/provider/provider.js +2 -2
- package/test-env/components/responsive/hide_for.js +1 -1
- package/test-env/components/responsive/show_for.js +1 -1
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +1 -1
- package/test-env/components/search_bar/filters/field_value_toggle_group_filter.js +1 -1
- package/test-env/components/search_bar/search_bar.js +3 -3
- package/test-env/components/search_bar/search_filters.js +2 -2
- package/test-env/components/selectable/selectable.js +13 -12
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/test-env/components/side_nav/side_nav.js +2 -2
- package/test-env/components/table/table_row_cell.js +1 -1
- package/test-env/components/timeline/timeline.js +1 -1
- package/test-env/components/toast/global_toast_list.js +24 -20
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/context.js +2 -2
- package/test-env/services/theme/hooks.js +12 -1
- package/test-env/services/theme/index.js +6 -0
- package/test-env/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/test-env/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/test-env/themes/json/eui_theme_borealis_dark.json +427 -0
- package/test-env/themes/json/eui_theme_borealis_light.json +427 -0
|
@@ -305,6 +305,48 @@ export var EuiDataGridBodyVirtualized = /*#__PURE__*/memo(function (_ref3) {
|
|
|
305
305
|
footerRow: footerRow
|
|
306
306
|
};
|
|
307
307
|
}, [headerRowHeight, headerRow, footerRow]);
|
|
308
|
+
var onScroll = useCallback(function (args) {
|
|
309
|
+
// check only if a callback is passed
|
|
310
|
+
if (typeof (virtualizationOptions === null || virtualizationOptions === void 0 ? void 0 : virtualizationOptions.onScroll) !== 'function') return;
|
|
311
|
+
var enhancedArgs = _objectSpread(_objectSpread({}, args), {}, {
|
|
312
|
+
scrollHeight: 0,
|
|
313
|
+
scrollWidth: 0,
|
|
314
|
+
clientHeight: 0,
|
|
315
|
+
clientWidth: 0,
|
|
316
|
+
isScrolledToBlockStart: args.scrollTop === 0,
|
|
317
|
+
isScrolledToBlockEnd: false,
|
|
318
|
+
isScrolledToInlineStart: args.scrollLeft === 0,
|
|
319
|
+
isScrolledToInlineEnd: false
|
|
320
|
+
});
|
|
321
|
+
if (outerGridRef.current) {
|
|
322
|
+
var _outerGridRef$current = outerGridRef.current,
|
|
323
|
+
scrollTop = _outerGridRef$current.scrollTop,
|
|
324
|
+
scrollLeft = _outerGridRef$current.scrollLeft,
|
|
325
|
+
scrollHeight = _outerGridRef$current.scrollHeight,
|
|
326
|
+
scrollWidth = _outerGridRef$current.scrollWidth,
|
|
327
|
+
clientHeight = _outerGridRef$current.clientHeight,
|
|
328
|
+
clientWidth = _outerGridRef$current.clientWidth;
|
|
329
|
+
var isScrollableVertical = scrollHeight > clientHeight;
|
|
330
|
+
var isScrolledToBlockStart = scrollTop === 0;
|
|
331
|
+
var isScrollableHorizontal = scrollWidth > clientWidth;
|
|
332
|
+
var isScrolledToInlineStart = scrollLeft === 0;
|
|
333
|
+
var isScrolledToBlockEnd = isScrollableVertical && !isScrolledToBlockStart && scrollHeight - scrollTop <= clientHeight;
|
|
334
|
+
var isScrolledToInlineEnd = isScrollableHorizontal && !isScrolledToInlineStart && scrollWidth - scrollLeft <= clientWidth;
|
|
335
|
+
enhancedArgs = _objectSpread(_objectSpread({}, enhancedArgs), {}, {
|
|
336
|
+
scrollTop: scrollTop,
|
|
337
|
+
scrollLeft: scrollLeft,
|
|
338
|
+
scrollHeight: scrollHeight,
|
|
339
|
+
scrollWidth: scrollWidth,
|
|
340
|
+
clientHeight: clientHeight,
|
|
341
|
+
clientWidth: clientWidth,
|
|
342
|
+
isScrolledToBlockStart: isScrolledToBlockStart,
|
|
343
|
+
isScrolledToBlockEnd: isScrolledToBlockEnd,
|
|
344
|
+
isScrolledToInlineStart: isScrolledToInlineStart,
|
|
345
|
+
isScrolledToInlineEnd: isScrolledToInlineEnd
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
return virtualizationOptions === null || virtualizationOptions === void 0 ? void 0 : virtualizationOptions.onScroll(enhancedArgs);
|
|
349
|
+
}, [outerGridRef, virtualizationOptions]);
|
|
308
350
|
return IS_JEST_ENVIRONMENT || finalWidth > 0 ? ___EmotionJSX(DataGridWrapperRowsContext.Provider, {
|
|
309
351
|
value: rowWrapperContextValue
|
|
310
352
|
}, ___EmotionJSX(Grid, _extends({}, virtualizationOptions, {
|
|
@@ -320,7 +362,8 @@ export var EuiDataGridBodyVirtualized = /*#__PURE__*/memo(function (_ref3) {
|
|
|
320
362
|
height: finalHeight,
|
|
321
363
|
rowHeight: getRowHeight,
|
|
322
364
|
itemData: itemData,
|
|
323
|
-
rowCount: IS_JEST_ENVIRONMENT || headerRowHeight > 0 ? visibleRowCount : 0
|
|
365
|
+
rowCount: IS_JEST_ENVIRONMENT || headerRowHeight > 0 ? visibleRowCount : 0,
|
|
366
|
+
onScroll: onScroll
|
|
324
367
|
}), Cell), scrollBorderOverlay) : null;
|
|
325
368
|
});
|
|
326
369
|
EuiDataGridBodyVirtualized.propTypes = {
|
|
@@ -427,12 +470,12 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
427
470
|
defaultSortDirection: PropTypes.oneOf(["asc", "desc"]),
|
|
428
471
|
/**
|
|
429
472
|
* A Schema to use for the column.
|
|
430
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
473
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
431
474
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
432
475
|
*/
|
|
433
476
|
schema: PropTypes.string,
|
|
434
477
|
/**
|
|
435
|
-
* Configuration of column actions. Set to false to disable or use
|
|
478
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
436
479
|
*/
|
|
437
480
|
actions: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.shape({
|
|
438
481
|
/**
|
|
@@ -481,7 +524,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
481
524
|
*/
|
|
482
525
|
showToolTip: PropTypes.bool,
|
|
483
526
|
/**
|
|
484
|
-
* An object of
|
|
527
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
485
528
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
486
529
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
487
530
|
*/
|
|
@@ -791,7 +834,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
791
834
|
schema: PropTypes.shape({}).isRequired,
|
|
792
835
|
schemaDetectors: PropTypes.arrayOf(PropTypes.shape({
|
|
793
836
|
/**
|
|
794
|
-
* The name of this data type, matches
|
|
837
|
+
* The name of this data type, matches {@link EuiDataGridColumn} / `schema`
|
|
795
838
|
*/
|
|
796
839
|
type: PropTypes.string.isRequired,
|
|
797
840
|
/**
|
|
@@ -819,7 +862,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
819
862
|
*/
|
|
820
863
|
sortTextDesc: PropTypes.node.isRequired,
|
|
821
864
|
/**
|
|
822
|
-
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual
|
|
865
|
+
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
823
866
|
*/
|
|
824
867
|
isSortable: PropTypes.bool,
|
|
825
868
|
/**
|
|
@@ -827,7 +870,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
827
870
|
*/
|
|
828
871
|
textTransform: PropTypes.oneOf(["uppercase", "lowercase", "capitalize"]),
|
|
829
872
|
/**
|
|
830
|
-
* Default sort direction of columns with this schema. Can be overridden at the individual
|
|
873
|
+
* Default sort direction of columns with this schema. Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
831
874
|
*/
|
|
832
875
|
defaultSortDirection: PropTypes.oneOf(["asc", "desc"])
|
|
833
876
|
}).isRequired).isRequired,
|
|
@@ -860,7 +903,12 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
860
903
|
setVisibleColumns: PropTypes.func.isRequired,
|
|
861
904
|
switchColumnPos: PropTypes.func.isRequired,
|
|
862
905
|
onColumnResize: PropTypes.func,
|
|
863
|
-
virtualizationOptions: PropTypes.
|
|
906
|
+
virtualizationOptions: PropTypes.shape({
|
|
907
|
+
/**
|
|
908
|
+
* Called when the grid scroll positions changes, as a result of user scrolling or scroll-to method calls.
|
|
909
|
+
*/
|
|
910
|
+
onScroll: PropTypes.func
|
|
911
|
+
}),
|
|
864
912
|
rowHeightsOptions: PropTypes.shape({
|
|
865
913
|
/**
|
|
866
914
|
* Defines the default size for all rows. It can be line count or just height.
|
|
@@ -881,7 +929,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
881
929
|
* Defines the height for a specific row. It can be line count or just height.
|
|
882
930
|
*
|
|
883
931
|
* When using row height overrides, we strongly setting the `showDisplaySelector: allowRowHeight`
|
|
884
|
-
* toolbar control to `false` in
|
|
932
|
+
* toolbar control to `false` in {@link EuiDataGridToolBarVisibilityOptions}
|
|
885
933
|
*/
|
|
886
934
|
rowHeights: PropTypes.any,
|
|
887
935
|
/**
|
|
@@ -924,7 +972,7 @@ EuiDataGridBodyVirtualized.propTypes = {
|
|
|
924
972
|
*/
|
|
925
973
|
stripes: PropTypes.bool,
|
|
926
974
|
/**
|
|
927
|
-
* Visual style for the column headers. Recommendation is to use the `underline` style in times when
|
|
975
|
+
* Visual style for the column headers. Recommendation is to use the `underline` style in times when {@link EuiDataGrid} `toolbarVisibility` is set to `false`.
|
|
928
976
|
* @default shade
|
|
929
977
|
*/
|
|
930
978
|
header: PropTypes.oneOf(["shade", "underline"]),
|
|
@@ -175,12 +175,12 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
175
175
|
defaultSortDirection: PropTypes.oneOf(["asc", "desc"]),
|
|
176
176
|
/**
|
|
177
177
|
* A Schema to use for the column.
|
|
178
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
178
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
179
179
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
180
180
|
*/
|
|
181
181
|
schema: PropTypes.string,
|
|
182
182
|
/**
|
|
183
|
-
* Configuration of column actions. Set to false to disable or use
|
|
183
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
184
184
|
*/
|
|
185
185
|
actions: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.shape({
|
|
186
186
|
/**
|
|
@@ -229,7 +229,7 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
229
229
|
*/
|
|
230
230
|
showToolTip: PropTypes.bool,
|
|
231
231
|
/**
|
|
232
|
-
* An object of
|
|
232
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
233
233
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
234
234
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
235
235
|
*/
|
|
@@ -216,7 +216,7 @@ DraggableColumn.propTypes = {
|
|
|
216
216
|
*/
|
|
217
217
|
stripes: PropTypes.bool,
|
|
218
218
|
/**
|
|
219
|
-
* Visual style for the column headers. Recommendation is to use the `underline` style in times when
|
|
219
|
+
* Visual style for the column headers. Recommendation is to use the `underline` style in times when {@link EuiDataGrid} `toolbarVisibility` is set to `false`.
|
|
220
220
|
* @default shade
|
|
221
221
|
*/
|
|
222
222
|
header: PropTypes.oneOf(["shade", "underline"]),
|
|
@@ -307,12 +307,12 @@ DataGridSortingControl.propTypes = {
|
|
|
307
307
|
defaultSortDirection: PropTypes.oneOf(["asc", "desc"]),
|
|
308
308
|
/**
|
|
309
309
|
* A Schema to use for the column.
|
|
310
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
310
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
311
311
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
312
312
|
*/
|
|
313
313
|
schema: PropTypes.string,
|
|
314
314
|
/**
|
|
315
|
-
* Configuration of column actions. Set to false to disable or use
|
|
315
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
316
316
|
*/
|
|
317
317
|
actions: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.shape({
|
|
318
318
|
/**
|
|
@@ -361,7 +361,7 @@ DataGridSortingControl.propTypes = {
|
|
|
361
361
|
*/
|
|
362
362
|
showToolTip: PropTypes.bool,
|
|
363
363
|
/**
|
|
364
|
-
* An object of
|
|
364
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
365
365
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
366
366
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
367
367
|
*/
|
|
@@ -671,7 +671,7 @@ DataGridSortingControl.propTypes = {
|
|
|
671
671
|
schema: PropTypes.shape({}).isRequired,
|
|
672
672
|
schemaDetectors: PropTypes.arrayOf(PropTypes.shape({
|
|
673
673
|
/**
|
|
674
|
-
* The name of this data type, matches
|
|
674
|
+
* The name of this data type, matches {@link EuiDataGridColumn} / `schema`
|
|
675
675
|
*/
|
|
676
676
|
type: PropTypes.string.isRequired,
|
|
677
677
|
/**
|
|
@@ -699,7 +699,7 @@ DataGridSortingControl.propTypes = {
|
|
|
699
699
|
*/
|
|
700
700
|
sortTextDesc: PropTypes.node.isRequired,
|
|
701
701
|
/**
|
|
702
|
-
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual
|
|
702
|
+
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
703
703
|
*/
|
|
704
704
|
isSortable: PropTypes.bool,
|
|
705
705
|
/**
|
|
@@ -707,7 +707,7 @@ DataGridSortingControl.propTypes = {
|
|
|
707
707
|
*/
|
|
708
708
|
textTransform: PropTypes.oneOf(["uppercase", "lowercase", "capitalize"]),
|
|
709
709
|
/**
|
|
710
|
-
* Default sort direction of columns with this schema. Can be overridden at the individual
|
|
710
|
+
* Default sort direction of columns with this schema. Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
711
711
|
*/
|
|
712
712
|
defaultSortDirection: PropTypes.oneOf(["asc", "desc"])
|
|
713
713
|
}).isRequired).isRequired
|
|
@@ -192,7 +192,7 @@ EuiDataGridColumnSortingDraggable.propTypes = {
|
|
|
192
192
|
schema: PropTypes.shape({}).isRequired,
|
|
193
193
|
schemaDetectors: PropTypes.arrayOf(PropTypes.shape({
|
|
194
194
|
/**
|
|
195
|
-
* The name of this data type, matches
|
|
195
|
+
* The name of this data type, matches {@link EuiDataGridColumn} / `schema`
|
|
196
196
|
*/
|
|
197
197
|
type: PropTypes.string.isRequired,
|
|
198
198
|
/**
|
|
@@ -220,7 +220,7 @@ EuiDataGridColumnSortingDraggable.propTypes = {
|
|
|
220
220
|
*/
|
|
221
221
|
sortTextDesc: PropTypes.node.isRequired,
|
|
222
222
|
/**
|
|
223
|
-
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual
|
|
223
|
+
* Whether columns with this schema are sortable (defaults to true). Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
224
224
|
*/
|
|
225
225
|
isSortable: PropTypes.bool,
|
|
226
226
|
/**
|
|
@@ -228,7 +228,7 @@ EuiDataGridColumnSortingDraggable.propTypes = {
|
|
|
228
228
|
*/
|
|
229
229
|
textTransform: PropTypes.oneOf(["uppercase", "lowercase", "capitalize"]),
|
|
230
230
|
/**
|
|
231
|
-
* Default sort direction of columns with this schema. Can be overridden at the individual
|
|
231
|
+
* Default sort direction of columns with this schema. Can be overridden at the individual {@link EuiDataGridColumn} level
|
|
232
232
|
*/
|
|
233
233
|
defaultSortDirection: PropTypes.oneOf(["asc", "desc"])
|
|
234
234
|
}).isRequired).isRequired,
|
|
@@ -235,12 +235,12 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
235
235
|
defaultSortDirection: PropTypes.oneOf(["asc", "desc"]),
|
|
236
236
|
/**
|
|
237
237
|
* A Schema to use for the column.
|
|
238
|
-
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own
|
|
238
|
+
* Built-in values are [`boolean`, `currency`, `datetime`, `numeric`, `json`] but can be expanded by defining your own {@link EuiDataGrid} `schemaDetectors` (for in-memory detection).
|
|
239
239
|
* In general, it is advised to pass in a value here when you are sure of the schema ahead of time, so that you don't need to rely on the automatic detection.
|
|
240
240
|
*/
|
|
241
241
|
schema: PropTypes.string,
|
|
242
242
|
/**
|
|
243
|
-
* Configuration of column actions. Set to false to disable or use
|
|
243
|
+
* Configuration of column actions. Set to false to disable or use {@link EuiDataGridColumnActions} to configure the actions displayed in the header cell of the column.
|
|
244
244
|
*/
|
|
245
245
|
actions: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.shape({
|
|
246
246
|
/**
|
|
@@ -289,7 +289,7 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
289
289
|
*/
|
|
290
290
|
showToolTip: PropTypes.bool,
|
|
291
291
|
/**
|
|
292
|
-
* An object of
|
|
292
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
293
293
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
294
294
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
295
295
|
*/
|
|
@@ -17,6 +17,7 @@ import { DataGridCellPopoverContext } from '../body/cell';
|
|
|
17
17
|
import { DataGridFocusContext } from './focus';
|
|
18
18
|
import { euiDataGridScrollBarStyles } from './scrolling.styles';
|
|
19
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
20
|
+
var ACTIONS_MENU_HEIGHT = 21;
|
|
20
21
|
/**
|
|
21
22
|
* The primary goal of this scroll logic is to ensure keyboard navigation works accessibly,
|
|
22
23
|
* but there are other scenarios where it applies (e.g. clicking partially-visible cells)
|
|
@@ -170,7 +171,8 @@ export var useScrollCellIntoView = function useScrollCellIntoView(_ref) {
|
|
|
170
171
|
if (topHeightOutOfView > 0) {
|
|
171
172
|
// Note: This overrides the bottom side being out of bounds, as we want to prefer
|
|
172
173
|
// showing the top-left corner of items if a cell is larger than the grid container
|
|
173
|
-
|
|
174
|
+
// Additionally, add an offset for the actions menu
|
|
175
|
+
adjustedScrollTop = cellTopPos - headerRowHeight - ACTIONS_MENU_HEIGHT;
|
|
174
176
|
}
|
|
175
177
|
}
|
|
176
178
|
|
|
@@ -184,7 +184,8 @@ export var EuiQuickSelect = /*#__PURE__*/function (_Component) {
|
|
|
184
184
|
default: "Previous time window"
|
|
185
185
|
}, function (previousLabel) {
|
|
186
186
|
return ___EmotionJSX(EuiToolTip, {
|
|
187
|
-
content: previousLabel
|
|
187
|
+
content: previousLabel,
|
|
188
|
+
disableScreenReaderOutput: true
|
|
188
189
|
}, ___EmotionJSX(EuiButtonIcon, {
|
|
189
190
|
"aria-label": previousLabel,
|
|
190
191
|
iconType: "arrowLeft",
|
|
@@ -197,7 +198,8 @@ export var EuiQuickSelect = /*#__PURE__*/function (_Component) {
|
|
|
197
198
|
default: "Next time window"
|
|
198
199
|
}, function (nextLabel) {
|
|
199
200
|
return ___EmotionJSX(EuiToolTip, {
|
|
200
|
-
content: nextLabel
|
|
201
|
+
content: nextLabel,
|
|
202
|
+
disableScreenReaderOutput: true
|
|
201
203
|
}, ___EmotionJSX(EuiButtonIcon, {
|
|
202
204
|
"aria-label": nextLabel,
|
|
203
205
|
iconType: "arrowRight",
|
|
@@ -636,7 +636,7 @@ EuiSuperDatePickerInternal.propTypes = {
|
|
|
636
636
|
*/
|
|
637
637
|
isQuickSelectOnly: PropTypes.bool,
|
|
638
638
|
/**
|
|
639
|
-
* Props passed to the update button
|
|
639
|
+
* Props passed to the update button {@link EuiSuperUpdateButtonProps}
|
|
640
640
|
*/
|
|
641
641
|
updateButtonProps: PropTypes.shape({
|
|
642
642
|
/**
|
|
@@ -666,7 +666,7 @@ EuiSuperDatePickerInternal.propTypes = {
|
|
|
666
666
|
responsive: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.arrayOf(PropTypes.any.isRequired).isRequired])
|
|
667
667
|
}),
|
|
668
668
|
/**
|
|
669
|
-
* Props passed to the quick select button
|
|
669
|
+
* Props passed to the quick select button {@link EuiQuickSelectButtonProps}
|
|
670
670
|
*/
|
|
671
671
|
quickSelectButtonProps: PropTypes.any,
|
|
672
672
|
/**
|
|
@@ -831,7 +831,7 @@ EuiSuperDatePicker.propTypes = {
|
|
|
831
831
|
*/
|
|
832
832
|
isQuickSelectOnly: PropTypes.bool,
|
|
833
833
|
/**
|
|
834
|
-
* Props passed to the update button
|
|
834
|
+
* Props passed to the update button {@link EuiSuperUpdateButtonProps}
|
|
835
835
|
*/
|
|
836
836
|
updateButtonProps: PropTypes.shape({
|
|
837
837
|
children: PropTypes.node,
|
|
@@ -841,7 +841,7 @@ EuiSuperDatePicker.propTypes = {
|
|
|
841
841
|
responsive: PropTypes.oneOfType([PropTypes.oneOf([false]), PropTypes.arrayOf(PropTypes.any.isRequired).isRequired])
|
|
842
842
|
}),
|
|
843
843
|
/**
|
|
844
|
-
* Props passed to the quick select button
|
|
844
|
+
* Props passed to the quick select button {@link EuiQuickSelectButtonProps}
|
|
845
845
|
*/
|
|
846
846
|
quickSelectButtonProps: PropTypes.any,
|
|
847
847
|
/**
|
|
@@ -691,7 +691,7 @@ EuiDualRangeClass.propTypes = {
|
|
|
691
691
|
tickInterval: PropTypes.number,
|
|
692
692
|
/**
|
|
693
693
|
* Create colored indicators for certain intervals.
|
|
694
|
-
* An array of
|
|
694
|
+
* An array of {@link EuiRangeLevel} objects
|
|
695
695
|
*/
|
|
696
696
|
levels: PropTypes.arrayOf(PropTypes.shape({
|
|
697
697
|
/**
|
|
@@ -329,7 +329,7 @@ EuiRangeClass.propTypes = {
|
|
|
329
329
|
tickInterval: PropTypes.number,
|
|
330
330
|
/**
|
|
331
331
|
* Create colored indicators for certain intervals.
|
|
332
|
-
* An array of
|
|
332
|
+
* An array of {@link EuiRangeLevel} objects
|
|
333
333
|
*/
|
|
334
334
|
levels: PropTypes.arrayOf(PropTypes.shape({
|
|
335
335
|
/**
|
|
@@ -134,7 +134,7 @@ EuiRangeTrack.propTypes = {
|
|
|
134
134
|
tickInterval: PropTypes.number,
|
|
135
135
|
/**
|
|
136
136
|
* Create colored indicators for certain intervals.
|
|
137
|
-
* An array of
|
|
137
|
+
* An array of {@link EuiRangeLevel} objects
|
|
138
138
|
*/
|
|
139
139
|
levels: PropTypes.arrayOf(PropTypes.shape({
|
|
140
140
|
/**
|
|
@@ -88,7 +88,7 @@ export var EuiSelect = function EuiSelect(props) {
|
|
|
88
88
|
value: value,
|
|
89
89
|
onMouseUp: handleMouseUp,
|
|
90
90
|
disabled: disabled
|
|
91
|
-
}, rest), hasNoInitialSelection && ___EmotionJSX("option", {
|
|
91
|
+
}, rest), hasNoInitialSelection && value === '' && ___EmotionJSX("option", {
|
|
92
92
|
value: "",
|
|
93
93
|
disabled: true,
|
|
94
94
|
hidden: true,
|
|
@@ -99,23 +99,23 @@ EuiHeader.propTypes = {
|
|
|
99
99
|
"data-test-subj": PropTypes.string,
|
|
100
100
|
css: PropTypes.any,
|
|
101
101
|
/**
|
|
102
|
-
* An array of objects to wrap in a
|
|
102
|
+
* An array of objects to wrap in a {@link EuiHeaderSection}.
|
|
103
103
|
* Each section is spaced using `space-between`.
|
|
104
|
-
* See
|
|
104
|
+
* See {@link EuiHeaderSections} for object details.
|
|
105
105
|
* This prop disregards the prop `children` if both are passed.
|
|
106
106
|
*/
|
|
107
107
|
sections: PropTypes.arrayOf(PropTypes.shape({
|
|
108
108
|
/**
|
|
109
|
-
* An array of items that will be wrapped in a
|
|
109
|
+
* An array of items that will be wrapped in a {@link EuiHeaderSectionItem}
|
|
110
110
|
*/
|
|
111
111
|
items: PropTypes.arrayOf(PropTypes.node.isRequired),
|
|
112
112
|
/**
|
|
113
|
-
* Breadcrumbs in the header cannot be wrapped in a
|
|
113
|
+
* Breadcrumbs in the header cannot be wrapped in a {@link EuiHeaderSection} in order for truncation to work.
|
|
114
114
|
* Simply pass the array of EuiBreadcrumb objects
|
|
115
115
|
*/
|
|
116
116
|
breadcrumbs: PropTypes.arrayOf(PropTypes.any.isRequired),
|
|
117
117
|
/**
|
|
118
|
-
* Other props to pass to
|
|
118
|
+
* Other props to pass to {@link EuiHeaderBreadcrumbs}
|
|
119
119
|
*/
|
|
120
120
|
breadcrumbProps: PropTypes.any
|
|
121
121
|
}).isRequired),
|
|
@@ -187,23 +187,23 @@ EuiFixedHeader.propTypes = {
|
|
|
187
187
|
"data-test-subj": PropTypes.string,
|
|
188
188
|
css: PropTypes.any,
|
|
189
189
|
/**
|
|
190
|
-
* An array of objects to wrap in a
|
|
190
|
+
* An array of objects to wrap in a {@link EuiHeaderSection}.
|
|
191
191
|
* Each section is spaced using `space-between`.
|
|
192
|
-
* See
|
|
192
|
+
* See {@link EuiHeaderSections} for object details.
|
|
193
193
|
* This prop disregards the prop `children` if both are passed.
|
|
194
194
|
*/
|
|
195
195
|
sections: PropTypes.arrayOf(PropTypes.shape({
|
|
196
196
|
/**
|
|
197
|
-
* An array of items that will be wrapped in a
|
|
197
|
+
* An array of items that will be wrapped in a {@link EuiHeaderSectionItem}
|
|
198
198
|
*/
|
|
199
199
|
items: PropTypes.arrayOf(PropTypes.node.isRequired),
|
|
200
200
|
/**
|
|
201
|
-
* Breadcrumbs in the header cannot be wrapped in a
|
|
201
|
+
* Breadcrumbs in the header cannot be wrapped in a {@link EuiHeaderSection} in order for truncation to work.
|
|
202
202
|
* Simply pass the array of EuiBreadcrumb objects
|
|
203
203
|
*/
|
|
204
204
|
breadcrumbs: PropTypes.arrayOf(PropTypes.any.isRequired),
|
|
205
205
|
/**
|
|
206
|
-
* Other props to pass to
|
|
206
|
+
* Other props to pass to {@link EuiHeaderBreadcrumbs}
|
|
207
207
|
*/
|
|
208
208
|
breadcrumbProps: PropTypes.any
|
|
209
209
|
}).isRequired),
|
|
@@ -39,7 +39,7 @@ EuiHeaderBreadcrumbs.propTypes = {
|
|
|
39
39
|
css: PropTypes.any,
|
|
40
40
|
/**
|
|
41
41
|
* Hides extra (above the max) breadcrumbs under a collapsed item as the window gets smaller.
|
|
42
|
-
* Pass a custom
|
|
42
|
+
* Pass a custom {@link EuiBreadcrumbResponsiveMaxCount} object to change the number of breadcrumbs to show at the particular breakpoints.
|
|
43
43
|
*
|
|
44
44
|
* Pass `false` to turn this behavior off.
|
|
45
45
|
*
|
|
@@ -59,7 +59,7 @@ EuiHeaderBreadcrumbs.propTypes = {
|
|
|
59
59
|
*/
|
|
60
60
|
max: PropTypes.oneOfType([PropTypes.number.isRequired, PropTypes.oneOf([null])]),
|
|
61
61
|
/**
|
|
62
|
-
* The array of individual
|
|
62
|
+
* The array of individual {@link EuiBreadcrumb} items
|
|
63
63
|
*/
|
|
64
64
|
breadcrumbs: PropTypes.arrayOf(PropTypes.shape({
|
|
65
65
|
className: PropTypes.string,
|
|
@@ -158,7 +158,7 @@ EuiHeaderBreadcrumbs.propTypes = {
|
|
|
158
158
|
*/
|
|
159
159
|
panelStyle: PropTypes.any,
|
|
160
160
|
/**
|
|
161
|
-
* Object of props passed to EuiPanel. See
|
|
161
|
+
* Object of props passed to EuiPanel. See {@link EuiPopoverPanelProps}
|
|
162
162
|
*/
|
|
163
163
|
panelProps: PropTypes.shape({
|
|
164
164
|
element: PropTypes.oneOf(["div"]),
|
|
@@ -195,7 +195,7 @@ EuiHeaderLinks.propTypes = {
|
|
|
195
195
|
*/
|
|
196
196
|
panelStyle: PropTypes.any,
|
|
197
197
|
/**
|
|
198
|
-
* Object of props passed to EuiPanel. See
|
|
198
|
+
* Object of props passed to EuiPanel. See {@link EuiPopoverPanelProps}
|
|
199
199
|
*/
|
|
200
200
|
panelProps: PropTypes.shape({
|
|
201
201
|
element: PropTypes.oneOf(["div"]),
|
|
@@ -29,29 +29,35 @@ var EuiIconLogoElastic = function EuiIconLogoElastic(_ref) {
|
|
|
29
29
|
}, props), title ? ___EmotionJSX("title", {
|
|
30
30
|
id: titleId
|
|
31
31
|
}, title) : null, ___EmotionJSX("path", {
|
|
32
|
-
fill: "#
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
clipRule: "evenodd"
|
|
32
|
+
fill: "#0B64DD",
|
|
33
|
+
stroke: "#fff",
|
|
34
|
+
strokeWidth: 1.2,
|
|
35
|
+
d: "M27.565 11.242c5.1 1.94 4.872 9.396-.245 11.127l-.162.055-.167-.039-5.28-1.238-.268-.063-.127-.244-1.4-2.69-.217-.417.352-.31 6.904-6.07.272-.24.338.13Z"
|
|
37
36
|
}), ___EmotionJSX("path", {
|
|
38
|
-
fill: "#
|
|
39
|
-
|
|
37
|
+
fill: "#9ADC30",
|
|
38
|
+
stroke: "#fff",
|
|
39
|
+
strokeWidth: 1.2,
|
|
40
|
+
d: "m22.047 21.239 4.8 1.125.316.074.11.304.066.19c.623 1.964-.26 3.78-1.652 4.797-1.434 1.048-3.51 1.32-5.182.022l-.29-.225.069-.361 1.037-5.454.117-.615.61.143Z"
|
|
40
41
|
}), ___EmotionJSX("path", {
|
|
41
|
-
fill: "#
|
|
42
|
-
|
|
42
|
+
fill: "#1BA9F5",
|
|
43
|
+
stroke: "#fff",
|
|
44
|
+
strokeWidth: 1.2,
|
|
45
|
+
d: "m5.01 9.63 5.267 1.255.283.067.122.264 1.235 2.65.187.4-.328.298-6.733 6.1-.272.248-.345-.132C1.939 19.83.72 17.456.752 15.153c.032-2.308 1.321-4.644 3.932-5.508l.162-.054.165.039Z"
|
|
43
46
|
}), ___EmotionJSX("path", {
|
|
44
47
|
fill: "#F04E98",
|
|
45
|
-
|
|
48
|
+
stroke: "#fff",
|
|
49
|
+
strokeWidth: 1.2,
|
|
50
|
+
d: "M6.281 4.32c1.416-1.08 3.48-1.387 5.222-.069l.297.226-.07.366-1.053 5.474-.118.615-.609-.144-4.8-1.137-.316-.075-.11-.306c-.709-1.967.149-3.876 1.557-4.95Z"
|
|
46
51
|
}), ___EmotionJSX("path", {
|
|
47
|
-
fill: "#
|
|
48
|
-
|
|
52
|
+
fill: "#02BCB7",
|
|
53
|
+
stroke: "#fff",
|
|
54
|
+
strokeWidth: 1.2,
|
|
55
|
+
d: "m12.466 14.433 7.03 3.211.188.086.095.183 1.555 2.985.096.184-.04.206-1.165 6.101-.024.122-.068.103c-2.68 3.958-6.902 4.71-10.268 3.26-3.356-1.447-5.834-5.07-5.126-9.736l.033-.21.158-.144 6.884-6.25.293-.265.36.164Z"
|
|
49
56
|
}), ___EmotionJSX("path", {
|
|
50
|
-
fill: "#
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
d: "m21.848 20.563 5.28 1.238a5.34 5.34 0 0 0 2.622-1.938 5.37 5.37 0 0 0 1.013-3.106 5.312 5.312 0 0 0-.936-3.01 5.283 5.283 0 0 0-2.475-1.944l-6.904 6.07 1.4 2.69Z"
|
|
57
|
+
fill: "#FEC514",
|
|
58
|
+
stroke: "#fff",
|
|
59
|
+
strokeWidth: 1.2,
|
|
60
|
+
d: "M11.892 4.41C14.438.676 18.741.105 22.134 1.54c3.392 1.433 5.99 4.92 5.102 9.362l-.039.2-.153.133-7.066 6.213-.293.258-.353-.163-7.002-3.21-.201-.093-.094-.2-1.38-2.988-.081-.177.037-.19L11.8 4.633l.023-.121.07-.102Z"
|
|
55
61
|
}));
|
|
56
62
|
};
|
|
57
63
|
export var icon = EuiIconLogoElastic;
|
|
@@ -59,7 +59,7 @@ export var euiIconStyles = function euiIconStyles(_ref3) {
|
|
|
59
59
|
xxl: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.xxl), ";label:xxl;"),
|
|
60
60
|
// Variants
|
|
61
61
|
// App icons are two-toned. This provides the base color.
|
|
62
|
-
app: /*#__PURE__*/css("fill:", euiTheme.colors.textParagraph, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.
|
|
62
|
+
app: /*#__PURE__*/css("fill:", euiTheme.colors.textParagraph, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.primary, ";};label:app;"),
|
|
63
63
|
logo: /*#__PURE__*/css(";label:logo;"),
|
|
64
64
|
// Loading states
|
|
65
65
|
isLoading: /*#__PURE__*/css("opacity:", iconLoadingOpacity, ";background-color:currentColor;border-radius:", euiTheme.border.radius.small, ";;label:isLoading;"),
|
|
@@ -51,7 +51,7 @@ EuiKeyPadMenu.propTypes = {
|
|
|
51
51
|
css: PropTypes.any,
|
|
52
52
|
/**
|
|
53
53
|
* Renders the the group as a `fieldset`.
|
|
54
|
-
* Set to `true` to customize the labelling, or pass an
|
|
54
|
+
* Set to `true` to customize the labelling, or pass an {@link _EuiKeyPadMenuCheckableProps} object to add a `legend` or `ariaLegend`
|
|
55
55
|
*/
|
|
56
56
|
checkable: PropTypes.oneOfType([PropTypes.shape({
|
|
57
57
|
/**
|
|
@@ -109,7 +109,7 @@ EuiListGroup.propTypes = {
|
|
|
109
109
|
*/
|
|
110
110
|
gutterSize: PropTypes.any,
|
|
111
111
|
/**
|
|
112
|
-
* Items to display in this group. See
|
|
112
|
+
* Items to display in this group. See {@link EuiListGroupItem}
|
|
113
113
|
*/
|
|
114
114
|
listItems: PropTypes.arrayOf(PropTypes.shape({
|
|
115
115
|
className: PropTypes.string,
|
|
@@ -167,7 +167,7 @@ EuiListGroup.propTypes = {
|
|
|
167
167
|
*/
|
|
168
168
|
showToolTip: PropTypes.bool,
|
|
169
169
|
/**
|
|
170
|
-
* An object of
|
|
170
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
171
171
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
172
172
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
173
173
|
*/
|
|
@@ -252,7 +252,7 @@ EuiListGroupItem.propTypes = {
|
|
|
252
252
|
*/
|
|
253
253
|
showToolTip: PropTypes.bool,
|
|
254
254
|
/**
|
|
255
|
-
* An object of
|
|
255
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
256
256
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
257
257
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
258
258
|
*/
|
|
@@ -84,11 +84,11 @@ export var EuiPinnableListGroup = function EuiPinnableListGroup(_ref) {
|
|
|
84
84
|
};
|
|
85
85
|
EuiPinnableListGroup.propTypes = {
|
|
86
86
|
/**
|
|
87
|
-
* Items to display in this group. See
|
|
87
|
+
* Items to display in this group. See {@link EuiListGroupItem}
|
|
88
88
|
*/
|
|
89
89
|
/**
|
|
90
90
|
* Extends `EuiListGroupItemProps`, at the very least, expecting a `label`.
|
|
91
|
-
* See
|
|
91
|
+
* See {@link EuiPinnableListGroupItemProps}
|
|
92
92
|
*/
|
|
93
93
|
listItems: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({
|
|
94
94
|
className: PropTypes.string,
|
|
@@ -146,7 +146,7 @@ EuiPinnableListGroup.propTypes = {
|
|
|
146
146
|
*/
|
|
147
147
|
showToolTip: PropTypes.bool,
|
|
148
148
|
/**
|
|
149
|
-
* An object of
|
|
149
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
150
150
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
151
151
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
152
152
|
*/
|
|
@@ -289,7 +289,7 @@ EuiPinnableListGroup.propTypes = {
|
|
|
289
289
|
*/
|
|
290
290
|
showToolTip: PropTypes.bool,
|
|
291
291
|
/**
|
|
292
|
-
* An object of
|
|
292
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
293
293
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
294
294
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
295
295
|
*/
|