@elastic/eui 102.1.0 → 102.2.0-snapshot.1748601905883
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_borealis_dark.json +1 -1
- package/es/components/badge/color_utils.js +1 -3
- package/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/es/components/basic_table/basic_table.js +14 -10
- package/es/components/basic_table/in_memory_table.js +22 -17
- package/es/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
- package/es/components/breadcrumbs/breadcrumbs.js +3 -3
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display.styles.js +11 -2
- package/es/components/button/button_display/_button_display_content.styles.js +6 -3
- package/es/components/button/button_empty/button_empty.styles.js +9 -12
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group.styles.js +5 -3
- package/es/components/button/button_group/button_group_button.js +19 -9
- package/es/components/button/button_group/button_group_button.styles.js +43 -19
- package/es/components/button/button_icon/button_icon.js +4 -2
- package/es/components/collapsible_nav/collapsible_nav.js +1 -0
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/es/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/es/components/comment_list/comment_list.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/es/components/datagrid/body/data_grid_body.js +14 -9
- package/es/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/es/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/es/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/es/components/datagrid/body/header/draggable_columns.js +1 -1
- package/es/components/datagrid/controls/column_sorting.js +6 -6
- package/es/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/es/components/datagrid/utils/focus.js +2 -2
- package/es/components/datagrid/utils/in_memory.js +3 -3
- package/es/components/datagrid/utils/scrolling.js +3 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/es/components/filter_group/filter_button.js +88 -23
- package/es/components/filter_group/filter_button.styles.js +51 -15
- package/es/components/filter_group/filter_group.styles.js +18 -6
- package/es/components/form/range/dual_range.js +1 -1
- package/es/components/form/range/range.js +1 -1
- package/es/components/form/range/range_track.js +1 -1
- package/es/components/form/select/select.js +1 -1
- package/es/components/header/header.js +10 -10
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +3 -3
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/icon/assets/logo_elastic.js +23 -17
- package/es/components/icon/icon.styles.js +1 -1
- package/es/components/key_pad_menu/key_pad_menu.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_elastic.styles.js +2 -2
- package/es/components/loading/loading_spinner.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +9 -4
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/popover/popover.js +1 -1
- package/es/components/responsive/hide_for.js +1 -1
- package/es/components/responsive/show_for.js +1 -1
- package/es/components/search_bar/filters/field_value_selection_filter.js +2 -1
- package/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/es/components/search_bar/filters/field_value_toggle_group_filter.js +4 -2
- package/es/components/search_bar/filters/is_filter.js +3 -1
- package/es/components/search_bar/search_bar.a11y.js +3 -3
- package/es/components/search_bar/search_bar.js +3 -3
- package/es/components/search_bar/search_filters.js +2 -2
- package/es/components/selectable/selectable.js +13 -12
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/es/components/side_nav/side_nav.js +2 -2
- package/es/components/table/table_row_cell.js +1 -1
- package/es/components/timeline/timeline.js +1 -1
- package/es/components/toast/global_toast_list.js +27 -20
- package/es/components/tour/tour_step.js +1 -1
- package/es/global_styling/mixins/_button.js +95 -28
- package/es/services/theme/hooks.js +11 -0
- package/es/services/theme/index.js +3 -2
- package/es/services/theme/provider.js +28 -2
- package/es/services/theme/theme_variant.js +22 -0
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/es/themes/amsterdam/theme.js +2 -1
- package/es/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/es/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/es/themes/json/eui_theme_borealis_dark.json +427 -0
- package/es/themes/json/eui_theme_borealis_light.json +427 -0
- package/eui.d.ts +2034 -249
- package/lib/components/badge/color_utils.js +1 -3
- package/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/lib/components/basic_table/basic_table.js +14 -10
- package/lib/components/basic_table/in_memory_table.js +22 -17
- package/lib/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/lib/components/breadcrumbs/breadcrumbs.js +2 -2
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display.styles.js +11 -2
- package/lib/components/button/button_display/_button_display_content.styles.js +6 -3
- package/lib/components/button/button_empty/button_empty.styles.js +10 -11
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group.styles.js +5 -3
- package/lib/components/button/button_group/button_group_button.js +18 -8
- package/lib/components/button/button_group/button_group_button.styles.js +41 -17
- package/lib/components/button/button_icon/button_icon.js +3 -1
- package/lib/components/collapsible_nav/collapsible_nav.js +1 -0
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/lib/components/comment_list/comment_list.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/lib/components/datagrid/body/data_grid_body.js +14 -9
- package/lib/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/lib/components/datagrid/body/header/draggable_columns.js +1 -1
- package/lib/components/datagrid/controls/column_sorting.js +6 -6
- package/lib/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/lib/components/datagrid/utils/focus.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +3 -3
- package/lib/components/datagrid/utils/scrolling.js +3 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/lib/components/empty_prompt/images/illustration.svg +939 -0
- package/lib/components/filter_group/filter_button.js +86 -21
- package/lib/components/filter_group/filter_button.styles.js +51 -15
- package/lib/components/filter_group/filter_group.styles.js +18 -6
- package/lib/components/form/range/dual_range.js +1 -1
- package/lib/components/form/range/range.js +1 -1
- package/lib/components/form/range/range_track.js +1 -1
- package/lib/components/form/select/select.js +1 -1
- package/lib/components/header/header.js +10 -10
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -2
- package/lib/components/icon/assets/logo_elastic.js +23 -17
- package/lib/components/icon/icon.styles.js +1 -1
- package/lib/components/icon/svgs/logo_elastic.svg +7 -9
- package/lib/components/key_pad_menu/key_pad_menu.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_elastic.styles.js +2 -2
- package/lib/components/loading/loading_spinner.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +8 -3
- package/lib/components/popover/popover.js +1 -1
- package/lib/components/responsive/hide_for.js +1 -1
- package/lib/components/responsive/show_for.js +1 -1
- package/lib/components/search_bar/filters/field_value_selection_filter.js +2 -1
- package/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/lib/components/search_bar/filters/field_value_toggle_group_filter.js +4 -2
- package/lib/components/search_bar/filters/is_filter.js +3 -1
- package/lib/components/search_bar/search_bar.a11y.js +3 -3
- package/lib/components/search_bar/search_bar.js +3 -3
- package/lib/components/search_bar/search_filters.js +2 -2
- package/lib/components/selectable/selectable.js +13 -12
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/lib/components/side_nav/side_nav.js +2 -2
- package/lib/components/table/table_row_cell.js +1 -1
- package/lib/components/timeline/timeline.js +1 -1
- package/lib/components/toast/global_toast_list.js +27 -20
- package/lib/global_styling/mixins/_button.js +94 -27
- package/lib/services/theme/hooks.js +12 -1
- package/lib/services/theme/index.js +48 -1
- package/lib/services/theme/provider.js +28 -2
- package/lib/services/theme/theme_variant.js +28 -0
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/lib/themes/amsterdam/theme.js +2 -1
- package/lib/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/lib/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/lib/themes/json/eui_theme_borealis_dark.json +427 -0
- package/lib/themes/json/eui_theme_borealis_light.json +427 -0
- package/optimize/es/components/badge/color_utils.js +1 -3
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -3
- package/optimize/es/components/button/button_display/_button_display.js +1 -1
- package/optimize/es/components/button/button_display/_button_display.styles.js +11 -2
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +6 -3
- package/optimize/es/components/button/button_empty/button_empty.styles.js +9 -12
- package/optimize/es/components/button/button_group/button_group.styles.js +5 -3
- package/optimize/es/components/button/button_group/button_group_button.js +12 -8
- package/optimize/es/components/button/button_group/button_group_button.styles.js +43 -19
- package/optimize/es/components/button/button_icon/button_icon.js +4 -2
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +44 -1
- package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/optimize/es/components/datagrid/utils/focus.js +2 -2
- package/optimize/es/components/datagrid/utils/scrolling.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/optimize/es/components/filter_group/filter_button.js +78 -21
- package/optimize/es/components/filter_group/filter_button.styles.js +51 -15
- package/optimize/es/components/filter_group/filter_group.styles.js +18 -6
- package/optimize/es/components/form/select/select.js +1 -1
- package/optimize/es/components/icon/assets/logo_elastic.js +23 -17
- package/optimize/es/components/icon/icon.styles.js +1 -1
- package/optimize/es/components/loading/loading_elastic.styles.js +2 -2
- package/optimize/es/components/markdown_editor/markdown_editor_footer.js +9 -4
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/optimize/es/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/optimize/es/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/optimize/es/components/search_bar/filters/is_filter.js +3 -1
- package/optimize/es/components/search_bar/search_bar.a11y.js +3 -3
- package/optimize/es/components/selectable/selectable.js +10 -9
- package/optimize/es/components/toast/global_toast_list.js +24 -20
- package/optimize/es/global_styling/mixins/_button.js +95 -28
- package/optimize/es/services/theme/hooks.js +11 -0
- package/optimize/es/services/theme/index.js +3 -2
- package/optimize/es/services/theme/provider.js +28 -2
- package/optimize/es/services/theme/theme_variant.js +22 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/optimize/es/themes/amsterdam/theme.js +2 -1
- package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/optimize/es/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +427 -0
- package/optimize/es/themes/json/eui_theme_borealis_light.json +427 -0
- package/optimize/lib/components/badge/color_utils.js +1 -3
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/optimize/lib/components/button/button_display/_button_display.js +1 -1
- package/optimize/lib/components/button/button_display/_button_display.styles.js +11 -2
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +6 -3
- package/optimize/lib/components/button/button_empty/button_empty.styles.js +10 -11
- package/optimize/lib/components/button/button_group/button_group.styles.js +5 -3
- package/optimize/lib/components/button/button_group/button_group_button.js +11 -7
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +41 -17
- package/optimize/lib/components/button/button_icon/button_icon.js +3 -1
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +44 -1
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/optimize/lib/components/datagrid/utils/focus.js +1 -1
- package/optimize/lib/components/datagrid/utils/scrolling.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/optimize/lib/components/empty_prompt/images/illustration.svg +939 -0
- package/optimize/lib/components/filter_group/filter_button.js +76 -19
- package/optimize/lib/components/filter_group/filter_button.styles.js +51 -15
- package/optimize/lib/components/filter_group/filter_group.styles.js +18 -6
- package/optimize/lib/components/form/select/select.js +1 -1
- package/optimize/lib/components/icon/assets/logo_elastic.js +23 -17
- package/optimize/lib/components/icon/icon.styles.js +1 -1
- package/optimize/lib/components/icon/svgs/logo_elastic.svg +7 -9
- package/optimize/lib/components/loading/loading_elastic.styles.js +2 -2
- package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +8 -3
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +1 -0
- package/optimize/lib/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/optimize/lib/components/search_bar/filters/field_value_toggle_group_filter.js +3 -1
- package/optimize/lib/components/search_bar/filters/is_filter.js +3 -1
- package/optimize/lib/components/search_bar/search_bar.a11y.js +3 -3
- package/optimize/lib/components/selectable/selectable.js +10 -9
- package/optimize/lib/components/toast/global_toast_list.js +24 -20
- package/optimize/lib/global_styling/mixins/_button.js +94 -27
- package/optimize/lib/services/theme/hooks.js +12 -1
- package/optimize/lib/services/theme/index.js +48 -1
- package/optimize/lib/services/theme/provider.js +28 -2
- package/optimize/lib/services/theme/theme_variant.js +28 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/optimize/lib/themes/amsterdam/theme.js +2 -1
- package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +427 -0
- package/optimize/lib/themes/json/eui_theme_borealis_light.json +427 -0
- package/package.json +8 -9
- package/test-env/components/badge/color_utils.js +1 -3
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +6 -1
- package/test-env/components/basic_table/basic_table.js +14 -10
- package/test-env/components/basic_table/in_memory_table.js +22 -17
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -2
- package/test-env/components/breadcrumbs/breadcrumbs.js +2 -2
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display.styles.js +11 -2
- package/test-env/components/button/button_display/_button_display_content.styles.js +6 -3
- package/test-env/components/button/button_empty/button_empty.styles.js +10 -11
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group.styles.js +5 -3
- package/test-env/components/button/button_group/button_group_button.js +18 -8
- package/test-env/components/button/button_group/button_group_button.styles.js +41 -17
- package/test-env/components/button/button_icon/button_icon.js +3 -1
- package/test-env/components/collapsible_nav/collapsible_nav.js +1 -0
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/color_picker/color_palette_display/color_palette_display.js +2 -2
- package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +1 -1
- package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -1
- package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +4 -4
- package/test-env/components/combo_box/combo_box_options_list/combo_box_options_list.js +1 -1
- package/test-env/components/comment_list/comment_list.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +9 -9
- package/test-env/components/datagrid/body/data_grid_body.js +14 -9
- package/test-env/components/datagrid/body/data_grid_body_custom.js +14 -9
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +58 -10
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +3 -3
- package/test-env/components/datagrid/body/header/draggable_columns.js +1 -1
- package/test-env/components/datagrid/controls/column_sorting.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +3 -3
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +11 -1
- package/test-env/components/datagrid/utils/focus.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +3 -3
- package/test-env/components/datagrid/utils/scrolling.js +3 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +4 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +4 -4
- package/test-env/components/filter_group/filter_button.js +86 -21
- package/test-env/components/filter_group/filter_button.styles.js +51 -15
- package/test-env/components/filter_group/filter_group.styles.js +18 -6
- package/test-env/components/form/range/dual_range.js +1 -1
- package/test-env/components/form/range/range.js +1 -1
- package/test-env/components/form/range/range_track.js +1 -1
- package/test-env/components/form/select/select.js +1 -1
- package/test-env/components/header/header.js +10 -10
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -2
- package/test-env/components/icon/assets/logo_elastic.js +23 -17
- package/test-env/components/icon/icon.styles.js +1 -1
- package/test-env/components/key_pad_menu/key_pad_menu.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_elastic.styles.js +2 -2
- package/test-env/components/loading/loading_spinner.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +8 -3
- package/test-env/components/popover/popover.js +1 -1
- package/test-env/components/responsive/hide_for.js +1 -1
- package/test-env/components/responsive/show_for.js +1 -1
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +2 -1
- package/test-env/components/search_bar/filters/field_value_toggle_filter.js +3 -1
- package/test-env/components/search_bar/filters/field_value_toggle_group_filter.js +4 -2
- package/test-env/components/search_bar/filters/is_filter.js +3 -1
- package/test-env/components/search_bar/search_bar.a11y.js +3 -3
- package/test-env/components/search_bar/search_bar.js +3 -3
- package/test-env/components/search_bar/search_filters.js +2 -2
- package/test-env/components/selectable/selectable.js +13 -12
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -3
- package/test-env/components/side_nav/side_nav.js +2 -2
- package/test-env/components/table/table_row_cell.js +1 -1
- package/test-env/components/timeline/timeline.js +1 -1
- package/test-env/components/toast/global_toast_list.js +24 -20
- package/test-env/global_styling/mixins/_button.js +94 -27
- package/test-env/services/theme/hooks.js +12 -1
- package/test-env/services/theme/index.js +48 -1
- package/test-env/services/theme/provider.js +28 -2
- package/test-env/services/theme/theme_variant.js +28 -0
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +348 -147
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +229 -224
- package/test-env/themes/amsterdam/theme.js +2 -1
- package/test-env/themes/json/eui_theme_amsterdam_dark.json +427 -0
- package/test-env/themes/json/eui_theme_amsterdam_light.json +427 -0
- package/test-env/themes/json/eui_theme_borealis_dark.json +427 -0
- package/test-env/themes/json/eui_theme_borealis_light.json +427 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
{
|
|
2
|
+
"euiZDataGrid": 999,
|
|
3
|
+
"euiZHeaderBelowDataGrid": 998,
|
|
4
|
+
"euiZDataGridCellPopover": 1000,
|
|
5
|
+
"euiDataGridCellPaddingS": "4px",
|
|
6
|
+
"euiDataGridCellPaddingM": "6px",
|
|
7
|
+
"euiDataGridCellPaddingL": "8px",
|
|
8
|
+
"euiTableHoverColor": "rgba(54, 95, 178, 0.06)",
|
|
9
|
+
"euiTableSelectedColor": "#EDEFF3",
|
|
10
|
+
"euiTableHoverSelectedColor": "rgba(54, 95, 178, 0.06)",
|
|
11
|
+
"euiTableActionsBorderColor": "#E3E8F2",
|
|
12
|
+
"euiTableHoverClickableColor": "rgba(54, 95, 178, 0.06)",
|
|
13
|
+
"euiTableFocusClickableColor": "rgba(54, 95, 178, 0.06)",
|
|
14
|
+
"euiContrastRatioText": 4.5,
|
|
15
|
+
"euiContrastRatioGraphic": 3,
|
|
16
|
+
"euiContrastRatioDisabled": 2,
|
|
17
|
+
"euiAnimSlightBounce": "cubic-bezier(0.34, 1.61, 0.7, 1)",
|
|
18
|
+
"euiAnimSlightResistance": "cubic-bezier(0.694, 0.0482, 0.335, 1)",
|
|
19
|
+
"euiAnimSpeedExtraFast": "90ms",
|
|
20
|
+
"euiAnimSpeedFast": "150ms",
|
|
21
|
+
"euiAnimSpeedNormal": "250ms",
|
|
22
|
+
"euiAnimSpeedSlow": "350ms",
|
|
23
|
+
"euiAnimSpeedExtraSlow": "500ms",
|
|
24
|
+
"euiBorderWidthThin": "1px",
|
|
25
|
+
"euiBorderWidthThick": "2px",
|
|
26
|
+
"euiBorderColor": "#E3E8F2",
|
|
27
|
+
"euiBorderRadius": "4px",
|
|
28
|
+
"euiBorderRadiusSmall": "4px",
|
|
29
|
+
"euiBorderThick": "2px solid #E3E8F2",
|
|
30
|
+
"euiBorderThin": "1px solid #E3E8F2",
|
|
31
|
+
"euiBorderEditable": "2px dotted #E3E8F2",
|
|
32
|
+
"euiButtonHeight": "40px",
|
|
33
|
+
"euiButtonHeightSmall": "32px",
|
|
34
|
+
"euiButtonHeightXSmall": "24px",
|
|
35
|
+
"euiButtonColorDisabled": "#ECF1F9",
|
|
36
|
+
"euiButtonColorDisabledText": "#798EAF",
|
|
37
|
+
"euiButtonColorGhostDisabled": "#ECF1F9",
|
|
38
|
+
"euiButtonTypes": {
|
|
39
|
+
"primary": "#0B64DD",
|
|
40
|
+
"accent": "#BC1E70",
|
|
41
|
+
"accentSecondary": "#008B87",
|
|
42
|
+
"neutral": "#1C8CB5",
|
|
43
|
+
"success": "#008A5E",
|
|
44
|
+
"warning": "#FACB3D",
|
|
45
|
+
"risk": "#ED6723",
|
|
46
|
+
"danger": "#C61E25",
|
|
47
|
+
"ghost": "#ffffff",
|
|
48
|
+
"text": "#5A6D8C"
|
|
49
|
+
},
|
|
50
|
+
"euiFontWeightLight": 300,
|
|
51
|
+
"euiFontWeightRegular": 400,
|
|
52
|
+
"euiFontWeightMedium": 450,
|
|
53
|
+
"euiFontWeightSemiBold": 500,
|
|
54
|
+
"euiFontWeightBold": 600,
|
|
55
|
+
"euiCodeFontWeightRegular": 400,
|
|
56
|
+
"euiCodeFontWeightBold": 600,
|
|
57
|
+
"euiFormMaxWidth": "400px",
|
|
58
|
+
"euiFormControlHeight": "40px",
|
|
59
|
+
"euiFormControlCompressedHeight": "32px",
|
|
60
|
+
"euiFormControlPadding": "12px",
|
|
61
|
+
"euiFormControlCompressedPadding": "8px",
|
|
62
|
+
"euiFormControlBorderRadius": "4px",
|
|
63
|
+
"euiFormControlCompressedBorderRadius": "4px",
|
|
64
|
+
"euiRadioSize": "16px",
|
|
65
|
+
"euiCheckBoxSize": "16px",
|
|
66
|
+
"euiCheckboxBorderRadius": "4px",
|
|
67
|
+
"euiSwitchHeight": "20px",
|
|
68
|
+
"euiSwitchWidth": "44px",
|
|
69
|
+
"euiSwitchThumbSize": "20px",
|
|
70
|
+
"euiSwitchIconHeight": "16px",
|
|
71
|
+
"euiSwitchHeightCompressed": "16px",
|
|
72
|
+
"euiSwitchWidthCompressed": "28px",
|
|
73
|
+
"euiSwitchThumbSizeCompressed": "16px",
|
|
74
|
+
"euiSwitchHeightMini": "10px",
|
|
75
|
+
"euiSwitchWidthMini": "22px",
|
|
76
|
+
"euiSwitchThumbSizeMini": "10px",
|
|
77
|
+
"euiFormBackgroundColor": "#F6F9FC",
|
|
78
|
+
"euiFormBackgroundDisabledColor": "#ECF1F9",
|
|
79
|
+
"euiFormBackgroundReadOnlyColor": "#FFFFFF",
|
|
80
|
+
"euiFormBorderOpaqueColor": "#1c2390",
|
|
81
|
+
"euiFormBorderColor": "#CAD3E2",
|
|
82
|
+
"euiFormBorderDisabledColor": "#CAD3E2",
|
|
83
|
+
"euiFormCustomControlDisabledIconColor": "#798EAF",
|
|
84
|
+
"euiFormCustomControlBorderColor": "#CAD3E2",
|
|
85
|
+
"euiFormControlDisabledColor": "#CAD3E2",
|
|
86
|
+
"euiFormControlBoxShadow": "0 0 rgba(0, 0, 0, 0)",
|
|
87
|
+
"euiFormControlPlaceholderText": "#5A6D8C",
|
|
88
|
+
"euiFormInputGroupLabelBackground": "#ECF1F9",
|
|
89
|
+
"euiFormInputGroupBorder": "none",
|
|
90
|
+
"euiSwitchOffColor": "#5A6D8C",
|
|
91
|
+
"euiFormControlIconSizes": {
|
|
92
|
+
"small": "12px",
|
|
93
|
+
"medium": "16px",
|
|
94
|
+
"large": "24px",
|
|
95
|
+
"xLarge": "32px",
|
|
96
|
+
"xxLarge": "40px"
|
|
97
|
+
},
|
|
98
|
+
"euiFormControlLayoutGroupInputHeight": "38px",
|
|
99
|
+
"euiFormControlLayoutGroupInputCompressedHeight": "30px",
|
|
100
|
+
"euiFormControlLayoutGroupInputCompressedBorderRadius": "2px",
|
|
101
|
+
"euiHeaderBackgroundColor": "#FFFFFF",
|
|
102
|
+
"euiHeaderDarkBackgroundColor": "#0B1628",
|
|
103
|
+
"euiHeaderBorderColor": "#E3E8F2",
|
|
104
|
+
"euiHeaderBreadcrumbColor": "#D9E8FF",
|
|
105
|
+
"euiHeaderHeight": "48px",
|
|
106
|
+
"euiHeaderChildSize": "40px",
|
|
107
|
+
"euiHeaderHeightCompensation": "48px",
|
|
108
|
+
"euiPageDefaultMaxWidth": "1200px",
|
|
109
|
+
"euiPageSidebarMinWidth": "192px",
|
|
110
|
+
"euiPanelPaddingModifiers": {
|
|
111
|
+
"paddingSmall": "8px",
|
|
112
|
+
"paddingMedium": "16px",
|
|
113
|
+
"paddingLarge": "24px"
|
|
114
|
+
},
|
|
115
|
+
"euiPanelBorderRadiusModifiers": {
|
|
116
|
+
"borderRadiusNone": 0,
|
|
117
|
+
"borderRadiusMedium": "4px"
|
|
118
|
+
},
|
|
119
|
+
"euiPanelBackgroundColorModifiers": {
|
|
120
|
+
"transparent": "rgba(0, 0, 0, 0)",
|
|
121
|
+
"plain": "#FFFFFF",
|
|
122
|
+
"subdued": "#F6F9FC",
|
|
123
|
+
"accent": "#FFEBF5",
|
|
124
|
+
"accentSecondary": "#E2F9F7",
|
|
125
|
+
"primary": "#E8F1FF",
|
|
126
|
+
"success": "#E2F8F0",
|
|
127
|
+
"warning": "#FDF3D8",
|
|
128
|
+
"danger": "#FFE8E5"
|
|
129
|
+
},
|
|
130
|
+
"euiBreakpoints": {
|
|
131
|
+
"xs": 0,
|
|
132
|
+
"s": "575px",
|
|
133
|
+
"m": "768px",
|
|
134
|
+
"l": "992px",
|
|
135
|
+
"xl": "1200px"
|
|
136
|
+
},
|
|
137
|
+
"euiBreakpointKeys": "'xs', 's', 'm', 'l', 'xl'",
|
|
138
|
+
"euiShadowColor": "#000000",
|
|
139
|
+
"euiSize": "16px",
|
|
140
|
+
"euiSizeXS": "4px",
|
|
141
|
+
"euiSizeS": "8px",
|
|
142
|
+
"euiSizeM": "12px",
|
|
143
|
+
"euiSizeL": "24px",
|
|
144
|
+
"euiSizeXL": "32px",
|
|
145
|
+
"euiSizeXXL": "40px",
|
|
146
|
+
"euiScrollBar": "16px",
|
|
147
|
+
"euiScrollBarCorner": "4px",
|
|
148
|
+
"euiScrollBarCornerThin": "6px",
|
|
149
|
+
"euiFocusRingColor": "#1750BA",
|
|
150
|
+
"euiFocusRingAnimStartColor": "rgba(0, 0, 0, 0)",
|
|
151
|
+
"euiFocusRingAnimStartSize": "2px",
|
|
152
|
+
"euiFocusRingAnimStartSizeLarge": "10px",
|
|
153
|
+
"euiFocusRingSizeLarge": "4px",
|
|
154
|
+
"euiFocusRingSize": "2px",
|
|
155
|
+
"euiFocusTransparency": 0.9,
|
|
156
|
+
"euiFocusTransparencyPercent": "90%",
|
|
157
|
+
"euiFocusBackgroundColor": "#ECF1F9",
|
|
158
|
+
"euiFontFamily": "'Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Helvetica', 'Arial', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
|
|
159
|
+
"euiCodeFontFamily": "'Roboto Mono', 'Consolas', 'Menlo', 'Courier', monospace",
|
|
160
|
+
"euiFontFeatureSettings": "calt 1 kern 1 liga 1",
|
|
161
|
+
"euiTextScale": "1,875, 1.5, 1.25, 1, .875, .75",
|
|
162
|
+
"euiFontSize": "14px",
|
|
163
|
+
"euiFontSizeXS": "12px",
|
|
164
|
+
"euiFontSizeS": "14px",
|
|
165
|
+
"euiFontSizeM": "16px",
|
|
166
|
+
"euiFontSizeL": "20px",
|
|
167
|
+
"euiFontSizeXL": "24px",
|
|
168
|
+
"euiFontSizeXXL": "30px",
|
|
169
|
+
"euiLineHeight": 1.5,
|
|
170
|
+
"euiBodyLineHeight": 1.142857143,
|
|
171
|
+
"euiTitles": {
|
|
172
|
+
"xxxs": {
|
|
173
|
+
"font-size": "12px",
|
|
174
|
+
"line-height": "1.1429rem",
|
|
175
|
+
"font-weight": 600
|
|
176
|
+
},
|
|
177
|
+
"xxs": {
|
|
178
|
+
"font-size": "14px",
|
|
179
|
+
"line-height": "1.4286rem",
|
|
180
|
+
"font-weight": 600
|
|
181
|
+
},
|
|
182
|
+
"xs": {
|
|
183
|
+
"font-size": "16px",
|
|
184
|
+
"line-height": "1.7143rem",
|
|
185
|
+
"font-weight": 600
|
|
186
|
+
},
|
|
187
|
+
"s": {
|
|
188
|
+
"font-size": "20px",
|
|
189
|
+
"line-height": "1.7143rem",
|
|
190
|
+
"font-weight": 600
|
|
191
|
+
},
|
|
192
|
+
"m": {
|
|
193
|
+
"font-size": "24px",
|
|
194
|
+
"line-height": "2rem",
|
|
195
|
+
"font-weight": 600
|
|
196
|
+
},
|
|
197
|
+
"l": {
|
|
198
|
+
"font-size": "30px",
|
|
199
|
+
"line-height": "2.5714rem",
|
|
200
|
+
"font-weight": 600
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"euiZLevel0": 0,
|
|
204
|
+
"euiZLevel1": 1000,
|
|
205
|
+
"euiZLevel2": 2000,
|
|
206
|
+
"euiZLevel3": 3000,
|
|
207
|
+
"euiZLevel4": 4000,
|
|
208
|
+
"euiZLevel5": 5000,
|
|
209
|
+
"euiZLevel6": 6000,
|
|
210
|
+
"euiZLevel7": 7000,
|
|
211
|
+
"euiZLevel8": 8000,
|
|
212
|
+
"euiZLevel9": 9000,
|
|
213
|
+
"euiZToastList": 9000,
|
|
214
|
+
"euiZModal": 8000,
|
|
215
|
+
"euiZMask": 6000,
|
|
216
|
+
"euiZNavigation": 6000,
|
|
217
|
+
"euiZContentMenu": 2000,
|
|
218
|
+
"euiZHeader": 1000,
|
|
219
|
+
"euiZFlyout": 1000,
|
|
220
|
+
"euiZMaskBelowHeader": 1000,
|
|
221
|
+
"euiZContent": 0,
|
|
222
|
+
"euiPaletteColorBlind": {
|
|
223
|
+
"euiColorVis0": {
|
|
224
|
+
"graphic": "#16C5C0",
|
|
225
|
+
"behindText": "#16C5C0"
|
|
226
|
+
},
|
|
227
|
+
"euiColorVis1": {
|
|
228
|
+
"graphic": "#98E6E2",
|
|
229
|
+
"behindText": "#98E6E2"
|
|
230
|
+
},
|
|
231
|
+
"euiColorVis2": {
|
|
232
|
+
"graphic": "#61A2FF",
|
|
233
|
+
"behindText": "#61A2FF"
|
|
234
|
+
},
|
|
235
|
+
"euiColorVis3": {
|
|
236
|
+
"graphic": "#BFDBFF",
|
|
237
|
+
"behindText": "#BFDBFF"
|
|
238
|
+
},
|
|
239
|
+
"euiColorVis4": {
|
|
240
|
+
"graphic": "#EE72A6",
|
|
241
|
+
"behindText": "#EE72A6"
|
|
242
|
+
},
|
|
243
|
+
"euiColorVis5": {
|
|
244
|
+
"graphic": "#FFC7DB",
|
|
245
|
+
"behindText": "#FFC7DB"
|
|
246
|
+
},
|
|
247
|
+
"euiColorVis6": {
|
|
248
|
+
"graphic": "#F6726A",
|
|
249
|
+
"behindText": "#F6726A"
|
|
250
|
+
},
|
|
251
|
+
"euiColorVis7": {
|
|
252
|
+
"graphic": "#FFC9C2",
|
|
253
|
+
"behindText": "#FFC9C2"
|
|
254
|
+
},
|
|
255
|
+
"euiColorVis8": {
|
|
256
|
+
"graphic": "#EAAE01",
|
|
257
|
+
"behindText": "#EAAE01"
|
|
258
|
+
},
|
|
259
|
+
"euiColorVis9": {
|
|
260
|
+
"graphic": "#FCD883",
|
|
261
|
+
"behindText": "#FCD883"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"euiPaletteColorBlindKeys": "'euiColorVis0', 'euiColorVis1', 'euiColorVis2', 'euiColorVis3', 'euiColorVis4', 'euiColorVis5', 'euiColorVis6', 'euiColorVis7', 'euiColorVis8', 'euiColorVis9'",
|
|
265
|
+
"euiColorVis0": "#16C5C0",
|
|
266
|
+
"euiColorVis1": "#A6EDEA",
|
|
267
|
+
"euiColorVis2": "#61A2FF",
|
|
268
|
+
"euiColorVis3": "#BFDBFF",
|
|
269
|
+
"euiColorVis4": "#EE72A6",
|
|
270
|
+
"euiColorVis5": "#FFC7DB",
|
|
271
|
+
"euiColorVis6": "#F6726A",
|
|
272
|
+
"euiColorVis7": "#FFC9C2",
|
|
273
|
+
"euiColorVis8": "#EAAE01",
|
|
274
|
+
"euiColorVis9": "#FCD883",
|
|
275
|
+
"euiColorVis0_behindText": "#16C5C0",
|
|
276
|
+
"euiColorVis1_behindText": "#A6EDEA",
|
|
277
|
+
"euiColorVis2_behindText": "#61A2FF",
|
|
278
|
+
"euiColorVis3_behindText": "#B4D5FF",
|
|
279
|
+
"euiColorVis4_behindText": "#EE72A6",
|
|
280
|
+
"euiColorVis5_behindText": "#FFC7DB",
|
|
281
|
+
"euiColorVis6_behindText": "#F6726A",
|
|
282
|
+
"euiColorVis7_behindText": "#FFC9C2",
|
|
283
|
+
"euiColorVis8_behindText": "#EAAE01",
|
|
284
|
+
"euiColorVis9_behindText": "#FCD883",
|
|
285
|
+
"euiColorVisAsTextLight0": "#047471",
|
|
286
|
+
"euiColorVisAsTextLight1": "#1750BA",
|
|
287
|
+
"euiColorVisAsTextLight2": "#A11262",
|
|
288
|
+
"euiColorVisAsTextLight3": "#A71627",
|
|
289
|
+
"euiColorVisAsTextLight4": "#825803",
|
|
290
|
+
"euiColorVisAsTextLight5": "#09724D",
|
|
291
|
+
"euiColorVisAsTextLight6": "#6B3C9F",
|
|
292
|
+
"euiColorVisAsTextDark0": "#16C5C0",
|
|
293
|
+
"euiColorVisAsTextDark1": "#61A2FF",
|
|
294
|
+
"euiColorVisAsTextDark2": "#EE72A6",
|
|
295
|
+
"euiColorVisAsTextDark3": "#F6726A",
|
|
296
|
+
"euiColorVisAsTextDark4": "#EAAE01",
|
|
297
|
+
"euiColorVisAsTextDark5": "#24C292",
|
|
298
|
+
"euiColorVisAsTextDark6": "#B084F5",
|
|
299
|
+
"euiColorVisSuccess0": "#24C292",
|
|
300
|
+
"euiColorVisSuccess1": "#AEE8D2",
|
|
301
|
+
"euiColorVisWarning0": "#FCD883",
|
|
302
|
+
"euiColorVisDanger0": "#F6726A",
|
|
303
|
+
"euiColorVisDanger1": "#FFC9C2",
|
|
304
|
+
"euiColorVisNeutral0": "#F6F9FC",
|
|
305
|
+
"euiColorVisGrey0": "#CAD3E2",
|
|
306
|
+
"euiColorVisGrey1": "#8E9FBC",
|
|
307
|
+
"euiColorVisGrey2": "#5A6D8C",
|
|
308
|
+
"euiColorVisGrey3": "#1D2A3E",
|
|
309
|
+
"euiColorVisWarm0": "#FFE8E5",
|
|
310
|
+
"euiColorVisWarm1": "#FFB5AD",
|
|
311
|
+
"euiColorVisWarm2": "#F6726A",
|
|
312
|
+
"euiColorVisCool0": "#E8F1FF",
|
|
313
|
+
"euiColorVisCool1": "#A3CBFF",
|
|
314
|
+
"euiColorVisCool2": "#61A2FF",
|
|
315
|
+
"euiColorVisComplementary0": "#61A2FF",
|
|
316
|
+
"euiColorVisComplementary1": "#EAAE01",
|
|
317
|
+
"euiColorSeverityUnknown": "#E3E8F2",
|
|
318
|
+
"euiColorSeverityNeutral": "#B5E5F2",
|
|
319
|
+
"euiColorSeveritySuccess": "#24C292",
|
|
320
|
+
"euiColorSeverityWarning": "#FCD883",
|
|
321
|
+
"euiColorSeverityRisk": "#FF995E",
|
|
322
|
+
"euiColorSeverityDanger": "#EE4C48",
|
|
323
|
+
"euiColorChartLines": "#CAD3E2",
|
|
324
|
+
"euiColorChartBand": "#F6F9FC",
|
|
325
|
+
"euiColorGhost": "#FFFFFF",
|
|
326
|
+
"euiColorInk": "#000000",
|
|
327
|
+
"euiColorPrimary": "#0B64DD",
|
|
328
|
+
"euiColorAccent": "#BC1E70",
|
|
329
|
+
"euiColorAccentSecondary": "#008B87",
|
|
330
|
+
"euiColorSuccess": "#008A5E",
|
|
331
|
+
"euiColorWarning": "#FACB3D",
|
|
332
|
+
"euiColorDanger": "#C61E25",
|
|
333
|
+
"euiColorEmptyShade": "#FFFFFF",
|
|
334
|
+
"euiColorLightestShade": "#ECF1F9",
|
|
335
|
+
"euiColorLightShade": "#CAD3E2",
|
|
336
|
+
"euiColorMediumShade": "#8E9FBC",
|
|
337
|
+
"euiColorDarkShade": "#5A6D8C",
|
|
338
|
+
"euiColorDarkestShade": "#2B394F",
|
|
339
|
+
"euiColorFullShade": "#07101F",
|
|
340
|
+
"euiPageBackgroundColor": "#F6F9FC",
|
|
341
|
+
"euiColorHighlight": "#E8F1FF",
|
|
342
|
+
"euiTextColor": "#1D2A3E",
|
|
343
|
+
"euiTitleColor": "#111C2C",
|
|
344
|
+
"euiTextSubduedColor": "#516381",
|
|
345
|
+
"euiColorDisabled": "#E3E8F2",
|
|
346
|
+
"euiColorPrimaryText": "#1750BA",
|
|
347
|
+
"euiColorSuccessText": "#09724D",
|
|
348
|
+
"euiColorAccentText": "#A11262",
|
|
349
|
+
"euiColorWarningText": "#6A4906",
|
|
350
|
+
"euiColorDangerText": "#A71627",
|
|
351
|
+
"euiColorDisabledText": "#798EAF",
|
|
352
|
+
"euiLinkColor": "#0B64DD",
|
|
353
|
+
"euiColorPlainLight": "#FFFFFF",
|
|
354
|
+
"euiColorPlainDark": "#07101F",
|
|
355
|
+
"euiColorTextPrimary": "#1750BA",
|
|
356
|
+
"euiColorTextAccent": "#A11262",
|
|
357
|
+
"euiColorTextAccentSecondary": "#047471",
|
|
358
|
+
"euiColorTextNeutral": "#0F658A",
|
|
359
|
+
"euiColorTextSuccess": "#09724D",
|
|
360
|
+
"euiColorTextWarning": "#6A4906",
|
|
361
|
+
"euiColorTextRisk": "#9E3A16",
|
|
362
|
+
"euiColorTextDanger": "#A71627",
|
|
363
|
+
"euiColorTextParagraph": "#1D2A3E",
|
|
364
|
+
"euiColorTextHeading": "#111C2C",
|
|
365
|
+
"euiColorTextSubdued": "#516381",
|
|
366
|
+
"euiColorTextDisabled": "#798EAF",
|
|
367
|
+
"euiColorTextInverse": "#FFFFFF",
|
|
368
|
+
"euiColorBackgroundBasePrimary": "#E8F1FF",
|
|
369
|
+
"euiColorBackgroundBaseAccent": "#FFEBF5",
|
|
370
|
+
"euiColorBackgroundBaseAccentSecondary": "#E2F9F7",
|
|
371
|
+
"euiColorBackgroundBaseNeutral": "#E5F6FA",
|
|
372
|
+
"euiColorBackgroundBaseSuccess": "#E2F8F0",
|
|
373
|
+
"euiColorBackgroundBaseWarning": "#FDF3D8",
|
|
374
|
+
"euiColorBackgroundBaseRisk": "#FFEDD6",
|
|
375
|
+
"euiColorBackgroundBaseDanger": "#FFE8E5",
|
|
376
|
+
"euiColorBackgroundBaseSubdued": "#F6F9FC",
|
|
377
|
+
"euiColorBackgroundBasePlain": "#FFFFFF",
|
|
378
|
+
"euiColorBackgroundBaseDisabled": "#ECF1F9",
|
|
379
|
+
"euiColorBackgroundBaseHighlighted": "#F6F9FC",
|
|
380
|
+
"euiColorBackgroundBaseFormsPrepend": "#ECF1F9",
|
|
381
|
+
"euiColorBackgroundBaseFormsControlDisabled": "#CAD3E2",
|
|
382
|
+
"euiColorBackgroundBaseInteractiveHover": "rgba(23,80,186, 0.04)",
|
|
383
|
+
"euiColorBackgroundBaseInteractiveSelect": "#E8F1FF",
|
|
384
|
+
"euiColorBackgroundBaseInteractiveOverlay": "rgba(72,89,117, 0.7)",
|
|
385
|
+
"euiColorBackgroundBaseSkeletonEdge": "rgba(72,89,117, 0.16)",
|
|
386
|
+
"euiColorBackgroundBaseSkeletonMiddle": "rgba(72,89,117, 0.04)",
|
|
387
|
+
"euiColorBackgroundLightPrimary": "#D9E8FF",
|
|
388
|
+
"euiColorBackgroundLightAccent": "#FDDDE9",
|
|
389
|
+
"euiColorBackgroundLightAccentSecondary": "#C9F3F0",
|
|
390
|
+
"euiColorBackgroundLightNeutral": "#CFEEF7",
|
|
391
|
+
"euiColorBackgroundLightSuccess": "#C9F3E3",
|
|
392
|
+
"euiColorBackgroundLightWarning": "#FDE9B5",
|
|
393
|
+
"euiColorBackgroundLightRisk": "#FFDEBF",
|
|
394
|
+
"euiColorBackgroundLightDanger": "#FDDDD8",
|
|
395
|
+
"euiColorBackgroundLightText": "#E3E8F2",
|
|
396
|
+
"euiColorBackgroundFilledPrimary": "#0B64DD",
|
|
397
|
+
"euiColorBackgroundFilledAccent": "#BC1E70",
|
|
398
|
+
"euiColorBackgroundFilledAccentSecondary": "#008B87",
|
|
399
|
+
"euiColorBackgroundFilledNeutral": "#1C8CB5",
|
|
400
|
+
"euiColorBackgroundFilledSuccess": "#008A5E",
|
|
401
|
+
"euiColorBackgroundFilledWarning": "#FACB3D",
|
|
402
|
+
"euiColorBackgroundFilledRisk": "#ED6723",
|
|
403
|
+
"euiColorBackgroundFilledDanger": "#C61E25",
|
|
404
|
+
"euiColorBackgroundFilledText": "#5A6D8C",
|
|
405
|
+
"euiColorBorderBasePrimary": "#BFDBFF",
|
|
406
|
+
"euiColorBorderBaseAccent": "#FFC7DB",
|
|
407
|
+
"euiColorBorderBaseAccentSecondary": "#A6EDEA",
|
|
408
|
+
"euiColorBorderBaseNeutral": "#B5E5F2",
|
|
409
|
+
"euiColorBorderBaseSuccess": "#AEE8D2",
|
|
410
|
+
"euiColorBorderBaseWarning": "#FCD883",
|
|
411
|
+
"euiColorBorderBaseRisk": "#FFCDA1",
|
|
412
|
+
"euiColorBorderBaseDanger": "#FFC9C2",
|
|
413
|
+
"euiColorBorderBasePlain": "#CAD3E2",
|
|
414
|
+
"euiColorBorderBaseSubdued": "#E3E8F2",
|
|
415
|
+
"euiColorBorderBaseDisabled": "#CAD3E2",
|
|
416
|
+
"euiColorBorderBaseFloating": "transparent",
|
|
417
|
+
"euiColorBorderBaseFormsColorSwatch": "rgba(72,89,117, 0.24)",
|
|
418
|
+
"euiColorBorderBaseFormsControl": "#8E9FBC",
|
|
419
|
+
"euiColorBorderStrongPrimary": "#1750BA",
|
|
420
|
+
"euiColorBorderStrongAccent": "#A11262",
|
|
421
|
+
"euiColorBorderStrongAccentSecondary": "#047471",
|
|
422
|
+
"euiColorBorderStrongNeutral": "#0F658A",
|
|
423
|
+
"euiColorBorderStrongSuccess": "#09724D",
|
|
424
|
+
"euiColorBorderStrongWarning": "#825803",
|
|
425
|
+
"euiColorBorderStrongRisk": "#9E3A16",
|
|
426
|
+
"euiColorBorderStrongDanger": "#A71627"
|
|
427
|
+
}
|
|
@@ -27,7 +27,6 @@ export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
|
|
|
27
27
|
risk: euiButtonFillColor(euiThemeContext, 'risk'),
|
|
28
28
|
danger: euiButtonFillColor(euiThemeContext, 'danger'),
|
|
29
29
|
accent: euiButtonFillColor(euiThemeContext, 'accent'),
|
|
30
|
-
accentSecondary: euiButtonFillColor(euiThemeContext, 'accentSecondary'),
|
|
31
30
|
disabled: _objectSpread(_objectSpread({}, euiButtonColor(euiThemeContext, 'disabled')), {}, {
|
|
32
31
|
borderColor: highContrastMode ? euiTheme.colors.textDisabled : ''
|
|
33
32
|
}),
|
|
@@ -45,8 +44,7 @@ export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
|
|
|
45
44
|
}),
|
|
46
45
|
accentText: _objectSpread(_objectSpread({}, badgeColorsAccentText), {}, {
|
|
47
46
|
borderColor: highContrastMode ? badgeColorsAccentText.backgroundColor : ''
|
|
48
|
-
})
|
|
49
|
-
accentSecondaryText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccentSecondary)
|
|
47
|
+
})
|
|
50
48
|
};
|
|
51
49
|
};
|
|
52
50
|
export var getBadgeColors = function getBadgeColors(euiThemeContext, backgroundColor) {
|
|
@@ -9,12 +9,17 @@
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { logicalCSS, euiCanAnimate, euiFontSizeFromScale, euiNumberFormat, mathWithUnits } from '../../../global_styling';
|
|
11
11
|
import { highContrastModeStyles } from '../../../global_styling/functions/high_contrast';
|
|
12
|
+
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
12
13
|
import { euiBadgeColors } from '../color_utils';
|
|
13
14
|
export var euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiThemeContext) {
|
|
14
15
|
var euiTheme = euiThemeContext.euiTheme;
|
|
16
|
+
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
15
17
|
var badgeColors = euiBadgeColors(euiThemeContext);
|
|
18
|
+
var borderRadius = isRefreshVariant ? mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
19
|
+
return x / 2;
|
|
20
|
+
}) : euiTheme.border.radius.small;
|
|
16
21
|
return {
|
|
17
|
-
euiNotificationBadge: /*#__PURE__*/css("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;", logicalCSS('padding-horizontal', euiTheme.size.xs), " border-radius:",
|
|
22
|
+
euiNotificationBadge: /*#__PURE__*/css("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;", logicalCSS('padding-horizontal', euiTheme.size.xs), " border-radius:", borderRadius, ";", highContrastModeStyles(euiThemeContext, {
|
|
18
23
|
preferred: "\n border: ".concat(euiTheme.border.thin, ";\n overflow: hidden; /* Fix text clipping */\n ")
|
|
19
24
|
}), " cursor:default;font-size:", euiFontSizeFromScale('xs', euiTheme), ";font-weight:", euiTheme.font.weight.medium, ";", euiNumberFormat(euiThemeContext), " text-align:center;", euiCanAnimate, "{transition:all ", euiTheme.animation.fast, " ease-in;};label:euiNotificationBadge;"),
|
|
20
25
|
// Sizes
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { euiFontSize, euiTextTruncate, euiFocusRing, logicalCSS, logicalBorderRadiusCSS, mathWithUnits } from '../../global_styling';
|
|
10
|
+
import { euiFontSize, euiTextTruncate, euiFocusRing, logicalCSS, logicalBorderRadiusCSS, mathWithUnits, euiButtonColor } from '../../global_styling';
|
|
11
11
|
import { highContrastModeStyles } from '../../global_styling/functions/high_contrast';
|
|
12
|
-
import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins/button';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Styles cast to inner <a>, <button>, <span> elements
|
|
@@ -19,7 +18,11 @@ export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiT
|
|
|
19
18
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
20
19
|
|
|
21
20
|
// Reuse button colors for `type="application`" clickable breadcrumbs
|
|
22
|
-
var
|
|
21
|
+
var buttonColors = euiButtonColor(euiThemeContext, 'primary');
|
|
22
|
+
var applicationButtonColors = {
|
|
23
|
+
backgroundColor: euiTheme.colors.backgroundLightPrimary,
|
|
24
|
+
color: buttonColors.color
|
|
25
|
+
};
|
|
23
26
|
|
|
24
27
|
// Create custom darker gray colors for non-clickable application breadcrumbs
|
|
25
28
|
// The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
|
|
@@ -71,7 +71,7 @@ export var EuiButtonDisplay = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
71
71
|
isLoading: isLoading
|
|
72
72
|
});
|
|
73
73
|
var styles = useEuiMemoizedStyles(euiButtonDisplayStyles);
|
|
74
|
-
var cssStyles = [styles.euiButtonDisplay, styles[size], fullWidth && styles.fullWidth, minWidth == null && styles.defaultMinWidth, buttonIsDisabled && styles.isDisabled];
|
|
74
|
+
var cssStyles = [styles.euiButtonDisplay, styles[size], fullWidth && styles.fullWidth, minWidth == null && [styles.defaultMinWidth.defaultMinWidth, styles.defaultMinWidth[size]], buttonIsDisabled && styles.isDisabled];
|
|
75
75
|
var innerNode = ___EmotionJSX(EuiButtonDisplayContent, _extends({
|
|
76
76
|
isLoading: isLoading,
|
|
77
77
|
isDisabled: buttonIsDisabled,
|
|
@@ -7,6 +7,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
10
11
|
import { euiFontSize, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS } from '../../../global_styling';
|
|
11
12
|
import { euiButtonSizeMap } from '../../../global_styling/mixins';
|
|
12
13
|
// Provides a solid reset and base for handling sizing layout
|
|
@@ -24,18 +25,26 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
24
25
|
};
|
|
25
26
|
export var euiButtonDisplayStyles = function euiButtonDisplayStyles(euiThemeContext) {
|
|
26
27
|
var euiTheme = euiThemeContext.euiTheme;
|
|
28
|
+
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
27
29
|
var sizes = euiButtonSizeMap(euiThemeContext);
|
|
28
30
|
var _buttonSize = function _buttonSize(sizeKey) {
|
|
29
31
|
var size = sizes[sizeKey];
|
|
30
32
|
return /*#__PURE__*/css(logicalCSS('height', size.height), " line-height:", size.height, ";", euiFontSize(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
|
|
31
33
|
};
|
|
34
|
+
var classicVariantStyles = "\n &:hover:not(:disabled),\n &:focus {\n text-decoration: underline;\n }\n ";
|
|
32
35
|
return {
|
|
33
36
|
// Base
|
|
34
|
-
euiButtonDisplay: /*#__PURE__*/css(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.m)), "
|
|
37
|
+
euiButtonDisplay: /*#__PURE__*/css(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.m)), " ", !isRefreshVariant && classicVariantStyles, ";;label:euiButtonDisplay;"),
|
|
35
38
|
// States
|
|
36
39
|
isDisabled: _ref,
|
|
37
40
|
fullWidth: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), ";;label:fullWidth;"),
|
|
38
|
-
defaultMinWidth:
|
|
41
|
+
defaultMinWidth: {
|
|
42
|
+
defaultMinWidth: /*#__PURE__*/css(";label:defaultMinWidth;"),
|
|
43
|
+
// Skip css`` for the sizes as we already add classes for sizes and defaultMinWidth
|
|
44
|
+
xs: "\n ".concat(logicalCSS('min-width', "".concat(sizes.xs.minWidth, "px")), "\n "),
|
|
45
|
+
s: "\n ".concat(logicalCSS('min-width', "".concat(sizes.s.minWidth, "px")), "\n "),
|
|
46
|
+
m: "\n ".concat(logicalCSS('min-width', "".concat(sizes.m.minWidth, "px")), "\n ")
|
|
47
|
+
},
|
|
39
48
|
// Sizes
|
|
40
49
|
xs: /*#__PURE__*/css(_buttonSize('xs'), ";label:xs;"),
|
|
41
50
|
s: /*#__PURE__*/css(_buttonSize('s'), ";label:s;"),
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
|
+
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
9
10
|
import { logicalCSS } from '../../../global_styling';
|
|
10
|
-
export var euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(
|
|
11
|
-
var euiTheme =
|
|
11
|
+
export var euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(euiThemeContext) {
|
|
12
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
13
|
+
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
14
|
+
var refreshVariantStyles = "\n /* ensure content stays ontop of hover pseudo element */\n position: relative;\n ";
|
|
12
15
|
return {
|
|
13
16
|
// Base
|
|
14
|
-
euiButtonDisplayContent: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";;label:euiButtonDisplayContent;")
|
|
17
|
+
euiButtonDisplayContent: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";", isRefreshVariant && refreshVariantStyles, ";;label:euiButtonDisplayContent;")
|
|
15
18
|
};
|
|
16
19
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
1
|
/*
|
|
3
2
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
4
3
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -8,32 +7,30 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
9
|
import { css } from '@emotion/react';
|
|
11
|
-
import {
|
|
10
|
+
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
11
|
+
import { logicalCSS, logicalShorthandCSS, euiCanAnimate, highContrastModeStyles } from '../../../global_styling';
|
|
12
12
|
import { euiButtonDisplayStyles } from '../button_display/_button_display.styles';
|
|
13
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
|
-
name: "1lywbid-flush",
|
|
15
|
-
styles: "padding-inline:0;label:flush;"
|
|
16
|
-
} : {
|
|
17
|
-
name: "1lywbid-flush",
|
|
18
|
-
styles: "padding-inline:0;label:flush;",
|
|
19
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
-
};
|
|
21
13
|
export var euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext) {
|
|
22
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
|
+
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
23
16
|
|
|
24
17
|
// EuiButtonEmpty uses the same size/font styling as EuiButtonDisplay,
|
|
25
18
|
// but does not share enough of the same colors/props to the point
|
|
26
19
|
// of using the actual component - so we'll reuse its styles instead
|
|
27
20
|
var displayStyles = euiButtonDisplayStyles(euiThemeContext);
|
|
21
|
+
var refreshFlushStyles = "\n /* using duplicate selector to ensure specificity */\n &&:hover,\n &&:active {\n background-color: transparent;\n\n /* removes hover overlay */\n &::before {\n display: none;\n }\n }\n\n &:hover:not(:disabled),\n &:focus {\n text-decoration: underline;\n\n ".concat(highContrastModeStyles(euiThemeContext, {
|
|
22
|
+
forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
|
|
23
|
+
}), "\n }\n ");
|
|
28
24
|
return {
|
|
29
25
|
euiButtonEmpty: /*#__PURE__*/css(displayStyles.euiButtonDisplay, " ", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.s)), euiCanAnimate, "{transition-timing-function:ease-in;transition-duration:", euiTheme.animation.fast, ";};label:euiButtonEmpty;"),
|
|
30
26
|
isDisabled: displayStyles.isDisabled,
|
|
31
27
|
// Sizes
|
|
32
28
|
xs: displayStyles.xs,
|
|
33
29
|
s: displayStyles.s,
|
|
34
|
-
m
|
|
30
|
+
// uses array here to prevent adding duplicate "m" classname partial
|
|
31
|
+
m: [displayStyles.m, isRefreshVariant && "\n ".concat(logicalCSS('padding-horizontal', euiTheme.size.m), "\n ")],
|
|
35
32
|
// Flush sides
|
|
36
|
-
flush:
|
|
33
|
+
flush: /*#__PURE__*/css("padding-inline:0;", isRefreshVariant && refreshFlushStyles, ";;label:flush;"),
|
|
37
34
|
left: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.s), ";;label:left;"),
|
|
38
35
|
right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.s), ";;label:right;"),
|
|
39
36
|
both: /*#__PURE__*/css(";label:both;")
|
|
@@ -8,6 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
11
12
|
import { logicalCSS } from '../../../global_styling';
|
|
12
13
|
import { highContrastModeStyles, preventForcedColors } from '../../../global_styling/functions/high_contrast';
|
|
13
14
|
import { euiFormVariables } from '../../form/form.styles';
|
|
@@ -31,7 +32,7 @@ export var euiButtonGroupButtonsStyles = function euiButtonGroupButtonsStyles(eu
|
|
|
31
32
|
borderColor = _euiFormVariables.borderColor;
|
|
32
33
|
return {
|
|
33
34
|
// Base
|
|
34
|
-
euiButtonGroup__buttons: /*#__PURE__*/css(logicalCSS('max-width', '100%'), " display:flex;;label:euiButtonGroup__buttons;"),
|
|
35
|
+
euiButtonGroup__buttons: /*#__PURE__*/css(logicalCSS('max-width', '100%'), " display:flex;align-items:center;;label:euiButtonGroup__buttons;"),
|
|
35
36
|
fullWidth: /*#__PURE__*/css(logicalCSS('width', '100%'), " .euiButtonGroupButton,.euiButtonGroup__tooltipWrapper{flex:1;", logicalCSS('width', '100%'), ";};label:fullWidth;"),
|
|
36
37
|
// Sizes
|
|
37
38
|
m: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.medium, ";", _highContrastStyles(euiThemeContext), ";;label:m;"),
|
|
@@ -41,6 +42,7 @@ export var euiButtonGroupButtonsStyles = function euiButtonGroupButtonsStyles(eu
|
|
|
41
42
|
};
|
|
42
43
|
var _highContrastStyles = function _highContrastStyles(euiThemeContext, compressed) {
|
|
43
44
|
var euiTheme = euiThemeContext.euiTheme;
|
|
45
|
+
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
44
46
|
|
|
45
47
|
// Account for buttons within tooltip wrappers in selectors
|
|
46
48
|
var getButtonChildSelectors = function getButtonChildSelectors(selector) {
|
|
@@ -50,7 +52,7 @@ var _highContrastStyles = function _highContrastStyles(euiThemeContext, compress
|
|
|
50
52
|
preferred: compressed ? "\n .euiButtonGroupButton {\n border: none;\n }\n " : // Conditionally unset the high contrast borders passed by `euiButtonColor` -
|
|
51
53
|
// faux borders between selected/unselected buttons are rendered by pseudo elements,
|
|
52
54
|
// and can flip colors depending on selected/unselected siblings
|
|
53
|
-
"\n ".concat(getButtonChildSelectors(':not(:first-child, :last-child)'), " {\n
|
|
54
|
-
forced: "\n .euiButtonGroupButton-isSelected {\n ".concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n }\n\n .euiButtonGroupButton[disabled] {\n opacity: 0.5;\n }\n ")
|
|
55
|
+
"\n ".concat(!isRefreshVariant && "\n ".concat(getButtonChildSelectors(':not(:first-child, :last-child)'), " {\n ").concat(logicalCSS('border-horizontal', 'none'), "\n }\n ").concat(getButtonChildSelectors(':first-child'), " {\n ").concat(logicalCSS('border-right', 'none'), "\n }\n ").concat(getButtonChildSelectors(':last-child'), " {\n ").concat(logicalCSS('border-left', 'none'), "\n }\n "), "\n "),
|
|
56
|
+
forced: "\n .euiButtonGroupButton-isSelected {\n ".concat(preventForcedColors(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n\n ").concat(isRefreshVariant && "\n &:is(:hover, :focus):not(:disabled) {\n &::before {\n border-color: ".concat(euiTheme.colors.textInverse, ";\n }\n }\n "), "\n }\n\n .euiButtonGroupButton[disabled] {\n opacity: 0.5;\n }\n ")
|
|
55
57
|
});
|
|
56
58
|
};
|