@elastic/eui 71.0.0 → 72.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/README.md +0 -7
- package/dist/eui_theme_dark.css +7747 -5854
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +7737 -5844
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/datagrid/data_grid.a11y.js +251 -0
- package/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/es/components/date_picker/date_picker.a11y.js +83 -0
- package/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +160 -173
- package/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +16 -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.a11y.js +67 -0
- package/es/components/error_boundary/error_boundary.js +45 -27
- package/es/components/expression/expression.a11y.js +254 -0
- package/es/components/filter_group/filter_group.a11y.js +281 -0
- package/es/components/focus_trap/focus_trap.a11y.js +131 -0
- package/es/components/form/file_picker/file_picker.js +1 -0
- package/es/components/header/header.a11y.js +374 -0
- package/es/components/icon/icon_ML.a11y.js +33 -0
- package/es/components/icon/icon_apps.a11y.js +33 -0
- package/es/components/icon/icon_editor.a11y.js +33 -0
- package/es/components/icon/icon_elastic.a11y.js +33 -0
- package/es/components/icon/icon_glyphs.a11y.js +33 -0
- package/es/components/icon/icon_tokens.a11y.js +33 -0
- package/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
- package/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/es/components/page/page_template.js +1 -15
- package/es/components/selectable/selectable.js +4 -3
- package/es/components/selectable/selectable_list/selectable_list.js +17 -5
- package/es/components/tabs/tab.js +7 -17
- package/es/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/es/components/tabs/tabs.js +7 -11
- package/es/components/tabs/tabs_context.js +13 -0
- package/eui.d.ts +60 -43
- package/i18ntokens.json +34 -18
- package/lib/components/datagrid/data_grid.a11y.js +255 -0
- package/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/lib/components/date_picker/date_picker.a11y.js +89 -0
- package/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +155 -168
- package/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +16 -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.a11y.js +75 -0
- package/lib/components/error_boundary/error_boundary.js +49 -29
- package/lib/components/expression/expression.a11y.js +262 -0
- package/lib/components/filter_group/filter_group.a11y.js +287 -0
- package/lib/components/focus_trap/focus_trap.a11y.js +140 -0
- package/lib/components/form/file_picker/file_picker.js +1 -0
- package/lib/components/header/header.a11y.js +385 -0
- package/lib/components/icon/icon_ML.a11y.js +40 -0
- package/lib/components/icon/icon_apps.a11y.js +40 -0
- package/lib/components/icon/icon_editor.a11y.js +40 -0
- package/lib/components/icon/icon_elastic.a11y.js +40 -0
- package/lib/components/icon/icon_glyphs.a11y.js +40 -0
- package/lib/components/icon/icon_tokens.a11y.js +40 -0
- package/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/lib/components/page/page_template.js +1 -15
- package/lib/components/selectable/selectable.js +4 -3
- package/lib/components/selectable/selectable_list/selectable_list.js +17 -5
- package/lib/components/tabs/tab.js +14 -17
- package/lib/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/lib/components/tabs/tabs.js +8 -14
- package/lib/components/tabs/tabs_context.js +23 -0
- package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
- package/optimize/es/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +145 -169
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +2 -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.a11y.js +67 -0
- package/optimize/es/components/error_boundary/error_boundary.js +37 -26
- package/optimize/es/components/expression/expression.a11y.js +243 -0
- package/optimize/es/components/filter_group/filter_group.a11y.js +271 -0
- package/optimize/es/components/focus_trap/focus_trap.a11y.js +120 -0
- package/optimize/es/components/form/file_picker/file_picker.js +1 -0
- package/optimize/es/components/header/header.a11y.js +364 -0
- package/optimize/es/components/icon/icon_ML.a11y.js +33 -0
- package/optimize/es/components/icon/icon_apps.a11y.js +33 -0
- package/optimize/es/components/icon/icon_editor.a11y.js +33 -0
- package/optimize/es/components/icon/icon_elastic.a11y.js +33 -0
- package/optimize/es/components/icon/icon_glyphs.a11y.js +33 -0
- package/optimize/es/components/icon/icon_tokens.a11y.js +33 -0
- package/optimize/es/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +1 -1
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/optimize/es/components/selectable/selectable.js +2 -2
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +15 -4
- package/optimize/es/components/tabs/tab.js +7 -5
- package/optimize/es/components/tabs/tabs.js +7 -11
- package/optimize/es/components/tabs/tabs_context.js +13 -0
- package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
- package/optimize/lib/components/date_picker/auto_refresh/refresh_interval.js +3 -1
- package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +146 -167
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -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.a11y.js +75 -0
- package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
- package/optimize/lib/components/expression/expression.a11y.js +254 -0
- package/optimize/lib/components/filter_group/filter_group.a11y.js +287 -0
- package/optimize/lib/components/focus_trap/focus_trap.a11y.js +140 -0
- package/optimize/lib/components/form/file_picker/file_picker.js +1 -0
- package/optimize/lib/components/header/header.a11y.js +385 -0
- package/optimize/lib/components/icon/icon_ML.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_apps.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_editor.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_elastic.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +40 -0
- package/optimize/lib/components/icon/icon_tokens.a11y.js +40 -0
- package/optimize/lib/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/optimize/lib/components/selectable/selectable.js +2 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +15 -4
- package/optimize/lib/components/tabs/tab.js +15 -5
- package/optimize/lib/components/tabs/tabs.js +8 -14
- package/optimize/lib/components/tabs/tabs_context.js +23 -0
- package/package.json +14 -19
- 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 +15 -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 +15 -16
- 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/auto_refresh/refresh_interval.js +3 -1
- package/test-env/components/date_picker/date_picker.a11y.js +87 -0
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js +5 -2
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +153 -166
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +5 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +16 -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.a11y.js +75 -0
- package/test-env/components/error_boundary/error_boundary.js +48 -28
- package/test-env/components/expression/expression.a11y.js +254 -0
- package/test-env/components/filter_group/filter_group.a11y.js +287 -0
- package/test-env/components/focus_trap/focus_trap.a11y.js +140 -0
- package/test-env/components/form/file_picker/file_picker.js +1 -0
- package/test-env/components/header/header.a11y.js +385 -0
- package/test-env/components/icon/icon_ML.a11y.js +40 -0
- package/test-env/components/icon/icon_apps.a11y.js +40 -0
- package/test-env/components/icon/icon_editor.a11y.js +40 -0
- package/test-env/components/icon/icon_elastic.a11y.js +40 -0
- package/test-env/components/icon/icon_glyphs.a11y.js +40 -0
- package/test-env/components/icon/icon_tokens.a11y.js +40 -0
- package/test-env/components/markdown_editor/plugins/markdown_default_plugins/parsing_plugins.js +2 -2
- 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/test-env/components/selectable/selectable.js +4 -3
- package/test-env/components/selectable/selectable_list/selectable_list.js +17 -5
- package/test-env/components/tabs/tab.js +15 -17
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +0 -16
- package/test-env/components/tabs/tabs.js +8 -14
- package/test-env/components/tabs/tabs_context.js +23 -0
- package/scripts/postinstall.js +0 -9
|
@@ -100,16 +100,16 @@
|
|
|
100
100
|
.euiDataGridRowCell__popover {
|
|
101
101
|
@include euiScrollBar;
|
|
102
102
|
overflow: auto;
|
|
103
|
-
//
|
|
103
|
+
// stylelint-disable declaration-no-important
|
|
104
104
|
max-width: 400px !important;
|
|
105
105
|
max-height: 400px !important;
|
|
106
106
|
z-index: $euiZDataGridCellPopover !important;
|
|
107
|
+
// stylelint-enable declaration-no-important
|
|
107
108
|
// Workaround for a Safari CSS bug when using both `overflow: auto` & `filter: drop-shadow`
|
|
108
109
|
// (see https://github.com/elastic/eui/issues/6151)
|
|
109
110
|
// Disables the default EuiPopover filter drop-shadow and uses box-shadow instead,
|
|
110
111
|
// since we don't use the popover arrow in any case for cell popovers
|
|
111
112
|
filter: none;
|
|
112
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
113
113
|
@include euiBottomShadow; // TODO: Convert to euiShadowMedium() in Emotion
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
// Have to take out the generic transition so it is instaneous on focus
|
|
157
157
|
transition: none;
|
|
158
158
|
// Disable filled button box-shadows on legacy theme - they're unnecessary when this small in a datagrid
|
|
159
|
-
box-shadow: none !important; //
|
|
159
|
+
box-shadow: none !important; // stylelint-disable-line declaration-no-important
|
|
160
160
|
// Remove filled button borders on legacy theme - this way we don't need to animate the border
|
|
161
161
|
border: none;
|
|
162
162
|
}
|
|
@@ -184,8 +184,7 @@
|
|
|
184
184
|
// Border alternates
|
|
185
185
|
@include euiDataGridStyles(bordersNone) {
|
|
186
186
|
@include euiDataGridRowCell {
|
|
187
|
-
//
|
|
188
|
-
border-color: transparent !important;
|
|
187
|
+
border-color: transparent !important; // stylelint-disable-line declaration-no-important
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
190
|
|
|
@@ -67,7 +67,7 @@ $euiDataGridStyles: (
|
|
|
67
67
|
border: $euiBorderWidthThick solid $euiFocusRingColor;
|
|
68
68
|
border-radius: $euiBorderRadiusSmall;
|
|
69
69
|
z-index: 2; // We want this to be on top of all the content
|
|
70
|
-
pointer-events: none; // Because we put it with a higher z-index we don't want to make it clickable this way we allow selecting the content behind
|
|
70
|
+
pointer-events: none; // Because we put it with a higher z-index we don't want to make it clickable this way we allow selecting the content behind
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
@include euiDataGridStyles(footerOverline) {
|
|
19
19
|
@include euiDataGridFooterCell {
|
|
20
20
|
border-top: $euiBorderThick;
|
|
21
|
-
//
|
|
21
|
+
// stylelint-disable declaration-no-important
|
|
22
22
|
border-top-color: $euiTextColor !important;
|
|
23
23
|
background: $euiColorEmptyShade !important;
|
|
24
|
+
// stylelint-enable declaration-no-important
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// Resizer straddles the column border and is an invisible hitzone for dragging
|
|
2
2
|
.euiDataGridColumnResizer {
|
|
3
3
|
position: absolute;
|
|
4
4
|
top: 0;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
z-index: 2; // Needs to be a level above the cells themselves in case of overlaps
|
|
11
11
|
|
|
12
12
|
// Center a vertical line within the button above
|
|
13
|
-
|
|
13
|
+
&::after {
|
|
14
14
|
content: '';
|
|
15
15
|
position: absolute;
|
|
16
16
|
left: $euiSizeS - 1px;
|
|
@@ -35,12 +35,11 @@
|
|
|
35
35
|
// we don't use negative positioning and the borders from the cell will match the container.
|
|
36
36
|
@include euiDataGridHeaderCell {
|
|
37
37
|
&:last-child {
|
|
38
|
-
|
|
39
38
|
.euiDataGridColumnResizer {
|
|
40
39
|
right: 0;
|
|
41
40
|
width: $euiSize / 2;
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
&::after {
|
|
44
43
|
left: auto;
|
|
45
44
|
right: 0;
|
|
46
45
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.euiDataGridColumnSorting__item {
|
|
2
|
-
|
|
3
2
|
&-isDragging {
|
|
4
3
|
@include euiBottomShadow;
|
|
5
4
|
background: $euiColorEmptyShade;
|
|
@@ -35,8 +34,8 @@
|
|
|
35
34
|
border: none;
|
|
36
35
|
|
|
37
36
|
// Hack to overwrite some nested, unreachable component code with button groups
|
|
38
|
-
// sass-lint:disable-block no-important
|
|
39
37
|
button {
|
|
38
|
+
// stylelint-disable-next-line declaration-no-important
|
|
40
39
|
font-size: $euiFontSizeXS !important;
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
.euiFieldText.euiDatePicker {
|
|
19
19
|
height: $euiFormControlLayoutGroupInputHeight;
|
|
20
20
|
// including all states
|
|
21
|
-
box-shadow: none !important; //
|
|
21
|
+
box-shadow: none !important; // stylelint-disable-line declaration-no-important
|
|
22
22
|
text-align: center;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// sass-lint:disable-block function-name-format
|
|
2
|
-
|
|
3
1
|
.euiSuperDatePicker__flexWrapper {
|
|
4
2
|
max-width: 100%;
|
|
5
3
|
// Set a sensible min-width for when width is auto
|
|
@@ -34,10 +32,9 @@
|
|
|
34
32
|
width: $euiSuperDatePickerWidth;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
|
|
38
35
|
.euiSuperDatePicker {
|
|
39
|
-
// sass-lint:disable-block no-important
|
|
40
36
|
// Allow it to always grow to fit the container since the default form max width is too small
|
|
37
|
+
// stylelint-disable-next-line declaration-no-important
|
|
41
38
|
max-width: 100% !important;
|
|
42
39
|
|
|
43
40
|
> .euiFormControlLayout__childrenWrapper {
|
package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
.euiQuickSelectPopover__content {
|
|
2
2
|
width: $euiFormMaxWidth;
|
|
3
3
|
max-width: 100%;
|
|
4
|
+
|
|
5
|
+
.euiQuickSelectPopover__panel {
|
|
6
|
+
&:not(:first-child) {
|
|
7
|
+
border-top: $euiBorderThin;
|
|
8
|
+
padding-top: $euiSizeM;
|
|
9
|
+
margin-top: $euiSizeM;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.euiQuickSelectPopover__panelTitle {
|
|
13
|
+
float: left;
|
|
14
|
+
margin-bottom: $euiSizeM;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
4
17
|
}
|
|
5
18
|
|
|
6
19
|
.euiQuickSelectPopover__section {
|
|
@@ -9,11 +22,12 @@
|
|
|
9
22
|
overflow: hidden;
|
|
10
23
|
overflow-y: auto;
|
|
11
24
|
margin: $euiSizeS 0 0;
|
|
25
|
+
clear: both;
|
|
12
26
|
}
|
|
13
27
|
|
|
14
|
-
// sass-lint:disable no-important
|
|
15
28
|
.euiQuickSelectPopover__buttonText {
|
|
16
29
|
// Override specificity from universal and sibling selectors
|
|
30
|
+
// stylelint-disable-next-line declaration-no-important
|
|
17
31
|
margin-right: $euiSizeXS !important;
|
|
18
32
|
}
|
|
19
33
|
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
// sass-lint:disable no-empty-rulesets
|
|
2
|
-
|
|
3
1
|
.euiDraggable {
|
|
4
2
|
&.euiDraggable--isDragging {
|
|
5
3
|
// Overriding inline styles on JS-inserted HTML elements
|
|
6
|
-
z-index: $euiZLevel9 !important; //
|
|
4
|
+
z-index: $euiZLevel9 !important; // stylelint-disable-line declaration-no-important
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
&.euiDraggable--hasClone:not(.euiDraggable--isDragging) {
|
|
10
8
|
// Overriding inline styles on JS-inserted HTML elements
|
|
11
|
-
transform: none !important; //
|
|
9
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
&.euiDraggable--withoutDropAnimation {
|
|
15
13
|
// Overriding inline styles on JS-inserted HTML elements
|
|
16
|
-
transition-duration: .001s !important; //
|
|
14
|
+
transition-duration: .001s !important; // stylelint-disable-line declaration-no-important
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
&:focus > .euiDraggable__item,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.euiDroppable__placeholder {
|
|
14
14
|
&.euiDroppable__placeholder--isHidden {
|
|
15
15
|
// Overriding inline styles on JS-inserted HTML elements
|
|
16
|
-
display: none !important; //
|
|
16
|
+
display: none !important; // stylelint-disable-line declaration-no-important
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
min-width: $euiSize * 3;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
> .euiFilterButton--noGrow
|
|
13
|
+
> .euiFilterButton--noGrow {
|
|
14
14
|
flex-grow: 0;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
display: flex;
|
|
57
57
|
|
|
58
58
|
.euiFilterButton {
|
|
59
|
-
//
|
|
59
|
+
// stylelint-disable-next-line declaration-no-important
|
|
60
60
|
flex-grow: 1 !important;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* 1. Float above the visual radio and match its dimension, so that when users try to click it
|
|
3
6
|
* they actually click this input.
|
|
@@ -48,12 +51,11 @@
|
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
&[disabled] {
|
|
51
|
-
//
|
|
52
|
-
cursor: not-allowed !important;
|
|
54
|
+
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
53
55
|
|
|
54
56
|
~ .euiCheckbox__label {
|
|
55
57
|
color: $euiFormControlDisabledColor;
|
|
56
|
-
cursor: not-allowed !important;
|
|
58
|
+
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
+ .euiCheckbox__square {
|
|
@@ -2,13 +2,13 @@
|
|
|
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
4
|
*/
|
|
5
|
+
// stylelint-disable property-no-vendor-prefix, selector-no-vendor-prefix
|
|
5
6
|
|
|
6
7
|
.euiFieldSearch {
|
|
7
8
|
@include euiFormControlStyle;
|
|
8
9
|
@include euiFormControlWithIcon($isIconOptional: false);
|
|
9
10
|
@include euiFormControlIsLoading;
|
|
10
11
|
|
|
11
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
12
12
|
-webkit-appearance: textfield; /* 1 */
|
|
13
13
|
|
|
14
14
|
&::-webkit-search-decoration,
|
|
@@ -64,31 +64,28 @@
|
|
|
64
64
|
/**
|
|
65
65
|
* 1. Don't block the user from dropping files onto the filepicker.
|
|
66
66
|
* 2. Ensure space for import icon, loading spinner, and clear button (only if it has files)
|
|
67
|
-
* 3. Delay focus gradient or else it will only partially transition while file chooser opens
|
|
68
67
|
* 4. Static height so that it doesn't shift its surrounding contents around
|
|
69
68
|
*/
|
|
70
69
|
.euiFilePicker__prompt {
|
|
71
|
-
@include euiFormControlDefaultShadow;
|
|
72
70
|
@include euiFormControlWithIcon; /* 2 */
|
|
73
71
|
height: $euiFormControlHeight;
|
|
74
72
|
padding-top: $euiFormControlPadding;
|
|
75
73
|
padding-right: $euiFormControlPadding;
|
|
76
74
|
padding-bottom: $euiFormControlPadding;
|
|
77
75
|
pointer-events: none; /* 1 */
|
|
76
|
+
border: $euiBorderWidthThick dashed $euiColorLightShade;
|
|
78
77
|
border-radius: $euiFormControlBorderRadius;
|
|
79
78
|
|
|
80
|
-
// sass-lint:disable-block indentation
|
|
81
79
|
transition:
|
|
82
|
-
|
|
83
|
-
background-color $euiAnimSpeedFast ease-in
|
|
84
|
-
background-image $euiAnimSpeedFast ease-in,
|
|
85
|
-
background-size $euiAnimSpeedFast ease-in $euiAnimSpeedFast; /* 3 */
|
|
80
|
+
border-color $euiAnimSpeedFast ease-in,
|
|
81
|
+
background-color $euiAnimSpeedFast ease-in;
|
|
86
82
|
|
|
87
83
|
.euiFilePicker--compressed & {
|
|
88
84
|
@include euiFormControlStyleCompressed($includeStates: false);
|
|
89
85
|
@include euiFormControlWithIcon($compressed: true); /* 2 */
|
|
90
86
|
height: $euiFormControlCompressedHeight;
|
|
91
87
|
border-radius: $euiFormControlCompressedBorderRadius;
|
|
88
|
+
box-shadow: none;
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
.euiFilePicker--large & {
|
|
@@ -105,7 +102,7 @@
|
|
|
105
102
|
}
|
|
106
103
|
|
|
107
104
|
.euiFilePicker-isInvalid & {
|
|
108
|
-
|
|
105
|
+
border: $euiBorderWidthThick dashed $euiColorDanger;
|
|
109
106
|
}
|
|
110
107
|
}
|
|
111
108
|
|
|
@@ -114,9 +111,14 @@
|
|
|
114
111
|
@include euiTextTruncate;
|
|
115
112
|
line-height: $euiSize;
|
|
116
113
|
|
|
117
|
-
//
|
|
114
|
+
// Make normal sized prompt stand out a bit more - on the large size we don't need this as it's already identifiable
|
|
118
115
|
.euiFilePicker:not(.euiFilePicker--large):not(.euiFilePicker-hasFiles) & {
|
|
119
|
-
color: $
|
|
116
|
+
color: $euiColorPrimaryText;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Offset/center prompt text for non-large file-pickers
|
|
120
|
+
.euiFilePicker:not(.euiFilePicker--large) & {
|
|
121
|
+
margin-top: $euiSizeXS / -2;
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
|
|
@@ -151,16 +153,13 @@
|
|
|
151
153
|
// Focus
|
|
152
154
|
.euiFilePicker__showDrop .euiFilePicker__prompt,
|
|
153
155
|
.euiFilePicker__input:focus + .euiFilePicker__prompt {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
.euiFilePicker--compressed & {
|
|
157
|
-
@include euiFormControlFocusStyle($borderOnly: true);
|
|
158
|
-
}
|
|
156
|
+
border-color: $euiColorPrimary;
|
|
159
157
|
}
|
|
160
158
|
|
|
161
159
|
// Disabled
|
|
162
160
|
.euiFilePicker__input:disabled + .euiFilePicker__prompt {
|
|
163
161
|
@include euiFormControlDisabledStyle;
|
|
162
|
+
box-shadow: none;
|
|
164
163
|
}
|
|
165
164
|
|
|
166
165
|
// Make space for the icons on the right
|
|
@@ -178,7 +177,7 @@
|
|
|
178
177
|
|
|
179
178
|
// Large styles only
|
|
180
179
|
.euiFilePicker--large {
|
|
181
|
-
//
|
|
180
|
+
// stylelint-disable max-nesting-depth
|
|
182
181
|
// Hover and focus
|
|
183
182
|
.euiFilePicker__input:hover:not(:disabled),
|
|
184
183
|
.euiFilePicker__input:focus {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
.euiFormControlLayout {
|
|
2
5
|
// Let the height expand as needed
|
|
3
6
|
@include euiFormControlSize($includeAlternates: true);
|
|
@@ -71,16 +74,15 @@
|
|
|
71
74
|
background-color: $euiFormInputGroupLabelBackground;
|
|
72
75
|
}
|
|
73
76
|
|
|
74
|
-
|
|
75
77
|
&.euiButtonIcon,
|
|
76
78
|
&.euiButtonEmpty,
|
|
77
79
|
.euiButtonIcon,
|
|
78
80
|
.euiButtonEmpty {
|
|
79
|
-
transform: none !important;
|
|
81
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
80
82
|
|
|
81
83
|
// Undo sizing from icons inside buttons
|
|
82
84
|
.euiIcon {
|
|
83
|
-
background: none !important;
|
|
85
|
+
background: none !important; // stylelint-disable-line declaration-no-important
|
|
84
86
|
padding: 0;
|
|
85
87
|
width: $euiSize;
|
|
86
88
|
}
|
|
@@ -115,7 +117,7 @@
|
|
|
115
117
|
max-width: 50%; // Make sure max-width only applies to the outer most append/prepend element
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
//
|
|
120
|
+
// stylelint-disable declaration-no-important
|
|
119
121
|
// This is the only way to target specific components to override styling
|
|
120
122
|
|
|
121
123
|
// TEXT
|
|
@@ -141,7 +143,6 @@
|
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
|
|
144
|
-
//
|
|
145
146
|
// BORDERS on buttons only
|
|
146
147
|
|
|
147
148
|
.euiButtonEmpty {
|
|
@@ -156,7 +157,6 @@
|
|
|
156
157
|
border-left: $euiFormInputGroupBorder;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
|
-
//
|
|
160
160
|
// Compressed alterations
|
|
161
161
|
|
|
162
162
|
&.euiFormControlLayout--compressed {
|
|
@@ -184,7 +184,6 @@
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
//
|
|
188
187
|
// ReadOnly alterations
|
|
189
188
|
&.euiFormControlLayout--readOnly {
|
|
190
189
|
cursor: default;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
.euiFormControlLayoutDelimited__input {
|
|
24
24
|
height: 100%;
|
|
25
|
+
max-width: none;
|
|
25
26
|
padding-left: $euiFormControlCompressedPadding;
|
|
26
27
|
padding-right: $euiFormControlCompressedPadding;
|
|
27
28
|
}
|
|
@@ -72,20 +73,17 @@
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.euiFormControlLayoutDelimited__input {
|
|
75
|
-
//
|
|
76
|
+
// stylelint-disable declaration-no-important
|
|
76
77
|
box-shadow: none !important;
|
|
77
78
|
border-radius: 0 !important;
|
|
79
|
+
// stylelint-enable declaration-no-important
|
|
78
80
|
text-align: center;
|
|
79
81
|
height: 100%;
|
|
80
82
|
min-width: 0; // Fixes FF
|
|
81
|
-
|
|
82
|
-
.euiFormControlLayoutDelimited[class*='--compressed'] & {
|
|
83
|
-
max-width: none;
|
|
84
|
-
}
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
.euiFormControlLayoutDelimited__delimeter {
|
|
88
|
-
//
|
|
86
|
+
// stylelint-disable-next-line declaration-no-important
|
|
89
87
|
line-height: 1 !important; // Override EuiText line-height
|
|
90
88
|
flex: 0 0 auto;
|
|
91
89
|
padding-left: $euiFormControlPadding / 2;
|
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
65
|
+
// stylelint-disable max-nesting-depth
|
|
64
66
|
&.euiFormRow--hasSwitch {
|
|
65
67
|
.euiFormRow__labelWrapper {
|
|
66
68
|
line-height: $euiSwitchHeight - 1px; // The 1px less helps the alignment of the text baseline
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
|
|
81
83
|
}
|
|
82
84
|
}
|
|
85
|
+
// stylelint-enable max-nesting-depth
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
.euiFormRow__fieldWrapperDisplayOnly {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* 1. Float above the visual radio and match its dimension, so that when users try to click it
|
|
3
6
|
* they actually click this input.
|
|
@@ -43,12 +46,11 @@
|
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
&[disabled] {
|
|
46
|
-
//
|
|
47
|
-
cursor: not-allowed !important;
|
|
49
|
+
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
48
50
|
|
|
49
51
|
~ .euiRadio__label {
|
|
50
52
|
color: $euiFormControlDisabledColor;
|
|
51
|
-
cursor: not-allowed !important;
|
|
53
|
+
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
+ .euiRadio__circle {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
.euiSwitch {
|
|
2
5
|
position: relative;
|
|
3
6
|
display: inline-flex;
|
|
@@ -181,7 +184,6 @@
|
|
|
181
184
|
// Compressed and mini switches have some style overlap
|
|
182
185
|
&.euiSwitch--compressed,
|
|
183
186
|
&.euiSwitch--mini {
|
|
184
|
-
|
|
185
187
|
.euiSwitch__button[aria-checked='false'] {
|
|
186
188
|
.euiSwitch__thumb {
|
|
187
189
|
left: 1px;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
&::after {
|
|
9
9
|
position: absolute;
|
|
10
10
|
content: '';
|
|
11
11
|
top: $euiSize;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.euiHeaderSectionItem--borderLeft {
|
|
19
|
-
|
|
19
|
+
&::after {
|
|
20
20
|
left: 0;
|
|
21
21
|
width: 1px;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.euiHeaderSectionItem--borderRight {
|
|
26
|
-
|
|
26
|
+
&::after {
|
|
27
27
|
width: 1px;
|
|
28
28
|
left: auto;
|
|
29
29
|
right: 0;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
.euiHeaderSectionItem--borderLeft,
|
|
39
39
|
.euiHeaderSectionItem--borderRight {
|
|
40
|
-
|
|
40
|
+
&::after {
|
|
41
41
|
display: none;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
.euiKeyPadMenuItem {
|
|
6
6
|
@include euiFont; /* 1 */
|
|
7
|
-
// Disable indentation for transition legibility
|
|
8
|
-
// sass-lint:disable-block indentation
|
|
9
7
|
display: block;
|
|
10
8
|
padding: $euiSizeXS;
|
|
11
9
|
height: $euiKeyPadMenuSize;
|
|
@@ -15,7 +13,6 @@
|
|
|
15
13
|
border-radius: $euiBorderRadius;
|
|
16
14
|
color: $euiTextColor; // Override possible link color
|
|
17
15
|
|
|
18
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
19
16
|
@include euiCanAnimate {
|
|
20
17
|
transition:
|
|
21
18
|
background-color $euiAnimSpeedFast ease-in,
|
|
@@ -32,8 +29,6 @@
|
|
|
32
29
|
@include euiSlightShadow;
|
|
33
30
|
border-color: $euiBorderColor;
|
|
34
31
|
|
|
35
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
36
|
-
// sass-lint:disable-block nesting-depth
|
|
37
32
|
@include euiCanAnimate {
|
|
38
33
|
.euiKeyPadMenuItem__icon {
|
|
39
34
|
transform: translateY(0);
|
|
@@ -50,10 +45,10 @@
|
|
|
50
45
|
&.euiKeyPadMenuItem-isDisabled {
|
|
51
46
|
@include euiDisabledState;
|
|
52
47
|
|
|
53
|
-
.euiKeyPadMenuItem__icon
|
|
48
|
+
.euiKeyPadMenuItem__icon {
|
|
54
49
|
filter: grayscale(100%);
|
|
55
50
|
|
|
56
|
-
svg * { //
|
|
51
|
+
svg * { // stylelint-disable-line max-nesting-depth
|
|
57
52
|
fill: $euiButtonColorDisabledText;
|
|
58
53
|
}
|
|
59
54
|
}
|