@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
|
@@ -10,7 +10,7 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
|
|
|
10
10
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
12
|
import { euiCanAnimate } from '../../global_styling';
|
|
13
|
-
var loadingElastic = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: scale3d(.2, .2, -.7);\n
|
|
13
|
+
var loadingElastic = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: scale3d(.2, .2, -.7);\n }\n\n 40% {\n transform: scale3d(1, 1, 2);\n }\n\n 50% {\n transform: scale3d(.99, .99, 2);\n }\n\n 70% {\n transform: scale3d(.96, .96, -2.5);\n }\n\n 100% {\n transform: scale3d(.98, .98, 2);\n }\n"])));
|
|
14
14
|
export var euiLoadingElasticStyles = {
|
|
15
|
-
euiLoadingElastic: /*#__PURE__*/css("position:relative;display:inline-block;& path{", euiCanAnimate, "{animation-name:", loadingElastic, ";animation-fill-mode:forwards;animation-direction:alternate;transform-style:preserve-3d;animation-duration:1s;animation-timing-function:cubic-bezier(0, 0.63, 0.49, 1);animation-iteration-count:infinite;transform-origin:50% 50%;}&:nth-of-type(1){
|
|
15
|
+
euiLoadingElastic: /*#__PURE__*/css("position:relative;display:inline-block;& path{", euiCanAnimate, "{animation-name:", loadingElastic, ";animation-fill-mode:forwards;animation-direction:alternate;transform-style:preserve-3d;animation-duration:1s;animation-timing-function:cubic-bezier(0, 0.63, 0.49, 1);animation-iteration-count:infinite;transform-origin:50% 50%;}&:nth-of-type(1){animation-delay:0;}&:nth-of-type(2){animation-delay:0.035s;}&:nth-of-type(3){animation-delay:0.125s;}&:nth-of-type(4){animation-delay:0.155s;}&:nth-of-type(5){animation-delay:0.075s;}&:nth-of-type(6){animation-delay:0.06s;}};label:euiLoadingElastic;")
|
|
16
16
|
};
|
|
@@ -57,7 +57,7 @@ EuiLoadingSpinner.propTypes = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Sets the color of the border and highlight.
|
|
59
59
|
* Each key accepts any valid CSS color value as a `string`
|
|
60
|
-
* See
|
|
60
|
+
* See {@link EuiLoadingSpinnerColor}
|
|
61
61
|
*/
|
|
62
62
|
color: PropTypes.shape({
|
|
63
63
|
border: PropTypes.any,
|
|
@@ -372,7 +372,7 @@ EuiPageHeaderContent.propTypes = {
|
|
|
372
372
|
*/
|
|
373
373
|
panelStyle: PropTypes.any,
|
|
374
374
|
/**
|
|
375
|
-
* Object of props passed to EuiPanel. See
|
|
375
|
+
* Object of props passed to EuiPanel. See {@link EuiPopoverPanelProps}
|
|
376
376
|
*/
|
|
377
377
|
panelProps: PropTypes.shape({
|
|
378
378
|
element: PropTypes.oneOf(["div"]),
|
|
@@ -612,7 +612,7 @@ EuiPopover.propTypes = {
|
|
|
612
612
|
*/
|
|
613
613
|
panelStyle: PropTypes.any,
|
|
614
614
|
/**
|
|
615
|
-
* Object of props passed to EuiPanel. See
|
|
615
|
+
* Object of props passed to EuiPanel. See {@link EuiPopoverPanelProps}
|
|
616
616
|
*/
|
|
617
617
|
panelProps: PropTypes.shape({
|
|
618
618
|
element: PropTypes.oneOf(["div"]),
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeAmsterdam } from '../../themes';
|
|
11
11
|
import { EuiThemeProvider } from '../../services';
|
|
12
12
|
import { emitEuiProviderWarning } from '../../services/theme/warning';
|
|
13
13
|
import { cache as fallbackCache } from '../../services/emotion/css';
|
|
@@ -26,7 +26,7 @@ export var EuiProvider = function EuiProvider(_ref) {
|
|
|
26
26
|
var _ref$cache = _ref.cache,
|
|
27
27
|
cache = _ref$cache === void 0 ? fallbackCache : _ref$cache,
|
|
28
28
|
_ref$theme = _ref.theme,
|
|
29
|
-
theme = _ref$theme === void 0 ?
|
|
29
|
+
theme = _ref$theme === void 0 ? EuiThemeAmsterdam : _ref$theme,
|
|
30
30
|
_ref$globalStyles = _ref.globalStyles,
|
|
31
31
|
Globals = _ref$globalStyles === void 0 ? EuiGlobalStyles : _ref$globalStyles,
|
|
32
32
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -27,7 +27,7 @@ EuiHideFor.propTypes = {
|
|
|
27
27
|
children: PropTypes.node.isRequired,
|
|
28
28
|
/**
|
|
29
29
|
* List of all the responsive sizes to hide the children for.
|
|
30
|
-
* Array of
|
|
30
|
+
* Array of {@link EuiBreakpointSize}
|
|
31
31
|
*/
|
|
32
32
|
sizes: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.any.isRequired).isRequired, PropTypes.oneOf(["all", "none"])]).isRequired
|
|
33
33
|
};
|
|
@@ -27,7 +27,7 @@ EuiShowFor.propTypes = {
|
|
|
27
27
|
children: PropTypes.node.isRequired,
|
|
28
28
|
/**
|
|
29
29
|
* List of all the responsive sizes to show the children for.
|
|
30
|
-
* Array of
|
|
30
|
+
* Array of {@link EuiBreakpointSize}
|
|
31
31
|
*/
|
|
32
32
|
sizes: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.any.isRequired).isRequired, PropTypes.oneOf(["all", "none"])]).isRequired
|
|
33
33
|
};
|
|
@@ -404,7 +404,7 @@ FieldValueSelectionFilter.propTypes = {
|
|
|
404
404
|
field: PropTypes.string,
|
|
405
405
|
name: PropTypes.string.isRequired,
|
|
406
406
|
/**
|
|
407
|
-
* See
|
|
407
|
+
* See {@link FieldValueOptionType}
|
|
408
408
|
*/
|
|
409
409
|
options: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({
|
|
410
410
|
field: PropTypes.string,
|
|
@@ -93,7 +93,7 @@ FieldValueToggleGroupFilter.propTypes = {
|
|
|
93
93
|
type: PropTypes.oneOf(["field_value_toggle_group"]).isRequired,
|
|
94
94
|
field: PropTypes.string.isRequired,
|
|
95
95
|
/**
|
|
96
|
-
* See
|
|
96
|
+
* See {@link FieldValueToggleGroupFilterItemType}
|
|
97
97
|
*/
|
|
98
98
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
99
99
|
value: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired, PropTypes.bool.isRequired]).isRequired,
|
|
@@ -310,7 +310,7 @@ EuiSearchBar.propTypes = {
|
|
|
310
310
|
}).isRequired, PropTypes.bool.isRequired])
|
|
311
311
|
}),
|
|
312
312
|
/**
|
|
313
|
-
An array of search filters. See
|
|
313
|
+
An array of search filters. See {@link SearchFilterConfig}.
|
|
314
314
|
*/
|
|
315
315
|
filters: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
|
|
316
316
|
type: PropTypes.oneOf(["is"]).isRequired,
|
|
@@ -323,7 +323,7 @@ EuiSearchBar.propTypes = {
|
|
|
323
323
|
field: PropTypes.string,
|
|
324
324
|
name: PropTypes.string.isRequired,
|
|
325
325
|
/**
|
|
326
|
-
* See
|
|
326
|
+
* See {@link FieldValueOptionType}
|
|
327
327
|
*/
|
|
328
328
|
options: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({
|
|
329
329
|
field: PropTypes.string,
|
|
@@ -379,7 +379,7 @@ EuiSearchBar.propTypes = {
|
|
|
379
379
|
type: PropTypes.oneOf(["field_value_toggle_group"]).isRequired,
|
|
380
380
|
field: PropTypes.string.isRequired,
|
|
381
381
|
/**
|
|
382
|
-
* See
|
|
382
|
+
* See {@link FieldValueToggleGroupFilterItemType}
|
|
383
383
|
*/
|
|
384
384
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
385
385
|
value: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired, PropTypes.bool.isRequired]).isRequired,
|
|
@@ -71,7 +71,7 @@ EuiSearchBarFilters.propTypes = {
|
|
|
71
71
|
field: PropTypes.string,
|
|
72
72
|
name: PropTypes.string.isRequired,
|
|
73
73
|
/**
|
|
74
|
-
* See
|
|
74
|
+
* See {@link FieldValueOptionType}
|
|
75
75
|
*/
|
|
76
76
|
options: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.shape({
|
|
77
77
|
field: PropTypes.string,
|
|
@@ -127,7 +127,7 @@ EuiSearchBarFilters.propTypes = {
|
|
|
127
127
|
type: PropTypes.oneOf(["field_value_toggle_group"]).isRequired,
|
|
128
128
|
field: PropTypes.string.isRequired,
|
|
129
129
|
/**
|
|
130
|
-
* See
|
|
130
|
+
* See {@link FieldValueToggleGroupFilterItemType}
|
|
131
131
|
*/
|
|
132
132
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
133
133
|
value: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired, PropTypes.bool.isRequired]).isRequired,
|
|
@@ -48,15 +48,16 @@ import { EuiSelectableList } from './selectable_list';
|
|
|
48
48
|
import { createPartialStringEqualityOptionMatcher, getMatchingOptions } from './matching_options';
|
|
49
49
|
import { euiSelectableStyles as styles } from './selectable.styles';
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
/**
|
|
52
|
+
* The `searchable` prop has significant implications for a11y. When present, we effectively change from adhering to the
|
|
53
|
+
* - ARIA `listbox` spec (@see https://www.w3.org/TR/wai-aria-practices-1.2/#Listbox)
|
|
54
|
+
* - ARIA `combobox` spec (@see https://www.w3.org/TR/wai-aria-practices-1.2/#combobox)
|
|
55
|
+
*
|
|
56
|
+
* and (re)implement all relevant attributes and keyboard interactions.
|
|
57
|
+
* Take note of logic that relies on `searchable` to ensure that any modifications remain in alignment.
|
|
58
|
+
*
|
|
59
|
+
* `searchProps` can only be specified when `searchable` is `true`.
|
|
60
|
+
*/
|
|
60
61
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
61
62
|
export var EuiSelectable = /*#__PURE__*/function (_Component) {
|
|
62
63
|
function EuiSelectable(props) {
|
|
@@ -592,7 +593,7 @@ EuiSelectable.propTypes = {
|
|
|
592
593
|
searchable: PropTypes.oneOfType([PropTypes.oneOf([false]).isRequired, PropTypes.oneOf([true]).isRequired]).isRequired,
|
|
593
594
|
/**
|
|
594
595
|
* Passes props down to the `EuiFieldSearch`.
|
|
595
|
-
*
|
|
596
|
+
* {@link EuiSelectableSearchProps}
|
|
596
597
|
*/
|
|
597
598
|
searchProps: PropTypes.any,
|
|
598
599
|
/**
|
|
@@ -601,7 +602,7 @@ EuiSelectable.propTypes = {
|
|
|
601
602
|
*/
|
|
602
603
|
children: PropTypes.func,
|
|
603
604
|
/**
|
|
604
|
-
* Array of EuiSelectableOption objects. See
|
|
605
|
+
* Array of EuiSelectableOption objects. See {@link EuiSelectableOption}
|
|
605
606
|
*/
|
|
606
607
|
options: PropTypes.arrayOf(PropTypes.shape({
|
|
607
608
|
/**
|
|
@@ -706,7 +707,7 @@ EuiSelectable.propTypes = {
|
|
|
706
707
|
*/
|
|
707
708
|
height: PropTypes.oneOfType([PropTypes.number.isRequired, PropTypes.oneOf(["full"])]),
|
|
708
709
|
/**
|
|
709
|
-
* See
|
|
710
|
+
* See {@link EuiSelectableOptionsListPropsWithDefaults}
|
|
710
711
|
*/
|
|
711
712
|
listProps: PropTypes.any,
|
|
712
713
|
/**
|
|
@@ -227,8 +227,8 @@ export var EuiSelectableTemplateSitewide = function EuiSelectableTemplateSitewid
|
|
|
227
227
|
};
|
|
228
228
|
EuiSelectableTemplateSitewide.propTypes = {
|
|
229
229
|
/**
|
|
230
|
-
* Extends the typical
|
|
231
|
-
* such as `icon`, `avatar`and `meta`
|
|
230
|
+
* Extends the typical EuiSelectable {@link EuiSelectableTemplateSitewideOption} with the addition of pre-composed elements
|
|
231
|
+
* such as `icon`, `avatar` and `meta`
|
|
232
232
|
*/
|
|
233
233
|
options: PropTypes.arrayOf(PropTypes.shape({
|
|
234
234
|
/**
|
|
@@ -326,7 +326,7 @@ EuiSelectableTemplateSitewide.propTypes = {
|
|
|
326
326
|
isDisabled: PropTypes.bool
|
|
327
327
|
}),
|
|
328
328
|
/**
|
|
329
|
-
* An array of inline
|
|
329
|
+
* An array of inline {@link EuiSelectableTemplateSitewideMetaData} displayed beneath the label and separated by bullets.
|
|
330
330
|
*/
|
|
331
331
|
meta: PropTypes.arrayOf(PropTypes.shape({
|
|
332
332
|
/**
|
|
@@ -200,7 +200,7 @@ EuiSideNavClass.propTypes = {
|
|
|
200
200
|
*/
|
|
201
201
|
heading: PropTypes.node,
|
|
202
202
|
/**
|
|
203
|
-
* Adds a couple extra
|
|
203
|
+
* Adds a couple extra {@link EuiSideNavHeading} props and extends the props of EuiTitle that wraps the `heading`
|
|
204
204
|
*/
|
|
205
205
|
headingProps: PropTypes.any,
|
|
206
206
|
/**
|
|
@@ -221,7 +221,7 @@ EuiSideNavClass.propTypes = {
|
|
|
221
221
|
*/
|
|
222
222
|
mobileBreakpoints: PropTypes.arrayOf(PropTypes.any.isRequired),
|
|
223
223
|
/**
|
|
224
|
-
* An array of
|
|
224
|
+
* An array of {@link EuiSideNavItem} objects. Lists navigation menu items.
|
|
225
225
|
*/
|
|
226
226
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
227
227
|
/**
|
|
@@ -124,7 +124,7 @@ EuiTableRowCell.propTypes = {
|
|
|
124
124
|
isExpander: PropTypes.bool,
|
|
125
125
|
/**
|
|
126
126
|
* Mobile options for displaying differently at small screens;
|
|
127
|
-
* See
|
|
127
|
+
* See {@link EuiTableRowCellMobileOptionsShape}
|
|
128
128
|
*/
|
|
129
129
|
mobileOptions: PropTypes.shape({
|
|
130
130
|
/**
|
|
@@ -45,7 +45,7 @@ export var EuiTimeline = function EuiTimeline(_ref) {
|
|
|
45
45
|
};
|
|
46
46
|
EuiTimeline.propTypes = {
|
|
47
47
|
/**
|
|
48
|
-
* List of timeline items to render. See
|
|
48
|
+
* List of timeline items to render. See {@link EuiTimelineItem}
|
|
49
49
|
*/
|
|
50
50
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
51
51
|
/**
|
|
@@ -7,6 +7,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
11
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
13
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
10
14
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
11
15
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
16
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -58,10 +62,10 @@ export var EuiGlobalToastList = function EuiGlobalToastList(_ref) {
|
|
|
58
62
|
_useState2 = _slicedToArray(_useState, 2),
|
|
59
63
|
toastIdToDismissedMap = _useState2[0],
|
|
60
64
|
setToastIdToDismissedMap = _useState2[1];
|
|
61
|
-
var _useState3 = useState(),
|
|
65
|
+
var _useState3 = useState([]),
|
|
62
66
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
toastsToDismiss = _useState4[0],
|
|
68
|
+
setToastsToDismiss = _useState4[1];
|
|
65
69
|
var prevToasts = useRef([]);
|
|
66
70
|
var dismissTimeoutIds = useRef([]);
|
|
67
71
|
var toastIdToTimerMap = useRef({});
|
|
@@ -135,7 +139,9 @@ export var EuiGlobalToastList = function EuiGlobalToastList(_ref) {
|
|
|
135
139
|
var dismissToast = useCallback(function (toast) {
|
|
136
140
|
// Remove the toast after it's done fading out.
|
|
137
141
|
dismissTimeoutIds.current.push(window.setTimeout(function () {
|
|
138
|
-
|
|
142
|
+
setToastsToDismiss(function (toasts) {
|
|
143
|
+
return [].concat(_toConsumableArray(toasts), [toast]);
|
|
144
|
+
});
|
|
139
145
|
}, TOAST_FADE_OUT_MS));
|
|
140
146
|
setToastIdToDismissedMap(function (prev) {
|
|
141
147
|
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, toast.id, true));
|
|
@@ -205,22 +211,23 @@ export var EuiGlobalToastList = function EuiGlobalToastList(_ref) {
|
|
|
205
211
|
// Toast dismissal side effect
|
|
206
212
|
// Ensure the callback has correct state by not enclosing it in `setTimeout`
|
|
207
213
|
useEffect(function () {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
214
|
+
toastsToDismiss.forEach(function (toast) {
|
|
215
|
+
// Because this is triggered by a setTimeout, and because React does not guarantee when
|
|
216
|
+
// state updates happen, it is possible to double-dismiss a toast
|
|
217
|
+
// including by double-clicking the "x" button on the toast
|
|
218
|
+
// so, first check to make sure we haven't already dismissed this toast
|
|
219
|
+
if (toast && toastIdToTimerMap.current.hasOwnProperty(toast.id)) {
|
|
220
|
+
dismissToastProp(toast);
|
|
221
|
+
toastIdToTimerMap.current[toast.id].clear();
|
|
222
|
+
delete toastIdToTimerMap.current[toast.id];
|
|
223
|
+
setToastIdToDismissedMap(function (prev) {
|
|
224
|
+
var toastIdToDismissedMap = _objectSpread({}, prev);
|
|
225
|
+
delete toastIdToDismissedMap[toast.id];
|
|
226
|
+
return toastIdToDismissedMap;
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}, [toastsToDismiss, dismissToastProp]);
|
|
224
231
|
var renderedToasts = useMemo(function () {
|
|
225
232
|
return toasts.map(function (toast) {
|
|
226
233
|
var text = toast.text,
|
|
@@ -207,7 +207,7 @@ EuiTourStep.propTypes = {
|
|
|
207
207
|
*/
|
|
208
208
|
panelStyle: PropTypes.any,
|
|
209
209
|
/**
|
|
210
|
-
* Object of props passed to EuiPanel. See
|
|
210
|
+
* Object of props passed to EuiPanel. See {@link EuiPopoverPanelProps}
|
|
211
211
|
*/
|
|
212
212
|
panelProps: PropTypes.shape({
|
|
213
213
|
element: PropTypes.oneOf(["div"]),
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { EuiVisColorStore } from '@elastic/eui-theme-common';
|
|
10
|
-
import { colorVis } from '
|
|
10
|
+
import { colorVis } from '../../themes/amsterdam/global_styling/variables/_colors_vis';
|
|
11
11
|
|
|
12
12
|
// initialsetup of Vis color storage with default colors
|
|
13
13
|
export var EUI_VIS_COLOR_STORE = EuiVisColorStore.getInstance(colorVis, true);
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { createContext } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeAmsterdam } from '../../themes/amsterdam/theme';
|
|
11
11
|
import { DEFAULT_COLOR_MODE, getComputed } from './utils';
|
|
12
12
|
export var DEFAULTS = {
|
|
13
|
-
system:
|
|
13
|
+
system: EuiThemeAmsterdam,
|
|
14
14
|
modifications: {},
|
|
15
15
|
colorMode: DEFAULT_COLOR_MODE,
|
|
16
16
|
highContrastMode: false
|
|
@@ -8,6 +8,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import React, { forwardRef, useContext, useMemo } from 'react';
|
|
11
|
+
import { COLOR_MODES_STANDARD } from '@elastic/eui-theme-common';
|
|
11
12
|
import { EuiThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext, defaultComputedTheme, EuiNestedThemeContext } from './context';
|
|
12
13
|
import { emitEuiProviderWarning } from './warning';
|
|
13
14
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -83,4 +84,14 @@ export var useEuiThemeCSSVariables = function useEuiThemeCSSVariables() {
|
|
|
83
84
|
setNearestThemeCSSVariables: setNearestThemeCSSVariables,
|
|
84
85
|
themeCSSVariables: themeCSSVariables
|
|
85
86
|
};
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Checks whether the current active `colorMode` is set to `DARK`;
|
|
91
|
+
* In case of nested providers this returns the value of the nearest provider context.
|
|
92
|
+
*/
|
|
93
|
+
export var useIsDarkMode = function useIsDarkMode() {
|
|
94
|
+
var _useEuiTheme = useEuiTheme(),
|
|
95
|
+
colorMode = _useEuiTheme.colorMode;
|
|
96
|
+
return colorMode === COLOR_MODES_STANDARD.dark;
|
|
86
97
|
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export { EuiSystemContext, EuiThemeContext, EuiNestedThemeContext, EuiModificationsContext, EuiColorModeContext, EuiHighContrastModeContext } from './context';
|
|
10
|
-
export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables } from './hooks';
|
|
10
|
+
export { useEuiTheme, withEuiTheme, RenderWithEuiTheme, useEuiThemeCSSVariables, useIsDarkMode } from './hooks';
|
|
11
11
|
export { EuiThemeProvider } from './provider';
|
|
12
12
|
export { useEuiMemoizedStyles, withEuiStylesMemoizer, RenderWithEuiStylesMemoizer } from './style_memoization';
|
|
13
13
|
export { getEuiDevProviderWarning, setEuiDevProviderWarning } from './warning';
|