@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
|
@@ -33,7 +33,7 @@ import { getTextColor, getColorContrast, getIsValidColor } from './color_utils';
|
|
|
33
33
|
import { euiBadgeStyles } from './badge.styles';
|
|
34
34
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
35
35
|
export var ICON_SIDES = ['left', 'right'];
|
|
36
|
-
export var COLORS = ['default', 'hollow', 'primary', 'success', 'accent', '
|
|
36
|
+
export var COLORS = ['default', 'hollow', 'primary', 'success', 'accent', 'warning', 'danger'];
|
|
37
37
|
export var EuiBadge = function EuiBadge(_ref) {
|
|
38
38
|
var children = _ref.children,
|
|
39
39
|
_ref$color = _ref.color,
|
|
@@ -9,6 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiFontSize, euiFocusRing, euiTextTruncate, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, mathWithUnits } from '../../global_styling';
|
|
12
|
+
import { transparentize } from '../../services';
|
|
12
13
|
import { euiBadgeColors } from './color_utils';
|
|
13
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
14
15
|
name: "1hw5vc4-clickable",
|
|
@@ -38,7 +39,6 @@ export var euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
|
|
|
38
39
|
hollow: /*#__PURE__*/css(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
|
|
39
40
|
primary: /*#__PURE__*/css(setBadgeColorVars(badgeColors.primary), ";label:primary;"),
|
|
40
41
|
accent: /*#__PURE__*/css(setBadgeColorVars(badgeColors.accent), ";label:accent;"),
|
|
41
|
-
accentSecondary: /*#__PURE__*/css(setBadgeColorVars(badgeColors.accentSecondary), ";label:accentSecondary;"),
|
|
42
42
|
warning: /*#__PURE__*/css(setBadgeColorVars(badgeColors.warning), ";label:warning;"),
|
|
43
43
|
danger: /*#__PURE__*/css(setBadgeColorVars(badgeColors.danger), ";label:danger;"),
|
|
44
44
|
success: /*#__PURE__*/css(setBadgeColorVars(badgeColors.success), ";label:success;"),
|
|
@@ -62,7 +62,7 @@ export var euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
|
|
|
62
62
|
},
|
|
63
63
|
// Clickable icons (iconOnClick)
|
|
64
64
|
iconButton: {
|
|
65
|
-
euiBadge__iconButton: /*#__PURE__*/css("font-size:0;&:focus{background-color:", euiTheme.
|
|
65
|
+
euiBadge__iconButton: /*#__PURE__*/css("font-size:0;&:focus{background-color:", transparentize(euiTheme.colors.ghost, 0.8), ";color:", euiTheme.colors.ink, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
66
66
|
return x / 2;
|
|
67
67
|
}), ";}&:disabled{cursor:not-allowed;}.euiBadge__icon{margin:0!important;};label:euiBadge__iconButton;"),
|
|
68
68
|
right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.xs), ";;label:right;"),
|
|
@@ -19,7 +19,7 @@ import { EuiToolTip } from '../../tool_tip';
|
|
|
19
19
|
import { EuiIcon } from '../../icon';
|
|
20
20
|
import { euiBetaBadgeStyles } from './beta_badge.styles';
|
|
21
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
22
|
-
export var COLORS = ['accent', '
|
|
22
|
+
export var COLORS = ['accent', 'subdued', 'hollow'];
|
|
23
23
|
export var SIZES = ['s', 'm'];
|
|
24
24
|
export var ALIGNMENTS = ['baseline', 'middle'];
|
|
25
25
|
|
|
@@ -44,7 +44,6 @@ export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
|
|
|
44
44
|
}), ";};label:euiBetaBadge;"),
|
|
45
45
|
// Colors
|
|
46
46
|
accent: /*#__PURE__*/css(badgeColors.accentText, ";label:accent;"),
|
|
47
|
-
accentSecondary: /*#__PURE__*/css(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
|
|
48
47
|
subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;"),
|
|
49
48
|
hollow: /*#__PURE__*/css("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", badgeColors.hollow.borderColor, ";;label:hollow;"),
|
|
50
49
|
// Font sizes
|
|
@@ -19,11 +19,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
import chroma from 'chroma-js';
|
|
22
|
-
import { isColorDark } from '../../services';
|
|
23
|
-
import { euiButtonColor, euiButtonFillColor } from '../../global_styling/mixins
|
|
22
|
+
import { isColorDark, tint } from '../../services';
|
|
23
|
+
import { euiButtonColor, euiButtonFillColor } from '../../themes/amsterdam/global_styling/mixins';
|
|
24
24
|
import { chromaValid, parseColor } from '../color_picker/utils';
|
|
25
25
|
export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
|
|
26
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
26
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
27
|
+
colorMode = euiThemeContext.colorMode;
|
|
27
28
|
return {
|
|
28
29
|
// Colors shared between buttons and badges
|
|
29
30
|
primary: euiButtonFillColor(euiThemeContext, 'primary'),
|
|
@@ -31,18 +32,16 @@ export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
|
|
|
31
32
|
warning: euiButtonFillColor(euiThemeContext, 'warning'),
|
|
32
33
|
danger: euiButtonFillColor(euiThemeContext, 'danger'),
|
|
33
34
|
accent: euiButtonFillColor(euiThemeContext, 'accent'),
|
|
34
|
-
accentSecondary: euiButtonFillColor(euiThemeContext, 'accentSecondary'),
|
|
35
35
|
disabled: euiButtonColor(euiThemeContext, 'disabled'),
|
|
36
36
|
// Colors unique to badges
|
|
37
37
|
default: getBadgeColors(euiThemeContext, euiTheme.colors.lightShade),
|
|
38
38
|
// Hollow has a border and is used for autocompleters and beta badges
|
|
39
39
|
hollow: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.colors.emptyShade)), {}, {
|
|
40
|
-
borderColor: euiTheme.
|
|
40
|
+
borderColor: colorMode === 'DARK' ? tint(euiTheme.border.color, 0.15) : euiTheme.border.color
|
|
41
41
|
}),
|
|
42
42
|
// Colors used by beta and notification badges
|
|
43
|
-
subdued: getBadgeColors(euiThemeContext, euiTheme.
|
|
44
|
-
accentText: getBadgeColors(euiThemeContext, euiTheme.colors.
|
|
45
|
-
accentSecondaryText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccentSecondary)
|
|
43
|
+
subdued: getBadgeColors(euiThemeContext, tint(euiTheme.colors.lightShade, 0.3)),
|
|
44
|
+
accentText: getBadgeColors(euiThemeContext, euiTheme.colors.accentText)
|
|
46
45
|
};
|
|
47
46
|
};
|
|
48
47
|
export var getBadgeColors = function getBadgeColors(euiThemeContext, backgroundColor) {
|
|
@@ -16,7 +16,7 @@ import classNames from 'classnames';
|
|
|
16
16
|
import { useEuiMemoizedStyles } from '../../../services';
|
|
17
17
|
import { euiNotificationBadgeStyles } from './badge_notification.styles';
|
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
|
-
export var COLORS = ['accent', '
|
|
19
|
+
export var COLORS = ['accent', 'subdued', 'success'];
|
|
20
20
|
export var SIZES = ['s', 'm'];
|
|
21
21
|
export var EuiNotificationBadge = function EuiNotificationBadge(_ref) {
|
|
22
22
|
var children = _ref.children,
|
|
@@ -23,7 +23,6 @@ export var euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiT
|
|
|
23
23
|
})), " ", logicalCSS('min-width', euiTheme.size.l), ";;label:m;"),
|
|
24
24
|
// Colors
|
|
25
25
|
accent: /*#__PURE__*/css(badgeColors.accentText, ";label:accent;"),
|
|
26
|
-
accentSecondary: /*#__PURE__*/css(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
|
|
27
26
|
success: /*#__PURE__*/css(badgeColors.success, ";label:success;"),
|
|
28
27
|
subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;")
|
|
29
28
|
};
|
|
@@ -10,6 +10,7 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
|
|
|
10
10
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
12
|
import { euiCanAnimate } from '../../global_styling';
|
|
13
|
+
import { shade } from '../../services';
|
|
13
14
|
import { euiShadowFlat } from '../../themes/amsterdam/global_styling/mixins';
|
|
14
15
|
var euiBottomBarAppear = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translateY(100%);\n opacity: 0;\n }\n\n 100% {\n transform: translateY(0%);\n opacity: 1;\n }\n"])));
|
|
15
16
|
export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
|
|
@@ -17,7 +18,7 @@ export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
|
|
|
17
18
|
return {
|
|
18
19
|
// Base
|
|
19
20
|
// `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
|
|
20
|
-
euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:", euiTheme.
|
|
21
|
+
euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:", shade(euiTheme.colors.lightestShade, 0.5), ";", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
|
|
21
22
|
static: /*#__PURE__*/css(";label:static;"),
|
|
22
23
|
// Default
|
|
23
24
|
fixed: /*#__PURE__*/css("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { tintOrShade } from '../../services/color';
|
|
10
11
|
import { euiFontSize, euiTextTruncate, euiFocusRing, logicalCSS, logicalBorderRadiusCSS, mathWithUnits } from '../../global_styling';
|
|
11
|
-
import { euiButtonColor } from '../../global_styling/mixins/
|
|
12
|
+
import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins/button';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Styles cast to inner <a>, <button>, <span> elements
|
|
15
16
|
*/
|
|
16
17
|
export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeContext) {
|
|
17
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
18
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
19
|
+
colorMode = euiThemeContext.colorMode;
|
|
18
20
|
|
|
19
21
|
// Reuse button colors for `type="application`" clickable breadcrumbs
|
|
20
22
|
var applicationButtonColors = euiButtonColor(euiThemeContext, 'primary');
|
|
@@ -22,8 +24,8 @@ export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiT
|
|
|
22
24
|
// Create custom darker gray colors for non-clickable application breadcrumbs
|
|
23
25
|
// The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
|
|
24
26
|
var applicationTextColors = {
|
|
25
|
-
backgroundColor: euiTheme.
|
|
26
|
-
color: euiTheme.
|
|
27
|
+
backgroundColor: tintOrShade(euiTheme.colors.darkestShade, colorMode === 'DARK' ? 0.7 : 0.85, colorMode),
|
|
28
|
+
color: tintOrShade(euiTheme.colors.darkestShade, 0.2, colorMode)
|
|
27
29
|
};
|
|
28
30
|
return {
|
|
29
31
|
euiBreadcrumb__content: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.subduedText, ";};label:euiBreadcrumb__content;"),
|
|
@@ -13,7 +13,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import { BUTTON_COLORS, useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../global_styling/mixins/
|
|
16
|
+
import { BUTTON_COLORS, useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../themes/amsterdam/global_styling/mixins/button';
|
|
17
17
|
import { EuiButtonDisplay, isButtonDisabled } from './button_display/_button_display';
|
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
19
|
export var COLORS = BUTTON_COLORS;
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { euiFontSize, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS } from '../../../global_styling';
|
|
11
|
-
import { euiButtonSizeMap } from '../../../global_styling/mixins';
|
|
11
|
+
import { euiButtonSizeMap } from '../../../themes/amsterdam/global_styling/mixins';
|
|
12
12
|
// Provides a solid reset and base for handling sizing layout
|
|
13
13
|
// Does not include any visual styles
|
|
14
14
|
export var euiButtonBaseCSS = function euiButtonBaseCSS() {
|
|
@@ -21,7 +21,7 @@ import PropTypes from "prop-types";
|
|
|
21
21
|
import classNames from 'classnames';
|
|
22
22
|
import { useEuiMemoizedStyles, getSecureRelForTarget } from '../../../services';
|
|
23
23
|
import { EuiButtonDisplayContent } from '../button_display/_button_display_content';
|
|
24
|
-
import { useEuiButtonColorCSS } from '../../../global_styling/mixins/
|
|
24
|
+
import { useEuiButtonColorCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
|
|
25
25
|
import { isButtonDisabled } from '../button_display/_button_display';
|
|
26
26
|
import { euiButtonEmptyStyles } from './button_empty.styles';
|
|
27
27
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -26,7 +26,7 @@ import classNames from 'classnames';
|
|
|
26
26
|
import PropTypes from "prop-types";
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import { useEuiMemoizedStyles } from '../../../services';
|
|
29
|
-
import { useEuiButtonColorCSS } from '../../../global_styling/mixins/
|
|
29
|
+
import { useEuiButtonColorCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
|
|
30
30
|
import { useInnerText } from '../../inner_text';
|
|
31
31
|
import { EuiButtonDisplay } from '../button_display/_button_display';
|
|
32
32
|
import { euiButtonGroupButtonStyles, _compressedButtonFocusColors } from './button_group_button.styles';
|
|
@@ -20,9 +20,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import { css } from '@emotion/react';
|
|
23
|
-
import { makeDisabledContrastColor } from '../../../services';
|
|
23
|
+
import { makeDisabledContrastColor, transparentize } from '../../../services';
|
|
24
24
|
import { mathWithUnits, logicalCSS, logicalShorthandCSS, euiTextShift, euiOutline, euiCanAnimate } from '../../../global_styling';
|
|
25
|
-
import { euiButtonFillColor, BUTTON_COLORS } from '../../../global_styling/mixins/
|
|
25
|
+
import { euiButtonFillColor, BUTTON_COLORS } from '../../../themes/amsterdam/global_styling/mixins/button';
|
|
26
26
|
import { euiScreenReaderOnly } from '../../accessibility';
|
|
27
27
|
import { euiFormVariables } from '../../form/form.styles';
|
|
28
28
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -61,8 +61,8 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
|
|
|
61
61
|
uncompressed: /*#__PURE__*/css("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";};label:uncompressed;"),
|
|
62
62
|
get borders() {
|
|
63
63
|
var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
|
|
64
|
-
var selectedColor = euiTheme.
|
|
65
|
-
var unselectedColor = euiTheme.
|
|
64
|
+
var selectedColor = transparentize(euiTheme.colors.emptyShade, 0.2);
|
|
65
|
+
var unselectedColor = transparentize(euiTheme.colors.fullShade, 0.1);
|
|
66
66
|
var borderWidth = euiTheme.border.width.thin;
|
|
67
67
|
|
|
68
68
|
// "Borders" between buttons should be present between two of the same colored buttons,
|
|
@@ -16,7 +16,7 @@ import classNames from 'classnames';
|
|
|
16
16
|
import { getSecureRelForTarget, useEuiMemoizedStyles } from '../../../services';
|
|
17
17
|
import { EuiIcon } from '../../icon';
|
|
18
18
|
import { EuiLoadingSpinner } from '../../loading';
|
|
19
|
-
import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../global_styling/mixins/
|
|
19
|
+
import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../themes/amsterdam/global_styling/mixins/button';
|
|
20
20
|
import { isButtonDisabled } from '../button_display/_button_display';
|
|
21
21
|
import { euiButtonIconStyles, _emptyHoverStyles } from './button_icon.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -9,7 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiPaddingSize, euiSupportsHas, logicalCSS, logicals, logicalTextAlignCSS } from '../../global_styling';
|
|
12
|
-
import { euiButtonColor } from '../../global_styling/mixins';
|
|
12
|
+
import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins';
|
|
13
13
|
var paddingKey = 'm';
|
|
14
14
|
var halfPaddingKey = 's';
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
19
19
|
import React, { useState } from 'react';
|
|
20
20
|
import PropTypes from "prop-types";
|
|
21
21
|
import { useEuiTheme, useEuiMemoizedStyles } from '../../services';
|
|
22
|
-
import { useEuiButtonFocusCSS } from '../../global_styling/mixins/
|
|
22
|
+
import { useEuiButtonFocusCSS } from '../../themes/amsterdam/global_styling/mixins/button';
|
|
23
23
|
import { useEuiI18n } from '../i18n';
|
|
24
24
|
import { EuiPopover } from '../popover';
|
|
25
25
|
import { EuiIcon } from '../icon';
|
|
@@ -15,6 +15,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { css } from '@emotion/css';
|
|
18
|
+
import { euiBackgroundColor } from '../../global_styling';
|
|
18
19
|
// Note: These styles must be in a separate file due to using `css` from `@emotion/css`
|
|
19
20
|
// (i.e., applying styles in vanilla JS / directly to DOM nodes instead of React)
|
|
20
21
|
|
|
@@ -39,7 +40,7 @@ export var euiCodeBlockLineStyles = function euiCodeBlockLineStyles(euiThemeCont
|
|
|
39
40
|
}),
|
|
40
41
|
lineText: {
|
|
41
42
|
euiCodeBlock__lineText: /*#__PURE__*/css("flex-grow:1;display:inline-block;padding-inline-start:", euiTheme.size.m, ";border-inline-start:", euiTheme.border.thin, ";user-select:text;;label:euiCodeBlock__lineText;"),
|
|
42
|
-
isHighlighted: /*#__PURE__*/css("background:",
|
|
43
|
+
isHighlighted: /*#__PURE__*/css("background:", euiBackgroundColor(euiThemeContext, 'primary'), ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
|
|
43
44
|
},
|
|
44
45
|
lineNumber: {
|
|
45
46
|
euiCodeBlock__lineNumberWrapper: /*#__PURE__*/css("position:relative;flex-grow:0;flex-shrink:0;user-select:none;padding-inline-end:", euiTheme.size.m, ";box-sizing:content-box;;label:euiCodeBlock__lineNumberWrapper;"),
|
|
@@ -7,15 +7,17 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { shade } from '../../../services';
|
|
10
11
|
import { logicalCSS } from '../../../global_styling';
|
|
11
12
|
export var euiCollapsibleNavGroupStyles = function euiCollapsibleNavGroupStyles(_ref) {
|
|
12
|
-
var euiTheme = _ref.euiTheme
|
|
13
|
+
var euiTheme = _ref.euiTheme,
|
|
14
|
+
colorMode = _ref.colorMode;
|
|
13
15
|
return {
|
|
14
16
|
euiCollapsibleNavGroup: /*#__PURE__*/css("&:not(:first-child){", logicalCSS('border-top', euiTheme.border.thin), ";};label:euiCollapsibleNavGroup;"),
|
|
15
17
|
// Background colors
|
|
16
18
|
none: /*#__PURE__*/css(";label:none;"),
|
|
17
|
-
light: /*#__PURE__*/css("background-color:", euiTheme.
|
|
18
|
-
dark: /*#__PURE__*/css("background-color:", euiTheme.
|
|
19
|
+
light: /*#__PURE__*/css("background-color:", euiTheme.colors.body, ";;label:light;"),
|
|
20
|
+
dark: /*#__PURE__*/css("background-color:", colorMode === 'DARK' ? shade(euiTheme.colors.lightestShade, 0.5) : shade(euiTheme.colors.darkestShade, 0.2), ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
|
|
19
21
|
// Header padding
|
|
20
22
|
isCollapsible: /*#__PURE__*/css(".euiAccordion__triggerWrapper{padding:", euiTheme.size.base, ";};label:isCollapsible;"),
|
|
21
23
|
notCollapsible: /*#__PURE__*/css(".euiCollapsibleNavGroup__heading{padding:", euiTheme.size.base, ";};label:notCollapsible;"),
|
package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js
CHANGED
|
@@ -15,7 +15,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
15
15
|
|
|
16
16
|
import { css } from '@emotion/react';
|
|
17
17
|
import { logicalCSS, mathWithUnits, euiFontSize } from '../../../global_styling';
|
|
18
|
-
import { euiButtonColor } from '../../../global_styling/mixins/
|
|
18
|
+
import { euiButtonColor } from '../../../themes/amsterdam/global_styling/mixins/button';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Style variables shared between accordion, link, and sub items
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { transparentize } from '../../../services';
|
|
10
11
|
import { logicalCSS } from '../../../global_styling';
|
|
11
12
|
export var euiColorPaletteDisplayStyles = function euiColorPaletteDisplayStyles(euiThemeContext) {
|
|
12
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
13
14
|
|
|
14
15
|
// Border is a pseudo element with transparency
|
|
15
|
-
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.
|
|
16
|
+
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(transparentize(euiTheme.colors.darkestShade, 0.2));
|
|
16
17
|
return {
|
|
17
18
|
euiColorPaletteDisplay: /*#__PURE__*/css("position:relative;display:flex;flex-direction:row;overflow:hidden;&::after{content:'';position:absolute;inset:0;pointer-events:none;border:", border, ";border-radius:inherit;};label:euiColorPaletteDisplay;"),
|
|
18
19
|
// Sizes
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { transparentize } from '../../services';
|
|
10
11
|
import { logicalCSS, mathWithUnits } from '../../global_styling';
|
|
11
12
|
export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext) {
|
|
12
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -21,6 +22,6 @@ export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext)
|
|
|
21
22
|
euiColorPicker__alphaRange: /*#__PURE__*/css(".euiRangeInput{", logicalCSS('min-width', 0), ";};label:euiColorPicker__alphaRange;"),
|
|
22
23
|
// Adds a stroke color for the swatchInput icon. Unlike most EuiIcons it has a stroke in the SVG
|
|
23
24
|
// Targets a custom className applied directly to the <svg> icon
|
|
24
|
-
euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", euiTheme.colors.
|
|
25
|
+
euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", transparentize(euiTheme.colors.fullShade, 0.2), ";};label:euiColorPicker__swatchInputIcon;")
|
|
25
26
|
};
|
|
26
27
|
};
|
|
@@ -14,6 +14,6 @@ export var euiColorPickerSwatchStyles = function euiColorPickerSwatchStyles(euiT
|
|
|
14
14
|
return {
|
|
15
15
|
euiColorPickerSwatch: /*#__PURE__*/css("display:inline-block;", logicalSizeCSS(euiTheme.size.l), " border-radius:", mathWithUnits(euiTheme.border.radius.medium, function (x) {
|
|
16
16
|
return x / 2;
|
|
17
|
-
}), ";border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.
|
|
17
|
+
}), ";border:", euiTheme.border.width.thin, " solid ", transparentize(euiTheme.colors.fullShade, 0.1), ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", transparentize(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", euiOutline(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
|
|
18
18
|
};
|
|
19
19
|
};
|
package/es/components/common.js
CHANGED
|
@@ -28,6 +28,12 @@ export function keysOf(obj) {
|
|
|
28
28
|
return Object.keys(obj);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* Like `keyof typeof`, but for getting values instead of keys
|
|
33
|
+
* ValueOf<typeof {key1: 'value1', key2: 'value2'}>
|
|
34
|
+
* Results in `'value1' | 'value2'`
|
|
35
|
+
*/
|
|
36
|
+
|
|
31
37
|
// Returns the props of a given HTML element
|
|
32
38
|
|
|
33
39
|
// Utility methods for ApplyClassComponentDefaults
|
|
@@ -120,4 +126,26 @@ React.FunctionComponent<ExclusiveUnion<Spanlike, Buttonlike>>
|
|
|
120
126
|
* type ButtonLike = PropsForButton<BaseProps>
|
|
121
127
|
* type ComponentProps = ExclusiveUnion<AnchorLike, ButtonLike>
|
|
122
128
|
* const Component: FunctionComponent<ComponentProps> ...
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Replaces all properties on any type as optional, includes nested types
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* interface Person {
|
|
137
|
+
* name: string;
|
|
138
|
+
* age?: number;
|
|
139
|
+
* spouse: Person;
|
|
140
|
+
* children: Person[];
|
|
141
|
+
* }
|
|
142
|
+
* type PartialPerson = RecursivePartial<Person>;
|
|
143
|
+
* // results in
|
|
144
|
+
* interface PartialPerson {
|
|
145
|
+
* name?: string;
|
|
146
|
+
* age?: number;
|
|
147
|
+
* spouse?: RecursivePartial<Person>;
|
|
148
|
+
* children?: RecursivePartial<Person>[]
|
|
149
|
+
* }
|
|
150
|
+
* ```
|
|
123
151
|
*/
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { tintOrShade } from '../../services';
|
|
10
11
|
import { euiFontSize, logicalCSS, logicalSizeCSS, mathWithUnits } from '../../global_styling';
|
|
11
12
|
export var euiDataGridVariables = function euiDataGridVariables(euiThemeContext) {
|
|
12
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -36,13 +37,14 @@ export var euiDataGridVariables = function euiDataGridVariables(euiThemeContext)
|
|
|
36
37
|
};
|
|
37
38
|
};
|
|
38
39
|
export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
|
|
39
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
40
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
41
|
+
colorMode = euiThemeContext.colorMode;
|
|
40
42
|
var _euiDataGridVariables = euiDataGridVariables(euiThemeContext),
|
|
41
43
|
_cellPadding = _euiDataGridVariables.cellPadding,
|
|
42
44
|
lineHeight = _euiDataGridVariables.lineHeight,
|
|
43
45
|
_fontSize = _euiDataGridVariables.fontSize;
|
|
44
46
|
return {
|
|
45
|
-
euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", logicalCSS('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.colors.emptyShade, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.
|
|
47
|
+
euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", logicalCSS('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.colors.emptyShade, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.colors.lightestShade, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.colors.highlight, ";};label:euiDataGrid;"),
|
|
46
48
|
cellPadding: {
|
|
47
49
|
cellPadding: function cellPadding(size) {
|
|
48
50
|
return /*#__PURE__*/css(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}/* Workaround to trim line-clamp and padding - @see https://github.com/elastic/eui/issues/7780 */.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", logicalCSS('padding-bottom', 0), " ", logicalCSS('border-bottom', "".concat(_cellPadding[size], " solid transparent")), ";}.euiDataGridHeaderCell__button{margin-block:-", _cellPadding[size], ";};label:cellPadding;");
|
|
@@ -76,7 +78,7 @@ export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
|
|
|
76
78
|
none: null,
|
|
77
79
|
horizontal: /*#__PURE__*/css("label:borders;.euiDataGridRowCell:not(.euiDataGridFooterCell),.euiDataGridFooter,&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('margin-top', "-".concat(euiTheme.border.width.thin)), ";}.euiDataGridHeader{", logicalCSS('border-top', euiTheme.border.thin), ";};label:horizontal;"),
|
|
78
80
|
all: /*#__PURE__*/css("label:borders;.euiDataGridRowCell{&:not(.euiDataGridFooterCell){", logicalCSS('border-bottom', euiTheme.border.thin), " ", logicalCSS('border-right', // Visually lighten vertical borders
|
|
79
|
-
"".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.
|
|
81
|
+
"".concat(euiTheme.border.width.thin, " solid ").concat(tintOrShade(euiTheme.border.color, 0.3, colorMode))), ";}&--firstColumn{", logicalCSS('border-left', euiTheme.border.thin), ";}&--lastColumn{", logicalCSS('border-right-color', euiTheme.border.color), ";}}.euiDataGridFooterCell,.euiDataGridHeaderCell{", logicalCSS('border-right', euiTheme.border.thin), " &:first-of-type{", logicalCSS('border-left', euiTheme.border.thin), ";}}.euiDataGridFooter{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:not(.euiDataGrid--footerOverline) .euiDataGridFooter{", logicalCSS('border-top', euiTheme.border.thin), " ", logicalCSS('margin-top', "-".concat(euiTheme.border.width.thin)), ";}&:not(.euiDataGrid--headerUnderline) .euiDataGridHeader{", logicalCSS('border-bottom', euiTheme.border.thin), ";}&:is(.euiDataGrid--noControls) .euiDataGridHeader{", logicalCSS('border-top', euiTheme.border.thin), ";}.euiDataGrid__controls{border:", euiTheme.border.thin, ";background-color:", euiTheme.colors.body, ";};label:all;")
|
|
80
82
|
},
|
|
81
83
|
// Sits below the controls above it and pagination below it
|
|
82
84
|
euiDataGrid__content: /*#__PURE__*/css("z-index:1;position:relative;flex-grow:1;", logicalSizeCSS('100%'), " ", logicalCSS('max-width', '100%'), " overflow:hidden;background-color:", euiTheme.colors.body, ";font-feature-settings:'tnum' 1;;label:euiDataGrid__content;"),
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
// Needs to use vanilla `css` to pass a className directly to react-datepicker
|
|
10
10
|
import { css } from '@emotion/css';
|
|
11
11
|
import { euiCanAnimate, euiMaxBreakpoint, euiFontSize, euiYScroll, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
12
|
-
import { euiButtonColor, euiButtonEmptyColor, euiButtonFillColor } from '../../global_styling/mixins';
|
|
13
|
-
import { euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
|
|
12
|
+
import { euiButtonColor, euiButtonEmptyColor, euiButtonFillColor, euiShadowSmall } from '../../themes/amsterdam/global_styling/mixins';
|
|
14
13
|
import { euiFormControlStyles, euiFormControlText, euiFormControlDefaultShadow } from '../form/form.styles';
|
|
15
14
|
export var euiDatePickerVariables = function euiDatePickerVariables(_ref) {
|
|
16
15
|
var euiTheme = _ref.euiTheme;
|
|
@@ -87,7 +87,9 @@ export var EuiDatePopoverButton = function EuiDatePopoverButton(props) {
|
|
|
87
87
|
anchorPosition: position === 'start' ? 'downLeft' : 'downRight',
|
|
88
88
|
display: "block",
|
|
89
89
|
panelPaddingSize: "none"
|
|
90
|
-
}, rest
|
|
90
|
+
}, rest, {
|
|
91
|
+
css: value === 'now' && styles.now
|
|
92
|
+
}), ___EmotionJSX(EuiDatePopoverContent, {
|
|
91
93
|
value: value,
|
|
92
94
|
roundUp: roundUp,
|
|
93
95
|
canRoundRelativeUnits: canRoundRelativeUnits,
|
package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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)."; }
|
|
1
2
|
/*
|
|
2
3
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
4
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -8,8 +9,17 @@
|
|
|
8
9
|
|
|
9
10
|
import { css } from '@emotion/react';
|
|
10
11
|
import { _buttonStyles } from '../super_date_picker.styles';
|
|
12
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
|
+
name: "170kc3d-now",
|
|
14
|
+
styles: "flex-grow:0.5!important;label:now;"
|
|
15
|
+
} : {
|
|
16
|
+
name: "170kc3d-now",
|
|
17
|
+
styles: "flex-grow:0.5!important;label:now;",
|
|
18
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
19
|
+
};
|
|
11
20
|
export var euiDatePopoverButtonStyles = function euiDatePopoverButtonStyles(euiThemeContext) {
|
|
12
21
|
return {
|
|
13
|
-
euiDatePopoverButton: /*#__PURE__*/css(_buttonStyles(euiThemeContext), ";;label:euiDatePopoverButton;")
|
|
22
|
+
euiDatePopoverButton: /*#__PURE__*/css(_buttonStyles(euiThemeContext), ";;label:euiDatePopoverButton;"),
|
|
23
|
+
now: _ref
|
|
14
24
|
};
|
|
15
25
|
};
|
|
@@ -8,7 +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 { makeHighContrastColor } from '../../../services';
|
|
11
|
+
import { tint, shade, makeHighContrastColor } from '../../../services';
|
|
12
12
|
import { euiFontSize, euiMaxBreakpoint, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
13
13
|
import { euiFormVariables, euiFormControlDefaultShadow, euiFormControlInvalidStyles, euiFormControlDisabledStyles } from '../../form/form.styles';
|
|
14
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -20,7 +20,8 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
20
20
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21
21
|
};
|
|
22
22
|
export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiThemeContext) {
|
|
23
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
23
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
24
|
+
colorMode = euiThemeContext.colorMode;
|
|
24
25
|
var forms = euiFormVariables(euiThemeContext);
|
|
25
26
|
var inputWidth = euiTheme.base * 30;
|
|
26
27
|
var buttonWidth = euiTheme.base * 7; // @see _button_display.styles.ts
|
|
@@ -38,7 +39,7 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
|
|
|
38
39
|
});
|
|
39
40
|
|
|
40
41
|
// Needs updating colors
|
|
41
|
-
var needsUpdatingBackgroundColor = euiTheme.
|
|
42
|
+
var needsUpdatingBackgroundColor = colorMode === 'DARK' ? shade(euiTheme.colors.success, 0.7) : tint(euiTheme.colors.success, 0.9);
|
|
42
43
|
var needsUpdatingTextColor = makeHighContrastColor(euiTheme.colors.success)(needsUpdatingBackgroundColor);
|
|
43
44
|
return {
|
|
44
45
|
euiSuperDatePicker: /*#__PURE__*/css("display:flex;gap:", gap, ";", logicalCSS('max-width', '100%'), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), ";};label:euiSuperDatePicker;"),
|
|
@@ -63,7 +64,7 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
|
|
|
63
64
|
// isQuickSelectOnly forces `width` to be `auto`
|
|
64
65
|
isQuickSelectOnly: /*#__PURE__*/css(logicalCSS('min-width', 0), ".euiFormControlLayout__prepend{", logicalCSS('max-width', 'none'), ";};label:isQuickSelectOnly;"),
|
|
65
66
|
euiSuperDatePicker__range: _ref,
|
|
66
|
-
euiSuperDatePicker__rangeInput: /*#__PURE__*/css("flex-grow:1;", logicalCSS('width', 'auto'), ";;label:euiSuperDatePicker__rangeInput;"),
|
|
67
|
+
euiSuperDatePicker__rangeInput: /*#__PURE__*/css("flex-grow:1;", logicalCSS('width', 'auto'), " overflow:hidden;;label:euiSuperDatePicker__rangeInput;"),
|
|
67
68
|
euiSuperDatePicker__prettyFormat: /*#__PURE__*/css(_buttonStyles(euiThemeContext), " text-align:start;;label:euiSuperDatePicker__prettyFormat;"),
|
|
68
69
|
// Form states
|
|
69
70
|
states: {
|
|
@@ -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 { euiCanAnimate } from '../../global_styling';
|
|
12
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
14
|
name: "jkp921-noGrow",
|
|
@@ -27,10 +28,11 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
27
28
|
};
|
|
28
29
|
export var euiDroppableStyles = function euiDroppableStyles(euiThemeContext) {
|
|
29
30
|
var euiTheme = euiThemeContext.euiTheme;
|
|
31
|
+
var droppableColor = euiTheme.colors.success;
|
|
30
32
|
return {
|
|
31
33
|
euiDroppable: /*#__PURE__*/css(euiCanAnimate, "{transition:background-color ", euiTheme.animation.slow, " ease;};label:euiDroppable;"),
|
|
32
|
-
isDragging: /*#__PURE__*/css("background-color:",
|
|
33
|
-
isDraggingOver: /*#__PURE__*/css("background-color:",
|
|
34
|
+
isDragging: /*#__PURE__*/css("background-color:", transparentize(droppableColor, 0.1), ";;label:isDragging;"),
|
|
35
|
+
isDraggingOver: /*#__PURE__*/css("background-color:", transparentize(droppableColor, 0.25), ";;label:isDraggingOver;"),
|
|
34
36
|
grow: _ref2,
|
|
35
37
|
noGrow: _ref,
|
|
36
38
|
spacing: sharedSpacingPadding(euiThemeContext)
|
|
@@ -14,8 +14,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
import { css } from '@emotion/react';
|
|
17
|
-
import { euiMinBreakpoint, euiPaddingSize, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
18
|
-
import { getTokenName } from '@elastic/eui-theme-common';
|
|
17
|
+
import { euiMinBreakpoint, euiPaddingSize, euiBorderColor, logicalCSS, mathWithUnits } from '../../global_styling';
|
|
19
18
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
20
19
|
name: "x4698b-roundedBorders",
|
|
21
20
|
styles: "border-radius:inherit;label:roundedBorders;"
|
|
@@ -71,8 +70,7 @@ export var euiEmptyPromptStyles = function euiEmptyPromptStyles(euiThemeContext)
|
|
|
71
70
|
};
|
|
72
71
|
};
|
|
73
72
|
var generateFooterBorder = function generateFooterBorder(color) {
|
|
74
|
-
|
|
75
|
-
return "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors[borderToken]);
|
|
73
|
+
return "".concat(euiTheme.border.width.thin, " solid ").concat(euiBorderColor(euiThemeContext, color));
|
|
76
74
|
};
|
|
77
75
|
return {
|
|
78
76
|
euiEmptyPrompt: /*#__PURE__*/css("text-align:center;margin:auto;", euiMinBreakpoint(euiThemeContext, 'l'), "{", logicalCSS('max-width', 'max-content'), ";};label:euiEmptyPrompt;"),
|
|
@@ -109,7 +107,6 @@ export var euiEmptyPromptStyles = function euiEmptyPromptStyles(euiThemeContext)
|
|
|
109
107
|
subdued: /*#__PURE__*/css(logicalCSS('border-top', generateFooterBorder('subdued')), ";;label:subdued;"),
|
|
110
108
|
primary: /*#__PURE__*/css(logicalCSS('border-top', generateFooterBorder('primary')), ";;label:primary;"),
|
|
111
109
|
accent: /*#__PURE__*/css(logicalCSS('border-top', generateFooterBorder('accent')), ";;label:accent;"),
|
|
112
|
-
accentSecondary: /*#__PURE__*/css(logicalCSS('border-top', generateFooterBorder('accentSecondary')), ";;label:accentSecondary;"),
|
|
113
110
|
danger: /*#__PURE__*/css(logicalCSS('border-top', generateFooterBorder('danger')), ";;label:danger;"),
|
|
114
111
|
warning: /*#__PURE__*/css(logicalCSS('border-top', generateFooterBorder('warning')), ";;label:warning;"),
|
|
115
112
|
success: /*#__PURE__*/css(logicalCSS('border-top', generateFooterBorder('success')), ";;label:success;")
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { transparentize } from '../../services';
|
|
10
11
|
import { logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, euiFontSize } from '../../global_styling';
|
|
11
12
|
export var euiFilterSelectItemStyles = function euiFilterSelectItemStyles(euiThemeContext) {
|
|
12
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
13
|
-
var focusStyles = "\n color: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(euiTheme.focus.backgroundColor, ";\n outline-offset: -").concat(euiTheme.focus.width, ";\n text-decoration: underline;\n\n &:disabled {\n background-color: ").concat(euiTheme.
|
|
14
|
+
var focusStyles = "\n color: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(euiTheme.focus.backgroundColor, ";\n outline-offset: -").concat(euiTheme.focus.width, ";\n text-decoration: underline;\n\n &:disabled {\n background-color: ").concat(transparentize(euiTheme.colors.disabled, 0.1), ";\n }\n ");
|
|
14
15
|
return {
|
|
15
16
|
euiFilterSelectItem: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), " ", logicalShorthandCSS('padding', "".concat(euiTheme.size.xs, " ").concat(euiTheme.size.m)), " ", euiFontSize(euiThemeContext, 's'), " ", logicalTextAlignCSS('left'), " color:", euiTheme.colors.text, ";", logicalCSS('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.lightestShade)), " &:hover{cursor:pointer;text-decoration:underline;}&:focus{", focusStyles, ";}&:disabled{cursor:not-allowed;text-decoration:none;color:", euiTheme.colors.disabledText, ";};label:euiFilterSelectItem;"),
|
|
16
17
|
isFocused: /*#__PURE__*/css(focusStyles, ";;label:isFocused;")
|