@elastic/eui 100.0.0 → 101.0.0
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/avatar/avatar.js +16 -3
- package/es/components/avatar/avatar.styles.js +13 -7
- package/es/components/badge/beta_badge/beta_badge.styles.js +5 -8
- package/es/components/badge/notification_badge/badge_notification.styles.js +6 -5
- package/es/components/beacon/beacon.styles.js +4 -3
- package/es/components/bottom_bar/bottom_bar.styles.js +5 -2
- package/es/components/breadcrumbs/_breadcrumb_content.js +2 -0
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +23 -6
- package/es/components/breadcrumbs/breadcrumb.styles.js +10 -4
- package/es/components/breadcrumbs/breadcrumbs.styles.js +1 -3
- package/es/components/button/button_group/button_group.styles.js +19 -3
- package/es/components/button/button_group/button_group_button.styles.js +8 -6
- package/es/components/call_out/call_out.styles.js +1 -1
- package/es/components/card/card.styles.js +3 -6
- package/es/components/code/code_block.styles.js +7 -2
- package/es/components/code/code_block_annotations.style.js +10 -3
- package/es/components/code/code_block_line.styles.js +17 -5
- package/es/components/code/code_syntax.styles.js +14 -3
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +2 -2
- package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +6 -5
- package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +12 -10
- package/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -2
- package/es/components/color_picker/color_picker.styles.js +5 -3
- package/es/components/color_picker/color_picker_swatch.styles.js +6 -1
- package/es/components/color_picker/hue.styles.js +12 -2
- package/es/components/color_picker/saturation.styles.js +21 -6
- package/es/components/color_picker/utils.js +2 -2
- package/es/components/comment_list/comment_event.js +6 -3
- package/es/components/comment_list/comment_event.styles.js +5 -1
- package/es/components/context_menu/context_menu_item.styles.js +2 -2
- package/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +4 -1
- package/es/components/datagrid/body/footer/data_grid_footer.styles.js +1 -1
- package/es/components/datagrid/body/header/data_grid_header_row.styles.js +1 -1
- package/es/components/datagrid/controls/column_selector.styles.js +3 -1
- package/es/components/datagrid/controls/column_sorting.styles.js +3 -1
- package/es/components/datagrid/data_grid.styles.js +19 -4
- package/es/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/es/components/datagrid/utils/scrolling.styles.js +14 -5
- package/es/components/date_picker/date_picker.styles.js +3 -1
- package/es/components/date_picker/date_picker_range.styles.js +3 -1
- package/es/components/date_picker/react_date_picker.styles.js +79 -22
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +18 -4
- package/es/components/description_list/description_list_title.styles.js +1 -1
- package/es/components/empty_prompt/empty_prompt.styles.js +7 -2
- package/es/components/error_boundary/error_boundary.styles.js +12 -5
- package/es/components/expression/expression.styles.js +7 -3
- package/es/components/filter_group/filter_button.styles.js +7 -5
- package/es/components/filter_group/filter_group.styles.js +5 -1
- package/es/components/filter_group/filter_select_item.styles.js +1 -1
- package/es/components/flyout/_flyout_close_button.styles.js +3 -1
- package/es/components/flyout/flyout.styles.js +3 -1
- package/es/components/flyout/flyout_body.styles.js +5 -1
- package/es/components/flyout/flyout_footer.styles.js +5 -1
- package/es/components/form/file_picker/file_picker.styles.js +1 -1
- package/es/components/form/form.styles.js +69 -26
- package/es/components/form/form_control_layout/form_control_layout.styles.js +7 -2
- package/es/components/form/form_control_layout/form_control_layout_clear_button.js +3 -2
- package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +19 -6
- package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/es/components/form/radio/radio.js +1 -1
- package/es/components/form/range/dual_range.js +2 -2
- package/es/components/form/range/range.styles.js +21 -11
- package/es/components/form/range/range_highlight.styles.js +2 -1
- package/es/components/form/range/range_levels.styles.js +6 -6
- package/es/components/form/range/range_levels_colors.js +2 -1
- package/es/components/form/range/range_slider.js +4 -4
- package/es/components/form/range/range_slider.styles.js +0 -5
- package/es/components/form/range/range_thumb.styles.js +1 -1
- package/es/components/form/range/range_ticks.styles.js +9 -4
- package/es/components/form/range/range_tooltip.styles.js +4 -3
- package/es/components/form/range/range_track.styles.js +6 -1
- package/es/components/form/switch/switch.styles.js +43 -34
- package/es/components/header/header.styles.js +3 -2
- package/es/components/horizontal_rule/horizontal_rule.styles.js +8 -3
- package/es/components/i18n/i18n.js +1 -1
- package/es/components/i18n/i18n_util.js +1 -1
- package/es/components/icon/icon.styles.js +1 -1
- package/es/components/image/image.styles.js +7 -2
- package/es/components/image/image_button.styles.js +6 -2
- package/es/components/inline_edit/inline_edit_form.js +1 -1
- package/es/components/inline_edit/inline_edit_form.styles.js +1 -1
- package/es/components/inline_edit/inline_edit_text.js +1 -1
- package/es/components/inline_edit/inline_edit_title.js +1 -1
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +18 -5
- package/es/components/link/link.styles.js +1 -1
- package/es/components/loading/loading_chart.js +3 -6
- package/es/components/loading/loading_chart.styles.js +13 -28
- package/es/components/loading/loading_spinner.styles.js +18 -9
- package/es/components/mark/mark.styles.js +11 -3
- package/es/components/markdown_editor/markdown_format.styles.js +17 -15
- package/es/components/modal/modal.styles.js +5 -2
- package/es/components/overlay_mask/overlay_mask.styles.js +3 -2
- package/es/components/panel/panel.js +29 -4
- package/es/components/panel/panel.styles.js +33 -8
- package/es/components/panel/split_panel/split_panel.js +20 -5
- package/es/components/panel/split_panel/split_panel.styles.js +29 -9
- package/es/components/popover/popover_arrow/_popover_arrow.styles.js +4 -3
- package/es/components/popover/popover_footer.styles.js +3 -2
- package/es/components/popover/popover_panel/_popover_panel.styles.js +8 -7
- package/es/components/progress/progress.js +2 -2
- package/es/components/progress/progress.styles.js +66 -32
- package/es/components/provider/component_defaults/component_defaults.js +36 -0
- package/es/components/provider/provider.js +16 -16
- package/es/components/provider/{system_color_mode → system_defaults}/index.js +2 -1
- package/es/components/provider/{system_color_mode/system_color_mode_provider.js → system_defaults/match_media_hook.js} +10 -16
- package/es/components/provider/system_defaults/system_defaults_provider.js +30 -0
- package/es/components/resizable_container/resizable_button.styles.js +22 -5
- package/es/components/resizable_container/resizable_panel.styles.js +5 -1
- package/es/components/side_nav/side_nav_item.styles.js +2 -2
- package/es/components/skeleton/skeleton_circle.styles.js +3 -2
- package/es/components/skeleton/skeleton_rectangle.styles.js +3 -2
- package/es/components/skeleton/skeleton_text.styles.js +2 -1
- package/es/components/skeleton/skeleton_title.styles.js +2 -1
- package/es/components/skeleton/utils.js +4 -2
- package/es/components/stat/stat.styles.js +1 -1
- package/es/components/steps/step.styles.js +10 -12
- package/es/components/steps/step_horizontal.js +4 -5
- package/es/components/steps/step_horizontal.styles.js +8 -5
- package/es/components/steps/step_number.js +6 -9
- package/es/components/steps/step_number.styles.js +48 -27
- package/es/components/steps/sub_steps.styles.js +6 -3
- package/es/components/table/table_row.styles.js +11 -4
- package/es/components/table/table_row_cell.styles.js +2 -2
- package/es/components/tabs/tab.styles.js +10 -6
- package/es/components/tabs/tabs.styles.js +5 -1
- package/es/components/text/text.styles.js +16 -4
- package/es/components/text/text_color.styles.js +1 -1
- package/es/components/text_truncate/text_truncate.js +3 -2
- package/es/components/text_truncate/text_truncate.styles.js +36 -38
- package/es/components/timeline/timeline.styles.js +6 -5
- package/es/components/timeline/timeline_item_icon.styles.js +6 -11
- package/es/components/title/title.styles.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/toast/toast.styles.js +42 -8
- package/es/components/token/token.styles.js +23 -17
- package/es/components/tool_tip/tool_tip.styles.js +5 -4
- package/es/components/tour/_tour_header.styles.js +1 -1
- package/es/components/tour/tour.styles.js +1 -1
- package/es/global_styling/functions/high_contrast.js +53 -0
- package/es/global_styling/functions/index.js +1 -0
- package/es/global_styling/mixins/_button.js +22 -4
- package/es/global_styling/mixins/_color.js +4 -0
- package/es/global_styling/mixins/_shadow.js +6 -12
- package/es/global_styling/reset/global_styles.js +1 -1
- package/es/services/copy/copy_to_clipboard.js +2 -3
- package/es/services/popover/popover_arrow.styles.js +8 -4
- package/es/services/popover/popover_positioning.js +2 -2
- package/es/services/theme/context.js +11 -4
- package/es/services/theme/high_contrast_overrides.js +71 -0
- package/es/services/theme/hooks.js +4 -2
- package/es/services/theme/index.js +1 -1
- package/es/services/theme/provider.js +44 -17
- package/es/themes/amsterdam/global_styling/variables/_components.js +342 -317
- package/eui.d.ts +415 -161
- package/lib/components/avatar/avatar.js +15 -2
- package/lib/components/avatar/avatar.styles.js +12 -6
- package/lib/components/badge/beta_badge/beta_badge.styles.js +4 -7
- package/lib/components/badge/notification_badge/badge_notification.styles.js +6 -5
- package/lib/components/beacon/beacon.styles.js +4 -3
- package/lib/components/bottom_bar/bottom_bar.styles.js +4 -1
- package/lib/components/breadcrumbs/_breadcrumb_content.js +2 -0
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +23 -6
- package/lib/components/breadcrumbs/breadcrumb.styles.js +10 -4
- package/lib/components/breadcrumbs/breadcrumbs.styles.js +1 -3
- package/lib/components/button/button_group/button_group.styles.js +19 -3
- package/lib/components/button/button_group/button_group_button.styles.js +8 -6
- package/lib/components/call_out/call_out.styles.js +1 -1
- package/lib/components/card/card.styles.js +2 -5
- package/lib/components/code/code_block.styles.js +7 -2
- package/lib/components/code/code_block_annotations.style.js +10 -3
- package/lib/components/code/code_block_line.styles.js +17 -5
- package/lib/components/code/code_syntax.styles.js +15 -4
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +2 -2
- package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +6 -5
- package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +15 -10
- package/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -2
- package/lib/components/color_picker/color_picker.styles.js +5 -3
- package/lib/components/color_picker/color_picker_swatch.styles.js +6 -1
- package/lib/components/color_picker/hue.styles.js +12 -2
- package/lib/components/color_picker/saturation.styles.js +21 -6
- package/lib/components/color_picker/utils.js +2 -2
- package/lib/components/comment_list/comment_event.js +5 -2
- package/lib/components/comment_list/comment_event.styles.js +5 -1
- package/lib/components/context_menu/context_menu_item.styles.js +2 -2
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +4 -1
- package/lib/components/datagrid/body/footer/data_grid_footer.styles.js +1 -1
- package/lib/components/datagrid/body/header/data_grid_header_row.styles.js +1 -1
- package/lib/components/datagrid/controls/column_selector.styles.js +3 -1
- package/lib/components/datagrid/controls/column_sorting.styles.js +3 -1
- package/lib/components/datagrid/data_grid.styles.js +19 -4
- package/lib/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/lib/components/datagrid/utils/scrolling.styles.js +14 -5
- package/lib/components/date_picker/date_picker.styles.js +3 -1
- package/lib/components/date_picker/date_picker_range.styles.js +3 -1
- package/lib/components/date_picker/react_date_picker.styles.js +80 -27
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +17 -3
- package/lib/components/description_list/description_list_title.styles.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.styles.js +7 -2
- package/lib/components/error_boundary/error_boundary.styles.js +12 -5
- package/lib/components/expression/expression.styles.js +7 -3
- package/lib/components/filter_group/filter_button.styles.js +7 -5
- package/lib/components/filter_group/filter_group.styles.js +5 -1
- package/lib/components/filter_group/filter_select_item.styles.js +1 -1
- package/lib/components/flyout/_flyout_close_button.styles.js +3 -1
- package/lib/components/flyout/flyout.styles.js +3 -1
- package/lib/components/flyout/flyout_body.styles.js +5 -1
- package/lib/components/flyout/flyout_footer.styles.js +5 -1
- package/lib/components/form/file_picker/file_picker.styles.js +1 -1
- package/lib/components/form/form.styles.js +70 -27
- package/lib/components/form/form_control_layout/form_control_layout.styles.js +7 -2
- package/lib/components/form/form_control_layout/form_control_layout_clear_button.js +3 -2
- package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +19 -6
- package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/lib/components/form/radio/radio.js +1 -1
- package/lib/components/form/range/dual_range.js +2 -2
- package/lib/components/form/range/range.styles.js +21 -11
- package/lib/components/form/range/range_highlight.styles.js +2 -1
- package/lib/components/form/range/range_levels.styles.js +6 -6
- package/lib/components/form/range/range_levels_colors.js +2 -1
- package/lib/components/form/range/range_slider.js +3 -3
- package/lib/components/form/range/range_slider.styles.js +1 -6
- package/lib/components/form/range/range_thumb.styles.js +1 -1
- package/lib/components/form/range/range_ticks.styles.js +8 -3
- package/lib/components/form/range/range_tooltip.styles.js +4 -3
- package/lib/components/form/range/range_track.styles.js +6 -1
- package/lib/components/form/switch/switch.styles.js +43 -34
- package/lib/components/header/header.styles.js +3 -2
- package/lib/components/horizontal_rule/horizontal_rule.styles.js +8 -3
- package/lib/components/i18n/i18n.js +1 -1
- package/lib/components/i18n/i18n_util.js +1 -1
- package/lib/components/icon/icon.styles.js +1 -1
- package/lib/components/image/image.styles.js +7 -2
- package/lib/components/image/image_button.styles.js +6 -2
- package/lib/components/inline_edit/inline_edit_form.js +1 -1
- package/lib/components/inline_edit/inline_edit_form.styles.js +1 -1
- package/lib/components/inline_edit/inline_edit_text.js +1 -1
- package/lib/components/inline_edit/inline_edit_title.js +1 -1
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +18 -5
- package/lib/components/link/link.styles.js +1 -1
- package/lib/components/loading/loading_chart.js +3 -6
- package/lib/components/loading/loading_chart.styles.js +13 -28
- package/lib/components/loading/loading_spinner.styles.js +18 -9
- package/lib/components/mark/mark.styles.js +11 -3
- package/lib/components/markdown_editor/markdown_format.styles.js +17 -15
- package/lib/components/modal/modal.styles.js +5 -2
- package/lib/components/overlay_mask/overlay_mask.styles.js +3 -2
- package/lib/components/panel/panel.js +28 -3
- package/lib/components/panel/panel.styles.js +34 -9
- package/lib/components/panel/split_panel/split_panel.js +21 -4
- package/lib/components/panel/split_panel/split_panel.styles.js +29 -9
- package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +4 -3
- package/lib/components/popover/popover_footer.styles.js +3 -2
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +8 -7
- package/lib/components/progress/progress.js +2 -5
- package/lib/components/progress/progress.styles.js +66 -32
- package/lib/components/provider/component_defaults/component_defaults.js +37 -1
- package/lib/components/provider/provider.js +16 -16
- package/lib/components/provider/system_defaults/index.js +19 -0
- package/lib/components/provider/{system_color_mode/system_color_mode_provider.js → system_defaults/match_media_hook.js} +11 -18
- package/lib/components/provider/system_defaults/system_defaults_provider.js +37 -0
- package/lib/components/resizable_container/resizable_button.styles.js +22 -5
- package/lib/components/resizable_container/resizable_panel.styles.js +5 -1
- package/lib/components/side_nav/side_nav_item.styles.js +2 -2
- package/lib/components/skeleton/skeleton_circle.styles.js +3 -2
- package/lib/components/skeleton/skeleton_rectangle.styles.js +3 -2
- package/lib/components/skeleton/skeleton_text.styles.js +2 -1
- package/lib/components/skeleton/skeleton_title.styles.js +2 -1
- package/lib/components/skeleton/utils.js +4 -2
- package/lib/components/stat/stat.styles.js +1 -1
- package/lib/components/steps/step.styles.js +10 -12
- package/lib/components/steps/step_horizontal.js +3 -4
- package/lib/components/steps/step_horizontal.styles.js +7 -4
- package/lib/components/steps/step_number.js +5 -8
- package/lib/components/steps/step_number.styles.js +48 -27
- package/lib/components/steps/sub_steps.styles.js +6 -3
- package/lib/components/table/table_row.styles.js +10 -3
- package/lib/components/table/table_row_cell.styles.js +2 -2
- package/lib/components/tabs/tab.styles.js +10 -6
- package/lib/components/tabs/tabs.styles.js +5 -1
- package/lib/components/text/text.styles.js +16 -4
- package/lib/components/text/text_color.styles.js +1 -1
- package/lib/components/text_truncate/text_truncate.js +4 -3
- package/lib/components/text_truncate/text_truncate.styles.js +36 -38
- package/lib/components/timeline/timeline.styles.js +6 -5
- package/lib/components/timeline/timeline_item_icon.styles.js +6 -11
- package/lib/components/title/title.styles.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/toast/toast.styles.js +41 -7
- package/lib/components/token/token.styles.js +23 -17
- package/lib/components/tool_tip/tool_tip.styles.js +5 -4
- package/lib/components/tour/_tour_header.styles.js +1 -1
- package/lib/components/tour/tour.styles.js +1 -1
- package/lib/global_styling/functions/high_contrast.js +59 -0
- package/lib/global_styling/functions/index.js +11 -0
- package/lib/global_styling/mixins/_button.js +23 -6
- package/lib/global_styling/mixins/_color.js +4 -0
- package/lib/global_styling/mixins/_shadow.js +6 -12
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/lib/services/copy/copy_to_clipboard.js +2 -3
- package/lib/services/popover/popover_arrow.styles.js +8 -4
- package/lib/services/popover/popover_positioning.js +2 -2
- package/lib/services/theme/context.js +12 -5
- package/lib/services/theme/high_contrast_overrides.js +74 -0
- package/lib/services/theme/hooks.js +3 -1
- package/lib/services/theme/index.js +6 -0
- package/lib/services/theme/provider.js +43 -16
- package/lib/themes/amsterdam/global_styling/variables/_components.js +342 -317
- package/optimize/es/components/avatar/avatar.js +16 -3
- package/optimize/es/components/avatar/avatar.styles.js +13 -7
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +5 -8
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +6 -5
- package/optimize/es/components/beacon/beacon.styles.js +4 -3
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +5 -2
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.js +2 -0
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +23 -6
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +10 -4
- package/optimize/es/components/breadcrumbs/breadcrumbs.styles.js +1 -3
- package/optimize/es/components/button/button_group/button_group.styles.js +19 -3
- package/optimize/es/components/button/button_group/button_group_button.styles.js +8 -6
- package/optimize/es/components/call_out/call_out.styles.js +1 -1
- package/optimize/es/components/card/card.styles.js +3 -6
- package/optimize/es/components/code/code_block.styles.js +7 -2
- package/optimize/es/components/code/code_block_annotations.style.js +10 -3
- package/optimize/es/components/code/code_block_line.styles.js +17 -5
- package/optimize/es/components/code/code_syntax.styles.js +14 -3
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +2 -2
- package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +6 -5
- package/optimize/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +12 -10
- package/optimize/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -2
- package/optimize/es/components/color_picker/color_picker.styles.js +5 -3
- package/optimize/es/components/color_picker/color_picker_swatch.styles.js +6 -1
- package/optimize/es/components/color_picker/hue.styles.js +12 -2
- package/optimize/es/components/color_picker/saturation.styles.js +21 -6
- package/optimize/es/components/color_picker/utils.js +2 -2
- package/optimize/es/components/comment_list/comment_event.js +6 -3
- package/optimize/es/components/comment_list/comment_event.styles.js +5 -1
- package/optimize/es/components/context_menu/context_menu_item.styles.js +2 -2
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +4 -1
- package/optimize/es/components/datagrid/body/footer/data_grid_footer.styles.js +1 -1
- package/optimize/es/components/datagrid/body/header/data_grid_header_row.styles.js +1 -1
- package/optimize/es/components/datagrid/controls/column_selector.styles.js +3 -1
- package/optimize/es/components/datagrid/controls/column_sorting.styles.js +3 -1
- package/optimize/es/components/datagrid/data_grid.styles.js +19 -4
- package/optimize/es/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/optimize/es/components/datagrid/utils/scrolling.styles.js +14 -5
- package/optimize/es/components/date_picker/date_picker.styles.js +3 -1
- package/optimize/es/components/date_picker/date_picker_range.styles.js +3 -1
- package/optimize/es/components/date_picker/react_date_picker.styles.js +76 -22
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +18 -4
- package/optimize/es/components/description_list/description_list_title.styles.js +1 -1
- package/optimize/es/components/empty_prompt/empty_prompt.styles.js +7 -2
- package/optimize/es/components/error_boundary/error_boundary.styles.js +12 -5
- package/optimize/es/components/expression/expression.styles.js +7 -3
- package/optimize/es/components/filter_group/filter_button.styles.js +7 -5
- package/optimize/es/components/filter_group/filter_group.styles.js +5 -1
- package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -1
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +3 -1
- package/optimize/es/components/flyout/flyout.styles.js +3 -1
- package/optimize/es/components/flyout/flyout_body.styles.js +5 -1
- package/optimize/es/components/flyout/flyout_footer.styles.js +5 -1
- package/optimize/es/components/form/file_picker/file_picker.styles.js +1 -1
- package/optimize/es/components/form/form.styles.js +69 -26
- package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +7 -2
- package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.js +3 -2
- package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +19 -6
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/optimize/es/components/form/radio/radio.js +1 -1
- package/optimize/es/components/form/range/dual_range.js +2 -2
- package/optimize/es/components/form/range/range.styles.js +21 -11
- package/optimize/es/components/form/range/range_highlight.styles.js +2 -1
- package/optimize/es/components/form/range/range_levels.styles.js +6 -6
- package/optimize/es/components/form/range/range_levels_colors.js +2 -1
- package/optimize/es/components/form/range/range_slider.js +4 -4
- package/optimize/es/components/form/range/range_slider.styles.js +0 -5
- package/optimize/es/components/form/range/range_thumb.styles.js +1 -1
- package/optimize/es/components/form/range/range_ticks.styles.js +9 -4
- package/optimize/es/components/form/range/range_tooltip.styles.js +4 -3
- package/optimize/es/components/form/range/range_track.styles.js +6 -1
- package/optimize/es/components/form/switch/switch.styles.js +43 -34
- package/optimize/es/components/header/header.styles.js +3 -2
- package/optimize/es/components/horizontal_rule/horizontal_rule.styles.js +8 -3
- package/optimize/es/components/i18n/i18n.js +1 -1
- package/optimize/es/components/i18n/i18n_util.js +1 -1
- package/optimize/es/components/icon/icon.styles.js +1 -1
- package/optimize/es/components/image/image.styles.js +7 -2
- package/optimize/es/components/image/image_button.styles.js +6 -2
- package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -1
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +18 -5
- package/optimize/es/components/link/link.styles.js +1 -1
- package/optimize/es/components/loading/loading_chart.js +2 -4
- package/optimize/es/components/loading/loading_chart.styles.js +13 -23
- package/optimize/es/components/loading/loading_spinner.styles.js +18 -9
- package/optimize/es/components/mark/mark.styles.js +11 -3
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +17 -15
- package/optimize/es/components/modal/modal.styles.js +5 -2
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +3 -2
- package/optimize/es/components/panel/panel.js +24 -4
- package/optimize/es/components/panel/panel.styles.js +33 -8
- package/optimize/es/components/panel/split_panel/split_panel.js +17 -5
- package/optimize/es/components/panel/split_panel/split_panel.styles.js +29 -9
- package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +4 -3
- package/optimize/es/components/popover/popover_footer.styles.js +3 -2
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +8 -7
- package/optimize/es/components/progress/progress.js +2 -2
- package/optimize/es/components/progress/progress.styles.js +66 -32
- package/optimize/es/components/provider/component_defaults/component_defaults.js +13 -0
- package/optimize/es/components/provider/provider.js +16 -16
- package/optimize/es/components/provider/{system_color_mode → system_defaults}/index.js +2 -1
- package/optimize/es/components/provider/{system_color_mode/system_color_mode_provider.js → system_defaults/match_media_hook.js} +10 -12
- package/optimize/es/components/provider/system_defaults/system_defaults_provider.js +30 -0
- package/optimize/es/components/resizable_container/resizable_button.styles.js +22 -5
- package/optimize/es/components/resizable_container/resizable_panel.styles.js +5 -1
- package/optimize/es/components/side_nav/side_nav_item.styles.js +2 -2
- package/optimize/es/components/skeleton/skeleton_circle.styles.js +3 -2
- package/optimize/es/components/skeleton/skeleton_rectangle.styles.js +3 -2
- package/optimize/es/components/skeleton/skeleton_text.styles.js +2 -1
- package/optimize/es/components/skeleton/skeleton_title.styles.js +2 -1
- package/optimize/es/components/skeleton/utils.js +4 -2
- package/optimize/es/components/stat/stat.styles.js +1 -1
- package/optimize/es/components/steps/step.styles.js +10 -12
- package/optimize/es/components/steps/step_horizontal.js +4 -5
- package/optimize/es/components/steps/step_horizontal.styles.js +8 -5
- package/optimize/es/components/steps/step_number.js +6 -9
- package/optimize/es/components/steps/step_number.styles.js +45 -27
- package/optimize/es/components/steps/sub_steps.styles.js +6 -3
- package/optimize/es/components/table/table_row.styles.js +11 -4
- package/optimize/es/components/table/table_row_cell.styles.js +2 -2
- package/optimize/es/components/tabs/tab.styles.js +10 -6
- package/optimize/es/components/tabs/tabs.styles.js +5 -1
- package/optimize/es/components/text/text.styles.js +16 -4
- package/optimize/es/components/text/text_color.styles.js +1 -1
- package/optimize/es/components/text_truncate/text_truncate.js +3 -2
- package/optimize/es/components/text_truncate/text_truncate.styles.js +36 -38
- package/optimize/es/components/timeline/timeline.styles.js +6 -5
- package/optimize/es/components/timeline/timeline_item_icon.styles.js +6 -11
- package/optimize/es/components/title/title.styles.js +1 -1
- package/optimize/es/components/toast/toast.js +1 -1
- package/optimize/es/components/toast/toast.styles.js +42 -8
- package/optimize/es/components/token/token.styles.js +23 -17
- package/optimize/es/components/tool_tip/tool_tip.styles.js +5 -4
- package/optimize/es/components/tour/_tour_header.styles.js +1 -1
- package/optimize/es/components/tour/tour.styles.js +1 -1
- package/optimize/es/global_styling/functions/high_contrast.js +53 -0
- package/optimize/es/global_styling/functions/index.js +1 -0
- package/optimize/es/global_styling/mixins/_button.js +19 -4
- package/optimize/es/global_styling/mixins/_color.js +4 -0
- package/optimize/es/global_styling/mixins/_shadow.js +6 -12
- package/optimize/es/global_styling/reset/global_styles.js +1 -1
- package/optimize/es/services/copy/copy_to_clipboard.js +2 -3
- package/optimize/es/services/popover/popover_arrow.styles.js +8 -4
- package/optimize/es/services/popover/popover_positioning.js +2 -2
- package/optimize/es/services/theme/context.js +11 -4
- package/optimize/es/services/theme/high_contrast_overrides.js +68 -0
- package/optimize/es/services/theme/hooks.js +4 -2
- package/optimize/es/services/theme/index.js +1 -1
- package/optimize/es/services/theme/provider.js +44 -17
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +342 -317
- package/optimize/lib/components/avatar/avatar.js +15 -2
- package/optimize/lib/components/avatar/avatar.styles.js +12 -6
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +4 -7
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +6 -5
- package/optimize/lib/components/beacon/beacon.styles.js +4 -3
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +4 -1
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.js +2 -0
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +23 -6
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +10 -4
- package/optimize/lib/components/breadcrumbs/breadcrumbs.styles.js +1 -3
- package/optimize/lib/components/button/button_group/button_group.styles.js +19 -3
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +8 -6
- package/optimize/lib/components/call_out/call_out.styles.js +1 -1
- package/optimize/lib/components/card/card.styles.js +2 -5
- package/optimize/lib/components/code/code_block.styles.js +7 -2
- package/optimize/lib/components/code/code_block_annotations.style.js +10 -3
- package/optimize/lib/components/code/code_block_line.styles.js +17 -5
- package/optimize/lib/components/code/code_syntax.styles.js +15 -4
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +2 -2
- package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +6 -5
- package/optimize/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +15 -10
- package/optimize/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -2
- package/optimize/lib/components/color_picker/color_picker.styles.js +5 -3
- package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +6 -1
- package/optimize/lib/components/color_picker/hue.styles.js +12 -2
- package/optimize/lib/components/color_picker/saturation.styles.js +21 -6
- package/optimize/lib/components/color_picker/utils.js +2 -2
- package/optimize/lib/components/comment_list/comment_event.js +5 -2
- package/optimize/lib/components/comment_list/comment_event.styles.js +5 -1
- package/optimize/lib/components/context_menu/context_menu_item.styles.js +2 -2
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +4 -1
- package/optimize/lib/components/datagrid/body/footer/data_grid_footer.styles.js +1 -1
- package/optimize/lib/components/datagrid/body/header/data_grid_header_row.styles.js +1 -1
- package/optimize/lib/components/datagrid/controls/column_selector.styles.js +3 -1
- package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +3 -1
- package/optimize/lib/components/datagrid/data_grid.styles.js +19 -4
- package/optimize/lib/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/optimize/lib/components/datagrid/utils/scrolling.styles.js +14 -5
- package/optimize/lib/components/date_picker/date_picker.styles.js +3 -1
- package/optimize/lib/components/date_picker/date_picker_range.styles.js +3 -1
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +78 -27
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +17 -3
- package/optimize/lib/components/description_list/description_list_title.styles.js +1 -1
- package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +7 -2
- package/optimize/lib/components/error_boundary/error_boundary.styles.js +12 -5
- package/optimize/lib/components/expression/expression.styles.js +7 -3
- package/optimize/lib/components/filter_group/filter_button.styles.js +7 -5
- package/optimize/lib/components/filter_group/filter_group.styles.js +5 -1
- package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -1
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +3 -1
- package/optimize/lib/components/flyout/flyout.styles.js +3 -1
- package/optimize/lib/components/flyout/flyout_body.styles.js +5 -1
- package/optimize/lib/components/flyout/flyout_footer.styles.js +5 -1
- package/optimize/lib/components/form/file_picker/file_picker.styles.js +1 -1
- package/optimize/lib/components/form/form.styles.js +70 -27
- package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +7 -2
- package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.js +3 -2
- package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +19 -6
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/optimize/lib/components/form/radio/radio.js +1 -1
- package/optimize/lib/components/form/range/dual_range.js +2 -2
- package/optimize/lib/components/form/range/range.styles.js +21 -11
- package/optimize/lib/components/form/range/range_highlight.styles.js +2 -1
- package/optimize/lib/components/form/range/range_levels.styles.js +6 -6
- package/optimize/lib/components/form/range/range_levels_colors.js +2 -1
- package/optimize/lib/components/form/range/range_slider.js +3 -3
- package/optimize/lib/components/form/range/range_slider.styles.js +1 -6
- package/optimize/lib/components/form/range/range_thumb.styles.js +1 -1
- package/optimize/lib/components/form/range/range_ticks.styles.js +8 -3
- package/optimize/lib/components/form/range/range_tooltip.styles.js +4 -3
- package/optimize/lib/components/form/range/range_track.styles.js +6 -1
- package/optimize/lib/components/form/switch/switch.styles.js +43 -34
- package/optimize/lib/components/header/header.styles.js +3 -2
- package/optimize/lib/components/horizontal_rule/horizontal_rule.styles.js +8 -3
- package/optimize/lib/components/i18n/i18n.js +1 -1
- package/optimize/lib/components/i18n/i18n_util.js +1 -1
- package/optimize/lib/components/icon/icon.styles.js +1 -1
- package/optimize/lib/components/image/image.styles.js +7 -2
- package/optimize/lib/components/image/image_button.styles.js +6 -2
- package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -1
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +18 -5
- package/optimize/lib/components/link/link.styles.js +1 -1
- package/optimize/lib/components/loading/loading_chart.js +2 -4
- package/optimize/lib/components/loading/loading_chart.styles.js +13 -23
- package/optimize/lib/components/loading/loading_spinner.styles.js +18 -9
- package/optimize/lib/components/mark/mark.styles.js +11 -3
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +17 -15
- package/optimize/lib/components/modal/modal.styles.js +5 -2
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +3 -2
- package/optimize/lib/components/panel/panel.js +23 -3
- package/optimize/lib/components/panel/panel.styles.js +34 -9
- package/optimize/lib/components/panel/split_panel/split_panel.js +19 -4
- package/optimize/lib/components/panel/split_panel/split_panel.styles.js +29 -9
- package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +4 -3
- package/optimize/lib/components/popover/popover_footer.styles.js +3 -2
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +8 -7
- package/optimize/lib/components/progress/progress.js +2 -5
- package/optimize/lib/components/progress/progress.styles.js +66 -32
- package/optimize/lib/components/provider/component_defaults/component_defaults.js +14 -1
- package/optimize/lib/components/provider/provider.js +16 -16
- package/optimize/lib/components/provider/system_defaults/index.js +19 -0
- package/optimize/lib/components/provider/{system_color_mode/system_color_mode_provider.js → system_defaults/match_media_hook.js} +11 -13
- package/optimize/lib/components/provider/system_defaults/system_defaults_provider.js +37 -0
- package/optimize/lib/components/resizable_container/resizable_button.styles.js +22 -5
- package/optimize/lib/components/resizable_container/resizable_panel.styles.js +5 -1
- package/optimize/lib/components/side_nav/side_nav_item.styles.js +2 -2
- package/optimize/lib/components/skeleton/skeleton_circle.styles.js +3 -2
- package/optimize/lib/components/skeleton/skeleton_rectangle.styles.js +3 -2
- package/optimize/lib/components/skeleton/skeleton_text.styles.js +2 -1
- package/optimize/lib/components/skeleton/skeleton_title.styles.js +2 -1
- package/optimize/lib/components/skeleton/utils.js +4 -2
- package/optimize/lib/components/stat/stat.styles.js +1 -1
- package/optimize/lib/components/steps/step.styles.js +10 -12
- package/optimize/lib/components/steps/step_horizontal.js +3 -4
- package/optimize/lib/components/steps/step_horizontal.styles.js +7 -4
- package/optimize/lib/components/steps/step_number.js +5 -8
- package/optimize/lib/components/steps/step_number.styles.js +46 -27
- package/optimize/lib/components/steps/sub_steps.styles.js +6 -3
- package/optimize/lib/components/table/table_row.styles.js +10 -3
- package/optimize/lib/components/table/table_row_cell.styles.js +2 -2
- package/optimize/lib/components/tabs/tab.styles.js +10 -6
- package/optimize/lib/components/tabs/tabs.styles.js +5 -1
- package/optimize/lib/components/text/text.styles.js +16 -4
- package/optimize/lib/components/text/text_color.styles.js +1 -1
- package/optimize/lib/components/text_truncate/text_truncate.js +4 -3
- package/optimize/lib/components/text_truncate/text_truncate.styles.js +36 -38
- package/optimize/lib/components/timeline/timeline.styles.js +6 -5
- package/optimize/lib/components/timeline/timeline_item_icon.styles.js +6 -11
- package/optimize/lib/components/title/title.styles.js +1 -1
- package/optimize/lib/components/toast/toast.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +41 -7
- package/optimize/lib/components/token/token.styles.js +23 -17
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +5 -4
- package/optimize/lib/components/tour/_tour_header.styles.js +1 -1
- package/optimize/lib/components/tour/tour.styles.js +1 -1
- package/optimize/lib/global_styling/functions/high_contrast.js +59 -0
- package/optimize/lib/global_styling/functions/index.js +11 -0
- package/optimize/lib/global_styling/mixins/_button.js +19 -5
- package/optimize/lib/global_styling/mixins/_color.js +4 -0
- package/optimize/lib/global_styling/mixins/_shadow.js +6 -12
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/services/copy/copy_to_clipboard.js +2 -3
- package/optimize/lib/services/popover/popover_arrow.styles.js +8 -4
- package/optimize/lib/services/popover/popover_positioning.js +2 -2
- package/optimize/lib/services/theme/context.js +12 -5
- package/optimize/lib/services/theme/high_contrast_overrides.js +72 -0
- package/optimize/lib/services/theme/hooks.js +3 -1
- package/optimize/lib/services/theme/index.js +6 -0
- package/optimize/lib/services/theme/provider.js +43 -16
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +342 -317
- package/package.json +3 -2
- package/test-env/components/avatar/avatar.js +15 -2
- package/test-env/components/avatar/avatar.styles.js +12 -6
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +4 -7
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +6 -5
- package/test-env/components/beacon/beacon.styles.js +4 -3
- package/test-env/components/bottom_bar/bottom_bar.styles.js +4 -1
- package/test-env/components/breadcrumbs/_breadcrumb_content.js +2 -0
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +23 -6
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +10 -4
- package/test-env/components/breadcrumbs/breadcrumbs.styles.js +1 -3
- package/test-env/components/button/button_group/button_group.styles.js +19 -3
- package/test-env/components/button/button_group/button_group_button.styles.js +8 -6
- package/test-env/components/call_out/call_out.styles.js +1 -1
- package/test-env/components/card/card.styles.js +2 -5
- package/test-env/components/code/code_block.styles.js +7 -2
- package/test-env/components/code/code_block_annotations.style.js +10 -3
- package/test-env/components/code/code_block_line.styles.js +17 -5
- package/test-env/components/code/code_syntax.styles.js +15 -4
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +2 -2
- package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +6 -5
- package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +15 -10
- package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js +1 -2
- package/test-env/components/color_picker/color_picker.styles.js +5 -3
- package/test-env/components/color_picker/color_picker_swatch.styles.js +6 -1
- package/test-env/components/color_picker/hue.styles.js +12 -2
- package/test-env/components/color_picker/saturation.styles.js +21 -6
- package/test-env/components/color_picker/utils.js +2 -2
- package/test-env/components/comment_list/comment_event.js +5 -2
- package/test-env/components/comment_list/comment_event.styles.js +5 -1
- package/test-env/components/context_menu/context_menu_item.styles.js +2 -2
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.styles.js +4 -1
- package/test-env/components/datagrid/body/footer/data_grid_footer.styles.js +1 -1
- package/test-env/components/datagrid/body/header/data_grid_header_row.styles.js +1 -1
- package/test-env/components/datagrid/controls/column_selector.styles.js +3 -1
- package/test-env/components/datagrid/controls/column_sorting.styles.js +3 -1
- package/test-env/components/datagrid/data_grid.styles.js +19 -4
- package/test-env/components/datagrid/pagination/data_grid_pagination.styles.js +1 -1
- package/test-env/components/datagrid/utils/scrolling.styles.js +14 -5
- package/test-env/components/date_picker/date_picker.styles.js +3 -1
- package/test-env/components/date_picker/date_picker_range.styles.js +3 -1
- package/test-env/components/date_picker/react_date_picker.styles.js +78 -27
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +17 -3
- package/test-env/components/description_list/description_list_title.styles.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.styles.js +7 -2
- package/test-env/components/error_boundary/error_boundary.styles.js +12 -5
- package/test-env/components/expression/expression.styles.js +7 -3
- package/test-env/components/filter_group/filter_button.styles.js +7 -5
- package/test-env/components/filter_group/filter_group.styles.js +5 -1
- package/test-env/components/filter_group/filter_select_item.styles.js +1 -1
- package/test-env/components/flyout/_flyout_close_button.styles.js +3 -1
- package/test-env/components/flyout/flyout.styles.js +3 -1
- package/test-env/components/flyout/flyout_body.styles.js +5 -1
- package/test-env/components/flyout/flyout_footer.styles.js +5 -1
- package/test-env/components/form/file_picker/file_picker.styles.js +1 -1
- package/test-env/components/form/form.styles.js +70 -27
- package/test-env/components/form/form_control_layout/form_control_layout.styles.js +7 -2
- package/test-env/components/form/form_control_layout/form_control_layout_clear_button.js +3 -2
- package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +19 -6
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +1 -1
- package/test-env/components/form/radio/radio.js +1 -1
- package/test-env/components/form/range/dual_range.js +2 -2
- package/test-env/components/form/range/range.styles.js +21 -11
- package/test-env/components/form/range/range_highlight.styles.js +2 -1
- package/test-env/components/form/range/range_levels.styles.js +6 -6
- package/test-env/components/form/range/range_levels_colors.js +2 -1
- package/test-env/components/form/range/range_slider.js +3 -3
- package/test-env/components/form/range/range_slider.styles.js +1 -6
- package/test-env/components/form/range/range_thumb.styles.js +1 -1
- package/test-env/components/form/range/range_ticks.styles.js +8 -3
- package/test-env/components/form/range/range_tooltip.styles.js +4 -3
- package/test-env/components/form/range/range_track.styles.js +6 -1
- package/test-env/components/form/switch/switch.styles.js +43 -34
- package/test-env/components/header/header.styles.js +3 -2
- package/test-env/components/horizontal_rule/horizontal_rule.styles.js +8 -3
- package/test-env/components/i18n/i18n.js +1 -1
- package/test-env/components/i18n/i18n_util.js +1 -1
- package/test-env/components/icon/icon.styles.js +1 -1
- package/test-env/components/image/image.styles.js +7 -2
- package/test-env/components/image/image_button.styles.js +6 -2
- package/test-env/components/inline_edit/inline_edit_form.js +1 -1
- package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -1
- package/test-env/components/inline_edit/inline_edit_text.js +1 -1
- package/test-env/components/inline_edit/inline_edit_title.js +1 -1
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +18 -5
- package/test-env/components/link/link.styles.js +1 -1
- package/test-env/components/loading/loading_chart.js +3 -6
- package/test-env/components/loading/loading_chart.styles.js +13 -23
- package/test-env/components/loading/loading_spinner.styles.js +18 -9
- package/test-env/components/mark/mark.styles.js +11 -3
- package/test-env/components/markdown_editor/markdown_format.styles.js +17 -15
- package/test-env/components/modal/modal.styles.js +5 -2
- package/test-env/components/overlay_mask/overlay_mask.styles.js +3 -2
- package/test-env/components/panel/panel.js +23 -3
- package/test-env/components/panel/panel.styles.js +34 -9
- package/test-env/components/panel/split_panel/split_panel.js +19 -4
- package/test-env/components/panel/split_panel/split_panel.styles.js +29 -9
- package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +4 -3
- package/test-env/components/popover/popover_footer.styles.js +3 -2
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +8 -7
- package/test-env/components/progress/progress.js +2 -5
- package/test-env/components/progress/progress.styles.js +66 -32
- package/test-env/components/provider/component_defaults/component_defaults.js +37 -1
- package/test-env/components/provider/provider.js +16 -16
- package/test-env/components/provider/system_defaults/index.js +19 -0
- package/test-env/components/provider/{system_color_mode/system_color_mode_provider.js → system_defaults/match_media_hook.js} +11 -17
- package/test-env/components/provider/system_defaults/system_defaults_provider.js +37 -0
- package/test-env/components/resizable_container/resizable_button.styles.js +22 -5
- package/test-env/components/resizable_container/resizable_panel.styles.js +5 -1
- package/test-env/components/side_nav/side_nav_item.styles.js +2 -2
- package/test-env/components/skeleton/skeleton_circle.styles.js +3 -2
- package/test-env/components/skeleton/skeleton_rectangle.styles.js +3 -2
- package/test-env/components/skeleton/skeleton_text.styles.js +2 -1
- package/test-env/components/skeleton/skeleton_title.styles.js +2 -1
- package/test-env/components/skeleton/utils.js +4 -2
- package/test-env/components/stat/stat.styles.js +1 -1
- package/test-env/components/steps/step.styles.js +10 -12
- package/test-env/components/steps/step_horizontal.js +3 -4
- package/test-env/components/steps/step_horizontal.styles.js +7 -4
- package/test-env/components/steps/step_number.js +5 -8
- package/test-env/components/steps/step_number.styles.js +46 -27
- package/test-env/components/steps/sub_steps.styles.js +6 -3
- package/test-env/components/table/table_row.styles.js +10 -3
- package/test-env/components/table/table_row_cell.styles.js +2 -2
- package/test-env/components/tabs/tab.styles.js +10 -6
- package/test-env/components/tabs/tabs.styles.js +5 -1
- package/test-env/components/text/text.styles.js +16 -4
- package/test-env/components/text/text_color.styles.js +1 -1
- package/test-env/components/text_truncate/text_truncate.js +4 -3
- package/test-env/components/text_truncate/text_truncate.styles.js +36 -38
- package/test-env/components/timeline/timeline.styles.js +6 -5
- package/test-env/components/timeline/timeline_item_icon.styles.js +6 -11
- package/test-env/components/title/title.styles.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/toast/toast.styles.js +41 -7
- package/test-env/components/token/token.styles.js +23 -17
- package/test-env/components/tool_tip/tool_tip.styles.js +5 -4
- package/test-env/components/tour/_tour_header.styles.js +1 -1
- package/test-env/components/tour/tour.styles.js +1 -1
- package/test-env/global_styling/functions/high_contrast.js +59 -0
- package/test-env/global_styling/functions/index.js +11 -0
- package/test-env/global_styling/mixins/_button.js +19 -5
- package/test-env/global_styling/mixins/_color.js +4 -0
- package/test-env/global_styling/mixins/_shadow.js +6 -12
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/test-env/services/copy/copy_to_clipboard.js +2 -3
- package/test-env/services/popover/popover_arrow.styles.js +8 -4
- package/test-env/services/popover/popover_positioning.js +2 -2
- package/test-env/services/theme/context.js +12 -5
- package/test-env/services/theme/high_contrast_overrides.js +72 -0
- package/test-env/services/theme/hooks.js +3 -1
- package/test-env/services/theme/index.js +6 -0
- package/test-env/services/theme/provider.js +43 -16
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +342 -317
- package/lib/components/provider/system_color_mode/index.js +0 -12
- package/optimize/lib/components/provider/system_color_mode/index.js +0 -12
- package/test-env/components/provider/system_color_mode/index.js +0 -12
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiSwitchStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../../global_styling");
|
|
9
|
+
var _high_contrast = require("../../../global_styling/functions/high_contrast");
|
|
9
10
|
var _form = require("../form.styles");
|
|
10
11
|
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)."; } /*
|
|
11
12
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -15,17 +16,18 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
15
16
|
* Side Public License, v 1.
|
|
16
17
|
*/
|
|
17
18
|
var euiSwitchVars = function euiSwitchVars(euiThemeContext) {
|
|
18
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
19
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
20
|
+
highContrastMode = euiThemeContext.highContrastMode;
|
|
19
21
|
var formVars = (0, _form.euiFormCustomControlVariables)(euiThemeContext);
|
|
20
22
|
var colors = {
|
|
21
23
|
on: euiTheme.components.switchBackgroundOn,
|
|
22
|
-
off: euiTheme.components.switchBackgroundOff,
|
|
24
|
+
off: highContrastMode ? euiTheme.colors.darkShade : euiTheme.components.switchBackgroundOff,
|
|
23
25
|
disabled: formVars.colors.disabled,
|
|
24
26
|
thumb: formVars.colors.selectedIcon,
|
|
25
27
|
thumbDisabled: euiTheme.components.switchThumbBackgroundDisabled,
|
|
26
|
-
thumbBorder: euiTheme.components.switchThumbBorderOff,
|
|
27
|
-
thumbBorderOn: euiTheme.components.switchThumbBorderOn,
|
|
28
|
-
thumbBorderDisabled: formVars.colors.disabledBorder,
|
|
28
|
+
thumbBorder: highContrastMode ? euiTheme.border.color : euiTheme.components.switchThumbBorderOff,
|
|
29
|
+
thumbBorderOn: highContrastMode ? euiTheme.border.color : euiTheme.components.switchThumbBorderOn,
|
|
30
|
+
thumbBorderDisabled: highContrastMode ? euiTheme.colors.borderBaseDisabled : formVars.colors.disabledBorder,
|
|
29
31
|
iconDisabled: euiTheme.components.switchIconDisabled
|
|
30
32
|
};
|
|
31
33
|
var sizes = {
|
|
@@ -84,7 +86,7 @@ var euiSwitchVars = function euiSwitchVars(euiThemeContext) {
|
|
|
84
86
|
label: label
|
|
85
87
|
};
|
|
86
88
|
};
|
|
87
|
-
var
|
|
89
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
88
90
|
name: "b86pnw-disabled",
|
|
89
91
|
styles: "cursor:not-allowed;label:disabled;"
|
|
90
92
|
} : {
|
|
@@ -92,7 +94,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
92
94
|
styles: "cursor:not-allowed;label:disabled;",
|
|
93
95
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
94
96
|
};
|
|
95
|
-
var
|
|
97
|
+
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
96
98
|
name: "eg68pp-euiSwitch",
|
|
97
99
|
styles: "position:relative;display:inline-flex;align-items:flex-start;/* Required for inline-flex CSS to not render an extra 2-3px of strut height\n * @see https://stackoverflow.com/a/27536461/4294462 */vertical-align:middle;label:euiSwitch;"
|
|
98
100
|
} : {
|
|
@@ -103,10 +105,10 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
103
105
|
var euiSwitchStyles = exports.euiSwitchStyles = function euiSwitchStyles(euiThemeContext) {
|
|
104
106
|
var switchVars = euiSwitchVars(euiThemeContext);
|
|
105
107
|
return {
|
|
106
|
-
euiSwitch:
|
|
108
|
+
euiSwitch: _ref2,
|
|
107
109
|
// Skip css`` to avoid generating an extra Emotion className
|
|
108
110
|
enabled: "\n cursor: pointer;\n ",
|
|
109
|
-
disabled:
|
|
111
|
+
disabled: _ref,
|
|
110
112
|
button: buttonStyles(euiThemeContext, switchVars),
|
|
111
113
|
// The track body must be separate from the button wrapper, because the
|
|
112
114
|
// icons have their overflow hidden outside the button, but the thumb doesn't
|
|
@@ -129,32 +131,39 @@ var buttonStyles = function buttonStyles(euiThemeContext, switchVars) {
|
|
|
129
131
|
mini: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(mini.width, mini.height), " border-radius:", mini.height, ";;label:mini;")
|
|
130
132
|
};
|
|
131
133
|
};
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
|
|
134
|
+
var bodyStyles = function bodyStyles(euiThemeContext, _ref3) {
|
|
135
|
+
var colors = _ref3.colors;
|
|
136
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
137
|
+
|
|
138
|
+
// This is probably very extra, but the visual weight of the default
|
|
139
|
+
// disabled custom control feels different in light mode depending
|
|
140
|
+
// on the size of the switch, so I'm tinting it based on that.
|
|
141
|
+
// Gotta justify my stupidly expensive art degree!
|
|
142
|
+
var _disabledStyles = function _disabledStyles(color) {
|
|
143
|
+
return /*#__PURE__*/(0, _react.css)("label:disabled;background-color:", color, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
144
|
+
preferred: "border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBaseDisabled, ";")
|
|
145
|
+
}), ";");
|
|
146
|
+
};
|
|
143
147
|
return {
|
|
144
|
-
euiSwitch__body:
|
|
145
|
-
|
|
148
|
+
euiSwitch__body: /*#__PURE__*/(0, _react.css)("position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
149
|
+
forced: "border: ".concat(euiTheme.border.thin, ";")
|
|
150
|
+
}), ";;label:euiSwitch__body;"),
|
|
151
|
+
on: /*#__PURE__*/(0, _react.css)((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
152
|
+
none: "\n background-color: ".concat(colors.on, ";\n "),
|
|
153
|
+
forced: "\n background-color: ".concat(euiTheme.border.color, ";\n ").concat((0, _high_contrast.preventForcedColors)(euiThemeContext), "\n ")
|
|
154
|
+
}), ";label:on;"),
|
|
146
155
|
off: /*#__PURE__*/(0, _react.css)("background-color:", colors.off, ";;label:off;"),
|
|
147
156
|
disabled: {
|
|
148
|
-
uncompressed:
|
|
149
|
-
compressed:
|
|
150
|
-
mini:
|
|
157
|
+
uncompressed: _disabledStyles(euiTheme.components.switchUncompressedBackgroundDisabled),
|
|
158
|
+
compressed: _disabledStyles(euiTheme.components.switchCompressedBackgroundDisabled),
|
|
159
|
+
mini: _disabledStyles(euiTheme.components.switchMiniBackgroundDisabled)
|
|
151
160
|
}
|
|
152
161
|
};
|
|
153
162
|
};
|
|
154
|
-
var iconStyles = function iconStyles(
|
|
155
|
-
var euiTheme =
|
|
156
|
-
var colors =
|
|
157
|
-
animation =
|
|
163
|
+
var iconStyles = function iconStyles(_ref4, _ref5) {
|
|
164
|
+
var euiTheme = _ref4.euiTheme;
|
|
165
|
+
var colors = _ref5.colors,
|
|
166
|
+
animation = _ref5.animation;
|
|
158
167
|
return {
|
|
159
168
|
euiSwitch__icons: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('left', '-50%'), " ", (0, _global_styling.logicalCSS)('width', '200%'), " display:flex;justify-content:space-around;align-items:center;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), " ", _global_styling.euiCanAnimate, "{transition-property:inset-inline-start;transition-duration:", animation.speed, ";transition-timing-function:", animation.easing, ";};label:euiSwitch__icons;"),
|
|
160
169
|
on: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', '-25%'), ";;label:on;"),
|
|
@@ -163,8 +172,8 @@ var iconStyles = function iconStyles(_ref6, _ref7) {
|
|
|
163
172
|
disabled: /*#__PURE__*/(0, _react.css)("color:", colors.iconDisabled, ";;label:disabled;")
|
|
164
173
|
};
|
|
165
174
|
};
|
|
166
|
-
var thumbStyles = function thumbStyles(
|
|
167
|
-
var euiTheme =
|
|
175
|
+
var thumbStyles = function thumbStyles(_ref6, switchVars) {
|
|
176
|
+
var euiTheme = _ref6.euiTheme;
|
|
168
177
|
var sizes = switchVars.sizes,
|
|
169
178
|
colors = switchVars.colors,
|
|
170
179
|
animation = switchVars.animation;
|
|
@@ -210,9 +219,9 @@ var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
|
210
219
|
}
|
|
211
220
|
};
|
|
212
221
|
};
|
|
213
|
-
var labelStyles = function labelStyles(euiThemeContext,
|
|
214
|
-
var sizes =
|
|
215
|
-
label =
|
|
222
|
+
var labelStyles = function labelStyles(euiThemeContext, _ref7) {
|
|
223
|
+
var sizes = _ref7.sizes,
|
|
224
|
+
label = _ref7.label;
|
|
216
225
|
var uncompressed = sizes.uncompressed,
|
|
217
226
|
compressed = sizes.compressed,
|
|
218
227
|
mini = sizes.mini;
|
|
@@ -52,7 +52,8 @@ var euiHeaderStyles = exports.euiHeaderStyles = function euiHeaderStyles(euiThem
|
|
|
52
52
|
*/
|
|
53
53
|
|
|
54
54
|
var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
|
|
55
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
55
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
56
|
+
highContrastMode = euiThemeContext.highContrastMode;
|
|
56
57
|
var _euiFormVariables = (0, _form.euiFormVariables)(euiThemeContext),
|
|
57
58
|
controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
|
|
58
59
|
var backgroundColor = euiTheme.components.headerDarkBackground;
|
|
@@ -63,5 +64,5 @@ var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
|
|
|
63
64
|
borderColor: euiTheme.components.headerDarkSearchBorderColor,
|
|
64
65
|
placeholderColor: (0, _services.makeHighContrastColor)(controlPlaceholderText, 8)(backgroundColor)
|
|
65
66
|
};
|
|
66
|
-
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((0, _services.makeHighContrastColor)(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(euiTheme.components.headerDarkSectionItemBackgroundFocus, ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n input {\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(selectableSitewide.borderColor, ";\n }\n\n &--group {\n border-color: ").concat(euiTheme.components.headerDarkSearchBorderColor, ";\n\n input {\n box-shadow: none;\n }\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(selectableSitewide.color, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat(selectableSitewide.placeholderColor, ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append,\n .euiFormControlLayout__prepend {\n background-color: transparent;\n }\n\n .euiFormLabel {\n color: inherit;\n }\n }\n }\n ");
|
|
67
|
+
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((0, _services.makeHighContrastColor)(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(euiTheme.components.headerDarkSectionItemBackgroundFocus, ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n input {\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(selectableSitewide.borderColor, ";\n }\n\n &--group {\n border-color: ").concat(highContrastMode ? euiTheme.border.color : euiTheme.components.headerDarkSearchBorderColor, ";\n\n input {\n box-shadow: none;\n }\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(selectableSitewide.color, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat(selectableSitewide.placeholderColor, ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append,\n .euiFormControlLayout__prepend {\n background-color: transparent;\n }\n\n .euiFormLabel {\n color: inherit;\n }\n }\n }\n ");
|
|
67
68
|
};
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiHorizontalRuleStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
+
var _high_contrast = require("../../global_styling/functions/high_contrast");
|
|
9
10
|
/*
|
|
10
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -14,10 +15,14 @@ var _global_styling = require("../../global_styling");
|
|
|
14
15
|
* Side Public License, v 1.
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
|
-
var euiHorizontalRuleStyles = exports.euiHorizontalRuleStyles = function euiHorizontalRuleStyles(
|
|
18
|
-
var euiTheme =
|
|
18
|
+
var euiHorizontalRuleStyles = exports.euiHorizontalRuleStyles = function euiHorizontalRuleStyles(euiThemeContext) {
|
|
19
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
19
20
|
return {
|
|
20
|
-
euiHorizontalRule: /*#__PURE__*/(0, _react.css)("border:none;", (0,
|
|
21
|
+
euiHorizontalRule: /*#__PURE__*/(0, _react.css)("border:none;", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
22
|
+
none: "\n ".concat((0, _global_styling.logicalCSS)('height', euiTheme.border.width.thin), "\n background-color: ").concat(euiTheme.border.color, ";\n "),
|
|
23
|
+
// Windows high contrast themes ignore background colors
|
|
24
|
+
forced: (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.thin)
|
|
25
|
+
}), "flex-shrink:0;flex-grow:0;;label:euiHorizontalRule;"),
|
|
21
26
|
// Sizes
|
|
22
27
|
full: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:full;"),
|
|
23
28
|
half: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '50%'), " ", (0, _global_styling.logicalCSS)('margin-horizontal', 'auto'), ";;label:half;"),
|
|
@@ -53,7 +53,7 @@ function lookupToken(options) {
|
|
|
53
53
|
}
|
|
54
54
|
var children = (0, _i18n_util.processStringToChildren)(renderable, values, i18nMappingFunc);
|
|
55
55
|
if (typeof children === 'string') {
|
|
56
|
-
// likewise, `processStringToChildren` returns a string or
|
|
56
|
+
// likewise, `processStringToChildren` returns a string or ReactNode[] depending on
|
|
57
57
|
// the type of `values`, so we will make the assumption that the default value is correct.
|
|
58
58
|
return children;
|
|
59
59
|
}
|
|
@@ -27,7 +27,7 @@ function hasPropName(child) {
|
|
|
27
27
|
* @param {string} input
|
|
28
28
|
* @param {RenderableValues} values
|
|
29
29
|
* @param {Function} i18nMappingFunc
|
|
30
|
-
* @returns {string |
|
|
30
|
+
* @returns {string | ReactNode[]}
|
|
31
31
|
*/
|
|
32
32
|
function processStringToChildren(input, values, i18nMappingFunc) {
|
|
33
33
|
var children = [];
|
|
@@ -61,7 +61,7 @@ var euiIconStyles = exports.euiIconStyles = function euiIconStyles(_ref3) {
|
|
|
61
61
|
xxl: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size.xxl), ";label:xxl;"),
|
|
62
62
|
// Variants
|
|
63
63
|
// App icons are two-toned. This provides the base color.
|
|
64
|
-
app: /*#__PURE__*/(0, _react.css)("fill:", euiTheme.colors.
|
|
64
|
+
app: /*#__PURE__*/(0, _react.css)("fill:", euiTheme.colors.textParagraph, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.textSuccess, ";};label:app;"),
|
|
65
65
|
logo: /*#__PURE__*/(0, _react.css)(";label:logo;"),
|
|
66
66
|
// Loading states
|
|
67
67
|
isLoading: /*#__PURE__*/(0, _react.css)("opacity:", iconLoadingOpacity, ";background-color:currentColor;border-radius:", euiTheme.border.radius.small, ";;label:isLoading;"),
|
|
@@ -7,6 +7,7 @@ exports.euiImageStyles = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _global_styling = require("../../global_styling");
|
|
10
|
+
var _high_contrast = require("../../global_styling/functions/high_contrast");
|
|
10
11
|
/*
|
|
11
12
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
13
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -19,8 +20,12 @@ var euiImageStyles = exports.euiImageStyles = function euiImageStyles(euiThemeCo
|
|
|
19
20
|
return {
|
|
20
21
|
euiImage: /*#__PURE__*/(0, _react.css)("vertical-align:middle;", (0, _global_styling.logicalCSS)('max-width', '100%'), " &,[class*='euiText'] &{", (0, _global_styling.logicalCSS)('margin-bottom', 0), ";};label:euiImage;"),
|
|
21
22
|
// Variations
|
|
22
|
-
isFullScreen: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('max-height', '80vh'), " ", (0, _global_styling.logicalCSS)('max-width', '80vw'), "
|
|
23
|
-
|
|
23
|
+
isFullScreen: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('max-height', '80vh'), " ", (0, _global_styling.logicalCSS)('max-width', '80vw'), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
24
|
+
preferred: "border: ".concat(euiThemeContext.euiTheme.border.thin, ";")
|
|
25
|
+
}), ";;label:isFullScreen;"),
|
|
26
|
+
hasShadow: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext, 's', {
|
|
27
|
+
borderAllInHighContrastMode: true
|
|
28
|
+
}), ";;label:hasShadow;"),
|
|
24
29
|
// Sizes
|
|
25
30
|
// These sizes are mostly suggestions. Don't look too hard for meaning in their values.
|
|
26
31
|
// Size is applied to the image, rather than the wrapper figure to work better with floats
|
|
@@ -20,8 +20,12 @@ var euiImageButtonStyles = exports.euiImageButtonStyles = function euiImageButto
|
|
|
20
20
|
// Base
|
|
21
21
|
euiImageButton: /*#__PURE__*/(0, _react.css)("position:relative;cursor:pointer;text-align:match-parent;line-height:0;&::before{opacity:0;content:'';pointer-events:none;position:absolute;inset:0;", _global_styling.euiCanAnimate, "{transition:opacity ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}}&:hover,&:focus{&::before{opacity:1;}[class*='euiImageButton__icon']{opacity:1;}}&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), ";};label:euiImageButton;"),
|
|
22
22
|
fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
|
|
23
|
-
shadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 's'
|
|
24
|
-
|
|
23
|
+
shadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 's', {
|
|
24
|
+
borderAllInHighContrastMode: true
|
|
25
|
+
}), ";};label:shadowHover;"),
|
|
26
|
+
hasShadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm', {
|
|
27
|
+
borderAllInHighContrastMode: true
|
|
28
|
+
}), ";};label:hasShadowHover;")
|
|
25
29
|
};
|
|
26
30
|
};
|
|
27
31
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -345,7 +345,7 @@ EuiInlineEditForm.propTypes = {
|
|
|
345
345
|
* Multiple props objects that can be applied directly to various child components displayed in edit mode.
|
|
346
346
|
* - `formRowProps` will be passed to `EuiFormRow`
|
|
347
347
|
* - `inputProps` will be passed to `EuiFieldText`
|
|
348
|
-
* - `saveButtonProps` & `cancelButtonProps` will be passed to their respective `
|
|
348
|
+
* - `saveButtonProps` & `cancelButtonProps` will be passed to their respective `EuiButtonIcon`s
|
|
349
349
|
*/
|
|
350
350
|
editModeProps: _propTypes.default.shape({
|
|
351
351
|
formRowProps: _propTypes.default.any,
|
|
@@ -18,7 +18,7 @@ var euiInlineEditReadModeStyles = exports.euiInlineEditReadModeStyles = function
|
|
|
18
18
|
return {
|
|
19
19
|
euiInlineEditReadMode: /*#__PURE__*/(0, _react.css)(";label:euiInlineEditReadMode;"),
|
|
20
20
|
// Override the cursor and allow users to highlight text when in the read only state
|
|
21
|
-
isReadOnly: /*#__PURE__*/(0, _react.css)("&:disabled{cursor:text;color:", euiTheme.colors.
|
|
21
|
+
isReadOnly: /*#__PURE__*/(0, _react.css)("&:disabled{cursor:text;color:", euiTheme.colors.textParagraph, ";user-select:text;};label:isReadOnly;"),
|
|
22
22
|
hasPlaceholder: /*#__PURE__*/(0, _react.css)(".euiText,.euiTitle{color:", euiTheme.components.forms.colorHasPlaceholder, ";};label:hasPlaceholder;")
|
|
23
23
|
};
|
|
24
24
|
};
|
|
@@ -95,7 +95,7 @@ EuiInlineEditText.propTypes = {
|
|
|
95
95
|
* Multiple props objects that can be applied directly to various child components displayed in edit mode.
|
|
96
96
|
* - `formRowProps` will be passed to `EuiFormRow`
|
|
97
97
|
* - `inputProps` will be passed to `EuiFieldText`
|
|
98
|
-
* - `saveButtonProps` & `cancelButtonProps` will be passed to their respective `
|
|
98
|
+
* - `saveButtonProps` & `cancelButtonProps` will be passed to their respective `EuiButtonIcon`s
|
|
99
99
|
*/
|
|
100
100
|
editModeProps: _propTypes.default.shape({
|
|
101
101
|
formRowProps: _propTypes.default.any,
|
|
@@ -104,7 +104,7 @@ EuiInlineEditTitle.propTypes = {
|
|
|
104
104
|
* Multiple props objects that can be applied directly to various child components displayed in edit mode.
|
|
105
105
|
* - `formRowProps` will be passed to `EuiFormRow`
|
|
106
106
|
* - `inputProps` will be passed to `EuiFieldText`
|
|
107
|
-
* - `saveButtonProps` & `cancelButtonProps` will be passed to their respective `
|
|
107
|
+
* - `saveButtonProps` & `cancelButtonProps` will be passed to their respective `EuiButtonIcon`s
|
|
108
108
|
*/
|
|
109
109
|
editModeProps: _propTypes.default.shape({
|
|
110
110
|
formRowProps: _propTypes.default.any,
|
|
@@ -7,6 +7,7 @@ exports.euiKeyPadMenuItemStyles = exports.euiKeyPadMenuItemChildStyles = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _global_styling = require("../../global_styling");
|
|
10
|
+
var _high_contrast = require("../../global_styling/functions/high_contrast");
|
|
10
11
|
var _accessibility = require("../accessibility");
|
|
11
12
|
var _key_pad_menu = require("./key_pad_menu.styles");
|
|
12
13
|
/*
|
|
@@ -26,11 +27,23 @@ var euiKeyPadMenuItemStyles = exports.euiKeyPadMenuItemStyles = function euiKeyP
|
|
|
26
27
|
var focusTransformStyles = "\n ".concat((0, _euiThemeCommon.euiShadow)(euiThemeContext, 's'), ";\n\n ").concat(_global_styling.euiCanAnimate, " {\n .euiKeyPadMenuItem__icon {\n transform: translateY(0);\n }\n }\n ");
|
|
27
28
|
return {
|
|
28
29
|
euiKeyPadMenuItem: /*#__PURE__*/(0, _react.css)("display:block;padding:", euiTheme.size.xs, ";", (0, _global_styling.logicalSizeCSS)(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.textParagraph, ";", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, " ease-in,box-shadow ", euiTheme.animation.fast, " ease-in;};label:euiKeyPadMenuItem;"),
|
|
29
|
-
enabled: /*#__PURE__*/(0, _react.css)("&:hover
|
|
30
|
-
|
|
30
|
+
enabled: /*#__PURE__*/(0, _react.css)("&:is(:hover, :focus, :focus-within){cursor:pointer;text-decoration:underline;", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
31
|
+
// Use `outline` instead of border to avoid affecting absolutely positioned children
|
|
32
|
+
preferred: "\n outline: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.primary, ";\n ")
|
|
33
|
+
}), " ", hasVisColorAdjustment ? focusTransformStyles : "background-color: ".concat(euiTheme.colors.backgroundBaseInteractiveHover), ";}&:focus{box-shadow:none;background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : euiTheme.colors.backgroundBaseInteractiveHover, ";};label:enabled;"),
|
|
34
|
+
selected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textHeading, ";background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : '', ";&:is(*, :hover, :focus, :focus-within){color:", euiTheme.colors.textPrimary, ";background-color:", !hasVisColorAdjustment ? euiTheme.colors.backgroundBaseInteractiveSelect : '', ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
35
|
+
// Skip checkable items (which render a <label> instead of <button>/<a>),
|
|
36
|
+
// as they already have sufficient indication of state (checkbox or radio)
|
|
37
|
+
preferred: "\n &:not(label) {\n outline: ".concat(euiTheme.border.width.thick, " solid ").concat(euiTheme.colors.primary, ";\n outline-offset: 0;\n }\n ")
|
|
38
|
+
}), ";};label:selected;"),
|
|
31
39
|
disabled: {
|
|
32
|
-
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;color:", euiTheme.colors.textDisabled, "
|
|
33
|
-
|
|
40
|
+
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;color:", euiTheme.colors.textDisabled, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
41
|
+
none: "\n .euiKeyPadMenuItem__icon {\n filter: ".concat(hasVisColorAdjustment ? 'grayscale(100%)' : '', ";\n\n svg * {\n fill: ").concat(euiTheme.colors.textDisabled, ";\n }\n }\n "),
|
|
42
|
+
forced: 'opacity: 0.5;'
|
|
43
|
+
}), ";;label:disabled;"),
|
|
44
|
+
selected: /*#__PURE__*/(0, _react.css)("background-color:", hasVisColorAdjustment ? euiTheme.components.keyPadMenuItemBackgroundDisabledSelect : euiTheme.colors.backgroundBaseDisabled, ";", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
45
|
+
preferred: "\n &:not(label) {\n outline: ".concat(euiTheme.border.width.thick, " solid ").concat(euiTheme.colors.textDisabled, ";\n }\n ")
|
|
46
|
+
}), ";;label:selected;")
|
|
34
47
|
}
|
|
35
48
|
};
|
|
36
49
|
};
|
|
@@ -42,7 +55,7 @@ var euiKeyPadMenuItemChildStyles = exports.euiKeyPadMenuItemChildStyles = functi
|
|
|
42
55
|
euiKeyPadMenuItem__icon: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.m), " transform:translateY(2px);", _global_styling.euiCanAnimate, "{transition:transform ", euiTheme.animation.normal, " ", euiTheme.animation.bounce, ";};label:euiKeyPadMenuItem__icon;"),
|
|
43
56
|
euiKeyPadMenuItem__label: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), " font-weight:", euiTheme.font.weight.semiBold, ";text-align:center;;label:euiKeyPadMenuItem__label;"),
|
|
44
57
|
euiKeyPadMenuItem__betaBadge: /*#__PURE__*/(0, _react.css)(topRightChildren, ";;label:euiKeyPadMenuItem__betaBadge;"),
|
|
45
|
-
euiKeyPadMenuItem__checkableInput: /*#__PURE__*/(0, _react.css)(topRightChildren, " transform:scale(.75);transform-origin:top right
|
|
58
|
+
euiKeyPadMenuItem__checkableInput: /*#__PURE__*/(0, _react.css)("position:absolute;", topRightChildren, " transform:scale(.75);transform-origin:top right;;label:euiKeyPadMenuItem__checkableInput;"),
|
|
46
59
|
showCheckableInputOnInteraction: /*#__PURE__*/(0, _react.css)(".euiKeyPadMenuItem:not(:hover, :focus, :focus-within) &{", (0, _accessibility.euiScreenReaderOnly)(), ";};label:showCheckableInputOnInteraction;"),
|
|
47
60
|
hideCheckableInput: /*#__PURE__*/(0, _react.css)((0, _accessibility.euiScreenReaderOnly)(), ";;label:hideCheckableInput;")
|
|
48
61
|
};
|
|
@@ -38,7 +38,7 @@ var euiLinkStyles = exports.euiLinkStyles = function euiLinkStyles(euiThemeConte
|
|
|
38
38
|
danger: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textDanger), ";label:danger;"),
|
|
39
39
|
warning: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textWarning), ";label:warning;"),
|
|
40
40
|
ghost: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.ghost), ";label:ghost;"),
|
|
41
|
-
text: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
41
|
+
text: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textParagraph), ";label:text;")
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
var _colorCSS = function _colorCSS(color) {
|
|
@@ -11,7 +11,7 @@ var _services = require("../../services");
|
|
|
11
11
|
var _loading_strings = require("./_loading_strings");
|
|
12
12
|
var _loading_chart = require("./loading_chart.styles");
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var _excluded = ["size", "
|
|
14
|
+
var _excluded = ["size", "className", "aria-label"];
|
|
15
15
|
/*
|
|
16
16
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
17
17
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -27,8 +27,6 @@ var SIZES = exports.SIZES = ['m', 'l', 'xl'];
|
|
|
27
27
|
var EuiLoadingChart = exports.EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
28
28
|
var _ref$size = _ref.size,
|
|
29
29
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
30
|
-
_ref$mono = _ref.mono,
|
|
31
|
-
mono = _ref$mono === void 0 ? false : _ref$mono,
|
|
32
30
|
className = _ref.className,
|
|
33
31
|
ariaLabel = _ref['aria-label'],
|
|
34
32
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -36,7 +34,7 @@ var EuiLoadingChart = exports.EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
|
36
34
|
var styles = (0, _services.useEuiMemoizedStyles)(_loading_chart.euiLoadingChartStyles);
|
|
37
35
|
var cssStyles = [styles.euiLoadingChart, styles[size]];
|
|
38
36
|
var barStyles = (0, _services.useEuiMemoizedStyles)(_loading_chart.euiLoadingChartBarStyles);
|
|
39
|
-
var barCssStyles = [barStyles.euiLoadingChart__bar,
|
|
37
|
+
var barCssStyles = [barStyles.euiLoadingChart__bar, barStyles[size]];
|
|
40
38
|
var defaultAriaLabel = (0, _loading_strings.useLoadingAriaLabel)();
|
|
41
39
|
return (0, _react2.jsx)("span", _extends({
|
|
42
40
|
className: classes,
|
|
@@ -57,6 +55,5 @@ EuiLoadingChart.propTypes = {
|
|
|
57
55
|
"aria-label": _propTypes.default.string,
|
|
58
56
|
"data-test-subj": _propTypes.default.string,
|
|
59
57
|
css: _propTypes.default.any,
|
|
60
|
-
size: _propTypes.default.any
|
|
61
|
-
mono: _propTypes.default.bool
|
|
58
|
+
size: _propTypes.default.any
|
|
62
59
|
};
|
|
@@ -6,14 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiLoadingChartStyles = exports.euiLoadingChartBarStyles = exports.BARS_COUNT = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
+
var _high_contrast = require("../../global_styling/functions/high_contrast");
|
|
9
10
|
var _templateObject;
|
|
10
11
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
11
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
12
|
-
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."); }
|
|
13
|
-
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; } }
|
|
14
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
15
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
16
|
-
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; }
|
|
17
12
|
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)."; } /*
|
|
18
13
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
19
14
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -39,30 +34,20 @@ var euiLoadingChartStyles = exports.euiLoadingChartStyles = function euiLoadingC
|
|
|
39
34
|
};
|
|
40
35
|
};
|
|
41
36
|
var BARS_COUNT = exports.BARS_COUNT = 4;
|
|
42
|
-
var euiLoadingChartBarStyles = exports.euiLoadingChartBarStyles = function euiLoadingChartBarStyles(
|
|
43
|
-
var euiTheme =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return colors;
|
|
51
|
-
}, []);
|
|
37
|
+
var euiLoadingChartBarStyles = exports.euiLoadingChartBarStyles = function euiLoadingChartBarStyles(euiThemeContext) {
|
|
38
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
39
|
+
highContrastMode = euiThemeContext.highContrastMode;
|
|
40
|
+
var backgroundColors = outputNthChildCss(function (index) {
|
|
41
|
+
var token = "loadingChartMonoBackground".concat(index);
|
|
42
|
+
var color = euiTheme.components[token];
|
|
43
|
+
return "background-color: ".concat(highContrastMode === 'forced' ? euiTheme.colors.fullShade : highContrastMode ? euiTheme.colors.darkShade : color);
|
|
44
|
+
});
|
|
52
45
|
return {
|
|
53
|
-
euiLoadingChart__bar: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " display:inline-block;", _global_styling.euiCanAnimate, "{animation:", barAnimation, " 1s infinite;", outputNthChildCss(function (index) {
|
|
54
|
-
return "animation-delay: 0.".concat(index, "s
|
|
46
|
+
euiLoadingChart__bar: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " display:inline-block;", (0, _high_contrast.preventForcedColors)(euiThemeContext), " ", _global_styling.euiCanAnimate, "{animation:", barAnimation, " 1s infinite;", outputNthChildCss(function (index) {
|
|
47
|
+
return "animation-delay: 0.".concat(index, "s");
|
|
55
48
|
}), ";}", _global_styling.euiCantAnimate, "{", outputNthChildCss(function (index) {
|
|
56
|
-
return "transform: translateY(".concat(22 * index, "%)
|
|
57
|
-
}), ";}
|
|
58
|
-
nonmono: /*#__PURE__*/(0, _react.css)(outputNthChildCss(function (index) {
|
|
59
|
-
return "background-color: ".concat(nonMonoColors[index]);
|
|
60
|
-
}), ";;label:nonmono;"),
|
|
61
|
-
mono: /*#__PURE__*/(0, _react.css)(outputNthChildCss(function (index) {
|
|
62
|
-
var token = "loadingChartMonoBackground".concat(index);
|
|
63
|
-
var color = euiTheme.components[token];
|
|
64
|
-
return "background-color: ".concat(color);
|
|
65
|
-
}), ";;label:mono;"),
|
|
49
|
+
return "transform: translateY(".concat(22 * index, "%)");
|
|
50
|
+
}), ";}", backgroundColors, ";;label:euiLoadingChart__bar;"),
|
|
66
51
|
m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', euiTheme.size.xxs), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.s), ";;label:m;"),
|
|
67
52
|
l: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.m), ";;label:l;"),
|
|
68
53
|
xl: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.base), ";;label:xl;")
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiSpinnerBorderColorsCSS = exports.euiLoadingSpinnerStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
+
var _high_contrast = require("../../global_styling/functions/high_contrast");
|
|
9
10
|
var _templateObject;
|
|
10
11
|
/*
|
|
11
12
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -24,25 +25,33 @@ var spinnerSizes = {
|
|
|
24
25
|
xxl: 'xxl'
|
|
25
26
|
};
|
|
26
27
|
var euiSpinnerBorderColorsCSS = exports.euiSpinnerBorderColorsCSS = function euiSpinnerBorderColorsCSS(_ref) {
|
|
27
|
-
var euiTheme = _ref.euiTheme
|
|
28
|
+
var euiTheme = _ref.euiTheme,
|
|
29
|
+
highContrastMode = _ref.highContrastMode;
|
|
28
30
|
var colors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
29
31
|
var _colors$border = colors.border,
|
|
30
32
|
border = _colors$border === void 0 ? euiTheme.components.loadingSpinnerBorder : _colors$border,
|
|
31
33
|
_colors$highlight = colors.highlight,
|
|
32
34
|
highlight = _colors$highlight === void 0 ? euiTheme.components.loadingSpinnerHighlight : _colors$highlight;
|
|
35
|
+
if (highContrastMode === 'forced') {
|
|
36
|
+
border = euiTheme.colors.lightestShade;
|
|
37
|
+
highlight = euiTheme.colors.fullShade;
|
|
38
|
+
}
|
|
33
39
|
return "".concat(highlight, " ").concat(border, " ").concat(border, " ").concat(border);
|
|
34
40
|
};
|
|
35
41
|
var euiLoadingSpinnerStyles = exports.euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(euiThemeContext) {
|
|
36
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
42
|
+
var euiTheme = euiThemeContext.euiTheme,
|
|
43
|
+
highContrastMode = euiThemeContext.highContrastMode;
|
|
44
|
+
var smallerBorderWidth = highContrastMode ? euiTheme.border.width.thick : (0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
|
|
45
|
+
return x * 1.5;
|
|
46
|
+
});
|
|
47
|
+
var largerBorderWidth = highContrastMode ? (0, _global_styling.mathWithUnits)(euiTheme.border.thick, function (x) {
|
|
48
|
+
return x * 2;
|
|
49
|
+
}) : euiTheme.border.width.thick;
|
|
37
50
|
return {
|
|
38
|
-
euiLoadingSpinner: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-block;border-radius:50%;border:", euiTheme.border.
|
|
51
|
+
euiLoadingSpinner: /*#__PURE__*/(0, _react.css)("flex-shrink:0;display:inline-block;border-radius:50%;border:", largerBorderWidth, " solid ", euiTheme.border.color, ";", (0, _global_styling.logicalShorthandCSS)('border-color', euiSpinnerBorderColorsCSS(euiThemeContext)), " ", (0, _high_contrast.preventForcedColors)(euiThemeContext), " ", _global_styling.euiCanAnimate, "{animation:", _loadingSpinner, " 0.6s infinite linear;};label:euiLoadingSpinner;"),
|
|
39
52
|
// Sizes
|
|
40
|
-
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.s], euiTheme.size[spinnerSizes.s]), " border-width:",
|
|
41
|
-
|
|
42
|
-
}), ";;label:s;"),
|
|
43
|
-
m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.m], euiTheme.size[spinnerSizes.m]), " border-width:", (0, _global_styling.mathWithUnits)(euiTheme.border.width.thin, function (x) {
|
|
44
|
-
return x * 1.5;
|
|
45
|
-
}), ";;label:m;"),
|
|
53
|
+
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.s], euiTheme.size[spinnerSizes.s]), " border-width:", smallerBorderWidth, ";;label:s;"),
|
|
54
|
+
m: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.m], euiTheme.size[spinnerSizes.m]), " border-width:", smallerBorderWidth, ";;label:m;"),
|
|
46
55
|
l: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.l], euiTheme.size[spinnerSizes.l]), ";;label:l;"),
|
|
47
56
|
xl: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.xl], euiTheme.size[spinnerSizes.xl]), ";;label:xl;"),
|
|
48
57
|
xxl: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size[spinnerSizes.xxl], euiTheme.size[spinnerSizes.xxl]), ";;label:xxl;")
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiMarkStyles = exports.euiMarkScreenReaderStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _high_contrast = require("../../global_styling/functions/high_contrast");
|
|
8
9
|
var _accessibility = require("../accessibility");
|
|
9
10
|
/*
|
|
10
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -14,10 +15,17 @@ var _accessibility = require("../accessibility");
|
|
|
14
15
|
* Side Public License, v 1.
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
|
-
var euiMarkStyles = exports.euiMarkStyles = function euiMarkStyles(
|
|
18
|
-
var euiTheme =
|
|
18
|
+
var euiMarkStyles = exports.euiMarkStyles = function euiMarkStyles(euiThemeContext) {
|
|
19
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
19
20
|
return {
|
|
20
|
-
euiMark: /*#__PURE__*/(0, _react.css)(
|
|
21
|
+
euiMark: /*#__PURE__*/(0, _react.css)((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
22
|
+
// Override the browser's black color.
|
|
23
|
+
// Can't use 'inherit' because the text to background color contrast may not be sufficient
|
|
24
|
+
none: "\n color: ".concat(euiTheme.colors.textParagraph, ";\n background-color: ").concat(euiTheme.components.markBackground, ";\n "),
|
|
25
|
+
// `!important` is required here because some marked text links
|
|
26
|
+
// (e.g. EuiSideNav) will take precedence otherwise
|
|
27
|
+
preferred: "\n color: ".concat(euiTheme.colors.emptyShade, " !important;\n background-color: ").concat(euiTheme.colors.backgroundFilledPrimary, ";\n ")
|
|
28
|
+
}), " font-weight:", euiTheme.font.weight.bold, ";;label:euiMark;")
|
|
21
29
|
};
|
|
22
30
|
};
|
|
23
31
|
var euiMarkScreenReaderStyles = exports.euiMarkScreenReaderStyles = function euiMarkScreenReaderStyles(highlightStart, highlightEnd) {
|