@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
|
@@ -209,13 +209,15 @@ EuiNotificationEvent.propTypes = {
|
|
|
209
209
|
onClick: _propTypes.default.func,
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
|
-
* Any of
|
|
212
|
+
* Any of the named color palette options.
|
|
213
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
213
214
|
*/
|
|
214
215
|
|
|
215
216
|
/**
|
|
216
|
-
* Any of
|
|
217
|
+
* Any of the named color palette options.
|
|
218
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
217
219
|
*/
|
|
218
|
-
color: _propTypes.default.
|
|
220
|
+
color: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]),
|
|
219
221
|
size: _propTypes.default.oneOf(["xs", "s", "m"]),
|
|
220
222
|
|
|
221
223
|
/**
|
|
@@ -61,8 +61,9 @@ exports.EuiNotificationEventReadButton = EuiNotificationEventReadButton;
|
|
|
61
61
|
EuiNotificationEventReadButton.propTypes = {
|
|
62
62
|
/**
|
|
63
63
|
* Any of the named color palette options.
|
|
64
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
64
65
|
*/
|
|
65
|
-
color: _propTypes.default.
|
|
66
|
+
color: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["ghost"])]),
|
|
66
67
|
"aria-label": _propTypes.default.string,
|
|
67
68
|
"aria-labelledby": _propTypes.default.string,
|
|
68
69
|
|
|
@@ -82,7 +82,7 @@ var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref) {
|
|
|
82
82
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
83
83
|
|
|
84
84
|
// BWC page header margin to match padding
|
|
85
|
-
var headerMargin = /*#__PURE__*/(0, _react2.css)(
|
|
85
|
+
var headerMargin = /*#__PURE__*/(0, _react2.css)((0, _global_styling.logicalCSS)('margin-bottom', (0, _global_styling.useEuiPaddingSize)(paddingSize)), ";label:headerMargin;");
|
|
86
86
|
/**
|
|
87
87
|
* Full height ~madness~ logic
|
|
88
88
|
*/
|
|
@@ -26,8 +26,8 @@ var euiPageInnerStyles = function euiPageInnerStyles(euiThemeContext) {
|
|
|
26
26
|
euiPageInner: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", (0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.logicalCSS)('min-width', '0'), ";;label:euiPageInner;"),
|
|
27
27
|
panelled: /*#__PURE__*/(0, _react.css)("background:", (0, _global_styling.euiBackgroundColor)(euiThemeContext, 'plain'), ";", (0, _mixins.euiShadow)(euiThemeContext, 'm'), ";;label:panelled;"),
|
|
28
28
|
border: {
|
|
29
|
-
top: /*#__PURE__*/(0, _react.css)(
|
|
30
|
-
left: /*#__PURE__*/(0, _react.css)(
|
|
29
|
+
top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "".concat(euiThemeContext.euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:top;"),
|
|
30
|
+
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', "".concat(euiThemeContext.euiTheme.border.width.thin, " solid ").concat(borderColor)), ";;label:left;")
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
};
|
|
@@ -7,6 +7,8 @@ exports.euiPageOuterStyles = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
|
+
var _global_styling = require("../../../global_styling");
|
|
11
|
+
|
|
10
12
|
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)."; }
|
|
11
13
|
|
|
12
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -39,7 +41,8 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
39
41
|
var euiPageOuterStyles = function euiPageOuterStyles(_ref4) {
|
|
40
42
|
var euiTheme = _ref4.euiTheme;
|
|
41
43
|
return {
|
|
42
|
-
euiPageOuter: /*#__PURE__*/(0, _react.css)("display:flex;background-color:", euiTheme.colors.body, ";flex-shrink:0;max-width
|
|
44
|
+
euiPageOuter: /*#__PURE__*/(0, _react.css)("display:flex;background-color:", euiTheme.colors.body, ";flex-shrink:0;", (0, _global_styling.logicalCSS)('max-width', '100%' // Ensures Firefox doesn't expand width beyond bounds
|
|
45
|
+
), ";;label:euiPageOuter;"),
|
|
43
46
|
// Grow
|
|
44
47
|
grow: _ref3,
|
|
45
48
|
// Direction
|
package/{optimize/lib/components/panel/panel.style.js → lib/components/panel/panel.styles.js}
RENAMED
|
@@ -44,7 +44,7 @@ var euiPanelStyles = function euiPanelStyles(euiThemeContext) {
|
|
|
44
44
|
m: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";;label:m;")
|
|
45
45
|
},
|
|
46
46
|
// Setup interactive behavior
|
|
47
|
-
isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;width
|
|
47
|
+
isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), ";}&:hover,&:focus{", (0, _mixins.euiShadow)(euiThemeContext, 'l'), ";transform:translateY(-2px);cursor:pointer;};label:isClickable;")
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -46,7 +46,7 @@ var nativeVsIndeterminateColor = function nativeVsIndeterminateColor(color, isNa
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var nonStaticPositioning = function nonStaticPositioning(isNative) {
|
|
49
|
-
return "\n top
|
|
49
|
+
return "\n ".concat((0, _global_styling.logicalCSS)('top', 0), "\n ").concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('right', 0), "\n background-color: transparent;\n ").concat(isNative ? "\n &::-webkit-progress-bar {\n background-color: transparent;\n }" : '', "\n");
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
52
|
* Animations
|
|
@@ -78,7 +78,7 @@ var euiProgressStyles = function euiProgressStyles(_ref3, isNative) {
|
|
|
78
78
|
// An indeterminate bar has an unreliable end time. Because of a Firefox animation issue,
|
|
79
79
|
// we apply this style to a <div> instead of a <progress> element.
|
|
80
80
|
// See https://css-tricks.com/html5-progress-element/ for more info.
|
|
81
|
-
indeterminate: /*#__PURE__*/(0, _react.css)("&:before{position:absolute;content:'';", (0, _global_styling.logicalCSS)('width', '100%'), " top
|
|
81
|
+
indeterminate: /*#__PURE__*/(0, _react.css)("&:before{position:absolute;content:'';", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('bottom', 0), " ", (0, _global_styling.logicalCSS)('left', 0), " transform:scaleX(0) translateX(0%);animation:", euiIndeterminateAnimation, " 1s ", euiTheme.animation.resistance, " infinite;", _global_styling.euiCantAnimate, "{animation-duration:2s;animation-timing-function:linear;}};label:indeterminate;"),
|
|
82
82
|
// Sizes
|
|
83
83
|
xs: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.xxs), ";;label:xs;"),
|
|
84
84
|
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.xs), ";;label:s;"),
|
|
@@ -62,7 +62,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
62
62
|
|
|
63
63
|
var euiTitleStyles = function euiTitleStyles(euiThemeContext) {
|
|
64
64
|
return {
|
|
65
|
-
euiTitle: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), " &+&{margin-top
|
|
65
|
+
euiTitle: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextBreakWord)(), " &+&{", (0, _global_styling.logicalCSS)('margin-top', euiThemeContext.euiTheme.size.l), ";};label:euiTitle;"),
|
|
66
66
|
uppercase: _ref,
|
|
67
67
|
// Sizes
|
|
68
68
|
xxxs: /*#__PURE__*/(0, _react.css)(euiTitle(euiThemeContext, 'xxxs'), ";;label:xxxs;"),
|
|
@@ -23,10 +23,10 @@ var euiToastStyles = function euiToastStyles(euiThemeContext) {
|
|
|
23
23
|
// Elements
|
|
24
24
|
euiToast__closeButton: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', euiTheme.size.base), ";", (0, _global_styling.logicalCSS)('right', euiTheme.size.base), ";;label:euiToast__closeButton;"),
|
|
25
25
|
// Variants
|
|
26
|
-
primary: /*#__PURE__*/(0, _react.css)(
|
|
27
|
-
success: /*#__PURE__*/(0, _react.css)(
|
|
28
|
-
warning: /*#__PURE__*/(0, _react.css)(
|
|
29
|
-
danger: /*#__PURE__*/(0, _react.css)(
|
|
26
|
+
primary: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "2px solid ".concat(euiTheme.colors.primary)), ";;label:primary;"),
|
|
27
|
+
success: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "2px solid ".concat(euiTheme.colors.success)), ";;label:success;"),
|
|
28
|
+
warning: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "2px solid ".concat(euiTheme.colors.warning)), ";;label:warning;"),
|
|
29
|
+
danger: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', "2px solid ".concat(euiTheme.colors.danger)), ";;label:danger;")
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -54,10 +54,20 @@ var EuiIconTip = function EuiIconTip(_ref) {
|
|
|
54
54
|
exports.EuiIconTip = EuiIconTip;
|
|
55
55
|
EuiIconTip.propTypes = {
|
|
56
56
|
/**
|
|
57
|
-
* Passes onto the the trigger.
|
|
57
|
+
* Passes onto the span wrapping the trigger.
|
|
58
58
|
*/
|
|
59
59
|
anchorClassName: _propTypes.default.string,
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Passes onto the span wrapping the trigger.
|
|
63
|
+
*/
|
|
64
|
+
anchorProps: _propTypes.default.shape({
|
|
65
|
+
className: _propTypes.default.string,
|
|
66
|
+
"aria-label": _propTypes.default.string,
|
|
67
|
+
"data-test-subj": _propTypes.default.string,
|
|
68
|
+
css: _propTypes.default.any
|
|
69
|
+
}),
|
|
70
|
+
|
|
61
71
|
/**
|
|
62
72
|
* Passes onto the tooltip itself, not the trigger.
|
|
63
73
|
*/
|
|
@@ -27,7 +27,7 @@ var _resize_observer = require("../observer/resize_observer");
|
|
|
27
27
|
|
|
28
28
|
var _react3 = require("@emotion/react");
|
|
29
29
|
|
|
30
|
-
var _excluded = ["children", "className", "anchorClassName", "content", "title", "delay", "display"];
|
|
30
|
+
var _excluded = ["children", "className", "anchorClassName", "anchorProps", "content", "title", "delay", "display"];
|
|
31
31
|
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
33
|
|
|
@@ -291,6 +291,7 @@ var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
291
291
|
children = _this$props.children,
|
|
292
292
|
className = _this$props.className,
|
|
293
293
|
anchorClassName = _this$props.anchorClassName,
|
|
294
|
+
anchorProps = _this$props.anchorProps,
|
|
294
295
|
content = _this$props.content,
|
|
295
296
|
title = _this$props.title,
|
|
296
297
|
delay = _this$props.delay,
|
|
@@ -303,7 +304,7 @@ var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
303
304
|
toolTipStyles = _this$state.toolTipStyles,
|
|
304
305
|
visible = _this$state.visible;
|
|
305
306
|
var classes = (0, _classnames.default)('euiToolTip', positionsToClassNameMap[this.state.calculatedPosition], className);
|
|
306
|
-
var anchorClasses = (0, _classnames.default)('euiToolTipAnchor', display ? displayToClassNameMap[display] : null, anchorClassName);
|
|
307
|
+
var anchorClasses = (0, _classnames.default)('euiToolTipAnchor', display ? displayToClassNameMap[display] : null, anchorClassName, anchorProps === null || anchorProps === void 0 ? void 0 : anchorProps.className);
|
|
307
308
|
var tooltip;
|
|
308
309
|
|
|
309
310
|
if (visible && (content || title)) {
|
|
@@ -328,14 +329,15 @@ var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
328
329
|
}
|
|
329
330
|
|
|
330
331
|
var anchor = // eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
331
|
-
(0, _react3.jsx)("span", {
|
|
332
|
+
(0, _react3.jsx)("span", _extends({
|
|
332
333
|
ref: function ref(anchor) {
|
|
333
334
|
return _this2.anchor = anchor;
|
|
334
|
-
}
|
|
335
|
+
}
|
|
336
|
+
}, anchorProps, {
|
|
335
337
|
className: anchorClasses,
|
|
336
338
|
onMouseOver: this.showToolTip,
|
|
337
339
|
onMouseOut: this.onMouseOut
|
|
338
|
-
}, /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread({
|
|
340
|
+
}), /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread({
|
|
339
341
|
onFocus: function onFocus(e) {
|
|
340
342
|
_this2.onFocus();
|
|
341
343
|
|
|
@@ -366,10 +368,20 @@ _defineProperty(EuiToolTip, "defaultProps", {
|
|
|
366
368
|
|
|
367
369
|
EuiToolTip.propTypes = {
|
|
368
370
|
/**
|
|
369
|
-
* Passes onto the the trigger.
|
|
371
|
+
* Passes onto the span wrapping the trigger.
|
|
370
372
|
*/
|
|
371
373
|
anchorClassName: _propTypes.default.string,
|
|
372
374
|
|
|
375
|
+
/**
|
|
376
|
+
* Passes onto the span wrapping the trigger.
|
|
377
|
+
*/
|
|
378
|
+
anchorProps: _propTypes.default.shape({
|
|
379
|
+
className: _propTypes.default.string,
|
|
380
|
+
"aria-label": _propTypes.default.string,
|
|
381
|
+
"data-test-subj": _propTypes.default.string,
|
|
382
|
+
css: _propTypes.default.any
|
|
383
|
+
}),
|
|
384
|
+
|
|
373
385
|
/**
|
|
374
386
|
* The in-view trigger for your tooltip.
|
|
375
387
|
*/
|
|
@@ -7,9 +7,9 @@ exports.logicals = exports.logicalTextAlignStyle = exports.logicalTextAlignCSS =
|
|
|
7
7
|
|
|
8
8
|
var _common = require("../../components/common");
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
var _logicals = _interopRequireDefault(require("./logicals.json"));
|
|
11
11
|
|
|
12
|
-
function
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
15
|
|
|
@@ -30,76 +30,7 @@ var logicalSide = {
|
|
|
30
30
|
exports.logicalSide = logicalSide;
|
|
31
31
|
var LOGICAL_SIDES = (0, _common.keysOf)(logicalSide);
|
|
32
32
|
exports.LOGICAL_SIDES = LOGICAL_SIDES;
|
|
33
|
-
var
|
|
34
|
-
'margin-left': 'margin-inline-start',
|
|
35
|
-
'margin-right': 'margin-inline-end',
|
|
36
|
-
'margin-top': 'margin-block-start',
|
|
37
|
-
'margin-bottom': 'margin-block-end',
|
|
38
|
-
'margin-horizontal': 'margin-inline',
|
|
39
|
-
'margin-vertical': 'margin-block'
|
|
40
|
-
};
|
|
41
|
-
var logicalPaddings = {
|
|
42
|
-
'padding-left': 'padding-inline-start',
|
|
43
|
-
'padding-right': 'padding-inline-end',
|
|
44
|
-
'padding-top': 'padding-block-start',
|
|
45
|
-
'padding-bottom': 'padding-block-end',
|
|
46
|
-
'padding-horizontal': 'padding-inline',
|
|
47
|
-
'padding-vertical': 'padding-block'
|
|
48
|
-
};
|
|
49
|
-
var logicalPosition = {
|
|
50
|
-
top: 'inset-block-start',
|
|
51
|
-
right: 'inset-inline-end',
|
|
52
|
-
bottom: 'inset-block-end',
|
|
53
|
-
left: 'inset-inline-start',
|
|
54
|
-
horizontal: 'inset-block',
|
|
55
|
-
vertical: 'inset-inline',
|
|
56
|
-
inset: 'inset'
|
|
57
|
-
};
|
|
58
|
-
var logicalSize = {
|
|
59
|
-
height: 'block-size',
|
|
60
|
-
width: 'inline-size',
|
|
61
|
-
'max-height': 'max-block-size',
|
|
62
|
-
'max-width': 'max-inline-size',
|
|
63
|
-
'min-height': 'min-block-size',
|
|
64
|
-
'min-width': 'min-inline-size'
|
|
65
|
-
};
|
|
66
|
-
var logicalOverflow = {
|
|
67
|
-
'overflow-x': 'overflow-inline',
|
|
68
|
-
'overflow-y': 'overflow-block'
|
|
69
|
-
};
|
|
70
|
-
var logicalBorders = {
|
|
71
|
-
'border-horizontal': 'border-inline',
|
|
72
|
-
'border-horizontal-color': 'border-inline-color',
|
|
73
|
-
'border-horizontal-width': 'border-inline-width',
|
|
74
|
-
'border-horizontal-style': 'border-inline-style',
|
|
75
|
-
'border-vertical': 'border-block',
|
|
76
|
-
'border-vertical-color': 'border-block-color',
|
|
77
|
-
'border-vertical-width': 'border-block-width',
|
|
78
|
-
'border-vertical-style': 'border-block-style',
|
|
79
|
-
'border-bottom': 'border-block-end',
|
|
80
|
-
'border-bottom-color': 'border-block-end-color',
|
|
81
|
-
'border-bottom-style': 'border-block-end-style',
|
|
82
|
-
'border-bottom-width': 'border-block-end-width',
|
|
83
|
-
'border-top': 'border-block-start',
|
|
84
|
-
'border-top-color': 'border-block-start-color',
|
|
85
|
-
'border-top-style': 'border-block-start-style',
|
|
86
|
-
'border-top-width': 'border-block-start-width',
|
|
87
|
-
'border-right': 'border-inline-end',
|
|
88
|
-
'border-right-color': 'border-inline-end-color',
|
|
89
|
-
'border-right-style': 'border-inline-end-style',
|
|
90
|
-
'border-right-width': 'border-inline-end-width',
|
|
91
|
-
'border-left': 'border-inline-start',
|
|
92
|
-
'border-left-color': 'border-inline-start-color',
|
|
93
|
-
'border-left-style': 'border-inline-start-style',
|
|
94
|
-
'border-left-width': 'border-inline-start-width',
|
|
95
|
-
'border-top-left-radius': 'border-start-start-radius',
|
|
96
|
-
'border-top-right-radius': 'border-start-end-radius',
|
|
97
|
-
'border-bottom-left-radius': 'border-end-start-radius',
|
|
98
|
-
'border-bottom-right-radius': 'border-end-end-radius'
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
var logicals = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, logicalMargins), logicalPaddings), logicalPosition), logicalSize), logicalOverflow), logicalBorders);
|
|
102
|
-
|
|
33
|
+
var logicals = _logicals.default;
|
|
103
34
|
exports.logicals = logicals;
|
|
104
35
|
var LOGICAL_PROPERTIES = (0, _common.keysOf)(logicals);
|
|
105
36
|
exports.LOGICAL_PROPERTIES = LOGICAL_PROPERTIES;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"height": "block-size",
|
|
3
|
+
"width": "inline-size",
|
|
4
|
+
"max-height": "max-block-size",
|
|
5
|
+
"max-width": "max-inline-size",
|
|
6
|
+
"min-height": "min-block-size",
|
|
7
|
+
"min-width": "min-inline-size",
|
|
8
|
+
"top": "inset-block-start",
|
|
9
|
+
"right": "inset-inline-end",
|
|
10
|
+
"bottom": "inset-block-end",
|
|
11
|
+
"left": "inset-inline-start",
|
|
12
|
+
"horizontal": "inset-block",
|
|
13
|
+
"vertical": "inset-inline",
|
|
14
|
+
"margin-left": "margin-inline-start",
|
|
15
|
+
"margin-right": "margin-inline-end",
|
|
16
|
+
"margin-top": "margin-block-start",
|
|
17
|
+
"margin-bottom": "margin-block-end",
|
|
18
|
+
"margin-horizontal": "margin-inline",
|
|
19
|
+
"margin-vertical": "margin-block",
|
|
20
|
+
"padding-left": "padding-inline-start",
|
|
21
|
+
"padding-right": "padding-inline-end",
|
|
22
|
+
"padding-top": "padding-block-start",
|
|
23
|
+
"padding-bottom": "padding-block-end",
|
|
24
|
+
"padding-horizontal": "padding-inline",
|
|
25
|
+
"padding-vertical": "padding-block",
|
|
26
|
+
"overflow-x": "overflow-inline",
|
|
27
|
+
"overflow-y": "overflow-block",
|
|
28
|
+
"border-horizontal": "border-inline",
|
|
29
|
+
"border-horizontal-color": "border-inline-color",
|
|
30
|
+
"border-horizontal-width": "border-inline-width",
|
|
31
|
+
"border-horizontal-style": "border-inline-style",
|
|
32
|
+
"border-vertical": "border-block",
|
|
33
|
+
"border-vertical-color": "border-block-color",
|
|
34
|
+
"border-vertical-width": "border-block-width",
|
|
35
|
+
"border-vertical-style": "border-block-style",
|
|
36
|
+
"border-bottom": "border-block-end",
|
|
37
|
+
"border-bottom-color": "border-block-end-color",
|
|
38
|
+
"border-bottom-style": "border-block-end-style",
|
|
39
|
+
"border-bottom-width": "border-block-end-width",
|
|
40
|
+
"border-top": "border-block-start",
|
|
41
|
+
"border-top-color": "border-block-start-color",
|
|
42
|
+
"border-top-style": "border-block-start-style",
|
|
43
|
+
"border-top-width": "border-block-start-width",
|
|
44
|
+
"border-right": "border-inline-end",
|
|
45
|
+
"border-right-color": "border-inline-end-color",
|
|
46
|
+
"border-right-style": "border-inline-end-style",
|
|
47
|
+
"border-right-width": "border-inline-end-width",
|
|
48
|
+
"border-left": "border-inline-start",
|
|
49
|
+
"border-left-color": "border-inline-start-color",
|
|
50
|
+
"border-left-style": "border-inline-start-style",
|
|
51
|
+
"border-left-width": "border-inline-start-width",
|
|
52
|
+
"border-top-left-radius": "border-start-start-radius",
|
|
53
|
+
"border-top-right-radius": "border-start-end-radius",
|
|
54
|
+
"border-bottom-left-radius": "border-end-start-radius",
|
|
55
|
+
"border-bottom-right-radius": "border-end-end-radius"
|
|
56
|
+
}
|
|
@@ -7,6 +7,8 @@ exports.euiFontSizeFromScale = euiFontSizeFromScale;
|
|
|
7
7
|
exports.euiLineHeightFromBaseline = euiLineHeightFromBaseline;
|
|
8
8
|
exports.euiTextShift = void 0;
|
|
9
9
|
|
|
10
|
+
var _logicals = require("./logicals");
|
|
11
|
+
|
|
10
12
|
/*
|
|
11
13
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
14
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -93,7 +95,7 @@ var euiTextShift = function euiTextShift() {
|
|
|
93
95
|
var fontWeight = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'bold';
|
|
94
96
|
var attribute = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'data-text';
|
|
95
97
|
var euiTheme = arguments.length > 2 ? arguments[2] : undefined;
|
|
96
|
-
return "\n &::after {\n display: block;\n content: attr(".concat(attribute, ");\n font-weight: ").concat(euiTheme.font.weight[fontWeight], ";\n height
|
|
98
|
+
return "\n &::after {\n display: block;\n content: attr(".concat(attribute, ");\n font-weight: ").concat(euiTheme.font.weight[fontWeight], ";\n ").concat((0, _logicals.logicalCSS)('height', 0), "\n overflow: hidden;\n visibility: hidden;\n }");
|
|
97
99
|
};
|
|
98
100
|
|
|
99
101
|
exports.euiTextShift = euiTextShift;
|
|
@@ -32,7 +32,7 @@ var euiBackgroundColor = function euiBackgroundColor(_ref, color) {
|
|
|
32
32
|
if (color === 'plain') {
|
|
33
33
|
return (0, _services.transparentize)(euiTheme.colors.ghost, 0.2);
|
|
34
34
|
} else if (color === 'subdued') {
|
|
35
|
-
return (0, _services.transparentize)(euiTheme.colors.lightShade, 0.2);
|
|
35
|
+
return colorMode === 'DARK' ? (0, _services.transparentize)(euiTheme.colors.lightShade, 0.4) : (0, _services.transparentize)(euiTheme.colors.lightShade, 0.2);
|
|
36
36
|
} else {
|
|
37
37
|
return (0, _services.transparentize)(euiTheme.colors[color], 0.1);
|
|
38
38
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useEuiYScrollWithShadows = exports.useEuiYScroll = exports.useEuiXScrollWithShadows = exports.useEuiXScroll = exports.useEuiScrollBar = exports.useEuiOverflowScroll = exports.euiYScrollWithShadows = exports.euiYScroll = exports.euiXScrollWithShadows = exports.euiXScroll = exports.euiScrollBarStyles = exports.euiOverflowScroll = exports.euiFullHeight = void 0;
|
|
6
|
+
exports.useEuiYScrollWithShadows = exports.useEuiYScroll = exports.useEuiXScrollWithShadows = exports.useEuiXScroll = exports.useEuiScrollBar = exports.useEuiOverflowScroll = exports.euiYScrollWithShadows = exports.euiYScroll = exports.euiXScrollWithShadows = exports.euiXScroll = exports.euiSupportsHas = exports.euiScrollBarStyles = exports.euiOverflowScroll = exports.euiFullHeight = void 0;
|
|
7
7
|
|
|
8
8
|
var _theme = require("../../services/theme");
|
|
9
9
|
|
|
@@ -207,5 +207,12 @@ exports.useEuiOverflowScroll = useEuiOverflowScroll;
|
|
|
207
207
|
var euiFullHeight = function euiFullHeight() {
|
|
208
208
|
return "\n ".concat((0, _functions.logicalCSS)('height', '100%'), "\n flex: 1 1 auto;\n overflow: hidden;\n");
|
|
209
209
|
};
|
|
210
|
+
/**
|
|
211
|
+
* A constant storing the support for the `:has()` selector through a
|
|
212
|
+
* media query that will only apply the content it is supported.
|
|
213
|
+
*/
|
|
214
|
+
|
|
210
215
|
|
|
211
|
-
exports.euiFullHeight = euiFullHeight;
|
|
216
|
+
exports.euiFullHeight = euiFullHeight;
|
|
217
|
+
var euiSupportsHas = '@supports(selector(:has(p)))';
|
|
218
|
+
exports.euiSupportsHas = euiSupportsHas;
|
|
@@ -11,6 +11,8 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
|
|
12
12
|
var _mixins = require("../mixins");
|
|
13
13
|
|
|
14
|
+
var _functions = require("../functions");
|
|
15
|
+
|
|
14
16
|
var _color = require("../../services/color");
|
|
15
17
|
|
|
16
18
|
var _theme = require("../../services/theme");
|
|
@@ -49,7 +51,7 @@ var EuiGlobalStyles = function EuiGlobalStyles(_ref) {
|
|
|
49
51
|
* Final styles
|
|
50
52
|
*/
|
|
51
53
|
|
|
52
|
-
var styles = /*#__PURE__*/(0, _react2.css)(_reset.resetStyles, " html{", scrollbarStyles, " ", fontReset, " text-size-adjust:100%;font-kerning:normal;height
|
|
54
|
+
var styles = /*#__PURE__*/(0, _react2.css)(_reset.resetStyles, " html{", scrollbarStyles, " ", fontReset, " text-size-adjust:100%;font-kerning:normal;", (0, _functions.logicalCSS)('height', '100%'), " background-color:", colors.body, ";color:", colors.text, ";}code,pre,kbd,samp{font-family:", font.familyCode, ";}input,textarea,select{", fontReset, ";}button{font-family:", font.family, ";}em{font-style:italic;}strong{font-weight:", font.weight.bold, ";}*:focus{", (0, _mixins.euiFocusRing)(euiThemeContext), ";}::selection{background:", (0, _color.transparentize)(colors.primary, colorMode === 'LIGHT' ? 0.1 : 0.2), ";}a{color:", colors.primaryText, ";&,&:hover,&:focus{text-decoration:none;}}.euiBody-hasPortalContent{position:relative;};label:styles;");
|
|
53
55
|
return (0, _react2.jsx)(_react2.Global, {
|
|
54
56
|
styles: styles
|
|
55
57
|
});
|