@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
|
@@ -45,7 +45,7 @@ var useEuiFontSize = function useEuiFontSize(scale, options) {
|
|
|
45
45
|
exports.useEuiFontSize = useEuiFontSize;
|
|
46
46
|
|
|
47
47
|
var euiTextBreakWord = function euiTextBreakWord() {
|
|
48
|
-
return "\n overflow-wrap: break-word !important; // makes sure the long string will wrap and not bust out of the container\n word-
|
|
48
|
+
return "\n overflow-wrap: break-word !important; // makes sure the long string will wrap and not bust out of the container\n word-break: break-word;\n";
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* Prevent text from wrapping onto multiple lines, and truncate with an ellipsis.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.euiAnimFadeIn = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
|
+
|
|
14
|
+
var _templateObject;
|
|
15
|
+
|
|
16
|
+
var euiAnimFadeIn = (0, _react.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n"])));
|
|
17
|
+
exports.euiAnimFadeIn = euiAnimFadeIn;
|
|
@@ -32,11 +32,14 @@ var useEuiTheme = function useEuiTheme() {
|
|
|
32
32
|
var theme = (0, _react.useContext)(_context.EuiThemeContext);
|
|
33
33
|
var colorMode = (0, _react.useContext)(_context.EuiColorModeContext);
|
|
34
34
|
var modifications = (0, _react.useContext)(_context.EuiModificationsContext);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
var assembledTheme = (0, _react.useMemo)(function () {
|
|
36
|
+
return {
|
|
37
|
+
euiTheme: theme,
|
|
38
|
+
colorMode: colorMode,
|
|
39
|
+
modifications: modifications
|
|
40
|
+
};
|
|
41
|
+
}, [theme, colorMode, modifications]);
|
|
42
|
+
return assembledTheme;
|
|
40
43
|
};
|
|
41
44
|
|
|
42
45
|
exports.useEuiTheme = useEuiTheme;
|
|
@@ -47,17 +50,9 @@ var withEuiTheme = function withEuiTheme(Component) {
|
|
|
47
50
|
var componentName = Component.displayName || Component.name || 'ComponentWithTheme';
|
|
48
51
|
|
|
49
52
|
var Render = function Render(props, ref) {
|
|
50
|
-
var
|
|
51
|
-
euiTheme = _useEuiTheme.euiTheme,
|
|
52
|
-
colorMode = _useEuiTheme.colorMode,
|
|
53
|
-
modifications = _useEuiTheme.modifications;
|
|
54
|
-
|
|
53
|
+
var theme = useEuiTheme();
|
|
55
54
|
return (0, _react2.jsx)(Component, (0, _extends2.default)({
|
|
56
|
-
theme:
|
|
57
|
-
euiTheme: euiTheme,
|
|
58
|
-
colorMode: colorMode,
|
|
59
|
-
modifications: modifications
|
|
60
|
-
},
|
|
55
|
+
theme: theme,
|
|
61
56
|
ref: ref
|
|
62
57
|
}, props));
|
|
63
58
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "67.0.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@cypress/code-coverage": "^3.9.12",
|
|
116
116
|
"@cypress/react": "^5.10.3",
|
|
117
117
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
118
|
-
"@elastic/charts": "^
|
|
118
|
+
"@elastic/charts": "^48.0.0",
|
|
119
119
|
"@elastic/datemath": "^5.0.3",
|
|
120
120
|
"@elastic/eslint-config-kibana": "^0.15.0",
|
|
121
121
|
"@emotion/babel-preset-css-prop": "^11.2.0",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
|
|
44
44
|
.euiBadge__childButton {
|
|
45
45
|
@include euiTextTruncate;
|
|
46
|
-
flex: 1 1 auto; // Must be 1 and 1 for IE to properly truncate
|
|
47
46
|
text-align: inherit;
|
|
48
47
|
font-weight: inherit;
|
|
49
48
|
line-height: inherit;
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
.euiBadge__iconButton {
|
|
65
|
-
flex: 0 0 auto;
|
|
66
64
|
font-size: 0; // Makes the button only as large as the icon so it aligns vertically better
|
|
67
65
|
margin-left: $euiSizeXS;
|
|
68
66
|
|
|
@@ -84,13 +82,10 @@
|
|
|
84
82
|
|
|
85
83
|
.euiBadge__text {
|
|
86
84
|
@include euiTextTruncate;
|
|
87
|
-
flex: 1 1 auto;
|
|
88
85
|
cursor: default;
|
|
89
86
|
}
|
|
90
87
|
|
|
91
88
|
.euiBadge__icon {
|
|
92
|
-
flex: 0 0 auto;
|
|
93
|
-
|
|
94
89
|
&:not(:only-child) {
|
|
95
90
|
margin-left: $euiSizeXS;
|
|
96
91
|
}
|
|
@@ -104,6 +104,13 @@
|
|
|
104
104
|
max-width: 400px !important;
|
|
105
105
|
max-height: 400px !important;
|
|
106
106
|
z-index: $euiZDataGridCellPopover !important;
|
|
107
|
+
// Workaround for a Safari CSS bug when using both `overflow: auto` & `filter: drop-shadow`
|
|
108
|
+
// (see https://github.com/elastic/eui/issues/6151)
|
|
109
|
+
// Disables the default EuiPopover filter drop-shadow and uses box-shadow instead,
|
|
110
|
+
// since we don't use the popover arrow in any case for cell popovers
|
|
111
|
+
filter: none;
|
|
112
|
+
// sass-lint:disable-block mixins-before-declarations
|
|
113
|
+
@include euiBottomShadow; // TODO: Convert to euiShadowMedium() in Emotion
|
|
107
114
|
}
|
|
108
115
|
|
|
109
116
|
.euiDataGridRowCell__expandFlex {
|
|
@@ -36,9 +36,11 @@
|
|
|
36
36
|
display: flex;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
// A fixed width is required
|
|
39
|
+
// A fixed width is required because of the shift in widths that can be caused
|
|
40
40
|
// by the loading animation that precedes the results.
|
|
41
41
|
.euiFilterGroup__popoverPanel {
|
|
42
|
+
// Note for Emotion conversion: there are unfortunately 5+ direct
|
|
43
|
+
// usages of this className in Kibana that will need to be refactored
|
|
42
44
|
width: $euiSize * 18;
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 1. Not always needed, but fixes an IE11 issue when flex-groups are nested under display: flex elements.
|
|
3
|
-
* 2. IE requires a unit to grow.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
1
|
.euiFlexGroup {
|
|
7
2
|
display: flex;
|
|
8
3
|
align-items: stretch;
|
|
9
|
-
flex-grow: 1;
|
|
4
|
+
flex-grow: 1; // Grow nested flex-groups by default
|
|
10
5
|
|
|
11
6
|
.euiFlexItem {
|
|
12
|
-
@include internetExplorerOnly {
|
|
13
|
-
min-width: 1px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
7
|
flex-grow: 1;
|
|
17
|
-
flex-basis: 0%;
|
|
8
|
+
flex-basis: 0%;
|
|
18
9
|
}
|
|
19
10
|
}
|
|
20
11
|
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 1. Allow EuiPanels to expand to fill the item.
|
|
3
|
-
* 2. IE11 hack forces inner content of flex items to respect a higher parent's width (mostly) and
|
|
4
|
-
* not cause weird wrapping issues.
|
|
5
3
|
*/
|
|
6
4
|
.euiFlexItem {
|
|
7
|
-
@include internetExplorerOnly {
|
|
8
|
-
min-width: 1px; /* 2 */
|
|
9
|
-
}
|
|
10
|
-
|
|
11
5
|
display: flex; /* 1 */
|
|
12
6
|
flex-direction: column; /* 1 */
|
|
13
7
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* 1. Fix for Safari to ensure that it renders like a normal text input
|
|
3
3
|
* and doesn't add extra spacing around text
|
|
4
|
-
* 2. Remove the X clear button from input type search in Chrome and IE
|
|
5
4
|
*/
|
|
6
5
|
|
|
7
6
|
.euiFieldSearch {
|
|
@@ -16,10 +15,6 @@
|
|
|
16
15
|
&::-webkit-search-cancel-button {
|
|
17
16
|
-webkit-appearance: none; /* 1, 2 */
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
&::-ms-clear {
|
|
21
|
-
display: none; /* 2 */
|
|
22
|
-
}
|
|
23
18
|
}
|
|
24
19
|
|
|
25
20
|
.euiFieldSearch--compressed {
|
|
@@ -22,8 +22,6 @@
|
|
|
22
22
|
|
|
23
23
|
.euiFormControlLayoutDelimited__input {
|
|
24
24
|
height: 100%;
|
|
25
|
-
padding-top: 0; // Fixes IE
|
|
26
|
-
padding-bottom: 0; // Fixes IE
|
|
27
25
|
padding-left: $euiFormControlCompressedPadding;
|
|
28
26
|
padding-right: $euiFormControlCompressedPadding;
|
|
29
27
|
}
|
|
@@ -66,7 +64,6 @@
|
|
|
66
64
|
position: static; // Overrider absolute
|
|
67
65
|
padding-left: $euiFormControlPadding;
|
|
68
66
|
padding-right: $euiFormControlPadding;
|
|
69
|
-
flex-shrink: 0; // Fixes IE
|
|
70
67
|
|
|
71
68
|
&:not(.euiFormControlLayoutIcons--right) {
|
|
72
69
|
order: -1;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
@import 'badge/index';
|
|
5
5
|
@import 'basic_table/index';
|
|
6
6
|
@import 'button/index';
|
|
7
|
-
@import 'call_out/index';
|
|
8
7
|
@import 'code/index';
|
|
9
8
|
@import 'collapsible_nav/index';
|
|
10
9
|
@import 'color_picker/index';
|
|
@@ -25,8 +24,6 @@
|
|
|
25
24
|
@import 'markdown_editor/index';
|
|
26
25
|
@import 'modal/index';
|
|
27
26
|
@import 'notification/index';
|
|
28
|
-
@import 'overlay_mask/index';
|
|
29
|
-
@import 'pagination/index';
|
|
30
27
|
@import 'panel/index';
|
|
31
28
|
@import 'page/index'; // Page needs to come after Panel for cascade specificity
|
|
32
29
|
@import 'tree_view/index';
|
|
@@ -38,4 +35,3 @@
|
|
|
38
35
|
@import 'suggest/index';
|
|
39
36
|
@import 'table/index';
|
|
40
37
|
@import 'tabs/index';
|
|
41
|
-
@import 'tool_tip/index';
|
|
@@ -7,21 +7,13 @@
|
|
|
7
7
|
position: relative;
|
|
8
8
|
|
|
9
9
|
&.euiListGroupItem-isActive,
|
|
10
|
-
&.euiListGroupItem-isClickable:hover
|
|
11
|
-
background-color: $euiListGroupItemHoverBackground;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Can't be grouped with above or else IE will ignore the whole group
|
|
10
|
+
&.euiListGroupItem-isClickable:hover,
|
|
15
11
|
&.euiListGroupItem-isClickable:focus-within {
|
|
16
12
|
background-color: $euiListGroupItemHoverBackground;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
15
|
&.euiListGroupItem--ghost {
|
|
20
|
-
&.euiListGroupItem-isClickable:hover
|
|
21
|
-
background-color: $euiListGroupItemHoverBackgroundGhost;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Can't be grouped with above or else IE will ignore the whole group
|
|
16
|
+
&.euiListGroupItem-isClickable:hover,
|
|
25
17
|
&.euiListGroupItem-isClickable:focus-within {
|
|
26
18
|
background-color: $euiListGroupItemHoverBackgroundGhost;
|
|
27
19
|
}
|
|
@@ -46,27 +38,13 @@
|
|
|
46
38
|
}
|
|
47
39
|
}
|
|
48
40
|
|
|
49
|
-
// IE doesn't support :focus-within
|
|
50
|
-
@include internetExplorerOnly {
|
|
51
|
-
.euiListGroupItem__button:hover,
|
|
52
|
-
.euiListGroupItem__button:focus {
|
|
53
|
-
background-color: $euiListGroupItemHoverBackground;
|
|
54
|
-
border-radius: $euiBorderRadius;
|
|
55
|
-
|
|
56
|
-
.euiListGroupItem--ghost .euiListGroupItem__button:hover,
|
|
57
|
-
.euiListGroupItem--ghost .euiListGroupItem__button:focus {
|
|
58
|
-
background-color: $euiListGroupItemHoverBackgroundGhost;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
41
|
.euiListGroupItem__text,
|
|
64
42
|
.euiListGroupItem__button {
|
|
65
43
|
line-height: $euiSizeL;
|
|
66
44
|
padding: $euiSizeXS $euiSizeS;
|
|
67
45
|
display: flex;
|
|
68
46
|
align-items: center;
|
|
69
|
-
flex: 1
|
|
47
|
+
flex-grow: 1;
|
|
70
48
|
text-align: left;
|
|
71
49
|
max-width: 100%;
|
|
72
50
|
font-weight: inherit;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 1. Fix IE overflow issue (min-height) by adding a separate wrapper for the
|
|
3
|
-
* flex display. https://github.com/philipwalton/flexbugs#flexbug-3
|
|
4
|
-
* 2. IE has trouble with min-widths on flex elements. Use the pixel value
|
|
5
|
-
* from our forms since that's usually the smallest we want them.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
1
|
.euiModal {
|
|
9
2
|
border: $euiBorderThin;
|
|
10
3
|
// This mixin overwrites some of the border above
|
|
11
4
|
@include euiBottomShadowLarge; // sass-lint:disable-line mixins-before-declarations
|
|
12
|
-
display: flex;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
max-height: 75vh; // We overflow the modal body based off this
|
|
8
|
+
overflow: hidden; // Ensure long, non-breaking text doesn't expand beyond the modal bounds
|
|
13
9
|
|
|
14
10
|
position: relative;
|
|
15
11
|
background-color: $euiColorEmptyShade;
|
|
@@ -23,14 +19,6 @@
|
|
|
23
19
|
&:focus {
|
|
24
20
|
outline: none;
|
|
25
21
|
}
|
|
26
|
-
|
|
27
|
-
.euiModal__flex { /* 1 */
|
|
28
|
-
flex: 1 1 auto;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
max-height: 75vh; // We overflow the modal body based off this
|
|
32
|
-
overflow: hidden; // Ensure long, non-breaking text doesn't expand beyond the modal bounds
|
|
33
|
-
}
|
|
34
22
|
}
|
|
35
23
|
|
|
36
24
|
.euiModal--maxWidth-default {
|
|
@@ -123,6 +111,7 @@
|
|
|
123
111
|
width: 100vw !important;
|
|
124
112
|
max-width: none !important;
|
|
125
113
|
min-width: 0 !important;
|
|
114
|
+
max-height: 100vh;
|
|
126
115
|
left: 0;
|
|
127
116
|
right: 0;
|
|
128
117
|
bottom: 0;
|
|
@@ -134,10 +123,6 @@
|
|
|
134
123
|
@include euiBottomShadowLarge($reverse: true);
|
|
135
124
|
top: auto;
|
|
136
125
|
}
|
|
137
|
-
|
|
138
|
-
.euiModal__flex { /* 1 */
|
|
139
|
-
max-height: 100vh;
|
|
140
|
-
}
|
|
141
126
|
}
|
|
142
127
|
|
|
143
128
|
.euiModalHeader {
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE: table-layout: fixed causes a bug in IE11 and Edge (see #9929). It also prevents us from
|
|
3
|
-
* specifying a column width, e.g. the checkbox column.
|
|
4
|
-
*/
|
|
5
1
|
.euiTable {
|
|
6
2
|
@include euiFontSizeS;
|
|
7
3
|
@include euiNumberFormat;
|
|
@@ -194,7 +190,6 @@
|
|
|
194
190
|
overflow: visible;
|
|
195
191
|
white-space: normal;
|
|
196
192
|
//* 4 */ overflow-wrap is not supported on flex parents
|
|
197
|
-
word-break: break-all; // Fallback for FF and IE
|
|
198
193
|
word-break: break-word;
|
|
199
194
|
}
|
|
200
195
|
|
|
@@ -78,10 +78,6 @@
|
|
|
78
78
|
font-size: $euiFontSizeS;
|
|
79
79
|
color: $euiTextColor;
|
|
80
80
|
|
|
81
|
-
@include internetExplorerOnly {
|
|
82
|
-
line-height: 1em; // fixes text alignment in IE
|
|
83
|
-
}
|
|
84
|
-
|
|
85
81
|
// sass-lint:disable-block mixins-before-declarations
|
|
86
82
|
@include euiPlaceholderPerBrowser {
|
|
87
83
|
color: $euiFormControlPlaceholderText;
|
|
@@ -112,14 +112,6 @@
|
|
|
112
112
|
margin: -1px;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
// Specifically target IE11, but not Edge.
|
|
116
|
-
@mixin internetExplorerOnly {
|
|
117
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
118
|
-
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
|
|
119
|
-
@content;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
115
|
// Doesn't have reduced motion turned on
|
|
124
116
|
@mixin euiCanAnimate {
|
|
125
117
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
@@ -6,13 +6,10 @@
|
|
|
6
6
|
z-index: $euiZLevel9;
|
|
7
7
|
max-width: 256px;
|
|
8
8
|
overflow-wrap: break-word;
|
|
9
|
+
padding: $euiSizeS;
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
padding: $euiSizeS;
|
|
13
|
-
} @else {
|
|
14
|
-
@include euiFontSizeS;
|
|
15
|
-
padding: $euiSizeM;
|
|
11
|
+
.euiHorizontalRule {
|
|
12
|
+
background-color: $euiTooltipBorderColor;
|
|
16
13
|
}
|
|
17
14
|
}
|
|
18
15
|
|
|
@@ -127,8 +127,7 @@
|
|
|
127
127
|
@mixin euiTextBreakWord {
|
|
128
128
|
// https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
129
129
|
overflow-wrap: break-word !important; // makes sure the long string will wrap and not bust out of the container
|
|
130
|
-
word-
|
|
131
|
-
word-break: break-word; // IE doesn't understand but that's ok
|
|
130
|
+
word-break: break-word;
|
|
132
131
|
}
|
|
133
132
|
|
|
134
133
|
// Text truncation
|
|
@@ -138,8 +137,6 @@
|
|
|
138
137
|
//
|
|
139
138
|
// 1. Ensure that the node has a maximum width after which truncation can
|
|
140
139
|
// occur.
|
|
141
|
-
// 2. Fix for IE 8/9 if `word-wrap: break-word` is in effect on ancestor
|
|
142
|
-
// nodes.
|
|
143
140
|
|
|
144
141
|
@mixin euiTextTruncate {
|
|
145
142
|
// sass-lint:disable-block no-important
|
|
@@ -147,7 +144,6 @@
|
|
|
147
144
|
overflow: hidden !important;
|
|
148
145
|
text-overflow: ellipsis !important;
|
|
149
146
|
white-space: nowrap !important;
|
|
150
|
-
word-wrap: normal !important; // 2
|
|
151
147
|
}
|
|
152
148
|
|
|
153
149
|
@mixin euiNumberFormat {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
@import 'markdown_editor';
|
|
17
17
|
@import 'modal';
|
|
18
18
|
@import 'notification_badge';
|
|
19
|
-
@import 'overlay_mask';
|
|
20
19
|
@import 'range';
|
|
21
20
|
@import 'range_draggable';
|
|
22
21
|
@import 'range_highlight';
|
|
@@ -29,4 +28,3 @@
|
|
|
29
28
|
@import 'side_nav';
|
|
30
29
|
@import 'steps';
|
|
31
30
|
@import 'tabs';
|
|
32
|
-
@import 'tooltip';
|
|
@@ -1218,6 +1218,11 @@ EuiBasicTable.propTypes = {
|
|
|
1218
1218
|
*/
|
|
1219
1219
|
sortable: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.func.isRequired]),
|
|
1220
1220
|
isExpander: _propTypes.default.bool,
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
1224
|
+
* long text correctly.
|
|
1225
|
+
*/
|
|
1221
1226
|
textOnly: _propTypes.default.bool,
|
|
1222
1227
|
|
|
1223
1228
|
/**
|
|
@@ -1564,11 +1569,17 @@ EuiBasicTable.propTypes = {
|
|
|
1564
1569
|
tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
|
|
1565
1570
|
|
|
1566
1571
|
/**
|
|
1567
|
-
* Applied to table cells
|
|
1572
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
1573
|
+
*
|
|
1574
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
1575
|
+
* long text correctly.
|
|
1568
1576
|
*/
|
|
1569
1577
|
|
|
1570
1578
|
/**
|
|
1571
|
-
* Applied to table cells
|
|
1579
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
1580
|
+
*
|
|
1581
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
1582
|
+
* long text correctly.
|
|
1572
1583
|
*/
|
|
1573
1584
|
textOnly: _propTypes.default.bool
|
|
1574
1585
|
};
|
|
@@ -657,6 +657,11 @@ EuiInMemoryTable.propTypes = {
|
|
|
657
657
|
*/
|
|
658
658
|
sortable: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.func.isRequired]),
|
|
659
659
|
isExpander: _propTypes.default.bool,
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
663
|
+
* long text correctly.
|
|
664
|
+
*/
|
|
660
665
|
textOnly: _propTypes.default.bool,
|
|
661
666
|
|
|
662
667
|
/**
|
|
@@ -930,11 +935,17 @@ EuiInMemoryTable.propTypes = {
|
|
|
930
935
|
tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
|
|
931
936
|
|
|
932
937
|
/**
|
|
933
|
-
* Applied to table cells
|
|
938
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
939
|
+
*
|
|
940
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
941
|
+
* long text correctly.
|
|
934
942
|
*/
|
|
935
943
|
|
|
936
944
|
/**
|
|
937
|
-
* Applied to table cells
|
|
945
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
946
|
+
*
|
|
947
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
948
|
+
* long text correctly.
|
|
938
949
|
*/
|
|
939
950
|
textOnly: _propTypes.default.bool,
|
|
940
951
|
message: _propTypes.default.node,
|
|
@@ -171,7 +171,16 @@ EuiButtonDisplay.propTypes = {
|
|
|
171
171
|
/**
|
|
172
172
|
* Object of props passed to the <span/> wrapping the button's content
|
|
173
173
|
*/
|
|
174
|
-
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
177
|
+
*/
|
|
178
|
+
contentProps: _propTypes.default.shape({
|
|
179
|
+
className: _propTypes.default.string,
|
|
180
|
+
"aria-label": _propTypes.default.string,
|
|
181
|
+
"data-test-subj": _propTypes.default.string,
|
|
182
|
+
css: _propTypes.default.any
|
|
183
|
+
}),
|
|
175
184
|
style: _propTypes.default.any,
|
|
176
185
|
|
|
177
186
|
/**
|
|
@@ -210,7 +210,16 @@ EuiButtonEmpty.propTypes = {
|
|
|
210
210
|
/**
|
|
211
211
|
* Object of props passed to the <span/> wrapping the button's content
|
|
212
212
|
*/
|
|
213
|
-
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
216
|
+
*/
|
|
217
|
+
contentProps: _propTypes.default.shape({
|
|
218
|
+
className: _propTypes.default.string,
|
|
219
|
+
"aria-label": _propTypes.default.string,
|
|
220
|
+
"data-test-subj": _propTypes.default.string,
|
|
221
|
+
css: _propTypes.default.any
|
|
222
|
+
}),
|
|
214
223
|
|
|
215
224
|
/**
|
|
216
225
|
* Any `type` accepted by EuiIcon
|
|
@@ -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;"),
|
|
@@ -187,11 +187,6 @@ EuiCollapsibleNav.propTypes = {
|
|
|
187
187
|
"data-test-subj": _propTypes.default.string,
|
|
188
188
|
css: _propTypes.default.any,
|
|
189
189
|
|
|
190
|
-
/**
|
|
191
|
-
* Function that applies to clicking the mask itself and not the children
|
|
192
|
-
*/
|
|
193
|
-
onClick: _propTypes.default.func,
|
|
194
|
-
|
|
195
190
|
/**
|
|
196
191
|
* ReactNode to render as this component's content
|
|
197
192
|
*/
|