@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
|
@@ -5,12 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.SIZES = exports.FLUSH_TYPES = exports.EuiButtonEmpty =
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
|
+
exports.SIZES = exports.FLUSH_TYPES = exports.EuiButtonEmpty = void 0;
|
|
11
9
|
|
|
12
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
11
|
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -23,7 +23,9 @@ var _services = require("../../../services");
|
|
|
23
23
|
|
|
24
24
|
var _button_content_deprecated = require("../_button_content_deprecated");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
|
|
27
|
+
|
|
28
|
+
var _button_display = require("../button_display/_button_display");
|
|
27
29
|
|
|
28
30
|
var _react2 = require("@emotion/react");
|
|
29
31
|
|
|
@@ -33,16 +35,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
33
35
|
|
|
34
36
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
35
37
|
|
|
36
|
-
var colorToClassNameMap = {
|
|
37
|
-
primary: 'euiButtonEmpty--primary',
|
|
38
|
-
danger: 'euiButtonEmpty--danger',
|
|
39
|
-
text: 'euiButtonEmpty--text',
|
|
40
|
-
ghost: 'euiButtonEmpty--ghost',
|
|
41
|
-
success: 'euiButtonEmpty--success',
|
|
42
|
-
warning: 'euiButtonEmpty--warning'
|
|
43
|
-
};
|
|
44
|
-
var COLORS = (0, _common.keysOf)(colorToClassNameMap);
|
|
45
|
-
exports.COLORS = COLORS;
|
|
46
38
|
var sizeToClassNameMap = {
|
|
47
39
|
xs: 'euiButtonEmpty--xSmall',
|
|
48
40
|
s: 'euiButtonEmpty--small',
|
|
@@ -63,42 +55,57 @@ var FLUSH_TYPES = (0, _common.keysOf)(flushTypeToClassNameMap);
|
|
|
63
55
|
|
|
64
56
|
exports.FLUSH_TYPES = FLUSH_TYPES;
|
|
65
57
|
|
|
66
|
-
var EuiButtonEmpty = function EuiButtonEmpty(
|
|
67
|
-
var children =
|
|
68
|
-
className =
|
|
69
|
-
iconType =
|
|
70
|
-
|
|
71
|
-
iconSide =
|
|
72
|
-
|
|
73
|
-
iconSize =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
size =
|
|
78
|
-
flush =
|
|
79
|
-
_isDisabled =
|
|
80
|
-
|
|
81
|
-
isLoading =
|
|
82
|
-
href =
|
|
83
|
-
target =
|
|
84
|
-
rel =
|
|
85
|
-
|
|
86
|
-
type =
|
|
87
|
-
buttonRef =
|
|
88
|
-
contentProps =
|
|
89
|
-
textProps =
|
|
90
|
-
isSelected =
|
|
91
|
-
rest = (0, _objectWithoutProperties2.default)(
|
|
92
|
-
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
58
|
+
var EuiButtonEmpty = function EuiButtonEmpty(props) {
|
|
59
|
+
var children = props.children,
|
|
60
|
+
className = props.className,
|
|
61
|
+
iconType = props.iconType,
|
|
62
|
+
_props$iconSide = props.iconSide,
|
|
63
|
+
iconSide = _props$iconSide === void 0 ? 'left' : _props$iconSide,
|
|
64
|
+
_props$iconSize = props.iconSize,
|
|
65
|
+
iconSize = _props$iconSize === void 0 ? 'm' : _props$iconSize,
|
|
66
|
+
_props$color = props.color,
|
|
67
|
+
_color = _props$color === void 0 ? 'primary' : _props$color,
|
|
68
|
+
_props$size = props.size,
|
|
69
|
+
size = _props$size === void 0 ? 'm' : _props$size,
|
|
70
|
+
flush = props.flush,
|
|
71
|
+
_isDisabled = props.isDisabled,
|
|
72
|
+
disabled = props.disabled,
|
|
73
|
+
isLoading = props.isLoading,
|
|
74
|
+
href = props.href,
|
|
75
|
+
target = props.target,
|
|
76
|
+
rel = props.rel,
|
|
77
|
+
_props$type = props.type,
|
|
78
|
+
type = _props$type === void 0 ? 'button' : _props$type,
|
|
79
|
+
buttonRef = props.buttonRef,
|
|
80
|
+
contentProps = props.contentProps,
|
|
81
|
+
textProps = props.textProps,
|
|
82
|
+
isSelected = props.isSelected,
|
|
83
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
84
|
+
|
|
85
|
+
var isDisabled = (0, _button_display.isButtonDisabled)({
|
|
86
|
+
isDisabled: _isDisabled || disabled,
|
|
87
|
+
href: href,
|
|
88
|
+
isLoading: isLoading
|
|
89
|
+
}); // eslint-disable-next-line no-nested-ternary
|
|
90
|
+
|
|
91
|
+
var color = isDisabled ? 'disabled' : _color === 'ghost' ? 'text' : _color;
|
|
92
|
+
var buttonColorStyles = (0, _button.useEuiButtonColorCSS)({
|
|
93
|
+
display: 'empty'
|
|
94
|
+
})[color];
|
|
95
|
+
|
|
96
|
+
if (_color === 'ghost') {
|
|
97
|
+
// INCEPTION: If `ghost`, re-implement with a wrapping dark mode theme provider
|
|
98
|
+
return (0, _react2.jsx)(_services.EuiThemeProvider, {
|
|
99
|
+
colorMode: "dark"
|
|
100
|
+
}, (0, _react2.jsx)(EuiButtonEmpty, (0, _extends2.default)({}, props, {
|
|
101
|
+
color: "text"
|
|
102
|
+
})));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
var classes = (0, _classnames.default)('euiButtonEmpty', size ? sizeToClassNameMap[size] : null, flush ? flushTypeToClassNameMap[flush] : null, className);
|
|
100
106
|
var contentClassNames = (0, _classnames.default)('euiButtonEmpty__content', contentProps && contentProps.className);
|
|
101
107
|
var textClassNames = (0, _classnames.default)('euiButtonEmpty__text', textProps && textProps.className);
|
|
108
|
+
var cssStyles = [buttonColorStyles];
|
|
102
109
|
var innerNode = (0, _react2.jsx)(_button_content_deprecated.EuiButtonContentDeprecated, (0, _extends2.default)({
|
|
103
110
|
isLoading: isLoading,
|
|
104
111
|
iconType: iconType,
|
|
@@ -113,7 +120,7 @@ var EuiButtonEmpty = function EuiButtonEmpty(_ref) {
|
|
|
113
120
|
}), children); // <a> elements don't respect the `disabled` attribute. So if we're disabled, we'll just pretend
|
|
114
121
|
// this is a button and piggyback off its disabled styles.
|
|
115
122
|
|
|
116
|
-
if (href && !
|
|
123
|
+
if (href && !isDisabled) {
|
|
117
124
|
var secureRel = (0, _services.getSecureRelForTarget)({
|
|
118
125
|
href: href,
|
|
119
126
|
target: target,
|
|
@@ -121,6 +128,7 @@ var EuiButtonEmpty = function EuiButtonEmpty(_ref) {
|
|
|
121
128
|
});
|
|
122
129
|
return (0, _react2.jsx)("a", (0, _extends2.default)({
|
|
123
130
|
className: classes,
|
|
131
|
+
css: cssStyles,
|
|
124
132
|
href: href,
|
|
125
133
|
target: target,
|
|
126
134
|
rel: secureRel,
|
|
@@ -129,8 +137,9 @@ var EuiButtonEmpty = function EuiButtonEmpty(_ref) {
|
|
|
129
137
|
}
|
|
130
138
|
|
|
131
139
|
return (0, _react2.jsx)("button", (0, _extends2.default)({
|
|
132
|
-
disabled:
|
|
140
|
+
disabled: isDisabled,
|
|
133
141
|
className: classes,
|
|
142
|
+
css: cssStyles,
|
|
134
143
|
type: type,
|
|
135
144
|
ref: buttonRef,
|
|
136
145
|
"aria-pressed": isSelected
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "COLORS", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _button_empty.COLORS;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "EuiButtonEmpty", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
@@ -56,15 +56,7 @@ var EuiButtonGroup = function EuiButtonGroup(_ref) {
|
|
|
56
56
|
_ref$type = _ref.type,
|
|
57
57
|
type = _ref$type === void 0 ? 'single' : _ref$type,
|
|
58
58
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
59
|
-
|
|
60
|
-
var badColorCombo = buttonSize === 'compressed' && color === 'ghost';
|
|
61
|
-
var resolvedColor = badColorCombo ? 'text' : color;
|
|
62
|
-
|
|
63
|
-
if (badColorCombo) {
|
|
64
|
-
console.warn('EuiButtonGroup of compressed size does not support the ghost color. It will render as text instead.');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
var classes = (0, _classnames.default)('euiButtonGroup', "euiButtonGroup".concat(groupSizeToClassNameMap[buttonSize]), "euiButtonGroup".concat(_button.colorToClassNameMap[resolvedColor]), {
|
|
59
|
+
var classes = (0, _classnames.default)('euiButtonGroup', "euiButtonGroup".concat(groupSizeToClassNameMap[buttonSize]), "euiButtonGroup".concat(_button.colorToClassNameMap[color]), {
|
|
68
60
|
'euiButtonGroup--fullWidth': isFullWidth,
|
|
69
61
|
'euiButtonGroup--isDisabled': isDisabled
|
|
70
62
|
}, className);
|
|
@@ -86,7 +78,7 @@ var EuiButtonGroup = function EuiButtonGroup(_ref) {
|
|
|
86
78
|
}, option, {
|
|
87
79
|
element: typeIsSingle ? 'label' : 'button',
|
|
88
80
|
isSelected: typeIsSingle ? option.id === idSelected : idToSelectedMap[option.id],
|
|
89
|
-
color:
|
|
81
|
+
color: color,
|
|
90
82
|
size: buttonSize,
|
|
91
83
|
isIconOnly: isIconOnly,
|
|
92
84
|
onChange: onChange
|
|
@@ -25,9 +25,11 @@ var _inner_text = require("../../inner_text");
|
|
|
25
25
|
|
|
26
26
|
var _services = require("../../../services");
|
|
27
27
|
|
|
28
|
+
var _button2 = require("../../../themes/amsterdam/global_styling/mixins/button");
|
|
29
|
+
|
|
28
30
|
var _react2 = require("@emotion/react");
|
|
29
31
|
|
|
30
|
-
var _excluded = ["className", "id", "isDisabled", "isIconOnly", "isSelected", "label", "name", "onChange", "size", "value", "element", "type"];
|
|
32
|
+
var _excluded = ["className", "id", "isDisabled", "isIconOnly", "isSelected", "label", "name", "onChange", "size", "value", "color", "element", "type"];
|
|
31
33
|
|
|
32
34
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
33
35
|
|
|
@@ -45,11 +47,14 @@ var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
|
|
|
45
47
|
_onChange = _ref.onChange,
|
|
46
48
|
size = _ref.size,
|
|
47
49
|
value = _ref.value,
|
|
50
|
+
_ref$color = _ref.color,
|
|
51
|
+
_color = _ref$color === void 0 ? 'primary' : _ref$color,
|
|
48
52
|
_ref$element = _ref.element,
|
|
49
53
|
element = _ref$element === void 0 ? 'button' : _ref$element,
|
|
50
54
|
_ref$type = _ref.type,
|
|
51
55
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
52
56
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
57
|
+
|
|
53
58
|
// Force element to be a button if disabled
|
|
54
59
|
var el = isDisabled ? 'button' : element;
|
|
55
60
|
var newId = (0, _services.useGeneratedHtmlId)();
|
|
@@ -83,8 +88,15 @@ var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
|
|
|
83
88
|
return _onChange(id);
|
|
84
89
|
}
|
|
85
90
|
});
|
|
86
|
-
}
|
|
91
|
+
} // eslint-disable-next-line no-nested-ternary
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
var color = isDisabled ? 'disabled' : _color; // eslint-disable-next-line no-nested-ternary
|
|
87
95
|
|
|
96
|
+
var display = isSelected ? 'fill' : size === 'compressed' ? 'empty' : 'base';
|
|
97
|
+
var buttonColorStyles = (0, _button2.useEuiButtonColorCSS)({
|
|
98
|
+
display: display
|
|
99
|
+
})[color];
|
|
88
100
|
var buttonClasses = (0, _classnames.default)({
|
|
89
101
|
'euiButtonGroupButton-isSelected': isSelected,
|
|
90
102
|
'euiButtonGroupButton-isIconOnly': isIconOnly
|
|
@@ -101,10 +113,10 @@ var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
|
|
|
101
113
|
innerText = _useInnerText2[1];
|
|
102
114
|
|
|
103
115
|
return (0, _react2.jsx)(_button.EuiButtonDisplayDeprecated, (0, _extends2.default)({
|
|
116
|
+
css: [buttonColorStyles, ";label:EuiButtonGroupButton;"],
|
|
104
117
|
baseClassName: "euiButtonGroupButton",
|
|
105
118
|
className: buttonClasses,
|
|
106
119
|
element: el,
|
|
107
|
-
fill: size !== 'compressed' && isSelected,
|
|
108
120
|
isDisabled: isDisabled,
|
|
109
121
|
size: size === 'compressed' ? 's' : size,
|
|
110
122
|
textProps: {
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.SIZES = exports.EuiButtonIcon = exports.DISPLAYS =
|
|
8
|
+
exports.SIZES = exports.EuiButtonIcon = exports.DISPLAYS = void 0;
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
@@ -23,7 +23,9 @@ var _icon = require("../../icon");
|
|
|
23
23
|
|
|
24
24
|
var _loading = require("../../loading");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _button = require("../../../themes/amsterdam/global_styling/mixins/button");
|
|
27
|
+
|
|
28
|
+
var _button_display = require("../button_display/_button_display");
|
|
27
29
|
|
|
28
30
|
var _react2 = require("@emotion/react");
|
|
29
31
|
|
|
@@ -35,17 +37,6 @@ var displayToClassNameMap = {
|
|
|
35
37
|
};
|
|
36
38
|
var DISPLAYS = (0, _common.keysOf)(displayToClassNameMap);
|
|
37
39
|
exports.DISPLAYS = DISPLAYS;
|
|
38
|
-
var colorToClassNameMap = {
|
|
39
|
-
accent: 'euiButtonIcon--accent',
|
|
40
|
-
danger: 'euiButtonIcon--danger',
|
|
41
|
-
ghost: 'euiButtonIcon--ghost',
|
|
42
|
-
primary: 'euiButtonIcon--primary',
|
|
43
|
-
success: 'euiButtonIcon--success',
|
|
44
|
-
text: 'euiButtonIcon--text',
|
|
45
|
-
warning: 'euiButtonIcon--warning'
|
|
46
|
-
};
|
|
47
|
-
var COLORS = (0, _common.keysOf)(colorToClassNameMap);
|
|
48
|
-
exports.COLORS = COLORS;
|
|
49
40
|
var sizeToClassNameMap = {
|
|
50
41
|
xs: 'euiButtonIcon--xSmall',
|
|
51
42
|
s: 'euiButtonIcon--small',
|
|
@@ -54,40 +45,60 @@ var sizeToClassNameMap = {
|
|
|
54
45
|
var SIZES = (0, _common.keysOf)(sizeToClassNameMap);
|
|
55
46
|
exports.SIZES = SIZES;
|
|
56
47
|
|
|
57
|
-
var EuiButtonIcon = function EuiButtonIcon(
|
|
58
|
-
var className =
|
|
59
|
-
iconType =
|
|
60
|
-
|
|
61
|
-
iconSize =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
_isDisabled =
|
|
65
|
-
disabled =
|
|
66
|
-
href =
|
|
67
|
-
|
|
68
|
-
type =
|
|
69
|
-
|
|
70
|
-
display =
|
|
71
|
-
target =
|
|
72
|
-
rel =
|
|
73
|
-
|
|
74
|
-
size =
|
|
75
|
-
buttonRef =
|
|
76
|
-
isSelected =
|
|
77
|
-
isLoading =
|
|
78
|
-
rest = (0, _objectWithoutProperties2.default)(
|
|
79
|
-
|
|
80
|
-
var
|
|
48
|
+
var EuiButtonIcon = function EuiButtonIcon(props) {
|
|
49
|
+
var className = props.className,
|
|
50
|
+
iconType = props.iconType,
|
|
51
|
+
_props$iconSize = props.iconSize,
|
|
52
|
+
iconSize = _props$iconSize === void 0 ? 'm' : _props$iconSize,
|
|
53
|
+
_props$color = props.color,
|
|
54
|
+
_color = _props$color === void 0 ? 'primary' : _props$color,
|
|
55
|
+
_isDisabled = props.isDisabled,
|
|
56
|
+
disabled = props.disabled,
|
|
57
|
+
href = props.href,
|
|
58
|
+
_props$type = props.type,
|
|
59
|
+
type = _props$type === void 0 ? 'button' : _props$type,
|
|
60
|
+
_props$display = props.display,
|
|
61
|
+
display = _props$display === void 0 ? 'empty' : _props$display,
|
|
62
|
+
target = props.target,
|
|
63
|
+
rel = props.rel,
|
|
64
|
+
_props$size = props.size,
|
|
65
|
+
size = _props$size === void 0 ? 'xs' : _props$size,
|
|
66
|
+
buttonRef = props.buttonRef,
|
|
67
|
+
isSelected = props.isSelected,
|
|
68
|
+
isLoading = props.isLoading,
|
|
69
|
+
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
70
|
+
|
|
71
|
+
var euiThemeContext = (0, _services.useEuiTheme)();
|
|
72
|
+
var isDisabled = (0, _button_display.isButtonDisabled)({
|
|
73
|
+
isDisabled: _isDisabled || disabled,
|
|
74
|
+
href: href,
|
|
75
|
+
isLoading: isLoading
|
|
76
|
+
});
|
|
81
77
|
var ariaHidden = rest['aria-hidden'];
|
|
82
78
|
var isAriaHidden = ariaHidden === 'true' || ariaHidden === true;
|
|
83
79
|
|
|
84
80
|
if (!rest['aria-label'] && !rest['aria-labelledby'] && !isAriaHidden) {
|
|
85
81
|
console.warn("EuiButtonIcon requires aria-label or aria-labelledby to be specified because icon-only\n buttons are screen-reader-inaccessible without them.");
|
|
86
|
-
}
|
|
82
|
+
} // eslint-disable-next-line no-nested-ternary
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
var color = isDisabled ? 'disabled' : _color === 'ghost' ? 'text' : _color;
|
|
86
|
+
var buttonColorStyles = (0, _button.useEuiButtonColorCSS)({
|
|
87
|
+
display: display
|
|
88
|
+
})[color]; // Temporary extra style for empty `:hover` state until we decide how to handle universally
|
|
89
|
+
|
|
90
|
+
var hoverStyles = display === 'empty' ? /*#__PURE__*/(0, _react2.css)("&:hover{background-color:", (0, _button.euiButtonEmptyColor)(euiThemeContext, color).backgroundColor, ";};label:hoverStyles;") : /*#__PURE__*/(0, _react2.css)(";label:hoverStyles;");
|
|
91
|
+
var classes = (0, _classnames.default)('euiButtonIcon', size && sizeToClassNameMap[size], className);
|
|
92
|
+
|
|
93
|
+
if (_color === 'ghost') {
|
|
94
|
+
// INCEPTION: If `ghost`, re-implement with a wrapping dark mode theme provider
|
|
95
|
+
return (0, _react2.jsx)(_services.EuiThemeProvider, {
|
|
96
|
+
colorMode: "dark"
|
|
97
|
+
}, (0, _react2.jsx)(EuiButtonIcon, (0, _extends2.default)({}, props, {
|
|
98
|
+
color: "text"
|
|
99
|
+
})));
|
|
100
|
+
} // Add an icon to the button if one exists.
|
|
87
101
|
|
|
88
|
-
var classes = (0, _classnames.default)('euiButtonIcon', {
|
|
89
|
-
'euiButtonIcon-isDisabled': isDisabled
|
|
90
|
-
}, colorToClassNameMap[color], display && displayToClassNameMap[display], size && sizeToClassNameMap[size], className); // Add an icon to the button if one exists.
|
|
91
102
|
|
|
92
103
|
var buttonIcon;
|
|
93
104
|
|
|
@@ -122,6 +133,7 @@ var EuiButtonIcon = function EuiButtonIcon(_ref) {
|
|
|
122
133
|
rel: rel
|
|
123
134
|
});
|
|
124
135
|
return (0, _react2.jsx)("a", (0, _extends2.default)({
|
|
136
|
+
css: [buttonColorStyles, hoverStyles, ";label:EuiButtonIcon;"],
|
|
125
137
|
tabIndex: isAriaHidden ? -1 : undefined,
|
|
126
138
|
className: classes,
|
|
127
139
|
href: href,
|
|
@@ -133,6 +145,7 @@ var EuiButtonIcon = function EuiButtonIcon(_ref) {
|
|
|
133
145
|
|
|
134
146
|
var buttonType;
|
|
135
147
|
return (0, _react2.jsx)("button", (0, _extends2.default)({
|
|
148
|
+
css: [buttonColorStyles, hoverStyles, ";label:EuiButtonIcon;"],
|
|
136
149
|
tabIndex: isAriaHidden ? -1 : undefined,
|
|
137
150
|
disabled: isDisabled,
|
|
138
151
|
className: classes,
|
|
@@ -30,7 +30,8 @@ exports.euiCallOutStyles = euiCallOutStyles;
|
|
|
30
30
|
var euiCallOutHeadingStyles = function euiCallOutHeadingStyles(_ref2) {
|
|
31
31
|
var euiTheme = _ref2.euiTheme;
|
|
32
32
|
return {
|
|
33
|
-
euiCallOutHeader: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.medium, ";margin-bottom
|
|
33
|
+
euiCallOutHeader: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.logicalCSS)('margin-bottom', '0 !important' // In case it's nested inside EuiText
|
|
34
|
+
), ";;label:euiCallOutHeader;"),
|
|
34
35
|
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.primaryText, ";;label:primary;"),
|
|
35
36
|
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.successText, ";;label:success;"),
|
|
36
37
|
warning: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.warningText, ";;label:warning;"),
|