@elastic/eui 99.2.0-borealis.0 → 99.3.0-borealis.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_borealis_light.json +2 -2
- package/es/components/accordion/accordion.js +2 -1
- package/es/components/accordion/accordion_children/accordion_children.js +20 -7
- package/es/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/es/components/basic_table/basic_table.js +135 -2
- package/es/components/basic_table/in_memory_table.js +131 -1
- package/es/components/bottom_bar/bottom_bar.styles.js +1 -1
- package/es/components/button/button_icon/button_icon.styles.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/call_out/call_out.styles.js +5 -4
- package/es/components/code/code.styles.js +1 -1
- package/es/components/code/code_syntax.styles.js +1 -0
- package/es/components/code/utils.js +5 -2
- package/es/components/datagrid/data_grid.stories.utils.js +0 -1090
- package/es/components/date_picker/date_picker.styles.js +1 -1
- package/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/es/components/date_picker/react_date_picker.styles.js +1 -1
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/es/components/expression/expression.styles.js +13 -13
- package/es/components/flyout/_flyout_close_button.styles.js +1 -1
- package/es/components/flyout/flyout.styles.js +1 -1
- package/es/components/header/header.styles.js +1 -1
- package/es/components/image/image.styles.js +1 -1
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/inline_edit/inline_edit_form.js +4 -4
- package/es/components/inline_edit/inline_edit_text.js +4 -4
- package/es/components/inline_edit/inline_edit_title.js +4 -4
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/es/components/link/link.styles.js +6 -6
- package/es/components/modal/modal.styles.js +1 -1
- package/es/components/page_template/inner/page_inner.styles.js +1 -1
- package/es/components/pagination/pagination.styles.js +2 -2
- package/es/components/panel/panel.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.styles.js +1 -1
- package/es/components/resizable_container/resizable_collapse_button.styles.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/es/components/side_nav/side_nav_item.styles.js +5 -5
- package/es/components/stat/stat.styles.js +5 -5
- package/es/components/table/table_cells_shared.styles.js +2 -2
- package/es/components/table/table_header_cell.js +76 -4
- package/es/components/table/table_row.styles.js +1 -1
- package/es/components/tabs/tab.styles.js +2 -2
- package/es/components/text_diff/text_diff.styles.js +1 -1
- package/es/components/toast/toast.styles.js +1 -1
- package/es/components/tool_tip/tool_tip.styles.js +1 -1
- package/es/global_styling/mixins/_shadow.js +31 -0
- package/es/global_styling/mixins/index.js +2 -1
- package/es/global_styling/reset/global_styles.js +1 -1
- package/es/themes/amsterdam/global_styling/functions/shadows.js +1 -10
- package/es/themes/amsterdam/global_styling/mixins/shadow.js +1 -146
- package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +1 -7
- package/es/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/eui.d.ts +17078 -17082
- package/i18ntokens.json +36 -36
- package/lib/components/accordion/accordion.js +2 -1
- package/lib/components/accordion/accordion_children/accordion_children.js +19 -6
- package/lib/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/lib/components/basic_table/basic_table.js +135 -2
- package/lib/components/basic_table/in_memory_table.js +131 -1
- package/lib/components/bottom_bar/bottom_bar.styles.js +2 -2
- package/lib/components/button/button_icon/button_icon.styles.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/call_out/call_out.styles.js +5 -4
- package/lib/components/code/code.styles.js +1 -1
- package/lib/components/code/code_syntax.styles.js +1 -0
- package/lib/components/code/utils.js +6 -1
- package/lib/components/datagrid/data_grid.stories.utils.js +1 -1092
- package/lib/components/date_picker/date_picker.styles.js +2 -2
- package/lib/components/date_picker/date_picker_range.styles.js +2 -2
- package/lib/components/date_picker/react_date_picker.styles.js +2 -2
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/lib/components/expression/expression.styles.js +13 -13
- package/lib/components/flyout/_flyout_close_button.styles.js +2 -2
- package/lib/components/flyout/flyout.styles.js +2 -2
- package/lib/components/header/header.styles.js +2 -2
- package/lib/components/image/image.styles.js +2 -2
- package/lib/components/image/image_button.styles.js +3 -3
- package/lib/components/inline_edit/inline_edit_form.js +4 -4
- package/lib/components/inline_edit/inline_edit_text.js +4 -4
- package/lib/components/inline_edit/inline_edit_title.js +4 -4
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/lib/components/link/link.styles.js +6 -6
- package/lib/components/modal/modal.styles.js +3 -3
- package/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/lib/components/pagination/pagination.styles.js +2 -2
- package/lib/components/panel/panel.styles.js +3 -3
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/lib/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/lib/components/side_nav/side_nav_item.styles.js +5 -5
- package/lib/components/stat/stat.styles.js +5 -5
- package/lib/components/table/table_cells_shared.styles.js +2 -2
- package/lib/components/table/table_header_cell.js +79 -8
- package/lib/components/table/table_row.styles.js +2 -2
- package/lib/components/tabs/tab.styles.js +2 -2
- package/lib/components/text_diff/text_diff.styles.js +1 -1
- package/lib/components/toast/toast.styles.js +2 -2
- package/lib/components/tool_tip/tool_tip.styles.js +2 -2
- package/lib/global_styling/mixins/_shadow.js +84 -0
- package/lib/global_styling/mixins/index.js +11 -0
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/lib/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/lib/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/lib/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/optimize/es/components/accordion/accordion.js +2 -1
- package/optimize/es/components/accordion/accordion_children/accordion_children.js +20 -7
- package/optimize/es/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/optimize/es/components/basic_table/basic_table.js +4 -1
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -1
- package/optimize/es/components/button/button_icon/button_icon.styles.js +1 -1
- package/optimize/es/components/call_out/call_out.js +1 -1
- package/optimize/es/components/call_out/call_out.styles.js +5 -4
- package/optimize/es/components/code/code.styles.js +1 -1
- package/optimize/es/components/code/code_syntax.styles.js +1 -0
- package/optimize/es/components/code/utils.js +5 -2
- package/optimize/es/components/datagrid/data_grid.stories.utils.js +0 -18
- package/optimize/es/components/date_picker/date_picker.styles.js +1 -1
- package/optimize/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/optimize/es/components/date_picker/react_date_picker.styles.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/optimize/es/components/expression/expression.styles.js +13 -13
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -1
- package/optimize/es/components/flyout/flyout.styles.js +1 -1
- package/optimize/es/components/header/header.styles.js +1 -1
- package/optimize/es/components/image/image.styles.js +1 -1
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/optimize/es/components/link/link.styles.js +6 -6
- package/optimize/es/components/modal/modal.styles.js +1 -1
- package/optimize/es/components/page_template/inner/page_inner.styles.js +1 -1
- package/optimize/es/components/pagination/pagination.styles.js +2 -2
- package/optimize/es/components/panel/panel.styles.js +1 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +1 -1
- package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/optimize/es/components/side_nav/side_nav_item.styles.js +5 -5
- package/optimize/es/components/stat/stat.styles.js +5 -5
- package/optimize/es/components/table/table_cells_shared.styles.js +2 -2
- package/optimize/es/components/table/table_header_cell.js +14 -3
- package/optimize/es/components/table/table_row.styles.js +1 -1
- package/optimize/es/components/tabs/tab.styles.js +2 -2
- package/optimize/es/components/text_diff/text_diff.styles.js +1 -1
- package/optimize/es/components/toast/toast.styles.js +1 -1
- package/optimize/es/components/tool_tip/tool_tip.styles.js +1 -1
- package/optimize/es/global_styling/mixins/_shadow.js +31 -0
- package/optimize/es/global_styling/mixins/index.js +2 -1
- package/optimize/es/global_styling/reset/global_styles.js +1 -1
- package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +1 -10
- package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +1 -146
- package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +1 -7
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/optimize/lib/components/accordion/accordion.js +2 -1
- package/optimize/lib/components/accordion/accordion_children/accordion_children.js +19 -6
- package/optimize/lib/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/optimize/lib/components/basic_table/basic_table.js +4 -1
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -2
- package/optimize/lib/components/button/button_icon/button_icon.styles.js +1 -1
- package/optimize/lib/components/call_out/call_out.js +1 -1
- package/optimize/lib/components/call_out/call_out.styles.js +5 -4
- package/optimize/lib/components/code/code.styles.js +1 -1
- package/optimize/lib/components/code/code_syntax.styles.js +1 -0
- package/optimize/lib/components/code/utils.js +6 -1
- package/optimize/lib/components/datagrid/data_grid.stories.utils.js +1 -19
- package/optimize/lib/components/date_picker/date_picker.styles.js +2 -2
- package/optimize/lib/components/date_picker/date_picker_range.styles.js +2 -2
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +2 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/optimize/lib/components/expression/expression.styles.js +13 -13
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +2 -2
- package/optimize/lib/components/flyout/flyout.styles.js +2 -2
- package/optimize/lib/components/header/header.styles.js +2 -2
- package/optimize/lib/components/image/image.styles.js +2 -2
- package/optimize/lib/components/image/image_button.styles.js +3 -3
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/optimize/lib/components/link/link.styles.js +6 -6
- package/optimize/lib/components/modal/modal.styles.js +3 -3
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/lib/components/pagination/pagination.styles.js +2 -2
- package/optimize/lib/components/panel/panel.styles.js +3 -3
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/optimize/lib/components/side_nav/side_nav_item.styles.js +5 -5
- package/optimize/lib/components/stat/stat.styles.js +5 -5
- package/optimize/lib/components/table/table_cells_shared.styles.js +2 -2
- package/optimize/lib/components/table/table_header_cell.js +14 -3
- package/optimize/lib/components/table/table_row.styles.js +2 -2
- package/optimize/lib/components/tabs/tab.styles.js +2 -2
- package/optimize/lib/components/text_diff/text_diff.styles.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +2 -2
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +2 -2
- package/optimize/lib/global_styling/mixins/_shadow.js +84 -0
- package/optimize/lib/global_styling/mixins/index.js +11 -0
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/package.json +5 -4
- package/src/global_styling/functions/_colors.scss +3 -3
- package/src/global_styling/mixins/_shadow.scss +1 -1
- package/src/global_styling/mixins/_typography.scss +2 -2
- package/src/global_styling/variables/_index.scss +0 -1
- package/test-env/components/accordion/accordion.js +2 -1
- package/test-env/components/accordion/accordion_children/accordion_children.js +19 -6
- package/test-env/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/test-env/components/basic_table/basic_table.js +135 -2
- package/test-env/components/basic_table/in_memory_table.js +131 -1
- package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -2
- package/test-env/components/button/button_icon/button_icon.styles.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/call_out/call_out.styles.js +5 -4
- package/test-env/components/code/code.styles.js +1 -1
- package/test-env/components/code/code_syntax.styles.js +1 -0
- package/test-env/components/code/utils.js +6 -1
- package/test-env/components/datagrid/data_grid.stories.utils.js +1 -1091
- package/test-env/components/date_picker/date_picker.styles.js +2 -2
- package/test-env/components/date_picker/date_picker_range.styles.js +2 -2
- package/test-env/components/date_picker/react_date_picker.styles.js +2 -2
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/test-env/components/expression/expression.styles.js +13 -13
- package/test-env/components/flyout/_flyout_close_button.styles.js +2 -2
- package/test-env/components/flyout/flyout.styles.js +2 -2
- package/test-env/components/header/header.styles.js +2 -2
- package/test-env/components/image/image.styles.js +2 -2
- package/test-env/components/image/image_button.styles.js +3 -3
- package/test-env/components/inline_edit/inline_edit_form.js +4 -4
- package/test-env/components/inline_edit/inline_edit_text.js +4 -4
- package/test-env/components/inline_edit/inline_edit_title.js +4 -4
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/test-env/components/link/link.styles.js +6 -6
- package/test-env/components/modal/modal.styles.js +3 -3
- package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
- package/test-env/components/pagination/pagination.styles.js +2 -2
- package/test-env/components/panel/panel.styles.js +3 -3
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/test-env/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/test-env/components/side_nav/side_nav_item.styles.js +5 -5
- package/test-env/components/stat/stat.styles.js +5 -5
- package/test-env/components/table/table_cells_shared.styles.js +2 -2
- package/test-env/components/table/table_header_cell.js +76 -4
- package/test-env/components/table/table_row.styles.js +2 -2
- package/test-env/components/tabs/tab.styles.js +2 -2
- package/test-env/components/text_diff/text_diff.styles.js +1 -1
- package/test-env/components/toast/toast.styles.js +2 -2
- package/test-env/components/tool_tip/tool_tip.styles.js +2 -2
- package/test-env/global_styling/mixins/_shadow.js +84 -0
- package/test-env/global_styling/mixins/index.js +11 -0
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/test-env/services/breakpoint/current_breakpoint_hook.js +3 -3
- package/test-env/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/es/global_styling/variables/_colors_vis.js +0 -9
- package/lib/global_styling/variables/_colors_vis.js +0 -12
- package/optimize/es/global_styling/variables/_colors_vis.js +0 -9
- package/optimize/lib/global_styling/variables/_colors_vis.js +0 -12
- package/src/global_styling/variables/_colors_vis.scss +0 -3
- package/test-env/global_styling/variables/_colors_vis.js +0 -12
|
@@ -123,7 +123,8 @@ export var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
123
123
|
paddingSize: paddingSize,
|
|
124
124
|
isLoading: isLoading,
|
|
125
125
|
isLoadingMessage: isLoadingMessage,
|
|
126
|
-
isOpen: this.isOpen
|
|
126
|
+
isOpen: this.isOpen,
|
|
127
|
+
initialIsOpen: initialIsOpen
|
|
127
128
|
}, children));
|
|
128
129
|
}
|
|
129
130
|
}]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["role", "children", "paddingSize", "isLoading", "isLoadingMessage", "isOpen"];
|
|
4
|
+
var _excluded = ["role", "children", "paddingSize", "isLoading", "isLoadingMessage", "isOpen", "initialIsOpen"];
|
|
5
5
|
/*
|
|
6
6
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
7
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -10,7 +10,7 @@ var _excluded = ["role", "children", "paddingSize", "isLoading", "isLoadingMessa
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import React, { useCallback, useMemo, useState } from 'react';
|
|
13
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
import { useEuiTheme } from '../../../services';
|
|
16
16
|
import { EuiResizeObserver } from '../../observer/resize_observer';
|
|
@@ -24,6 +24,7 @@ export var EuiAccordionChildren = function EuiAccordionChildren(_ref) {
|
|
|
24
24
|
isLoading = _ref.isLoading,
|
|
25
25
|
isLoadingMessage = _ref.isLoadingMessage,
|
|
26
26
|
isOpen = _ref.isOpen,
|
|
27
|
+
initialIsOpen = _ref.initialIsOpen,
|
|
27
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
29
|
/**
|
|
29
30
|
* Children
|
|
@@ -38,17 +39,29 @@ export var EuiAccordionChildren = function EuiAccordionChildren(_ref) {
|
|
|
38
39
|
/**
|
|
39
40
|
* Wrapper
|
|
40
41
|
*/
|
|
42
|
+
var _useState = useState(false),
|
|
43
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
44
|
+
hasTransition = _useState2[0],
|
|
45
|
+
setHasTransition = _useState2[1];
|
|
41
46
|
var wrapperStyles = euiAccordionChildWrapperStyles(euiTheme);
|
|
42
|
-
var wrapperCssStyles = [wrapperStyles.euiAccordion__childWrapper, isOpen ? wrapperStyles.isOpen : wrapperStyles.isClosed];
|
|
47
|
+
var wrapperCssStyles = [wrapperStyles.euiAccordion__childWrapper, isOpen ? wrapperStyles.isOpen : wrapperStyles.isClosed, initialIsOpen && !hasTransition && isOpen && wrapperStyles.noTransition];
|
|
48
|
+
|
|
49
|
+
/* Controls enabling opening/closing transitions on first interaction
|
|
50
|
+
when initialIsOpen=true; this only runs once */
|
|
51
|
+
useEffect(function () {
|
|
52
|
+
if (initialIsOpen && !isOpen && !hasTransition) {
|
|
53
|
+
setHasTransition(true);
|
|
54
|
+
}
|
|
55
|
+
}, [isOpen, initialIsOpen, hasTransition]);
|
|
43
56
|
|
|
44
57
|
/**
|
|
45
58
|
* Update the accordion wrapper height whenever the accordion opens, and also
|
|
46
59
|
* whenever the child content updates (which will change the height)
|
|
47
60
|
*/
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
contentHeight =
|
|
51
|
-
setContentHeight =
|
|
61
|
+
var _useState3 = useState(0),
|
|
62
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
63
|
+
contentHeight = _useState4[0],
|
|
64
|
+
setContentHeight = _useState4[1];
|
|
52
65
|
var onResize = useCallback(function (_ref2) {
|
|
53
66
|
var height = _ref2.height;
|
|
54
67
|
return setContentHeight(Math.round(height));
|
|
@@ -33,6 +33,11 @@ export var euiAccordionChildWrapperStyles = function euiAccordionChildWrapperSty
|
|
|
33
33
|
var euiTheme = euiThemeContext.euiTheme;
|
|
34
34
|
return {
|
|
35
35
|
euiAccordion__childWrapper: /*#__PURE__*/css("overflow:hidden;", euiCanAnimate, "{transition:", logicals.height, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ",opacity ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";}", euiFocusRing(euiThemeContext), ";;label:euiAccordion__childWrapper;"),
|
|
36
|
+
// choosing to override transition instead of applying it conditionally
|
|
37
|
+
// to keep a more logical style appliance:
|
|
38
|
+
// default case = has transition as part of default styles (all cases expect initial isOpen=true when initialIsOpen=true)
|
|
39
|
+
// special case: no transition for initial isOpen=true when initialIsOpen=true
|
|
40
|
+
noTransition: /*#__PURE__*/css(euiCanAnimate, "{transition:none;};label:noTransition;"),
|
|
36
41
|
isClosed: /*#__PURE__*/css(logicalCSS('height', 0), " opacity:0;;label:isClosed;"),
|
|
37
42
|
isOpen: /*#__PURE__*/css(logicalCSS('height', 'auto'), " opacity:1;;label:isOpen;")
|
|
38
43
|
};
|
|
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
9
9
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
11
11
|
var _excluded = ["className", "loading", "items", "itemId", "columns", "pagination", "sorting", "selection", "onChange", "error", "noItemsMessage", "compressed", "itemIdToExpandedRowMap", "responsiveBreakpoint", "rowProps", "cellProps", "tableCaption", "rowHeader", "tableLayout"],
|
|
12
|
-
_excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions"];
|
|
12
|
+
_excluded2 = ["align", "render", "dataType", "isExpander", "textOnly", "name", "field", "description", "sortable", "footer", "mobileOptions", "nameTooltip"];
|
|
13
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
15
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
@@ -498,6 +498,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
498
498
|
field = _ref8.field,
|
|
499
499
|
width = _ref8.width,
|
|
500
500
|
name = _ref8.name,
|
|
501
|
+
nameTooltip = _ref8.nameTooltip,
|
|
501
502
|
align = _ref8.align,
|
|
502
503
|
dataType = _ref8.dataType,
|
|
503
504
|
sortable = _ref8.sortable,
|
|
@@ -507,6 +508,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
507
508
|
var columnAlign = align || _this3.getAlignForDataType(dataType);
|
|
508
509
|
var sharedProps = {
|
|
509
510
|
width: width,
|
|
511
|
+
tooltipProps: nameTooltip,
|
|
510
512
|
description: description,
|
|
511
513
|
mobileOptions: mobileOptions,
|
|
512
514
|
align: columnAlign,
|
|
@@ -882,6 +884,7 @@ export var EuiBasicTable = /*#__PURE__*/function (_Component) {
|
|
|
882
884
|
sortable = _ref11.sortable,
|
|
883
885
|
footer = _ref11.footer,
|
|
884
886
|
mobileOptions = _ref11.mobileOptions,
|
|
887
|
+
nameTooltip = _ref11.nameTooltip,
|
|
885
888
|
rest = _objectWithoutProperties(_ref11, _excluded2);
|
|
886
889
|
var columnAlign = align || this.getAlignForDataType(dataType);
|
|
887
890
|
var cellPropsCallback = this.props.cellProps;
|
|
@@ -9,8 +9,8 @@ var _templateObject;
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
|
+
import { euiShadowFlat } from '@elastic/eui-theme-common';
|
|
12
13
|
import { euiCanAnimate } from '../../global_styling';
|
|
13
|
-
import { euiShadowFlat } from '../../themes/amsterdam/global_styling/mixins';
|
|
14
14
|
var euiBottomBarAppear = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translateY(100%);\n opacity: 0;\n }\n\n 100% {\n transform: translateY(0%);\n opacity: 1;\n }\n"])));
|
|
15
15
|
export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
|
|
16
16
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -12,7 +12,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
12
12
|
|
|
13
13
|
import { css } from '@emotion/react';
|
|
14
14
|
import { logicalSizeCSS } from '../../../global_styling';
|
|
15
|
-
import { BUTTON_COLORS, euiButtonEmptyColor, euiButtonSizeMap } from '../../../
|
|
15
|
+
import { BUTTON_COLORS, euiButtonEmptyColor, euiButtonSizeMap } from '../../../global_styling/mixins/_button';
|
|
16
16
|
import { euiButtonBaseCSS } from '../button_display/_button_display.styles';
|
|
17
17
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
18
18
|
name: "8595p9-isDisabled",
|
|
@@ -22,7 +22,7 @@ import { EuiTitle } from '../title';
|
|
|
22
22
|
import { EuiI18n } from '../i18n';
|
|
23
23
|
import { euiCallOutStyles, euiCallOutHeaderStyles } from './call_out.styles';
|
|
24
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
25
|
-
export var COLORS = ['primary', 'success', 'warning', 'danger'];
|
|
25
|
+
export var COLORS = ['primary', 'success', 'warning', 'danger', 'accent'];
|
|
26
26
|
export var HEADINGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p'];
|
|
27
27
|
export var EuiCallOut = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
28
28
|
var title = _ref.title,
|
|
@@ -50,10 +50,11 @@ export var euiCallOutHeaderStyles = function euiCallOutHeaderStyles(_ref4) {
|
|
|
50
50
|
euiCallOutHeader: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.medium, ";", logicalCSS('margin-bottom', '0 !important'
|
|
51
51
|
// In case it's nested inside EuiText
|
|
52
52
|
), ";;label:euiCallOutHeader;"),
|
|
53
|
-
primary: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
54
|
-
success: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
55
|
-
warning: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
56
|
-
danger: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
53
|
+
primary: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
54
|
+
success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
55
|
+
warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"),
|
|
56
|
+
danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
57
|
+
accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
|
|
57
58
|
euiCallOut__icon: /*#__PURE__*/css("position:relative;", logicalCSS('top', '-1px'), " ", logicalCSS('margin-right', euiTheme.size.s), ";;label:euiCallOut__icon;")
|
|
58
59
|
};
|
|
59
60
|
};
|
|
@@ -25,7 +25,7 @@ export var euiCodeStyles = function euiCodeStyles(euiThemeContext) {
|
|
|
25
25
|
/*
|
|
26
26
|
* 1. Size the code against the text its embedded within.
|
|
27
27
|
*/
|
|
28
|
-
euiCode: /*#__PURE__*/css("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", logicalShorthandCSS('padding', '0.2em 0.5em'), "background:", codeSyntaxVariables.backgroundColor, ";border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.bold, ";color:", codeSyntaxVariables.inlineCodeColor, ";", codeSyntaxVariables.tokensCss, "
|
|
28
|
+
euiCode: /*#__PURE__*/css("font-family:", euiTheme.font.familyCode, ";font-size:0.9em;", logicalShorthandCSS('padding', '0.2em 0.5em'), "background:", codeSyntaxVariables.backgroundColor, ";border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.bold, ";color:", codeSyntaxVariables.inlineCodeColor, ";", codeSyntaxVariables.tokensCss, " .token.atrule .token.rule,.token.keyword{color:", codeSyntaxVariables.inlineCodeKeywordColor, ";};label:euiCode;"),
|
|
29
29
|
transparentBackground: _ref
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -21,6 +21,7 @@ export var euiCodeSyntaxVariables = function euiCodeSyntaxVariables(_ref) {
|
|
|
21
21
|
nameColor: euiTheme.components.codeNameColor,
|
|
22
22
|
numberColor: euiTheme.components.codeNumberColor,
|
|
23
23
|
keywordColor: euiTheme.components.codeKeywordColor,
|
|
24
|
+
inlineCodeKeywordColor: euiTheme.components.codeInlineCodeKeywordColor,
|
|
24
25
|
functionTitleColor: euiTheme.components.codeFunctionTitleColor,
|
|
25
26
|
typeColor: euiTheme.components.codeTypeColor,
|
|
26
27
|
attributeColor: euiTheme.components.codeAttributeColor,
|
|
@@ -10,15 +10,18 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import React, { createElement } from 'react';
|
|
13
|
-
import { listLanguages, highlight } from 'refractor';
|
|
13
|
+
import { listLanguages, highlight, register } from 'refractor';
|
|
14
14
|
import { cx } from '@emotion/css';
|
|
15
|
+
import { esql as esqlLanguage } from '@elastic/prismjs-esql';
|
|
15
16
|
import { EuiCodeBlockAnnotation } from './code_block_annotations';
|
|
16
17
|
import { euiCodeBlockLineStyles } from './code_block_line.styles';
|
|
18
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
|
+
register(esqlLanguage);
|
|
17
20
|
|
|
18
21
|
/**
|
|
19
22
|
* Utils shared between EuiCode and EuiCodeBlock
|
|
20
23
|
*/
|
|
21
|
-
|
|
24
|
+
|
|
22
25
|
export var SUPPORTED_LANGUAGES = listLanguages();
|
|
23
26
|
export var DEFAULT_LANGUAGE = 'text';
|
|
24
27
|
|
|
@@ -350,22 +350,4 @@ export var StatefulDataGrid = function StatefulDataGrid(props) {
|
|
|
350
350
|
onChangePage: onChangePage
|
|
351
351
|
})
|
|
352
352
|
}));
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
/*
|
|
356
|
-
* Components that exist purely for allowing Storybook to parse certain nested
|
|
357
|
-
* interfaces/types into specific example control tables.
|
|
358
|
-
*
|
|
359
|
-
* For whatever reason, they needs to be in a separate file for Storybook's
|
|
360
|
-
* react-typescript-docgen to parse the jsdoc comments into the controls table
|
|
361
|
-
*/
|
|
362
|
-
|
|
363
|
-
export var EuiDataGridToolbarPropsComponent = function EuiDataGridToolbarPropsComponent() {
|
|
364
|
-
return ___EmotionJSX(React.Fragment, null);
|
|
365
|
-
};
|
|
366
|
-
export var EuiDataGridStylePropsComponent = function EuiDataGridStylePropsComponent() {
|
|
367
|
-
return ___EmotionJSX(React.Fragment, null);
|
|
368
|
-
};
|
|
369
|
-
export var EuiDataGridRowHeightsPropsComponent = function EuiDataGridRowHeightsPropsComponent() {
|
|
370
|
-
return ___EmotionJSX(React.Fragment, null);
|
|
371
353
|
};
|
|
@@ -8,8 +8,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { euiShadowMedium } from '@elastic/eui-theme-common';
|
|
11
12
|
import { logicalCSS } from '../../global_styling';
|
|
12
|
-
import { euiShadowMedium } from '../../themes/amsterdam/global_styling/mixins';
|
|
13
13
|
import { euiFormControlDisabledStyles, euiFormControlReadOnlyStyles, euiFormControlDefaultShadow, euiFormControlInvalidStyles } from '../form/form.styles';
|
|
14
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
15
15
|
name: "1gj9wh1-euiDatePicker",
|
|
@@ -8,8 +8,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { euiShadowMedium } from '@elastic/eui-theme-common';
|
|
11
12
|
import { logicalCSS } from '../../global_styling';
|
|
12
|
-
import { euiShadowMedium } from '../../themes/amsterdam/global_styling/mixins';
|
|
13
13
|
export var euiDatePickerRangeStyles = {
|
|
14
14
|
euiDatePickerRange: /*#__PURE__*/css(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", logicalCSS('height', '100%'), ";}.euiPopover{flex:1;};label:euiDatePickerRange;")
|
|
15
15
|
};
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
// Needs to use vanilla `css` to pass a className directly to react-datepicker
|
|
10
10
|
import { css } from '@emotion/css';
|
|
11
|
+
import { euiShadowSmall } from '@elastic/eui-theme-common';
|
|
11
12
|
import { euiCanAnimate, euiMaxBreakpoint, euiFontSize, euiYScroll, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
12
13
|
import { euiButtonColor, euiButtonEmptyColor, euiButtonFillColor } from '../../global_styling/mixins';
|
|
13
|
-
import { euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
|
|
14
14
|
import { euiFormControlStyles, euiFormControlText, euiFormControlDefaultShadow } from '../form/form.styles';
|
|
15
15
|
export var euiDatePickerVariables = function euiDatePickerVariables(_ref) {
|
|
16
16
|
var euiTheme = _ref.euiTheme;
|
|
@@ -150,6 +150,9 @@ export var EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
|
|
|
150
150
|
value: textInputValue,
|
|
151
151
|
onChange: handleTextChange,
|
|
152
152
|
onPaste: function onPaste(event) {
|
|
153
|
+
// preventing default here ensures no additional onChange is
|
|
154
|
+
// triggered which otherwise results in input duplication
|
|
155
|
+
event.preventDefault();
|
|
153
156
|
setTextInputValue(event.clipboardData.getData('text'));
|
|
154
157
|
setIsReadyToParse(true);
|
|
155
158
|
},
|
|
@@ -70,7 +70,7 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
|
|
|
70
70
|
euiSuperDatePicker__formControlLayout: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{", euiFormControlDefaultShadow(euiThemeContext), " box-shadow:none;};label:euiSuperDatePicker__formControlLayout;"),
|
|
71
71
|
default: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{", euiFormControlDefaultShadow(euiThemeContext), " box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{--euiFormControlStateColor:", euiTheme.colors.primary, ";background-size:100% 100%;};label:default;"),
|
|
72
72
|
disabled: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{", euiFormControlDisabledStyles(euiThemeContext), ";};label:disabled;"),
|
|
73
|
-
invalid: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.
|
|
73
|
+
invalid: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";", euiFormControlInvalidStyles(euiThemeContext), ";};label:invalid;"),
|
|
74
74
|
needsUpdating: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", euiFormControlDefaultShadow(euiThemeContext), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{--euiFormControlStateColor:", euiTheme.colors.success, ";background-size:100% 100%;};label:needsUpdating;")
|
|
75
75
|
}
|
|
76
76
|
};
|
|
@@ -27,19 +27,19 @@ export var euiExpressionStyles = function euiExpressionStyles(euiThemeContext) {
|
|
|
27
27
|
isClickable: /*#__PURE__*/css("cursor:pointer;", logicalCSS('border-bottom', euiTheme.border.editable), " &[class*='-columns']{background-color:", euiTheme.colors.lightestShade, ";&:focus,&:hover:not(:disabled){[class*='euiExpression__description'],[class*='euiExpression__value']{text-decoration:underline;}}};label:isClickable;"),
|
|
28
28
|
isActive: {
|
|
29
29
|
base: /*#__PURE__*/css(logicalCSS('border-bottom-style', 'solid'), ";;label:base;"),
|
|
30
|
-
subdued: /*#__PURE__*/css("border-color:", euiTheme.colors.
|
|
30
|
+
subdued: /*#__PURE__*/css("border-color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
31
31
|
primary: /*#__PURE__*/css("border-color:", euiTheme.colors.primary, ";;label:primary;"),
|
|
32
32
|
success: /*#__PURE__*/css("border-color:", euiTheme.colors.success, ";;label:success;"),
|
|
33
33
|
warning: /*#__PURE__*/css("border-color:", euiTheme.colors.warning, ";;label:warning;"),
|
|
34
34
|
danger: /*#__PURE__*/css("border-color:", euiTheme.colors.danger, ";;label:danger;"),
|
|
35
35
|
accent: /*#__PURE__*/css("border-color:", euiTheme.colors.accent, ";;label:accent;")
|
|
36
36
|
},
|
|
37
|
-
subdued: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
38
|
-
primary: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
39
|
-
success: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
40
|
-
warning: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
41
|
-
danger: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
42
|
-
accent: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
37
|
+
subdued: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textSubdued), ";label:subdued;"),
|
|
38
|
+
primary: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textPrimary), ";label:primary;"),
|
|
39
|
+
success: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textSuccess), ";label:success;"),
|
|
40
|
+
warning: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textWarning), ";label:warning;"),
|
|
41
|
+
danger: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textDanger), ";label:danger;"),
|
|
42
|
+
accent: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textAccent), ";label:accent;")
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
@@ -55,12 +55,12 @@ export var euiExpressionDescriptionStyles = function euiExpressionDescriptionSty
|
|
|
55
55
|
return {
|
|
56
56
|
euiExpression__description: /*#__PURE__*/css(";label:euiExpression__description;"),
|
|
57
57
|
truncate: /*#__PURE__*/css(euiTextTruncate(), " display:inline-block;vertical-align:bottom;;label:truncate;"),
|
|
58
|
-
subdued: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
59
|
-
primary: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
60
|
-
success: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
61
|
-
warning: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
62
|
-
danger: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
63
|
-
accent: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
58
|
+
subdued: /*#__PURE__*/css("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
59
|
+
primary: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
60
|
+
success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
61
|
+
warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"),
|
|
62
|
+
danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
63
|
+
accent: /*#__PURE__*/css("color:", euiTheme.colors.textAccent, ";;label:accent;"),
|
|
64
64
|
isUppercase: _ref2,
|
|
65
65
|
columns: /*#__PURE__*/css(logicalTextAlignCSS('right'), " ", logicalCSS('margin-right', euiTheme.size.s), " flex-shrink:0;;label:columns;")
|
|
66
66
|
};
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { euiShadowXLarge } from '@elastic/eui-theme-common';
|
|
10
11
|
import { euiMaxBreakpoint, euiMinBreakpoint, logicalCSS } from '../../global_styling';
|
|
11
|
-
import { euiShadowXLarge } from '../../themes/amsterdam/global_styling/mixins';
|
|
12
12
|
import { FLYOUT_BREAKPOINT } from './flyout.styles';
|
|
13
13
|
export var euiFlyoutCloseButtonStyles = function euiFlyoutCloseButtonStyles(euiThemeContext) {
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -10,8 +10,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { css, keyframes } from '@emotion/react';
|
|
13
|
+
import { euiShadowXLarge } from '@elastic/eui-theme-common';
|
|
13
14
|
import { euiCanAnimate, euiMaxBreakpoint, euiMinBreakpoint, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
14
|
-
import { euiShadowXLarge } from '../../themes/amsterdam/global_styling/mixins';
|
|
15
15
|
import { euiFormMaxWidth } from '../form/form.styles';
|
|
16
16
|
export var FLYOUT_BREAKPOINT = 'm';
|
|
17
17
|
export var euiFlyoutSlideInRight = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(100%);\n }\n 75% {\n opacity: 1;\n transform: translateX(0%);\n }\n"])));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { euiShadowSmall } from '
|
|
10
|
+
import { euiShadowSmall } from '@elastic/eui-theme-common';
|
|
11
11
|
import { logicalCSS } from '../../global_styling';
|
|
12
12
|
import { makeHighContrastColor } from '../../services';
|
|
13
13
|
export var euiHeaderVariables = function euiHeaderVariables(euiThemeContext) {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { euiShadow } from '@elastic/eui-theme-common';
|
|
10
11
|
import { logicalCSS } from '../../global_styling';
|
|
11
|
-
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
12
12
|
export var euiImageStyles = function euiImageStyles(euiThemeContext) {
|
|
13
13
|
return {
|
|
14
14
|
euiImage: /*#__PURE__*/css("vertical-align:middle;", logicalCSS('max-width', '100%'), " &,[class*='euiText'] &{", logicalCSS('margin-bottom', 0), ";};label:euiImage;"),
|
|
@@ -8,8 +8,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { euiShadow } from '@elastic/eui-theme-common';
|
|
11
12
|
import { euiFocusRing, logicalCSS, euiCanAnimate } from '../../global_styling';
|
|
12
|
-
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
13
13
|
export var euiImageButtonStyles = function euiImageButtonStyles(euiThemeContext) {
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
15
|
return {
|
|
@@ -7,21 +7,24 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { euiShadow } from '@elastic/eui-theme-common';
|
|
10
11
|
import { logicalCSS, logicalSizeCSS, euiCanAnimate, euiFontSize } from '../../global_styling';
|
|
11
|
-
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
12
12
|
import { euiScreenReaderOnly } from '../accessibility';
|
|
13
13
|
import { euiKeyPadMenuVariables } from './key_pad_menu.styles';
|
|
14
14
|
export var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeContext) {
|
|
15
|
+
var _euiTheme$flags;
|
|
15
16
|
var euiTheme = euiThemeContext.euiTheme;
|
|
16
17
|
var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
|
|
17
18
|
euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize;
|
|
19
|
+
var hasVisColorAdjustment = (_euiTheme$flags = euiTheme.flags) === null || _euiTheme$flags === void 0 ? void 0 : _euiTheme$flags.hasVisColorAdjustment;
|
|
20
|
+
var focusTransformStyles = "\n ".concat(euiShadow(euiThemeContext, 's'), ";\n\n ").concat(euiCanAnimate, " {\n .euiKeyPadMenuItem__icon {\n transform: translateY(0);\n }\n }\n ");
|
|
18
21
|
return {
|
|
19
|
-
euiKeyPadMenuItem: /*#__PURE__*/css("display:block;padding:", euiTheme.size.xs, ";", logicalSizeCSS(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.
|
|
20
|
-
enabled: /*#__PURE__*/css("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;",
|
|
21
|
-
selected: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
22
|
+
euiKeyPadMenuItem: /*#__PURE__*/css("display:block;padding:", euiTheme.size.xs, ";", logicalSizeCSS(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.textParagraph, ";", euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, " ease-in,box-shadow ", euiTheme.animation.fast, " ease-in;};label:euiKeyPadMenuItem;"),
|
|
23
|
+
enabled: /*#__PURE__*/css("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;", hasVisColorAdjustment ? focusTransformStyles : "background-color: ".concat(euiTheme.colors.backgroundBaseInteractiveHover), ";}&:focus{box-shadow:none;background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : euiTheme.colors.backgroundBaseInteractiveHover, ";};label:enabled;"),
|
|
24
|
+
selected: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : '', ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.textPrimary, ";background-color:", !hasVisColorAdjustment ? euiTheme.colors.backgroundBaseInteractiveSelect : '', ";};label:selected;"),
|
|
22
25
|
disabled: {
|
|
23
|
-
disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.
|
|
24
|
-
selected: /*#__PURE__*/css("background-color:", euiTheme.components.keyPadMenuItemBackgroundDisabledSelect, ";;label:selected;")
|
|
26
|
+
disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.textDisabled, ";.euiKeyPadMenuItem__icon{filter:", hasVisColorAdjustment ? 'grayscale(100%)' : '', ";svg *{fill:", euiTheme.colors.textDisabled, ";}};label:disabled;"),
|
|
27
|
+
selected: /*#__PURE__*/css("background-color:", hasVisColorAdjustment ? euiTheme.components.keyPadMenuItemBackgroundDisabledSelect : euiTheme.colors.backgroundBaseDisabled, ";;label:selected;")
|
|
25
28
|
}
|
|
26
29
|
};
|
|
27
30
|
};
|
|
@@ -27,12 +27,12 @@ export var euiLinkStyles = function euiLinkStyles(euiThemeContext) {
|
|
|
27
27
|
euiLink: /*#__PURE__*/css(euiLinkCSS(euiThemeContext), " user-select:text;&[target='_blank']{position:relative;};label:euiLink;"),
|
|
28
28
|
disabled: _ref,
|
|
29
29
|
// Color styles
|
|
30
|
-
primary: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
31
|
-
subdued: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
32
|
-
success: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
33
|
-
accent: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
34
|
-
danger: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
35
|
-
warning: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
30
|
+
primary: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textPrimary), ";label:primary;"),
|
|
31
|
+
subdued: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textSubdued), ";label:subdued;"),
|
|
32
|
+
success: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textSuccess), ";label:success;"),
|
|
33
|
+
accent: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textAccent), ";label:accent;"),
|
|
34
|
+
danger: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textDanger), ";label:danger;"),
|
|
35
|
+
warning: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textWarning), ";label:warning;"),
|
|
36
36
|
ghost: /*#__PURE__*/css(_colorCSS(euiTheme.colors.ghost), ";label:ghost;"),
|
|
37
37
|
text: /*#__PURE__*/css(_colorCSS(euiTheme.colors.text), ";label:text;")
|
|
38
38
|
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { euiShadowXLarge } from '
|
|
10
|
+
import { euiShadowXLarge } from '@elastic/eui-theme-common';
|
|
11
11
|
import { euiCanAnimate, euiMaxBreakpoint, euiAnimSlideInUp } from '../../global_styling';
|
|
12
12
|
import { euiFormVariables } from '../form/form.styles';
|
|
13
13
|
export var euiModalStyles = function euiModalStyles(euiThemeContext) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { euiShadow } from '
|
|
10
|
+
import { euiShadow } from '@elastic/eui-theme-common';
|
|
11
11
|
import { logicalCSS } from '../../../global_styling';
|
|
12
12
|
export var euiPageInnerStyles = function euiPageInnerStyles(euiThemeContext) {
|
|
13
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -23,8 +23,8 @@ export var euiPaginationStyles = function euiPaginationStyles(euiThemeContext) {
|
|
|
23
23
|
// Base
|
|
24
24
|
euiPagination: /*#__PURE__*/css(euiScrollBarStyles(euiThemeContext), " display:flex;align-items:center;", logicalCSSWithFallback('overflow-y', 'hidden'), " ", logicalCSSWithFallback('overflow-x', 'auto'), ";;label:euiPagination;"),
|
|
25
25
|
// Elements
|
|
26
|
-
euiPagination__compressedText: /*#__PURE__*/css("display:inline-flex;align-items:center;line-height:1;>span{", logicalCSS('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.
|
|
26
|
+
euiPagination__compressedText: /*#__PURE__*/css("display:inline-flex;align-items:center;line-height:1;>span{", logicalCSS('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.textPrimary, ";}};label:euiPagination__compressedText;"),
|
|
27
27
|
euiPagination__list: _ref,
|
|
28
|
-
euiPagination__ellipsis: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
28
|
+
euiPagination__ellipsis: /*#__PURE__*/css("color:", euiTheme.colors.textDisabled, ";font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";", logicalCSS('padding-horizontal', euiTheme.size.s), " ", logicalCSS('height', euiTheme.size.l), ";;label:euiPagination__ellipsis;")
|
|
29
29
|
};
|
|
30
30
|
};
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { euiShadow } from '
|
|
11
|
+
import { euiShadow } from '@elastic/eui-theme-common';
|
|
12
12
|
import { euiCanAnimate, logicalCSS, logicalTextAlignCSS } from '../../global_styling';
|
|
13
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
14
|
name: "122lw0e-grow",
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { euiShadow, euiShadowFlat, euiShadowMedium } from '
|
|
11
|
+
import { euiShadow, euiShadowFlat, euiShadowMedium } from '@elastic/eui-theme-common';
|
|
12
12
|
import { euiCanAnimate, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
13
13
|
export var openAnimationTiming = 'slow';
|
|
14
14
|
|
|
@@ -8,8 +8,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { euiShadowXSmall, euiSlightShadowHover } from '@elastic/eui-theme-common';
|
|
11
12
|
import { logicalCSS, mathWithUnits } from '../../global_styling';
|
|
12
|
-
import { euiShadowXSmall, euiSlightShadowHover } from '../../themes/amsterdam';
|
|
13
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
14
|
name: "fuwsll-euiResizableCollapseButton",
|
|
15
15
|
styles: "z-index:2;position:absolute;&:focus{animation:none;};label:euiResizableCollapseButton;"
|
|
@@ -33,7 +33,7 @@ export var euiSelectableListItemStyles = function euiSelectableListItemStyles(eu
|
|
|
33
33
|
paddingHorizontal = _euiSelectableListIte.paddingHorizontal,
|
|
34
34
|
paddingVertical = _euiSelectableListIte.paddingVertical;
|
|
35
35
|
return {
|
|
36
|
-
euiSelectableListItem: /*#__PURE__*/css("display:inline-flex;", logicalCSS('width', '100%'), " line-height:", euiFontSize(euiThemeContext, 'm').lineHeight, ";font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";text-align:start;cursor:pointer;overflow:hidden;&:not(:last-of-type){", logicalCSS('border-bottom', border), ";}&[aria-disabled='true']{color:", euiTheme.colors.
|
|
36
|
+
euiSelectableListItem: /*#__PURE__*/css("display:inline-flex;", logicalCSS('width', '100%'), " line-height:", euiFontSize(euiThemeContext, 'm').lineHeight, ";font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";text-align:start;cursor:pointer;overflow:hidden;&:not(:last-of-type){", logicalCSS('border-bottom', border), ";}&[aria-disabled='true']{color:", euiTheme.colors.textDisabled, ";cursor:not-allowed;}&:hover,&.euiSelectableListItem-isFocused{&:not([aria-disabled='true']){color:", euiTheme.colors.textPrimary, ";background-color:", euiTheme.focus.backgroundColor, ";.euiSelectableListItem__text{text-decoration:underline;}}};label:euiSelectableListItem;"),
|
|
37
37
|
padding: {
|
|
38
38
|
none: /*#__PURE__*/css(";label:none;"),
|
|
39
39
|
s: /*#__PURE__*/css(logicalCSS('padding-vertical', paddingVertical), " ", logicalCSS('padding-horizontal', paddingHorizontal), ";;label:s;")
|
|
@@ -18,11 +18,11 @@ export var euiSideNavItemStyles = function euiSideNavItemStyles(euiThemeContext)
|
|
|
18
18
|
var emphasizedBackgroundColor = euiTheme.components.sideNavItemEmphasizedBackground;
|
|
19
19
|
return {
|
|
20
20
|
euiSideNavItem: /*#__PURE__*/css(";label:euiSideNavItem;"),
|
|
21
|
-
emphasized: /*#__PURE__*/css("background-color:", emphasizedBackgroundColor, ";color:", euiTheme.colors.
|
|
21
|
+
emphasized: /*#__PURE__*/css("background-color:", emphasizedBackgroundColor, ";color:", euiTheme.colors.textHeading, ";box-shadow:100px 0 0 0 ", emphasizedBackgroundColor, ",-100px 0 0 0 ", emphasizedBackgroundColor, ";& &{background-color:transparent;box-shadow:none;};label:emphasized;"),
|
|
22
22
|
// Layout
|
|
23
23
|
root: /*#__PURE__*/css(logicalCSS('padding-bottom', euiTheme.size.s), " &+&{", logicalCSS('margin-top', euiTheme.size.s), " ", logicalCSS('padding-top', euiTheme.size.s), ";};label:root;"),
|
|
24
|
-
trunk: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
25
|
-
branch: /*#__PURE__*/css("position:relative;color:", euiTheme.colors.
|
|
24
|
+
trunk: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";;label:trunk;"),
|
|
25
|
+
branch: /*#__PURE__*/css("position:relative;color:", euiTheme.colors.textSubdued, ";&::after{position:absolute;content:'';", logicalCSS('vertical', 0), " ", logicalCSS('left', 0), " ", logicalCSS('width', euiTheme.border.width.thin), " background-color:", euiTheme.border.color, ";}&:last-of-type::after{", logicalCSS('height', euiTheme.size.m), ";};label:branch;"),
|
|
26
26
|
items: {
|
|
27
27
|
euiSideNavItem__items: /*#__PURE__*/css(";label:euiSideNavItem__items;"),
|
|
28
28
|
rootWithIcon: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.l), ";;label:rootWithIcon;"),
|
|
@@ -48,8 +48,8 @@ export var euiSideNavItemButtonStyles = function euiSideNavItemButtonStyles(euiT
|
|
|
48
48
|
return x * 2;
|
|
49
49
|
}), ")")), ";\n ");
|
|
50
50
|
return {
|
|
51
|
-
euiSideNavItemButton: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), "padding-block:", euiTheme.size.xxs, ";font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";line-height:", lineHeightOverride, ";text-align:start;color:inherit;&:is(a, button):not(:disabled){&:hover{cursor:pointer;}&:hover,&:focus{.euiSideNavItemButton__label{text-decoration:underline;}}}&:disabled{cursor:not-allowed;color:", euiTheme.colors.
|
|
52
|
-
selected: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
51
|
+
euiSideNavItemButton: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), "padding-block:", euiTheme.size.xxs, ";font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";line-height:", lineHeightOverride, ";text-align:start;color:inherit;&:is(a, button):not(:disabled){&:hover{cursor:pointer;}&:hover,&:focus{.euiSideNavItemButton__label{text-decoration:underline;}}}&:disabled{cursor:not-allowed;color:", euiTheme.colors.textDisabled, ";};label:euiSideNavItemButton;"),
|
|
52
|
+
selected: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";font-weight:", euiTheme.font.weight.bold, ";.euiSideNavItemButton__label{text-decoration:underline;};label:selected;"),
|
|
53
53
|
emphasized: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";;label:emphasized;"),
|
|
54
54
|
// Layout
|
|
55
55
|
root: /*#__PURE__*/css(logicalCSS('margin-bottom', euiTheme.size.xs), " padding-block:0;", paddingMarginOffset, ";;label:root;"),
|
|
@@ -25,12 +25,12 @@ export var euiStatTitleStyles = function euiStatTitleStyles(_ref) {
|
|
|
25
25
|
euiStat__title: /*#__PURE__*/css(";label:euiStat__title;"),
|
|
26
26
|
// Colors
|
|
27
27
|
default: /*#__PURE__*/css("color:", euiTheme.colors.fullShade, ";;label:default;"),
|
|
28
|
-
subdued: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
29
|
-
primary: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
30
|
-
success: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
28
|
+
subdued: /*#__PURE__*/css("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
29
|
+
primary: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
30
|
+
success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
31
31
|
warning: /*#__PURE__*/css("color:", euiTheme.colors.warningText, ";;label:warning;"),
|
|
32
|
-
danger: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
33
|
-
accent: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
32
|
+
danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
33
|
+
accent: /*#__PURE__*/css("color:", euiTheme.colors.textAccent, ";;label:accent;"),
|
|
34
34
|
// Loading
|
|
35
35
|
isLoading: /*#__PURE__*/css(euiCanAnimate, "{animation:", euiStatPulse, " 1.5s infinite ease-in-out;};label:isLoading;")
|
|
36
36
|
};
|