@elastic/eui 64.0.0 → 65.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +217 -1614
- package/dist/eui_theme_dark.json +0 -32
- package/dist/eui_theme_dark.json.d.ts +0 -32
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +244 -1641
- package/dist/eui_theme_light.json +0 -32
- package/dist/eui_theme_light.json.d.ts +0 -32
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/es/components/accessibility/skip_link/skip_link.js +4 -54
- package/es/components/accordion/accordion.js +2 -1
- package/es/components/accordion/accordion.styles.js +17 -27
- package/es/components/badge/beta_badge/beta_badge.js +16 -3
- package/es/components/basic_table/basic_table.js +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +2 -3
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/beacon/beacon.styles.js +2 -2
- package/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/es/components/button/button.js +112 -215
- package/es/components/button/button_display/_button_display.js +90 -40
- package/es/components/button/button_display/_button_display.styles.js +7 -16
- package/es/components/button/button_display/_button_display_content.js +6 -3
- package/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/es/components/button/button_empty/button_empty.js +63 -53
- package/es/components/button/button_empty/index.js +1 -1
- package/es/components/button/button_group/button_group.js +4 -12
- package/es/components/button/button_group/button_group_button.js +14 -4
- package/es/components/button/button_icon/button_icon.js +61 -42
- package/es/components/call_out/call_out.styles.js +2 -1
- package/es/components/card/card.js +173 -89
- package/es/components/card/card.styles.js +136 -0
- package/es/components/card/card_select/card_select.js +133 -0
- package/es/components/card/card_select/card_select.styles.js +25 -0
- package/es/components/card/card_select/index.js +8 -0
- package/es/components/card/checkable_card/checkable_card.js +14 -9
- package/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/es/components/comment_list/comment_event.styles.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +7 -6
- package/es/components/datagrid/body/data_grid_cell.js +13 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/es/components/datagrid/data_grid.js +7 -6
- package/es/components/datagrid/utils/in_memory.js +7 -6
- package/es/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/es/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/es/components/description_list/description_list_title.js +1 -1
- package/es/components/expression/expression.styles.js +13 -31
- package/es/components/facet/facet_button.js +5 -4
- package/es/components/header/header_links/header_link.js +5 -3
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/image/image_wrapper.styles.js +3 -3
- package/es/components/link/link.styles.js +7 -6
- package/es/components/list_group/list_group.js +2 -1
- package/es/components/list_group/list_group_item.js +2 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/es/components/loading/loading_chart.styles.js +16 -26
- package/es/components/loading/loading_content.styles.js +2 -2
- package/es/components/loading/loading_logo.styles.js +4 -4
- package/es/components/loading/loading_spinner.styles.js +6 -6
- package/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/es/components/modal/confirm_modal.js +1 -1
- package/es/components/notification/notification_event.js +5 -3
- package/es/components/notification/notification_event_read_button.js +2 -1
- package/es/components/page/page_template.js +2 -2
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/es/components/pagination/pagination_button.js +5 -3
- package/es/components/panel/panel.js +1 -1
- package/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/es/components/progress/progress.styles.js +2 -2
- package/es/components/text/text.styles.js +1 -1
- package/es/components/title/title.styles.js +2 -2
- package/es/components/toast/global_toast_list.styles.js +2 -2
- package/es/components/toast/toast.styles.js +4 -4
- package/es/components/tool_tip/icon_tip.js +11 -1
- package/es/components/tool_tip/tool_tip.js +18 -6
- package/es/global_styling/functions/logicals.js +16 -72
- package/es/global_styling/functions/typography.js +2 -1
- package/es/global_styling/mixins/_color.js +1 -1
- package/es/global_styling/mixins/_helpers.js +18 -5
- package/es/global_styling/mixins/_states.js +3 -4
- package/es/global_styling/mixins/_typography.js +3 -1
- package/es/global_styling/reset/global_styles.js +2 -1
- package/es/global_styling/utility/utility.js +10 -2
- package/es/themes/amsterdam/global_styling/mixins/button.js +165 -16
- package/eui.d.ts +1156 -1013
- package/i18ntokens.json +19 -19
- package/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/lib/components/accessibility/skip_link/skip_link.js +4 -54
- package/lib/components/accordion/accordion.js +3 -1
- package/lib/components/accordion/accordion.styles.js +17 -26
- package/lib/components/badge/beta_badge/beta_badge.js +16 -3
- package/lib/components/basic_table/basic_table.js +1 -1
- package/lib/components/basic_table/collapsed_item_actions.js +2 -3
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/beacon/beacon.styles.js +1 -1
- package/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/lib/components/button/button.js +124 -229
- package/lib/components/button/button_display/_button_display.js +94 -33
- package/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/lib/components/button/button_display/_button_display_content.js +7 -3
- package/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/lib/components/button/button_empty/button_empty.js +64 -54
- package/lib/components/button/button_empty/index.js +0 -6
- package/lib/components/button/button_group/button_group.js +4 -12
- package/lib/components/button/button_group/button_group_button.js +15 -4
- package/lib/components/button/button_icon/button_icon.js +61 -43
- package/lib/components/call_out/call_out.styles.js +2 -1
- package/lib/components/card/card.js +174 -88
- package/lib/components/card/card.styles.js +146 -0
- package/lib/components/card/card_select/card_select.js +144 -0
- package/lib/components/card/card_select/card_select.styles.js +27 -0
- package/lib/components/card/card_select/index.js +19 -0
- package/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/lib/components/comment_list/comment_event.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +7 -6
- package/lib/components/datagrid/body/data_grid_cell.js +13 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/lib/components/datagrid/data_grid.js +7 -6
- package/lib/components/datagrid/utils/in_memory.js +7 -6
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/lib/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/lib/components/description_list/description_list_title.js +1 -1
- package/lib/components/expression/expression.styles.js +12 -30
- package/lib/components/facet/facet_button.js +4 -3
- package/lib/components/header/header_links/header_link.js +5 -3
- package/lib/components/image/image_button.styles.js +1 -1
- package/lib/components/image/image_wrapper.styles.js +2 -2
- package/lib/components/link/link.styles.js +6 -5
- package/lib/components/list_group/list_group.js +2 -1
- package/lib/components/list_group/list_group_item.js +2 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/lib/components/loading/loading_chart.styles.js +16 -25
- package/lib/components/loading/loading_content.styles.js +1 -1
- package/lib/components/loading/loading_logo.styles.js +4 -4
- package/lib/components/loading/loading_spinner.styles.js +5 -5
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/lib/components/modal/confirm_modal.js +1 -1
- package/lib/components/notification/notification_event.js +5 -3
- package/lib/components/notification/notification_event_read_button.js +2 -1
- package/lib/components/page/page_template.js +1 -1
- package/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/lib/components/panel/panel.js +1 -1
- package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js} +1 -1
- package/lib/components/progress/progress.styles.js +2 -2
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/title/title.styles.js +1 -1
- package/lib/components/toast/global_toast_list.styles.js +1 -1
- package/lib/components/toast/toast.styles.js +4 -4
- package/lib/components/tool_tip/icon_tip.js +11 -1
- package/lib/components/tool_tip/tool_tip.js +18 -6
- package/lib/global_styling/functions/logicals.js +22 -74
- package/lib/global_styling/functions/typography.js +3 -1
- package/lib/global_styling/mixins/_color.js +1 -1
- package/lib/global_styling/mixins/_helpers.js +24 -6
- package/lib/global_styling/mixins/_states.js +3 -4
- package/lib/global_styling/mixins/_typography.js +4 -1
- package/lib/global_styling/reset/global_styles.js +3 -1
- package/lib/global_styling/utility/utility.js +16 -3
- package/lib/themes/amsterdam/global_styling/mixins/button.js +178 -24
- package/optimize/es/components/accessibility/screen_reader_only/screen_reader_only.styles.js +2 -1
- package/optimize/es/components/accordion/accordion.js +2 -1
- package/optimize/es/components/accordion/accordion.styles.js +17 -27
- package/optimize/es/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/es/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/es/components/beacon/beacon.styles.js +2 -2
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/es/components/button/button.js +88 -100
- package/optimize/es/components/button/button_display/_button_display.js +67 -32
- package/optimize/es/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/es/components/button/button_display/_button_display_content.js +5 -2
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/es/components/button/button_empty/button_empty.js +55 -47
- package/optimize/es/components/button/button_empty/index.js +1 -1
- package/optimize/es/components/button/button_group/button_group.js +2 -10
- package/optimize/es/components/button/button_group/button_group_button.js +13 -3
- package/optimize/es/components/button/button_icon/button_icon.js +54 -41
- package/optimize/es/components/call_out/call_out.styles.js +2 -1
- package/optimize/es/components/card/card.js +97 -31
- package/optimize/es/components/card/card.styles.js +136 -0
- package/optimize/es/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/es/components/card/card_select/card_select.styles.js +25 -0
- package/optimize/es/components/card/card_select/index.js +8 -0
- package/optimize/es/components/card/checkable_card/checkable_card.js +14 -9
- package/optimize/es/components/card/checkable_card/checkable_card.styles.js +22 -0
- package/optimize/es/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/es/components/description_list/description_list_title.js +1 -1
- package/optimize/es/components/expression/expression.styles.js +13 -31
- package/optimize/es/components/facet/facet_button.js +5 -3
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/image/image_wrapper.styles.js +3 -3
- package/optimize/es/components/link/link.styles.js +7 -6
- package/optimize/es/components/loading/loading_chart.styles.js +16 -26
- package/optimize/es/components/loading/loading_content.styles.js +2 -2
- package/optimize/es/components/loading/loading_logo.styles.js +4 -4
- package/optimize/es/components/loading/loading_spinner.styles.js +6 -6
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/es/components/page/page_template.js +2 -2
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/page_template/outer/page_outer.styles.js +3 -1
- package/optimize/es/components/panel/panel.js +1 -1
- package/optimize/es/components/panel/{panel.style.js → panel.styles.js} +2 -2
- package/optimize/es/components/progress/progress.styles.js +2 -2
- package/optimize/es/components/text/text.styles.js +1 -1
- package/optimize/es/components/title/title.styles.js +2 -2
- package/optimize/es/components/toast/global_toast_list.styles.js +2 -2
- package/optimize/es/components/toast/toast.styles.js +4 -4
- package/optimize/es/components/tool_tip/tool_tip.js +7 -5
- package/optimize/es/global_styling/functions/logicals.js +16 -72
- package/optimize/es/global_styling/functions/typography.js +2 -1
- package/optimize/es/global_styling/mixins/_color.js +1 -1
- package/optimize/es/global_styling/mixins/_helpers.js +18 -5
- package/optimize/es/global_styling/mixins/_states.js +3 -4
- package/optimize/es/global_styling/mixins/_typography.js +3 -1
- package/optimize/es/global_styling/reset/global_styles.js +2 -1
- package/optimize/es/global_styling/utility/utility.js +10 -2
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +155 -16
- package/optimize/lib/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/optimize/lib/components/accordion/accordion.js +3 -1
- package/optimize/lib/components/accordion/accordion.styles.js +17 -26
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +6 -3
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/lib/components/beacon/beacon.styles.js +1 -1
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/lib/components/button/button.js +92 -103
- package/optimize/lib/components/button/button_display/_button_display.js +71 -25
- package/optimize/lib/components/button/button_display/_button_display.styles.js +7 -16
- package/optimize/lib/components/button/button_display/_button_display_content.js +6 -2
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +7 -17
- package/optimize/lib/components/button/button_empty/button_empty.js +59 -50
- package/optimize/lib/components/button/button_empty/index.js +0 -6
- package/optimize/lib/components/button/button_group/button_group.js +2 -10
- package/optimize/lib/components/button/button_group/button_group_button.js +15 -3
- package/optimize/lib/components/button/button_icon/button_icon.js +54 -41
- package/optimize/lib/components/call_out/call_out.styles.js +2 -1
- package/optimize/lib/components/card/card.js +97 -30
- package/optimize/lib/components/card/card.styles.js +146 -0
- package/optimize/lib/components/card/{card_select.js → card_select/card_select.js} +16 -14
- package/optimize/lib/components/card/card_select/card_select.styles.js +27 -0
- package/optimize/lib/components/card/card_select/index.js +19 -0
- package/optimize/lib/components/card/checkable_card/checkable_card.js +16 -9
- package/optimize/lib/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/optimize/lib/components/comment_list/comment_event.styles.js +1 -1
- package/optimize/lib/components/description_list/description_list_title.js +1 -1
- package/optimize/lib/components/expression/expression.styles.js +12 -30
- package/optimize/lib/components/facet/facet_button.js +4 -2
- package/optimize/lib/components/image/image_button.styles.js +1 -1
- package/optimize/lib/components/image/image_wrapper.styles.js +2 -2
- package/optimize/lib/components/link/link.styles.js +6 -5
- package/optimize/lib/components/loading/loading_chart.styles.js +16 -25
- package/optimize/lib/components/loading/loading_content.styles.js +1 -1
- package/optimize/lib/components/loading/loading_logo.styles.js +4 -4
- package/optimize/lib/components/loading/loading_spinner.styles.js +5 -5
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/optimize/lib/components/page/page_template.js +1 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +4 -1
- package/optimize/lib/components/panel/panel.js +1 -1
- package/{test-env/components/panel/panel.style.js → optimize/lib/components/panel/panel.styles.js} +1 -1
- package/optimize/lib/components/progress/progress.styles.js +2 -2
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/title/title.styles.js +1 -1
- package/optimize/lib/components/toast/global_toast_list.styles.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +4 -4
- package/optimize/lib/components/tool_tip/tool_tip.js +7 -5
- package/optimize/lib/global_styling/functions/logicals.js +28 -74
- package/optimize/lib/global_styling/functions/typography.js +3 -1
- package/optimize/lib/global_styling/mixins/_color.js +1 -1
- package/optimize/lib/global_styling/mixins/_helpers.js +24 -6
- package/optimize/lib/global_styling/mixins/_states.js +3 -4
- package/optimize/lib/global_styling/mixins/_typography.js +4 -1
- package/optimize/lib/global_styling/reset/global_styles.js +3 -1
- package/optimize/lib/global_styling/utility/utility.js +16 -3
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/package.json +2 -2
- package/src/components/badge/beta_badge/_beta_badge.scss +5 -1
- package/src/components/button/_index.scss +0 -1
- package/src/components/button/button_empty/_button_empty.scss +4 -48
- package/src/components/button/button_group/_button_group.scss +0 -1
- package/src/components/button/button_group/_button_group_button.scss +55 -83
- package/src/components/button/button_icon/_button_icon.scss +3 -103
- package/src/components/control_bar/_control_bar.scss +2 -6
- package/src/components/flyout/_flyout.scss +4 -1
- package/src/components/index.scss +0 -1
- package/src/global_styling/mixins/_button.scss +55 -11
- package/src/global_styling/mixins/_helpers.scss +9 -0
- package/src/global_styling/mixins/_index.scss +0 -1
- package/src/global_styling/utility/_utility.scss +0 -127
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -2
- package/src/themes/amsterdam/overrides/_header.scss +0 -2
- package/src/themes/amsterdam/overrides/_index.scss +0 -4
- package/test-env/components/accessibility/screen_reader_only/screen_reader_only.styles.js +3 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +4 -54
- package/test-env/components/accordion/accordion.js +3 -1
- package/test-env/components/accordion/accordion.styles.js +17 -26
- package/test-env/components/badge/beta_badge/beta_badge.js +16 -3
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/collapsed_item_actions.js +2 -3
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/beacon/beacon.styles.js +1 -1
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/test-env/components/button/button.js +111 -225
- package/test-env/components/button/button_display/_button_display.js +93 -32
- package/test-env/components/button/button_display/_button_display.styles.js +7 -16
- package/test-env/components/button/button_display/_button_display_content.js +7 -3
- package/test-env/components/button/button_display/_button_display_content.styles.js +7 -17
- package/test-env/components/button/button_empty/button_empty.js +64 -53
- package/test-env/components/button/button_empty/index.js +0 -6
- package/test-env/components/button/button_group/button_group.js +4 -12
- package/test-env/components/button/button_group/button_group_button.js +16 -4
- package/test-env/components/button/button_icon/button_icon.js +61 -42
- package/test-env/components/call_out/call_out.styles.js +2 -1
- package/test-env/components/card/card.js +172 -88
- package/test-env/components/card/card.styles.js +146 -0
- package/test-env/components/card/card_select/card_select.js +141 -0
- package/test-env/components/card/card_select/card_select.styles.js +27 -0
- package/test-env/components/card/card_select/index.js +19 -0
- package/test-env/components/card/checkable_card/checkable_card.js +16 -9
- package/test-env/components/card/checkable_card/checkable_card.styles.js +33 -0
- package/test-env/components/comment_list/comment_event.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +7 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +13 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +7 -6
- package/test-env/components/datagrid/data_grid.js +7 -6
- package/test-env/components/datagrid/utils/in_memory.js +7 -6
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +3 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +17 -1
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +11 -1
- package/test-env/components/description_list/description_list_title.js +1 -1
- package/test-env/components/expression/expression.styles.js +12 -30
- package/test-env/components/facet/facet_button.js +4 -3
- package/test-env/components/header/header_links/header_link.js +5 -3
- package/test-env/components/image/image_button.styles.js +1 -1
- package/test-env/components/image/image_wrapper.styles.js +2 -2
- package/test-env/components/link/link.styles.js +6 -5
- package/test-env/components/list_group/list_group.js +2 -1
- package/test-env/components/list_group/list_group_item.js +2 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +3 -2
- package/test-env/components/loading/loading_chart.styles.js +16 -25
- package/test-env/components/loading/loading_content.styles.js +1 -1
- package/test-env/components/loading/loading_logo.styles.js +4 -4
- package/test-env/components/loading/loading_spinner.styles.js +5 -5
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +2 -0
- package/test-env/components/modal/confirm_modal.js +1 -1
- package/test-env/components/notification/notification_event.js +5 -3
- package/test-env/components/notification/notification_event_read_button.js +2 -1
- package/test-env/components/page/page_template.js +1 -1
- package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
- package/test-env/components/page_template/outer/page_outer.styles.js +4 -1
- package/test-env/components/panel/panel.js +1 -1
- package/{lib/components/panel/panel.style.js → test-env/components/panel/panel.styles.js} +1 -1
- package/test-env/components/progress/progress.styles.js +2 -2
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/title/title.styles.js +1 -1
- package/test-env/components/toast/global_toast_list.styles.js +1 -1
- package/test-env/components/toast/toast.styles.js +4 -4
- package/test-env/components/tool_tip/icon_tip.js +11 -1
- package/test-env/components/tool_tip/tool_tip.js +18 -6
- package/test-env/global_styling/functions/logicals.js +28 -74
- package/test-env/global_styling/functions/typography.js +3 -1
- package/test-env/global_styling/mixins/_color.js +1 -1
- package/test-env/global_styling/mixins/_helpers.js +24 -6
- package/test-env/global_styling/mixins/_states.js +3 -4
- package/test-env/global_styling/mixins/_typography.js +4 -1
- package/test-env/global_styling/reset/global_styles.js +3 -1
- package/test-env/global_styling/utility/utility.js +16 -3
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +170 -17
- package/es/components/card/card_select.js +0 -176
- package/lib/components/card/card_select.js +0 -187
- package/src/components/button/_button.scss +0 -143
- package/src/components/button/button_icon/_variables.scss +0 -11
- package/src/components/card/_card.scss +0 -239
- package/src/components/card/_card_select.scss +0 -21
- package/src/components/card/_index.scss +0 -5
- package/src/components/card/_mixins.scss +0 -11
- package/src/components/card/_variables.scss +0 -25
- package/src/components/card/checkable_card/_checkable_card.scss +0 -29
- package/src/components/card/checkable_card/_index.scss +0 -1
- package/src/global_styling/mixins/_beta_badge.scss +0 -30
- package/src/themes/amsterdam/global_styling/mixins/_button.scss +0 -60
- package/src/themes/amsterdam/overrides/_button.scss +0 -119
- package/src/themes/amsterdam/overrides/_button_empty.scss +0 -20
- package/src/themes/amsterdam/overrides/_button_group.scss +0 -91
- package/src/themes/amsterdam/overrides/_card.scss +0 -6
- package/test-env/components/card/card_select.js +0 -184
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["
|
|
3
|
+
var _excluded = ["isSelected", "isDisabled", "disabled", "color", "children"];
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -10,29 +10,31 @@ var _excluded = ["className", "isSelected", "isDisabled", "color", "children"];
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { EuiI18n } from '../../i18n';
|
|
14
|
+
import { EuiButton } from '../../button/button';
|
|
15
|
+
import { euiCardSelectStyles } from './card_select.styles';
|
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
17
|
export var EuiCardSelect = function EuiCardSelect(_ref) {
|
|
18
|
-
var
|
|
19
|
-
_ref$isSelected = _ref.isSelected,
|
|
18
|
+
var _ref$isSelected = _ref.isSelected,
|
|
20
19
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
21
20
|
isDisabled = _ref.isDisabled,
|
|
21
|
+
disabled = _ref.disabled,
|
|
22
22
|
color = _ref.color,
|
|
23
23
|
children = _ref.children,
|
|
24
24
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
25
|
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
var styles = euiCardSelectStyles();
|
|
27
|
+
var baseCSS = [styles.euiCardSelect];
|
|
28
|
+
var child = euiCardSelectableText(isSelected, isDisabled || disabled, children);
|
|
29
|
+
return ___EmotionJSX(EuiButton, _extends({
|
|
30
|
+
css: baseCSS,
|
|
31
|
+
color: euiCardSelectableColor(color, isSelected),
|
|
32
|
+
size: "m",
|
|
33
|
+
isDisabled: isDisabled || disabled,
|
|
33
34
|
iconType: isSelected ? 'check' : undefined,
|
|
34
35
|
role: "switch",
|
|
35
|
-
"aria-checked": isSelected
|
|
36
|
+
"aria-checked": isSelected,
|
|
37
|
+
fullWidth: true
|
|
36
38
|
}, rest), child);
|
|
37
39
|
};
|
|
38
40
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
5
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
6
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
7
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
8
|
+
* Side Public License, v 1.
|
|
9
|
+
*/
|
|
10
|
+
import { css } from '@emotion/react';
|
|
11
|
+
|
|
12
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
|
+
name: "g3lgnd-euiCardSelect",
|
|
14
|
+
styles: "transform:none!important;label:euiCardSelect;"
|
|
15
|
+
} : {
|
|
16
|
+
name: "g3lgnd-euiCardSelect",
|
|
17
|
+
styles: "transform:none!important;label:euiCardSelect;",
|
|
18
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export var euiCardSelectStyles = function euiCardSelectStyles() {
|
|
22
|
+
return {
|
|
23
|
+
euiCardSelect: _ref
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
export { EuiCardSelect, euiCardSelectableColor } from './card_select';
|
|
@@ -13,6 +13,8 @@ import React, { useRef } from 'react';
|
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { EuiRadio, EuiCheckbox } from '../../form';
|
|
15
15
|
import { EuiSplitPanel } from '../../panel';
|
|
16
|
+
import { useEuiTheme } from '../../../services';
|
|
17
|
+
import { euiCheckableCardStyles } from './checkable_card.styles';
|
|
16
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
19
|
export var EuiCheckableCard = function EuiCheckableCard(_ref) {
|
|
18
20
|
var children = _ref.children,
|
|
@@ -27,12 +29,14 @@ export var EuiCheckableCard = function EuiCheckableCard(_ref) {
|
|
|
27
29
|
hasBorder = _ref$hasBorder === void 0 ? true : _ref$hasBorder,
|
|
28
30
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
31
|
|
|
32
|
+
var euiThemeContext = useEuiTheme();
|
|
33
|
+
var styles = euiCheckableCardStyles(euiThemeContext);
|
|
34
|
+
var baseStyles = [styles.euiCheckableCard, checked && !disabled && styles.isChecked];
|
|
35
|
+
var labelStyles = [styles.label.euiCheckableCard__label, disabled && styles.label.isDisabled];
|
|
36
|
+
var childStyles = [styles.euiCheckableCard__children];
|
|
30
37
|
var id = rest.id;
|
|
31
38
|
var labelEl = useRef(null);
|
|
32
|
-
var classes = classNames('euiCheckableCard',
|
|
33
|
-
'euiCheckableCard-isChecked': checked,
|
|
34
|
-
'euiCheckableCard-isDisabled': disabled
|
|
35
|
-
}, className);
|
|
39
|
+
var classes = classNames('euiCheckableCard', className);
|
|
36
40
|
var checkableElement;
|
|
37
41
|
|
|
38
42
|
if (checkableType === 'radio') {
|
|
@@ -47,9 +51,7 @@ export var EuiCheckableCard = function EuiCheckableCard(_ref) {
|
|
|
47
51
|
}, rest));
|
|
48
52
|
}
|
|
49
53
|
|
|
50
|
-
var labelClasses = classNames('euiCheckableCard__label'
|
|
51
|
-
'euiCheckableCard__label-isDisabled': disabled
|
|
52
|
-
});
|
|
54
|
+
var labelClasses = classNames('euiCheckableCard__label');
|
|
53
55
|
|
|
54
56
|
var onChangeAffordance = function onChangeAffordance() {
|
|
55
57
|
if (labelEl.current) {
|
|
@@ -62,7 +64,8 @@ export var EuiCheckableCard = function EuiCheckableCard(_ref) {
|
|
|
62
64
|
hasShadow: hasShadow,
|
|
63
65
|
hasBorder: hasBorder,
|
|
64
66
|
direction: "row",
|
|
65
|
-
className: classes
|
|
67
|
+
className: classes,
|
|
68
|
+
css: baseStyles
|
|
66
69
|
}, ___EmotionJSX(EuiSplitPanel.Inner, {
|
|
67
70
|
// Bubbles up the change event when clicking on the whole div for extra affordance
|
|
68
71
|
onClick: disabled ? undefined : onChangeAffordance,
|
|
@@ -71,10 +74,12 @@ export var EuiCheckableCard = function EuiCheckableCard(_ref) {
|
|
|
71
74
|
}, checkableElement), ___EmotionJSX(EuiSplitPanel.Inner, null, ___EmotionJSX("label", {
|
|
72
75
|
ref: labelEl,
|
|
73
76
|
className: labelClasses,
|
|
77
|
+
css: labelStyles,
|
|
74
78
|
htmlFor: id,
|
|
75
79
|
"aria-describedby": children ? "".concat(id, "-details") : undefined
|
|
76
80
|
}, label), children && ___EmotionJSX("div", {
|
|
77
81
|
id: "".concat(id, "-details"),
|
|
78
|
-
className: "euiCheckableCard__children"
|
|
82
|
+
className: "euiCheckableCard__children",
|
|
83
|
+
css: childStyles
|
|
79
84
|
}, children)));
|
|
80
85
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
import { css } from '@emotion/react';
|
|
9
|
+
import { euiCanAnimate, euiPaddingSize, logicalCSS, logicals } from '../../../global_styling';
|
|
10
|
+
export var euiCheckableCardStyles = function euiCheckableCardStyles(euiThemeContext) {
|
|
11
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
12
|
+
var padding = euiPaddingSize(euiThemeContext, 'm');
|
|
13
|
+
return {
|
|
14
|
+
euiCheckableCard: /*#__PURE__*/css(euiCanAnimate, "{transition:border-color ", euiTheme.animation.normal, " ease-in;};label:euiCheckableCard;"),
|
|
15
|
+
isChecked: /*#__PURE__*/css("border-color:", euiTheme.colors.primary, ";;label:isChecked;"),
|
|
16
|
+
label: {
|
|
17
|
+
euiCheckableCard__label: /*#__PURE__*/css("cursor:pointer;display:block;", logicals.width, ":calc(100% + (", padding, " * 2));padding:", padding, ";margin:-", padding, ";;label:euiCheckableCard__label;"),
|
|
18
|
+
isDisabled: /*#__PURE__*/css("color:", euiTheme.colors.disabledText, ";cursor:not-allowed;;label:isDisabled;")
|
|
19
|
+
},
|
|
20
|
+
euiCheckableCard__children: /*#__PURE__*/css(logicalCSS('margin-top', euiTheme.size.base), ";;label:euiCheckableCard__children;")
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -53,7 +53,7 @@ export var euiCommentEventHeaderStyles = function euiCommentEventHeaderStyles(_r
|
|
|
53
53
|
return {
|
|
54
54
|
euiCommentEvent__header: /*#__PURE__*/css(";label:euiCommentEvent__header;"),
|
|
55
55
|
// types
|
|
56
|
-
regular: /*#__PURE__*/css("background:", euiTheme.colors.lightestShade, ";border-bottom
|
|
56
|
+
regular: /*#__PURE__*/css("background:", euiTheme.colors.lightestShade, ";", logicalCSS('border-bottom', euiTheme.border.thin), " padding:", euiTheme.size.s, ";;label:regular;"),
|
|
57
57
|
// variants
|
|
58
58
|
hasEventColor: _ref2,
|
|
59
59
|
// Children
|
|
@@ -30,7 +30,7 @@ export var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
30
30
|
|
|
31
31
|
var theme = useEuiTheme();
|
|
32
32
|
var styles = euiDescriptionListTitleStyles(theme);
|
|
33
|
-
var conditionalStyles = compressed && textStyle
|
|
33
|
+
var conditionalStyles = compressed && textStyle !== 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
|
|
34
34
|
|
|
35
35
|
switch (type) {
|
|
36
36
|
case 'inline':
|
|
@@ -10,42 +10,24 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
import { css } from '@emotion/react';
|
|
13
|
-
import { euiFontSize, logicalCSS, euiTextBreakWord, euiTextTruncate } from '../../global_styling';
|
|
13
|
+
import { euiFontSize, logicalCSS, logicalTextAlignCSS, euiTextBreakWord, euiTextTruncate } from '../../global_styling';
|
|
14
14
|
import { transparentize } from '../../services/color';
|
|
15
15
|
|
|
16
16
|
var _colorCSS = function _colorCSS(color) {
|
|
17
17
|
return "\n &:focus {\n background-color: ".concat(transparentize(color, 0.1), ";\n }\n ");
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
21
|
-
name: "6151l-base",
|
|
22
|
-
styles: "border-bottom-style:solid;label:base;"
|
|
23
|
-
} : {
|
|
24
|
-
name: "6151l-base",
|
|
25
|
-
styles: "border-bottom-style:solid;label:base;",
|
|
26
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var _ref4 = process.env.NODE_ENV === "production" ? {
|
|
30
|
-
name: "1372s1f-truncate",
|
|
31
|
-
styles: "max-width:100%;label:truncate;"
|
|
32
|
-
} : {
|
|
33
|
-
name: "1372s1f-truncate",
|
|
34
|
-
styles: "max-width:100%;label:truncate;",
|
|
35
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
36
|
-
};
|
|
37
|
-
|
|
38
20
|
export var euiExpressionStyles = function euiExpressionStyles(euiThemeContext) {
|
|
39
21
|
var euiTheme = euiThemeContext.euiTheme;
|
|
40
22
|
return {
|
|
41
|
-
euiExpression: /*#__PURE__*/css(euiTextBreakWord(), ";font-family:", euiTheme.font.familyCode, ";border-bottom
|
|
23
|
+
euiExpression: /*#__PURE__*/css(euiTextBreakWord(), ";display:inline-block;font-family:", euiTheme.font.familyCode, ";", logicalCSS('border-bottom', "".concat(euiTheme.border.width.thick, " solid transparent")), " ", euiFontSize(euiThemeContext, 's'), ";", logicalTextAlignCSS('left'), " padding:", parseFloat(euiTheme.size.s) / 2, "px 0;color:", euiTheme.colors.text, ";&:focus{", logicalCSS('border-bottom-style', 'solid'), ";}&+.euiExpression{", logicalCSS('margin-left', euiTheme.size.s), ";};label:euiExpression;"),
|
|
42
24
|
// Variants
|
|
43
|
-
columns: /*#__PURE__*/css("border-color:transparent;border-bottom-style
|
|
44
|
-
truncate:
|
|
25
|
+
columns: /*#__PURE__*/css("border-color:transparent;", logicalCSS('border-bottom-style', 'solid'), " ", logicalCSS('margin-bottom', euiTheme.size.xs), " ", logicalCSS('width', '100%'), " display:flex;padding:", euiTheme.size.xs, ";border-radius:", euiTheme.size.xs, ";;label:columns;"),
|
|
26
|
+
truncate: /*#__PURE__*/css(logicalCSS('max-width', '100%'), ";;label:truncate;"),
|
|
45
27
|
// States
|
|
46
|
-
isClickable: /*#__PURE__*/css("cursor:pointer;border-bottom
|
|
28
|
+
isClickable: /*#__PURE__*/css("cursor:pointer;", logicalCSS('border-bottom', euiTheme.border.editable), " &[class*='-columns']{background-color:", euiTheme.colors.lightestShade, ";&:focus,&:hover:not(:disabled){[class*='euiExpression__description'],[class*='euiExpression__value']{text-decoration:underline;}}};label:isClickable;"),
|
|
47
29
|
isActive: {
|
|
48
|
-
base:
|
|
30
|
+
base: /*#__PURE__*/css(logicalCSS('border-bottom-style', 'solid'), ";;label:base;"),
|
|
49
31
|
subdued: /*#__PURE__*/css("border-color:", euiTheme.colors.subduedText, ";;label:subdued;"),
|
|
50
32
|
primary: /*#__PURE__*/css("border-color:", euiTheme.colors.primary, ";;label:primary;"),
|
|
51
33
|
success: /*#__PURE__*/css("border-color:", euiTheme.colors.success, ";;label:success;"),
|
|
@@ -71,8 +53,8 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
71
53
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
72
54
|
};
|
|
73
55
|
|
|
74
|
-
export var euiExpressionDescriptionStyles = function euiExpressionDescriptionStyles(
|
|
75
|
-
var euiTheme =
|
|
56
|
+
export var euiExpressionDescriptionStyles = function euiExpressionDescriptionStyles(_ref3) {
|
|
57
|
+
var euiTheme = _ref3.euiTheme;
|
|
76
58
|
return {
|
|
77
59
|
euiExpression__description: /*#__PURE__*/css(";label:euiExpression__description;"),
|
|
78
60
|
truncate: /*#__PURE__*/css(euiTextTruncate(), " display:inline-block;vertical-align:bottom;;label:truncate;"),
|
|
@@ -83,7 +65,7 @@ export var euiExpressionDescriptionStyles = function euiExpressionDescriptionSty
|
|
|
83
65
|
danger: /*#__PURE__*/css("color:", euiTheme.colors.dangerText, ";;label:danger;"),
|
|
84
66
|
accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
|
|
85
67
|
isUppercase: _ref2,
|
|
86
|
-
columns: /*#__PURE__*/css("
|
|
68
|
+
columns: /*#__PURE__*/css(logicalTextAlignCSS('right'), " ", logicalCSS('margin-right', euiTheme.size.s), ";flex-shrink:0;;label:columns;")
|
|
87
69
|
};
|
|
88
70
|
};
|
|
89
71
|
|
|
@@ -96,8 +78,8 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
96
78
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
97
79
|
};
|
|
98
80
|
|
|
99
|
-
export var euiExpressionValueStyles = function euiExpressionValueStyles(
|
|
100
|
-
_objectDestructuringEmpty(
|
|
81
|
+
export var euiExpressionValueStyles = function euiExpressionValueStyles(_ref4) {
|
|
82
|
+
_objectDestructuringEmpty(_ref4);
|
|
101
83
|
|
|
102
84
|
return {
|
|
103
85
|
euiExpression__value: /*#__PURE__*/css(";label:euiExpression__value;"),
|
|
@@ -105,8 +87,8 @@ export var euiExpressionValueStyles = function euiExpressionValueStyles(_ref6) {
|
|
|
105
87
|
columns: _ref
|
|
106
88
|
};
|
|
107
89
|
};
|
|
108
|
-
export var euiExpressionIconStyles = function euiExpressionIconStyles(
|
|
109
|
-
var euiTheme =
|
|
90
|
+
export var euiExpressionIconStyles = function euiExpressionIconStyles(_ref5) {
|
|
91
|
+
var euiTheme = _ref5.euiTheme;
|
|
110
92
|
return {
|
|
111
93
|
euiExpression__icon: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.xs), ";;label:euiExpression__icon;"),
|
|
112
94
|
columns: /*#__PURE__*/css(logicalCSS('margin-top', euiTheme.size.xs), ";;label:columns;")
|
|
@@ -17,7 +17,7 @@ import { EuiInnerText } from '../inner_text';
|
|
|
17
17
|
import { cloneElementWithCss } from '../../services/theme/clone_element';
|
|
18
18
|
import { useEuiTheme } from '../../services';
|
|
19
19
|
import { euiFacetButtonStyles, euiFacetButtonTextStyles, euiFacetButtonIconStyles, euiFacetButtonQuantityStyles, euiFacetButtonLoadingSpinnerStyles } from './facet_button.styles';
|
|
20
|
-
import { EuiButtonDisplay } from '../button/button_display/_button_display';
|
|
20
|
+
import { EuiButtonDisplay, isButtonDisabled } from '../button/button_display/_button_display';
|
|
21
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
22
22
|
export var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
23
23
|
var children = _ref.children,
|
|
@@ -34,7 +34,10 @@ export var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
|
34
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
35
35
|
|
|
36
36
|
// If in the loading state, force disabled to true
|
|
37
|
-
isDisabled =
|
|
37
|
+
isDisabled = isButtonDisabled({
|
|
38
|
+
isDisabled: isDisabled,
|
|
39
|
+
isLoading: isLoading
|
|
40
|
+
});
|
|
38
41
|
var selection = isSelected ? 'isSelected' : 'unSelected';
|
|
39
42
|
var classes = classNames('euiFacetButton', className);
|
|
40
43
|
var theme = useEuiTheme();
|
|
@@ -79,7 +82,6 @@ export var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
|
79
82
|
return ___EmotionJSX(EuiButtonDisplay, _extends({
|
|
80
83
|
className: classes,
|
|
81
84
|
css: cssStyles,
|
|
82
|
-
element: "button",
|
|
83
85
|
isDisabled: isDisabled,
|
|
84
86
|
ref: buttonRef,
|
|
85
87
|
title: rest['aria-label'] || innerText,
|
|
@@ -14,7 +14,7 @@ export var euiImageButtonStyles = function euiImageButtonStyles(euiThemeContext)
|
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
15
|
return {
|
|
16
16
|
// Base
|
|
17
|
-
euiImageButton: /*#__PURE__*/css("position:relative;cursor:pointer;text-align:match-parent;line-height:0;&::before{opacity:0;content:'';pointer-events:none;position:absolute;
|
|
17
|
+
euiImageButton: /*#__PURE__*/css("position:relative;cursor:pointer;text-align:match-parent;line-height:0;&::before{opacity:0;content:'';pointer-events:none;position:absolute;inset:0;", euiCanAnimate, "{transition:opacity ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}}&:hover,&:focus{&::before{opacity:1;}[class*='euiImageButton__icon']{opacity:1;}}&:focus{", euiFocusRing(euiThemeContext, 'outset'), ";};label:euiImageButton;"),
|
|
18
18
|
fullWidth: /*#__PURE__*/css(logicalCSS('width', '100%'), ";;label:fullWidth;"),
|
|
19
19
|
shadowHover: /*#__PURE__*/css("&::before{", euiShadow(euiThemeContext, 's'), ";};label:shadowHover;"),
|
|
20
20
|
hasShadowHover: /*#__PURE__*/css("&::before{", euiShadow(euiThemeContext, 'm'), ";};label:hasShadowHover;")
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { logicalCSS, logicalTextAlignCSS, logicalSide } from '../../global_styling';
|
|
11
|
+
import { euiBreakpoint, logicalCSS, logicalTextAlignCSS, logicalSide } from '../../global_styling';
|
|
12
12
|
|
|
13
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
14
|
name: "gacnmc-allowFullScreen",
|
|
@@ -33,8 +33,8 @@ export var euiImageWrapperStyles = function euiImageWrapperStyles(euiThemeContex
|
|
|
33
33
|
// Floats
|
|
34
34
|
// 1: Logical properties/values in `float` is currently not yet supported by all browsers w/o flags
|
|
35
35
|
// @see https://caniuse.com/mdn-css_properties_float_flow_relative_values for when we can remove left/right fallbacks
|
|
36
|
-
left: /*#__PURE__*/css(
|
|
37
|
-
right: /*#__PURE__*/css(
|
|
36
|
+
left: /*#__PURE__*/css(euiBreakpoint(euiThemeContext, ['m', 'xl']), "{float:left;float:", logicalSide.left, ";", logicalCSS('margin-left', '0'), ";", logicalCSS('margin-top', '0'), ";};label:left;"),
|
|
37
|
+
right: /*#__PURE__*/css(euiBreakpoint(euiThemeContext, ['m', 'xl']), "{float:right;float:", logicalSide.right, ";", logicalCSS('margin-right', '0'), ";", logicalCSS('margin-top', '0'), ";};label:right;"),
|
|
38
38
|
// Sizes
|
|
39
39
|
fullWidth: /*#__PURE__*/css(logicalCSS('width', '100%'), ";;label:fullWidth;")
|
|
40
40
|
};
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { euiFocusRing, logicalCSS } from '../../global_styling';
|
|
11
|
+
import { euiFocusRing, logicalCSS, logicalTextAlignCSS } from '../../global_styling';
|
|
12
12
|
|
|
13
13
|
var _colorCSS = function _colorCSS(color) {
|
|
14
14
|
return "\n color: ".concat(color, ";\n\n &:hover,\n &:focus,\n &:target {\n text-decoration: underline;\n }\n\n &:target {\n color: darken(").concat(color, ", 10%);\n }\n ");
|
|
@@ -20,8 +20,9 @@ export var euiLinkHoverCSS = function euiLinkHoverCSS() {
|
|
|
20
20
|
export var euiLinkFocusCSS = function euiLinkFocusCSS(euiTheme) {
|
|
21
21
|
return "\n text-decoration: underline;\n text-decoration-thickness: ".concat(euiTheme.border.width.thick, " !important;\n ");
|
|
22
22
|
};
|
|
23
|
-
export var euiLinkCSS = function euiLinkCSS(
|
|
24
|
-
|
|
23
|
+
export var euiLinkCSS = function euiLinkCSS(euiThemeContext) {
|
|
24
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
25
|
+
return "\n font-weight: ".concat(euiTheme.font.weight.medium, ";\n ").concat(logicalTextAlignCSS('left'), "\n\n &:hover {\n ").concat(euiLinkHoverCSS(), "\n }\n\n &:focus {\n ").concat(euiFocusRing(euiThemeContext, 'outset'), "\n ").concat(euiLinkFocusCSS(euiTheme), "\n }\n ");
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -33,10 +34,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
33
34
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
34
35
|
};
|
|
35
36
|
|
|
36
|
-
export var euiLinkStyles = function euiLinkStyles(
|
|
37
|
-
var euiTheme =
|
|
37
|
+
export var euiLinkStyles = function euiLinkStyles(euiThemeContext) {
|
|
38
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
38
39
|
return {
|
|
39
|
-
euiLink: /*#__PURE__*/css(euiLinkCSS(
|
|
40
|
+
euiLink: /*#__PURE__*/css(euiLinkCSS(euiThemeContext), " user-select:text;&[target='_blank']{position:relative;};label:euiLink;"),
|
|
40
41
|
disabled: _ref,
|
|
41
42
|
// Color styles
|
|
42
43
|
primary: /*#__PURE__*/css(_colorCSS(euiTheme.colors.primaryText), ";label:primary;"),
|
|
@@ -15,7 +15,7 @@ import { css, keyframes } from '@emotion/react';
|
|
|
15
15
|
import { euiPaletteColorBlind, shadeOrTint } from '../../services';
|
|
16
16
|
import { euiCanAnimate, logicalCSS } from '../../global_styling';
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
19
19
|
name: "yovxj7-euiLoadingChart",
|
|
20
20
|
styles: "overflow:hidden;display:inline-flex;label:euiLoadingChart;"
|
|
21
21
|
} : {
|
|
@@ -24,38 +24,28 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
24
24
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
export var euiLoadingChartStyles = function euiLoadingChartStyles(
|
|
28
|
-
var euiTheme =
|
|
27
|
+
export var euiLoadingChartStyles = function euiLoadingChartStyles(_ref2) {
|
|
28
|
+
var euiTheme = _ref2.euiTheme;
|
|
29
29
|
return {
|
|
30
|
-
euiLoadingChart:
|
|
31
|
-
m: /*#__PURE__*/css(
|
|
32
|
-
l: /*#__PURE__*/css(
|
|
33
|
-
xl: /*#__PURE__*/css(
|
|
30
|
+
euiLoadingChart: _ref,
|
|
31
|
+
m: /*#__PURE__*/css(logicalCSS('height', euiTheme.size.base), " gap:", euiTheme.size.xxs, ";;label:m;"),
|
|
32
|
+
l: /*#__PURE__*/css(logicalCSS('height', euiTheme.size.l), " gap:", euiTheme.size.xxs, ";;label:l;"),
|
|
33
|
+
xl: /*#__PURE__*/css(logicalCSS('height', euiTheme.size.xl), " gap:", euiTheme.size.xs, ";;label:xl;")
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
name: "decz5u-euiLoadingChart__bar",
|
|
39
|
-
styles: "height:100%;display:inline-block;label:euiLoadingChart__bar;"
|
|
40
|
-
} : {
|
|
41
|
-
name: "decz5u-euiLoadingChart__bar",
|
|
42
|
-
styles: "height:100%;display:inline-block;label:euiLoadingChart__bar;",
|
|
43
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref4) {
|
|
47
|
-
var euiTheme = _ref4.euiTheme;
|
|
36
|
+
export var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref3) {
|
|
37
|
+
var euiTheme = _ref3.euiTheme;
|
|
48
38
|
return {
|
|
49
|
-
euiLoadingChart__bar:
|
|
50
|
-
m: /*#__PURE__*/css(
|
|
51
|
-
l: /*#__PURE__*/css(
|
|
52
|
-
xl: /*#__PURE__*/css(
|
|
39
|
+
euiLoadingChart__bar: /*#__PURE__*/css(logicalCSS('height', '100%'), " display:inline-block;;label:euiLoadingChart__bar;"),
|
|
40
|
+
m: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.xxs), " ", logicalCSS('margin-bottom', euiTheme.size.s), ";;label:m;"),
|
|
41
|
+
l: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.xs), " ", logicalCSS('margin-bottom', euiTheme.size.m), ";;label:l;"),
|
|
42
|
+
xl: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.s), " ", logicalCSS('margin-bottom', euiTheme.size.base), ";;label:xl;")
|
|
53
43
|
};
|
|
54
44
|
};
|
|
55
45
|
var barAnimation = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translateY(0);\n }\n\n 50% {\n transform: translateY(66%);\n }\n\n 100% {\n transform: translateY(0);\n }\n"])));
|
|
56
|
-
export var _barIndex = function _barIndex(index, mono,
|
|
57
|
-
var euiTheme =
|
|
58
|
-
colorMode =
|
|
46
|
+
export var _barIndex = function _barIndex(index, mono, _ref4) {
|
|
47
|
+
var euiTheme = _ref4.euiTheme,
|
|
48
|
+
colorMode = _ref4.colorMode;
|
|
59
49
|
var backgroundColor = mono ? shadeOrTint(euiTheme.colors.lightShade, index * 0.04, colorMode) : euiPaletteColorBlind()[index];
|
|
60
50
|
return /*#__PURE__*/css("background-color:", backgroundColor, ";transform:translateY(", 22 * index, "%);", euiCanAnimate, "{animation:", barAnimation, " 1s ", ".".concat(index, "s"), " infinite;}");
|
|
61
51
|
};
|
|
@@ -10,7 +10,7 @@ var _templateObject;
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
import { css, keyframes } from '@emotion/react';
|
|
13
|
-
import { euiCanAnimate } from '../../global_styling';
|
|
13
|
+
import { euiCanAnimate, logicalCSS } from '../../global_styling';
|
|
14
14
|
import { COLOR_MODES_STANDARD, shade, tint } from '../../services';
|
|
15
15
|
var loadingContentGradient = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translateX(-53%);\n }\n\n 100% {\n transform: translateX(0);\n }\n"])));
|
|
16
16
|
export var euiLoadingContentStyles = function euiLoadingContentStyles(_ref) {
|
|
@@ -19,6 +19,6 @@ export var euiLoadingContentStyles = function euiLoadingContentStyles(_ref) {
|
|
|
19
19
|
var gradientStartStop = colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.lightShade, 0.12) : tint(euiTheme.colors.lightShade, 0.65);
|
|
20
20
|
var gradientMiddle = colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.lightShade, 0.24) : tint(euiTheme.colors.lightShade, 0.8);
|
|
21
21
|
return {
|
|
22
|
-
euiLoadingContent__singleLine: /*#__PURE__*/css("display:block;width
|
|
22
|
+
euiLoadingContent__singleLine: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), " ", logicalCSS('height', euiTheme.size.base), " border-radius:", euiTheme.border.radius.medium, ";background:", gradientStartStop, ";overflow:hidden;&:not(:last-child){", logicalCSS('margin-bottom', euiTheme.size.s), ";}&:last-child:not(:only-child){", logicalCSS('width', '75%'), ";}&::after{content:'';display:block;", logicalCSS('width', '220%'), " ", logicalCSS('height', '100%'), " background:linear-gradient(\n 137deg,\n ", gradientStartStop, " 45%,\n ", gradientMiddle, " 50%,\n ", gradientStartStop, " 55%\n );", euiCanAnimate, "{animation:", loadingContentGradient, " 1.5s ", euiTheme.animation.resistance, " infinite;}};label:euiLoadingContent__singleLine;")
|
|
23
23
|
};
|
|
24
24
|
};
|
|
@@ -22,15 +22,15 @@ var loadingPadding = {
|
|
|
22
22
|
export var euiLoadingLogoStyles = function euiLoadingLogoStyles(_ref) {
|
|
23
23
|
var euiTheme = _ref.euiTheme;
|
|
24
24
|
return {
|
|
25
|
-
euiLoadingLogo: /*#__PURE__*/css("position:relative;display:inline-block;", euiCanAnimate, "{&:before,&:after{position:absolute;content:'';
|
|
25
|
+
euiLoadingLogo: /*#__PURE__*/css("position:relative;display:inline-block;", euiCanAnimate, "{&:before,&:after{position:absolute;content:'';inline-size:90%;inset-inline-start:5%;border-radius:50%;opacity:0.2;z-index:1;}&:before{box-shadow:0 0 ", euiTheme.size.s, " ", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsateAndFade, " ", euiTheme.animation.resistance, " infinite;}&:after{background-color:", euiTheme.colors.fullShade, ";animation:1s ", loadingPulsate, " ", euiTheme.animation.resistance, " infinite;}};label:euiLoadingLogo;"),
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* 1. Requires pixel math for animation
|
|
29
29
|
* 2. Add a half the amount of animation distance padding to the top to give it more room
|
|
30
30
|
*/
|
|
31
|
-
m: /*#__PURE__*/css(euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.m], ";}&:before,&:after{
|
|
32
|
-
l: /*#__PURE__*/css(euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.l], ";}&:before,&:after{
|
|
33
|
-
xl: /*#__PURE__*/css(euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.xl], ";}&:before,&:after{
|
|
31
|
+
m: /*#__PURE__*/css(euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.m], ";}&:before,&:after{block-size:", euiTheme.base * 0.25, "px;inset-block-end:-", euiTheme.size.xs, ";};label:m;"),
|
|
32
|
+
l: /*#__PURE__*/css(euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.l], ";}&:before,&:after{block-size:", euiTheme.base * 0.375, "px;inset-block-end:-", euiTheme.size.s, ";};label:l;"),
|
|
33
|
+
xl: /*#__PURE__*/css(euiCanAnimate, "{padding-block-start:", euiTheme.size[loadingPadding.xl], ";}&:before,&:after{block-size:", euiTheme.base * 0.5, "px;inset-block-end:-", euiTheme.size.m, ";};label:xl;")
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
export var euiLoadingLogoIconStyles = function euiLoadingLogoIconStyles(_ref2) {
|
|
@@ -10,7 +10,7 @@ var _templateObject;
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
import { css, keyframes } from '@emotion/react';
|
|
13
|
-
import { euiCanAnimate } from '../../global_styling';
|
|
13
|
+
import { euiCanAnimate, logicalSizeCSS } from '../../global_styling';
|
|
14
14
|
|
|
15
15
|
var _loadingSpinner = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(359deg);\n }\n"])));
|
|
16
16
|
|
|
@@ -31,10 +31,10 @@ export var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(_ref, colo
|
|
|
31
31
|
return {
|
|
32
32
|
euiLoadingSpinner: /*#__PURE__*/css("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.thick, ";", spinnerColorsCSS((color === null || color === void 0 ? void 0 : color.border) || euiTheme.colors.lightShade, (color === null || color === void 0 ? void 0 : color.highlight) || euiTheme.colors.primary), ";", euiCanAnimate, "{animation:", _loadingSpinner, " 0.6s infinite linear;};label:euiLoadingSpinner;"),
|
|
33
33
|
// Sizes
|
|
34
|
-
s: /*#__PURE__*/css(
|
|
35
|
-
m: /*#__PURE__*/css(
|
|
36
|
-
l: /*#__PURE__*/css(
|
|
37
|
-
xl: /*#__PURE__*/css(
|
|
38
|
-
xxl: /*#__PURE__*/css(
|
|
34
|
+
s: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size[spinnerSizes.s], euiTheme.size[spinnerSizes.s]), " border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:s;"),
|
|
35
|
+
m: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size[spinnerSizes.m], euiTheme.size[spinnerSizes.m]), " border-width:calc(", euiTheme.border.width.thin, " * 1.5);;label:m;"),
|
|
36
|
+
l: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size[spinnerSizes.l], euiTheme.size[spinnerSizes.l]), ";;label:l;"),
|
|
37
|
+
xl: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size[spinnerSizes.xl], euiTheme.size[spinnerSizes.xl]), ";;label:xl;"),
|
|
38
|
+
xxl: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size[spinnerSizes.xxl], euiTheme.size[spinnerSizes.xxl]), ";;label:xxl;")
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -173,6 +173,7 @@ export var EuiMarkdownEditorToolbar = /*#__PURE__*/forwardRef(function (_ref2, r
|
|
|
173
173
|
icon: button.iconType
|
|
174
174
|
}));
|
|
175
175
|
})) : null), isPreviewing ? ___EmotionJSX(EuiButtonEmpty, {
|
|
176
|
+
"data-test-subj": "markdown_editor_edit_button",
|
|
176
177
|
iconType: "editorCodeBlock",
|
|
177
178
|
color: "text",
|
|
178
179
|
size: "s",
|
|
@@ -182,6 +183,7 @@ export var EuiMarkdownEditorToolbar = /*#__PURE__*/forwardRef(function (_ref2, r
|
|
|
182
183
|
token: "euiMarkdownEditorToolbar.editor",
|
|
183
184
|
default: "Editor"
|
|
184
185
|
})) : ___EmotionJSX(EuiButtonEmpty, {
|
|
186
|
+
"data-test-subj": "markdown_editor_preview_button",
|
|
185
187
|
iconType: "eye",
|
|
186
188
|
color: "text",
|
|
187
189
|
size: "s",
|
|
@@ -25,7 +25,7 @@ import { EuiPageContent_Deprecated as EuiPageContent, EuiPageContentBody_Depreca
|
|
|
25
25
|
import { EuiBottomBar } from '../bottom_bar';
|
|
26
26
|
import { useIsWithinBreakpoints } from '../../services';
|
|
27
27
|
import { EuiFlexGroup, EuiFlexItem } from '../flex';
|
|
28
|
-
import { useEuiPaddingSize } from '../../global_styling';
|
|
28
|
+
import { useEuiPaddingSize, logicalCSS } from '../../global_styling';
|
|
29
29
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
30
30
|
export var TEMPLATES = ['default', 'centeredBody', 'centeredContent', 'empty'];
|
|
31
31
|
|
|
@@ -61,7 +61,7 @@ export var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref
|
|
|
61
61
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
62
62
|
|
|
63
63
|
// BWC page header margin to match padding
|
|
64
|
-
var headerMargin = /*#__PURE__*/css(
|
|
64
|
+
var headerMargin = /*#__PURE__*/css(logicalCSS('margin-bottom', useEuiPaddingSize(paddingSize)), ";label:headerMargin;");
|
|
65
65
|
/**
|
|
66
66
|
* Full height ~madness~ logic
|
|
67
67
|
*/
|
|
@@ -15,8 +15,8 @@ export var euiPageInnerStyles = function euiPageInnerStyles(euiThemeContext) {
|
|
|
15
15
|
euiPageInner: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", logicalCSS('max-width', '100%'), " ", logicalCSS('min-width', '0'), ";;label:euiPageInner;"),
|
|
16
16
|
panelled: /*#__PURE__*/css("background:", euiBackgroundColor(euiThemeContext, 'plain'), ";", euiShadow(euiThemeContext, 'm'), ";;label:panelled;"),
|
|
17
17
|
border: {
|
|
18
|
-
top: /*#__PURE__*/css(
|
|
19
|
-
left: /*#__PURE__*/css(
|
|
18
|
+
top: /*#__PURE__*/css(logicalCSS('border-top', "".concat(euiThemeContext.euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:top;"),
|
|
19
|
+
left: /*#__PURE__*/css(logicalCSS('border-left', "".concat(euiThemeContext.euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:left;")
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -8,6 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
* Side Public License, v 1.
|
|
9
9
|
*/
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { logicalCSS } from '../../../global_styling';
|
|
11
12
|
|
|
12
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
14
|
name: "15mvjmo-row",
|
|
@@ -39,7 +40,8 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
39
40
|
export var euiPageOuterStyles = function euiPageOuterStyles(_ref4) {
|
|
40
41
|
var euiTheme = _ref4.euiTheme;
|
|
41
42
|
return {
|
|
42
|
-
euiPageOuter: /*#__PURE__*/css("display:flex;background-color:", euiTheme.colors.body, ";flex-shrink:0;max-width
|
|
43
|
+
euiPageOuter: /*#__PURE__*/css("display:flex;background-color:", euiTheme.colors.body, ";flex-shrink:0;", logicalCSS('max-width', '100%' // Ensures Firefox doesn't expand width beyond bounds
|
|
44
|
+
), ";;label:euiPageOuter;"),
|
|
43
45
|
// Grow
|
|
44
46
|
grow: _ref3,
|
|
45
47
|
// Direction
|
|
@@ -15,7 +15,7 @@ import classNames from 'classnames';
|
|
|
15
15
|
import { useEuiTheme } from '../../services';
|
|
16
16
|
import { useEuiBackgroundColorCSS, useEuiPaddingCSS, BACKGROUND_COLORS, PADDING_SIZES } from '../../global_styling';
|
|
17
17
|
import { keysOf } from '../common';
|
|
18
|
-
import { euiPanelStyles } from './panel.
|
|
18
|
+
import { euiPanelStyles } from './panel.styles';
|
|
19
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
20
20
|
export var SIZES = PADDING_SIZES; // Exported padding sizes and class names necessary for EuiPopover and EuiCard.
|
|
21
21
|
// Which currently will only maintain support for the original values until conversion.
|