@elastic/eui 109.1.0 → 110.0.0-snapshot.1764684698664
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 +4 -1
- package/es/components/basic_table/in_memory_table.js +86 -233
- package/es/components/breadcrumbs/_breadcrumb_content.js +3 -0
- package/es/components/breadcrumbs/breadcrumbs.js +3 -0
- package/es/components/button/button_group/button_group.styles.js +2 -2
- package/es/components/button/button_group/button_group_button.styles.js +1 -1
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/es/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/index.js +1 -0
- package/es/components/date_picker/super_date_picker/super_date_picker.js +35 -17
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/es/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/es/components/filter_group/filter_group.a11y.js +1 -1
- package/es/components/flex/flex_item.js +6 -4
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -0
- package/es/components/header/header_links/header_links.js +3 -0
- package/es/components/header/header_logo/header_logo.js +6 -1
- package/es/components/header/header_logo/header_logo.styles.js +1 -1
- package/es/components/icon/icon.styles.js +4 -4
- package/es/components/page/page.js +11 -3
- package/es/components/page/page.styles.js +1 -2
- package/es/components/page/page_header/page_header.js +11 -3
- package/es/components/page/page_header/page_header_content.js +3 -0
- package/es/components/page_template/outer/page_outer.js +2 -3
- package/es/components/page_template/outer/page_outer.styles.js +29 -35
- package/es/components/page_template/page_template.js +8 -2
- package/es/components/popover/input_popover.js +4 -1
- package/es/components/popover/popover.js +7 -4
- package/es/components/search_bar/search_bar.js +4 -4
- package/es/components/selectable/selectable.js +7 -2
- package/es/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/es/components/table/_table_cell_content.styles.js +4 -4
- package/es/components/table/table.js +16 -3
- package/es/components/table/table.styles.js +2 -1
- package/es/components/table/table_cells_shared.styles.js +4 -1
- package/es/components/table/table_context.js +12 -0
- package/es/components/table/table_footer_cell.js +6 -2
- package/es/components/table/table_row.js +5 -2
- package/es/components/table/table_row.styles.js +22 -6
- package/es/components/table/table_row_cell.styles.js +3 -3
- package/es/components/tool_tip/tool_tip_anchor.js +8 -0
- package/es/components/tour/tour_step.js +9 -3
- package/es/global_styling/mixins/_button.js +4 -3
- package/es/global_styling/mixins/_typography.js +9 -0
- package/es/services/string/to_initials.js +26 -4
- package/eui.d.ts +75 -29
- package/lib/components/basic_table/basic_table.js +4 -1
- package/lib/components/basic_table/in_memory_table.js +85 -234
- package/lib/components/breadcrumbs/_breadcrumb_content.js +3 -0
- package/lib/components/button/button_group/button_group.styles.js +1 -1
- package/lib/components/button/button_group/button_group_button.styles.js +1 -1
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/lib/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +34 -16
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/lib/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/lib/components/filter_group/filter_group.a11y.js +1 -1
- package/lib/components/flex/flex_item.js +6 -4
- package/lib/components/header/header_logo/header_logo.js +6 -1
- package/lib/components/header/header_logo/header_logo.styles.js +1 -1
- package/lib/components/icon/icon.styles.js +4 -4
- package/lib/components/page/page.js +10 -2
- package/lib/components/page/page.styles.js +1 -2
- package/lib/components/page/page_header/page_header.js +10 -2
- package/lib/components/page_template/outer/page_outer.js +1 -2
- package/lib/components/page_template/outer/page_outer.styles.js +29 -35
- package/lib/components/page_template/page_template.js +8 -2
- package/lib/components/popover/input_popover.js +4 -1
- package/lib/components/popover/popover.js +7 -4
- package/lib/components/search_bar/search_bar.js +4 -4
- package/lib/components/selectable/selectable.js +7 -2
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/lib/components/table/_table_cell_content.styles.js +4 -4
- package/lib/components/table/table.js +16 -3
- package/lib/components/table/table.styles.js +2 -1
- package/lib/components/table/table_cells_shared.styles.js +4 -1
- package/lib/components/table/table_context.js +18 -0
- package/lib/components/table/table_footer_cell.js +9 -2
- package/lib/components/table/table_row.js +8 -2
- package/lib/components/table/table_row.styles.js +20 -4
- package/lib/components/table/table_row_cell.styles.js +3 -3
- package/lib/components/tool_tip/tool_tip_anchor.js +8 -0
- package/lib/components/tour/tour_step.js +6 -3
- package/lib/global_styling/mixins/_button.js +4 -3
- package/lib/global_styling/mixins/_typography.js +10 -1
- package/lib/services/string/to_initials.js +26 -4
- package/optimize/es/components/basic_table/basic_table.js +4 -1
- package/optimize/es/components/basic_table/in_memory_table.js +73 -46
- package/optimize/es/components/button/button_group/button_group.styles.js +2 -2
- package/optimize/es/components/button/button_group/button_group_button.styles.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/optimize/es/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/index.js +1 -0
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +35 -17
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/optimize/es/components/filter_group/filter_group.a11y.js +1 -1
- package/optimize/es/components/flex/flex_item.js +6 -4
- package/optimize/es/components/header/header_logo/header_logo.js +6 -1
- package/optimize/es/components/header/header_logo/header_logo.styles.js +1 -1
- package/optimize/es/components/icon/icon.styles.js +4 -4
- package/optimize/es/components/page/page.js +6 -3
- package/optimize/es/components/page/page.styles.js +1 -2
- package/optimize/es/components/page/page_header/page_header.js +6 -3
- package/optimize/es/components/page_template/outer/page_outer.js +2 -3
- package/optimize/es/components/page_template/outer/page_outer.styles.js +29 -35
- package/optimize/es/components/page_template/page_template.js +2 -1
- package/optimize/es/components/popover/input_popover.js +4 -1
- package/optimize/es/components/popover/popover.js +4 -4
- package/optimize/es/components/selectable/selectable.js +7 -2
- package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/optimize/es/components/table/_table_cell_content.styles.js +4 -4
- package/optimize/es/components/table/table.js +10 -3
- package/optimize/es/components/table/table.styles.js +2 -1
- package/optimize/es/components/table/table_cells_shared.styles.js +4 -1
- package/optimize/es/components/table/table_context.js +12 -0
- package/optimize/es/components/table/table_footer_cell.js +6 -2
- package/optimize/es/components/table/table_row.js +5 -2
- package/optimize/es/components/table/table_row.styles.js +22 -6
- package/optimize/es/components/table/table_row_cell.styles.js +3 -3
- package/optimize/es/components/tool_tip/tool_tip_anchor.js +8 -0
- package/optimize/es/components/tour/tour_step.js +4 -2
- package/optimize/es/global_styling/mixins/_button.js +4 -3
- package/optimize/es/global_styling/mixins/_typography.js +9 -0
- package/optimize/es/services/string/to_initials.js +26 -4
- package/optimize/lib/components/basic_table/basic_table.js +4 -1
- package/optimize/lib/components/basic_table/in_memory_table.js +72 -47
- package/optimize/lib/components/button/button_group/button_group.styles.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +34 -16
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.a11y.js +1 -1
- package/optimize/lib/components/flex/flex_item.js +6 -4
- package/optimize/lib/components/header/header_logo/header_logo.js +6 -1
- package/optimize/lib/components/header/header_logo/header_logo.styles.js +1 -1
- package/optimize/lib/components/icon/icon.styles.js +4 -4
- package/optimize/lib/components/page/page.js +5 -2
- package/optimize/lib/components/page/page.styles.js +1 -2
- package/optimize/lib/components/page/page_header/page_header.js +5 -2
- package/optimize/lib/components/page_template/outer/page_outer.js +1 -2
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +29 -35
- package/optimize/lib/components/page_template/page_template.js +2 -1
- package/optimize/lib/components/popover/input_popover.js +4 -1
- package/optimize/lib/components/popover/popover.js +4 -4
- package/optimize/lib/components/selectable/selectable.js +7 -2
- package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/optimize/lib/components/table/_table_cell_content.styles.js +4 -4
- package/optimize/lib/components/table/table.js +10 -3
- package/optimize/lib/components/table/table.styles.js +2 -1
- package/optimize/lib/components/table/table_cells_shared.styles.js +4 -1
- package/optimize/lib/components/table/table_context.js +18 -0
- package/optimize/lib/components/table/table_footer_cell.js +9 -2
- package/optimize/lib/components/table/table_row.js +8 -2
- package/optimize/lib/components/table/table_row.styles.js +20 -4
- package/optimize/lib/components/table/table_row_cell.styles.js +3 -3
- package/optimize/lib/components/tool_tip/tool_tip_anchor.js +8 -0
- package/optimize/lib/components/tour/tour_step.js +4 -2
- package/optimize/lib/global_styling/mixins/_button.js +4 -3
- package/optimize/lib/global_styling/mixins/_typography.js +10 -1
- package/optimize/lib/services/string/to_initials.js +26 -4
- package/package.json +6 -5
- package/test-env/components/basic_table/basic_table.js +4 -1
- package/test-env/components/basic_table/in_memory_table.js +85 -234
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +3 -0
- package/test-env/components/button/button_group/button_group.styles.js +1 -1
- package/test-env/components/button/button_group/button_group_button.styles.js +1 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +12 -2
- package/test-env/components/date_picker/super_date_picker/date_popover/relative_tab.js +5 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/timezone_display.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/index.js +7 -0
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +34 -16
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -3
- package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +1 -1
- package/test-env/components/filter_group/filter_group.a11y.js +1 -1
- package/test-env/components/flex/flex_item.js +6 -4
- package/test-env/components/header/header_logo/header_logo.js +6 -1
- package/test-env/components/header/header_logo/header_logo.styles.js +1 -1
- package/test-env/components/icon/icon.styles.js +4 -4
- package/test-env/components/page/page.js +10 -2
- package/test-env/components/page/page.styles.js +1 -2
- package/test-env/components/page/page_header/page_header.js +10 -2
- package/test-env/components/page_template/outer/page_outer.js +1 -2
- package/test-env/components/page_template/outer/page_outer.styles.js +29 -35
- package/test-env/components/page_template/page_template.js +8 -2
- package/test-env/components/popover/input_popover.js +4 -1
- package/test-env/components/popover/popover.js +7 -4
- package/test-env/components/search_bar/search_bar.js +4 -4
- package/test-env/components/selectable/selectable.js +7 -2
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +1 -0
- package/test-env/components/table/_table_cell_content.styles.js +4 -4
- package/test-env/components/table/table.js +16 -3
- package/test-env/components/table/table.styles.js +2 -1
- package/test-env/components/table/table_cells_shared.styles.js +4 -1
- package/test-env/components/table/table_context.js +18 -0
- package/test-env/components/table/table_footer_cell.js +9 -2
- package/test-env/components/table/table_row.js +8 -2
- package/test-env/components/table/table_row.styles.js +20 -4
- package/test-env/components/table/table_row_cell.styles.js +3 -3
- package/test-env/components/tool_tip/tool_tip_anchor.js +8 -0
- package/test-env/components/tour/tour_step.js +6 -3
- package/test-env/global_styling/mixins/_button.js +4 -3
- package/test-env/global_styling/mixins/_typography.js +10 -1
- package/test-env/services/string/to_initials.js +26 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["className", "restrictWidth", "paddingSize", "bottomBorder", "alignItems", "responsive", "children", "pageTitle", "pageTitleProps", "iconType", "iconProps", "tabs", "tabsProps", "breadcrumbs", "breadcrumbProps", "description", "rightSideItems", "rightSideGroupProps"];
|
|
3
|
+
var _excluded = ["className", "restrictWidth", "paddingSize", "bottomBorder", "color", "alignItems", "responsive", "children", "pageTitle", "pageTitleProps", "iconType", "iconProps", "tabs", "tabsProps", "breadcrumbs", "breadcrumbProps", "description", "rightSideItems", "rightSideGroupProps"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -12,7 +12,7 @@ var _excluded = ["className", "restrictWidth", "paddingSize", "bottomBorder", "a
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { useEuiTheme } from '../../../services';
|
|
15
|
-
import { useEuiPaddingCSS } from '../../../global_styling';
|
|
15
|
+
import { useEuiPaddingCSS, useEuiBackgroundColorCSS } from '../../../global_styling';
|
|
16
16
|
import { EuiPageHeaderContent } from './page_header_content';
|
|
17
17
|
import { euiPageHeaderStyles } from './page_header.styles';
|
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -23,6 +23,8 @@ export var EuiPageHeader = function EuiPageHeader(_ref) {
|
|
|
23
23
|
_ref$paddingSize = _ref.paddingSize,
|
|
24
24
|
paddingSize = _ref$paddingSize === void 0 ? 'none' : _ref$paddingSize,
|
|
25
25
|
bottomBorder = _ref.bottomBorder,
|
|
26
|
+
_ref$color = _ref.color,
|
|
27
|
+
color = _ref$color === void 0 ? 'transparent' : _ref$color,
|
|
26
28
|
alignItems = _ref.alignItems,
|
|
27
29
|
_ref$responsive = _ref.responsive,
|
|
28
30
|
responsive = _ref$responsive === void 0 ? true : _ref$responsive,
|
|
@@ -42,7 +44,8 @@ export var EuiPageHeader = function EuiPageHeader(_ref) {
|
|
|
42
44
|
var useTheme = useEuiTheme();
|
|
43
45
|
var styles = euiPageHeaderStyles(useTheme);
|
|
44
46
|
var inlinePadding = useEuiPaddingCSS('horizontal');
|
|
45
|
-
var
|
|
47
|
+
var backgroundColor = useEuiBackgroundColorCSS()[color];
|
|
48
|
+
var cssStyles = [styles.euiPageHeader, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, backgroundColor];
|
|
46
49
|
var classes = classNames('euiPageHeader', className);
|
|
47
50
|
var contentProps = {
|
|
48
51
|
restrictWidth: restrictWidth,
|
|
@@ -10,7 +10,7 @@ var _excluded = ["children", "grow", "direction", "responsive"];
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import {
|
|
13
|
+
import { useIsWithinBreakpoints } from '../../../services';
|
|
14
14
|
import { euiPageOuterStyles } from './page_outer.styles';
|
|
15
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
16
|
export var PAGE_DIRECTIONS = ['row', 'column'];
|
|
@@ -23,8 +23,7 @@ export var _EuiPageOuter = function _EuiPageOuter(_ref) {
|
|
|
23
23
|
_ref$responsive = _ref.responsive,
|
|
24
24
|
responsive = _ref$responsive === void 0 ? ['xs', 's'] : _ref$responsive,
|
|
25
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
-
var
|
|
27
|
-
var styles = euiPageOuterStyles(themeContext);
|
|
26
|
+
var styles = euiPageOuterStyles;
|
|
28
27
|
var isResponding = useIsWithinBreakpoints(responsive);
|
|
29
28
|
var cssStyles = [styles.euiPageOuter, styles[isResponding ? 'column' : direction], grow && styles.grow];
|
|
30
29
|
return ___EmotionJSX("div", _extends({
|
|
@@ -9,39 +9,33 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { logicalCSS } from '../../../global_styling';
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// Grow
|
|
42
|
-
grow: _ref3,
|
|
43
|
-
// Direction
|
|
44
|
-
column: _ref2,
|
|
45
|
-
row: _ref
|
|
46
|
-
};
|
|
12
|
+
export var euiPageOuterStyles = {
|
|
13
|
+
euiPageOuter: /*#__PURE__*/css("display:flex;flex-shrink:0;", logicalCSS('max-width', '100%' // Ensures Firefox doesn't expand width beyond bounds
|
|
14
|
+
), ";;label:euiPageOuter;"),
|
|
15
|
+
// Grow
|
|
16
|
+
grow: process.env.NODE_ENV === "production" ? {
|
|
17
|
+
name: "122lw0e-grow",
|
|
18
|
+
styles: "flex-grow:1;label:grow;"
|
|
19
|
+
} : {
|
|
20
|
+
name: "122lw0e-grow",
|
|
21
|
+
styles: "flex-grow:1;label:grow;",
|
|
22
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
|
+
},
|
|
24
|
+
// Direction
|
|
25
|
+
column: process.env.NODE_ENV === "production" ? {
|
|
26
|
+
name: "ll8kmq-column",
|
|
27
|
+
styles: "flex-direction:column;label:column;"
|
|
28
|
+
} : {
|
|
29
|
+
name: "ll8kmq-column",
|
|
30
|
+
styles: "flex-direction:column;label:column;",
|
|
31
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
|
+
},
|
|
33
|
+
row: process.env.NODE_ENV === "production" ? {
|
|
34
|
+
name: "15mvjmo-row",
|
|
35
|
+
styles: "flex-direction:row;label:row;"
|
|
36
|
+
} : {
|
|
37
|
+
name: "15mvjmo-row",
|
|
38
|
+
styles: "flex-direction:row;label:row;",
|
|
39
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
|
+
}
|
|
47
41
|
};
|
|
@@ -98,7 +98,8 @@ export var _EuiPageTemplate = function _EuiPageTemplate(_ref) {
|
|
|
98
98
|
header: {
|
|
99
99
|
restrictWidth: restrictWidth,
|
|
100
100
|
paddingSize: paddingSize,
|
|
101
|
-
bottomBorder: headerBottomBorder
|
|
101
|
+
bottomBorder: headerBottomBorder,
|
|
102
|
+
color: panelled === false ? 'transparent' : 'plain'
|
|
102
103
|
},
|
|
103
104
|
section: {
|
|
104
105
|
restrictWidth: restrictWidth,
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["children", "className", "closePopover", "anchorPosition", "attachToAnchor", "repositionToCrossAxis", "display", "panelPaddingSize", "closeOnScroll", "ownFocus", "disableFocusTrap", "focusTrapProps", "input", "fullWidth", "panelMinWidth", "onPanelResize", "inputRef", "panelRef"];
|
|
5
|
+
var _excluded = ["children", "className", "closePopover", "anchorPosition", "attachToAnchor", "repositionToCrossAxis", "display", "panelPaddingSize", "closeOnScroll", "ownFocus", "disableFocusTrap", "focusTrapProps", "input", "fullWidth", "panelMinWidth", "onPanelResize", "inputRef", "panelRef", "offset"];
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
/*
|
|
@@ -56,6 +56,8 @@ export var EuiInputPopover = function EuiInputPopover(_ref) {
|
|
|
56
56
|
onPanelResize = _ref.onPanelResize,
|
|
57
57
|
_inputRef = _ref.inputRef,
|
|
58
58
|
_panelRef = _ref.panelRef,
|
|
59
|
+
_ref$offset = _ref.offset,
|
|
60
|
+
offset = _ref$offset === void 0 ? 2 : _ref$offset,
|
|
59
61
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
60
62
|
var classes = classnames('euiInputPopover', className);
|
|
61
63
|
var euiTheme = useEuiTheme();
|
|
@@ -194,6 +196,7 @@ export var EuiInputPopover = function EuiInputPopover(_ref) {
|
|
|
194
196
|
closePopover: closePopover,
|
|
195
197
|
anchorPosition: anchorPosition,
|
|
196
198
|
attachToAnchor: attachToAnchor,
|
|
199
|
+
offset: offset,
|
|
197
200
|
repositionToCrossAxis: repositionToCrossAxis,
|
|
198
201
|
panelPaddingSize: panelPaddingSize,
|
|
199
202
|
ownFocus: ownFocus
|
|
@@ -188,8 +188,8 @@ export var EuiPopover = /*#__PURE__*/function (_Component) {
|
|
|
188
188
|
if (_this.button == null || _this.panel == null) return;
|
|
189
189
|
var _ref6 = _this.props,
|
|
190
190
|
anchorPosition = _ref6.anchorPosition,
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
_offset = _ref6.offset;
|
|
192
|
+
var offset = _offset != null ? _offset : _this.props.hasArrow ? 0 : 4;
|
|
193
193
|
var position = getPopoverPositionFromAnchorPosition(anchorPosition);
|
|
194
194
|
var forcePosition = undefined;
|
|
195
195
|
if (allowEnforcePosition && _this.state.isOpenStable && _this.state.openPosition != null) {
|
|
@@ -526,8 +526,8 @@ _defineProperty(EuiPopover, "defaultProps", {
|
|
|
526
526
|
isOpen: false,
|
|
527
527
|
ownFocus: true,
|
|
528
528
|
repositionToCrossAxis: true,
|
|
529
|
-
anchorPosition: '
|
|
529
|
+
anchorPosition: 'downLeft',
|
|
530
530
|
panelPaddingSize: 'm',
|
|
531
|
-
hasArrow:
|
|
531
|
+
hasArrow: false,
|
|
532
532
|
display: 'inline-block'
|
|
533
533
|
});
|
|
@@ -78,6 +78,12 @@ export var EuiSelectable = /*#__PURE__*/function (_Component) {
|
|
|
78
78
|
_this.preventOnFocus = false;
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
+
if (event && _this.props.searchable && event.target === _this.inputRef) {
|
|
82
|
+
_this.setState({
|
|
83
|
+
isFocused: true
|
|
84
|
+
});
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
81
87
|
if (!_this.state.visibleOptions.length || _this.state.activeOptionIndex != null) {
|
|
82
88
|
return;
|
|
83
89
|
}
|
|
@@ -453,8 +459,7 @@ export var EuiSelectable = /*#__PURE__*/function (_Component) {
|
|
|
453
459
|
onChange: _this2.onSearchChange,
|
|
454
460
|
listId: _this2.optionsListRef.current ? _this2.listId : undefined // Only pass the listId if it exists on the page
|
|
455
461
|
,
|
|
456
|
-
"aria-activedescendant": _this2.makeOptionId(activeOptionIndex)
|
|
457
|
-
,
|
|
462
|
+
"aria-activedescendant": activeOptionIndex != null ? _this2.makeOptionId(activeOptionIndex) : undefined,
|
|
458
463
|
placeholder: placeholderName,
|
|
459
464
|
isPreFiltered: !!isPreFiltered,
|
|
460
465
|
optionMatcher: optionMatcher,
|
|
@@ -29,6 +29,7 @@ export var EuiSelectableTemplateSitewidePopover = function EuiSelectableTemplate
|
|
|
29
29
|
var styles = useEuiMemoizedStyles(euiSelectableTemplateSitewidePopoverStyles);
|
|
30
30
|
return ___EmotionJSX(EuiPopover, _extends({
|
|
31
31
|
panelPaddingSize: "none",
|
|
32
|
+
anchorPosition: "downCenter",
|
|
32
33
|
isOpen: isOpen,
|
|
33
34
|
ownFocus: !!trigger,
|
|
34
35
|
display: trigger ? 'inline-block' : 'block'
|
|
@@ -10,11 +10,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiTextTruncate, euiTextBreakWord, logicalTextAlignCSS } from '../../global_styling';
|
|
12
12
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
|
-
name: "
|
|
14
|
-
styles: "flex-direction:column;
|
|
13
|
+
name: "7d9p9x-mobile",
|
|
14
|
+
styles: "flex-direction:column;label:mobile;"
|
|
15
15
|
} : {
|
|
16
|
-
name: "
|
|
17
|
-
styles: "flex-direction:column;
|
|
16
|
+
name: "7d9p9x-mobile",
|
|
17
|
+
styles: "flex-direction:column;label:mobile;",
|
|
18
18
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
19
19
|
};
|
|
20
20
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "className", "compressed", "tableLayout", "responsiveBreakpoint"];
|
|
3
|
+
var _excluded = ["children", "className", "compressed", "tableLayout", "hasBackground", "responsiveBreakpoint"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -13,6 +13,7 @@ import React from 'react';
|
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { useEuiMemoizedStyles } from '../../services';
|
|
15
15
|
import { useIsEuiTableResponsive, EuiTableIsResponsiveContext } from './mobile/responsive_context';
|
|
16
|
+
import { EuiTableVariantContext } from './table_context';
|
|
16
17
|
import { euiTableStyles } from './table.styles';
|
|
17
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
19
|
export var EuiTable = function EuiTable(_ref) {
|
|
@@ -21,17 +22,23 @@ export var EuiTable = function EuiTable(_ref) {
|
|
|
21
22
|
compressed = _ref.compressed,
|
|
22
23
|
_ref$tableLayout = _ref.tableLayout,
|
|
23
24
|
tableLayout = _ref$tableLayout === void 0 ? 'fixed' : _ref$tableLayout,
|
|
25
|
+
_ref$hasBackground = _ref.hasBackground,
|
|
26
|
+
hasBackground = _ref$hasBackground === void 0 ? true : _ref$hasBackground,
|
|
24
27
|
responsiveBreakpoint = _ref.responsiveBreakpoint,
|
|
25
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
29
|
var isResponsive = useIsEuiTableResponsive(responsiveBreakpoint);
|
|
27
30
|
var classes = classNames('euiTable', className);
|
|
28
31
|
var styles = useEuiMemoizedStyles(euiTableStyles);
|
|
29
|
-
var cssStyles = [styles.euiTable, styles.layout[tableLayout], (!compressed || isResponsive) && styles.uncompressed, compressed && !isResponsive && styles.compressed, isResponsive ? styles.mobile : styles.desktop];
|
|
32
|
+
var cssStyles = [styles.euiTable, styles.layout[tableLayout], (!compressed || isResponsive) && styles.uncompressed, compressed && !isResponsive && styles.compressed, hasBackground && styles.hasBackground, isResponsive ? styles.mobile : styles.desktop];
|
|
30
33
|
return ___EmotionJSX("table", _extends({
|
|
31
34
|
tabIndex: -1,
|
|
32
35
|
css: cssStyles,
|
|
33
36
|
className: classes
|
|
34
37
|
}, rest), ___EmotionJSX(EuiTableIsResponsiveContext.Provider, {
|
|
35
38
|
value: isResponsive
|
|
36
|
-
},
|
|
39
|
+
}, ___EmotionJSX(EuiTableVariantContext.Provider, {
|
|
40
|
+
value: {
|
|
41
|
+
hasBackground: hasBackground
|
|
42
|
+
}
|
|
43
|
+
}, children)));
|
|
37
44
|
};
|
|
@@ -67,11 +67,12 @@ export var euiTableStyles = function euiTableStyles(euiThemeContext) {
|
|
|
67
67
|
cellContentPadding = _euiTableVariables.cellContentPadding,
|
|
68
68
|
compressedCellContentPadding = _euiTableVariables.compressedCellContentPadding;
|
|
69
69
|
return {
|
|
70
|
-
euiTable: /*#__PURE__*/css(euiNumberFormat(euiThemeContext), " ", logicalCSS('width', '100%'), " border:none;border-collapse:collapse
|
|
70
|
+
euiTable: /*#__PURE__*/css(euiNumberFormat(euiThemeContext), " ", logicalCSS('width', '100%'), " border:none;border-collapse:collapse;;label:euiTable;"),
|
|
71
71
|
layout: {
|
|
72
72
|
fixed: _ref3,
|
|
73
73
|
auto: _ref2
|
|
74
74
|
},
|
|
75
|
+
hasBackground: /*#__PURE__*/css("background-color:", euiTheme.colors.backgroundBasePlain, ";;label:hasBackground;"),
|
|
75
76
|
/**
|
|
76
77
|
* 1. The padding on the `.euiTableCellContent` div allows the ellipsis to show if the
|
|
77
78
|
* content is truncated. If the padding was on the cell, the ellipsis would be cropped.
|
|
@@ -25,7 +25,10 @@ export var euiTableHeaderFooterCellStyles = function euiTableHeaderFooterCellSty
|
|
|
25
25
|
euiTableHeaderCell: /*#__PURE__*/css(sharedStyles, ";;label:euiTableHeaderCell;"),
|
|
26
26
|
euiTableHeaderCell__content: /*#__PURE__*/css("gap:", euiTheme.size.xs, ";;label:euiTableHeaderCell__content;"),
|
|
27
27
|
euiTableHeaderCell__button: /*#__PURE__*/css(logicalCSS('width', '100%'), " font-weight:inherit;line-height:inherit;.euiTableSortIcon--sortable{color:", euiTheme.components.tableCellSortableIconColor, ";}&:hover,&:focus{color:", euiTheme.colors.textPrimary, ";text-decoration:underline;.euiTableSortIcon--sortable{color:", euiTheme.colors.textPrimary, ";}};label:euiTableHeaderCell__button;"),
|
|
28
|
-
euiTableFooterCell:
|
|
28
|
+
euiTableFooterCell: {
|
|
29
|
+
euiTableFooterCell: /*#__PURE__*/css(sharedStyles, ";;label:euiTableFooterCell;"),
|
|
30
|
+
hasBackground: /*#__PURE__*/css("background-color:", euiTheme.components.tableFooterBackground, ";;label:hasBackground;")
|
|
31
|
+
}
|
|
29
32
|
};
|
|
30
33
|
};
|
|
31
34
|
export var euiTableCellCheckboxStyles = function euiTableCellCheckboxStyles(euiThemeContext) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { createContext } from 'react';
|
|
10
|
+
export var EuiTableVariantContext = /*#__PURE__*/createContext({
|
|
11
|
+
hasBackground: true
|
|
12
|
+
});
|
|
@@ -9,12 +9,13 @@ var _excluded = ["children", "align", "className", "width", "style"];
|
|
|
9
9
|
* Side Public License, v 1.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import React from 'react';
|
|
12
|
+
import React, { useContext } from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { useEuiMemoizedStyles, LEFT_ALIGNMENT } from '../../services';
|
|
15
15
|
import { resolveWidthAsStyle } from './utils';
|
|
16
16
|
import { EuiTableCellContent } from './_table_cell_content';
|
|
17
17
|
import { euiTableHeaderFooterCellStyles } from './table_cells_shared.styles';
|
|
18
|
+
import { EuiTableVariantContext } from './table_context';
|
|
18
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
20
|
export var EuiTableFooterCell = function EuiTableFooterCell(_ref) {
|
|
20
21
|
var children = _ref.children,
|
|
@@ -24,11 +25,14 @@ export var EuiTableFooterCell = function EuiTableFooterCell(_ref) {
|
|
|
24
25
|
width = _ref.width,
|
|
25
26
|
style = _ref.style,
|
|
26
27
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
var _useContext = useContext(EuiTableVariantContext),
|
|
29
|
+
hasBackground = _useContext.hasBackground;
|
|
27
30
|
var classes = classNames('euiTableFooterCell', className);
|
|
28
31
|
var inlineStyles = resolveWidthAsStyle(style, width);
|
|
29
32
|
var styles = useEuiMemoizedStyles(euiTableHeaderFooterCellStyles);
|
|
33
|
+
var cssStyles = [styles.euiTableFooterCell.euiTableFooterCell, hasBackground && styles.euiTableFooterCell.hasBackground];
|
|
30
34
|
return ___EmotionJSX("td", _extends({
|
|
31
|
-
css:
|
|
35
|
+
css: cssStyles,
|
|
32
36
|
className: classes,
|
|
33
37
|
style: inlineStyles
|
|
34
38
|
}, rest), ___EmotionJSX(EuiTableCellContent, {
|
|
@@ -9,10 +9,11 @@ var _excluded = ["children", "className", "hasSelection", "isSelected", "isSelec
|
|
|
9
9
|
* Side Public License, v 1.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import React from 'react';
|
|
12
|
+
import React, { useContext } from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { keys, useEuiMemoizedStyles } from '../../services';
|
|
15
15
|
import { useEuiTableIsResponsive } from './mobile/responsive_context';
|
|
16
|
+
import { EuiTableVariantContext } from './table_context';
|
|
16
17
|
import { euiTableRowStyles } from './table_row.styles';
|
|
17
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
19
|
export var EuiTableRow = function EuiTableRow(_ref) {
|
|
@@ -27,8 +28,10 @@ export var EuiTableRow = function EuiTableRow(_ref) {
|
|
|
27
28
|
onClick = _ref.onClick,
|
|
28
29
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
30
|
var isResponsive = useEuiTableIsResponsive();
|
|
31
|
+
var _useContext = useContext(EuiTableVariantContext),
|
|
32
|
+
hasBackground = _useContext.hasBackground;
|
|
30
33
|
var styles = useEuiMemoizedStyles(euiTableRowStyles);
|
|
31
|
-
var cssStyles = isResponsive ? [styles.euiTableRow, styles.mobile.mobile, isSelected && styles.mobile.selected, isExpandedRow && styles.mobile.expanded, (hasActions === true || isExpandable || isExpandedRow) && styles.mobile.hasRightColumn, hasSelection && styles.mobile.hasLeftColumn] : [styles.euiTableRow, styles.desktop.desktop, onClick && styles.desktop.clickable, isSelected && styles.desktop.selected, isExpandedRow && styles.desktop.expanded, isExpandedRow && hasSelection && styles.desktop.checkboxOffset];
|
|
34
|
+
var cssStyles = isResponsive ? [styles.euiTableRow, styles.mobile.mobile, !hasBackground && styles.mobile.hasBorder, hasBackground && styles.mobile.hasBackground, isSelected && styles.mobile.selected, isExpandedRow && styles.mobile.expanded, (hasActions === true || isExpandable || isExpandedRow) && styles.mobile.hasRightColumn, hasSelection && styles.mobile.hasLeftColumn] : [styles.euiTableRow, styles.desktop.desktop, onClick && styles.desktop.clickable, isSelected && styles.desktop.selected, isExpandedRow && styles.desktop.expanded.expanded, isExpandedRow && hasBackground && styles.desktop.expanded.hasBackground, isExpandedRow && hasSelection && styles.desktop.checkboxOffset];
|
|
32
35
|
var classes = classNames('euiTableRow', className, {
|
|
33
36
|
'euiTableRow-isSelectable': isSelectable,
|
|
34
37
|
'euiTableRow-isSelected': isSelected,
|
|
@@ -9,8 +9,8 @@ var _templateObject;
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
|
-
import { euiShadow } from '@elastic/eui-theme-common';
|
|
13
|
-
import { euiCanAnimate, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
12
|
+
import { euiBorderStyles, euiShadow } from '@elastic/eui-theme-common';
|
|
13
|
+
import { euiCanAnimate, highContrastModeStyles, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
14
14
|
import { cssSupportsHasWithNextSibling } from '../../global_styling/functions/supports';
|
|
15
15
|
import { euiTableVariables } from './table.styles';
|
|
16
16
|
export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
|
|
@@ -26,7 +26,11 @@ export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
|
|
|
26
26
|
euiTableRow: /*#__PURE__*/css(":where(&.euiTableRow--marked){background-color:", rowColors.marked.background, ";};label:euiTableRow;"),
|
|
27
27
|
desktop: {
|
|
28
28
|
desktop: /*#__PURE__*/css("&:hover{background-color:", rowColors.hover, ";}", markedStyles, ";;label:desktop;"),
|
|
29
|
-
expanded:
|
|
29
|
+
expanded: {
|
|
30
|
+
expanded: /*#__PURE__*/css(expandedAnimationCss, ";;label:expanded;"),
|
|
31
|
+
// skipping adding a css class as it's a default style when expanded
|
|
32
|
+
hasBackground: "\n background-color: ".concat(rowColors.hover, ";\n ")
|
|
33
|
+
},
|
|
30
34
|
clickable: /*#__PURE__*/css("&:hover{background-color:", rowColors.clickable.hover, ";cursor:pointer;}", markedStyles, " &:focus{background-color:", rowColors.clickable.focus, ";};label:clickable;"),
|
|
31
35
|
selected: /*#__PURE__*/css("&,&+.euiTableRow-isExpandedRow{background-color:", rowColors.selected.background, ";}&:hover,&:hover+.euiTableRow-isExpandedRow{background-color:", rowColors.selected.hover, ";};label:selected;"),
|
|
32
36
|
// Offset expanded & selectable rows by the checkbox width to line up content with the 2nd column
|
|
@@ -34,9 +38,21 @@ export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
|
|
|
34
38
|
checkboxOffset: /*#__PURE__*/css("&>.euiTableRowCell:first-child{", logicalCSS('padding-left', checkboxSize), ";};label:checkboxOffset;")
|
|
35
39
|
},
|
|
36
40
|
mobile: {
|
|
37
|
-
mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding),
|
|
41
|
+
mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding), " border-radius:", euiTheme.border.radius.medium, ";", cssSupportsHasWithNextSibling("\n &:has(+ .euiTableRow-isExpandedRow) {\n ".concat(logicalCSS('border-bottom-left-radius', 0), "\n ").concat(logicalCSS('border-bottom-right-radius', 0), "\n }\n ")), ";;label:mobile;"),
|
|
42
|
+
/* Omitting adding a class via css here as it's a default style on mobile, not a standalone prop-related style.
|
|
43
|
+
Adding it separate allows better appliance control via props without the need to override the styles. */
|
|
44
|
+
hasBorder: "\n ".concat(highContrastModeStyles(euiThemeContext, {
|
|
45
|
+
// uses pseudo-border to align dimensions with shadows applied by `hasBackground`
|
|
46
|
+
none: "\n ".concat(euiBorderStyles(euiThemeContext, {
|
|
47
|
+
side: 'all'
|
|
48
|
+
}), "\n transform: translateZ(0);\n "),
|
|
49
|
+
preferred: "\n border: ".concat(euiTheme.border.thin, "\n ")
|
|
50
|
+
}), "\n "),
|
|
51
|
+
hasBackground: /*#__PURE__*/css(euiShadow(euiThemeContext, 's', {
|
|
38
52
|
borderAllInHighContrastMode: true
|
|
39
|
-
}), " background-color:", euiTheme.colors.backgroundBasePlain, ";
|
|
53
|
+
}), " background-color:", euiTheme.colors.backgroundBasePlain, ";", highContrastModeStyles(euiThemeContext, {
|
|
54
|
+
none: "\n border: none;\n "
|
|
55
|
+
}), ";;label:hasBackground;"),
|
|
40
56
|
selected: /*#__PURE__*/css("&,&+.euiTableRow-isExpandedRow{background-color:", rowColors.selected.background, ";};label:selected;"),
|
|
41
57
|
/**
|
|
42
58
|
* Left column offset (no border)
|
|
@@ -55,7 +71,7 @@ export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
|
|
|
55
71
|
// On mobile, visually move the expanded row to join up with the
|
|
56
72
|
// preceding table row via negative margins
|
|
57
73
|
'margin-top', mathWithUnits([cellContentPadding, euiTheme.border.width.thin], function (x, y) {
|
|
58
|
-
return (x + y
|
|
74
|
+
return (x + y) * -1;
|
|
59
75
|
})), logicalCSS('padding-left', cellContentPadding), " ", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('border-top-left-radius', 0), " ", logicalCSS('border-top-right-radius', 0), " &:after{", logicalCSS('border-top', 'none'), ";}clip-path:polygon(-50% 0, 150% 0, 150% 150%, -50% 150%);>.euiTableRowCell{", logicalCSS('width', '100%'), ";}", expandedAnimationCss, ";;label:expanded;")
|
|
60
76
|
}
|
|
61
77
|
};
|
|
@@ -70,10 +70,10 @@ export var euiTableRowCellStyles = function euiTableRowCellStyles(euiThemeContex
|
|
|
70
70
|
rightColumnContent: "\n position: absolute;\n ".concat(logicalCSS('right', 0), "\n ").concat(logicalCSS('min-width', '0'), "\n ").concat(logicalCSS('width', mobileSizes.actions.width), "\n "),
|
|
71
71
|
get actions() {
|
|
72
72
|
// Note: Visible-on-hover actions on desktop always show on mobile
|
|
73
|
-
return /*#__PURE__*/css(this.rightColumnContent, " ", logicalCSS('top', mobileSizes.actions.offset), "
|
|
73
|
+
return /*#__PURE__*/css(this.rightColumnContent, " ", logicalCSS('top', mobileSizes.actions.offset), ".euiTableCellContent{padding:0;};label:actions;");
|
|
74
74
|
},
|
|
75
75
|
get expander() {
|
|
76
|
-
return /*#__PURE__*/css(this.rightColumnContent, "
|
|
76
|
+
return /*#__PURE__*/css(this.rightColumnContent, ";;label:expander;");
|
|
77
77
|
},
|
|
78
78
|
/**
|
|
79
79
|
* Custom actions may not be icons and therefore may not fit in a column
|
|
@@ -84,6 +84,6 @@ export var euiTableRowCellStyles = function euiTableRowCellStyles(euiThemeContex
|
|
|
84
84
|
},
|
|
85
85
|
euiTableRowCell__mobileHeader: /*#__PURE__*/css(euiTextTruncate(), " font-size:", euiFontSize(euiThemeContext, 's', {
|
|
86
86
|
customScale: 'xxs'
|
|
87
|
-
}).fontSize, ";display:block;color:", euiTheme.colors.
|
|
87
|
+
}).fontSize, ";display:block;color:", euiTheme.colors.textSubdued, ";padding:", euiTheme.size.s, ";padding-block-end:0;margin-block-end:-", euiTheme.size.s, ";.euiTableRowCell:not(:only-child) &{", logicalCSS('min-height', euiTheme.size.l), ";};label:euiTableRowCell__mobileHeader;")
|
|
88
88
|
};
|
|
89
89
|
};
|
|
@@ -11,6 +11,7 @@ var _excluded = ["onBlur", "onFocus", "onMouseOver", "onMouseOut", "id", "classN
|
|
|
11
11
|
|
|
12
12
|
import React, { cloneElement, forwardRef } from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
+
import { useGeneratedHtmlId } from '../../services';
|
|
14
15
|
import { euiToolTipAnchorStyles } from './tool_tip.styles';
|
|
15
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
17
|
export var EuiToolTipAnchor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -27,11 +28,18 @@ export var EuiToolTipAnchor = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
27
28
|
var anchorCss = euiToolTipAnchorStyles();
|
|
28
29
|
var cssStyles = [anchorCss.euiToolTipAnchor, anchorCss[display]];
|
|
29
30
|
var classes = classNames('euiToolTipAnchor', className);
|
|
31
|
+
var anchorId = useGeneratedHtmlId({
|
|
32
|
+
suffix: 'euiToolTipAnchor',
|
|
33
|
+
conditionalId: id ? "".concat(id, "-wrapper") : undefined
|
|
34
|
+
});
|
|
30
35
|
return (
|
|
31
36
|
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
32
37
|
___EmotionJSX("span", _extends({
|
|
33
38
|
ref: ref,
|
|
34
39
|
css: cssStyles
|
|
40
|
+
/* A11y: NVDA combines elements with identical markup into a single navigational stop. ¯\_(ツ)_/¯
|
|
41
|
+
The `id` ensures the wrappers are unique and navigated as standalone elements. (data- attributes don't work) */,
|
|
42
|
+
id: anchorId
|
|
35
43
|
}, rest, {
|
|
36
44
|
className: classes,
|
|
37
45
|
onMouseOver: onMouseOver,
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["anchorPosition", "anchor", "children", "className", "css", "closePopover", "content", "isStepOpen", "minWidth", "maxWidth", "onFinish", "step", "stepsTotal", "subtitle", "title", "decoration", "footerAction", "panelProps", "panelClassName"];
|
|
5
|
+
var _excluded = ["anchorPosition", "anchor", "children", "className", "css", "closePopover", "content", "isStepOpen", "minWidth", "maxWidth", "onFinish", "step", "stepsTotal", "subtitle", "title", "decoration", "hasArrow", "footerAction", "panelProps", "panelClassName"];
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
/*
|
|
@@ -47,6 +47,7 @@ export var EuiTourStep = function EuiTourStep(_ref) {
|
|
|
47
47
|
title = _ref.title,
|
|
48
48
|
_ref$decoration = _ref.decoration,
|
|
49
49
|
decoration = _ref$decoration === void 0 ? 'beacon' : _ref$decoration,
|
|
50
|
+
hasArrow = _ref.hasArrow,
|
|
50
51
|
footerAction = _ref.footerAction,
|
|
51
52
|
panelProps = _ref.panelProps,
|
|
52
53
|
panelClassName = _ref.panelClassName,
|
|
@@ -108,8 +109,9 @@ export var EuiTourStep = function EuiTourStep(_ref) {
|
|
|
108
109
|
panelProps: _objectSpread(_objectSpread({}, panelProps), {}, {
|
|
109
110
|
css: [tourStyles.euiTour, css, panelProps === null || panelProps === void 0 ? void 0 : panelProps.css]
|
|
110
111
|
}),
|
|
111
|
-
offset: hasBeacon ? 10 :
|
|
112
|
+
offset: hasBeacon && hasArrow !== false ? 10 : undefined,
|
|
112
113
|
"aria-labelledby": titleId,
|
|
114
|
+
hasArrow: hasArrow !== null && hasArrow !== void 0 ? hasArrow : hasBeacon,
|
|
113
115
|
arrowChildren: hasBeacon && ___EmotionJSX(EuiBeacon, {
|
|
114
116
|
css: beaconCss,
|
|
115
117
|
className: "euiTour__beacon"
|
|
@@ -14,6 +14,7 @@ import { css } from '@emotion/react';
|
|
|
14
14
|
import { getTokenName, mathWithUnits } from '@elastic/eui-theme-common';
|
|
15
15
|
import { makeHighContrastColor, useEuiMemoizedStyles } from '../../services';
|
|
16
16
|
import { highContrastModeStyles, logicalCSS } from '../functions';
|
|
17
|
+
import { euiDisabledSelector } from '../utility/selectors';
|
|
17
18
|
|
|
18
19
|
/** Tentative usage; these exist only to be used as button directly when used within other components */
|
|
19
20
|
export var SEVERITY_COLORS = ['neutral', 'risk'];
|
|
@@ -204,11 +205,11 @@ var _interactionStyles = function _interactionStyles(euiThemeContext, buttonColo
|
|
|
204
205
|
var baseStyles = function baseStyles() {
|
|
205
206
|
// button hover is applied as pseudo element with a transparent background-color
|
|
206
207
|
if (type === 'overlay') {
|
|
207
|
-
return "\n position: relative;\n overflow: hidden;\n\n &:hover:not(
|
|
208
|
+
return "\n position: relative;\n overflow: hidden;\n\n &:hover:not(".concat(euiDisabledSelector, ") {\n &::before {\n content: '';\n position: absolute;\n /* should stay under the content */\n z-index: 0;\n inset: 0;\n background-color: ").concat(buttonColors.backgroundHover, ";\n pointer-events: none;\n }\n }\n\n &:active:not(").concat(euiDisabledSelector, ") {\n &::before {\n ").concat(logicalCSS('width', '100%'), "\n ").concat(logicalCSS('height', '100%'), "\n\n content: '';\n position: absolute;\n inset: 0;\n background-color: ").concat(buttonColors.backgroundActive, ";\n }\n }\n ");
|
|
208
209
|
}
|
|
209
210
|
|
|
210
211
|
// button hover is applied as opaque color
|
|
211
|
-
return "\n &:hover:not(
|
|
212
|
+
return "\n &:hover:not(".concat(euiDisabledSelector, ") {\n background-color: ").concat(buttonColors.backgroundHover, ";\n }\n\n &:active:not(").concat(euiDisabledSelector, ") {\n background-color: ").concat(buttonColors.backgroundActive, ";\n }\n ");
|
|
212
213
|
};
|
|
213
214
|
return " \n ".concat(highContrastModeStyles(euiThemeContext, {
|
|
214
215
|
none: baseStyles(),
|
|
@@ -221,7 +222,7 @@ var _interactionStyles = function _interactionStyles(euiThemeContext, buttonColo
|
|
|
221
222
|
*/
|
|
222
223
|
export var highContrastHoverIndicatorStyles = function highContrastHoverIndicatorStyles(_ref2) {
|
|
223
224
|
var euiTheme = _ref2.euiTheme;
|
|
224
|
-
return "\n &:hover:not(
|
|
225
|
+
return "\n &:hover:not(".concat(euiDisabledSelector, ") {\n transition: none;\n\n /* using pseudo border to be able to control the color */\n &::after {\n content: '';\n position: absolute;\n inset: ").concat(euiTheme.border.width.thin, ";\n border: ").concat(euiTheme.border.width.thick, " solid var(--highContrastHoverIndicatorColor, ").concat(euiTheme.border.color, ");\n border-radius: ").concat(mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
225
226
|
return x / 2;
|
|
226
227
|
}), ";\n background-color: transparent;\n pointer-events: none;\n }\n }\n");
|
|
227
228
|
};
|
|
@@ -9,6 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
* Side Public License, v 1.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
import { css } from '@emotion/react';
|
|
12
13
|
import { euiLineHeightFromBaseline, euiFontSizeFromScale } from '../functions/typography';
|
|
13
14
|
import { useEuiMemoizedStyles, useEuiTheme } from '../../services/theme';
|
|
14
15
|
import { EuiThemeFontScales } from '../variables/typography';
|
|
@@ -53,6 +54,14 @@ export var euiTextTruncate = function euiTextTruncate() {
|
|
|
53
54
|
, "\n overflow: hidden !important;\n text-overflow: ellipsis !important;\n white-space: nowrap !important;\n");
|
|
54
55
|
};
|
|
55
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Emotion CSS wrapper around `euiTextTruncate` style.
|
|
59
|
+
*/
|
|
60
|
+
export var euiTextTruncateCSS = function euiTextTruncateCSS() {
|
|
61
|
+
var maxWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '100%';
|
|
62
|
+
return /*#__PURE__*/css(euiTextTruncate(maxWidth), ";;label:euiTextTruncateCSS;");
|
|
63
|
+
};
|
|
64
|
+
|
|
56
65
|
/**
|
|
57
66
|
* Fixed-width numbers for tabular data
|
|
58
67
|
*/
|