@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
|
@@ -12,24 +12,10 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
12
12
|
import { css, keyframes } from '@emotion/react';
|
|
13
13
|
import { euiCanAnimate, euiMaxBreakpoint, euiMinBreakpoint, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
14
14
|
import { euiShadowXLarge } from '../../themes/amsterdam/global_styling/mixins';
|
|
15
|
-
import { transparentize } from '../../services/color';
|
|
16
15
|
import { euiFormVariables } from '../form/form.styles';
|
|
16
|
+
export var FLYOUT_BREAKPOINT = 'm';
|
|
17
17
|
export var euiFlyoutSlideInRight = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(100%);\n }\n 75% {\n opacity: 1;\n transform: translateX(0%);\n }\n"])));
|
|
18
18
|
export var euiFlyoutSlideInLeft = keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n }\n 75% {\n opacity: 1;\n transform: translateX(0%);\n }\n"])));
|
|
19
|
-
export var euiFlyoutCloseButtonStyles = function euiFlyoutCloseButtonStyles(euiThemeContext) {
|
|
20
|
-
var euiTheme = euiThemeContext.euiTheme;
|
|
21
|
-
return {
|
|
22
|
-
euiFlyout__closeButton: /*#__PURE__*/css("position:absolute;", logicalCSS('right', euiTheme.size.s), " ", logicalCSS('top', euiTheme.size.s), " z-index:3;;label:euiFlyout__closeButton;"),
|
|
23
|
-
inside: /*#__PURE__*/css("background-color:", transparentize(euiTheme.colors.emptyShade, 0.9), ";;label:inside;"),
|
|
24
|
-
outside: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext), "animation:none!important;;label:outside;"),
|
|
25
|
-
outsideSide: {
|
|
26
|
-
// `transforms` pull in close buttons a little
|
|
27
|
-
// `!important` is necessary here to override the hover/focus transitions of buttons
|
|
28
|
-
right: /*#__PURE__*/css(logicalCSS('left', 0), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{transform:translateX(calc(-100% - ", euiTheme.size.xs, "))!important;}", euiMinBreakpoint(euiThemeContext, 'm'), "{transform:translateX(calc(-100% - ", euiTheme.size.l, "))!important;};label:right;"),
|
|
29
|
-
left: /*#__PURE__*/css(logicalCSS('right', 0), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{transform:translateX(calc(100% + ", euiTheme.size.xs, "))!important;}", euiMinBreakpoint(euiThemeContext, 'm'), "{transform:translateX(calc(100% + ", euiTheme.size.l, "))!important;};label:left;")
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
19
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
34
20
|
name: "yokctr-noAnimation",
|
|
35
21
|
styles: "animation-duration:0s!important;label:noAnimation;"
|
|
@@ -41,7 +27,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
41
27
|
export var euiFlyoutStyles = function euiFlyoutStyles(euiThemeContext) {
|
|
42
28
|
var euiTheme = euiThemeContext.euiTheme;
|
|
43
29
|
return {
|
|
44
|
-
euiFlyout: /*#__PURE__*/css("position:fixed;", logicalCSS('bottom', 0), " ", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), " ", logicalCSS('height', 'inherit'), " z-index:", euiTheme.levels.flyout, ";background:", euiTheme.colors.emptyShade, ";display:flex;flex-direction:column;align-items:stretch;&:focus{outline:none;}", euiMaxBreakpoint(euiThemeContext,
|
|
30
|
+
euiFlyout: /*#__PURE__*/css("position:fixed;", logicalCSS('bottom', 0), " ", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), " ", logicalCSS('height', 'inherit'), " z-index:", euiTheme.levels.flyout, ";background:", euiTheme.colors.emptyShade, ";display:flex;flex-direction:column;align-items:stretch;&:focus{outline:none;}", euiMaxBreakpoint(euiThemeContext, FLYOUT_BREAKPOINT), "{", logicalCSS('max-width', '90vw !important'), ";};label:euiFlyout;"),
|
|
45
31
|
// Flyout sizes
|
|
46
32
|
s: /*#__PURE__*/css(composeFlyoutSizing(euiThemeContext, 's'), ";;label:s;"),
|
|
47
33
|
m: /*#__PURE__*/css(composeFlyoutSizing(euiThemeContext, 'm'), ";;label:m;"),
|
|
@@ -95,7 +81,7 @@ var composeFlyoutSizing = function composeFlyoutSizing(euiThemeContext, size) {
|
|
|
95
81
|
max: "".concat(euiTheme.breakpoint.l, "px")
|
|
96
82
|
}
|
|
97
83
|
};
|
|
98
|
-
return "\n ".concat(logicalCSS('max-width', flyoutSizes[size].max), "\n\n ").concat(euiMaxBreakpoint(euiThemeContext,
|
|
84
|
+
return "\n ".concat(logicalCSS('max-width', flyoutSizes[size].max), "\n\n ").concat(euiMaxBreakpoint(euiThemeContext, FLYOUT_BREAKPOINT), " {\n ").concat(logicalCSS('min-width', 0), "\n ").concat(logicalCSS('width', flyoutSizes[size].min), "\n }\n ").concat(euiMinBreakpoint(euiThemeContext, FLYOUT_BREAKPOINT), " {\n ").concat(logicalCSS('min-width', flyoutSizes[size].min), "\n ").concat(logicalCSS('width', flyoutSizes[size].width), "\n }\n ");
|
|
99
85
|
};
|
|
100
86
|
var composeFlyoutPadding = function composeFlyoutPadding(euiThemeContext, paddingSize) {
|
|
101
87
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -13,7 +13,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import {
|
|
16
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
17
17
|
import { euiFlyoutBodyStyles } from './flyout_body.styles';
|
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
19
|
export var EuiFlyoutBody = function EuiFlyoutBody(_ref) {
|
|
@@ -24,21 +24,18 @@ export var EuiFlyoutBody = function EuiFlyoutBody(_ref) {
|
|
|
24
24
|
scrollableTabIndex = _ref$scrollableTabInd === void 0 ? 0 : _ref$scrollableTabInd,
|
|
25
25
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
26
26
|
var classes = classNames('euiFlyoutBody', className);
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var cssStyles = [styles.euiFlyoutBody];
|
|
30
|
-
var bannerCssStyles = [banner && styles.euiFlyoutBody__banner];
|
|
31
|
-
var overflowCssStyles = [banner ? styles.euiFlyoutBody__overflow.hasBanner : styles.euiFlyoutBody__overflow.noBanner];
|
|
27
|
+
var styles = useEuiMemoizedStyles(euiFlyoutBodyStyles);
|
|
28
|
+
var overflowCssStyles = [styles.overflow.euiFlyoutBody__overflow, banner ? styles.overflow.hasBanner : styles.overflow.noBanner];
|
|
32
29
|
return ___EmotionJSX("div", _extends({
|
|
33
30
|
className: classes,
|
|
34
|
-
css:
|
|
31
|
+
css: styles.euiFlyoutBody
|
|
35
32
|
}, rest), ___EmotionJSX("div", {
|
|
36
33
|
tabIndex: scrollableTabIndex,
|
|
37
34
|
className: "euiFlyoutBody__overflow",
|
|
38
35
|
css: overflowCssStyles
|
|
39
36
|
}, banner && ___EmotionJSX("div", {
|
|
40
37
|
className: "euiFlyoutBody__banner",
|
|
41
|
-
css:
|
|
38
|
+
css: styles.euiFlyoutBody__banner
|
|
42
39
|
}, banner), ___EmotionJSX("div", {
|
|
43
40
|
className: "euiFlyoutBody__overflowContent"
|
|
44
41
|
}, children)));
|
|
@@ -11,7 +11,8 @@ import { logicalCSS, logicalCSSWithFallback, euiYScrollWithShadows } from '../..
|
|
|
11
11
|
export var euiFlyoutBodyStyles = function euiFlyoutBodyStyles(euiThemeContext) {
|
|
12
12
|
return {
|
|
13
13
|
euiFlyoutBody: /*#__PURE__*/css(logicalCSSWithFallback('overflow-y', 'hidden'), " ", logicalCSS('height', '100%'), ";;label:euiFlyoutBody;"),
|
|
14
|
-
|
|
14
|
+
overflow: {
|
|
15
|
+
euiFlyoutBody__overflow: /*#__PURE__*/css(";label:euiFlyoutBody__overflow;"),
|
|
15
16
|
noBanner: /*#__PURE__*/css(euiYScrollWithShadows(euiThemeContext), ";;label:noBanner;"),
|
|
16
17
|
hasBanner: /*#__PURE__*/css(euiYScrollWithShadows(euiThemeContext, {
|
|
17
18
|
side: 'end'
|
|
@@ -13,7 +13,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import {
|
|
16
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
17
17
|
import { euiFlyoutFooterStyles } from './flyout_footer.styles';
|
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
19
|
export var EuiFlyoutFooter = function EuiFlyoutFooter(_ref) {
|
|
@@ -21,12 +21,10 @@ export var EuiFlyoutFooter = function EuiFlyoutFooter(_ref) {
|
|
|
21
21
|
className = _ref.className,
|
|
22
22
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
23
23
|
var classes = classNames('euiFlyoutFooter', className);
|
|
24
|
-
var
|
|
25
|
-
var styles = euiFlyoutFooterStyles(euiTheme);
|
|
26
|
-
var cssStyles = [styles.euiFlyoutFooter];
|
|
24
|
+
var styles = useEuiMemoizedStyles(euiFlyoutFooterStyles);
|
|
27
25
|
return ___EmotionJSX("div", _extends({
|
|
28
26
|
className: classes,
|
|
29
|
-
css:
|
|
27
|
+
css: styles.euiFlyoutFooter
|
|
30
28
|
}, rest), children);
|
|
31
29
|
};
|
|
32
30
|
EuiFlyoutFooter.propTypes = {
|
|
@@ -13,7 +13,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import {
|
|
16
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
17
17
|
import { euiFlyoutHeaderStyles } from './flyout_header.styles';
|
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
19
|
export var EuiFlyoutHeader = function EuiFlyoutHeader(_ref) {
|
|
@@ -23,8 +23,7 @@ export var EuiFlyoutHeader = function EuiFlyoutHeader(_ref) {
|
|
|
23
23
|
hasBorder = _ref$hasBorder === void 0 ? false : _ref$hasBorder,
|
|
24
24
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
25
|
var classes = classNames('euiFlyoutHeader', className);
|
|
26
|
-
var
|
|
27
|
-
var styles = euiFlyoutHeaderStyles(euiTheme);
|
|
26
|
+
var styles = useEuiMemoizedStyles(euiFlyoutHeaderStyles);
|
|
28
27
|
var cssStyles = [styles.euiFlyoutHeader, hasBorder && styles.hasBorder];
|
|
29
28
|
return ___EmotionJSX("div", _extends({
|
|
30
29
|
className: classes,
|
|
@@ -17,7 +17,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import React, { forwardRef, useState, useEffect, useRef, useMemo, useCallback } from 'react';
|
|
20
|
-
import { keys, useCombinedRefs,
|
|
20
|
+
import { keys, useCombinedRefs, useEuiMemoizedStyles } from '../../services';
|
|
21
21
|
import { EuiResizableButton } from '../resizable_container';
|
|
22
22
|
import { getPosition } from '../resizable_container/helpers';
|
|
23
23
|
import { EuiFlyout } from './flyout';
|
|
@@ -35,8 +35,7 @@ export var EuiFlyoutResizable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
35
35
|
type = _ref$type === void 0 ? 'overlay' : _ref$type,
|
|
36
36
|
children = _ref.children,
|
|
37
37
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
|
-
var
|
|
39
|
-
var styles = euiFlyoutResizableButtonStyles(euiTheme);
|
|
38
|
+
var styles = useEuiMemoizedStyles(euiFlyoutResizableButtonStyles);
|
|
40
39
|
var cssStyles = [styles.euiFlyoutResizableButton, styles[type][side]];
|
|
41
40
|
var getFlyoutMinMaxWidth = useCallback(function (width) {
|
|
42
41
|
return Math.min(Math.max(width, minWidth), maxWidth || Infinity, window.innerWidth - 20 // Leave some offset
|
|
@@ -25,7 +25,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
25
25
|
* Side Public License, v 1.
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
|
-
import React, { Component } from 'react';
|
|
28
|
+
import React, { Component, createRef } from 'react';
|
|
29
29
|
import PropTypes from "prop-types";
|
|
30
30
|
import classNames from 'classnames';
|
|
31
31
|
import { EuiScreenReaderOnly } from '../../accessibility';
|
|
@@ -52,6 +52,7 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
52
52
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
53
53
|
_defineProperty(_assertThisInitialized(_this), "itemNodes", []);
|
|
54
54
|
_defineProperty(_assertThisInitialized(_this), "_isMounted", false);
|
|
55
|
+
_defineProperty(_assertThisInitialized(_this), "controlButtonRef", /*#__PURE__*/createRef());
|
|
55
56
|
_defineProperty(_assertThisInitialized(_this), "describedById", htmlIdGenerator('euiSuperSelect_')('_screenreaderDescribeId'));
|
|
56
57
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
57
58
|
isPopoverOpen: _this.props.isOpen || false
|
|
@@ -73,18 +74,10 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
73
74
|
if (!_this._isMounted) {
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
|
-
if (_this.props.valueOfSelected != null) {
|
|
77
|
-
|
|
78
|
-
_this.focusItemAt(indexOfSelected);
|
|
79
|
-
} else {
|
|
80
|
-
focusSelected();
|
|
81
|
-
}
|
|
77
|
+
if (_this.props.valueOfSelected != null && indexOfSelected != null) {
|
|
78
|
+
_this.focusItemAt(indexOfSelected);
|
|
82
79
|
} else {
|
|
83
|
-
|
|
84
|
-
var disabled = _ref.disabled;
|
|
85
|
-
return disabled !== true;
|
|
86
|
-
});
|
|
87
|
-
_this.focusItemAt(firstFocusableOption);
|
|
80
|
+
_this.focusItemAt(0);
|
|
88
81
|
}
|
|
89
82
|
if (_this.props.onFocus) {
|
|
90
83
|
_this.props.onFocus();
|
|
@@ -97,6 +90,12 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
97
90
|
_this.setState({
|
|
98
91
|
isPopoverOpen: false
|
|
99
92
|
});
|
|
93
|
+
|
|
94
|
+
// Refocus back to the toggling control button on popover close
|
|
95
|
+
requestAnimationFrame(function () {
|
|
96
|
+
var _this$controlButtonRe;
|
|
97
|
+
(_this$controlButtonRe = _this.controlButtonRef.current) === null || _this$controlButtonRe === void 0 ? void 0 : _this$controlButtonRe.focus();
|
|
98
|
+
});
|
|
100
99
|
if (_this.props.onBlur) {
|
|
101
100
|
_this.props.onBlur();
|
|
102
101
|
}
|
|
@@ -108,7 +107,8 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
108
107
|
}
|
|
109
108
|
});
|
|
110
109
|
_defineProperty(_assertThisInitialized(_this), "onSelectKeyDown", function (event) {
|
|
111
|
-
|
|
110
|
+
// Mimic the ways native `<select>`s can be opened via keypress
|
|
111
|
+
if (event.key === keys.ARROW_UP || event.key === keys.ARROW_DOWN || event.key === keys.SPACE) {
|
|
112
112
|
event.preventDefault();
|
|
113
113
|
event.stopPropagation();
|
|
114
114
|
_this.openPopover();
|
|
@@ -123,9 +123,10 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
123
123
|
_this.closePopover();
|
|
124
124
|
break;
|
|
125
125
|
case keys.TAB:
|
|
126
|
-
//
|
|
126
|
+
// Mimic native `<select>` behavior, which selects an item on tab press
|
|
127
127
|
event.preventDefault();
|
|
128
128
|
event.stopPropagation();
|
|
129
|
+
event.target.click();
|
|
129
130
|
break;
|
|
130
131
|
case keys.ARROW_UP:
|
|
131
132
|
event.preventDefault();
|
|
@@ -156,11 +157,15 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
156
157
|
}
|
|
157
158
|
}, {
|
|
158
159
|
key: "focusItemAt",
|
|
159
|
-
value: function focusItemAt(index) {
|
|
160
|
+
value: function focusItemAt(index, direction) {
|
|
161
|
+
var _targetElement;
|
|
160
162
|
var targetElement = this.itemNodes[index];
|
|
161
|
-
|
|
162
|
-
|
|
163
|
+
// If the current index is disabled, find the next non-disabled element
|
|
164
|
+
while (targetElement && targetElement.disabled) {
|
|
165
|
+
direction === ShiftDirection.BACK ? index-- : index++;
|
|
166
|
+
targetElement = this.itemNodes[index];
|
|
163
167
|
}
|
|
168
|
+
(_targetElement = targetElement) === null || _targetElement === void 0 ? void 0 : _targetElement.focus();
|
|
164
169
|
}
|
|
165
170
|
}, {
|
|
166
171
|
key: "shiftFocus",
|
|
@@ -171,13 +176,15 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
171
176
|
// somehow the select options has lost focus
|
|
172
177
|
targetElementIndex = 0;
|
|
173
178
|
} else {
|
|
179
|
+
// Note: this component purposely does not cycle arrow key navigation
|
|
180
|
+
// to match native <select> elements
|
|
174
181
|
if (direction === ShiftDirection.BACK) {
|
|
175
|
-
targetElementIndex = currentIndex
|
|
182
|
+
targetElementIndex = currentIndex - 1;
|
|
176
183
|
} else {
|
|
177
|
-
targetElementIndex = currentIndex
|
|
184
|
+
targetElementIndex = currentIndex + 1;
|
|
178
185
|
}
|
|
179
186
|
}
|
|
180
|
-
this.focusItemAt(targetElementIndex);
|
|
187
|
+
this.focusItemAt(targetElementIndex, direction);
|
|
181
188
|
}
|
|
182
189
|
}, {
|
|
183
190
|
key: "render",
|
|
@@ -215,7 +222,9 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
215
222
|
fullWidth: fullWidth,
|
|
216
223
|
isInvalid: isInvalid,
|
|
217
224
|
compressed: compressed
|
|
218
|
-
}, rest
|
|
225
|
+
}, rest, {
|
|
226
|
+
buttonRef: this.controlButtonRef
|
|
227
|
+
}));
|
|
219
228
|
var items = options.map(function (option, index) {
|
|
220
229
|
var value = option.value,
|
|
221
230
|
dropdownDisplay = option.dropdownDisplay,
|
|
@@ -246,7 +255,8 @@ export var EuiSuperSelect = /*#__PURE__*/function (_Component) {
|
|
|
246
255
|
className: popoverClasses,
|
|
247
256
|
isOpen: isOpen || this.state.isPopoverOpen,
|
|
248
257
|
input: button,
|
|
249
|
-
fullWidth: fullWidth
|
|
258
|
+
fullWidth: fullWidth,
|
|
259
|
+
disableFocusTrap: true // This component handles its own focus manually
|
|
250
260
|
}), ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("p", {
|
|
251
261
|
id: this.describedById
|
|
252
262
|
}, ___EmotionJSX(EuiI18n, {
|
|
@@ -281,6 +291,7 @@ EuiSuperSelect.propTypes = {
|
|
|
281
291
|
"aria-label": PropTypes.string,
|
|
282
292
|
"data-test-subj": PropTypes.string,
|
|
283
293
|
css: PropTypes.any,
|
|
294
|
+
buttonRef: PropTypes.any,
|
|
284
295
|
/**
|
|
285
296
|
* @default false
|
|
286
297
|
*/
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
var _excluded = ["className", "options", "id", "name", "fullWidth", "isLoading", "isInvalid", "readOnly", "defaultValue", "compressed", "value", "placeholder", "prepend", "append", "disabled"];
|
|
1
|
+
var _excluded = ["buttonRef", "className", "options", "id", "name", "fullWidth", "isLoading", "isInvalid", "readOnly", "defaultValue", "compressed", "value", "placeholder", "prepend", "append", "disabled"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
3
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
11
|
/*
|
|
@@ -10,8 +16,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
10
16
|
* Side Public License, v 1.
|
|
11
17
|
*/
|
|
12
18
|
|
|
13
|
-
import React, { useMemo } from 'react';
|
|
19
|
+
import React, { useEffect, useState, useMemo } from 'react';
|
|
14
20
|
import classNames from 'classnames';
|
|
21
|
+
import { EuiScreenReaderOnly } from '../../accessibility';
|
|
15
22
|
import { EuiFormControlLayout } from '../form_control_layout';
|
|
16
23
|
import { getFormControlClassNameForIconCount } from '../form_control_layout/_num_icons';
|
|
17
24
|
import { useFormContext } from '../eui_form_context';
|
|
@@ -19,7 +26,8 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
|
19
26
|
export var EuiSuperSelectControl = function EuiSuperSelectControl(props) {
|
|
20
27
|
var _useFormContext = useFormContext(),
|
|
21
28
|
defaultFullWidth = _useFormContext.defaultFullWidth;
|
|
22
|
-
var
|
|
29
|
+
var buttonRef = props.buttonRef,
|
|
30
|
+
className = props.className,
|
|
23
31
|
options = props.options,
|
|
24
32
|
id = props.id,
|
|
25
33
|
name = props.name,
|
|
@@ -61,6 +69,25 @@ export var EuiSuperSelectControl = function EuiSuperSelectControl(props) {
|
|
|
61
69
|
}
|
|
62
70
|
}, [inputValue, options]);
|
|
63
71
|
var showPlaceholder = !!placeholder && !selectedValue;
|
|
72
|
+
|
|
73
|
+
// An extra screen reader workaround is required here to make sure `id`s
|
|
74
|
+
// passed from EuiFormRow are inherited by the targetable <button> element
|
|
75
|
+
var _useState = useState(''),
|
|
76
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
77
|
+
formLabelId = _useState2[0],
|
|
78
|
+
setFormLabelId = _useState2[1];
|
|
79
|
+
var hasFormLabel = !!formLabelId;
|
|
80
|
+
useEffect(function () {
|
|
81
|
+
if (id) {
|
|
82
|
+
var formRowLabel = "".concat(id, "-label");
|
|
83
|
+
var _hasFormLabel = !!document.getElementById(formRowLabel);
|
|
84
|
+
if (_hasFormLabel) {
|
|
85
|
+
setFormLabelId(formRowLabel);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, [id]);
|
|
89
|
+
var buttonId = hasFormLabel ? "".concat(id, "-button") : undefined;
|
|
90
|
+
var ariaLabelledBy = hasFormLabel ? "".concat(buttonId, " ").concat(formLabelId) : undefined;
|
|
64
91
|
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX("input", {
|
|
65
92
|
type: "hidden",
|
|
66
93
|
id: id,
|
|
@@ -81,11 +108,18 @@ export var EuiSuperSelectControl = function EuiSuperSelectControl(props) {
|
|
|
81
108
|
type: "button",
|
|
82
109
|
className: classes,
|
|
83
110
|
"aria-haspopup": "listbox",
|
|
111
|
+
"aria-labelledby": ariaLabelledBy,
|
|
112
|
+
id: buttonId,
|
|
84
113
|
disabled: disabled || readOnly
|
|
85
114
|
// @ts-ignore Using as a selector only for mixin use
|
|
86
115
|
,
|
|
87
116
|
readOnly: readOnly
|
|
88
|
-
}, rest
|
|
117
|
+
}, rest, {
|
|
118
|
+
ref: buttonRef
|
|
119
|
+
}), showPlaceholder ? ___EmotionJSX("span", {
|
|
89
120
|
className: "euiSuperSelectControl__placeholder"
|
|
90
|
-
}, placeholder) : selectedValue
|
|
121
|
+
}, placeholder) : selectedValue, hasFormLabel &&
|
|
122
|
+
// Add a slight pause between reading out the multiple aria-labelledby elements,
|
|
123
|
+
// mimicking how screen readers handle native <select> elements
|
|
124
|
+
___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("span", null, ", ")))));
|
|
91
125
|
};
|
|
@@ -78,7 +78,7 @@ EuiHeaderBreadcrumbs.propTypes = {
|
|
|
78
78
|
*/
|
|
79
79
|
truncate: PropTypes.bool,
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* @deprecated - if a custom color is wanted, use the `css` prop to pass custom css
|
|
82
82
|
*/
|
|
83
83
|
color: PropTypes.any,
|
|
84
84
|
/**
|
|
@@ -256,8 +256,9 @@ EuiHeaderBreadcrumbs.propTypes = {
|
|
|
256
256
|
*/
|
|
257
257
|
type: PropTypes.oneOf(["page", "application"]),
|
|
258
258
|
/**
|
|
259
|
-
* Whether the last breadcrumb should
|
|
260
|
-
*
|
|
259
|
+
* Whether the last breadcrumb should be semantically highlighted as the
|
|
260
|
+
* current page. (improves accessibility for screen readers users)
|
|
261
|
+
* Defaults to true.
|
|
261
262
|
*/
|
|
262
263
|
lastBreadcrumbIsCurrentPage: PropTypes.bool
|
|
263
264
|
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
1
|
var _excluded = ["className", "size", "margin"];
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
5
|
/*
|
|
@@ -17,31 +13,20 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
17
13
|
import React from 'react';
|
|
18
14
|
import PropTypes from "prop-types";
|
|
19
15
|
import classNames from 'classnames';
|
|
20
|
-
import {
|
|
16
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
21
17
|
import { euiHorizontalRuleStyles } from './horizontal_rule.styles';
|
|
22
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
19
|
export var SIZES = ['full', 'half', 'quarter'];
|
|
24
20
|
export var MARGINS = ['none', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
25
|
-
var marginToClassNameMap = {
|
|
26
|
-
none: null,
|
|
27
|
-
xs: 'marginXSmall',
|
|
28
|
-
s: 'marginSmall',
|
|
29
|
-
m: 'marginMedium',
|
|
30
|
-
l: 'marginLarge',
|
|
31
|
-
xl: 'marginXLarge',
|
|
32
|
-
xxl: 'marginXXLarge'
|
|
33
|
-
};
|
|
34
21
|
export var EuiHorizontalRule = function EuiHorizontalRule(_ref) {
|
|
35
|
-
var _classNames;
|
|
36
22
|
var className = _ref.className,
|
|
37
23
|
_ref$size = _ref.size,
|
|
38
24
|
size = _ref$size === void 0 ? 'full' : _ref$size,
|
|
39
25
|
_ref$margin = _ref.margin,
|
|
40
26
|
margin = _ref$margin === void 0 ? 'l' : _ref$margin,
|
|
41
27
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
42
|
-
var
|
|
43
|
-
var styles = euiHorizontalRuleStyles
|
|
44
|
-
var classes = classNames('euiHorizontalRule', (_classNames = {}, _defineProperty(_classNames, "euiHorizontalRule--".concat(size), size), _defineProperty(_classNames, "euiHorizontalRule--".concat(marginToClassNameMap[margin]), margin && margin !== 'none'), _classNames), className);
|
|
28
|
+
var classes = classNames('euiHorizontalRule', className);
|
|
29
|
+
var styles = useEuiMemoizedStyles(euiHorizontalRuleStyles);
|
|
45
30
|
var cssStyles = [styles.euiHorizontalRule, styles[size], styles[margin]];
|
|
46
31
|
return ___EmotionJSX("hr", _extends({
|
|
47
32
|
css: cssStyles,
|
|
@@ -13,9 +13,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { useEuiMemoizedStyles } from '../../services';
|
|
17
|
+
import { useLoadingAriaLabel } from './_loading_strings';
|
|
18
|
+
import { euiLoadingChartStyles, euiLoadingChartBarStyles, BARS_COUNT } from './loading_chart.styles';
|
|
19
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
20
20
|
export var SIZES = ['m', 'l', 'xl'];
|
|
21
21
|
export var EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
@@ -26,30 +26,25 @@ export var EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
|
26
26
|
className = _ref.className,
|
|
27
27
|
ariaLabel = _ref['aria-label'],
|
|
28
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var styles = euiLoadingChartStyles(euiTheme);
|
|
32
|
-
var barStyles = euiLoadingChartBarStyles(euiTheme);
|
|
33
|
-
var classes = classNames('euiLoadingChart', {
|
|
34
|
-
'euiLoadingChart--mono': mono
|
|
35
|
-
}, className);
|
|
29
|
+
var classes = classNames('euiLoadingChart', className);
|
|
30
|
+
var styles = useEuiMemoizedStyles(euiLoadingChartStyles);
|
|
36
31
|
var cssStyles = [styles.euiLoadingChart, styles[size]];
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var bars = [];
|
|
41
|
-
for (var index = 0; index < 4; index++) {
|
|
42
|
-
bars.push(___EmotionJSX("span", {
|
|
43
|
-
key: index,
|
|
44
|
-
css: cssBarStyles(index)
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
32
|
+
var barStyles = useEuiMemoizedStyles(euiLoadingChartBarStyles);
|
|
33
|
+
var barCssStyles = [barStyles.euiLoadingChart__bar, mono ? barStyles.mono : barStyles.nonmono, barStyles[size]];
|
|
34
|
+
var defaultAriaLabel = useLoadingAriaLabel();
|
|
47
35
|
return ___EmotionJSX("span", _extends({
|
|
48
36
|
className: classes,
|
|
49
37
|
css: cssStyles,
|
|
50
38
|
role: "progressbar",
|
|
51
39
|
"aria-label": ariaLabel || defaultAriaLabel
|
|
52
|
-
}, rest),
|
|
40
|
+
}, rest), Array.from({
|
|
41
|
+
length: BARS_COUNT
|
|
42
|
+
}, function (_, index) {
|
|
43
|
+
return ___EmotionJSX("span", {
|
|
44
|
+
key: index,
|
|
45
|
+
css: barCssStyles
|
|
46
|
+
});
|
|
47
|
+
}));
|
|
53
48
|
};
|
|
54
49
|
EuiLoadingChart.propTypes = {
|
|
55
50
|
className: PropTypes.string,
|
|
@@ -11,7 +11,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
11
11
|
|
|
12
12
|
import { css, keyframes } from '@emotion/react';
|
|
13
13
|
import { euiPaletteColorBlind, shadeOrTint } from '../../services';
|
|
14
|
-
import { euiCanAnimate, logicalCSS } from '../../global_styling';
|
|
14
|
+
import { euiCanAnimate, euiCantAnimate, logicalCSS } from '../../global_styling';
|
|
15
|
+
var nonMonoColors = euiPaletteColorBlind();
|
|
15
16
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
16
17
|
name: "yovxj7-euiLoadingChart",
|
|
17
18
|
styles: "overflow:hidden;display:inline-flex;label:euiLoadingChart;"
|
|
@@ -29,19 +30,36 @@ export var euiLoadingChartStyles = function euiLoadingChartStyles(_ref2) {
|
|
|
29
30
|
xl: /*#__PURE__*/css(logicalCSS('height', euiTheme.size.xl), " gap:", euiTheme.size.xs, ";;label:xl;")
|
|
30
31
|
};
|
|
31
32
|
};
|
|
33
|
+
export var BARS_COUNT = 4;
|
|
32
34
|
export var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref3) {
|
|
33
|
-
var euiTheme = _ref3.euiTheme
|
|
35
|
+
var euiTheme = _ref3.euiTheme,
|
|
36
|
+
colorMode = _ref3.colorMode;
|
|
34
37
|
return {
|
|
35
|
-
euiLoadingChart__bar: /*#__PURE__*/css(logicalCSS('height', '100%'), " display:inline-block
|
|
38
|
+
euiLoadingChart__bar: /*#__PURE__*/css(logicalCSS('height', '100%'), " display:inline-block;", euiCanAnimate, "{animation:", barAnimation, " 1s infinite;", outputNthChildCss(function (index) {
|
|
39
|
+
return "animation-delay: 0.".concat(index, "s;");
|
|
40
|
+
}), ";}", euiCantAnimate, "{", outputNthChildCss(function (index) {
|
|
41
|
+
return "transform: translateY(".concat(22 * index, "%);");
|
|
42
|
+
}), ";};label:euiLoadingChart__bar;"),
|
|
43
|
+
nonmono: /*#__PURE__*/css(outputNthChildCss(function (index) {
|
|
44
|
+
return "background-color: ".concat(nonMonoColors[index]);
|
|
45
|
+
}), ";;label:nonmono;"),
|
|
46
|
+
mono: /*#__PURE__*/css(outputNthChildCss(function (index) {
|
|
47
|
+
return "background-color: ".concat(shadeOrTint(euiTheme.colors.lightShade, index * 0.04, colorMode));
|
|
48
|
+
}), ";;label:mono;"),
|
|
36
49
|
m: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.xxs), " ", logicalCSS('margin-bottom', euiTheme.size.s), ";;label:m;"),
|
|
37
50
|
l: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.xs), " ", logicalCSS('margin-bottom', euiTheme.size.m), ";;label:l;"),
|
|
38
51
|
xl: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.s), " ", logicalCSS('margin-bottom', euiTheme.size.base), ";;label:xl;")
|
|
39
52
|
};
|
|
40
53
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Small utility helper for generating nth-child CSS for each bar
|
|
57
|
+
*/
|
|
58
|
+
var outputNthChildCss = function outputNthChildCss(css) {
|
|
59
|
+
return Array.from({
|
|
60
|
+
length: BARS_COUNT
|
|
61
|
+
}, function (_, index) {
|
|
62
|
+
return "\n &:nth-child(".concat(index + 1, ") {\n ").concat(css(index), "\n }");
|
|
63
|
+
}).join();
|
|
64
|
+
};
|
|
65
|
+
var barAnimation = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translateY(0);\n }\n\n 50% {\n transform: translateY(66%);\n }\n\n 100% {\n transform: translateY(0);\n }\n"])));
|
|
@@ -15,7 +15,7 @@ import PropTypes from "prop-types";
|
|
|
15
15
|
import classNames from 'classnames';
|
|
16
16
|
import { EuiIcon } from '../icon';
|
|
17
17
|
import { useLoadingAriaLabel } from './_loading_strings';
|
|
18
|
-
import { euiLoadingElasticStyles } from './loading_elastic.styles';
|
|
18
|
+
import { euiLoadingElasticStyles as styles } from './loading_elastic.styles';
|
|
19
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
20
20
|
export var SIZES = ['m', 'l', 'xl', 'xxl'];
|
|
21
21
|
export var EuiLoadingElastic = function EuiLoadingElastic(_ref) {
|
|
@@ -24,13 +24,11 @@ export var EuiLoadingElastic = function EuiLoadingElastic(_ref) {
|
|
|
24
24
|
className = _ref.className,
|
|
25
25
|
ariaLabel = _ref['aria-label'],
|
|
26
26
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
-
var styles = euiLoadingElasticStyles();
|
|
28
|
-
var cssStyles = [styles.euiLoadingElastic];
|
|
29
|
-
var defaultLabel = useLoadingAriaLabel();
|
|
30
27
|
var classes = classNames('euiLoadingElastic', className);
|
|
28
|
+
var defaultLabel = useLoadingAriaLabel();
|
|
31
29
|
return ___EmotionJSX("span", _extends({
|
|
32
30
|
className: classes,
|
|
33
|
-
css:
|
|
31
|
+
css: styles.euiLoadingElastic,
|
|
34
32
|
role: "progressbar",
|
|
35
33
|
"aria-label": ariaLabel || defaultLabel
|
|
36
34
|
}, rest), ___EmotionJSX(EuiIcon, {
|
|
@@ -11,8 +11,6 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
12
|
import { euiCanAnimate } from '../../global_styling';
|
|
13
13
|
var loadingElastic = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: scale3d(.2, .2, -.7);\n opacity: .2;\n }\n\n 40% {\n transform: scale3d(1, 1, 2);\n opacity: 1;\n }\n\n 50% {\n transform: scale3d(.99, .99, 2);\n }\n\n 70% {\n transform: scale3d(.96, .96, -2.5);\n }\n\n 100% {\n transform: scale3d(.98, .98, 2);\n }\n"])));
|
|
14
|
-
export var euiLoadingElasticStyles =
|
|
15
|
-
|
|
16
|
-
euiLoadingElastic: /*#__PURE__*/css("position:relative;display:inline-block;& path{", euiCanAnimate, "{animation-name:", loadingElastic, ";animation-fill-mode:forwards;animation-direction:alternate;transform-style:preserve-3d;animation-duration:1s;animation-timing-function:cubic-bezier(0, 0.63, 0.49, 1);animation-iteration-count:infinite;transform-origin:50% 50%;}&:nth-of-type(1){display:none;}&:nth-of-type(2){animation-delay:0.035s;}&:nth-of-type(3){animation-delay:0.125s;}&:nth-of-type(4){animation-delay:0.155s;}&:nth-of-type(5){animation-delay:0.075s;}&:nth-of-type(6){animation-delay:0.06s;}};label:euiLoadingElastic;")
|
|
17
|
-
};
|
|
14
|
+
export var euiLoadingElasticStyles = {
|
|
15
|
+
euiLoadingElastic: /*#__PURE__*/css("position:relative;display:inline-block;& path{", euiCanAnimate, "{animation-name:", loadingElastic, ";animation-fill-mode:forwards;animation-direction:alternate;transform-style:preserve-3d;animation-duration:1s;animation-timing-function:cubic-bezier(0, 0.63, 0.49, 1);animation-iteration-count:infinite;transform-origin:50% 50%;}&:nth-of-type(1){display:none;}&:nth-of-type(2){animation-delay:0.035s;}&:nth-of-type(3){animation-delay:0.125s;}&:nth-of-type(4){animation-delay:0.155s;}&:nth-of-type(5){animation-delay:0.075s;}&:nth-of-type(6){animation-delay:0.06s;}};label:euiLoadingElastic;")
|
|
18
16
|
};
|