@elastic/eui 102.1.0-snapshot.1746441787383 → 102.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_borealis_dark.json +1 -1
- package/es/components/badge/color_utils.js +3 -1
- package/es/components/badge/notification_badge/badge_notification.styles.js +1 -6
- package/es/components/basic_table/basic_table.js +10 -9
- package/es/components/basic_table/in_memory_table.js +18 -16
- package/es/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +3 -6
- 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 +2 -11
- package/es/components/button/button_display/_button_display_content.styles.js +3 -6
- package/es/components/button/button_empty/button_empty.styles.js +12 -9
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group.styles.js +3 -5
- package/es/components/button/button_group/button_group_button.js +9 -19
- package/es/components/button/button_group/button_group_button.styles.js +19 -43
- package/es/components/button/button_icon/button_icon.js +2 -4
- 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 +1 -11
- 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 +23 -88
- package/es/components/filter_group/filter_button.styles.js +15 -51
- package/es/components/filter_group/filter_group.styles.js +6 -18
- 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/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 +1 -2
- package/es/components/search_bar/filters/field_value_toggle_filter.js +1 -3
- package/es/components/search_bar/filters/field_value_toggle_group_filter.js +2 -4
- package/es/components/search_bar/filters/is_filter.js +1 -3
- 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 +28 -95
- package/es/services/theme/hooks.js +11 -0
- package/es/services/theme/index.js +2 -3
- package/es/services/theme/provider.js +2 -28
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +147 -348
- package/es/themes/amsterdam/global_styling/variables/_components.js +224 -229
- package/es/themes/amsterdam/theme.js +1 -2
- 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 +1997 -274
- package/lib/components/badge/color_utils.js +3 -1
- package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -6
- package/lib/components/basic_table/basic_table.js +10 -9
- package/lib/components/basic_table/in_memory_table.js +18 -16
- package/lib/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +2 -5
- 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 +2 -11
- package/lib/components/button/button_display/_button_display_content.styles.js +3 -6
- package/lib/components/button/button_empty/button_empty.styles.js +11 -10
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group.styles.js +3 -5
- package/lib/components/button/button_group/button_group_button.js +8 -18
- package/lib/components/button/button_group/button_group_button.styles.js +17 -41
- package/lib/components/button/button_icon/button_icon.js +1 -3
- 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 +1 -11
- 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 +21 -86
- package/lib/components/filter_group/filter_button.styles.js +15 -51
- package/lib/components/filter_group/filter_group.styles.js +6 -18
- 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/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 +1 -2
- package/lib/components/search_bar/filters/field_value_toggle_filter.js +1 -3
- package/lib/components/search_bar/filters/field_value_toggle_group_filter.js +2 -4
- package/lib/components/search_bar/filters/is_filter.js +1 -3
- 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 +27 -94
- package/lib/services/theme/hooks.js +12 -1
- package/lib/services/theme/index.js +7 -41
- package/lib/services/theme/provider.js +2 -28
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +147 -348
- package/lib/themes/amsterdam/global_styling/variables/_components.js +224 -229
- package/lib/themes/amsterdam/theme.js +1 -2
- 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 +3 -1
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -6
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +3 -6
- package/optimize/es/components/button/button_display/_button_display.js +1 -1
- package/optimize/es/components/button/button_display/_button_display.styles.js +2 -11
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +3 -6
- package/optimize/es/components/button/button_empty/button_empty.styles.js +12 -9
- package/optimize/es/components/button/button_group/button_group.styles.js +3 -5
- package/optimize/es/components/button/button_group/button_group_button.js +8 -12
- package/optimize/es/components/button/button_group/button_group_button.styles.js +19 -43
- package/optimize/es/components/button/button_icon/button_icon.js +2 -4
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +44 -1
- package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -11
- 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 +21 -78
- package/optimize/es/components/filter_group/filter_button.styles.js +15 -51
- package/optimize/es/components/filter_group/filter_group.styles.js +6 -18
- 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/search_bar/filters/field_value_selection_filter.js +0 -1
- package/optimize/es/components/search_bar/filters/field_value_toggle_filter.js +1 -3
- package/optimize/es/components/search_bar/filters/field_value_toggle_group_filter.js +1 -3
- package/optimize/es/components/search_bar/filters/is_filter.js +1 -3
- 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 +28 -95
- package/optimize/es/services/theme/hooks.js +11 -0
- package/optimize/es/services/theme/index.js +2 -3
- package/optimize/es/services/theme/provider.js +2 -28
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +147 -348
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +224 -229
- package/optimize/es/themes/amsterdam/theme.js +1 -2
- 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 +3 -1
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -6
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +2 -5
- package/optimize/lib/components/button/button_display/_button_display.js +1 -1
- package/optimize/lib/components/button/button_display/_button_display.styles.js +2 -11
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +3 -6
- package/optimize/lib/components/button/button_empty/button_empty.styles.js +11 -10
- package/optimize/lib/components/button/button_group/button_group.styles.js +3 -5
- package/optimize/lib/components/button/button_group/button_group_button.js +7 -11
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +17 -41
- package/optimize/lib/components/button/button_icon/button_icon.js +1 -3
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +44 -1
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -11
- 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 +19 -76
- package/optimize/lib/components/filter_group/filter_button.styles.js +15 -51
- package/optimize/lib/components/filter_group/filter_group.styles.js +6 -18
- 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/search_bar/filters/field_value_selection_filter.js +0 -1
- package/optimize/lib/components/search_bar/filters/field_value_toggle_filter.js +1 -3
- package/optimize/lib/components/search_bar/filters/field_value_toggle_group_filter.js +1 -3
- package/optimize/lib/components/search_bar/filters/is_filter.js +1 -3
- 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 +27 -94
- package/optimize/lib/services/theme/hooks.js +12 -1
- package/optimize/lib/services/theme/index.js +7 -41
- package/optimize/lib/services/theme/provider.js +2 -28
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +147 -348
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +224 -229
- package/optimize/lib/themes/amsterdam/theme.js +1 -2
- 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 +7 -10
- package/test-env/components/badge/color_utils.js +3 -1
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -6
- package/test-env/components/basic_table/basic_table.js +10 -9
- package/test-env/components/basic_table/in_memory_table.js +18 -16
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +1 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +2 -5
- 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 +2 -11
- package/test-env/components/button/button_display/_button_display_content.styles.js +3 -6
- package/test-env/components/button/button_empty/button_empty.styles.js +11 -10
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group.styles.js +3 -5
- package/test-env/components/button/button_group/button_group_button.js +8 -18
- package/test-env/components/button/button_group/button_group_button.styles.js +17 -41
- package/test-env/components/button/button_icon/button_icon.js +1 -3
- 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 +1 -11
- 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 +21 -86
- package/test-env/components/filter_group/filter_button.styles.js +15 -51
- package/test-env/components/filter_group/filter_group.styles.js +6 -18
- 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/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 +1 -2
- package/test-env/components/search_bar/filters/field_value_toggle_filter.js +1 -3
- package/test-env/components/search_bar/filters/field_value_toggle_group_filter.js +2 -4
- package/test-env/components/search_bar/filters/is_filter.js +1 -3
- 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 +27 -94
- package/test-env/services/theme/hooks.js +12 -1
- package/test-env/services/theme/index.js +7 -41
- package/test-env/services/theme/provider.js +2 -28
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +147 -348
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +224 -229
- package/test-env/themes/amsterdam/theme.js +1 -2
- 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
- package/es/services/theme/theme_variant.js +0 -22
- package/lib/services/theme/theme_variant.js +0 -28
- package/optimize/es/services/theme/theme_variant.js +0 -22
- package/optimize/lib/services/theme/theme_variant.js +0 -28
- package/test-env/services/theme/theme_variant.js +0 -28
|
@@ -547,10 +547,10 @@ EuiInMemoryTable.propTypes = {
|
|
|
547
547
|
*/
|
|
548
548
|
cellProps: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.func.isRequired]),
|
|
549
549
|
/**
|
|
550
|
-
* An array of one of the objects:
|
|
550
|
+
* An array of one of the objects: {@link EuiTableFieldDataColumnType}, {@link EuiTableComputedColumnType} or {@link EuiTableActionsColumnType}.
|
|
551
551
|
*/
|
|
552
552
|
/**
|
|
553
|
-
* An array of one of the objects:
|
|
553
|
+
* An array of one of the objects: {@link EuiTableFieldDataColumnType}, {@link EuiTableComputedColumnType} or {@link EuiTableActionsColumnType}.
|
|
554
554
|
*/
|
|
555
555
|
columns: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
|
|
556
556
|
/**
|
|
@@ -755,7 +755,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
755
755
|
sortable: _propTypes.default.func
|
|
756
756
|
}).isRequired, _propTypes.default.shape({
|
|
757
757
|
/**
|
|
758
|
-
* An array of one of the objects:
|
|
758
|
+
* An array of one of the objects: {@link DefaultItemAction} or {@link CustomItemAction}
|
|
759
759
|
*/
|
|
760
760
|
actions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
|
|
761
761
|
/**
|
|
@@ -927,10 +927,10 @@ EuiInMemoryTable.propTypes = {
|
|
|
927
927
|
*/
|
|
928
928
|
rowProps: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.func.isRequired]),
|
|
929
929
|
/**
|
|
930
|
-
* Configures
|
|
930
|
+
* Configures {@link EuiTableSelectionType}
|
|
931
931
|
*/
|
|
932
932
|
/**
|
|
933
|
-
* Configures
|
|
933
|
+
* Configures {@link EuiTableSelectionType}
|
|
934
934
|
*/
|
|
935
935
|
selection: _propTypes.default.shape({
|
|
936
936
|
/**
|
|
@@ -970,10 +970,10 @@ EuiInMemoryTable.propTypes = {
|
|
|
970
970
|
tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
|
|
971
971
|
message: _propTypes.default.node,
|
|
972
972
|
/**
|
|
973
|
-
* Configures
|
|
973
|
+
* Configures {@link Search}.
|
|
974
974
|
*/
|
|
975
975
|
/**
|
|
976
|
-
* Configures
|
|
976
|
+
* Configures {@link Search}.
|
|
977
977
|
*/
|
|
978
978
|
search: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.shape({
|
|
979
979
|
onChange: _propTypes.default.func,
|
|
@@ -1046,7 +1046,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
1046
1046
|
}).isRequired, _propTypes.default.bool.isRequired])
|
|
1047
1047
|
}),
|
|
1048
1048
|
/**
|
|
1049
|
-
An array of search filters. See
|
|
1049
|
+
An array of search filters. See {@link SearchFilterConfig}.
|
|
1050
1050
|
*/
|
|
1051
1051
|
filters: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1052
1052
|
type: _propTypes.default.oneOf(["is"]).isRequired,
|
|
@@ -1059,7 +1059,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
1059
1059
|
field: _propTypes.default.string,
|
|
1060
1060
|
name: _propTypes.default.string.isRequired,
|
|
1061
1061
|
/**
|
|
1062
|
-
* See
|
|
1062
|
+
* See {@link FieldValueOptionType}
|
|
1063
1063
|
*/
|
|
1064
1064
|
options: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.shape({
|
|
1065
1065
|
field: _propTypes.default.string,
|
|
@@ -1115,7 +1115,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
1115
1115
|
type: _propTypes.default.oneOf(["field_value_toggle_group"]).isRequired,
|
|
1116
1116
|
field: _propTypes.default.string.isRequired,
|
|
1117
1117
|
/**
|
|
1118
|
-
* See
|
|
1118
|
+
* See {@link FieldValueToggleGroupFilterItemType}
|
|
1119
1119
|
*/
|
|
1120
1120
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
1121
1121
|
value: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.number.isRequired, _propTypes.default.bool.isRequired]).isRequired,
|
|
@@ -1177,7 +1177,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
1177
1177
|
*/
|
|
1178
1178
|
searchFormat: _propTypes.default.oneOf(["eql", "text"]),
|
|
1179
1179
|
/**
|
|
1180
|
-
* Configures
|
|
1180
|
+
* Configures {@link Pagination}
|
|
1181
1181
|
*/
|
|
1182
1182
|
pagination: _propTypes.default.oneOfType([_propTypes.default.oneOf([undefined]), _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.shape({
|
|
1183
1183
|
pageSizeOptions: _propTypes.default.arrayOf(_propTypes.default.number.isRequired),
|
|
@@ -1217,10 +1217,10 @@ EuiInMemoryTable.propTypes = {
|
|
|
1217
1217
|
"aria-label": _propTypes.default.string
|
|
1218
1218
|
}).isRequired])]),
|
|
1219
1219
|
/**
|
|
1220
|
-
* Configures
|
|
1220
|
+
* Configures {@link EuiTableSortingType}
|
|
1221
1221
|
*/
|
|
1222
1222
|
/**
|
|
1223
|
-
* Configures
|
|
1223
|
+
* Configures {@link EuiTableSortingType}
|
|
1224
1224
|
*/
|
|
1225
1225
|
sorting: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.shape({
|
|
1226
1226
|
sort: _propTypes.default.any.isRequired
|
|
@@ -1235,16 +1235,18 @@ EuiInMemoryTable.propTypes = {
|
|
|
1235
1235
|
/**
|
|
1236
1236
|
* `onChange` is not required when `pagination` and/or `sorting` are configured,
|
|
1237
1237
|
* but if `onChange` is present it is responsible for handling state for each/both.
|
|
1238
|
-
* See
|
|
1238
|
+
* See {@link Criteria} or {@link CriteriaWithPagination}
|
|
1239
1239
|
*/
|
|
1240
1240
|
/**
|
|
1241
1241
|
* `onChange` is not required when `pagination` and/or `sorting` are configured,
|
|
1242
1242
|
* but if `onChange` is present it is responsible for handling state for each/both.
|
|
1243
|
-
* See
|
|
1243
|
+
* See {@link Criteria} or {@link CriteriaWithPagination}
|
|
1244
1244
|
*/
|
|
1245
1245
|
onChange: _propTypes.default.any,
|
|
1246
1246
|
/**
|
|
1247
|
-
* Callback for when table pagination or sorting is changed. This is meant to be informational only,
|
|
1247
|
+
* Callback for when table pagination or sorting is changed. This is meant to be informational only,
|
|
1248
|
+
* and not used to set any state as the in-memory table already manages this state.
|
|
1249
|
+
* See {@link Criteria} or {@link CriteriaWithPagination}.
|
|
1248
1250
|
*/
|
|
1249
1251
|
onTableChange: _propTypes.default.func,
|
|
1250
1252
|
executeQueryOptions: _propTypes.default.shape({
|
|
@@ -201,7 +201,7 @@ EuiBreadcrumbContent.propTypes = {
|
|
|
201
201
|
*/
|
|
202
202
|
panelStyle: _propTypes.default.any,
|
|
203
203
|
/**
|
|
204
|
-
* Object of props passed to EuiPanel. See
|
|
204
|
+
* Object of props passed to EuiPanel. See {@link EuiPopoverPanelProps}
|
|
205
205
|
*/
|
|
206
206
|
panelProps: _propTypes.default.shape({
|
|
207
207
|
element: _propTypes.default.oneOf(["div"]),
|
|
@@ -7,6 +7,7 @@ exports.euiBreadcrumbPopoverStyles = exports.euiBreadcrumbContentStyles = void 0
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
9
|
var _high_contrast = require("../../global_styling/functions/high_contrast");
|
|
10
|
+
var _button = require("../../themes/amsterdam/global_styling/mixins/button");
|
|
10
11
|
/*
|
|
11
12
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
13
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -23,11 +24,7 @@ var euiBreadcrumbContentStyles = exports.euiBreadcrumbContentStyles = function e
|
|
|
23
24
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
24
25
|
|
|
25
26
|
// Reuse button colors for `type="application`" clickable breadcrumbs
|
|
26
|
-
var
|
|
27
|
-
var applicationButtonColors = {
|
|
28
|
-
backgroundColor: euiTheme.colors.backgroundLightPrimary,
|
|
29
|
-
color: buttonColors.color
|
|
30
|
-
};
|
|
27
|
+
var applicationButtonColors = (0, _button.euiButtonColor)(euiThemeContext, 'primary');
|
|
31
28
|
|
|
32
29
|
// Create custom darker gray colors for non-clickable application breadcrumbs
|
|
33
30
|
// The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
|
|
@@ -101,7 +101,7 @@ EuiBreadcrumbs.propTypes = {
|
|
|
101
101
|
css: _propTypes.default.any,
|
|
102
102
|
/**
|
|
103
103
|
* Hides extra (above the max) breadcrumbs under a collapsed item as the window gets smaller.
|
|
104
|
-
* Pass a custom
|
|
104
|
+
* Pass a custom {@link EuiBreadcrumbResponsiveMaxCount} object to change the number of breadcrumbs to show at the particular breakpoints.
|
|
105
105
|
*
|
|
106
106
|
* Pass `false` to turn this behavior off.
|
|
107
107
|
*
|
|
@@ -121,7 +121,7 @@ EuiBreadcrumbs.propTypes = {
|
|
|
121
121
|
*/
|
|
122
122
|
max: _propTypes.default.oneOfType([_propTypes.default.number.isRequired, _propTypes.default.oneOf([null])]),
|
|
123
123
|
/**
|
|
124
|
-
* The array of individual
|
|
124
|
+
* The array of individual {@link EuiBreadcrumb} items
|
|
125
125
|
*/
|
|
126
126
|
breadcrumbs: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
127
127
|
className: _propTypes.default.string,
|
|
@@ -80,7 +80,7 @@ var EuiButtonDisplay = exports.EuiButtonDisplay = /*#__PURE__*/(0, _react.forwar
|
|
|
80
80
|
isLoading: isLoading
|
|
81
81
|
});
|
|
82
82
|
var styles = (0, _services.useEuiMemoizedStyles)(_button_display.euiButtonDisplayStyles);
|
|
83
|
-
var cssStyles = [styles.euiButtonDisplay, styles[size], fullWidth && styles.fullWidth, minWidth == null &&
|
|
83
|
+
var cssStyles = [styles.euiButtonDisplay, styles[size], fullWidth && styles.fullWidth, minWidth == null && styles.defaultMinWidth, buttonIsDisabled && styles.isDisabled];
|
|
84
84
|
var innerNode = (0, _react2.jsx)(_button_display_content.EuiButtonDisplayContent, (0, _extends2.default)({
|
|
85
85
|
isLoading: isLoading,
|
|
86
86
|
isDisabled: buttonIsDisabled,
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiButtonDisplayStyles = exports.euiButtonBaseCSS = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _services = require("../../../services");
|
|
9
8
|
var _global_styling = require("../../../global_styling");
|
|
10
9
|
var _mixins = require("../../../global_styling/mixins");
|
|
11
10
|
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)."; } /*
|
|
@@ -30,26 +29,18 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
30
29
|
};
|
|
31
30
|
var euiButtonDisplayStyles = exports.euiButtonDisplayStyles = function euiButtonDisplayStyles(euiThemeContext) {
|
|
32
31
|
var euiTheme = euiThemeContext.euiTheme;
|
|
33
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
34
32
|
var sizes = (0, _mixins.euiButtonSizeMap)(euiThemeContext);
|
|
35
33
|
var _buttonSize = function _buttonSize(sizeKey) {
|
|
36
34
|
var size = sizes[sizeKey];
|
|
37
35
|
return /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', size.height), " line-height:", size.height, ";", (0, _global_styling.euiFontSize)(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
|
|
38
36
|
};
|
|
39
|
-
var classicVariantStyles = "\n &:hover:not(:disabled),\n &:focus {\n text-decoration: underline;\n }\n ";
|
|
40
37
|
return {
|
|
41
38
|
// Base
|
|
42
|
-
euiButtonDisplay: /*#__PURE__*/(0, _react.css)(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.m)), "
|
|
39
|
+
euiButtonDisplay: /*#__PURE__*/(0, _react.css)(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.m)), " &:hover:not(:disabled),&:focus{text-decoration:underline;};label:euiButtonDisplay;"),
|
|
43
40
|
// States
|
|
44
41
|
isDisabled: _ref,
|
|
45
42
|
fullWidth: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
|
|
46
|
-
defaultMinWidth:
|
|
47
|
-
defaultMinWidth: /*#__PURE__*/(0, _react.css)(";label:defaultMinWidth;"),
|
|
48
|
-
// Skip css`` for the sizes as we already add classes for sizes and defaultMinWidth
|
|
49
|
-
xs: "\n ".concat((0, _global_styling.logicalCSS)('min-width', "".concat(sizes.xs.minWidth, "px")), "\n "),
|
|
50
|
-
s: "\n ".concat((0, _global_styling.logicalCSS)('min-width', "".concat(sizes.s.minWidth, "px")), "\n "),
|
|
51
|
-
m: "\n ".concat((0, _global_styling.logicalCSS)('min-width', "".concat(sizes.m.minWidth, "px")), "\n ")
|
|
52
|
-
},
|
|
43
|
+
defaultMinWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', "".concat(euiTheme.base * 7, "px")), ";;label:defaultMinWidth;"),
|
|
53
44
|
// Sizes
|
|
54
45
|
xs: /*#__PURE__*/(0, _react.css)(_buttonSize('xs'), ";label:xs;"),
|
|
55
46
|
s: /*#__PURE__*/(0, _react.css)(_buttonSize('s'), ";label:s;"),
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiButtonDisplayContentStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _services = require("../../../services");
|
|
9
8
|
var _global_styling = require("../../../global_styling");
|
|
10
9
|
/*
|
|
11
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -15,12 +14,10 @@ var _global_styling = require("../../../global_styling");
|
|
|
15
14
|
* Side Public License, v 1.
|
|
16
15
|
*/
|
|
17
16
|
|
|
18
|
-
var euiButtonDisplayContentStyles = exports.euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(
|
|
19
|
-
var euiTheme =
|
|
20
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
21
|
-
var refreshVariantStyles = "\n /* ensure content stays ontop of hover pseudo element */\n position: relative;\n ";
|
|
17
|
+
var euiButtonDisplayContentStyles = exports.euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(_ref) {
|
|
18
|
+
var euiTheme = _ref.euiTheme;
|
|
22
19
|
return {
|
|
23
20
|
// Base
|
|
24
|
-
euiButtonDisplayContent: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, "
|
|
21
|
+
euiButtonDisplayContent: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, ";;label:euiButtonDisplayContent;")
|
|
25
22
|
};
|
|
26
23
|
};
|
|
@@ -5,38 +5,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiButtonEmptyStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _services = require("../../../services");
|
|
9
8
|
var _global_styling = require("../../../global_styling");
|
|
10
9
|
var _button_display = require("../button_display/_button_display.styles");
|
|
11
|
-
/*
|
|
10
|
+
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)."; } /*
|
|
12
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
13
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
14
13
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
15
14
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
16
15
|
* Side Public License, v 1.
|
|
17
16
|
*/
|
|
18
|
-
|
|
17
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
18
|
+
name: "1lywbid-flush",
|
|
19
|
+
styles: "padding-inline:0;label:flush;"
|
|
20
|
+
} : {
|
|
21
|
+
name: "1lywbid-flush",
|
|
22
|
+
styles: "padding-inline:0;label:flush;",
|
|
23
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
+
};
|
|
19
25
|
var euiButtonEmptyStyles = exports.euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext) {
|
|
20
26
|
var euiTheme = euiThemeContext.euiTheme;
|
|
21
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
22
27
|
|
|
23
28
|
// EuiButtonEmpty uses the same size/font styling as EuiButtonDisplay,
|
|
24
29
|
// but does not share enough of the same colors/props to the point
|
|
25
30
|
// of using the actual component - so we'll reuse its styles instead
|
|
26
31
|
var displayStyles = (0, _button_display.euiButtonDisplayStyles)(euiThemeContext);
|
|
27
|
-
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((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
|
|
28
|
-
forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
|
|
29
|
-
}), "\n }\n ");
|
|
30
32
|
return {
|
|
31
33
|
euiButtonEmpty: /*#__PURE__*/(0, _react.css)(displayStyles.euiButtonDisplay, " ", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.s)), _global_styling.euiCanAnimate, "{transition-timing-function:ease-in;transition-duration:", euiTheme.animation.fast, ";};label:euiButtonEmpty;"),
|
|
32
34
|
isDisabled: displayStyles.isDisabled,
|
|
33
35
|
// Sizes
|
|
34
36
|
xs: displayStyles.xs,
|
|
35
37
|
s: displayStyles.s,
|
|
36
|
-
|
|
37
|
-
m: [displayStyles.m, isRefreshVariant && "\n ".concat((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.m), "\n ")],
|
|
38
|
+
m: displayStyles.m,
|
|
38
39
|
// Flush sides
|
|
39
|
-
flush:
|
|
40
|
+
flush: _ref,
|
|
40
41
|
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), ";;label:left;"),
|
|
41
42
|
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.s), ";;label:right;"),
|
|
42
43
|
both: /*#__PURE__*/(0, _react.css)(";label:both;")
|
|
@@ -123,7 +123,7 @@ EuiButtonGroup.propTypes = {
|
|
|
123
123
|
*/
|
|
124
124
|
type: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.oneOf(["single", "multi"]), _propTypes.default.oneOf(["single"])]), _propTypes.default.oneOf(["multi"])]),
|
|
125
125
|
/**
|
|
126
|
-
* An array of
|
|
126
|
+
* An array of {@link EuiButtonGroupOptionProps}
|
|
127
127
|
*/
|
|
128
128
|
options: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
129
129
|
/**
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiButtonGroupStyles = exports.euiButtonGroupButtonsStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _services = require("../../../services");
|
|
9
8
|
var _global_styling = require("../../../global_styling");
|
|
10
9
|
var _high_contrast = require("../../../global_styling/functions/high_contrast");
|
|
11
10
|
var _form = require("../../form/form.styles");
|
|
@@ -36,7 +35,7 @@ var euiButtonGroupButtonsStyles = exports.euiButtonGroupButtonsStyles = function
|
|
|
36
35
|
borderColor = _euiFormVariables.borderColor;
|
|
37
36
|
return {
|
|
38
37
|
// Base
|
|
39
|
-
euiButtonGroup__buttons: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', '100%'), " display:flex
|
|
38
|
+
euiButtonGroup__buttons: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', '100%'), " display:flex;;label:euiButtonGroup__buttons;"),
|
|
40
39
|
fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " .euiButtonGroupButton,.euiButtonGroup__tooltipWrapper{flex:1;", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:fullWidth;"),
|
|
41
40
|
// Sizes
|
|
42
41
|
m: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";", _highContrastStyles(euiThemeContext), ";;label:m;"),
|
|
@@ -46,7 +45,6 @@ var euiButtonGroupButtonsStyles = exports.euiButtonGroupButtonsStyles = function
|
|
|
46
45
|
};
|
|
47
46
|
var _highContrastStyles = function _highContrastStyles(euiThemeContext, compressed) {
|
|
48
47
|
var euiTheme = euiThemeContext.euiTheme;
|
|
49
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
50
48
|
|
|
51
49
|
// Account for buttons within tooltip wrappers in selectors
|
|
52
50
|
var getButtonChildSelectors = function getButtonChildSelectors(selector) {
|
|
@@ -56,7 +54,7 @@ var _highContrastStyles = function _highContrastStyles(euiThemeContext, compress
|
|
|
56
54
|
preferred: compressed ? "\n .euiButtonGroupButton {\n border: none;\n }\n " : // Conditionally unset the high contrast borders passed by `euiButtonColor` -
|
|
57
55
|
// faux borders between selected/unselected buttons are rendered by pseudo elements,
|
|
58
56
|
// and can flip colors depending on selected/unselected siblings
|
|
59
|
-
"\n ".concat(
|
|
60
|
-
forced: "\n .euiButtonGroupButton-isSelected {\n ".concat((0, _high_contrast.preventForcedColors)(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n background-color: ").concat(euiTheme.colors.fullShade, ";\n
|
|
57
|
+
"\n ".concat(getButtonChildSelectors(':not(:first-child, :last-child)'), " {\n ").concat((0, _global_styling.logicalCSS)('border-horizontal', 'none'), "\n }\n ").concat(getButtonChildSelectors(':first-child'), " {\n ").concat((0, _global_styling.logicalCSS)('border-right', 'none'), "\n }\n ").concat(getButtonChildSelectors(':last-child'), " {\n ").concat((0, _global_styling.logicalCSS)('border-left', 'none'), "\n }\n "),
|
|
58
|
+
forced: "\n .euiButtonGroupButton-isSelected {\n ".concat((0, _high_contrast.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 ")
|
|
61
59
|
});
|
|
62
60
|
};
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.EuiButtonGroupButton = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -19,7 +19,7 @@ var _button_display = require("../button_display/_button_display");
|
|
|
19
19
|
var _button_group_button = require("./button_group_button.styles");
|
|
20
20
|
var _tool_tip = require("../../../components/tool_tip");
|
|
21
21
|
var _react2 = require("@emotion/react");
|
|
22
|
-
var _excluded = ["className", "id", "isDisabled", "isIconOnly", "isSelected", "label", "value", "size", "color", "toolTipContent", "toolTipProps"
|
|
22
|
+
var _excluded = ["className", "id", "isDisabled", "isIconOnly", "isSelected", "label", "value", "size", "color", "toolTipContent", "toolTipProps"];
|
|
23
23
|
/*
|
|
24
24
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
25
25
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -43,21 +43,17 @@ var EuiButtonGroupButton = exports.EuiButtonGroupButton = function EuiButtonGrou
|
|
|
43
43
|
_color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
44
44
|
toolTipContent = _ref.toolTipContent,
|
|
45
45
|
toolTipProps = _ref.toolTipProps,
|
|
46
|
-
contentProps = _ref.contentProps,
|
|
47
46
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
48
|
-
var euiThemeContext = (0, _services.useEuiTheme)();
|
|
49
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
50
47
|
var isCompressed = size === 'compressed';
|
|
51
48
|
var color = isDisabled ? 'disabled' : _color;
|
|
52
|
-
var
|
|
53
|
-
var display = isSelected ? 'fill' : isCompressed || hasBorder ? 'empty' : 'base';
|
|
49
|
+
var display = isSelected ? 'fill' : isCompressed ? 'empty' : 'base';
|
|
54
50
|
var hasToolTip = !!toolTipContent;
|
|
55
51
|
var styles = (0, _services.useEuiMemoizedStyles)(_button_group_button.euiButtonGroupButtonStyles);
|
|
56
52
|
var focusColorStyles = (0, _services.useEuiMemoizedStyles)(_button_group_button._compressedButtonFocusColors);
|
|
57
53
|
var buttonColorStyles = (0, _button.useEuiButtonColorCSS)({
|
|
58
54
|
display: display
|
|
59
55
|
})[color];
|
|
60
|
-
var cssStyles = [styles.euiButtonGroupButton, isIconOnly && styles.iconOnly, !isCompressed && (hasToolTip ? styles.uncompressed.hasToolTip : styles.uncompressed[size]), isCompressed ? styles.compressed : styles.uncompressed.uncompressed, isDisabled && isSelected ? styles.disabledAndSelected : buttonColorStyles, !isDisabled && isCompressed && focusColorStyles[color]
|
|
56
|
+
var cssStyles = [styles.euiButtonGroupButton, isIconOnly && styles.iconOnly, !isCompressed && (hasToolTip ? styles.uncompressed.hasToolTip : styles.uncompressed[size]), isCompressed ? styles.compressed : styles.uncompressed.uncompressed, isDisabled && isSelected ? styles.disabledAndSelected : buttonColorStyles, !isDisabled && isCompressed && focusColorStyles[color]];
|
|
61
57
|
var tooltipWrapperStyles = [styles.tooltipWrapper, !isCompressed && styles.uncompressed[size]];
|
|
62
58
|
var contentStyles = [styles.content.euiButtonGroupButton__content, isCompressed && styles.content.compressed];
|
|
63
59
|
var textStyles = [isIconOnly ? styles.text.euiButtonGroupButton__iconOnly : styles.text.euiButtonGroupButton__text];
|
|
@@ -85,9 +81,9 @@ var EuiButtonGroupButton = exports.EuiButtonGroupButton = function EuiButtonGrou
|
|
|
85
81
|
className: buttonClasses,
|
|
86
82
|
isDisabled: isDisabled,
|
|
87
83
|
size: size === 'compressed' ? 's' : size,
|
|
88
|
-
contentProps:
|
|
89
|
-
css:
|
|
90
|
-
}
|
|
84
|
+
contentProps: {
|
|
85
|
+
css: contentStyles
|
|
86
|
+
},
|
|
91
87
|
textProps: {
|
|
92
88
|
css: textStyles,
|
|
93
89
|
ref: buttonTextRef,
|
|
@@ -176,13 +172,7 @@ EuiButtonGroupButton.propTypes = {
|
|
|
176
172
|
/**
|
|
177
173
|
* Inherit from EuiButtonGroup
|
|
178
174
|
*/
|
|
179
|
-
onClick: _propTypes.default.func.isRequired
|
|
180
|
-
contentProps: _propTypes.default.shape({
|
|
181
|
-
className: _propTypes.default.string,
|
|
182
|
-
"aria-label": _propTypes.default.string,
|
|
183
|
-
"data-test-subj": _propTypes.default.string,
|
|
184
|
-
css: _propTypes.default.any
|
|
185
|
-
})
|
|
175
|
+
onClick: _propTypes.default.func.isRequired
|
|
186
176
|
};
|
|
187
177
|
var EuiButtonGroupButtonWithToolTip = function EuiButtonGroupButtonWithToolTip(_ref2) {
|
|
188
178
|
var _toolTipProps$anchorP, _toolTipProps$anchorP2;
|
|
@@ -23,11 +23,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
23
23
|
* Side Public License, v 1.
|
|
24
24
|
*/
|
|
25
25
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
26
|
-
name: "
|
|
27
|
-
styles: "overflow:hidden
|
|
26
|
+
name: "nwv4a2-tooltipWrapper",
|
|
27
|
+
styles: "overflow:hidden;label:tooltipWrapper;"
|
|
28
28
|
} : {
|
|
29
|
-
name: "
|
|
30
|
-
styles: "overflow:hidden
|
|
29
|
+
name: "nwv4a2-tooltipWrapper",
|
|
30
|
+
styles: "overflow:hidden;label:tooltipWrapper;",
|
|
31
31
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
32
|
};
|
|
33
33
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
@@ -41,70 +41,48 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
41
41
|
var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeContext) {
|
|
42
42
|
var euiTheme = euiThemeContext.euiTheme,
|
|
43
43
|
highContrastMode = euiThemeContext.highContrastMode;
|
|
44
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
45
44
|
var _euiFormVariables = (0, _form.euiFormVariables)(euiThemeContext),
|
|
46
45
|
controlCompressedHeight = _euiFormVariables.controlCompressedHeight,
|
|
47
46
|
controlCompressedBorderRadius = _euiFormVariables.controlCompressedBorderRadius;
|
|
48
47
|
var compressedButtonHeight = (0, _global_styling.mathWithUnits)([controlCompressedHeight, euiTheme.border.width.thin], function (x, y) {
|
|
49
|
-
return
|
|
48
|
+
return x - y * 2;
|
|
50
49
|
});
|
|
51
|
-
var selectedSelectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
|
|
52
50
|
var uncompressedBorderRadii = function uncompressedBorderRadii(radiusSize) {
|
|
53
|
-
return "\n border-radius: 0;\n\n &:first-child {\n ".concat((0, _global_styling.logicalShorthandCSS)('border-radius', "".concat(radiusSize, " 0 0 ").concat(radiusSize)), "\n }\n\n &:last-child {\n ").concat((0, _global_styling.logicalShorthandCSS)('border-radius', "0 ".concat(radiusSize, " ").concat(radiusSize, " 0")), "\n }\n
|
|
51
|
+
return "\n border-radius: 0;\n\n &:first-child {\n ".concat((0, _global_styling.logicalShorthandCSS)('border-radius', "".concat(radiusSize, " 0 0 ").concat(radiusSize)), "\n }\n\n &:last-child {\n ").concat((0, _global_styling.logicalShorthandCSS)('border-radius', "0 ".concat(radiusSize, " ").concat(radiusSize, " 0")), "\n }\n ");
|
|
54
52
|
};
|
|
55
|
-
var refreshVariantStyles = "\n &:is(".concat(selectedSelectors, ") {\n ").concat((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
|
|
56
|
-
forced: "\n --highContrastHoverIndicatorColor: ".concat(euiTheme.colors.textInverse, ";\n border: none;\n\n /* styles the content manually instead of the button itself to preserve the system\n focus style, as otherwise preventForcedColors() would require manual styling */\n > [class*=\"euiButtonDisplayContent\"] {\n ").concat((0, _global_styling.preventForcedColors)(euiThemeContext), "\n color: ").concat(euiTheme.colors.emptyShade, ";\n border: none;\n }\n ")
|
|
57
|
-
}), "\n }\n ");
|
|
58
|
-
var uncompressedStyles = isRefreshVariant ? "\n &:is(".concat(selectedSelectors, "):not(:disabled) {\n z-index: 1;\n /* prevent layout jumps due to missing border for selected/filled buttons */\n border: ").concat(euiTheme.border.width.thin, " solid transparent;\n\n ").concat((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
|
|
59
|
-
forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat((0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
|
|
60
|
-
return x * 4;
|
|
61
|
-
}), ";\n }\n ")
|
|
62
|
-
}), "\n }\n ") : "\n &:is(.euiButtonGroupButton-isSelected) {\n font-weight: ".concat(euiTheme.font.weight.bold, ";\n }\n ");
|
|
63
|
-
var compressedStyles = isRefreshVariant ? "\n margin: ".concat(euiTheme.size.xxs, ";\n border-radius: ").concat((0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
|
|
64
|
-
return x / 2;
|
|
65
|
-
}), ";\n\n & + .euiButtonGroupButton {\n ").concat((0, _global_styling.logicalCSS)('margin-left', '0'), "\n }\n\n &:is(").concat(selectedSelectors, "):not(:disabled) {\n /* prevent layout jumps due to missing border for non-selected buttons */\n border: none;\n\n ").concat((0, _global_styling.highContrastModeStyles)(euiThemeContext, {
|
|
66
|
-
forced: "\n /* use inset focus outline to ensure visibility, same as custom hover.\n NOTE: temp solution - this will be revisited once we handle global focus styles */\n &:focus-visible {\n outline-color: ".concat(euiTheme.colors.textInverse, ";\n /* has to be inset due to overflow: hidden */\n outline-offset: -").concat((0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
|
|
67
|
-
return x * 3;
|
|
68
|
-
}), ";\n }\n ")
|
|
69
|
-
}), "\n }\n ") : "\n background-clip: content-box;\n /* Tweak border radius to account for the padding & background-clip */\n border-radius: ".concat((0, _global_styling.mathWithUnits)([controlCompressedBorderRadius, euiTheme.border.width.thin], function (x, y) {
|
|
70
|
-
return x + y;
|
|
71
|
-
}), ";\n\n &:is(.euiButtonGroupButton-isSelected) {\n font-weight: ").concat(euiTheme.font.weight.semiBold, ";\n }\n ");
|
|
72
53
|
return {
|
|
73
54
|
// Base
|
|
74
|
-
euiButtonGroupButton: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:
|
|
55
|
+
euiButtonGroupButton: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:1;}", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;};label:euiButtonGroupButton;"),
|
|
75
56
|
iconOnly: /*#__PURE__*/(0, _react.css)("padding-inline:", euiTheme.size.s, ";;label:iconOnly;"),
|
|
76
57
|
// Sizes
|
|
77
58
|
uncompressed: {
|
|
78
|
-
uncompressed: /*#__PURE__*/(0, _react.css)("&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";}
|
|
59
|
+
uncompressed: /*#__PURE__*/(0, _react.css)("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";};label:uncompressed;"),
|
|
79
60
|
get borders() {
|
|
80
61
|
// We use pseudo elements to avoid affecing button width, and to allow
|
|
81
62
|
// inheriting high contrast border colors
|
|
82
|
-
var selectors =
|
|
63
|
+
var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
|
|
83
64
|
var selectedColor = highContrastMode ? euiTheme.colors.emptyShade : euiTheme.components.buttonGroupBorderColorSelected;
|
|
84
65
|
var unselectedColor = highContrastMode ? 'inherit' : euiTheme.components.buttonGroupBorderColor;
|
|
85
|
-
var borderWidth = euiTheme.border.width.thin;
|
|
86
|
-
var borderStyles = isRefreshVariant ? "\n &:not(:first-child) {\n margin-inline-start: -".concat(borderWidth, ";\n }\n\n &:is(").concat(selectors, ") {\n &::before {\n position: absolute;\n z-index: 1;\n ").concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('vertical', "-".concat(euiTheme.border.width.thin)), "\n ").concat((0, _global_styling.logicalCSS)('border-left-style', 'solid'), "\n ").concat((0, _global_styling.logicalCSS)('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n\n ").concat((0, _global_styling.preventForcedColors)(euiThemeContext), "\n }\n }\n ") : "\n &::before {\n position: absolute;\n ".concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('vertical', highContrastMode ? "-".concat(euiTheme.border.width.thin) : 0), "\n ").concat((0, _global_styling.logicalCSS)('border-left-style', 'solid'), "\n ").concat((0, _global_styling.logicalCSS)('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n }\n ");
|
|
87
66
|
|
|
88
67
|
// "Borders" between buttons should be present between two of the same colored buttons,
|
|
89
68
|
// and absent between selected vs non-selected buttons (different colors)
|
|
90
|
-
return "\n position: relative;\n\n ".concat(
|
|
69
|
+
return "\n position: relative;\n\n &::before {\n position: absolute;\n ".concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('vertical', highContrastMode ? "-".concat(euiTheme.border.width.thin) : 0), "\n ").concat((0, _global_styling.logicalCSS)('border-left-style', 'solid'), "\n ").concat((0, _global_styling.logicalCSS)('border-left-width', euiTheme.border.width.thin), "\n pointer-events: none;\n }\n \n &:not(").concat(selectors, ") + *:not(").concat(selectors, ") {\n &::before {\n content: '';\n border-color: ").concat(unselectedColor, ";\n }\n }\n\n &:is(").concat(selectors, ") + *:is(").concat(selectors, ") {\n &::before {\n content: '';\n border-color: ").concat(selectedColor, ";\n }\n }\n ");
|
|
91
70
|
},
|
|
92
71
|
get s() {
|
|
93
72
|
return /*#__PURE__*/(0, _react.css)(this.borders, " ", uncompressedBorderRadii(euiTheme.border.radius.small), ";;label:s;");
|
|
94
73
|
},
|
|
95
74
|
get m() {
|
|
96
|
-
|
|
97
|
-
return /*#__PURE__*/(0, _react.css)(this.borders, " ", uncompressedBorderRadii(radius), ";;label:m;");
|
|
75
|
+
return /*#__PURE__*/(0, _react.css)(this.borders, " ", uncompressedBorderRadii(euiTheme.border.radius.medium), ";;label:m;");
|
|
98
76
|
},
|
|
99
77
|
hasToolTip: _ref2
|
|
100
78
|
},
|
|
101
|
-
compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";
|
|
79
|
+
compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedButtonHeight), " line-height:", compressedButtonHeight, ";padding:", (0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
|
|
102
80
|
return x * 2;
|
|
103
|
-
}), ";",
|
|
81
|
+
}), ";background-clip:content-box;border-radius:", (0, _global_styling.mathWithUnits)([controlCompressedBorderRadius, euiTheme.border.width.thin], function (x, y) {
|
|
82
|
+
return x + y;
|
|
83
|
+
}), ";font-weight:", euiTheme.font.weight.regular, ";&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.semiBold, ";};label:compressed;"),
|
|
104
84
|
// States
|
|
105
|
-
disabledAndSelected: /*#__PURE__*/(0, _react.css)("color:",
|
|
106
|
-
// Skip css`` to avoid generating a className
|
|
107
|
-
hasBorder: "\n border: ".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBasePlain, ";\n "),
|
|
85
|
+
disabledAndSelected: /*#__PURE__*/(0, _react.css)("color:", (0, _services.makeDisabledContrastColor)(euiTheme.colors.textDisabled)(euiTheme.components.buttonGroupBackgroundDisabledSelected), ";background-color:", euiTheme.components.buttonGroupBackgroundDisabledSelected, ";border:", highContrastMode && "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.buttonGroupBackgroundDisabledSelected), ";;label:disabledAndSelected;"),
|
|
108
86
|
// Tooltip anchor wrapper
|
|
109
87
|
tooltipWrapper: _ref,
|
|
110
88
|
// Content wrapper
|
|
@@ -120,12 +98,10 @@ var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function e
|
|
|
120
98
|
};
|
|
121
99
|
};
|
|
122
100
|
var _compressedButtonFocusColors = exports._compressedButtonFocusColors = function _compressedButtonFocusColors(euiThemeContext) {
|
|
123
|
-
var euiTheme = euiThemeContext.euiTheme;
|
|
124
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
125
101
|
var colors = [].concat((0, _toConsumableArray2.default)(_button.BUTTON_COLORS), ['disabled']);
|
|
126
102
|
return colors.reduce(function (acc, color) {
|
|
127
103
|
var _euiButtonFillColor = (0, _button.euiButtonFillColor)(euiThemeContext, color),
|
|
128
104
|
backgroundColor = _euiButtonFillColor.backgroundColor;
|
|
129
|
-
return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext,
|
|
105
|
+
return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, color, /*#__PURE__*/(0, _react.css)("&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'center', backgroundColor), " &:is(.euiButtonGroupButton-isSelected){outline-offset:0;}}")));
|
|
130
106
|
}, {});
|
|
131
107
|
};
|
|
@@ -49,8 +49,6 @@ var EuiButtonIcon = exports.EuiButtonIcon = function EuiButtonIcon(_ref) {
|
|
|
49
49
|
isSelected = _ref.isSelected,
|
|
50
50
|
isLoading = _ref.isLoading,
|
|
51
51
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
52
|
-
var euiThemeContext = (0, _services.useEuiTheme)();
|
|
53
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
54
52
|
var isDisabled = (0, _button_display.isButtonDisabled)({
|
|
55
53
|
isDisabled: _isDisabled || disabled,
|
|
56
54
|
href: href,
|
|
@@ -67,7 +65,7 @@ var EuiButtonIcon = exports.EuiButtonIcon = function EuiButtonIcon(_ref) {
|
|
|
67
65
|
var buttonFocusStyle = (0, _button.useEuiButtonFocusCSS)();
|
|
68
66
|
var emptyHoverStyles = (0, _services.useEuiMemoizedStyles)(_button_icon._emptyHoverStyles);
|
|
69
67
|
var styles = (0, _services.useEuiMemoizedStyles)(_button_icon.euiButtonIconStyles);
|
|
70
|
-
var cssStyles = [styles.euiButtonIcon, styles[size], buttonColorStyles[isDisabled ? 'disabled' : color], buttonFocusStyle,
|
|
68
|
+
var cssStyles = [styles.euiButtonIcon, styles[size], buttonColorStyles[isDisabled ? 'disabled' : color], buttonFocusStyle, display === 'empty' && !isDisabled && emptyHoverStyles[color], isDisabled && styles.isDisabled];
|
|
71
69
|
var classes = (0, _classnames.default)('euiButtonIcon', className);
|
|
72
70
|
|
|
73
71
|
// Add an icon to the button if one exists.
|
package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js
CHANGED
|
@@ -211,7 +211,7 @@ KibanaCollapsibleNavSolution.propTypes = {
|
|
|
211
211
|
*/
|
|
212
212
|
showToolTip: _propTypes.default.bool,
|
|
213
213
|
/**
|
|
214
|
-
* An object of
|
|
214
|
+
* An object of {@link EuiListGroupItemExtraAction} props.
|
|
215
215
|
* Adds an `EuiButtonIcon` to the right side of the item; `iconType` is required;
|
|
216
216
|
* pass `alwaysShow` if you don't want the default behavior of only showing on hover
|
|
217
217
|
*/
|
|
@@ -87,7 +87,7 @@ EuiCollapsedNavItem.propTypes = {
|
|
|
87
87
|
/**
|
|
88
88
|
* Will render either an accordion or group of nested child item links.
|
|
89
89
|
*
|
|
90
|
-
* Accepts any
|
|
90
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
91
91
|
* subitem content, pass an object with a `renderItem` callback.
|
|
92
92
|
*/
|
|
93
93
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -135,7 +135,7 @@ EuiCollapsedNavItem.propTypes = {
|
|
|
135
135
|
/**
|
|
136
136
|
* Will render either an accordion or group of nested child item links.
|
|
137
137
|
*
|
|
138
|
-
* Accepts any
|
|
138
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
139
139
|
* subitem content, pass an object with a `renderItem` callback.
|
|
140
140
|
*/
|
|
141
141
|
items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|
|
@@ -133,7 +133,7 @@ EuiCollapsedNavPopover.propTypes = {
|
|
|
133
133
|
/**
|
|
134
134
|
* Will render either an accordion or group of nested child item links.
|
|
135
135
|
*
|
|
136
|
-
* Accepts any
|
|
136
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
137
137
|
* subitem content, pass an object with a `renderItem` callback.
|
|
138
138
|
*/
|
|
139
139
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -181,7 +181,7 @@ EuiCollapsedNavPopover.propTypes = {
|
|
|
181
181
|
/**
|
|
182
182
|
* Will render either an accordion or group of nested child item links.
|
|
183
183
|
*
|
|
184
|
-
* Accepts any
|
|
184
|
+
* Accepts any {@link EuiCollapsibleNavItemProps}. Or, to render completely custom
|
|
185
185
|
* subitem content, pass an object with a `renderItem` callback.
|
|
186
186
|
*/
|
|
187
187
|
items: _propTypes.default.arrayOf(_propTypes.default.any.isRequired),
|