@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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "HackerOne",
|
|
3
|
+
"name": "@elastic/react-datepicker",
|
|
4
|
+
"description": "Forked from Hacker0x01/react-datepicker for accessibility - simple and reusable datepicker component for React",
|
|
5
|
+
"private": true,
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/Hacker0x01/react-datepicker",
|
|
9
|
+
"main": "lib",
|
|
10
|
+
"files": [
|
|
11
|
+
"*.md",
|
|
12
|
+
"dist",
|
|
13
|
+
"datepicker-lib",
|
|
14
|
+
"es",
|
|
15
|
+
"src/stylesheets"
|
|
16
|
+
],
|
|
17
|
+
"resolutions": {
|
|
18
|
+
"**/diff": "^3.5.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"babel-core": "^6.26.0",
|
|
22
|
+
"babel-eslint": "^8.0.2",
|
|
23
|
+
"babel-loader": "^6.2.10",
|
|
24
|
+
"babel-plugin-add-react-displayname": "^0.0.4",
|
|
25
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
26
|
+
"babel-plugin-react-transform": "^3.0.0",
|
|
27
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
28
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.4.10",
|
|
29
|
+
"babel-polyfill": "^6.26.0",
|
|
30
|
+
"babel-preset-airbnb": "^2.4.0",
|
|
31
|
+
"babel-preset-env": "^1.6.1",
|
|
32
|
+
"babel-preset-react": "^6.24.1",
|
|
33
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
34
|
+
"chai": "^3.5.0",
|
|
35
|
+
"cross-env": "^5.1.1",
|
|
36
|
+
"css-loader": "^1.0.0",
|
|
37
|
+
"enzyme": "^3.10.0",
|
|
38
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
|
39
|
+
"eslint": "^4.18.2",
|
|
40
|
+
"eslint-plugin-import": "^2.8.0",
|
|
41
|
+
"eslint-plugin-node": "^5.2.1",
|
|
42
|
+
"eslint-plugin-promise": "^3.6.0",
|
|
43
|
+
"eslint-plugin-react": "^7.4.0",
|
|
44
|
+
"express": "^4.16.2",
|
|
45
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
46
|
+
"flow-bin": "^0.68.0",
|
|
47
|
+
"highlight.js": "^9.12.0",
|
|
48
|
+
"husky": "^0.14.3",
|
|
49
|
+
"isparta-loader": "^2.0.0",
|
|
50
|
+
"karma": "^1.7.1",
|
|
51
|
+
"karma-chai": "^0.1.0",
|
|
52
|
+
"karma-coverage": "^1.1.1",
|
|
53
|
+
"karma-firefox-launcher": "^1.0.1",
|
|
54
|
+
"karma-mocha": "^1.3.0",
|
|
55
|
+
"karma-sinon": "^1.0.5",
|
|
56
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
57
|
+
"karma-webpack": "^2.0.5",
|
|
58
|
+
"lint-staged": "^6.0.0",
|
|
59
|
+
"lodash": "^4.17.13",
|
|
60
|
+
"mocha": "^4.0.1",
|
|
61
|
+
"moment": "^2.20.1",
|
|
62
|
+
"node-sass": "^4.13.1",
|
|
63
|
+
"npm-run-all": "^4.1.2",
|
|
64
|
+
"prettier": "^1.9.2",
|
|
65
|
+
"react": "^16.2.0",
|
|
66
|
+
"react-docgen": "^2.20.0",
|
|
67
|
+
"react-dom": "^16.2.0",
|
|
68
|
+
"react-test-renderer": "^16.8.6",
|
|
69
|
+
"react-transform-hmr": "^1.0.4",
|
|
70
|
+
"rimraf": "^2.6.2",
|
|
71
|
+
"rollup": "^0.62.0",
|
|
72
|
+
"rollup-plugin-babel": "^3.0.2",
|
|
73
|
+
"rollup-plugin-commonjs": "^8.2.6",
|
|
74
|
+
"rollup-plugin-node-resolve": "^3.0.0",
|
|
75
|
+
"rollup-plugin-uglify": "^2.0.1",
|
|
76
|
+
"sass-lint": "^1.12.1",
|
|
77
|
+
"sass-loader": "^4.1.1",
|
|
78
|
+
"sinon": "^4.1.2",
|
|
79
|
+
"style-loader": "^0.19.0",
|
|
80
|
+
"webpack": "^1.13.0",
|
|
81
|
+
"webpack-dev-middleware": "^1.12.0",
|
|
82
|
+
"webpack-dev-server": "^3.1.14",
|
|
83
|
+
"webpack-hot-middleware": "^2.20.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"moment": "^2.20.0",
|
|
87
|
+
"react": "^16.0.0",
|
|
88
|
+
"react-dom": "^16.0.0"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"classnames": "^2.2.5",
|
|
92
|
+
"focus-trap-react": "^4.0.0",
|
|
93
|
+
"json-loader": "^0.5.7",
|
|
94
|
+
"prop-types": "^15.6.0",
|
|
95
|
+
"react-onclickoutside": "^6.7.1",
|
|
96
|
+
"react-popper": "^1.0.2"
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"eslint": "eslint {src,test,docs-site/src}/**/*.{js,jsx} *.js",
|
|
100
|
+
"flow": "flow",
|
|
101
|
+
"precommit": "lint-staged",
|
|
102
|
+
"sass-lint": "sass-lint --config .sass-lint.yml 'src/stylesheets/*.scss, docs-site/src/*.scss' -i 'docs-site/src/higlight.scss, docs-site/src/reset.scss'",
|
|
103
|
+
"lint": "run-p eslint flow sass-lint",
|
|
104
|
+
"start": "cross-env MODULES=false node server.js",
|
|
105
|
+
"test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
|
|
106
|
+
"prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
|
|
107
|
+
"prepare": "npm run build",
|
|
108
|
+
"prebuild": "rimraf es lib dist",
|
|
109
|
+
"build": "cross-env NODE_ENV=production run-p build:** && run-p css:**",
|
|
110
|
+
"build-dev": "cross-env NODE_ENV=development run-p build:** && run-p css:**",
|
|
111
|
+
"css:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker.scss > lib/react-datepicker.min.css",
|
|
112
|
+
"css:modules:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.min.css",
|
|
113
|
+
"css:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker.scss > lib/react-datepicker.css",
|
|
114
|
+
"css:modules:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.css",
|
|
115
|
+
"build:es": "cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o ../react-datepicker.js",
|
|
116
|
+
"build:docs": "cross-env MODULES=false webpack --config webpack.docs.config.js"
|
|
117
|
+
},
|
|
118
|
+
"lint-staged": {
|
|
119
|
+
"*.{js,jsx,json,css,scss,md}": [
|
|
120
|
+
"prettier --write",
|
|
121
|
+
"git add"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -615,10 +615,20 @@ EuiSuperDatePickerInternal.propTypes = {
|
|
|
615
615
|
*/
|
|
616
616
|
toolTipProps: PropTypes.shape({
|
|
617
617
|
/**
|
|
618
|
-
* Passes onto the the trigger.
|
|
618
|
+
* Passes onto the span wrapping the trigger.
|
|
619
619
|
*/
|
|
620
620
|
anchorClassName: PropTypes.string,
|
|
621
621
|
|
|
622
|
+
/**
|
|
623
|
+
* Passes onto the span wrapping the trigger.
|
|
624
|
+
*/
|
|
625
|
+
anchorProps: PropTypes.shape({
|
|
626
|
+
className: PropTypes.string,
|
|
627
|
+
"aria-label": PropTypes.string,
|
|
628
|
+
"data-test-subj": PropTypes.string,
|
|
629
|
+
css: PropTypes.any
|
|
630
|
+
}),
|
|
631
|
+
|
|
622
632
|
/**
|
|
623
633
|
* The in-view trigger for your tooltip.
|
|
624
634
|
*/
|
|
@@ -801,6 +811,12 @@ EuiSuperDatePicker.propTypes = {
|
|
|
801
811
|
showTooltip: PropTypes.bool,
|
|
802
812
|
toolTipProps: PropTypes.shape({
|
|
803
813
|
anchorClassName: PropTypes.string,
|
|
814
|
+
anchorProps: PropTypes.shape({
|
|
815
|
+
className: PropTypes.string,
|
|
816
|
+
"aria-label": PropTypes.string,
|
|
817
|
+
"data-test-subj": PropTypes.string,
|
|
818
|
+
css: PropTypes.any
|
|
819
|
+
}),
|
|
804
820
|
children: PropTypes.element.isRequired,
|
|
805
821
|
className: PropTypes.string,
|
|
806
822
|
content: PropTypes.node,
|
|
@@ -227,10 +227,20 @@ EuiSuperUpdateButton.propTypes = {
|
|
|
227
227
|
*/
|
|
228
228
|
toolTipProps: PropTypes.shape({
|
|
229
229
|
/**
|
|
230
|
-
* Passes onto the the trigger.
|
|
230
|
+
* Passes onto the span wrapping the trigger.
|
|
231
231
|
*/
|
|
232
232
|
anchorClassName: PropTypes.string,
|
|
233
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Passes onto the span wrapping the trigger.
|
|
236
|
+
*/
|
|
237
|
+
anchorProps: PropTypes.shape({
|
|
238
|
+
className: PropTypes.string,
|
|
239
|
+
"aria-label": PropTypes.string,
|
|
240
|
+
"data-test-subj": PropTypes.string,
|
|
241
|
+
css: PropTypes.any
|
|
242
|
+
}),
|
|
243
|
+
|
|
234
244
|
/**
|
|
235
245
|
* The in-view trigger for your tooltip.
|
|
236
246
|
*/
|
|
@@ -46,7 +46,7 @@ export var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
46
46
|
|
|
47
47
|
var theme = useEuiTheme();
|
|
48
48
|
var styles = euiDescriptionListTitleStyles(theme);
|
|
49
|
-
var conditionalStyles = compressed && textStyle
|
|
49
|
+
var conditionalStyles = compressed && textStyle !== 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
|
|
50
50
|
|
|
51
51
|
switch (type) {
|
|
52
52
|
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;")
|
|
@@ -22,7 +22,7 @@ import { EuiInnerText } from '../inner_text';
|
|
|
22
22
|
import { cloneElementWithCss } from '../../services/theme/clone_element';
|
|
23
23
|
import { useEuiTheme } from '../../services';
|
|
24
24
|
import { euiFacetButtonStyles, euiFacetButtonTextStyles, euiFacetButtonIconStyles, euiFacetButtonQuantityStyles, euiFacetButtonLoadingSpinnerStyles } from './facet_button.styles';
|
|
25
|
-
import { EuiButtonDisplay } from '../button/button_display/_button_display';
|
|
25
|
+
import { EuiButtonDisplay, isButtonDisabled } from '../button/button_display/_button_display';
|
|
26
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
27
27
|
export var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
28
28
|
var children = _ref.children,
|
|
@@ -39,7 +39,10 @@ export var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
|
39
39
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
40
40
|
|
|
41
41
|
// If in the loading state, force disabled to true
|
|
42
|
-
isDisabled =
|
|
42
|
+
isDisabled = isButtonDisabled({
|
|
43
|
+
isDisabled: isDisabled,
|
|
44
|
+
isLoading: isLoading
|
|
45
|
+
});
|
|
43
46
|
var selection = isSelected ? 'isSelected' : 'unSelected';
|
|
44
47
|
var classes = classNames('euiFacetButton', className);
|
|
45
48
|
var theme = useEuiTheme();
|
|
@@ -84,7 +87,6 @@ export var EuiFacetButton = function EuiFacetButton(_ref) {
|
|
|
84
87
|
return ___EmotionJSX(EuiButtonDisplay, _extends({
|
|
85
88
|
className: classes,
|
|
86
89
|
css: cssStyles,
|
|
87
|
-
element: "button",
|
|
88
90
|
isDisabled: isDisabled,
|
|
89
91
|
ref: buttonRef,
|
|
90
92
|
title: rest['aria-label'] || innerText,
|
|
@@ -120,7 +122,6 @@ EuiFacetButton.propTypes = {
|
|
|
120
122
|
* Changes visual of button to indicate it's currently selected
|
|
121
123
|
*/
|
|
122
124
|
isSelected: PropTypes.bool,
|
|
123
|
-
onClick: PropTypes.func,
|
|
124
125
|
|
|
125
126
|
/**
|
|
126
127
|
* Adds a notification indicator for displaying the quantity provided
|
|
@@ -44,13 +44,15 @@ EuiHeaderLink.propTypes = {
|
|
|
44
44
|
onClick: PropTypes.func,
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* Any of
|
|
47
|
+
* Any of the named color palette options.
|
|
48
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
48
49
|
*/
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
|
-
* Any of
|
|
52
|
+
* Any of the named color palette options.
|
|
53
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
52
54
|
*/
|
|
53
|
-
color: PropTypes.
|
|
55
|
+
color: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.oneOf(["ghost"])]),
|
|
54
56
|
size: PropTypes.oneOf(["xs", "s", "m"]),
|
|
55
57
|
|
|
56
58
|
/**
|
|
@@ -114,7 +114,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
114
114
|
|
|
115
115
|
_this = _super.call(this, props);
|
|
116
116
|
|
|
117
|
-
_defineProperty(_assertThisInitialized(_this), "isMounted",
|
|
117
|
+
_defineProperty(_assertThisInitialized(_this), "isMounted", false);
|
|
118
118
|
|
|
119
119
|
_defineProperty(_assertThisInitialized(_this), "loadIconComponent", function (iconType) {
|
|
120
120
|
if (iconComponentCache.hasOwnProperty(iconType)) {
|
|
@@ -172,6 +172,7 @@ export var EuiIconClass = /*#__PURE__*/function (_PureComponent) {
|
|
|
172
172
|
_createClass(EuiIconClass, [{
|
|
173
173
|
key: "componentDidMount",
|
|
174
174
|
value: function componentDidMount() {
|
|
175
|
+
this.isMounted = true;
|
|
175
176
|
var type = this.props.type;
|
|
176
177
|
|
|
177
178
|
if (isEuiIconType(type) && this.state.icon == null) {
|
|
@@ -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 ");
|
|
@@ -22,7 +22,7 @@ export var euiLinkFocusCSS = function euiLinkFocusCSS(euiTheme) {
|
|
|
22
22
|
};
|
|
23
23
|
export var euiLinkCSS = function euiLinkCSS(euiThemeContext) {
|
|
24
24
|
var euiTheme = euiThemeContext.euiTheme;
|
|
25
|
-
return "\n font-weight: ".concat(euiTheme.font.weight.medium, ";\n
|
|
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 ");
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -203,8 +203,9 @@ EuiListGroup.propTypes = {
|
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Any of the named color palette options.
|
|
206
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
206
207
|
*/
|
|
207
|
-
color: PropTypes.
|
|
208
|
+
color: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.oneOf(["ghost"])]),
|
|
208
209
|
"aria-label": PropTypes.string,
|
|
209
210
|
"aria-labelledby": PropTypes.string,
|
|
210
211
|
isDisabled: PropTypes.bool,
|
|
@@ -259,8 +259,9 @@ EuiListGroupItem.propTypes = {
|
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* Any of the named color palette options.
|
|
262
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
262
263
|
*/
|
|
263
|
-
color: PropTypes.
|
|
264
|
+
color: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.oneOf(["ghost"])]),
|
|
264
265
|
"aria-label": PropTypes.string,
|
|
265
266
|
"aria-labelledby": PropTypes.string,
|
|
266
267
|
isDisabled: PropTypes.bool,
|
|
@@ -191,8 +191,9 @@ EuiPinnableListGroup.propTypes = {
|
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
193
|
* Any of the named color palette options.
|
|
194
|
+
* **`'ghost'` is set for deprecation. Use EuiThemeProvide.colorMode = 'dark' instead.**
|
|
194
195
|
*/
|
|
195
|
-
color: PropTypes.
|
|
196
|
+
color: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.oneOf(["ghost"])]),
|
|
196
197
|
"aria-label": PropTypes.string,
|
|
197
198
|
"aria-labelledby": PropTypes.string,
|
|
198
199
|
isDisabled: PropTypes.bool,
|
|
@@ -330,7 +331,7 @@ EuiPinnableListGroup.propTypes = {
|
|
|
330
331
|
type: PropTypes.oneOf(["submit", "reset", "button"]),
|
|
331
332
|
onClick: PropTypes.func,
|
|
332
333
|
iconType: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired]).isRequired,
|
|
333
|
-
color: PropTypes.
|
|
334
|
+
color: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.oneOf(["ghost"])]),
|
|
334
335
|
"aria-label": PropTypes.string,
|
|
335
336
|
"aria-labelledby": PropTypes.string,
|
|
336
337
|
isDisabled: PropTypes.bool,
|
|
@@ -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 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
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 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
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
|
};
|