@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,143 +0,0 @@
|
|
|
1
|
-
// This file has lots of modifiers and is somewhat nesty by nature
|
|
2
|
-
// sass-lint:disable nesting-depth
|
|
3
|
-
|
|
4
|
-
// Our base button
|
|
5
|
-
.euiButton {
|
|
6
|
-
@include euiButton;
|
|
7
|
-
@include euiSlightShadow;
|
|
8
|
-
|
|
9
|
-
border-radius: $euiBorderRadius;
|
|
10
|
-
min-width: $euiButtonMinWidth;
|
|
11
|
-
|
|
12
|
-
.euiButton__content {
|
|
13
|
-
padding: 0 ($euiSize - $euiSizeXS);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.euiButton__text {
|
|
17
|
-
text-overflow: ellipsis;
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&.euiButton--small {
|
|
22
|
-
height: $euiButtonHeightSmall;
|
|
23
|
-
line-height: $euiButtonHeightSmall; // prevents descenders from getting cut off
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover,
|
|
27
|
-
&:active {
|
|
28
|
-
@include euiSlightShadowHover;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:not([class*='isDisabled']) {
|
|
32
|
-
&:hover,
|
|
33
|
-
&:focus,
|
|
34
|
-
&:focus-within {
|
|
35
|
-
background-color: transparentize($euiColorPrimary, .9);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.euiButton-isDisabled {
|
|
40
|
-
@include euiButtonContentDisabled;
|
|
41
|
-
color: $euiButtonColorDisabledText;
|
|
42
|
-
border-color: $euiButtonColorDisabled;
|
|
43
|
-
|
|
44
|
-
&.euiButton--fill {
|
|
45
|
-
// Only increase the contrast of background color to text to 2.0 for disabled
|
|
46
|
-
color: makeHighContrastColor($euiButtonColorDisabled, $euiButtonColorDisabled, 2);
|
|
47
|
-
background-color: $euiButtonColorDisabled;
|
|
48
|
-
border-color: $euiButtonColorDisabled;
|
|
49
|
-
|
|
50
|
-
&:hover,
|
|
51
|
-
&:focus,
|
|
52
|
-
&:focus-within {
|
|
53
|
-
background-color: $euiButtonColorDisabled;
|
|
54
|
-
border-color: $euiButtonColorDisabled;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:hover,
|
|
59
|
-
&:focus,
|
|
60
|
-
&:focus-within {
|
|
61
|
-
@include euiSlightShadow;
|
|
62
|
-
text-decoration: none;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// Create button modifiers based upon the map.
|
|
68
|
-
@each $name, $color in $euiButtonTypes {
|
|
69
|
-
.euiButton--#{$name} {
|
|
70
|
-
@if ($name == 'ghost') {
|
|
71
|
-
// Ghost is unique and ALWAYS sits against a dark background.
|
|
72
|
-
color: $color;
|
|
73
|
-
} @else if ($name == 'text') {
|
|
74
|
-
// The default color is lighter than the normal text color, make the it the text color
|
|
75
|
-
color: $euiTextColor;
|
|
76
|
-
} @else {
|
|
77
|
-
// Other colors need to check their contrast against the page background color.
|
|
78
|
-
color: makeHighContrastColor($color, $euiPageBackgroundColor);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
border-color: $color;
|
|
82
|
-
|
|
83
|
-
&.euiButton--fill {
|
|
84
|
-
background-color: $color;
|
|
85
|
-
border-color: $color;
|
|
86
|
-
|
|
87
|
-
// The function makes that hexes safe for theming
|
|
88
|
-
$fillTextColor: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
|
|
89
|
-
|
|
90
|
-
color: $fillTextColor;
|
|
91
|
-
|
|
92
|
-
&:not([class*='isDisabled']) {
|
|
93
|
-
&:hover,
|
|
94
|
-
&:focus,
|
|
95
|
-
&:focus-within {
|
|
96
|
-
background-color: darken($color, 5%);
|
|
97
|
-
border-color: darken($color, 5%);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&:not([class*='isDisabled']) {
|
|
103
|
-
$shadowColor: $euiShadowColor;
|
|
104
|
-
@if ($name == 'ghost') {
|
|
105
|
-
$shadowColor: $euiColorInk;
|
|
106
|
-
} @else if (lightness($euiTextColor) < 50) {
|
|
107
|
-
// Only if this is the light theme do we use the button variant color to colorize the shadow
|
|
108
|
-
$shadowColor: desaturate($color, 60%);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@include euiSlightShadow($shadowColor);
|
|
112
|
-
|
|
113
|
-
&:hover,
|
|
114
|
-
&:focus,
|
|
115
|
-
&:focus-within {
|
|
116
|
-
@include euiSlightShadowHover($shadowColor);
|
|
117
|
-
background-color: transparentize($color, .9);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Fix ghost/disabled look specifically
|
|
124
|
-
.euiButton.euiButton-isDisabled.euiButton--ghost {
|
|
125
|
-
&,
|
|
126
|
-
&:hover,
|
|
127
|
-
&:focus,
|
|
128
|
-
&:focus-within {
|
|
129
|
-
@include euiSlightShadow($euiColorInk);
|
|
130
|
-
color: $euiButtonColorGhostDisabled;
|
|
131
|
-
border-color: $euiButtonColorGhostDisabled;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.euiButton--fill {
|
|
135
|
-
background-color: $euiButtonColorGhostDisabled;
|
|
136
|
-
color: makeHighContrastColor($euiButtonColorGhostDisabled, $euiButtonColorGhostDisabled, 2);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.euiButton--fullWidth {
|
|
141
|
-
display: block;
|
|
142
|
-
width: 100%;
|
|
143
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Modifier naming and colors.
|
|
2
|
-
$euiButtonIconTypes: (
|
|
3
|
-
accent: $euiColorAccentText,
|
|
4
|
-
danger: $euiColorDangerText,
|
|
5
|
-
ghost: $euiColorGhost,
|
|
6
|
-
primary: $euiColorPrimaryText,
|
|
7
|
-
subdued: $euiTextSubduedColor,
|
|
8
|
-
success: $euiColorSuccessText,
|
|
9
|
-
text: $euiColorDarkShade,
|
|
10
|
-
warning: $euiColorWarningText,
|
|
11
|
-
);
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 1. Footer is always at the bottom.
|
|
3
|
-
* 2. Fix for IE where the image correctly resizes in width but doesn't collapse its height
|
|
4
|
-
(https://github.com/philipwalton/flexbugs/issues/75#issuecomment-134702421)
|
|
5
|
-
* 3. Horizontal layouts should always top left align no matter the textAlign prop
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// EuiCard inherits most from EuiPanel, these styles are for content or other states
|
|
9
|
-
|
|
10
|
-
.euiCard {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
min-height: 1px; /* 2 */
|
|
14
|
-
|
|
15
|
-
&.euiCard-isDisabled {
|
|
16
|
-
// sass-lint:disable-block no-important
|
|
17
|
-
cursor: not-allowed !important; // duplicate property due to Chrome bug
|
|
18
|
-
transform: none !important;
|
|
19
|
-
box-shadow: none !important;
|
|
20
|
-
text-decoration: none !important;
|
|
21
|
-
background-color: transparentize($euiButtonColorDisabled, .9) !important;
|
|
22
|
-
color: $euiColorDisabledText;
|
|
23
|
-
|
|
24
|
-
.euiCard__top {
|
|
25
|
-
filter: grayscale(100%);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.euiCard__titleAnchor,
|
|
29
|
-
.euiCard__titleButton {
|
|
30
|
-
color: $euiColorDisabledText;
|
|
31
|
-
cursor: inherit;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.euiCard__betaBadge:not(.euiBetaBadge-isClickable):not(.euiBetaBadge--hollow) {
|
|
35
|
-
box-shadow: inset 0 0 0 1px $euiBorderColor;
|
|
36
|
-
background: transparent;
|
|
37
|
-
color: inherit;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.euiCard__betaBadge:not(.euiBetaBadge-isClickable).euiBetaBadge--hollow {
|
|
41
|
-
background-color: $euiColorEmptyShade;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.euiCard--isClickable {
|
|
46
|
-
display: flex; // Override panel
|
|
47
|
-
width: 100%;
|
|
48
|
-
|
|
49
|
-
&:not(.euiCard-isDisabled) {
|
|
50
|
-
// Progressive Enhancement Only
|
|
51
|
-
// The title will still underline to simulate focus in IE
|
|
52
|
-
&:focus-within {
|
|
53
|
-
@include euiSlightShadowHover;
|
|
54
|
-
@include euiFocusRing('large');
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&:focus,
|
|
58
|
-
&:hover {
|
|
59
|
-
.euiCard__title,
|
|
60
|
-
.euiCard__titleAnchor,
|
|
61
|
-
.euiCard__titleButton {
|
|
62
|
-
text-decoration: underline;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.euiCard__top,
|
|
69
|
-
.euiCard__content,
|
|
70
|
-
.euiCard__footer {
|
|
71
|
-
width: 100%; // Fixes IE and ensures they always stretch no matter the flex layout
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.euiCard--leftAligned {
|
|
75
|
-
text-align: left;
|
|
76
|
-
align-items: flex-start;
|
|
77
|
-
|
|
78
|
-
.euiCard__titleButton {
|
|
79
|
-
text-align: left;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&.euiCard--centerAligned {
|
|
84
|
-
text-align: center;
|
|
85
|
-
align-items: center;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&.euiCard--rightAligned {
|
|
89
|
-
text-align: right;
|
|
90
|
-
align-items: flex-end;
|
|
91
|
-
|
|
92
|
-
.euiCard__titleButton {
|
|
93
|
-
text-align: right;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.euiCard-isSelected {
|
|
98
|
-
transition: all $euiAnimSpeedFast $euiAnimSlightResistance;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// This creates a bunch of sub selectors for the beta badge
|
|
103
|
-
@include euiHasBetaBadge($selector: '.euiCard', $spacing: $euiCardSpacing);
|
|
104
|
-
|
|
105
|
-
.euiCard__betaBadge.euiBetaBadge--hollow {
|
|
106
|
-
background-color: $euiColorEmptyShade;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.euiCard--isSelectable {
|
|
110
|
-
position: relative;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
@each $modifier, $paddingAmount in $euiPanelPaddingModifiers {
|
|
115
|
-
.euiCard[class*='#{$modifier}'] {
|
|
116
|
-
padding: $paddingAmount;
|
|
117
|
-
|
|
118
|
-
&.euiCard--isSelectable {
|
|
119
|
-
padding-bottom: $paddingAmount + $euiCardBottomNodeHeight;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.euiCard__top {
|
|
123
|
-
|
|
124
|
-
.euiCard__image {
|
|
125
|
-
width: calc(100% + (#{$paddingAmount} * 2));
|
|
126
|
-
left: $paddingAmount * -1;
|
|
127
|
-
top: $paddingAmount * -1;
|
|
128
|
-
margin-bottom: $paddingAmount * -1; // ensure the parent is only as tall as the image
|
|
129
|
-
|
|
130
|
-
// IF both exist, position the icon centered on top of image
|
|
131
|
-
+ .euiCard__icon {
|
|
132
|
-
transform: translate(-50%, -75%); // Fallback for IE as it doesn't accept calcs in translates
|
|
133
|
-
transform: translate(-50%, calc(-50% + #{$paddingAmount * -1})); // sass-lint:disable-line no-duplicate-properties
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.euiCard__top {
|
|
142
|
-
flex-grow: 0; /* 1 */
|
|
143
|
-
position: relative;
|
|
144
|
-
min-height: 1px; /* 2 */
|
|
145
|
-
font-size: 0;
|
|
146
|
-
|
|
147
|
-
.euiCard__image {
|
|
148
|
-
position: relative;
|
|
149
|
-
|
|
150
|
-
// match border radius, minus 1px because it's inside a border
|
|
151
|
-
border-top-left-radius: $euiBorderRadius - 1px;
|
|
152
|
-
border-top-right-radius: $euiBorderRadius - 1px;
|
|
153
|
-
overflow: hidden;
|
|
154
|
-
|
|
155
|
-
img {
|
|
156
|
-
width: 100%;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// IF both exist, position the icon centered on top of image
|
|
160
|
-
+ .euiCard__icon {
|
|
161
|
-
position: absolute;
|
|
162
|
-
top: 50%;
|
|
163
|
-
left: 50%;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.euiCard__icon {
|
|
168
|
-
margin-top: $euiCardSpacing / 2;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.euiCard__footer:not(:empty) {
|
|
173
|
-
flex-grow: 0; /* 1 */
|
|
174
|
-
margin-top: $euiCardSpacing;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// Without a border, the image should stand on it's own so it needs to have all corners rounded
|
|
178
|
-
.euiCard[class*='transparent'] .euiCard__image {
|
|
179
|
-
border-radius: $euiBorderRadius;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@each $name, $color in $euiCardSelectButtonBorders {
|
|
183
|
-
.euiCard--isSelectable--#{$name}.euiCard-isSelected:not(.euiCard-isDisabled) {
|
|
184
|
-
// Override .euiPanel.has--Border
|
|
185
|
-
border-color: $color !important; // sass-lint:disable-line no-important
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// If an icon or image exists, add some space
|
|
190
|
-
.euiCard__top + .euiCard__content {
|
|
191
|
-
margin-top: $euiCardSpacing;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.euiCard__content {
|
|
195
|
-
flex-grow: 1; /* 1 */
|
|
196
|
-
|
|
197
|
-
.euiCard__description,
|
|
198
|
-
.euiCard__children {
|
|
199
|
-
margin-top: $euiCardSpacing / 2;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.euiCard__titleAnchor,
|
|
203
|
-
.euiCard__titleButton {
|
|
204
|
-
font: inherit;
|
|
205
|
-
color: inherit;
|
|
206
|
-
letter-spacing: inherit;
|
|
207
|
-
|
|
208
|
-
&:focus {
|
|
209
|
-
text-decoration: underline;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.euiCard.euiCard--horizontal {
|
|
216
|
-
.euiCard__content,
|
|
217
|
-
.euiCard__titleButton {
|
|
218
|
-
text-align: left; /* 3 */
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// Only change the flex direction if the card has an icon
|
|
222
|
-
// otherwise the button tag won't properly align contents to top
|
|
223
|
-
&.euiCard--hasIcon {
|
|
224
|
-
flex-direction: row;
|
|
225
|
-
// sass-lint:disable-block no-important
|
|
226
|
-
align-items: flex-start !important; /* 3 */
|
|
227
|
-
|
|
228
|
-
.euiCard__top,
|
|
229
|
-
.euiCard__content {
|
|
230
|
-
width: auto; // Makes sure the top shrinks and the content grows
|
|
231
|
-
margin-top: 0;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.euiCard__top .euiCard__icon {
|
|
235
|
-
margin-top: 0;
|
|
236
|
-
margin-right: $euiSize;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.euiCardSelect {
|
|
2
|
-
// Option select button that expands to sides and bottom
|
|
3
|
-
@include euiCardBottomNodePosition;
|
|
4
|
-
font-weight: $euiFontWeightBold;
|
|
5
|
-
|
|
6
|
-
// Create button modifiers based upon the map.
|
|
7
|
-
@each $name, $color in $euiCardSelectButtonBackgrounds {
|
|
8
|
-
&--#{$name}:enabled {
|
|
9
|
-
// Override EuiButtonEmpty's focus background
|
|
10
|
-
background-color: $color !important; // sass-lint:disable-line no-important
|
|
11
|
-
// Custom success text color since it doesn't exist on EuiButtonEmpty
|
|
12
|
-
@if ($name == 'success') {
|
|
13
|
-
color: makeHighContrastColor($euiColorSuccess, $color);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:disabled {
|
|
19
|
-
background-color: $euiPageBackgroundColor;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
@mixin euiCardBottomNodePosition {
|
|
2
|
-
position: absolute;
|
|
3
|
-
bottom: 0;
|
|
4
|
-
left: 0;
|
|
5
|
-
height: $euiCardBottomNodeHeight !important; // sass-lint:disable-line no-important -- To override .euiButtonEmpty--xSmall
|
|
6
|
-
width: 100%;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
// Subtract 1px from border radius since it sits inside a border-radius
|
|
9
|
-
border-bottom-left-radius: $euiBorderRadius - 1px;
|
|
10
|
-
border-bottom-right-radius: $euiBorderRadius - 1px;
|
|
11
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
$euiCardSpacing: map-get($euiPanelPaddingModifiers, 'paddingMedium');
|
|
2
|
-
$euiCardBottomNodeHeight: $euiSizeXXL;
|
|
3
|
-
|
|
4
|
-
$euiCardSelectButtonBorders: (
|
|
5
|
-
text: $euiColorSuccess, // Default for selected
|
|
6
|
-
primary: $euiColorPrimary,
|
|
7
|
-
success: $euiColorSuccess,
|
|
8
|
-
danger: $euiColorDanger,
|
|
9
|
-
ghost: $euiColorDarkShade,
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
$euiCardSelectButtonBackgrounds: (
|
|
13
|
-
text: $euiColorLightestShade, // Default for unselected
|
|
14
|
-
primary: tintOrShade($euiColorPrimary, 90%, 70%),
|
|
15
|
-
success: tintOrShade($euiColorSuccess, 90%, 70%),
|
|
16
|
-
danger: tintOrShade($euiColorDanger, 90%, 70%),
|
|
17
|
-
ghost: $euiColorDarkShade,
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
$euiCardPaddingModifiers: (
|
|
21
|
-
'paddingNone': 0,
|
|
22
|
-
'paddingSmall': $euiSizeS,
|
|
23
|
-
'paddingMedium': $euiSize,
|
|
24
|
-
'paddingLarge': $euiSizeL
|
|
25
|
-
) !default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$euiCheckableCardPadding: map-get($euiPanelPaddingModifiers, 'paddingMedium');
|
|
2
|
-
|
|
3
|
-
.euiCheckableCard {
|
|
4
|
-
transition: border-color $euiAnimSpeedNormal ease-in;
|
|
5
|
-
|
|
6
|
-
&:not(.euiCheckableCard-isDisabled) {
|
|
7
|
-
&.euiCheckableCard-isChecked {
|
|
8
|
-
border-color: $euiColorPrimary;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.euiCheckableCard__label {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
// Expand the label to cover the whole panel for easier click target
|
|
16
|
-
display: block;
|
|
17
|
-
width: calc(100% + #{$euiCheckableCardPadding * 2});
|
|
18
|
-
padding: $euiCheckableCardPadding;
|
|
19
|
-
margin: -$euiCheckableCardPadding;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.euiCheckableCard__label-isDisabled {
|
|
23
|
-
color: $euiFormControlDisabledColor;
|
|
24
|
-
cursor: not-allowed;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.euiCheckableCard__children {
|
|
28
|
-
margin-top: $euiSize;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'checkable_card';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
// 1. Extend beta badges to at least 30% of the container's width
|
|
3
|
-
// 2. Fix for IE to ensure badges are visible outside of a <button> tag
|
|
4
|
-
|
|
5
|
-
@mixin euiHasBetaBadge($selector, $spacing: $euiSize) {
|
|
6
|
-
#{$selector}--hasBetaBadge {
|
|
7
|
-
position: relative;
|
|
8
|
-
overflow: visible; // 2
|
|
9
|
-
|
|
10
|
-
#{$selector}__betaBadgeWrapper {
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: ($euiSizeL / -2);
|
|
13
|
-
left: 50%;
|
|
14
|
-
transform: translateX(-50%);
|
|
15
|
-
z-index: 3; // get above abs positioned image
|
|
16
|
-
min-width: 30%; // 1
|
|
17
|
-
max-width: calc(100% - #{($spacing * 2)});
|
|
18
|
-
|
|
19
|
-
.euiToolTipAnchor,
|
|
20
|
-
#{$selector}__betaBadge {
|
|
21
|
-
width: 100%; // 1
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
#{$selector}__betaBadge {
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
text-overflow: ellipsis;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
@mixin euiButton {
|
|
2
|
-
@include euiButtonBase;
|
|
3
|
-
@include euiFont;
|
|
4
|
-
@include euiFontSize;
|
|
5
|
-
@include euiButtonFocus;
|
|
6
|
-
|
|
7
|
-
font-weight: $euiButtonFontWeight;
|
|
8
|
-
text-decoration: none;
|
|
9
|
-
transition: background-color $euiAnimSpeedNormal ease-in-out, border-color $euiAnimSpeedNormal ease-in-out;
|
|
10
|
-
outline-offset: -1px;
|
|
11
|
-
|
|
12
|
-
&:hover:not([class*='isDisabled']),
|
|
13
|
-
&:focus {
|
|
14
|
-
text-decoration: underline;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/*
|
|
19
|
-
* Creates the Amsterdam style of button with a transparent background
|
|
20
|
-
*/
|
|
21
|
-
@mixin euiButtonDefaultStyle($color: 'primary', $includeStates: true, $transparency: $euiButtonDefaultTransparency) {
|
|
22
|
-
$backgroundColor: $color;
|
|
23
|
-
|
|
24
|
-
@if (map-has-key($euiButtonTypes, $color)) {
|
|
25
|
-
$backgroundColor: map-get($euiButtonTypes, $color);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
$percentConversion: $transparency * 100%;
|
|
29
|
-
// This variable simulates the possibly darkest background the button could be on
|
|
30
|
-
// Simulates the 20% opaque color on top of the page background color
|
|
31
|
-
$backgroundColorSimulated: mix($euiPageBackgroundColor, $backgroundColor, $percentConversion);
|
|
32
|
-
// Then we can calculate the darkest text color needed
|
|
33
|
-
color: makeHighContrastColor($backgroundColor, $backgroundColorSimulated);
|
|
34
|
-
// But still use transparency
|
|
35
|
-
background-color: transparentize($backgroundColor, $transparency);
|
|
36
|
-
|
|
37
|
-
@if ($includeStates) {
|
|
38
|
-
&:not([class*='isDisabled']) {
|
|
39
|
-
&:hover,
|
|
40
|
-
&:focus {
|
|
41
|
-
// Duplicated from inert state simply to override default theme
|
|
42
|
-
background-color: transparentize($backgroundColor, $transparency);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/*
|
|
49
|
-
* Creates the Amsterdam style of fill button
|
|
50
|
-
*/
|
|
51
|
-
@mixin euiButtonFillStyle($color: 'primary') {
|
|
52
|
-
$backgroundColor: $color;
|
|
53
|
-
|
|
54
|
-
@if (map-has-key($euiButtonTypes, $color)) {
|
|
55
|
-
$backgroundColor: map-get($euiButtonTypes, $color);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
background-color: $backgroundColor;
|
|
59
|
-
color: chooseLightOrDarkText($backgroundColor);
|
|
60
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
// This file has lots of modifiers and is somewhat nesty by nature
|
|
2
|
-
//sass-lint:disable nesting-depth
|
|
3
|
-
|
|
4
|
-
.euiButton,
|
|
5
|
-
.euiButtonIcon {
|
|
6
|
-
// sass-lint:disable no-important
|
|
7
|
-
// remove for all states
|
|
8
|
-
box-shadow: none !important;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.euiButton.euiButton-isDisabled:not(.euiButton--ghost),
|
|
12
|
-
.euiButtonIcon.euiButtonIcon-isDisabled:not(.euiButtonIcon--ghost) {
|
|
13
|
-
&,
|
|
14
|
-
&:hover {
|
|
15
|
-
$backgroundColorSimulated: mix($euiPageBackgroundColor, $euiButtonColorDisabled, 90%);
|
|
16
|
-
background-color: transparentize($euiButtonColorDisabled, .9);
|
|
17
|
-
color: makeDisabledContrastColor($euiButtonColorDisabled, $backgroundColorSimulated);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.euiButtonIcon--empty.euiButtonIcon-isDisabled:not(.euiButtonIcon--ghost) {
|
|
22
|
-
&,
|
|
23
|
-
&:hover {
|
|
24
|
-
background-color: transparent;
|
|
25
|
-
color: makeDisabledContrastColor($euiButtonColorDisabled, $euiPageBackgroundColor);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.euiButton--small,
|
|
30
|
-
.euiButtonIcon--small,
|
|
31
|
-
.euiButtonIcon--xSmall {
|
|
32
|
-
// Use a moderately smaller radius on small buttons
|
|
33
|
-
// so that they don't appear completely rounded
|
|
34
|
-
border-radius: $euiBorderRadius * (2 / 3);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Change the hollow (bordered) buttons to have a transparent background
|
|
38
|
-
// and no border
|
|
39
|
-
@each $name, $color in $euiButtonTypes {
|
|
40
|
-
.euiButton--#{$name} {
|
|
41
|
-
@include euiButtonDefaultStyle($color);
|
|
42
|
-
|
|
43
|
-
@if ($name == 'ghost') {
|
|
44
|
-
// Ghost is unique and ALWAYS sits against a dark background.
|
|
45
|
-
$backgroundColorSimulated: mix($euiColorInk, $color, 70%);
|
|
46
|
-
color: makeHighContrastColor($color, $backgroundColorSimulated);
|
|
47
|
-
} @else if ($name == 'text') {
|
|
48
|
-
// The default color is lighter than the normal text color, make it the text color
|
|
49
|
-
color: $euiTextColor;
|
|
50
|
-
} @else {
|
|
51
|
-
&.euiButton--fill:focus {
|
|
52
|
-
outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.euiButton--fill:not([class*='isDisabled']) {
|
|
57
|
-
color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
|
|
58
|
-
|
|
59
|
-
&,
|
|
60
|
-
&:hover,
|
|
61
|
-
&:focus {
|
|
62
|
-
background-color: $color;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Fix ghost/disabled look specifically
|
|
69
|
-
.euiButton.euiButton-isDisabled.euiButton--ghost,
|
|
70
|
-
// adding fill type to override default theme
|
|
71
|
-
.euiButton.euiButton-isDisabled.euiButton--ghost.euiButton--fill {
|
|
72
|
-
&,
|
|
73
|
-
&:focus {
|
|
74
|
-
color: $euiButtonColorGhostDisabled;
|
|
75
|
-
background-color: transparentize($euiButtonColorGhostDisabled, .9);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
// Duplicating the above for EuiButtonIcon
|
|
81
|
-
@each $name, $color in $euiButtonTypes {
|
|
82
|
-
.euiButtonIcon--#{$name}:not(.euiButtonIcon--empty) {
|
|
83
|
-
@include euiButtonDefaultStyle($color);
|
|
84
|
-
|
|
85
|
-
@if ($name == 'ghost') {
|
|
86
|
-
// Ghost is unique and ALWAYS sits against a dark background.
|
|
87
|
-
$backgroundColorSimulated: mix($euiColorInk, $color, 70%);
|
|
88
|
-
color: makeHighContrastColor($color, $backgroundColorSimulated);
|
|
89
|
-
} @else if ($name == 'text') {
|
|
90
|
-
// The default color is lighter than the normal text color, make it the text color
|
|
91
|
-
color: $euiTextColor;
|
|
92
|
-
} @else {
|
|
93
|
-
&.euiButtonIcon--fill:focus {
|
|
94
|
-
outline-color: lightOrDarkTheme($euiColorInk, $euiColorGhost);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&.euiButtonIcon--fill:not([class*='isDisabled']) {
|
|
99
|
-
color: chooseLightOrDarkText($color, $euiColorGhost, $euiColorInk);
|
|
100
|
-
|
|
101
|
-
&,
|
|
102
|
-
&:hover,
|
|
103
|
-
&:focus {
|
|
104
|
-
background-color: $color;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Fix ghost/disabled look specifically
|
|
111
|
-
.euiButtonIcon:not(.euiButtonIcon--empty).euiButtonIcon-isDisabled.euiButtonIcon--ghost,
|
|
112
|
-
// adding fill type to override default theme
|
|
113
|
-
.euiButtonIcon.euiButtonIcon-isDisabled.euiButtonIcon--ghost.euiButtonIcon--fill {
|
|
114
|
-
&,
|
|
115
|
-
&:focus {
|
|
116
|
-
color: $euiButtonColorGhostDisabled;
|
|
117
|
-
background-color: transparentize($euiButtonColorGhostDisabled, .9);
|
|
118
|
-
}
|
|
119
|
-
}
|