@elastic/eui 74.0.1 → 75.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +2 -1
- package/dist/eui_charts_theme.js.map +1 -1
- package/es/components/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/basic_table/basic_table.js +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +1 -1
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/basic_table/table.a11y.js +146 -104
- package/es/components/button/_button_content_deprecated.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +2 -2
- package/es/components/collapsible_nav/collapsible_nav.js +10 -11
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +13 -13
- package/es/components/datagrid/body/data_grid_cell.js +24 -24
- package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/es/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.a11y.js +1 -1
- package/es/components/datagrid/data_grid.js +13 -13
- package/es/components/datagrid/utils/in_memory.js +12 -12
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/flyout/flyout.js +88 -24
- package/es/components/form/field_number/field_number.js +1 -1
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/form/range/range.a11y.js +216 -0
- package/es/components/form/super_select/super_select.js +1 -1
- package/es/components/header/header.js +3 -1
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo.js +1 -1
- package/es/components/icon/assets/alert.js +3 -2
- package/es/components/icon/assets/error.js +39 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +1 -0
- package/es/components/index.js +1 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_content.js +37 -38
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/notification/notification_event.js +2 -2
- package/es/components/notification/notification_event_meta.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/popover/popover.js +1 -1
- package/es/components/progress/progress.a11y.js +84 -0
- package/es/components/resizable_container/resizable_container.a11y.js +110 -0
- package/es/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/es/components/selectable/selectable_list/selectable_list.js +20 -6
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/skeleton/index.js +12 -0
- package/es/components/skeleton/skeleton_circle.js +71 -0
- package/es/components/skeleton/skeleton_circle.styles.js +26 -0
- package/es/components/skeleton/skeleton_loading.js +59 -0
- package/es/components/skeleton/skeleton_rectangle.js +89 -0
- package/es/components/skeleton/skeleton_rectangle.styles.js +34 -0
- package/es/components/skeleton/skeleton_text.js +90 -0
- package/es/components/skeleton/skeleton_text.styles.js +34 -0
- package/es/components/skeleton/skeleton_title.js +74 -0
- package/es/components/skeleton/skeleton_title.styles.js +24 -0
- package/es/components/skeleton/utils.js +25 -0
- package/es/components/suggest/suggest.js +1 -1
- package/es/components/suggest/suggest_item.js +1 -1
- package/es/components/table/table_header_button.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/global_styling/functions/logicals.js +2 -1
- package/es/global_styling/utility/animations.js +4 -1
- package/eui.d.ts +386 -213
- package/i18ntokens.json +84 -4
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/basic_table/basic_table.js +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/basic_table/table.a11y.js +147 -105
- package/lib/components/button/_button_content_deprecated.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +2 -2
- package/lib/components/collapsible_nav/collapsible_nav.js +10 -11
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +13 -13
- package/lib/components/datagrid/body/data_grid_cell.js +24 -24
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/lib/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.a11y.js +1 -1
- package/lib/components/datagrid/data_grid.js +13 -13
- package/lib/components/datagrid/utils/in_memory.js +12 -12
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/flyout/flyout.js +85 -22
- package/lib/components/form/field_number/field_number.js +1 -1
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/form/range/range.a11y.js +220 -0
- package/lib/components/form/super_select/super_select.js +1 -1
- package/lib/components/header/header.js +3 -1
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo.js +1 -1
- package/lib/components/icon/assets/alert.js +3 -2
- package/lib/components/icon/assets/error.js +46 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +1 -0
- package/lib/components/icon/svgs/alert.svg +2 -1
- package/lib/components/icon/svgs/error.svg +3 -0
- package/lib/components/index.js +13 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_content.js +41 -42
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/notification/notification_event.js +2 -2
- package/lib/components/notification/notification_event_meta.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/popover/popover.js +1 -1
- package/lib/components/progress/progress.a11y.js +84 -0
- package/lib/components/resizable_container/resizable_container.a11y.js +117 -0
- package/lib/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/lib/components/selectable/selectable_list/selectable_list.js +20 -6
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/skeleton/index.js +45 -0
- package/lib/components/skeleton/skeleton_circle.js +84 -0
- package/lib/components/skeleton/skeleton_circle.styles.js +38 -0
- package/lib/components/skeleton/skeleton_loading.js +68 -0
- package/lib/components/skeleton/skeleton_rectangle.js +103 -0
- package/lib/components/skeleton/skeleton_rectangle.styles.js +37 -0
- package/lib/components/skeleton/skeleton_text.js +103 -0
- package/lib/components/skeleton/skeleton_text.styles.js +45 -0
- package/lib/components/skeleton/skeleton_title.js +85 -0
- package/lib/components/skeleton/skeleton_title.styles.js +37 -0
- package/lib/components/skeleton/utils.js +38 -0
- package/lib/components/suggest/suggest.js +1 -1
- package/lib/components/suggest/suggest_item.js +1 -1
- package/lib/components/table/table_header_button.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/global_styling/functions/logicals.js +2 -1
- package/lib/global_styling/utility/animations.js +9 -3
- package/optimize/es/components/basic_table/table.a11y.js +146 -104
- package/optimize/es/components/card/card.js +1 -1
- package/optimize/es/components/collapsible_nav/collapsible_nav.js +1 -4
- package/optimize/es/components/datagrid/data_grid.a11y.js +1 -1
- package/optimize/es/components/flyout/flyout.js +81 -24
- package/optimize/es/components/form/range/range.a11y.js +206 -0
- package/optimize/es/components/form/super_select/super_select.js +1 -1
- package/optimize/es/components/header/header.js +3 -1
- package/optimize/es/components/icon/assets/alert.js +3 -2
- package/optimize/es/components/icon/assets/error.js +35 -0
- package/optimize/es/components/icon/icon_map.js +1 -0
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/loading/loading_content.js +10 -33
- package/optimize/es/components/popover/popover.js +1 -1
- package/optimize/es/components/progress/progress.a11y.js +84 -0
- package/optimize/es/components/resizable_container/resizable_container.a11y.js +110 -0
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +19 -5
- package/optimize/es/components/skeleton/index.js +12 -0
- package/optimize/es/components/skeleton/skeleton_circle.js +42 -0
- package/optimize/es/components/skeleton/skeleton_circle.styles.js +26 -0
- package/optimize/es/components/skeleton/skeleton_loading.js +38 -0
- package/optimize/es/components/skeleton/skeleton_rectangle.js +57 -0
- package/optimize/es/components/skeleton/skeleton_rectangle.styles.js +34 -0
- package/optimize/es/components/skeleton/skeleton_text.js +52 -0
- package/optimize/es/components/skeleton/skeleton_text.styles.js +34 -0
- package/optimize/es/components/skeleton/skeleton_title.js +41 -0
- package/optimize/es/components/skeleton/skeleton_title.styles.js +24 -0
- package/optimize/es/components/skeleton/utils.js +25 -0
- package/optimize/es/global_styling/functions/logicals.js +2 -1
- package/optimize/es/global_styling/utility/animations.js +4 -1
- package/optimize/lib/components/basic_table/table.a11y.js +147 -105
- package/optimize/lib/components/card/card.js +1 -1
- package/optimize/lib/components/collapsible_nav/collapsible_nav.js +1 -4
- package/optimize/lib/components/datagrid/data_grid.a11y.js +1 -1
- package/optimize/lib/components/flyout/flyout.js +80 -22
- package/optimize/lib/components/form/range/range.a11y.js +220 -0
- package/optimize/lib/components/form/super_select/super_select.js +1 -1
- package/optimize/lib/components/header/header.js +3 -1
- package/optimize/lib/components/icon/assets/alert.js +3 -2
- package/optimize/lib/components/icon/assets/error.js +45 -0
- package/optimize/lib/components/icon/icon_map.js +1 -0
- package/optimize/lib/components/icon/svgs/alert.svg +2 -1
- package/optimize/lib/components/icon/svgs/error.svg +3 -0
- package/optimize/lib/components/index.js +13 -0
- package/optimize/lib/components/loading/loading_content.js +14 -38
- package/optimize/lib/components/popover/popover.js +1 -1
- package/optimize/lib/components/progress/progress.a11y.js +92 -0
- package/optimize/lib/components/resizable_container/resizable_container.a11y.js +117 -0
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +16 -5
- package/optimize/lib/components/skeleton/index.js +45 -0
- package/optimize/lib/components/skeleton/skeleton_circle.js +54 -0
- package/optimize/lib/components/skeleton/skeleton_circle.styles.js +38 -0
- package/optimize/lib/components/skeleton/skeleton_loading.js +47 -0
- package/optimize/lib/components/skeleton/skeleton_rectangle.js +72 -0
- package/optimize/lib/components/skeleton/skeleton_rectangle.styles.js +37 -0
- package/optimize/lib/components/skeleton/skeleton_text.js +64 -0
- package/optimize/lib/components/skeleton/skeleton_text.styles.js +45 -0
- package/optimize/lib/components/skeleton/skeleton_title.js +52 -0
- package/optimize/lib/components/skeleton/skeleton_title.styles.js +37 -0
- package/optimize/lib/components/skeleton/utils.js +38 -0
- package/optimize/lib/global_styling/functions/logicals.js +2 -1
- package/optimize/lib/global_styling/utility/animations.js +9 -3
- package/package.json +3 -3
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/basic_table/table.a11y.js +147 -105
- package/test-env/components/button/_button_content_deprecated.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +2 -2
- package/test-env/components/collapsible_nav/collapsible_nav.js +10 -11
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +13 -13
- package/test-env/components/datagrid/body/data_grid_cell.js +24 -24
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +13 -13
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.a11y.js +1 -1
- package/test-env/components/datagrid/data_grid.js +13 -13
- package/test-env/components/datagrid/utils/in_memory.js +12 -12
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/form/field_number/field_number.js +1 -1
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/form/range/range.a11y.js +220 -0
- package/test-env/components/form/super_select/super_select.js +1 -1
- package/test-env/components/header/header.js +3 -1
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo.js +1 -1
- package/test-env/components/icon/assets/alert.js +3 -2
- package/test-env/components/icon/assets/error.js +45 -0
- package/test-env/components/icon/icon_map.js +1 -0
- package/test-env/components/index.js +13 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_content.js +41 -39
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/notification/notification_event.js +2 -2
- package/test-env/components/notification/notification_event_meta.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/popover/popover.js +1 -1
- package/test-env/components/progress/progress.a11y.js +92 -0
- package/test-env/components/resizable_container/resizable_container.a11y.js +117 -0
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +6 -10
- package/test-env/components/selectable/selectable_list/selectable_list.js +17 -6
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/skeleton/index.js +45 -0
- package/test-env/components/skeleton/skeleton_circle.js +80 -0
- package/test-env/components/skeleton/skeleton_circle.styles.js +38 -0
- package/test-env/components/skeleton/skeleton_loading.js +65 -0
- package/test-env/components/skeleton/skeleton_rectangle.js +100 -0
- package/test-env/components/skeleton/skeleton_rectangle.styles.js +37 -0
- package/test-env/components/skeleton/skeleton_text.js +99 -0
- package/test-env/components/skeleton/skeleton_text.styles.js +45 -0
- package/test-env/components/skeleton/skeleton_title.js +82 -0
- package/test-env/components/skeleton/skeleton_title.styles.js +37 -0
- package/test-env/components/skeleton/utils.js +38 -0
- package/test-env/components/suggest/suggest.js +1 -1
- package/test-env/components/suggest/suggest_item.js +1 -1
- package/test-env/components/table/table_header_button.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/global_styling/functions/logicals.js +2 -1
- package/test-env/global_styling/utility/animations.js +9 -3
- package/es/components/loading/loading_content.styles.js +0 -24
- package/lib/components/loading/loading_content.styles.js +0 -30
- package/optimize/es/components/loading/loading_content.styles.js +0 -24
- package/optimize/lib/components/loading/loading_content.styles.js +0 -32
- package/test-env/components/loading/loading_content.styles.js +0 -32
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
/// <reference types="../../../cypress/support"/>
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { EuiResizableContainer } from './resizable_container';
|
|
11
|
+
import { EuiText } from '../text';
|
|
12
|
+
import { faker } from '@faker-js/faker';
|
|
13
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
14
|
+
|
|
15
|
+
var text = ___EmotionJSX(React.Fragment, null, ___EmotionJSX("p", null, faker.lorem.paragraphs()), ___EmotionJSX("p", null, faker.lorem.paragraphs()), ___EmotionJSX("p", null, faker.lorem.paragraphs()));
|
|
16
|
+
|
|
17
|
+
describe('Horizontal EuiResizableContainer', function () {
|
|
18
|
+
var HorizontalContainer = function HorizontalContainer() {
|
|
19
|
+
return ___EmotionJSX(EuiResizableContainer, {
|
|
20
|
+
style: {
|
|
21
|
+
height: '200px'
|
|
22
|
+
}
|
|
23
|
+
}, function (EuiResizablePanel, EuiResizableButton) {
|
|
24
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiResizablePanel, {
|
|
25
|
+
initialSize: 50,
|
|
26
|
+
minSize: "30%",
|
|
27
|
+
tabIndex: 0
|
|
28
|
+
}, ___EmotionJSX(EuiText, null, ___EmotionJSX("div", null, text), ___EmotionJSX("a", {
|
|
29
|
+
href: "#",
|
|
30
|
+
"data-test-subj": "hello-world-link"
|
|
31
|
+
}, "Hello world"))), ___EmotionJSX(EuiResizableButton, null), ___EmotionJSX(EuiResizablePanel, {
|
|
32
|
+
initialSize: 50,
|
|
33
|
+
minSize: "200px",
|
|
34
|
+
tabIndex: 0
|
|
35
|
+
}, ___EmotionJSX(EuiText, null, text)));
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
beforeEach(function () {
|
|
40
|
+
cy.viewport(1024, 768); // medium breakpoint
|
|
41
|
+
|
|
42
|
+
cy.realMount(___EmotionJSX(HorizontalContainer, null));
|
|
43
|
+
cy.get('div.euiResizablePanel').should('exist');
|
|
44
|
+
});
|
|
45
|
+
describe('Automated accessibility check', function () {
|
|
46
|
+
it('has zero violations on first render', function () {
|
|
47
|
+
cy.checkAxe();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
describe('Keyboard accessibility check', function () {
|
|
51
|
+
it('has zero violations when first panel is scrolled vertically', function () {
|
|
52
|
+
cy.realPress('Tab');
|
|
53
|
+
cy.get('div.euiPanel').first().should('have.focus');
|
|
54
|
+
cy.realPress('End');
|
|
55
|
+
cy.get('a[data-test-subj="hello-world-link"]').should('be.visible');
|
|
56
|
+
cy.checkAxe();
|
|
57
|
+
});
|
|
58
|
+
it('has zero violations when second panel is scrolled vertically', function () {
|
|
59
|
+
cy.repeatRealPress('Tab', 4);
|
|
60
|
+
cy.get('div.euiPanel').last().should('have.focus');
|
|
61
|
+
cy.realPress('End');
|
|
62
|
+
cy.realPress('Home');
|
|
63
|
+
cy.checkAxe();
|
|
64
|
+
});
|
|
65
|
+
it('has zero violations when the horizontal panels are resized', function () {
|
|
66
|
+
cy.repeatRealPress('Tab', 3);
|
|
67
|
+
cy.get('button.euiResizableButton').should('have.focus');
|
|
68
|
+
cy.repeatRealPress('ArrowRight', 10);
|
|
69
|
+
cy.checkAxe();
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
describe('Vertical EuiResizableContainer', function () {
|
|
74
|
+
var VerticalContainer = function VerticalContainer() {
|
|
75
|
+
return ___EmotionJSX(EuiResizableContainer, {
|
|
76
|
+
style: {
|
|
77
|
+
height: '400px'
|
|
78
|
+
},
|
|
79
|
+
direction: "vertical"
|
|
80
|
+
}, function (EuiResizablePanel, EuiResizableButton) {
|
|
81
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiResizablePanel, {
|
|
82
|
+
initialSize: 60,
|
|
83
|
+
minSize: "40%",
|
|
84
|
+
tabIndex: 0
|
|
85
|
+
}, ___EmotionJSX(EuiText, null, ___EmotionJSX("div", null, text))), ___EmotionJSX(EuiResizableButton, null), ___EmotionJSX(EuiResizablePanel, {
|
|
86
|
+
initialSize: 40,
|
|
87
|
+
minSize: "10%",
|
|
88
|
+
tabIndex: 0
|
|
89
|
+
}, ___EmotionJSX(EuiText, null, ___EmotionJSX("div", null, text))));
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
beforeEach(function () {
|
|
94
|
+
cy.viewport(1024, 768); // medium breakpoint
|
|
95
|
+
|
|
96
|
+
cy.realMount(___EmotionJSX(VerticalContainer, null));
|
|
97
|
+
cy.get('div.euiResizablePanel').should('exist');
|
|
98
|
+
});
|
|
99
|
+
describe('Automated accessibility check', function () {
|
|
100
|
+
it('has zero violations on first render', function () {
|
|
101
|
+
cy.checkAxe();
|
|
102
|
+
});
|
|
103
|
+
it('has zero violations when the vertical panels are resized', function () {
|
|
104
|
+
cy.repeatRealPress('Tab');
|
|
105
|
+
cy.get('button.euiResizableButton').should('have.focus');
|
|
106
|
+
cy.repeatRealPress('ArrowDown', 10);
|
|
107
|
+
cy.checkAxe();
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
});
|
|
@@ -251,16 +251,16 @@ export var FieldValueSelectionFilter = /*#__PURE__*/function (_Component) {
|
|
|
251
251
|
if (!multiSelect && autoClose) {
|
|
252
252
|
this.closePopover();
|
|
253
253
|
|
|
254
|
-
var _query = checked ? this.props.query.removeSimpleFieldClauses(field)
|
|
254
|
+
var _query = checked ? this.props.query.removeSimpleFieldClauses(field).addSimpleFieldValue(field, value, true, operator) : this.props.query.removeSimpleFieldClauses(field);
|
|
255
255
|
|
|
256
256
|
this.props.onChange(_query);
|
|
257
257
|
} else {
|
|
258
258
|
if (multiSelect === 'or') {
|
|
259
|
-
var _query2 = checked ? this.props.query.
|
|
259
|
+
var _query2 = checked ? this.props.query.addOrFieldValue(field, value, true, operator) : this.props.query.removeOrFieldValue(field, value);
|
|
260
260
|
|
|
261
261
|
this.props.onChange(_query2);
|
|
262
262
|
} else {
|
|
263
|
-
var _query3 = checked ? this.props.query.
|
|
263
|
+
var _query3 = checked ? this.props.query.addSimpleFieldValue(field, value, true, operator) : this.props.query.removeSimpleFieldValue(field, value);
|
|
264
264
|
|
|
265
265
|
this.props.onChange(_query3);
|
|
266
266
|
}
|
|
@@ -370,13 +370,9 @@ export var FieldValueSelectionFilter = /*#__PURE__*/function (_Component) {
|
|
|
370
370
|
listProps: {
|
|
371
371
|
isVirtualized: isOverSearchThreshold || false
|
|
372
372
|
},
|
|
373
|
-
onChange: function onChange(options) {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
if (diff) {
|
|
379
|
-
_this5.onOptionClick(diff.data.optionField, diff.data.value, diff.checked);
|
|
373
|
+
onChange: function onChange(options, event, changedOption) {
|
|
374
|
+
if (changedOption.data) {
|
|
375
|
+
_this5.onOptionClick(changedOption.data.optionField, changedOption.data.value, changedOption.checked);
|
|
380
376
|
}
|
|
381
377
|
}
|
|
382
378
|
}, searchProps), function (list, search) {
|
|
@@ -99,6 +99,22 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
+
_defineProperty(_assertThisInitialized(_this), "ariaSetSize", 0);
|
|
103
|
+
|
|
104
|
+
_defineProperty(_assertThisInitialized(_this), "ariaPosInSetMap", {});
|
|
105
|
+
|
|
106
|
+
_defineProperty(_assertThisInitialized(_this), "calculateAriaSetAttrs", function (optionArray) {
|
|
107
|
+
_this.ariaPosInSetMap = {};
|
|
108
|
+
var latestAriaPosIndex = 0;
|
|
109
|
+
optionArray.forEach(function (option, index) {
|
|
110
|
+
if (!option.isGroupLabel) {
|
|
111
|
+
latestAriaPosIndex++;
|
|
112
|
+
_this.ariaPosInSetMap[index] = latestAriaPosIndex;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
_this.ariaSetSize = latestAriaPosIndex;
|
|
116
|
+
});
|
|
117
|
+
|
|
102
118
|
_defineProperty(_assertThisInitialized(_this), "ListRow", /*#__PURE__*/memo(function (_ref) {
|
|
103
119
|
var data = _ref.data,
|
|
104
120
|
index = _ref.index,
|
|
@@ -142,9 +158,6 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
142
158
|
}, optionRest), prepend, label, append);
|
|
143
159
|
}
|
|
144
160
|
|
|
145
|
-
var labelCount = data.filter(function (option) {
|
|
146
|
-
return option.isGroupLabel;
|
|
147
|
-
}).length;
|
|
148
161
|
var id = makeOptionId(index);
|
|
149
162
|
return ___EmotionJSX(EuiSelectableListItem, _extends({
|
|
150
163
|
key: id,
|
|
@@ -165,8 +178,8 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
165
178
|
disabled: disabled,
|
|
166
179
|
prepend: prepend,
|
|
167
180
|
append: append,
|
|
168
|
-
"aria-posinset": index
|
|
169
|
-
"aria-setsize":
|
|
181
|
+
"aria-posinset": _this.ariaPosInSetMap[index],
|
|
182
|
+
"aria-setsize": _this.ariaSetSize,
|
|
170
183
|
onFocusBadge: onFocusBadge,
|
|
171
184
|
allowExclusions: allowExclusions,
|
|
172
185
|
showIcons: showIcons,
|
|
@@ -323,6 +336,7 @@ export var EuiSelectableList = /*#__PURE__*/function (_Component) {
|
|
|
323
336
|
rest = _objectWithoutProperties(_this$props7, _excluded3);
|
|
324
337
|
|
|
325
338
|
var optionArray = visibleOptions || options;
|
|
339
|
+
this.calculateAriaSetAttrs(optionArray);
|
|
326
340
|
var heightIsFull = forcedHeight === 'full';
|
|
327
341
|
var calculatedHeight = heightIsFull ? false : forcedHeight; // If calculatedHeight is still undefined, then calculate it
|
|
328
342
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
export { EuiSkeletonLoading } from './skeleton_loading';
|
|
9
|
+
export { EuiSkeletonCircle } from './skeleton_circle';
|
|
10
|
+
export { EuiSkeletonText } from './skeleton_text';
|
|
11
|
+
export { EuiSkeletonRectangle } from './skeleton_rectangle';
|
|
12
|
+
export { EuiSkeletonTitle } from './skeleton_title';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import { useEuiTheme } from '../../services';
|
|
15
|
+
import { EuiSkeletonLoading } from './skeleton_loading';
|
|
16
|
+
import { euiSkeletonCircleStyles } from './skeleton_circle.styles';
|
|
17
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
|
+
export var SIZES = ['s', 'm', 'l', 'xl'];
|
|
19
|
+
export var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
20
|
+
var _ref$isLoading = _ref.isLoading,
|
|
21
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
22
|
+
_ref$size = _ref.size,
|
|
23
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
24
|
+
className = _ref.className,
|
|
25
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
26
|
+
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
27
|
+
children = _ref.children,
|
|
28
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
|
|
30
|
+
var euiTheme = useEuiTheme();
|
|
31
|
+
var styles = euiSkeletonCircleStyles(euiTheme);
|
|
32
|
+
var cssStyles = [styles.euiSkeletonCircle, styles[size]];
|
|
33
|
+
return ___EmotionJSX(EuiSkeletonLoading, _extends({
|
|
34
|
+
isLoading: isLoading,
|
|
35
|
+
loadingContent: ___EmotionJSX("div", _extends({
|
|
36
|
+
className: classNames('euiSkeletonCircle', className),
|
|
37
|
+
css: cssStyles
|
|
38
|
+
}, rest)),
|
|
39
|
+
loadedContent: children || '',
|
|
40
|
+
contentAriaLabel: contentAriaLabel
|
|
41
|
+
}, ariaWrapperProps));
|
|
42
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { logicalSizeCSS, mathWithUnits } from '../../global_styling';
|
|
10
|
+
import { euiSkeletonGradientAnimation } from './utils';
|
|
11
|
+
export var euiSkeletonCircleStyles = function euiSkeletonCircleStyles(euiThemeContext) {
|
|
12
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
13
|
+
return {
|
|
14
|
+
euiSkeletonCircle: /*#__PURE__*/css("display:block;border-radius:50%;", euiSkeletonGradientAnimation(euiThemeContext, {
|
|
15
|
+
slideSize: '-70%',
|
|
16
|
+
gradientSize: '280%'
|
|
17
|
+
}), ";;label:euiSkeletonCircle;"),
|
|
18
|
+
// Sizes
|
|
19
|
+
s: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.l), ";;label:s;"),
|
|
20
|
+
m: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.xl), ";;label:m;"),
|
|
21
|
+
l: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.xxl), ";;label:l;"),
|
|
22
|
+
xl: /*#__PURE__*/css(logicalSizeCSS(mathWithUnits(euiTheme.size.base, function (x) {
|
|
23
|
+
return x * 4;
|
|
24
|
+
})), ";;label:xl;")
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent"];
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { EuiScreenReaderLive } from '../accessibility/screen_reader_live';
|
|
14
|
+
import { useEuiI18n } from '../i18n';
|
|
15
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
+
export var EuiSkeletonLoading = function EuiSkeletonLoading(_ref) {
|
|
17
|
+
var _ref$isLoading = _ref.isLoading,
|
|
18
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
19
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
20
|
+
loadingContent = _ref.loadingContent,
|
|
21
|
+
loadedContent = _ref.loadedContent,
|
|
22
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
+
|
|
24
|
+
var loadingAriaLabel = useEuiI18n('euiSkeletonLoading.loadingAriaText', 'Loading {contentAriaLabel}', {
|
|
25
|
+
contentAriaLabel: contentAriaLabel
|
|
26
|
+
});
|
|
27
|
+
var loadedAriaLive = useEuiI18n('euiSkeletonLoading.loadedAriaText', 'Loaded {contentAriaLabel}', {
|
|
28
|
+
contentAriaLabel: contentAriaLabel
|
|
29
|
+
});
|
|
30
|
+
var loadingProps = {
|
|
31
|
+
'aria-label': loadingAriaLabel,
|
|
32
|
+
role: 'progressbar'
|
|
33
|
+
};
|
|
34
|
+
return ___EmotionJSX("div", _extends({
|
|
35
|
+
"aria-busy": isLoading,
|
|
36
|
+
"data-test-subj": "euiSkeletonLoadingAriaWrapper"
|
|
37
|
+
}, rest), isLoading ? /*#__PURE__*/React.cloneElement(loadingContent, loadingProps) : ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiScreenReaderLive, null, loadedAriaLive), loadedContent));
|
|
38
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
5
|
+
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
+
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
13
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
14
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
15
|
+
* Side Public License, v 1.
|
|
16
|
+
*/
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import classNames from 'classnames';
|
|
19
|
+
import { useEuiTheme } from '../../services';
|
|
20
|
+
import { logicalStyles } from '../../global_styling';
|
|
21
|
+
import { EuiSkeletonLoading } from './skeleton_loading';
|
|
22
|
+
import { euiSkeletonRectangleStyles } from './skeleton_rectangle.styles';
|
|
23
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
|
+
export var RADIUS = ['s', 'm', 'none'];
|
|
25
|
+
export var EuiSkeletonRectangle = function EuiSkeletonRectangle(_ref) {
|
|
26
|
+
var _ref$isLoading = _ref.isLoading,
|
|
27
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
28
|
+
_ref$borderRadius = _ref.borderRadius,
|
|
29
|
+
borderRadius = _ref$borderRadius === void 0 ? 's' : _ref$borderRadius,
|
|
30
|
+
_ref$width = _ref.width,
|
|
31
|
+
width = _ref$width === void 0 ? '24px' : _ref$width,
|
|
32
|
+
_ref$height = _ref.height,
|
|
33
|
+
height = _ref$height === void 0 ? '24px' : _ref$height,
|
|
34
|
+
style = _ref.style,
|
|
35
|
+
className = _ref.className,
|
|
36
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
37
|
+
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
38
|
+
children = _ref.children,
|
|
39
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
+
|
|
41
|
+
var euiTheme = useEuiTheme();
|
|
42
|
+
var styles = euiSkeletonRectangleStyles(euiTheme);
|
|
43
|
+
var cssStyles = [styles.euiSkeletonRectangle, styles[borderRadius]];
|
|
44
|
+
return ___EmotionJSX(EuiSkeletonLoading, _extends({
|
|
45
|
+
isLoading: isLoading,
|
|
46
|
+
loadingContent: ___EmotionJSX("div", _extends({
|
|
47
|
+
className: classNames('euiSkeletonRectangle', className),
|
|
48
|
+
css: cssStyles,
|
|
49
|
+
style: logicalStyles(_objectSpread(_objectSpread({}, style), {}, {
|
|
50
|
+
width: width,
|
|
51
|
+
height: height
|
|
52
|
+
}))
|
|
53
|
+
}, rest)),
|
|
54
|
+
loadedContent: children || '',
|
|
55
|
+
contentAriaLabel: contentAriaLabel
|
|
56
|
+
}, ariaWrapperProps));
|
|
57
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
6
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
7
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
8
|
+
* Side Public License, v 1.
|
|
9
|
+
*/
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
import { euiSkeletonGradientAnimation } from './utils';
|
|
12
|
+
|
|
13
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
|
+
name: "ubzie1-none",
|
|
15
|
+
styles: "border-radius:0;label:none;"
|
|
16
|
+
} : {
|
|
17
|
+
name: "ubzie1-none",
|
|
18
|
+
styles: "border-radius:0;label:none;",
|
|
19
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export var euiSkeletonRectangleStyles = function euiSkeletonRectangleStyles(euiThemeContext) {
|
|
23
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
24
|
+
return {
|
|
25
|
+
euiSkeletonRectangle: /*#__PURE__*/css("display:block;", euiSkeletonGradientAnimation(euiThemeContext, {
|
|
26
|
+
slideSize: '-75%',
|
|
27
|
+
gradientSize: '350%'
|
|
28
|
+
}), ";;label:euiSkeletonRectangle;"),
|
|
29
|
+
// Border radius
|
|
30
|
+
s: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.small, ";;label:s;"),
|
|
31
|
+
m: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.medium, ";;label:m;"),
|
|
32
|
+
none: _ref
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import { useEuiTheme } from '../../services';
|
|
15
|
+
import { EuiSkeletonLoading } from './skeleton_loading';
|
|
16
|
+
import { euiSkeletonTextStyles } from './skeleton_text.styles';
|
|
17
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
|
+
export var LINES = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
19
|
+
export var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
20
|
+
var _ref$isLoading = _ref.isLoading,
|
|
21
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
22
|
+
_ref$lines = _ref.lines,
|
|
23
|
+
lines = _ref$lines === void 0 ? 3 : _ref$lines,
|
|
24
|
+
_ref$size = _ref.size,
|
|
25
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
26
|
+
className = _ref.className,
|
|
27
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
28
|
+
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
29
|
+
children = _ref.children,
|
|
30
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
+
|
|
32
|
+
var euiTheme = useEuiTheme();
|
|
33
|
+
var styles = euiSkeletonTextStyles(euiTheme);
|
|
34
|
+
var lineCssStyles = [styles.euiSkeletonText, styles[size]];
|
|
35
|
+
var lineElements = [];
|
|
36
|
+
|
|
37
|
+
for (var i = 0; i < lines; i++) {
|
|
38
|
+
lineElements.push(___EmotionJSX("span", {
|
|
39
|
+
key: i,
|
|
40
|
+
css: lineCssStyles
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return ___EmotionJSX(EuiSkeletonLoading, _extends({
|
|
45
|
+
isLoading: isLoading,
|
|
46
|
+
loadingContent: ___EmotionJSX("span", _extends({
|
|
47
|
+
className: classNames('euiSkeletonText', className)
|
|
48
|
+
}, rest), lineElements),
|
|
49
|
+
loadedContent: children || '',
|
|
50
|
+
contentAriaLabel: contentAriaLabel
|
|
51
|
+
}, ariaWrapperProps));
|
|
52
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { euiFontSize, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
10
|
+
import { euiSkeletonGradientAnimation } from './utils';
|
|
11
|
+
|
|
12
|
+
var calculateLineSize = function calculateLineSize(euiThemeContext, size) {
|
|
13
|
+
var _euiFontSize = euiFontSize(euiThemeContext, 'm', {
|
|
14
|
+
customScale: size
|
|
15
|
+
}),
|
|
16
|
+
fontSize = _euiFontSize.fontSize,
|
|
17
|
+
lineHeight = _euiFontSize.lineHeight;
|
|
18
|
+
|
|
19
|
+
return "\n ".concat(logicalCSS('height', fontSize), "\n ").concat(logicalCSS('margin-top', mathWithUnits([lineHeight, fontSize], function (x, y) {
|
|
20
|
+
return x - y;
|
|
21
|
+
})), "\n ");
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export var euiSkeletonTextStyles = function euiSkeletonTextStyles(euiThemeContext) {
|
|
25
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
26
|
+
return {
|
|
27
|
+
euiSkeletonText: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), " border-radius:", euiTheme.border.radius.small, ";", euiSkeletonGradientAnimation(euiThemeContext), "transform:translateY(-25%);&:last-child:not(:only-child){", logicalCSS('width', '75%'), ";};label:euiSkeletonText;"),
|
|
28
|
+
// Sizes
|
|
29
|
+
m: /*#__PURE__*/css(calculateLineSize(euiThemeContext, 'm'), ";;label:m;"),
|
|
30
|
+
s: /*#__PURE__*/css(calculateLineSize(euiThemeContext, 's'), ";;label:s;"),
|
|
31
|
+
xs: /*#__PURE__*/css(calculateLineSize(euiThemeContext, 'xs'), ";;label:xs;"),
|
|
32
|
+
relative: /*#__PURE__*/css(logicalCSS('height', '1em'), " ", logicalCSS('margin-top', '0.5em'), ";;label:relative;")
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
7
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
8
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
9
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
|
+
* Side Public License, v 1.
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import { useEuiTheme } from '../../services';
|
|
15
|
+
import { EuiSkeletonLoading } from './skeleton_loading';
|
|
16
|
+
import { euiSkeletonTitleStyles } from './skeleton_title.styles';
|
|
17
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
|
+
export var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
19
|
+
var _ref$isLoading = _ref.isLoading,
|
|
20
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
21
|
+
_ref$size = _ref.size,
|
|
22
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
23
|
+
className = _ref.className,
|
|
24
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
25
|
+
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
26
|
+
children = _ref.children,
|
|
27
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
|
|
29
|
+
var euiTheme = useEuiTheme();
|
|
30
|
+
var styles = euiSkeletonTitleStyles(euiTheme);
|
|
31
|
+
var cssStyles = [styles.euiSkeletonTitle, styles[size]];
|
|
32
|
+
return ___EmotionJSX(EuiSkeletonLoading, _extends({
|
|
33
|
+
isLoading: isLoading,
|
|
34
|
+
loadingContent: ___EmotionJSX("span", _extends({
|
|
35
|
+
className: classNames('euiSkeletonTitle', className),
|
|
36
|
+
css: cssStyles
|
|
37
|
+
}, rest)),
|
|
38
|
+
loadedContent: children || '',
|
|
39
|
+
contentAriaLabel: contentAriaLabel
|
|
40
|
+
}, ariaWrapperProps));
|
|
41
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { logicalCSS } from '../../global_styling';
|
|
10
|
+
import { euiTitle } from '../title/title.styles';
|
|
11
|
+
import { euiSkeletonGradientAnimation } from './utils';
|
|
12
|
+
export var euiSkeletonTitleStyles = function euiSkeletonTitleStyles(euiThemeContext) {
|
|
13
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
14
|
+
return {
|
|
15
|
+
euiSkeletonTitle: /*#__PURE__*/css("display:block;", logicalCSS('width', '45%'), ";border-radius:", euiTheme.border.radius.medium, ";", euiSkeletonGradientAnimation(euiThemeContext), ";;label:euiSkeletonTitle;"),
|
|
16
|
+
// Sizes
|
|
17
|
+
l: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'l').lineHeight), ";;label:l;"),
|
|
18
|
+
m: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'm').lineHeight), ";;label:m;"),
|
|
19
|
+
s: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 's').lineHeight), ";;label:s;"),
|
|
20
|
+
xs: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'xs').lineHeight), ";;label:xs;"),
|
|
21
|
+
xxs: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'xxs').lineHeight), ";;label:xxs;"),
|
|
22
|
+
xxxs: /*#__PURE__*/css(logicalCSS('height', euiTitle(euiThemeContext, 'xxxs').lineHeight), ";border-radius:", euiTheme.border.radius.small, ";;label:xxxs;")
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { shade, tint } from '../../services';
|
|
10
|
+
import { euiCanAnimate, logicalCSS } from '../../global_styling';
|
|
11
|
+
import { euiAnimSlideX } from '../../global_styling/utility/animations';
|
|
12
|
+
export var euiSkeletonGradientAnimation = function euiSkeletonGradientAnimation(_ref) {
|
|
13
|
+
var euiTheme = _ref.euiTheme,
|
|
14
|
+
colorMode = _ref.colorMode;
|
|
15
|
+
|
|
16
|
+
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
17
|
+
_ref2$slideSize = _ref2.slideSize,
|
|
18
|
+
slideSize = _ref2$slideSize === void 0 ? '-53%' : _ref2$slideSize,
|
|
19
|
+
_ref2$gradientSize = _ref2.gradientSize,
|
|
20
|
+
gradientSize = _ref2$gradientSize === void 0 ? '220%' : _ref2$gradientSize;
|
|
21
|
+
|
|
22
|
+
var gradientStartStop = colorMode === 'DARK' ? shade(euiTheme.colors.lightShade, 0.12) : tint(euiTheme.colors.lightShade, 0.65);
|
|
23
|
+
var gradientMiddle = colorMode === 'DARK' ? shade(euiTheme.colors.lightShade, 0.24) : tint(euiTheme.colors.lightShade, 0.8);
|
|
24
|
+
return /*#__PURE__*/css("background-color:", gradientStartStop, ";", euiCanAnimate, "{overflow:hidden;isolation:isolate;&::after{content:'';display:block;", logicalCSS('width', gradientSize), " ", logicalCSS('height', '100%'), " background:linear-gradient(\n 137deg,\n ", gradientStartStop, " 45%,\n ", gradientMiddle, " 50%,\n ", gradientStartStop, " 55%\n );animation:", euiAnimSlideX(slideSize), " 1.5s ", euiTheme.animation.resistance, " infinite;}};label:euiSkeletonGradientAnimation;");
|
|
25
|
+
};
|
|
@@ -118,7 +118,8 @@ export var logicalStyles = function logicalStyles(styleObject) {
|
|
|
118
118
|
* @returns `string` Returns the logical CSS properties for height and width
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
export var logicalSizeCSS = function logicalSizeCSS(width
|
|
121
|
+
export var logicalSizeCSS = function logicalSizeCSS(width) {
|
|
122
|
+
var height = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : width;
|
|
122
123
|
return "\n ".concat(logicals.width, ": ").concat(width, ";\n ").concat(logicals.height, ": ").concat(height, ";\n ");
|
|
123
124
|
};
|
|
124
125
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2;
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -13,4 +13,7 @@ import { keyframes } from '@emotion/react';
|
|
|
13
13
|
export var euiAnimFadeIn = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"])));
|
|
14
14
|
export var euiAnimSlideInUp = function euiAnimSlideInUp(size) {
|
|
15
15
|
return keyframes(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateY(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])), size);
|
|
16
|
+
};
|
|
17
|
+
export var euiAnimSlideX = function euiAnimSlideX(size) {
|
|
18
|
+
return keyframes(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n 0% {\n transform: translateX(", ");\n }\n\n 100% {\n transform: translateX(0);\n }\n"])), size);
|
|
16
19
|
};
|