@elastic/eui 62.0.0 → 62.1.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 +1 -783
- package/dist/eui_theme_dark.json +0 -57
- package/dist/eui_theme_dark.json.d.ts +0 -57
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +1 -783
- package/dist/eui_theme_light.json +0 -57
- package/dist/eui_theme_light.json.d.ts +0 -57
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/breadcrumbs/breadcrumb.js +199 -0
- package/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
- package/es/components/breadcrumbs/breadcrumbs.js +115 -187
- package/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
- package/es/components/code/code_block.js +119 -107
- package/es/components/collapsible_nav/collapsible_nav.js +2 -2
- package/es/components/comment_list/comment_event.js +22 -28
- package/es/components/comment_list/comment_event.styles.js +15 -16
- package/es/components/control_bar/control_bar.js +13 -0
- package/es/components/datagrid/body/data_grid_body.js +1 -1
- package/es/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/data_grid.js +1 -1
- package/es/components/date_picker/super_date_picker/super_date_picker.js +2 -2
- package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/es/components/description_list/description_list.js +22 -26
- package/es/components/description_list/description_list.styles.js +25 -0
- package/es/components/description_list/description_list_context.js +14 -0
- package/es/components/description_list/description_list_description.js +43 -2
- package/es/components/description_list/description_list_description.styles.js +47 -0
- package/es/components/description_list/description_list_title.js +43 -2
- package/es/components/description_list/description_list_title.styles.js +37 -0
- package/es/components/description_list/description_list_types.js +10 -0
- package/es/components/filter_group/filter_button.js +3 -1
- package/es/components/header/header.js +1 -27
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +22 -2
- package/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
- package/es/components/header/header_links/header_links.js +9 -9
- package/es/components/icon/assets/tokenStruct.js +1 -1
- package/es/components/image/image_caption.js +2 -2
- package/es/components/image/image_wrapper.styles.js +1 -1
- package/es/components/page/page_header/page_header.js +1 -0
- package/es/components/page/page_header/page_header_content.js +2 -1
- package/es/components/page/page_template.js +1 -0
- package/es/components/pagination/pagination.js +1 -1
- package/es/components/panel/split_panel/split_panel.js +2 -2
- package/es/components/popover/wrapping_popover.js +45 -88
- package/es/components/portal/portal.js +38 -79
- package/es/components/provider/provider.js +2 -2
- package/es/components/responsive/hide_for.js +6 -38
- package/es/components/responsive/show_for.js +6 -38
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +17 -36
- package/es/components/side_nav/side_nav.js +1 -1
- package/es/components/table/table_row_cell.js +1 -2
- package/es/components/toast/global_toast_list.js +208 -241
- package/es/components/toast/global_toast_list.styles.js +38 -0
- package/es/components/toast/global_toast_list_item.js +12 -7
- package/es/components/toast/toast.js +25 -25
- package/es/components/toast/toast.styles.js +55 -0
- package/es/components/token/index.js +2 -1
- package/es/components/token/token.js +48 -112
- package/es/components/token/token.styles.js +93 -0
- package/es/components/token/token_map.js +6 -9
- package/es/components/token/token_types.js +11 -0
- package/es/global_styling/reset/global_styles.js +1 -1
- package/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
- package/es/services/breakpoint/currentEuiBreakpoint.js +64 -0
- package/es/services/breakpoint/index.js +10 -0
- package/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
- package/es/services/hooks/index.js +0 -1
- package/es/services/index.js +1 -1
- package/es/test/rtl/component_helpers.d.ts +7 -0
- package/es/test/rtl/component_helpers.js +72 -0
- package/es/test/rtl/custom_render.d.ts +74 -0
- package/es/test/rtl/custom_render.js +52 -0
- package/es/test/rtl/data_test_subj_queries.d.ts +5 -0
- package/es/{services/hooks/useIsWithinBreakpoints.js → test/rtl/data_test_subj_queries.js} +26 -36
- package/es/test/rtl/index.d.ts +3 -0
- package/es/test/rtl/index.js +10 -0
- package/eui.d.ts +1834 -1565
- package/i18ntokens.json +36 -36
- package/lib/components/breadcrumbs/breadcrumb.js +225 -0
- package/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
- package/lib/components/breadcrumbs/breadcrumbs.js +125 -188
- package/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
- package/lib/components/code/code_block.js +118 -106
- package/lib/components/collapsible_nav/collapsible_nav.js +2 -2
- package/lib/components/comment_list/comment_event.js +29 -26
- package/lib/components/comment_list/comment_event.styles.js +15 -16
- package/lib/components/control_bar/control_bar.js +13 -0
- package/lib/components/datagrid/body/data_grid_body.js +1 -1
- package/lib/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/data_grid.js +1 -1
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +2 -2
- package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/lib/components/description_list/description_list.js +25 -31
- package/lib/components/description_list/description_list.styles.js +36 -0
- package/lib/components/description_list/description_list_context.js +24 -0
- package/lib/components/description_list/description_list_description.js +52 -2
- package/lib/components/description_list/description_list_description.styles.js +51 -0
- package/lib/components/description_list/description_list_title.js +52 -2
- package/lib/components/description_list/description_list_title.styles.js +50 -0
- package/lib/components/description_list/description_list_types.js +20 -0
- package/lib/components/filter_group/filter_button.js +3 -1
- package/lib/components/header/header.js +1 -27
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
- package/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
- package/lib/components/header/header_links/header_links.js +8 -8
- package/lib/components/icon/assets/tokenStruct.js +1 -1
- package/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
- package/lib/components/image/image_caption.js +2 -2
- package/lib/components/image/image_wrapper.styles.js +1 -1
- package/lib/components/page/page_header/page_header.js +1 -0
- package/lib/components/page/page_header/page_header_content.js +3 -2
- package/lib/components/page/page_template.js +1 -0
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/panel/split_panel/split_panel.js +3 -3
- package/lib/components/popover/wrapping_popover.js +44 -85
- package/lib/components/portal/portal.js +39 -82
- package/lib/components/provider/provider.js +1 -1
- package/lib/components/responsive/hide_for.js +12 -44
- package/lib/components/responsive/show_for.js +12 -44
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
- package/lib/components/side_nav/side_nav.js +1 -1
- package/lib/components/table/table_row_cell.js +1 -3
- package/lib/components/toast/global_toast_list.js +209 -238
- package/lib/components/toast/global_toast_list.styles.js +45 -0
- package/lib/components/toast/global_toast_list_item.js +14 -7
- package/lib/components/toast/toast.js +27 -25
- package/lib/components/toast/toast.styles.js +66 -0
- package/lib/components/token/index.js +5 -3
- package/lib/components/token/token.js +50 -120
- package/lib/components/token/token.styles.js +101 -0
- package/lib/components/token/token_map.js +6 -9
- package/lib/components/token/token_types.js +22 -0
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/{test-env/services → lib/services/breakpoint}/breakpoint.js +5 -9
- package/lib/services/breakpoint/currentEuiBreakpoint.js +80 -0
- package/lib/services/breakpoint/index.js +44 -0
- package/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
- package/lib/services/hooks/index.js +0 -13
- package/lib/services/index.js +28 -0
- package/lib/test/rtl/component_helpers.d.ts +7 -0
- package/lib/test/rtl/component_helpers.js +77 -0
- package/lib/test/rtl/custom_render.d.ts +74 -0
- package/lib/test/rtl/custom_render.js +60 -0
- package/lib/test/rtl/data_test_subj_queries.d.ts +5 -0
- package/lib/{services/hooks/useIsWithinBreakpoints.js → test/rtl/data_test_subj_queries.js} +33 -38
- package/lib/test/rtl/index.d.ts +3 -0
- package/lib/test/rtl/index.js +81 -0
- package/optimize/es/components/breadcrumbs/breadcrumb.js +136 -0
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +61 -0
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +92 -165
- package/optimize/es/components/breadcrumbs/breadcrumbs.styles.js +30 -0
- package/optimize/es/components/code/code_block.js +106 -107
- package/optimize/es/components/comment_list/comment_event.js +22 -28
- package/optimize/es/components/comment_list/comment_event.styles.js +15 -16
- package/optimize/es/components/description_list/description_list.js +20 -24
- package/optimize/es/components/description_list/description_list.styles.js +25 -0
- package/optimize/es/components/description_list/description_list_context.js +14 -0
- package/optimize/es/components/description_list/description_list_description.js +32 -2
- package/optimize/es/components/description_list/description_list_description.styles.js +47 -0
- package/optimize/es/components/description_list/description_list_title.js +32 -2
- package/optimize/es/components/description_list/description_list_title.styles.js +37 -0
- package/optimize/es/components/description_list/description_list_types.js +10 -0
- package/optimize/es/components/filter_group/filter_button.js +3 -1
- package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.js +8 -1
- package/optimize/es/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +15 -0
- package/optimize/es/components/header/header_links/header_links.js +8 -8
- package/optimize/es/components/icon/assets/tokenStruct.js +1 -1
- package/optimize/es/components/image/image_caption.js +2 -2
- package/optimize/es/components/image/image_wrapper.styles.js +1 -1
- package/optimize/es/components/page/page_header/page_header_content.js +1 -1
- package/optimize/es/components/panel/split_panel/split_panel.js +1 -1
- package/optimize/es/components/popover/wrapping_popover.js +38 -79
- package/optimize/es/components/portal/portal.js +34 -61
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/components/responsive/hide_for.js +5 -27
- package/optimize/es/components/responsive/show_for.js +5 -27
- package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +16 -35
- package/optimize/es/components/table/table_row_cell.js +1 -2
- package/optimize/es/components/toast/global_toast_list.js +199 -230
- package/optimize/es/components/toast/global_toast_list.styles.js +38 -0
- package/optimize/es/components/toast/global_toast_list_item.js +11 -6
- package/optimize/es/components/toast/toast.js +24 -24
- package/optimize/es/components/toast/toast.styles.js +55 -0
- package/optimize/es/components/token/index.js +2 -1
- package/optimize/es/components/token/token.js +46 -69
- package/optimize/es/components/token/token.styles.js +83 -0
- package/optimize/es/components/token/token_map.js +6 -9
- package/optimize/es/components/token/token_types.js +11 -0
- package/optimize/es/global_styling/reset/global_styles.js +1 -1
- package/optimize/es/services/{breakpoint.js → breakpoint/breakpoint.js} +4 -9
- package/optimize/es/services/breakpoint/currentEuiBreakpoint.js +53 -0
- package/optimize/es/services/breakpoint/index.js +10 -0
- package/optimize/es/services/breakpoint/useIsWithinBreakpoints.js +24 -0
- package/optimize/es/services/hooks/index.js +0 -1
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/test/rtl/component_helpers.d.ts +7 -0
- package/optimize/es/test/rtl/component_helpers.js +71 -0
- package/optimize/es/test/rtl/custom_render.d.ts +74 -0
- package/optimize/es/test/rtl/custom_render.js +48 -0
- package/optimize/es/test/rtl/data_test_subj_queries.d.ts +5 -0
- package/optimize/es/test/rtl/data_test_subj_queries.js +36 -0
- package/optimize/es/test/rtl/index.d.ts +3 -0
- package/optimize/es/test/rtl/index.js +10 -0
- package/optimize/lib/components/breadcrumbs/breadcrumb.js +162 -0
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +68 -0
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +99 -164
- package/optimize/lib/components/breadcrumbs/breadcrumbs.styles.js +33 -0
- package/optimize/lib/components/code/code_block.js +105 -106
- package/optimize/lib/components/comment_list/comment_event.js +22 -26
- package/optimize/lib/components/comment_list/comment_event.styles.js +15 -16
- package/optimize/lib/components/description_list/description_list.js +23 -28
- package/optimize/lib/components/description_list/description_list.styles.js +36 -0
- package/optimize/lib/components/description_list/description_list_context.js +24 -0
- package/optimize/lib/components/description_list/description_list_description.js +43 -2
- package/optimize/lib/components/description_list/description_list_description.styles.js +51 -0
- package/optimize/lib/components/description_list/description_list_title.js +43 -2
- package/optimize/lib/components/description_list/description_list_title.styles.js +50 -0
- package/optimize/lib/components/description_list/description_list_types.js +20 -0
- package/optimize/lib/components/filter_group/filter_button.js +3 -1
- package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.js +10 -1
- package/optimize/lib/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
- package/optimize/lib/components/header/header_links/header_links.js +7 -7
- package/optimize/lib/components/icon/assets/tokenStruct.js +1 -1
- package/optimize/lib/components/icon/svgs/tokens/tokenStruct.svg +1 -1
- package/optimize/lib/components/image/image_caption.js +2 -2
- package/optimize/lib/components/image/image_wrapper.styles.js +1 -1
- package/optimize/lib/components/page/page_header/page_header_content.js +2 -2
- package/optimize/lib/components/panel/split_panel/split_panel.js +2 -2
- package/optimize/lib/components/popover/wrapping_popover.js +38 -78
- package/optimize/lib/components/portal/portal.js +45 -61
- package/optimize/lib/components/provider/provider.js +1 -1
- package/optimize/lib/components/responsive/hide_for.js +4 -33
- package/optimize/lib/components/responsive/show_for.js +4 -33
- package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +14 -34
- package/optimize/lib/components/table/table_row_cell.js +1 -3
- package/optimize/lib/components/toast/global_toast_list.js +206 -220
- package/optimize/lib/components/toast/global_toast_list.styles.js +47 -0
- package/optimize/lib/components/toast/global_toast_list_item.js +14 -7
- package/optimize/lib/components/toast/toast.js +26 -24
- package/optimize/lib/components/toast/toast.styles.js +66 -0
- package/optimize/lib/components/token/index.js +5 -3
- package/optimize/lib/components/token/token.js +50 -76
- package/optimize/lib/components/token/token.styles.js +91 -0
- package/optimize/lib/components/token/token_map.js +6 -9
- package/optimize/lib/components/token/token_types.js +22 -0
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/services/{breakpoint.js → breakpoint/breakpoint.js} +5 -9
- package/optimize/lib/services/breakpoint/currentEuiBreakpoint.js +81 -0
- package/optimize/lib/services/breakpoint/index.js +44 -0
- package/optimize/lib/services/breakpoint/useIsWithinBreakpoints.js +34 -0
- package/optimize/lib/services/hooks/index.js +0 -13
- package/optimize/lib/services/index.js +28 -0
- package/optimize/lib/test/rtl/component_helpers.d.ts +7 -0
- package/optimize/lib/test/rtl/component_helpers.js +87 -0
- package/optimize/lib/test/rtl/custom_render.d.ts +74 -0
- package/optimize/lib/test/rtl/custom_render.js +59 -0
- package/optimize/lib/test/rtl/data_test_subj_queries.d.ts +5 -0
- package/optimize/lib/test/rtl/data_test_subj_queries.js +51 -0
- package/optimize/lib/test/rtl/index.d.ts +3 -0
- package/optimize/lib/test/rtl/index.js +81 -0
- package/package.json +8 -2
- package/src/components/control_bar/_control_bar.scss +1 -1
- package/src/components/header/_index.scss +0 -1
- package/src/components/index.scss +0 -5
- package/src/themes/amsterdam/overrides/_breadcrumbs.scss +0 -12
- package/src/themes/amsterdam/overrides/_index.scss +0 -4
- package/test-env/components/breadcrumbs/breadcrumb.js +211 -0
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +68 -0
- package/test-env/components/breadcrumbs/breadcrumbs.js +122 -174
- package/test-env/components/breadcrumbs/breadcrumbs.styles.js +33 -0
- package/test-env/components/collapsible_nav/collapsible_nav.js +2 -2
- package/test-env/components/comment_list/comment_event.js +22 -26
- package/test-env/components/comment_list/comment_event.styles.js +15 -16
- package/test-env/components/control_bar/control_bar.js +13 -0
- package/test-env/components/datagrid/body/data_grid_body.js +1 -1
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +1 -1
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/data_grid.js +1 -1
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +2 -2
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/test-env/components/description_list/description_list.js +25 -30
- package/test-env/components/description_list/description_list.styles.js +36 -0
- package/test-env/components/description_list/description_list_context.js +24 -0
- package/test-env/components/description_list/description_list_description.js +43 -2
- package/test-env/components/description_list/description_list_description.styles.js +51 -0
- package/test-env/components/description_list/description_list_title.js +43 -2
- package/test-env/components/description_list/description_list_title.styles.js +50 -0
- package/test-env/components/description_list/description_list_types.js +20 -0
- package/test-env/components/filter_group/filter_button.js +3 -1
- package/test-env/components/header/header.js +1 -27
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.js +24 -2
- package/test-env/components/header/header_breadcrumbs/header_breadcrumbs.styles.js +26 -0
- package/test-env/components/header/header_links/header_links.js +8 -8
- package/test-env/components/icon/assets/tokenStruct.js +1 -1
- package/test-env/components/image/image_caption.js +2 -2
- package/test-env/components/image/image_wrapper.styles.js +1 -1
- package/test-env/components/page/page_header/page_header.js +1 -0
- package/test-env/components/page/page_header/page_header_content.js +3 -2
- package/test-env/components/page/page_template.js +1 -0
- package/test-env/components/pagination/pagination.js +1 -1
- package/test-env/components/panel/split_panel/split_panel.js +3 -3
- package/test-env/components/popover/wrapping_popover.js +38 -78
- package/test-env/components/portal/portal.js +46 -75
- package/test-env/components/provider/provider.js +1 -1
- package/test-env/components/responsive/hide_for.js +5 -34
- package/test-env/components/responsive/show_for.js +5 -34
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +15 -35
- package/test-env/components/side_nav/side_nav.js +1 -1
- package/test-env/components/table/table_row_cell.js +1 -3
- package/test-env/components/toast/global_toast_list.js +206 -220
- package/test-env/components/toast/global_toast_list.styles.js +47 -0
- package/test-env/components/toast/global_toast_list_item.js +14 -7
- package/test-env/components/toast/toast.js +27 -25
- package/test-env/components/toast/toast.styles.js +66 -0
- package/test-env/components/token/index.js +5 -3
- package/test-env/components/token/token.js +51 -120
- package/test-env/components/token/token.styles.js +91 -0
- package/test-env/components/token/token_map.js +6 -9
- package/test-env/components/token/token_types.js +22 -0
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/{lib/services → test-env/services/breakpoint}/breakpoint.js +5 -9
- package/test-env/services/breakpoint/currentEuiBreakpoint.js +37 -0
- package/test-env/services/breakpoint/index.js +44 -0
- package/test-env/services/breakpoint/useIsWithinBreakpoints.js +34 -0
- package/test-env/services/hooks/index.js +0 -13
- package/test-env/services/index.js +28 -0
- package/test-env/test/rtl/component_helpers.js +87 -0
- package/test-env/test/rtl/custom_render.js +59 -0
- package/test-env/test/rtl/data_test_subj_queries.js +51 -0
- package/test-env/test/rtl/index.js +81 -0
- package/optimize/es/services/hooks/useIsWithinBreakpoints.js +0 -46
- package/optimize/lib/services/hooks/useIsWithinBreakpoints.js +0 -57
- package/src/components/breadcrumbs/_breadcrumbs.scss +0 -79
- package/src/components/breadcrumbs/_index.scss +0 -2
- package/src/components/breadcrumbs/_variables.scss +0 -2
- package/src/components/description_list/_description_list.scss +0 -211
- package/src/components/description_list/_index.scss +0 -1
- package/src/components/header/header_breadcrumbs/_header_breadcrumbs.scss +0 -8
- package/src/components/header/header_breadcrumbs/_index.scss +0 -1
- package/src/components/portal/_index.scss +0 -1
- package/src/components/portal/_portal.scss +0 -6
- package/src/components/toast/_global_toast_list.scss +0 -90
- package/src/components/toast/_index.scss +0 -4
- package/src/components/toast/_toast.scss +0 -103
- package/src/components/token/_index.scss +0 -2
- package/src/components/token/_token.scss +0 -85
- package/src/components/token/_variables.scss +0 -13
- package/src/themes/amsterdam/overrides/_header_breadcrumbs.scss +0 -71
- package/src/themes/amsterdam/overrides/_toast.scss +0 -21
- package/src/themes/amsterdam/overrides/_token.scss +0 -4
- package/test-env/services/hooks/useIsWithinBreakpoints.js +0 -57
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
1
|
/*
|
|
4
2
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
3
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -44,14 +42,6 @@ export var EuiCommentEvent = function EuiCommentEvent(_ref) {
|
|
|
44
42
|
var cssStyles = [styles.euiCommentEvent, styles[type]];
|
|
45
43
|
var headerStyles = euiCommentEventHeaderStyles(euiTheme);
|
|
46
44
|
var cssHeaderStyles = [headerStyles.euiCommentEvent__header, eventColor && headerStyles.hasEventColor, isTypeRegular && headerStyles.regular];
|
|
47
|
-
var cssHeaderPanelStyles = headerStyles.euiCommentEvent__headerPanel;
|
|
48
|
-
var cssHeaderEventIconStyles = headerStyles.euiCommentEvent__headerEventIcon;
|
|
49
|
-
var cssHeaderUsernameStyles = headerStyles.euiCommentEvent__headerUsername;
|
|
50
|
-
var cssHeaderEventStyles = headerStyles.euiCommentEvent__headerEvent;
|
|
51
|
-
var cssHeaderTimestampStyles = headerStyles.euiCommentEvent__headerTimestamp;
|
|
52
|
-
var cssHeaderMainStyles = headerStyles.euiCommentEvent__headerMain;
|
|
53
|
-
var cssHeaderDataStyles = headerStyles.euiCommentEvent__headerData;
|
|
54
|
-
var cssHeaderActionsStyles = headerStyles.euiCommentEvent__headerActions;
|
|
55
45
|
var bodyStyles = euiCommentEventBodyStyles(euiTheme);
|
|
56
46
|
var cssBodyStyles = [bodyStyles.euiCommentEvent__body, bodyStyles[type]];
|
|
57
47
|
var isFigure = isTypeRegular;
|
|
@@ -67,36 +57,40 @@ export var EuiCommentEvent = function EuiCommentEvent(_ref) {
|
|
|
67
57
|
color: 'transparent',
|
|
68
58
|
paddingSize: 'none'
|
|
69
59
|
};
|
|
70
|
-
|
|
71
|
-
|
|
60
|
+
return ___EmotionJSX(Element, {
|
|
61
|
+
className: classes,
|
|
62
|
+
css: cssStyles,
|
|
63
|
+
"data-type": type
|
|
64
|
+
}, hasEventElements && ___EmotionJSX(HeaderElement, {
|
|
65
|
+
className: "euiCommentEvent__header",
|
|
72
66
|
css: cssHeaderStyles
|
|
73
|
-
}, ___EmotionJSX(EuiPanel,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
css: cssHeaderMainStyles
|
|
67
|
+
}, ___EmotionJSX(EuiPanel, panelProps, ___EmotionJSX("div", {
|
|
68
|
+
className: "euiCommentEvent__headerMain",
|
|
69
|
+
css: headerStyles.euiCommentEvent__headerMain
|
|
77
70
|
}, ___EmotionJSX("div", {
|
|
78
|
-
|
|
71
|
+
className: "euiCommentEvent__headerData",
|
|
72
|
+
css: headerStyles.euiCommentEvent__headerData
|
|
79
73
|
}, eventIcon && ___EmotionJSX(EuiAvatar, {
|
|
80
|
-
|
|
74
|
+
className: "euiCommentEvent__headerEventIcon",
|
|
75
|
+
css: headerStyles.euiCommentEvent__headerEventIcon,
|
|
81
76
|
size: "s",
|
|
82
77
|
iconType: eventIcon,
|
|
83
78
|
name: eventIconAriaLabel ? eventIconAriaLabel : '',
|
|
84
79
|
color: "subdued",
|
|
85
80
|
"aria-hidden": !eventIconAriaLabel
|
|
86
81
|
}), username && ___EmotionJSX("div", {
|
|
87
|
-
|
|
82
|
+
className: "euiCommentEvent__headerUsername",
|
|
83
|
+
css: headerStyles.euiCommentEvent__headerUsername
|
|
88
84
|
}, username), event && ___EmotionJSX("div", {
|
|
89
|
-
|
|
85
|
+
className: "euiCommentEvent__headerEvent",
|
|
86
|
+
css: headerStyles.euiCommentEvent__headerEvent
|
|
90
87
|
}, event), timestamp && ___EmotionJSX("div", {
|
|
91
|
-
|
|
88
|
+
className: "euiCommentEvent__headerTimestamp"
|
|
92
89
|
}, ___EmotionJSX("time", null, timestamp))), actions && ___EmotionJSX("div", {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
className: classes,
|
|
98
|
-
css: cssStyles
|
|
99
|
-
}, hasEventElements && eventHeader, children && ___EmotionJSX("div", {
|
|
90
|
+
className: "euiCommentEvent__headerActions",
|
|
91
|
+
css: headerStyles.euiCommentEvent__headerActions
|
|
92
|
+
}, actions)))), children && ___EmotionJSX("div", {
|
|
93
|
+
className: "euiCommentEvent__body",
|
|
100
94
|
css: cssBodyStyles
|
|
101
95
|
}, children));
|
|
102
96
|
};
|
|
@@ -31,20 +31,20 @@ export var euiCommentEventStyles = function euiCommentEventStyles(_ref4) {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
34
|
-
name: "
|
|
35
|
-
styles: "
|
|
34
|
+
name: "ui5tce-euiCommentEvent__headerEvent",
|
|
35
|
+
styles: "align-items:center;display:inline-flex;white-space:pre-wrap;flex-wrap:wrap;label:euiCommentEvent__headerEvent;"
|
|
36
36
|
} : {
|
|
37
|
-
name: "
|
|
38
|
-
styles: "
|
|
37
|
+
name: "ui5tce-euiCommentEvent__headerEvent",
|
|
38
|
+
styles: "align-items:center;display:inline-flex;white-space:pre-wrap;flex-wrap:wrap;label:euiCommentEvent__headerEvent;",
|
|
39
39
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
43
|
-
name: "
|
|
44
|
-
styles: "
|
|
43
|
+
name: "bqgcpj-hasEventColor",
|
|
44
|
+
styles: "padding:0;label:hasEventColor;"
|
|
45
45
|
} : {
|
|
46
|
-
name: "
|
|
47
|
-
styles: "
|
|
46
|
+
name: "bqgcpj-hasEventColor",
|
|
47
|
+
styles: "padding:0;label:hasEventColor;",
|
|
48
48
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -52,18 +52,17 @@ export var euiCommentEventHeaderStyles = function euiCommentEventHeaderStyles(_r
|
|
|
52
52
|
var euiTheme = _ref5.euiTheme;
|
|
53
53
|
return {
|
|
54
54
|
euiCommentEvent__header: /*#__PURE__*/css(";label:euiCommentEvent__header;"),
|
|
55
|
-
|
|
55
|
+
// types
|
|
56
|
+
regular: /*#__PURE__*/css("background:", euiTheme.colors.lightestShade, ";border-bottom:", euiTheme.border.thin, ";padding:", euiTheme.size.s, ";;label:regular;"),
|
|
57
|
+
// variants
|
|
58
|
+
hasEventColor: _ref2,
|
|
59
|
+
// Children
|
|
56
60
|
euiCommentEvent__headerMain: /*#__PURE__*/css("display:flex;flex:1;gap:", euiTheme.size.s, ";;label:euiCommentEvent__headerMain;"),
|
|
57
61
|
euiCommentEvent__headerData: /*#__PURE__*/css("display:flex;flex:1;align-items:center;flex-wrap:wrap;gap:", euiTheme.size.xs, ";;label:euiCommentEvent__headerData;"),
|
|
58
62
|
euiCommentEvent__headerEventIcon: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.xs), ";;label:euiCommentEvent__headerEventIcon;"),
|
|
59
63
|
euiCommentEvent__headerUsername: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.semiBold, ";;label:euiCommentEvent__headerUsername;"),
|
|
60
|
-
euiCommentEvent__headerEvent:
|
|
61
|
-
|
|
62
|
-
euiCommentEvent__headerActions: /*#__PURE__*/css("display:flex;flex-wrap:wrap;gap:", euiTheme.size.xs, ";;label:euiCommentEvent__headerActions;"),
|
|
63
|
-
// types
|
|
64
|
-
regular: /*#__PURE__*/css("background:", euiTheme.colors.lightestShade, ";border-bottom:", euiTheme.border.thin, ";padding:", euiTheme.size.s, ";;label:regular;"),
|
|
65
|
-
// variants
|
|
66
|
-
hasEventColor: _ref
|
|
64
|
+
euiCommentEvent__headerEvent: _ref,
|
|
65
|
+
euiCommentEvent__headerActions: /*#__PURE__*/css("display:flex;flex-wrap:wrap;gap:", euiTheme.size.xs, ";;label:euiCommentEvent__headerActions;")
|
|
67
66
|
};
|
|
68
67
|
};
|
|
69
68
|
export var euiCommentEventBodyStyles = function euiCommentEventBodyStyles(_ref6) {
|
|
@@ -13,25 +13,10 @@ import React from 'react';
|
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { EuiDescriptionListTitle } from './description_list_title';
|
|
15
15
|
import { EuiDescriptionListDescription } from './description_list_description';
|
|
16
|
-
import {
|
|
16
|
+
import { useEuiTheme } from '../../services';
|
|
17
|
+
import { euiDescriptionListStyles } from './description_list.styles';
|
|
18
|
+
import { EuiDescriptionListContext } from './description_list_context';
|
|
17
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
|
-
var typesToClassNameMap = {
|
|
19
|
-
row: 'euiDescriptionList--row',
|
|
20
|
-
inline: 'euiDescriptionList--inline',
|
|
21
|
-
column: 'euiDescriptionList--column',
|
|
22
|
-
responsiveColumn: 'euiDescriptionList--responsiveColumn'
|
|
23
|
-
};
|
|
24
|
-
export var TYPES = keysOf(typesToClassNameMap);
|
|
25
|
-
var alignmentsToClassNameMap = {
|
|
26
|
-
center: 'euiDescriptionList--center',
|
|
27
|
-
left: ''
|
|
28
|
-
};
|
|
29
|
-
export var ALIGNMENTS = keysOf(alignmentsToClassNameMap);
|
|
30
|
-
var textStylesToClassNameMap = {
|
|
31
|
-
normal: '',
|
|
32
|
-
reverse: 'euiDescriptionList--reverse'
|
|
33
|
-
};
|
|
34
|
-
export var TEXT_STYLES = keysOf(textStylesToClassNameMap);
|
|
35
20
|
export var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
36
21
|
var _ref$align = _ref.align,
|
|
37
22
|
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
@@ -48,9 +33,10 @@ export var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
|
48
33
|
type = _ref$type === void 0 ? 'row' : _ref$type,
|
|
49
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
50
35
|
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
|
|
36
|
+
var euiTheme = useEuiTheme();
|
|
37
|
+
var styles = euiDescriptionListStyles(euiTheme);
|
|
38
|
+
var cssStyles = [styles.euiDescriptionList, styles[type], styles[align]];
|
|
39
|
+
var classes = classNames('euiDescriptionList', className);
|
|
54
40
|
var childrenOrListItems = null;
|
|
55
41
|
|
|
56
42
|
if (listItems) {
|
|
@@ -65,7 +51,17 @@ export var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
|
65
51
|
childrenOrListItems = children;
|
|
66
52
|
}
|
|
67
53
|
|
|
68
|
-
return ___EmotionJSX(
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
return ___EmotionJSX(EuiDescriptionListContext.Provider, {
|
|
55
|
+
value: {
|
|
56
|
+
type: type,
|
|
57
|
+
compressed: compressed,
|
|
58
|
+
textStyle: textStyle,
|
|
59
|
+
align: align
|
|
60
|
+
}
|
|
61
|
+
}, ___EmotionJSX("dl", _extends({
|
|
62
|
+
className: classes,
|
|
63
|
+
css: cssStyles
|
|
64
|
+
}, rest, {
|
|
65
|
+
"data-type": type
|
|
66
|
+
}), childrenOrListItems));
|
|
71
67
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { logicalTextAlignCSS, euiBreakpoint } from '../../global_styling';
|
|
10
|
+
export var euiDescriptionListStyles = function euiDescriptionListStyles(euiThemeContext) {
|
|
11
|
+
// Flex display for column and responsive column
|
|
12
|
+
var columnDisplay = "\n display: flex;\n align-items: baseline;\n flex-wrap: wrap; \n ";
|
|
13
|
+
return {
|
|
14
|
+
euiDescriptionList: /*#__PURE__*/css(";label:euiDescriptionList;"),
|
|
15
|
+
// Types
|
|
16
|
+
row: /*#__PURE__*/css(";label:row;"),
|
|
17
|
+
inline: /*#__PURE__*/css(";label:inline;"),
|
|
18
|
+
column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
|
|
19
|
+
// Responsive columns behave as a row on breakpoints xs-s
|
|
20
|
+
responsiveColumn: /*#__PURE__*/css(euiBreakpoint(euiThemeContext, ['m', 'xl']), "{", columnDisplay, ";};label:responsiveColumn;"),
|
|
21
|
+
// Alignment
|
|
22
|
+
center: /*#__PURE__*/css(logicalTextAlignCSS('center'), ";;label:center;"),
|
|
23
|
+
left: /*#__PURE__*/css(logicalTextAlignCSS('left'), ";;label:left;")
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { createContext } from 'react';
|
|
9
|
+
export var contextDefaults = {
|
|
10
|
+
type: 'row',
|
|
11
|
+
textStyle: 'normal',
|
|
12
|
+
align: 'left'
|
|
13
|
+
};
|
|
14
|
+
export var EuiDescriptionListContext = /*#__PURE__*/createContext(contextDefaults);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
4
|
var _excluded = ["children", "className"];
|
|
4
5
|
|
|
@@ -9,16 +10,45 @@ var _excluded = ["children", "className"];
|
|
|
9
10
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
11
|
* Side Public License, v 1.
|
|
11
12
|
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
+
import React, { useContext } from 'react';
|
|
13
14
|
import classNames from 'classnames';
|
|
15
|
+
import { useEuiTheme } from '../../services';
|
|
16
|
+
import { euiDescriptionListDescriptionStyles } from './description_list_description.styles';
|
|
17
|
+
import { EuiDescriptionListContext } from './description_list_context';
|
|
14
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
19
|
export var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref) {
|
|
16
20
|
var children = _ref.children,
|
|
17
21
|
className = _ref.className,
|
|
18
22
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
23
|
|
|
24
|
+
var _useContext = useContext(EuiDescriptionListContext),
|
|
25
|
+
type = _useContext.type,
|
|
26
|
+
textStyle = _useContext.textStyle,
|
|
27
|
+
compressed = _useContext.compressed,
|
|
28
|
+
align = _useContext.align;
|
|
29
|
+
|
|
30
|
+
var theme = useEuiTheme();
|
|
31
|
+
var styles = euiDescriptionListDescriptionStyles(theme);
|
|
32
|
+
var conditionalStyles = compressed && textStyle === 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
|
|
33
|
+
|
|
34
|
+
switch (type) {
|
|
35
|
+
case 'inline':
|
|
36
|
+
conditionalStyles = compressed ? [styles.inlineStyles.compressed] : [styles.inlineStyles.normal];
|
|
37
|
+
break;
|
|
38
|
+
|
|
39
|
+
case 'responsiveColumn':
|
|
40
|
+
case 'column':
|
|
41
|
+
if (align === 'center') {
|
|
42
|
+
conditionalStyles.push(styles.left);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var cssStyles = [styles.euiDescriptionList__description, styles[type]].concat(_toConsumableArray(conditionalStyles));
|
|
20
49
|
var classes = classNames('euiDescriptionList__description', className);
|
|
21
50
|
return ___EmotionJSX("dd", _extends({
|
|
22
|
-
className: classes
|
|
51
|
+
className: classes,
|
|
52
|
+
css: cssStyles
|
|
23
53
|
}, rest), children);
|
|
24
54
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
6
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
7
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
8
|
+
* Side Public License, v 1.
|
|
9
|
+
*/
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
import { euiFontSize, euiBreakpoint, logicalTextAlignCSS, logicalCSS } from '../../global_styling';
|
|
12
|
+
import { euiTitle } from '../title/title.styles';
|
|
13
|
+
|
|
14
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
15
|
+
name: "1yn9gig-inline",
|
|
16
|
+
styles: "display:inline;label:inline;"
|
|
17
|
+
} : {
|
|
18
|
+
name: "1yn9gig-inline",
|
|
19
|
+
styles: "display:inline;label:inline;",
|
|
20
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export var euiDescriptionListDescriptionStyles = function euiDescriptionListDescriptionStyles(euiThemeContext) {
|
|
24
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
25
|
+
var columnDisplay = "\n ".concat(logicalCSS('width', '50%'), " // Flex-basis doesn't work in IE with padding\n ").concat(logicalCSS('padding-left', euiTheme.size.s), "\n &:not(:first-of-type) {\n ").concat(logicalCSS('margin-top', euiTheme.size.base), "\n }\n ");
|
|
26
|
+
return {
|
|
27
|
+
euiDescriptionList__description: /*#__PURE__*/css(";label:euiDescriptionList__description;"),
|
|
28
|
+
// Types
|
|
29
|
+
row: /*#__PURE__*/css(";label:row;"),
|
|
30
|
+
column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
|
|
31
|
+
responsiveColumn: /*#__PURE__*/css(euiBreakpoint(euiThemeContext, ['xs', 's']), "{", logicalCSS('width', '100%'), " padding:0;}", euiBreakpoint(euiThemeContext, ['m', 'xl']), "{", columnDisplay, ";};label:responsiveColumn;"),
|
|
32
|
+
inline: _ref,
|
|
33
|
+
// This nested block handles just the font styling based on compressed and reverse
|
|
34
|
+
fontStyles: {
|
|
35
|
+
normal: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), ";;label:normal;"),
|
|
36
|
+
reverse: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xs'), ";;label:reverse;"),
|
|
37
|
+
compressed: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxs'), ";;label:compressed;")
|
|
38
|
+
},
|
|
39
|
+
// Nested inline styles for type and font
|
|
40
|
+
inlineStyles: {
|
|
41
|
+
compressed: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), ";;label:compressed;"),
|
|
42
|
+
normal: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), ";;label:normal;")
|
|
43
|
+
},
|
|
44
|
+
// Column types should align description text to the left when EuiDecriptionList is centered
|
|
45
|
+
left: /*#__PURE__*/css(logicalTextAlignCSS('left'), ";;label:left;")
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
4
|
var _excluded = ["children", "className"];
|
|
4
5
|
|
|
@@ -9,16 +10,45 @@ var _excluded = ["children", "className"];
|
|
|
9
10
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
10
11
|
* Side Public License, v 1.
|
|
11
12
|
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
+
import React, { useContext } from 'react';
|
|
13
14
|
import classNames from 'classnames';
|
|
15
|
+
import { useEuiTheme } from '../../services';
|
|
16
|
+
import { euiDescriptionListTitleStyles } from './description_list_title.styles';
|
|
17
|
+
import { EuiDescriptionListContext } from './description_list_context';
|
|
14
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
19
|
export var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
16
20
|
var children = _ref.children,
|
|
17
21
|
className = _ref.className,
|
|
18
22
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
19
23
|
|
|
24
|
+
var _useContext = useContext(EuiDescriptionListContext),
|
|
25
|
+
type = _useContext.type,
|
|
26
|
+
textStyle = _useContext.textStyle,
|
|
27
|
+
compressed = _useContext.compressed,
|
|
28
|
+
align = _useContext.align;
|
|
29
|
+
|
|
30
|
+
var theme = useEuiTheme();
|
|
31
|
+
var styles = euiDescriptionListTitleStyles(theme);
|
|
32
|
+
var conditionalStyles = compressed && textStyle === 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
|
|
33
|
+
|
|
34
|
+
switch (type) {
|
|
35
|
+
case 'inline':
|
|
36
|
+
conditionalStyles = compressed ? [styles.inlineStyles.compressed] : [styles.inlineStyles.normal];
|
|
37
|
+
break;
|
|
38
|
+
|
|
39
|
+
case 'responsiveColumn':
|
|
40
|
+
case 'column':
|
|
41
|
+
if (align === 'center') {
|
|
42
|
+
conditionalStyles.push(styles.right);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var cssStyles = [styles.euiDescriptionList__title, styles[type]].concat(_toConsumableArray(conditionalStyles));
|
|
20
49
|
var classes = classNames('euiDescriptionList__title', className);
|
|
21
50
|
return ___EmotionJSX("dt", _extends({
|
|
22
|
-
className: classes
|
|
51
|
+
className: classes,
|
|
52
|
+
css: cssStyles
|
|
23
53
|
}, rest), children);
|
|
24
54
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { euiFontSize, euiTextBreakWord, logicalTextAlignCSS, euiBreakpoint, logicalCSS } from '../../global_styling';
|
|
10
|
+
import { tint } from '../../services';
|
|
11
|
+
import { euiTitle } from '../title/title.styles';
|
|
12
|
+
export var euiDescriptionListTitleStyles = function euiDescriptionListTitleStyles(euiThemeContext) {
|
|
13
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
14
|
+
colorMode = euiThemeContext.colorMode;
|
|
15
|
+
var columnDisplay = "\n ".concat(logicalCSS('width', '50%'), " // Flex-basis doesn't work in IE with padding\n ").concat(logicalCSS('padding-right', euiTheme.size.s), "\n ");
|
|
16
|
+
return {
|
|
17
|
+
euiDescriptionList__title: /*#__PURE__*/css(euiTextBreakWord(), "&:not(:first-of-type){", logicalCSS('margin-top', euiTheme.size.base), ";};label:euiDescriptionList__title;"),
|
|
18
|
+
// Types
|
|
19
|
+
row: /*#__PURE__*/css(";label:row;"),
|
|
20
|
+
column: /*#__PURE__*/css(columnDisplay, ";;label:column;"),
|
|
21
|
+
responsiveColumn: /*#__PURE__*/css(euiBreakpoint(euiThemeContext, ['xs', 's']), "{", logicalCSS('width', '100%'), " padding:0;}", euiBreakpoint(euiThemeContext, ['m', 'xl']), "{", columnDisplay, ";};label:responsiveColumn;"),
|
|
22
|
+
inline: /*#__PURE__*/css("display:inline;border-radius:", euiTheme.border.radius.small, ";font-weight:", euiTheme.font.weight.medium, ";background-color:", colorMode === 'DARK' ? tint(euiTheme.colors.lightestShade, 0.5) : euiTheme.colors.lightestShade, ";", logicalCSS('margin-vertical', '0'), " ", logicalCSS('margin-horizontal', euiTheme.size.xs), "&:first-of-type{", logicalCSS('margin-left', '0'), ";};label:inline;"),
|
|
23
|
+
// This nested block handles just the font styling based on compressed and reverse
|
|
24
|
+
fontStyles: {
|
|
25
|
+
normal: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xs'), ";;label:normal;"),
|
|
26
|
+
reverse: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), ";;label:reverse;"),
|
|
27
|
+
compressed: /*#__PURE__*/css(euiTitle(euiThemeContext, 'xxs'), ";;label:compressed;")
|
|
28
|
+
},
|
|
29
|
+
// Inline types
|
|
30
|
+
inlineStyles: {
|
|
31
|
+
normal: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), ";", logicalCSS('padding-vertical', '1px'), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), ";;label:normal;"),
|
|
32
|
+
compressed: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), ";", logicalCSS('padding-vertical', '0'), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), ";;label:compressed;")
|
|
33
|
+
},
|
|
34
|
+
// Alignment
|
|
35
|
+
right: /*#__PURE__*/css(logicalTextAlignCSS('right'), ";;label:right;")
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
export var TYPES = ['row', 'inline', 'column', 'responsiveColumn'];
|
|
9
|
+
export var ALIGNMENTS = ['center', 'left'];
|
|
10
|
+
export var TEXT_STYLES = ['normal', 'reverse'];
|
|
@@ -69,7 +69,9 @@ export var EuiFilterButton = function EuiFilterButton(_ref) {
|
|
|
69
69
|
var badgeContent = showBadge && ___EmotionJSX(EuiNotificationBadge, {
|
|
70
70
|
className: "euiFilterButton__notification",
|
|
71
71
|
"aria-label": hasActiveFilters ? activeBadgeLabel : availableBadgeLabel,
|
|
72
|
-
color: isDisabled || !hasActiveFilters ? 'subdued' : 'accent'
|
|
72
|
+
color: isDisabled || !hasActiveFilters ? 'subdued' : 'accent',
|
|
73
|
+
role: "marquee" // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/marquee_role
|
|
74
|
+
|
|
73
75
|
}, badgeCount);
|
|
74
76
|
|
|
75
77
|
var dataText;
|
|
@@ -12,6 +12,8 @@ var _excluded = ["className", "breadcrumbs"];
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { EuiBreadcrumbs } from '../../breadcrumbs';
|
|
15
|
+
import { euiHeaderBreadcrumbsStyles } from './header_breadcrumbs.styles';
|
|
16
|
+
import { useEuiTheme } from '../../../services';
|
|
15
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
18
|
export var EuiHeaderBreadcrumbs = function EuiHeaderBreadcrumbs(_ref) {
|
|
17
19
|
var className = _ref.className,
|
|
@@ -19,10 +21,15 @@ export var EuiHeaderBreadcrumbs = function EuiHeaderBreadcrumbs(_ref) {
|
|
|
19
21
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
20
22
|
|
|
21
23
|
var classes = classNames('euiHeaderBreadcrumbs', className);
|
|
24
|
+
var euiTheme = useEuiTheme();
|
|
25
|
+
var styles = euiHeaderBreadcrumbsStyles(euiTheme);
|
|
26
|
+
var cssHeaderBreadcrumbStyles = [styles.euiHeaderBreadcrumbs];
|
|
22
27
|
return ___EmotionJSX(EuiBreadcrumbs, _extends({
|
|
23
28
|
max: 4,
|
|
24
29
|
truncate: true,
|
|
25
30
|
breadcrumbs: breadcrumbs,
|
|
26
|
-
className: classes
|
|
31
|
+
className: classes,
|
|
32
|
+
css: cssHeaderBreadcrumbStyles,
|
|
33
|
+
type: "application"
|
|
27
34
|
}, rest));
|
|
28
35
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { euiTextTruncate, logicalCSS } from '../../../global_styling';
|
|
10
|
+
export var euiHeaderBreadcrumbsStyles = function euiHeaderBreadcrumbsStyles(_ref) {
|
|
11
|
+
var euiTheme = _ref.euiTheme;
|
|
12
|
+
return {
|
|
13
|
+
euiHeaderBreadcrumbs: /*#__PURE__*/css(euiTextTruncate(), ";align-items:center;display:flex;flex-grow:1;", logicalCSS('margin-horizontal', euiTheme.size.s), ";;label:euiHeaderBreadcrumbs;")
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -11,7 +11,7 @@ var _excluded = ["children", "className", "gutterSize", "popoverBreakpoints", "p
|
|
|
11
11
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
12
12
|
* Side Public License, v 1.
|
|
13
13
|
*/
|
|
14
|
-
import React, { useState, useEffect } from 'react';
|
|
14
|
+
import React, { useState, useEffect, useCallback } from 'react';
|
|
15
15
|
import classNames from 'classnames';
|
|
16
16
|
import { keysOf } from '../../common';
|
|
17
17
|
import { EuiIcon } from '../../icon';
|
|
@@ -49,15 +49,15 @@ export var EuiHeaderLinks = function EuiHeaderLinks(_ref) {
|
|
|
49
49
|
mobileMenuIsOpen = _useState2[0],
|
|
50
50
|
setMobileMenuIsOpen = _useState2[1];
|
|
51
51
|
|
|
52
|
-
var onMenuButtonClick = function
|
|
52
|
+
var onMenuButtonClick = useCallback(function (e) {
|
|
53
53
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
54
|
-
setMobileMenuIsOpen(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
setMobileMenuIsOpen(function (mobileMenuIsOpen) {
|
|
55
|
+
return !mobileMenuIsOpen;
|
|
56
|
+
});
|
|
57
|
+
}, [onClick]);
|
|
58
|
+
var closeMenu = useCallback(function () {
|
|
58
59
|
setMobileMenuIsOpen(false);
|
|
59
|
-
};
|
|
60
|
-
|
|
60
|
+
}, []);
|
|
61
61
|
useEffect(function () {
|
|
62
62
|
window.addEventListener('resize', closeMenu);
|
|
63
63
|
return function () {
|
|
@@ -28,7 +28,7 @@ var EuiIconTokenStruct = function EuiIconTokenStruct(_ref) {
|
|
|
28
28
|
id: titleId
|
|
29
29
|
}, title) : null, ___EmotionJSX("path", {
|
|
30
30
|
fillRule: "evenodd",
|
|
31
|
-
d: "M4.
|
|
31
|
+
d: "M4.667 4.667h2.666v2.666H4.667V4.667zm0 4h2.666v2.666H4.667V8.667zm4-4h2.666v2.666H8.667V4.667zm0 4h2.666v2.666H8.667V8.667zM3.333 3.333v9.334h9.334V3.333H3.333zm0-1.333h9.334C13.403 2 14 2.597 14 3.333v9.334c0 .736-.597 1.333-1.333 1.333H3.333A1.333 1.333 0 012 12.667V3.333C2 2.597 2.597 2 3.333 2z"
|
|
32
32
|
}));
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -16,9 +16,9 @@ export var EuiImageCaption = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
16
16
|
var euiTheme = useEuiTheme();
|
|
17
17
|
var styles = euiImageCaptionStyles(euiTheme);
|
|
18
18
|
var cssStyles = [styles.euiImageCaption, isOnOverlayMask && styles.isOnOverlayMask];
|
|
19
|
-
return ___EmotionJSX("figcaption", {
|
|
19
|
+
return caption ? ___EmotionJSX("figcaption", {
|
|
20
20
|
ref: ref,
|
|
21
21
|
css: cssStyles
|
|
22
|
-
}, caption);
|
|
22
|
+
}, caption) : null;
|
|
23
23
|
});
|
|
24
24
|
EuiImageCaption.displayName = 'EuiImageCaption';
|
|
@@ -23,7 +23,7 @@ export var euiImageWrapperStyles = function euiImageWrapperStyles(euiThemeContex
|
|
|
23
23
|
var euiTheme = euiThemeContext.euiTheme;
|
|
24
24
|
return {
|
|
25
25
|
// Base
|
|
26
|
-
euiImageWrapper: /*#__PURE__*/css("display:
|
|
26
|
+
euiImageWrapper: /*#__PURE__*/css("display:inline-block;", logicalCSS('max-width', '100%'), " ", logicalTextAlignCSS('center'), ";line-height:0;flex-shrink:0;;label:euiImageWrapper;"),
|
|
27
27
|
allowFullScreen: _ref,
|
|
28
28
|
// Margins
|
|
29
29
|
s: /*#__PURE__*/css("margin:", euiTheme.size.s, ";;label:s;"),
|
|
@@ -18,7 +18,7 @@ import { EuiFlexGroup, EuiFlexItem } from '../../flex';
|
|
|
18
18
|
import { EuiSpacer } from '../../spacer';
|
|
19
19
|
import { EuiTitle } from '../../title';
|
|
20
20
|
import { EuiText } from '../../text';
|
|
21
|
-
import { useIsWithinBreakpoints } from '../../../services
|
|
21
|
+
import { useIsWithinBreakpoints } from '../../../services';
|
|
22
22
|
import { EuiScreenReaderOnly } from '../../accessibility';
|
|
23
23
|
import { EuiBreadcrumbs } from '../../breadcrumbs';
|
|
24
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -13,7 +13,7 @@ var _excluded = ["children", "className"],
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
import { EuiPanel } from '../panel';
|
|
16
|
-
import { useIsWithinBreakpoints } from '../../../services/
|
|
16
|
+
import { useIsWithinBreakpoints } from '../../../services/breakpoint';
|
|
17
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
18
|
|
|
19
19
|
/**
|