@elastic/eui 98.2.1-borealis.0 → 98.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{eui_theme_amsterdam_dark.json.d.ts → eui_theme_dark.json.d.ts} +1 -1
- package/dist/{eui_theme_amsterdam_light.json.d.ts → eui_theme_light.json.d.ts} +1 -1
- package/es/components/avatar/avatar.js +4 -10
- package/es/components/badge/badge.styles.js +2 -1
- package/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/es/components/badge/color_utils.js +8 -9
- package/es/components/beacon/beacon.styles.js +2 -2
- package/es/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
- package/es/components/button/button.js +1 -1
- package/es/components/button/button_display/_button_display.styles.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_group/button_group_button.styles.js +6 -6
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/card/card.js +1 -1
- package/es/components/card/card.styles.js +3 -6
- package/es/components/code/code_block_annotations.js +1 -1
- package/es/components/code/code_block_line.styles.js +2 -1
- package/es/components/code/code_syntax.styles.js +27 -23
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
- package/es/components/color_picker/color_picker.js +3 -9
- package/es/components/color_picker/color_picker.styles.js +2 -1
- package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/es/components/comment_list/comment.js +1 -1
- package/es/components/comment_list/comment_event.js +4 -5
- package/es/components/comment_list/comment_list.js +1 -1
- package/es/components/common.js +28 -0
- package/es/components/datagrid/data_grid.styles.js +7 -6
- package/es/components/date_picker/react_date_picker.styles.js +1 -2
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
- package/es/components/drag_and_drop/droppable.styles.js +4 -2
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/empty_prompt/empty_prompt.styles.js +2 -6
- package/es/components/filter_group/filter_select_item.styles.js +2 -1
- package/es/components/flyout/_flyout_close_button.styles.js +2 -1
- package/es/components/flyout/flyout.js +1 -1
- package/es/components/flyout/flyout.styles.js +2 -7
- package/es/components/flyout/flyout_footer.styles.js +1 -1
- package/es/components/form/form.styles.js +32 -28
- package/es/components/form/range/range_tooltip.styles.js +13 -11
- package/es/components/form/switch/switch.js +7 -3
- package/es/components/form/switch/switch.styles.js +19 -16
- package/es/components/header/header.styles.js +7 -6
- package/es/components/icon/icon.styles.js +8 -9
- package/es/components/icon/named_colors.js +1 -1
- package/es/components/inline_edit/inline_edit_form.styles.js +2 -1
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
- package/es/components/list_group/list_group_item.styles.js +11 -9
- package/es/components/loading/loading_chart.styles.js +5 -18
- package/es/components/mark/mark.styles.js +9 -2
- package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
- package/es/components/markdown_editor/markdown_format.styles.js +2 -2
- package/es/components/modal/modal.styles.js +1 -1
- package/es/components/overlay_mask/overlay_mask.styles.js +2 -1
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/panel/panel.js +1 -1
- package/es/components/panel/panel.styles.js +1 -1
- package/es/components/panel/split_panel/split_panel.js +1 -1
- package/es/components/popover/popover.js +1 -1
- package/es/components/popover/popover_arrow/_popover_arrow.js +3 -8
- package/es/components/popover/popover_arrow/_popover_arrow.styles.js +13 -18
- package/es/components/popover/popover_footer.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/es/components/progress/progress.js +1 -1
- package/es/components/progress/progress.styles.js +28 -30
- package/es/components/resizable_container/resizable_panel.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
- package/es/components/side_nav/side_nav_item.styles.js +2 -1
- package/es/components/skeleton/utils.js +7 -5
- package/es/components/steps/step_number.styles.js +1 -1
- package/es/components/table/table_cells_shared.styles.js +7 -2
- package/es/components/table/table_row.styles.js +10 -8
- package/es/components/text/text.styles.js +2 -2
- package/es/components/text/text_color.js +1 -1
- package/es/components/text/text_color.styles.js +5 -6
- package/es/components/toast/toast.styles.js +1 -1
- package/es/components/token/token.js +4 -10
- package/es/components/token/token.styles.js +3 -12
- package/es/components/token/token_map.js +1 -243
- package/es/components/tool_tip/tool_tip.styles.js +24 -12
- package/es/components/tour/_tour_footer.styles.js +4 -2
- package/es/components/tour/tour.styles.js +12 -8
- package/es/components/tree_view/tree_view_item.styles.js +2 -1
- package/es/global_styling/functions/math.js +49 -1
- package/es/global_styling/functions/size.js +17 -1
- package/es/global_styling/mixins/_color.js +31 -39
- package/es/global_styling/mixins/index.js +1 -2
- package/es/global_styling/reset/global_styles.js +2 -2
- package/es/global_styling/variables/_colors_vis.js +53 -1
- package/es/global_styling/variables/animations.js +22 -1
- package/es/global_styling/variables/breakpoint.js +7 -1
- package/es/global_styling/variables/levels.js +17 -1
- package/es/global_styling/variables/shadow.js +11 -1
- package/es/global_styling/variables/size.js +1 -1
- package/es/global_styling/variables/typography.js +32 -1
- package/es/services/color/eui_palettes.js +47 -116
- package/es/services/color/index.js +0 -1
- package/es/services/index.js +1 -1
- package/es/services/popover/index.js +1 -4
- package/es/services/popover/popover_positioning.js +17 -6
- package/es/services/theme/provider.js +2 -26
- package/es/services/theme/types.js +6 -1
- package/es/services/theme/utils.js +303 -1
- package/es/themes/amsterdam/global_styling/mixins/button.js +203 -1
- package/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/es/themes/amsterdam/global_styling/variables/_colors.js +19 -612
- package/es/themes/amsterdam/theme.js +1 -7
- package/es/themes/index.js +1 -1
- package/es/themes/themes.js +6 -9
- package/eui.d.ts +2831 -2383
- package/lib/components/avatar/avatar.js +2 -8
- package/lib/components/badge/badge.styles.js +2 -1
- package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/lib/components/badge/color_utils.js +13 -14
- package/lib/components/beacon/beacon.styles.js +2 -2
- package/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
- package/lib/components/button/button.js +1 -1
- package/lib/components/button/button_display/_button_display.styles.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_group/button_group_button.styles.js +5 -5
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/card/card.js +1 -1
- package/lib/components/card/card.styles.js +2 -5
- package/lib/components/code/code_block_annotations.js +1 -1
- package/lib/components/code/code_block_line.styles.js +2 -1
- package/lib/components/code/code_syntax.styles.js +27 -23
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
- package/lib/components/color_picker/color_picker.js +2 -8
- package/lib/components/color_picker/color_picker.styles.js +2 -1
- package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/lib/components/comment_list/comment.js +1 -1
- package/lib/components/comment_list/comment_event.js +4 -5
- package/lib/components/comment_list/comment_list.js +1 -1
- package/lib/components/common.js +28 -0
- package/lib/components/datagrid/data_grid.styles.js +7 -6
- package/lib/components/date_picker/react_date_picker.styles.js +2 -3
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
- package/lib/components/drag_and_drop/droppable.styles.js +4 -2
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.styles.js +1 -5
- package/lib/components/filter_group/filter_select_item.styles.js +2 -1
- package/lib/components/flyout/_flyout_close_button.styles.js +2 -1
- package/lib/components/flyout/flyout.js +1 -1
- package/lib/components/flyout/flyout.styles.js +2 -7
- package/lib/components/flyout/flyout_footer.styles.js +1 -1
- package/lib/components/form/form.styles.js +31 -27
- package/lib/components/form/range/range_tooltip.styles.js +13 -11
- package/lib/components/form/switch/switch.js +7 -3
- package/lib/components/form/switch/switch.styles.js +19 -16
- package/lib/components/header/header.styles.js +6 -5
- package/lib/components/icon/icon.styles.js +8 -9
- package/lib/components/icon/named_colors.js +1 -1
- package/lib/components/inline_edit/inline_edit_form.styles.js +2 -1
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
- package/lib/components/list_group/list_group_item.styles.js +10 -8
- package/lib/components/loading/loading_chart.styles.js +5 -18
- package/lib/components/mark/mark.styles.js +9 -2
- package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
- package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
- package/lib/components/modal/modal.styles.js +1 -1
- package/lib/components/overlay_mask/overlay_mask.styles.js +2 -1
- package/lib/components/page_template/inner/page_inner.styles.js +1 -1
- package/lib/components/panel/panel.js +1 -1
- package/lib/components/panel/panel.styles.js +1 -1
- package/lib/components/panel/split_panel/split_panel.js +1 -1
- package/lib/components/popover/popover.js +1 -1
- package/lib/components/popover/popover_arrow/_popover_arrow.js +3 -8
- package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +15 -18
- package/lib/components/popover/popover_footer.styles.js +1 -1
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/lib/components/progress/progress.js +1 -1
- package/lib/components/progress/progress.styles.js +27 -29
- package/lib/components/resizable_container/resizable_panel.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
- package/lib/components/side_nav/side_nav_item.styles.js +2 -1
- package/lib/components/skeleton/utils.js +6 -4
- package/lib/components/steps/step_number.styles.js +1 -1
- package/lib/components/table/table_cells_shared.styles.js +7 -2
- package/lib/components/table/table_row.styles.js +9 -7
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/text/text_color.js +1 -1
- package/lib/components/text/text_color.styles.js +5 -6
- package/lib/components/toast/toast.styles.js +1 -1
- package/lib/components/token/token.js +4 -12
- package/lib/components/token/token.styles.js +3 -12
- package/lib/components/token/token_map.js +2 -244
- package/lib/components/tool_tip/tool_tip.styles.js +23 -11
- package/lib/components/tour/_tour_footer.styles.js +4 -2
- package/lib/components/tour/tour.styles.js +12 -8
- package/lib/components/tree_view/tree_view_item.styles.js +2 -1
- package/lib/global_styling/functions/math.js +58 -7
- package/lib/global_styling/functions/size.js +26 -7
- package/lib/global_styling/mixins/_color.js +30 -38
- package/lib/global_styling/mixins/index.js +0 -11
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/lib/global_styling/variables/_colors_vis.js +61 -6
- package/lib/global_styling/variables/animations.js +31 -25
- package/lib/global_styling/variables/breakpoint.js +16 -7
- package/lib/global_styling/variables/levels.js +26 -7
- package/lib/global_styling/variables/shadow.js +20 -13
- package/lib/global_styling/variables/size.js +10 -7
- package/lib/global_styling/variables/typography.js +41 -19
- package/lib/services/color/eui_palettes.js +47 -116
- package/lib/services/color/index.js +0 -8
- package/lib/services/index.js +0 -7
- package/lib/services/popover/index.js +1 -8
- package/lib/services/popover/popover_positioning.js +17 -6
- package/lib/services/theme/provider.js +2 -26
- package/lib/services/theme/types.js +14 -13
- package/lib/services/theme/utils.js +303 -54
- package/lib/themes/amsterdam/global_styling/mixins/button.js +206 -45
- package/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +19 -611
- package/lib/themes/amsterdam/theme.js +1 -7
- package/lib/themes/index.js +0 -7
- package/lib/themes/themes.js +7 -10
- package/optimize/es/components/avatar/avatar.js +4 -10
- package/optimize/es/components/badge/badge.styles.js +2 -1
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/optimize/es/components/badge/color_utils.js +8 -9
- package/optimize/es/components/beacon/beacon.styles.js +2 -2
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
- package/optimize/es/components/button/button.js +1 -1
- package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
- package/optimize/es/components/button/button_empty/button_empty.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.styles.js +6 -6
- package/optimize/es/components/button/button_icon/button_icon.js +1 -1
- package/optimize/es/components/card/card.styles.js +3 -6
- package/optimize/es/components/code/code_block_annotations.js +1 -1
- package/optimize/es/components/code/code_block_line.styles.js +2 -1
- package/optimize/es/components/code/code_syntax.styles.js +27 -23
- package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
- package/optimize/es/components/color_picker/color_picker.js +3 -9
- package/optimize/es/components/color_picker/color_picker.styles.js +2 -1
- package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/optimize/es/components/comment_list/comment_event.js +3 -4
- package/optimize/es/components/common.js +28 -0
- package/optimize/es/components/datagrid/data_grid.styles.js +7 -6
- package/optimize/es/components/date_picker/react_date_picker.styles.js +1 -2
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
- package/optimize/es/components/drag_and_drop/droppable.styles.js +4 -2
- package/optimize/es/components/empty_prompt/empty_prompt.styles.js +2 -6
- package/optimize/es/components/filter_group/filter_select_item.styles.js +2 -1
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +2 -1
- package/optimize/es/components/flyout/flyout.js +1 -1
- package/optimize/es/components/flyout/flyout.styles.js +2 -7
- package/optimize/es/components/flyout/flyout_footer.styles.js +1 -1
- package/optimize/es/components/form/form.styles.js +32 -28
- package/optimize/es/components/form/range/range_tooltip.styles.js +13 -11
- package/optimize/es/components/form/switch/switch.js +2 -3
- package/optimize/es/components/form/switch/switch.styles.js +19 -16
- package/optimize/es/components/header/header.styles.js +7 -6
- package/optimize/es/components/icon/icon.styles.js +8 -9
- package/optimize/es/components/icon/named_colors.js +1 -1
- package/optimize/es/components/inline_edit/inline_edit_form.styles.js +2 -1
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
- package/optimize/es/components/list_group/list_group_item.styles.js +11 -9
- package/optimize/es/components/loading/loading_chart.styles.js +5 -13
- package/optimize/es/components/mark/mark.styles.js +9 -2
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
- package/optimize/es/components/modal/modal.styles.js +1 -1
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +2 -1
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/panel/panel.styles.js +1 -1
- package/optimize/es/components/popover/popover.js +1 -1
- package/optimize/es/components/popover/popover_arrow/_popover_arrow.js +3 -8
- package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +13 -15
- package/optimize/es/components/popover/popover_footer.styles.js +1 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/optimize/es/components/progress/progress.js +1 -1
- package/optimize/es/components/progress/progress.styles.js +28 -30
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
- package/optimize/es/components/side_nav/side_nav_item.styles.js +2 -1
- package/optimize/es/components/skeleton/utils.js +7 -5
- package/optimize/es/components/steps/step_number.styles.js +1 -1
- package/optimize/es/components/table/table_cells_shared.styles.js +7 -2
- package/optimize/es/components/table/table_row.styles.js +10 -8
- package/optimize/es/components/text/text.styles.js +2 -2
- package/optimize/es/components/text/text_color.js +1 -1
- package/optimize/es/components/text/text_color.styles.js +5 -6
- package/optimize/es/components/toast/toast.styles.js +1 -1
- package/optimize/es/components/token/token.js +4 -10
- package/optimize/es/components/token/token.styles.js +3 -12
- package/optimize/es/components/token/token_map.js +1 -243
- package/optimize/es/components/tool_tip/tool_tip.styles.js +24 -12
- package/optimize/es/components/tour/_tour_footer.styles.js +4 -2
- package/optimize/es/components/tour/tour.styles.js +12 -8
- package/optimize/es/components/tree_view/tree_view_item.styles.js +2 -1
- package/optimize/es/global_styling/functions/math.js +49 -1
- package/optimize/es/global_styling/functions/size.js +17 -1
- package/optimize/es/global_styling/mixins/_color.js +31 -39
- package/optimize/es/global_styling/mixins/index.js +1 -2
- package/optimize/es/global_styling/reset/global_styles.js +2 -2
- package/optimize/es/global_styling/variables/_colors_vis.js +53 -1
- package/optimize/es/global_styling/variables/animations.js +22 -1
- package/optimize/es/global_styling/variables/breakpoint.js +7 -1
- package/optimize/es/global_styling/variables/levels.js +17 -1
- package/optimize/es/global_styling/variables/shadow.js +11 -1
- package/optimize/es/global_styling/variables/size.js +1 -1
- package/optimize/es/global_styling/variables/typography.js +32 -1
- package/optimize/es/services/color/eui_palettes.js +47 -116
- package/optimize/es/services/color/index.js +0 -1
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/services/popover/index.js +1 -4
- package/optimize/es/services/popover/popover_positioning.js +17 -6
- package/optimize/es/services/theme/provider.js +2 -26
- package/optimize/es/services/theme/types.js +6 -1
- package/optimize/es/services/theme/utils.js +295 -1
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +198 -1
- package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +19 -612
- package/optimize/es/themes/amsterdam/theme.js +1 -7
- package/optimize/es/themes/index.js +1 -1
- package/optimize/es/themes/themes.js +6 -9
- package/optimize/lib/components/avatar/avatar.js +2 -8
- package/optimize/lib/components/badge/badge.styles.js +2 -1
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/optimize/lib/components/badge/color_utils.js +13 -14
- package/optimize/lib/components/beacon/beacon.styles.js +2 -2
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
- package/optimize/lib/components/button/button.js +1 -1
- package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
- package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +5 -5
- package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
- package/optimize/lib/components/card/card.styles.js +2 -5
- package/optimize/lib/components/code/code_block_annotations.js +1 -1
- package/optimize/lib/components/code/code_block_line.styles.js +2 -1
- package/optimize/lib/components/code/code_syntax.styles.js +27 -23
- package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
- package/optimize/lib/components/color_picker/color_picker.js +2 -8
- package/optimize/lib/components/color_picker/color_picker.styles.js +2 -1
- package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/optimize/lib/components/comment_list/comment_event.js +3 -4
- package/optimize/lib/components/common.js +28 -0
- package/optimize/lib/components/datagrid/data_grid.styles.js +7 -6
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +2 -3
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
- package/optimize/lib/components/drag_and_drop/droppable.styles.js +4 -2
- package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +1 -5
- package/optimize/lib/components/filter_group/filter_select_item.styles.js +2 -1
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +2 -1
- package/optimize/lib/components/flyout/flyout.js +1 -1
- package/optimize/lib/components/flyout/flyout.styles.js +2 -7
- package/optimize/lib/components/flyout/flyout_footer.styles.js +1 -1
- package/optimize/lib/components/form/form.styles.js +31 -27
- package/optimize/lib/components/form/range/range_tooltip.styles.js +13 -11
- package/optimize/lib/components/form/switch/switch.js +2 -3
- package/optimize/lib/components/form/switch/switch.styles.js +19 -16
- package/optimize/lib/components/header/header.styles.js +6 -5
- package/optimize/lib/components/icon/icon.styles.js +8 -9
- package/optimize/lib/components/icon/named_colors.js +1 -1
- package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +2 -1
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
- package/optimize/lib/components/list_group/list_group_item.styles.js +10 -8
- package/optimize/lib/components/loading/loading_chart.styles.js +5 -13
- package/optimize/lib/components/mark/mark.styles.js +9 -2
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
- package/optimize/lib/components/modal/modal.styles.js +1 -1
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +2 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
- package/optimize/lib/components/panel/panel.styles.js +1 -1
- package/optimize/lib/components/popover/popover.js +1 -1
- package/optimize/lib/components/popover/popover_arrow/_popover_arrow.js +3 -8
- package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +15 -16
- package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/optimize/lib/components/progress/progress.js +1 -1
- package/optimize/lib/components/progress/progress.styles.js +27 -29
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
- package/optimize/lib/components/side_nav/side_nav_item.styles.js +2 -1
- package/optimize/lib/components/skeleton/utils.js +6 -4
- package/optimize/lib/components/steps/step_number.styles.js +1 -1
- package/optimize/lib/components/table/table_cells_shared.styles.js +7 -2
- package/optimize/lib/components/table/table_row.styles.js +9 -7
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/text/text_color.js +1 -1
- package/optimize/lib/components/text/text_color.styles.js +5 -6
- package/optimize/lib/components/toast/toast.styles.js +1 -1
- package/optimize/lib/components/token/token.js +4 -13
- package/optimize/lib/components/token/token.styles.js +3 -12
- package/optimize/lib/components/token/token_map.js +2 -244
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +23 -11
- package/optimize/lib/components/tour/_tour_footer.styles.js +4 -2
- package/optimize/lib/components/tour/tour.styles.js +12 -8
- package/optimize/lib/components/tree_view/tree_view_item.styles.js +2 -1
- package/optimize/lib/global_styling/functions/math.js +59 -7
- package/optimize/lib/global_styling/functions/size.js +27 -7
- package/optimize/lib/global_styling/mixins/_color.js +30 -38
- package/optimize/lib/global_styling/mixins/index.js +0 -11
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/global_styling/variables/_colors_vis.js +61 -6
- package/optimize/lib/global_styling/variables/animations.js +31 -25
- package/optimize/lib/global_styling/variables/breakpoint.js +16 -7
- package/optimize/lib/global_styling/variables/levels.js +26 -7
- package/optimize/lib/global_styling/variables/shadow.js +20 -13
- package/optimize/lib/global_styling/variables/size.js +10 -7
- package/optimize/lib/global_styling/variables/typography.js +41 -19
- package/optimize/lib/services/color/eui_palettes.js +47 -116
- package/optimize/lib/services/color/index.js +0 -8
- package/optimize/lib/services/index.js +0 -7
- package/optimize/lib/services/popover/index.js +1 -8
- package/optimize/lib/services/popover/popover_positioning.js +17 -6
- package/optimize/lib/services/theme/provider.js +2 -26
- package/optimize/lib/services/theme/types.js +14 -13
- package/optimize/lib/services/theme/utils.js +296 -54
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +203 -45
- package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +19 -611
- package/optimize/lib/themes/amsterdam/theme.js +1 -7
- package/optimize/lib/themes/index.js +0 -7
- package/optimize/lib/themes/themes.js +7 -10
- package/package.json +3 -7
- package/src/global_styling/functions/_index.scss +5 -1
- package/src/global_styling/index.scss +10 -1
- package/src/global_styling/variables/_animations.scss +8 -1
- package/src/global_styling/variables/_borders.scss +9 -1
- package/src/global_styling/variables/_buttons.scss +18 -1
- package/src/global_styling/variables/_colors_vis.scss +70 -1
- package/src/global_styling/variables/_font_weight.scss +7 -1
- package/src/global_styling/variables/_form.scss +21 -2
- package/src/global_styling/variables/_responsive.scss +9 -1
- package/src/global_styling/variables/_shadows.scss +1 -1
- package/src/global_styling/variables/_size.scss +13 -1
- package/src/global_styling/variables/_states.scss +14 -1
- package/src/global_styling/variables/_typography.scss +75 -1
- package/src/global_styling/variables/_z_index.scss +33 -1
- package/src/themes/amsterdam/_colors_dark.scss +8 -80
- package/src/themes/amsterdam/_colors_light.scss +8 -80
- package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -2
- package/test-env/components/avatar/avatar.js +2 -8
- package/test-env/components/badge/badge.styles.js +2 -1
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/test-env/components/badge/color_utils.js +13 -14
- package/test-env/components/beacon/beacon.styles.js +2 -2
- package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +7 -5
- package/test-env/components/button/button.js +1 -1
- package/test-env/components/button/button_display/_button_display.styles.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_group/button_group_button.styles.js +5 -5
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/card/card.styles.js +2 -5
- package/test-env/components/code/code_block_annotations.js +1 -1
- package/test-env/components/code/code_block_line.styles.js +2 -1
- package/test-env/components/code/code_syntax.styles.js +27 -23
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +5 -3
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +2 -1
- package/test-env/components/color_picker/color_picker.js +2 -8
- package/test-env/components/color_picker/color_picker.styles.js +2 -1
- package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/test-env/components/comment_list/comment.js +1 -1
- package/test-env/components/comment_list/comment_event.js +4 -5
- package/test-env/components/comment_list/comment_list.js +1 -1
- package/test-env/components/common.js +28 -0
- package/test-env/components/datagrid/data_grid.styles.js +7 -6
- package/test-env/components/date_picker/react_date_picker.styles.js +2 -3
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -2
- package/test-env/components/drag_and_drop/droppable.styles.js +4 -2
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.styles.js +1 -5
- package/test-env/components/filter_group/filter_select_item.styles.js +2 -1
- package/test-env/components/flyout/_flyout_close_button.styles.js +2 -1
- package/test-env/components/flyout/flyout.styles.js +2 -7
- package/test-env/components/flyout/flyout_footer.styles.js +1 -1
- package/test-env/components/form/form.styles.js +31 -27
- package/test-env/components/form/range/range_tooltip.styles.js +13 -11
- package/test-env/components/form/switch/switch.js +2 -3
- package/test-env/components/form/switch/switch.styles.js +19 -16
- package/test-env/components/header/header.styles.js +6 -5
- package/test-env/components/icon/icon.styles.js +8 -9
- package/test-env/components/icon/named_colors.js +1 -1
- package/test-env/components/inline_edit/inline_edit_form.styles.js +2 -1
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +2 -1
- package/test-env/components/list_group/list_group_item.styles.js +10 -8
- package/test-env/components/loading/loading_chart.styles.js +5 -13
- package/test-env/components/mark/mark.styles.js +9 -2
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -2
- package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
- package/test-env/components/modal/modal.styles.js +1 -1
- package/test-env/components/overlay_mask/overlay_mask.styles.js +2 -1
- package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
- package/test-env/components/panel/panel.js +1 -1
- package/test-env/components/panel/panel.styles.js +1 -1
- package/test-env/components/panel/split_panel/split_panel.js +1 -1
- package/test-env/components/popover/popover.js +1 -1
- package/test-env/components/popover/popover_arrow/_popover_arrow.js +3 -8
- package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +15 -16
- package/test-env/components/popover/popover_footer.styles.js +1 -1
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/test-env/components/progress/progress.js +1 -1
- package/test-env/components/progress/progress.styles.js +27 -29
- package/test-env/components/resizable_container/resizable_panel.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +2 -1
- package/test-env/components/side_nav/side_nav_item.styles.js +2 -1
- package/test-env/components/skeleton/utils.js +6 -4
- package/test-env/components/steps/step_number.styles.js +1 -1
- package/test-env/components/table/table_cells_shared.styles.js +7 -2
- package/test-env/components/table/table_row.styles.js +9 -7
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/text/text_color.js +1 -1
- package/test-env/components/text/text_color.styles.js +5 -6
- package/test-env/components/toast/toast.styles.js +1 -1
- package/test-env/components/token/token.js +4 -13
- package/test-env/components/token/token.styles.js +3 -12
- package/test-env/components/token/token_map.js +2 -244
- package/test-env/components/tool_tip/tool_tip.styles.js +23 -11
- package/test-env/components/tour/_tour_footer.styles.js +4 -2
- package/test-env/components/tour/tour.styles.js +12 -8
- package/test-env/components/tree_view/tree_view_item.styles.js +2 -1
- package/test-env/global_styling/functions/math.js +59 -7
- package/test-env/global_styling/functions/size.js +27 -7
- package/test-env/global_styling/mixins/_color.js +30 -38
- package/test-env/global_styling/mixins/index.js +0 -11
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/test-env/global_styling/variables/_colors_vis.js +61 -6
- package/test-env/global_styling/variables/animations.js +31 -25
- package/test-env/global_styling/variables/breakpoint.js +16 -7
- package/test-env/global_styling/variables/levels.js +26 -7
- package/test-env/global_styling/variables/shadow.js +20 -13
- package/test-env/global_styling/variables/size.js +10 -7
- package/test-env/global_styling/variables/typography.js +41 -19
- package/test-env/services/color/eui_palettes.js +47 -116
- package/test-env/services/color/index.js +0 -8
- package/test-env/services/index.js +0 -7
- package/test-env/services/popover/index.js +1 -8
- package/test-env/services/popover/popover_positioning.js +17 -6
- package/test-env/services/theme/provider.js +2 -26
- package/test-env/services/theme/types.js +14 -13
- package/test-env/services/theme/utils.js +296 -54
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +203 -45
- package/test-env/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +19 -611
- package/test-env/themes/amsterdam/theme.js +1 -7
- package/test-env/themes/index.js +0 -7
- package/test-env/themes/themes.js +7 -10
- package/dist/eui_theme_borealis_dark.json +0 -314
- package/dist/eui_theme_borealis_dark.json.d.ts +0 -317
- package/dist/eui_theme_borealis_light.json +0 -314
- package/dist/eui_theme_borealis_light.json.d.ts +0 -317
- package/es/global_styling/mixins/_button.js +0 -159
- package/es/services/color/vis_color_store.js +0 -13
- package/es/services/popover/popover_arrow.styles.js +0 -31
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -281
- package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -94
- package/es/themes/amsterdam/global_styling/variables/_components.js +0 -604
- package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -161
- package/lib/global_styling/mixins/_button.js +0 -164
- package/lib/services/color/vis_color_store.js +0 -18
- package/lib/services/popover/popover_arrow.styles.js +0 -37
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -285
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
- package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -608
- package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -165
- package/optimize/es/global_styling/mixins/_button.js +0 -159
- package/optimize/es/services/color/vis_color_store.js +0 -13
- package/optimize/es/services/popover/popover_arrow.styles.js +0 -31
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -270
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -94
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -596
- package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -153
- package/optimize/lib/global_styling/mixins/_button.js +0 -165
- package/optimize/lib/services/color/vis_color_store.js +0 -18
- package/optimize/lib/services/popover/popover_arrow.styles.js +0 -37
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -601
- package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -158
- package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
- package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
- package/test-env/global_styling/mixins/_button.js +0 -165
- package/test-env/services/color/vis_color_store.js +0 -18
- package/test-env/services/popover/popover_arrow.styles.js +0 -37
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +0 -100
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -601
- package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -158
- /package/dist/{eui_theme_amsterdam_dark.json → eui_theme_dark.json} +0 -0
- /package/dist/{eui_theme_amsterdam_light.json → eui_theme_light.json} +0 -0
|
@@ -315,7 +315,7 @@ EuiResizablePanel.propTypes = {
|
|
|
315
315
|
* Background color of the panel;
|
|
316
316
|
* Usually a lightened form of the brand colors
|
|
317
317
|
*/
|
|
318
|
-
color: PropTypes.
|
|
318
|
+
color: PropTypes.any,
|
|
319
319
|
className: PropTypes.string,
|
|
320
320
|
"aria-label": PropTypes.string,
|
|
321
321
|
"data-test-subj": PropTypes.string,
|
|
@@ -8,10 +8,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { transparentize } from '../../../services';
|
|
11
12
|
import { euiFontSize, euiTextTruncate, logicalCSS } from '../../../global_styling';
|
|
12
13
|
export var euiSelectableListItemVariables = function euiSelectableListItemVariables(_ref2) {
|
|
13
14
|
var euiTheme = _ref2.euiTheme;
|
|
14
|
-
var lighterBorder = euiTheme.
|
|
15
|
+
var lighterBorder = transparentize(euiTheme.border.color, 0.4);
|
|
15
16
|
return {
|
|
16
17
|
border: "".concat(euiTheme.border.width.thin, " solid ").concat(lighterBorder),
|
|
17
18
|
paddingHorizontal: euiTheme.size.m,
|
|
@@ -14,11 +14,12 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
import { css } from '@emotion/react';
|
|
17
|
+
import { transparentize } from '../../services';
|
|
17
18
|
import { euiFontSize, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
18
19
|
import { euiTitle } from '../title/title.styles';
|
|
19
20
|
export var euiSideNavItemStyles = function euiSideNavItemStyles(euiThemeContext) {
|
|
20
21
|
var euiTheme = euiThemeContext.euiTheme;
|
|
21
|
-
var emphasizedBackgroundColor = euiTheme.
|
|
22
|
+
var emphasizedBackgroundColor = transparentize(euiTheme.colors.lightShade, 0.3);
|
|
22
23
|
return {
|
|
23
24
|
euiSideNavItem: /*#__PURE__*/css(";label:euiSideNavItem;"),
|
|
24
25
|
emphasized: /*#__PURE__*/css("background-color:", emphasizedBackgroundColor, ";color:", euiTheme.colors.title, ";box-shadow:100px 0 0 0 ", emphasizedBackgroundColor, ",-100px 0 0 0 ", emphasizedBackgroundColor, ";& &{background-color:transparent;box-shadow:none;};label:emphasized;"),
|
|
@@ -7,16 +7,18 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import {
|
|
10
|
+
import { shade, tint } from '../../services';
|
|
11
|
+
import { euiCanAnimate, logicalCSS } from '../../global_styling';
|
|
11
12
|
import { euiAnimSlideX } from '../../global_styling/utility/animations';
|
|
12
13
|
export var euiSkeletonGradientAnimation = function euiSkeletonGradientAnimation(_ref) {
|
|
13
|
-
var euiTheme = _ref.euiTheme
|
|
14
|
+
var euiTheme = _ref.euiTheme,
|
|
15
|
+
colorMode = _ref.colorMode;
|
|
14
16
|
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
15
17
|
_ref2$slideSize = _ref2.slideSize,
|
|
16
18
|
slideSize = _ref2$slideSize === void 0 ? '-53%' : _ref2$slideSize,
|
|
17
19
|
_ref2$gradientSize = _ref2.gradientSize,
|
|
18
20
|
gradientSize = _ref2$gradientSize === void 0 ? '220%' : _ref2$gradientSize;
|
|
19
|
-
var gradientStartStop = euiTheme.colors.
|
|
20
|
-
var gradientMiddle = euiTheme.colors.
|
|
21
|
-
return /*#__PURE__*/css(
|
|
21
|
+
var gradientStartStop = colorMode === 'DARK' ? shade(euiTheme.colors.lightShade, 0.12) : tint(euiTheme.colors.lightShade, 0.65);
|
|
22
|
+
var gradientMiddle = colorMode === 'DARK' ? shade(euiTheme.colors.lightShade, 0.24) : tint(euiTheme.colors.lightShade, 0.8);
|
|
23
|
+
return /*#__PURE__*/css("background-color:", gradientStartStop, ";", euiCanAnimate, "{overflow:hidden;isolation:isolate;&::after{content:'';display:block;", logicalCSS('width', gradientSize), " ", logicalCSS('height', '100%'), " background:linear-gradient(\n 137deg,\n ", gradientStartStop, " 45%,\n ", gradientMiddle, " 50%,\n ", gradientStartStop, " 55%\n );animation:", euiAnimSlideX(slideSize), " 1.5s ", euiTheme.animation.resistance, " infinite;}};label:euiSkeletonGradientAnimation;");
|
|
22
24
|
};
|
|
@@ -10,7 +10,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { mathWithUnits, logicalCSS, euiFontSizeFromScale, euiCanAnimate, euiAnimScale, logicalSizeCSS } from '../../global_styling';
|
|
12
12
|
import { euiStepVariables } from './step.styles';
|
|
13
|
-
import { euiButtonFillColor } from '../../global_styling/mixins';
|
|
13
|
+
import { euiButtonFillColor } from '../../themes/amsterdam/global_styling/mixins';
|
|
14
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
15
15
|
name: "76s2de-loading",
|
|
16
16
|
styles: "background:transparent;label:loading;"
|
|
@@ -13,10 +13,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { css } from '@emotion/react';
|
|
16
|
+
import { makeHighContrastColor, tintOrShade } from '../../services';
|
|
16
17
|
import { euiFontSize, logicalCSS, logicalTextAlignCSS } from '../../global_styling';
|
|
17
18
|
import { euiTableVariables } from './table.styles';
|
|
18
19
|
export var euiTableHeaderFooterCellStyles = function euiTableHeaderFooterCellStyles(euiThemeContext) {
|
|
19
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
20
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
21
|
+
colorMode = euiThemeContext.colorMode;
|
|
20
22
|
|
|
21
23
|
// euiFontSize returns an object, so we keep object notation here to merge into css``
|
|
22
24
|
var sharedStyles = _objectSpread(_objectSpread({}, euiFontSize(euiThemeContext, 'xs')), {}, {
|
|
@@ -27,7 +29,10 @@ export var euiTableHeaderFooterCellStyles = function euiTableHeaderFooterCellSty
|
|
|
27
29
|
return {
|
|
28
30
|
euiTableHeaderCell: /*#__PURE__*/css(sharedStyles, ";;label:euiTableHeaderCell;"),
|
|
29
31
|
euiTableHeaderCell__content: /*#__PURE__*/css("gap:", euiTheme.size.xs, ";;label:euiTableHeaderCell__content;"),
|
|
30
|
-
euiTableHeaderCell__button: /*#__PURE__*/css(logicalCSS('width', '100%'), " font-weight:inherit;line-height:inherit;.euiTableSortIcon--sortable{color:",
|
|
32
|
+
euiTableHeaderCell__button: /*#__PURE__*/css(logicalCSS('width', '100%'), " font-weight:inherit;line-height:inherit;.euiTableSortIcon--sortable{color:", makeHighContrastColor(
|
|
33
|
+
// Tint it arbitrarily high, the contrast util will take care of lowering back down to WCAG
|
|
34
|
+
tintOrShade(euiTheme.colors.subduedText, 0.9, colorMode), 3 // 3:1 ratio from https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html
|
|
35
|
+
)(euiTheme.colors.emptyShade), ";}&:hover,&:focus{color:", euiTheme.colors.primaryText, ";text-decoration:underline;.euiTableSortIcon--sortable{color:", euiTheme.colors.primaryText, ";}};label:euiTableHeaderCell__button;"),
|
|
31
36
|
euiTableFooterCell: /*#__PURE__*/css(sharedStyles, " background-color:", euiTheme.colors.lightestShade, ";;label:euiTableFooterCell;")
|
|
32
37
|
};
|
|
33
38
|
};
|
|
@@ -9,7 +9,8 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
|
-
import {
|
|
12
|
+
import { tint, shade, transparentize } from '../../services';
|
|
13
|
+
import { euiCanAnimate, euiBackgroundColor, logicalCSS } from '../../global_styling';
|
|
13
14
|
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
14
15
|
import { euiTableVariables } from './table.styles';
|
|
15
16
|
export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
|
|
@@ -32,7 +33,7 @@ export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
|
|
|
32
33
|
checkboxOffset: /*#__PURE__*/css("&>.euiTableRowCell:first-child{", logicalCSS('padding-left', checkboxSize), ";};label:checkboxOffset;")
|
|
33
34
|
},
|
|
34
35
|
mobile: {
|
|
35
|
-
mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding), euiShadow(euiThemeContext, 's'), " background-color:",
|
|
36
|
+
mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding), euiShadow(euiThemeContext, 's'), " background-color:", euiBackgroundColor(euiThemeContext, 'plain'), ";border-radius:", euiTheme.border.radius.medium, ";;label:mobile;"),
|
|
36
37
|
selected: /*#__PURE__*/css("&,&+.euiTableRow-isExpandedRow{background-color:", rowColors.selected.color, ";};label:selected;"),
|
|
37
38
|
/**
|
|
38
39
|
* Left column offset (no border)
|
|
@@ -61,16 +62,17 @@ var _expandedRowAnimation = function _expandedRowAnimation(_ref) {
|
|
|
61
62
|
return /*#__PURE__*/css(euiCanAnimate, "{.euiTableCellContent{animation:", euiTheme.animation.fast, " ", euiTheme.animation.resistance, " 1 normal none ", expandRow, ";}}");
|
|
62
63
|
};
|
|
63
64
|
var _rowColorVariables = function _rowColorVariables(_ref2) {
|
|
64
|
-
var euiTheme = _ref2.euiTheme
|
|
65
|
+
var euiTheme = _ref2.euiTheme,
|
|
66
|
+
colorMode = _ref2.colorMode;
|
|
65
67
|
return {
|
|
66
|
-
hover: euiTheme.
|
|
68
|
+
hover: colorMode === 'DARK' ? euiTheme.colors.lightestShade : tint(euiTheme.colors.lightestShade, 0.5),
|
|
67
69
|
selected: {
|
|
68
|
-
color: euiTheme.
|
|
69
|
-
hover: euiTheme.
|
|
70
|
+
color: colorMode === 'DARK' ? shade(euiTheme.colors.primary, 0.7) : tint(euiTheme.colors.primary, 0.96),
|
|
71
|
+
hover: colorMode === 'DARK' ? shade(euiTheme.colors.primary, 0.75) : tint(euiTheme.colors.primary, 0.9)
|
|
70
72
|
},
|
|
71
73
|
clickable: {
|
|
72
|
-
hover: euiTheme.
|
|
73
|
-
focus: euiTheme.
|
|
74
|
+
hover: transparentize(euiTheme.colors.primary, 0.05),
|
|
75
|
+
focus: transparentize(euiTheme.colors.primary, 0.1)
|
|
74
76
|
}
|
|
75
77
|
};
|
|
76
78
|
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, euiFontSize, mathWithUnits } from '../../global_styling';
|
|
10
|
+
import { logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, euiFontSize, euiBackgroundColor, mathWithUnits } from '../../global_styling';
|
|
11
11
|
import { euiLinkCSS } from '../link/link.styles';
|
|
12
12
|
import { euiTitle } from '../title/title.styles';
|
|
13
13
|
|
|
@@ -65,7 +65,7 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
|
|
|
65
65
|
export var euiTextStyles = function euiTextStyles(euiThemeContext) {
|
|
66
66
|
var euiTheme = euiThemeContext.euiTheme;
|
|
67
67
|
return {
|
|
68
|
-
euiText: /*#__PURE__*/css(euiText(euiTheme, true), "clear:both;a:not([class]){", euiLinkCSS(euiThemeContext), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote{border-inline-start-color:", euiTheme.border.color, ";border-inline-start-style:solid;}blockquote:not(.euiMarkdownFormat__blockquote){color:", euiTheme.colors.subduedText, ";}h1{", euiTitle(euiThemeContext, 'l'), ";}h2{", euiTitle(euiThemeContext, 'm'), ";}h3{", euiTitle(euiThemeContext, 's'), ";}h4,dt{", euiTitle(euiThemeContext, 'xs'), ";}h5{", euiTitle(euiThemeContext, 'xxs'), ";}h6{", euiTitle(euiThemeContext, 'xxxs'), " text-transform:uppercase;}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock__pre){white-space:pre-wrap;background:",
|
|
68
|
+
euiText: /*#__PURE__*/css(euiText(euiTheme, true), "clear:both;a:not([class]){", euiLinkCSS(euiThemeContext), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote{border-inline-start-color:", euiTheme.border.color, ";border-inline-start-style:solid;}blockquote:not(.euiMarkdownFormat__blockquote){color:", euiTheme.colors.subduedText, ";}h1{", euiTitle(euiThemeContext, 'l'), ";}h2{", euiTitle(euiThemeContext, 'm'), ";}h3{", euiTitle(euiThemeContext, 's'), ";}h4,dt{", euiTitle(euiThemeContext, 'xs'), ";}h5{", euiTitle(euiThemeContext, 'xxs'), ";}h6{", euiTitle(euiThemeContext, 'xxxs'), " text-transform:uppercase;}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock__pre){white-space:pre-wrap;background:", euiBackgroundColor(euiThemeContext, 'subdued'), ";color:", euiTheme.colors.text, ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", logicalCSS('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", logicalCSS('padding-vertical', euiTheme.size.xxs), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.text, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
69
69
|
return x / 2;
|
|
70
70
|
}), ";};label:euiText;"),
|
|
71
71
|
constrainedWidth: /*#__PURE__*/css(logicalCSS('max-width', euiTextConstrainedMaxWidth), ";;label:constrainedWidth;"),
|
|
@@ -20,7 +20,7 @@ import PropTypes from "prop-types";
|
|
|
20
20
|
import { useEuiMemoizedStyles, cloneElementWithCss } from '../../services';
|
|
21
21
|
import { euiTextColorStyles } from './text_color.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
|
-
export var COLORS = ['default', 'subdued', 'success', 'accent', '
|
|
23
|
+
export var COLORS = ['default', 'subdued', 'success', 'accent', 'danger', 'warning', 'ghost', 'inherit'];
|
|
24
24
|
export var _isNamedColor = function _isNamedColor(color) {
|
|
25
25
|
return COLORS.includes(color);
|
|
26
26
|
};
|
|
@@ -21,12 +21,11 @@ export var euiTextColorStyles = function euiTextColorStyles(_ref2) {
|
|
|
21
21
|
return {
|
|
22
22
|
euiTextColor: /*#__PURE__*/css(";label:euiTextColor;"),
|
|
23
23
|
default: /*#__PURE__*/css("color:", euiTheme.colors.text, ";;label:default;"),
|
|
24
|
-
subdued: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
25
|
-
success: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
26
|
-
accent: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"),
|
|
24
|
+
subdued: /*#__PURE__*/css("color:", euiTheme.colors.subduedText, ";;label:subdued;"),
|
|
25
|
+
success: /*#__PURE__*/css("color:", euiTheme.colors.successText, ";;label:success;"),
|
|
26
|
+
accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
|
|
27
|
+
danger: /*#__PURE__*/css("color:", euiTheme.colors.dangerText, ";;label:danger;"),
|
|
28
|
+
warning: /*#__PURE__*/css("color:", euiTheme.colors.warningText, ";;label:warning;"),
|
|
30
29
|
ghost: /*#__PURE__*/css("color:", euiTheme.colors.ghost, "!important;;label:ghost;"),
|
|
31
30
|
inherit: _ref,
|
|
32
31
|
customColor: /*#__PURE__*/css(";label:customColor;") // Handled by `style` tag - this is just here for a className hook
|
|
@@ -14,7 +14,7 @@ export var euiToastStyles = function euiToastStyles(euiThemeContext) {
|
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
15
|
return {
|
|
16
16
|
// Base
|
|
17
|
-
euiToast: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.medium, ";", euiShadowLarge(euiThemeContext), " position:relative;", logicalCSS('padding-horizontal', euiTheme.size.base), " ", logicalCSS('padding-vertical', euiTheme.size.base), " background-color:", euiTheme.colors.emptyShade, ";", logicalCSS('width', '100%'), "
|
|
17
|
+
euiToast: /*#__PURE__*/css("border-radius:", euiTheme.border.radius.medium, ";", euiShadowLarge(euiThemeContext), " position:relative;", logicalCSS('padding-horizontal', euiTheme.size.base), " ", logicalCSS('padding-vertical', euiTheme.size.base), " background-color:", euiTheme.colors.emptyShade, ";", logicalCSS('width', '100%'), " ", euiTextBreakWord(), "&:hover,&:focus{[class*='euiToast__closeButton']{opacity:1;}};label:euiToast;"),
|
|
18
18
|
// Elements
|
|
19
19
|
euiToast__closeButton: /*#__PURE__*/css("position:absolute;", logicalCSS('top', euiTheme.size.base), " ", logicalCSS('right', euiTheme.size.base), ";;label:euiToast__closeButton;"),
|
|
20
20
|
// Variants
|
|
@@ -22,11 +22,11 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
22
22
|
* Side Public License, v 1.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import React
|
|
25
|
+
import React from 'react';
|
|
26
26
|
import classNames from 'classnames';
|
|
27
27
|
import { useEuiTheme, isColorDark, hexToRgb } from '../../services';
|
|
28
28
|
import { EuiIcon } from '../icon';
|
|
29
|
-
import {
|
|
29
|
+
import { TOKEN_MAP } from './token_map';
|
|
30
30
|
import { COLORS } from './token_types';
|
|
31
31
|
import { euiTokenStyles } from './token.styles';
|
|
32
32
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -57,9 +57,6 @@ export var EuiToken = function EuiToken(_ref) {
|
|
|
57
57
|
if (typeof iconType === 'string' && iconType.indexOf('token') === 0 && size === 's') {
|
|
58
58
|
finalSize = 'm';
|
|
59
59
|
}
|
|
60
|
-
var euiTheme = useEuiTheme();
|
|
61
|
-
var hasVisColorAdjustment = euiTheme.euiTheme.flags.hasVisColorAdjustment;
|
|
62
|
-
var TOKEN_MAP = hasVisColorAdjustment ? TOKEN_MAP_AMSTERDAM : TOKEN_MAP_BOREALIS;
|
|
63
60
|
|
|
64
61
|
// If the iconType passed is one of the prefab token types,
|
|
65
62
|
// grab its properties
|
|
@@ -67,11 +64,8 @@ export var EuiToken = function EuiToken(_ref) {
|
|
|
67
64
|
var finalColor = color || tokenDefaults.color || 'gray';
|
|
68
65
|
var finalShape = shape || tokenDefaults.shape || 'circle';
|
|
69
66
|
var finalFill = fill || 'light';
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
var styles = useMemo(function () {
|
|
73
|
-
return euiTokenStyles(euiTheme, finalFill);
|
|
74
|
-
}, [euiTheme, finalFill]);
|
|
67
|
+
var euiTheme = useEuiTheme();
|
|
68
|
+
var styles = euiTokenStyles(euiTheme, finalFill);
|
|
75
69
|
var cssStyles = [styles.euiToken, styles[finalShape], styles[finalFill], styles[size]];
|
|
76
70
|
var finalStyle = style;
|
|
77
71
|
if (isTokenColor(finalColor)) {
|
|
@@ -17,24 +17,15 @@ import { css } from '@emotion/react';
|
|
|
17
17
|
import chroma from 'chroma-js';
|
|
18
18
|
import { logicalCSS, logicalSizeCSS, mathWithUnits } from '../../global_styling';
|
|
19
19
|
import { euiPaletteColorBlind, euiPaletteColorBlindBehindText, makeHighContrastColor, isColorDark, tint, shade } from '../../services';
|
|
20
|
-
|
|
20
|
+
var visColors = euiPaletteColorBlind();
|
|
21
|
+
var visColorsBehindText = euiPaletteColorBlindBehindText();
|
|
21
22
|
var getTokenColor = function getTokenColor(euiTheme, colorMode, fill, color) {
|
|
22
|
-
var hasVisColorAdjustment = euiTheme.flags.hasVisColorAdjustment;
|
|
23
|
-
// use inside function as they are not returning constants,
|
|
24
|
-
// but internally depend on EUI_VIS_COLOR_STORE to update per theme
|
|
25
|
-
var visColors = euiPaletteColorBlind();
|
|
26
|
-
var visColorsBehindText = euiPaletteColorBlindBehindText();
|
|
27
23
|
var isVizColor = typeof color === 'number';
|
|
28
24
|
var iconColor = isVizColor ? visColors[color] : euiTheme.colors.darkShade;
|
|
29
25
|
var isDarkMode = colorMode === 'DARK';
|
|
30
26
|
var backgroundDarkColor = isVizColor ? visColorsBehindText[color] : euiTheme.colors.darkShade;
|
|
31
27
|
var backgroundLightColor = isDarkMode ? shade(iconColor, 0.7) : tint(iconColor, 0.9);
|
|
32
|
-
var
|
|
33
|
-
var iconColorKey = "euiColorVis".concat(color);
|
|
34
|
-
var iconColorToken = TOKEN_COLOR_TO_ICON_COLOR_MAP[iconColorKey];
|
|
35
|
-
return euiTheme.colors.vis[iconColorToken];
|
|
36
|
-
};
|
|
37
|
-
var lightColor = hasVisColorAdjustment ? makeHighContrastColor(iconColor)(backgroundLightColor) : isVizColor ? getIconVisColor(euiTheme, color) : iconColor;
|
|
28
|
+
var lightColor = makeHighContrastColor(iconColor)(backgroundLightColor);
|
|
38
29
|
var boxShadowColor = isDarkMode ? shade(iconColor, 0.6) : tint(iconColor, 0.7);
|
|
39
30
|
var darkColor = isColorDark.apply(void 0, _toConsumableArray(chroma(backgroundDarkColor).rgb())) ? euiTheme.colors.ghost : euiTheme.colors.ink;
|
|
40
31
|
switch (fill) {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* circle shape for more uncommon token types so they grab attention.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
export var
|
|
15
|
+
export var TOKEN_MAP = {
|
|
16
16
|
tokenAlias: {
|
|
17
17
|
shape: 'circle',
|
|
18
18
|
color: 'euiColorVis3'
|
|
@@ -241,246 +241,4 @@ export var TOKEN_MAP_AMSTERDAM = {
|
|
|
241
241
|
shape: 'square',
|
|
242
242
|
color: 'euiColorVis1'
|
|
243
243
|
}
|
|
244
|
-
};
|
|
245
|
-
export var TOKEN_MAP_BOREALIS = {
|
|
246
|
-
tokenAlias: {
|
|
247
|
-
shape: 'circle',
|
|
248
|
-
color: 'euiColorVis1'
|
|
249
|
-
},
|
|
250
|
-
tokenAnnotation: {
|
|
251
|
-
shape: 'square',
|
|
252
|
-
color: 'euiColorVis8'
|
|
253
|
-
},
|
|
254
|
-
tokenArray: {
|
|
255
|
-
shape: 'square',
|
|
256
|
-
color: 'euiColorVis3'
|
|
257
|
-
},
|
|
258
|
-
tokenBinary: {
|
|
259
|
-
shape: 'square',
|
|
260
|
-
color: 'euiColorVis5'
|
|
261
|
-
},
|
|
262
|
-
tokenBoolean: {
|
|
263
|
-
shape: 'square',
|
|
264
|
-
color: 'euiColorVis3'
|
|
265
|
-
},
|
|
266
|
-
tokenClass: {
|
|
267
|
-
shape: 'circle',
|
|
268
|
-
color: 'euiColorVis2'
|
|
269
|
-
},
|
|
270
|
-
tokenCompletionSuggester: {
|
|
271
|
-
shape: 'square',
|
|
272
|
-
color: 'euiColorVis2'
|
|
273
|
-
},
|
|
274
|
-
tokenConstant: {
|
|
275
|
-
shape: 'circle',
|
|
276
|
-
color: 'euiColorVis0'
|
|
277
|
-
},
|
|
278
|
-
tokenDate: {
|
|
279
|
-
shape: 'square',
|
|
280
|
-
color: 'euiColorVis9'
|
|
281
|
-
},
|
|
282
|
-
tokenDimension: {
|
|
283
|
-
shape: 'square',
|
|
284
|
-
color: 'euiColorVis2'
|
|
285
|
-
},
|
|
286
|
-
tokenElement: {
|
|
287
|
-
shape: 'square',
|
|
288
|
-
color: 'euiColorVis1'
|
|
289
|
-
},
|
|
290
|
-
tokenEnum: {
|
|
291
|
-
shape: 'circle',
|
|
292
|
-
color: 'euiColorVis1'
|
|
293
|
-
},
|
|
294
|
-
tokenEnumMember: {
|
|
295
|
-
shape: 'square',
|
|
296
|
-
color: 'euiColorVis3'
|
|
297
|
-
},
|
|
298
|
-
tokenEvent: {
|
|
299
|
-
shape: 'circle',
|
|
300
|
-
color: 'euiColorVis5'
|
|
301
|
-
},
|
|
302
|
-
tokenException: {
|
|
303
|
-
shape: 'circle',
|
|
304
|
-
color: 'euiColorVis0'
|
|
305
|
-
},
|
|
306
|
-
tokenField: {
|
|
307
|
-
shape: 'circle',
|
|
308
|
-
color: 'euiColorVis0'
|
|
309
|
-
},
|
|
310
|
-
tokenFile: {
|
|
311
|
-
shape: 'square',
|
|
312
|
-
color: 'euiColorVis4'
|
|
313
|
-
},
|
|
314
|
-
tokenFlattened: {
|
|
315
|
-
shape: 'square',
|
|
316
|
-
color: 'euiColorVis3'
|
|
317
|
-
},
|
|
318
|
-
tokenFunction: {
|
|
319
|
-
shape: 'circle',
|
|
320
|
-
color: 'euiColorVis4'
|
|
321
|
-
},
|
|
322
|
-
tokenGeo: {
|
|
323
|
-
shape: 'square',
|
|
324
|
-
color: 'euiColorVis8'
|
|
325
|
-
},
|
|
326
|
-
tokenHistogram: {
|
|
327
|
-
shape: 'square',
|
|
328
|
-
color: 'euiColorVis9'
|
|
329
|
-
},
|
|
330
|
-
tokenInterface: {
|
|
331
|
-
shape: 'circle',
|
|
332
|
-
color: 'euiColorVis6'
|
|
333
|
-
},
|
|
334
|
-
tokenIP: {
|
|
335
|
-
shape: 'square',
|
|
336
|
-
color: 'euiColorVis6'
|
|
337
|
-
},
|
|
338
|
-
tokenJoin: {
|
|
339
|
-
shape: 'square',
|
|
340
|
-
color: 'euiColorVis8'
|
|
341
|
-
},
|
|
342
|
-
tokenKey: {
|
|
343
|
-
shape: 'circle',
|
|
344
|
-
color: 'euiColorVis8'
|
|
345
|
-
},
|
|
346
|
-
tokenKeyword: {
|
|
347
|
-
shape: 'square',
|
|
348
|
-
color: 'euiColorVis2'
|
|
349
|
-
},
|
|
350
|
-
tokenMethod: {
|
|
351
|
-
shape: 'square',
|
|
352
|
-
color: 'euiColorVis4'
|
|
353
|
-
},
|
|
354
|
-
tokenMetricCounter: {
|
|
355
|
-
shape: 'square',
|
|
356
|
-
color: 'euiColorVis0'
|
|
357
|
-
},
|
|
358
|
-
tokenMetricGauge: {
|
|
359
|
-
shape: 'square',
|
|
360
|
-
color: 'euiColorVis0'
|
|
361
|
-
},
|
|
362
|
-
tokenModule: {
|
|
363
|
-
shape: 'square',
|
|
364
|
-
color: 'euiColorVis5'
|
|
365
|
-
},
|
|
366
|
-
tokenNamespace: {
|
|
367
|
-
shape: 'square',
|
|
368
|
-
color: 'euiColorVis2'
|
|
369
|
-
},
|
|
370
|
-
tokenNested: {
|
|
371
|
-
shape: 'circle',
|
|
372
|
-
color: 'euiColorVis4'
|
|
373
|
-
},
|
|
374
|
-
tokenNull: {
|
|
375
|
-
shape: 'square',
|
|
376
|
-
color: 'euiColorVis4'
|
|
377
|
-
},
|
|
378
|
-
tokenNumber: {
|
|
379
|
-
shape: 'square',
|
|
380
|
-
color: 'euiColorVis0'
|
|
381
|
-
},
|
|
382
|
-
tokenObject: {
|
|
383
|
-
shape: 'circle',
|
|
384
|
-
color: 'euiColorVis1'
|
|
385
|
-
},
|
|
386
|
-
tokenOperator: {
|
|
387
|
-
shape: 'circle',
|
|
388
|
-
color: 'euiColorVis5'
|
|
389
|
-
},
|
|
390
|
-
tokenPackage: {
|
|
391
|
-
shape: 'square',
|
|
392
|
-
color: 'euiColorVis0'
|
|
393
|
-
},
|
|
394
|
-
tokenParameter: {
|
|
395
|
-
shape: 'square',
|
|
396
|
-
color: 'euiColorVis5'
|
|
397
|
-
},
|
|
398
|
-
tokenPercolator: {
|
|
399
|
-
shape: 'square',
|
|
400
|
-
color: 'euiColorVis9'
|
|
401
|
-
},
|
|
402
|
-
tokenProperty: {
|
|
403
|
-
shape: 'circle',
|
|
404
|
-
color: 'euiColorVis4'
|
|
405
|
-
},
|
|
406
|
-
tokenRange: {
|
|
407
|
-
shape: 'circle',
|
|
408
|
-
color: 'euiColorVis5'
|
|
409
|
-
},
|
|
410
|
-
tokenRankFeature: {
|
|
411
|
-
shape: 'square',
|
|
412
|
-
color: 'euiColorVis7'
|
|
413
|
-
},
|
|
414
|
-
tokenRankFeatures: {
|
|
415
|
-
shape: 'square',
|
|
416
|
-
color: 'euiColorVis1'
|
|
417
|
-
},
|
|
418
|
-
tokenRepo: {
|
|
419
|
-
shape: 'square',
|
|
420
|
-
color: 'euiColorVis2'
|
|
421
|
-
},
|
|
422
|
-
tokenSearchType: {
|
|
423
|
-
shape: 'square',
|
|
424
|
-
color: 'euiColorVis8'
|
|
425
|
-
},
|
|
426
|
-
tokenSemanticText: {
|
|
427
|
-
shape: 'square',
|
|
428
|
-
color: 'euiColorVis0'
|
|
429
|
-
},
|
|
430
|
-
tokenShape: {
|
|
431
|
-
shape: 'circle',
|
|
432
|
-
color: 'euiColorVis7'
|
|
433
|
-
},
|
|
434
|
-
tokenString: {
|
|
435
|
-
shape: 'square',
|
|
436
|
-
color: 'euiColorVis2'
|
|
437
|
-
},
|
|
438
|
-
tokenStruct: {
|
|
439
|
-
shape: 'square',
|
|
440
|
-
color: 'euiColorVis0'
|
|
441
|
-
},
|
|
442
|
-
tokenSymbol: {
|
|
443
|
-
shape: 'square',
|
|
444
|
-
color: 'euiColorVis0'
|
|
445
|
-
},
|
|
446
|
-
tokenTag: {
|
|
447
|
-
shape: 'square',
|
|
448
|
-
color: 'euiColorVis6'
|
|
449
|
-
},
|
|
450
|
-
tokenText: {
|
|
451
|
-
shape: 'square',
|
|
452
|
-
color: 'euiColorVis1'
|
|
453
|
-
},
|
|
454
|
-
tokenTokenCount: {
|
|
455
|
-
shape: 'square',
|
|
456
|
-
color: 'euiColorVis5'
|
|
457
|
-
},
|
|
458
|
-
tokenVariable: {
|
|
459
|
-
shape: 'circle',
|
|
460
|
-
color: 'euiColorVis3'
|
|
461
|
-
},
|
|
462
|
-
tokenVectorDense: {
|
|
463
|
-
shape: 'square',
|
|
464
|
-
color: 'euiColorVis8'
|
|
465
|
-
},
|
|
466
|
-
tokenDenseVector: {
|
|
467
|
-
shape: 'square',
|
|
468
|
-
color: 'euiColorVis8'
|
|
469
|
-
},
|
|
470
|
-
tokenVectorSparse: {
|
|
471
|
-
shape: 'square',
|
|
472
|
-
color: 'euiColorVis2'
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
export var TOKEN_COLOR_TO_ICON_COLOR_MAP = {
|
|
476
|
-
euiColorVis0: 'euiColorVis0',
|
|
477
|
-
euiColorVis1: 'euiColorVis0',
|
|
478
|
-
euiColorVis2: 'euiColorVis2',
|
|
479
|
-
euiColorVis3: 'euiColorVis2',
|
|
480
|
-
euiColorVis4: 'euiColorVis4',
|
|
481
|
-
euiColorVis5: 'euiColorVis4',
|
|
482
|
-
euiColorVis6: 'euiColorVis6',
|
|
483
|
-
euiColorVis7: 'euiColorVis6',
|
|
484
|
-
euiColorVis8: 'euiColorVis8',
|
|
485
|
-
euiColorVis9: 'euiColorVis8'
|
|
486
244
|
};
|
|
@@ -10,14 +10,14 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { css, keyframes } from '@emotion/react';
|
|
13
|
-
import { logicalCSS, euiFontSize, euiCanAnimate } from '../../global_styling';
|
|
14
|
-
import {
|
|
13
|
+
import { logicalCSS, logicalSizeCSS, euiFontSize, euiCanAnimate, mathWithUnits } from '../../global_styling';
|
|
14
|
+
import { COLOR_MODES_STANDARD, tint, shade } from '../../services';
|
|
15
15
|
import { euiShadow } from '../../themes/amsterdam';
|
|
16
|
-
export var euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme) {
|
|
17
|
-
return euiTheme.
|
|
16
|
+
export var euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme, colorMode) {
|
|
17
|
+
return colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.emptyShade, 1) : tint(euiTheme.colors.fullShade, 0.25);
|
|
18
18
|
};
|
|
19
|
-
export var euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme) {
|
|
20
|
-
return euiTheme.
|
|
19
|
+
export var euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme, colorMode) {
|
|
20
|
+
return colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.fullShade, 0.8) : tint(euiTheme.colors.fullShade, 0.35);
|
|
21
21
|
};
|
|
22
22
|
var euiToolTipAnimationVertical = function euiToolTipAnimationVertical(size) {
|
|
23
23
|
return keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateY(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])), size);
|
|
@@ -28,13 +28,18 @@ var euiToolTipAnimationHorizontal = function euiToolTipAnimationHorizontal(size)
|
|
|
28
28
|
export var euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
|
|
29
29
|
var euiTheme = euiThemeContext.euiTheme,
|
|
30
30
|
colorMode = euiThemeContext.colorMode;
|
|
31
|
-
var hasVisibleBorder = colorMode === 'DARK';
|
|
32
31
|
var animationTiming = "".concat(euiTheme.animation.slow, " ease-out 0s forwards");
|
|
32
|
+
// Shift arrow 1px more than half its size to account for border radius
|
|
33
33
|
var arrowSize = euiTheme.size.m;
|
|
34
|
-
var
|
|
34
|
+
var arrowPlusSize = mathWithUnits(arrowSize, function (x) {
|
|
35
|
+
return (x / 2 + 1) * -1;
|
|
36
|
+
});
|
|
37
|
+
var arrowMinusSize = mathWithUnits(arrowSize, function (x) {
|
|
38
|
+
return (x / 2 - 1) * -1;
|
|
39
|
+
});
|
|
35
40
|
return {
|
|
36
41
|
// Base
|
|
37
|
-
euiToolTip: /*#__PURE__*/css(euiShadow(euiThemeContext), " border
|
|
42
|
+
euiToolTip: /*#__PURE__*/css(euiShadow(euiThemeContext), " border-radius:", euiTheme.border.radius.medium, ";background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";color:", euiTheme.colors.ghost, ";z-index:", euiTheme.levels.toast, ";", logicalCSS('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", euiFontSize(euiThemeContext, 's'), " position:absolute;[class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme, colorMode), ";};label:euiToolTip;"),
|
|
38
43
|
// Sizes
|
|
39
44
|
s: /*#__PURE__*/css(euiFontSize(euiThemeContext, 'xs'), ";;label:s;"),
|
|
40
45
|
// Positions
|
|
@@ -43,10 +48,17 @@ export var euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
|
|
|
43
48
|
left: /*#__PURE__*/css(euiCanAnimate, "{animation:", euiToolTipAnimationHorizontal("-".concat(euiTheme.size.base)), " ", animationTiming, ";};label:left;"),
|
|
44
49
|
right: /*#__PURE__*/css(euiCanAnimate, "{animation:", euiToolTipAnimationHorizontal(euiTheme.size.base), " ", animationTiming, ";};label:right;"),
|
|
45
50
|
// Arrow
|
|
46
|
-
euiToolTip__arrow: /*#__PURE__*/css(
|
|
47
|
-
|
|
51
|
+
euiToolTip__arrow: /*#__PURE__*/css("content:'';position:absolute;transform-origin:center;border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
52
|
+
return x / 2;
|
|
53
|
+
}), ";background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";", logicalSizeCSS(arrowSize, arrowSize), ";;label:euiToolTip__arrow;"),
|
|
54
|
+
arrowPositions: {
|
|
55
|
+
top: /*#__PURE__*/css("transform:translateY(", arrowPlusSize, ") rotateZ(45deg);;label:top;"),
|
|
56
|
+
bottom: /*#__PURE__*/css("transform:translateY(", arrowMinusSize, ") rotateZ(45deg);;label:bottom;"),
|
|
57
|
+
left: /*#__PURE__*/css("transform:translateX(", arrowPlusSize, ") rotateZ(45deg);;label:left;"),
|
|
58
|
+
right: /*#__PURE__*/css("transform:translateX(", arrowMinusSize, ") rotateZ(45deg);;label:right;")
|
|
59
|
+
},
|
|
48
60
|
// Title
|
|
49
|
-
euiToolTip__title: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";", logicalCSS('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme))), " ", logicalCSS('padding-bottom', euiTheme.size.xs), " ", logicalCSS('margin-bottom', euiTheme.size.xs), ";;label:euiToolTip__title;")
|
|
61
|
+
euiToolTip__title: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.bold, ";", logicalCSS('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme, colorMode))), " ", logicalCSS('padding-bottom', euiTheme.size.xs), " ", logicalCSS('margin-bottom', euiTheme.size.xs), ";;label:euiToolTip__title;")
|
|
50
62
|
};
|
|
51
63
|
};
|
|
52
64
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { shade, tint } from '../../services';
|
|
10
11
|
import { logicalCSS } from '../../global_styling';
|
|
11
12
|
export var _tourFooterBgColor = function _tourFooterBgColor(_ref) {
|
|
12
|
-
var
|
|
13
|
-
|
|
13
|
+
var colorMode = _ref.colorMode,
|
|
14
|
+
euiTheme = _ref.euiTheme;
|
|
15
|
+
return colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.45) : tint(euiTheme.colors.lightestShade, 0.5);
|
|
14
16
|
};
|
|
15
17
|
export var euiTourFooterStyles = function euiTourFooterStyles(euiThemeContext) {
|
|
16
18
|
var euiTheme = euiThemeContext.euiTheme;
|