@elastic/eui 64.0.1 → 65.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +160 -1248
- 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 +132 -1220
- 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 +1 -1
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/beacon/beacon.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/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 +2 -2
- 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/title/title.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 +2 -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 +7 -1
- package/es/global_styling/reset/global_styles.js +2 -1
- package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
- package/eui.d.ts +1062 -936
- package/i18ntokens.json +15 -15
- 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 +1 -1
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/beacon/beacon.styles.js +1 -1
- 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/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 +1 -1
- 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/title/title.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 +3 -72
- 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 +9 -2
- package/lib/global_styling/reset/global_styles.js +3 -1
- 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/beacon/beacon.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/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 +2 -2
- 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/title/title.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 +2 -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 +7 -1
- package/optimize/es/global_styling/reset/global_styles.js +2 -1
- 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/beacon/beacon.styles.js +1 -1
- 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/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 +1 -1
- 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/title/title.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 +10 -73
- 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 +9 -2
- package/optimize/lib/global_styling/reset/global_styles.js +3 -1
- 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/_index.scss +0 -1
- 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 +1 -1
- 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/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/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 +1 -1
- 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/title/title.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 +10 -73
- 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 +9 -2
- package/test-env/global_styling/reset/global_styles.js +3 -1
- 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
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
.euiButtonIcon {
|
|
5
5
|
@include euiButton;
|
|
6
|
-
@include euiSlightShadow;
|
|
7
6
|
|
|
8
7
|
border-radius: $euiBorderRadius;
|
|
9
8
|
width: $euiButtonHeight;
|
|
@@ -19,118 +18,19 @@
|
|
|
19
18
|
pointer-events: none;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
box-shadow: none !important; // sass-lint:disable-line no-important
|
|
24
|
-
border: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.euiButtonIcon-isDisabled {
|
|
21
|
+
&:disabled {
|
|
28
22
|
@include euiButtonContentDisabled;
|
|
29
|
-
color: $euiButtonColorDisabledText;
|
|
30
|
-
border-color: $euiButtonColorDisabled;
|
|
31
|
-
|
|
32
|
-
&.euiButtonIcon--fill {
|
|
33
|
-
// Only increase the contrast of background color to text to 2.0 for disabled
|
|
34
|
-
color: makeHighContrastColor($euiButtonColorDisabled, $euiButtonColorDisabled, 2);
|
|
35
|
-
background-color: $euiButtonColorDisabled;
|
|
36
|
-
border-color: $euiButtonColorDisabled;
|
|
37
|
-
|
|
38
|
-
&:hover,
|
|
39
|
-
&:focus,
|
|
40
|
-
&:focus-within {
|
|
41
|
-
background-color: $euiButtonColorDisabled;
|
|
42
|
-
border-color: $euiButtonColorDisabled;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:hover,
|
|
47
|
-
&:focus,
|
|
48
|
-
&:focus-within {
|
|
49
|
-
@include euiSlightShadow;
|
|
50
|
-
text-decoration: none;
|
|
51
|
-
}
|
|
52
23
|
}
|
|
53
24
|
}
|
|
54
25
|
|
|
55
26
|
.euiButtonIcon--xSmall {
|
|
56
27
|
height: $euiButtonHeightXSmall;
|
|
57
28
|
width: $euiButtonHeightXSmall;
|
|
29
|
+
border-radius: $euiBorderRadius * (2 / 3);
|
|
58
30
|
}
|
|
59
31
|
|
|
60
32
|
.euiButtonIcon--small {
|
|
61
33
|
height: $euiButtonHeightSmall;
|
|
62
34
|
width: $euiButtonHeightSmall;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
// Create button modifiers based upon the map.
|
|
66
|
-
@each $name, $color in $euiButtonTypes {
|
|
67
|
-
.euiButtonIcon--#{$name} {
|
|
68
|
-
@if ($name == 'ghost') {
|
|
69
|
-
// Ghost is unique and ALWAYS sits against a dark background.
|
|
70
|
-
color: $color;
|
|
71
|
-
} @else if ($name == 'text') {
|
|
72
|
-
// The default color is lighter than the normal text color, make the it the text color
|
|
73
|
-
color: $euiTextColor;
|
|
74
|
-
} @else {
|
|
75
|
-
// Other colors need to check their contrast against the page background color.
|
|
76
|
-
color: makeHighContrastColor($color, $euiPageBackgroundColor);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
border-color: $color;
|
|
80
|
-
|
|
81
|
-
&.euiButtonIcon--fill {
|
|
82
|
-
background-color: $color;
|
|
83
|
-
border-color: $color;
|
|
84
|
-
|
|
85
|
-
// The function makes that hexes safe for theming
|
|
86
|
-
$fillTextColor: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
|
|
87
|
-
|
|
88
|
-
color: $fillTextColor;
|
|
89
|
-
|
|
90
|
-
&:not([class*='isDisabled']) {
|
|
91
|
-
&:hover,
|
|
92
|
-
&:focus,
|
|
93
|
-
&:focus-within {
|
|
94
|
-
background-color: darken($color, 5%);
|
|
95
|
-
border-color: darken($color, 5%);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:not([class*='isDisabled']) {
|
|
101
|
-
$shadowColor: $euiShadowColor;
|
|
102
|
-
@if ($name == 'ghost') {
|
|
103
|
-
$shadowColor: $euiColorInk;
|
|
104
|
-
} @else if (lightness($euiTextColor) < 50) {
|
|
105
|
-
// Only if this is the light theme do we use the button variant color to colorize the shadow
|
|
106
|
-
$shadowColor: desaturate($color, 60%);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@include euiSlightShadow($shadowColor);
|
|
110
|
-
|
|
111
|
-
&:hover,
|
|
112
|
-
&:focus,
|
|
113
|
-
&:focus-within {
|
|
114
|
-
@include euiSlightShadowHover($shadowColor);
|
|
115
|
-
background-color: transparentize($color, .9);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Fix ghost/disabled look specifically
|
|
122
|
-
.euiButtonIcon.euiButtonIcon-isDisabled.euiButtonIcon--ghost {
|
|
123
|
-
&,
|
|
124
|
-
&:hover,
|
|
125
|
-
&:focus,
|
|
126
|
-
&:focus-within {
|
|
127
|
-
@include euiSlightShadow;
|
|
128
|
-
color: $euiButtonColorGhostDisabled;
|
|
129
|
-
border-color: $euiButtonColorGhostDisabled;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&.euiButton--fill {
|
|
133
|
-
background-color: $euiButtonColorGhostDisabled;
|
|
134
|
-
color: makeHighContrastColor($euiButtonColorGhostDisabled, $euiButtonColorGhostDisabled, 2);
|
|
135
|
-
}
|
|
35
|
+
border-radius: $euiBorderRadius * (2 / 3);
|
|
136
36
|
}
|
|
@@ -173,16 +173,12 @@
|
|
|
173
173
|
color: $euiColorGhost;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
.euiControlBar__button.euiButton
|
|
177
|
-
box-shadow: none;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.euiControlBar__button.euiButton--#{$colorName}:enabled:not(.euiButton--fill) {
|
|
176
|
+
.euiControlBar__button.euiButton[class*='#{$colorName}']:enabled:not(.euiButton--fill) {
|
|
181
177
|
color: makeHighContrastColor($colorValue, $euiControlBarBackground);
|
|
182
178
|
border-color: makeHighContrastColor($colorValue, $euiControlBarBackground);
|
|
183
179
|
}
|
|
184
180
|
|
|
185
|
-
.euiButtonIcon
|
|
181
|
+
.euiButtonIcon[class*='#{$colorName}'] {
|
|
186
182
|
color: makeHighContrastColor($colorValue, $euiControlBarBackground);
|
|
187
183
|
}
|
|
188
184
|
}
|
|
@@ -9,12 +9,15 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.euiFlyout__closeButton {
|
|
12
|
-
background-color: transparentize($euiColorEmptyShade, .1);
|
|
13
12
|
position: absolute;
|
|
14
13
|
right: $euiSizeS;
|
|
15
14
|
top: $euiSizeS;
|
|
16
15
|
z-index: 3;
|
|
17
16
|
|
|
17
|
+
&:not(.euiFlyout__closeButton--outside) {
|
|
18
|
+
background-color: transparentize($euiColorEmptyShade, .1);
|
|
19
|
+
}
|
|
20
|
+
|
|
18
21
|
&--outside {
|
|
19
22
|
// match dropshadow
|
|
20
23
|
@include euiBottomShadowLarge;
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
// Adds the focus (and hover) animation for translating up 1px
|
|
16
16
|
@mixin euiButtonFocus {
|
|
17
17
|
@include euiCanAnimate {
|
|
18
|
-
transition: transform $euiAnimSpeedNormal ease-in-out, background $euiAnimSpeedNormal ease-in-out;
|
|
18
|
+
transition: transform $euiAnimSpeedNormal ease-in-out, background-color $euiAnimSpeedNormal ease-in-out;
|
|
19
19
|
|
|
20
|
-
&:hover:not(
|
|
20
|
+
&:hover:not(:disabled) {
|
|
21
21
|
transform: translateY(-1px);
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
animation: euiButtonActive $euiAnimSpeedNormal $euiAnimSlightBounce;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
&:active:not(
|
|
28
|
+
&:active:not(:disabled) {
|
|
29
29
|
transform: translateY(1px);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -37,15 +37,13 @@
|
|
|
37
37
|
@include euiButtonBase;
|
|
38
38
|
@include euiFont;
|
|
39
39
|
@include euiFontSize;
|
|
40
|
+
@include euiButtonFocus;
|
|
40
41
|
|
|
42
|
+
font-weight: $euiButtonFontWeight;
|
|
41
43
|
text-decoration: none;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
// sass-lint:disable mixins-before-declarations
|
|
45
|
-
// focus states should come after all default styles
|
|
46
|
-
@include euiButtonFocus;
|
|
44
|
+
outline-offset: -1px;
|
|
47
45
|
|
|
48
|
-
&:hover:not(
|
|
46
|
+
&:hover:not(:disabled),
|
|
49
47
|
&:focus {
|
|
50
48
|
text-decoration: underline;
|
|
51
49
|
}
|
|
@@ -92,8 +90,10 @@
|
|
|
92
90
|
pointer-events: auto;
|
|
93
91
|
cursor: not-allowed;
|
|
94
92
|
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
&:hover,
|
|
94
|
+
&:focus,
|
|
95
|
+
&:focus-within {
|
|
96
|
+
text-decoration: none;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
.euiButtonContent__spinner {
|
|
@@ -101,5 +101,49 @@
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/*
|
|
105
|
+
* Creates the Amsterdam style of button with a transparent background
|
|
106
|
+
*/
|
|
107
|
+
@mixin euiButtonDefaultStyle($color: 'primary', $includeStates: true, $transparency: $euiButtonDefaultTransparency) {
|
|
108
|
+
$backgroundColor: $color;
|
|
109
|
+
|
|
110
|
+
@if (map-has-key($euiButtonTypes, $color)) {
|
|
111
|
+
$backgroundColor: map-get($euiButtonTypes, $color);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
$percentConversion: $transparency * 100%;
|
|
115
|
+
// This variable simulates the possibly darkest background the button could be on
|
|
116
|
+
// Simulates the 20% opaque color on top of the page background color
|
|
117
|
+
$backgroundColorSimulated: mix($euiPageBackgroundColor, $backgroundColor, $percentConversion);
|
|
118
|
+
// Then we can calculate the darkest text color needed
|
|
119
|
+
color: makeHighContrastColor($backgroundColor, $backgroundColorSimulated);
|
|
120
|
+
// But still use transparency
|
|
121
|
+
background-color: transparentize($backgroundColor, $transparency);
|
|
122
|
+
|
|
123
|
+
@if ($includeStates) {
|
|
124
|
+
&:not([class*='isDisabled']) {
|
|
125
|
+
&:hover,
|
|
126
|
+
&:focus {
|
|
127
|
+
// Duplicated from inert state simply to override default theme
|
|
128
|
+
background-color: transparentize($backgroundColor, $transparency);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/*
|
|
135
|
+
* Creates the Amsterdam style of fill button
|
|
136
|
+
*/
|
|
137
|
+
@mixin euiButtonFillStyle($color: 'primary') {
|
|
138
|
+
$backgroundColor: $color;
|
|
139
|
+
|
|
140
|
+
@if (map-has-key($euiButtonTypes, $color)) {
|
|
141
|
+
$backgroundColor: map-get($euiButtonTypes, $color);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
background-color: $backgroundColor;
|
|
145
|
+
color: chooseLightOrDarkText($backgroundColor);
|
|
146
|
+
}
|
|
147
|
+
|
|
104
148
|
// Keyframe animation declarations can be found in
|
|
105
149
|
// utility/animations.scss
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
@import 'states';
|
|
9
9
|
@import '../../../../global_styling/mixins/icons';
|
|
10
10
|
|
|
11
|
-
@import '../../../../global_styling/mixins/beta_badge';
|
|
12
11
|
@import '../../../../global_styling/mixins/button';
|
|
13
|
-
@import 'button';
|
|
14
12
|
@import '../../../../global_styling/mixins/form';
|
|
15
13
|
@import 'form';
|
|
16
14
|
@import '../../../../global_styling/mixins/header';
|
|
@@ -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
|
|
@@ -160,70 +160,20 @@ EuiSkipLink.propTypes = {
|
|
|
160
160
|
fill: _propTypes.default.bool,
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
|
-
* Any of
|
|
163
|
+
* Any of the named color palette options.
|
|
164
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
164
165
|
*/
|
|
165
|
-
color: _propTypes.default.
|
|
166
|
+
color: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]),
|
|
166
167
|
|
|
167
168
|
/**
|
|
168
169
|
* Use size `s` in confined spaces
|
|
169
170
|
*/
|
|
170
|
-
size: _propTypes.default.
|
|
171
|
+
size: _propTypes.default.any,
|
|
171
172
|
|
|
172
173
|
/**
|
|
173
174
|
* `disabled` is also allowed
|
|
174
175
|
*/
|
|
175
176
|
isDisabled: _propTypes.default.bool,
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
179
|
-
* *Only use when the readable text does not change between states.*
|
|
180
|
-
*/
|
|
181
|
-
isSelected: _propTypes.default.bool,
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Extends the button to 100% width
|
|
185
|
-
*/
|
|
186
|
-
fullWidth: _propTypes.default.bool,
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Override the default minimum width
|
|
190
|
-
*/
|
|
191
|
-
minWidth: _propTypes.default.any,
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Force disables the button and changes the icon to a loading spinner
|
|
195
|
-
*/
|
|
196
|
-
isLoading: _propTypes.default.bool,
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Object of props passed to the <span/> wrapping the button's content
|
|
200
|
-
*/
|
|
201
|
-
contentProps: _propTypes.default.any,
|
|
202
|
-
style: _propTypes.default.any,
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Any `type` accepted by EuiIcon
|
|
206
|
-
*/
|
|
207
|
-
iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Can only be one side `left` or `right`
|
|
211
|
-
*/
|
|
212
|
-
iconSide: _propTypes.default.oneOf(["left", "right"]),
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
216
|
-
* It doesn't apply to the icon.
|
|
217
|
-
*/
|
|
218
|
-
textProps: _propTypes.default.shape({
|
|
219
|
-
className: _propTypes.default.string,
|
|
220
|
-
"aria-label": _propTypes.default.string,
|
|
221
|
-
"data-test-subj": _propTypes.default.string,
|
|
222
|
-
css: _propTypes.default.any,
|
|
223
|
-
ref: _propTypes.default.any,
|
|
224
|
-
"data-text": _propTypes.default.string
|
|
225
|
-
}),
|
|
226
|
-
iconSize: _propTypes.default.oneOf(["s", "m"]),
|
|
227
177
|
className: _propTypes.default.string,
|
|
228
178
|
"aria-label": _propTypes.default.string,
|
|
229
179
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -49,6 +49,8 @@ var _button = require("../button");
|
|
|
49
49
|
|
|
50
50
|
var _accordion = require("./accordion.styles");
|
|
51
51
|
|
|
52
|
+
var _global_styling = require("../../global_styling");
|
|
53
|
+
|
|
52
54
|
var _react2 = require("@emotion/react");
|
|
53
55
|
|
|
54
56
|
var _excluded = ["children", "buttonContent", "className", "id", "element", "buttonClassName", "buttonContentClassName", "extraAction", "paddingSize", "initialIsOpen", "arrowDisplay", "forceState", "isLoading", "isLoadingMessage", "isDisabled", "buttonProps", "buttonElement", "arrowProps", "theme"];
|
|
@@ -96,7 +98,7 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
96
98
|
var forceState = _this.props.forceState;
|
|
97
99
|
requestAnimationFrame(function () {
|
|
98
100
|
var height = _this.childContent && (forceState ? forceState === 'open' : _this.state.isOpen) ? _this.childContent.clientHeight : 0;
|
|
99
|
-
_this.childWrapper && _this.childWrapper.setAttribute('style',
|
|
101
|
+
_this.childWrapper && _this.childWrapper.setAttribute('style', (0, _global_styling.logicalCSS)('height', "".concat(height, "px")));
|
|
100
102
|
});
|
|
101
103
|
});
|
|
102
104
|
(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
|
|
|
@@ -31,7 +31,7 @@ var _icon = require("../../icon");
|
|
|
31
31
|
|
|
32
32
|
var _react2 = require("@emotion/react");
|
|
33
33
|
|
|
34
|
-
var _excluded = ["className", "label", "color", "tooltipContent", "tooltipPosition", "title", "iconType", "onClick", "onClickAriaLabel", "href", "rel", "target", "size"];
|
|
34
|
+
var _excluded = ["className", "label", "color", "tooltipContent", "tooltipPosition", "anchorProps", "title", "iconType", "onClick", "onClickAriaLabel", "href", "rel", "target", "size"];
|
|
35
35
|
|
|
36
36
|
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); }
|
|
37
37
|
|
|
@@ -60,6 +60,7 @@ var EuiBetaBadge = function EuiBetaBadge(_ref) {
|
|
|
60
60
|
tooltipContent = _ref.tooltipContent,
|
|
61
61
|
_ref$tooltipPosition = _ref.tooltipPosition,
|
|
62
62
|
tooltipPosition = _ref$tooltipPosition === void 0 ? 'top' : _ref$tooltipPosition,
|
|
63
|
+
anchorProps = _ref.anchorProps,
|
|
63
64
|
title = _ref.title,
|
|
64
65
|
iconType = _ref.iconType,
|
|
65
66
|
onClick = _ref.onClick,
|
|
@@ -124,7 +125,8 @@ var EuiBetaBadge = function EuiBetaBadge(_ref) {
|
|
|
124
125
|
return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
125
126
|
position: tooltipPosition,
|
|
126
127
|
content: tooltipContent,
|
|
127
|
-
title: title || label
|
|
128
|
+
title: title || label,
|
|
129
|
+
anchorProps: anchorProps
|
|
128
130
|
}, content);
|
|
129
131
|
} else {
|
|
130
132
|
return (0, _react2.jsx)(_react.Fragment, null, content);
|
|
@@ -134,7 +136,8 @@ var EuiBetaBadge = function EuiBetaBadge(_ref) {
|
|
|
134
136
|
return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
135
137
|
position: tooltipPosition,
|
|
136
138
|
content: tooltipContent,
|
|
137
|
-
title: title || label
|
|
139
|
+
title: title || label,
|
|
140
|
+
anchorProps: anchorProps
|
|
138
141
|
}, (0, _react2.jsx)("span", (0, _extends2.default)({
|
|
139
142
|
tabIndex: 0,
|
|
140
143
|
className: classes,
|
|
@@ -199,6 +202,16 @@ EuiBetaBadge.propTypes = {
|
|
|
199
202
|
*/
|
|
200
203
|
tooltipPosition: _propTypes.default.oneOf(["top", "right", "bottom", "left"]),
|
|
201
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Passes onto the span wrapping the badge
|
|
207
|
+
*/
|
|
208
|
+
anchorProps: _propTypes.default.shape({
|
|
209
|
+
className: _propTypes.default.string,
|
|
210
|
+
"aria-label": _propTypes.default.string,
|
|
211
|
+
"data-test-subj": _propTypes.default.string,
|
|
212
|
+
css: _propTypes.default.any
|
|
213
|
+
}),
|
|
214
|
+
|
|
202
215
|
/**
|
|
203
216
|
* Optional title will be supplied as tooltip title or title attribute
|
|
204
217
|
* otherwise the label will be used
|
|
@@ -1305,7 +1305,7 @@ EuiBasicTable.propTypes = {
|
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Defines the color of the button
|
|
1307
1307
|
*/
|
|
1308
|
-
color: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.
|
|
1308
|
+
color: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]).isRequired, _propTypes.default.func.isRequired]),
|
|
1309
1309
|
|
|
1310
1310
|
/**
|
|
1311
1311
|
* The display name of the action (will be the button caption)
|
|
@@ -238,7 +238,7 @@ CollapsedItemActions.propTypes = {
|
|
|
238
238
|
/**
|
|
239
239
|
* Defines the color of the button
|
|
240
240
|
*/
|
|
241
|
-
color: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.
|
|
241
|
+
color: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]).isRequired, _propTypes.default.func.isRequired]),
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* The display name of the action (will be the button caption)
|
|
@@ -744,7 +744,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
744
744
|
/**
|
|
745
745
|
* Defines the color of the button
|
|
746
746
|
*/
|
|
747
|
-
color: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.
|
|
747
|
+
color: _propTypes.default.oneOfType([_propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]).isRequired, _propTypes.default.func.isRequired]),
|
|
748
748
|
|
|
749
749
|
/**
|
|
750
750
|
* The display name of the action (will be the button caption)
|
|
@@ -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
|
|