@elastic/eui 65.0.2 → 66.0.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_dark.css +24 -196
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +24 -196
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +13 -2
- package/es/components/basic_table/in_memory_table.js +13 -2
- package/es/components/card/card.styles.js +2 -2
- package/es/components/combo_box/combo_box.js +2 -15
- package/es/components/datagrid/body/data_grid_body.js +17 -6
- package/es/components/datagrid/body/data_grid_cell.js +29 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/es/components/datagrid/data_grid.js +17 -6
- package/es/components/datagrid/utils/in_memory.js +17 -6
- package/es/components/description_list/description_list.js +11 -3
- package/es/components/description_list/description_list_context.js +2 -1
- package/es/components/description_list/description_list_description.js +3 -1
- package/es/components/description_list/description_list_description.styles.js +5 -2
- package/es/components/description_list/description_list_title.js +3 -2
- package/es/components/description_list/description_list_title.styles.js +7 -3
- package/es/components/description_list/description_list_types.js +2 -1
- package/es/components/form/field_search/field_search.js +6 -16
- package/es/components/form/range/range_input.js +1 -1
- package/es/components/header/header_section/header_section_item.js +4 -3
- package/es/components/icon/icon.js +1 -9
- package/es/components/list_group/list_group.js +7 -1
- package/es/components/list_group/list_group_item.js +10 -3
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/es/components/modal/modal.js +1 -3
- package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/es/components/table/table_row_cell.js +4 -6
- package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/es/global_styling/mixins/_typography.js +1 -1
- package/es/services/theme/hooks.js +11 -16
- package/eui.d.ts +29 -10
- package/i18ntokens.json +18 -18
- package/lib/components/basic_table/basic_table.js +13 -2
- package/lib/components/basic_table/in_memory_table.js +13 -2
- package/lib/components/card/card.styles.js +2 -2
- package/lib/components/combo_box/combo_box.js +2 -15
- package/lib/components/datagrid/body/data_grid_body.js +17 -6
- package/lib/components/datagrid/body/data_grid_cell.js +29 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/lib/components/datagrid/data_grid.js +17 -6
- package/lib/components/datagrid/utils/in_memory.js +17 -6
- package/lib/components/description_list/description_list.js +11 -3
- package/lib/components/description_list/description_list_context.js +2 -1
- package/lib/components/description_list/description_list_description.js +3 -1
- package/lib/components/description_list/description_list_description.styles.js +5 -2
- package/lib/components/description_list/description_list_title.js +3 -2
- package/lib/components/description_list/description_list_title.styles.js +7 -3
- package/lib/components/description_list/description_list_types.js +4 -2
- package/lib/components/form/field_search/field_search.js +6 -16
- package/lib/components/form/range/range_input.js +1 -1
- package/lib/components/header/header_section/header_section_item.js +4 -3
- package/lib/components/icon/icon.js +1 -9
- package/lib/components/list_group/list_group.js +7 -1
- package/lib/components/list_group/list_group_item.js +10 -3
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/lib/components/modal/modal.js +1 -3
- package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/lib/components/table/table_row_cell.js +4 -6
- package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/lib/global_styling/mixins/_typography.js +1 -1
- package/lib/services/theme/hooks.js +10 -15
- package/optimize/es/components/card/card.styles.js +2 -2
- package/optimize/es/components/combo_box/combo_box.js +2 -15
- package/optimize/es/components/description_list/description_list.js +5 -2
- package/optimize/es/components/description_list/description_list_context.js +2 -1
- package/optimize/es/components/description_list/description_list_description.js +3 -1
- package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/es/components/description_list/description_list_title.js +3 -2
- package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/es/components/description_list/description_list_types.js +2 -1
- package/optimize/es/components/form/field_search/field_search.js +6 -16
- package/optimize/es/components/form/range/range_input.js +1 -1
- package/optimize/es/components/header/header_section/header_section_item.js +4 -3
- package/optimize/es/components/icon/icon.js +1 -9
- package/optimize/es/components/list_group/list_group_item.js +3 -2
- package/optimize/es/components/modal/modal.js +1 -3
- package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/es/global_styling/mixins/_typography.js +1 -1
- package/optimize/es/services/theme/hooks.js +11 -16
- package/optimize/lib/components/card/card.styles.js +2 -2
- package/optimize/lib/components/combo_box/combo_box.js +2 -15
- package/optimize/lib/components/description_list/description_list.js +5 -2
- package/optimize/lib/components/description_list/description_list_context.js +2 -1
- package/optimize/lib/components/description_list/description_list_description.js +3 -1
- package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/lib/components/description_list/description_list_title.js +3 -2
- package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/lib/components/description_list/description_list_types.js +4 -2
- package/optimize/lib/components/form/field_search/field_search.js +6 -16
- package/optimize/lib/components/form/range/range_input.js +1 -1
- package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
- package/optimize/lib/components/icon/icon.js +1 -9
- package/optimize/lib/components/list_group/list_group_item.js +3 -2
- package/optimize/lib/components/modal/modal.js +1 -3
- package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/lib/global_styling/mixins/_typography.js +1 -1
- package/optimize/lib/services/theme/hooks.js +10 -15
- package/package.json +1 -1
- package/src/components/badge/_badge.scss +0 -5
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +3 -1
- package/src/components/flex/_flex_group.scss +2 -11
- package/src/components/flex/_flex_item.scss +0 -6
- package/src/components/form/field_search/_field_search.scss +0 -5
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
- package/src/components/form/form_row/_form_row.scss +0 -1
- package/src/components/header/header_section/_header_section_item.scss +1 -1
- package/src/components/list_group/_list_group_item.scss +3 -25
- package/src/components/modal/_modal.scss +5 -20
- package/src/components/page/page_content/_page_content.scss +0 -1
- package/src/components/table/_responsive.scss +0 -1
- package/src/components/table/_table.scss +0 -5
- package/src/global_styling/mixins/_form.scss +0 -4
- package/src/global_styling/mixins/_helpers.scss +0 -8
- package/src/global_styling/mixins/_typography.scss +1 -5
- package/src/global_styling/utility/_index.scss +0 -1
- package/test-env/components/basic_table/basic_table.js +13 -2
- package/test-env/components/basic_table/in_memory_table.js +13 -2
- package/test-env/components/card/card.styles.js +2 -2
- package/test-env/components/combo_box/combo_box.js +2 -15
- package/test-env/components/datagrid/body/data_grid_body.js +17 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/test-env/components/datagrid/data_grid.js +17 -6
- package/test-env/components/datagrid/utils/in_memory.js +17 -6
- package/test-env/components/description_list/description_list.js +11 -3
- package/test-env/components/description_list/description_list_context.js +2 -1
- package/test-env/components/description_list/description_list_description.js +3 -1
- package/test-env/components/description_list/description_list_description.styles.js +5 -2
- package/test-env/components/description_list/description_list_title.js +3 -2
- package/test-env/components/description_list/description_list_title.styles.js +7 -3
- package/test-env/components/description_list/description_list_types.js +4 -2
- package/test-env/components/form/field_search/field_search.js +6 -16
- package/test-env/components/form/range/range_input.js +1 -1
- package/test-env/components/header/header_section/header_section_item.js +4 -3
- package/test-env/components/list_group/list_group.js +7 -1
- package/test-env/components/list_group/list_group_item.js +10 -3
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/test-env/components/modal/modal.js +1 -3
- package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
- package/test-env/components/table/table_row_cell.js +4 -6
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/test-env/global_styling/mixins/_typography.js +1 -1
- package/test-env/services/theme/hooks.js +10 -15
- package/src/global_styling/utility/_utility.scss +0 -15
|
@@ -32,11 +32,14 @@ var useEuiTheme = function useEuiTheme() {
|
|
|
32
32
|
var theme = (0, _react.useContext)(_context.EuiThemeContext);
|
|
33
33
|
var colorMode = (0, _react.useContext)(_context.EuiColorModeContext);
|
|
34
34
|
var modifications = (0, _react.useContext)(_context.EuiModificationsContext);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
var assembledTheme = (0, _react.useMemo)(function () {
|
|
36
|
+
return {
|
|
37
|
+
euiTheme: theme,
|
|
38
|
+
colorMode: colorMode,
|
|
39
|
+
modifications: modifications
|
|
40
|
+
};
|
|
41
|
+
}, [theme, colorMode, modifications]);
|
|
42
|
+
return assembledTheme;
|
|
40
43
|
};
|
|
41
44
|
|
|
42
45
|
exports.useEuiTheme = useEuiTheme;
|
|
@@ -47,17 +50,9 @@ var withEuiTheme = function withEuiTheme(Component) {
|
|
|
47
50
|
var componentName = Component.displayName || Component.name || 'ComponentWithTheme';
|
|
48
51
|
|
|
49
52
|
var Render = function Render(props, ref) {
|
|
50
|
-
var
|
|
51
|
-
euiTheme = _useEuiTheme.euiTheme,
|
|
52
|
-
colorMode = _useEuiTheme.colorMode,
|
|
53
|
-
modifications = _useEuiTheme.modifications;
|
|
54
|
-
|
|
53
|
+
var theme = useEuiTheme();
|
|
55
54
|
return (0, _react2.jsx)(Component, (0, _extends2.default)({
|
|
56
|
-
theme:
|
|
57
|
-
euiTheme: euiTheme,
|
|
58
|
-
colorMode: colorMode,
|
|
59
|
-
modifications: modifications
|
|
60
|
-
},
|
|
55
|
+
theme: theme,
|
|
61
56
|
ref: ref
|
|
62
57
|
}, props));
|
|
63
58
|
};
|
package/package.json
CHANGED
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
|
|
44
44
|
.euiBadge__childButton {
|
|
45
45
|
@include euiTextTruncate;
|
|
46
|
-
flex: 1 1 auto; // Must be 1 and 1 for IE to properly truncate
|
|
47
46
|
text-align: inherit;
|
|
48
47
|
font-weight: inherit;
|
|
49
48
|
line-height: inherit;
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
.euiBadge__iconButton {
|
|
65
|
-
flex: 0 0 auto;
|
|
66
64
|
font-size: 0; // Makes the button only as large as the icon so it aligns vertically better
|
|
67
65
|
margin-left: $euiSizeXS;
|
|
68
66
|
|
|
@@ -84,13 +82,10 @@
|
|
|
84
82
|
|
|
85
83
|
.euiBadge__text {
|
|
86
84
|
@include euiTextTruncate;
|
|
87
|
-
flex: 1 1 auto;
|
|
88
85
|
cursor: default;
|
|
89
86
|
}
|
|
90
87
|
|
|
91
88
|
.euiBadge__icon {
|
|
92
|
-
flex: 0 0 auto;
|
|
93
|
-
|
|
94
89
|
&:not(:only-child) {
|
|
95
90
|
margin-left: $euiSizeXS;
|
|
96
91
|
}
|
|
@@ -36,9 +36,11 @@
|
|
|
36
36
|
display: flex;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
// A fixed width is required
|
|
39
|
+
// A fixed width is required because of the shift in widths that can be caused
|
|
40
40
|
// by the loading animation that precedes the results.
|
|
41
41
|
.euiFilterGroup__popoverPanel {
|
|
42
|
+
// Note for Emotion conversion: there are unfortunately 5+ direct
|
|
43
|
+
// usages of this className in Kibana that will need to be refactored
|
|
42
44
|
width: $euiSize * 18;
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 1. Not always needed, but fixes an IE11 issue when flex-groups are nested under display: flex elements.
|
|
3
|
-
* 2. IE requires a unit to grow.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
1
|
.euiFlexGroup {
|
|
7
2
|
display: flex;
|
|
8
3
|
align-items: stretch;
|
|
9
|
-
flex-grow: 1;
|
|
4
|
+
flex-grow: 1; // Grow nested flex-groups by default
|
|
10
5
|
|
|
11
6
|
.euiFlexItem {
|
|
12
|
-
@include internetExplorerOnly {
|
|
13
|
-
min-width: 1px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
7
|
flex-grow: 1;
|
|
17
|
-
flex-basis: 0%;
|
|
8
|
+
flex-basis: 0%;
|
|
18
9
|
}
|
|
19
10
|
}
|
|
20
11
|
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 1. Allow EuiPanels to expand to fill the item.
|
|
3
|
-
* 2. IE11 hack forces inner content of flex items to respect a higher parent's width (mostly) and
|
|
4
|
-
* not cause weird wrapping issues.
|
|
5
3
|
*/
|
|
6
4
|
.euiFlexItem {
|
|
7
|
-
@include internetExplorerOnly {
|
|
8
|
-
min-width: 1px; /* 2 */
|
|
9
|
-
}
|
|
10
|
-
|
|
11
5
|
display: flex; /* 1 */
|
|
12
6
|
flex-direction: column; /* 1 */
|
|
13
7
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* 1. Fix for Safari to ensure that it renders like a normal text input
|
|
3
3
|
* and doesn't add extra spacing around text
|
|
4
|
-
* 2. Remove the X clear button from input type search in Chrome and IE
|
|
5
4
|
*/
|
|
6
5
|
|
|
7
6
|
.euiFieldSearch {
|
|
@@ -16,10 +15,6 @@
|
|
|
16
15
|
&::-webkit-search-cancel-button {
|
|
17
16
|
-webkit-appearance: none; /* 1, 2 */
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
&::-ms-clear {
|
|
21
|
-
display: none; /* 2 */
|
|
22
|
-
}
|
|
23
18
|
}
|
|
24
19
|
|
|
25
20
|
.euiFieldSearch--compressed {
|
|
@@ -22,8 +22,6 @@
|
|
|
22
22
|
|
|
23
23
|
.euiFormControlLayoutDelimited__input {
|
|
24
24
|
height: 100%;
|
|
25
|
-
padding-top: 0; // Fixes IE
|
|
26
|
-
padding-bottom: 0; // Fixes IE
|
|
27
25
|
padding-left: $euiFormControlCompressedPadding;
|
|
28
26
|
padding-right: $euiFormControlCompressedPadding;
|
|
29
27
|
}
|
|
@@ -66,7 +64,6 @@
|
|
|
66
64
|
position: static; // Overrider absolute
|
|
67
65
|
padding-left: $euiFormControlPadding;
|
|
68
66
|
padding-right: $euiFormControlPadding;
|
|
69
|
-
flex-shrink: 0; // Fixes IE
|
|
70
67
|
|
|
71
68
|
&:not(.euiFormControlLayoutIcons--right) {
|
|
72
69
|
order: -1;
|
|
@@ -7,21 +7,13 @@
|
|
|
7
7
|
position: relative;
|
|
8
8
|
|
|
9
9
|
&.euiListGroupItem-isActive,
|
|
10
|
-
&.euiListGroupItem-isClickable:hover
|
|
11
|
-
background-color: $euiListGroupItemHoverBackground;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Can't be grouped with above or else IE will ignore the whole group
|
|
10
|
+
&.euiListGroupItem-isClickable:hover,
|
|
15
11
|
&.euiListGroupItem-isClickable:focus-within {
|
|
16
12
|
background-color: $euiListGroupItemHoverBackground;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
15
|
&.euiListGroupItem--ghost {
|
|
20
|
-
&.euiListGroupItem-isClickable:hover
|
|
21
|
-
background-color: $euiListGroupItemHoverBackgroundGhost;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Can't be grouped with above or else IE will ignore the whole group
|
|
16
|
+
&.euiListGroupItem-isClickable:hover,
|
|
25
17
|
&.euiListGroupItem-isClickable:focus-within {
|
|
26
18
|
background-color: $euiListGroupItemHoverBackgroundGhost;
|
|
27
19
|
}
|
|
@@ -46,27 +38,13 @@
|
|
|
46
38
|
}
|
|
47
39
|
}
|
|
48
40
|
|
|
49
|
-
// IE doesn't support :focus-within
|
|
50
|
-
@include internetExplorerOnly {
|
|
51
|
-
.euiListGroupItem__button:hover,
|
|
52
|
-
.euiListGroupItem__button:focus {
|
|
53
|
-
background-color: $euiListGroupItemHoverBackground;
|
|
54
|
-
border-radius: $euiBorderRadius;
|
|
55
|
-
|
|
56
|
-
.euiListGroupItem--ghost .euiListGroupItem__button:hover,
|
|
57
|
-
.euiListGroupItem--ghost .euiListGroupItem__button:focus {
|
|
58
|
-
background-color: $euiListGroupItemHoverBackgroundGhost;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
41
|
.euiListGroupItem__text,
|
|
64
42
|
.euiListGroupItem__button {
|
|
65
43
|
line-height: $euiSizeL;
|
|
66
44
|
padding: $euiSizeXS $euiSizeS;
|
|
67
45
|
display: flex;
|
|
68
46
|
align-items: center;
|
|
69
|
-
flex: 1
|
|
47
|
+
flex-grow: 1;
|
|
70
48
|
text-align: left;
|
|
71
49
|
max-width: 100%;
|
|
72
50
|
font-weight: inherit;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 1. Fix IE overflow issue (min-height) by adding a separate wrapper for the
|
|
3
|
-
* flex display. https://github.com/philipwalton/flexbugs#flexbug-3
|
|
4
|
-
* 2. IE has trouble with min-widths on flex elements. Use the pixel value
|
|
5
|
-
* from our forms since that's usually the smallest we want them.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
.euiModal {
|
|
9
2
|
border: $euiBorderThin;
|
|
10
3
|
// This mixin overwrites some of the border above
|
|
11
4
|
@include euiBottomShadowLarge; // sass-lint:disable-line mixins-before-declarations
|
|
12
|
-
display: flex;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
max-height: 75vh; // We overflow the modal body based off this
|
|
8
|
+
overflow: hidden; // Ensure long, non-breaking text doesn't expand beyond the modal bounds
|
|
13
9
|
|
|
14
10
|
position: relative;
|
|
15
11
|
background-color: $euiColorEmptyShade;
|
|
@@ -23,14 +19,6 @@
|
|
|
23
19
|
&:focus {
|
|
24
20
|
outline: none;
|
|
25
21
|
}
|
|
26
|
-
|
|
27
|
-
.euiModal__flex { /* 1 */
|
|
28
|
-
flex: 1 1 auto;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
max-height: 75vh; // We overflow the modal body based off this
|
|
32
|
-
overflow: hidden; // Ensure long, non-breaking text doesn't expand beyond the modal bounds
|
|
33
|
-
}
|
|
34
22
|
}
|
|
35
23
|
|
|
36
24
|
.euiModal--maxWidth-default {
|
|
@@ -123,6 +111,7 @@
|
|
|
123
111
|
width: 100vw !important;
|
|
124
112
|
max-width: none !important;
|
|
125
113
|
min-width: 0 !important;
|
|
114
|
+
max-height: 100vh;
|
|
126
115
|
left: 0;
|
|
127
116
|
right: 0;
|
|
128
117
|
bottom: 0;
|
|
@@ -134,10 +123,6 @@
|
|
|
134
123
|
@include euiBottomShadowLarge($reverse: true);
|
|
135
124
|
top: auto;
|
|
136
125
|
}
|
|
137
|
-
|
|
138
|
-
.euiModal__flex { /* 1 */
|
|
139
|
-
max-height: 100vh;
|
|
140
|
-
}
|
|
141
126
|
}
|
|
142
127
|
|
|
143
128
|
.euiModalHeader {
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE: table-layout: fixed causes a bug in IE11 and Edge (see #9929). It also prevents us from
|
|
3
|
-
* specifying a column width, e.g. the checkbox column.
|
|
4
|
-
*/
|
|
5
1
|
.euiTable {
|
|
6
2
|
@include euiFontSizeS;
|
|
7
3
|
@include euiNumberFormat;
|
|
@@ -194,7 +190,6 @@
|
|
|
194
190
|
overflow: visible;
|
|
195
191
|
white-space: normal;
|
|
196
192
|
//* 4 */ overflow-wrap is not supported on flex parents
|
|
197
|
-
word-break: break-all; // Fallback for FF and IE
|
|
198
193
|
word-break: break-word;
|
|
199
194
|
}
|
|
200
195
|
|
|
@@ -78,10 +78,6 @@
|
|
|
78
78
|
font-size: $euiFontSizeS;
|
|
79
79
|
color: $euiTextColor;
|
|
80
80
|
|
|
81
|
-
@include internetExplorerOnly {
|
|
82
|
-
line-height: 1em; // fixes text alignment in IE
|
|
83
|
-
}
|
|
84
|
-
|
|
85
81
|
// sass-lint:disable-block mixins-before-declarations
|
|
86
82
|
@include euiPlaceholderPerBrowser {
|
|
87
83
|
color: $euiFormControlPlaceholderText;
|
|
@@ -112,14 +112,6 @@
|
|
|
112
112
|
margin: -1px;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
// Specifically target IE11, but not Edge.
|
|
116
|
-
@mixin internetExplorerOnly {
|
|
117
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
118
|
-
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
|
|
119
|
-
@content;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
115
|
// Doesn't have reduced motion turned on
|
|
124
116
|
@mixin euiCanAnimate {
|
|
125
117
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
@@ -127,8 +127,7 @@
|
|
|
127
127
|
@mixin euiTextBreakWord {
|
|
128
128
|
// https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
129
129
|
overflow-wrap: break-word !important; // makes sure the long string will wrap and not bust out of the container
|
|
130
|
-
word-
|
|
131
|
-
word-break: break-word; // IE doesn't understand but that's ok
|
|
130
|
+
word-break: break-word;
|
|
132
131
|
}
|
|
133
132
|
|
|
134
133
|
// Text truncation
|
|
@@ -138,8 +137,6 @@
|
|
|
138
137
|
//
|
|
139
138
|
// 1. Ensure that the node has a maximum width after which truncation can
|
|
140
139
|
// occur.
|
|
141
|
-
// 2. Fix for IE 8/9 if `word-wrap: break-word` is in effect on ancestor
|
|
142
|
-
// nodes.
|
|
143
140
|
|
|
144
141
|
@mixin euiTextTruncate {
|
|
145
142
|
// sass-lint:disable-block no-important
|
|
@@ -147,7 +144,6 @@
|
|
|
147
144
|
overflow: hidden !important;
|
|
148
145
|
text-overflow: ellipsis !important;
|
|
149
146
|
white-space: nowrap !important;
|
|
150
|
-
word-wrap: normal !important; // 2
|
|
151
147
|
}
|
|
152
148
|
|
|
153
149
|
@mixin euiNumberFormat {
|
|
@@ -1218,6 +1218,11 @@ EuiBasicTable.propTypes = {
|
|
|
1218
1218
|
*/
|
|
1219
1219
|
sortable: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.func.isRequired]),
|
|
1220
1220
|
isExpander: _propTypes.default.bool,
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
1224
|
+
* long text correctly.
|
|
1225
|
+
*/
|
|
1221
1226
|
textOnly: _propTypes.default.bool,
|
|
1222
1227
|
|
|
1223
1228
|
/**
|
|
@@ -1564,11 +1569,17 @@ EuiBasicTable.propTypes = {
|
|
|
1564
1569
|
tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
|
|
1565
1570
|
|
|
1566
1571
|
/**
|
|
1567
|
-
* Applied to table cells
|
|
1572
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
1573
|
+
*
|
|
1574
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
1575
|
+
* long text correctly.
|
|
1568
1576
|
*/
|
|
1569
1577
|
|
|
1570
1578
|
/**
|
|
1571
|
-
* Applied to table cells
|
|
1579
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
1580
|
+
*
|
|
1581
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
1582
|
+
* long text correctly.
|
|
1572
1583
|
*/
|
|
1573
1584
|
textOnly: _propTypes.default.bool
|
|
1574
1585
|
};
|
|
@@ -657,6 +657,11 @@ EuiInMemoryTable.propTypes = {
|
|
|
657
657
|
*/
|
|
658
658
|
sortable: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.func.isRequired]),
|
|
659
659
|
isExpander: _propTypes.default.bool,
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
663
|
+
* long text correctly.
|
|
664
|
+
*/
|
|
660
665
|
textOnly: _propTypes.default.bool,
|
|
661
666
|
|
|
662
667
|
/**
|
|
@@ -930,11 +935,17 @@ EuiInMemoryTable.propTypes = {
|
|
|
930
935
|
tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
|
|
931
936
|
|
|
932
937
|
/**
|
|
933
|
-
* Applied to table cells
|
|
938
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
939
|
+
*
|
|
940
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
941
|
+
* long text correctly.
|
|
934
942
|
*/
|
|
935
943
|
|
|
936
944
|
/**
|
|
937
|
-
* Applied to table cells
|
|
945
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
946
|
+
*
|
|
947
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
948
|
+
* long text correctly.
|
|
938
949
|
*/
|
|
939
950
|
textOnly: _propTypes.default.bool,
|
|
940
951
|
message: _propTypes.default.node,
|
|
@@ -87,14 +87,14 @@ var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize, color)
|
|
|
87
87
|
euiCard__description: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', halfSpacing), ";;label:euiCard__description;"),
|
|
88
88
|
euiCard__footer: /*#__PURE__*/(0, _react.css)("flex-grow:0;", (0, _global_styling.logicalCSS)('width', '100%'), ";", (0, _global_styling.logicalCSS)('margin-top', spacing), ";;label:euiCard__footer;"),
|
|
89
89
|
top: {
|
|
90
|
-
euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('
|
|
90
|
+
euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('margin-bottom', spacing), ";;label:euiCard__top;"),
|
|
91
91
|
layout: {
|
|
92
92
|
vertical: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:vertical;"),
|
|
93
93
|
horizontal: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', 'auto'), ";;label:horizontal;")
|
|
94
94
|
},
|
|
95
95
|
disabled: _ref2
|
|
96
96
|
},
|
|
97
|
-
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", _global_styling.
|
|
97
|
+
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");", color === 'transparent' ? "border-radius: ".concat(euiTheme.border.radius.medium, ";") : undefined, " img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
|
|
98
98
|
icon: {
|
|
99
99
|
euiCard__icon: /*#__PURE__*/(0, _react.css)(";label:euiCard__icon;"),
|
|
100
100
|
withImage: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', '50%'), ";", (0, _global_styling.logicalCSS)('left', '50%'), ";transform:translate(-50%, calc(-50% + -", paddingAmount, "))!important;;label:withImage;"),
|
|
@@ -95,17 +95,9 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "rootId", (0, _services.htmlIdGenerator)());
|
|
96
96
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "comboBoxRefInstance", null);
|
|
97
97
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "comboBoxRefCallback", function (ref) {
|
|
98
|
-
// IE11 doesn't support the `relatedTarget` event property for blur events
|
|
99
|
-
// but does add it for focusout. React doesn't support `onFocusOut` so here we are.
|
|
100
|
-
if (_this.comboBoxRefInstance) {
|
|
101
|
-
_this.comboBoxRefInstance.removeEventListener('focusout', _this.onContainerBlur);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
98
|
_this.comboBoxRefInstance = ref;
|
|
105
99
|
|
|
106
100
|
if (_this.comboBoxRefInstance) {
|
|
107
|
-
_this.comboBoxRefInstance.addEventListener('focusout', _this.onContainerBlur);
|
|
108
|
-
|
|
109
101
|
var comboBoxBounds = _this.comboBoxRefInstance.getBoundingClientRect();
|
|
110
102
|
|
|
111
103
|
_this.setState({
|
|
@@ -390,13 +382,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
390
382
|
});
|
|
391
383
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onContainerBlur", function (event) {
|
|
392
384
|
// close the options list, unless the user clicked on an option
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* FireFox returns `relatedTarget` as `null` for security reasons, but provides a proprietary `explicitOriginalTarget`.
|
|
396
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget
|
|
397
|
-
*/
|
|
398
|
-
var focusEvent = event;
|
|
399
|
-
var relatedTarget = focusEvent.relatedTarget || focusEvent.explicitOriginalTarget;
|
|
385
|
+
var relatedTarget = event.relatedTarget;
|
|
400
386
|
|
|
401
387
|
var focusedInOptionsList = relatedTarget && _this.listRefInstance && _this.listRefInstance.contains(relatedTarget);
|
|
402
388
|
|
|
@@ -827,6 +813,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
827
813
|
className: classes,
|
|
828
814
|
"data-test-subj": dataTestSubj,
|
|
829
815
|
onKeyDown: this.onKeyDown,
|
|
816
|
+
onBlur: this.onContainerBlur,
|
|
830
817
|
ref: this.comboBoxRefCallback
|
|
831
818
|
}), (0, _react2.jsx)(_combo_box_input.EuiComboBoxInput, {
|
|
832
819
|
autoSizeInputRef: this.autoSizeInputRefCallback,
|
|
@@ -700,7 +700,13 @@ EuiDataGridBody.propTypes = {
|
|
|
700
700
|
* Pass-through ref reference specifically for targeting
|
|
701
701
|
* instances where the item content is rendered as a `button`
|
|
702
702
|
*/
|
|
703
|
-
buttonRef: _propTypes.default.any
|
|
703
|
+
buttonRef: _propTypes.default.any,
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
707
|
+
* By default the text will be same as the label text.
|
|
708
|
+
*/
|
|
709
|
+
toolTipText: _propTypes.default.string
|
|
704
710
|
}).isRequired]),
|
|
705
711
|
|
|
706
712
|
/**
|
|
@@ -744,7 +750,8 @@ EuiDataGridBody.propTypes = {
|
|
|
744
750
|
}),
|
|
745
751
|
onClick: _propTypes.default.func,
|
|
746
752
|
wrapText: _propTypes.default.bool,
|
|
747
|
-
buttonRef: _propTypes.default.any
|
|
753
|
+
buttonRef: _propTypes.default.any,
|
|
754
|
+
toolTipText: _propTypes.default.string
|
|
748
755
|
}).isRequired]),
|
|
749
756
|
|
|
750
757
|
/**
|
|
@@ -788,7 +795,8 @@ EuiDataGridBody.propTypes = {
|
|
|
788
795
|
}),
|
|
789
796
|
onClick: _propTypes.default.func,
|
|
790
797
|
wrapText: _propTypes.default.bool,
|
|
791
|
-
buttonRef: _propTypes.default.any
|
|
798
|
+
buttonRef: _propTypes.default.any,
|
|
799
|
+
toolTipText: _propTypes.default.string
|
|
792
800
|
}).isRequired]),
|
|
793
801
|
|
|
794
802
|
/**
|
|
@@ -832,7 +840,8 @@ EuiDataGridBody.propTypes = {
|
|
|
832
840
|
}),
|
|
833
841
|
onClick: _propTypes.default.func,
|
|
834
842
|
wrapText: _propTypes.default.bool,
|
|
835
|
-
buttonRef: _propTypes.default.any
|
|
843
|
+
buttonRef: _propTypes.default.any,
|
|
844
|
+
toolTipText: _propTypes.default.string
|
|
836
845
|
}).isRequired]),
|
|
837
846
|
|
|
838
847
|
/**
|
|
@@ -876,7 +885,8 @@ EuiDataGridBody.propTypes = {
|
|
|
876
885
|
}),
|
|
877
886
|
onClick: _propTypes.default.func,
|
|
878
887
|
wrapText: _propTypes.default.bool,
|
|
879
|
-
buttonRef: _propTypes.default.any
|
|
888
|
+
buttonRef: _propTypes.default.any,
|
|
889
|
+
toolTipText: _propTypes.default.string
|
|
880
890
|
}).isRequired]),
|
|
881
891
|
|
|
882
892
|
/**
|
|
@@ -920,7 +930,8 @@ EuiDataGridBody.propTypes = {
|
|
|
920
930
|
}),
|
|
921
931
|
onClick: _propTypes.default.func,
|
|
922
932
|
wrapText: _propTypes.default.bool,
|
|
923
|
-
buttonRef: _propTypes.default.any
|
|
933
|
+
buttonRef: _propTypes.default.any,
|
|
934
|
+
toolTipText: _propTypes.default.string
|
|
924
935
|
}).isRequired)
|
|
925
936
|
}).isRequired]),
|
|
926
937
|
|