@elastic/eui 65.0.1 → 67.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 +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +28 -444
- package/dist/eui_theme_dark.json +0 -6
- package/dist/eui_theme_dark.json.d.ts +0 -6
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +28 -444
- package/dist/eui_theme_light.json +0 -6
- package/dist/eui_theme_light.json.d.ts +0 -6
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +13 -2
- package/es/components/basic_table/in_memory_table.js +13 -2
- package/es/components/button/button_display/_button_display.js +10 -1
- package/es/components/button/button_empty/button_empty.js +10 -1
- package/es/components/card/card.styles.js +2 -2
- package/es/components/collapsible_nav/collapsible_nav.js +0 -5
- package/es/components/combo_box/combo_box.js +2 -15
- package/es/components/datagrid/body/data_grid_body.js +17 -6
- package/es/components/datagrid/body/data_grid_cell.js +29 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/es/components/datagrid/data_grid.js +17 -6
- package/es/components/datagrid/utils/in_memory.js +17 -6
- package/es/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/es/components/date_picker/react-datepicker/original.package.json +124 -0
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -2
- package/es/components/description_list/description_list.js +11 -3
- package/es/components/description_list/description_list_context.js +2 -1
- package/es/components/description_list/description_list_description.js +3 -1
- package/es/components/description_list/description_list_description.styles.js +5 -2
- package/es/components/description_list/description_list_title.js +3 -2
- package/es/components/description_list/description_list_title.styles.js +7 -3
- package/es/components/description_list/description_list_types.js +2 -1
- package/es/components/expression/expression.js +12 -2
- package/es/components/form/field_search/field_search.js +6 -16
- package/es/components/form/range/range_input.js +1 -1
- package/es/components/header/header_links/header_link.js +10 -1
- package/es/components/header/header_section/header_section_item.js +4 -3
- package/es/components/icon/icon.js +3 -10
- package/es/components/image/image.js +6 -1
- package/es/components/image/image_fullscreen_wrapper.js +2 -3
- package/es/components/list_group/list_group.js +7 -1
- package/es/components/list_group/list_group_item.js +10 -3
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/es/components/modal/modal.js +1 -3
- package/es/components/notification/notification_event.js +24 -5
- package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/es/components/overlay_mask/overlay_mask.js +27 -65
- package/es/components/overlay_mask/overlay_mask.styles.js +28 -0
- package/es/components/page/page_content/page_content.js +1 -2
- package/es/components/page/page_content/page_content_body.js +1 -2
- package/es/components/page/page_content/page_content_header.js +1 -2
- package/es/components/page/page_content/page_content_header_section.js +1 -2
- package/es/components/page/page_section/page_section.js +15 -3
- package/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/es/components/page/page_template.js +3 -1
- package/es/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/es/components/page_template/page_template.js +18 -2
- package/es/components/pagination/pagination.js +17 -4
- package/es/components/pagination/pagination.styles.js +31 -0
- package/es/components/pagination/pagination_button.js +17 -5
- package/es/components/pagination/pagination_button.styles.js +30 -0
- package/es/components/pagination/pagination_button_arrow.js +5 -0
- package/es/components/progress/progress.js +6 -1
- package/es/components/provider/cache/cache_provider.js +3 -9
- package/es/components/provider/provider.js +25 -2
- package/es/components/resizable_container/resizable_panel.js +6 -1
- package/es/components/side_nav/side_nav.js +5 -0
- package/es/components/suggest/suggest.js +10 -1
- package/es/components/table/table_row_cell.js +4 -6
- package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/es/components/tool_tip/tool_tip.js +42 -66
- package/es/components/tool_tip/tool_tip.styles.js +107 -0
- package/es/components/tool_tip/tool_tip_anchor.js +73 -0
- package/es/components/tool_tip/tool_tip_arrow.js +20 -0
- package/es/components/tool_tip/tool_tip_popover.js +48 -101
- package/es/global_styling/functions/logicals.json +56 -0
- package/es/global_styling/index.js +2 -1
- package/es/global_styling/mixins/_typography.js +1 -1
- package/es/global_styling/utility/animations.js +13 -0
- package/es/services/theme/hooks.js +11 -16
- package/eui.d.ts +157 -61
- package/i18ntokens.json +72 -72
- package/lib/components/basic_table/basic_table.js +13 -2
- package/lib/components/basic_table/in_memory_table.js +13 -2
- package/lib/components/button/button_display/_button_display.js +10 -1
- package/lib/components/button/button_empty/button_empty.js +10 -1
- package/lib/components/card/card.styles.js +2 -2
- package/lib/components/collapsible_nav/collapsible_nav.js +0 -5
- package/lib/components/combo_box/combo_box.js +2 -15
- package/lib/components/datagrid/body/data_grid_body.js +17 -6
- package/lib/components/datagrid/body/data_grid_cell.js +29 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/lib/components/datagrid/data_grid.js +17 -6
- package/lib/components/datagrid/utils/in_memory.js +17 -6
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
- package/lib/components/description_list/description_list.js +11 -3
- package/lib/components/description_list/description_list_context.js +2 -1
- package/lib/components/description_list/description_list_description.js +3 -1
- package/lib/components/description_list/description_list_description.styles.js +5 -2
- package/lib/components/description_list/description_list_title.js +3 -2
- package/lib/components/description_list/description_list_title.styles.js +7 -3
- package/lib/components/description_list/description_list_types.js +4 -2
- package/lib/components/expression/expression.js +12 -2
- package/lib/components/form/field_search/field_search.js +6 -16
- package/lib/components/form/range/range_input.js +1 -1
- package/lib/components/header/header_links/header_link.js +10 -1
- package/lib/components/header/header_section/header_section_item.js +4 -3
- package/lib/components/icon/icon.js +3 -10
- package/lib/components/image/image.js +6 -1
- package/lib/components/image/image_fullscreen_wrapper.js +2 -3
- package/lib/components/list_group/list_group.js +7 -1
- package/lib/components/list_group/list_group_item.js +10 -3
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/lib/components/modal/modal.js +1 -3
- package/lib/components/notification/notification_event.js +27 -8
- package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/lib/components/overlay_mask/overlay_mask.js +27 -65
- package/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/lib/components/page/page_content/page_content.js +1 -2
- package/lib/components/page/page_content/page_content_body.js +1 -2
- package/lib/components/page/page_content/page_content_header.js +1 -2
- package/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/lib/components/page/page_section/page_section.js +15 -3
- package/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/lib/components/page/page_template.js +3 -1
- package/lib/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/lib/components/page_template/page_template.js +18 -2
- package/lib/components/pagination/pagination.js +18 -3
- package/lib/components/pagination/pagination.styles.js +34 -0
- package/lib/components/pagination/pagination_button.js +9 -4
- package/lib/components/pagination/pagination_button.styles.js +45 -0
- package/lib/components/pagination/pagination_button_arrow.js +7 -0
- package/lib/components/progress/progress.js +6 -1
- package/lib/components/provider/cache/cache_provider.js +3 -11
- package/lib/components/provider/provider.js +31 -6
- package/lib/components/resizable_container/resizable_panel.js +6 -1
- package/lib/components/side_nav/side_nav.js +5 -0
- package/lib/components/suggest/suggest.js +10 -1
- package/lib/components/table/table_row_cell.js +4 -6
- package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/lib/components/tool_tip/tool_tip.js +43 -64
- package/lib/components/tool_tip/tool_tip.styles.js +123 -0
- package/lib/components/tool_tip/tool_tip_anchor.js +87 -0
- package/lib/components/tool_tip/tool_tip_arrow.js +28 -0
- package/lib/components/tool_tip/tool_tip_popover.js +49 -98
- package/lib/global_styling/functions/logicals.json +56 -0
- package/lib/global_styling/index.js +13 -0
- package/lib/global_styling/mixins/_typography.js +1 -1
- package/lib/global_styling/utility/animations.js +15 -0
- package/lib/services/theme/hooks.js +10 -15
- package/optimize/es/components/card/card.styles.js +2 -2
- package/optimize/es/components/combo_box/combo_box.js +2 -15
- package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +0 -1
- package/optimize/es/components/description_list/description_list.js +5 -2
- package/optimize/es/components/description_list/description_list_context.js +2 -1
- package/optimize/es/components/description_list/description_list_description.js +3 -1
- package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/es/components/description_list/description_list_title.js +3 -2
- package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/es/components/description_list/description_list_types.js +2 -1
- package/optimize/es/components/form/field_search/field_search.js +6 -16
- package/optimize/es/components/form/range/range_input.js +1 -1
- package/optimize/es/components/header/header_section/header_section_item.js +4 -3
- package/optimize/es/components/icon/icon.js +3 -10
- package/optimize/es/components/image/image_fullscreen_wrapper.js +2 -3
- package/optimize/es/components/list_group/list_group_item.js +3 -2
- package/optimize/es/components/modal/modal.js +1 -3
- package/optimize/es/components/notification/notification_event.js +10 -4
- package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/es/components/overlay_mask/overlay_mask.js +27 -60
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +28 -0
- package/optimize/es/components/page/page_content/page_content.js +1 -2
- package/optimize/es/components/page/page_content/page_content_body.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/es/components/page/page_section/page_section.js +4 -2
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/es/components/page/page_template.js +3 -1
- package/optimize/es/components/pagination/pagination.js +17 -4
- package/optimize/es/components/pagination/pagination.styles.js +31 -0
- package/optimize/es/components/pagination/pagination_button.js +7 -4
- package/optimize/es/components/pagination/pagination_button.styles.js +30 -0
- package/optimize/es/components/pagination/pagination_button_arrow.js +5 -0
- package/optimize/es/components/provider/cache/cache_provider.js +3 -9
- package/optimize/es/components/provider/provider.js +25 -2
- package/optimize/es/components/suggest/suggest.js +4 -1
- package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/es/components/tool_tip/tool_tip.js +42 -66
- package/optimize/es/components/tool_tip/tool_tip.styles.js +107 -0
- package/optimize/es/components/tool_tip/tool_tip_anchor.js +60 -0
- package/optimize/es/components/tool_tip/tool_tip_arrow.js +20 -0
- package/optimize/es/components/tool_tip/tool_tip_popover.js +46 -87
- package/optimize/es/global_styling/functions/logicals.json +56 -0
- package/optimize/es/global_styling/index.js +2 -1
- package/optimize/es/global_styling/mixins/_typography.js +1 -1
- package/optimize/es/global_styling/utility/animations.js +13 -0
- package/optimize/es/services/theme/hooks.js +11 -16
- package/optimize/lib/components/card/card.styles.js +2 -2
- package/optimize/lib/components/combo_box/combo_box.js +2 -15
- package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
- package/optimize/lib/components/description_list/description_list.js +5 -2
- package/optimize/lib/components/description_list/description_list_context.js +2 -1
- package/optimize/lib/components/description_list/description_list_description.js +3 -1
- package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/lib/components/description_list/description_list_title.js +3 -2
- package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/lib/components/description_list/description_list_types.js +4 -2
- package/optimize/lib/components/form/field_search/field_search.js +6 -16
- package/optimize/lib/components/form/range/range_input.js +1 -1
- package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
- package/optimize/lib/components/icon/icon.js +3 -10
- package/optimize/lib/components/image/image_fullscreen_wrapper.js +2 -3
- package/optimize/lib/components/list_group/list_group_item.js +3 -2
- package/optimize/lib/components/modal/modal.js +1 -3
- package/optimize/lib/components/notification/notification_event.js +11 -11
- package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/lib/components/overlay_mask/overlay_mask.js +27 -59
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/optimize/lib/components/page/page_content/page_content.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_body.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/lib/components/page/page_section/page_section.js +4 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/lib/components/page/page_template.js +3 -1
- package/optimize/lib/components/pagination/pagination.js +18 -3
- package/optimize/lib/components/pagination/pagination.styles.js +34 -0
- package/optimize/lib/components/pagination/pagination_button.js +9 -4
- package/optimize/lib/components/pagination/pagination_button.styles.js +45 -0
- package/optimize/lib/components/pagination/pagination_button_arrow.js +7 -0
- package/optimize/lib/components/provider/cache/cache_provider.js +3 -11
- package/optimize/lib/components/provider/provider.js +31 -6
- package/optimize/lib/components/suggest/suggest.js +4 -1
- package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/lib/components/tool_tip/tool_tip.js +42 -64
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +125 -0
- package/optimize/lib/components/tool_tip/tool_tip_anchor.js +75 -0
- package/optimize/lib/components/tool_tip/tool_tip_arrow.js +35 -0
- package/optimize/lib/components/tool_tip/tool_tip_popover.js +47 -88
- package/optimize/lib/global_styling/functions/logicals.json +56 -0
- package/optimize/lib/global_styling/index.js +13 -0
- package/optimize/lib/global_styling/mixins/_typography.js +1 -1
- package/optimize/lib/global_styling/utility/animations.js +17 -0
- package/optimize/lib/services/theme/hooks.js +10 -15
- package/package.json +2 -2
- package/src/components/badge/_badge.scss +0 -5
- package/src/components/datagrid/_data_grid_data_row.scss +7 -0
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +3 -1
- package/src/components/flex/_flex_group.scss +2 -11
- package/src/components/flex/_flex_item.scss +0 -6
- package/src/components/form/field_search/_field_search.scss +0 -5
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
- package/src/components/form/form_row/_form_row.scss +0 -1
- package/src/components/header/header_section/_header_section_item.scss +1 -1
- package/src/components/index.scss +0 -4
- package/src/components/list_group/_list_group_item.scss +3 -25
- package/src/components/modal/_modal.scss +5 -20
- package/src/components/page/page_content/_page_content.scss +0 -1
- package/src/components/table/_responsive.scss +0 -1
- package/src/components/table/_table.scss +0 -5
- package/src/global_styling/mixins/_form.scss +0 -4
- package/src/global_styling/mixins/_helpers.scss +0 -8
- package/src/global_styling/mixins/_tool_tip.scss +3 -6
- package/src/global_styling/mixins/_typography.scss +1 -5
- package/src/global_styling/utility/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_index.scss +0 -2
- package/test-env/components/basic_table/basic_table.js +13 -2
- package/test-env/components/basic_table/in_memory_table.js +13 -2
- package/test-env/components/button/button_display/_button_display.js +10 -1
- package/test-env/components/button/button_empty/button_empty.js +10 -1
- package/test-env/components/card/card.styles.js +2 -2
- package/test-env/components/collapsible_nav/collapsible_nav.js +0 -5
- package/test-env/components/combo_box/combo_box.js +2 -15
- package/test-env/components/datagrid/body/data_grid_body.js +17 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/test-env/components/datagrid/data_grid.js +17 -6
- package/test-env/components/datagrid/utils/in_memory.js +17 -6
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
- package/test-env/components/description_list/description_list.js +11 -3
- package/test-env/components/description_list/description_list_context.js +2 -1
- package/test-env/components/description_list/description_list_description.js +3 -1
- package/test-env/components/description_list/description_list_description.styles.js +5 -2
- package/test-env/components/description_list/description_list_title.js +3 -2
- package/test-env/components/description_list/description_list_title.styles.js +7 -3
- package/test-env/components/description_list/description_list_types.js +4 -2
- package/test-env/components/expression/expression.js +12 -2
- package/test-env/components/form/field_search/field_search.js +6 -16
- package/test-env/components/form/range/range_input.js +1 -1
- package/test-env/components/header/header_links/header_link.js +10 -1
- package/test-env/components/header/header_section/header_section_item.js +4 -3
- package/test-env/components/image/image.js +6 -1
- package/test-env/components/image/image_fullscreen_wrapper.js +2 -3
- package/test-env/components/list_group/list_group.js +7 -1
- package/test-env/components/list_group/list_group_item.js +10 -3
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/test-env/components/modal/modal.js +1 -3
- package/test-env/components/notification/notification_event.js +24 -15
- package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/test-env/components/overlay_mask/overlay_mask.js +27 -64
- package/test-env/components/overlay_mask/overlay_mask.styles.js +34 -0
- package/test-env/components/page/page_content/page_content.js +1 -2
- package/test-env/components/page/page_content/page_content_body.js +1 -2
- package/test-env/components/page/page_content/page_content_header.js +1 -2
- package/test-env/components/page/page_content/page_content_header_section.js +1 -2
- package/test-env/components/page/page_section/page_section.js +15 -3
- package/test-env/components/page/page_side_bar/page_side_bar.js +1 -2
- package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
- package/test-env/components/page/page_template.js +3 -1
- package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/test-env/components/page_template/page_template.js +18 -2
- package/test-env/components/pagination/pagination.js +18 -3
- package/test-env/components/pagination/pagination.styles.js +34 -0
- package/test-env/components/pagination/pagination_button.js +9 -4
- package/test-env/components/pagination/pagination_button.styles.js +45 -0
- package/test-env/components/pagination/pagination_button_arrow.js +7 -0
- package/test-env/components/progress/progress.js +6 -1
- package/test-env/components/provider/cache/cache_provider.js +3 -11
- package/test-env/components/provider/provider.js +31 -6
- package/test-env/components/resizable_container/resizable_panel.js +6 -1
- package/test-env/components/side_nav/side_nav.js +5 -0
- package/test-env/components/suggest/suggest.js +10 -1
- package/test-env/components/table/table_row_cell.js +4 -6
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/test-env/components/tool_tip/tool_tip.js +42 -64
- package/test-env/components/tool_tip/tool_tip.styles.js +125 -0
- package/test-env/components/tool_tip/tool_tip_anchor.js +84 -0
- package/test-env/components/tool_tip/tool_tip_arrow.js +35 -0
- package/test-env/components/tool_tip/tool_tip_popover.js +49 -89
- package/test-env/global_styling/functions/logicals.json +56 -0
- package/test-env/global_styling/index.js +13 -0
- package/test-env/global_styling/mixins/_typography.js +1 -1
- package/test-env/global_styling/utility/animations.js +17 -0
- package/test-env/services/theme/hooks.js +10 -15
- package/src/components/call_out/_index.scss +0 -3
- package/src/components/call_out/_mixins.scss +0 -23
- package/src/components/call_out/_variables.scss +0 -7
- package/src/components/overlay_mask/_index.scss +0 -1
- package/src/components/overlay_mask/_overlay_mask.scss +0 -33
- package/src/components/pagination/_index.scss +0 -2
- package/src/components/pagination/_pagination.scss +0 -30
- package/src/components/pagination/_pagination_button.scss +0 -37
- package/src/components/tool_tip/_index.scss +0 -1
- package/src/components/tool_tip/_tool_tip.scss +0 -121
- package/src/global_styling/utility/_utility.scss +0 -15
- package/src/themes/amsterdam/overrides/_overlay_mask.scss +0 -3
- package/src/themes/amsterdam/overrides/_tooltip.scss +0 -7
|
@@ -87,14 +87,14 @@ var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize, color)
|
|
|
87
87
|
euiCard__description: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', halfSpacing), ";;label:euiCard__description;"),
|
|
88
88
|
euiCard__footer: /*#__PURE__*/(0, _react.css)("flex-grow:0;", (0, _global_styling.logicalCSS)('width', '100%'), ";", (0, _global_styling.logicalCSS)('margin-top', spacing), ";;label:euiCard__footer;"),
|
|
89
89
|
top: {
|
|
90
|
-
euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('
|
|
90
|
+
euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('margin-bottom', spacing), ";;label:euiCard__top;"),
|
|
91
91
|
layout: {
|
|
92
92
|
vertical: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:vertical;"),
|
|
93
93
|
horizontal: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', 'auto'), ";;label:horizontal;")
|
|
94
94
|
},
|
|
95
95
|
disabled: _ref2
|
|
96
96
|
},
|
|
97
|
-
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", _global_styling.
|
|
97
|
+
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");", color === 'transparent' ? "border-radius: ".concat(euiTheme.border.radius.medium, ";") : undefined, " img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
|
|
98
98
|
icon: {
|
|
99
99
|
euiCard__icon: /*#__PURE__*/(0, _react.css)(";label:euiCard__icon;"),
|
|
100
100
|
withImage: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', '50%'), ";", (0, _global_styling.logicalCSS)('left', '50%'), ";transform:translate(-50%, calc(-50% + -", paddingAmount, "))!important;;label:withImage;"),
|
|
@@ -93,17 +93,9 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
93
93
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "rootId", (0, _services.htmlIdGenerator)());
|
|
94
94
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "comboBoxRefInstance", null);
|
|
95
95
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "comboBoxRefCallback", function (ref) {
|
|
96
|
-
// IE11 doesn't support the `relatedTarget` event property for blur events
|
|
97
|
-
// but does add it for focusout. React doesn't support `onFocusOut` so here we are.
|
|
98
|
-
if (_this.comboBoxRefInstance) {
|
|
99
|
-
_this.comboBoxRefInstance.removeEventListener('focusout', _this.onContainerBlur);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
96
|
_this.comboBoxRefInstance = ref;
|
|
103
97
|
|
|
104
98
|
if (_this.comboBoxRefInstance) {
|
|
105
|
-
_this.comboBoxRefInstance.addEventListener('focusout', _this.onContainerBlur);
|
|
106
|
-
|
|
107
99
|
var comboBoxBounds = _this.comboBoxRefInstance.getBoundingClientRect();
|
|
108
100
|
|
|
109
101
|
_this.setState({
|
|
@@ -388,13 +380,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
388
380
|
});
|
|
389
381
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onContainerBlur", function (event) {
|
|
390
382
|
// close the options list, unless the user clicked on an option
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* FireFox returns `relatedTarget` as `null` for security reasons, but provides a proprietary `explicitOriginalTarget`.
|
|
394
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget
|
|
395
|
-
*/
|
|
396
|
-
var focusEvent = event;
|
|
397
|
-
var relatedTarget = focusEvent.relatedTarget || focusEvent.explicitOriginalTarget;
|
|
383
|
+
var relatedTarget = event.relatedTarget;
|
|
398
384
|
|
|
399
385
|
var focusedInOptionsList = relatedTarget && _this.listRefInstance && _this.listRefInstance.contains(relatedTarget);
|
|
400
386
|
|
|
@@ -825,6 +811,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
825
811
|
className: classes,
|
|
826
812
|
"data-test-subj": dataTestSubj,
|
|
827
813
|
onKeyDown: this.onKeyDown,
|
|
814
|
+
onBlur: this.onContainerBlur,
|
|
828
815
|
ref: this.comboBoxRefCallback
|
|
829
816
|
}), (0, _react2.jsx)(_combo_box_input.EuiComboBoxInput, {
|
|
830
817
|
autoSizeInputRef: this.autoSizeInputRefCallback,
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "HackerOne",
|
|
3
|
+
"name": "@elastic/react-datepicker",
|
|
4
|
+
"description": "Forked from Hacker0x01/react-datepicker for accessibility - simple and reusable datepicker component for React",
|
|
5
|
+
"private": true,
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/Hacker0x01/react-datepicker",
|
|
9
|
+
"main": "lib",
|
|
10
|
+
"files": [
|
|
11
|
+
"*.md",
|
|
12
|
+
"dist",
|
|
13
|
+
"datepicker-lib",
|
|
14
|
+
"es",
|
|
15
|
+
"src/stylesheets"
|
|
16
|
+
],
|
|
17
|
+
"resolutions": {
|
|
18
|
+
"**/diff": "^3.5.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"babel-core": "^6.26.0",
|
|
22
|
+
"babel-eslint": "^8.0.2",
|
|
23
|
+
"babel-loader": "^6.2.10",
|
|
24
|
+
"babel-plugin-add-react-displayname": "^0.0.4",
|
|
25
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
26
|
+
"babel-plugin-react-transform": "^3.0.0",
|
|
27
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
28
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.4.10",
|
|
29
|
+
"babel-polyfill": "^6.26.0",
|
|
30
|
+
"babel-preset-airbnb": "^2.4.0",
|
|
31
|
+
"babel-preset-env": "^1.6.1",
|
|
32
|
+
"babel-preset-react": "^6.24.1",
|
|
33
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
34
|
+
"chai": "^3.5.0",
|
|
35
|
+
"cross-env": "^5.1.1",
|
|
36
|
+
"css-loader": "^1.0.0",
|
|
37
|
+
"enzyme": "^3.10.0",
|
|
38
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
|
39
|
+
"eslint": "^4.18.2",
|
|
40
|
+
"eslint-plugin-import": "^2.8.0",
|
|
41
|
+
"eslint-plugin-node": "^5.2.1",
|
|
42
|
+
"eslint-plugin-promise": "^3.6.0",
|
|
43
|
+
"eslint-plugin-react": "^7.4.0",
|
|
44
|
+
"express": "^4.16.2",
|
|
45
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
46
|
+
"flow-bin": "^0.68.0",
|
|
47
|
+
"highlight.js": "^9.12.0",
|
|
48
|
+
"husky": "^0.14.3",
|
|
49
|
+
"isparta-loader": "^2.0.0",
|
|
50
|
+
"karma": "^1.7.1",
|
|
51
|
+
"karma-chai": "^0.1.0",
|
|
52
|
+
"karma-coverage": "^1.1.1",
|
|
53
|
+
"karma-firefox-launcher": "^1.0.1",
|
|
54
|
+
"karma-mocha": "^1.3.0",
|
|
55
|
+
"karma-sinon": "^1.0.5",
|
|
56
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
57
|
+
"karma-webpack": "^2.0.5",
|
|
58
|
+
"lint-staged": "^6.0.0",
|
|
59
|
+
"lodash": "^4.17.13",
|
|
60
|
+
"mocha": "^4.0.1",
|
|
61
|
+
"moment": "^2.20.1",
|
|
62
|
+
"node-sass": "^4.13.1",
|
|
63
|
+
"npm-run-all": "^4.1.2",
|
|
64
|
+
"prettier": "^1.9.2",
|
|
65
|
+
"react": "^16.2.0",
|
|
66
|
+
"react-docgen": "^2.20.0",
|
|
67
|
+
"react-dom": "^16.2.0",
|
|
68
|
+
"react-test-renderer": "^16.8.6",
|
|
69
|
+
"react-transform-hmr": "^1.0.4",
|
|
70
|
+
"rimraf": "^2.6.2",
|
|
71
|
+
"rollup": "^0.62.0",
|
|
72
|
+
"rollup-plugin-babel": "^3.0.2",
|
|
73
|
+
"rollup-plugin-commonjs": "^8.2.6",
|
|
74
|
+
"rollup-plugin-node-resolve": "^3.0.0",
|
|
75
|
+
"rollup-plugin-uglify": "^2.0.1",
|
|
76
|
+
"sass-lint": "^1.12.1",
|
|
77
|
+
"sass-loader": "^4.1.1",
|
|
78
|
+
"sinon": "^4.1.2",
|
|
79
|
+
"style-loader": "^0.19.0",
|
|
80
|
+
"webpack": "^1.13.0",
|
|
81
|
+
"webpack-dev-middleware": "^1.12.0",
|
|
82
|
+
"webpack-dev-server": "^3.1.14",
|
|
83
|
+
"webpack-hot-middleware": "^2.20.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"moment": "^2.20.0",
|
|
87
|
+
"react": "^16.0.0",
|
|
88
|
+
"react-dom": "^16.0.0"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"classnames": "^2.2.5",
|
|
92
|
+
"focus-trap-react": "^4.0.0",
|
|
93
|
+
"json-loader": "^0.5.7",
|
|
94
|
+
"prop-types": "^15.6.0",
|
|
95
|
+
"react-onclickoutside": "^6.7.1",
|
|
96
|
+
"react-popper": "^1.0.2"
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"eslint": "eslint {src,test,docs-site/src}/**/*.{js,jsx} *.js",
|
|
100
|
+
"flow": "flow",
|
|
101
|
+
"precommit": "lint-staged",
|
|
102
|
+
"sass-lint": "sass-lint --config .sass-lint.yml 'src/stylesheets/*.scss, docs-site/src/*.scss' -i 'docs-site/src/higlight.scss, docs-site/src/reset.scss'",
|
|
103
|
+
"lint": "run-p eslint flow sass-lint",
|
|
104
|
+
"start": "cross-env MODULES=false node server.js",
|
|
105
|
+
"test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
|
|
106
|
+
"prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
|
|
107
|
+
"prepare": "npm run build",
|
|
108
|
+
"prebuild": "rimraf es lib dist",
|
|
109
|
+
"build": "cross-env NODE_ENV=production run-p build:** && run-p css:**",
|
|
110
|
+
"build-dev": "cross-env NODE_ENV=development run-p build:** && run-p css:**",
|
|
111
|
+
"css:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker.scss > lib/react-datepicker.min.css",
|
|
112
|
+
"css:modules:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.min.css",
|
|
113
|
+
"css:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker.scss > lib/react-datepicker.css",
|
|
114
|
+
"css:modules:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.css",
|
|
115
|
+
"build:es": "cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o ../react-datepicker.js",
|
|
116
|
+
"build:docs": "cross-env MODULES=false webpack --config webpack.docs.config.js"
|
|
117
|
+
},
|
|
118
|
+
"lint-staged": {
|
|
119
|
+
"*.{js,jsx,json,css,scss,md}": [
|
|
120
|
+
"prettier --write",
|
|
121
|
+
"git add"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -27,7 +27,7 @@ var _description_list_context = require("./description_list_context");
|
|
|
27
27
|
|
|
28
28
|
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
|
-
var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type"];
|
|
30
|
+
var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "gutterSize"];
|
|
31
31
|
|
|
32
32
|
var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
33
33
|
var _ref$align = _ref.align,
|
|
@@ -43,6 +43,8 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
|
43
43
|
titleProps = _ref.titleProps,
|
|
44
44
|
_ref$type = _ref.type,
|
|
45
45
|
type = _ref$type === void 0 ? 'row' : _ref$type,
|
|
46
|
+
_ref$gutterSize = _ref.gutterSize,
|
|
47
|
+
gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
|
|
46
48
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
47
49
|
var euiTheme = (0, _services.useEuiTheme)();
|
|
48
50
|
var styles = (0, _description_list.euiDescriptionListStyles)(euiTheme);
|
|
@@ -67,7 +69,8 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
|
67
69
|
type: type,
|
|
68
70
|
compressed: compressed,
|
|
69
71
|
textStyle: textStyle,
|
|
70
|
-
align: align
|
|
72
|
+
align: align,
|
|
73
|
+
gutterSize: gutterSize
|
|
71
74
|
}
|
|
72
75
|
}, (0, _react2.jsx)("dl", (0, _extends2.default)({
|
|
73
76
|
className: classes,
|
|
@@ -17,7 +17,8 @@ var _react = require("react");
|
|
|
17
17
|
var contextDefaults = {
|
|
18
18
|
type: 'row',
|
|
19
19
|
textStyle: 'normal',
|
|
20
|
-
align: 'left'
|
|
20
|
+
align: 'left',
|
|
21
|
+
gutterSize: 'm'
|
|
21
22
|
};
|
|
22
23
|
exports.contextDefaults = contextDefaults;
|
|
23
24
|
var EuiDescriptionListContext = /*#__PURE__*/(0, _react.createContext)(contextDefaults);
|
|
@@ -42,7 +42,8 @@ var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref)
|
|
|
42
42
|
type = _useContext.type,
|
|
43
43
|
textStyle = _useContext.textStyle,
|
|
44
44
|
compressed = _useContext.compressed,
|
|
45
|
-
align = _useContext.align
|
|
45
|
+
align = _useContext.align,
|
|
46
|
+
gutterSize = _useContext.gutterSize;
|
|
46
47
|
|
|
47
48
|
var theme = (0, _services.useEuiTheme)();
|
|
48
49
|
var styles = (0, _description_list_description.euiDescriptionListDescriptionStyles)(theme);
|
|
@@ -59,6 +60,7 @@ var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref)
|
|
|
59
60
|
conditionalStyles.push(styles.left);
|
|
60
61
|
}
|
|
61
62
|
|
|
63
|
+
conditionalStyles.push(styles[gutterSize]);
|
|
62
64
|
break;
|
|
63
65
|
}
|
|
64
66
|
|
|
@@ -24,7 +24,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
24
24
|
|
|
25
25
|
var euiDescriptionListDescriptionStyles = function euiDescriptionListDescriptionStyles(euiThemeContext) {
|
|
26
26
|
var euiTheme = euiThemeContext.euiTheme;
|
|
27
|
-
var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "
|
|
27
|
+
var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), "\n ");
|
|
28
28
|
return {
|
|
29
29
|
euiDescriptionList__description: /*#__PURE__*/(0, _react.css)(";label:euiDescriptionList__description;"),
|
|
30
30
|
// Types
|
|
@@ -44,7 +44,10 @@ var euiDescriptionListDescriptionStyles = function euiDescriptionListDescription
|
|
|
44
44
|
normal: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";;label:normal;")
|
|
45
45
|
},
|
|
46
46
|
// Column types should align description text to the left when EuiDecriptionList is centered
|
|
47
|
-
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;")
|
|
47
|
+
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;"),
|
|
48
|
+
// Gutter
|
|
49
|
+
s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
|
|
50
|
+
m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
|
|
48
51
|
};
|
|
49
52
|
};
|
|
50
53
|
|
|
@@ -42,7 +42,8 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
42
42
|
type = _useContext.type,
|
|
43
43
|
textStyle = _useContext.textStyle,
|
|
44
44
|
compressed = _useContext.compressed,
|
|
45
|
-
align = _useContext.align
|
|
45
|
+
align = _useContext.align,
|
|
46
|
+
gutterSize = _useContext.gutterSize;
|
|
46
47
|
|
|
47
48
|
var theme = (0, _services.useEuiTheme)();
|
|
48
49
|
var styles = (0, _description_list_title.euiDescriptionListTitleStyles)(theme);
|
|
@@ -62,7 +63,7 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
62
63
|
break;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
var cssStyles = [styles.euiDescriptionList__title, styles[type]].concat((0, _toConsumableArray2.default)(conditionalStyles));
|
|
66
|
+
var cssStyles = [styles.euiDescriptionList__title, styles[type], styles[gutterSize]].concat((0, _toConsumableArray2.default)(conditionalStyles));
|
|
66
67
|
var classes = (0, _classnames.default)('euiDescriptionList__title', className);
|
|
67
68
|
return (0, _react2.jsx)("dt", (0, _extends2.default)({
|
|
68
69
|
className: classes,
|
|
@@ -23,9 +23,9 @@ var _title = require("../title/title.styles");
|
|
|
23
23
|
var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiThemeContext) {
|
|
24
24
|
var euiTheme = euiThemeContext.euiTheme,
|
|
25
25
|
colorMode = euiThemeContext.colorMode;
|
|
26
|
-
var columnDisplay = "\n
|
|
26
|
+
var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-right', euiTheme.size.s), "\n ");
|
|
27
27
|
return {
|
|
28
|
-
euiDescriptionList__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), "
|
|
28
|
+
euiDescriptionList__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), ";;label:euiDescriptionList__title;"),
|
|
29
29
|
// Types
|
|
30
30
|
row: /*#__PURE__*/(0, _react.css)(";label:row;"),
|
|
31
31
|
column: /*#__PURE__*/(0, _react.css)(columnDisplay, ";;label:column;"),
|
|
@@ -43,7 +43,11 @@ var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiTh
|
|
|
43
43
|
compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";", (0, _global_styling.logicalCSS)('padding-vertical', '0'), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), ";;label:compressed;")
|
|
44
44
|
},
|
|
45
45
|
// Alignment
|
|
46
|
-
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;")
|
|
46
|
+
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;"),
|
|
47
|
+
// Gutter
|
|
48
|
+
// Add margin only to the non-first <dt>.
|
|
49
|
+
s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
|
|
50
|
+
m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
|
|
47
51
|
};
|
|
48
52
|
};
|
|
49
53
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.TYPES = exports.TEXT_STYLES = exports.ALIGNMENTS = void 0;
|
|
6
|
+
exports.TYPES = exports.TEXT_STYLES = exports.GUTTER_SIZES = exports.ALIGNMENTS = void 0;
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -17,4 +17,6 @@ exports.TYPES = TYPES;
|
|
|
17
17
|
var ALIGNMENTS = ['center', 'left'];
|
|
18
18
|
exports.ALIGNMENTS = ALIGNMENTS;
|
|
19
19
|
var TEXT_STYLES = ['normal', 'reverse'];
|
|
20
|
-
exports.TEXT_STYLES = TEXT_STYLES;
|
|
20
|
+
exports.TEXT_STYLES = TEXT_STYLES;
|
|
21
|
+
var GUTTER_SIZES = ['s', 'm'];
|
|
22
|
+
exports.GUTTER_SIZES = GUTTER_SIZES;
|
|
@@ -90,26 +90,16 @@ var EuiFieldSearch = /*#__PURE__*/function (_Component) {
|
|
|
90
90
|
|
|
91
91
|
if (nativeInputValueSetter) {
|
|
92
92
|
nativeInputValueSetter.call(_this.inputElement, '');
|
|
93
|
-
} // dispatch input event
|
|
93
|
+
} // dispatch input event
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
var event
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
bubbles: true,
|
|
101
|
-
cancelable: false
|
|
102
|
-
});
|
|
103
|
-
} else {
|
|
104
|
-
// IE11
|
|
105
|
-
event = document.createEvent('Event');
|
|
106
|
-
event.initEvent('input', true, false);
|
|
107
|
-
}
|
|
96
|
+
var event = new Event('input', {
|
|
97
|
+
bubbles: true,
|
|
98
|
+
cancelable: false
|
|
99
|
+
});
|
|
108
100
|
|
|
109
101
|
if (_this.inputElement) {
|
|
110
|
-
|
|
111
|
-
_this.inputElement.dispatchEvent(event);
|
|
112
|
-
} // set focus on the search field
|
|
102
|
+
_this.inputElement.dispatchEvent(event); // set focus on the search field
|
|
113
103
|
|
|
114
104
|
|
|
115
105
|
_this.inputElement.focus();
|
|
@@ -35,7 +35,7 @@ var EuiRangeInput = function EuiRangeInput(_ref) {
|
|
|
35
35
|
_ref$autoSize = _ref.autoSize,
|
|
36
36
|
autoSize = _ref$autoSize === void 0 ? true : _ref$autoSize,
|
|
37
37
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
38
|
-
// Chrome will properly size the input based on the max value, but FF
|
|
38
|
+
// Chrome will properly size the input based on the max value, but FF does not.
|
|
39
39
|
// Calculate the width of the input based on highest number of characters.
|
|
40
40
|
// Add 2 to accommodate for input stepper
|
|
41
41
|
var widthStyle = autoSize ? {
|
|
@@ -30,10 +30,11 @@ var EuiHeaderSectionItem = function EuiHeaderSectionItem(_ref) {
|
|
|
30
30
|
children = _ref.children,
|
|
31
31
|
className = _ref.className,
|
|
32
32
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
33
|
-
var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className);
|
|
34
|
-
|
|
33
|
+
var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className); // we check if there is any children and if not, we don't render anything
|
|
34
|
+
|
|
35
|
+
return children ? (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
35
36
|
className: classes
|
|
36
|
-
}, rest), children);
|
|
37
|
+
}, rest), children) : null;
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
exports.EuiHeaderSectionItem = EuiHeaderSectionItem;
|
|
@@ -134,7 +134,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
134
134
|
|
|
135
135
|
(0, _classCallCheck2.default)(this, EuiIconClass);
|
|
136
136
|
_this = _super.call(this, props);
|
|
137
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isMounted",
|
|
137
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "isMounted", false);
|
|
138
138
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "loadIconComponent", function (iconType) {
|
|
139
139
|
if (iconComponentCache.hasOwnProperty(iconType)) {
|
|
140
140
|
// exists in cache
|
|
@@ -191,6 +191,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
191
191
|
(0, _createClass2.default)(EuiIconClass, [{
|
|
192
192
|
key: "componentDidMount",
|
|
193
193
|
value: function componentDidMount() {
|
|
194
|
+
this.isMounted = true;
|
|
194
195
|
var type = this.props.type;
|
|
195
196
|
|
|
196
197
|
if (isEuiIconType(type) && this.state.icon == null) {
|
|
@@ -266,14 +267,7 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
266
267
|
|
|
267
268
|
var styles = (0, _icon.euiIconStyles)(theme);
|
|
268
269
|
var cssStyles = [styles.euiIcon, styles[size], color && (0, _named_colors.isNamedColor)(color) && styles[color], isCustomColor && styles.customColor, isElasticLogoOutline && styles.logoElasticOutline, isAppIcon && !appIconHasColor && styles.app, isLoading && styles.isLoading, !isLoading && neededLoading && styles.isLoaded];
|
|
269
|
-
var icon = this.state.icon || _empty.icon;
|
|
270
|
-
// focusable="false".
|
|
271
|
-
// - If there's no tabindex specified, we'll default the icon to not be focusable,
|
|
272
|
-
// which is how SVGs behave in Chrome, Safari, and FF.
|
|
273
|
-
// - If tabindex is -1, then the consumer wants the icon to be focusable by JavaScript only.
|
|
274
|
-
// - If the tabindex is 0, the consumer wants the icon to be keyboard focusable.
|
|
275
|
-
|
|
276
|
-
var focusable = tabIndex == null || tabIndex === -1 ? 'false' : 'true';
|
|
270
|
+
var icon = this.state.icon || _empty.icon;
|
|
277
271
|
|
|
278
272
|
if (typeof icon === 'string') {
|
|
279
273
|
return (0, _react3.jsx)("img", (0, _extends2.default)({
|
|
@@ -305,7 +299,6 @@ var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
305
299
|
style: optionalCustomStyles,
|
|
306
300
|
css: cssStyles,
|
|
307
301
|
tabIndex: tabIndex,
|
|
308
|
-
focusable: focusable,
|
|
309
302
|
role: "img",
|
|
310
303
|
title: title,
|
|
311
304
|
"data-icon-type": iconTitle,
|
|
@@ -76,10 +76,9 @@ var EuiImageFullScreenWrapper = function EuiImageFullScreenWrapper(_ref) {
|
|
|
76
76
|
var iconStyles = (0, _image_button2.euiImageButtonIconStyles)(euiTheme);
|
|
77
77
|
var cssIconStyles = [iconStyles.euiImageButton__icon, iconStyles.closeFullScreen];
|
|
78
78
|
return (0, _react2.jsx)(_overlay_mask.EuiOverlayMask, {
|
|
79
|
-
"data-test-subj": "fullScreenOverlayMask"
|
|
80
|
-
onClick: closeFullScreen
|
|
79
|
+
"data-test-subj": "fullScreenOverlayMask"
|
|
81
80
|
}, (0, _react2.jsx)(_focus_trap.EuiFocusTrap, {
|
|
82
|
-
|
|
81
|
+
onClickOutside: closeFullScreen
|
|
83
82
|
}, (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)("figure", (0, _extends2.default)({
|
|
84
83
|
"aria-label": optionalCaptionText
|
|
85
84
|
}, wrapperProps, {
|
|
@@ -33,7 +33,7 @@ var _href_validator = require("../../services/security/href_validator");
|
|
|
33
33
|
|
|
34
34
|
var _react2 = require("@emotion/react");
|
|
35
35
|
|
|
36
|
-
var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef"],
|
|
36
|
+
var _excluded = ["label", "isActive", "isDisabled", "href", "target", "rel", "className", "iconType", "icon", "iconProps", "extraAction", "onClick", "size", "color", "showToolTip", "wrapText", "buttonRef", "toolTipText"],
|
|
37
37
|
_excluded2 = ["iconType", "alwaysShow", "className", "isDisabled"];
|
|
38
38
|
|
|
39
39
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -81,6 +81,7 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
|
|
|
81
81
|
showToolTip = _ref$showToolTip === void 0 ? false : _ref$showToolTip,
|
|
82
82
|
wrapText = _ref.wrapText,
|
|
83
83
|
buttonRef = _ref.buttonRef,
|
|
84
|
+
toolTipText = _ref.toolTipText,
|
|
84
85
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
85
86
|
|
|
86
87
|
var isHrefValid = !href || (0, _href_validator.validateHref)(href);
|
|
@@ -182,7 +183,7 @@ var EuiListGroupItem = function EuiListGroupItem(_ref) {
|
|
|
182
183
|
className: classes
|
|
183
184
|
}, (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
184
185
|
anchorClassName: "euiListGroupItem__tooltip",
|
|
185
|
-
content: label,
|
|
186
|
+
content: toolTipText !== null && toolTipText !== void 0 ? toolTipText : label,
|
|
186
187
|
position: "right",
|
|
187
188
|
delay: "long"
|
|
188
189
|
}, itemContent));
|
|
@@ -11,6 +11,8 @@ exports.EuiNotificationEvent = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
14
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
17
|
|
|
16
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -31,17 +33,12 @@ var _notification_event_read_icon = require("./notification_event_read_icon");
|
|
|
31
33
|
|
|
32
34
|
var _react2 = require("@emotion/react");
|
|
33
35
|
|
|
36
|
+
var _excluded = ["id", "type", "severity", "badgeColor", "iconType", "iconAriaLabel", "time", "title", "isRead", "primaryAction", "primaryActionProps", "messages", "onRead", "onOpenContextMenu", "onClickTitle", "onClickPrimaryAction", "headingLevel", "className"];
|
|
37
|
+
|
|
34
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
39
|
|
|
36
40
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
41
|
|
|
38
|
-
/*
|
|
39
|
-
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
40
|
-
* or more contributor license agreements. Licensed under the Elastic License
|
|
41
|
-
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
42
|
-
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
43
|
-
* Side Public License, v 1.
|
|
44
|
-
*/
|
|
45
42
|
var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
|
|
46
43
|
var id = _ref.id,
|
|
47
44
|
type = _ref.type,
|
|
@@ -60,9 +57,12 @@ var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
|
|
|
60
57
|
onClickTitle = _ref.onClickTitle,
|
|
61
58
|
onClickPrimaryAction = _ref.onClickPrimaryAction,
|
|
62
59
|
_ref$headingLevel = _ref.headingLevel,
|
|
63
|
-
headingLevel = _ref$headingLevel === void 0 ? 'h2' : _ref$headingLevel
|
|
60
|
+
headingLevel = _ref$headingLevel === void 0 ? 'h2' : _ref$headingLevel,
|
|
61
|
+
className = _ref.className,
|
|
62
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
64
63
|
var classes = (0, _classnames.default)('euiNotificationEvent', {
|
|
65
|
-
'euiNotificationEvent--withReadState': typeof isRead === 'boolean'
|
|
64
|
+
'euiNotificationEvent--withReadState': typeof isRead === 'boolean',
|
|
65
|
+
className: className
|
|
66
66
|
});
|
|
67
67
|
var classesTitle = (0, _classnames.default)('euiNotificationEvent__title', {
|
|
68
68
|
'euiNotificationEvent__title--isRead': isRead
|
|
@@ -73,11 +73,11 @@ var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
|
|
|
73
73
|
className: classesTitle,
|
|
74
74
|
'data-test-subj': "".concat(id, "-notificationEventTitle")
|
|
75
75
|
};
|
|
76
|
-
return (0, _react2.jsx)("article", {
|
|
76
|
+
return (0, _react2.jsx)("article", (0, _extends2.default)({
|
|
77
77
|
"aria-labelledby": randomHeadingId,
|
|
78
78
|
className: classes,
|
|
79
79
|
key: id
|
|
80
|
-
}, typeof isRead === 'boolean' && (0, _react2.jsx)("div", {
|
|
80
|
+
}, rest), typeof isRead === 'boolean' && (0, _react2.jsx)("div", {
|
|
81
81
|
className: "euiNotificationEvent__readButton"
|
|
82
82
|
}, !!onRead ? (0, _react2.jsx)(_notification_event_read_button.EuiNotificationEventReadButton, {
|
|
83
83
|
isRead: isRead,
|
|
@@ -63,7 +63,7 @@ var EuiMutationObserver = /*#__PURE__*/function (_EuiObserver) {
|
|
|
63
63
|
exports.EuiMutationObserver = EuiMutationObserver;
|
|
64
64
|
|
|
65
65
|
var makeMutationObserver = function makeMutationObserver(node, _observerOptions, callback) {
|
|
66
|
-
//
|
|
66
|
+
// The MutationObserver polyfill used in Kibana (for Jest) implements
|
|
67
67
|
// an older spec in which specifying `attributeOldValue` or `attributeFilter`
|
|
68
68
|
// without specifying `attributes` results in a `SyntaxError`.
|
|
69
69
|
// The following logic patches the newer spec in which `attributes: true` can be
|