@elastic/eui 98.2.0 → 98.2.1-borealis.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_dark.json.d.ts → eui_theme_amsterdam_dark.json.d.ts} +1 -1
- package/dist/{eui_theme_light.json.d.ts → eui_theme_amsterdam_light.json.d.ts} +1 -1
- package/dist/eui_theme_borealis_dark.json +314 -0
- package/dist/eui_theme_borealis_dark.json.d.ts +317 -0
- package/dist/eui_theme_borealis_light.json +314 -0
- package/dist/eui_theme_borealis_light.json.d.ts +317 -0
- package/es/components/avatar/avatar.js +10 -4
- package/es/components/badge/badge.styles.js +1 -2
- package/es/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/es/components/badge/color_utils.js +9 -8
- package/es/components/beacon/beacon.styles.js +2 -2
- package/es/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- 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 +6 -3
- package/es/components/code/code_block_annotations.js +1 -1
- package/es/components/code/code_block_line.styles.js +1 -2
- package/es/components/code/code_syntax.styles.js +23 -27
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- 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 +1 -2
- package/es/components/color_picker/color_picker.js +9 -3
- package/es/components/color_picker/color_picker.styles.js +1 -2
- 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 +5 -4
- package/es/components/comment_list/comment_list.js +1 -1
- package/es/components/common.js +0 -28
- package/es/components/datagrid/data_grid.styles.js +6 -7
- package/es/components/date_picker/react_date_picker.styles.js +2 -1
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
- package/es/components/drag_and_drop/droppable.styles.js +2 -4
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/empty_prompt/empty_prompt.styles.js +6 -2
- package/es/components/filter_group/filter_select_item.styles.js +1 -2
- package/es/components/flyout/_flyout_close_button.styles.js +1 -2
- package/es/components/flyout/flyout.js +1 -1
- package/es/components/flyout/flyout.styles.js +7 -2
- package/es/components/flyout/flyout_footer.styles.js +1 -1
- package/es/components/form/form.styles.js +28 -32
- package/es/components/form/range/range_tooltip.styles.js +11 -13
- package/es/components/form/switch/switch.js +3 -7
- package/es/components/form/switch/switch.styles.js +16 -19
- package/es/components/header/header.styles.js +6 -7
- package/es/components/icon/icon.styles.js +9 -8
- package/es/components/icon/named_colors.js +1 -1
- package/es/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
- package/es/components/list_group/list_group_item.styles.js +9 -11
- package/es/components/loading/loading_chart.styles.js +18 -5
- package/es/components/mark/mark.styles.js +2 -9
- package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- 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 +1 -2
- 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 +8 -3
- package/es/components/popover/popover_arrow/_popover_arrow.styles.js +18 -13
- 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 +30 -28
- package/es/components/resizable_container/resizable_panel.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/es/components/side_nav/side_nav_item.styles.js +1 -2
- package/es/components/skeleton/utils.js +5 -7
- package/es/components/steps/step_number.styles.js +1 -1
- package/es/components/table/table_cells_shared.styles.js +2 -7
- package/es/components/table/table_row.styles.js +8 -10
- 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 +6 -5
- package/es/components/toast/toast.styles.js +1 -1
- package/es/components/token/token.js +10 -4
- package/es/components/token/token.styles.js +12 -3
- package/es/components/token/token_map.js +243 -1
- package/es/components/tool_tip/tool_tip.styles.js +12 -24
- package/es/components/tour/_tour_footer.styles.js +2 -4
- package/es/components/tour/tour.styles.js +8 -12
- package/es/components/tree_view/tree_view_item.styles.js +1 -2
- package/es/global_styling/functions/math.js +1 -49
- package/es/global_styling/functions/size.js +1 -17
- package/es/global_styling/mixins/_button.js +159 -0
- package/es/global_styling/mixins/_color.js +39 -31
- package/es/global_styling/mixins/index.js +2 -1
- package/es/global_styling/reset/global_styles.js +2 -2
- package/es/global_styling/variables/_colors_vis.js +1 -53
- package/es/global_styling/variables/animations.js +1 -22
- package/es/global_styling/variables/breakpoint.js +1 -7
- package/es/global_styling/variables/levels.js +1 -17
- package/es/global_styling/variables/shadow.js +1 -11
- package/es/global_styling/variables/size.js +1 -1
- package/es/global_styling/variables/typography.js +1 -32
- package/es/services/color/eui_palettes.js +116 -47
- package/es/services/color/index.js +1 -0
- package/es/services/color/vis_color_store.js +13 -0
- package/es/services/index.js +1 -1
- package/es/services/popover/index.js +4 -1
- package/es/services/popover/popover_arrow.styles.js +31 -0
- package/es/services/popover/popover_positioning.js +6 -17
- package/es/services/theme/provider.js +26 -2
- package/es/services/theme/types.js +1 -6
- package/es/services/theme/utils.js +1 -303
- package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
- package/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
- package/es/themes/amsterdam/global_styling/variables/_colors.js +618 -25
- package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +109 -0
- package/es/themes/amsterdam/global_styling/variables/_components.js +604 -0
- package/es/themes/amsterdam/global_styling/variables/_forms.js +161 -0
- package/es/themes/amsterdam/theme.js +7 -1
- package/es/themes/index.js +1 -1
- package/es/themes/themes.js +9 -6
- package/eui.d.ts +2382 -2830
- package/lib/components/avatar/avatar.js +8 -2
- package/lib/components/badge/badge.styles.js +1 -2
- package/lib/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/lib/components/badge/color_utils.js +14 -13
- package/lib/components/beacon/beacon.styles.js +2 -2
- package/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- 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 +5 -2
- package/lib/components/code/code_block_annotations.js +1 -1
- package/lib/components/code/code_block_line.styles.js +1 -2
- package/lib/components/code/code_syntax.styles.js +23 -27
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- 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 +1 -2
- package/lib/components/color_picker/color_picker.js +8 -2
- package/lib/components/color_picker/color_picker.styles.js +1 -2
- 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 +5 -4
- package/lib/components/comment_list/comment_list.js +1 -1
- package/lib/components/common.js +0 -28
- package/lib/components/datagrid/data_grid.styles.js +6 -7
- package/lib/components/date_picker/react_date_picker.styles.js +3 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
- package/lib/components/drag_and_drop/droppable.styles.js +2 -4
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.styles.js +5 -1
- package/lib/components/filter_group/filter_select_item.styles.js +1 -2
- package/lib/components/flyout/_flyout_close_button.styles.js +1 -2
- package/lib/components/flyout/flyout.js +1 -1
- package/lib/components/flyout/flyout.styles.js +7 -2
- package/lib/components/flyout/flyout_footer.styles.js +1 -1
- package/lib/components/form/form.styles.js +27 -31
- package/lib/components/form/range/range_tooltip.styles.js +11 -13
- package/lib/components/form/switch/switch.js +3 -7
- package/lib/components/form/switch/switch.styles.js +16 -19
- package/lib/components/header/header.styles.js +5 -6
- package/lib/components/icon/icon.styles.js +9 -8
- package/lib/components/icon/named_colors.js +1 -1
- package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
- package/lib/components/list_group/list_group_item.styles.js +8 -10
- package/lib/components/loading/loading_chart.styles.js +18 -5
- package/lib/components/mark/mark.styles.js +2 -9
- package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- 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 +1 -2
- 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 +8 -3
- package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +18 -15
- 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 +29 -27
- package/lib/components/resizable_container/resizable_panel.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/lib/components/side_nav/side_nav_item.styles.js +1 -2
- package/lib/components/skeleton/utils.js +4 -6
- package/lib/components/steps/step_number.styles.js +1 -1
- package/lib/components/table/table_cells_shared.styles.js +2 -7
- package/lib/components/table/table_row.styles.js +7 -9
- 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 +6 -5
- package/lib/components/toast/toast.styles.js +1 -1
- package/lib/components/token/token.js +12 -4
- package/lib/components/token/token.styles.js +12 -3
- package/lib/components/token/token_map.js +244 -2
- package/lib/components/tool_tip/tool_tip.styles.js +11 -23
- package/lib/components/tour/_tour_footer.styles.js +2 -4
- package/lib/components/tour/tour.styles.js +8 -12
- package/lib/components/tree_view/tree_view_item.styles.js +1 -2
- package/lib/global_styling/functions/math.js +7 -58
- package/lib/global_styling/functions/size.js +7 -26
- package/lib/global_styling/mixins/_button.js +164 -0
- package/lib/global_styling/mixins/_color.js +38 -30
- package/lib/global_styling/mixins/index.js +11 -0
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/lib/global_styling/variables/_colors_vis.js +6 -61
- package/lib/global_styling/variables/animations.js +25 -31
- package/lib/global_styling/variables/breakpoint.js +7 -16
- package/lib/global_styling/variables/levels.js +7 -26
- package/lib/global_styling/variables/shadow.js +13 -20
- package/lib/global_styling/variables/size.js +7 -10
- package/lib/global_styling/variables/typography.js +19 -41
- package/lib/services/color/eui_palettes.js +116 -47
- package/lib/services/color/index.js +8 -0
- package/lib/services/color/vis_color_store.js +18 -0
- package/lib/services/index.js +7 -0
- package/lib/services/popover/index.js +8 -1
- package/lib/services/popover/popover_arrow.styles.js +37 -0
- package/lib/services/popover/popover_positioning.js +6 -17
- package/lib/services/theme/provider.js +26 -2
- package/lib/services/theme/types.js +13 -14
- package/lib/services/theme/utils.js +54 -303
- package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
- package/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +617 -25
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +115 -0
- package/lib/themes/amsterdam/global_styling/variables/_components.js +608 -0
- package/lib/themes/amsterdam/global_styling/variables/_forms.js +165 -0
- package/lib/themes/amsterdam/theme.js +7 -1
- package/lib/themes/index.js +7 -0
- package/lib/themes/themes.js +10 -7
- package/optimize/es/components/avatar/avatar.js +10 -4
- package/optimize/es/components/badge/badge.styles.js +1 -2
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/optimize/es/components/badge/color_utils.js +9 -8
- package/optimize/es/components/beacon/beacon.styles.js +2 -2
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- 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 +6 -3
- package/optimize/es/components/code/code_block_annotations.js +1 -1
- package/optimize/es/components/code/code_block_line.styles.js +1 -2
- package/optimize/es/components/code/code_syntax.styles.js +23 -27
- package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- 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 +1 -2
- package/optimize/es/components/color_picker/color_picker.js +9 -3
- package/optimize/es/components/color_picker/color_picker.styles.js +1 -2
- package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/optimize/es/components/comment_list/comment_event.js +4 -3
- package/optimize/es/components/common.js +0 -28
- package/optimize/es/components/datagrid/data_grid.styles.js +6 -7
- package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
- package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
- package/optimize/es/components/empty_prompt/empty_prompt.styles.js +6 -2
- package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -2
- package/optimize/es/components/flyout/flyout.js +1 -1
- package/optimize/es/components/flyout/flyout.styles.js +7 -2
- package/optimize/es/components/flyout/flyout_footer.styles.js +1 -1
- package/optimize/es/components/form/form.styles.js +28 -32
- package/optimize/es/components/form/range/range_tooltip.styles.js +11 -13
- package/optimize/es/components/form/switch/switch.js +3 -2
- package/optimize/es/components/form/switch/switch.styles.js +16 -19
- package/optimize/es/components/header/header.styles.js +6 -7
- package/optimize/es/components/icon/icon.styles.js +9 -8
- package/optimize/es/components/icon/named_colors.js +1 -1
- package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
- package/optimize/es/components/list_group/list_group_item.styles.js +9 -11
- package/optimize/es/components/loading/loading_chart.styles.js +13 -5
- package/optimize/es/components/mark/mark.styles.js +2 -9
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- 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 +1 -2
- 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 +8 -3
- package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +15 -13
- 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 +30 -28
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/optimize/es/components/side_nav/side_nav_item.styles.js +1 -2
- package/optimize/es/components/skeleton/utils.js +5 -7
- package/optimize/es/components/steps/step_number.styles.js +1 -1
- package/optimize/es/components/table/table_cells_shared.styles.js +2 -7
- package/optimize/es/components/table/table_row.styles.js +8 -10
- 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 +6 -5
- package/optimize/es/components/toast/toast.styles.js +1 -1
- package/optimize/es/components/token/token.js +10 -4
- package/optimize/es/components/token/token.styles.js +12 -3
- package/optimize/es/components/token/token_map.js +243 -1
- package/optimize/es/components/tool_tip/tool_tip.styles.js +12 -24
- package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
- package/optimize/es/components/tour/tour.styles.js +8 -12
- package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
- package/optimize/es/global_styling/functions/math.js +1 -49
- package/optimize/es/global_styling/functions/size.js +1 -17
- package/optimize/es/global_styling/mixins/_button.js +159 -0
- package/optimize/es/global_styling/mixins/_color.js +39 -31
- package/optimize/es/global_styling/mixins/index.js +2 -1
- package/optimize/es/global_styling/reset/global_styles.js +2 -2
- package/optimize/es/global_styling/variables/_colors_vis.js +1 -53
- package/optimize/es/global_styling/variables/animations.js +1 -22
- package/optimize/es/global_styling/variables/breakpoint.js +1 -7
- package/optimize/es/global_styling/variables/levels.js +1 -17
- package/optimize/es/global_styling/variables/shadow.js +1 -11
- package/optimize/es/global_styling/variables/size.js +1 -1
- package/optimize/es/global_styling/variables/typography.js +1 -32
- package/optimize/es/services/color/eui_palettes.js +116 -47
- package/optimize/es/services/color/index.js +1 -0
- package/optimize/es/services/color/vis_color_store.js +13 -0
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/services/popover/index.js +4 -1
- package/optimize/es/services/popover/popover_arrow.styles.js +31 -0
- package/optimize/es/services/popover/popover_positioning.js +6 -17
- package/optimize/es/services/theme/provider.js +26 -2
- package/optimize/es/services/theme/types.js +1 -6
- package/optimize/es/services/theme/utils.js +1 -295
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +1 -198
- package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +618 -25
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +109 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +596 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +153 -0
- package/optimize/es/themes/amsterdam/theme.js +7 -1
- package/optimize/es/themes/index.js +1 -1
- package/optimize/es/themes/themes.js +9 -6
- package/optimize/lib/components/avatar/avatar.js +8 -2
- package/optimize/lib/components/badge/badge.styles.js +1 -2
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/optimize/lib/components/badge/color_utils.js +14 -13
- package/optimize/lib/components/beacon/beacon.styles.js +2 -2
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- 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 +5 -2
- package/optimize/lib/components/code/code_block_annotations.js +1 -1
- package/optimize/lib/components/code/code_block_line.styles.js +1 -2
- package/optimize/lib/components/code/code_syntax.styles.js +23 -27
- package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- 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 +1 -2
- package/optimize/lib/components/color_picker/color_picker.js +8 -2
- package/optimize/lib/components/color_picker/color_picker.styles.js +1 -2
- package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/optimize/lib/components/comment_list/comment_event.js +4 -3
- package/optimize/lib/components/common.js +0 -28
- package/optimize/lib/components/datagrid/data_grid.styles.js +6 -7
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
- package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
- package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +5 -1
- package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +1 -2
- package/optimize/lib/components/flyout/flyout.js +1 -1
- package/optimize/lib/components/flyout/flyout.styles.js +7 -2
- package/optimize/lib/components/flyout/flyout_footer.styles.js +1 -1
- package/optimize/lib/components/form/form.styles.js +27 -31
- package/optimize/lib/components/form/range/range_tooltip.styles.js +11 -13
- package/optimize/lib/components/form/switch/switch.js +3 -2
- package/optimize/lib/components/form/switch/switch.styles.js +16 -19
- package/optimize/lib/components/header/header.styles.js +5 -6
- package/optimize/lib/components/icon/icon.styles.js +9 -8
- package/optimize/lib/components/icon/named_colors.js +1 -1
- package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
- package/optimize/lib/components/list_group/list_group_item.styles.js +8 -10
- package/optimize/lib/components/loading/loading_chart.styles.js +13 -5
- package/optimize/lib/components/mark/mark.styles.js +2 -9
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- 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 +1 -2
- 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 +8 -3
- package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +16 -15
- 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 +29 -27
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/optimize/lib/components/side_nav/side_nav_item.styles.js +1 -2
- package/optimize/lib/components/skeleton/utils.js +4 -6
- package/optimize/lib/components/steps/step_number.styles.js +1 -1
- package/optimize/lib/components/table/table_cells_shared.styles.js +2 -7
- package/optimize/lib/components/table/table_row.styles.js +7 -9
- 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 +6 -5
- package/optimize/lib/components/toast/toast.styles.js +1 -1
- package/optimize/lib/components/token/token.js +13 -4
- package/optimize/lib/components/token/token.styles.js +12 -3
- package/optimize/lib/components/token/token_map.js +244 -2
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +11 -23
- package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
- package/optimize/lib/components/tour/tour.styles.js +8 -12
- package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
- package/optimize/lib/global_styling/functions/math.js +7 -59
- package/optimize/lib/global_styling/functions/size.js +7 -27
- package/optimize/lib/global_styling/mixins/_button.js +165 -0
- package/optimize/lib/global_styling/mixins/_color.js +38 -30
- package/optimize/lib/global_styling/mixins/index.js +11 -0
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/global_styling/variables/_colors_vis.js +6 -61
- package/optimize/lib/global_styling/variables/animations.js +25 -31
- package/optimize/lib/global_styling/variables/breakpoint.js +7 -16
- package/optimize/lib/global_styling/variables/levels.js +7 -26
- package/optimize/lib/global_styling/variables/shadow.js +13 -20
- package/optimize/lib/global_styling/variables/size.js +7 -10
- package/optimize/lib/global_styling/variables/typography.js +19 -41
- package/optimize/lib/services/color/eui_palettes.js +116 -47
- package/optimize/lib/services/color/index.js +8 -0
- package/optimize/lib/services/color/vis_color_store.js +18 -0
- package/optimize/lib/services/index.js +7 -0
- package/optimize/lib/services/popover/index.js +8 -1
- package/optimize/lib/services/popover/popover_arrow.styles.js +37 -0
- package/optimize/lib/services/popover/popover_positioning.js +6 -17
- package/optimize/lib/services/theme/provider.js +26 -2
- package/optimize/lib/services/theme/types.js +13 -14
- package/optimize/lib/services/theme/utils.js +54 -296
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +45 -203
- package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +617 -25
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +115 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +601 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +158 -0
- package/optimize/lib/themes/amsterdam/theme.js +7 -1
- package/optimize/lib/themes/index.js +7 -0
- package/optimize/lib/themes/themes.js +10 -7
- package/package.json +7 -3
- package/src/global_styling/functions/_index.scss +1 -5
- package/src/global_styling/index.scss +1 -10
- package/src/global_styling/variables/_animations.scss +1 -8
- package/src/global_styling/variables/_borders.scss +1 -9
- package/src/global_styling/variables/_buttons.scss +1 -18
- package/src/global_styling/variables/_colors_vis.scss +1 -70
- package/src/global_styling/variables/_font_weight.scss +1 -7
- package/src/global_styling/variables/_form.scss +2 -21
- package/src/global_styling/variables/_responsive.scss +1 -9
- package/src/global_styling/variables/_shadows.scss +1 -1
- package/src/global_styling/variables/_size.scss +1 -13
- package/src/global_styling/variables/_states.scss +1 -14
- package/src/global_styling/variables/_typography.scss +1 -75
- package/src/global_styling/variables/_z_index.scss +1 -33
- package/src/themes/amsterdam/_colors_dark.scss +80 -8
- package/src/themes/amsterdam/_colors_light.scss +80 -8
- package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +72 -0
- package/src/themes/amsterdam/global_styling/variables/_forms.scss +12 -0
- package/src/themes/amsterdam/global_styling/variables/_index.scss +2 -0
- package/test-env/components/avatar/avatar.js +8 -2
- package/test-env/components/badge/badge.styles.js +1 -2
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/test-env/components/badge/color_utils.js +14 -13
- package/test-env/components/beacon/beacon.styles.js +2 -2
- package/test-env/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- 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 +5 -2
- package/test-env/components/code/code_block_annotations.js +1 -1
- package/test-env/components/code/code_block_line.styles.js +1 -2
- package/test-env/components/code/code_syntax.styles.js +23 -27
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- 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 +1 -2
- package/test-env/components/color_picker/color_picker.js +8 -2
- package/test-env/components/color_picker/color_picker.styles.js +1 -2
- 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 +5 -4
- package/test-env/components/comment_list/comment_list.js +1 -1
- package/test-env/components/common.js +0 -28
- package/test-env/components/datagrid/data_grid.styles.js +6 -7
- package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +2 -3
- package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.styles.js +5 -1
- package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
- package/test-env/components/flyout/_flyout_close_button.styles.js +1 -2
- package/test-env/components/flyout/flyout.styles.js +7 -2
- package/test-env/components/flyout/flyout_footer.styles.js +1 -1
- package/test-env/components/form/form.styles.js +27 -31
- package/test-env/components/form/range/range_tooltip.styles.js +11 -13
- package/test-env/components/form/switch/switch.js +3 -2
- package/test-env/components/form/switch/switch.styles.js +16 -19
- package/test-env/components/header/header.styles.js +5 -6
- package/test-env/components/icon/icon.styles.js +9 -8
- package/test-env/components/icon/named_colors.js +1 -1
- package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
- package/test-env/components/list_group/list_group_item.styles.js +8 -10
- package/test-env/components/loading/loading_chart.styles.js +13 -5
- package/test-env/components/mark/mark.styles.js +2 -9
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- 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 +1 -2
- 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 +8 -3
- package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +16 -15
- 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 +29 -27
- package/test-env/components/resizable_container/resizable_panel.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/test-env/components/side_nav/side_nav_item.styles.js +1 -2
- package/test-env/components/skeleton/utils.js +4 -6
- package/test-env/components/steps/step_number.styles.js +1 -1
- package/test-env/components/table/table_cells_shared.styles.js +2 -7
- package/test-env/components/table/table_row.styles.js +7 -9
- 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 +6 -5
- package/test-env/components/toast/toast.styles.js +1 -1
- package/test-env/components/token/token.js +13 -4
- package/test-env/components/token/token.styles.js +12 -3
- package/test-env/components/token/token_map.js +244 -2
- package/test-env/components/tool_tip/tool_tip.styles.js +11 -23
- package/test-env/components/tour/_tour_footer.styles.js +2 -4
- package/test-env/components/tour/tour.styles.js +8 -12
- package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
- package/test-env/global_styling/functions/math.js +7 -59
- package/test-env/global_styling/functions/size.js +7 -27
- package/test-env/global_styling/mixins/_button.js +165 -0
- package/test-env/global_styling/mixins/_color.js +38 -30
- package/test-env/global_styling/mixins/index.js +11 -0
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/test-env/global_styling/variables/_colors_vis.js +6 -61
- package/test-env/global_styling/variables/animations.js +25 -31
- package/test-env/global_styling/variables/breakpoint.js +7 -16
- package/test-env/global_styling/variables/levels.js +7 -26
- package/test-env/global_styling/variables/shadow.js +13 -20
- package/test-env/global_styling/variables/size.js +7 -10
- package/test-env/global_styling/variables/typography.js +19 -41
- package/test-env/services/color/eui_palettes.js +116 -47
- package/test-env/services/color/index.js +8 -0
- package/test-env/services/color/vis_color_store.js +18 -0
- package/test-env/services/index.js +7 -0
- package/test-env/services/popover/index.js +8 -1
- package/test-env/services/popover/popover_arrow.styles.js +37 -0
- package/test-env/services/popover/popover_positioning.js +6 -17
- package/test-env/services/theme/provider.js +26 -2
- package/test-env/services/theme/types.js +13 -14
- package/test-env/services/theme/utils.js +54 -296
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +45 -203
- package/test-env/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +617 -25
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +115 -0
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +601 -0
- package/test-env/themes/amsterdam/global_styling/variables/_forms.js +158 -0
- package/test-env/themes/amsterdam/theme.js +7 -1
- package/test-env/themes/index.js +7 -0
- package/test-env/themes/themes.js +10 -7
- /package/dist/{eui_theme_dark.json → eui_theme_amsterdam_dark.json} +0 -0
- /package/dist/{eui_theme_light.json → eui_theme_amsterdam_light.json} +0 -0
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { COLOR_MODES_STANDARD, tint, shade } from '../../../services';
|
|
11
|
-
import { euiRangeVariables } from './range.styles';
|
|
12
10
|
import { euiFontSize, mathWithUnits } from '../../../global_styling';
|
|
11
|
+
import { _popoverArrowStyles } from '../../../services/popover';
|
|
12
|
+
import { euiRangeVariables } from './range.styles';
|
|
13
13
|
export var euiRangeTooltipStyles = function euiRangeTooltipStyles(euiThemeContext) {
|
|
14
14
|
var range = euiRangeVariables(euiThemeContext);
|
|
15
15
|
return {
|
|
@@ -19,25 +19,23 @@ export var euiRangeTooltipStyles = function euiRangeTooltipStyles(euiThemeContex
|
|
|
19
19
|
}), ";pointer-events:none;z-index:", range.thumbZIndex, ";;label:euiRangeTooltip;")
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
var euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme, colorMode) {
|
|
23
|
-
return colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.emptyShade, 1) : tint(euiTheme.colors.fullShade, 0.25);
|
|
24
|
-
};
|
|
25
22
|
export var euiRangeTooltipValueStyles = function euiRangeTooltipValueStyles(euiThemeContext) {
|
|
26
23
|
var range = euiRangeVariables(euiThemeContext);
|
|
27
24
|
var euiTheme = euiThemeContext.euiTheme,
|
|
28
25
|
colorMode = euiThemeContext.colorMode;
|
|
26
|
+
var toolTipBackgroundColor = euiTheme.components.tooltipBackground;
|
|
27
|
+
var borderColor = colorMode === 'DARK' ? toolTipBackgroundColor : 'transparent';
|
|
29
28
|
var arrowSize = euiTheme.size.m;
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
|
|
29
|
+
var arrowOffset = euiTheme.size.l;
|
|
30
|
+
var arrowStyles = _popoverArrowStyles(euiThemeContext, arrowSize);
|
|
33
31
|
return {
|
|
34
32
|
euiRangeTooltip__value: /*#__PURE__*/css("position:absolute;inset-block-start:50%;max-inline-size:", mathWithUnits(euiTheme.size.base, function (x) {
|
|
35
33
|
return x * 16;
|
|
36
|
-
}), ";padding-block:", euiTheme.size.xxs, ";padding-inline:", euiTheme.size.s, ";transform:
|
|
37
|
-
return x / 2;
|
|
38
|
-
}), ";};label:euiRangeTooltip__value;"),
|
|
39
|
-
left: /*#__PURE__*/css("margin-inline-end:",
|
|
40
|
-
right: /*#__PURE__*/css("margin-inline-start:",
|
|
34
|
+
}), ";padding-block:", euiTheme.size.xxs, ";padding-inline:", euiTheme.size.s, ";transform:translateY(-50%);", euiFontSize(euiThemeContext, 's'), " line-height:", euiFontSize(euiThemeContext, 's').lineHeight, ";color:", euiTheme.colors.ghost, ";background-color:", toolTipBackgroundColor, ";border:", euiTheme.border.width.thin, " solid ", toolTipBackgroundColor, ";border:", euiTheme.border.width.thin, " solid ", borderColor, ";border-radius:", euiTheme.border.radius.small, ";&::before{content:'';", arrowStyles._arrowStyles, " inset-block-start:50%;margin-block-start:", mathWithUnits(arrowSize, function (x) {
|
|
35
|
+
return x / -2;
|
|
36
|
+
}), ";background-color:inherit;border:inherit;};label:euiRangeTooltip__value;"),
|
|
37
|
+
left: /*#__PURE__*/css("margin-inline-end:", arrowOffset, ";&::before{", arrowStyles.positions.left, " inset-inline-start:100%;};label:left;"),
|
|
38
|
+
right: /*#__PURE__*/css("margin-inline-start:", arrowOffset, ";&::before{", arrowStyles.positions.right, " inset-inline-end:100%;};label:right;"),
|
|
41
39
|
hasTicks: /*#__PURE__*/css("inset-block-start:", mathWithUnits(range.thumbWidth, function (x) {
|
|
42
40
|
return x / 2;
|
|
43
41
|
}), ";;label:hasTicks;")
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
3
|
var _excluded = ["label", "id", "checked", "disabled", "compressed", "mini", "onChange", "className", "showLabel", "type", "labelProps"];
|
|
5
4
|
/*
|
|
@@ -56,7 +55,9 @@ export var EuiSwitch = function EuiSwitch(_ref) {
|
|
|
56
55
|
var buttonStyles = [styles.button.euiSwitch__button, styles.button[size]];
|
|
57
56
|
var bodyStyles = [styles.body.euiSwitch__body, disabled ? styles.body.disabled[size] : checked ? styles.body.on : styles.body.off];
|
|
58
57
|
var iconsStyles = [styles.icons.euiSwitch__icons, checked ? styles.icons.on : styles.icons.off, disabled ? styles.icons.disabled : styles.icons.enabled];
|
|
59
|
-
var thumbStyles = [styles.thumb.euiSwitch__thumb,
|
|
58
|
+
var thumbStyles = [styles.thumb.euiSwitch__thumb, !disabled && [styles.thumb.enabled.enabled, styles.thumb.enabled[size]],
|
|
59
|
+
// keep checked styles after enabled styles to ensure checked overrides enabled.off state
|
|
60
|
+
checked ? styles.thumb.on[size] : styles.thumb.off, disabled && [styles.thumb.disabled.disabled, styles.thumb.disabled[size]]];
|
|
60
61
|
var labelStyles = [styles.label.euiSwitch__label, styles.label[size], disabled && styles.label.disabled, labelProps === null || labelProps === void 0 ? void 0 : labelProps.css];
|
|
61
62
|
return ___EmotionJSX("div", {
|
|
62
63
|
css: cssStyles,
|
|
@@ -8,19 +8,21 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { tint } from '../../../services';
|
|
12
11
|
import { euiCanAnimate, euiFocusRing, euiFontSize, logicalCSS, logicalSizeCSS, mathWithUnits } from '../../../global_styling';
|
|
13
12
|
import { euiFormCustomControlVariables } from '../form.styles';
|
|
14
13
|
var euiSwitchVars = function euiSwitchVars(euiThemeContext) {
|
|
15
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
16
15
|
var formVars = euiFormCustomControlVariables(euiThemeContext);
|
|
17
16
|
var colors = {
|
|
18
|
-
on:
|
|
19
|
-
off:
|
|
17
|
+
on: euiTheme.components.switchBackgroundOn,
|
|
18
|
+
off: euiTheme.components.switchBackgroundOff,
|
|
20
19
|
disabled: formVars.colors.disabled,
|
|
21
20
|
thumb: formVars.colors.selectedIcon,
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
thumbDisabled: euiTheme.components.switchThumbBackgroundDisabled,
|
|
22
|
+
thumbBorder: euiTheme.components.switchThumbBorderOff,
|
|
23
|
+
thumbBorderOn: euiTheme.components.switchThumbBorderOn,
|
|
24
|
+
thumbBorderDisabled: formVars.colors.disabledBorder,
|
|
25
|
+
iconDisabled: euiTheme.components.switchIconDisabled
|
|
24
26
|
};
|
|
25
27
|
var sizes = {
|
|
26
28
|
uncompressed: {
|
|
@@ -132,23 +134,16 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
132
134
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
133
135
|
};
|
|
134
136
|
var bodyStyles = function bodyStyles(_ref4, _ref5) {
|
|
135
|
-
var
|
|
137
|
+
var euiTheme = _ref4.euiTheme;
|
|
136
138
|
var colors = _ref5.colors;
|
|
137
|
-
// This is probably very extra, but the visual weight of the default
|
|
138
|
-
// disabled custom control feels different in light mode depending
|
|
139
|
-
// on the size of the switch, so I'm tinting it based on that.
|
|
140
|
-
// Gotta justify my stupidly expensive art degree!
|
|
141
|
-
var _calculateDisabledColor = function _calculateDisabledColor(tintAmount) {
|
|
142
|
-
return /*#__PURE__*/css("label:disabled;background-color:", colorMode === 'DARK' ? colors.disabled : tint(colors.disabled, tintAmount), ";");
|
|
143
|
-
};
|
|
144
139
|
return {
|
|
145
140
|
euiSwitch__body: _ref,
|
|
146
141
|
on: /*#__PURE__*/css("background-color:", colors.on, ";;label:on;"),
|
|
147
142
|
off: /*#__PURE__*/css("background-color:", colors.off, ";;label:off;"),
|
|
148
143
|
disabled: {
|
|
149
|
-
uncompressed:
|
|
150
|
-
compressed:
|
|
151
|
-
mini:
|
|
144
|
+
uncompressed: /*#__PURE__*/css("background-color:", euiTheme.components.switchUncompressedBackgroundDisabled, ";;label:uncompressed;"),
|
|
145
|
+
compressed: /*#__PURE__*/css("background-color:", euiTheme.components.switchCompressedBackgroundDisabled, ";;label:compressed;"),
|
|
146
|
+
mini: /*#__PURE__*/css("background-color:", euiTheme.components.switchMiniBackgroundDisabled, ";;label:mini;")
|
|
152
147
|
}
|
|
153
148
|
};
|
|
154
149
|
};
|
|
@@ -161,7 +156,7 @@ var iconStyles = function iconStyles(_ref6, _ref7) {
|
|
|
161
156
|
on: /*#__PURE__*/css(logicalCSS('left', '-25%'), ";;label:on;"),
|
|
162
157
|
off: /*#__PURE__*/css(logicalCSS('left', '-75%'), ";;label:off;"),
|
|
163
158
|
enabled: /*#__PURE__*/css("color:", colors.thumb, ";;label:enabled;"),
|
|
164
|
-
disabled: /*#__PURE__*/css("color:", colors.
|
|
159
|
+
disabled: /*#__PURE__*/css("color:", colors.iconDisabled, ";;label:disabled;")
|
|
165
160
|
};
|
|
166
161
|
};
|
|
167
162
|
var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
@@ -181,13 +176,15 @@ var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
|
181
176
|
euiSwitch__thumb: /*#__PURE__*/css("position:absolute;", logicalCSS('vertical', 0), " aspect-ratio:1;", logicalCSS('width', 'fit-content'), " ", logicalCSS('height', '100%'), " border-radius:50%;pointer-events:none;", euiCanAnimate, "{transition-property:inset-inline-start,transform,background-color,border-color;transition-duration:", animation.speed, ";transition-timing-function:", animation.easing, ";};label:euiSwitch__thumb;"),
|
|
182
177
|
off: /*#__PURE__*/css(logicalCSS('left', 0), ";;label:off;"),
|
|
183
178
|
get on() {
|
|
179
|
+
var baseStyles = "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(colors.thumbBorderOn, ";\n ");
|
|
180
|
+
|
|
184
181
|
// right: 0 works but doesn't transition/animate, so we need to
|
|
185
182
|
// manually calculate the left position per switch size
|
|
186
183
|
var _calculateLeft = function _calculateLeft(bodyWidth, thumbWidth) {
|
|
187
184
|
var leftPosition = mathWithUnits([bodyWidth, thumbWidth], function (x, y) {
|
|
188
185
|
return x - y;
|
|
189
186
|
});
|
|
190
|
-
return /*#__PURE__*/css("label:on;", logicalCSS('left', leftPosition), ";");
|
|
187
|
+
return /*#__PURE__*/css("label:on;", logicalCSS('left', leftPosition), " ", baseStyles, ";");
|
|
191
188
|
};
|
|
192
189
|
return {
|
|
193
190
|
uncompressed: _calculateLeft(uncompressed.width, uncompressed.height),
|
|
@@ -202,7 +199,7 @@ var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
|
202
199
|
mini: _calculateScale('mini', false)
|
|
203
200
|
},
|
|
204
201
|
disabled: {
|
|
205
|
-
disabled: /*#__PURE__*/css("background-color:
|
|
202
|
+
disabled: /*#__PURE__*/css("background-color:", colors.thumbDisabled, ";border:", euiTheme.border.width.thin, " solid ", colors.thumbBorderDisabled, ";;label:disabled;"),
|
|
206
203
|
uncompressed: _calculateScale('uncompressed', false),
|
|
207
204
|
compressed: _calculateScale('compressed', false),
|
|
208
205
|
mini: _calculateScale('mini', false)
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
|
|
11
11
|
import { logicalCSS } from '../../global_styling';
|
|
12
|
-
import {
|
|
12
|
+
import { makeHighContrastColor } from '../../services';
|
|
13
13
|
export var euiHeaderVariables = function euiHeaderVariables(euiThemeContext) {
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
15
|
return {
|
|
@@ -29,7 +29,7 @@ export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
|
|
|
29
29
|
static: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
|
|
30
30
|
fixed: /*#__PURE__*/css("z-index:", euiTheme.levels.header, ";position:fixed;", logicalCSS('top', 0), " ", logicalCSS('horizontal', 0), ";;label:fixed;"),
|
|
31
31
|
// Theme
|
|
32
|
-
default: /*#__PURE__*/css("background-color:", euiTheme.
|
|
32
|
+
default: /*#__PURE__*/css("background-color:", euiTheme.components.headerBackground, ";;label:default;"),
|
|
33
33
|
dark: /*#__PURE__*/css(euiHeaderDarkStyles(euiThemeContext), ";label:dark;")
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -45,17 +45,16 @@ export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
|
|
|
45
45
|
*/
|
|
46
46
|
import { euiFormVariables } from '../form/form.styles';
|
|
47
47
|
var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
|
|
48
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
49
|
-
colorMode = euiThemeContext.colorMode;
|
|
48
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
50
49
|
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
51
50
|
controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
|
|
52
|
-
var backgroundColor =
|
|
51
|
+
var backgroundColor = euiTheme.components.headerDarkBackground;
|
|
53
52
|
|
|
54
53
|
// Specific color overrides for EuiSelectableTemplateSitewide
|
|
55
54
|
var selectableSitewide = {
|
|
56
55
|
color: euiTheme.colors.ghost,
|
|
57
|
-
borderColor:
|
|
56
|
+
borderColor: euiTheme.components.headerDarkSearchBorderColor,
|
|
58
57
|
placeholderColor: makeHighContrastColor(controlPlaceholderText, 8)(backgroundColor)
|
|
59
58
|
};
|
|
60
|
-
return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(
|
|
59
|
+
return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(euiTheme.components.headerDarkSectionItemBackgroundFocus, ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n input {\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(selectableSitewide.borderColor, ";\n }\n\n &--group {\n border-color: ").concat(euiTheme.components.headerDarkSearchBorderColor, ";\n\n input {\n box-shadow: none;\n }\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(selectableSitewide.color, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat(selectableSitewide.placeholderColor, ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append,\n .euiFormControlLayout__prepend {\n background-color: transparent;\n }\n\n .euiFormLabel {\n color: inherit;\n }\n }\n }\n ");
|
|
61
60
|
};
|
|
@@ -35,14 +35,15 @@ export var euiIconStyles = function euiIconStyles(_ref3) {
|
|
|
35
35
|
// Base
|
|
36
36
|
euiIcon: /*#__PURE__*/css("flex-shrink:0;display:inline-block;vertical-align:middle;fill:currentColor;transform:translate(0, 0);.euiIcon__fillNegative{fill:", euiTheme.colors.darkestShade, ";};label:euiIcon;"),
|
|
37
37
|
// Colors
|
|
38
|
-
accent: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
39
|
-
|
|
38
|
+
accent: /*#__PURE__*/css("color:", euiTheme.colors.textAccent, ";;label:accent;"),
|
|
39
|
+
accentSecondary: /*#__PURE__*/css("color:", euiTheme.colors.textAccentSecondary, ";;label:accentSecondary;"),
|
|
40
|
+
danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
40
41
|
ghost: /*#__PURE__*/css("color:", euiTheme.colors.ghost, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:ghost;"),
|
|
41
|
-
primary: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
42
|
-
success: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
43
|
-
subdued: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
44
|
-
text: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
45
|
-
warning: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
42
|
+
primary: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
43
|
+
success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
44
|
+
subdued: /*#__PURE__*/css("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
45
|
+
text: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:text;"),
|
|
46
|
+
warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"),
|
|
46
47
|
inherit: _ref2,
|
|
47
48
|
default: /*#__PURE__*/css(";label:default;"),
|
|
48
49
|
customColor: /*#__PURE__*/css(";label:customColor;"),
|
|
@@ -56,7 +57,7 @@ export var euiIconStyles = function euiIconStyles(_ref3) {
|
|
|
56
57
|
xxl: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.xxl), ";label:xxl;"),
|
|
57
58
|
// Variants
|
|
58
59
|
// App icons are two-toned. This provides the base color.
|
|
59
|
-
app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.
|
|
60
|
+
app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.textSuccess, ";};label:app;"),
|
|
60
61
|
logo: /*#__PURE__*/css(";label:logo;"),
|
|
61
62
|
// Loading states
|
|
62
63
|
isLoading: /*#__PURE__*/css("opacity:", iconLoadingOpacity, ";background-color:currentColor;border-radius:", euiTheme.border.radius.small, ";;label:isLoading;"),
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export var COLORS = ['default', 'primary', 'success', 'accent', 'warning', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
|
|
9
|
+
export var COLORS = ['default', 'primary', 'success', 'accent', 'accentSecondary', 'warning', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
|
|
10
10
|
export function isNamedColor(name) {
|
|
11
11
|
return COLORS.includes(name);
|
|
12
12
|
}
|
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { tint } from '../../services';
|
|
11
10
|
export var euiInlineEditReadModeStyles = function euiInlineEditReadModeStyles(_ref) {
|
|
12
11
|
var euiTheme = _ref.euiTheme;
|
|
13
12
|
return {
|
|
14
13
|
euiInlineEditReadMode: /*#__PURE__*/css(";label:euiInlineEditReadMode;"),
|
|
15
14
|
// Override the cursor and allow users to highlight text when in the read only state
|
|
16
15
|
isReadOnly: /*#__PURE__*/css("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;"),
|
|
17
|
-
hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:",
|
|
16
|
+
hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:", euiTheme.components.forms.colorHasPlaceholder, ";};label:hasPlaceholder;")
|
|
18
17
|
};
|
|
19
18
|
};
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { transparentize } from '../../services';
|
|
11
10
|
import { logicalCSS, logicalSizeCSS, euiCanAnimate, euiFontSize } from '../../global_styling';
|
|
12
11
|
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
13
12
|
import { euiScreenReaderOnly } from '../accessibility';
|
|
@@ -22,7 +21,7 @@ export var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeCo
|
|
|
22
21
|
selected: /*#__PURE__*/css("color:", euiTheme.colors.title, ";background-color:", euiTheme.focus.backgroundColor, ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.primaryText, ";};label:selected;"),
|
|
23
22
|
disabled: {
|
|
24
23
|
disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.disabledText, ";.euiKeyPadMenuItem__icon{filter:grayscale(100%);svg *{fill:", euiTheme.colors.disabledText, ";}};label:disabled;"),
|
|
25
|
-
selected: /*#__PURE__*/css("background-color:",
|
|
24
|
+
selected: /*#__PURE__*/css("background-color:", euiTheme.components.keyPadMenuItemBackgroundDisabledSelect, ";;label:selected;")
|
|
26
25
|
}
|
|
27
26
|
};
|
|
28
27
|
};
|
|
@@ -8,16 +8,14 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { euiCanAnimate, euiFontSize, logicalCSS, logicalShorthandCSS,
|
|
12
|
-
import { euiButtonColor } from '../../
|
|
11
|
+
import { euiCanAnimate, euiFontSize, logicalCSS, logicalShorthandCSS, euiTextTruncate, euiTextBreakWord } from '../../global_styling';
|
|
12
|
+
import { euiButtonColor } from '../../global_styling/mixins/_button';
|
|
13
13
|
export var euiListGroupItemStyles = function euiListGroupItemStyles(euiThemeContext) {
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
|
-
var primaryBgColor =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
method: 'transparent'
|
|
20
|
-
});
|
|
15
|
+
var primaryBgColor = euiTheme.components.listGroupItemBackgroundPrimaryActive;
|
|
16
|
+
var subduedBgColor = euiTheme.components.listGroupItemBackgroundSubduedActive;
|
|
17
|
+
var backgroundHover = euiTheme.components.listGroupItemBackgroundHover;
|
|
18
|
+
var backgroundPrimaryHover = euiTheme.components.listGroupItemBackgroundPrimaryHover;
|
|
21
19
|
return {
|
|
22
20
|
// Base
|
|
23
21
|
euiListGroupItem: /*#__PURE__*/css("padding:0;display:flex;align-items:center;position:relative;", euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, ";};label:euiListGroupItem;"),
|
|
@@ -34,9 +32,9 @@ export var euiListGroupItemStyles = function euiListGroupItemStyles(euiThemeCont
|
|
|
34
32
|
subdued: /*#__PURE__*/css("background-color:", subduedBgColor, ";;label:subdued;")
|
|
35
33
|
},
|
|
36
34
|
isClickable: {
|
|
37
|
-
primary: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
38
|
-
text: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
39
|
-
subdued: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
35
|
+
primary: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundPrimaryHover, ";};label:primary;"),
|
|
36
|
+
text: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundHover, ";};label:text;"),
|
|
37
|
+
subdued: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundHover, ";};label:subdued;")
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
3
|
var _templateObject;
|
|
3
4
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4
5
|
/*
|
|
@@ -10,9 +11,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { css, keyframes } from '@emotion/react';
|
|
13
|
-
import { euiPaletteColorBlind, shadeOrTint } from '../../services';
|
|
14
14
|
import { euiCanAnimate, euiCantAnimate, logicalCSS } from '../../global_styling';
|
|
15
|
-
var nonMonoColors = euiPaletteColorBlind();
|
|
16
15
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
17
16
|
name: "yovxj7-euiLoadingChart",
|
|
18
17
|
styles: "overflow:hidden;display:inline-flex;label:euiLoadingChart;"
|
|
@@ -32,8 +31,15 @@ export var euiLoadingChartStyles = function euiLoadingChartStyles(_ref2) {
|
|
|
32
31
|
};
|
|
33
32
|
export var BARS_COUNT = 4;
|
|
34
33
|
export var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref3) {
|
|
35
|
-
var euiTheme = _ref3.euiTheme
|
|
36
|
-
|
|
34
|
+
var euiTheme = _ref3.euiTheme;
|
|
35
|
+
var nonMonoColors = Object.keys(euiTheme.colors.vis).reduce(function (colors, cur) {
|
|
36
|
+
var isVisColor = cur.match(/euiColorVis[0-9]/);
|
|
37
|
+
if (isVisColor) {
|
|
38
|
+
var color = euiTheme.colors.vis[cur];
|
|
39
|
+
return [].concat(_toConsumableArray(colors), [color]);
|
|
40
|
+
}
|
|
41
|
+
return colors;
|
|
42
|
+
}, []);
|
|
37
43
|
return {
|
|
38
44
|
euiLoadingChart__bar: /*#__PURE__*/css(logicalCSS('height', '100%'), " display:inline-block;", euiCanAnimate, "{animation:", barAnimation, " 1s infinite;", outputNthChildCss(function (index) {
|
|
39
45
|
return "animation-delay: 0.".concat(index, "s;");
|
|
@@ -44,7 +50,9 @@ export var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref3) {
|
|
|
44
50
|
return "background-color: ".concat(nonMonoColors[index]);
|
|
45
51
|
}), ";;label:nonmono;"),
|
|
46
52
|
mono: /*#__PURE__*/css(outputNthChildCss(function (index) {
|
|
47
|
-
|
|
53
|
+
var token = "loadingChartMonoBackground".concat(index);
|
|
54
|
+
var color = euiTheme.components[token];
|
|
55
|
+
return "background-color: ".concat(color);
|
|
48
56
|
}), ";;label:mono;"),
|
|
49
57
|
m: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.xxs), " ", logicalCSS('margin-bottom', euiTheme.size.s), ";;label:m;"),
|
|
50
58
|
l: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.xs), " ", logicalCSS('margin-bottom', euiTheme.size.m), ";;label:l;"),
|
|
@@ -7,18 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { transparentize } from '../../services';
|
|
11
10
|
import { euiScreenReaderOnly } from '../accessibility';
|
|
12
11
|
export var euiMarkStyles = function euiMarkStyles(_ref) {
|
|
13
|
-
var euiTheme = _ref.euiTheme
|
|
14
|
-
colorMode = _ref.colorMode;
|
|
15
|
-
// TODO: Was $euiFocusBackgroundColor
|
|
16
|
-
var transparency = {
|
|
17
|
-
LIGHT: 0.1,
|
|
18
|
-
DARK: 0.3
|
|
19
|
-
};
|
|
12
|
+
var euiTheme = _ref.euiTheme;
|
|
20
13
|
return {
|
|
21
|
-
euiMark: /*#__PURE__*/css("background-color:",
|
|
14
|
+
euiMark: /*#__PURE__*/css("background-color:", euiTheme.components.markBackground, ";font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.text, ";;label:euiMark;")
|
|
22
15
|
};
|
|
23
16
|
};
|
|
24
17
|
export var euiMarkScreenReaderStyles = function euiMarkScreenReaderStyles(highlightStart, highlightEnd) {
|
|
@@ -8,7 +8,6 @@ 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';
|
|
12
11
|
import { logicalCSS } from '../../global_styling';
|
|
13
12
|
import { euiMarkdownEditorVariables } from './markdown_editor.styles';
|
|
14
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -25,8 +24,8 @@ export var euiMarkdownEditorDropZoneStyles = function euiMarkdownEditorDropZoneS
|
|
|
25
24
|
minHeight = _euiMarkdownEditorVar.minHeight;
|
|
26
25
|
return {
|
|
27
26
|
euiMarkdownEditorDropZone: /*#__PURE__*/css("position:relative;display:flex;flex-direction:column;", logicalCSS('min-height', minHeight), ";;label:euiMarkdownEditorDropZone;"),
|
|
28
|
-
isDragging: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:",
|
|
29
|
-
isDraggingError: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:",
|
|
27
|
+
isDragging: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", euiTheme.colors.backgroundTransparentPrimary, "!important;};label:isDragging;"),
|
|
28
|
+
isDraggingError: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", euiTheme.colors.backgroundTransparentDanger, "!important;};label:isDraggingError;"),
|
|
30
29
|
hasError: /*#__PURE__*/css(".euiMarkdownEditorTextArea{--euiFormControlStateColor:", euiTheme.colors.danger, "!important;background-size:100% 100%;};label:hasError;"),
|
|
31
30
|
euiMarkdownEditorDropZone__input: _ref
|
|
32
31
|
};
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { transparentize } from '../../services';
|
|
11
10
|
import { logicalCSS, euiFontSize, mathWithUnits } from '../../global_styling';
|
|
12
11
|
|
|
13
12
|
/**
|
|
@@ -55,10 +54,11 @@ export var euiMarkdownFormatStyles = function euiMarkdownFormatStyles(euiTheme)
|
|
|
55
54
|
unit: 'em'
|
|
56
55
|
}), ";label:relative;"),
|
|
57
56
|
colors: {
|
|
58
|
-
default: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme,
|
|
57
|
+
default: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.components.markdownFormatTableBorderColor), ";label:default;"),
|
|
59
58
|
subdued: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.subduedText), ";label:subdued;"),
|
|
60
59
|
success: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.success), ";label:success;"),
|
|
61
60
|
accent: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.accent), ";label:accent;"),
|
|
61
|
+
accentSecondary: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.accentSecondary), ";label:accentSecondary;"),
|
|
62
62
|
warning: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.warning), ";label:warning;"),
|
|
63
63
|
danger: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.danger), ";label:danger;"),
|
|
64
64
|
ghost: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.ghost), ";label:ghost;"),
|
|
@@ -13,7 +13,7 @@ import { euiFormVariables } from '../form/form.styles';
|
|
|
13
13
|
export var euiModalStyles = function euiModalStyles(euiThemeContext) {
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
15
|
return {
|
|
16
|
-
euiModal: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext), " display:flex;flex-direction:column;max-block-size:75vh;position:relative;background-color:", euiTheme.colors.emptyShade, ";border-radius:", euiTheme.border.radius.medium, ";z-index:", euiTheme.levels.modal, ";min-inline-size:", euiFormVariables(euiThemeContext).maxWidth, ";max-inline-size:calc(100vw - ", euiTheme.size.base, ");overflow:hidden;", euiCanAnimate, "{animation:", euiAnimSlideInUp(euiTheme.size.xxl), " ", euiTheme.animation.slow, " ", euiTheme.animation.bounce, ";}", euiMaxBreakpoint(euiThemeContext, 'm'), "{position:fixed;inset:0;border-radius:0;inline-size:100vw!important;min-inline-size:0!important;max-inline-size:none!important;max-block-size:100vh!important;}&:focus{outline:none;};label:euiModal;"),
|
|
16
|
+
euiModal: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext), " display:flex;flex-direction:column;max-block-size:75vh;position:relative;background-color:", euiTheme.colors.emptyShade, ";border-radius:", euiTheme.border.radius.medium, ";border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFloating, ";z-index:", euiTheme.levels.modal, ";min-inline-size:", euiFormVariables(euiThemeContext).maxWidth, ";max-inline-size:calc(100vw - ", euiTheme.size.base, ");overflow:hidden;", euiCanAnimate, "{animation:", euiAnimSlideInUp(euiTheme.size.xxl), " ", euiTheme.animation.slow, " ", euiTheme.animation.bounce, ";}", euiMaxBreakpoint(euiThemeContext, 'm'), "{position:fixed;inset:0;border-radius:0;inline-size:100vw!important;min-inline-size:0!important;max-inline-size:none!important;max-block-size:100vh!important;}&:focus{outline:none;};label:euiModal;"),
|
|
17
17
|
// Variants
|
|
18
18
|
defaultMaxWidth: /*#__PURE__*/css("max-inline-size:min(\n ", euiTheme.breakpoint.m, "px,\n calc(100vw - ", euiTheme.size.base, ")\n );;label:defaultMaxWidth;"),
|
|
19
19
|
confirmation: /*#__PURE__*/css("min-inline-size:", euiFormVariables(euiThemeContext).maxWidth, ";", euiMaxBreakpoint(euiThemeContext, 'm'), "{", euiShadowXLarge(euiThemeContext, {
|
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/css';
|
|
10
10
|
import { logicalCSS, euiAnimFadeIn } from '../../global_styling';
|
|
11
|
-
import { transparentize } from '../../services';
|
|
12
11
|
export var euiOverlayMaskStyles = function euiOverlayMaskStyles(_ref) {
|
|
13
12
|
var euiTheme = _ref.euiTheme;
|
|
14
13
|
return {
|
|
15
|
-
euiOverlayMask: /*#__PURE__*/css("position:fixed;", logicalCSS('top', 0), " ", logicalCSS('left', 0), " ", logicalCSS('right', 0), " ", logicalCSS('bottom', 0), " display:flex;align-items:center;justify-content:center;", logicalCSS('padding-bottom', '10vh'), " animation:", euiAnimFadeIn, " ", euiTheme.animation.fast, " ease-in;background:",
|
|
14
|
+
euiOverlayMask: /*#__PURE__*/css("position:fixed;", logicalCSS('top', 0), " ", logicalCSS('left', 0), " ", logicalCSS('right', 0), " ", logicalCSS('bottom', 0), " display:flex;align-items:center;justify-content:center;", logicalCSS('padding-bottom', '10vh'), " animation:", euiAnimFadeIn, " ", euiTheme.animation.fast, " ease-in;background:", euiTheme.colors.backgroundBaseInteractiveOverlay, ";;label:euiOverlayMask;"),
|
|
16
15
|
aboveHeader: /*#__PURE__*/css("z-index:", euiTheme.levels.mask, ";;label:aboveHeader;"),
|
|
17
16
|
belowHeader: /*#__PURE__*/css("z-index:", euiTheme.levels.maskBelowHeader, ";", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), ";;label:belowHeader;")
|
|
18
17
|
};
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { euiShadow } from '../../../themes/amsterdam/global_styling/mixins';
|
|
11
|
-
import {
|
|
11
|
+
import { logicalCSS } from '../../../global_styling';
|
|
12
12
|
export var euiPageInnerStyles = function euiPageInnerStyles(euiThemeContext) {
|
|
13
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
14
14
|
return {
|
|
15
15
|
euiPageInner: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", logicalCSS('max-width', '100%'), " ", logicalCSS('min-width', '0'), ";;label:euiPageInner;"),
|
|
16
|
-
panelled: /*#__PURE__*/css("background:",
|
|
16
|
+
panelled: /*#__PURE__*/css("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", euiShadow(euiThemeContext, 'm'), ";;label:panelled;"),
|
|
17
17
|
border: {
|
|
18
18
|
top: /*#__PURE__*/css(logicalCSS('border-top', euiTheme.border.thin), ";;label:top;"),
|
|
19
19
|
left: /*#__PURE__*/css(logicalCSS('border-left', euiTheme.border.thin), ";;label:left;")
|
|
@@ -32,7 +32,7 @@ export var euiPanelStyles = function euiPanelStyles(euiThemeContext) {
|
|
|
32
32
|
// Base
|
|
33
33
|
euiPanel: _ref2,
|
|
34
34
|
grow: _ref,
|
|
35
|
-
hasShadow: /*#__PURE__*/css(euiShadow(euiThemeContext, 'm'), ";;label:hasShadow;"),
|
|
35
|
+
hasShadow: /*#__PURE__*/css(euiShadow(euiThemeContext, 'm'), " border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFloating, ";;label:hasShadow;"),
|
|
36
36
|
hasBorder: /*#__PURE__*/css("border:", euiTheme.border.thin, ";;label:hasBorder;"),
|
|
37
37
|
radius: {
|
|
38
38
|
none: /*#__PURE__*/css(";label:none;"),
|
|
@@ -200,7 +200,7 @@ export var EuiPopover = /*#__PURE__*/function (_Component) {
|
|
|
200
200
|
popover: _this.panel,
|
|
201
201
|
offset: _this.props.attachToAnchor ? offset : _this.props.hasArrow ? 16 + offset : 8 + offset,
|
|
202
202
|
arrowConfig: _this.props.hasArrow ? {
|
|
203
|
-
arrowWidth:
|
|
203
|
+
arrowWidth: 16,
|
|
204
204
|
arrowBuffer: 10
|
|
205
205
|
} : {
|
|
206
206
|
arrowWidth: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "position"];
|
|
3
|
+
var _excluded = ["children", "position", "style"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -10,20 +10,25 @@ var _excluded = ["children", "position"];
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { euiPopoverArrowStyles } from './_popover_arrow.styles';
|
|
14
13
|
import { useEuiTheme } from '../../../services';
|
|
14
|
+
import { euiPopoverArrowStyles } from './_popover_arrow.styles';
|
|
15
15
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
16
|
export var POSITIONS = ['top', 'left', 'right', 'bottom'];
|
|
17
17
|
export var EuiPopoverArrow = function EuiPopoverArrow(_ref) {
|
|
18
18
|
var children = _ref.children,
|
|
19
19
|
position = _ref.position,
|
|
20
|
+
style = _ref.style,
|
|
20
21
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
22
|
var euiTheme = useEuiTheme();
|
|
22
23
|
var styles = euiPopoverArrowStyles(euiTheme);
|
|
23
24
|
var cssStyles = [styles.euiPopoverArrow, styles[position]];
|
|
24
25
|
return ___EmotionJSX("div", _extends({
|
|
26
|
+
className: "euiPopover__arrowWrapper",
|
|
27
|
+
css: styles.euiPopoverArrowWrapper,
|
|
28
|
+
style: style
|
|
29
|
+
}, rest), ___EmotionJSX("div", {
|
|
25
30
|
className: "euiPopover__arrow",
|
|
26
31
|
"data-popover-arrow": position,
|
|
27
32
|
css: cssStyles
|
|
28
|
-
}
|
|
33
|
+
}), children);
|
|
29
34
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
4
|
/*
|
|
2
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -7,19 +10,18 @@
|
|
|
7
10
|
*/
|
|
8
11
|
|
|
9
12
|
import { css } from '@emotion/react';
|
|
10
|
-
import {
|
|
11
|
-
|
|
13
|
+
import { logicalSizeCSS } from '../../../global_styling';
|
|
14
|
+
import { _popoverArrowStyles } from '../../../services/popover';
|
|
12
15
|
export var euiPopoverArrowStyles = function euiPopoverArrowStyles(euiThemeContext) {
|
|
13
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
|
|
16
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
17
|
+
colorMode = euiThemeContext.colorMode;
|
|
18
|
+
var hasBorder = colorMode === 'DARK';
|
|
19
|
+
var arrowSize = euiTheme.size.base;
|
|
20
|
+
var arrowStyles = _popoverArrowStyles(euiThemeContext, arrowSize);
|
|
21
|
+
return _objectSpread({
|
|
22
|
+
// Wrapper
|
|
23
|
+
euiPopoverArrowWrapper: /*#__PURE__*/css("position:absolute;", logicalSizeCSS(arrowSize), ";;label:euiPopoverArrowWrapper;"),
|
|
17
24
|
// Base
|
|
18
|
-
euiPopoverArrow: /*#__PURE__*/css("
|
|
19
|
-
|
|
20
|
-
top: /*#__PURE__*/css("&::before{", logicals.bottom, ":-", arrowSize, ";", logicals['border-left'], ":", arrowSize, " solid transparent;", logicals['border-right'], ":", arrowSize, " solid transparent;", logicals['border-top'], ":", arrowSize, " solid ", borderColor, ";};label:top;"),
|
|
21
|
-
bottom: /*#__PURE__*/css("&::before{", logicals.top, ":-", arrowSize, ";", logicals['border-left'], ":", arrowSize, " solid transparent;", logicals['border-right'], ":", arrowSize, " solid transparent;", logicals['border-bottom'], ":", arrowSize, " solid ", borderColor, ";};label:bottom;"),
|
|
22
|
-
left: /*#__PURE__*/css("&::before{", logicals.top, ":50%;", logicals.right, ":-", arrowSize, ";", logicals['border-top'], ":", arrowSize, " solid transparent;", logicals['border-bottom'], ":", arrowSize, " solid transparent;", logicals['border-left'], ":", arrowSize, " solid ", borderColor, ";};label:left;"),
|
|
23
|
-
right: /*#__PURE__*/css("&::before{", logicals.top, ":50%;", logicals.left, ":-", arrowSize, ";", logicals['border-top'], ":", arrowSize, " solid transparent;", logicals['border-bottom'], ":", arrowSize, " solid transparent;", logicals['border-right'], ":", arrowSize, " solid ", borderColor, ";};label:right;")
|
|
24
|
-
};
|
|
25
|
+
euiPopoverArrow: /*#__PURE__*/css(arrowStyles._arrowStyles, " background-color:var(--euiPopoverBackgroundColor);", hasBorder ? "border: ".concat(euiTheme.border.thin) : '', ";;label:euiPopoverArrow;")
|
|
26
|
+
}, arrowStyles.positions);
|
|
25
27
|
};
|
|
@@ -12,7 +12,7 @@ export var euiPopoverFooterStyles = function euiPopoverFooterStyles(euiThemeCont
|
|
|
12
12
|
var euiTheme = euiThemeContext.euiTheme;
|
|
13
13
|
return {
|
|
14
14
|
// Base
|
|
15
|
-
euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', euiTheme.border.thin), ";;label:euiPopoverFooter;"),
|
|
15
|
+
euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.components.popoverFooterBorderColor)), ";;label:euiPopoverFooter;"),
|
|
16
16
|
// If the popover's containing panel has padding applied,
|
|
17
17
|
// ensure the title expands to cover that padding via negative margins
|
|
18
18
|
panelPaddingSizes: {
|