@elastic/eui 71.0.0 → 71.1.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/README.md +0 -7
- package/dist/eui_theme_dark.css +7694 -5793
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +7736 -5835
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/datagrid/data_grid.a11y.js +251 -0
- package/es/components/date_picker/date_picker.a11y.js +83 -0
- package/es/components/delay_hide/delay_hide.a11y.js +106 -0
- package/es/components/delay_render/delay_render.a11y.js +106 -0
- package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/es/components/error_boundary/error_boundary.js +45 -27
- package/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/es/components/page/page_template.js +1 -15
- package/eui.d.ts +19 -11
- package/i18ntokens.json +4 -4
- package/lib/components/datagrid/data_grid.a11y.js +255 -0
- package/lib/components/date_picker/date_picker.a11y.js +89 -0
- package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/lib/components/error_boundary/error_boundary.js +49 -29
- package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/lib/components/page/page_template.js +1 -15
- package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
- package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
- package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
- package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
- package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/optimize/es/components/error_boundary/error_boundary.js +37 -26
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
- package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
- package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/package.json +11 -14
- package/src/components/basic_table/_basic_table.scss +1 -4
- package/src/components/button/button_empty/_button_empty.scss +2 -4
- package/src/components/button/button_group/_button_group.scss +1 -1
- package/src/components/button/button_group/_button_group_button.scss +3 -4
- package/src/components/button/button_icon/_button_icon.scss +0 -3
- package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
- package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
- package/src/components/color_picker/_color_picker.scss +3 -2
- package/src/components/color_picker/_hue.scss +7 -7
- package/src/components/color_picker/_saturation.scss +1 -1
- package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
- package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
- package/src/components/combo_box/_combo_box.scss +7 -6
- package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
- package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
- package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
- package/src/components/control_bar/_variables.scss +0 -1
- package/src/components/datagrid/_data_grid_data_row.scss +4 -5
- package/src/components/datagrid/_mixins.scss +1 -1
- package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
- package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
- package/src/components/date_picker/_date_picker_range.scss +1 -1
- package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
- package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +1 -1
- package/src/components/drag_and_drop/_draggable.scss +3 -5
- package/src/components/drag_and_drop/_droppable.scss +1 -1
- package/src/components/empty_prompt/_empty_prompt.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +2 -2
- package/src/components/filter_group/_filter_select_item.scss +0 -1
- package/src/components/form/checkbox/_checkbox.scss +5 -3
- package/src/components/form/described_form_group/_described_form_group.scss +0 -1
- package/src/components/form/field_password/_field_password.scss +1 -1
- package/src/components/form/field_search/_field_search.scss +1 -1
- package/src/components/form/file_picker/_file_picker.scss +1 -2
- package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
- package/src/components/form/form_row/_form_row.scss +3 -0
- package/src/components/form/radio/_radio.scss +5 -3
- package/src/components/form/select/_select.scss +1 -1
- package/src/components/form/switch/_switch.scss +3 -1
- package/src/components/header/_mixins.scss +1 -1
- package/src/components/header/header_section/_header_section_item.scss +4 -4
- package/src/components/header/header_section/_header_section_item_button.scss +0 -1
- package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
- package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
- package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
- package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
- package/src/components/markdown_editor/_markdown_format.scss +4 -2
- package/src/components/notification/_notification_event.scss +2 -2
- package/src/components/page/page_content/_page_content_body.scss +0 -1
- package/src/components/page/page_content/_page_content_header_section.scss +0 -1
- package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
- package/src/components/panel/split_panel/_split_panel.scss +2 -2
- package/src/components/resizable_container/_resizable_button.scss +31 -31
- package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
- package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
- package/src/components/side_nav/_mixins.scss +1 -1
- package/src/components/side_nav/_side_nav.scss +2 -1
- package/src/components/side_nav/_side_nav_item.scss +2 -3
- package/src/components/steps/_steps.scss +2 -1
- package/src/components/suggest/_suggest_input.scss +1 -1
- package/src/components/suggest/_suggest_item.scss +4 -3
- package/src/components/table/_responsive.scss +5 -3
- package/src/components/table/_table.scss +2 -4
- package/src/components/table/mobile/_mobile.scss +0 -2
- package/src/components/tree_view/tree_view.scss +2 -2
- package/src/global_styling/mixins/_form.scss +7 -18
- package/src/global_styling/mixins/_header.scss +2 -2
- package/src/global_styling/mixins/_helpers.scss +1 -2
- package/src/global_styling/mixins/_icons.scss +1 -1
- package/src/global_styling/mixins/_range.scss +4 -8
- package/src/global_styling/mixins/_responsive.scss +3 -8
- package/src/global_styling/mixins/_shadow.scss +5 -9
- package/src/global_styling/mixins/_states.scss +2 -2
- package/src/global_styling/mixins/_typography.scss +16 -19
- package/src/global_styling/variables/_colors_vis.scss +1 -1
- package/src/global_styling/variables/_typography.scss +1 -3
- package/src/themes/amsterdam/_colors_dark.scss +2 -1
- package/src/themes/amsterdam/_colors_light.scss +2 -0
- package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
- package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
- package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
- package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
- package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
- package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
- package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
- package/src/themes/amsterdam/overrides/_header.scss +2 -2
- package/src/themes/amsterdam/overrides/_hue.scss +6 -6
- package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
- package/src/themes/amsterdam/overrides/_steps.scss +1 -2
- package/src/themes/legacy/_colors_dark.scss +2 -1
- package/src/themes/legacy/_colors_light.scss +2 -0
- package/src/themes/legacy/reset/_reset.scss +8 -7
- package/test-env/components/datagrid/data_grid.a11y.js +248 -0
- package/test-env/components/date_picker/date_picker.a11y.js +87 -0
- package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
- package/test-env/components/delay_render/delay_render.a11y.js +111 -0
- package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/test-env/components/error_boundary/error_boundary.js +48 -28
- package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
- package/test-env/components/page/page_template.js +1 -15
- package/scripts/postinstall.js +0 -9
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
flex-shrink: 0;
|
|
6
6
|
z-index: 1;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
&::before,
|
|
9
|
+
&::after {
|
|
10
10
|
content: '';
|
|
11
11
|
display: block;
|
|
12
12
|
position: absolute;
|
|
13
13
|
top: 50%;
|
|
14
14
|
left: 50%;
|
|
15
15
|
background-color: $euiColorDarkestShade;
|
|
16
|
-
transition:
|
|
16
|
+
transition:
|
|
17
17
|
width $euiResizableButtonTransitionSpeed ease,
|
|
18
18
|
height $euiResizableButtonTransitionSpeed ease,
|
|
19
19
|
transform $euiResizableButtonTransitionSpeed ease,
|
|
20
20
|
background-color $euiResizableButtonTransitionSpeed ease
|
|
21
|
-
|
|
21
|
+
;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.euiResizableButton--horizontal {
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
margin-left: -($euiResizableButtonSize / 2);
|
|
28
28
|
margin-right: -($euiResizableButtonSize / 2);
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
&::before,
|
|
31
|
+
&::after {
|
|
32
32
|
width: 1px;
|
|
33
33
|
height: $euiSizeM;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
&::before {
|
|
37
37
|
transform: translate(-2px, -50%);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
&::after {
|
|
41
41
|
transform: translate(1px, -50%);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -48,82 +48,82 @@
|
|
|
48
48
|
margin-top: -($euiResizableButtonSize / 2);
|
|
49
49
|
margin-bottom: -($euiResizableButtonSize / 2);
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
&::before,
|
|
52
|
+
&::after {
|
|
53
53
|
width: $euiSizeM;
|
|
54
54
|
height: 1px;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
&::before {
|
|
58
58
|
transform: translate(-50%, -2px);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
&::after {
|
|
62
62
|
transform: translate(-50%, 1px);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
//Lighten the "grab" icon on :hover
|
|
66
|
+
// Lighten the "grab" icon on :hover
|
|
67
67
|
&:hover:not(:disabled) {
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
&::before,
|
|
69
|
+
&::after {
|
|
70
70
|
background-color: $euiColorMediumShade;
|
|
71
|
-
transition-delay: $euiResizableButtonTransitionSpeed; //Delay transition on hover so animation is not accidentally triggered on mouse over
|
|
71
|
+
transition-delay: $euiResizableButtonTransitionSpeed; // Delay transition on hover so animation is not accidentally triggered on mouse over
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
//Add a transparent background to the container and emphasis the "grab" icon with primary color on :focus
|
|
75
|
+
// Add a transparent background to the container and emphasis the "grab" icon with primary color on :focus
|
|
76
76
|
&:focus:not(:disabled) {
|
|
77
77
|
background-color: transparentize($euiColorPrimary, .9);
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
&::before,
|
|
80
|
+
&::after {
|
|
81
81
|
background-color: $euiColorPrimary;
|
|
82
82
|
// Overrides default transition so that "grab" icon background-color doesn't animate
|
|
83
|
-
transition:
|
|
83
|
+
transition:
|
|
84
84
|
width $euiResizableButtonTransitionSpeed ease,
|
|
85
85
|
height $euiResizableButtonTransitionSpeed ease,
|
|
86
86
|
transform $euiResizableButtonTransitionSpeed ease
|
|
87
|
-
|
|
87
|
+
;
|
|
88
88
|
transition-delay: $euiResizableButtonTransitionSpeed / 2;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
//Morph the "grab" icon into a fluid 2px straight line on :hover and :focus
|
|
92
|
+
// Morph the "grab" icon into a fluid 2px straight line on :hover and :focus
|
|
93
93
|
&:hover:not(:disabled),
|
|
94
94
|
&:focus:not(:disabled) {
|
|
95
95
|
&.euiResizableButton--horizontal {
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
&::before,
|
|
97
|
+
&::after {
|
|
98
98
|
height: 100%;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
&::before {
|
|
102
102
|
transform: translate(-1px, -50%);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
&::after {
|
|
106
106
|
transform: translate(0, -50%);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&.euiResizableButton--vertical {
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
&::before,
|
|
112
|
+
&::after {
|
|
113
113
|
width: 100%;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
&::before {
|
|
117
117
|
transform: translate(-50%, -1px);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
&::after {
|
|
121
121
|
transform: translate(-50%, 0);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
&:disabled {
|
|
127
|
-
display: none !important; //
|
|
127
|
+
display: none !important; // stylelint-disable-line declaration-no-important
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file has lots of modifiers and is somewhat nesty by nature because of positioning
|
|
2
|
-
//
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* 1. The default position of the button should always be `middle`, so
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
position: absolute;
|
|
14
14
|
z-index: 2;
|
|
15
15
|
// Remove animations from EuiButtonIcon because of the custom transforms
|
|
16
|
-
animation: none !important; //
|
|
16
|
+
animation: none !important; // stylelint-disable-line declaration-no-important
|
|
17
17
|
// Remove transition from EuiButtonIcon because of the custom transforms
|
|
18
18
|
transition-property: background, box-shadow;
|
|
19
19
|
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
&.euiResizableToggleButton-isCollapsed {
|
|
72
|
-
top: 0 !important; //
|
|
73
|
-
bottom: 0 !important; //
|
|
74
|
-
transform: none !important; //
|
|
72
|
+
top: 0 !important; // stylelint-disable-line declaration-no-important
|
|
73
|
+
bottom: 0 !important; // stylelint-disable-line declaration-no-important
|
|
74
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
75
75
|
height: 100%;
|
|
76
76
|
|
|
77
77
|
&.euiResizableToggleButton--top {
|
|
@@ -124,10 +124,10 @@
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
&.euiResizableToggleButton-isCollapsed {
|
|
127
|
-
top: 0 !important; //
|
|
128
|
-
bottom: 0 !important; //
|
|
129
|
-
left: 0 !important; //
|
|
130
|
-
transform: none !important; //
|
|
127
|
+
top: 0 !important; // stylelint-disable-line declaration-no-important
|
|
128
|
+
bottom: 0 !important; // stylelint-disable-line declaration-no-important
|
|
129
|
+
left: 0 !important; // stylelint-disable-line declaration-no-important
|
|
130
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
131
131
|
width: 100%;
|
|
132
132
|
|
|
133
133
|
&.euiResizableToggleButton--left {
|
package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.euiSelectableTemplateSitewide__listItem {
|
|
2
2
|
.euiSelectableListItem__text {
|
|
3
|
-
text-decoration: none !important; //
|
|
3
|
+
text-decoration: none !important; // stylelint-disable-line declaration-no-important
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
// TODO: Any better way to override this focus underline?
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
border-bottom: $euiBorderThin;
|
|
5
5
|
width: 100%;
|
|
6
6
|
text-align: left;
|
|
7
|
-
border-radius: 0 !important; //
|
|
7
|
+
border-radius: 0 !important; // stylelint-disable-line declaration-no-important
|
|
8
8
|
font-size: $euiFontSizeM;
|
|
9
9
|
padding: 0 $euiSize; // This plus the inner padding is equal to paddingSize large for EuiPage
|
|
10
10
|
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// Loop through the breakpoints and apply mobile styles only to the right className
|
|
25
|
+
// stylelint-disable max-nesting-depth
|
|
25
26
|
@each $breakpoint in $euiBreakpointKeys {
|
|
26
27
|
@include euiBreakpoint($breakpoint) {
|
|
27
28
|
.euiSideNav__contentMobile-#{$breakpoint} {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* 4. Restrict the underline to the button __label so it doesn't affect other components that might live within
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
.euiSideNavItemButton {
|
|
10
9
|
@include euiFontSizeS;
|
|
11
10
|
text-align: left; /* 1 */
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
position: static;
|
|
90
89
|
margin-left: 0;
|
|
91
90
|
|
|
92
|
-
|
|
91
|
+
&::after {
|
|
93
92
|
display: none;
|
|
94
93
|
}
|
|
95
94
|
}
|
|
@@ -148,7 +147,7 @@
|
|
|
148
147
|
padding-left: $euiSizeS;
|
|
149
148
|
padding-right: $euiSizeS; /* 2 */
|
|
150
149
|
|
|
151
|
-
|
|
150
|
+
&::after {
|
|
152
151
|
position: absolute; /* 2 */
|
|
153
152
|
content: '';
|
|
154
153
|
top: $euiSizeM;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
.euiStep {
|
|
6
|
-
// sass-lint:disable indentation
|
|
7
6
|
// Create border on all but the last step
|
|
8
7
|
&:not(:last-of-type) {
|
|
8
|
+
// stylelint-disable indentation
|
|
9
9
|
background-image: linear-gradient(
|
|
10
10
|
to right,
|
|
11
11
|
transparent 0,
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
transparent ($euiSize + 1),
|
|
16
16
|
transparent 100%
|
|
17
17
|
);
|
|
18
|
+
// stylelint-enable indentation
|
|
18
19
|
background-repeat: no-repeat;
|
|
19
20
|
background-position: left $euiSizeXXL;
|
|
20
21
|
}
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
// When `onClick` is provided, EuiSuggestItem renders as a <button>
|
|
19
19
|
// and we want to adjust styles to better afford the interaction
|
|
20
|
-
|
|
20
|
+
// stylelint-disable selector-no-qualifying-type
|
|
21
|
+
button.euiSuggestItem {
|
|
21
22
|
width: 100%;
|
|
22
23
|
text-align: left;
|
|
23
24
|
|
|
@@ -31,6 +32,7 @@ button.euiSuggestItem { // sass-lint:disable-line no-qualifying-elements
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
}
|
|
35
|
+
// stylelint-enable selector-no-qualifying-type
|
|
34
36
|
|
|
35
37
|
@each $name, $color in $euiSuggestItemColors {
|
|
36
38
|
.euiSuggestItem__type--#{$name} {
|
|
@@ -84,11 +86,10 @@ button.euiSuggestItem { // sass-lint:disable-line no-qualifying-elements
|
|
|
84
86
|
|
|
85
87
|
&.euiSuggestItem__description--wrap {
|
|
86
88
|
@include euiTextBreakWord;
|
|
87
|
-
white-space: normal !important; //
|
|
89
|
+
white-space: normal !important; // stylelint-disable-line declaration-no-important
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
|
|
91
|
-
|
|
92
93
|
// For specifically within EuiSelectable
|
|
93
94
|
|
|
94
95
|
.euiSuggestItemOption {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
.euiTableRowCell__mobileHeader {
|
|
2
5
|
// Don't display by default unless table is responsive
|
|
3
6
|
display: none;
|
|
@@ -5,20 +8,19 @@
|
|
|
5
8
|
|
|
6
9
|
@include euiBreakpoint('xs', 's') {
|
|
7
10
|
.euiTableRowCell--hideForMobile { // must come last to override any special cases
|
|
8
|
-
//
|
|
11
|
+
// stylelint-disable-next-line declaration-no-important
|
|
9
12
|
display: none !important;
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
@include euiBreakpoint('m', 'l', 'xl') {
|
|
14
17
|
.euiTableRowCell--hideForDesktop { // must come last to override any special cases
|
|
15
|
-
//
|
|
18
|
+
// stylelint-disable-next-line declaration-no-important
|
|
16
19
|
display: none !important;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
@include euiBreakpoint('xs', 's') {
|
|
21
|
-
|
|
22
24
|
.euiTable.euiTable--responsive {
|
|
23
25
|
// Not allowing compressed styles in mobile view (for now)
|
|
24
26
|
|
|
@@ -82,9 +82,7 @@
|
|
|
82
82
|
background-color: $euiTableHoverColor;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
86
85
|
&.euiTableRow-isClickable {
|
|
87
|
-
|
|
88
86
|
&:hover {
|
|
89
87
|
background-color: $euiTableHoverClickableColor;
|
|
90
88
|
cursor: pointer;
|
|
@@ -111,7 +109,7 @@
|
|
|
111
109
|
}
|
|
112
110
|
|
|
113
111
|
&:hover,
|
|
114
|
-
&:hover + .euiTableRow.euiTableRow-isExpandedRow .euiTableRowCell
|
|
112
|
+
&:hover + .euiTableRow.euiTableRow-isExpandedRow .euiTableRowCell {
|
|
115
113
|
background-color: $euiTableHoverSelectedColor;
|
|
116
114
|
}
|
|
117
115
|
}
|
|
@@ -189,7 +187,7 @@
|
|
|
189
187
|
.euiTableCellContent--overflowingContent {
|
|
190
188
|
overflow: visible;
|
|
191
189
|
white-space: normal;
|
|
192
|
-
|
|
190
|
+
// /* 4 */ overflow-wrap is not supported on flex parents
|
|
193
191
|
word-break: break-word;
|
|
194
192
|
}
|
|
195
193
|
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
.euiTreeView__iconPlaceholder {
|
|
42
42
|
width: $euiSizeXL;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
.euiTreeView__nodeLabel {
|
|
@@ -58,6 +57,8 @@
|
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
|
|
60
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
61
|
+
// stylelint-disable max-nesting-depth
|
|
61
62
|
.euiTreeView--compressed {
|
|
62
63
|
.euiTreeView__node {
|
|
63
64
|
max-height: $euiSizeL;
|
|
@@ -65,7 +66,6 @@
|
|
|
65
66
|
|
|
66
67
|
.euiTreeView__nodeInner {
|
|
67
68
|
height: $euiSizeL;
|
|
68
|
-
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.euiTreeView__iconWrapper {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
@mixin euiPlaceholderPerBrowser {
|
|
58
|
-
//
|
|
58
|
+
// stylelint-disable selector-no-vendor-prefix
|
|
59
59
|
// Each prefix must be its own content block
|
|
60
60
|
&::-webkit-input-placeholder { @content; opacity: 1; }
|
|
61
61
|
&::-moz-placeholder { @content; opacity: 1; }
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
font-size: $euiFontSizeS;
|
|
79
79
|
color: $euiTextColor;
|
|
80
80
|
|
|
81
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
82
81
|
@include euiPlaceholderPerBrowser {
|
|
83
82
|
color: $euiFormControlPlaceholderText;
|
|
84
83
|
}
|
|
@@ -143,7 +142,6 @@
|
|
|
143
142
|
// 1. Must supply both values to background-size or some browsers apply the single value to both directions
|
|
144
143
|
|
|
145
144
|
@mixin euiFormControlDefaultShadow($borderOnly: false) {
|
|
146
|
-
// sass-lint:disable-block indentation
|
|
147
145
|
background-color: $euiFormBackgroundColor;
|
|
148
146
|
background-repeat: no-repeat;
|
|
149
147
|
background-size: 0% 100%; // 1
|
|
@@ -164,14 +162,13 @@
|
|
|
164
162
|
|
|
165
163
|
// Fixes bug in Firefox where adding a transition to the background-color
|
|
166
164
|
// caused a flash of differently styled dropdown.
|
|
167
|
-
@supports (-moz-appearance: none) {
|
|
165
|
+
@supports (-moz-appearance: none) {
|
|
168
166
|
// List *must* be in the same order as the above.
|
|
169
167
|
transition-property: box-shadow, background-image, background-size;
|
|
170
168
|
}
|
|
171
169
|
}
|
|
172
170
|
|
|
173
171
|
@mixin euiFormControlFocusStyle($borderOnly: false) {
|
|
174
|
-
// sass-lint:disable-block indentation, empty-args
|
|
175
172
|
background-color: tintOrShade($euiColorEmptyShade, 0%, 40%);
|
|
176
173
|
background-image: euiFormControlGradient();
|
|
177
174
|
background-size: 100% 100%; // 1
|
|
@@ -180,8 +177,7 @@
|
|
|
180
177
|
@if ($borderOnly) {
|
|
181
178
|
box-shadow: inset 0 0 0 1px $euiFormBorderColor;
|
|
182
179
|
} @else {
|
|
183
|
-
box-shadow:
|
|
184
|
-
inset 0 0 0 1px $euiFormBorderColor;
|
|
180
|
+
box-shadow: inset 0 0 0 1px $euiFormBorderColor;
|
|
185
181
|
}
|
|
186
182
|
}
|
|
187
183
|
|
|
@@ -191,7 +187,6 @@
|
|
|
191
187
|
}
|
|
192
188
|
|
|
193
189
|
@mixin euiFormControlDisabledTextStyle {
|
|
194
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
195
190
|
color: $euiFormControlDisabledColor;
|
|
196
191
|
-webkit-text-fill-color: $euiFormControlDisabledColor; // Required for Safari
|
|
197
192
|
}
|
|
@@ -202,14 +197,12 @@
|
|
|
202
197
|
background: $euiFormBackgroundDisabledColor;
|
|
203
198
|
box-shadow: inset 0 0 0 1px $euiFormBorderDisabledColor;
|
|
204
199
|
|
|
205
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
206
200
|
@include euiPlaceholderPerBrowser {
|
|
207
201
|
color: $euiFormControlDisabledColor;
|
|
208
202
|
}
|
|
209
203
|
}
|
|
210
204
|
|
|
211
205
|
@mixin euiFormControlReadOnlyStyle {
|
|
212
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
213
206
|
cursor: default;
|
|
214
207
|
color: $euiTextColor;
|
|
215
208
|
-webkit-text-fill-color: $euiTextColor; // Required for Safari
|
|
@@ -219,7 +212,6 @@
|
|
|
219
212
|
box-shadow: inset 0 0 0 1px $euiFormBorderDisabledColor;
|
|
220
213
|
}
|
|
221
214
|
|
|
222
|
-
|
|
223
215
|
// 2. Override invalid state with focus state.
|
|
224
216
|
|
|
225
217
|
@mixin euiFormControlStyle($borderOnly: false, $includeStates: true, $includeSizes: true) {
|
|
@@ -249,7 +241,6 @@
|
|
|
249
241
|
}
|
|
250
242
|
|
|
251
243
|
// Needs to be set for autofill
|
|
252
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
253
244
|
&:-webkit-autofill {
|
|
254
245
|
-webkit-text-fill-color: lightOrDarkTheme($euiColorDarkestShade, $euiColorLightShade);
|
|
255
246
|
|
|
@@ -257,7 +248,6 @@
|
|
|
257
248
|
color: lightOrDarkTheme($euiColorDarkestShade, $euiColorLightShade);
|
|
258
249
|
}
|
|
259
250
|
}
|
|
260
|
-
|
|
261
251
|
}
|
|
262
252
|
|
|
263
253
|
@if ($includeSizes) {
|
|
@@ -266,7 +256,7 @@
|
|
|
266
256
|
}
|
|
267
257
|
|
|
268
258
|
&--inGroup {
|
|
269
|
-
//
|
|
259
|
+
// stylelint-disable-next-line declaration-no-important
|
|
270
260
|
box-shadow: none !important;
|
|
271
261
|
border-radius: 0;
|
|
272
262
|
}
|
|
@@ -313,12 +303,11 @@
|
|
|
313
303
|
} @else if $type == 'square' {
|
|
314
304
|
border-radius: $euiCheckboxBorderRadius;
|
|
315
305
|
}
|
|
316
|
-
|
|
306
|
+
|
|
317
307
|
transition: background-color $euiAnimSpeedFast ease-in,
|
|
318
|
-
border-color $euiAnimSpeedFast ease-in;
|
|
308
|
+
border-color $euiAnimSpeedFast ease-in; // stylelint-disable-line indentation
|
|
319
309
|
}
|
|
320
310
|
|
|
321
|
-
|
|
322
311
|
@mixin euiCustomControlSelected($type: null) {
|
|
323
312
|
border-color: $euiColorPrimary;
|
|
324
313
|
background-color: $euiColorPrimary;
|
|
@@ -363,7 +352,7 @@
|
|
|
363
352
|
|
|
364
353
|
@mixin euiHiddenSelectableInput {
|
|
365
354
|
position: absolute;
|
|
366
|
-
//
|
|
355
|
+
// stylelint-disable-next-line declaration-no-important
|
|
367
356
|
opacity: 0 !important; // Make sure it's still hidden when :disabled
|
|
368
357
|
width: 100%;
|
|
369
358
|
height: 100%;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@import '../variables/header';
|
|
2
2
|
|
|
3
3
|
@mixin euiHeaderAffordForFixed($headerHeight: $euiHeaderHeightCompensation) {
|
|
4
|
-
// The
|
|
4
|
+
// The `@at-root #{&}` allows for grouping alongside another specific body class.
|
|
5
5
|
// When not applied inside of another selector, it simply renders with the single class
|
|
6
|
-
|
|
6
|
+
@at-root #{&}.euiBody--headerIsFixed {
|
|
7
7
|
padding-top: $headerHeight;
|
|
8
8
|
|
|
9
9
|
// When the EuiHeader is fixed, we need to account for it in the position of the flyout
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
@mixin euiScrollBar($thumbColor: $euiColorDarkShade, $trackBackgroundColor: transparent, $size: 'thin') {
|
|
5
5
|
// Firefox's scrollbar coloring cascades, but the sizing does not,
|
|
6
6
|
// so it's being added to this mixin for allowing support wherever custom scrollbars are
|
|
7
|
-
// sass-lint:disable-block no-misspelled-properties
|
|
8
7
|
scrollbar-color: transparentize($thumbColor, .5) $trackBackgroundColor; // Firefox support
|
|
9
8
|
|
|
10
9
|
@if ($size == 'thin') {
|
|
11
10
|
scrollbar-width: thin;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
//
|
|
13
|
+
// stylelint-disable selector-no-vendor-prefix
|
|
15
14
|
&::-webkit-scrollbar {
|
|
16
15
|
width: $euiScrollBar;
|
|
17
16
|
height: $euiScrollBar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// For using icons as background images (data-uri)
|
|
2
2
|
@mixin euiIconBackground($type, $color: $euiColorEmptyShade) {
|
|
3
|
-
//
|
|
3
|
+
// stylelint-disable string-quotes
|
|
4
4
|
@if variable-exists(type) == false {
|
|
5
5
|
@error 'A $type:string must be provided to @mixin euiIconBackground().';
|
|
6
6
|
} @else if type-of($color) != color {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Prefixes are unique in this file
|
|
2
|
-
// sass-lint:disable no-vendor-prefixes
|
|
3
|
-
|
|
4
1
|
/*
|
|
5
2
|
The CSS in JS version of this file lives in:
|
|
6
3
|
- src/components/form/range/range.styles.ts
|
|
@@ -31,10 +28,10 @@ The following files still use the Sass version:
|
|
|
31
28
|
}
|
|
32
29
|
|
|
33
30
|
@mixin euiRangeThumbBoxShadow {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
box-shadow:
|
|
32
|
+
0 0 0 1px $euiRangeThumbBorderColor,
|
|
33
|
+
0 2px 2px -1px rgba($euiShadowColor, .2),
|
|
34
|
+
0 1px 5px -2px rgba($euiShadowColor, .2);
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
@mixin euiRangeThumbFocusBoxShadow {
|
|
@@ -58,7 +55,6 @@ The following files still use the Sass version:
|
|
|
58
55
|
&::-ms-thumb { @content; }
|
|
59
56
|
}
|
|
60
57
|
|
|
61
|
-
|
|
62
58
|
@mixin euiRangeThumbFocus {
|
|
63
59
|
@include euiRangeThumbBorder;
|
|
64
60
|
@include euiRangeThumbFocusBoxShadow;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// This file makes use of double quotes to format errors with nested single quotes
|
|
2
|
-
// The indentation linting freaks out on comments above else statements and is disabled.
|
|
3
|
-
|
|
4
|
-
// sass-lint:disable quotes, no-warn, indentation
|
|
5
|
-
|
|
6
1
|
// A sem-complicated mixin for breakpoints, that takes any number of
|
|
7
2
|
// named breakpoints that exists in $euiBreakpoints.
|
|
8
3
|
|
|
@@ -23,7 +18,7 @@
|
|
|
23
18
|
@media only screen and (min-width: $minSize) {
|
|
24
19
|
@content;
|
|
25
20
|
}
|
|
26
|
-
|
|
21
|
+
// If it's not the last item, add a max-width
|
|
27
22
|
} @else {
|
|
28
23
|
|
|
29
24
|
// Set the max size to the value of the next size (-1px as to not overlap)
|
|
@@ -34,14 +29,14 @@
|
|
|
34
29
|
@media only screen and (max-width: $maxSize) {
|
|
35
30
|
@content;
|
|
36
31
|
}
|
|
37
|
-
|
|
32
|
+
// Otherwise it should have a min and max width
|
|
38
33
|
} @else {
|
|
39
34
|
@media only screen and (min-width: $minSize) and (max-width: $maxSize) {
|
|
40
35
|
@content;
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
|
-
|
|
39
|
+
// If it's not a known breakpoint, throw a warning
|
|
45
40
|
} @else {
|
|
46
41
|
@warn "euiBreakpoint(): '#{$size}' is not a valid size in $euiBreakpoints. Accepted values are '#{$euiBreakpointKeys}'";
|
|
47
42
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// This file uses RGBA literal values responsibly
|
|
2
|
-
// This file uses off-pattern indentation to be more readable
|
|
3
|
-
|
|
4
|
-
// sass-lint:disable no-color-literals, no-color-keywords, indentation, quotes
|
|
5
|
-
|
|
6
1
|
@function shadowOpacity($opacity) {
|
|
7
2
|
@if (lightness($euiTextColor) < 50) {
|
|
8
3
|
@return $opacity * 1;
|
|
@@ -76,15 +71,16 @@
|
|
|
76
71
|
0 23px 35px rgba($color, shadowOpacity(.05));
|
|
77
72
|
}
|
|
78
73
|
|
|
74
|
+
// stylelint-disable color-named
|
|
79
75
|
@mixin euiOverflowShadow($direction: 'y', $side: 'both') {
|
|
80
76
|
$hideHeight: $euiScrollBarCornerThin * 1.25;
|
|
81
77
|
$gradient: null;
|
|
82
78
|
$gradientStart:
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
transparentize(red, .9) 0%,
|
|
80
|
+
transparentize(red, 0) $hideHeight;
|
|
85
81
|
$gradientEnd:
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
transparentize(red, 0) calc(100% - #{$hideHeight}),
|
|
83
|
+
transparentize(red, .9) 100%;
|
|
88
84
|
@if ($side == 'both' or $side == 'start' or $side == 'end') {
|
|
89
85
|
@if ($side == 'both') {
|
|
90
86
|
$gradient: $gradientStart, $gradientEnd;
|