@elastic/eui 97.3.0-borealis.1 → 97.3.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/es/components/badge/badge.js +1 -1
- package/es/components/badge/badge.styles.js +2 -2
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.styles.js +0 -1
- package/es/components/badge/color_utils.js +7 -8
- package/es/components/badge/notification_badge/badge_notification.js +1 -1
- package/es/components/badge/notification_badge/badge_notification.styles.js +0 -1
- package/es/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
- 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 +4 -4
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/card/card.styles.js +1 -1
- package/es/components/code/code_block_annotations.js +1 -1
- package/es/components/code/code_block_line.styles.js +2 -1
- 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.styles.js +2 -1
- package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/es/components/common.js +28 -0
- package/es/components/datagrid/data_grid.styles.js +5 -3
- package/es/components/date_picker/react_date_picker.styles.js +1 -2
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +5 -4
- package/es/components/drag_and_drop/droppable.styles.js +4 -2
- package/es/components/empty_prompt/empty_prompt.styles.js +2 -5
- 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/form/form.styles.js +28 -21
- package/es/components/form/range/range_tooltip.styles.js +7 -3
- 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 +6 -5
- 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/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/overlay_mask/overlay_mask.styles.js +2 -1
- package/es/components/page/page_header/page_header_content.js +2 -1
- package/es/components/page/page_header/page_header_content.styles.js +2 -1
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/popover/popover_footer.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.styles.js +4 -3
- package/es/components/progress/progress.js +1 -1
- package/es/components/progress/progress.styles.js +6 -8
- 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 +5 -3
- 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/tool_tip/tool_tip.styles.js +10 -8
- package/es/components/tour/_tour_footer.styles.js +4 -2
- package/es/components/tree_view/tree_view_item.styles.js +2 -1
- package/es/global_styling/functions/size.js +17 -1
- package/es/global_styling/mixins/_color.js +31 -40
- 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/theme/provider.js +0 -11
- 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/_colors.js +18 -587
- package/es/themes/amsterdam/theme.js +1 -3
- package/es/themes/index.js +1 -1
- package/es/themes/themes.js +0 -7
- package/eui.d.ts +2634 -2096
- package/i18ntokens.json +4 -4
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/badge.styles.js +2 -2
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.styles.js +0 -1
- package/lib/components/badge/color_utils.js +12 -13
- package/lib/components/badge/notification_badge/badge_notification.js +1 -1
- package/lib/components/badge/notification_badge/badge_notification.styles.js +0 -1
- package/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
- 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 +3 -3
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/card/card.styles.js +1 -1
- package/lib/components/code/code_block_annotations.js +1 -1
- package/lib/components/code/code_block_line.styles.js +2 -1
- 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.styles.js +2 -1
- package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/lib/components/common.js +28 -0
- package/lib/components/datagrid/data_grid.styles.js +5 -3
- package/lib/components/date_picker/react_date_picker.styles.js +2 -3
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
- package/lib/components/drag_and_drop/droppable.styles.js +4 -2
- package/lib/components/empty_prompt/empty_prompt.styles.js +1 -4
- 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/form/form.styles.js +27 -20
- package/lib/components/form/range/range_tooltip.styles.js +7 -3
- 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 +5 -4
- 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/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/overlay_mask/overlay_mask.styles.js +2 -1
- package/lib/components/page/page_header/page_header_content.js +2 -1
- package/lib/components/page/page_header/page_header_content.styles.js +2 -1
- package/lib/components/page_template/inner/page_inner.styles.js +1 -1
- package/lib/components/popover/popover_footer.styles.js +1 -1
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -3
- package/lib/components/progress/progress.js +1 -1
- package/lib/components/progress/progress.styles.js +6 -8
- 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 +5 -3
- 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/tool_tip/tool_tip.styles.js +10 -8
- package/lib/components/tour/_tour_footer.styles.js +4 -2
- package/lib/components/tree_view/tree_view_item.styles.js +2 -1
- package/lib/global_styling/functions/size.js +26 -7
- package/lib/global_styling/mixins/_color.js +30 -39
- 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/theme/provider.js +0 -11
- 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/_colors.js +18 -586
- package/lib/themes/amsterdam/theme.js +1 -3
- package/lib/themes/index.js +0 -7
- package/lib/themes/themes.js +1 -8
- package/optimize/es/components/badge/badge.js +1 -1
- package/optimize/es/components/badge/badge.styles.js +2 -2
- package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +0 -1
- package/optimize/es/components/badge/color_utils.js +7 -8
- package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +0 -1
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
- 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 +4 -4
- package/optimize/es/components/button/button_icon/button_icon.js +1 -1
- package/optimize/es/components/card/card.styles.js +1 -1
- 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/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.styles.js +2 -1
- package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/optimize/es/components/common.js +28 -0
- package/optimize/es/components/datagrid/data_grid.styles.js +5 -3
- package/optimize/es/components/date_picker/react_date_picker.styles.js +1 -2
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +5 -4
- package/optimize/es/components/drag_and_drop/droppable.styles.js +4 -2
- package/optimize/es/components/empty_prompt/empty_prompt.styles.js +2 -5
- 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/form/form.styles.js +28 -21
- package/optimize/es/components/form/range/range_tooltip.styles.js +7 -3
- 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 +6 -5
- 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/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/overlay_mask/overlay_mask.styles.js +2 -1
- package/optimize/es/components/page/page_header/page_header_content.js +2 -1
- package/optimize/es/components/page/page_header/page_header_content.styles.js +2 -1
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/popover/popover_footer.styles.js +1 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +4 -3
- package/optimize/es/components/progress/progress.js +1 -1
- package/optimize/es/components/progress/progress.styles.js +6 -8
- 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 +5 -3
- 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/tool_tip/tool_tip.styles.js +10 -8
- package/optimize/es/components/tour/_tour_footer.styles.js +4 -2
- package/optimize/es/components/tree_view/tree_view_item.styles.js +2 -1
- package/optimize/es/global_styling/functions/size.js +17 -1
- package/optimize/es/global_styling/mixins/_color.js +31 -40
- 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/theme/provider.js +0 -11
- 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/_colors.js +18 -587
- package/optimize/es/themes/amsterdam/theme.js +1 -3
- package/optimize/es/themes/index.js +1 -1
- package/optimize/es/themes/themes.js +0 -7
- package/optimize/lib/components/badge/badge.js +1 -1
- package/optimize/lib/components/badge/badge.styles.js +2 -2
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +0 -1
- package/optimize/lib/components/badge/color_utils.js +12 -13
- package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +0 -1
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
- 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 +3 -3
- package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
- package/optimize/lib/components/card/card.styles.js +1 -1
- 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/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.styles.js +2 -1
- package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/optimize/lib/components/common.js +28 -0
- package/optimize/lib/components/datagrid/data_grid.styles.js +5 -3
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +2 -3
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
- package/optimize/lib/components/drag_and_drop/droppable.styles.js +4 -2
- package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +1 -4
- 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/form/form.styles.js +27 -20
- package/optimize/lib/components/form/range/range_tooltip.styles.js +7 -3
- 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 +5 -4
- 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/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/overlay_mask/overlay_mask.styles.js +2 -1
- package/optimize/lib/components/page/page_header/page_header_content.js +2 -1
- package/optimize/lib/components/page/page_header/page_header_content.styles.js +2 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
- package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -3
- package/optimize/lib/components/progress/progress.js +1 -1
- package/optimize/lib/components/progress/progress.styles.js +6 -8
- 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 +5 -3
- 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/tool_tip/tool_tip.styles.js +10 -8
- package/optimize/lib/components/tour/_tour_footer.styles.js +4 -2
- package/optimize/lib/components/tree_view/tree_view_item.styles.js +2 -1
- package/optimize/lib/global_styling/functions/size.js +27 -7
- package/optimize/lib/global_styling/mixins/_color.js +30 -39
- 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/theme/provider.js +0 -11
- 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/_colors.js +18 -586
- package/optimize/lib/themes/amsterdam/theme.js +1 -3
- package/optimize/lib/themes/index.js +0 -7
- package/optimize/lib/themes/themes.js +1 -8
- package/package.json +3 -7
- package/src/global_styling/functions/_index.scss +5 -1
- package/src/global_styling/index.scss +16 -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 +15 -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 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/badge.styles.js +2 -2
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +0 -1
- package/test-env/components/badge/color_utils.js +12 -13
- package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +0 -1
- package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +6 -4
- 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 +3 -3
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/card/card.styles.js +1 -1
- 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/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.styles.js +2 -1
- package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/test-env/components/common.js +28 -0
- package/test-env/components/datagrid/data_grid.styles.js +5 -3
- package/test-env/components/date_picker/react_date_picker.styles.js +2 -3
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -3
- package/test-env/components/drag_and_drop/droppable.styles.js +4 -2
- package/test-env/components/empty_prompt/empty_prompt.styles.js +1 -4
- 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/form/form.styles.js +27 -20
- package/test-env/components/form/range/range_tooltip.styles.js +7 -3
- 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 +5 -4
- 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/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/overlay_mask/overlay_mask.styles.js +2 -1
- package/test-env/components/page/page_header/page_header_content.js +2 -1
- package/test-env/components/page/page_header/page_header_content.styles.js +2 -1
- package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
- package/test-env/components/popover/popover_footer.styles.js +1 -1
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +4 -3
- package/test-env/components/progress/progress.js +1 -1
- package/test-env/components/progress/progress.styles.js +6 -8
- 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 +5 -3
- 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/tool_tip/tool_tip.styles.js +10 -8
- package/test-env/components/tour/_tour_footer.styles.js +4 -2
- package/test-env/components/tree_view/tree_view_item.styles.js +2 -1
- package/test-env/global_styling/functions/size.js +27 -7
- package/test-env/global_styling/mixins/_color.js +30 -39
- 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/theme/provider.js +0 -11
- 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/_colors.js +18 -586
- package/test-env/themes/amsterdam/theme.js +1 -3
- package/test-env/themes/index.js +0 -7
- package/test-env/themes/themes.js +1 -8
- package/es/global_styling/mixins/_button.js +0 -159
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -281
- package/es/themes/amsterdam/global_styling/variables/_components.js +0 -442
- package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -149
- package/lib/global_styling/mixins/_button.js +0 -164
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -285
- package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -446
- package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -153
- package/optimize/es/global_styling/mixins/_button.js +0 -159
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -270
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -434
- package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -141
- package/optimize/lib/global_styling/mixins/_button.js +0 -165
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -439
- package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -146
- package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
- package/test-env/global_styling/mixins/_button.js +0 -165
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -275
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -439
- package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -146
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { euiMaxBreakpoint, euiMinBreakpoint, logicalCSS } from '../../global_styling';
|
|
11
11
|
import { euiShadowXLarge } from '../../themes/amsterdam/global_styling/mixins';
|
|
12
|
+
import { transparentize } from '../../services';
|
|
12
13
|
import { FLYOUT_BREAKPOINT } from './flyout.styles';
|
|
13
14
|
export var euiFlyoutCloseButtonStyles = function euiFlyoutCloseButtonStyles(euiThemeContext) {
|
|
14
15
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
16
|
return {
|
|
16
17
|
euiFlyout__closeButton: /*#__PURE__*/css("position:absolute;", logicalCSS('right', euiTheme.size.s), " ", logicalCSS('top', euiTheme.size.s), " z-index:3;;label:euiFlyout__closeButton;"),
|
|
17
|
-
inside: /*#__PURE__*/css("background-color:", euiTheme.
|
|
18
|
+
inside: /*#__PURE__*/css("background-color:", transparentize(euiTheme.colors.emptyShade, 0.9), ";;label:inside;"),
|
|
18
19
|
outside: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext), "animation:none!important;;label:outside;"),
|
|
19
20
|
outsideSide: {
|
|
20
21
|
// `transforms` pull in close buttons a little
|
|
@@ -12,8 +12,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
12
12
|
* Side Public License, v 1.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { makeHighContrastColor } from '../../services';
|
|
15
|
+
import { shade, tint, darken, transparentize, makeHighContrastColor } from '../../services';
|
|
16
16
|
import { logicalCSS, mathWithUnits, euiCanAnimate, euiFontSize } from '../../global_styling';
|
|
17
|
+
import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins';
|
|
17
18
|
|
|
18
19
|
// There are multiple components that only need the form max-width size &
|
|
19
20
|
// don't need the extra overhead/color computing expense of every form var.
|
|
@@ -25,8 +26,10 @@ export var euiFormMaxWidth = function euiFormMaxWidth(_ref) {
|
|
|
25
26
|
});
|
|
26
27
|
};
|
|
27
28
|
export var euiFormVariables = function euiFormVariables(euiThemeContext) {
|
|
28
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
29
|
-
|
|
29
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
30
|
+
colorMode = euiThemeContext.colorMode;
|
|
31
|
+
var isColorDark = colorMode === 'DARK';
|
|
32
|
+
var backgroundColor = isColorDark ? shade(euiTheme.colors.lightestShade, 0.4) : tint(euiTheme.colors.lightestShade, 0.6);
|
|
30
33
|
var controlHeight = euiTheme.size.xxl;
|
|
31
34
|
var controlCompressedHeight = euiTheme.size.xl;
|
|
32
35
|
var sizes = {
|
|
@@ -45,15 +48,15 @@ export var euiFormVariables = function euiFormVariables(euiThemeContext) {
|
|
|
45
48
|
})
|
|
46
49
|
};
|
|
47
50
|
var colors = {
|
|
48
|
-
textColor: euiTheme.colors.
|
|
51
|
+
textColor: euiTheme.colors.text,
|
|
49
52
|
backgroundColor: backgroundColor,
|
|
50
|
-
backgroundDisabledColor: euiTheme.
|
|
51
|
-
backgroundReadOnlyColor: euiTheme.
|
|
52
|
-
borderColor: euiTheme.
|
|
53
|
-
controlDisabledColor: euiTheme.
|
|
53
|
+
backgroundDisabledColor: darken(euiTheme.colors.lightestShade, 0.05),
|
|
54
|
+
backgroundReadOnlyColor: euiTheme.colors.emptyShade,
|
|
55
|
+
borderColor: transparentize(colorMode === 'DARK' ? euiTheme.colors.ghost : darken(euiTheme.border.color, 4), 0.1),
|
|
56
|
+
controlDisabledColor: euiTheme.colors.mediumShade,
|
|
54
57
|
controlBoxShadow: '0 0 transparent',
|
|
55
58
|
controlPlaceholderText: makeHighContrastColor(euiTheme.colors.subduedText)(backgroundColor),
|
|
56
|
-
appendPrependBackground: euiTheme.
|
|
59
|
+
appendPrependBackground: isColorDark ? shade(euiTheme.colors.lightShade, 0.15) : tint(euiTheme.colors.lightShade, 0.5)
|
|
57
60
|
};
|
|
58
61
|
var controlLayout = {
|
|
59
62
|
controlLayoutGroupInputHeight: mathWithUnits(controlHeight, function (x) {
|
|
@@ -125,8 +128,9 @@ export var euiFormControlDefaultShadow = function euiFormControlDefaultShadow(eu
|
|
|
125
128
|
return "\n ".concat(withBorder ? border : '', "\n ").concat(withBackgroundColor ? backgroundColor : '', "\n ").concat(withBackground ? backgroundGradient : '', "\n ").concat(withBackgroundAnimation ? backgroundAnimation : '', "\n ");
|
|
126
129
|
};
|
|
127
130
|
export var euiFormControlFocusStyles = function euiFormControlFocusStyles(_ref3) {
|
|
128
|
-
var euiTheme = _ref3.euiTheme
|
|
129
|
-
|
|
131
|
+
var euiTheme = _ref3.euiTheme,
|
|
132
|
+
colorMode = _ref3.colorMode;
|
|
133
|
+
return "\n --euiFormControlStateColor: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(colorMode === 'DARK' ? shade(euiTheme.colors.emptyShade, 0.4) : euiTheme.colors.emptyShade, ";\n background-size: 100% 100%;\n outline: none; /* Remove all outlines and rely on our own bottom border gradient */\n");
|
|
130
134
|
};
|
|
131
135
|
export var euiFormControlInvalidStyles = function euiFormControlInvalidStyles(_ref4) {
|
|
132
136
|
var euiTheme = _ref4.euiTheme;
|
|
@@ -141,18 +145,21 @@ export var euiFormControlReadOnlyStyles = function euiFormControlReadOnlyStyles(
|
|
|
141
145
|
return "\n cursor: default;\n color: ".concat(form.textColor, ";\n -webkit-text-fill-color: ").concat(form.textColor, "; /* Required for Safari */\n\n background-color: ").concat(form.backgroundReadOnlyColor, ";\n --euiFormControlStateColor: transparent;\n ");
|
|
142
146
|
};
|
|
143
147
|
export var euiFormControlAutoFillStyles = function euiFormControlAutoFillStyles(euiThemeContext) {
|
|
144
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
148
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
149
|
+
colorMode = euiThemeContext.colorMode;
|
|
145
150
|
|
|
146
151
|
// Make the text color slightly less prominent than the default colors.text
|
|
147
152
|
var textColor = euiTheme.colors.darkestShade;
|
|
148
|
-
var
|
|
153
|
+
var _euiButtonColor = euiButtonColor(euiThemeContext, 'primary'),
|
|
154
|
+
backgroundColor = _euiButtonColor.backgroundColor;
|
|
155
|
+
var tintedBackgroundColor = colorMode === 'DARK' ? shade(backgroundColor, 0.5) : tint(backgroundColor, 0.7);
|
|
149
156
|
// Hacky workaround to background-color, since Chrome doesn't normally allow overriding its styles
|
|
150
157
|
// @see https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill#sect1
|
|
151
158
|
var backgroundShadow = "inset 0 0 0 100vw ".concat(tintedBackgroundColor);
|
|
152
159
|
|
|
153
160
|
// Re-create the border, since the above webkit box shadow overrides the default border box-shadow
|
|
154
161
|
// + change the border color to match states, since the underline background gradient no longer works
|
|
155
|
-
var borderColor = euiTheme.
|
|
162
|
+
var borderColor = transparentize(euiTheme.colors.primaryText, 0.2);
|
|
156
163
|
var invalidBorder = euiTheme.colors.danger;
|
|
157
164
|
var borderShadow = function borderShadow(color) {
|
|
158
165
|
return "inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(color);
|
|
@@ -170,21 +177,21 @@ var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
|
|
|
170
177
|
*/
|
|
171
178
|
|
|
172
179
|
export var euiFormCustomControlVariables = function euiFormCustomControlVariables(euiThemeContext) {
|
|
173
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
180
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
181
|
+
colorMode = euiThemeContext.colorMode;
|
|
174
182
|
var sizes = {
|
|
175
183
|
control: euiTheme.size.base,
|
|
176
184
|
lineHeight: euiTheme.size.l,
|
|
177
185
|
labelGap: euiTheme.size.s
|
|
178
186
|
};
|
|
179
187
|
var colors = {
|
|
180
|
-
unselected: euiTheme.
|
|
181
|
-
unselectedBorder: euiTheme.
|
|
188
|
+
unselected: euiTheme.colors.emptyShade,
|
|
189
|
+
unselectedBorder: colorMode === 'DARK' ? tint(euiTheme.colors.lightestShade, 0.31) // WCAG AA requirements
|
|
190
|
+
: shade(euiTheme.colors.lightestShade, 0.4),
|
|
182
191
|
selected: euiTheme.colors.primary,
|
|
183
|
-
selectedBorder: euiTheme.components.forms.controlBorderSelected,
|
|
184
192
|
selectedIcon: euiTheme.colors.emptyShade,
|
|
185
|
-
disabled: euiTheme.
|
|
186
|
-
|
|
187
|
-
disabledIcon: euiTheme.components.forms.iconDisabled,
|
|
193
|
+
disabled: euiTheme.colors.lightShade,
|
|
194
|
+
disabledIcon: euiTheme.colors.darkShade,
|
|
188
195
|
disabledLabel: euiTheme.colors.disabledText // Lighter than formVars.disabledColor because it typically doesn't have as dark a background
|
|
189
196
|
};
|
|
190
197
|
var animation = {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { COLOR_MODES_STANDARD, tint, shade } from '../../../services';
|
|
10
11
|
import { euiRangeVariables } from './range.styles';
|
|
11
12
|
import { euiFontSize, mathWithUnits } from '../../../global_styling';
|
|
12
13
|
export var euiRangeTooltipStyles = function euiRangeTooltipStyles(euiThemeContext) {
|
|
@@ -18,18 +19,21 @@ export var euiRangeTooltipStyles = function euiRangeTooltipStyles(euiThemeContex
|
|
|
18
19
|
}), ";pointer-events:none;z-index:", range.thumbZIndex, ";;label:euiRangeTooltip;")
|
|
19
20
|
};
|
|
20
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
|
+
};
|
|
21
25
|
export var euiRangeTooltipValueStyles = function euiRangeTooltipValueStyles(euiThemeContext) {
|
|
22
26
|
var range = euiRangeVariables(euiThemeContext);
|
|
23
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
27
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
28
|
+
colorMode = euiThemeContext.colorMode;
|
|
24
29
|
var arrowSize = euiTheme.size.m;
|
|
25
30
|
var arrowSizeInt = parseInt(arrowSize, 10);
|
|
26
31
|
var arrowMinusSize = "".concat((arrowSizeInt / 2 - 1) * -1, "px"); // Shift arrow 1px more than half its size to account for border radius
|
|
27
32
|
|
|
28
|
-
var toolTipBackgroundColor = euiTheme.components.tooltipBackground;
|
|
29
33
|
return {
|
|
30
34
|
euiRangeTooltip__value: /*#__PURE__*/css("position:absolute;inset-block-start:50%;max-inline-size:", mathWithUnits(euiTheme.size.base, function (x) {
|
|
31
35
|
return x * 16;
|
|
32
|
-
}), ";padding-block:", euiTheme.size.xxs, ";padding-inline:", euiTheme.size.s, ";transform:translateX(0) translateY(-50%);", euiFontSize(euiThemeContext, 's'), " line-height:", euiFontSize(euiThemeContext, 's').lineHeight, ";color:", euiTheme.colors.ghost, ";background-color:",
|
|
36
|
+
}), ";padding-block:", euiTheme.size.xxs, ";padding-inline:", euiTheme.size.s, ";transform:translateX(0) translateY(-50%);", euiFontSize(euiThemeContext, 's'), " line-height:", euiFontSize(euiThemeContext, 's').lineHeight, ";color:", euiTheme.colors.ghost, ";background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";border:", euiTheme.border.width.thin, " solid ", euiToolTipBackgroundColor(euiTheme, colorMode), ";border-radius:", euiTheme.border.radius.small, ";&::before{content:'';position:absolute;inset-block-end:50%;inline-size:", arrowSize, ";block-size:", arrowSize, ";transform-origin:center;transform:translateY(50%) rotateZ(45deg);background-color:", euiToolTipBackgroundColor(euiTheme, colorMode), ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
33
37
|
return x / 2;
|
|
34
38
|
}), ";};label:euiRangeTooltip__value;"),
|
|
35
39
|
left: /*#__PURE__*/css("margin-inline-end:", euiTheme.size.l, ";&::before{inset-inline-end:", arrowMinusSize, ";};label:left;"),
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
var _excluded = ["label", "id", "checked", "disabled", "compressed", "mini", "onChange", "className", "showLabel", "type", "labelProps"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
4
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
6
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
7
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
8
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
3
9
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
10
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
5
11
|
/*
|
|
@@ -57,9 +63,7 @@ export var EuiSwitch = function EuiSwitch(_ref) {
|
|
|
57
63
|
var buttonStyles = [styles.button.euiSwitch__button, styles.button[size]];
|
|
58
64
|
var bodyStyles = [styles.body.euiSwitch__body, disabled ? styles.body.disabled[size] : checked ? styles.body.on : styles.body.off];
|
|
59
65
|
var iconsStyles = [styles.icons.euiSwitch__icons, checked ? styles.icons.on : styles.icons.off, disabled ? styles.icons.disabled : styles.icons.enabled];
|
|
60
|
-
var thumbStyles = [styles.thumb.euiSwitch__thumb,
|
|
61
|
-
// keep checked styles after enabled styles to ensure checked overrides enabled.off state
|
|
62
|
-
checked ? styles.thumb.on[size] : styles.thumb.off, disabled && [styles.thumb.disabled.disabled, styles.thumb.disabled[size]]];
|
|
66
|
+
var thumbStyles = [styles.thumb.euiSwitch__thumb, checked ? styles.thumb.on[size] : styles.thumb.off].concat(_toConsumableArray(disabled ? [styles.thumb.disabled.disabled, styles.thumb.disabled[size]] : [styles.thumb.enabled.enabled, styles.thumb.enabled[size]]));
|
|
63
67
|
var labelStyles = [styles.label.euiSwitch__label, styles.label[size], disabled && styles.label.disabled, labelProps === null || labelProps === void 0 ? void 0 : labelProps.css];
|
|
64
68
|
return ___EmotionJSX("div", {
|
|
65
69
|
css: cssStyles,
|
|
@@ -8,21 +8,19 @@ 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';
|
|
11
12
|
import { euiCanAnimate, euiFocusRing, euiFontSize, logicalCSS, logicalSizeCSS, mathWithUnits } from '../../../global_styling';
|
|
12
13
|
import { euiFormCustomControlVariables } from '../form.styles';
|
|
13
14
|
var euiSwitchVars = function euiSwitchVars(euiThemeContext) {
|
|
14
15
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
16
|
var formVars = euiFormCustomControlVariables(euiThemeContext);
|
|
16
17
|
var colors = {
|
|
17
|
-
on:
|
|
18
|
-
off:
|
|
18
|
+
on: formVars.colors.selected,
|
|
19
|
+
off: formVars.colors.unselectedBorder,
|
|
19
20
|
disabled: formVars.colors.disabled,
|
|
20
21
|
thumb: formVars.colors.selectedIcon,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
thumbBorderOn: euiTheme.components.switchThumbBorderOn,
|
|
24
|
-
thumbBorderDisabled: formVars.colors.disabledBorder,
|
|
25
|
-
iconDisabled: euiTheme.components.switchIconDisabled
|
|
22
|
+
thumbBorder: formVars.colors.unselectedBorder,
|
|
23
|
+
thumbBorderDisabled: formVars.colors.unselectedBorder
|
|
26
24
|
};
|
|
27
25
|
var sizes = {
|
|
28
26
|
uncompressed: {
|
|
@@ -134,16 +132,23 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
134
132
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
135
133
|
};
|
|
136
134
|
var bodyStyles = function bodyStyles(_ref4, _ref5) {
|
|
137
|
-
var
|
|
135
|
+
var colorMode = _ref4.colorMode;
|
|
138
136
|
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
|
+
};
|
|
139
144
|
return {
|
|
140
145
|
euiSwitch__body: _ref,
|
|
141
146
|
on: /*#__PURE__*/css("background-color:", colors.on, ";;label:on;"),
|
|
142
147
|
off: /*#__PURE__*/css("background-color:", colors.off, ";;label:off;"),
|
|
143
148
|
disabled: {
|
|
144
|
-
uncompressed:
|
|
145
|
-
compressed:
|
|
146
|
-
mini:
|
|
149
|
+
uncompressed: _calculateDisabledColor(0.5),
|
|
150
|
+
compressed: _calculateDisabledColor(0.25),
|
|
151
|
+
mini: _calculateDisabledColor(0)
|
|
147
152
|
}
|
|
148
153
|
};
|
|
149
154
|
};
|
|
@@ -156,7 +161,7 @@ var iconStyles = function iconStyles(_ref6, _ref7) {
|
|
|
156
161
|
on: /*#__PURE__*/css(logicalCSS('left', '-25%'), ";;label:on;"),
|
|
157
162
|
off: /*#__PURE__*/css(logicalCSS('left', '-75%'), ";;label:off;"),
|
|
158
163
|
enabled: /*#__PURE__*/css("color:", colors.thumb, ";;label:enabled;"),
|
|
159
|
-
disabled: /*#__PURE__*/css("color:", colors.
|
|
164
|
+
disabled: /*#__PURE__*/css("color:", colors.thumbBorderDisabled, ";;label:disabled;")
|
|
160
165
|
};
|
|
161
166
|
};
|
|
162
167
|
var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
@@ -176,15 +181,13 @@ var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
|
176
181
|
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;"),
|
|
177
182
|
off: /*#__PURE__*/css(logicalCSS('left', 0), ";;label:off;"),
|
|
178
183
|
get on() {
|
|
179
|
-
var baseStyles = "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(colors.thumbBorderOn, ";\n ");
|
|
180
|
-
|
|
181
184
|
// right: 0 works but doesn't transition/animate, so we need to
|
|
182
185
|
// manually calculate the left position per switch size
|
|
183
186
|
var _calculateLeft = function _calculateLeft(bodyWidth, thumbWidth) {
|
|
184
187
|
var leftPosition = mathWithUnits([bodyWidth, thumbWidth], function (x, y) {
|
|
185
188
|
return x - y;
|
|
186
189
|
});
|
|
187
|
-
return /*#__PURE__*/css("label:on;", logicalCSS('left', leftPosition), "
|
|
190
|
+
return /*#__PURE__*/css("label:on;", logicalCSS('left', leftPosition), ";");
|
|
188
191
|
};
|
|
189
192
|
return {
|
|
190
193
|
uncompressed: _calculateLeft(uncompressed.width, uncompressed.height),
|
|
@@ -199,7 +202,7 @@ var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
|
199
202
|
mini: _calculateScale('mini', false)
|
|
200
203
|
},
|
|
201
204
|
disabled: {
|
|
202
|
-
disabled: /*#__PURE__*/css("background-color:
|
|
205
|
+
disabled: /*#__PURE__*/css("background-color:transparent;border:", euiTheme.border.width.thin, " solid ", colors.thumbBorderDisabled, ";;label:disabled;"),
|
|
203
206
|
uncompressed: _calculateScale('uncompressed', false),
|
|
204
207
|
compressed: _calculateScale('compressed', false),
|
|
205
208
|
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 { shade, transparentize, 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.colors.emptyShade, ";;label:default;"),
|
|
33
33
|
dark: /*#__PURE__*/css(euiHeaderDarkStyles(euiThemeContext), ";label:dark;")
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -45,10 +45,11 @@ 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
|
|
48
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
49
|
+
colorMode = euiThemeContext.colorMode;
|
|
49
50
|
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
50
51
|
controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
|
|
51
|
-
var backgroundColor = euiTheme.
|
|
52
|
+
var backgroundColor = colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.5) : shade(euiTheme.colors.darkestShade, 0.28);
|
|
52
53
|
|
|
53
54
|
// Specific color overrides for EuiSelectableTemplateSitewide
|
|
54
55
|
var selectableSitewide = {
|
|
@@ -56,5 +57,5 @@ var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
|
|
|
56
57
|
borderColor: transparentize(euiTheme.colors.ghost, 0.3),
|
|
57
58
|
placeholderColor: makeHighContrastColor(controlPlaceholderText, 8)(backgroundColor)
|
|
58
59
|
};
|
|
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.
|
|
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(shade(euiTheme.colors.primary, 0.5), ";\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(selectableSitewide.borderColor, ";\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 ");
|
|
60
61
|
};
|
|
@@ -35,15 +35,14 @@ 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
|
-
|
|
40
|
-
danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
38
|
+
accent: /*#__PURE__*/css("color:", euiTheme.colors.accentText, ";;label:accent;"),
|
|
39
|
+
danger: /*#__PURE__*/css("color:", euiTheme.colors.dangerText, ";;label:danger;"),
|
|
41
40
|
ghost: /*#__PURE__*/css("color:", euiTheme.colors.ghost, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:ghost;"),
|
|
42
|
-
primary: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
43
|
-
success: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
44
|
-
subdued: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
45
|
-
text: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
46
|
-
warning: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
41
|
+
primary: /*#__PURE__*/css("color:", euiTheme.colors.primaryText, ";;label:primary;"),
|
|
42
|
+
success: /*#__PURE__*/css("color:", euiTheme.colors.successText, ";;label:success;"),
|
|
43
|
+
subdued: /*#__PURE__*/css("color:", euiTheme.colors.subduedText, ";;label:subdued;"),
|
|
44
|
+
text: /*#__PURE__*/css("color:", euiTheme.colors.title, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:text;"),
|
|
45
|
+
warning: /*#__PURE__*/css("color:", euiTheme.colors.warningText, ";;label:warning;"),
|
|
47
46
|
inherit: _ref2,
|
|
48
47
|
default: /*#__PURE__*/css(";label:default;"),
|
|
49
48
|
customColor: /*#__PURE__*/css(";label:customColor;"),
|
|
@@ -57,7 +56,7 @@ export var euiIconStyles = function euiIconStyles(_ref3) {
|
|
|
57
56
|
xxl: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.xxl), ";label:xxl;"),
|
|
58
57
|
// Variants
|
|
59
58
|
// App icons are two-toned. This provides the base color.
|
|
60
|
-
app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.
|
|
59
|
+
app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.successText, ";};label:app;"),
|
|
61
60
|
logo: /*#__PURE__*/css(";label:logo;"),
|
|
62
61
|
// Loading states
|
|
63
62
|
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', '
|
|
9
|
+
export var COLORS = ['default', 'primary', 'success', 'accent', 'warning', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
|
|
10
10
|
export function isNamedColor(name) {
|
|
11
11
|
return COLORS.includes(name);
|
|
12
12
|
}
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { tint } from '../../services';
|
|
10
11
|
export var euiInlineEditReadModeStyles = function euiInlineEditReadModeStyles(_ref) {
|
|
11
12
|
var euiTheme = _ref.euiTheme;
|
|
12
13
|
return {
|
|
13
14
|
euiInlineEditReadMode: /*#__PURE__*/css(";label:euiInlineEditReadMode;"),
|
|
14
15
|
// Override the cursor and allow users to highlight text when in the read only state
|
|
15
16
|
isReadOnly: /*#__PURE__*/css("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;"),
|
|
16
|
-
hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:", euiTheme.
|
|
17
|
+
hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:", tint(euiTheme.colors.subduedText, 0.08), ";};label:hasPlaceholder;")
|
|
17
18
|
};
|
|
18
19
|
};
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { transparentize } from '../../services';
|
|
10
11
|
import { logicalCSS, logicalSizeCSS, euiCanAnimate, euiFontSize } from '../../global_styling';
|
|
11
12
|
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
12
13
|
import { euiScreenReaderOnly } from '../accessibility';
|
|
@@ -21,7 +22,7 @@ export var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeCo
|
|
|
21
22
|
selected: /*#__PURE__*/css("color:", euiTheme.colors.title, ";background-color:", euiTheme.focus.backgroundColor, ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.primaryText, ";};label:selected;"),
|
|
22
23
|
disabled: {
|
|
23
24
|
disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.disabledText, ";.euiKeyPadMenuItem__icon{filter:grayscale(100%);svg *{fill:", euiTheme.colors.disabledText, ";}};label:disabled;"),
|
|
24
|
-
selected: /*#__PURE__*/css("background-color:", euiTheme.
|
|
25
|
+
selected: /*#__PURE__*/css("background-color:", transparentize(euiTheme.colors.disabled, euiTheme.focus.transparency), ";;label:selected;")
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
};
|
|
@@ -8,14 +8,16 @@ 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, euiTextTruncate, euiTextBreakWord } from '../../global_styling';
|
|
12
|
-
import { euiButtonColor } from '../../global_styling/mixins/
|
|
11
|
+
import { euiCanAnimate, euiFontSize, logicalCSS, logicalShorthandCSS, euiBackgroundColor, euiTextTruncate, euiTextBreakWord } from '../../global_styling';
|
|
12
|
+
import { euiButtonColor } from '../../themes/amsterdam/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
|
|
15
|
+
var primaryBgColor = euiBackgroundColor(euiThemeContext, 'primary', {
|
|
16
|
+
method: 'transparent'
|
|
17
|
+
});
|
|
18
|
+
var subduedBgColor = euiBackgroundColor(euiThemeContext, 'subdued', {
|
|
19
|
+
method: 'transparent'
|
|
20
|
+
});
|
|
19
21
|
return {
|
|
20
22
|
// Base
|
|
21
23
|
euiListGroupItem: /*#__PURE__*/css("padding:0;display:flex;align-items:center;position:relative;", euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, ";};label:euiListGroupItem;"),
|
|
@@ -32,9 +34,9 @@ export var euiListGroupItemStyles = function euiListGroupItemStyles(euiThemeCont
|
|
|
32
34
|
subdued: /*#__PURE__*/css("background-color:", subduedBgColor, ";;label:subdued;")
|
|
33
35
|
},
|
|
34
36
|
isClickable: {
|
|
35
|
-
primary: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
36
|
-
text: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
37
|
-
subdued: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
37
|
+
primary: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", primaryBgColor, ";};label:primary;"),
|
|
38
|
+
text: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", subduedBgColor, ";};label:text;"),
|
|
39
|
+
subdued: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", subduedBgColor, ";};label:subdued;")
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
};
|
|
@@ -7,11 +7,18 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { transparentize } from '../../services';
|
|
10
11
|
import { euiScreenReaderOnly } from '../accessibility';
|
|
11
12
|
export var euiMarkStyles = function euiMarkStyles(_ref) {
|
|
12
|
-
var euiTheme = _ref.euiTheme
|
|
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
|
+
};
|
|
13
20
|
return {
|
|
14
|
-
euiMark: /*#__PURE__*/css("background-color:", euiTheme.
|
|
21
|
+
euiMark: /*#__PURE__*/css("background-color:", transparentize(euiTheme.colors.primary, transparency[colorMode]), ";font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.text, ";;label:euiMark;")
|
|
15
22
|
};
|
|
16
23
|
};
|
|
17
24
|
export var euiMarkScreenReaderStyles = function euiMarkScreenReaderStyles(highlightStart, highlightEnd) {
|
|
@@ -8,6 +8,7 @@ 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 { logicalCSS } from '../../global_styling';
|
|
12
13
|
import { euiMarkdownEditorVariables } from './markdown_editor.styles';
|
|
13
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -24,8 +25,8 @@ export var euiMarkdownEditorDropZoneStyles = function euiMarkdownEditorDropZoneS
|
|
|
24
25
|
minHeight = _euiMarkdownEditorVar.minHeight;
|
|
25
26
|
return {
|
|
26
27
|
euiMarkdownEditorDropZone: /*#__PURE__*/css("position:relative;display:flex;flex-direction:column;", logicalCSS('min-height', minHeight), ";;label:euiMarkdownEditorDropZone;"),
|
|
27
|
-
isDragging: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", euiTheme.colors.
|
|
28
|
-
isDraggingError: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", euiTheme.colors.
|
|
28
|
+
isDragging: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", transparentize(euiTheme.colors.primary, 0.1), "!important;};label:isDragging;"),
|
|
29
|
+
isDraggingError: /*#__PURE__*/css(".euiMarkdownEditorFooter,.euiMarkdownEditorTextArea{background-color:", transparentize(euiTheme.colors.danger, 0.1), "!important;};label:isDraggingError;"),
|
|
29
30
|
hasError: /*#__PURE__*/css(".euiMarkdownEditorTextArea{--euiFormControlStateColor:", euiTheme.colors.danger, "!important;background-size:100% 100%;};label:hasError;"),
|
|
30
31
|
euiMarkdownEditorDropZone__input: _ref
|
|
31
32
|
};
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { transparentize } from '../../services';
|
|
10
11
|
import { logicalCSS, euiFontSize, mathWithUnits } from '../../global_styling';
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -54,11 +55,10 @@ export var euiMarkdownFormatStyles = function euiMarkdownFormatStyles(euiTheme)
|
|
|
54
55
|
unit: 'em'
|
|
55
56
|
}), ";label:relative;"),
|
|
56
57
|
colors: {
|
|
57
|
-
default: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.
|
|
58
|
+
default: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, transparentize(euiTheme.euiTheme.colors.fullShade, 0.15)), ";label:default;"),
|
|
58
59
|
subdued: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.subduedText), ";label:subdued;"),
|
|
59
60
|
success: /*#__PURE__*/css(euiMarkdownAdjustBorderColors(euiTheme, euiTheme.euiTheme.colors.success), ";label:success;"),
|
|
60
61
|
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;"),
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/css';
|
|
10
10
|
import { logicalCSS, euiAnimFadeIn } from '../../global_styling';
|
|
11
|
+
import { transparentize } from '../../services';
|
|
11
12
|
export var euiOverlayMaskStyles = function euiOverlayMaskStyles(_ref) {
|
|
12
13
|
var euiTheme = _ref.euiTheme;
|
|
13
14
|
return {
|
|
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.
|
|
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:", transparentize(euiTheme.colors.ink, 0.5), ";;label:euiOverlayMask;"),
|
|
15
16
|
aboveHeader: /*#__PURE__*/css("z-index:", euiTheme.levels.mask, ";;label:aboveHeader;"),
|
|
16
17
|
belowHeader: /*#__PURE__*/css("z-index:", euiTheme.levels.maskBelowHeader, ";", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), ";;label:belowHeader;")
|
|
17
18
|
};
|
|
@@ -177,8 +177,9 @@ export var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
|
|
|
177
177
|
var itemsToRender = isResponsiveBreakpoint ? rightSideItems : _toConsumableArray(rightSideItems).reverse();
|
|
178
178
|
var rightSideFlexItems = itemsToRender.map(function (item, index) {
|
|
179
179
|
return ___EmotionJSX(EuiFlexItem, {
|
|
180
|
+
key: index,
|
|
180
181
|
grow: false,
|
|
181
|
-
|
|
182
|
+
css: contentStyles.euiPageHeaderContent__rightSideItem
|
|
182
183
|
}, item);
|
|
183
184
|
});
|
|
184
185
|
var _cssStyles = [contentStyles.euiPageHeaderContent__rightSideItems, rightSideGroupProps === null || rightSideGroupProps === void 0 ? void 0 : rightSideGroupProps.css];
|
|
@@ -83,7 +83,8 @@ export var euiPageHeaderContentStyles = function euiPageHeaderContentStyles(_ref
|
|
|
83
83
|
},
|
|
84
84
|
euiPageHeaderContent__top: _ref,
|
|
85
85
|
euiPageHeaderContent__leftSideItems: /*#__PURE__*/css("@container (max-width: ", euiTheme.breakpoint.m, "px){", logicalCSS('min-width', '50%'), ";};label:euiPageHeaderContent__leftSideItems;"),
|
|
86
|
-
euiPageHeaderContent__rightSideItems: /*#__PURE__*/css("flex:0 1 auto;align-content:flex-start
|
|
86
|
+
euiPageHeaderContent__rightSideItems: /*#__PURE__*/css("flex:0 1 auto;align-content:flex-start;", logicalCSS('max-width', '100%'), "@container (min-width: ", euiTheme.breakpoint.m, "px){", logicalCSS('max-width', '50%'), " justify-content:flex-end;};label:euiPageHeaderContent__rightSideItems;"),
|
|
87
|
+
euiPageHeaderContent__rightSideItem: /*#__PURE__*/css(logicalCSS('max-width', '100%'), ";;label:euiPageHeaderContent__rightSideItem;"),
|
|
87
88
|
euiPageHeaderContent__titleIcon: /*#__PURE__*/css("position:relative;", logicalCSS('top', "-".concat(euiTheme.size.xs)), " ", logicalCSS('margin-right', euiTheme.size.base), ";;label:euiPageHeaderContent__titleIcon;")
|
|
88
89
|
};
|
|
89
90
|
};
|
|
@@ -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 { logicalCSS } from '../../../global_styling';
|
|
11
|
+
import { euiBackgroundColor, 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:", euiThemeContext
|
|
16
|
+
panelled: /*#__PURE__*/css("background:", euiBackgroundColor(euiThemeContext, 'plain'), ";", 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;")
|
|
@@ -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',
|
|
15
|
+
euiPopoverFooter: /*#__PURE__*/css(euiFontSize(euiThemeContext, 's'), " ", logicalCSS('border-top', euiTheme.border.thin), ";;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: {
|
|
@@ -10,6 +10,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiShadow, euiShadowFlat, euiShadowMedium } from '../../../themes/amsterdam/global_styling/mixins';
|
|
12
12
|
import { getShadowColor } from '../../../themes/amsterdam/global_styling/functions';
|
|
13
|
+
import { tint } from '../../../services';
|
|
13
14
|
import { euiCanAnimate, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
14
15
|
export var openAnimationTiming = 'slow';
|
|
15
16
|
|
|
@@ -38,11 +39,11 @@ export var euiPopoverPanelStyles = function euiPopoverPanelStyles(euiThemeContex
|
|
|
38
39
|
}));
|
|
39
40
|
return {
|
|
40
41
|
// Base
|
|
41
|
-
euiPopover__panel: /*#__PURE__*/css("position:absolute;", logicalCSS('min-width', "".concat(euiTheme.base * 7, "px")), logicalCSS('max-width', "calc(100vw - ".concat(euiTheme.size.xl, ")")), "backface-visibility:hidden;pointer-events:none;opacity:0;background-color:var(--euiPopoverBackgroundColor);", euiCanAnimate, "{transition:", opacityTransition, ",", transformTransition, ";}&:focus{outline-offset:0;}
|
|
42
|
+
euiPopover__panel: /*#__PURE__*/css("position:absolute;", logicalCSS('min-width', "".concat(euiTheme.base * 7, "px")), logicalCSS('max-width', "calc(100vw - ".concat(euiTheme.size.xl, ")")), "backface-visibility:hidden;pointer-events:none;opacity:0;background-color:var(--euiPopoverBackgroundColor);", euiCanAnimate, "{transition:", opacityTransition, ",", transformTransition, ";}&:focus{outline-offset:0;};label:euiPopover__panel;"),
|
|
42
43
|
isOpen: _ref,
|
|
43
44
|
/* 4 */
|
|
44
|
-
light: /*#__PURE__*/css("--euiPopoverBackgroundColor:", euiTheme.
|
|
45
|
-
dark: /*#__PURE__*/css("--euiPopoverBackgroundColor:", euiTheme.
|
|
45
|
+
light: /*#__PURE__*/css("--euiPopoverBackgroundColor:", euiTheme.colors.emptyShade, ";;label:light;"),
|
|
46
|
+
dark: /*#__PURE__*/css("--euiPopoverBackgroundColor:", tint(euiTheme.colors.emptyShade, 0.025), ";;label:dark;"),
|
|
46
47
|
// Regular popover with an arrow, a transform animation/transition, and a
|
|
47
48
|
// drop shadow via `filter` (which automatically handles the arrow)
|
|
48
49
|
hasTransform: {
|