@elastic/eui 93.5.2 → 93.6.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/es/components/accessibility/screen_reader_only/screen_reader_only.js +9 -8
- package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
- package/es/components/accessibility/skip_link/skip_link.js +2 -3
- package/es/components/aspect_ratio/aspect_ratio.js +16 -14
- package/es/components/avatar/avatar.js +41 -42
- package/es/components/avatar/avatar.styles.js +1 -1
- package/es/components/badge/badge.js +4 -4
- package/es/components/badge/badge_group/badge_group.js +3 -4
- package/es/components/badge/beta_badge/beta_badge.js +2 -3
- package/es/components/badge/notification_badge/badge_notification.js +3 -4
- package/es/components/bottom_bar/bottom_bar.js +8 -18
- package/es/components/bottom_bar/bottom_bar.styles.js +3 -2
- package/es/components/breadcrumbs/_breadcrumb_content.js +8 -11
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +17 -4
- package/es/components/breadcrumbs/breadcrumbs.js +4 -3
- package/es/components/button/button_display/_button_display_content.js +28 -30
- package/es/components/button/button_group/button_group_button.js +5 -6
- package/es/components/button/button_group/button_group_button.styles.js +21 -10
- package/es/components/call_out/call_out.js +45 -42
- package/es/components/call_out/call_out.styles.js +4 -4
- package/es/components/code/code_block_annotations.js +7 -6
- package/es/components/code/code_block_annotations.style.js +2 -1
- package/es/components/collapsible_nav/collapsible_nav.js +2 -3
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +4 -4
- package/es/components/collapsible_nav_beta/collapsible_nav_body_footer.js +2 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +2 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +2 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +3 -4
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +2 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +2 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +2 -3
- package/es/components/color_picker/color_palette_picker/color_palette_picker.js +1 -0
- package/es/components/combo_box/combo_box.js +22 -16
- package/es/components/comment_list/comment_event.js +4 -5
- package/es/components/context_menu/context_menu.js +6 -7
- package/es/components/context_menu/context_menu_item.js +2 -3
- package/es/components/context_menu/context_menu_panel.js +5 -5
- package/es/components/description_list/description_list.js +14 -16
- package/es/components/description_list/description_list_description.js +2 -3
- package/es/components/description_list/description_list_title.js +2 -3
- package/es/components/empty_prompt/empty_prompt.js +2 -5
- package/es/components/flyout/_flyout_close_button.js +45 -0
- package/es/components/flyout/_flyout_close_button.styles.js +27 -0
- package/es/components/flyout/flyout.js +77 -64
- package/es/components/flyout/flyout.styles.js +3 -17
- package/es/components/flyout/flyout_body.js +5 -8
- package/es/components/flyout/flyout_body.styles.js +2 -1
- package/es/components/flyout/flyout_footer.js +3 -5
- package/es/components/flyout/flyout_header.js +2 -3
- package/es/components/flyout/flyout_resizable.js +2 -3
- package/es/components/form/super_select/super_select.js +33 -22
- package/es/components/form/super_select/super_select_control.js +39 -5
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +4 -3
- package/es/components/horizontal_rule/horizontal_rule.js +3 -18
- package/es/components/loading/loading_chart.js +16 -21
- package/es/components/loading/loading_chart.styles.js +28 -10
- package/es/components/loading/loading_elastic.js +3 -5
- package/es/components/loading/loading_elastic.styles.js +2 -4
- package/es/components/loading/loading_logo.js +6 -9
- package/es/components/loading/loading_logo.styles.js +1 -6
- package/es/components/loading/loading_spinner.js +5 -5
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/resizable_container/resizable_collapse_button.js +1 -2
- package/es/components/tabs/tab.js +3 -4
- package/es/components/tabs/tabs.js +2 -3
- package/eui.d.ts +71 -57
- package/i18ntokens.json +82 -100
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.js +8 -7
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
- package/lib/components/accessibility/skip_link/skip_link.js +1 -2
- package/lib/components/aspect_ratio/aspect_ratio.js +18 -14
- package/lib/components/avatar/avatar.js +42 -41
- package/lib/components/avatar/avatar.styles.js +1 -1
- package/lib/components/badge/badge.js +3 -3
- package/lib/components/badge/badge_group/badge_group.js +2 -3
- package/lib/components/badge/beta_badge/beta_badge.js +1 -2
- package/lib/components/badge/notification_badge/badge_notification.js +2 -3
- package/lib/components/bottom_bar/bottom_bar.js +10 -20
- package/lib/components/bottom_bar/bottom_bar.styles.js +3 -2
- package/lib/components/breadcrumbs/_breadcrumb_content.js +8 -11
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +16 -3
- package/lib/components/breadcrumbs/breadcrumbs.js +4 -3
- package/lib/components/button/button_display/_button_display_content.js +30 -29
- package/lib/components/button/button_group/button_group_button.js +3 -4
- package/lib/components/button/button_group/button_group_button.styles.js +22 -12
- package/lib/components/call_out/call_out.js +43 -40
- package/lib/components/call_out/call_out.styles.js +6 -6
- package/lib/components/code/code_block_annotations.js +6 -5
- package/lib/components/code/code_block_annotations.style.js +2 -1
- package/lib/components/collapsible_nav/collapsible_nav.js +1 -2
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +3 -3
- package/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.js +1 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +1 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -3
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +1 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +1 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +1 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +1 -2
- package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +1 -0
- package/lib/components/combo_box/combo_box.js +22 -16
- package/lib/components/comment_list/comment_event.js +3 -4
- package/lib/components/context_menu/context_menu.js +5 -6
- package/lib/components/context_menu/context_menu_item.js +1 -2
- package/lib/components/context_menu/context_menu_panel.js +4 -4
- package/lib/components/description_list/description_list.js +13 -15
- package/lib/components/description_list/description_list_description.js +1 -2
- package/lib/components/description_list/description_list_title.js +1 -2
- package/lib/components/empty_prompt/empty_prompt.js +1 -4
- package/lib/components/flyout/_flyout_close_button.js +52 -0
- package/lib/components/flyout/_flyout_close_button.styles.js +34 -0
- package/lib/components/flyout/flyout.js +76 -63
- package/lib/components/flyout/flyout.styles.js +5 -19
- package/lib/components/flyout/flyout_body.js +4 -7
- package/lib/components/flyout/flyout_body.styles.js +2 -1
- package/lib/components/flyout/flyout_footer.js +2 -4
- package/lib/components/flyout/flyout_header.js +1 -2
- package/lib/components/flyout/flyout_resizable.js +1 -2
- package/lib/components/form/super_select/super_select.js +32 -21
- package/lib/components/form/super_select/super_select_control.js +38 -4
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +4 -3
- package/lib/components/horizontal_rule/horizontal_rule.js +2 -17
- package/lib/components/loading/loading_chart.js +14 -19
- package/lib/components/loading/loading_chart.styles.js +28 -10
- package/lib/components/loading/loading_elastic.js +2 -4
- package/lib/components/loading/loading_elastic.styles.js +2 -4
- package/lib/components/loading/loading_logo.js +5 -8
- package/lib/components/loading/loading_logo.styles.js +3 -9
- package/lib/components/loading/loading_spinner.js +5 -5
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
- package/lib/components/tabs/tab.js +2 -3
- package/lib/components/tabs/tabs.js +1 -2
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.js +8 -7
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
- package/optimize/es/components/accessibility/skip_link/skip_link.js +2 -3
- package/optimize/es/components/aspect_ratio/aspect_ratio.js +16 -14
- package/optimize/es/components/avatar/avatar.js +39 -40
- package/optimize/es/components/avatar/avatar.styles.js +1 -1
- package/optimize/es/components/badge/badge.js +4 -4
- package/optimize/es/components/badge/badge_group/badge_group.js +3 -4
- package/optimize/es/components/badge/beta_badge/beta_badge.js +2 -3
- package/optimize/es/components/badge/notification_badge/badge_notification.js +3 -4
- package/optimize/es/components/bottom_bar/bottom_bar.js +6 -16
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +3 -2
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +7 -10
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +17 -4
- package/optimize/es/components/button/button_display/_button_display_content.js +28 -30
- package/optimize/es/components/button/button_group/button_group_button.js +5 -6
- package/optimize/es/components/button/button_group/button_group_button.styles.js +13 -10
- package/optimize/es/components/call_out/call_out.js +45 -42
- package/optimize/es/components/call_out/call_out.styles.js +4 -4
- package/optimize/es/components/code/code_block_annotations.js +7 -6
- package/optimize/es/components/code/code_block_annotations.style.js +2 -1
- package/optimize/es/components/collapsible_nav/collapsible_nav.js +2 -3
- package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +2 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +4 -4
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_body_footer.js +2 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +2 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +2 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +3 -4
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +2 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +2 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +2 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +2 -3
- package/optimize/es/components/combo_box/combo_box.js +22 -16
- package/optimize/es/components/comment_list/comment_event.js +4 -5
- package/optimize/es/components/context_menu/context_menu.js +6 -7
- package/optimize/es/components/context_menu/context_menu_item.js +2 -3
- package/optimize/es/components/context_menu/context_menu_panel.js +5 -5
- package/optimize/es/components/description_list/description_list.js +14 -16
- package/optimize/es/components/description_list/description_list_description.js +2 -3
- package/optimize/es/components/description_list/description_list_title.js +2 -3
- package/optimize/es/components/empty_prompt/empty_prompt.js +2 -5
- package/optimize/es/components/flyout/_flyout_close_button.js +44 -0
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +27 -0
- package/optimize/es/components/flyout/flyout.js +57 -64
- package/optimize/es/components/flyout/flyout.styles.js +3 -17
- package/optimize/es/components/flyout/flyout_body.js +5 -8
- package/optimize/es/components/flyout/flyout_body.styles.js +2 -1
- package/optimize/es/components/flyout/flyout_footer.js +3 -5
- package/optimize/es/components/flyout/flyout_header.js +2 -3
- package/optimize/es/components/flyout/flyout_resizable.js +2 -3
- package/optimize/es/components/form/super_select/super_select.js +32 -22
- package/optimize/es/components/form/super_select/super_select_control.js +34 -5
- package/optimize/es/components/horizontal_rule/horizontal_rule.js +3 -15
- package/optimize/es/components/loading/loading_chart.js +16 -21
- package/optimize/es/components/loading/loading_chart.styles.js +28 -10
- package/optimize/es/components/loading/loading_elastic.js +3 -5
- package/optimize/es/components/loading/loading_elastic.styles.js +2 -4
- package/optimize/es/components/loading/loading_logo.js +6 -9
- package/optimize/es/components/loading/loading_logo.styles.js +1 -6
- package/optimize/es/components/loading/loading_spinner.js +5 -5
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +1 -2
- package/optimize/es/components/tabs/tab.js +3 -4
- package/optimize/es/components/tabs/tabs.js +2 -3
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.js +7 -6
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +1 -2
- package/optimize/lib/components/aspect_ratio/aspect_ratio.js +19 -14
- package/optimize/lib/components/avatar/avatar.js +41 -39
- package/optimize/lib/components/avatar/avatar.styles.js +1 -1
- package/optimize/lib/components/badge/badge.js +3 -3
- package/optimize/lib/components/badge/badge_group/badge_group.js +2 -3
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -2
- package/optimize/lib/components/badge/notification_badge/badge_notification.js +2 -3
- package/optimize/lib/components/bottom_bar/bottom_bar.js +8 -18
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +3 -2
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +7 -10
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +16 -3
- package/optimize/lib/components/button/button_display/_button_display_content.js +30 -29
- package/optimize/lib/components/button/button_group/button_group_button.js +3 -4
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +15 -12
- package/optimize/lib/components/call_out/call_out.js +43 -40
- package/optimize/lib/components/call_out/call_out.styles.js +6 -6
- package/optimize/lib/components/code/code_block_annotations.js +6 -5
- package/optimize/lib/components/code/code_block_annotations.style.js +2 -1
- package/optimize/lib/components/collapsible_nav/collapsible_nav.js +1 -2
- package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +3 -3
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_body_footer.js +1 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +1 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -3
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +1 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +1 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +1 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +1 -2
- package/optimize/lib/components/combo_box/combo_box.js +22 -16
- package/optimize/lib/components/comment_list/comment_event.js +3 -4
- package/optimize/lib/components/context_menu/context_menu.js +5 -6
- package/optimize/lib/components/context_menu/context_menu_item.js +1 -2
- package/optimize/lib/components/context_menu/context_menu_panel.js +4 -4
- package/optimize/lib/components/description_list/description_list.js +13 -15
- package/optimize/lib/components/description_list/description_list_description.js +1 -2
- package/optimize/lib/components/description_list/description_list_title.js +1 -2
- package/optimize/lib/components/empty_prompt/empty_prompt.js +1 -4
- package/optimize/lib/components/flyout/_flyout_close_button.js +51 -0
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +34 -0
- package/optimize/lib/components/flyout/flyout.js +55 -62
- package/optimize/lib/components/flyout/flyout.styles.js +5 -19
- package/optimize/lib/components/flyout/flyout_body.js +4 -7
- package/optimize/lib/components/flyout/flyout_body.styles.js +2 -1
- package/optimize/lib/components/flyout/flyout_footer.js +2 -4
- package/optimize/lib/components/flyout/flyout_header.js +1 -2
- package/optimize/lib/components/flyout/flyout_resizable.js +1 -2
- package/optimize/lib/components/form/super_select/super_select.js +31 -21
- package/optimize/lib/components/form/super_select/super_select_control.js +33 -4
- package/optimize/lib/components/horizontal_rule/horizontal_rule.js +2 -14
- package/optimize/lib/components/loading/loading_chart.js +14 -19
- package/optimize/lib/components/loading/loading_chart.styles.js +28 -10
- package/optimize/lib/components/loading/loading_elastic.js +2 -4
- package/optimize/lib/components/loading/loading_elastic.styles.js +2 -4
- package/optimize/lib/components/loading/loading_logo.js +5 -8
- package/optimize/lib/components/loading/loading_logo.styles.js +3 -9
- package/optimize/lib/components/loading/loading_spinner.js +5 -5
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
- package/optimize/lib/components/tabs/tab.js +2 -3
- package/optimize/lib/components/tabs/tabs.js +1 -2
- package/package.json +1 -1
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.js +8 -7
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -4
- package/test-env/components/accessibility/skip_link/skip_link.js +1 -2
- package/test-env/components/aspect_ratio/aspect_ratio.js +19 -14
- package/test-env/components/avatar/avatar.js +41 -39
- package/test-env/components/avatar/avatar.styles.js +1 -1
- package/test-env/components/badge/badge.js +3 -3
- package/test-env/components/badge/badge_group/badge_group.js +2 -3
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -2
- package/test-env/components/badge/notification_badge/badge_notification.js +2 -3
- package/test-env/components/bottom_bar/bottom_bar.js +10 -20
- package/test-env/components/bottom_bar/bottom_bar.styles.js +3 -2
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +8 -11
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +16 -3
- package/test-env/components/breadcrumbs/breadcrumbs.js +4 -3
- package/test-env/components/button/button_display/_button_display_content.js +30 -29
- package/test-env/components/button/button_group/button_group_button.js +3 -4
- package/test-env/components/button/button_group/button_group_button.styles.js +15 -12
- package/test-env/components/call_out/call_out.js +43 -40
- package/test-env/components/call_out/call_out.styles.js +6 -6
- package/test-env/components/code/code_block_annotations.js +6 -5
- package/test-env/components/code/code_block_annotations.style.js +2 -1
- package/test-env/components/collapsible_nav/collapsible_nav.js +1 -2
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +3 -3
- package/test-env/components/collapsible_nav_beta/collapsible_nav_body_footer.js +1 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_button/collapsible_nav_button.js +1 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_group/collapsible_nav_group.js +1 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +2 -3
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +1 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_accordion.js +1 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_group.js +1 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +1 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_link.js +1 -2
- package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +1 -0
- package/test-env/components/combo_box/combo_box.js +22 -16
- package/test-env/components/comment_list/comment_event.js +3 -4
- package/test-env/components/context_menu/context_menu.js +5 -6
- package/test-env/components/context_menu/context_menu_item.js +1 -2
- package/test-env/components/context_menu/context_menu_panel.js +4 -4
- package/test-env/components/description_list/description_list.js +13 -15
- package/test-env/components/description_list/description_list_description.js +1 -2
- package/test-env/components/description_list/description_list_title.js +1 -2
- package/test-env/components/empty_prompt/empty_prompt.js +1 -4
- package/test-env/components/flyout/_flyout_close_button.js +51 -0
- package/test-env/components/flyout/_flyout_close_button.styles.js +34 -0
- package/test-env/components/flyout/flyout.styles.js +5 -19
- package/test-env/components/flyout/flyout_body.js +4 -7
- package/test-env/components/flyout/flyout_body.styles.js +2 -1
- package/test-env/components/flyout/flyout_footer.js +2 -4
- package/test-env/components/flyout/flyout_header.js +1 -2
- package/test-env/components/flyout/flyout_resizable.js +1 -2
- package/test-env/components/form/super_select/super_select.js +32 -21
- package/test-env/components/form/super_select/super_select_control.js +33 -4
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +4 -3
- package/test-env/components/horizontal_rule/horizontal_rule.js +2 -14
- package/test-env/components/loading/loading_chart.js +14 -19
- package/test-env/components/loading/loading_chart.styles.js +28 -10
- package/test-env/components/loading/loading_elastic.js +2 -4
- package/test-env/components/loading/loading_elastic.styles.js +2 -4
- package/test-env/components/loading/loading_logo.js +5 -8
- package/test-env/components/loading/loading_logo.styles.js +3 -9
- package/test-env/components/loading/loading_spinner.js +5 -5
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
- package/test-env/components/tabs/tab.js +2 -3
- package/test-env/components/tabs/tabs.js +1 -2
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.POSITIONS = exports.PADDING_SIZES = exports.EuiBottomBar = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -18,7 +18,6 @@ var _i18n = require("../i18n");
|
|
|
18
18
|
var _resize_observer = require("../observer/resize_observer");
|
|
19
19
|
var _portal = require("../portal");
|
|
20
20
|
var _bottom_bar = require("./bottom_bar.styles");
|
|
21
|
-
var _provider = require("../../services/theme/provider");
|
|
22
21
|
var _react2 = require("@emotion/react");
|
|
23
22
|
var _excluded = ["position", "paddingSize", "affordForDisplacement", "children", "className", "bodyClassName", "landmarkHeading", "usePortal", "left", "right", "bottom", "top", "style"];
|
|
24
23
|
/*
|
|
@@ -32,14 +31,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
32
31
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
32
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
34
33
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
none: null,
|
|
38
|
-
s: 'euiBottomBar--paddingSmall',
|
|
39
|
-
m: 'euiBottomBar--paddingMedium',
|
|
40
|
-
l: 'euiBottomBar--paddingLarge'
|
|
41
|
-
};
|
|
42
|
-
exports.paddingSizeToClassNameMap = paddingSizeToClassNameMap;
|
|
34
|
+
var PADDING_SIZES = ['none', 's', 'm', 'l'];
|
|
35
|
+
exports.PADDING_SIZES = PADDING_SIZES;
|
|
43
36
|
var POSITIONS = ['static', 'fixed', 'sticky'];
|
|
44
37
|
exports.POSITIONS = POSITIONS;
|
|
45
38
|
var _EuiBottomBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
@@ -64,8 +57,7 @@ var _EuiBottomBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
64
57
|
top = _ref.top,
|
|
65
58
|
style = _ref.style,
|
|
66
59
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
67
|
-
var
|
|
68
|
-
var styles = (0, _bottom_bar.euiBottomBarStyles)(euiTheme);
|
|
60
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_bottom_bar.euiBottomBarStyles);
|
|
69
61
|
|
|
70
62
|
// Force some props if `fixed` position, but not if the user has supplied these
|
|
71
63
|
affordForDisplacement = position !== 'fixed' ? false : affordForDisplacement;
|
|
@@ -93,10 +85,8 @@ var _EuiBottomBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
93
85
|
}
|
|
94
86
|
};
|
|
95
87
|
}, [affordForDisplacement, usePortal, dimensions, bodyClassName]);
|
|
96
|
-
var classes = (0, _classnames.default)('euiBottomBar', "euiBottomBar--".concat(position),
|
|
97
|
-
var cssStyles = [styles.euiBottomBar, styles[position], styles[paddingSize]
|
|
98
|
-
position: position
|
|
99
|
-
}];
|
|
88
|
+
var classes = (0, _classnames.default)('euiBottomBar', "euiBottomBar--".concat(position), className);
|
|
89
|
+
var cssStyles = [styles.euiBottomBar, styles[position], styles[paddingSize]];
|
|
100
90
|
var newStyle = _objectSpread({
|
|
101
91
|
left: left,
|
|
102
92
|
right: right,
|
|
@@ -135,8 +125,8 @@ var _EuiBottomBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
135
125
|
});
|
|
136
126
|
var EuiBottomBar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
137
127
|
var BottomBar = _EuiBottomBar;
|
|
138
|
-
return (0, _react2.jsx)(
|
|
139
|
-
colorMode:
|
|
128
|
+
return (0, _react2.jsx)(_services.EuiThemeProvider, {
|
|
129
|
+
colorMode: "dark",
|
|
140
130
|
wrapperProps: {
|
|
141
131
|
cloneElement: true
|
|
142
132
|
}
|
|
@@ -26,8 +26,9 @@ var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
|
|
|
26
26
|
// `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
|
|
27
27
|
euiBottomBar: /*#__PURE__*/(0, _react.css)((0, _mixins.euiShadowFlat)(euiThemeContext), " background:", (0, _services.shade)(euiTheme.colors.lightestShade, 0.5), ";", _global_styling.euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
|
|
28
28
|
static: /*#__PURE__*/(0, _react.css)(";label:static;"),
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// Default
|
|
30
|
+
fixed: /*#__PURE__*/(0, _react.css)("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
|
|
31
|
+
sticky: /*#__PURE__*/(0, _react.css)("position:sticky;z-index:", Number(euiTheme.levels.header) - 2, ";;label:sticky;"),
|
|
31
32
|
// Padding
|
|
32
33
|
s: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.s, ";;label:s;"),
|
|
33
34
|
m: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.base, ";;label:m;"),
|
|
@@ -14,7 +14,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
var _services = require("../../services");
|
|
16
16
|
var _inner_text = require("../inner_text");
|
|
17
|
-
var _text = require("../text");
|
|
18
17
|
var _link = require("../link");
|
|
19
18
|
var _popover = require("../popover");
|
|
20
19
|
var _icon = require("../icon");
|
|
@@ -50,10 +49,11 @@ var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
|
|
|
50
49
|
highlightLastBreadcrumb = _ref.highlightLastBreadcrumb,
|
|
51
50
|
truncateLastBreadcrumb = _ref.truncateLastBreadcrumb,
|
|
52
51
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
52
|
+
var isApplication = type === 'application';
|
|
53
53
|
var classes = (0, _classnames.default)('euiBreadcrumb__content', className);
|
|
54
54
|
var styles = (0, _services.useEuiMemoizedStyles)(_breadcrumb_content.euiBreadcrumbContentStyles);
|
|
55
55
|
var cssStyles = [styles.euiBreadcrumb__content, styles[type]];
|
|
56
|
-
if (
|
|
56
|
+
if (isApplication) {
|
|
57
57
|
if (isOnlyBreadcrumb) {
|
|
58
58
|
cssStyles.push(styles.applicationStyles.onlyChild);
|
|
59
59
|
} else if (isFirstBreadcrumb) {
|
|
@@ -65,9 +65,9 @@ var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
|
|
|
65
65
|
var truncationStyles = [truncate && !truncateLastBreadcrumb && styles.isTruncated, truncateLastBreadcrumb && styles.isTruncatedLast];
|
|
66
66
|
var isBreadcrumbWithPopover = !!popoverContent;
|
|
67
67
|
var isInteractiveBreadcrumb = href || onClick;
|
|
68
|
-
var linkColor = color ||
|
|
69
|
-
var plainTextColor = highlightLastBreadcrumb ? 'default' : 'subdued'; // Does not inherit `color` prop
|
|
68
|
+
var linkColor = color || 'subdued';
|
|
70
69
|
var ariaCurrent = highlightLastBreadcrumb ? 'page' : undefined;
|
|
70
|
+
var interactionStyles = (isInteractiveBreadcrumb || isBreadcrumbWithPopover) && !isApplication && styles.isInteractive;
|
|
71
71
|
return (0, _react2.jsx)(_inner_text.EuiInnerText, null, function (ref, innerText) {
|
|
72
72
|
var title = innerText === '' ? undefined : innerText;
|
|
73
73
|
var baseProps = {
|
|
@@ -75,13 +75,13 @@ var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
|
|
|
75
75
|
title: title,
|
|
76
76
|
'aria-current': ariaCurrent,
|
|
77
77
|
className: classes,
|
|
78
|
-
css: [].concat(cssStyles, truncationStyles)
|
|
78
|
+
css: [].concat(cssStyles, truncationStyles, [interactionStyles])
|
|
79
79
|
};
|
|
80
80
|
if (isBreadcrumbWithPopover) {
|
|
81
81
|
var _ = baseProps.css,
|
|
82
82
|
popoverButtonProps = (0, _objectWithoutProperties2.default)(baseProps, _excluded2);
|
|
83
83
|
return (0, _react2.jsx)(EuiBreadcrumbPopover, (0, _extends2.default)({}, popoverButtonProps, {
|
|
84
|
-
breadcrumbCss: cssStyles,
|
|
84
|
+
breadcrumbCss: [].concat(cssStyles, [interactionStyles]),
|
|
85
85
|
truncationCss: truncationStyles,
|
|
86
86
|
isLastBreadcrumb: isLastBreadcrumb,
|
|
87
87
|
type: type,
|
|
@@ -97,10 +97,7 @@ var EuiBreadcrumbContent = function EuiBreadcrumbContent(_ref) {
|
|
|
97
97
|
rel: rel
|
|
98
98
|
}, rest), text);
|
|
99
99
|
} else {
|
|
100
|
-
return (0, _react2.jsx)(
|
|
101
|
-
color: plainTextColor,
|
|
102
|
-
cloneElement: true
|
|
103
|
-
}, (0, _react2.jsx)("span", (0, _extends2.default)({}, baseProps, rest), text));
|
|
100
|
+
return (0, _react2.jsx)("span", (0, _extends2.default)({}, baseProps, rest), text);
|
|
104
101
|
}
|
|
105
102
|
});
|
|
106
103
|
};
|
|
@@ -7,6 +7,7 @@ exports.euiBreadcrumbPopoverStyles = exports.euiBreadcrumbContentStyles = void 0
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _color = require("../../services/color");
|
|
9
9
|
var _global_styling = require("../../global_styling");
|
|
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
|
|
@@ -19,17 +20,29 @@ var _global_styling = require("../../global_styling");
|
|
|
19
20
|
* Styles cast to inner <a>, <button>, <span> elements
|
|
20
21
|
*/
|
|
21
22
|
var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeContext) {
|
|
22
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
23
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
24
|
+
colorMode = euiThemeContext.colorMode;
|
|
25
|
+
|
|
26
|
+
// Reuse button colors for `type="application`" clickable breadcrumbs
|
|
27
|
+
var applicationButtonColors = (0, _button.euiButtonColor)(euiThemeContext, 'primary');
|
|
28
|
+
|
|
29
|
+
// Create custom darker gray colors for non-clickable application breadcrumbs
|
|
30
|
+
// The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
|
|
31
|
+
var applicationTextColors = {
|
|
32
|
+
backgroundColor: (0, _color.tintOrShade)(euiTheme.colors.darkestShade, colorMode === 'DARK' ? 0.7 : 0.85, colorMode),
|
|
33
|
+
color: (0, _color.tintOrShade)(euiTheme.colors.darkestShade, 0.2, colorMode)
|
|
34
|
+
};
|
|
23
35
|
return {
|
|
24
|
-
euiBreadcrumb__content: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.
|
|
36
|
+
euiBreadcrumb__content: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.subduedText, ";};label:euiBreadcrumb__content;"),
|
|
25
37
|
// Truncation styles
|
|
26
38
|
isTruncated: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)((0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
|
|
27
39
|
return x * 10;
|
|
28
40
|
})), ";;label:isTruncated;"),
|
|
29
41
|
isTruncatedLast: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)('none'), ";;label:isTruncatedLast;"),
|
|
42
|
+
isInteractive: /*#__PURE__*/(0, _react.css)("&:not(:disabled){text-decoration:underline;&[class*='euiLink-subdued']{&:hover,&:focus{color:", euiTheme.colors.text, ";}}};label:isInteractive;"),
|
|
30
43
|
// Types
|
|
31
44
|
page: /*#__PURE__*/(0, _react.css)("&:is(a):focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:is(button):focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'center'), ";};label:page;"),
|
|
32
|
-
application: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), "
|
|
45
|
+
application: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), " font-weight:", euiTheme.font.weight.medium, ";background-color:", applicationTextColors.backgroundColor, ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%,\n ", euiTheme.size.s, " 50%\n );color:", applicationTextColors.color, ";line-height:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.base), " &:is(a),&:is(button){background-color:", applicationButtonColors.backgroundColor, ";color:", applicationButtonColors.color, ";:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), " :focus-visible{border-radius:", euiTheme.border.radius.medium, ";clip-path:none;}}};label:application;"),
|
|
33
46
|
applicationStyles: {
|
|
34
47
|
onlyChild: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";clip-path:none;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.m), ";;label:onlyChild;"),
|
|
35
48
|
firstChild: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalBorderRadiusCSS)("".concat(euiTheme.border.radius.medium, " 0 0 ").concat(euiTheme.border.radius.medium), true), " clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%\n );", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.m), ";;label:firstChild;"),
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.ICON_SIZES = exports.ICON_SIDES = exports.EuiButtonDisplayContent = void 0;
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react =
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
13
|
var _services = require("../../../services");
|
|
12
14
|
var _loading = require("../../loading");
|
|
13
15
|
var _icon = require("../../icon");
|
|
14
16
|
var _button_display_content = require("./_button_display_content.styles");
|
|
15
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
16
17
|
var _react2 = require("@emotion/react");
|
|
17
18
|
var _excluded = ["children", "textProps", "isLoading", "isDisabled", "iconType", "iconSize", "iconSide"];
|
|
18
19
|
/*
|
|
@@ -22,6 +23,8 @@ var _excluded = ["children", "textProps", "isLoading", "isDisabled", "iconType",
|
|
|
22
23
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
23
24
|
* Side Public License, v 1.
|
|
24
25
|
*/
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
28
|
var ICON_SIZES = ['s', 'm'];
|
|
26
29
|
exports.ICON_SIZES = ICON_SIZES;
|
|
27
30
|
var ICON_SIDES = ['left', 'right'];
|
|
@@ -44,39 +47,37 @@ var EuiButtonDisplayContent = function EuiButtonDisplayContent(_ref) {
|
|
|
44
47
|
_ref$iconSide = _ref.iconSide,
|
|
45
48
|
iconSide = _ref$iconSide === void 0 ? 'left' : _ref$iconSide,
|
|
46
49
|
contentProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
47
|
-
var
|
|
48
|
-
var styles = (0, _button_display_content.euiButtonDisplayContentStyles)(theme);
|
|
49
|
-
var cssStyles = [styles.euiButtonDisplayContent];
|
|
50
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_button_display_content.euiButtonDisplayContentStyles);
|
|
50
51
|
|
|
51
52
|
// Add an icon to the button if one exists.
|
|
52
|
-
var icon
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
53
|
+
var icon = (0, _react.useMemo)(function () {
|
|
54
|
+
if (isLoading) {
|
|
55
|
+
// When the button is disabled the text gets gray
|
|
56
|
+
// and in some buttons the background gets a light gray
|
|
57
|
+
// for better contrast we want to change the border of the spinner
|
|
58
|
+
// to have the same color of the text. This way we ensure the borders
|
|
59
|
+
// are always visible. The default spinner color could be very light.
|
|
60
|
+
var loadingSpinnerColor = isDisabled ? {
|
|
61
|
+
border: 'currentcolor'
|
|
62
|
+
} : undefined;
|
|
63
|
+
return (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
|
|
64
|
+
size: iconSize,
|
|
65
|
+
color: loadingSpinnerColor
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (iconType) {
|
|
69
|
+
return (0, _react2.jsx)(_icon.EuiIcon, {
|
|
70
|
+
type: iconType,
|
|
71
|
+
size: iconSize,
|
|
72
|
+
color: "inherit" // forces the icon to inherit its parent color
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}, [iconType, iconSize, isLoading, isDisabled]);
|
|
75
76
|
var isText = typeof children === 'string';
|
|
76
77
|
var doNotRenderTextWrapper = textProps === false;
|
|
77
78
|
var renderTextWrapper = (isText || textProps) && !doNotRenderTextWrapper;
|
|
78
79
|
return (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
79
|
-
css:
|
|
80
|
+
css: styles.euiButtonDisplayContent
|
|
80
81
|
}, contentProps), iconSide === 'left' && icon, renderTextWrapper ? (0, _react2.jsx)("span", (0, _extends2.default)({}, textProps, {
|
|
81
82
|
className: (0, _classnames.default)('eui-textTruncate', textProps === null || textProps === void 0 ? void 0 : textProps.className)
|
|
82
83
|
}), children) : children, iconSide === 'right' && icon);
|
|
@@ -47,13 +47,12 @@ var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
|
|
|
47
47
|
var color = isDisabled ? 'disabled' : _color;
|
|
48
48
|
var display = isSelected ? 'fill' : isCompressed ? 'empty' : 'base';
|
|
49
49
|
var hasToolTip = !!toolTipContent;
|
|
50
|
-
var
|
|
50
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_button_group_button.euiButtonGroupButtonStyles);
|
|
51
|
+
var focusColorStyles = (0, _services.useEuiMemoizedStyles)(_button_group_button._compressedButtonFocusColors);
|
|
51
52
|
var buttonColorStyles = (0, _button.useEuiButtonColorCSS)({
|
|
52
53
|
display: display
|
|
53
54
|
})[color];
|
|
54
|
-
var
|
|
55
|
-
var styles = (0, _button_group_button.euiButtonGroupButtonStyles)(euiTheme);
|
|
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 && focusColorStyles];
|
|
55
|
+
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]];
|
|
57
56
|
var tooltipWrapperStyles = [styles.tooltipWrapper, !isCompressed && styles.uncompressed[size]];
|
|
58
57
|
var contentStyles = [styles.content.euiButtonGroupButton__content, isCompressed && styles.content.compressed];
|
|
59
58
|
var textStyles = [isIconOnly ? styles.text.euiButtonGroupButton__iconOnly : styles.text.euiButtonGroupButton__text];
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.euiButtonGroupButtonStyles = exports.
|
|
7
|
+
exports.euiButtonGroupButtonStyles = exports._compressedButtonFocusColors = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
7
10
|
var _react = require("@emotion/react");
|
|
8
11
|
var _services = require("../../../services");
|
|
9
12
|
var _global_styling = require("../../../global_styling");
|
|
10
13
|
var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
|
|
11
14
|
var _accessibility = require("../../accessibility");
|
|
12
15
|
var _form = require("../../form/form.styles");
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
18
|
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)."; } /*
|
|
14
19
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
15
20
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -50,7 +55,7 @@ var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeCon
|
|
|
50
55
|
iconOnly: /*#__PURE__*/(0, _react.css)("padding-inline:", euiTheme.size.s, ";;label:iconOnly;"),
|
|
51
56
|
// Sizes
|
|
52
57
|
uncompressed: {
|
|
53
|
-
uncompressed: /*#__PURE__*/(0, _react.css)("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";};label:uncompressed;"),
|
|
58
|
+
uncompressed: /*#__PURE__*/(0, _react.css)("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";};label:uncompressed;"),
|
|
54
59
|
get borders() {
|
|
55
60
|
var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
|
|
56
61
|
var selectedColor = (0, _services.transparentize)(euiTheme.colors.emptyShade, 0.2);
|
|
@@ -91,14 +96,12 @@ var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiThemeCon
|
|
|
91
96
|
};
|
|
92
97
|
};
|
|
93
98
|
exports.euiButtonGroupButtonStyles = euiButtonGroupButtonStyles;
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
var _compressedButtonFocusColors = function _compressedButtonFocusColors(euiThemeContext) {
|
|
100
|
+
var colors = [].concat((0, _toConsumableArray2.default)(_button.BUTTON_COLORS), ['disabled']);
|
|
101
|
+
return colors.reduce(function (acc, color) {
|
|
102
|
+
var _euiButtonFillColor = (0, _button.euiButtonFillColor)(euiThemeContext, color),
|
|
103
|
+
backgroundColor = _euiButtonFillColor.backgroundColor;
|
|
104
|
+
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;}}")));
|
|
105
|
+
}, {});
|
|
98
106
|
};
|
|
99
|
-
exports.
|
|
100
|
-
var _uncompressedButtonFocus = function _uncompressedButtonFocus(euiThemeContext) {
|
|
101
|
-
var euiTheme = euiThemeContext.euiTheme;
|
|
102
|
-
return /*#__PURE__*/(0, _react.css)("&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";}");
|
|
103
|
-
};
|
|
104
|
-
exports._uncompressedButtonFocus = _uncompressedButtonFocus;
|
|
107
|
+
exports._compressedButtonFocusColors = _compressedButtonFocusColors;
|
|
@@ -11,10 +11,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _services = require("../../services");
|
|
14
15
|
var _icon = require("../icon");
|
|
15
16
|
var _button = require("../button");
|
|
16
17
|
var _text = require("../text");
|
|
17
|
-
var _services = require("../../services");
|
|
18
18
|
var _panel = require("../panel");
|
|
19
19
|
var _spacer = require("../spacer");
|
|
20
20
|
var _title = require("../title");
|
|
@@ -48,51 +48,48 @@ var EuiCallOut = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
48
48
|
heading = _ref$heading === void 0 ? 'p' : _ref$heading,
|
|
49
49
|
onDismiss = _ref.onDismiss,
|
|
50
50
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
51
|
-
var
|
|
52
|
-
var styles = (0, _call_out.euiCallOutStyles)(theme);
|
|
51
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_call_out.euiCallOutStyles);
|
|
53
52
|
var cssStyles = [styles.euiCallOut, onDismiss && styles.hasDismissButton.hasDimissButton, onDismiss && styles.hasDismissButton[size]];
|
|
54
|
-
var cssDismissButtonStyles = [styles.dismissButton.euiCallOut__dismissButton, styles.dismissButton[size]];
|
|
55
|
-
var headerStyles = (0, _call_out.euiCallOutHeadingStyles)(theme);
|
|
56
|
-
var cssHeaderStyles = [headerStyles.euiCallOutHeader, headerStyles[color]];
|
|
57
53
|
var classes = (0, _classnames.default)('euiCallOut', (0, _defineProperty2.default)({}, "euiCallOut--".concat(color), color), className);
|
|
58
|
-
var dismissButton =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
54
|
+
var dismissButton = (0, _react.useMemo)(function () {
|
|
55
|
+
if (!onDismiss) return;
|
|
56
|
+
var cssStyles = [styles.dismissButton.euiCallOut__dismissButton, styles.dismissButton[size]];
|
|
57
|
+
return (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
58
|
+
token: "euiCallOut.dismissAriaLabel",
|
|
59
|
+
default: "Dismiss this callout"
|
|
60
|
+
}, function (dismissAriaLabel) {
|
|
61
|
+
return (0, _react2.jsx)(_button.EuiButtonIcon, {
|
|
62
|
+
iconType: "cross",
|
|
63
|
+
onClick: onDismiss,
|
|
64
|
+
"aria-label": dismissAriaLabel,
|
|
65
|
+
css: cssStyles,
|
|
66
|
+
color: color,
|
|
67
|
+
"data-test-subj": "euiDismissCalloutButton"
|
|
68
|
+
});
|
|
69
69
|
});
|
|
70
|
-
});
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
}, [onDismiss, styles, color, size]);
|
|
71
|
+
var headerStyles = (0, _services.useEuiMemoizedStyles)(_call_out.euiCallOutHeaderStyles);
|
|
72
|
+
var header = (0, _react.useMemo)(function () {
|
|
73
|
+
if (!title) return;
|
|
74
|
+
var H = heading;
|
|
75
|
+
var cssStyles = [headerStyles.euiCallOutHeader, headerStyles[color]];
|
|
76
|
+
return (0, _react2.jsx)(_title.EuiTitle, {
|
|
77
|
+
size: size === 's' ? 'xxs' : 'xs',
|
|
78
|
+
css: cssStyles
|
|
79
|
+
}, (0, _react2.jsx)(H, {
|
|
80
|
+
className: "euiCallOutHeader__title"
|
|
81
|
+
}, iconType && (0, _react2.jsx)(_icon.EuiIcon, {
|
|
82
|
+
css: headerStyles.euiCallOut__icon,
|
|
83
|
+
type: iconType,
|
|
84
|
+
size: "m",
|
|
85
|
+
"aria-hidden": "true",
|
|
86
|
+
color: "inherit"
|
|
87
|
+
}), title));
|
|
88
|
+
}, [title, heading, iconType, size, color, headerStyles]);
|
|
85
89
|
var optionalChildren = children && (0, _react2.jsx)(_text.EuiText, {
|
|
86
90
|
size: size === 's' ? 'xs' : 's',
|
|
87
91
|
color: "default"
|
|
88
92
|
}, children);
|
|
89
|
-
|
|
90
|
-
// Note: the DOM position of the dismiss button matters to screen reader users.
|
|
91
|
-
// We generally want them to have some context of _what_ they're dismissing,
|
|
92
|
-
// instead of navigating to the dismiss button first before the callout content
|
|
93
|
-
var calloutContent = header && optionalChildren ? (0, _react2.jsx)(_react.default.Fragment, null, header, dismissButton, (0, _react2.jsx)(_spacer.EuiSpacer, {
|
|
94
|
-
size: "s"
|
|
95
|
-
}), optionalChildren) : (0, _react2.jsx)(_react.default.Fragment, null, header || optionalChildren, dismissButton);
|
|
96
93
|
return (0, _react2.jsx)(_panel.EuiPanel, (0, _extends2.default)({
|
|
97
94
|
borderRadius: "none",
|
|
98
95
|
color: color,
|
|
@@ -101,7 +98,13 @@ var EuiCallOut = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
101
98
|
className: classes,
|
|
102
99
|
panelRef: ref,
|
|
103
100
|
grow: false
|
|
104
|
-
}, rest),
|
|
101
|
+
}, rest),
|
|
102
|
+
// Note: the DOM position of the dismiss button matters to screen reader users.
|
|
103
|
+
// We generally want them to have some context of _what_ they're dismissing,
|
|
104
|
+
// instead of navigating to the dismiss button first before the callout content
|
|
105
|
+
header && optionalChildren ? (0, _react2.jsx)(_react.default.Fragment, null, header, dismissButton, (0, _react2.jsx)(_spacer.EuiSpacer, {
|
|
106
|
+
size: "s"
|
|
107
|
+
}), optionalChildren) : (0, _react2.jsx)(_react.default.Fragment, null, header || optionalChildren, dismissButton));
|
|
105
108
|
});
|
|
106
109
|
exports.EuiCallOut = EuiCallOut;
|
|
107
110
|
EuiCallOut.displayName = 'EuiCallOut';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.euiCallOutStyles = exports.
|
|
6
|
+
exports.euiCallOutStyles = exports.euiCallOutHeaderStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
9
|
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)."; } /*
|
|
@@ -45,12 +45,11 @@ var euiCallOutStyles = function euiCallOutStyles(_ref3) {
|
|
|
45
45
|
euiCallOut__dismissButton: _ref,
|
|
46
46
|
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('right', euiTheme.size.xs), ";;label:s;"),
|
|
47
47
|
m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('right', euiTheme.size.s), ";;label:m;")
|
|
48
|
-
}
|
|
49
|
-
euiCallOut__icon: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('top', '-1px'), " ", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), ";;label:euiCallOut__icon;")
|
|
48
|
+
}
|
|
50
49
|
};
|
|
51
50
|
};
|
|
52
51
|
exports.euiCallOutStyles = euiCallOutStyles;
|
|
53
|
-
var
|
|
52
|
+
var euiCallOutHeaderStyles = function euiCallOutHeaderStyles(_ref4) {
|
|
54
53
|
var euiTheme = _ref4.euiTheme;
|
|
55
54
|
return {
|
|
56
55
|
euiCallOutHeader: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.logicalCSS)('margin-bottom', '0 !important'
|
|
@@ -59,7 +58,8 @@ var euiCallOutHeadingStyles = function euiCallOutHeadingStyles(_ref4) {
|
|
|
59
58
|
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.primaryText, ";;label:primary;"),
|
|
60
59
|
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.successText, ";;label:success;"),
|
|
61
60
|
warning: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.warningText, ";;label:warning;"),
|
|
62
|
-
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.dangerText, ";;label:danger;")
|
|
61
|
+
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.dangerText, ";;label:danger;"),
|
|
62
|
+
euiCallOut__icon: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('top', '-1px'), " ", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), ";;label:euiCallOut__icon;")
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
|
-
exports.
|
|
65
|
+
exports.euiCallOutHeaderStyles = euiCallOutHeaderStyles;
|
|
@@ -11,10 +11,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _services = require("../../services");
|
|
14
|
+
var _button = require("../../themes/amsterdam/global_styling/mixins/button");
|
|
14
15
|
var _i18n = require("../i18n");
|
|
15
16
|
var _popover = require("../popover");
|
|
16
17
|
var _icon = require("../icon");
|
|
17
|
-
var _button = require("../../themes/amsterdam/global_styling/mixins/button");
|
|
18
18
|
var _code_block_annotations = require("./code_block_annotations.style");
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
20
20
|
var _excluded = ["lineNumber", "children"];
|
|
@@ -38,13 +38,14 @@ var EuiCodeBlockAnnotation = function EuiCodeBlockAnnotation(_ref) {
|
|
|
38
38
|
var ariaLabel = (0, _i18n.useEuiI18n)('euiCodeBlockAnnotations.ariaLabel', 'Click to view a code annotation for line {lineNumber}', {
|
|
39
39
|
lineNumber: lineNumber
|
|
40
40
|
});
|
|
41
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_code_block_annotations.euiCodeBlockAnnotationsStyles);
|
|
42
|
+
var buttonIconFocusStyle = (0, _button.useEuiButtonFocusCSS)();
|
|
43
|
+
var cssButtonIconStyles = [styles.euiCodeBlockAnnotation__buttonIcon, buttonIconFocusStyle];
|
|
41
44
|
var _useEuiTheme = (0, _services.useEuiTheme)(),
|
|
42
45
|
euiTheme = _useEuiTheme.euiTheme,
|
|
43
46
|
colorMode = _useEuiTheme.colorMode;
|
|
44
|
-
var styles = (0, _code_block_annotations.euiCodeBlockAnnotationsStyles)(euiTheme);
|
|
45
|
-
var buttonIconFocusStyle = (0, _button.useEuiButtonFocusCSS)();
|
|
46
|
-
var cssButtonIconStyles = [styles.euiCodeBlockAnnotation__buttonIcon, buttonIconFocusStyle];
|
|
47
47
|
var isDarkMode = colorMode === 'DARK';
|
|
48
|
+
var iconColor = isDarkMode ? euiTheme.colors.ink : 'ghost';
|
|
48
49
|
return (0, _react2.jsx)(_popover.EuiPopover, (0, _extends2.default)({
|
|
49
50
|
css: styles.euiCodeBlockAnnotation
|
|
50
51
|
}, rest, {
|
|
@@ -62,7 +63,7 @@ var EuiCodeBlockAnnotation = function EuiCodeBlockAnnotation(_ref) {
|
|
|
62
63
|
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
63
64
|
type: AnnotationInfoIcon,
|
|
64
65
|
size: "s",
|
|
65
|
-
color:
|
|
66
|
+
color: iconColor
|
|
66
67
|
})),
|
|
67
68
|
zIndex: Number(euiTheme.levels.mask) + 1 // Ensure fullscreen annotation popovers sit above the mask
|
|
68
69
|
,
|
|
@@ -14,7 +14,8 @@ var _global_styling = require("../../global_styling");
|
|
|
14
14
|
* Side Public License, v 1.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
var euiCodeBlockAnnotationsStyles = function euiCodeBlockAnnotationsStyles(
|
|
17
|
+
var euiCodeBlockAnnotationsStyles = function euiCodeBlockAnnotationsStyles(_ref) {
|
|
18
|
+
var euiTheme = _ref.euiTheme;
|
|
18
19
|
var buttonIconSize = (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
|
|
19
20
|
return x - 1.5;
|
|
20
21
|
});
|
|
@@ -72,8 +72,7 @@ var EuiCollapsibleNav = function EuiCollapsibleNav(_ref) {
|
|
|
72
72
|
var navIsDocked = isDocked && windowIsLargeEnoughToPush;
|
|
73
73
|
var flyoutType = navIsDocked ? 'push' : 'overlay';
|
|
74
74
|
var classes = (0, _classnames.default)('euiCollapsibleNav', className);
|
|
75
|
-
var
|
|
76
|
-
var styles = (0, _collapsible_nav.euiCollapsibleNavStyles)(euiTheme);
|
|
75
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_collapsible_nav.euiCollapsibleNavStyles);
|
|
77
76
|
var cssStyles = [styles.euiCollapsibleNav, styles[flyoutType]];
|
|
78
77
|
|
|
79
78
|
// Show a trigger button if one was passed but
|
package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js
CHANGED
|
@@ -48,8 +48,7 @@ var EuiCollapsibleNavGroup = function EuiCollapsibleNavGroup(_ref) {
|
|
|
48
48
|
conditionalId: id
|
|
49
49
|
});
|
|
50
50
|
var titleID = "".concat(groupID, "__title");
|
|
51
|
-
var
|
|
52
|
-
var styles = (0, _collapsible_nav_group.euiCollapsibleNavGroupStyles)(euiTheme);
|
|
51
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_collapsible_nav_group.euiCollapsibleNavGroupStyles);
|
|
53
52
|
var cssStyles = [styles.euiCollapsibleNavGroup, isCollapsible ? styles.isCollapsible : styles.notCollapsible, background && styles[background]];
|
|
54
53
|
var classes = (0, _classnames.default)('euiCollapsibleNavGroup', className);
|
|
55
54
|
|
|
@@ -51,8 +51,8 @@ var _EuiCollapsibleNavBeta = function _EuiCollapsibleNavBeta(_ref) {
|
|
|
51
51
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
52
52
|
var _useEuiThemeCSSVariab = (0, _services.useEuiThemeCSSVariables)(),
|
|
53
53
|
setGlobalCSSVariables = _useEuiThemeCSSVariab.setGlobalCSSVariables;
|
|
54
|
-
var
|
|
55
|
-
|
|
54
|
+
var _useEuiMemoizedStyles = (0, _services.useEuiMemoizedStyles)(_header.euiHeaderVariables),
|
|
55
|
+
headerHeight = _useEuiMemoizedStyles.height;
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* Collapsed state
|
|
@@ -138,7 +138,7 @@ var _EuiCollapsibleNavBeta = function _EuiCollapsibleNavBeta(_ref) {
|
|
|
138
138
|
});
|
|
139
139
|
}, [_focusTrapProps]);
|
|
140
140
|
var classes = (0, _classnames.default)('euiCollapsibleNav', 'euiCollapsibleNavBeta', className);
|
|
141
|
-
var styles = (0, _collapsible_nav_beta.euiCollapsibleNavBetaStyles)
|
|
141
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_collapsible_nav_beta.euiCollapsibleNavBetaStyles);
|
|
142
142
|
var cssStyles = [styles.euiCollapsibleNavBeta, styles[side], isPush && styles.isPush, isPush && isCollapsed && styles.isPushCollapsed, isOverlayFullWidth && styles.isOverlayFullWidth];
|
|
143
143
|
var flyout = (0, _react2.jsx)(_flyout.EuiFlyout, (0, _extends2.default)({
|
|
144
144
|
"aria-label": defaultAriaLabel
|
|
@@ -59,8 +59,7 @@ var EuiCollapsibleNavFooter = function EuiCollapsibleNavFooter(_ref2) {
|
|
|
59
59
|
var _useContext2 = (0, _react.useContext)(_context.EuiCollapsibleNavContext),
|
|
60
60
|
isCollapsed = _useContext2.isCollapsed,
|
|
61
61
|
isPush = _useContext2.isPush;
|
|
62
|
-
var
|
|
63
|
-
var styles = (0, _collapsible_nav_body_footer.euiCollapsibleNavFooterStyles)(euiTheme);
|
|
62
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_collapsible_nav_body_footer.euiCollapsibleNavFooterStyles);
|
|
64
63
|
var cssStyles = styles.euiCollapsibleNav__footer;
|
|
65
64
|
var overflowWrapperStyles = [styles.euiFlyoutFooter__overflow, isCollapsed && isPush && styles.isPushCollapsed];
|
|
66
65
|
return (0, _react2.jsx)(_flyout.EuiFlyoutFooter, (0, _extends2.default)({
|