@elastic/eui 64.0.0 → 65.0.1
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 +217 -1614
- package/dist/eui_theme_dark.json +0 -32
- package/dist/eui_theme_dark.json.d.ts +0 -32
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +244 -1641
- package/dist/eui_theme_light.json +0 -32
- package/dist/eui_theme_light.json.d.ts +0 -32
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/es/components/accessibility/skip_link/skip_link.js +4 -54
- package/es/components/accordion/accordion.js +2 -1
- package/es/components/accordion/accordion.styles.js +17 -27
- package/es/components/badge/beta_badge/beta_badge.js +16 -3
- package/es/components/basic_table/basic_table.js +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +2 -3
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/beacon/beacon.styles.js +2 -2
- package/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/es/components/button/button.js +112 -215
- package/es/components/button/button_display/_button_display.js +90 -40
- package/es/components/button/button_display/_button_display.styles.js +7 -16
- package/es/components/button/button_display/_button_display_content.js +6 -3
- package/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/es/components/button/button_empty/button_empty.js +63 -53
- package/es/components/button/button_empty/index.js +1 -1
- package/es/components/button/button_group/button_group.js +4 -12
- package/es/components/button/button_group/button_group_button.js +14 -4
- package/es/components/button/button_icon/button_icon.js +61 -42
- package/es/components/call_out/call_out.styles.js +2 -1
- package/es/components/card/card.js +173 -89
- package/es/components/card/card.styles.js +136 -0
- package/es/components/card/card_select/card_select.js +133 -0
- package/es/components/card/card_select/card_select.styles.js +25 -0
- package/es/components/card/card_select/index.js +8 -0
- package/es/components/card/checkable_card/checkable_card.js +14 -9
- package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/es/components/comment_list/comment_event.styles.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +7 -6
- package/es/components/datagrid/body/data_grid_cell.js +13 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/es/components/datagrid/data_grid.js +7 -6
- package/es/components/datagrid/utils/in_memory.js +7 -6
- package/es/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/es/components/description_list/description_list_title.js +1 -1
- package/es/components/expression/expression.styles.js +13 -31
- package/es/components/facet/facet_button.js +5 -4
- package/es/components/header/header_links/header_link.js +5 -3
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/image/image_wrapper.styles.js +3 -3
- package/es/components/link/link.styles.js +7 -6
- package/es/components/list_group/list_group.js +2 -1
- package/es/components/list_group/list_group_item.js +2 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/es/components/loading/loading_chart.styles.js +16 -26
- package/es/components/loading/loading_content.styles.js +2 -2
- package/es/components/loading/loading_logo.styles.js +4 -4
- package/es/components/loading/loading_spinner.styles.js +6 -6
- package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/es/components/modal/confirm_modal.js +1 -1
- package/es/components/notification/notification_event.js +5 -3
- package/es/components/notification/notification_event_read_button.js +2 -1
- package/es/components/page/page_template.js +2 -2
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/es/components/pagination/pagination_button.js +5 -3
- package/es/components/panel/panel.js +1 -1
- package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/es/components/progress/progress.styles.js +2 -2
- package/es/components/text/text.styles.js +1 -1
- package/es/components/title/title.styles.js +2 -2
- package/es/components/toast/global_toast_list.styles.js +2 -2
- package/es/components/toast/toast.styles.js +4 -4
- package/es/components/tool_tip/icon_tip.js +11 -1
- package/es/components/tool_tip/tool_tip.js +18 -6
- package/es/global_styling/functions/logicals.js +16 -72
- package/es/global_styling/functions/typography.js +2 -1
- package/es/global_styling/mixins/_color.js +1 -1
- package/es/global_styling/mixins/_helpers.js +18 -5
- package/es/global_styling/mixins/_states.js +3 -4
- package/es/global_styling/mixins/_typography.js +3 -1
- package/es/global_styling/reset/global_styles.js +2 -1
- package/es/global_styling/utility/utility.js +10 -2
- package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
- package/eui.d.ts +1156 -1013
- package/i18ntokens.json +19 -19
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/lib/components/accessibility/skip_link/skip_link.js +4 -54
- package/lib/components/accordion/accordion.js +3 -1
- package/lib/components/accordion/accordion.styles.js +17 -26
- package/lib/components/badge/beta_badge/beta_badge.js +16 -3
- package/lib/components/basic_table/basic_table.js +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +2 -3
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/beacon/beacon.styles.js +1 -1
- package/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/lib/components/button/button.js +124 -229
- package/lib/components/button/button_display/_button_display.js +94 -33
- package/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/lib/components/button/button_display/_button_display_content.js +7 -3
- package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/lib/components/button/button_empty/button_empty.js +64 -54
- package/lib/components/button/button_empty/index.js +0 -6
- package/lib/components/button/button_group/button_group.js +4 -12
- package/lib/components/button/button_group/button_group_button.js +15 -4
- package/lib/components/button/button_icon/button_icon.js +61 -43
- package/lib/components/call_out/call_out.styles.js +2 -1
- package/lib/components/card/card.js +174 -88
- package/lib/components/card/card.styles.js +146 -0
- package/lib/components/card/card_select/card_select.js +144 -0
- package/lib/components/card/card_select/card_select.styles.js +27 -0
- package/lib/components/card/card_select/index.js +19 -0
- package/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/lib/components/comment_list/comment_event.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +7 -6
- package/lib/components/datagrid/body/data_grid_cell.js +13 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/lib/components/datagrid/data_grid.js +7 -6
- package/lib/components/datagrid/utils/in_memory.js +7 -6
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/lib/components/description_list/description_list_title.js +1 -1
- package/lib/components/expression/expression.styles.js +12 -30
- package/lib/components/facet/facet_button.js +4 -3
- package/lib/components/header/header_links/header_link.js +5 -3
- package/lib/components/image/image_button.styles.js +1 -1
- package/lib/components/image/image_wrapper.styles.js +2 -2
- package/lib/components/link/link.styles.js +6 -5
- package/lib/components/list_group/list_group.js +2 -1
- package/lib/components/list_group/list_group_item.js +2 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/lib/components/loading/loading_chart.styles.js +16 -25
- package/lib/components/loading/loading_content.styles.js +1 -1
- package/lib/components/loading/loading_logo.styles.js +4 -4
- package/lib/components/loading/loading_spinner.styles.js +5 -5
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/lib/components/modal/confirm_modal.js +1 -1
- package/lib/components/notification/notification_event.js +5 -3
- package/lib/components/notification/notification_event_read_button.js +2 -1
- package/lib/components/page/page_template.js +1 -1
- package/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/lib/components/panel/panel.js +1 -1
- package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
- package/lib/components/progress/progress.styles.js +2 -2
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/title/title.styles.js +1 -1
- package/lib/components/toast/global_toast_list.styles.js +1 -1
- package/lib/components/toast/toast.styles.js +4 -4
- package/lib/components/tool_tip/icon_tip.js +11 -1
- package/lib/components/tool_tip/tool_tip.js +18 -6
- package/lib/global_styling/functions/logicals.js +22 -74
- package/lib/global_styling/functions/typography.js +3 -1
- package/lib/global_styling/mixins/_color.js +1 -1
- package/lib/global_styling/mixins/_helpers.js +24 -6
- package/lib/global_styling/mixins/_states.js +3 -4
- package/lib/global_styling/mixins/_typography.js +4 -1
- package/lib/global_styling/reset/global_styles.js +3 -1
- package/lib/global_styling/utility/utility.js +16 -3
- package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/optimize/es/components/accordion/accordion.js +2 -1
- package/optimize/es/components/accordion/accordion.styles.js +17 -27
- package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/es/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/es/components/beacon/beacon.styles.js +2 -2
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/es/components/button/button.js +88 -100
- package/optimize/es/components/button/button_display/_button_display.js +67 -32
- package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/es/components/button/button_empty/button_empty.js +55 -47
- package/optimize/es/components/button/button_empty/index.js +1 -1
- package/optimize/es/components/button/button_group/button_group.js +2 -10
- package/optimize/es/components/button/button_group/button_group_button.js +13 -3
- package/optimize/es/components/button/button_icon/button_icon.js +54 -41
- package/optimize/es/components/call_out/call_out.styles.js +2 -1
- package/optimize/es/components/card/card.js +97 -31
- package/optimize/es/components/card/card.styles.js +136 -0
- package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
- package/optimize/es/components/card/card_select/index.js +8 -0
- package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
- package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/es/components/description_list/description_list_title.js +1 -1
- package/optimize/es/components/expression/expression.styles.js +13 -31
- package/optimize/es/components/facet/facet_button.js +5 -3
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/image/image_wrapper.styles.js +3 -3
- package/optimize/es/components/link/link.styles.js +7 -6
- package/optimize/es/components/loading/loading_chart.styles.js +16 -26
- package/optimize/es/components/loading/loading_content.styles.js +2 -2
- package/optimize/es/components/loading/loading_logo.styles.js +4 -4
- package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/es/components/page/page_template.js +2 -2
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/optimize/es/components/panel/panel.js +1 -1
- package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/optimize/es/components/progress/progress.styles.js +2 -2
- package/optimize/es/components/text/text.styles.js +1 -1
- package/optimize/es/components/title/title.styles.js +2 -2
- package/optimize/es/components/toast/global_toast_list.styles.js +2 -2
- package/optimize/es/components/toast/toast.styles.js +4 -4
- package/optimize/es/components/tool_tip/tool_tip.js +7 -5
- package/optimize/es/global_styling/functions/logicals.js +16 -72
- package/optimize/es/global_styling/functions/typography.js +2 -1
- package/optimize/es/global_styling/mixins/_color.js +1 -1
- package/optimize/es/global_styling/mixins/_helpers.js +18 -5
- package/optimize/es/global_styling/mixins/_states.js +3 -4
- package/optimize/es/global_styling/mixins/_typography.js +3 -1
- package/optimize/es/global_styling/reset/global_styles.js +2 -1
- package/optimize/es/global_styling/utility/utility.js +10 -2
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/optimize/lib/components/accordion/accordion.js +3 -1
- package/optimize/lib/components/accordion/accordion.styles.js +17 -26
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/lib/components/beacon/beacon.styles.js +1 -1
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/lib/components/button/button.js +92 -103
- package/optimize/lib/components/button/button_display/_button_display.js +71 -25
- package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
- package/optimize/lib/components/button/button_empty/index.js +0 -6
- package/optimize/lib/components/button/button_group/button_group.js +2 -10
- package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
- package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
- package/optimize/lib/components/call_out/call_out.styles.js +2 -1
- package/optimize/lib/components/card/card.js +97 -30
- package/optimize/lib/components/card/card.styles.js +146 -0
- package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
- package/optimize/lib/components/card/card_select/index.js +19 -0
- package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/lib/components/description_list/description_list_title.js +1 -1
- package/optimize/lib/components/expression/expression.styles.js +12 -30
- package/optimize/lib/components/facet/facet_button.js +4 -2
- package/optimize/lib/components/image/image_button.styles.js +1 -1
- package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
- package/optimize/lib/components/link/link.styles.js +6 -5
- package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
- package/optimize/lib/components/loading/loading_content.styles.js +1 -1
- package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
- package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/lib/components/page/page_template.js +1 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/optimize/lib/components/panel/panel.js +1 -1
- package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
- package/optimize/lib/components/progress/progress.styles.js +2 -2
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/title/title.styles.js +1 -1
- package/optimize/lib/components/toast/global_toast_list.styles.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +4 -4
- package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
- package/optimize/lib/global_styling/functions/logicals.js +28 -74
- package/optimize/lib/global_styling/functions/typography.js +3 -1
- package/optimize/lib/global_styling/mixins/_color.js +1 -1
- package/optimize/lib/global_styling/mixins/_helpers.js +24 -6
- package/optimize/lib/global_styling/mixins/_states.js +3 -4
- package/optimize/lib/global_styling/mixins/_typography.js +4 -1
- package/optimize/lib/global_styling/reset/global_styles.js +3 -1
- package/optimize/lib/global_styling/utility/utility.js +16 -3
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/package.json +2 -2
- package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
- package/src/components/button/_index.scss +0 -1
- package/src/components/button/button_empty/_button_empty.scss +4 -48
- package/src/components/button/button_group/_button_group.scss +0 -1
- package/src/components/button/button_group/_button_group_button.scss +55 -83
- package/src/components/button/button_icon/_button_icon.scss +3 -103
- package/src/components/control_bar/_control_bar.scss +2 -6
- package/src/components/flyout/_flyout.scss +4 -1
- package/src/components/index.scss +0 -1
- package/src/global_styling/mixins/_button.scss +55 -11
- package/src/global_styling/mixins/_helpers.scss +9 -0
- package/src/global_styling/mixins/_index.scss +0 -1
- package/src/global_styling/utility/_utility.scss +0 -127
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
- package/src/themes/amsterdam/overrides/_header.scss +0 -2
- package/src/themes/amsterdam/overrides/_index.scss +0 -4
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
- package/test-env/components/accordion/accordion.js +3 -1
- package/test-env/components/accordion/accordion.styles.js +17 -26
- package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +2 -3
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/beacon/beacon.styles.js +1 -1
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/test-env/components/button/button.js +111 -225
- package/test-env/components/button/button_display/_button_display.js +93 -32
- package/test-env/components/button/button_display/_button_display.styles.js +7 -16
- package/test-env/components/button/button_display/_button_display_content.js +7 -3
- package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
- package/test-env/components/button/button_empty/button_empty.js +64 -53
- package/test-env/components/button/button_empty/index.js +0 -6
- package/test-env/components/button/button_group/button_group.js +4 -12
- package/test-env/components/button/button_group/button_group_button.js +16 -4
- package/test-env/components/button/button_icon/button_icon.js +61 -42
- package/test-env/components/call_out/call_out.styles.js +2 -1
- package/test-env/components/card/card.js +172 -88
- package/test-env/components/card/card.styles.js +146 -0
- package/test-env/components/card/card_select/card_select.js +141 -0
- package/test-env/components/card/card_select/card_select.styles.js +27 -0
- package/test-env/components/card/card_select/index.js +19 -0
- package/test-env/components/card/checkable_card/checkable_card.js +16 -9
- package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/test-env/components/comment_list/comment_event.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +7 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/test-env/components/datagrid/data_grid.js +7 -6
- package/test-env/components/datagrid/utils/in_memory.js +7 -6
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/test-env/components/description_list/description_list_title.js +1 -1
- package/test-env/components/expression/expression.styles.js +12 -30
- package/test-env/components/facet/facet_button.js +4 -3
- package/test-env/components/header/header_links/header_link.js +5 -3
- package/test-env/components/image/image_button.styles.js +1 -1
- package/test-env/components/image/image_wrapper.styles.js +2 -2
- package/test-env/components/link/link.styles.js +6 -5
- package/test-env/components/list_group/list_group.js +2 -1
- package/test-env/components/list_group/list_group_item.js +2 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/test-env/components/loading/loading_chart.styles.js +16 -25
- package/test-env/components/loading/loading_content.styles.js +1 -1
- package/test-env/components/loading/loading_logo.styles.js +4 -4
- package/test-env/components/loading/loading_spinner.styles.js +5 -5
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/test-env/components/modal/confirm_modal.js +1 -1
- package/test-env/components/notification/notification_event.js +5 -3
- package/test-env/components/notification/notification_event_read_button.js +2 -1
- package/test-env/components/page/page_template.js +1 -1
- package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
- package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
- package/test-env/components/panel/panel.js +1 -1
- package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
- package/test-env/components/progress/progress.styles.js +2 -2
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/title/title.styles.js +1 -1
- package/test-env/components/toast/global_toast_list.styles.js +1 -1
- package/test-env/components/toast/toast.styles.js +4 -4
- package/test-env/components/tool_tip/icon_tip.js +11 -1
- package/test-env/components/tool_tip/tool_tip.js +18 -6
- package/test-env/global_styling/functions/logicals.js +28 -74
- package/test-env/global_styling/functions/typography.js +3 -1
- package/test-env/global_styling/mixins/_color.js +1 -1
- package/test-env/global_styling/mixins/_helpers.js +24 -6
- package/test-env/global_styling/mixins/_states.js +3 -4
- package/test-env/global_styling/mixins/_typography.js +4 -1
- package/test-env/global_styling/reset/global_styles.js +3 -1
- package/test-env/global_styling/utility/utility.js +16 -3
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/es/components/card/card_select.js +0 -176
- package/lib/components/card/card_select.js +0 -187
- package/src/components/button/_button.scss +0 -143
- package/src/components/button/button_icon/_variables.scss +0 -11
- package/src/components/card/_card.scss +0 -239
- package/src/components/card/_card_select.scss +0 -21
- package/src/components/card/_index.scss +0 -5
- package/src/components/card/_mixins.scss +0 -11
- package/src/components/card/_variables.scss +0 -25
- package/src/components/card/checkable_card/_checkable_card.scss +0 -29
- package/src/components/card/checkable_card/_index.scss +0 -1
- package/src/global_styling/mixins/_beta_badge.scss +0 -30
- package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
- package/src/themes/amsterdam/overrides/_button.scss +0 -119
- package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
- package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
- package/src/themes/amsterdam/overrides/_card.scss +0 -6
- package/test-env/components/card/card_select.js +0 -184
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
|
|
1
3
|
/*
|
|
2
4
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
5
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -6,36 +8,173 @@
|
|
|
6
8
|
* Side Public License, v 1.
|
|
7
9
|
*/
|
|
8
10
|
import { css } from '@emotion/react';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
export var
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
import { euiBackgroundColor, euiCanAnimate } from '../../../../global_styling';
|
|
12
|
+
import { hexToRgb, isColorDark, makeHighContrastColor, shade, tint, transparentize, useEuiTheme } from '../../../../services';
|
|
13
|
+
export var BUTTON_COLORS = ['text', 'accent', 'primary', 'success', 'warning', 'danger'];
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Creates the `base` version of button styles with proper text contrast.
|
|
17
|
+
* @param euiThemeContext
|
|
18
|
+
* @param color One of the named button colors or 'disabled'
|
|
19
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
20
|
+
*/
|
|
21
|
+
export var euiButtonColor = function euiButtonColor(euiThemeContext, color) {
|
|
22
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
23
|
+
colorMode = euiThemeContext.colorMode;
|
|
14
24
|
|
|
15
25
|
function tintOrShade(color) {
|
|
16
26
|
return colorMode === 'DARK' ? shade(color, 0.7) : tint(color, 0.8);
|
|
17
27
|
}
|
|
18
28
|
|
|
29
|
+
var foreground;
|
|
30
|
+
var background;
|
|
31
|
+
|
|
32
|
+
switch (color) {
|
|
33
|
+
case 'disabled':
|
|
34
|
+
return {
|
|
35
|
+
color: euiTheme.colors.disabledText,
|
|
36
|
+
backgroundColor: transparentize(euiTheme.colors.lightShade, 0.15)
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
case 'text':
|
|
40
|
+
foreground = euiTheme.colors[color];
|
|
41
|
+
background = colorMode === 'DARK' ? shade(euiTheme.colors.lightShade, 0.2) : tint(euiTheme.colors.lightShade, 0.5);
|
|
42
|
+
break;
|
|
43
|
+
|
|
44
|
+
default:
|
|
45
|
+
foreground = euiTheme.colors["".concat(color, "Text")];
|
|
46
|
+
background = tintOrShade(euiTheme.colors[color]);
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return {
|
|
51
|
+
color: makeHighContrastColor(foreground)(background),
|
|
52
|
+
backgroundColor: background
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
57
|
+
* @param euiThemeContext
|
|
58
|
+
* @param color One of the named button colors or 'disabled'
|
|
59
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
export var euiButtonFillColor = function euiButtonFillColor(euiThemeContext, color) {
|
|
63
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
64
|
+
colorMode = euiThemeContext.colorMode;
|
|
65
|
+
var background;
|
|
66
|
+
var foreground;
|
|
67
|
+
|
|
68
|
+
switch (color) {
|
|
69
|
+
case 'disabled':
|
|
70
|
+
background = euiButtonColor(euiThemeContext, color).backgroundColor;
|
|
71
|
+
foreground = euiButtonColor(euiThemeContext, color).color;
|
|
72
|
+
break;
|
|
73
|
+
|
|
74
|
+
case 'text':
|
|
75
|
+
background = colorMode === 'DARK' ? euiTheme.colors.text : euiTheme.colors.darkShade;
|
|
76
|
+
foreground = isColorDark.apply(void 0, _toConsumableArray(hexToRgb(background))) ? euiTheme.colors.ghost : euiTheme.colors.ink;
|
|
77
|
+
break;
|
|
78
|
+
|
|
79
|
+
default:
|
|
80
|
+
background = euiTheme.colors[color];
|
|
81
|
+
foreground = isColorDark.apply(void 0, _toConsumableArray(hexToRgb(euiTheme.colors[color]))) ? euiTheme.colors.ghost : euiTheme.colors.ink;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
color: foreground,
|
|
87
|
+
backgroundColor: background
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
92
|
+
* @param euiThemeContext
|
|
93
|
+
* @param color One of the named button colors or 'disabled'
|
|
94
|
+
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
export var euiButtonEmptyColor = function euiButtonEmptyColor(euiThemeContext, color) {
|
|
98
|
+
var foreground;
|
|
99
|
+
var background;
|
|
100
|
+
|
|
19
101
|
switch (color) {
|
|
20
102
|
case 'disabled':
|
|
21
|
-
|
|
103
|
+
foreground = euiButtonColor(euiThemeContext, color).color;
|
|
104
|
+
background = 'transparent';
|
|
105
|
+
break;
|
|
22
106
|
|
|
23
107
|
case 'text':
|
|
24
|
-
|
|
108
|
+
foreground = euiButtonColor(euiThemeContext, color).color;
|
|
109
|
+
background = euiBackgroundColor(euiThemeContext, 'subdued', {
|
|
110
|
+
method: 'transparent'
|
|
111
|
+
});
|
|
112
|
+
break;
|
|
25
113
|
|
|
26
114
|
default:
|
|
27
|
-
|
|
115
|
+
foreground = euiButtonColor(euiThemeContext, color).color;
|
|
116
|
+
background = euiBackgroundColor(euiThemeContext, color, {
|
|
117
|
+
method: 'transparent'
|
|
118
|
+
});
|
|
119
|
+
break;
|
|
28
120
|
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
color: foreground,
|
|
124
|
+
backgroundColor: background
|
|
125
|
+
};
|
|
29
126
|
};
|
|
127
|
+
/**
|
|
128
|
+
* Given the button display type, returns the Emotion based color keys.
|
|
129
|
+
* @param options Button display type
|
|
130
|
+
* @returns An object of `_EuiButtonColor` keys including `disabled`
|
|
131
|
+
*/
|
|
132
|
+
|
|
30
133
|
export var useEuiButtonColorCSS = function useEuiButtonColorCSS() {
|
|
31
|
-
var
|
|
134
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
135
|
+
var euiThemeContext = useEuiTheme();
|
|
136
|
+
|
|
137
|
+
function stylesByDisplay(color) {
|
|
138
|
+
return {
|
|
139
|
+
base: /*#__PURE__*/css(euiButtonColor(euiThemeContext, color), ";;label:base;"),
|
|
140
|
+
fill: /*#__PURE__*/css(euiButtonFillColor(euiThemeContext, color), "outline-color:", euiThemeContext.colorMode === 'DARK' && color === 'text' ? 'currentColor' : euiThemeContext.euiTheme.colors.fullShade, ";;label:fill;"),
|
|
141
|
+
empty: /*#__PURE__*/css("color:", euiButtonEmptyColor(euiThemeContext, color).color, ";&:focus,&:active{background-color:", euiButtonEmptyColor(euiThemeContext, color).backgroundColor, ";};label:empty;")
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return {
|
|
146
|
+
text: /*#__PURE__*/css(stylesByDisplay('text')[options.display || 'base'], ";label:text;"),
|
|
147
|
+
accent: /*#__PURE__*/css(stylesByDisplay('accent')[options.display || 'base'], ";label:accent;"),
|
|
148
|
+
primary: /*#__PURE__*/css(stylesByDisplay('primary')[options.display || 'base'], ";label:primary;"),
|
|
149
|
+
success: /*#__PURE__*/css(stylesByDisplay('success')[options.display || 'base'], ";label:success;"),
|
|
150
|
+
warning: /*#__PURE__*/css(stylesByDisplay('warning')[options.display || 'base'], ";label:warning;"),
|
|
151
|
+
danger: /*#__PURE__*/css(stylesByDisplay('danger')[options.display || 'base'], ";label:danger;"),
|
|
152
|
+
disabled: /*#__PURE__*/css(stylesByDisplay('disabled')[options.display || 'base'], ";label:disabled;")
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Based on the button size, creates the style properties.
|
|
157
|
+
* @returns An object of button size keys with Emption styles for `border-radius`
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
export var useEuiButtonRadiusCSS = function useEuiButtonRadiusCSS() {
|
|
161
|
+
var _useEuiTheme = useEuiTheme(),
|
|
162
|
+
euiTheme = _useEuiTheme.euiTheme;
|
|
163
|
+
|
|
32
164
|
return {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
success: /*#__PURE__*/css("background-color:", euiButtonColor('success', euiTheme), ";;label:success;"),
|
|
37
|
-
warning: /*#__PURE__*/css("background-color:", euiButtonColor('warning', euiTheme), ";;label:warning;"),
|
|
38
|
-
danger: /*#__PURE__*/css("background-color:", euiButtonColor('danger', euiTheme), ";;label:danger;"),
|
|
39
|
-
disabled: /*#__PURE__*/css("background-color:", euiButtonColor('disabled', euiTheme), ";;label:disabled;")
|
|
165
|
+
xs: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.small, ";;label:xs;"),
|
|
166
|
+
s: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.small, ";;label:s;"),
|
|
167
|
+
m: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.medium, ";;label:m;")
|
|
40
168
|
};
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Creates the translate animation when button is in focus.
|
|
172
|
+
* @returns string
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
export var useEuiButtonFocusCSS = function useEuiButtonFocusCSS() {
|
|
176
|
+
var _useEuiTheme2 = useEuiTheme(),
|
|
177
|
+
euiTheme = _useEuiTheme2.euiTheme;
|
|
178
|
+
|
|
179
|
+
return "\n ".concat(euiCanAnimate, " {\n transition: transform ").concat(euiTheme.animation.normal, " ease-in-out,\n background-color ").concat(euiTheme.animation.normal, " ease-in-out;\n\n &:hover:not(:disabled) {\n transform: translateY(-1px);\n }\n\n &:focus {\n animation: euiButtonActive ").concat(euiTheme.animation.normal, "\n ").concat(euiTheme.animation.bounce, ";\n }\n\n &:active:not(:disabled) {\n transform: translateY(1px);\n }\n }\n ");
|
|
41
180
|
};
|
package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js
CHANGED
|
@@ -7,6 +7,8 @@ exports.euiScreenReaderOnlyStyles = exports.euiScreenReaderOnly = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
|
+
var _global_styling = require("../../../global_styling");
|
|
11
|
+
|
|
10
12
|
/*
|
|
11
13
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
14
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -20,7 +22,7 @@ var _react = require("@emotion/react");
|
|
|
20
22
|
* See https://github.com/elastic/eui/pull/5130 and https://github.com/elastic/eui/pull/5152 for more info
|
|
21
23
|
*/
|
|
22
24
|
var euiScreenReaderOnly = function euiScreenReaderOnly() {
|
|
23
|
-
return "\n // Take the element out of the layout\n position: absolute;\n // Keep it vertically inline\n top
|
|
25
|
+
return "\n // Take the element out of the layout\n position: absolute;\n // Keep it vertically inline\n ".concat((0, _global_styling.logicalCSS)('top', 'auto'), "\n // Chrome requires a left value, and Selenium (used by Kibana's FTR) requires an off-screen position for its .getVisibleText() to not register SR-only text\n ").concat((0, _global_styling.logicalCSS)('left', '-10000px'), "\n // The element must have a size (for some screen readers)\n ").concat((0, _global_styling.logicalSizeCSS)('1px', '1px'), "\n // But reduce the visible size to nothing\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n // And ensure no overflows occur\n overflow: hidden;\n // Chrome requires the negative margin to not cause overflows of parent containers\n margin: -1px;\n");
|
|
24
26
|
};
|
|
25
27
|
/*
|
|
26
28
|
* Styles
|
|
@@ -47,6 +47,8 @@ var _button = require("../button");
|
|
|
47
47
|
|
|
48
48
|
var _accordion = require("./accordion.styles");
|
|
49
49
|
|
|
50
|
+
var _global_styling = require("../../global_styling");
|
|
51
|
+
|
|
50
52
|
var _react2 = require("@emotion/react");
|
|
51
53
|
|
|
52
54
|
var _excluded = ["children", "buttonContent", "className", "id", "element", "buttonClassName", "buttonContentClassName", "extraAction", "paddingSize", "initialIsOpen", "arrowDisplay", "forceState", "isLoading", "isLoadingMessage", "isDisabled", "buttonProps", "buttonElement", "arrowProps", "theme"];
|
|
@@ -94,7 +96,7 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
94
96
|
var forceState = _this.props.forceState;
|
|
95
97
|
requestAnimationFrame(function () {
|
|
96
98
|
var height = _this.childContent && (forceState ? forceState === 'open' : _this.state.isOpen) ? _this.childContent.clientHeight : 0;
|
|
97
|
-
_this.childWrapper && _this.childWrapper.setAttribute('style',
|
|
99
|
+
_this.childWrapper && _this.childWrapper.setAttribute('style', (0, _global_styling.logicalCSS)('height', "".concat(height, "px")));
|
|
98
100
|
});
|
|
99
101
|
});
|
|
100
102
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onToggle", function () {
|
|
@@ -7,14 +7,14 @@ exports.euiAccordionTriggerWrapperStyles = exports.euiAccordionSpinnerStyles = e
|
|
|
7
7
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _global_styling = require("../../global_styling");
|
|
11
11
|
|
|
12
12
|
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)."; }
|
|
13
13
|
|
|
14
14
|
var euiAccordionButtonStyles = function euiAccordionButtonStyles(euiThemeContext) {
|
|
15
15
|
var euiTheme = euiThemeContext.euiTheme;
|
|
16
16
|
return {
|
|
17
|
-
euiAccordion__button: /*#__PURE__*/(0, _react.css)((0,
|
|
17
|
+
euiAccordion__button: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";align-items:center;display:flex;flex-grow:1;line-height:", euiTheme.size.l, ";", (0, _global_styling.logicalTextAlignCSS)('left'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " &:hover,&:focus{cursor:pointer;text-decoration:underline;};label:euiAccordion__button;"),
|
|
18
18
|
// Triggering button needs separate `disabled` key because the element that renders may not support `:disabled`;
|
|
19
19
|
// Hover pseudo selector for specificity
|
|
20
20
|
disabled: /*#__PURE__*/(0, _react.css)("&,&:hover{cursor:not-allowed;color:", euiTheme.colors.disabledText, ";text-decoration:none;};label:disabled;")
|
|
@@ -23,7 +23,7 @@ var euiAccordionButtonStyles = function euiAccordionButtonStyles(euiThemeContext
|
|
|
23
23
|
|
|
24
24
|
exports.euiAccordionButtonStyles = euiAccordionButtonStyles;
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
27
27
|
name: "1xvjonu-isLoading",
|
|
28
28
|
styles: "align-items:center;display:flex;label:isLoading;"
|
|
29
29
|
} : {
|
|
@@ -32,11 +32,11 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
|
|
|
32
32
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
var euiAccordionChildrenStyles = function euiAccordionChildrenStyles(
|
|
36
|
-
var euiTheme =
|
|
35
|
+
var euiAccordionChildrenStyles = function euiAccordionChildrenStyles(_ref5) {
|
|
36
|
+
var euiTheme = _ref5.euiTheme;
|
|
37
37
|
return {
|
|
38
38
|
euiAccordion__children: /*#__PURE__*/(0, _react.css)(";label:euiAccordion__children;"),
|
|
39
|
-
isLoading:
|
|
39
|
+
isLoading: _ref4,
|
|
40
40
|
xs: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.xs, ";;label:xs;"),
|
|
41
41
|
s: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.s, ";;label:s;"),
|
|
42
42
|
m: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.base, ";;label:m;"),
|
|
@@ -47,20 +47,11 @@ var euiAccordionChildrenStyles = function euiAccordionChildrenStyles(_ref6) {
|
|
|
47
47
|
|
|
48
48
|
exports.euiAccordionChildrenStyles = euiAccordionChildrenStyles;
|
|
49
49
|
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
styles: "height:auto;opacity:1;visibility:visible;label:isOpen;"
|
|
53
|
-
} : {
|
|
54
|
-
name: "xodlxj-isOpen",
|
|
55
|
-
styles: "height:auto;opacity:1;visibility:visible;label:isOpen;",
|
|
56
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
var euiAccordionChildWrapperStyles = function euiAccordionChildWrapperStyles(_ref7) {
|
|
60
|
-
var euiTheme = _ref7.euiTheme;
|
|
50
|
+
var euiAccordionChildWrapperStyles = function euiAccordionChildWrapperStyles(_ref6) {
|
|
51
|
+
var euiTheme = _ref6.euiTheme;
|
|
61
52
|
return {
|
|
62
|
-
euiAccordion__childWrapper: /*#__PURE__*/(0, _react.css)(
|
|
63
|
-
isOpen:
|
|
53
|
+
euiAccordion__childWrapper: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', 0), " opacity:0;overflow:hidden;transition:", _global_styling.logicals.height, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ",opacity ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";visibility:hidden;will-change:opacity,visibility,", _global_styling.logicals.height, ";&:focus{outline:none;};label:euiAccordion__childWrapper;"),
|
|
54
|
+
isOpen: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', 'auto'), " opacity:1;visibility:visible;;label:isOpen;")
|
|
64
55
|
};
|
|
65
56
|
};
|
|
66
57
|
|
|
@@ -75,12 +66,12 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
75
66
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
76
67
|
};
|
|
77
68
|
|
|
78
|
-
var euiAccordionIconButtonStyles = function euiAccordionIconButtonStyles(
|
|
79
|
-
var euiTheme =
|
|
69
|
+
var euiAccordionIconButtonStyles = function euiAccordionIconButtonStyles(_ref7) {
|
|
70
|
+
var euiTheme = _ref7.euiTheme;
|
|
80
71
|
return {
|
|
81
|
-
euiAccordion__iconButton: /*#__PURE__*/(0, _react.css)("flex-shrink:0;margin-
|
|
72
|
+
euiAccordion__iconButton: /*#__PURE__*/(0, _react.css)("flex-shrink:0;", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.xs), " transform:rotate(0deg)!important;;label:euiAccordion__iconButton;"),
|
|
82
73
|
isOpen: _ref3,
|
|
83
|
-
arrowRight: /*#__PURE__*/(0, _react.css)(
|
|
74
|
+
arrowRight: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('margin-right', 0), ";;label:arrowRight;")
|
|
84
75
|
};
|
|
85
76
|
};
|
|
86
77
|
|
|
@@ -103,10 +94,10 @@ var euiAccordionOptionalActionStyles = function euiAccordionOptionalActionStyles
|
|
|
103
94
|
|
|
104
95
|
exports.euiAccordionOptionalActionStyles = euiAccordionOptionalActionStyles;
|
|
105
96
|
|
|
106
|
-
var euiAccordionSpinnerStyles = function euiAccordionSpinnerStyles(
|
|
107
|
-
var euiTheme =
|
|
97
|
+
var euiAccordionSpinnerStyles = function euiAccordionSpinnerStyles(_ref8) {
|
|
98
|
+
var euiTheme = _ref8.euiTheme;
|
|
108
99
|
return {
|
|
109
|
-
euiAccordion__spinner: /*#__PURE__*/(0, _react.css)(
|
|
100
|
+
euiAccordion__spinner: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-right', euiTheme.size.xs), ";;label:euiAccordion__spinner;")
|
|
110
101
|
};
|
|
111
102
|
};
|
|
112
103
|
|
|
@@ -29,7 +29,7 @@ var _icon = require("../../icon");
|
|
|
29
29
|
|
|
30
30
|
var _react2 = require("@emotion/react");
|
|
31
31
|
|
|
32
|
-
var _excluded = ["className", "label", "color", "tooltipContent", "tooltipPosition", "title", "iconType", "onClick", "onClickAriaLabel", "href", "rel", "target", "size"];
|
|
32
|
+
var _excluded = ["className", "label", "color", "tooltipContent", "tooltipPosition", "anchorProps", "title", "iconType", "onClick", "onClickAriaLabel", "href", "rel", "target", "size"];
|
|
33
33
|
|
|
34
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
35
|
|
|
@@ -58,6 +58,7 @@ var EuiBetaBadge = function EuiBetaBadge(_ref) {
|
|
|
58
58
|
tooltipContent = _ref.tooltipContent,
|
|
59
59
|
_ref$tooltipPosition = _ref.tooltipPosition,
|
|
60
60
|
tooltipPosition = _ref$tooltipPosition === void 0 ? 'top' : _ref$tooltipPosition,
|
|
61
|
+
anchorProps = _ref.anchorProps,
|
|
61
62
|
title = _ref.title,
|
|
62
63
|
iconType = _ref.iconType,
|
|
63
64
|
onClick = _ref.onClick,
|
|
@@ -122,7 +123,8 @@ var EuiBetaBadge = function EuiBetaBadge(_ref) {
|
|
|
122
123
|
return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
123
124
|
position: tooltipPosition,
|
|
124
125
|
content: tooltipContent,
|
|
125
|
-
title: title || label
|
|
126
|
+
title: title || label,
|
|
127
|
+
anchorProps: anchorProps
|
|
126
128
|
}, content);
|
|
127
129
|
} else {
|
|
128
130
|
return (0, _react2.jsx)(_react.Fragment, null, content);
|
|
@@ -132,7 +134,8 @@ var EuiBetaBadge = function EuiBetaBadge(_ref) {
|
|
|
132
134
|
return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
133
135
|
position: tooltipPosition,
|
|
134
136
|
content: tooltipContent,
|
|
135
|
-
title: title || label
|
|
137
|
+
title: title || label,
|
|
138
|
+
anchorProps: anchorProps
|
|
136
139
|
}, (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
137
140
|
tabIndex: 0,
|
|
138
141
|
className: classes,
|
|
@@ -96,8 +96,7 @@ var CollapsedItemActions = /*#__PURE__*/function (_Component) {
|
|
|
96
96
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "registerPopoverDiv", function (popoverDiv) {
|
|
97
97
|
if (!_this.popoverDiv) {
|
|
98
98
|
_this.popoverDiv = popoverDiv;
|
|
99
|
-
|
|
100
|
-
_this.popoverDiv.addEventListener('focusout', _this.onPopoverBlur);
|
|
99
|
+
_this.popoverDiv && _this.popoverDiv.addEventListener('focusout', _this.onPopoverBlur);
|
|
101
100
|
}
|
|
102
101
|
});
|
|
103
102
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onClickItem", function (onClickAction) {
|
|
@@ -24,7 +24,7 @@ var euiBeaconPulseSmall = (0, _react.keyframes)(_templateObject2 || (_templateOb
|
|
|
24
24
|
var euiBeaconStyles = function euiBeaconStyles() {
|
|
25
25
|
return {
|
|
26
26
|
// Base
|
|
27
|
-
euiBeacon: /*#__PURE__*/(0, _react.css)("position:relative;background-color:", visColors[0], ";border-radius:50%;&:before,&:after{position:absolute;content:'';
|
|
27
|
+
euiBeacon: /*#__PURE__*/(0, _react.css)("position:relative;background-color:", visColors[0], ";border-radius:50%;&:before,&:after{position:absolute;content:'';", (0, _global_styling.logicalSizeCSS)('100%', '100%'), " ", (0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('top', 0), " background-color:transparent;border-radius:50%;box-shadow:0 0 1px 1px ", visColors[0], ";}&:before{transform:scale(1.6);opacity:0.4;}&:after{opacity:0;}", _global_styling.euiCanAnimate, "{&:before{animation:", euiBeaconPulseLarge, " 2.5s infinite ease-out;}&:after{animation:", euiBeaconPulseSmall, " 2.5s infinite ease-out 0.25s;}};label:euiBeacon;")
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -55,8 +55,8 @@ var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeCon
|
|
|
55
55
|
isTruncated: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)("".concat(parseFloat(euiTheme.size.base) * 10, "px")), ";;label:isTruncated;"),
|
|
56
56
|
isTruncatedLast: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)('none'), ";;label:isTruncatedLast;"),
|
|
57
57
|
// Types
|
|
58
|
-
page: /*#__PURE__*/(0, _react.css)("&:is(a):focus{", (0, _global_styling.euiFocusRing)(
|
|
59
|
-
application: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";background-color:", (0, _color.transparentize)(euiTheme.colors.darkestShade, 0.2), ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%,\n ", euiTheme.size.s, " 50%\n );color:", euiTheme.colors.darkestShade, ";line-height:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.base), " &:is(a),&:is(button){background-color:", (0, _color.transparentize)(euiTheme.colors.primary, 0.2), ";color:", euiTheme.colors.link, ";:focus{", (0, _global_styling.euiFocusRing)(
|
|
58
|
+
page: /*#__PURE__*/(0, _react.css)("&:is(a):focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:is(button):focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'center'), ";};label:page;"),
|
|
59
|
+
application: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";background-color:", (0, _color.transparentize)(euiTheme.colors.darkestShade, 0.2), ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%,\n ", euiTheme.size.s, " 50%\n );color:", euiTheme.colors.darkestShade, ";line-height:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.base), " &:is(a),&:is(button){background-color:", (0, _color.transparentize)(euiTheme.colors.primary, 0.2), ";color:", euiTheme.colors.link, ";:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";:focus-visible{border-radius:", euiTheme.border.radius.medium, ";clip-path:none;}}};label:application;"),
|
|
60
60
|
applicationStyles: {
|
|
61
61
|
onlyChild: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";clip-path:none;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.m), ",;;label:onlyChild;"),
|
|
62
62
|
firstChild: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, " 0 0 ", euiTheme.border.radius.medium, ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%\n );", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.m), ",;;label:firstChild;"),
|