@elastic/eui 64.0.0 → 65.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +217 -1614
- package/dist/eui_theme_dark.json +0 -32
- package/dist/eui_theme_dark.json.d.ts +0 -32
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +244 -1641
- package/dist/eui_theme_light.json +0 -32
- package/dist/eui_theme_light.json.d.ts +0 -32
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/es/components/accessibility/skip_link/skip_link.js +4 -54
- package/es/components/accordion/accordion.js +2 -1
- package/es/components/accordion/accordion.styles.js +17 -27
- package/es/components/badge/beta_badge/beta_badge.js +16 -3
- package/es/components/basic_table/basic_table.js +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +2 -3
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/beacon/beacon.styles.js +2 -2
- package/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/es/components/button/button.js +112 -215
- package/es/components/button/button_display/_button_display.js +90 -40
- package/es/components/button/button_display/_button_display.styles.js +7 -16
- package/es/components/button/button_display/_button_display_content.js +6 -3
- package/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/es/components/button/button_empty/button_empty.js +63 -53
- package/es/components/button/button_empty/index.js +1 -1
- package/es/components/button/button_group/button_group.js +4 -12
- package/es/components/button/button_group/button_group_button.js +14 -4
- package/es/components/button/button_icon/button_icon.js +61 -42
- package/es/components/call_out/call_out.styles.js +2 -1
- package/es/components/card/card.js +173 -89
- package/es/components/card/card.styles.js +136 -0
- package/es/components/card/card_select/card_select.js +133 -0
- package/es/components/card/card_select/card_select.styles.js +25 -0
- package/es/components/card/card_select/index.js +8 -0
- package/es/components/card/checkable_card/checkable_card.js +14 -9
- package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/es/components/comment_list/comment_event.styles.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +7 -6
- package/es/components/datagrid/body/data_grid_cell.js +13 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/es/components/datagrid/data_grid.js +7 -6
- package/es/components/datagrid/utils/in_memory.js +7 -6
- package/es/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/es/components/description_list/description_list_title.js +1 -1
- package/es/components/expression/expression.styles.js +13 -31
- package/es/components/facet/facet_button.js +5 -4
- package/es/components/header/header_links/header_link.js +5 -3
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/image/image_wrapper.styles.js +3 -3
- package/es/components/link/link.styles.js +7 -6
- package/es/components/list_group/list_group.js +2 -1
- package/es/components/list_group/list_group_item.js +2 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/es/components/loading/loading_chart.styles.js +16 -26
- package/es/components/loading/loading_content.styles.js +2 -2
- package/es/components/loading/loading_logo.styles.js +4 -4
- package/es/components/loading/loading_spinner.styles.js +6 -6
- package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/es/components/modal/confirm_modal.js +1 -1
- package/es/components/notification/notification_event.js +5 -3
- package/es/components/notification/notification_event_read_button.js +2 -1
- package/es/components/page/page_template.js +2 -2
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/es/components/pagination/pagination_button.js +5 -3
- package/es/components/panel/panel.js +1 -1
- package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/es/components/progress/progress.styles.js +2 -2
- package/es/components/text/text.styles.js +1 -1
- package/es/components/title/title.styles.js +2 -2
- package/es/components/toast/global_toast_list.styles.js +2 -2
- package/es/components/toast/toast.styles.js +4 -4
- package/es/components/tool_tip/icon_tip.js +11 -1
- package/es/components/tool_tip/tool_tip.js +18 -6
- package/es/global_styling/functions/logicals.js +16 -72
- package/es/global_styling/functions/typography.js +2 -1
- package/es/global_styling/mixins/_color.js +1 -1
- package/es/global_styling/mixins/_helpers.js +18 -5
- package/es/global_styling/mixins/_states.js +3 -4
- package/es/global_styling/mixins/_typography.js +3 -1
- package/es/global_styling/reset/global_styles.js +2 -1
- package/es/global_styling/utility/utility.js +10 -2
- package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
- package/eui.d.ts +1156 -1013
- package/i18ntokens.json +19 -19
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/lib/components/accessibility/skip_link/skip_link.js +4 -54
- package/lib/components/accordion/accordion.js +3 -1
- package/lib/components/accordion/accordion.styles.js +17 -26
- package/lib/components/badge/beta_badge/beta_badge.js +16 -3
- package/lib/components/basic_table/basic_table.js +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +2 -3
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/beacon/beacon.styles.js +1 -1
- package/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/lib/components/button/button.js +124 -229
- package/lib/components/button/button_display/_button_display.js +94 -33
- package/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/lib/components/button/button_display/_button_display_content.js +7 -3
- package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/lib/components/button/button_empty/button_empty.js +64 -54
- package/lib/components/button/button_empty/index.js +0 -6
- package/lib/components/button/button_group/button_group.js +4 -12
- package/lib/components/button/button_group/button_group_button.js +15 -4
- package/lib/components/button/button_icon/button_icon.js +61 -43
- package/lib/components/call_out/call_out.styles.js +2 -1
- package/lib/components/card/card.js +174 -88
- package/lib/components/card/card.styles.js +146 -0
- package/lib/components/card/card_select/card_select.js +144 -0
- package/lib/components/card/card_select/card_select.styles.js +27 -0
- package/lib/components/card/card_select/index.js +19 -0
- package/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/lib/components/comment_list/comment_event.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +7 -6
- package/lib/components/datagrid/body/data_grid_cell.js +13 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/lib/components/datagrid/data_grid.js +7 -6
- package/lib/components/datagrid/utils/in_memory.js +7 -6
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/lib/components/description_list/description_list_title.js +1 -1
- package/lib/components/expression/expression.styles.js +12 -30
- package/lib/components/facet/facet_button.js +4 -3
- package/lib/components/header/header_links/header_link.js +5 -3
- package/lib/components/image/image_button.styles.js +1 -1
- package/lib/components/image/image_wrapper.styles.js +2 -2
- package/lib/components/link/link.styles.js +6 -5
- package/lib/components/list_group/list_group.js +2 -1
- package/lib/components/list_group/list_group_item.js +2 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/lib/components/loading/loading_chart.styles.js +16 -25
- package/lib/components/loading/loading_content.styles.js +1 -1
- package/lib/components/loading/loading_logo.styles.js +4 -4
- package/lib/components/loading/loading_spinner.styles.js +5 -5
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/lib/components/modal/confirm_modal.js +1 -1
- package/lib/components/notification/notification_event.js +5 -3
- package/lib/components/notification/notification_event_read_button.js +2 -1
- package/lib/components/page/page_template.js +1 -1
- package/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/lib/components/panel/panel.js +1 -1
- package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
- package/lib/components/progress/progress.styles.js +2 -2
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/title/title.styles.js +1 -1
- package/lib/components/toast/global_toast_list.styles.js +1 -1
- package/lib/components/toast/toast.styles.js +4 -4
- package/lib/components/tool_tip/icon_tip.js +11 -1
- package/lib/components/tool_tip/tool_tip.js +18 -6
- package/lib/global_styling/functions/logicals.js +22 -74
- package/lib/global_styling/functions/typography.js +3 -1
- package/lib/global_styling/mixins/_color.js +1 -1
- package/lib/global_styling/mixins/_helpers.js +24 -6
- package/lib/global_styling/mixins/_states.js +3 -4
- package/lib/global_styling/mixins/_typography.js +4 -1
- package/lib/global_styling/reset/global_styles.js +3 -1
- package/lib/global_styling/utility/utility.js +16 -3
- package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/optimize/es/components/accordion/accordion.js +2 -1
- package/optimize/es/components/accordion/accordion.styles.js +17 -27
- package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/es/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/es/components/beacon/beacon.styles.js +2 -2
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/es/components/button/button.js +88 -100
- package/optimize/es/components/button/button_display/_button_display.js +67 -32
- package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/es/components/button/button_empty/button_empty.js +55 -47
- package/optimize/es/components/button/button_empty/index.js +1 -1
- package/optimize/es/components/button/button_group/button_group.js +2 -10
- package/optimize/es/components/button/button_group/button_group_button.js +13 -3
- package/optimize/es/components/button/button_icon/button_icon.js +54 -41
- package/optimize/es/components/call_out/call_out.styles.js +2 -1
- package/optimize/es/components/card/card.js +97 -31
- package/optimize/es/components/card/card.styles.js +136 -0
- package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
- package/optimize/es/components/card/card_select/index.js +8 -0
- package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
- package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/es/components/description_list/description_list_title.js +1 -1
- package/optimize/es/components/expression/expression.styles.js +13 -31
- package/optimize/es/components/facet/facet_button.js +5 -3
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/image/image_wrapper.styles.js +3 -3
- package/optimize/es/components/link/link.styles.js +7 -6
- package/optimize/es/components/loading/loading_chart.styles.js +16 -26
- package/optimize/es/components/loading/loading_content.styles.js +2 -2
- package/optimize/es/components/loading/loading_logo.styles.js +4 -4
- package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/es/components/page/page_template.js +2 -2
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/optimize/es/components/panel/panel.js +1 -1
- package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/optimize/es/components/progress/progress.styles.js +2 -2
- package/optimize/es/components/text/text.styles.js +1 -1
- package/optimize/es/components/title/title.styles.js +2 -2
- package/optimize/es/components/toast/global_toast_list.styles.js +2 -2
- package/optimize/es/components/toast/toast.styles.js +4 -4
- package/optimize/es/components/tool_tip/tool_tip.js +7 -5
- package/optimize/es/global_styling/functions/logicals.js +16 -72
- package/optimize/es/global_styling/functions/typography.js +2 -1
- package/optimize/es/global_styling/mixins/_color.js +1 -1
- package/optimize/es/global_styling/mixins/_helpers.js +18 -5
- package/optimize/es/global_styling/mixins/_states.js +3 -4
- package/optimize/es/global_styling/mixins/_typography.js +3 -1
- package/optimize/es/global_styling/reset/global_styles.js +2 -1
- package/optimize/es/global_styling/utility/utility.js +10 -2
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/optimize/lib/components/accordion/accordion.js +3 -1
- package/optimize/lib/components/accordion/accordion.styles.js +17 -26
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/lib/components/beacon/beacon.styles.js +1 -1
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/lib/components/button/button.js +92 -103
- package/optimize/lib/components/button/button_display/_button_display.js +71 -25
- package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
- package/optimize/lib/components/button/button_empty/index.js +0 -6
- package/optimize/lib/components/button/button_group/button_group.js +2 -10
- package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
- package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
- package/optimize/lib/components/call_out/call_out.styles.js +2 -1
- package/optimize/lib/components/card/card.js +97 -30
- package/optimize/lib/components/card/card.styles.js +146 -0
- package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
- package/optimize/lib/components/card/card_select/index.js +19 -0
- package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/lib/components/description_list/description_list_title.js +1 -1
- package/optimize/lib/components/expression/expression.styles.js +12 -30
- package/optimize/lib/components/facet/facet_button.js +4 -2
- package/optimize/lib/components/image/image_button.styles.js +1 -1
- package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
- package/optimize/lib/components/link/link.styles.js +6 -5
- package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
- package/optimize/lib/components/loading/loading_content.styles.js +1 -1
- package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
- package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/lib/components/page/page_template.js +1 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/optimize/lib/components/panel/panel.js +1 -1
- package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
- package/optimize/lib/components/progress/progress.styles.js +2 -2
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/title/title.styles.js +1 -1
- package/optimize/lib/components/toast/global_toast_list.styles.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +4 -4
- package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
- package/optimize/lib/global_styling/functions/logicals.js +28 -74
- package/optimize/lib/global_styling/functions/typography.js +3 -1
- package/optimize/lib/global_styling/mixins/_color.js +1 -1
- package/optimize/lib/global_styling/mixins/_helpers.js +24 -6
- package/optimize/lib/global_styling/mixins/_states.js +3 -4
- package/optimize/lib/global_styling/mixins/_typography.js +4 -1
- package/optimize/lib/global_styling/reset/global_styles.js +3 -1
- package/optimize/lib/global_styling/utility/utility.js +16 -3
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/package.json +2 -2
- package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
- package/src/components/button/_index.scss +0 -1
- package/src/components/button/button_empty/_button_empty.scss +4 -48
- package/src/components/button/button_group/_button_group.scss +0 -1
- package/src/components/button/button_group/_button_group_button.scss +55 -83
- package/src/components/button/button_icon/_button_icon.scss +3 -103
- package/src/components/control_bar/_control_bar.scss +2 -6
- package/src/components/flyout/_flyout.scss +4 -1
- package/src/components/index.scss +0 -1
- package/src/global_styling/mixins/_button.scss +55 -11
- package/src/global_styling/mixins/_helpers.scss +9 -0
- package/src/global_styling/mixins/_index.scss +0 -1
- package/src/global_styling/utility/_utility.scss +0 -127
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
- package/src/themes/amsterdam/overrides/_header.scss +0 -2
- package/src/themes/amsterdam/overrides/_index.scss +0 -4
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
- package/test-env/components/accordion/accordion.js +3 -1
- package/test-env/components/accordion/accordion.styles.js +17 -26
- package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +2 -3
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/beacon/beacon.styles.js +1 -1
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/test-env/components/button/button.js +111 -225
- package/test-env/components/button/button_display/_button_display.js +93 -32
- package/test-env/components/button/button_display/_button_display.styles.js +7 -16
- package/test-env/components/button/button_display/_button_display_content.js +7 -3
- package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
- package/test-env/components/button/button_empty/button_empty.js +64 -53
- package/test-env/components/button/button_empty/index.js +0 -6
- package/test-env/components/button/button_group/button_group.js +4 -12
- package/test-env/components/button/button_group/button_group_button.js +16 -4
- package/test-env/components/button/button_icon/button_icon.js +61 -42
- package/test-env/components/call_out/call_out.styles.js +2 -1
- package/test-env/components/card/card.js +172 -88
- package/test-env/components/card/card.styles.js +146 -0
- package/test-env/components/card/card_select/card_select.js +141 -0
- package/test-env/components/card/card_select/card_select.styles.js +27 -0
- package/test-env/components/card/card_select/index.js +19 -0
- package/test-env/components/card/checkable_card/checkable_card.js +16 -9
- package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/test-env/components/comment_list/comment_event.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +7 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/test-env/components/datagrid/data_grid.js +7 -6
- package/test-env/components/datagrid/utils/in_memory.js +7 -6
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/test-env/components/description_list/description_list_title.js +1 -1
- package/test-env/components/expression/expression.styles.js +12 -30
- package/test-env/components/facet/facet_button.js +4 -3
- package/test-env/components/header/header_links/header_link.js +5 -3
- package/test-env/components/image/image_button.styles.js +1 -1
- package/test-env/components/image/image_wrapper.styles.js +2 -2
- package/test-env/components/link/link.styles.js +6 -5
- package/test-env/components/list_group/list_group.js +2 -1
- package/test-env/components/list_group/list_group_item.js +2 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/test-env/components/loading/loading_chart.styles.js +16 -25
- package/test-env/components/loading/loading_content.styles.js +1 -1
- package/test-env/components/loading/loading_logo.styles.js +4 -4
- package/test-env/components/loading/loading_spinner.styles.js +5 -5
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/test-env/components/modal/confirm_modal.js +1 -1
- package/test-env/components/notification/notification_event.js +5 -3
- package/test-env/components/notification/notification_event_read_button.js +2 -1
- package/test-env/components/page/page_template.js +1 -1
- package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
- package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
- package/test-env/components/panel/panel.js +1 -1
- package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
- package/test-env/components/progress/progress.styles.js +2 -2
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/title/title.styles.js +1 -1
- package/test-env/components/toast/global_toast_list.styles.js +1 -1
- package/test-env/components/toast/toast.styles.js +4 -4
- package/test-env/components/tool_tip/icon_tip.js +11 -1
- package/test-env/components/tool_tip/tool_tip.js +18 -6
- package/test-env/global_styling/functions/logicals.js +28 -74
- package/test-env/global_styling/functions/typography.js +3 -1
- package/test-env/global_styling/mixins/_color.js +1 -1
- package/test-env/global_styling/mixins/_helpers.js +24 -6
- package/test-env/global_styling/mixins/_states.js +3 -4
- package/test-env/global_styling/mixins/_typography.js +4 -1
- package/test-env/global_styling/reset/global_styles.js +3 -1
- package/test-env/global_styling/utility/utility.js +16 -3
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/es/components/card/card_select.js +0 -176
- package/lib/components/card/card_select.js +0 -187
- package/src/components/button/_button.scss +0 -143
- package/src/components/button/button_icon/_variables.scss +0 -11
- package/src/components/card/_card.scss +0 -239
- package/src/components/card/_card_select.scss +0 -21
- package/src/components/card/_index.scss +0 -5
- package/src/components/card/_mixins.scss +0 -11
- package/src/components/card/_variables.scss +0 -25
- package/src/components/card/checkable_card/_checkable_card.scss +0 -29
- package/src/components/card/checkable_card/_index.scss +0 -1
- package/src/global_styling/mixins/_beta_badge.scss +0 -30
- package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
- package/src/themes/amsterdam/overrides/_button.scss +0 -119
- package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
- package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
- package/src/themes/amsterdam/overrides/_card.scss +0 -6
- package/test-env/components/card/card_select.js +0 -184
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
.euiButtonEmpty {
|
|
7
7
|
@include euiButton;
|
|
8
|
+
border-radius: $euiBorderRadius;
|
|
8
9
|
|
|
9
|
-
border-color: transparent;
|
|
10
|
-
background-color: transparent;
|
|
11
|
-
box-shadow: none;
|
|
12
10
|
// sass-lint:disable-block no-important
|
|
13
11
|
transform: none !important; /* 1 */
|
|
14
12
|
animation: none !important; /* 1 */
|
|
@@ -26,22 +24,18 @@
|
|
|
26
24
|
|
|
27
25
|
&.euiButtonEmpty--small {
|
|
28
26
|
height: $euiButtonHeightSmall;
|
|
27
|
+
border-radius: $euiBorderRadius * .667;
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
&.euiButtonEmpty--xSmall {
|
|
32
31
|
height: $euiButtonHeightXSmall;
|
|
33
|
-
|
|
32
|
+
border-radius: $euiBorderRadius * .667;
|
|
33
|
+
font-size: $euiFontSizeXS;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&:disabled {
|
|
37
37
|
@include euiButtonContentDisabled;
|
|
38
38
|
|
|
39
|
-
color: $euiButtonColorDisabledText;
|
|
40
|
-
|
|
41
|
-
&:focus {
|
|
42
|
-
background-color: transparent;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
39
|
&:hover,
|
|
46
40
|
&:focus {
|
|
47
41
|
text-decoration: none;
|
|
@@ -66,41 +60,3 @@
|
|
|
66
60
|
.euiButtonEmpty--flushRight {
|
|
67
61
|
margin-left: $euiSizeS;
|
|
68
62
|
}
|
|
69
|
-
|
|
70
|
-
// Modifier naming and colors.
|
|
71
|
-
$euiButtonEmptyTypes: (
|
|
72
|
-
primary: $euiColorPrimaryText,
|
|
73
|
-
danger: $euiColorDangerText,
|
|
74
|
-
disabled: $euiButtonColorDisabledText,
|
|
75
|
-
ghost: $euiColorGhost,
|
|
76
|
-
text: $euiTextColor,
|
|
77
|
-
success: $euiColorSuccessText,
|
|
78
|
-
warning: $euiColorWarningText,
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
// Create button modifiers based upon the map.
|
|
82
|
-
@each $name, $color in $euiButtonEmptyTypes {
|
|
83
|
-
.euiButtonEmpty--#{$name} {
|
|
84
|
-
@if ($name == 'ghost') {
|
|
85
|
-
// Ghost is unique and ALWAYS sits against a dark background.
|
|
86
|
-
color: $color;
|
|
87
|
-
} @else if ($name == 'text') {
|
|
88
|
-
// The default color is lighter than the normal text color, make the it the text color
|
|
89
|
-
color: $euiTextColor;
|
|
90
|
-
} @else {
|
|
91
|
-
// Other colors need to check their contrast against the page background color.
|
|
92
|
-
color: makeHighContrastColor($color, $euiColorEmptyShade);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:focus {
|
|
96
|
-
background-color: transparentize($color, .9);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:hover {
|
|
100
|
-
@if ($name == 'disabled') {
|
|
101
|
-
cursor: not-allowed;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
@@ -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
|
}
|
|
@@ -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
|
|
@@ -82,6 +82,15 @@
|
|
|
82
82
|
@include euiOverflowShadow('x');
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* For quickly applying a full-height element whether using flex or not
|
|
87
|
+
*/
|
|
88
|
+
@mixin euiFullHeight {
|
|
89
|
+
height: 100%;
|
|
90
|
+
flex: 1 1 auto;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
|
|
85
94
|
// Hiding elements offscreen to only be read by screen reader
|
|
86
95
|
// See https://github.com/elastic/eui/pull/5130 and https://github.com/elastic/eui/pull/5152 for more info
|
|
87
96
|
@mixin euiScreenReaderOnly {
|