@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,71 @@
|
|
|
1
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
12
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
13
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
14
|
+
* Side Public License, v 1.
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import PropTypes from "prop-types";
|
|
18
|
+
import classNames from 'classnames';
|
|
19
|
+
import { useEuiTheme } from '../../services';
|
|
20
|
+
import { EuiSkeletonLoading } from './skeleton_loading';
|
|
21
|
+
import { euiSkeletonCircleStyles } from './skeleton_circle.styles';
|
|
22
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
|
+
export var SIZES = ['s', 'm', 'l', 'xl'];
|
|
24
|
+
export var EuiSkeletonCircle = function EuiSkeletonCircle(_ref) {
|
|
25
|
+
var _ref$isLoading = _ref.isLoading,
|
|
26
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
27
|
+
_ref$size = _ref.size,
|
|
28
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
29
|
+
className = _ref.className,
|
|
30
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
31
|
+
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
32
|
+
children = _ref.children,
|
|
33
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
|
|
35
|
+
var euiTheme = useEuiTheme();
|
|
36
|
+
var styles = euiSkeletonCircleStyles(euiTheme);
|
|
37
|
+
var cssStyles = [styles.euiSkeletonCircle, styles[size]];
|
|
38
|
+
return ___EmotionJSX(EuiSkeletonLoading, _extends({
|
|
39
|
+
isLoading: isLoading,
|
|
40
|
+
loadingContent: ___EmotionJSX("div", _extends({
|
|
41
|
+
className: classNames('euiSkeletonCircle', className),
|
|
42
|
+
css: cssStyles
|
|
43
|
+
}, rest)),
|
|
44
|
+
loadedContent: children || '',
|
|
45
|
+
contentAriaLabel: contentAriaLabel
|
|
46
|
+
}, ariaWrapperProps));
|
|
47
|
+
};
|
|
48
|
+
EuiSkeletonCircle.propTypes = {
|
|
49
|
+
className: PropTypes.string,
|
|
50
|
+
"aria-label": PropTypes.string,
|
|
51
|
+
"data-test-subj": PropTypes.string,
|
|
52
|
+
css: PropTypes.any,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* When true, shows the loading skeleton component.
|
|
56
|
+
* When false, shows any `children` and announces to screen readers that your content has loaded.
|
|
57
|
+
*/
|
|
58
|
+
isLoading: PropTypes.bool,
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Label your loading sections to provide more helpful context to screen readers.
|
|
62
|
+
* For example, pass "API keys" to have screen readers read "Loading API keys" and "Loaded API keys".
|
|
63
|
+
*/
|
|
64
|
+
contentAriaLabel: PropTypes.string,
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Any optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
68
|
+
*/
|
|
69
|
+
ariaWrapperProps: PropTypes.any,
|
|
70
|
+
size: PropTypes.any
|
|
71
|
+
};
|
|
@@ -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,59 @@
|
|
|
1
|
+
var _excluded = ["isLoading", "contentAriaLabel", "loadingContent", "loadedContent"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
12
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
13
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
14
|
+
* Side Public License, v 1.
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import PropTypes from "prop-types";
|
|
18
|
+
import { EuiScreenReaderLive } from '../accessibility/screen_reader_live';
|
|
19
|
+
import { useEuiI18n } from '../i18n';
|
|
20
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
21
|
+
export var EuiSkeletonLoading = function EuiSkeletonLoading(_ref) {
|
|
22
|
+
var _ref$isLoading = _ref.isLoading,
|
|
23
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
24
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
25
|
+
loadingContent = _ref.loadingContent,
|
|
26
|
+
loadedContent = _ref.loadedContent,
|
|
27
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
|
|
29
|
+
var loadingAriaLabel = useEuiI18n('euiSkeletonLoading.loadingAriaText', 'Loading {contentAriaLabel}', {
|
|
30
|
+
contentAriaLabel: contentAriaLabel
|
|
31
|
+
});
|
|
32
|
+
var loadedAriaLive = useEuiI18n('euiSkeletonLoading.loadedAriaText', 'Loaded {contentAriaLabel}', {
|
|
33
|
+
contentAriaLabel: contentAriaLabel
|
|
34
|
+
});
|
|
35
|
+
var loadingProps = {
|
|
36
|
+
'aria-label': loadingAriaLabel,
|
|
37
|
+
role: 'progressbar'
|
|
38
|
+
};
|
|
39
|
+
return ___EmotionJSX("div", _extends({
|
|
40
|
+
"aria-busy": isLoading,
|
|
41
|
+
"data-test-subj": "euiSkeletonLoadingAriaWrapper"
|
|
42
|
+
}, rest), isLoading ? /*#__PURE__*/React.cloneElement(loadingContent, loadingProps) : ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiScreenReaderLive, null, loadedAriaLive), loadedContent));
|
|
43
|
+
};
|
|
44
|
+
EuiSkeletonLoading.propTypes = {
|
|
45
|
+
className: PropTypes.string,
|
|
46
|
+
"aria-label": PropTypes.string,
|
|
47
|
+
"data-test-subj": PropTypes.string,
|
|
48
|
+
css: PropTypes.any,
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Content to display when loading
|
|
52
|
+
*/
|
|
53
|
+
loadingContent: PropTypes.element.isRequired,
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Content to display when loaded
|
|
57
|
+
*/
|
|
58
|
+
loadedContent: PropTypes.any.isRequired
|
|
59
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var _excluded = ["isLoading", "borderRadius", "width", "height", "style", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
17
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
18
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
19
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
20
|
+
* Side Public License, v 1.
|
|
21
|
+
*/
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import PropTypes from "prop-types";
|
|
24
|
+
import classNames from 'classnames';
|
|
25
|
+
import { useEuiTheme } from '../../services';
|
|
26
|
+
import { logicalStyles } from '../../global_styling';
|
|
27
|
+
import { EuiSkeletonLoading } from './skeleton_loading';
|
|
28
|
+
import { euiSkeletonRectangleStyles } from './skeleton_rectangle.styles';
|
|
29
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
30
|
+
export var RADIUS = ['s', 'm', 'none'];
|
|
31
|
+
export var EuiSkeletonRectangle = function EuiSkeletonRectangle(_ref) {
|
|
32
|
+
var _ref$isLoading = _ref.isLoading,
|
|
33
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
34
|
+
_ref$borderRadius = _ref.borderRadius,
|
|
35
|
+
borderRadius = _ref$borderRadius === void 0 ? 's' : _ref$borderRadius,
|
|
36
|
+
_ref$width = _ref.width,
|
|
37
|
+
width = _ref$width === void 0 ? '24px' : _ref$width,
|
|
38
|
+
_ref$height = _ref.height,
|
|
39
|
+
height = _ref$height === void 0 ? '24px' : _ref$height,
|
|
40
|
+
style = _ref.style,
|
|
41
|
+
className = _ref.className,
|
|
42
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
43
|
+
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
44
|
+
children = _ref.children,
|
|
45
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
46
|
+
|
|
47
|
+
var euiTheme = useEuiTheme();
|
|
48
|
+
var styles = euiSkeletonRectangleStyles(euiTheme);
|
|
49
|
+
var cssStyles = [styles.euiSkeletonRectangle, styles[borderRadius]];
|
|
50
|
+
return ___EmotionJSX(EuiSkeletonLoading, _extends({
|
|
51
|
+
isLoading: isLoading,
|
|
52
|
+
loadingContent: ___EmotionJSX("div", _extends({
|
|
53
|
+
className: classNames('euiSkeletonRectangle', className),
|
|
54
|
+
css: cssStyles,
|
|
55
|
+
style: logicalStyles(_objectSpread(_objectSpread({}, style), {}, {
|
|
56
|
+
width: width,
|
|
57
|
+
height: height
|
|
58
|
+
}))
|
|
59
|
+
}, rest)),
|
|
60
|
+
loadedContent: children || '',
|
|
61
|
+
contentAriaLabel: contentAriaLabel
|
|
62
|
+
}, ariaWrapperProps));
|
|
63
|
+
};
|
|
64
|
+
EuiSkeletonRectangle.propTypes = {
|
|
65
|
+
className: PropTypes.string,
|
|
66
|
+
"aria-label": PropTypes.string,
|
|
67
|
+
"data-test-subj": PropTypes.string,
|
|
68
|
+
css: PropTypes.any,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* When true, shows the loading skeleton component.
|
|
72
|
+
* When false, shows any `children` and announces to screen readers that your content has loaded.
|
|
73
|
+
*/
|
|
74
|
+
isLoading: PropTypes.bool,
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Label your loading sections to provide more helpful context to screen readers.
|
|
78
|
+
* For example, pass "API keys" to have screen readers read "Loading API keys" and "Loaded API keys".
|
|
79
|
+
*/
|
|
80
|
+
contentAriaLabel: PropTypes.string,
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Any optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
84
|
+
*/
|
|
85
|
+
ariaWrapperProps: PropTypes.any,
|
|
86
|
+
width: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired]),
|
|
87
|
+
height: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired]),
|
|
88
|
+
borderRadius: PropTypes.any
|
|
89
|
+
};
|
|
@@ -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,90 @@
|
|
|
1
|
+
var _excluded = ["isLoading", "lines", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
12
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
13
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
14
|
+
* Side Public License, v 1.
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import PropTypes from "prop-types";
|
|
18
|
+
import classNames from 'classnames';
|
|
19
|
+
import { useEuiTheme } from '../../services';
|
|
20
|
+
import { EuiSkeletonLoading } from './skeleton_loading';
|
|
21
|
+
import { euiSkeletonTextStyles } from './skeleton_text.styles';
|
|
22
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
|
+
export var LINES = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
24
|
+
export var EuiSkeletonText = function EuiSkeletonText(_ref) {
|
|
25
|
+
var _ref$isLoading = _ref.isLoading,
|
|
26
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
27
|
+
_ref$lines = _ref.lines,
|
|
28
|
+
lines = _ref$lines === void 0 ? 3 : _ref$lines,
|
|
29
|
+
_ref$size = _ref.size,
|
|
30
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
31
|
+
className = _ref.className,
|
|
32
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
33
|
+
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
34
|
+
children = _ref.children,
|
|
35
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
+
|
|
37
|
+
var euiTheme = useEuiTheme();
|
|
38
|
+
var styles = euiSkeletonTextStyles(euiTheme);
|
|
39
|
+
var lineCssStyles = [styles.euiSkeletonText, styles[size]];
|
|
40
|
+
var lineElements = [];
|
|
41
|
+
|
|
42
|
+
for (var i = 0; i < lines; i++) {
|
|
43
|
+
lineElements.push(___EmotionJSX("span", {
|
|
44
|
+
key: i,
|
|
45
|
+
css: lineCssStyles
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return ___EmotionJSX(EuiSkeletonLoading, _extends({
|
|
50
|
+
isLoading: isLoading,
|
|
51
|
+
loadingContent: ___EmotionJSX("span", _extends({
|
|
52
|
+
className: classNames('euiSkeletonText', className)
|
|
53
|
+
}, rest), lineElements),
|
|
54
|
+
loadedContent: children || '',
|
|
55
|
+
contentAriaLabel: contentAriaLabel
|
|
56
|
+
}, ariaWrapperProps));
|
|
57
|
+
};
|
|
58
|
+
EuiSkeletonText.propTypes = {
|
|
59
|
+
className: PropTypes.string,
|
|
60
|
+
"aria-label": PropTypes.string,
|
|
61
|
+
"data-test-subj": PropTypes.string,
|
|
62
|
+
css: PropTypes.any,
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* When true, shows the loading skeleton component.
|
|
66
|
+
* When false, shows any `children` and announces to screen readers that your content has loaded.
|
|
67
|
+
*/
|
|
68
|
+
isLoading: PropTypes.bool,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Label your loading sections to provide more helpful context to screen readers.
|
|
72
|
+
* For example, pass "API keys" to have screen readers read "Loading API keys" and "Loaded API keys".
|
|
73
|
+
*/
|
|
74
|
+
contentAriaLabel: PropTypes.string,
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Any optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
78
|
+
*/
|
|
79
|
+
ariaWrapperProps: PropTypes.any,
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Number of lines to display (between 1 to 10)
|
|
83
|
+
*/
|
|
84
|
+
lines: PropTypes.any,
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* EuiText size to render
|
|
88
|
+
*/
|
|
89
|
+
size: PropTypes.any
|
|
90
|
+
};
|
|
@@ -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,74 @@
|
|
|
1
|
+
var _excluded = ["isLoading", "size", "className", "contentAriaLabel", "ariaWrapperProps", "children"];
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign || 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
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
12
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
13
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
14
|
+
* Side Public License, v 1.
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import PropTypes from "prop-types";
|
|
18
|
+
import classNames from 'classnames';
|
|
19
|
+
import { useEuiTheme } from '../../services';
|
|
20
|
+
import { EuiSkeletonLoading } from './skeleton_loading';
|
|
21
|
+
import { euiSkeletonTitleStyles } from './skeleton_title.styles';
|
|
22
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
|
+
export var EuiSkeletonTitle = function EuiSkeletonTitle(_ref) {
|
|
24
|
+
var _ref$isLoading = _ref.isLoading,
|
|
25
|
+
isLoading = _ref$isLoading === void 0 ? true : _ref$isLoading,
|
|
26
|
+
_ref$size = _ref.size,
|
|
27
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
28
|
+
className = _ref.className,
|
|
29
|
+
contentAriaLabel = _ref.contentAriaLabel,
|
|
30
|
+
ariaWrapperProps = _ref.ariaWrapperProps,
|
|
31
|
+
children = _ref.children,
|
|
32
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
|
|
34
|
+
var euiTheme = useEuiTheme();
|
|
35
|
+
var styles = euiSkeletonTitleStyles(euiTheme);
|
|
36
|
+
var cssStyles = [styles.euiSkeletonTitle, styles[size]];
|
|
37
|
+
return ___EmotionJSX(EuiSkeletonLoading, _extends({
|
|
38
|
+
isLoading: isLoading,
|
|
39
|
+
loadingContent: ___EmotionJSX("span", _extends({
|
|
40
|
+
className: classNames('euiSkeletonTitle', className),
|
|
41
|
+
css: cssStyles
|
|
42
|
+
}, rest)),
|
|
43
|
+
loadedContent: children || '',
|
|
44
|
+
contentAriaLabel: contentAriaLabel
|
|
45
|
+
}, ariaWrapperProps));
|
|
46
|
+
};
|
|
47
|
+
EuiSkeletonTitle.propTypes = {
|
|
48
|
+
className: PropTypes.string,
|
|
49
|
+
"aria-label": PropTypes.string,
|
|
50
|
+
"data-test-subj": PropTypes.string,
|
|
51
|
+
css: PropTypes.any,
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* When true, shows the loading skeleton component.
|
|
55
|
+
* When false, shows any `children` and announces to screen readers that your content has loaded.
|
|
56
|
+
*/
|
|
57
|
+
isLoading: PropTypes.bool,
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Label your loading sections to provide more helpful context to screen readers.
|
|
61
|
+
* For example, pass "API keys" to have screen readers read "Loading API keys" and "Loaded API keys".
|
|
62
|
+
*/
|
|
63
|
+
contentAriaLabel: PropTypes.string,
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Any optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
67
|
+
*/
|
|
68
|
+
ariaWrapperProps: PropTypes.any,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* EuiTitle size to render
|
|
72
|
+
*/
|
|
73
|
+
size: PropTypes.any
|
|
74
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -298,7 +298,7 @@ EuiSuggest.propTypes = {
|
|
|
298
298
|
* Takes `iconType` for EuiIcon and 'color'. 'color' can be tint1 through tint9.
|
|
299
299
|
*/
|
|
300
300
|
type: PropTypes.shape({
|
|
301
|
-
iconType: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired,
|
|
301
|
+
iconType: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "error", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired,
|
|
302
302
|
color: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.oneOf(["tint0", "tint1", "tint2", "tint3", "tint4", "tint5", "tint6", "tint7", "tint8", "tint9", "tint10"]).isRequired]).isRequired
|
|
303
303
|
}).isRequired,
|
|
304
304
|
|