@elastic/eui 119.0.0 → 119.1.0-snapshot.1787665877015
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-icons.json +90 -87
- package/dist/svgs/cloud_bolt.svg +4 -0
- package/dist/svgs/cloud_rain.svg +4 -0
- package/dist/svgs/cloud_sun.svg +4 -0
- package/dist/svgs/cube.svg +3 -0
- package/dist/svgs/cursor_default.svg +3 -0
- package/dist/svgs/kubernetes_namespace.svg +4 -0
- package/dist/svgs/log_in.svg +4 -0
- package/dist/svgs/memory.svg +1 -10
- package/dist/svgs/product_timelion.svg +3 -0
- package/dist/svgs/product_tsvb.svg +5 -0
- package/dist/svgs/push.svg +4 -0
- package/dist/svgs/route_split.svg +3 -0
- package/dist/svgs/transition_right_in.svg +4 -0
- package/dist/svgs/transition_right_out.svg +4 -0
- package/dist/svgs/wrench.svg +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 +4 -4
- package/es/components/basic_table/in_memory_table.js +4 -4
- package/es/components/button/button.js +20 -6
- 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 +180 -20
- package/es/components/button/button_group/button_group.styles.js +61 -9
- package/es/components/button/button_group/use_button_group_selection.js +30 -0
- package/es/components/button/button_icon/button_icon.js +21 -8
- package/es/components/button/split_button/split_button.js +39 -16
- package/es/components/button/split_button/split_button.styles.js +28 -32
- package/es/components/button/split_button/split_button_actions.js +16 -5
- package/es/components/button/use_button_common_props.js +18 -5
- package/es/components/call_out/call_out.js +2 -2
- package/es/components/card/card.js +1 -1
- 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/context_menu/context_menu_item.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +27 -27
- package/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
- package/es/components/datagrid/body/data_grid_body.js +13 -13
- package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/es/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
- package/es/components/datagrid/body/header/column_actions.js +3 -1
- package/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
- package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -13
- package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
- package/es/components/datagrid/body/header/data_grid_header_row.js +6 -0
- package/es/components/datagrid/controls/column_sorting.js +13 -13
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/utils/in_memory.js +12 -12
- package/es/components/datagrid/utils/last_copy_column.js +11 -0
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +224 -253
- package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/flyout/flyout_menu/flyout_menu.js +39 -14
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/file_picker/file_picker.js +187 -224
- package/es/components/form/file_picker/file_picker.styles.js +1 -1
- package/es/components/form/form_control_button/form_control_button.js +1 -1
- package/es/components/form/form_control_layout/append_prepend/form_append_prepend.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/text_area/text_area.js +2 -2
- 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/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
- package/es/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
- package/es/components/icon/assets/cloud_sun.js +33 -0
- package/es/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
- package/es/components/icon/assets/cursor_default.js +35 -0
- package/es/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
- package/es/components/icon/assets/{kql_function.js → log_in.js} +5 -3
- package/es/components/icon/assets/memory.js +1 -3
- package/es/components/icon/assets/product_timelion.js +33 -0
- package/es/components/icon/assets/product_tsvb.js +37 -0
- package/es/components/icon/assets/{namespace.js → push.js} +3 -6
- package/es/components/icon/assets/route_split.js +33 -0
- package/es/components/icon/assets/transition_right_in.js +35 -0
- package/es/components/icon/assets/transition_right_out.js +35 -0
- package/es/components/icon/assets/wrench.js +1 -3
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/es/components/icon/icon_map.js +96 -18
- package/es/components/icon/svgs/cloud_bolt.svg +4 -0
- package/es/components/icon/svgs/cloud_rain.svg +4 -0
- package/es/components/icon/svgs/cloud_sun.svg +4 -0
- package/es/components/icon/svgs/cube.svg +3 -0
- package/es/components/icon/svgs/cursor_default.svg +3 -0
- package/es/components/icon/svgs/kubernetes_namespace.svg +4 -0
- package/es/components/icon/svgs/log_in.svg +4 -0
- package/es/components/icon/svgs/memory.svg +1 -10
- package/es/components/icon/svgs/product_timelion.svg +3 -0
- package/es/components/icon/svgs/product_tsvb.svg +5 -0
- package/es/components/icon/svgs/push.svg +4 -0
- package/es/components/icon/svgs/route_split.svg +3 -0
- package/es/components/icon/svgs/transition_right_in.svg +4 -0
- package/es/components/icon/svgs/transition_right_out.svg +4 -0
- package/es/components/icon/svgs/wrench.svg +1 -1
- 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_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/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/resizable_container/resizable_collapse_button.js +4 -4
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- 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/table/table_header_cell.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +2 -2
- package/es/components/toast/toast.js +2 -2
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/global_styling/mixins/_button.js +6 -0
- package/es/services/accessibility/html_id_generator.js +26 -1
- package/eui.d.ts +425 -417
- package/i18ntokens.json +2678 -2660
- 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 +4 -4
- package/lib/components/basic_table/in_memory_table.js +4 -4
- package/lib/components/button/button.js +20 -6
- 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 +179 -21
- package/lib/components/button/button_group/button_group.styles.js +60 -8
- package/lib/components/button/button_group/use_button_group_selection.js +36 -0
- package/lib/components/button/button_icon/button_icon.js +21 -8
- package/lib/components/button/split_button/split_button.js +37 -15
- package/lib/components/button/split_button/split_button.styles.js +29 -31
- package/lib/components/button/split_button/split_button_actions.js +15 -4
- package/lib/components/button/use_button_common_props.js +18 -5
- package/lib/components/call_out/call_out.js +2 -2
- package/lib/components/card/card.js +1 -1
- 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/context_menu/context_menu_item.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +27 -27
- package/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
- package/lib/components/datagrid/body/data_grid_body.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/lib/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
- package/lib/components/datagrid/body/header/column_actions.js +3 -1
- package/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -13
- package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
- package/lib/components/datagrid/body/header/data_grid_header_row.js +6 -0
- package/lib/components/datagrid/controls/column_sorting.js +13 -13
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +12 -12
- package/lib/components/datagrid/utils/last_copy_column.js +17 -0
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +224 -253
- package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/flyout/flyout_menu/flyout_menu.js +39 -14
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/file_picker/file_picker.js +193 -227
- package/lib/components/form/file_picker/file_picker.styles.js +1 -1
- package/lib/components/form/form_control_button/form_control_button.js +1 -1
- package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.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/text_area/text_area.js +2 -2
- 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/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
- package/lib/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
- package/lib/components/icon/assets/cloud_sun.js +40 -0
- package/lib/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
- package/lib/components/icon/assets/cursor_default.js +42 -0
- package/lib/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
- package/lib/components/icon/assets/{kql_function.js → log_in.js} +5 -3
- package/lib/components/icon/assets/memory.js +1 -3
- package/lib/components/icon/assets/product_timelion.js +40 -0
- package/lib/components/icon/assets/product_tsvb.js +44 -0
- package/lib/components/icon/assets/{namespace.js → push.js} +3 -6
- package/lib/components/icon/assets/route_split.js +40 -0
- package/lib/components/icon/assets/transition_right_in.js +42 -0
- package/lib/components/icon/assets/transition_right_out.js +42 -0
- package/lib/components/icon/assets/wrench.js +1 -3
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/lib/components/icon/icon_map.js +120 -18
- package/lib/components/icon/svgs/cloud_bolt.svg +4 -0
- package/lib/components/icon/svgs/cloud_rain.svg +4 -0
- package/lib/components/icon/svgs/cloud_sun.svg +4 -0
- package/lib/components/icon/svgs/cube.svg +3 -0
- package/lib/components/icon/svgs/cursor_default.svg +3 -0
- package/lib/components/icon/svgs/kubernetes_namespace.svg +4 -0
- package/lib/components/icon/svgs/log_in.svg +4 -0
- package/lib/components/icon/svgs/memory.svg +1 -10
- package/lib/components/icon/svgs/product_timelion.svg +3 -0
- package/lib/components/icon/svgs/product_tsvb.svg +5 -0
- package/lib/components/icon/svgs/push.svg +4 -0
- package/lib/components/icon/svgs/route_split.svg +3 -0
- package/lib/components/icon/svgs/transition_right_in.svg +4 -0
- package/lib/components/icon/svgs/transition_right_out.svg +4 -0
- package/lib/components/icon/svgs/wrench.svg +1 -1
- 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_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/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/resizable_container/resizable_collapse_button.js +4 -4
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- 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/table/table_header_cell.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +2 -2
- package/lib/components/toast/toast.js +2 -2
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/global_styling/mixins/_button.js +6 -0
- package/lib/services/accessibility/html_id_generator.js +26 -1
- package/optimize/es/components/button/button.js +20 -6
- package/optimize/es/components/button/button_group/button_group.js +89 -10
- package/optimize/es/components/button/button_group/button_group.styles.js +61 -9
- package/optimize/es/components/button/button_group/use_button_group_selection.js +30 -0
- package/optimize/es/components/button/button_icon/button_icon.js +20 -7
- package/optimize/es/components/button/split_button/split_button.js +36 -16
- package/optimize/es/components/button/split_button/split_button.styles.js +28 -32
- package/optimize/es/components/button/split_button/split_button_actions.js +16 -5
- package/optimize/es/components/button/use_button_common_props.js +18 -5
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +3 -3
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
- package/optimize/es/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
- package/optimize/es/components/datagrid/body/header/column_actions.js +3 -1
- package/optimize/es/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +3 -0
- package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +7 -3
- package/optimize/es/components/datagrid/body/header/data_grid_header_row.js +6 -0
- package/optimize/es/components/datagrid/utils/last_copy_column.js +11 -0
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +220 -225
- package/optimize/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/optimize/es/components/flyout/flyout_menu/flyout_menu.js +32 -9
- package/optimize/es/components/form/file_picker/file_picker.js +182 -216
- package/optimize/es/components/form/file_picker/file_picker.styles.js +1 -1
- package/optimize/es/components/icon/assets/{cloud_stormy.js → cloud_bolt.js} +5 -3
- package/optimize/es/components/icon/assets/{cloud_sunny.js → cloud_rain.js} +5 -3
- package/optimize/es/components/icon/assets/cloud_sun.js +32 -0
- package/optimize/es/components/icon/assets/{kubernetes_pod.js → cube.js} +3 -3
- package/optimize/es/components/icon/assets/cursor_default.js +34 -0
- package/optimize/es/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
- package/optimize/es/components/icon/assets/{kql_function.js → log_in.js} +5 -3
- package/optimize/es/components/icon/assets/memory.js +1 -3
- package/optimize/es/components/icon/assets/product_timelion.js +32 -0
- package/optimize/es/components/icon/assets/product_tsvb.js +36 -0
- package/optimize/es/components/icon/assets/{namespace.js → push.js} +3 -6
- package/optimize/es/components/icon/assets/route_split.js +32 -0
- package/optimize/es/components/icon/assets/transition_right_in.js +34 -0
- package/optimize/es/components/icon/assets/transition_right_out.js +34 -0
- package/optimize/es/components/icon/assets/wrench.js +1 -3
- package/optimize/es/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/es/components/icon/icon_map.js +96 -18
- package/optimize/es/components/icon/svgs/cloud_bolt.svg +4 -0
- package/optimize/es/components/icon/svgs/cloud_rain.svg +4 -0
- package/optimize/es/components/icon/svgs/cloud_sun.svg +4 -0
- package/optimize/es/components/icon/svgs/cube.svg +3 -0
- package/optimize/es/components/icon/svgs/cursor_default.svg +3 -0
- package/optimize/es/components/icon/svgs/kubernetes_namespace.svg +4 -0
- package/optimize/es/components/icon/svgs/log_in.svg +4 -0
- package/optimize/es/components/icon/svgs/memory.svg +1 -10
- package/optimize/es/components/icon/svgs/product_timelion.svg +3 -0
- package/optimize/es/components/icon/svgs/product_tsvb.svg +5 -0
- package/optimize/es/components/icon/svgs/push.svg +4 -0
- package/optimize/es/components/icon/svgs/route_split.svg +3 -0
- package/optimize/es/components/icon/svgs/transition_right_in.svg +4 -0
- package/optimize/es/components/icon/svgs/transition_right_out.svg +4 -0
- package/optimize/es/components/icon/svgs/wrench.svg +1 -1
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +4 -4
- package/optimize/es/global_styling/mixins/_button.js +6 -0
- package/optimize/es/services/accessibility/html_id_generator.js +26 -1
- package/optimize/lib/components/button/button.js +20 -6
- package/optimize/lib/components/button/button_group/button_group.js +89 -11
- package/optimize/lib/components/button/button_group/button_group.styles.js +60 -8
- package/optimize/lib/components/button/button_group/use_button_group_selection.js +36 -0
- package/optimize/lib/components/button/button_icon/button_icon.js +20 -7
- package/optimize/lib/components/button/split_button/split_button.js +35 -15
- package/optimize/lib/components/button/split_button/split_button.styles.js +29 -31
- package/optimize/lib/components/button/split_button/split_button_actions.js +15 -4
- package/optimize/lib/components/button/use_button_common_props.js +18 -5
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +3 -3
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
- package/optimize/lib/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
- package/optimize/lib/components/datagrid/body/header/column_actions.js +3 -1
- package/optimize/lib/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +3 -0
- package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +7 -3
- package/optimize/lib/components/datagrid/body/header/data_grid_header_row.js +6 -0
- package/optimize/lib/components/datagrid/utils/last_copy_column.js +17 -0
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select.js +219 -224
- package/optimize/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/optimize/lib/components/flyout/flyout_menu/flyout_menu.js +32 -9
- package/optimize/lib/components/form/file_picker/file_picker.js +183 -215
- package/optimize/lib/components/form/file_picker/file_picker.styles.js +1 -1
- package/optimize/lib/components/icon/assets/{kubernetes_pod.js → cloud_bolt.js} +5 -3
- package/optimize/lib/components/icon/assets/{cloud_stormy.js → cloud_rain.js} +5 -3
- package/optimize/lib/components/icon/assets/cloud_sun.js +40 -0
- package/optimize/lib/components/icon/assets/cube.js +40 -0
- package/{test-env/components/icon/assets/kubernetes_pod.js → optimize/lib/components/icon/assets/cursor_default.js} +5 -3
- package/optimize/lib/components/icon/assets/{cloud_drizzle.js → kubernetes_namespace.js} +5 -3
- package/{test-env/components/icon/assets/kql_function.js → optimize/lib/components/icon/assets/log_in.js} +5 -3
- package/optimize/lib/components/icon/assets/memory.js +1 -3
- package/optimize/lib/components/icon/assets/product_timelion.js +40 -0
- package/optimize/lib/components/icon/assets/product_tsvb.js +44 -0
- package/{test-env/components/icon/assets/namespace.js → optimize/lib/components/icon/assets/push.js} +3 -6
- package/optimize/lib/components/icon/assets/route_split.js +40 -0
- package/optimize/lib/components/icon/assets/transition_right_in.js +42 -0
- package/optimize/lib/components/icon/assets/transition_right_out.js +42 -0
- package/optimize/lib/components/icon/assets/wrench.js +1 -3
- package/optimize/lib/components/icon/icon_glyphs.a11y.js +1 -1
- package/optimize/lib/components/icon/icon_map.js +120 -18
- package/optimize/lib/components/icon/svgs/cloud_bolt.svg +4 -0
- package/optimize/lib/components/icon/svgs/cloud_rain.svg +4 -0
- package/optimize/lib/components/icon/svgs/cloud_sun.svg +4 -0
- package/optimize/lib/components/icon/svgs/cube.svg +3 -0
- package/optimize/lib/components/icon/svgs/cursor_default.svg +3 -0
- package/optimize/lib/components/icon/svgs/kubernetes_namespace.svg +4 -0
- package/optimize/lib/components/icon/svgs/log_in.svg +4 -0
- package/optimize/lib/components/icon/svgs/memory.svg +1 -10
- package/optimize/lib/components/icon/svgs/product_timelion.svg +3 -0
- package/optimize/lib/components/icon/svgs/product_tsvb.svg +5 -0
- package/optimize/lib/components/icon/svgs/push.svg +4 -0
- package/optimize/lib/components/icon/svgs/route_split.svg +3 -0
- package/optimize/lib/components/icon/svgs/transition_right_in.svg +4 -0
- package/optimize/lib/components/icon/svgs/transition_right_out.svg +4 -0
- package/optimize/lib/components/icon/svgs/wrench.svg +1 -1
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +4 -4
- package/optimize/lib/global_styling/mixins/_button.js +6 -0
- package/optimize/lib/services/accessibility/html_id_generator.js +26 -1
- package/package.json +18 -23
- 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 +4 -4
- package/test-env/components/basic_table/in_memory_table.js +4 -4
- package/test-env/components/button/button.js +20 -6
- 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 +177 -21
- package/test-env/components/button/button_group/button_group.styles.js +60 -8
- package/test-env/components/button/button_group/use_button_group_selection.js +36 -0
- package/test-env/components/button/button_icon/button_icon.js +21 -8
- package/test-env/components/button/split_button/split_button.js +35 -15
- package/test-env/components/button/split_button/split_button.styles.js +29 -31
- package/test-env/components/button/split_button/split_button_actions.js +15 -4
- package/test-env/components/button/use_button_common_props.js +18 -5
- package/test-env/components/call_out/call_out.js +2 -2
- package/test-env/components/card/card.js +1 -1
- 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/context_menu/context_menu_item.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +27 -27
- package/test-env/components/datagrid/body/cell/data_grid_cell_wrapper.js +4 -1
- package/test-env/components/datagrid/body/data_grid_body.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/test-env/components/datagrid/body/footer/data_grid_footer_row.js +5 -2
- package/test-env/components/datagrid/body/header/column_actions.js +3 -1
- package/test-env/components/datagrid/body/header/data_grid_control_header_cell.js +2 -1
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -13
- package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.js +9 -3
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +6 -0
- package/test-env/components/datagrid/controls/column_sorting.js +13 -13
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +12 -12
- package/test-env/components/datagrid/utils/last_copy_column.js +17 -0
- 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/date_picker/super_date_picker/quick_select_popover/quick_select.js +218 -249
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/flyout/flyout_menu/flyout_menu.js +39 -14
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/file_picker/file_picker.js +184 -216
- package/test-env/components/form/file_picker/file_picker.styles.js +1 -1
- package/test-env/components/form/form_control_button/form_control_button.js +1 -1
- package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.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/text_area/text_area.js +2 -2
- 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/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/cloud_bolt.js +42 -0
- package/{optimize/lib/components/icon/assets/cloud_sunny.js → test-env/components/icon/assets/cloud_rain.js} +5 -3
- package/test-env/components/icon/assets/cloud_sun.js +40 -0
- package/test-env/components/icon/assets/cube.js +40 -0
- package/test-env/components/icon/assets/cursor_default.js +42 -0
- package/test-env/components/icon/assets/kubernetes_namespace.js +42 -0
- package/{optimize/lib/components/icon/assets/kql_function.js → test-env/components/icon/assets/log_in.js} +5 -3
- package/test-env/components/icon/assets/memory.js +1 -3
- package/test-env/components/icon/assets/product_timelion.js +40 -0
- package/test-env/components/icon/assets/product_tsvb.js +44 -0
- package/{optimize/lib/components/icon/assets/namespace.js → test-env/components/icon/assets/push.js} +3 -6
- package/test-env/components/icon/assets/route_split.js +40 -0
- package/test-env/components/icon/assets/transition_right_in.js +42 -0
- package/test-env/components/icon/assets/transition_right_out.js +42 -0
- package/test-env/components/icon/assets/wrench.js +1 -3
- package/test-env/components/icon/icon_glyphs.a11y.js +1 -1
- package/test-env/components/icon/icon_map.js +120 -18
- 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_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/page/page_header/page_header_content.js +1 -1
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/resizable_container/resizable_collapse_button.js +4 -4
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- 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/table/table_header_cell.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +2 -2
- package/test-env/components/toast/toast.js +2 -2
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/global_styling/mixins/_button.js +6 -0
- package/test-env/services/accessibility/html_id_generator.js +11 -0
- package/dist/svgs/cloud_drizzle.svg +0 -3
- package/dist/svgs/cloud_stormy.svg +0 -3
- package/dist/svgs/cloud_sunny.svg +0 -3
- package/dist/svgs/kql_function.svg +0 -5
- package/dist/svgs/kubernetes_pod.svg +0 -3
- package/dist/svgs/menu_down.svg +0 -3
- package/dist/svgs/menu_up.svg +0 -3
- package/dist/svgs/namespace.svg +0 -3
- package/dist/svgs/vis_timelion.svg +0 -3
- package/dist/svgs/vis_visual_builder.svg +0 -3
- package/es/components/icon/assets/menu_down.js +0 -33
- package/es/components/icon/assets/menu_up.js +0 -33
- package/es/components/icon/assets/vis_timelion.js +0 -33
- package/es/components/icon/assets/vis_visual_builder.js +0 -33
- package/es/components/icon/svgs/cloud_drizzle.svg +0 -3
- package/es/components/icon/svgs/cloud_stormy.svg +0 -3
- package/es/components/icon/svgs/cloud_sunny.svg +0 -3
- package/es/components/icon/svgs/kql_function.svg +0 -5
- package/es/components/icon/svgs/kubernetes_pod.svg +0 -3
- package/es/components/icon/svgs/menu_down.svg +0 -3
- package/es/components/icon/svgs/menu_up.svg +0 -3
- package/es/components/icon/svgs/namespace.svg +0 -3
- package/es/components/icon/svgs/vis_timelion.svg +0 -3
- package/es/components/icon/svgs/vis_visual_builder.svg +0 -3
- package/lib/components/icon/assets/menu_down.js +0 -40
- package/lib/components/icon/assets/menu_up.js +0 -40
- package/lib/components/icon/assets/vis_timelion.js +0 -40
- package/lib/components/icon/assets/vis_visual_builder.js +0 -40
- package/lib/components/icon/svgs/cloud_drizzle.svg +0 -3
- package/lib/components/icon/svgs/cloud_stormy.svg +0 -3
- package/lib/components/icon/svgs/cloud_sunny.svg +0 -3
- package/lib/components/icon/svgs/kql_function.svg +0 -5
- package/lib/components/icon/svgs/kubernetes_pod.svg +0 -3
- package/lib/components/icon/svgs/menu_down.svg +0 -3
- package/lib/components/icon/svgs/menu_up.svg +0 -3
- package/lib/components/icon/svgs/namespace.svg +0 -3
- package/lib/components/icon/svgs/vis_timelion.svg +0 -3
- package/lib/components/icon/svgs/vis_visual_builder.svg +0 -3
- package/optimize/es/components/icon/assets/menu_down.js +0 -32
- package/optimize/es/components/icon/assets/menu_up.js +0 -32
- package/optimize/es/components/icon/assets/vis_timelion.js +0 -32
- package/optimize/es/components/icon/assets/vis_visual_builder.js +0 -32
- package/optimize/es/components/icon/svgs/cloud_drizzle.svg +0 -3
- package/optimize/es/components/icon/svgs/cloud_stormy.svg +0 -3
- package/optimize/es/components/icon/svgs/cloud_sunny.svg +0 -3
- package/optimize/es/components/icon/svgs/kql_function.svg +0 -5
- package/optimize/es/components/icon/svgs/kubernetes_pod.svg +0 -3
- package/optimize/es/components/icon/svgs/menu_down.svg +0 -3
- package/optimize/es/components/icon/svgs/menu_up.svg +0 -3
- package/optimize/es/components/icon/svgs/namespace.svg +0 -3
- package/optimize/es/components/icon/svgs/vis_timelion.svg +0 -3
- package/optimize/es/components/icon/svgs/vis_visual_builder.svg +0 -3
- package/optimize/lib/components/icon/assets/menu_down.js +0 -40
- package/optimize/lib/components/icon/assets/menu_up.js +0 -40
- package/optimize/lib/components/icon/assets/vis_timelion.js +0 -40
- package/optimize/lib/components/icon/assets/vis_visual_builder.js +0 -40
- package/optimize/lib/components/icon/svgs/cloud_drizzle.svg +0 -3
- package/optimize/lib/components/icon/svgs/cloud_stormy.svg +0 -3
- package/optimize/lib/components/icon/svgs/cloud_sunny.svg +0 -3
- package/optimize/lib/components/icon/svgs/kql_function.svg +0 -5
- package/optimize/lib/components/icon/svgs/kubernetes_pod.svg +0 -3
- package/optimize/lib/components/icon/svgs/menu_down.svg +0 -3
- package/optimize/lib/components/icon/svgs/menu_up.svg +0 -3
- package/optimize/lib/components/icon/svgs/namespace.svg +0 -3
- package/optimize/lib/components/icon/svgs/vis_timelion.svg +0 -3
- package/optimize/lib/components/icon/svgs/vis_visual_builder.svg +0 -3
- package/test-env/components/icon/assets/cloud_drizzle.js +0 -40
- package/test-env/components/icon/assets/cloud_stormy.js +0 -40
- package/test-env/components/icon/assets/cloud_sunny.js +0 -40
- package/test-env/components/icon/assets/menu_down.js +0 -40
- package/test-env/components/icon/assets/menu_up.js +0 -40
- package/test-env/components/icon/assets/vis_timelion.js +0 -40
- package/test-env/components/icon/assets/vis_visual_builder.js +0 -40
|
@@ -5,16 +5,11 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.EuiFilePicker = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
14
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
15
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
16
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
15
|
var _services = require("../../../services");
|
|
@@ -28,224 +23,197 @@ var _validatable_control = require("../validatable_control");
|
|
|
28
23
|
var _form_control_layout_clear_button = require("../form_control_layout/form_control_layout_clear_button");
|
|
29
24
|
var _file_picker = require("./file_picker.styles");
|
|
30
25
|
var _react2 = require("@emotion/react");
|
|
31
|
-
var _excluded = ["
|
|
32
|
-
|
|
33
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
34
|
-
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
35
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*
|
|
26
|
+
var _excluded = ["id", "name", "initialPromptText", "className", "disabled", "compressed", "onChange", "isInvalid", "fullWidth", "isLoading", "display", "files"];
|
|
27
|
+
/*
|
|
36
28
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
37
29
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
38
30
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
39
31
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
40
32
|
* Side Public License, v 1.
|
|
41
33
|
*/
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
if (files.length > 1) {
|
|
57
|
-
return (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
58
|
-
token: "euiFilePicker.filesSelected",
|
|
59
|
-
default: "{fileCount} files selected",
|
|
60
|
-
values: {
|
|
61
|
-
fileCount: files.length
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return files[0].name;
|
|
66
|
-
});
|
|
67
|
-
(0, _defineProperty2.default)(_this, "state", {
|
|
68
|
-
promptText: _this.props.files ? _this.getPromptTextFromFileList(_this.props.files) : null,
|
|
69
|
-
isHoveringDrop: false
|
|
70
|
-
});
|
|
71
|
-
(0, _defineProperty2.default)(_this, "handleChange", function () {
|
|
72
|
-
if (!_this.fileInput) return;
|
|
73
|
-
if (_this.fileInput.files && _this.fileInput.files.length === 1) {
|
|
74
|
-
_this.setState({
|
|
75
|
-
promptText: _this.fileInput.value.split('\\').pop()
|
|
76
|
-
});
|
|
77
|
-
} else {
|
|
78
|
-
_this.setState({
|
|
79
|
-
promptText: _this.getPromptTextFromFileList(_this.fileInput.files ? Array.from(_this.fileInput.files) : null)
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
var onChange = _this.props.onChange;
|
|
83
|
-
if (onChange) {
|
|
84
|
-
onChange(_this.fileInput.files && _this.fileInput.files.length > 0 ? _this.fileInput.files : null);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
(0, _defineProperty2.default)(_this, "removeFiles", function (e) {
|
|
88
|
-
if (e) {
|
|
89
|
-
e.stopPropagation();
|
|
90
|
-
e.preventDefault();
|
|
91
|
-
}
|
|
92
|
-
if (!_this.fileInput) return;
|
|
93
|
-
_this.fileInput.value = '';
|
|
94
|
-
_this.handleChange();
|
|
95
|
-
});
|
|
96
|
-
(0, _defineProperty2.default)(_this, "showDrop", function () {
|
|
97
|
-
if (!_this.props.disabled) {
|
|
98
|
-
_this.setState({
|
|
99
|
-
isHoveringDrop: true
|
|
100
|
-
});
|
|
34
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
35
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
36
|
+
var getPromptTextFromFileList = function getPromptTextFromFileList(files) {
|
|
37
|
+
if (!files || files.length === 0) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
if (files.length > 1) {
|
|
41
|
+
return (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
42
|
+
token: "euiFilePicker.filesSelected",
|
|
43
|
+
default: "{fileCount} files selected",
|
|
44
|
+
values: {
|
|
45
|
+
fileCount: files.length
|
|
101
46
|
}
|
|
102
47
|
});
|
|
103
|
-
(0, _defineProperty2.default)(_this, "hideDrop", function () {
|
|
104
|
-
_this.setState({
|
|
105
|
-
isHoveringDrop: false
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
return _this;
|
|
109
48
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
value: function componentDidUpdate(prevProps) {
|
|
114
|
-
// Update prompt text when files prop changes
|
|
115
|
-
if (this.props.files !== prevProps.files) {
|
|
116
|
-
var _this$props$files;
|
|
117
|
-
this.setState({
|
|
118
|
-
promptText: this.getPromptTextFromFileList((_this$props$files = this.props.files) !== null && _this$props$files !== void 0 ? _this$props$files : null)
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}, {
|
|
123
|
-
key: "render",
|
|
124
|
-
value: function render() {
|
|
125
|
-
var _this2 = this;
|
|
126
|
-
var _ref = this.context,
|
|
127
|
-
defaultFullWidth = _ref.defaultFullWidth;
|
|
128
|
-
return (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
129
|
-
token: "euiFilePicker.removeSelectedAriaLabel",
|
|
130
|
-
default: "Remove selected files"
|
|
131
|
-
}, function (removeSelectedAriaLabel) {
|
|
132
|
-
var _this2$props = _this2.props,
|
|
133
|
-
stylesMemoizer = _this2$props.stylesMemoizer,
|
|
134
|
-
id = _this2$props.id,
|
|
135
|
-
name = _this2$props.name,
|
|
136
|
-
initialPromptText = _this2$props.initialPromptText,
|
|
137
|
-
className = _this2$props.className,
|
|
138
|
-
disabled = _this2$props.disabled,
|
|
139
|
-
compressed = _this2$props.compressed,
|
|
140
|
-
onChange = _this2$props.onChange,
|
|
141
|
-
isInvalid = _this2$props.isInvalid,
|
|
142
|
-
_this2$props$fullWidt = _this2$props.fullWidth,
|
|
143
|
-
fullWidth = _this2$props$fullWidt === void 0 ? defaultFullWidth : _this2$props$fullWidt,
|
|
144
|
-
isLoading = _this2$props.isLoading,
|
|
145
|
-
display = _this2$props.display,
|
|
146
|
-
files = _this2$props.files,
|
|
147
|
-
rest = (0, _objectWithoutProperties2.default)(_this2$props, _excluded);
|
|
148
|
-
var promptId = "".concat(id || _this2.generatedId, "-filePicker__prompt");
|
|
149
|
-
var isOverridingInitialPrompt = _this2.state.promptText != null;
|
|
150
|
-
var normalFormControl = display === 'default';
|
|
151
|
-
var classes = (0, _classnames.default)('euiFilePicker', {
|
|
152
|
-
'euiFilePicker-isDroppingFile': _this2.state.isHoveringDrop,
|
|
153
|
-
'euiFilePicker-isInvalid': isInvalid,
|
|
154
|
-
'euiFilePicker-isLoading': isLoading,
|
|
155
|
-
'euiFilePicker-hasFiles': isOverridingInitialPrompt
|
|
156
|
-
}, className);
|
|
157
|
-
var styles = stylesMemoizer(_file_picker.euiFilePickerStyles);
|
|
158
|
-
var cssStyles = [styles.euiFilePicker, fullWidth ? styles.fullWidth : styles.formWidth, _this2.state.isHoveringDrop && styles.isDroppingFile, isInvalid && !disabled && styles.invalid, isOverridingInitialPrompt && !disabled && styles.hasFiles, isLoading && styles.loading];
|
|
159
|
-
var inputStyles = [styles.input.euiFilePicker__input, !normalFormControl && !disabled && styles.input.largeInteractive];
|
|
160
|
-
var promptStyles = [styles.euiFilePicker__prompt, disabled && styles.disabled].concat((0, _toConsumableArray2.default)(normalFormControl ? [compressed ? styles.compressed : styles.uncompressed] : [styles.large.large, compressed ? styles.large.compressed : styles.large.uncompressed]));
|
|
161
|
-
var iconStyles = [styles.icon.euiFilePicker__icon].concat((0, _toConsumableArray2.default)(normalFormControl ? [styles.icon.normal, compressed ? styles.icon.compresssed : styles.icon.uncompressed] : [styles.icon.large]));
|
|
162
|
-
var rightIconStyles = normalFormControl ? [styles.rightIcon.euiFilePicker__rightIcon, compressed ? styles.rightIcon.compressed : styles.rightIcon.uncompressed] : undefined;
|
|
163
|
-
var clearButton;
|
|
164
|
-
if (isLoading && normalFormControl) {
|
|
165
|
-
// Override clear button with loading spinner if it is in loading state
|
|
166
|
-
clearButton = (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
|
|
167
|
-
css: rightIconStyles,
|
|
168
|
-
className: "euiFilePicker__loadingSpinner",
|
|
169
|
-
size: compressed ? 's' : 'm'
|
|
170
|
-
});
|
|
171
|
-
} else if (isOverridingInitialPrompt && !disabled) {
|
|
172
|
-
if (normalFormControl) {
|
|
173
|
-
clearButton = (0, _react2.jsx)(_form_control_layout_clear_button.EuiFormControlLayoutClearButton, {
|
|
174
|
-
"aria-label": removeSelectedAriaLabel,
|
|
175
|
-
css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
|
|
176
|
-
className: "euiFilePicker__clearButton",
|
|
177
|
-
onClick: _this2.removeFiles,
|
|
178
|
-
size: compressed ? 's' : 'm'
|
|
179
|
-
});
|
|
180
|
-
} else {
|
|
181
|
-
clearButton = (0, _react2.jsx)(_button.EuiButtonEmpty, {
|
|
182
|
-
"aria-label": removeSelectedAriaLabel,
|
|
183
|
-
css: styles.euiFilePicker__clearButton,
|
|
184
|
-
className: "euiFilePicker__clearButton",
|
|
185
|
-
size: "xs",
|
|
186
|
-
onClick: _this2.removeFiles
|
|
187
|
-
}, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
188
|
-
token: "euiFilePicker.removeSelected",
|
|
189
|
-
default: "Remove"
|
|
190
|
-
}));
|
|
191
|
-
}
|
|
192
|
-
} else {
|
|
193
|
-
clearButton = null;
|
|
194
|
-
}
|
|
195
|
-
var loader = !normalFormControl && isLoading && (0, _react2.jsx)(_progress.EuiProgress, {
|
|
196
|
-
size: "xs",
|
|
197
|
-
color: "accent",
|
|
198
|
-
position: "absolute"
|
|
199
|
-
});
|
|
200
|
-
var iconColor = isInvalid ? 'danger' : disabled ? 'disabled' : 'text';
|
|
201
|
-
return (0, _react2.jsx)("div", {
|
|
202
|
-
css: cssStyles,
|
|
203
|
-
className: classes
|
|
204
|
-
}, (0, _react2.jsx)(_validatable_control.EuiValidatableControl, {
|
|
205
|
-
isInvalid: isInvalid
|
|
206
|
-
}, (0, _react2.jsx)("input", (0, _extends2.default)({
|
|
207
|
-
type: "file",
|
|
208
|
-
id: id,
|
|
209
|
-
name: name,
|
|
210
|
-
css: inputStyles,
|
|
211
|
-
className: "euiFilePicker__input",
|
|
212
|
-
onChange: _this2.handleChange,
|
|
213
|
-
ref: function ref(input) {
|
|
214
|
-
_this2.fileInput = input;
|
|
215
|
-
},
|
|
216
|
-
onDragOver: _this2.showDrop,
|
|
217
|
-
onDragLeave: _this2.hideDrop,
|
|
218
|
-
onDrop: _this2.hideDrop,
|
|
219
|
-
disabled: disabled,
|
|
220
|
-
"aria-describedby": promptId
|
|
221
|
-
}, rest))), (0, _react2.jsx)("div", {
|
|
222
|
-
css: promptStyles,
|
|
223
|
-
className: "euiFilePicker__prompt",
|
|
224
|
-
id: promptId
|
|
225
|
-
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
226
|
-
css: iconStyles,
|
|
227
|
-
className: "euiFilePicker__icon",
|
|
228
|
-
color: iconColor,
|
|
229
|
-
type: isInvalid ? 'warning' : disabled ? 'minusCircle' : 'upload',
|
|
230
|
-
size: normalFormControl ? 'm' : 'l',
|
|
231
|
-
"aria-hidden": "true"
|
|
232
|
-
}), (0, _react2.jsx)("span", {
|
|
233
|
-
className: "euiFilePicker__promptText"
|
|
234
|
-
}, _this2.state.promptText || initialPromptText), clearButton, loader));
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
}]);
|
|
238
|
-
}(_react.Component);
|
|
49
|
+
return files[0].name;
|
|
50
|
+
};
|
|
51
|
+
|
|
239
52
|
/**
|
|
240
53
|
* @see {@link https://eui.elastic.co/docs/components/forms/other/file-picker/|EuiFilePicker documentation}
|
|
241
54
|
*/
|
|
242
|
-
(0,
|
|
243
|
-
(0,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
55
|
+
var EuiFilePicker = exports.EuiFilePicker = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
56
|
+
var _useFormContext = (0, _eui_form_context.useFormContext)(),
|
|
57
|
+
defaultFullWidth = _useFormContext.defaultFullWidth;
|
|
58
|
+
var id = props.id,
|
|
59
|
+
name = props.name,
|
|
60
|
+
_props$initialPromptT = props.initialPromptText,
|
|
61
|
+
initialPromptText = _props$initialPromptT === void 0 ? (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
62
|
+
token: "euiFilePicker.promptText",
|
|
63
|
+
default: "Select or drag and drop a file"
|
|
64
|
+
}) : _props$initialPromptT,
|
|
65
|
+
className = props.className,
|
|
66
|
+
disabled = props.disabled,
|
|
67
|
+
_props$compressed = props.compressed,
|
|
68
|
+
compressed = _props$compressed === void 0 ? false : _props$compressed,
|
|
69
|
+
onChange = props.onChange,
|
|
70
|
+
isInvalid = props.isInvalid,
|
|
71
|
+
_props$fullWidth = props.fullWidth,
|
|
72
|
+
fullWidth = _props$fullWidth === void 0 ? defaultFullWidth : _props$fullWidth,
|
|
73
|
+
isLoading = props.isLoading,
|
|
74
|
+
_props$display = props.display,
|
|
75
|
+
display = _props$display === void 0 ? 'large' : _props$display,
|
|
76
|
+
files = props.files,
|
|
77
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
78
|
+
var removeSelectedAriaLabel = (0, _i18n.useEuiI18n)('euiFilePicker.removeSelectedAriaLabel', 'Remove selected files');
|
|
79
|
+
var fileInput = (0, _react.useRef)(null);
|
|
80
|
+
var _useState = (0, _react.useState)(function () {
|
|
81
|
+
return files ? getPromptTextFromFileList(files) : null;
|
|
82
|
+
}),
|
|
83
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
84
|
+
promptText = _useState2[0],
|
|
85
|
+
setPromptText = _useState2[1];
|
|
86
|
+
var _useState3 = (0, _react.useState)(false),
|
|
87
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
88
|
+
isHoveringDrop = _useState4[0],
|
|
89
|
+
setIsHoveringDrop = _useState4[1];
|
|
90
|
+
|
|
91
|
+
// Update prompt text when the `files` prop changes. The ref guard keeps this
|
|
92
|
+
// from re-running on mount, where the initial state is already derived above.
|
|
93
|
+
var prevFiles = (0, _react.useRef)(files);
|
|
94
|
+
(0, _react.useEffect)(function () {
|
|
95
|
+
if (prevFiles.current !== files) {
|
|
96
|
+
prevFiles.current = files;
|
|
97
|
+
setPromptText(getPromptTextFromFileList(files !== null && files !== void 0 ? files : null));
|
|
98
|
+
}
|
|
99
|
+
}, [files]);
|
|
100
|
+
var handleChange = (0, _react.useCallback)(function () {
|
|
101
|
+
if (!fileInput.current) return;
|
|
102
|
+
if (fileInput.current.files && fileInput.current.files.length === 1) {
|
|
103
|
+
setPromptText(fileInput.current.value.split('\\').pop());
|
|
104
|
+
} else {
|
|
105
|
+
setPromptText(getPromptTextFromFileList(fileInput.current.files ? Array.from(fileInput.current.files) : null));
|
|
106
|
+
}
|
|
107
|
+
if (onChange) {
|
|
108
|
+
onChange(fileInput.current.files && fileInput.current.files.length > 0 ? fileInput.current.files : null);
|
|
109
|
+
}
|
|
110
|
+
}, [onChange]);
|
|
111
|
+
var removeFiles = (0, _react.useCallback)(function (e) {
|
|
112
|
+
if (e) {
|
|
113
|
+
e.stopPropagation();
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
}
|
|
116
|
+
if (!fileInput.current) return;
|
|
117
|
+
fileInput.current.value = '';
|
|
118
|
+
handleChange();
|
|
119
|
+
}, [handleChange]);
|
|
120
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
121
|
+
return {
|
|
122
|
+
removeFiles: removeFiles,
|
|
123
|
+
input: fileInput.current
|
|
124
|
+
};
|
|
125
|
+
}, [removeFiles]);
|
|
126
|
+
var showDrop = function showDrop() {
|
|
127
|
+
return !disabled && setIsHoveringDrop(true);
|
|
128
|
+
};
|
|
129
|
+
var hideDrop = function hideDrop() {
|
|
130
|
+
return setIsHoveringDrop(false);
|
|
131
|
+
};
|
|
132
|
+
var generatedId = (0, _services.useGeneratedHtmlId)();
|
|
133
|
+
var promptId = "".concat(id || generatedId, "-filePicker__prompt");
|
|
134
|
+
var isOverridingInitialPrompt = promptText != null;
|
|
135
|
+
var normalFormControl = display === 'default';
|
|
136
|
+
var classes = (0, _classnames.default)('euiFilePicker', {
|
|
137
|
+
'euiFilePicker-isDroppingFile': isHoveringDrop,
|
|
138
|
+
'euiFilePicker-isInvalid': isInvalid,
|
|
139
|
+
'euiFilePicker-isLoading': isLoading,
|
|
140
|
+
'euiFilePicker-hasFiles': isOverridingInitialPrompt
|
|
141
|
+
}, className);
|
|
142
|
+
var styles = (0, _services.useEuiMemoizedStyles)(_file_picker.euiFilePickerStyles);
|
|
143
|
+
var cssStyles = [styles.euiFilePicker, fullWidth ? styles.fullWidth : styles.formWidth, isHoveringDrop && styles.isDroppingFile, isInvalid && !disabled && styles.invalid, isOverridingInitialPrompt && !disabled && styles.hasFiles, isLoading && styles.loading];
|
|
144
|
+
var inputStyles = [styles.input.euiFilePicker__input, !normalFormControl && !disabled && styles.input.largeInteractive];
|
|
145
|
+
var promptStyles = [styles.euiFilePicker__prompt, disabled && styles.disabled].concat((0, _toConsumableArray2.default)(normalFormControl ? [compressed ? styles.compressed : styles.uncompressed] : [styles.large.large, compressed ? styles.large.compressed : styles.large.uncompressed]));
|
|
146
|
+
var iconStyles = [styles.icon.euiFilePicker__icon].concat((0, _toConsumableArray2.default)(normalFormControl ? [styles.icon.normal, compressed ? styles.icon.compressed : styles.icon.uncompressed] : [styles.icon.large]));
|
|
147
|
+
var rightIconStyles = normalFormControl ? [styles.rightIcon.euiFilePicker__rightIcon, compressed ? styles.rightIcon.compressed : styles.rightIcon.uncompressed] : undefined;
|
|
148
|
+
var clearButton;
|
|
149
|
+
if (isLoading && normalFormControl) {
|
|
150
|
+
// Override clear button with loading spinner if it is in loading state
|
|
151
|
+
clearButton = (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
|
|
152
|
+
css: rightIconStyles,
|
|
153
|
+
className: "euiFilePicker__loadingSpinner",
|
|
154
|
+
size: compressed ? 's' : 'm'
|
|
155
|
+
});
|
|
156
|
+
} else if (isOverridingInitialPrompt && !disabled) {
|
|
157
|
+
if (normalFormControl) {
|
|
158
|
+
clearButton = (0, _react2.jsx)(_form_control_layout_clear_button.EuiFormControlLayoutClearButton, {
|
|
159
|
+
"aria-label": removeSelectedAriaLabel,
|
|
160
|
+
css: [styles.euiFilePicker__clearButton, rightIconStyles, ";label:clearButton;"],
|
|
161
|
+
className: "euiFilePicker__clearButton",
|
|
162
|
+
onClick: removeFiles,
|
|
163
|
+
size: compressed ? 's' : 'm'
|
|
164
|
+
});
|
|
165
|
+
} else {
|
|
166
|
+
clearButton = (0, _react2.jsx)(_button.EuiButtonEmpty, {
|
|
167
|
+
"aria-label": removeSelectedAriaLabel,
|
|
168
|
+
css: styles.euiFilePicker__clearButton,
|
|
169
|
+
className: "euiFilePicker__clearButton",
|
|
170
|
+
size: "xs",
|
|
171
|
+
onClick: removeFiles
|
|
172
|
+
}, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
173
|
+
token: "euiFilePicker.removeSelected",
|
|
174
|
+
default: "Remove"
|
|
175
|
+
}));
|
|
176
|
+
}
|
|
177
|
+
} else {
|
|
178
|
+
clearButton = null;
|
|
179
|
+
}
|
|
180
|
+
var loader = !normalFormControl && isLoading && (0, _react2.jsx)(_progress.EuiProgress, {
|
|
181
|
+
size: "xs",
|
|
182
|
+
color: "accent",
|
|
183
|
+
position: "absolute"
|
|
184
|
+
});
|
|
185
|
+
var iconColor = isInvalid ? 'danger' : disabled ? 'disabled' : 'text';
|
|
186
|
+
return (0, _react2.jsx)("div", {
|
|
187
|
+
css: cssStyles,
|
|
188
|
+
className: classes
|
|
189
|
+
}, (0, _react2.jsx)(_validatable_control.EuiValidatableControl, {
|
|
190
|
+
isInvalid: isInvalid
|
|
191
|
+
}, (0, _react2.jsx)("input", (0, _extends2.default)({
|
|
192
|
+
type: "file",
|
|
193
|
+
id: id,
|
|
194
|
+
name: name,
|
|
195
|
+
css: inputStyles,
|
|
196
|
+
className: "euiFilePicker__input",
|
|
197
|
+
onChange: handleChange,
|
|
198
|
+
ref: fileInput,
|
|
199
|
+
onDragOver: showDrop,
|
|
200
|
+
onDragLeave: hideDrop,
|
|
201
|
+
onDrop: hideDrop,
|
|
202
|
+
disabled: disabled,
|
|
203
|
+
"aria-describedby": promptId
|
|
204
|
+
}, rest))), (0, _react2.jsx)("div", {
|
|
205
|
+
css: promptStyles,
|
|
206
|
+
className: "euiFilePicker__prompt",
|
|
207
|
+
id: promptId
|
|
208
|
+
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
209
|
+
css: iconStyles,
|
|
210
|
+
className: "euiFilePicker__icon",
|
|
211
|
+
color: iconColor,
|
|
212
|
+
type: isInvalid ? 'warning' : disabled ? 'minusCircle' : 'upload',
|
|
213
|
+
size: normalFormControl ? 'm' : 'l',
|
|
214
|
+
"aria-hidden": "true"
|
|
215
|
+
}), (0, _react2.jsx)("span", {
|
|
216
|
+
className: "euiFilePicker__promptText"
|
|
217
|
+
}, promptText || initialPromptText), clearButton, loader));
|
|
250
218
|
});
|
|
251
|
-
|
|
219
|
+
EuiFilePicker.displayName = 'EuiFilePicker';
|
|
@@ -86,7 +86,7 @@ var euiFilePickerStyles = exports.euiFilePickerStyles = function euiFilePickerSt
|
|
|
86
86
|
euiFilePicker__icon: /*#__PURE__*/(0, _react.css)(";label:euiFilePicker__icon;"),
|
|
87
87
|
normal: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('height', '100%'), ";;label:normal;"),
|
|
88
88
|
uncompressed: "\n ".concat((0, _global_styling.logicalCSS)('left', euiTheme.size.m), "\n "),
|
|
89
|
-
|
|
89
|
+
compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('width', euiTheme.size.m), ";;label:compressed;"),
|
|
90
90
|
large: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.base), " ", _global_styling.euiCanAnimate, "{transition:transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";};label:large;")
|
|
91
91
|
},
|
|
92
92
|
rightIcon: {
|
|
@@ -21,7 +21,7 @@ var _excluded = ["title", "titleId"];
|
|
|
21
21
|
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
-
var
|
|
24
|
+
var EuiIconCloudBolt = function EuiIconCloudBolt(_ref) {
|
|
25
25
|
var title = _ref.title,
|
|
26
26
|
titleId = _ref.titleId,
|
|
27
27
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -34,7 +34,9 @@ var EuiIconKubernetesPod = function EuiIconKubernetesPod(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
d: "
|
|
37
|
+
d: "M8 11h2l-5 5 2-4H5l5-5z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
d: "M8 0a4 4 0 0 1 3.878 3.02A3.5 3.5 0 0 1 11.5 10H9.618l.5-1H11.5a2.5 2.5 0 0 0 0-5h-.03l-.251.016a2.5 2.5 0 0 0-1.487.716l-.707-.707a3.5 3.5 0 0 1 1.825-.963A3.001 3.001 0 0 0 5.038 4.48l.117.727-.718-.16A2 2 0 1 0 4 9h2.586l-1 1.001H4a3 3 0 0 1 0-6 4 4 0 0 1 4-4"
|
|
38
40
|
}));
|
|
39
41
|
};
|
|
40
|
-
var icon = exports.icon =
|
|
42
|
+
var icon = exports.icon = EuiIconCloudBolt;
|
|
@@ -21,7 +21,7 @@ var _excluded = ["title", "titleId"];
|
|
|
21
21
|
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
-
var
|
|
24
|
+
var EuiIconCloudRain = function EuiIconCloudRain(_ref) {
|
|
25
25
|
var title = _ref.title,
|
|
26
26
|
titleId = _ref.titleId,
|
|
27
27
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -34,7 +34,9 @@ var EuiIconCloudStormy = function EuiIconCloudStormy(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
d: "
|
|
37
|
+
d: "m5.447 13.224-1 2-.894-.448 1-2zm3 0-1 2-.894-.448 1-2zm3 0-1 2-.894-.448 1-2zm-7-3-1 2-.894-.448 1-2zm3 0-1 2-.894-.448.925-1.848.075-.152zm3 0-1 2-.894-.448.925-1.848.075-.152zm3 0-.135.27-.865 1.73-.894-.448 1-2z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
d: "M8 1a4 4 0 0 1 3.878 3.02 3.5 3.5 0 0 1 2.457 5.529l-.911-.455A2.5 2.5 0 0 0 11.5 5h-.03l-.251.016a2.5 2.5 0 0 0-1.487.716l-.707-.707a3.5 3.5 0 0 1 1.825-.963A3.001 3.001 0 0 0 5.038 5.48l.117.727-.718-.16A2 2 0 0 0 2 8c0 .563.233 1.07.606 1.432l-.46.922A2.99 2.99 0 0 1 1 8a3 3 0 0 1 3-3 4 4 0 0 1 4-4"
|
|
38
40
|
}));
|
|
39
41
|
};
|
|
40
|
-
var icon = exports.icon =
|
|
42
|
+
var icon = exports.icon = EuiIconCloudRain;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
14
|
+
/*
|
|
15
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
16
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
17
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
18
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
19
|
+
* Side Public License, v 1.
|
|
20
|
+
*/
|
|
21
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconCloudSun = function EuiIconCloudSun(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
d: "M9 5a4 4 0 0 1 3.878 3.02A3.5 3.5 0 0 1 12.5 15H5a3 3 0 1 1 0-6q.001-.557.145-1.07A4.01 4.01 0 0 1 9 5m0 1a3 3 0 0 0-2.962 3.48l.117.727-.718-.16A2 2 0 1 0 5 14h7.5a2.5 2.5 0 0 0 0-4.999h-.03l-.251.016a2.5 2.5 0 0 0-1.487.716l-.707-.707a3.5 3.5 0 0 1 1.825-.963A3 3 0 0 0 9 6M2.38 8.325l-.707.707-.707-.707.707-.707zM4.5 3a2.5 2.5 0 0 1 2.296 1.512 5 5 0 0 0-.864.54A1.5 1.5 0 0 0 3 5.5c0 .801.628 1.453 1.419 1.495q-.204.464-.31.97A2.497 2.497 0 0 1 4.5 3M1.005 5.995h-1v-1h1zm1.383-3.326-.708.707-.707-.707.707-.708zm5.649-.001-.707.707-.707-.707.707-.707zM5 2H4V1h1z"
|
|
38
|
+
}));
|
|
39
|
+
};
|
|
40
|
+
var icon = exports.icon = EuiIconCloudSun;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.icon = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
var _excluded = ["title", "titleId"];
|
|
14
|
+
/*
|
|
15
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
16
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
17
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
18
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
19
|
+
* Side Public License, v 1.
|
|
20
|
+
*/
|
|
21
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
+
var EuiIconCube = function EuiIconCube(_ref) {
|
|
25
|
+
var title = _ref.title,
|
|
26
|
+
titleId = _ref.titleId,
|
|
27
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return (0, _react2.jsx)("svg", (0, _extends2.default)({
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: 16,
|
|
31
|
+
height: 16,
|
|
32
|
+
viewBox: "0 0 16 16",
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
|
+
id: titleId
|
|
36
|
+
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
+
d: "M7.66.06a1 1 0 0 1 .787.045l6 3A1 1 0 0 1 15 4v8a1 1 0 0 1-.553.895l-6 3a1 1 0 0 1-.894 0l-6-3A1 1 0 0 1 1 12V4a1 1 0 0 1 .553-.895l6-3zM2 12l5.5 2.75V7.309L2 4.559zm6.5-4.691v7.441L14 12V4.559zm-5.941-3.59L8 6.44l5.44-2.72L8 1z"
|
|
38
|
+
}));
|
|
39
|
+
};
|
|
40
|
+
var icon = exports.icon = EuiIconCube;
|
|
@@ -21,7 +21,7 @@ var _excluded = ["title", "titleId"];
|
|
|
21
21
|
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
-
var
|
|
24
|
+
var EuiIconCursorDefault = function EuiIconCursorDefault(_ref) {
|
|
25
25
|
var title = _ref.title,
|
|
26
26
|
titleId = _ref.titleId,
|
|
27
27
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -34,7 +34,9 @@ var EuiIconKubernetesPod = function EuiIconKubernetesPod(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
d: "M2.646 2.646a.5.5 0 0 1 .497-.125l10 3a.5.5 0 0 1 .134.895l-2.493 1.66 3.069 3.07a.5.5 0 0 1 0 .707l-2 2a.5.5 0 0 1-.707 0l-3.07-3.07-1.66 2.494a.5.5 0 0 1-.895-.134l-3-10a.5.5 0 0 1 .125-.497m3.526 9.192 1.411-2.116.072-.085a.503.503 0 0 1 .698.01l3.146 3.146 1.293-1.293-3.146-3.147a.5.5 0 0 1 .076-.77l2.115-1.41-8.093-2.428z",
|
|
39
|
+
clipRule: "evenodd"
|
|
38
40
|
}));
|
|
39
41
|
};
|
|
40
|
-
var icon = exports.icon =
|
|
42
|
+
var icon = exports.icon = EuiIconCursorDefault;
|
|
@@ -21,7 +21,7 @@ var _excluded = ["title", "titleId"];
|
|
|
21
21
|
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
-
var
|
|
24
|
+
var EuiIconKubernetesNamespace = function EuiIconKubernetesNamespace(_ref) {
|
|
25
25
|
var title = _ref.title,
|
|
26
26
|
titleId = _ref.titleId,
|
|
27
27
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -34,7 +34,9 @@ var EuiIconCloudDrizzle = function EuiIconCloudDrizzle(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
d: "
|
|
37
|
+
d: "M5 6.233A2.1 2.1 0 0 1 6 6c.462 0 .843.117 1.144.318.3.2.492.462.616.708a2.3 2.3 0 0 1 .236.874l.003.067v.032L7.5 8l.5-.001V10h.5v1h-2v-1H7V8l-.001-.03a1.4 1.4 0 0 0-.133-.497.8.8 0 0 0-.275-.323C6.47 7.07 6.287 7 6 7c-.288 0-.47.07-.59.15a.8.8 0 0 0-.275.324 1.4 1.4 0 0 0-.133.497L5 8v2h.5v1h-2v-1H4V7h-.5V6H5zM12 7.5h-1a.5.5 0 1 0-.5.5 1.5 1.5 0 1 1-.5 2.912V11H9V9.5h1a.5.5 0 1 0 .5-.5 1.5 1.5 0 1 1 .5-2.913V6h1z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
d: "M7.66.06a1 1 0 0 1 .787.045l6 3 .104.06a1 1 0 0 1 .435.67l1 6a1 1 0 0 1-.205.79l-4 5A1 1 0 0 1 11 16H5a1 1 0 0 1-.781-.375l-4-5a1 1 0 0 1-.205-.79l1-6 .026-.115a1 1 0 0 1 .513-.615l6-3zM2 4l-1 6 4 5h6l4-5-1-6-6-3z"
|
|
38
40
|
}));
|
|
39
41
|
};
|
|
40
|
-
var icon = exports.icon =
|
|
42
|
+
var icon = exports.icon = EuiIconKubernetesNamespace;
|
|
@@ -21,7 +21,7 @@ var _excluded = ["title", "titleId"];
|
|
|
21
21
|
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
22
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
|
-
var
|
|
24
|
+
var EuiIconLogIn = function EuiIconLogIn(_ref) {
|
|
25
25
|
var title = _ref.title,
|
|
26
26
|
titleId = _ref.titleId,
|
|
27
27
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -34,7 +34,9 @@ var EuiIconKqlFunction = function EuiIconKqlFunction(_ref) {
|
|
|
34
34
|
}, props), title ? (0, _react2.jsx)("title", {
|
|
35
35
|
id: titleId
|
|
36
36
|
}, title) : null, (0, _react2.jsx)("path", {
|
|
37
|
-
d: "
|
|
37
|
+
d: "M13 2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3v-1h10V3H3V2z"
|
|
38
|
+
}), (0, _react2.jsx)("path", {
|
|
39
|
+
d: "m11.707 8-3.353 3.354-.708-.707L9.793 8.5H2v-1h7.793L7.646 5.354l.708-.708z"
|
|
38
40
|
}));
|
|
39
41
|
};
|
|
40
|
-
var icon = exports.icon =
|
|
42
|
+
var icon = exports.icon = EuiIconLogIn;
|