@elastic/eui 64.0.1 → 65.0.2
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 +164 -1249
- 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 +136 -1221
- 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/react-datepicker/original.package.json +124 -0
- 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/icon/icon.js +2 -1
- 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/logicals.json +56 -0
- 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/react-datepicker/original.package.json +124 -0
- 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/icon/icon.js +2 -1
- 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/logicals.json +56 -0
- 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/date_picker/react-datepicker/original.package.json +124 -0
- 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/icon/icon.js +2 -1
- 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/logicals.json +56 -0
- 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/date_picker/react-datepicker/original.package.json +124 -0
- 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/icon/icon.js +2 -1
- 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/logicals.json +56 -0
- 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/datagrid/_data_grid_data_row.scss +7 -0
- 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/react-datepicker/original.package.json +124 -0
- 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 +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/logicals.json +56 -0
- 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
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// This file has lots of modifiers and is somewhat nesty by nature
|
|
2
|
+
// sass-lint:disable nesting-depth
|
|
3
|
+
|
|
1
4
|
.euiButtonGroupButton {
|
|
2
5
|
@include euiButtonBase;
|
|
3
6
|
@include euiFont;
|
|
@@ -5,7 +8,6 @@
|
|
|
5
8
|
|
|
6
9
|
// sass-lint:disable-block indentation
|
|
7
10
|
transition: background-color $euiAnimSpeedNormal ease-in-out,
|
|
8
|
-
border-color $euiAnimSpeedNormal ease-in-out,
|
|
9
11
|
color $euiAnimSpeedNormal ease-in-out;
|
|
10
12
|
|
|
11
13
|
// Allow button to shrink and truncate
|
|
@@ -21,81 +23,26 @@
|
|
|
21
23
|
padding: 0 $euiSizeS;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
.euiButton__text {
|
|
25
|
-
text-overflow: ellipsis;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
26
|
&.euiButtonGroupButton--small {
|
|
30
27
|
height: $euiButtonHeightSmall;
|
|
31
28
|
line-height: $euiButtonHeightSmall; // prevents descenders from getting cut off
|
|
32
29
|
}
|
|
33
30
|
|
|
34
|
-
&:not(
|
|
31
|
+
&:not(:disabled) {
|
|
35
32
|
&:hover,
|
|
36
33
|
&:focus,
|
|
37
34
|
&:focus-within {
|
|
38
|
-
background-color: transparentize($euiColorPrimary, .9);
|
|
39
35
|
text-decoration: underline;
|
|
40
36
|
}
|
|
41
37
|
}
|
|
42
38
|
|
|
43
|
-
|
|
39
|
+
&:disabled {
|
|
44
40
|
@include euiButtonContentDisabled;
|
|
45
|
-
color: $euiButtonColorDisabledText;
|
|
46
41
|
|
|
47
42
|
&.euiButtonGroupButton-isSelected {
|
|
48
|
-
color:
|
|
43
|
+
color: makeDisabledContrastColor($euiButtonColorDisabled, $euiButtonColorDisabled);
|
|
49
44
|
background-color: $euiButtonColorDisabled;
|
|
50
45
|
border-color: $euiButtonColorDisabled;
|
|
51
|
-
|
|
52
|
-
&:hover,
|
|
53
|
-
&:focus,
|
|
54
|
-
&:focus-within {
|
|
55
|
-
background-color: $euiButtonColorDisabled;
|
|
56
|
-
border-color: $euiButtonColorDisabled;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@each $name, $color in $euiButtonTypes {
|
|
62
|
-
&.euiButtonGroupButton--#{$name}:not([class*='isDisabled']) {
|
|
63
|
-
@if ($name == 'ghost') {
|
|
64
|
-
// Ghost is unique and ALWAYS sits against a dark background.
|
|
65
|
-
// Compressed styles don't support ghost color, it defaults to the text color
|
|
66
|
-
color: $color;
|
|
67
|
-
} @else if ($name == 'text') {
|
|
68
|
-
// The default color is lighter than the normal text color, make the it the text color
|
|
69
|
-
color: $euiTextColor;
|
|
70
|
-
} @else {
|
|
71
|
-
// Other colors need to check their contrast against the page background color.
|
|
72
|
-
color: makeHighContrastColor($color, $euiPageBackgroundColor);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&.euiButtonGroupButton-isSelected {
|
|
76
|
-
background-color: $color;
|
|
77
|
-
border-color: $color;
|
|
78
|
-
|
|
79
|
-
// The function makes that hexes safe for theming
|
|
80
|
-
$fillTextColor: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
|
|
81
|
-
|
|
82
|
-
color: $fillTextColor;
|
|
83
|
-
|
|
84
|
-
&:hover,
|
|
85
|
-
&:focus,
|
|
86
|
-
&:focus-within {
|
|
87
|
-
$darkHighlightBg: darken($color, 5%);
|
|
88
|
-
|
|
89
|
-
background-color: $darkHighlightBg;
|
|
90
|
-
border-color: $darkHighlightBg;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&:hover,
|
|
95
|
-
&:focus,
|
|
96
|
-
&:focus-within {
|
|
97
|
-
background-color: transparentize($color, .9);
|
|
98
|
-
}
|
|
99
46
|
}
|
|
100
47
|
}
|
|
101
48
|
}
|
|
@@ -111,37 +58,34 @@
|
|
|
111
58
|
.euiButtonGroup--medium,
|
|
112
59
|
.euiButtonGroup--small {
|
|
113
60
|
.euiButtonGroupButton {
|
|
114
|
-
border:
|
|
61
|
+
border-radius: 0 !important; // sass-lint:disable-line no-important
|
|
62
|
+
font-weight: $euiButtonFontWeight;
|
|
115
63
|
|
|
116
|
-
&:
|
|
117
|
-
|
|
118
|
-
|
|
64
|
+
&:focus,
|
|
65
|
+
&:focus-within {
|
|
66
|
+
outline-style: solid;
|
|
67
|
+
outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
|
|
68
|
+
outline-offset: -2px;
|
|
119
69
|
|
|
120
|
-
|
|
121
|
-
|
|
70
|
+
&:focus-visible {
|
|
71
|
+
outline-style: auto; // For chrome only
|
|
72
|
+
}
|
|
122
73
|
}
|
|
123
74
|
|
|
124
|
-
&:
|
|
125
|
-
|
|
75
|
+
&:focus:not(:focus-visible) {
|
|
76
|
+
outline: none;
|
|
126
77
|
}
|
|
127
|
-
}
|
|
128
78
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
&,
|
|
132
|
-
&:hover,
|
|
133
|
-
&:focus,
|
|
134
|
-
&:focus-within {
|
|
135
|
-
color: $euiButtonColorGhostDisabled;
|
|
79
|
+
&:not(:first-child):not(.euiButtonGroupButton-isSelected):not(:disabled) {
|
|
80
|
+
box-shadow: -1px 0 0 0 transparentize($euiShadowColor, .95);
|
|
136
81
|
}
|
|
137
82
|
|
|
138
|
-
|
|
139
|
-
border-
|
|
83
|
+
&:first-child {
|
|
84
|
+
border-radius: $euiBorderRadius 0 0 $euiBorderRadius;
|
|
140
85
|
}
|
|
141
86
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
color: makeHighContrastColor($euiButtonColorGhostDisabled, $euiButtonColorGhostDisabled, 2);
|
|
87
|
+
&:last-child {
|
|
88
|
+
border-radius: 0 $euiBorderRadius $euiBorderRadius 0;
|
|
145
89
|
}
|
|
146
90
|
}
|
|
147
91
|
|
|
@@ -149,11 +93,18 @@
|
|
|
149
93
|
z-index: 0;
|
|
150
94
|
}
|
|
151
95
|
|
|
96
|
+
// Faux border for separation of selected buttons
|
|
152
97
|
.euiButtonGroupButton-isSelected + .euiButtonGroupButton-isSelected {
|
|
153
98
|
box-shadow: -1px 0 0 transparentize($euiColorEmptyShade, .9);
|
|
154
99
|
}
|
|
155
100
|
}
|
|
156
101
|
|
|
102
|
+
.euiButtonGroup--small .euiButtonGroup__buttons {
|
|
103
|
+
// Use a moderately smaller radius on small buttons
|
|
104
|
+
// so that they don't appear completely rounded
|
|
105
|
+
border-radius: $euiBorderRadius * (2 / 3);
|
|
106
|
+
}
|
|
107
|
+
|
|
157
108
|
/**
|
|
158
109
|
* Compressed (form style)
|
|
159
110
|
*/
|
|
@@ -163,7 +114,8 @@
|
|
|
163
114
|
height: $euiFormControlCompressedHeight - 2px;
|
|
164
115
|
line-height: $euiFormControlCompressedHeight - 2px; // prevents descenders from getting cut off
|
|
165
116
|
font-size: $euiFontSizeS;
|
|
166
|
-
border
|
|
117
|
+
// Add 1 to the border radius to account for the background-clip
|
|
118
|
+
border-radius: $euiFormControlCompressedBorderRadius + 1;
|
|
167
119
|
// Offset the background color from the border by 2px
|
|
168
120
|
// by clipping background to before the padding starts
|
|
169
121
|
padding: 2px;
|
|
@@ -178,10 +130,30 @@
|
|
|
178
130
|
font-weight: $euiFontWeightSemiBold;
|
|
179
131
|
}
|
|
180
132
|
|
|
181
|
-
&:not(
|
|
133
|
+
&:not(:disabled) {
|
|
182
134
|
&:focus,
|
|
183
135
|
&:focus-within {
|
|
184
|
-
outline:
|
|
136
|
+
outline: $euiFocusRingSize solid currentColor;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@each $name, $color in $euiButtonTypes {
|
|
141
|
+
&[class*='-fill-#{$name}'] {
|
|
142
|
+
// Complicated set of focus states depending on whether it's a button and can receive :focus,
|
|
143
|
+
// or an input and uses focus-within, and browser support for :focus-visible,
|
|
144
|
+
// and override nature of default theme
|
|
145
|
+
&:not(:disabled):focus,
|
|
146
|
+
&:not(:disabled):focus-within {
|
|
147
|
+
outline-color: $color;
|
|
148
|
+
|
|
149
|
+
&:focus-visible {
|
|
150
|
+
outline-style: auto; // For chrome only
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:not(:disabled):focus:not(:focus-visible) {
|
|
155
|
+
outline: none;
|
|
156
|
+
}
|
|
185
157
|
}
|
|
186
158
|
}
|
|
187
159
|
}
|
|
@@ -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
|
}
|
|
@@ -104,6 +104,13 @@
|
|
|
104
104
|
max-width: 400px !important;
|
|
105
105
|
max-height: 400px !important;
|
|
106
106
|
z-index: $euiZDataGridCellPopover !important;
|
|
107
|
+
// Workaround for a Safari CSS bug when using both `overflow: auto` & `filter: drop-shadow`
|
|
108
|
+
// (see https://github.com/elastic/eui/issues/6151)
|
|
109
|
+
// Disables the default EuiPopover filter drop-shadow and uses box-shadow instead,
|
|
110
|
+
// since we don't use the popover arrow in any case for cell popovers
|
|
111
|
+
filter: none;
|
|
112
|
+
// sass-lint:disable-block mixins-before-declarations
|
|
113
|
+
@include euiBottomShadow; // TODO: Convert to euiShadowMedium() in Emotion
|
|
107
114
|
}
|
|
108
115
|
|
|
109
116
|
.euiDataGridRowCell__expandFlex {
|
|
@@ -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,
|