@elastic/eui 99.4.0 → 100.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/CHANGELOG.md +5 -0
- package/dist/{eui_theme_dark.json → eui_theme_amsterdam_dark.json} +177 -65
- package/dist/{eui_theme_light.json.d.ts → eui_theme_amsterdam_dark.json.d.ts} +178 -66
- package/dist/{eui_theme_light.json → eui_theme_amsterdam_light.json} +177 -65
- package/dist/eui_theme_amsterdam_light.json.d.ts +425 -0
- package/dist/eui_theme_borealis_dark.json +422 -0
- package/dist/{eui_theme_dark.json.d.ts → eui_theme_borealis_dark.json.d.ts} +178 -66
- package/dist/eui_theme_borealis_light.json +422 -0
- package/dist/eui_theme_borealis_light.json.d.ts +425 -0
- package/es/components/avatar/avatar.js +4 -4
- package/es/components/badge/badge.styles.js +1 -2
- package/es/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/es/components/badge/color_utils.js +9 -8
- package/es/components/beacon/beacon.styles.js +2 -2
- package/es/components/bottom_bar/bottom_bar.styles.js +2 -3
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- package/es/components/button/button.js +1 -1
- package/es/components/button/button_display/_button_display.styles.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_group/button_group_button.styles.js +6 -6
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/button/button_icon/button_icon.styles.js +1 -1
- package/es/components/call_out/call_out.styles.js +4 -4
- package/es/components/card/card.js +1 -1
- package/es/components/card/card.styles.js +6 -3
- package/es/components/code/code_block_annotations.js +1 -1
- package/es/components/code/code_block_line.styles.js +1 -2
- package/es/components/code/code_syntax.styles.js +24 -28
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
- package/es/components/color_picker/color_picker.js +4 -3
- package/es/components/color_picker/color_picker.styles.js +1 -2
- package/es/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/es/components/combo_box/combo_box.js +11 -1
- package/es/components/comment_list/comment.js +1 -1
- package/es/components/comment_list/comment_event.js +5 -4
- package/es/components/comment_list/comment_list.js +1 -1
- package/es/components/common.js +0 -28
- package/es/components/datagrid/data_grid.styles.js +6 -7
- package/es/components/date_picker/date_picker.styles.js +1 -1
- package/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/es/components/date_picker/react_date_picker.styles.js +2 -1
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
- package/es/components/drag_and_drop/droppable.styles.js +2 -4
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/empty_prompt/empty_prompt.styles.js +6 -2
- package/es/components/expression/expression.styles.js +13 -13
- package/es/components/filter_group/filter_select_item.styles.js +1 -2
- package/es/components/flyout/_flyout_close_button.styles.js +2 -3
- package/es/components/flyout/flyout.js +1 -1
- package/es/components/flyout/flyout.styles.js +8 -3
- package/es/components/flyout/flyout_footer.styles.js +1 -1
- package/es/components/form/form.styles.js +24 -32
- package/es/components/form/range/range_tooltip.styles.js +11 -13
- package/es/components/form/switch/switch.js +3 -7
- package/es/components/form/switch/switch.styles.js +16 -19
- package/es/components/header/header.styles.js +7 -8
- package/es/components/icon/icon.styles.js +9 -8
- package/es/components/icon/named_colors.js +1 -1
- package/es/components/image/image.styles.js +1 -1
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
- package/es/components/link/link.styles.js +6 -6
- package/es/components/list_group/list_group_item.styles.js +9 -11
- package/es/components/loading/loading_chart.styles.js +18 -5
- package/es/components/loading/loading_spinner.styles.js +2 -2
- package/es/components/mark/mark.styles.js +2 -9
- package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- package/es/components/markdown_editor/markdown_format.styles.js +2 -2
- package/es/components/modal/modal.styles.js +2 -2
- package/es/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/es/components/page_template/inner/page_inner.styles.js +3 -3
- package/es/components/pagination/pagination.styles.js +2 -2
- package/es/components/panel/panel.js +1 -1
- package/es/components/panel/panel.styles.js +3 -2
- package/es/components/panel/split_panel/split_panel.js +1 -1
- package/es/components/popover/popover.js +1 -1
- package/es/components/popover/popover_arrow/_popover_arrow.js +8 -3
- package/es/components/popover/popover_arrow/_popover_arrow.styles.js +18 -13
- package/es/components/popover/popover_footer.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.styles.js +7 -6
- package/es/components/progress/progress.js +1 -1
- package/es/components/progress/progress.styles.js +30 -28
- package/es/components/provider/provider.js +2 -2
- package/es/components/resizable_container/resizable_collapse_button.styles.js +1 -1
- package/es/components/resizable_container/resizable_panel.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/es/components/side_nav/side_nav_item.styles.js +6 -7
- package/es/components/skeleton/utils.js +5 -7
- package/es/components/stat/stat.styles.js +5 -5
- package/es/components/steps/step_number.styles.js +1 -1
- package/es/components/table/table_cells_shared.styles.js +3 -8
- package/es/components/table/table_row.styles.js +9 -11
- package/es/components/tabs/tab.styles.js +2 -2
- package/es/components/text/text.styles.js +2 -2
- package/es/components/text/text_color.js +1 -1
- package/es/components/text/text_color.styles.js +6 -5
- package/es/components/text_diff/text_diff.styles.js +1 -1
- package/es/components/toast/toast.styles.js +2 -2
- package/es/components/token/token.js +10 -4
- package/es/components/token/token.styles.js +14 -5
- package/es/components/token/token_map.js +243 -1
- package/es/components/tool_tip/tool_tip.styles.js +13 -25
- package/es/components/tour/_tour_footer.styles.js +2 -4
- package/es/components/tour/tour.styles.js +8 -12
- package/es/components/tree_view/tree_view_item.styles.js +1 -2
- package/es/global_styling/functions/math.js +1 -49
- package/es/global_styling/functions/size.js +1 -17
- package/es/global_styling/mixins/_button.js +159 -0
- package/es/global_styling/mixins/_color.js +39 -31
- package/es/global_styling/mixins/_shadow.js +31 -0
- package/es/global_styling/mixins/index.js +3 -1
- package/es/global_styling/reset/global_styles.js +3 -3
- package/es/global_styling/variables/animations.js +1 -22
- package/es/global_styling/variables/breakpoint.js +1 -7
- package/es/global_styling/variables/levels.js +1 -17
- package/es/global_styling/variables/shadow.js +1 -11
- package/es/global_styling/variables/size.js +1 -1
- package/es/global_styling/variables/typography.js +1 -32
- package/es/services/color/eui_palettes.js +148 -54
- package/es/services/color/eui_palettes_hooks.js +74 -0
- package/es/services/color/index.js +2 -0
- package/es/services/color/vis_color_store.js +13 -0
- package/es/services/index.js +2 -1
- package/es/services/popover/index.js +4 -1
- package/es/services/popover/popover_arrow.styles.js +31 -0
- package/es/services/popover/popover_positioning.js +6 -17
- package/es/services/theme/context.js +3 -3
- package/es/services/theme/provider.js +15 -2
- package/es/services/theme/types.js +1 -6
- package/es/services/theme/utils.js +1 -303
- package/es/themes/amsterdam/global_styling/functions/shadows.js +1 -10
- package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
- package/es/themes/amsterdam/global_styling/mixins/shadow.js +1 -146
- package/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +1 -7
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
- package/es/themes/amsterdam/global_styling/variables/_colors.js +612 -19
- package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +133 -0
- package/es/themes/amsterdam/global_styling/variables/_components.js +619 -0
- package/es/themes/amsterdam/global_styling/variables/_forms.js +161 -0
- package/es/themes/amsterdam/theme.js +7 -1
- package/es/themes/index.js +1 -2
- package/es/themes/themes.js +1 -21
- package/eui.d.ts +2726 -3183
- package/lib/components/avatar/avatar.js +2 -2
- package/lib/components/badge/badge.styles.js +1 -2
- package/lib/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/lib/components/badge/color_utils.js +14 -13
- package/lib/components/beacon/beacon.styles.js +2 -2
- package/lib/components/bottom_bar/bottom_bar.styles.js +2 -3
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- package/lib/components/button/button.js +1 -1
- package/lib/components/button/button_display/_button_display.styles.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_group/button_group_button.styles.js +5 -5
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/button/button_icon/button_icon.styles.js +1 -1
- package/lib/components/call_out/call_out.styles.js +4 -4
- package/lib/components/card/card.js +1 -1
- package/lib/components/card/card.styles.js +5 -2
- package/lib/components/code/code_block_annotations.js +1 -1
- package/lib/components/code/code_block_line.styles.js +1 -2
- package/lib/components/code/code_syntax.styles.js +24 -28
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
- package/lib/components/color_picker/color_picker.js +3 -2
- package/lib/components/color_picker/color_picker.styles.js +1 -2
- package/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/lib/components/combo_box/combo_box.js +11 -1
- package/lib/components/comment_list/comment.js +1 -1
- package/lib/components/comment_list/comment_event.js +5 -4
- package/lib/components/comment_list/comment_list.js +1 -1
- package/lib/components/common.js +0 -28
- package/lib/components/datagrid/data_grid.styles.js +6 -7
- package/lib/components/date_picker/date_picker.styles.js +2 -2
- package/lib/components/date_picker/date_picker_range.styles.js +2 -2
- package/lib/components/date_picker/react_date_picker.styles.js +3 -2
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
- package/lib/components/drag_and_drop/droppable.styles.js +2 -4
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.styles.js +5 -1
- package/lib/components/expression/expression.styles.js +13 -13
- package/lib/components/filter_group/filter_select_item.styles.js +1 -2
- package/lib/components/flyout/_flyout_close_button.styles.js +3 -4
- package/lib/components/flyout/flyout.js +1 -1
- package/lib/components/flyout/flyout.styles.js +8 -3
- package/lib/components/flyout/flyout_footer.styles.js +1 -1
- package/lib/components/form/form.styles.js +23 -31
- package/lib/components/form/range/range_tooltip.styles.js +11 -13
- package/lib/components/form/switch/switch.js +3 -7
- package/lib/components/form/switch/switch.styles.js +16 -19
- package/lib/components/header/header.styles.js +7 -8
- package/lib/components/icon/icon.styles.js +9 -8
- package/lib/components/icon/named_colors.js +1 -1
- package/lib/components/icon/svgs/aggregate.svg +0 -0
- package/lib/components/icon/svgs/color.svg +0 -0
- package/lib/components/icon/svgs/continuityAbove.svg +0 -0
- package/lib/components/icon/svgs/continuityAboveBelow.svg +0 -0
- package/lib/components/icon/svgs/continuityBelow.svg +0 -0
- package/lib/components/icon/svgs/continuityWithin.svg +0 -0
- package/lib/components/icon/svgs/documentation.svg +0 -0
- package/lib/components/icon/svgs/eraser.svg +0 -0
- package/lib/components/icon/svgs/folder_check.svg +0 -0
- package/lib/components/icon/svgs/folder_closed.svg +0 -0
- package/lib/components/icon/svgs/folder_exclamation.svg +0 -0
- package/lib/components/icon/svgs/folder_open.svg +0 -0
- package/lib/components/icon/svgs/fullScreenExit.svg +0 -0
- package/lib/components/icon/svgs/function.svg +0 -0
- package/lib/components/icon/svgs/layers.svg +0 -0
- package/lib/components/icon/svgs/menu.svg +0 -0
- package/lib/components/icon/svgs/ml_data_visualizer.svg +0 -0
- package/lib/components/icon/svgs/pageSelect.svg +0 -0
- package/lib/components/icon/svgs/pagesSelect.svg +0 -0
- package/lib/components/icon/svgs/percent.svg +0 -0
- package/lib/components/icon/svgs/push.svg +0 -0
- package/lib/components/icon/svgs/quote.svg +0 -0
- package/lib/components/icon/svgs/reporter.svg +0 -0
- package/lib/components/icon/svgs/securitySignal.svg +0 -0
- package/lib/components/icon/svgs/securitySignalDetected.svg +0 -0
- package/lib/components/icon/svgs/securitySignalResolved.svg +0 -0
- package/lib/components/icon/svgs/timeline.svg +0 -0
- package/lib/components/icon/svgs/users.svg +0 -0
- package/lib/components/icon/svgs/wordWrap.svg +0 -0
- package/lib/components/icon/svgs/wordWrapDisabled.svg +0 -0
- package/lib/components/image/image.styles.js +2 -2
- package/lib/components/image/image_button.styles.js +3 -3
- package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
- package/lib/components/link/link.styles.js +6 -6
- package/lib/components/list_group/list_group_item.styles.js +8 -10
- package/lib/components/loading/loading_chart.styles.js +18 -5
- package/lib/components/loading/loading_spinner.styles.js +2 -2
- package/lib/components/mark/mark.styles.js +2 -9
- package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- package/lib/components/markdown_editor/markdown_format.styles.js +2 -2
- package/lib/components/modal/modal.styles.js +3 -3
- package/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/lib/components/pagination/pagination.styles.js +2 -2
- package/lib/components/panel/panel.js +1 -1
- package/lib/components/panel/panel.styles.js +4 -3
- package/lib/components/panel/split_panel/split_panel.js +1 -1
- package/lib/components/popover/popover.js +1 -1
- package/lib/components/popover/popover_arrow/_popover_arrow.js +8 -3
- package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +18 -15
- package/lib/components/popover/popover_footer.styles.js +1 -1
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +10 -9
- package/lib/components/progress/progress.js +1 -1
- package/lib/components/progress/progress.styles.js +29 -27
- package/lib/components/provider/provider.js +2 -2
- package/lib/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/lib/components/resizable_container/resizable_panel.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/lib/components/side_nav/side_nav_item.styles.js +6 -7
- package/lib/components/skeleton/utils.js +4 -6
- package/lib/components/stat/stat.styles.js +5 -5
- package/lib/components/steps/step_number.styles.js +1 -1
- package/lib/components/table/table_cells_shared.styles.js +3 -8
- package/lib/components/table/table_row.styles.js +8 -10
- package/lib/components/tabs/tab.styles.js +2 -2
- package/lib/components/text/text.styles.js +1 -1
- package/lib/components/text/text_color.js +1 -1
- package/lib/components/text/text_color.styles.js +6 -5
- package/lib/components/text_diff/text_diff.styles.js +1 -1
- package/lib/components/toast/toast.styles.js +2 -2
- package/lib/components/token/token.js +12 -4
- package/lib/components/token/token.styles.js +14 -5
- package/lib/components/token/token_map.js +244 -2
- package/lib/components/tool_tip/tool_tip.styles.js +12 -24
- package/lib/components/tour/_tour_footer.styles.js +2 -4
- package/lib/components/tour/tour.styles.js +8 -12
- package/lib/components/tree_view/tree_view_item.styles.js +1 -2
- package/lib/global_styling/functions/math.js +7 -58
- package/lib/global_styling/functions/size.js +7 -26
- package/lib/global_styling/mixins/_button.js +164 -0
- package/lib/global_styling/mixins/_color.js +38 -30
- package/lib/global_styling/mixins/_shadow.js +84 -0
- package/lib/global_styling/mixins/index.js +22 -0
- package/lib/global_styling/reset/global_styles.js +2 -2
- package/lib/global_styling/variables/animations.js +25 -31
- package/lib/global_styling/variables/breakpoint.js +7 -16
- package/lib/global_styling/variables/levels.js +7 -26
- package/lib/global_styling/variables/shadow.js +13 -20
- package/lib/global_styling/variables/size.js +7 -10
- package/lib/global_styling/variables/typography.js +19 -41
- package/lib/services/color/eui_palettes.js +148 -54
- package/lib/services/color/eui_palettes_hooks.js +78 -0
- package/lib/services/color/index.js +20 -0
- package/lib/services/color/vis_color_store.js +18 -0
- package/lib/services/index.js +19 -0
- package/lib/services/popover/index.js +8 -1
- package/lib/services/popover/popover_arrow.styles.js +37 -0
- package/lib/services/popover/popover_positioning.js +6 -17
- package/lib/services/theme/context.js +3 -3
- package/lib/services/theme/provider.js +15 -2
- package/lib/services/theme/types.js +13 -14
- package/lib/services/theme/utils.js +54 -303
- package/lib/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
- package/lib/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +616 -24
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +139 -0
- package/lib/themes/amsterdam/global_styling/variables/_components.js +623 -0
- package/lib/themes/amsterdam/global_styling/variables/_forms.js +165 -0
- package/lib/themes/amsterdam/theme.js +7 -1
- package/lib/themes/index.js +4 -11
- package/lib/themes/themes.js +1 -23
- package/optimize/es/components/avatar/avatar.js +4 -4
- package/optimize/es/components/badge/badge.styles.js +1 -2
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/optimize/es/components/badge/color_utils.js +9 -8
- package/optimize/es/components/beacon/beacon.styles.js +2 -2
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +2 -3
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- package/optimize/es/components/button/button.js +1 -1
- package/optimize/es/components/button/button_display/_button_display.styles.js +1 -1
- package/optimize/es/components/button/button_empty/button_empty.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.js +1 -1
- package/optimize/es/components/button/button_group/button_group_button.styles.js +6 -6
- package/optimize/es/components/button/button_icon/button_icon.js +1 -1
- package/optimize/es/components/button/button_icon/button_icon.styles.js +1 -1
- package/optimize/es/components/call_out/call_out.styles.js +4 -4
- package/optimize/es/components/card/card.styles.js +6 -3
- package/optimize/es/components/code/code_block_annotations.js +1 -1
- package/optimize/es/components/code/code_block_line.styles.js +1 -2
- package/optimize/es/components/code/code_syntax.styles.js +24 -28
- package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
- package/optimize/es/components/color_picker/color_picker.js +4 -3
- package/optimize/es/components/color_picker/color_picker.styles.js +1 -2
- package/optimize/es/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/optimize/es/components/combo_box/combo_box.js +6 -1
- package/optimize/es/components/comment_list/comment_event.js +4 -3
- package/optimize/es/components/common.js +0 -28
- package/optimize/es/components/datagrid/data_grid.styles.js +6 -7
- package/optimize/es/components/date_picker/date_picker.styles.js +1 -1
- package/optimize/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
- package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
- package/optimize/es/components/empty_prompt/empty_prompt.styles.js +6 -2
- package/optimize/es/components/expression/expression.styles.js +13 -13
- package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +2 -3
- package/optimize/es/components/flyout/flyout.js +1 -1
- package/optimize/es/components/flyout/flyout.styles.js +8 -3
- package/optimize/es/components/flyout/flyout_footer.styles.js +1 -1
- package/optimize/es/components/form/form.styles.js +24 -32
- package/optimize/es/components/form/range/range_tooltip.styles.js +11 -13
- package/optimize/es/components/form/switch/switch.js +3 -2
- package/optimize/es/components/form/switch/switch.styles.js +16 -19
- package/optimize/es/components/header/header.styles.js +7 -8
- package/optimize/es/components/icon/icon.styles.js +9 -8
- package/optimize/es/components/icon/named_colors.js +1 -1
- package/optimize/es/components/image/image.styles.js +1 -1
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
- package/optimize/es/components/link/link.styles.js +6 -6
- package/optimize/es/components/list_group/list_group_item.styles.js +9 -11
- package/optimize/es/components/loading/loading_chart.styles.js +13 -5
- package/optimize/es/components/loading/loading_spinner.styles.js +2 -2
- package/optimize/es/components/mark/mark.styles.js +2 -9
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -2
- package/optimize/es/components/modal/modal.styles.js +2 -2
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/optimize/es/components/page_template/inner/page_inner.styles.js +3 -3
- package/optimize/es/components/pagination/pagination.styles.js +2 -2
- package/optimize/es/components/panel/panel.styles.js +3 -2
- package/optimize/es/components/popover/popover.js +1 -1
- package/optimize/es/components/popover/popover_arrow/_popover_arrow.js +8 -3
- package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +15 -13
- package/optimize/es/components/popover/popover_footer.styles.js +1 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +7 -6
- package/optimize/es/components/progress/progress.js +1 -1
- package/optimize/es/components/progress/progress.styles.js +30 -28
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
- package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/optimize/es/components/side_nav/side_nav_item.styles.js +6 -7
- package/optimize/es/components/skeleton/utils.js +5 -7
- package/optimize/es/components/stat/stat.styles.js +5 -5
- package/optimize/es/components/steps/step_number.styles.js +1 -1
- package/optimize/es/components/table/table_cells_shared.styles.js +3 -8
- package/optimize/es/components/table/table_row.styles.js +9 -11
- package/optimize/es/components/tabs/tab.styles.js +2 -2
- package/optimize/es/components/text/text.styles.js +2 -2
- package/optimize/es/components/text/text_color.js +1 -1
- package/optimize/es/components/text/text_color.styles.js +6 -5
- package/optimize/es/components/text_diff/text_diff.styles.js +1 -1
- package/optimize/es/components/toast/toast.styles.js +2 -2
- package/optimize/es/components/token/token.js +10 -4
- package/optimize/es/components/token/token.styles.js +14 -5
- package/optimize/es/components/token/token_map.js +243 -1
- package/optimize/es/components/tool_tip/tool_tip.styles.js +13 -25
- package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
- package/optimize/es/components/tour/tour.styles.js +8 -12
- package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
- package/optimize/es/global_styling/functions/math.js +1 -49
- package/optimize/es/global_styling/functions/size.js +1 -17
- package/optimize/es/global_styling/mixins/_button.js +159 -0
- package/optimize/es/global_styling/mixins/_color.js +39 -31
- package/optimize/es/global_styling/mixins/_shadow.js +31 -0
- package/optimize/es/global_styling/mixins/index.js +3 -1
- package/optimize/es/global_styling/reset/global_styles.js +3 -3
- package/optimize/es/global_styling/variables/animations.js +1 -22
- package/optimize/es/global_styling/variables/breakpoint.js +1 -7
- package/optimize/es/global_styling/variables/levels.js +1 -17
- package/optimize/es/global_styling/variables/shadow.js +1 -11
- package/optimize/es/global_styling/variables/size.js +1 -1
- package/optimize/es/global_styling/variables/typography.js +1 -32
- package/optimize/es/services/color/eui_palettes.js +148 -54
- package/optimize/es/services/color/eui_palettes_hooks.js +71 -0
- package/optimize/es/services/color/index.js +2 -0
- package/optimize/es/services/color/vis_color_store.js +13 -0
- package/optimize/es/services/index.js +2 -1
- package/optimize/es/services/popover/index.js +4 -1
- package/optimize/es/services/popover/popover_arrow.styles.js +31 -0
- package/optimize/es/services/popover/popover_positioning.js +6 -17
- package/optimize/es/services/theme/context.js +3 -3
- package/optimize/es/services/theme/provider.js +15 -2
- package/optimize/es/services/theme/types.js +1 -6
- package/optimize/es/services/theme/utils.js +1 -295
- package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +1 -10
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +1 -198
- package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +1 -146
- package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +1 -7
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +612 -19
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +133 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +611 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +153 -0
- package/optimize/es/themes/amsterdam/theme.js +7 -1
- package/optimize/es/themes/index.js +1 -2
- package/optimize/es/themes/themes.js +1 -21
- package/optimize/lib/components/avatar/avatar.js +2 -2
- package/optimize/lib/components/badge/badge.styles.js +1 -2
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/optimize/lib/components/badge/color_utils.js +14 -13
- package/optimize/lib/components/beacon/beacon.styles.js +2 -2
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -3
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- package/optimize/lib/components/button/button.js +1 -1
- package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -1
- package/optimize/lib/components/button/button_empty/button_empty.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.js +1 -1
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +5 -5
- package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
- package/optimize/lib/components/button/button_icon/button_icon.styles.js +1 -1
- package/optimize/lib/components/call_out/call_out.styles.js +4 -4
- package/optimize/lib/components/card/card.styles.js +5 -2
- package/optimize/lib/components/code/code_block_annotations.js +1 -1
- package/optimize/lib/components/code/code_block_line.styles.js +1 -2
- package/optimize/lib/components/code/code_syntax.styles.js +24 -28
- package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/optimize/lib/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
- package/optimize/lib/components/color_picker/color_picker.js +3 -2
- package/optimize/lib/components/color_picker/color_picker.styles.js +1 -2
- package/optimize/lib/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/optimize/lib/components/combo_box/combo_box.js +6 -1
- package/optimize/lib/components/comment_list/comment_event.js +4 -3
- package/optimize/lib/components/common.js +0 -28
- package/optimize/lib/components/datagrid/data_grid.styles.js +6 -7
- package/optimize/lib/components/date_picker/date_picker.styles.js +2 -2
- package/optimize/lib/components/date_picker/date_picker_range.styles.js +2 -2
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
- package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
- package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +5 -1
- package/optimize/lib/components/expression/expression.styles.js +13 -13
- package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +3 -4
- package/optimize/lib/components/flyout/flyout.js +1 -1
- package/optimize/lib/components/flyout/flyout.styles.js +8 -3
- package/optimize/lib/components/flyout/flyout_footer.styles.js +1 -1
- package/optimize/lib/components/form/form.styles.js +23 -31
- package/optimize/lib/components/form/range/range_tooltip.styles.js +11 -13
- package/optimize/lib/components/form/switch/switch.js +3 -2
- package/optimize/lib/components/form/switch/switch.styles.js +16 -19
- package/optimize/lib/components/header/header.styles.js +7 -8
- package/optimize/lib/components/icon/icon.styles.js +9 -8
- package/optimize/lib/components/icon/named_colors.js +1 -1
- package/optimize/lib/components/icon/svgs/aggregate.svg +0 -0
- package/optimize/lib/components/icon/svgs/color.svg +0 -0
- package/optimize/lib/components/icon/svgs/continuityAbove.svg +0 -0
- package/optimize/lib/components/icon/svgs/continuityAboveBelow.svg +0 -0
- package/optimize/lib/components/icon/svgs/continuityBelow.svg +0 -0
- package/optimize/lib/components/icon/svgs/continuityWithin.svg +0 -0
- package/optimize/lib/components/icon/svgs/documentation.svg +0 -0
- package/optimize/lib/components/icon/svgs/eraser.svg +0 -0
- package/optimize/lib/components/icon/svgs/folder_check.svg +0 -0
- package/optimize/lib/components/icon/svgs/folder_closed.svg +0 -0
- package/optimize/lib/components/icon/svgs/folder_exclamation.svg +0 -0
- package/optimize/lib/components/icon/svgs/folder_open.svg +0 -0
- package/optimize/lib/components/icon/svgs/fullScreenExit.svg +0 -0
- package/optimize/lib/components/icon/svgs/function.svg +0 -0
- package/optimize/lib/components/icon/svgs/layers.svg +0 -0
- package/optimize/lib/components/icon/svgs/menu.svg +0 -0
- package/optimize/lib/components/icon/svgs/ml_data_visualizer.svg +0 -0
- package/optimize/lib/components/icon/svgs/pageSelect.svg +0 -0
- package/optimize/lib/components/icon/svgs/pagesSelect.svg +0 -0
- package/optimize/lib/components/icon/svgs/percent.svg +0 -0
- package/optimize/lib/components/icon/svgs/push.svg +0 -0
- package/optimize/lib/components/icon/svgs/quote.svg +0 -0
- package/optimize/lib/components/icon/svgs/reporter.svg +0 -0
- package/optimize/lib/components/icon/svgs/securitySignal.svg +0 -0
- package/optimize/lib/components/icon/svgs/securitySignalDetected.svg +0 -0
- package/optimize/lib/components/icon/svgs/securitySignalResolved.svg +0 -0
- package/optimize/lib/components/icon/svgs/timeline.svg +0 -0
- package/optimize/lib/components/icon/svgs/users.svg +0 -0
- package/optimize/lib/components/icon/svgs/wordWrap.svg +0 -0
- package/optimize/lib/components/icon/svgs/wordWrapDisabled.svg +0 -0
- package/optimize/lib/components/image/image.styles.js +2 -2
- package/optimize/lib/components/image/image_button.styles.js +3 -3
- package/optimize/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
- package/optimize/lib/components/link/link.styles.js +6 -6
- package/optimize/lib/components/list_group/list_group_item.styles.js +8 -10
- package/optimize/lib/components/loading/loading_chart.styles.js +13 -5
- package/optimize/lib/components/loading/loading_spinner.styles.js +2 -2
- package/optimize/lib/components/mark/mark.styles.js +2 -9
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +2 -2
- package/optimize/lib/components/modal/modal.styles.js +3 -3
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/lib/components/pagination/pagination.styles.js +2 -2
- package/optimize/lib/components/panel/panel.styles.js +4 -3
- package/optimize/lib/components/popover/popover.js +1 -1
- package/optimize/lib/components/popover/popover_arrow/_popover_arrow.js +8 -3
- package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +16 -15
- package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +10 -9
- package/optimize/lib/components/progress/progress.js +1 -1
- package/optimize/lib/components/progress/progress.styles.js +29 -27
- package/optimize/lib/components/provider/provider.js +2 -2
- package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
- package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/optimize/lib/components/side_nav/side_nav_item.styles.js +6 -7
- package/optimize/lib/components/skeleton/utils.js +4 -6
- package/optimize/lib/components/stat/stat.styles.js +5 -5
- package/optimize/lib/components/steps/step_number.styles.js +1 -1
- package/optimize/lib/components/table/table_cells_shared.styles.js +3 -8
- package/optimize/lib/components/table/table_row.styles.js +8 -10
- package/optimize/lib/components/tabs/tab.styles.js +2 -2
- package/optimize/lib/components/text/text.styles.js +1 -1
- package/optimize/lib/components/text/text_color.js +1 -1
- package/optimize/lib/components/text/text_color.styles.js +6 -5
- package/optimize/lib/components/text_diff/text_diff.styles.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +2 -2
- package/optimize/lib/components/token/token.js +13 -4
- package/optimize/lib/components/token/token.styles.js +14 -5
- package/optimize/lib/components/token/token_map.js +244 -2
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +12 -24
- package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
- package/optimize/lib/components/tour/tour.styles.js +8 -12
- package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
- package/optimize/lib/global_styling/functions/math.js +7 -59
- package/optimize/lib/global_styling/functions/size.js +7 -27
- package/optimize/lib/global_styling/mixins/_button.js +165 -0
- package/optimize/lib/global_styling/mixins/_color.js +38 -30
- package/optimize/lib/global_styling/mixins/_shadow.js +84 -0
- package/optimize/lib/global_styling/mixins/index.js +22 -0
- package/optimize/lib/global_styling/reset/global_styles.js +2 -2
- package/optimize/lib/global_styling/variables/animations.js +25 -31
- package/optimize/lib/global_styling/variables/breakpoint.js +7 -16
- package/optimize/lib/global_styling/variables/levels.js +7 -26
- package/optimize/lib/global_styling/variables/shadow.js +13 -20
- package/optimize/lib/global_styling/variables/size.js +7 -10
- package/optimize/lib/global_styling/variables/typography.js +19 -41
- package/optimize/lib/services/color/eui_palettes.js +148 -54
- package/optimize/lib/services/color/eui_palettes_hooks.js +76 -0
- package/optimize/lib/services/color/index.js +20 -0
- package/optimize/lib/services/color/vis_color_store.js +18 -0
- package/optimize/lib/services/index.js +19 -0
- package/optimize/lib/services/popover/index.js +8 -1
- package/optimize/lib/services/popover/popover_arrow.styles.js +37 -0
- package/optimize/lib/services/popover/popover_positioning.js +6 -17
- package/optimize/lib/services/theme/context.js +3 -3
- package/optimize/lib/services/theme/provider.js +15 -2
- package/optimize/lib/services/theme/types.js +13 -14
- package/optimize/lib/services/theme/utils.js +54 -296
- package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +45 -203
- package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +616 -24
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +139 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +616 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +158 -0
- package/optimize/lib/themes/amsterdam/theme.js +7 -1
- package/optimize/lib/themes/index.js +4 -11
- package/optimize/lib/themes/themes.js +1 -23
- package/package.json +8 -4
- package/src/global_styling/functions/_colors.scss +3 -3
- package/src/global_styling/functions/_index.scss +1 -5
- package/src/global_styling/index.scss +1 -10
- package/src/global_styling/mixins/_shadow.scss +1 -1
- package/src/global_styling/mixins/_typography.scss +2 -2
- package/src/global_styling/variables/_animations.scss +1 -8
- package/src/global_styling/variables/_borders.scss +1 -9
- package/src/global_styling/variables/_buttons.scss +1 -18
- package/src/global_styling/variables/_font_weight.scss +1 -7
- package/src/global_styling/variables/_form.scss +2 -21
- package/src/global_styling/variables/_index.scss +0 -1
- package/src/global_styling/variables/_responsive.scss +1 -9
- package/src/global_styling/variables/_shadows.scss +1 -1
- package/src/global_styling/variables/_size.scss +1 -13
- package/src/global_styling/variables/_states.scss +1 -14
- package/src/global_styling/variables/_typography.scss +1 -75
- package/src/global_styling/variables/_z_index.scss +1 -33
- package/src/themes/amsterdam/_colors_dark.scss +80 -8
- package/src/themes/amsterdam/_colors_light.scss +80 -8
- package/src/themes/amsterdam/global_styling/variables/_forms.scss +12 -0
- package/src/themes/amsterdam/global_styling/variables/_index.scss +2 -0
- package/test-env/components/avatar/avatar.js +2 -2
- package/test-env/components/badge/badge.styles.js +1 -2
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +3 -1
- package/test-env/components/badge/color_utils.js +14 -13
- package/test-env/components/beacon/beacon.styles.js +2 -2
- package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -3
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +5 -7
- package/test-env/components/button/button.js +1 -1
- package/test-env/components/button/button_display/_button_display.styles.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_group/button_group_button.styles.js +5 -5
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/button/button_icon/button_icon.styles.js +1 -1
- package/test-env/components/call_out/call_out.styles.js +4 -4
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/card/card.styles.js +5 -2
- package/test-env/components/code/code_block_annotations.js +1 -1
- package/test-env/components/code/code_block_line.styles.js +1 -2
- package/test-env/components/code/code_syntax.styles.js +24 -28
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +3 -5
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -1
- package/test-env/components/color_picker/color_palette_display/color_palette_display.styles.js +1 -2
- package/test-env/components/color_picker/color_picker.js +3 -2
- package/test-env/components/color_picker/color_picker.styles.js +1 -2
- package/test-env/components/color_picker/color_picker_swatch.styles.js +1 -1
- package/test-env/components/combo_box/combo_box.js +6 -1
- package/test-env/components/comment_list/comment.js +1 -1
- package/test-env/components/comment_list/comment_event.js +5 -4
- package/test-env/components/comment_list/comment_list.js +1 -1
- package/test-env/components/common.js +0 -28
- package/test-env/components/datagrid/data_grid.styles.js +6 -7
- package/test-env/components/date_picker/date_picker.styles.js +2 -2
- package/test-env/components/date_picker/date_picker_range.styles.js +2 -2
- package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
- package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.styles.js +5 -1
- package/test-env/components/expression/expression.styles.js +13 -13
- package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
- package/test-env/components/flyout/_flyout_close_button.styles.js +3 -4
- package/test-env/components/flyout/flyout.styles.js +8 -3
- package/test-env/components/flyout/flyout_footer.styles.js +1 -1
- package/test-env/components/form/form.styles.js +23 -31
- package/test-env/components/form/range/range_tooltip.styles.js +11 -13
- package/test-env/components/form/switch/switch.js +3 -2
- package/test-env/components/form/switch/switch.styles.js +16 -19
- package/test-env/components/header/header.styles.js +7 -8
- package/test-env/components/icon/icon.styles.js +9 -8
- package/test-env/components/icon/named_colors.js +1 -1
- package/test-env/components/image/image.styles.js +2 -2
- package/test-env/components/image/image_button.styles.js +3 -3
- package/test-env/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +9 -7
- package/test-env/components/link/link.styles.js +6 -6
- package/test-env/components/list_group/list_group_item.styles.js +8 -10
- package/test-env/components/loading/loading_chart.styles.js +13 -5
- package/test-env/components/loading/loading_spinner.styles.js +2 -2
- package/test-env/components/mark/mark.styles.js +2 -9
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +2 -3
- package/test-env/components/markdown_editor/markdown_format.styles.js +2 -2
- package/test-env/components/modal/modal.styles.js +3 -3
- package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
- package/test-env/components/pagination/pagination.styles.js +2 -2
- package/test-env/components/panel/panel.js +1 -1
- package/test-env/components/panel/panel.styles.js +4 -3
- package/test-env/components/panel/split_panel/split_panel.js +1 -1
- package/test-env/components/popover/popover.js +1 -1
- package/test-env/components/popover/popover_arrow/_popover_arrow.js +8 -3
- package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +16 -15
- package/test-env/components/popover/popover_footer.styles.js +1 -1
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +10 -9
- package/test-env/components/progress/progress.js +1 -1
- package/test-env/components/progress/progress.styles.js +29 -27
- package/test-env/components/provider/provider.js +2 -2
- package/test-env/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/test-env/components/resizable_container/resizable_panel.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +2 -3
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/test-env/components/side_nav/side_nav_item.styles.js +6 -7
- package/test-env/components/skeleton/utils.js +4 -6
- package/test-env/components/stat/stat.styles.js +5 -5
- package/test-env/components/steps/step_number.styles.js +1 -1
- package/test-env/components/table/table_cells_shared.styles.js +3 -8
- package/test-env/components/table/table_row.styles.js +8 -10
- package/test-env/components/tabs/tab.styles.js +2 -2
- package/test-env/components/text/text.styles.js +1 -1
- package/test-env/components/text/text_color.js +1 -1
- package/test-env/components/text/text_color.styles.js +6 -5
- package/test-env/components/text_diff/text_diff.styles.js +1 -1
- package/test-env/components/toast/toast.styles.js +2 -2
- package/test-env/components/token/token.js +13 -4
- package/test-env/components/token/token.styles.js +14 -5
- package/test-env/components/token/token_map.js +244 -2
- package/test-env/components/tool_tip/tool_tip.styles.js +12 -24
- package/test-env/components/tour/_tour_footer.styles.js +2 -4
- package/test-env/components/tour/tour.styles.js +8 -12
- package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
- package/test-env/global_styling/functions/math.js +7 -59
- package/test-env/global_styling/functions/size.js +7 -27
- package/test-env/global_styling/mixins/_button.js +165 -0
- package/test-env/global_styling/mixins/_color.js +38 -30
- package/test-env/global_styling/mixins/_shadow.js +84 -0
- package/test-env/global_styling/mixins/index.js +22 -0
- package/test-env/global_styling/reset/global_styles.js +2 -2
- package/test-env/global_styling/variables/animations.js +25 -31
- package/test-env/global_styling/variables/breakpoint.js +7 -16
- package/test-env/global_styling/variables/levels.js +7 -26
- package/test-env/global_styling/variables/shadow.js +13 -20
- package/test-env/global_styling/variables/size.js +7 -10
- package/test-env/global_styling/variables/typography.js +19 -41
- package/test-env/services/breakpoint/current_breakpoint_hook.js +3 -3
- package/test-env/services/color/eui_palettes.js +148 -54
- package/test-env/services/color/eui_palettes_hooks.js +76 -0
- package/test-env/services/color/index.js +20 -0
- package/test-env/services/color/vis_color_store.js +18 -0
- package/test-env/services/index.js +19 -0
- package/test-env/services/popover/index.js +8 -1
- package/test-env/services/popover/popover_arrow.styles.js +37 -0
- package/test-env/services/popover/popover_positioning.js +6 -17
- package/test-env/services/theme/context.js +3 -3
- package/test-env/services/theme/provider.js +15 -2
- package/test-env/services/theme/types.js +13 -14
- package/test-env/services/theme/utils.js +54 -296
- package/test-env/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +45 -203
- package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/test-env/themes/amsterdam/global_styling/variables/_borders.js +3 -3
- package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +616 -24
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +139 -0
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +616 -0
- package/test-env/themes/amsterdam/global_styling/variables/_forms.js +158 -0
- package/test-env/themes/amsterdam/theme.js +7 -1
- package/test-env/themes/index.js +4 -11
- package/test-env/themes/themes.js +1 -23
- package/es/global_styling/variables/_colors_vis.js +0 -61
- package/lib/global_styling/variables/_colors_vis.js +0 -67
- package/optimize/es/global_styling/variables/_colors_vis.js +0 -61
- package/optimize/lib/global_styling/variables/_colors_vis.js +0 -67
- package/test-env/global_styling/variables/_colors_vis.js +0 -67
- /package/src/{global_styling → themes/amsterdam/global_styling}/variables/_colors_vis.scss +0 -0
|
@@ -9,24 +9,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
* Side Public License, v 1.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { makeHighContrastColor } from '../../services';
|
|
13
13
|
import { logicalCSS, mathWithUnits, euiCanAnimate, euiFontSize } from '../../global_styling';
|
|
14
|
-
import { euiButtonColor } from '../../themes/amsterdam/global_styling/mixins';
|
|
15
14
|
|
|
16
15
|
// There are multiple components that only need the form max-width size &
|
|
17
16
|
// don't need the extra overhead/color computing expense of every form var.
|
|
18
17
|
// For microperf, we're making this its own util
|
|
19
18
|
export var euiFormMaxWidth = function euiFormMaxWidth(_ref) {
|
|
20
19
|
var euiTheme = _ref.euiTheme;
|
|
21
|
-
return
|
|
22
|
-
return x * 25;
|
|
23
|
-
});
|
|
20
|
+
return euiTheme.components.forms.maxWidth;
|
|
24
21
|
};
|
|
25
22
|
export var euiFormVariables = function euiFormVariables(euiThemeContext) {
|
|
26
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
27
|
-
|
|
28
|
-
var isColorDark = colorMode === 'DARK';
|
|
29
|
-
var backgroundColor = isColorDark ? shade(euiTheme.colors.lightestShade, 0.4) : tint(euiTheme.colors.lightestShade, 0.6);
|
|
23
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
24
|
+
var backgroundColor = euiTheme.components.forms.background;
|
|
30
25
|
var controlHeight = euiTheme.size.xxl;
|
|
31
26
|
var controlCompressedHeight = euiTheme.size.xl;
|
|
32
27
|
var sizes = {
|
|
@@ -45,15 +40,16 @@ export var euiFormVariables = function euiFormVariables(euiThemeContext) {
|
|
|
45
40
|
})
|
|
46
41
|
};
|
|
47
42
|
var colors = {
|
|
48
|
-
textColor: euiTheme.colors.
|
|
43
|
+
textColor: euiTheme.colors.textParagraph,
|
|
44
|
+
textColorDisabled: euiTheme.components.forms.colorDisabled,
|
|
49
45
|
backgroundColor: backgroundColor,
|
|
50
|
-
backgroundDisabledColor:
|
|
51
|
-
backgroundReadOnlyColor: euiTheme.
|
|
52
|
-
borderColor:
|
|
53
|
-
controlDisabledColor: euiTheme.
|
|
46
|
+
backgroundDisabledColor: euiTheme.components.forms.backgroundDisabled,
|
|
47
|
+
backgroundReadOnlyColor: euiTheme.components.forms.backgroundReadOnly,
|
|
48
|
+
borderColor: euiTheme.components.forms.border,
|
|
49
|
+
controlDisabledColor: euiTheme.components.forms.controlBackgroundDisabled,
|
|
54
50
|
controlBoxShadow: '0 0 transparent',
|
|
55
51
|
controlPlaceholderText: makeHighContrastColor(euiTheme.colors.subduedText)(backgroundColor),
|
|
56
|
-
appendPrependBackground:
|
|
52
|
+
appendPrependBackground: euiTheme.components.forms.prependBackground
|
|
57
53
|
};
|
|
58
54
|
var controlLayout = {
|
|
59
55
|
controlLayoutGroupInputHeight: mathWithUnits(controlHeight, function (x) {
|
|
@@ -125,9 +121,8 @@ export var euiFormControlDefaultShadow = function euiFormControlDefaultShadow(eu
|
|
|
125
121
|
return "\n ".concat(withBorder ? border : '', "\n ").concat(withBackgroundColor ? backgroundColor : '', "\n ").concat(withBackground ? backgroundGradient : '', "\n ").concat(withBackgroundAnimation ? backgroundAnimation : '', "\n ");
|
|
126
122
|
};
|
|
127
123
|
export var euiFormControlFocusStyles = function euiFormControlFocusStyles(_ref3) {
|
|
128
|
-
var euiTheme = _ref3.euiTheme
|
|
129
|
-
|
|
130
|
-
return "\n --euiFormControlStateColor: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(colorMode === 'DARK' ? shade(euiTheme.colors.emptyShade, 0.4) : euiTheme.colors.emptyShade, ";\n background-size: 100% 100%;\n outline: none; /* Remove all outlines and rely on our own bottom border gradient */\n");
|
|
124
|
+
var euiTheme = _ref3.euiTheme;
|
|
125
|
+
return "\n --euiFormControlStateColor: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(euiTheme.components.forms.backgroundFocused, ";\n background-size: 100% 100%;\n outline: none; /* Remove all outlines and rely on our own bottom border gradient */\n");
|
|
131
126
|
};
|
|
132
127
|
export var euiFormControlInvalidStyles = function euiFormControlInvalidStyles(_ref4) {
|
|
133
128
|
var euiTheme = _ref4.euiTheme;
|
|
@@ -135,28 +130,25 @@ export var euiFormControlInvalidStyles = function euiFormControlInvalidStyles(_r
|
|
|
135
130
|
};
|
|
136
131
|
export var euiFormControlDisabledStyles = function euiFormControlDisabledStyles(euiThemeContext) {
|
|
137
132
|
var form = euiFormVariables(euiThemeContext);
|
|
138
|
-
return "\n color: ".concat(form.
|
|
133
|
+
return "\n color: ".concat(form.textColorDisabled, ";\n /* Required for Safari */\n -webkit-text-fill-color: ").concat(form.textColorDisabled, ";\n background-color: ").concat(form.backgroundDisabledColor, ";\n cursor: not-allowed;\n --euiFormControlStateColor: transparent;\n\n ").concat(euiPlaceholderPerBrowser("\n color: ".concat(form.textColorDisabled, ";\n opacity: 1;\n ")), "\n ");
|
|
139
134
|
};
|
|
140
135
|
export var euiFormControlReadOnlyStyles = function euiFormControlReadOnlyStyles(euiThemeContext) {
|
|
141
136
|
var form = euiFormVariables(euiThemeContext);
|
|
142
137
|
return "\n cursor: default;\n color: ".concat(form.textColor, ";\n -webkit-text-fill-color: ").concat(form.textColor, "; /* Required for Safari */\n\n background-color: ").concat(form.backgroundReadOnlyColor, ";\n --euiFormControlStateColor: transparent;\n ");
|
|
143
138
|
};
|
|
144
139
|
export var euiFormControlAutoFillStyles = function euiFormControlAutoFillStyles(euiThemeContext) {
|
|
145
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
146
|
-
colorMode = euiThemeContext.colorMode;
|
|
140
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
147
141
|
|
|
148
142
|
// Make the text color slightly less prominent than the default colors.text
|
|
149
143
|
var textColor = euiTheme.colors.darkestShade;
|
|
150
|
-
var
|
|
151
|
-
backgroundColor = _euiButtonColor.backgroundColor;
|
|
152
|
-
var tintedBackgroundColor = colorMode === 'DARK' ? shade(backgroundColor, 0.5) : tint(backgroundColor, 0.7);
|
|
144
|
+
var tintedBackgroundColor = euiTheme.components.forms.backgroundAutofilled;
|
|
153
145
|
// Hacky workaround to background-color, since Chrome doesn't normally allow overriding its styles
|
|
154
146
|
// @see https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill#sect1
|
|
155
147
|
var backgroundShadow = "inset 0 0 0 100vw ".concat(tintedBackgroundColor);
|
|
156
148
|
|
|
157
149
|
// Re-create the border, since the above webkit box shadow overrides the default border box-shadow
|
|
158
150
|
// + change the border color to match states, since the underline background gradient no longer works
|
|
159
|
-
var borderColor =
|
|
151
|
+
var borderColor = euiTheme.components.forms.borderAutofilled;
|
|
160
152
|
var invalidBorder = euiTheme.colors.danger;
|
|
161
153
|
var borderShadow = function borderShadow(color) {
|
|
162
154
|
return "inset 0 0 0 ".concat(euiTheme.border.width.thin, " ").concat(color);
|
|
@@ -174,21 +166,21 @@ var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
|
|
|
174
166
|
*/
|
|
175
167
|
|
|
176
168
|
export var euiFormCustomControlVariables = function euiFormCustomControlVariables(euiThemeContext) {
|
|
177
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
178
|
-
colorMode = euiThemeContext.colorMode;
|
|
169
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
179
170
|
var sizes = {
|
|
180
171
|
control: euiTheme.size.base,
|
|
181
172
|
lineHeight: euiTheme.size.l,
|
|
182
173
|
labelGap: euiTheme.size.s
|
|
183
174
|
};
|
|
184
175
|
var colors = {
|
|
185
|
-
unselected: euiTheme.
|
|
186
|
-
unselectedBorder:
|
|
187
|
-
: shade(euiTheme.colors.lightestShade, 0.4),
|
|
176
|
+
unselected: euiTheme.components.forms.controlBackgroundUnselected,
|
|
177
|
+
unselectedBorder: euiTheme.components.forms.controlBorder,
|
|
188
178
|
selected: euiTheme.colors.primary,
|
|
179
|
+
selectedBorder: euiTheme.components.forms.controlBorderSelected,
|
|
189
180
|
selectedIcon: euiTheme.colors.emptyShade,
|
|
190
|
-
disabled: euiTheme.
|
|
191
|
-
|
|
181
|
+
disabled: euiTheme.components.forms.controlBackgroundDisabled,
|
|
182
|
+
disabledBorder: euiTheme.components.forms.controlBorderDisabled,
|
|
183
|
+
disabledIcon: euiTheme.components.forms.iconDisabled,
|
|
192
184
|
disabledLabel: euiTheme.colors.disabledText // Lighter than formVars.disabledColor because it typically doesn't have as dark a background
|
|
193
185
|
};
|
|
194
186
|
var animation = {
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { COLOR_MODES_STANDARD, tint, shade } from '../../../services';
|
|
11
|
-
import { euiRangeVariables } from './range.styles';
|
|
12
10
|
import { euiFontSize, mathWithUnits } from '../../../global_styling';
|
|
11
|
+
import { _popoverArrowStyles } from '../../../services/popover';
|
|
12
|
+
import { euiRangeVariables } from './range.styles';
|
|
13
13
|
export var euiRangeTooltipStyles = function euiRangeTooltipStyles(euiThemeContext) {
|
|
14
14
|
var range = euiRangeVariables(euiThemeContext);
|
|
15
15
|
return {
|
|
@@ -19,25 +19,23 @@ export var euiRangeTooltipStyles = function euiRangeTooltipStyles(euiThemeContex
|
|
|
19
19
|
}), ";pointer-events:none;z-index:", range.thumbZIndex, ";;label:euiRangeTooltip;")
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
var euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme, colorMode) {
|
|
23
|
-
return colorMode === COLOR_MODES_STANDARD.dark ? shade(euiTheme.colors.emptyShade, 1) : tint(euiTheme.colors.fullShade, 0.25);
|
|
24
|
-
};
|
|
25
22
|
export var euiRangeTooltipValueStyles = function euiRangeTooltipValueStyles(euiThemeContext) {
|
|
26
23
|
var range = euiRangeVariables(euiThemeContext);
|
|
27
24
|
var euiTheme = euiThemeContext.euiTheme,
|
|
28
25
|
colorMode = euiThemeContext.colorMode;
|
|
26
|
+
var toolTipBackgroundColor = euiTheme.components.tooltipBackground;
|
|
27
|
+
var borderColor = colorMode === 'DARK' ? toolTipBackgroundColor : 'transparent';
|
|
29
28
|
var arrowSize = euiTheme.size.m;
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
|
|
29
|
+
var arrowOffset = euiTheme.size.l;
|
|
30
|
+
var arrowStyles = _popoverArrowStyles(euiThemeContext, arrowSize);
|
|
33
31
|
return {
|
|
34
32
|
euiRangeTooltip__value: /*#__PURE__*/css("position:absolute;inset-block-start:50%;max-inline-size:", mathWithUnits(euiTheme.size.base, function (x) {
|
|
35
33
|
return x * 16;
|
|
36
|
-
}), ";padding-block:", euiTheme.size.xxs, ";padding-inline:", euiTheme.size.s, ";transform:
|
|
37
|
-
return x / 2;
|
|
38
|
-
}), ";};label:euiRangeTooltip__value;"),
|
|
39
|
-
left: /*#__PURE__*/css("margin-inline-end:",
|
|
40
|
-
right: /*#__PURE__*/css("margin-inline-start:",
|
|
34
|
+
}), ";padding-block:", euiTheme.size.xxs, ";padding-inline:", euiTheme.size.s, ";transform:translateY(-50%);", euiFontSize(euiThemeContext, 's'), " line-height:", euiFontSize(euiThemeContext, 's').lineHeight, ";color:", euiTheme.colors.ghost, ";background-color:", toolTipBackgroundColor, ";border:", euiTheme.border.width.thin, " solid ", toolTipBackgroundColor, ";border:", euiTheme.border.width.thin, " solid ", borderColor, ";border-radius:", euiTheme.border.radius.small, ";&::before{content:'';", arrowStyles._arrowStyles, " inset-block-start:50%;margin-block-start:", mathWithUnits(arrowSize, function (x) {
|
|
35
|
+
return x / -2;
|
|
36
|
+
}), ";background-color:inherit;border:inherit;};label:euiRangeTooltip__value;"),
|
|
37
|
+
left: /*#__PURE__*/css("margin-inline-end:", arrowOffset, ";&::before{", arrowStyles.positions.left, " inset-inline-start:100%;};label:left;"),
|
|
38
|
+
right: /*#__PURE__*/css("margin-inline-start:", arrowOffset, ";&::before{", arrowStyles.positions.right, " inset-inline-end:100%;};label:right;"),
|
|
41
39
|
hasTicks: /*#__PURE__*/css("inset-block-start:", mathWithUnits(range.thumbWidth, function (x) {
|
|
42
40
|
return x / 2;
|
|
43
41
|
}), ";;label:hasTicks;")
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
3
|
var _excluded = ["label", "id", "checked", "disabled", "compressed", "mini", "onChange", "className", "showLabel", "type", "labelProps"];
|
|
5
4
|
/*
|
|
@@ -56,7 +55,9 @@ export var EuiSwitch = function EuiSwitch(_ref) {
|
|
|
56
55
|
var buttonStyles = [styles.button.euiSwitch__button, styles.button[size]];
|
|
57
56
|
var bodyStyles = [styles.body.euiSwitch__body, disabled ? styles.body.disabled[size] : checked ? styles.body.on : styles.body.off];
|
|
58
57
|
var iconsStyles = [styles.icons.euiSwitch__icons, checked ? styles.icons.on : styles.icons.off, disabled ? styles.icons.disabled : styles.icons.enabled];
|
|
59
|
-
var thumbStyles = [styles.thumb.euiSwitch__thumb,
|
|
58
|
+
var thumbStyles = [styles.thumb.euiSwitch__thumb, !disabled && [styles.thumb.enabled.enabled, styles.thumb.enabled[size]],
|
|
59
|
+
// keep checked styles after enabled styles to ensure checked overrides enabled.off state
|
|
60
|
+
checked ? styles.thumb.on[size] : styles.thumb.off, disabled && [styles.thumb.disabled.disabled, styles.thumb.disabled[size]]];
|
|
60
61
|
var labelStyles = [styles.label.euiSwitch__label, styles.label[size], disabled && styles.label.disabled, labelProps === null || labelProps === void 0 ? void 0 : labelProps.css];
|
|
61
62
|
return ___EmotionJSX("div", {
|
|
62
63
|
css: cssStyles,
|
|
@@ -8,19 +8,21 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { tint } from '../../../services';
|
|
12
11
|
import { euiCanAnimate, euiFocusRing, euiFontSize, logicalCSS, logicalSizeCSS, mathWithUnits } from '../../../global_styling';
|
|
13
12
|
import { euiFormCustomControlVariables } from '../form.styles';
|
|
14
13
|
var euiSwitchVars = function euiSwitchVars(euiThemeContext) {
|
|
15
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
16
15
|
var formVars = euiFormCustomControlVariables(euiThemeContext);
|
|
17
16
|
var colors = {
|
|
18
|
-
on:
|
|
19
|
-
off:
|
|
17
|
+
on: euiTheme.components.switchBackgroundOn,
|
|
18
|
+
off: euiTheme.components.switchBackgroundOff,
|
|
20
19
|
disabled: formVars.colors.disabled,
|
|
21
20
|
thumb: formVars.colors.selectedIcon,
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
thumbDisabled: euiTheme.components.switchThumbBackgroundDisabled,
|
|
22
|
+
thumbBorder: euiTheme.components.switchThumbBorderOff,
|
|
23
|
+
thumbBorderOn: euiTheme.components.switchThumbBorderOn,
|
|
24
|
+
thumbBorderDisabled: formVars.colors.disabledBorder,
|
|
25
|
+
iconDisabled: euiTheme.components.switchIconDisabled
|
|
24
26
|
};
|
|
25
27
|
var sizes = {
|
|
26
28
|
uncompressed: {
|
|
@@ -132,23 +134,16 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
132
134
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
133
135
|
};
|
|
134
136
|
var bodyStyles = function bodyStyles(_ref4, _ref5) {
|
|
135
|
-
var
|
|
137
|
+
var euiTheme = _ref4.euiTheme;
|
|
136
138
|
var colors = _ref5.colors;
|
|
137
|
-
// This is probably very extra, but the visual weight of the default
|
|
138
|
-
// disabled custom control feels different in light mode depending
|
|
139
|
-
// on the size of the switch, so I'm tinting it based on that.
|
|
140
|
-
// Gotta justify my stupidly expensive art degree!
|
|
141
|
-
var _calculateDisabledColor = function _calculateDisabledColor(tintAmount) {
|
|
142
|
-
return /*#__PURE__*/css("label:disabled;background-color:", colorMode === 'DARK' ? colors.disabled : tint(colors.disabled, tintAmount), ";");
|
|
143
|
-
};
|
|
144
139
|
return {
|
|
145
140
|
euiSwitch__body: _ref,
|
|
146
141
|
on: /*#__PURE__*/css("background-color:", colors.on, ";;label:on;"),
|
|
147
142
|
off: /*#__PURE__*/css("background-color:", colors.off, ";;label:off;"),
|
|
148
143
|
disabled: {
|
|
149
|
-
uncompressed:
|
|
150
|
-
compressed:
|
|
151
|
-
mini:
|
|
144
|
+
uncompressed: /*#__PURE__*/css("background-color:", euiTheme.components.switchUncompressedBackgroundDisabled, ";;label:uncompressed;"),
|
|
145
|
+
compressed: /*#__PURE__*/css("background-color:", euiTheme.components.switchCompressedBackgroundDisabled, ";;label:compressed;"),
|
|
146
|
+
mini: /*#__PURE__*/css("background-color:", euiTheme.components.switchMiniBackgroundDisabled, ";;label:mini;")
|
|
152
147
|
}
|
|
153
148
|
};
|
|
154
149
|
};
|
|
@@ -161,7 +156,7 @@ var iconStyles = function iconStyles(_ref6, _ref7) {
|
|
|
161
156
|
on: /*#__PURE__*/css(logicalCSS('left', '-25%'), ";;label:on;"),
|
|
162
157
|
off: /*#__PURE__*/css(logicalCSS('left', '-75%'), ";;label:off;"),
|
|
163
158
|
enabled: /*#__PURE__*/css("color:", colors.thumb, ";;label:enabled;"),
|
|
164
|
-
disabled: /*#__PURE__*/css("color:", colors.
|
|
159
|
+
disabled: /*#__PURE__*/css("color:", colors.iconDisabled, ";;label:disabled;")
|
|
165
160
|
};
|
|
166
161
|
};
|
|
167
162
|
var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
@@ -181,13 +176,15 @@ var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
|
181
176
|
euiSwitch__thumb: /*#__PURE__*/css("position:absolute;", logicalCSS('vertical', 0), " aspect-ratio:1;", logicalCSS('width', 'fit-content'), " ", logicalCSS('height', '100%'), " border-radius:50%;pointer-events:none;", euiCanAnimate, "{transition-property:inset-inline-start,transform,background-color,border-color;transition-duration:", animation.speed, ";transition-timing-function:", animation.easing, ";};label:euiSwitch__thumb;"),
|
|
182
177
|
off: /*#__PURE__*/css(logicalCSS('left', 0), ";;label:off;"),
|
|
183
178
|
get on() {
|
|
179
|
+
var baseStyles = "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(colors.thumbBorderOn, ";\n ");
|
|
180
|
+
|
|
184
181
|
// right: 0 works but doesn't transition/animate, so we need to
|
|
185
182
|
// manually calculate the left position per switch size
|
|
186
183
|
var _calculateLeft = function _calculateLeft(bodyWidth, thumbWidth) {
|
|
187
184
|
var leftPosition = mathWithUnits([bodyWidth, thumbWidth], function (x, y) {
|
|
188
185
|
return x - y;
|
|
189
186
|
});
|
|
190
|
-
return /*#__PURE__*/css("label:on;", logicalCSS('left', leftPosition), ";");
|
|
187
|
+
return /*#__PURE__*/css("label:on;", logicalCSS('left', leftPosition), " ", baseStyles, ";");
|
|
191
188
|
};
|
|
192
189
|
return {
|
|
193
190
|
uncompressed: _calculateLeft(uncompressed.width, uncompressed.height),
|
|
@@ -202,7 +199,7 @@ var thumbStyles = function thumbStyles(_ref8, switchVars) {
|
|
|
202
199
|
mini: _calculateScale('mini', false)
|
|
203
200
|
},
|
|
204
201
|
disabled: {
|
|
205
|
-
disabled: /*#__PURE__*/css("background-color:
|
|
202
|
+
disabled: /*#__PURE__*/css("background-color:", colors.thumbDisabled, ";border:", euiTheme.border.width.thin, " solid ", colors.thumbBorderDisabled, ";;label:disabled;"),
|
|
206
203
|
uncompressed: _calculateScale('uncompressed', false),
|
|
207
204
|
compressed: _calculateScale('compressed', false),
|
|
208
205
|
mini: _calculateScale('mini', false)
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { euiShadowXSmall } from '
|
|
10
|
+
import { euiShadowXSmall } from '@elastic/eui-theme-common';
|
|
11
11
|
import { logicalCSS } from '../../global_styling';
|
|
12
|
-
import {
|
|
12
|
+
import { makeHighContrastColor } from '../../services';
|
|
13
13
|
export var euiHeaderVariables = function euiHeaderVariables(euiThemeContext) {
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
15
|
return {
|
|
@@ -29,7 +29,7 @@ export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
|
|
|
29
29
|
static: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
|
|
30
30
|
fixed: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) + 1, ";position:fixed;", logicalCSS('top', 0), " ", logicalCSS('horizontal', 0), ";;label:fixed;"),
|
|
31
31
|
// Theme
|
|
32
|
-
default: /*#__PURE__*/css("background-color:", euiTheme.
|
|
32
|
+
default: /*#__PURE__*/css("background-color:", euiTheme.components.headerBackground, ";;label:default;"),
|
|
33
33
|
dark: /*#__PURE__*/css(euiHeaderDarkStyles(euiThemeContext), ";label:dark;")
|
|
34
34
|
};
|
|
35
35
|
};
|
|
@@ -45,17 +45,16 @@ export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
|
|
|
45
45
|
*/
|
|
46
46
|
import { euiFormVariables } from '../form/form.styles';
|
|
47
47
|
var euiHeaderDarkStyles = function euiHeaderDarkStyles(euiThemeContext) {
|
|
48
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
49
|
-
colorMode = euiThemeContext.colorMode;
|
|
48
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
50
49
|
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
51
50
|
controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
|
|
52
|
-
var backgroundColor =
|
|
51
|
+
var backgroundColor = euiTheme.components.headerDarkBackground;
|
|
53
52
|
|
|
54
53
|
// Specific color overrides for EuiSelectableTemplateSitewide
|
|
55
54
|
var selectableSitewide = {
|
|
56
55
|
color: euiTheme.colors.ghost,
|
|
57
|
-
borderColor:
|
|
56
|
+
borderColor: euiTheme.components.headerDarkSearchBorderColor,
|
|
58
57
|
placeholderColor: makeHighContrastColor(controlPlaceholderText, 8)(backgroundColor)
|
|
59
58
|
};
|
|
60
|
-
return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(
|
|
59
|
+
return "\n background-color: ".concat(backgroundColor, ";\n\n .euiHeaderLogo__text,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n color: ").concat(euiTheme.colors.ghost, ";\n }\n\n .euiHeaderLink-isActive {\n color: ").concat(makeHighContrastColor(euiTheme.colors.primary)(backgroundColor), ";\n }\n\n .euiHeaderLogo,\n .euiHeaderLink,\n .euiHeaderSectionItemButton {\n &:focus {\n background-color: ").concat(euiTheme.components.headerDarkSectionItemBackgroundFocus, ";\n }\n }\n\n .euiHeaderSectionItemButton__notification--badge {\n box-shadow: 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(backgroundColor, ";\n }\n\n .euiHeaderSectionItemButton__notification--dot {\n stroke: ").concat(backgroundColor, ";\n }\n\n .euiSelectableTemplateSitewide .euiFormControlLayout {\n background-color: transparent;\n\n input {\n box-shadow: inset 0 0 0 ").concat(euiTheme.border.width.thin, " ").concat(selectableSitewide.borderColor, ";\n }\n\n &--group {\n border-color: ").concat(euiTheme.components.headerDarkSearchBorderColor, ";\n\n input {\n box-shadow: none;\n }\n }\n\n &:not(:focus-within) {\n /* Increase contrast of filled text to be more than placeholder text */\n color: ").concat(selectableSitewide.color, ";\n\n input {\n /* Increase contrast of placeholder text */\n &::placeholder {\n color: ").concat(selectableSitewide.placeholderColor, ";\n }\n\n /* Inherit color from form control layout */\n color: inherit;\n background-color: transparent;\n }\n\n .euiFormControlLayout__append,\n .euiFormControlLayout__prepend {\n background-color: transparent;\n }\n\n .euiFormLabel {\n color: inherit;\n }\n }\n }\n ");
|
|
61
60
|
};
|
|
@@ -35,14 +35,15 @@ export var euiIconStyles = function euiIconStyles(_ref3) {
|
|
|
35
35
|
// Base
|
|
36
36
|
euiIcon: /*#__PURE__*/css("flex-shrink:0;display:inline-block;vertical-align:middle;fill:currentColor;transform:translate(0, 0);.euiIcon__fillNegative{fill:", euiTheme.colors.darkestShade, ";};label:euiIcon;"),
|
|
37
37
|
// Colors
|
|
38
|
-
accent: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
39
|
-
|
|
38
|
+
accent: /*#__PURE__*/css("color:", euiTheme.colors.textAccent, ";;label:accent;"),
|
|
39
|
+
accentSecondary: /*#__PURE__*/css("color:", euiTheme.colors.textAccentSecondary, ";;label:accentSecondary;"),
|
|
40
|
+
danger: /*#__PURE__*/css("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
40
41
|
ghost: /*#__PURE__*/css("color:", euiTheme.colors.ghost, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:ghost;"),
|
|
41
|
-
primary: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
42
|
-
success: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
43
|
-
subdued: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
44
|
-
text: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
45
|
-
warning: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
42
|
+
primary: /*#__PURE__*/css("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
43
|
+
success: /*#__PURE__*/css("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
44
|
+
subdued: /*#__PURE__*/css("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
45
|
+
text: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";*[fill],.euiIcon__fillNegative{fill:currentColor!important;};label:text;"),
|
|
46
|
+
warning: /*#__PURE__*/css("color:", euiTheme.colors.textWarning, ";;label:warning;"),
|
|
46
47
|
inherit: _ref2,
|
|
47
48
|
default: /*#__PURE__*/css(";label:default;"),
|
|
48
49
|
customColor: /*#__PURE__*/css(";label:customColor;"),
|
|
@@ -56,7 +57,7 @@ export var euiIconStyles = function euiIconStyles(_ref3) {
|
|
|
56
57
|
xxl: /*#__PURE__*/css(logicalSizeCSS(euiTheme.size.xxl), ";label:xxl;"),
|
|
57
58
|
// Variants
|
|
58
59
|
// App icons are two-toned. This provides the base color.
|
|
59
|
-
app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.
|
|
60
|
+
app: /*#__PURE__*/css("fill:", euiTheme.colors.text, ";.euiIcon__fillSecondary{fill:", euiTheme.colors.textSuccess, ";};label:app;"),
|
|
60
61
|
logo: /*#__PURE__*/css(";label:logo;"),
|
|
61
62
|
// Loading states
|
|
62
63
|
isLoading: /*#__PURE__*/css("opacity:", iconLoadingOpacity, ";background-color:currentColor;border-radius:", euiTheme.border.radius.small, ";;label:isLoading;"),
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export var COLORS = ['default', 'primary', 'success', 'accent', 'warning', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
|
|
9
|
+
export var COLORS = ['default', 'primary', 'success', 'accent', 'accentSecondary', 'warning', 'danger', 'text', 'subdued', 'ghost', 'inherit'];
|
|
10
10
|
export function isNamedColor(name) {
|
|
11
11
|
return COLORS.includes(name);
|
|
12
12
|
}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
+
import { euiShadow } from '@elastic/eui-theme-common';
|
|
10
11
|
import { logicalCSS } from '../../global_styling';
|
|
11
|
-
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
12
12
|
export var euiImageStyles = function euiImageStyles(euiThemeContext) {
|
|
13
13
|
return {
|
|
14
14
|
euiImage: /*#__PURE__*/css("vertical-align:middle;", logicalCSS('max-width', '100%'), " &,[class*='euiText'] &{", logicalCSS('margin-bottom', 0), ";};label:euiImage;"),
|
|
@@ -8,8 +8,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
+
import { euiShadow } from '@elastic/eui-theme-common';
|
|
11
12
|
import { euiFocusRing, logicalCSS, euiCanAnimate } from '../../global_styling';
|
|
12
|
-
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
13
13
|
export var euiImageButtonStyles = function euiImageButtonStyles(euiThemeContext) {
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
15
|
return {
|
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { tint } from '../../services';
|
|
11
10
|
export var euiInlineEditReadModeStyles = function euiInlineEditReadModeStyles(_ref) {
|
|
12
11
|
var euiTheme = _ref.euiTheme;
|
|
13
12
|
return {
|
|
14
13
|
euiInlineEditReadMode: /*#__PURE__*/css(";label:euiInlineEditReadMode;"),
|
|
15
14
|
// Override the cursor and allow users to highlight text when in the read only state
|
|
16
15
|
isReadOnly: /*#__PURE__*/css("&:disabled{cursor:text;color:", euiTheme.colors.text, ";user-select:text;};label:isReadOnly;"),
|
|
17
|
-
hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:",
|
|
16
|
+
hasPlaceholder: /*#__PURE__*/css(".euiText,.euiTitle{color:", euiTheme.components.forms.colorHasPlaceholder, ";};label:hasPlaceholder;")
|
|
18
17
|
};
|
|
19
18
|
};
|
|
@@ -7,22 +7,24 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import {
|
|
10
|
+
import { euiShadow } from '@elastic/eui-theme-common';
|
|
11
11
|
import { logicalCSS, logicalSizeCSS, euiCanAnimate, euiFontSize } from '../../global_styling';
|
|
12
|
-
import { euiShadow } from '../../themes/amsterdam/global_styling/mixins';
|
|
13
12
|
import { euiScreenReaderOnly } from '../accessibility';
|
|
14
13
|
import { euiKeyPadMenuVariables } from './key_pad_menu.styles';
|
|
15
14
|
export var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeContext) {
|
|
15
|
+
var _euiTheme$flags;
|
|
16
16
|
var euiTheme = euiThemeContext.euiTheme;
|
|
17
17
|
var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
|
|
18
18
|
euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize;
|
|
19
|
+
var hasVisColorAdjustment = (_euiTheme$flags = euiTheme.flags) === null || _euiTheme$flags === void 0 ? void 0 : _euiTheme$flags.hasVisColorAdjustment;
|
|
20
|
+
var focusTransformStyles = "\n ".concat(euiShadow(euiThemeContext, 's'), ";\n\n ").concat(euiCanAnimate, " {\n .euiKeyPadMenuItem__icon {\n transform: translateY(0);\n }\n }\n ");
|
|
19
21
|
return {
|
|
20
|
-
euiKeyPadMenuItem: /*#__PURE__*/css("display:block;padding:", euiTheme.size.xs, ";", logicalSizeCSS(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.
|
|
21
|
-
enabled: /*#__PURE__*/css("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;",
|
|
22
|
-
selected: /*#__PURE__*/css("color:", euiTheme.colors.
|
|
22
|
+
euiKeyPadMenuItem: /*#__PURE__*/css("display:block;padding:", euiTheme.size.xs, ";", logicalSizeCSS(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.textParagraph, ";", euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, " ease-in,box-shadow ", euiTheme.animation.fast, " ease-in;};label:euiKeyPadMenuItem;"),
|
|
23
|
+
enabled: /*#__PURE__*/css("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;", hasVisColorAdjustment ? focusTransformStyles : "background-color: ".concat(euiTheme.colors.backgroundBaseInteractiveHover), ";}&:focus{box-shadow:none;background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : euiTheme.colors.backgroundBaseInteractiveHover, ";};label:enabled;"),
|
|
24
|
+
selected: /*#__PURE__*/css("color:", euiTheme.colors.textHeading, ";background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : '', ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.textPrimary, ";background-color:", !hasVisColorAdjustment ? euiTheme.colors.backgroundBaseInteractiveSelect : '', ";};label:selected;"),
|
|
23
25
|
disabled: {
|
|
24
|
-
disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.
|
|
25
|
-
selected: /*#__PURE__*/css("background-color:",
|
|
26
|
+
disabled: /*#__PURE__*/css("cursor:not-allowed;color:", euiTheme.colors.textDisabled, ";.euiKeyPadMenuItem__icon{filter:", hasVisColorAdjustment ? 'grayscale(100%)' : '', ";svg *{fill:", euiTheme.colors.textDisabled, ";}};label:disabled;"),
|
|
27
|
+
selected: /*#__PURE__*/css("background-color:", hasVisColorAdjustment ? euiTheme.components.keyPadMenuItemBackgroundDisabledSelect : euiTheme.colors.backgroundBaseDisabled, ";;label:selected;")
|
|
26
28
|
}
|
|
27
29
|
};
|
|
28
30
|
};
|
|
@@ -27,12 +27,12 @@ export var euiLinkStyles = function euiLinkStyles(euiThemeContext) {
|
|
|
27
27
|
euiLink: /*#__PURE__*/css(euiLinkCSS(euiThemeContext), " user-select:text;&[target='_blank']{position:relative;};label:euiLink;"),
|
|
28
28
|
disabled: _ref,
|
|
29
29
|
// Color styles
|
|
30
|
-
primary: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
31
|
-
subdued: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
32
|
-
success: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
33
|
-
accent: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
34
|
-
danger: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
35
|
-
warning: /*#__PURE__*/css(_colorCSS(euiTheme.colors.
|
|
30
|
+
primary: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textPrimary), ";label:primary;"),
|
|
31
|
+
subdued: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textSubdued), ";label:subdued;"),
|
|
32
|
+
success: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textSuccess), ";label:success;"),
|
|
33
|
+
accent: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textAccent), ";label:accent;"),
|
|
34
|
+
danger: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textDanger), ";label:danger;"),
|
|
35
|
+
warning: /*#__PURE__*/css(_colorCSS(euiTheme.colors.textWarning), ";label:warning;"),
|
|
36
36
|
ghost: /*#__PURE__*/css(_colorCSS(euiTheme.colors.ghost), ";label:ghost;"),
|
|
37
37
|
text: /*#__PURE__*/css(_colorCSS(euiTheme.colors.text), ";label:text;")
|
|
38
38
|
};
|
|
@@ -8,16 +8,14 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import { euiCanAnimate, euiFontSize, logicalCSS, logicalShorthandCSS,
|
|
12
|
-
import { euiButtonColor } from '../../
|
|
11
|
+
import { euiCanAnimate, euiFontSize, logicalCSS, logicalShorthandCSS, euiTextTruncate, euiTextBreakWord } from '../../global_styling';
|
|
12
|
+
import { euiButtonColor } from '../../global_styling/mixins/_button';
|
|
13
13
|
export var euiListGroupItemStyles = function euiListGroupItemStyles(euiThemeContext) {
|
|
14
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
|
-
var primaryBgColor =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
method: 'transparent'
|
|
20
|
-
});
|
|
15
|
+
var primaryBgColor = euiTheme.components.listGroupItemBackgroundPrimaryActive;
|
|
16
|
+
var subduedBgColor = euiTheme.components.listGroupItemBackgroundSubduedActive;
|
|
17
|
+
var backgroundHover = euiTheme.components.listGroupItemBackgroundHover;
|
|
18
|
+
var backgroundPrimaryHover = euiTheme.components.listGroupItemBackgroundPrimaryHover;
|
|
21
19
|
return {
|
|
22
20
|
// Base
|
|
23
21
|
euiListGroupItem: /*#__PURE__*/css("padding:0;display:flex;align-items:center;position:relative;", euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, ";};label:euiListGroupItem;"),
|
|
@@ -34,9 +32,9 @@ export var euiListGroupItemStyles = function euiListGroupItemStyles(euiThemeCont
|
|
|
34
32
|
subdued: /*#__PURE__*/css("background-color:", subduedBgColor, ";;label:subdued;")
|
|
35
33
|
},
|
|
36
34
|
isClickable: {
|
|
37
|
-
primary: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
38
|
-
text: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
39
|
-
subdued: /*#__PURE__*/css("&:hover,&:focus-within{background-color:",
|
|
35
|
+
primary: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundPrimaryHover, ";};label:primary;"),
|
|
36
|
+
text: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundHover, ";};label:text;"),
|
|
37
|
+
subdued: /*#__PURE__*/css("&:hover,&:focus-within{background-color:", backgroundHover, ";};label:subdued;")
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
3
|
var _templateObject;
|
|
3
4
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4
5
|
/*
|
|
@@ -10,9 +11,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
import { css, keyframes } from '@emotion/react';
|
|
13
|
-
import { euiPaletteColorBlind, shadeOrTint } from '../../services';
|
|
14
14
|
import { euiCanAnimate, euiCantAnimate, logicalCSS } from '../../global_styling';
|
|
15
|
-
var nonMonoColors = euiPaletteColorBlind();
|
|
16
15
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
17
16
|
name: "yovxj7-euiLoadingChart",
|
|
18
17
|
styles: "overflow:hidden;display:inline-flex;label:euiLoadingChart;"
|
|
@@ -32,8 +31,15 @@ export var euiLoadingChartStyles = function euiLoadingChartStyles(_ref2) {
|
|
|
32
31
|
};
|
|
33
32
|
export var BARS_COUNT = 4;
|
|
34
33
|
export var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref3) {
|
|
35
|
-
var euiTheme = _ref3.euiTheme
|
|
36
|
-
|
|
34
|
+
var euiTheme = _ref3.euiTheme;
|
|
35
|
+
var nonMonoColors = Object.keys(euiTheme.colors.vis).reduce(function (colors, cur) {
|
|
36
|
+
var isVisColor = cur.match(/euiColorVis[0-9]/);
|
|
37
|
+
if (isVisColor) {
|
|
38
|
+
var color = euiTheme.colors.vis[cur];
|
|
39
|
+
return [].concat(_toConsumableArray(colors), [color]);
|
|
40
|
+
}
|
|
41
|
+
return colors;
|
|
42
|
+
}, []);
|
|
37
43
|
return {
|
|
38
44
|
euiLoadingChart__bar: /*#__PURE__*/css(logicalCSS('height', '100%'), " display:inline-block;", euiCanAnimate, "{animation:", barAnimation, " 1s infinite;", outputNthChildCss(function (index) {
|
|
39
45
|
return "animation-delay: 0.".concat(index, "s;");
|
|
@@ -44,7 +50,9 @@ export var euiLoadingChartBarStyles = function euiLoadingChartBarStyles(_ref3) {
|
|
|
44
50
|
return "background-color: ".concat(nonMonoColors[index]);
|
|
45
51
|
}), ";;label:nonmono;"),
|
|
46
52
|
mono: /*#__PURE__*/css(outputNthChildCss(function (index) {
|
|
47
|
-
|
|
53
|
+
var token = "loadingChartMonoBackground".concat(index);
|
|
54
|
+
var color = euiTheme.components[token];
|
|
55
|
+
return "background-color: ".concat(color);
|
|
48
56
|
}), ";;label:mono;"),
|
|
49
57
|
m: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.xxs), " ", logicalCSS('margin-bottom', euiTheme.size.s), ";;label:m;"),
|
|
50
58
|
l: /*#__PURE__*/css(logicalCSS('width', euiTheme.size.xs), " ", logicalCSS('margin-bottom', euiTheme.size.m), ";;label:l;"),
|
|
@@ -21,9 +21,9 @@ export var euiSpinnerBorderColorsCSS = function euiSpinnerBorderColorsCSS(_ref)
|
|
|
21
21
|
var euiTheme = _ref.euiTheme;
|
|
22
22
|
var colors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
23
23
|
var _colors$border = colors.border,
|
|
24
|
-
border = _colors$border === void 0 ? euiTheme.
|
|
24
|
+
border = _colors$border === void 0 ? euiTheme.components.loadingSpinnerBorder : _colors$border,
|
|
25
25
|
_colors$highlight = colors.highlight,
|
|
26
|
-
highlight = _colors$highlight === void 0 ? euiTheme.
|
|
26
|
+
highlight = _colors$highlight === void 0 ? euiTheme.components.loadingSpinnerHighlight : _colors$highlight;
|
|
27
27
|
return "".concat(highlight, " ").concat(border, " ").concat(border, " ").concat(border);
|
|
28
28
|
};
|
|
29
29
|
export var euiLoadingSpinnerStyles = function euiLoadingSpinnerStyles(euiThemeContext) {
|
|
@@ -7,18 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { transparentize } from '../../services';
|
|
11
10
|
import { euiScreenReaderOnly } from '../accessibility';
|
|
12
11
|
export var euiMarkStyles = function euiMarkStyles(_ref) {
|
|
13
|
-
var euiTheme = _ref.euiTheme
|
|
14
|
-
colorMode = _ref.colorMode;
|
|
15
|
-
// TODO: Was $euiFocusBackgroundColor
|
|
16
|
-
var transparency = {
|
|
17
|
-
LIGHT: 0.1,
|
|
18
|
-
DARK: 0.3
|
|
19
|
-
};
|
|
12
|
+
var euiTheme = _ref.euiTheme;
|
|
20
13
|
return {
|
|
21
|
-
euiMark: /*#__PURE__*/css("background-color:",
|
|
14
|
+
euiMark: /*#__PURE__*/css("background-color:", euiTheme.components.markBackground, ";font-weight:", euiTheme.font.weight.bold, ";color:", euiTheme.colors.text, ";;label:euiMark;")
|
|
22
15
|
};
|
|
23
16
|
};
|
|
24
17
|
export var euiMarkScreenReaderStyles = function euiMarkScreenReaderStyles(highlightStart, highlightEnd) {
|